feat: pass version in letta remote (#1226)

This commit is contained in:
Shubham Naik
2026-03-03 12:57:09 -08:00
committed by GitHub
parent 9372605cf2
commit 68e4bc0b4a
2 changed files with 12 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
* Shared registration helper for letta remote / /remote command.
* Owns the HTTP request contract and error handling; callers own UX strings and logging.
*/
import { getVersion } from "../version.ts";
export interface RegisterResult {
connectionId: string;
@@ -34,6 +35,11 @@ export async function registerWithCloud(
body: JSON.stringify({
deviceId: opts.deviceId,
connectionName: opts.connectionName,
metadata: {
lettaCodeVersion: getVersion(),
os: process.platform,
nodeVersion: process.version,
},
}),
});