@letta-ai/letta-code 0.30.25 → 0.30.27

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 (47) hide show
  1. package/dist/agent-presets.js +1 -339
  2. package/dist/agent-presets.js.map +2 -2
  3. package/dist/channels-slack.js +319 -41
  4. package/dist/channels-slack.js.map +4 -3
  5. package/dist/channels-telegram.js +424 -0
  6. package/dist/channels-telegram.js.map +14 -0
  7. package/dist/mcp-client.js +2 -2
  8. package/dist/mcp-client.js.map +1 -1
  9. package/dist/types/agent/modify.d.ts.map +1 -1
  10. package/dist/types/agent/turn-recovery-policy.d.ts +33 -0
  11. package/dist/types/agent/turn-recovery-policy.d.ts.map +1 -1
  12. package/dist/types/backend/dev/pi-model-factory.d.ts.map +1 -1
  13. package/dist/types/channels/slack/attachment-primitives.d.ts +69 -0
  14. package/dist/types/channels/slack/attachment-primitives.d.ts.map +1 -0
  15. package/dist/types/channels/telegram/debounce.d.ts +22 -0
  16. package/dist/types/channels/telegram/debounce.d.ts.map +1 -0
  17. package/dist/types/channels/telegram/ingress.d.ts +35 -0
  18. package/dist/types/channels/telegram/ingress.d.ts.map +1 -0
  19. package/dist/types/channels/telegram/message-action-contract.d.ts +16 -0
  20. package/dist/types/channels/telegram/message-action-contract.d.ts.map +1 -0
  21. package/dist/types/channels/telegram/message-shapes.d.ts +154 -0
  22. package/dist/types/channels/telegram/message-shapes.d.ts.map +1 -0
  23. package/dist/types/channels/telegram/outbound.d.ts +21 -0
  24. package/dist/types/channels/telegram/outbound.d.ts.map +1 -0
  25. package/dist/types/channels-slack.d.ts +2 -0
  26. package/dist/types/channels-slack.d.ts.map +1 -1
  27. package/dist/types/channels-telegram.d.ts +20 -0
  28. package/dist/types/channels-telegram.d.ts.map +1 -0
  29. package/dist/types/cli/helpers/stream-debug.d.ts +6 -0
  30. package/dist/types/cli/helpers/stream-debug.d.ts.map +1 -0
  31. package/dist/types/cli/helpers/stream-stall-reconciler.d.ts +16 -0
  32. package/dist/types/cli/helpers/stream-stall-reconciler.d.ts.map +1 -0
  33. package/dist/types/cli/helpers/stream.d.ts +1 -0
  34. package/dist/types/cli/helpers/stream.d.ts.map +1 -1
  35. package/dist/types/tools/impl/apply-patch.d.ts.map +1 -1
  36. package/dist/types/tools/impl/github-pull-request-tracker.d.ts +2 -0
  37. package/dist/types/tools/impl/github-pull-request-tracker.d.ts.map +1 -1
  38. package/dist/types/tools/impl/task.d.ts +2 -0
  39. package/dist/types/tools/impl/task.d.ts.map +1 -1
  40. package/dist/types/utils/openai-reasoning-effort.d.ts +6 -0
  41. package/dist/types/utils/openai-reasoning-effort.d.ts.map +1 -0
  42. package/dist/types/websocket/listener/constants.d.ts +0 -2
  43. package/dist/types/websocket/listener/constants.d.ts.map +1 -1
  44. package/letta.js +1765 -1715
  45. package/package.json +12 -1
  46. package/scripts/source-file-size-baseline.json +4 -4
  47. package/skills/teleporting-between-environments/SKILL.md +23 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.30.25",
3
+ "version": "0.30.27",
4
4
  "description": "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
5
5
  "type": "module",
6
6
  "packageManager": "bun@1.3.10",
@@ -34,6 +34,8 @@
34
34
  "dist/gateway-core.js.map",
35
35
  "dist/channels-slack.js",
36
36
  "dist/channels-slack.js.map",
37
+ "dist/channels-telegram.js",
38
+ "dist/channels-telegram.js.map",
37
39
  "dist/types",
38
40
  "docs"
39
41
  ],
@@ -97,6 +99,12 @@
97
99
  "browser": "./dist/channels-slack.js",
98
100
  "import": "./dist/channels-slack.js",
99
101
  "default": "./dist/channels-slack.js"
102
+ },
103
+ "./channels/telegram": {
104
+ "types": "./dist/types/channels-telegram.d.ts",
105
+ "browser": "./dist/channels-telegram.js",
106
+ "import": "./dist/channels-telegram.js",
107
+ "default": "./dist/channels-telegram.js"
100
108
  }
101
109
  },
