@letta-ai/letta-code 0.24.2 → 0.24.4
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/letta.js +679 -172
- package/package.json +1 -1
- package/skills/migrating-memory/SKILL.md +15 -9
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ This is the recommended flow:
|
|
|
30
30
|
|
|
31
31
|
1. **Export the source agent's memfs to a temp directory**
|
|
32
32
|
```bash
|
|
33
|
-
letta
|
|
33
|
+
letta memory export --agent <source-agent-id> --out /tmp/letta-memory-<source-agent-id>
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
2. **Copy the files you want into your own memfs**
|
|
@@ -39,13 +39,16 @@ This is the recommended flow:
|
|
|
39
39
|
|
|
40
40
|
Example:
|
|
41
41
|
```bash
|
|
42
|
-
cp -r /tmp/letta-
|
|
43
|
-
cp /tmp/letta-
|
|
42
|
+
cp -r /tmp/letta-memory-agent-abc123/system/project ~/.letta/agents/$LETTA_AGENT_ID/memory/system/
|
|
43
|
+
cp /tmp/letta-memory-agent-abc123/notes.md ~/.letta/agents/$LETTA_AGENT_ID/memory/
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
3. **
|
|
46
|
+
3. **Commit and push the memory repo**
|
|
47
47
|
```bash
|
|
48
|
-
letta
|
|
48
|
+
cd ~/.letta/agents/$LETTA_AGENT_ID/memory
|
|
49
|
+
git add system/project notes.md
|
|
50
|
+
git commit -m "Import memory from source agent"
|
|
51
|
+
git push
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|
This gives you full control over what you bring across and keeps everything consistent with memfs.
|
|
@@ -107,15 +110,18 @@ Scenario: You're a new agent and want to inherit memory from an existing agent "
|
|
|
107
110
|
|
|
108
111
|
2. **Export their memfs:**
|
|
109
112
|
```bash
|
|
110
|
-
letta
|
|
113
|
+
letta memory export --agent agent-abc123 --out /tmp/letta-memory-agent-abc123
|
|
111
114
|
```
|
|
112
115
|
|
|
113
116
|
3. **Copy the relevant files into your memfs:**
|
|
114
117
|
```bash
|
|
115
|
-
cp -r /tmp/letta-
|
|
118
|
+
cp -r /tmp/letta-memory-agent-abc123/system/project ~/.letta/agents/$LETTA_AGENT_ID/memory/system/
|
|
116
119
|
```
|
|
117
120
|
|
|
118
|
-
4. **
|
|
121
|
+
4. **Commit and push:**
|
|
119
122
|
```bash
|
|
120
|
-
letta
|
|
123
|
+
cd ~/.letta/agents/$LETTA_AGENT_ID/memory
|
|
124
|
+
git add system/project
|
|
125
|
+
git commit -m "Import project memory"
|
|
126
|
+
git push
|
|
121
127
|
```
|