@letta-ai/letta-code 0.34.61 → 0.34.63
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/channels-public.js +2 -1
- package/dist/channels-public.js.map +3 -3
- 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/remote-turn-wait.d.ts.map +1 -1
- package/dist/types/backend/api/monitors.d.ts +11 -2
- package/dist/types/backend/api/monitors.d.ts.map +1 -1
- package/dist/types/channels/xml.d.ts +5 -0
- package/dist/types/channels/xml.d.ts.map +1 -1
- package/dist/types/channels-public.d.ts +1 -0
- package/dist/types/channels-public.d.ts.map +1 -1
- package/dist/types/cli/helpers/session-context.d.ts +2 -1
- package/dist/types/cli/helpers/session-context.d.ts.map +1 -1
- package/dist/types/cron/runner.d.ts +12 -14
- package/dist/types/cron/runner.d.ts.map +1 -1
- package/dist/types/cron/scheduler.d.ts.map +1 -1
- package/dist/types/queue/queue-runtime.d.ts +1 -1
- package/dist/types/queue/queue-runtime.d.ts.map +1 -1
- package/dist/types/queue/turn-queue-runtime.d.ts +4 -0
- package/dist/types/queue/turn-queue-runtime.d.ts.map +1 -1
- package/dist/types/runtime-context.d.ts +4 -0
- package/dist/types/runtime-context.d.ts.map +1 -1
- package/dist/types/tools/external-tool-background.d.ts.map +1 -1
- package/dist/types/tools/impl/claude-steer-timeouts.d.ts +20 -0
- package/dist/types/tools/impl/claude-steer-timeouts.d.ts.map +1 -0
- package/dist/types/tools/impl/claude-stream-session-types.d.ts +112 -0
- package/dist/types/tools/impl/claude-stream-session-types.d.ts.map +1 -0
- package/dist/types/tools/impl/claude-stream-session.d.ts +2 -46
- package/dist/types/tools/impl/claude-stream-session.d.ts.map +1 -1
- package/dist/types/tools/impl/external-coding-agent.d.ts +2 -2
- package/dist/types/tools/impl/external-coding-agent.d.ts.map +1 -1
- package/dist/types/tools/impl/fork-prompt.d.ts +4 -0
- package/dist/types/tools/impl/fork-prompt.d.ts.map +1 -0
- package/dist/types/tools/impl/kill-bash.d.ts.map +1 -1
- package/dist/types/tools/impl/monitor-args.d.ts +32 -0
- package/dist/types/tools/impl/monitor-args.d.ts.map +1 -0
- package/dist/types/tools/impl/monitor-resume.d.ts +7 -0
- package/dist/types/tools/impl/monitor-resume.d.ts.map +1 -0
- package/dist/types/tools/impl/monitor-script.d.ts +1 -1
- package/dist/types/tools/impl/monitor-script.d.ts.map +1 -1
- package/dist/types/tools/impl/monitor-state.d.ts +4 -0
- package/dist/types/tools/impl/monitor-state.d.ts.map +1 -1
- package/dist/types/tools/impl/monitor-timeout.d.ts +1 -0
- package/dist/types/tools/impl/monitor-timeout.d.ts.map +1 -1
- package/dist/types/tools/impl/monitor.d.ts +2 -32
- package/dist/types/tools/impl/monitor.d.ts.map +1 -1
- package/dist/types/tools/impl/process_manager.d.ts +1 -0
- package/dist/types/tools/impl/process_manager.d.ts.map +1 -1
- package/dist/types/tools/impl/remote-external-coding-agent.d.ts +1 -1
- package/dist/types/tools/impl/remote-external-coding-agent.d.ts.map +1 -1
- package/dist/types/tools/impl/send-agent-message.d.ts.map +1 -1
- package/dist/types/tools/impl/shell-env.d.ts.map +1 -1
- package/dist/types/tools/impl/subagent-computer.d.ts +5 -5
- package/dist/types/tools/impl/task.d.ts.map +1 -1
- package/dist/types/tools/impl/wake.d.ts.map +1 -1
- package/dist/types/tools/impl/watch-pr.d.ts +2 -1
- package/dist/types/tools/impl/watch-pr.d.ts.map +1 -1
- package/dist/types/tools/task-tool-assets.d.ts +1 -1
- package/dist/types/tools/task-tool-assets.d.ts.map +1 -1
- package/dist/types/tools/toolset-catalog.d.ts +1 -1
- package/dist/types/tools/toolset.d.ts +1 -1
- package/dist/types/tools/toolset.d.ts.map +1 -1
- package/dist/types/types/subagent-protocol.d.ts +1 -1
- package/dist/types/types/subagent-protocol.d.ts.map +1 -1
- package/dist/types/utils/message-queue-bridge.d.ts +1 -1
- package/dist/types/utils/message-queue-bridge.d.ts.map +1 -1
- package/dist/types/utils/task-notifications.d.ts +5 -0
- package/dist/types/utils/task-notifications.d.ts.map +1 -1
- package/dist/types/websocket/listener/interrupted-turn-disk-reserve.d.ts +6 -0
- package/dist/types/websocket/listener/interrupted-turn-disk-reserve.d.ts.map +1 -0
- package/dist/types/websocket/listener/interrupted-turn-record.d.ts.map +1 -1
- package/letta.js +846 -401
- package/npm-shrinkwrap.json +5 -5
- package/package.json +2 -2
- package/scripts/source-file-size-baseline.json +1 -1
- package/skills/scheduling-tasks/SKILL.md +6 -20
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.63",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"packages": {
|
|
6
6
|
"node_modules/@alcalzone/ansi-tokenize": {
|
|
@@ -2444,9 +2444,9 @@
|
|
|
2444
2444
|
}
|
|
2445
2445
|
},
|
|
2446
2446
|
"node_modules/cron-parser": {
|
|
2447
|
-
"version": "5.10.
|
|
2448
|
-
"resolved": "https://registry.npmjs.org/cron-parser/-/cron-parser-5.10.
|
|
2449
|
-
"integrity": "sha512-
|
|
2447
|
+
"version": "5.10.6",
|
|
2448
|
+
"resolved": "https://registry.npmjs.org/cron-parser/-/cron-parser-5.10.6.tgz",
|
|
2449
|
+
"integrity": "sha512-kpoxgQyveO1l29nw+FWdvmotyV7eOSzGHQpxiXOEZIDOjqO1iR6kfgJ0PVHTuV26uBemKq3ppzma7dHFAG7viw==",
|
|
2450
2450
|
"license": "MIT",
|
|
2451
2451
|
"dependencies": {
|
|
2452
2452
|
"luxon": "^3.7.2"
|
|
@@ -5083,7 +5083,7 @@
|
|
|
5083
5083
|
},
|
|
5084
5084
|
"": {
|
|
5085
5085
|
"name": "@letta-ai/letta-code",
|
|
5086
|
-
"version": "0.34.
|
|
5086
|
+
"version": "0.34.63",
|
|
5087
5087
|
"dependencies": {
|
|
5088
5088
|
"@cursor/sdk": "1.1.0",
|
|
5089
5089
|
"@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.
|
|
3
|
+
"version": "0.34.63",
|
|
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-llGcPR13/WPW010yGdtNGC7Apobzktid+4Ka3zhviUWYP60+sHx9ovVyADbq+eHG9wrgZn9zRpo+7kdJ4mnElw==",
|
|
291
291
|
"patchedDependencies": {
|
|
292
292
|
"@earendil-works/pi-ai@1.5.2": "patches/@earendil-works%2Fpi-ai@1.5.2.patch"
|
|
293
293
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"src/cli/reflection-transcript.test.ts": 1084,
|
|
21
21
|
"src/cli/subcommands/mcp.ts": 1045,
|
|
22
22
|
"src/cli/subcommands/skills.ts": 1243,
|
|
23
|
-
"src/headless.ts":
|
|
23
|
+
"src/headless.ts": 4773,
|
|
24
24
|
"src/hooks/integration.test.ts": 1147,
|
|
25
25
|
"src/index.ts": 2543,
|
|
26
26
|
"src/mods/learning-harness.ts": 2434,
|
|
@@ -16,16 +16,7 @@ For ordinary one-shot or recurring work in the current conversation, use Wake in
|
|
|
16
16
|
- You need run history, replacement, or broader schedule inspection
|
|
17
17
|
- Wake cannot see or manage the schedule you need
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Execution determines schedule ownership; there is no runner selection flag:
|
|
22
|
-
|
|
23
|
-
- In a managed Cloud sandbox, schedules are durable Cloud schedules and run in the agent's Cloud sandbox.
|
|
24
|
-
- On a user-managed computer or self-hosted runtime, schedules are local and fire only while a Letta session is running there.
|
|
25
|
-
|
|
26
|
-
From a managed Cloud sandbox, `--computer <deviceId>` can run the scheduled work on a specific connected computer. Get the device ID from `letta computers list`. If that computer is offline at fire time, that occurrence fails (`TARGET_DEVICE_UNAVAILABLE`) and does not run; omit `--computer` to run in the Cloud sandbox. Local execution cannot target another computer.
|
|
27
|
-
|
|
28
|
-
Creation and execution follow those rules, while management commands still show and cancel both local and Cloud inventory. This keeps schedules created by older CLI versions visible without changing where new schedules run.
|
|
19
|
+
`--computer <deviceId>` runs the scheduled work on another connected computer (get the ID from `letta computers list`). If that computer is offline at fire time, the occurrence fails (`TARGET_DEVICE_UNAVAILABLE`).
|
|
29
20
|
|
|
30
21
|
## CLI Usage
|
|
31
22
|
|
|
@@ -59,7 +50,7 @@ letta cron add --name <short-name> --description <text> --prompt <text> <schedul
|
|
|
59
50
|
|------|-------------|
|
|
60
51
|
| `--agent <id>` | Agent ID (defaults to `LETTA_AGENT_ID` from the current shell/session) |
|
|
61
52
|
| `--conversation <id>` | Conversation target: omit or pass `new` for a fresh conversation per fire; pass `self` for the current conversation; pass `default` for the agent default; or pass a concrete ID |
|
|
62
|
-
| `--computer <id>` |
|
|
53
|
+
| `--computer <id>` | Execute on another connected computer |
|
|
63
54
|
| `--once` | Mark `--at` as one-shot (already the default for `--at`) |
|
|
64
55
|
|
|
65
56
|
### Listing Tasks
|
|
@@ -84,8 +75,6 @@ letta cron get <id-or-name> [--agent <id>]
|
|
|
84
75
|
letta cron runs --id <task-id> [--limit <n>] [--agent <id>]
|
|
85
76
|
```
|
|
86
77
|
|
|
87
|
-
For local run history, `--run-id <id>` selects one run. Cloud history ignores that flag.
|
|
88
|
-
|
|
89
78
|
### Binding a Task to the Right Conversation
|
|
90
79
|
|
|
91
80
|
If exact routing matters, pass both `--agent` and `--conversation` explicitly.
|
|
@@ -126,9 +115,9 @@ In-place editing is not available. To change a schedule, create and verify the r
|
|
|
126
115
|
|
|
127
116
|
## Timezones
|
|
128
117
|
|
|
129
|
-
|
|
118
|
+
Recurring expressions (both `--cron` and the expression `--every` compiles to) are interpreted in **UTC**. Convert the user's requested time to UTC before writing the expression: 9am PDT is 16:00 UTC, so use `--cron "0 16 * * *"` (17:00 UTC during PST). State the conversion in your reply so the user can catch a wrong assumption.
|
|
130
119
|
|
|
131
|
-
For a one-shot calendar request such as "tomorrow at 9am," resolve the date in the user's timezone and pass `--at` an RFC 3339 timestamp with an explicit offset. Infer a reasonable timezone from available context instead of asking a redundant follow-up. State the timezone you used in the confirmation (for example, "Scheduled for 9:00 AM PT") so the user can correct the assumption. A bare clock such as `--at "9:00am"` uses the current process timezone, which may be UTC
|
|
120
|
+
For a one-shot calendar request such as "tomorrow at 9am," resolve the date in the user's timezone and pass `--at` an RFC 3339 timestamp with an explicit offset. Infer a reasonable timezone from available context instead of asking a redundant follow-up. State the timezone you used in the confirmation (for example, "Scheduled for 9:00 AM PT") so the user can correct the assumption. A bare clock such as `--at "9:00am"` uses the current process timezone, which may be UTC; use it only when that is the intended timezone. Relative values such as `--at "in 45m"` do not need a timezone.
|
|
132
121
|
|
|
133
122
|
## Examples
|
|
134
123
|
|
|
@@ -142,7 +131,7 @@ letta cron add \
|
|
|
142
131
|
--cron "0 16 * * *"
|
|
143
132
|
```
|
|
144
133
|
|
|
145
|
-
Note: `--every 1d` fires daily at midnight
|
|
134
|
+
Note: `--every 1d` fires daily at midnight UTC, so use `--cron` for a specific time of day, converting the user's time to UTC first.
|
|
146
135
|
|
|
147
136
|
### "Check on the deploy in 30 minutes"
|
|
148
137
|
|
|
@@ -199,11 +188,8 @@ Include context about what the user originally asked for, so you can give a help
|
|
|
199
188
|
|
|
200
189
|
- **Minimum granularity**: 1 minute. Intervals under 60 seconds are rounded up.
|
|
201
190
|
- **Recurring tasks**: No longer auto-expire. They remain active until explicitly cancelled.
|
|
202
|
-
- **One-shot cleanup (local runner)**: One-shot local tasks are garbage-collected 24 hours after firing.
|
|
203
191
|
- **Default binding**: `letta cron add` uses `--agent` first, then `LETTA_AGENT_ID`. Omit `--conversation` for a fresh conversation per fire; use `--conversation self` to capture `LETTA_CONVERSATION_ID` explicitly.
|
|
204
|
-
- **Local scheduler requirement**: Local schedules only fire while a Letta session is running on their computer; fires while no session runs are marked as missed. Cloud schedules fire from the cloud regardless.
|
|
205
192
|
- **`--at` for specific times**: prefer RFC 3339 with an explicit offset. A bare `--at "3:00pm"` uses the process timezone and schedules tomorrow if that time has already passed there.
|
|
206
|
-
- **Cloud schedule creation failures are loud**: if creating a Cloud schedule fails in a managed Cloud sandbox, no schedule is created; it never falls back to a local schedule.
|
|
207
193
|
|
|
208
194
|
## Cron Expression Reference
|
|
209
195
|
|
|
@@ -219,7 +205,7 @@ For `--cron`, use numeric 5-field cron syntax (named days/months, seconds, `?`,
|
|
|
219
205
|
* * * * *
|
|
220
206
|
```
|
|
221
207
|
|
|
222
|
-
Common patterns (UTC
|
|
208
|
+
Common patterns (UTC):
|
|
223
209
|
- `*/5 * * * *` — every 5 minutes
|
|
224
210
|
- `0 */2 * * *` — every 2 hours
|
|
225
211
|
- `0 9 * * *` — daily at 9:00 UTC
|