@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 CHANGED
@@ -17791,20 +17791,21 @@ function buildLocalAppServerProcess(cliPath, options = {}, confineMemory = creat
17791
17791
  process.execPath,
17792
17792
  ...buildLocalAppServerArgs(cliPath, options)
17793
17793
  ];
17794
- if (options.filesystemConfinement !== "memory") {
17795
- return {
17796
- command: launcher[0],
17797
- args: launcher.slice(1),
17798
- env
17799
- };
17800
- }
17801
- const confined = confineMemory({
17802
- launcher,
17803
- env: withDefaultMemoryDirectory(env, options)
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: confined.launcher[0],
17807
- args: confined.launcher.slice(1),
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.7"
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=9D80DA611C5FC8D964756E2164756E21
35685
+ //# debugId=741CB745925A327364756E2164756E21