@letta-ai/letta-code 0.32.18 → 0.33.0
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/agent-presets.js +60 -59
- package/dist/agent-presets.js.map +2 -2
- package/dist/mcp-client.js +2 -2
- package/dist/mcp-client.js.map +1 -1
- package/dist/types/agent/memory-conflict-repair.d.ts +34 -0
- package/dist/types/agent/memory-conflict-repair.d.ts.map +1 -0
- package/dist/types/agent/subagents/memory-handoff.d.ts +1 -0
- package/dist/types/agent/subagents/memory-handoff.d.ts.map +1 -1
- package/dist/types/agent/subagents/memory-worker.d.ts +29 -14
- package/dist/types/agent/subagents/memory-worker.d.ts.map +1 -1
- package/dist/types/agent/subagents/subagent-model.d.ts.map +1 -1
- package/dist/types/hooks/executor.d.ts +4 -0
- package/dist/types/hooks/executor.d.ts.map +1 -1
- package/dist/types/permissions/checker.d.ts.map +1 -1
- package/dist/types/permissions/memory-write-allowance.d.ts +17 -0
- package/dist/types/permissions/memory-write-allowance.d.ts.map +1 -0
- package/dist/types/tools/hook-feedback.d.ts +30 -0
- package/dist/types/tools/hook-feedback.d.ts.map +1 -0
- package/dist/types/tools/impl/bash.d.ts.map +1 -1
- package/dist/types/tools/impl/exec-command.d.ts +5 -0
- package/dist/types/tools/impl/exec-command.d.ts.map +1 -1
- package/dist/types/tools/impl/memory-task-lifecycle.d.ts +20 -0
- package/dist/types/tools/impl/memory-task-lifecycle.d.ts.map +1 -1
- package/dist/types/tools/impl/monitor.d.ts.map +1 -1
- package/dist/types/tools/impl/process_manager.d.ts +6 -2
- package/dist/types/tools/impl/process_manager.d.ts.map +1 -1
- package/dist/types/tools/impl/task.d.ts +6 -0
- package/dist/types/tools/impl/task.d.ts.map +1 -1
- package/dist/types/tools/impl/workflow.d.ts.map +1 -1
- package/dist/types/tools/manager.d.ts.map +1 -1
- package/dist/types/tools/secret-substitution.d.ts +46 -1
- package/dist/types/tools/secret-substitution.d.ts.map +1 -1
- package/dist/types/tools/toolset-catalog.d.ts.map +1 -1
- package/dist/types/tools/workflow/execution-registry.d.ts +12 -3
- package/dist/types/tools/workflow/execution-registry.d.ts.map +1 -1
- package/dist/types/tools/workflow/sdk-spawner.d.ts.map +1 -1
- package/dist/types/tools/workflow/types.d.ts +6 -1
- package/dist/types/tools/workflow/types.d.ts.map +1 -1
- package/dist/types/tools/workflow/workflow-engine.d.ts.map +1 -1
- package/dist/types/types/background-process-protocol.d.ts +8 -1
- package/dist/types/types/background-process-protocol.d.ts.map +1 -1
- package/dist/types/websocket/listener/background-process-snapshot.d.ts.map +1 -1
- package/letta.js +2 -2
- package/package.json +3 -3
- package/scripts/source-file-size-baseline.json +3 -3
- package/skills/initializing-memory/ROOT_MEMORY.md +2 -0
- package/skills/initializing-memory/SKILL.md +2 -0
- package/skills/self-configuration/SKILL.md +3 -8
- package/skills/syncing-memory-filesystem/SKILL.md +12 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/workflow/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,0EAA0E;AAC1E,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,MAAM,CAAC,EAAE,M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e,EACxB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,uBAAuB,CAAC,
|
|
1
|
+
{"version":3,"file":"workflow-engine.d.ts","sourceRoot":"","sources":["../../../../src/tools/workflow/workflow-engine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,KAAK,EAEV,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EAExB,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAgCzC,wBAAsB,eAAe,CACnC,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,uBAAuB,CAAC,CA8OlC"}
|
|
@@ -25,5 +25,12 @@ export interface MonitorBackgroundProcessSummary {
|
|
|
25
25
|
status: "running";
|
|
26
26
|
persistent: boolean;
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export interface WorkflowBackgroundProcessSummary {
|
|
29
|
+
process_id: string;
|
|
30
|
+
kind: "workflow";
|
|
31
|
+
description: string;
|
|
32
|
+
started_at_ms: number;
|
|
33
|
+
status: "running";
|
|
34
|
+
}
|
|
35
|
+
export type BackgroundProcessSummary = BashBackgroundProcessSummary | AgentTaskBackgroundProcessSummary | MonitorBackgroundProcessSummary | WorkflowBackgroundProcessSummary;
|
|
29
36
|
//# sourceMappingURL=background-process-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-process-protocol.d.ts","sourceRoot":"","sources":["../../../src/types/background-process-protocol.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,wBAAwB,GAChC,4BAA4B,GAC5B,iCAAiC,GACjC,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"background-process-protocol.d.ts","sourceRoot":"","sources":["../../../src/types/background-process-protocol.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,gCAAgC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,MAAM,wBAAwB,GAChC,4BAA4B,GAC5B,iCAAiC,GACjC,+BAA+B,GAC/B,gCAAgC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-process-snapshot.d.ts","sourceRoot":"","sources":["../../../../src/websocket/listener/background-process-snapshot.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAYpE,wBAAgB,8BAA8B,CAC5C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,EACvB,cAAc,SAAY,GACzB,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"background-process-snapshot.d.ts","sourceRoot":"","sources":["../../../../src/websocket/listener/background-process-snapshot.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAYpE,wBAAgB,8BAA8B,CAC5C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,EACvB,cAAc,SAAY,GACzB,wBAAwB,EAAE,CA0F5B"}
|
package/letta.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/letta.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 35232678 bytes
|
|
4
|
+
sha256: a4bfad3ae45652a621ea7bd97553d9c53006517bb4dd2bced06dde4b47744db6
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letta-ai/letta-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
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",
|
|
@@ -141,7 +141,8 @@
|
|
|
141
141
|
"cron-parser": "^5.6.1",
|
|
142
142
|
"cross-spawn": "^7.0.6",
|
|
143
143
|
"glob": "^13.0.0",
|
|
144
|
-
"ink
|
|
144
|
+
"ink": "5.2.1",
|
|
145
|
+
"ink-link": "^4.1.0",
|
|
145
146
|
"node-pty": "^1.1.0",
|
|
146
147
|
"open": "^10.2.0",
|
|
147
148
|
"react": "18.2.0",
|
|
@@ -165,7 +166,6 @@
|
|
|
165
166
|
"diff": "^8.0.2",
|
|
166
167
|
"grammy": "^1.42.0",
|
|
167
168
|
"husky": "9.1.7",
|
|
168
|
-
"ink": "^5.0.0",
|
|
169
169
|
"ink-spinner": "^5.0.0",
|
|
170
170
|
"ink-text-input": "^5.0.0",
|
|
171
171
|
"lint-staged": "16.2.4",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"src/cli/app/use-conversation-loop.ts": 2903,
|
|
13
13
|
"src/cli/app/use-submit-handler.ts": 3804,
|
|
14
14
|
"src/cli/components/AgentSelector.tsx": 1104,
|
|
15
|
-
"src/cli/components/InputRich.tsx":
|
|
15
|
+
"src/cli/components/InputRich.tsx": 2124,
|
|
16
16
|
"src/cli/components/ModelSelector.tsx": 1259,
|
|
17
17
|
"src/cli/components/ProviderSelector.tsx": 1564,
|
|
18
18
|
"src/cli/components/ToolCallMessageRich.tsx": 1013,
|
|
@@ -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":
|
|
24
|
+
"src/headless.ts": 4808,
|
|
25
25
|
"src/hooks/integration.test.ts": 1147,
|
|
26
26
|
"src/index.ts": 2597,
|
|
27
27
|
"src/mods/learning-harness.ts": 2434,
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"src/providers/chatgpt-usage-service.ts": 1112,
|
|
36
36
|
"src/settings-manager.test.ts": 1635,
|
|
37
37
|
"src/settings-manager.ts": 2101,
|
|
38
|
-
"src/tools/manager.ts":
|
|
38
|
+
"src/tools/manager.ts": 2719,
|
|
39
39
|
"src/tools/tool-execution-context.test.ts": 1114,
|
|
40
40
|
"src/types/protocol_v2.ts": 2574,
|
|
41
41
|
"src/websocket/listen-client-concurrency.test.ts": 2666,
|
|
@@ -3,6 +3,8 @@ name: initializing-memory
|
|
|
3
3
|
description: Comprehensive guide for initializing or reorganizing agent memory. Load this skill when running /init, when the user asks you to set up your memory, or when you need guidance on creating effective memory files.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
Memory initialization or reorganization is the main task here. The primary agent owns the work through completion: research, ask necessary questions, synthesize findings, edit files, commit, and verify the result before reporting success. You may delegate research, but integrate its results into memory yourself. If a memory worker you launched is still editing this checkout, wait for it to finish before making direct edits, then inspect the current files. Do not report initialization complete merely because a background task was launched.
|
|
7
|
+
|
|
6
8
|
# Memory Initialization
|
|
7
9
|
|
|
8
10
|
The user has requested that you initialize or reorganize your memory. Your memory has been projected to a local filesystem (in $MEMORY_DIR) so you can easily edit and restructure your own memory through local filesystem operations. Changes to the memory filesystem will be reflected in your future memory.
|
|
@@ -3,6 +3,8 @@ name: initializing-memory
|
|
|
3
3
|
description: Comprehensive guide for initializing or reorganizing agent memory. Load this skill when running /init, when the user asks you to set up your memory, or when you need guidance on creating effective memory files.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
Memory initialization or reorganization is the main task here. The primary agent owns the work through completion: research, ask necessary questions, synthesize findings, edit files, commit, and verify the result before reporting success. You may delegate research, but integrate its results into memory yourself. If a memory worker you launched is still editing this checkout, wait for it to finish before making direct edits, then inspect the current files. Do not report initialization complete merely because a background task was launched.
|
|
7
|
+
|
|
6
8
|
# Memory Initialization
|
|
7
9
|
|
|
8
10
|
The user has requested that you initialize or reorganize your memory. Your memory has been projected to a local filesystem (in $MEMORY_DIR) so you can easily edit and restructure your own memory through local filesystem operations. Changes to the memory filesystem will be reflected in your future memory.
|
|
@@ -98,18 +98,13 @@ Letta Code supports two layouts:
|
|
|
98
98
|
| Deferred memory | Directories with their own `MEMORY.md` | Files outside `$MEMORY_DIR/system/` |
|
|
99
99
|
| Agent-owned skills | `$MEMORY_DIR/skills/` | `$MEMORY_DIR/skills/` |
|
|
100
100
|
|
|
101
|
-
Use the active layout shown by the prompt and memory
|
|
101
|
+
Use the active layout shown by the prompt and memory files. Do not create a
|
|
102
102
|
`system/` directory in a root-layout repository or move existing-layout memory
|
|
103
103
|
to the root as part of an unrelated self-configuration request.
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
A requested memory or identity change is memory as the main task: make the edit directly with ordinary file tools, preserve the active layout, stage only the files you changed by explicit path, commit in the same shell call, and verify the result before reporting success. If a memory worker you launched may still be running, read its output file first (it ends with `[Task completed]` or `[Task failed]`) and reread the files before editing what it was asked to change. Delegate to the background `memory` subagent only when the change is incidental to another task the user is waiting on.
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
cd "$MEMORY_DIR" && git status
|
|
109
|
-
cd "$MEMORY_DIR" && git add <changed-files> && git commit --author="$AGENT_NAME <$AGENT_ID@letta.com>" -m "memory: <summary>"
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
Do not use API system-prompt replacement for ordinary learning. That can clobber the compiled prompt. Edit memory instead.
|
|
107
|
+
Do not use API system-prompt replacement for ordinary learning. That can clobber the compiled prompt. Edit the memory files instead.
|
|
113
108
|
|
|
114
109
|
## Server-side agent and conversation settings
|
|
115
110
|
|
|
@@ -7,7 +7,13 @@ description: Diagnose and repair MemFS repository setup, remote sync, authentica
|
|
|
7
7
|
|
|
8
8
|
Use this skill only when the Git repository behind an agent's memory is not
|
|
9
9
|
setting up or syncing correctly. For ordinary memory reads and edits, use the
|
|
10
|
-
memory files
|
|
10
|
+
memory files without loading this skill. Delegate incidental upkeep during another
|
|
11
|
+
task to the background `memory` subagent. When memory repair is the user's main
|
|
12
|
+
request, diagnose and repair it directly, then verify the result before reporting
|
|
13
|
+
success. If a memory worker you launched may still be running, wait for it: re-read
|
|
14
|
+
its output file until it ends with `[Task completed]` or `[Task failed]` before
|
|
15
|
+
editing memory files or changing Git state. While the harness reports a repair in
|
|
16
|
+
progress, leave both alone as well; that worker edits `$MEMORY_DIR` in place.
|
|
11
17
|
|
|
12
18
|
## Current Model
|
|
13
19
|
|
|
@@ -31,7 +37,7 @@ $MEMORY_DIR/ $MEMORY_DIR/
|
|
|
31
37
|
Cloud-backed agents have a hosted MemFS remote. Local-backend agents keep a
|
|
32
38
|
local-only Git repository and do not need a remote or cloud credentials.
|
|
33
39
|
|
|
34
|
-
The memory
|
|
40
|
+
The agent doing the memory work commits its changes. After each turn, the harness pushes
|
|
35
41
|
clean committed changes for cloud-backed agents. Local-backend commits remain
|
|
36
42
|
on the current machine. Do not run `git push` for normal MemFS sync; let the
|
|
37
43
|
harness push after the turn.
|
|
@@ -115,8 +121,10 @@ cloud-backed agent's pending commits after the turn.
|
|
|
115
121
|
|
|
116
122
|
The harness first tries a fast-forward pull. When a remote push is rejected
|
|
117
123
|
because the remote moved, post-turn sync tries `git pull --rebase` and retries
|
|
118
|
-
the push. If that rebase conflicts, the harness
|
|
119
|
-
|
|
124
|
+
the push. If that rebase conflicts, the harness launches a fresh background
|
|
125
|
+
`memory` subagent to repair it. The primary conversation is not interrupted.
|
|
126
|
+
The harness retries normal sync after the worker finishes. The instructions
|
|
127
|
+
below are for explicit troubleshooting; routine repairs run in the background.
|
|
120
128
|
|
|
121
129
|
Start by reading the current Git operation and every conflicted file:
|
|
122
130
|
|