@letta-ai/letta-agent-sdk 0.8.84 → 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.
- package/dist/index.js +7 -2
- package/dist/index.js.map +4 -4
- package/dist/local-app-server.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/local-app-server.ts +15 -0
package/dist/index.js
CHANGED
|
@@ -17917,6 +17917,7 @@ class LettaAgentClientBase {
|
|
|
17917
17917
|
|
|
17918
17918
|
// src/local-app-server.ts
|
|
17919
17919
|
import { spawn } from "node:child_process";
|
|
17920
|
+
import { createHash } from "node:crypto";
|
|
17920
17921
|
import { homedir as homedir4 } from "node:os";
|
|
17921
17922
|
import { join as join8 } from "node:path";
|
|
17922
17923
|
|
|
@@ -18399,6 +18400,10 @@ function buildLocalAppServerArgs(cliPath, options = {}) {
|
|
|
18399
18400
|
}
|
|
18400
18401
|
function buildLocalAppServerProcess(cliPath, options = {}, confineMemory = createMemoryConfinementLauncher) {
|
|
18401
18402
|
const env = { ...process.env, ...options.env ?? {} };
|
|
18403
|
+
if (!options.env?.LETTA_CONFIG_DIR?.trim()) {
|
|
18404
|
+
const scope = options.computerName === undefined ? "local" : join8("computers", createHash("sha256").update(options.computerName).digest("hex"));
|
|
18405
|
+
env.LETTA_CONFIG_DIR = join8(targetHomeDirectory(env), ".letta", "agent-sdk", scope);
|
|
18406
|
+
}
|
|
18402
18407
|
const launcher = [
|
|
18403
18408
|
process.execPath,
|
|
18404
18409
|
...buildLocalAppServerArgs(cliPath, options)
|
|
@@ -35568,7 +35573,7 @@ class StreamableHTTPClientTransport {
|
|
|
35568
35573
|
}
|
|
35569
35574
|
var DEFAULT_CLIENT_INFO = {
|
|
35570
35575
|
name: "letta-code",
|
|
35571
|
-
version: "0.34.
|
|
35576
|
+
version: "0.34.55"
|
|
35572
35577
|
};
|
|
35573
35578
|
async function connectMcpServer(config2, options = {}) {
|
|
35574
35579
|
let client = new Client(options.clientInfo ?? DEFAULT_CLIENT_INFO);
|
|
@@ -36596,4 +36601,4 @@ export {
|
|
|
36596
36601
|
CloudManagedSandboxExpiredError
|
|
36597
36602
|
};
|
|
36598
36603
|
|
|
36599
|
-
//# debugId=
|
|
36604
|
+
//# debugId=4F23D27DA38D94B264756E2164756E21
|