@letta-ai/letta-agent-sdk 0.8.33 → 0.8.35
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 +16 -15
- package/dist/index.js.map +4 -4
- package/dist/local-app-server.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/local-app-server.ts +23 -14
package/dist/index.js
CHANGED
|
@@ -17791,20 +17791,21 @@ function buildLocalAppServerProcess(cliPath, options = {}, confineMemory = creat
|
|
|
17791
17791
|
process.execPath,
|
|
17792
17792
|
...buildLocalAppServerArgs(cliPath, options)
|
|
17793
17793
|
];
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17794
|
+
const confined = options.filesystemConfinement === "memory" ? confineMemory({ launcher, env: withDefaultMemoryDirectory(env, options) }) : { launcher, env };
|
|
17795
|
+
const slice = env.LETTA_WORKLOAD_SYSTEMD_SLICE?.trim();
|
|
17796
|
+
const managedLauncher = process.platform === "linux" && slice ? [
|
|
17797
|
+
"systemd-run",
|
|
17798
|
+
"--scope",
|
|
17799
|
+
"--quiet",
|
|
17800
|
+
"--collect",
|
|
17801
|
+
"--property=TimeoutStopSec=5s",
|
|
17802
|
+
`--slice=${slice}`,
|
|
17803
|
+
"--",
|
|
17804
|
+
...confined.launcher
|
|
17805
|
+
] : confined.launcher;
|
|
17805
17806
|
return {
|
|
17806
|
-
command:
|
|
17807
|
-
args:
|
|
17807
|
+
command: managedLauncher[0],
|
|
17808
|
+
args: managedLauncher.slice(1),
|
|
17808
17809
|
env: confined.env
|
|
17809
17810
|
};
|
|
17810
17811
|
}
|
|
@@ -34698,7 +34699,7 @@ class StreamableHTTPClientTransport {
|
|
|
34698
34699
|
}
|
|
34699
34700
|
var DEFAULT_CLIENT_INFO = {
|
|
34700
34701
|
name: "letta-code",
|
|
34701
|
-
version: "0.34.
|
|
34702
|
+
version: "0.34.8"
|
|
34702
34703
|
};
|
|
34703
34704
|
async function connectMcpServer(config2, options = {}) {
|
|
34704
34705
|
let client = new Client(options.clientInfo ?? DEFAULT_CLIENT_INFO);
|
|
@@ -35681,4 +35682,4 @@ export {
|
|
|
35681
35682
|
CloudManagedSandboxExpiredError
|
|
35682
35683
|
};
|
|
35683
35684
|
|
|
35684
|
-
//# debugId=
|
|
35685
|
+
//# debugId=741CB745925A327364756E2164756E21
|