@letta-ai/letta-code 0.32.15 → 0.32.17

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 (32) hide show
  1. package/README.md +2 -0
  2. package/dist/agent-presets.js +6 -3
  3. package/dist/agent-presets.js.map +3 -3
  4. package/dist/app-server-client.cjs +12 -2
  5. package/dist/app-server-client.cjs.map +4 -4
  6. package/dist/app-server-client.js +12 -2
  7. package/dist/app-server-client.js.map +4 -4
  8. package/dist/mcp-client.js +2 -2
  9. package/dist/mcp-client.js.map +1 -1
  10. package/dist/types/agent/create-agent-request.d.ts +3 -3
  11. package/dist/types/agent/create-agent-request.d.ts.map +1 -1
  12. package/dist/types/agent/subagents/manager.d.ts +4 -4
  13. package/dist/types/agent/subagents/manager.d.ts.map +1 -1
  14. package/dist/types/agent/system-prompt-versioning.d.ts.map +1 -1
  15. package/dist/types/app-server-client.d.ts +4 -1
  16. package/dist/types/app-server-client.d.ts.map +1 -1
  17. package/dist/types/headless-listener-launch.d.ts +2 -0
  18. package/dist/types/headless-listener-launch.d.ts.map +1 -1
  19. package/dist/types/tools/impl/task.d.ts +10 -19
  20. package/dist/types/tools/impl/task.d.ts.map +1 -1
  21. package/dist/types/types/app-server-info.d.ts +1 -0
  22. package/dist/types/types/app-server-info.d.ts.map +1 -1
  23. package/dist/types/types/protocol_v2.d.ts +5 -25
  24. package/dist/types/types/protocol_v2.d.ts.map +1 -1
  25. package/dist/types/types/subagent-protocol.d.ts +38 -0
  26. package/dist/types/types/subagent-protocol.d.ts.map +1 -0
  27. package/dist/types/types/task-control-protocol.d.ts +15 -0
  28. package/dist/types/types/task-control-protocol.d.ts.map +1 -1
  29. package/letta.js +2 -2
  30. package/package.json +1 -1
  31. package/scripts/isolated-unit-tests.json +5 -0
  32. package/scripts/source-file-size-baseline.json +4 -4
@@ -0,0 +1,38 @@
1
+ import type { AgentRuntimeScope } from "./runtime-scope";
2
+ /** The public launch arguments shared by Agent and App Server clients. */
3
+ export interface SubagentLaunchArgs {
4
+ subagent_type?: string;
5
+ prompt: string;
6
+ description: string;
7
+ /** Identity of the initial assignment input, not the launch command request_id. */
8
+ client_message_id?: string;
9
+ model?: string;
10
+ agent_id?: string;
11
+ conversation_id?: string;
12
+ computer?: string;
13
+ max_turns?: number;
14
+ }
15
+ export type SubagentLaunchResult = {
16
+ success: true;
17
+ task_id: string;
18
+ output_file: string;
19
+ agent_id: string | null;
20
+ conversation_id: string | null;
21
+ } | {
22
+ success: false;
23
+ error: string;
24
+ };
25
+ export interface LaunchSubagentCommand {
26
+ type: "launch_subagent";
27
+ request_id: string;
28
+ /** Parent conversation, used for launch context and completion notifications. */
29
+ runtime: AgentRuntimeScope;
30
+ args: SubagentLaunchArgs;
31
+ /** The originating Agent or external-tool call, when present. */
32
+ tool_call_id?: string;
33
+ }
34
+ export type LaunchSubagentResponse = SubagentLaunchResult & {
35
+ type: "launch_subagent_response";
36
+ request_id: string;
37
+ };
38
+ //# sourceMappingURL=subagent-protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subagent-protocol.d.ts","sourceRoot":"","sources":["../../../src/types/subagent-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,0EAA0E;AAC1E,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,oBAAoB,GAC5B;IACE,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,GACD;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,kBAAkB,CAAC;IACzB,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAAG,oBAAoB,GAAG;IAC1D,IAAI,EAAE,0BAA0B,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,4 +1,19 @@
1
1
  import type { AgentRuntimeScope } from "./runtime-scope";
