@letta-ai/letta-agent-sdk 0.8.83 → 0.8.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"local-app-server.d.ts","sourceRoot":"","sources":["../src/local-app-server.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACrC,MAAM,yCAAyC,CAAC;AAGjD,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,IAAI,OAAO,CAAC;IACrB,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC,qBAAqB,CAAC,EAAE,QAAQ,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,qBAAqB;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;CACxB;AAED,KAAK,yBAAyB,GAAG,CAC/B,KAAK,EAAE,8BAA8B,KAClC,+BAA+B,CAAC;AA6DrC,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,IAAI,CACX,0BAA0B,EAC1B,SAAS,GAAG,QAAQ,GAAG,cAAc,CACjC,GACL,MAAM,EAAE,CAWV;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0BAA+B,EACxC,a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AA+B,EACxC,aAAa,GAAE,yBAA2D,GACzE,qBAAqB,CA8CvB;AAYD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,oBAAoB,CAAC,CAgF/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-agent-sdk",
3
- "version": "0.8.83",
3
+ "version": "0.8.85",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "SDK for programmatic control of Letta agents",
6
6
  "type": "module",
@@ -43,10 +43,10 @@
43
43
  "ajv": "^8.20.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@letta-ai/letta-code": ">=0.34.53 <0.35.0"
46
+ "@letta-ai/letta-code": ">=0.34.55 <0.35.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@letta-ai/letta-code": "0.34.53",
49
+ "@letta-ai/letta-code": "0.34.55",
50
50
  "@modelcontextprotocol/server-everything": "^2026.7.4",
51
51
  "@types/bun": "latest",
52
52
  "@types/node": "^22.0.0",
@@ -1,4 +1,5 @@
1
1
  import { spawn, type ChildProcess } from "node:child_process";
2
+ import { createHash } from "node:crypto";
2
3
  import { homedir } from "node:os";
3
4
  import { join } from "node:path";
4
5
  import {
@@ -120,6 +121,20 @@ export function buildLocalAppServerProcess(
120
121
  confineMemory: MemoryConfinementLauncher = createMemoryConfinementLauncher,
121
122
  ): LocalAppServerProcess {
122
123
  const env = { ...process.env, ...(options.env ?? {}) };
124
+ if (!options.env?.LETTA_CONFIG_DIR?.trim()) {
125
+ // Keep SDK settings and device identity stable without inheriting a
126
+ // standalone server's config. Hash names so they cannot escape this root.
127
+ const scope =
128
+ options.computerName === undefined
129
+ ? "local"
130
+ : join(
131
+ "computers",
132
+ createHash("sha256").update(options.computerName).digest("hex"),
133
+ );
134
+ env.LETTA_CONFIG_DIR = join(
135
+ targetHomeDirectory(env), ".letta", "agent-sdk", scope,
136
+ );
137
+ }
123
138
  const launcher = [
124
139
  process.execPath,
125
140
  ...buildLocalAppServerArgs(cliPath, options),