@letta-ai/letta-code 0.34.52 → 0.34.54

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 (51) hide show
  1. package/dist/mcp-client.js +2 -2
  2. package/dist/mcp-client.js.map +1 -1
  3. package/dist/mcp-oauth.js +2 -2
  4. package/dist/mcp-oauth.js.map +1 -1
  5. package/dist/types/agent/subagents/subagent-refusal.d.ts +6 -0
  6. package/dist/types/agent/subagents/subagent-refusal.d.ts.map +1 -0
  7. package/dist/types/backend/api/request.d.ts +1 -1
  8. package/dist/types/backend/api/request.d.ts.map +1 -1
  9. package/dist/types/backend/backend.d.ts.map +1 -1
  10. package/dist/types/reminders/catalog.d.ts +1 -1
  11. package/dist/types/reminders/catalog.d.ts.map +1 -1
  12. package/dist/types/reminders/engine.d.ts.map +1 -1
  13. package/dist/types/reminders/state.d.ts +2 -0
  14. package/dist/types/reminders/state.d.ts.map +1 -1
  15. package/dist/types/reminders/variables.d.ts +8 -0
  16. package/dist/types/reminders/variables.d.ts.map +1 -0
  17. package/dist/types/runtime-context.d.ts +2 -0
  18. package/dist/types/runtime-context.d.ts.map +1 -1
  19. package/dist/types/tools/external-tool-execution.d.ts.map +1 -1
  20. package/dist/types/tools/external-tool-types.d.ts +1 -0
  21. package/dist/types/tools/external-tool-types.d.ts.map +1 -1
  22. package/dist/types/tools/impl/bash.d.ts +1 -0
  23. package/dist/types/tools/impl/bash.d.ts.map +1 -1
  24. package/dist/types/tools/impl/exec-command.d.ts +1 -0
  25. package/dist/types/tools/impl/exec-command.d.ts.map +1 -1
  26. package/dist/types/tools/impl/monitor.d.ts +1 -0
  27. package/dist/types/tools/impl/monitor.d.ts.map +1 -1
  28. package/dist/types/tools/impl/native-session-capture.d.ts.map +1 -1
  29. package/dist/types/tools/impl/native-session-owner.d.ts +10 -0
  30. package/dist/types/tools/impl/native-session-owner.d.ts.map +1 -0
  31. package/dist/types/tools/impl/remote-external-coding-agent.d.ts.map +1 -1
  32. package/dist/types/tools/impl/task.d.ts.map +1 -1
  33. package/dist/types/tools/manager.d.ts.map +1 -1
  34. package/dist/types/tools/secret-substitution.d.ts +7 -0
  35. package/dist/types/tools/secret-substitution.d.ts.map +1 -1
  36. package/dist/types/tools/toolset.d.ts +1 -0
  37. package/dist/types/tools/toolset.d.ts.map +1 -1
  38. package/dist/types/types/external-tool-protocol.d.ts +2 -0
  39. package/dist/types/types/external-tool-protocol.d.ts.map +1 -1
  40. package/dist/types/utils/variables-store.d.ts +26 -0
  41. package/dist/types/utils/variables-store.d.ts.map +1 -0
  42. package/dist/types/websocket/listener/background-process-snapshot.d.ts +2 -0
  43. package/dist/types/websocket/listener/background-process-snapshot.d.ts.map +1 -1
  44. package/dist/types/websocket/listener/runtime.d.ts.map +1 -1
  45. package/dist/types/websocket/listener/types.d.ts +2 -0
  46. package/dist/types/websocket/listener/types.d.ts.map +1 -1
  47. package/letta.js +3281 -2626
  48. package/npm-shrinkwrap.json +19 -19
  49. package/package.json +2 -2
  50. package/scripts/source-file-size-baseline.json +1 -1
  51. package/skills/self-configuration/SKILL.md +14 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.34.52",
3
+ "version": "0.34.54",
4
4
  "lockfileVersion": 3,
5
5
  "packages": {
6
6
  "node_modules/@alcalzone/ansi-tokenize": {
@@ -128,15 +128,15 @@
128
128
  }
129
129
  },
