@letta-ai/letta-code 0.34.53 → 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.
- package/dist/mcp-client.js +2 -2
- package/dist/mcp-client.js.map +1 -1
- package/dist/mcp-oauth.js +2 -2
- package/dist/mcp-oauth.js.map +1 -1
- package/dist/types/agent/subagents/subagent-refusal.d.ts +6 -0
- package/dist/types/agent/subagents/subagent-refusal.d.ts.map +1 -0
- package/dist/types/backend/api/request.d.ts +1 -1
- package/dist/types/backend/api/request.d.ts.map +1 -1
- package/dist/types/reminders/catalog.d.ts +1 -1
- package/dist/types/reminders/catalog.d.ts.map +1 -1
- package/dist/types/reminders/engine.d.ts.map +1 -1
- package/dist/types/reminders/state.d.ts +2 -0
- package/dist/types/reminders/state.d.ts.map +1 -1
- package/dist/types/reminders/variables.d.ts +8 -0
- package/dist/types/reminders/variables.d.ts.map +1 -0
- package/dist/types/runtime-context.d.ts +2 -0
- package/dist/types/runtime-context.d.ts.map +1 -1
- package/dist/types/tools/external-tool-execution.d.ts.map +1 -1
- package/dist/types/tools/external-tool-types.d.ts +1 -0
- package/dist/types/tools/external-tool-types.d.ts.map +1 -1
- package/dist/types/tools/impl/bash.d.ts +1 -0
- package/dist/types/tools/impl/bash.d.ts.map +1 -1
- package/dist/types/tools/impl/exec-command.d.ts +1 -0
- package/dist/types/tools/impl/exec-command.d.ts.map +1 -1
- package/dist/types/tools/impl/monitor.d.ts +1 -0
- package/dist/types/tools/impl/monitor.d.ts.map +1 -1
- package/dist/types/tools/impl/native-session-capture.d.ts.map +1 -1
- package/dist/types/tools/impl/native-session-owner.d.ts +10 -0
- package/dist/types/tools/impl/native-session-owner.d.ts.map +1 -0
- package/dist/types/tools/impl/remote-external-coding-agent.d.ts.map +1 -1
- package/dist/types/tools/impl/task.d.ts.map +1 -1
- package/dist/types/tools/manager.d.ts.map +1 -1
- package/dist/types/tools/secret-substitution.d.ts +7 -0
- package/dist/types/tools/secret-substitution.d.ts.map +1 -1
- package/dist/types/tools/toolset.d.ts +1 -0
- package/dist/types/tools/toolset.d.ts.map +1 -1
- package/dist/types/types/external-tool-protocol.d.ts +2 -0
- package/dist/types/types/external-tool-protocol.d.ts.map +1 -1
- package/dist/types/utils/variables-store.d.ts +26 -0
- package/dist/types/utils/variables-store.d.ts.map +1 -0
- package/dist/types/websocket/listener/background-process-snapshot.d.ts +2 -0
- package/dist/types/websocket/listener/background-process-snapshot.d.ts.map +1 -1
- package/dist/types/websocket/listener/runtime.d.ts.map +1 -1
- package/dist/types/websocket/listener/types.d.ts +2 -0
- package/dist/types/websocket/listener/types.d.ts.map +1 -1
- package/letta.js +3260 -2605
- package/npm-shrinkwrap.json +5 -5
- package/package.json +2 -2
- package/scripts/source-file-size-baseline.json +1 -1
- package/skills/self-configuration/SKILL.md +14 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letta-ai/letta-code",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.54",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"packages": {
|
|
6
6
|
"node_modules/@alcalzone/ansi-tokenize": {
|
|
@@ -2611,9 +2611,9 @@
|
|
|
2611
2611
|
"license": "MIT"
|
|
2612
2612
|
},
|
|
2613
2613
|
"node_modules/encodeurl": {
|
|
2614
|
-
"version": "2.0.
|
|
2615
|
-
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.
|
|
2616
|
-
"integrity": "sha512-
|
|
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.
|
|
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.
|
|
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-
|
|
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":
|
|
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
|