@letta-ai/letta-code 0.25.7 → 0.25.9
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/README.md +8 -0
- package/letta.js +230030 -155879
- package/package.json +3 -7
- package/skills/configuring-your-harness/SKILL.md +9 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letta-ai/letta-code",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.9",
|
|
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": {
|
|
@@ -47,17 +47,13 @@
|
|
|
47
47
|
"@vscode/ripgrep": "^1.17.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@
|
|
51
|
-
"@ai-sdk/anthropic": "^3.0.73",
|
|
52
|
-
"@ai-sdk/google": "^3.0.70",
|
|
53
|
-
"@ai-sdk/openai": "^3.0.55",
|
|
50
|
+
"@earendil-works/pi-ai": "^0.74.0",
|
|
54
51
|
"@slack/bolt": "^4.7.0",
|
|
55
52
|
"@types/bun": "^1.3.7",
|
|
56
53
|
"@types/diff": "^8.0.0",
|
|
57
54
|
"@types/picomatch": "^4.0.2",
|
|
58
55
|
"@types/react": "^19.2.9",
|
|
59
56
|
"@types/ws": "^8.18.1",
|
|
60
|
-
"ai": "^6.0.171",
|
|
61
57
|
"diff": "^8.0.2",
|
|
62
58
|
"grammy": "^1.42.0",
|
|
63
59
|
"husky": "9.1.7",
|
|
@@ -77,7 +73,7 @@
|
|
|
77
73
|
"typecheck": "tsc --noEmit",
|
|
78
74
|
"check:test-mock-isolation": "bun run scripts/check-test-mock-isolation.js",
|
|
79
75
|
"check": "bun run scripts/check.js",
|
|
80
|
-
"dev": "LETTA_DEBUG=${LETTA_DEBUG:-1} LETTA_RESPONSES_WS=${LETTA_RESPONSES_WS:-1} bun --loader
|
|
76
|
+
"dev": "LETTA_DEBUG=${LETTA_DEBUG:-1} LETTA_RESPONSES_WS=${LETTA_RESPONSES_WS:-1} bun --loader=.md:text --loader=.mdx:text --loader=.txt:text run src/index.ts",
|
|
81
77
|
"build": "node scripts/postinstall-patches.js && bun run build.js",
|
|
82
78
|
"test:update-chain:manual": "bun run src/tests/update-chain-smoke.ts --mode manual",
|
|
83
79
|
"test:update-chain:startup": "bun run src/tests/update-chain-smoke.ts --mode startup",
|
|
@@ -157,14 +157,16 @@ curl -X PATCH "https://api.letta.com/v1/agents/$LETTA_AGENT_ID" \
|
|
|
157
157
|
-H "Authorization: Bearer $LETTA_API_KEY" \
|
|
158
158
|
-H "Content-Type: application/json" \
|
|
159
159
|
-d '{
|
|
160
|
-
"
|
|
161
|
-
|
|
162
|
-
"model_endpoint_type": "anthropic",
|
|
163
|
-
"context_window": 200000
|
|
164
|
-
}
|
|
160
|
+
"model": "anthropic/claude-sonnet-4-5-20250929",
|
|
161
|
+
"context_window_limit": 200000
|
|
165
162
|
}'
|
|
166
163
|
```
|
|
167
164
|
|
|
165
|
+
Do not patch `llm_config` directly; the Letta API rejects deprecated
|
|
166
|
+
`llm_config` updates. Use `model` and `context_window_limit` instead. After the
|
|
167
|
+
patch, read the agent back and verify the effective `llm_config.context_window`
|
|
168
|
+
reported by the server.
|
|
169
|
+
|
|
168
170
|
**Rename yourself:**
|
|
169
171
|
```bash
|
|
170
172
|
curl -X PATCH "https://api.letta.com/v1/agents/$LETTA_AGENT_ID" \
|
|
@@ -218,8 +220,8 @@ Find your own entry by matching `agentId === $LETTA_AGENT_ID`, then edit the fie
|
|
|
218
220
|
| Gate edits with LLM | `add_hook.py --event PreToolUse --matcher "Edit|Write" --type prompt --prompt '...' --scope user` |
|
|
219
221
|
| Notify when done | `add_hook.py --event Stop --type command --command 'say done' --scope user` |
|
|
220
222
|
| Show config | `python3 <skill-dir>/scripts/show_config.py` |
|
|
221
|
-
| Change model | `PATCH /v1/agents/$LETTA_AGENT_ID` with `
|
|
222
|
-
| Change context window | `PATCH /v1/agents/$LETTA_AGENT_ID` with `llm_config.context_window` |
|
|
223
|
+
| Change model | `PATCH /v1/agents/$LETTA_AGENT_ID` with `model` |
|
|
224
|
+
| Change context window | `PATCH /v1/agents/$LETTA_AGENT_ID` with `context_window_limit`; verify returned `llm_config.context_window` |
|
|
223
225
|
| Rename | `PATCH /v1/agents/$LETTA_AGENT_ID` with `name` |
|
|
224
226
|
| Update description | `PATCH /v1/agents/$LETTA_AGENT_ID` with `description` |
|
|
225
227
|
| Change toolset | Edit `agents[].toolset` in `~/.letta/settings.json` |
|