@letta-ai/letta-code 0.34.61 → 0.34.62

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 (61) 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/backend/api/monitors.d.ts +11 -2
  6. package/dist/types/backend/api/monitors.d.ts.map +1 -1
  7. package/dist/types/cli/helpers/session-context.d.ts +2 -1
  8. package/dist/types/cli/helpers/session-context.d.ts.map +1 -1
  9. package/dist/types/cron/runner.d.ts +12 -14
  10. package/dist/types/cron/runner.d.ts.map +1 -1
  11. package/dist/types/cron/scheduler.d.ts.map +1 -1
  12. package/dist/types/runtime-context.d.ts +4 -0
  13. package/dist/types/runtime-context.d.ts.map +1 -1
  14. package/dist/types/tools/impl/claude-steer-timeouts.d.ts +20 -0
  15. package/dist/types/tools/impl/claude-steer-timeouts.d.ts.map +1 -0
  16. package/dist/types/tools/impl/claude-stream-session-types.d.ts +112 -0
  17. package/dist/types/tools/impl/claude-stream-session-types.d.ts.map +1 -0
  18. package/dist/types/tools/impl/claude-stream-session.d.ts +2 -46
  19. package/dist/types/tools/impl/claude-stream-session.d.ts.map +1 -1
  20. package/dist/types/tools/impl/external-coding-agent.d.ts +2 -2
  21. package/dist/types/tools/impl/external-coding-agent.d.ts.map +1 -1
  22. package/dist/types/tools/impl/fork-prompt.d.ts +4 -0
  23. package/dist/types/tools/impl/fork-prompt.d.ts.map +1 -0
  24. package/dist/types/tools/impl/kill-bash.d.ts.map +1 -1
  25. package/dist/types/tools/impl/monitor-args.d.ts +32 -0
  26. package/dist/types/tools/impl/monitor-args.d.ts.map +1 -0
  27. package/dist/types/tools/impl/monitor-resume.d.ts +7 -0
  28. package/dist/types/tools/impl/monitor-resume.d.ts.map +1 -0
  29. package/dist/types/tools/impl/monitor-script.d.ts +1 -1
  30. package/dist/types/tools/impl/monitor-script.d.ts.map +1 -1
  31. package/dist/types/tools/impl/monitor-state.d.ts +4 -0
  32. package/dist/types/tools/impl/monitor-state.d.ts.map +1 -1
  33. package/dist/types/tools/impl/monitor-timeout.d.ts +1 -0
  34. package/dist/types/tools/impl/monitor-timeout.d.ts.map +1 -1
  35. package/dist/types/tools/impl/monitor.d.ts +2 -32
  36. package/dist/types/tools/impl/monitor.d.ts.map +1 -1
  37. package/dist/types/tools/impl/process_manager.d.ts +1 -0
  38. package/dist/types/tools/impl/process_manager.d.ts.map +1 -1
  39. package/dist/types/tools/impl/remote-external-coding-agent.d.ts +1 -1
  40. package/dist/types/tools/impl/remote-external-coding-agent.d.ts.map +1 -1
  41. package/dist/types/tools/impl/send-agent-message.d.ts.map +1 -1
  42. package/dist/types/tools/impl/shell-env.d.ts.map +1 -1
  43. package/dist/types/tools/impl/subagent-computer.d.ts +5 -5
  44. package/dist/types/tools/impl/task.d.ts.map +1 -1
  45. package/dist/types/tools/impl/wake.d.ts.map +1 -1
  46. package/dist/types/tools/impl/watch-pr.d.ts +2 -1
  47. package/dist/types/tools/impl/watch-pr.d.ts.map +1 -1
  48. package/dist/types/tools/task-tool-assets.d.ts +1 -1
  49. package/dist/types/tools/task-tool-assets.d.ts.map +1 -1
  50. package/dist/types/tools/toolset-catalog.d.ts +1 -1
  51. package/dist/types/tools/toolset.d.ts +1 -1
  52. package/dist/types/tools/toolset.d.ts.map +1 -1
  53. package/dist/types/types/subagent-protocol.d.ts +1 -1
  54. package/dist/types/types/subagent-protocol.d.ts.map +1 -1
  55. package/dist/types/websocket/listener/interrupted-turn-disk-reserve.d.ts +6 -0
  56. package/dist/types/websocket/listener/interrupted-turn-disk-reserve.d.ts.map +1 -0
  57. package/dist/types/websocket/listener/interrupted-turn-record.d.ts.map +1 -1
  58. package/letta.js +731 -313
  59. package/npm-shrinkwrap.json +5 -5
  60. package/package.json +2 -2
  61. package/skills/scheduling-tasks/SKILL.md +6 -20
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.34.61",
3
+ "version": "0.34.62",
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.5",
2448
- "resolved": "https://registry.npmjs.org/cron-parser/-/cron-parser-5.10.5.tgz",
2449
- "integrity": "sha512-zxFew0gkBdb9HudAqeNLIZ2Phczw8oQDGDMYc1HUYvAaxZqhML2gZyUwVqaOs23YKDWXRRvd/nNo0ycGdXt80A==",
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.61",
5086
+ "version": "0.34.62",
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.61",
3
+ "version": "0.34.62",
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-WIuDCHjU7HpMkupg3IJU9kpdNZeagbwQQttyZaFDwGbI5Joz+NYvDSWoXrYPaA1w2Oxy6HVIBBPtv/lzIoENmg==",
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
  }
@@ -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
- ## Where Schedules Run
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>` | From managed Cloud, execute on a specific connected computer |
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
- Cloud-schedule recurring expressions (both `--cron` and the expression `--every` compiles to) are interpreted in **UTC**. Users say times in their local timezone, so convert before writing the expression: a user in PDT asking for "9am daily" needs `--cron "0 16 * * *"` (9am PDT = 16:00 UTC; 17:00 during PST). State the conversion in your reply so the user can catch a wrong assumption. Local-runner recurring tasks use the computer's local timezone.
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 in Cloud; use it only when that is the intended timezone. Relative values such as `--at "in 45m"` do not need a timezone.
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 (UTC on a Cloud schedule), so use `--cron` for a specific time of day, converting the user's local time to UTC first.
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 on Cloud schedules):
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