@letta-ai/letta-code 0.34.44 → 0.34.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.34.44",
3
+ "version": "0.34.45",
4
4
  "lettaStartupLogProtocol": 1,
5
5
  "lettaConfigDirProtocol": 1,
6
6
  "description": "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
@@ -153,7 +153,6 @@
153
153
  "dependencies": {
154
154
  "@cursor/sdk": "1.1.0",
155
155
  "@earendil-works/pi-ai": "^0.99.1",
156
- "@janhapke/sharp-electron": "0.35.3-electron.1",
157
156
  "@letta-ai/letta-agent-sdk": "0.8.38",
158
157
  "@letta-ai/letta-client": "^1.10.2",
159
158
  "@letta-ai/trajectory": "0.2.0",
@@ -169,7 +168,7 @@
169
168
  "node-pty": "^1.1.0",
170
169
  "open": "^10.2.0",
171
170
  "react": "18.2.0",
172
- "sharp": "^0.34.5",
171
+ "sharp": "^0.35.5",
173
172
  "shiki": "^4.0.2",
174
173
  "strip-ansi": "^7.2.0",
175
174
  "ws": "^8.19.0"
@@ -278,7 +277,7 @@
278
277
  },
279
278
  "lettaLifecycleProtocol": 1,
280
279
  "lettaRuntimeGraphProtocol": 1,
281
- "lettaRuntimeGraphSha512": "sha512-x6CZjpXvXckGCycYwdxVs0W3XTf6uzPH1il5cUWVWlNkC2w7naCOb53kNlJ0PC9/t6XHtxAPZhqhWJUlOKG2lg==",
280
+ "lettaRuntimeGraphSha512": "sha512-WIZjjGgnUTIQDdGkiMGGmYxhKDr34pXqcEUPqh9YvmdauZnqYCj0OeYE8ltjcpPNYevvXHP32Edeo+arrylfXA==",
282
281
  "patchedDependencies": {
283
282
  "@earendil-works/pi-ai@0.99.1": "patches/@earendil-works%2Fpi-ai@0.99.1.patch"
284
283
  }
@@ -1,4 +1,4 @@
1
- // Exercise the published Node worker with a newer Sharp installation in an
1
+ // Exercise the published Node worker with a standalone Sharp installation in an
2
2
  // ancestor directory. Sharp's JS and native binding must come from the same
3
3
  // installed package, rather than mixing bundled JS with a runtime binding.
4
4
  import assert from "node:assert/strict";
@@ -20,7 +20,7 @@ try {
20
20
  "--ignore-scripts",
21
21
  "--no-audit",
22
22
  "--no-fund",
23
- "sharp@0.35.3",
23
+ "sharp@0.35.5",
24
24
  ],
25
25
  { encoding: "utf8" },
26
26
  );
@@ -33,7 +33,7 @@ try {
33
33
  );
34
34
  const require = createRequire(worker);
35
35
  const sharp = require("sharp");
36
- assert.equal(sharp.versions.sharp, "0.35.3");
36
+ assert.equal(sharp.versions.sharp, "0.35.5");
37
37
  const png = await sharp({
38
38
  create: {
39
39
  width: 2,
@@ -62,7 +62,32 @@ try {
62
62
  assert.deepEqual(Buffer.from(decoded.data, "base64"), image);
63
63
  }
64
64
 
65
- console.log("Published image worker decoded PNG and JPEG with Sharp 0.35.3");
65
+ const oversized = await sharp({
66
+ create: {
67
+ width: 2500,
68
+ height: 100,
69
+ channels: 3,
70
+ background: { r: 70, g: 100, b: 130 },
71
+ },
72
+ })
73
+ .png()
74
+ .toBuffer();
75
+ const resized = spawnSync(process.execPath, [worker, "image/png"], {
76
+ input: oversized,
77
+ encoding: "utf8",
78
+ });
79
+ assert.equal(resized.status, 0, resized.stderr || resized.error?.message);
80
+ const output = JSON.parse(resized.stdout);
81
+ assert.equal(output.resized, true);
82
+ assert.equal(output.width, 2000);
83
+ assert.equal(output.height, 80);
84
+ const metadata = await sharp(Buffer.from(output.data, "base64")).metadata();
85
+ assert.equal(metadata.width, output.width);
86
+ assert.equal(metadata.height, output.height);
87
+
88
+ console.log(
89
+ "Published image worker decoded PNG/JPEG and resized PNG with Sharp 0.35.5",
90
+ );
66
91
  } finally {
67
92
  rmSync(root, { recursive: true, force: true });
68
93
  }
@@ -4,12 +4,12 @@
4
4
  "src/backend/local-backend.test.ts": 2472,
5
5
  "src/backend/local/local-store.ts": 3258,
6
6
  "src/backend/pi-stream-adapter.test.ts": 1255,
7
- "src/cli/app/AppCoordinator.tsx": 5131,
7
+ "src/cli/app/AppCoordinator.tsx": 5129,
8
8
  "src/cli/app/AppView.tsx": 1732,
9
9
  "src/cli/app/use-approval-flow.ts": 1099,
10
10
  "src/cli/app/use-configuration-handlers.ts": 1400,
11
- "src/cli/app/use-conversation-loop.ts": 2849,
12
- "src/cli/app/use-submit-handler.ts": 3791,
11
+ "src/cli/app/use-conversation-loop.ts": 2800,
12
+ "src/cli/app/use-submit-handler.ts": 3788,
13
13
  "src/cli/components/AgentSelector.tsx": 1104,
14
14
  "src/cli/components/InputRich.tsx": 2124,
15
15
  "src/cli/components/ModelSelector.tsx": 1259,
@@ -12,7 +12,6 @@ import { dirname, join, resolve } from "node:path";
12
12
 
13
13
  const root = process.cwd();
14
14
  const app = resolve(process.argv[2]);
15
- // sharp-electron is only reachable under Electron, never our bundled Node.
16
15
  // @shikijs/langs is external in the bundle so lazily-loaded grammars
17
16
  // (LET-13149) resolve from here at runtime.
18
17
  const roots = [
@@ -102,6 +102,9 @@ letta sandbox expose <port> --expires-in <duration>
102
102
 
103
103
  Choose the lifetime explicitly with a whole-second, minute, or hour duration such as `30m`, `2h`, or `24h`. The supported range is 1 minute through 24 hours; there is no implicit default. This command works only inside the managed Cloud sandbox that owns the app. It does not accept `--agent` or `--conversation`; run it in the same sandbox as the service. The JSON result contains `{ url, port, expiresAt }`. Anyone holding the URL can access the app until the exact `expiresAt`, so share it only where the user requested.
104
104
 
105
+ An exposed app only works while its sandbox is running. The sandbox sleeps after it has been idle for a while, and the app's server process does not survive a restart.
106
+ Treat exposed apps as temporary demos. Anything meant to stay up goes on Vercel.
107
+
105
108
  To add time to the same URL and port, extend the active exposure before it expires:
106
109
 
107
110
  ```bash