130
130
  "node_modules/@aws-sdk/credential-provider-ini": {
131
- "version": "3.973.29",
132
- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.29.tgz",
133
- "integrity": "sha512-/idO4bVjw34b1OiNxDqFNr3BsPg9dRm1iS6XM/rTqA33RfUgTuwBCFFCz/TwxNHkrQ45tp+RpKE8P609Ino8XQ==",
131
+ "version": "3.973.30",
132
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.30.tgz",
133
+ "integrity": "sha512-r6r6499GWoGN943NA5YEhBEQ6TEOGTf7tTOBhHd/zw0UbNvSzd1/zPCNcDkPmRarA+e24X7KgxutqxjoWcskBg==",
134
134
  "license": "Apache-2.0",
135
135
  "dependencies": {
136
136
  "@aws-sdk/core": "^3.981.0",
137
137
  "@aws-sdk/credential-provider-env": "^3.972.84",
138
138
  "@aws-sdk/credential-provider-http": "^3.972.86",
139
- "@aws-sdk/credential-provider-login": "^3.972.91",
139
+ "@aws-sdk/credential-provider-login": "^3.972.92",
140
140
  "@aws-sdk/credential-provider-process": "^3.972.84",
141
141
  "@aws-sdk/credential-provider-sso": "^3.973.28",
142
142
  "@aws-sdk/credential-provider-web-identity": "^3.972.90",
@@ -152,9 +152,9 @@
152
152
  }
153
153
  },
154
154
  "node_modules/@aws-sdk/credential-provider-login": {
155
- "version": "3.972.91",
156
- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.91.tgz",
157
- "integrity": "sha512-MujcVZc7mnodrsp85NX0QpnQrt7kY6zbVUl+TcvzJEZzgEQkRj4iopj0kNs3uXJUArpkA64Rxa0ga86qdx0gag==",
155
+ "version": "3.972.92",
156
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.92.tgz",
157
+ "integrity": "sha512-96bcp9Pe/Xd60OEwncZ+kAQTQSu+fJnpUGz1qE6ghF5jnETmrk8XMU86mIP3lolvnCgR61XbZ+Ht6hdBjiQOmQ==",
158
158
  "license": "Apache-2.0",
159
159
  "dependencies": {
160
160
  "@aws-sdk/core": "^3.981.0",
@@ -169,14 +169,14 @@
169
169
  }
170
170
  },
171
171
  "node_modules/@aws-sdk/credential-provider-node": {
172
- "version": "3.972.96",
173
- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.96.tgz",
174
- "integrity": "sha512-tBunyyRnxMvKsCn/pu1QrIxUYZ4Z25LkV8zGkFGpSE/YmI2W4m8SLQzloG/hZlelGP2vLRGtIQc5w1+DoXCK1A==",
172
+ "version": "3.972.97",
173
+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.97.tgz",
174
+ "integrity": "sha512-E4a0IXXJVsIdo/K9roX4JAEfI0JJr7KTPymkbKgETRDqEcLygE4ZlLTe24+7Qkh8Dl5YpnPd+Tt0DOPJDFXIwA==",
175
175
  "license": "Apache-2.0",
176
176
  "dependencies": {
177
177
  "@aws-sdk/credential-provider-env": "^3.972.84",
178
178
  "@aws-sdk/credential-provider-http": "^3.972.86",
179
- "@aws-sdk/credential-provider-ini": "^3.973.29",
179
+ "@aws-sdk/credential-provider-ini": "^3.973.30",
180
180
  "@aws-sdk/credential-provider-process": "^3.972.84",
181
181
  "@aws-sdk/credential-provider-sso": "^3.973.28",
182
182
  "@aws-sdk/credential-provider-web-identity": "^3.972.90",
@@ -407,9 +407,9 @@
407
407
  }
408
408
  },
