@letta-ai/letta-code 0.34.63 → 0.34.65

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.
Files changed (58) hide show
  1. package/dist/agent-presets.js +5 -5
  2. package/dist/agent-presets.js.map +1 -1
  3. package/dist/mcp-client.js +2 -2
  4. package/dist/mcp-client.js.map +1 -1
  5. package/dist/mcp-oauth.js +2 -2
  6. package/dist/mcp-oauth.js.map +1 -1
  7. package/dist/types/backend/api/agent-message.d.ts +2 -0
  8. package/dist/types/backend/api/agent-message.d.ts.map +1 -1
  9. package/dist/types/backend/api/metadata.d.ts +0 -12
  10. package/dist/types/backend/api/metadata.d.ts.map +1 -1
  11. package/dist/types/backend/api/unified-mcp.d.ts.map +1 -1
  12. package/dist/types/backend/local/local-backend.d.ts.map +1 -1
  13. package/dist/types/backend/local/local-message-list-options.d.ts +7 -0
  14. package/dist/types/backend/local/local-message-list-options.d.ts.map +1 -0
  15. package/dist/types/backend/local/local-store.d.ts +2 -0
  16. package/dist/types/backend/local/local-store.d.ts.map +1 -1
  17. package/dist/types/backend/local/local-transcript-history.d.ts +8 -0
  18. package/dist/types/backend/local/local-transcript-history.d.ts.map +1 -1
  19. package/dist/types/backend/local/local-transcript.d.ts +1 -0
  20. package/dist/types/backend/local/local-transcript.d.ts.map +1 -1
  21. package/dist/types/backend/local/system-prompt-compilation.d.ts +2 -1
  22. package/dist/types/backend/local/system-prompt-compilation.d.ts.map +1 -1
  23. package/dist/types/experiments/manager.d.ts.map +1 -1
  24. package/dist/types/experiments/types.d.ts +1 -1
  25. package/dist/types/experiments/types.d.ts.map +1 -1
  26. package/dist/types/reminders/engine.d.ts +3 -3
  27. package/dist/types/reminders/engine.d.ts.map +1 -1
  28. package/dist/types/tools/impl/claude-steer-timeouts.d.ts +5 -0
  29. package/dist/types/tools/impl/claude-steer-timeouts.d.ts.map +1 -1
  30. package/dist/types/tools/impl/external-coding-agent.d.ts +1 -1
  31. package/dist/types/tools/impl/external-coding-agent.d.ts.map +1 -1
  32. package/dist/types/tools/impl/external-fork-context.d.ts +6 -0
  33. package/dist/types/tools/impl/external-fork-context.d.ts.map +1 -1
  34. package/dist/types/tools/impl/github-pull-request-cloud.d.ts +3 -1
  35. package/dist/types/tools/impl/github-pull-request-cloud.d.ts.map +1 -1
  36. package/dist/types/tools/impl/monitor-script.d.ts +1 -0
  37. package/dist/types/tools/impl/monitor-script.d.ts.map +1 -1
  38. package/dist/types/tools/impl/monitor.d.ts +1 -0
  39. package/dist/types/tools/impl/monitor.d.ts.map +1 -1
  40. package/dist/types/tools/impl/remote-connect-retry.d.ts +4 -0
  41. package/dist/types/tools/impl/remote-connect-retry.d.ts.map +1 -0
  42. package/dist/types/tools/impl/remote-external-coding-agent.d.ts.map +1 -1
  43. package/dist/types/tools/impl/remote-follow-up-retry.d.ts +9 -0
  44. package/dist/types/tools/impl/remote-follow-up-retry.d.ts.map +1 -0
  45. package/dist/types/tools/impl/watch-pr-cloud.d.ts +29 -0
  46. package/dist/types/tools/impl/watch-pr-cloud.d.ts.map +1 -0
  47. package/dist/types/tools/impl/watch-pr.d.ts +1 -0
  48. package/dist/types/tools/impl/watch-pr.d.ts.map +1 -1
  49. package/dist/types/types/protocol_v2.d.ts +2 -1
  50. package/dist/types/types/protocol_v2.d.ts.map +1 -1
  51. package/dist/types/utils/task-notifications.d.ts +1 -0
  52. package/dist/types/utils/task-notifications.d.ts.map +1 -1
  53. package/letta.js +420 -171
  54. package/npm-shrinkwrap.json +18 -14
  55. package/package.json +2 -2
  56. package/scripts/source-file-size-baseline.json +2 -2
  57. package/skills/image-generation/SKILL.md +2 -0
  58. package/skills/self-configuration/SKILL.md +7 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.34.63",
3
+ "version": "0.34.65",
4
4
  "lockfileVersion": 3,
5
5
  "packages": {
6
6
  "node_modules/@alcalzone/ansi-tokenize": {
@@ -622,9 +622,9 @@
622
622
  }
623
623
  },
