@letta-ai/letta-code 0.24.1 → 0.24.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-code",
3
- "version": "0.24.1",
3
+ "version": "0.24.3",
4
4
  "description": "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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 memfs export --agent <source-agent-id> --out /tmp/letta-memfs-<source-agent-id>
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-memfs-agent-abc123/system/project ~/.letta/agents/$LETTA_AGENT_ID/memory/system/
43
- cp /tmp/letta-memfs-agent-abc123/notes.md ~/.letta/agents/$LETTA_AGENT_ID/memory/
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. **Sync to API**
46
+ 3. **Commit and push the memory repo**
47
47
  ```bash
48
- letta memfs sync --agent $LETTA_AGENT_ID
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 memfs export --agent agent-abc123 --out /tmp/letta-memfs-agent-abc123
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-memfs-agent-abc123/system/project ~/.letta/agents/$LETTA_AGENT_ID/memory/system/
118
+ cp -r /tmp/letta-memory-agent-abc123/system/project ~/.letta/agents/$LETTA_AGENT_ID/memory/system/
116
119
  ```
117
120
 
118
- 4. **Sync:**
121
+ 4. **Commit and push:**
119
122
  ```bash
120
- letta memfs sync --agent $LETTA_AGENT_ID
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
  ```