409
409
  "node_modules/@babel/runtime": {
410
- "version": "7.29.13",
411
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.13.tgz",
412
- "integrity": "sha512-v+oN26xP4YIlQsbQ/CbTH1WG5m/l/DjKKZNy/Kp3f/AFvbgt7Em/D0FeMM3O2hX0YzeN2M16W8lOpyhIkfCBcQ==",
410
+ "version": "7.29.14",
411
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.14.tgz",
412
+ "integrity": "sha512-Y5tqevQaUAZhhj82BpYMNC1ssvLQTVAfwKdm8iy8qwmhvC2/CpcAu8OC+QEtjM7pMk7knx83u1Qj8gzkicyelw==",
413
413
  "license": "MIT",
414
414
  "engines": {
415
415
  "node": ">=6.9.0"
@@ -2611,9 +2611,9 @@
2611
2611
  "license": "MIT"
2612
2612
  },
2613
2613
  "node_modules/encodeurl": {
2614
- "version": "2.0.1",
2615
- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.1.tgz",
2616
- "integrity": "sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A==",
2614
+ "version": "2.0.2",
2615
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.2.tgz",
2616
+ "integrity": "sha512-ddmxiyS6ETq/v5/+mdA4fykK7JgEmqcShrGmQFTaKf5o43tL8XLuMzNLLsspuIC3/qGupS7Ci2TF+feJRkYY0w==",
2617
2617
  "license": "MIT",
2618
2618
  "engines": {
2619
2619
  "node": ">= 0.8"
@@ -5080,7 +5080,7 @@
5080
5080
  },
5081
5081
  "": {
5082
5082
  "name": "@letta-ai/letta-code",
5083
- "version": "0.34.52",
5083
+ "version": "0.34.54",
5084
5084
  "dependencies": {
5085
5085
  "@cursor/sdk": "1.1.0",
5086
5086
  "@earendil-works/pi-ai": "^0.99.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.34.52",
3
+ "version": "0.34.54",
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-7PIcGgAnMrjT06e/dqxjBeStMv2uHTkHT/5bdQfllH7a/7lMj8HAKzO188qdasUFx3R8ZuKbRJL8o7JKyRVjJA==",
290
+ "lettaRuntimeGraphSha512": "sha512-4ud3AFwQjvzJypKSndpdwNZurRU2pQnEsd51dNxU0ZUxUPBd4nJUbVcvBZlA9OIfOXDbD5rMrcPxaBW6RweSgQ==",
291
291
  "patchedDependencies": {
292
292
  "@earendil-works/pi-ai@0.99.1": "patches/@earendil-works%2Fpi-ai@0.99.1.patch"
293
293
  }
@@ -33,7 +33,7 @@
33
33
  "src/permissions/read-only-shell.ts": 1969,
34
34
  "src/settings-manager.test.ts": 1635,
35
35
  "src/settings-manager.ts": 2092,
36
- "src/tools/manager.ts": 2587,
36
+ "src/tools/manager.ts": 2582,
37
37
  "src/tools/tool-execution-context.test.ts": 1025,
38
38
  "src/types/protocol_v2.ts": 2409,
39
39
  "src/websocket/listen-client-concurrency.test.ts": 2519,
@@ -22,6 +22,7 @@ The important part is choosing the right layer. Do not smear a preference into d
22
22
  | Skills | Reusable procedural knowledge or bundled scripts | Load `creating-skills` or `acquiring-skills` |
23
23
  | Channels | Slack/Discord/Telegram/WhatsApp/Signal accounts, pairing, routing, listener state | Use `letta channels` or channel commands |
24
24
  | Schedules | Reminders and recurring prompts | Load `scheduling-tasks` and use `letta cron` |
25
+ | Agent variables | Plain, readable `$NAME` values for shell commands | Use `letta variable` (or `/variable` in a session) |
25
26
  | Agent secrets | Per-agent `$NAME` credential values for shell commands | Use `letta secret` (or `/secret` in a session) |
26
27
 
27
28
  Decision rule: if the model should remember and reason about it, use memory. If the runtime must enforce it or route it before the model decides anything, use settings, API fields, mods, channels, or schedules.
@@ -352,9 +353,21 @@ Use skills when the user wants you to become good at a repeatable workflow. Sour
352
353
 
353
354
  Load `creating-skills` to create or edit a skill. Load `acquiring-skills` when the user asks for a capability you do not already have. Project, global, bundled, and agent-owned skills have different visibility; verify the target scope before changing skills another agent may load.
354
355
 
356
+ ## Agent variables
357
+
358
+ Variables are plain values the agent can read. They are never redacted. Use them for usernames, emails, URLs and other non-secret configuration. Never put a password, token or key in a variable. For a login, store the username as a variable (`X_USERNAME`) and the password as a secret (`X_PASSWORD`), and reference both in one command. Reference `$NAME` in a shell command to load a variable into the child shell's environment. A secret wins if it has the same name.
359
+
360
+ ```bash
361
+ letta variable set X_USERNAME user@example.com
362
+ letta variable list # names and values
363
+ letta variable unset X_USERNAME
364
+ ```
365
+
366
+ Use `--agent <agent-id>` to target another agent. `set` also supports `--env SOURCE_VAR` and `--stdin`. Cloud agents store variables server-side; local agents store them as plain JSON. Running sessions refresh variables within a minute.
367
+
355
368
  ## Agent secrets
356
369
 
357
- Agent-scoped secrets hold credential values that are referenced as `$NAME` in shell commands. Cloud agents store them server-side on the agent; local agents use OS secure storage. The harness substitutes `$NAME` at exec time and scrubs values from tool output, so values never enter agent context.
370
+ Agent-scoped secrets hold credential values that are referenced as `$NAME` in shell commands. Cloud agents store them server-side on the agent; local agents use OS secure storage. The harness substitutes `$NAME` at exec time and scrubs values from tool output, so values never enter agent context. Because a secret's value is redacted wherever it appears, store only credentials as secrets; keep harmless identifiers like usernames in variables.
358
371
 
359
372
  ```bash
360
373
  letta secret list # names only, never values