102
110
  "repository": {
@@ -212,6 +220,9 @@
212
220
  "channels/slack": [
213
221
  "./dist/types/channels-slack.d.ts"
214
222
  ],
223
+ "channels/telegram": [
224
+ "./dist/types/channels-telegram.d.ts"
225
+ ],
215
226
  "protocol": [
216
227
  "./dist/types/types/protocol.d.ts"
217
228
  ]
@@ -5,11 +5,11 @@
5
5
  "src/backend/local/local-backend.ts": 1014,
6
6
  "src/backend/local/local-store.ts": 3459,
7
7
  "src/backend/pi-stream-adapter.test.ts": 1304,
8
- "src/cli/app/AppCoordinator.tsx": 5188,
8
+ "src/cli/app/AppCoordinator.tsx": 5189,
9
9
  "src/cli/app/AppView.tsx": 1735,
10
10
  "src/cli/app/use-approval-flow.ts": 1163,
11
11
  "src/cli/app/use-configuration-handlers.ts": 1421,
12
- "src/cli/app/use-conversation-loop.ts": 2936,
12
+ "src/cli/app/use-conversation-loop.ts": 2912,
13
13
  "src/cli/app/use-submit-handler.ts": 4077,
14
14
  "src/cli/components/AgentSelector.tsx": 1104,
15
15
  "src/cli/components/InputRich.tsx": 2225,
@@ -21,7 +21,7 @@
21
21
  "src/cli/mods/local-mod-loader.test.ts": 1043,
22
22
  "src/cli/reflection-transcript.test.ts": 1084,
23
23
  "src/cli/subcommands/skills.ts": 1264,
24
- "src/headless.ts": 5042,
24
+ "src/headless.ts": 4994,
25
25
  "src/hooks/integration.test.ts": 1147,
26
26
  "src/index.ts": 2775,
27
27
  "src/mods/learning-harness.ts": 2434,
@@ -45,5 +45,5 @@
45
45
  "src/websocket/listener/lifecycle.ts": 1048,
46
46
  "src/websocket/listener/protocol-inbound.ts": 2242,
47
47
  "src/websocket/listener/protocol-outbound.ts": 1070,
48
- "src/websocket/listener/turn.ts": 1009
48
+ "src/websocket/listener/turn.ts": 1058
49
49
  }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: teleporting-between-environments
3
- description: Moves the current agent conversation to Cloud or a Cloud-registered remote environment while coordinating machine-local files and setup. Use when the user says "let's continue this task on cloud", asks to continue or move work on another connected computer, wants to teleport between environments, or needs to upload or download artifacts before a handoff.
3
+ description: Moves the current agent conversation to Cloud, Desktop Local, or another Cloud-registered environment while coordinating machine-local files and setup. Use when the user says "let's continue this task on cloud", asks to continue or move work on another connected computer, wants to teleport between environments, or needs to upload or download artifacts before a handoff.
4
4
  ---
5
5
 
6
6
  # Teleporting Between Environments
@@ -19,17 +19,16 @@ Teleport the current agent and conversation without losing conversational memory
19
19
  ```bash
20
20
  letta teleport list
21
21
  letta teleport cloud
22
+ letta teleport local
22
23
  letta teleport <environment>
23
24
  ```
24
25
 
25
- - `list`: show accessible online remote targets. Desktop Local is excluded.
26
+ - `list`: show accessible online Cloud-registered targets.
26
27
  - `cloud`: create or resume this conversation’s managed Cloud sandbox.
28
+ - `local`: target the one online Letta Desktop environment. Desktop Remote Access must be enabled. If several Desktop environments are online, use `list` and target one explicitly.
27
29
  - `<environment>`: target a listed remote environment by its friendly selector.
28
30
 
29
- Teleport cannot target Desktop Local yet. Once the conversation runs in Cloud,
30
- the agent cannot programmatically return to Desktop Local. The user can still
31
- switch manually with Desktop's environment picker. Do not run or recommend
32
- `letta teleport back`.
31
+ Do not run or recommend `letta teleport back`; return to Desktop with `local`.
33
32
 
34
33
  Transfer files with the existing sandbox commands:
35
34
 
@@ -80,9 +79,24 @@ If the command reports an offline, stale, unsupported, same-source, or startup e
80
79
 
81
80
  ### Return to Desktop Local
82
81
 
83
- The agent cannot initiate this transition. Retain the next local action and ask
84
- the user to select Local from Desktop's environment picker. After continuation
85
- locally, resume the task from the retained context.
82
+ 1. Retain the next local action and any setup the Desktop environment needs.
83
+ 2. Confirm Desktop is open with Remote Access enabled. If more than one Desktop environment is online, use `letta teleport list` and choose one explicitly.
84
+ 3. As the final action, run:
85
+
86
+ ```bash
87
+ letta teleport local
88
+ ```
89
+
90
+ ### Run a separate headless turn on an environment
91
+
92
+ Use `--environment` when a separate headless invocation, rather than the current conversation handoff, should execute on Cloud or another online environment:
93
+
94
+ ```bash
95
+ letta -p --conversation <id> --environment cloud "<prompt>"
96
+ letta -p --conversation <id> --environment <name|device-id|connection-id> "<prompt>"
97
+ ```
98
+
99
+ This routes that headless message only. Use `letta teleport ...` to move the currently executing conversation.
86
100
 
87
101
  ### Continue on another connected computer
88
102