feat: pass version in letta remote (#1226)
This commit is contained in:
@@ -47,9 +47,14 @@ describe("registerWithCloud", () => {
|
||||
"letta-code",
|
||||
);
|
||||
const body = JSON.parse(init.body as string);
|
||||
expect(body).toEqual({
|
||||
expect(body).toMatchObject({
|
||||
deviceId: "device-123",
|
||||
connectionName: "test-machine",
|
||||
metadata: {
|
||||
lettaCodeVersion: expect.any(String),
|
||||
os: expect.any(String),
|
||||
nodeVersion: expect.any(String),
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user