2
+ /** Run a slash command in an agent conversation. */
3
+ export interface ExecuteCommandCommand {
4
+ type: "execute_command";
5
+ command_id: string;
6
+ request_id: string;
7
+ runtime: AgentRuntimeScope;
8
+ /** Everything after the command name. */
9
+ args?: string;
10
+ }
11
+ export interface ExecuteCommandResponseMessage {
12
+ type: "execute_command_response";
13
+ request_id: string;
14
+ success: boolean;
15
+ output: string;
16
+ }
2
17
  /** Remove a queued input without stopping the active turn. */
3
18
  export interface RemoveQueueItemCommand {
4
19
  type: "remove_queue_item";
@@ -1 +1 @@
1
- {"version":3,"file":"task-control-protocol.d.ts","sourceRoot":"","sources":["../../../src/types/task-control-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,8DAA8D;AAC9D,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,4BAA4B,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"task-control-protocol.d.ts","sourceRoot":"","sources":["../../../src/types/task-control-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,oDAAoD;AACpD,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,0BAA0B,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,8DAA8D;AAC9D,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,4BAA4B,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
package/letta.js CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/letta.js
3
- size: 35006196 bytes
4
- sha256: 56303040e33c4ed04518bd9e879a89b71639594335c51ccac35588a908dcfb7d
3
+ size: 35027696 bytes
4
+ sha256: 0b69d647899442a568ae4bbc856ba3668919e9ef2ce31333d731bd8ee73806e5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.32.15",
3
+ "version": "0.32.17",
4
4
  "lettaStartupLogProtocol": 1,
5
5
  "description": "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
6
6
  "type": "module",
@@ -1,5 +1,10 @@
1
1
  {
2
2
  "tests": [
3
+ {
4
+ "path": "src/websocket/listener/turn-cleanup-memory-update.e2e.test.ts",
5
+ "timeoutMs": 30000,
6
+ "reason": "Exercises real MemFS Git pushes and listener notifications with isolated HOME, settings, backend, auth environment, and repository-list fetch."
7
+ },
3
8
  {
4
9
  "path": "src/tools/impl/task-fork-receipt.test.ts",
5
10
  "timeoutMs": 15000,
@@ -5,7 +5,7 @@
5
5
  "src/backend/local/local-backend.ts": 1005,
6
6
  "src/backend/local/local-store.ts": 3457,
7
7
  "src/backend/pi-stream-adapter.test.ts": 1255,
8
- "src/cli/app/AppCoordinator.tsx": 5138,
8
+ "src/cli/app/AppCoordinator.tsx": 5136,
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": 1418,
@@ -23,7 +23,7 @@
23
23
  "src/cli/subcommands/skills.ts": 1264,
24
24
  "src/headless.ts": 4808,
25
25
  "src/hooks/integration.test.ts": 1147,
26
- "src/index.ts": 2606,
26
+ "src/index.ts": 2597,
27
27
  "src/mods/learning-harness.ts": 2434,
28
28
  "src/mods/mod-engine.test.ts": 2153,
29
29
  "src/mods/mod-engine.ts": 1838,
@@ -37,11 +37,11 @@
37
37
  "src/settings-manager.ts": 2101,
38
38
  "src/tools/manager.ts": 2795,
39
39
  "src/tools/tool-execution-context.test.ts": 1114,
40
- "src/types/protocol_v2.ts": 2590,
40
+ "src/types/protocol_v2.ts": 2574,
41
41
  "src/websocket/listen-client-concurrency.test.ts": 2666,
42
42
  "src/websocket/listen-client-protocol.test.ts": 5762,
43
43
  "src/websocket/listener/commands/memory.ts": 1114,
44
44
  "src/websocket/listener/file-commands.ts": 1053,
45
- "src/websocket/listener/protocol-inbound.ts": 2126,
45
+ "src/websocket/listener/protocol-inbound.ts": 2111,
46
46
  "src/websocket/listener/protocol-outbound.ts": 1022
47
47
  }