624
624
  "node_modules/@hono/node-server": {
625
- "version": "2.1.8",
626
- "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.8.tgz",
627
- "integrity": "sha512-jdf7FHh6A1lzjpHHQUgxsg2GeER2vMetnAOfeActzcoli6jamlK+NAwL6Dsr5Fl3BS3tYUQzCdtZjU8Qxv7bEA==",
625
+ "version": "2.1.9",
626
+ "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.9.tgz",
627
+ "integrity": "sha512-Sk4NQd3GFY0WZWCzndwFMPwJhtD0y9qjsQ+pjID0/03nK9pxyBCUoUHCho8QYBLBVhi0ssL8UkNPHqbgSOFPIQ==",
628
628
  "license": "MIT",
629
629
  "engines": {
630
630
  "node": ">=20"
@@ -1673,9 +1673,9 @@
1673
1673
  "license": "MIT"
1674
1674
  },
1675
1675
  "node_modules/@smithy/core": {
1676
- "version": "3.40.0",
1677
- "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.40.0.tgz",
1678
- "integrity": "sha512-DssGno52pzZ5m6RlDtyKuBIpZNPg9pqgs0CnNDKz9IatxCsmvNmJNn5Zn6rf77MthZo9wf89OvZFhTY/RwxhxQ==",
1676
+ "version": "3.41.0",
1677
+ "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.41.0.tgz",
1678
+ "integrity": "sha512-fuZ34H1uizS3WgcX9VXG7Uy8od5A5/kCc+CR3NkHLNm2H/BE9AUHG02VIdu8ZB7FYhLqsr/RZbqAoXuOCg/Oxg==",
1679
1679
  "license": "Apache-2.0",
1680
1680
  "dependencies": {
1681
1681
  "@smithy/types": "^4.20.0",
@@ -3147,9 +3147,9 @@
3147
3147
  }
3148
3148
  },
3149
3149
  "node_modules/hono": {
3150
- "version": "4.13.18",
3151
- "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.18.tgz",
3152
- "integrity": "sha512-H9q/E1XizaWstJxUW881dmLxEj+t/TrGGnyxINkm4+sK0qUwsMtFdo2BWI9Vs3cIS19MU6b6iCijoUoEf4f3DA==",
3150
+ "version": "4.13.19",
3151
+ "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.19.tgz",
3152
+ "integrity": "sha512-KmXvQAXwcAHV+muzbIwoJ23niEB5nMoDVr9WcRkU8mvjUECm/1+7v4Jgp7P7a+H6MLFrh+vXrGonGrGS+RQfkA==",
3153
3153
  "license": "MIT",
3154
3154
  "engines": {
3155
3155
  "node": ">=16.9.0"
@@ -4252,9 +4252,9 @@
4252
4252
  }
4253
4253
  },
4254
4254
  "node_modules/router": {
4255
- "version": "2.2.0",
4256
- "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
4257
- "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
4255
+ "version": "2.3.0",
4256
+ "resolved": "https://registry.npmjs.org/router/-/router-2.3.0.tgz",
4257
+ "integrity": "sha512-bpowRfGjEPe8t9R6fJIzhwmyCGAXwKvxBUsgJm+bJukwdcWmUXbMo7p22w7aYmQBPQTUMNqMV39YX0kMou3z8w==",
4258
4258
  "license": "MIT",
4259
4259
  "dependencies": {
4260
4260
  "debug": "^4.4.0",
@@ -4265,6 +4265,10 @@
4265
4265
  },
4266
4266
  "engines": {
4267
4267
  "node": ">= 18"
4268
+ },
4269
+ "funding": {
4270
+ "type": "opencollective",
4271
+ "url": "https://opencollective.com/express"
4268
4272
  }
4269
4273
  },
4270
4274
  "node_modules/run-applescript": {
@@ -5083,7 +5087,7 @@
5083
5087
  },
5084
5088
  "": {
5085
5089
  "name": "@letta-ai/letta-code",
5086
- "version": "0.34.63",
5090
+ "version": "0.34.65",
5087
5091
  "dependencies": {
5088
5092
  "@cursor/sdk": "1.1.0",
5089
5093
  "@earendil-works/pi-ai": "^1.5.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.34.63",
3
+ "version": "0.34.65",
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.",
@@ -287,7 +287,7 @@
287
287
  },
288
288
  "lettaLifecycleProtocol": 1,
289
289
  "lettaRuntimeGraphProtocol": 1,
290
- "lettaRuntimeGraphSha512": "sha512-llGcPR13/WPW010yGdtNGC7Apobzktid+4Ka3zhviUWYP60+sHx9ovVyADbq+eHG9wrgZn9zRpo+7kdJ4mnElw==",
290
+ "lettaRuntimeGraphSha512": "sha512-YBw5454QIS1lIoAD6ih1iX/HMCzk64xnt+DSnT2DImzzMMJXgHXqXap7e1O2wPQbkVfm5HI9Q+5a9KskU8GYRw==",
291
291
  "patchedDependencies": {
292
292
  "@earendil-works/pi-ai@1.5.2": "patches/@earendil-works%2Fpi-ai@1.5.2.patch"
293
293
  }
@@ -2,7 +2,7 @@
2
2
  "src/agent/client-skills.test.ts": 1132,
3
3
  "src/agent/memory-git.ts": 2009,
4
4
  "src/backend/local-backend.test.ts": 2472,
5
- "src/backend/local/local-store.ts": 3258,
5
+ "src/backend/local/local-store.ts": 3247,
6
6
  "src/backend/pi-stream-adapter.test.ts": 1255,
7
7
  "src/cli/app/AppCoordinator.tsx": 5129,
8
8
  "src/cli/app/AppView.tsx": 1732,
@@ -35,7 +35,7 @@
35
35
  "src/settings-manager.ts": 2092,
36
36
  "src/tools/manager.ts": 2582,
37
37
  "src/tools/tool-execution-context.test.ts": 1025,
38
- "src/types/protocol_v2.ts": 2409,
38
+ "src/types/protocol_v2.ts": 2402,
39
39
  "src/websocket/listen-client-concurrency.test.ts": 2519,
40
40
  "src/websocket/listen-client-protocol.test.ts": 5664,
41
41
  "src/websocket/listener/commands/memory.ts": 1114,
@@ -9,6 +9,8 @@ Generate images via Letta's hosted endpoint `POST /v1/images/generations`. The A
9
9
  usually returns base64 image bytes, but some providers return signed image URLs;
10
10
  save either form to a local image file before replying.
11
11
 
12
+ If the ask names a real thing (a product, place, meme, emoji or person), look up what it actually looks like before drawing it. If the real image is all they asked for, post it (slackmojis.com for Slack emoji); otherwise pass it to the generator as a reference so the thing looks right in the new image. A name you don't recognize may be newer than you know, so search it rather than guessing from the words.
13
+
12
14
  ## Example
13
15
 
14
16
  Generate the image, save it locally, then show it inline:
@@ -56,13 +56,15 @@ Local settings, server state, and the current process are different sources of t
56
56
 
57
57
  `letta model` reads and writes through the active backend, so it works the same on every backend. Prefer it over the REST helper scripts for anything model-related.
58
58
 
59
- ### Account credits and model quota
59
+ ### Account credits
60
60
 
61
- Run `letta usage` for a Markdown overview of the current plan, credit balance, and `letta/*` model quota (`lettaTier` only). Report the server's bucket (`full`, `high`, `medium`, `low`, or `empty`) and quota/daily reset timestamps as-is; do not infer exact requests or percentages. Amounts are credits, not dollars; preserve negative balances. An omitted daily reset is shown as unavailable.
61
+ Hosted model quota has been retired; `letta usage` shows Letta credits instead, not provider subscription quota.
62
62
 
63
- The command uses CLI auth and respects `LETTA_API_KEY`/`LETTA_BASE_URL`, not agent or conversation selectors. Credits belong to the organization; user-scoped quota belongs to the authenticated user, not necessarily the person chatting with the agent. In local mode, use `letta --backend cloud usage` only when the user wants Cloud account usage.
63
+ Run `letta usage` for a Markdown overview of the current plan and remaining credit balance. Amounts are credits, not dollars; preserve negative balances.
64
64
 
65
- Use `letta model list` for available models; credits and quota buckets do not guarantee inference availability. `letta usage` does not include session token statistics; the interactive `/usage` command is a separate surface. If either lookup fails, the command exits nonzero without partial usage. Treat that as unavailable data, not zero credits or exhausted quota.
65
+ The command uses CLI auth and respects `LETTA_API_KEY`/`LETTA_BASE_URL`, not agent or conversation selectors. Credits belong to the organization, not necessarily the person chatting with the agent. In local mode, use `letta --backend cloud usage` only when the user wants Cloud account usage.
66
+
67
+ Use `letta model list` for available models; a credit balance does not guarantee inference availability. `letta usage` does not include session token statistics; the interactive `/usage` command is a separate surface. If the balance lookup fails, the command exits nonzero without partial usage. Treat that as unavailable data, not zero credits.
66
68
 
67
69
  ### Billing path when changing models
68
70
 
@@ -70,7 +72,7 @@ The same model can often be reached through more than one route: a connected sub
70
72
 
71
73
  Before switching models, consider how the current model is billed and keep the user on that route unless they asked to change it. Use the current handle, the labels in `letta model list`, and anything the user has said about billing as evidence. If several available handles serve the requested model and you cannot tell which one uses the user's subscription, list the candidates and ask before switching. Do not silently move a user from a subscription to per-token billing.
72
74
 
73
- `letta model list --byok` includes both connected subscriptions and user API keys, so it does not separate the two. `letta usage` covers only Letta credits and `letta/*` quota, not connected subscriptions.
75
+ `letta model list --byok` includes both connected subscriptions and user API keys, so it does not separate the two. `letta usage` covers only Letta credits, not connected subscriptions.
74
76
 
75
77
  ### Harness and server settings
76
78