@letta-ai/letta-code 0.31.5 → 0.31.6
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 +5 -1
- 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/attached-repositories.d.ts +7 -0
- package/dist/types/agent/attached-repositories.d.ts.map +1 -0
- package/dist/types/agent/client-skills.d.ts +1 -1
- package/dist/types/agent/client-skills.d.ts.map +1 -1
- package/dist/types/agent/memory-constraints.d.ts +22 -0
- package/dist/types/agent/memory-constraints.d.ts.map +1 -0
- package/dist/types/agent/memory-git-hooks.d.ts +5 -5
- package/dist/types/agent/memory-git-hooks.d.ts.map +1 -1
- package/dist/types/agent/memory-git.d.ts +36 -5
- package/dist/types/agent/memory-git.d.ts.map +1 -1
- package/dist/types/agent/shared-memory-skills.d.ts +1 -1
- package/dist/types/agent/shared-memory-skills.d.ts.map +1 -1
- package/dist/types/backend/dev/pi-model-factory.d.ts +0 -1
- package/dist/types/backend/dev/pi-model-factory.d.ts.map +1 -1
- package/dist/types/backend/local/local-model-config.d.ts.map +1 -1
- package/dist/types/tools/impl/skill.d.ts +1 -1
- package/dist/types/tools/impl/skill.d.ts.map +1 -1
- package/letta.js +20183 -20025
- package/package.json +2 -2
- package/scripts/source-file-size-baseline.json +1 -1
- package/skills/managing-shared-memory/SKILL.md +4 -5
- package/skills/submitting-feedback/SKILL.md +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letta-ai/letta-code",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.6",
|
|
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",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"access": "public"
|
|
122
122
|
},
|
|
123
123
|
"dependencies": {
|
|
124
|
-
"@earendil-works/pi-ai": "0.84.
|
|
124
|
+
"@earendil-works/pi-ai": "^0.84.4",
|
|
125
125
|
"@janhapke/sharp-electron": "0.35.3-electron.1",
|
|
126
126
|
"@letta-ai/letta-client": "^1.10.2",
|
|
127
127
|
"@letta-ai/trajectory": "0.2.0",
|
|
@@ -7,7 +7,7 @@ description: Create and manage shared memory — git-tracked repositories hosted
|
|
|
7
7
|
|
|
8
8
|
Shared memory is memory created independently of any single agent, designed to be dynamically attached to or detached from multiple agents. Each unit of shared memory is a **shared memory repository**: a git repository hosted on Letta Cloud, owned by your organization rather than by one agent, reachable from any environment (sandboxes, remote machines, sessions).
|
|
9
9
|
|
|
10
|
-
Shared memory works
|
|
10
|
+
Shared memory works like your MemFS: attached repositories are real git checkouts on disk, and you read, edit, and commit with ordinary git. The harness pushes clean committed changes after each turn. Each repository has its own projection root (next to your memory directory, not inside it) and its own remote origin, and other agents may be writing to it too.
|
|
11
11
|
|
|
12
12
|
Create a shared memory repository when:
|
|
13
13
|
- You have context an agent should be able to access that doesn't belong in its own MemFS (input files, datasets, docs, working artifacts)
|
|
@@ -23,16 +23,15 @@ ls "$MEMORY_DIR/../" # attached repositories appear here by
|
|
|
23
23
|
cat "$MEMORY_DIR/../<repo-name>/<path>" # read like any file
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Edit files with your normal file tools, then commit
|
|
26
|
+
Edit files with your normal file tools, then commit with git. The mount's origin and credentials are already configured:
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
29
|
cd "$MEMORY_DIR/../<repo-name>"
|
|
30
30
|
git add <files>
|
|
31
31
|
git commit -m "describe the change"
|
|
32
|
-
git push
|
|
33
32
|
```
|
|
34
33
|
|
|
35
|
-
|
|
34
|
+
The harness pushes clean commits from read/write attached repositories after the turn. If a push collides with another agent's work, it pulls with rebase and retries once. Dirty files and conflicts are not changed automatically; the harness adds a reminder to the next turn instead.
|
|
36
35
|
|
|
37
36
|
To pick up other agents' changes:
|
|
38
37
|
|
|
@@ -84,7 +83,7 @@ letta shared-memory history shared-notes --path docs/plan.md
|
|
|
84
83
|
- **`sync` reports "mount path already exists and is not a git repository"** — a plain directory (usually created by hand before the mount existed) is occupying the mount path. Inspect it, salvage anything worth keeping, move or delete it, then re-run `letta shared-memory sync`.
|
|
85
84
|
- **Never hand-clone the repository to another location (e.g. /tmp) to work around a broken mount** — fix the mount with `letta shared-memory sync` so every session and other agents see the same checkout.
|
|
86
85
|
- **Permission denied under another agent's directory** — shared repositories mount per-agent. Only your own mount (under your agent directory) is accessible; another agent's mount of the same repository is walled off by the cross-agent guard. Run `letta shared-memory sync` to get your own mount.
|
|
87
|
-
- **
|
|
86
|
+
- **Shared-memory conflict reminder** — resolve the conflict in the named repository, finish the rebase or commit, and leave the repository clean. The harness retries the push after a future turn.
|
|
88
87
|
|
|
89
88
|
## Notes and Limits
|
|
90
89
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: submitting-feedback
|
|
3
|
+
description: Submits user-approved feedback about Letta Code or the current agent to the Letta team. Load when the user is upset, frustrated, dissatisfied, reports poor agent behavior, or asks to send feedback. Works with cloud-hosted and local agents. Ask before submitting unless the user already explicitly requested submission.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Submitting Feedback
|
|
7
|
+
|
|
8
|
+
When the user appears upset with the agent, acknowledge the problem and ask whether they want you to submit feedback to the Letta team. Do not submit merely because the user expressed frustration.
|
|
9
|
+
|
|
10
|
+
If the user says yes, or directly asks you to submit feedback:
|
|
11
|
+
|
|
12
|
+
1. Write a short factual message in the user's voice. Include what happened, what the user expected, and any useful error or behavior detail already present in the conversation. Do not add claims the user did not make.
|
|
13
|
+
2. Submit it with:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
letta feedback --message '<feedback>'
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
3. Tell the user whether submission succeeded. If it failed, report the safe CLI error and do not claim the team received it.
|
|
20
|
+
|
|
21
|
+
Do not include secrets, credentials, unrelated conversation content, or private file contents. The command adds the current agent and conversation identifiers so the team can find the relevant run.
|