@letta-ai/letta-code 0.34.59 → 0.34.61
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/app-server-client.cjs +23 -4
- package/dist/app-server-client.cjs.map +3 -3
- package/dist/app-server-client.js +23 -4
- package/dist/app-server-client.js.map +3 -3
- package/dist/mcp-client.js +2 -2
- package/dist/mcp-client.js.map +1 -1
- package/dist/mcp-oauth.js +2 -2
- package/dist/mcp-oauth.js.map +1 -1
- package/dist/types/agent/memory-git.d.ts +0 -4
- package/dist/types/agent/memory-git.d.ts.map +1 -1
- package/dist/types/agent/shared-memory-skills.d.ts.map +1 -1
- package/dist/types/app-server-client.d.ts.map +1 -1
- package/dist/types/backend/api/environments.d.ts +4 -0
- package/dist/types/backend/api/environments.d.ts.map +1 -1
- package/dist/types/backend/dev/pi-messages.d.ts +8 -0
- package/dist/types/backend/dev/pi-messages.d.ts.map +1 -0
- package/dist/types/backend/dev/pi-model-factory.d.ts +6 -0
- package/dist/types/backend/dev/pi-model-factory.d.ts.map +1 -1
- package/dist/types/backend/dev/pi-stream-adapter.d.ts.map +1 -1
- package/dist/types/backend/local/compaction-settings.d.ts +16 -0
- package/dist/types/backend/local/compaction-settings.d.ts.map +1 -0
- package/dist/types/backend/local/compaction.d.ts +20 -5
- package/dist/types/backend/local/compaction.d.ts.map +1 -1
- package/dist/types/backend/local/local-backend.d.ts +4 -3
- package/dist/types/backend/local/local-backend.d.ts.map +1 -1
- package/dist/types/tools/impl/remote-external-coding-agent.d.ts +2 -0
- package/dist/types/tools/impl/remote-external-coding-agent.d.ts.map +1 -1
- package/dist/types/tools/toolset-catalog.d.ts +1 -1
- package/letta.js +1250 -1069
- package/npm-shrinkwrap.json +5 -5
- package/package.json +2 -2
- package/skills/image-generation/SKILL.md +2 -1
- package/skills/working-across-computers/references/connect-a-computer-for-remote-access.md +2 -25
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letta-ai/letta-code",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.61",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"packages": {
|
|
6
6
|
"node_modules/@alcalzone/ansi-tokenize": {
|
|
@@ -3541,9 +3541,9 @@
|
|
|
3541
3541
|
}
|
|
3542
3542
|
},
|
|
3543
3543
|
"node_modules/mdast-util-to-hast": {
|
|
3544
|
-
"version": "13.2.
|
|
3545
|
-
"resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.
|
|
3546
|
-
"integrity": "sha512-
|
|
3544
|
+
"version": "13.2.2",
|
|
3545
|
+
"resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.2.tgz",
|
|
3546
|
+
"integrity": "sha512-l2pnmOuqs+SGLVpTVXnRLQu5v1AzvDe181404fbXzzqObVxrAnnVxapAP27pUwzLBL/ABIkgUhGlPVU7QSvIFg==",
|
|
3547
3547
|
"license": "MIT",
|
|
3548
3548
|
"dependencies": {
|
|
3549
3549
|
"@types/hast": "^3.0.0",
|
|
@@ -5083,7 +5083,7 @@
|
|
|
5083
5083
|
},
|
|
5084
5084
|
"": {
|
|
5085
5085
|
"name": "@letta-ai/letta-code",
|
|
5086
|
-
"version": "0.34.
|
|
5086
|
+
"version": "0.34.61",
|
|
5087
5087
|
"dependencies": {
|
|
5088
5088
|
"@cursor/sdk": "1.1.0",
|
|
5089
5089
|
"@earendil-works/pi-ai": "^1.5.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letta-ai/letta-code",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.61",
|
|
4
4
|
"lettaStartupLogProtocol": 1,
|
|
5
5
|
"lettaConfigDirProtocol": 1,
|
|
6
6
|
"description": "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
},
|
|
288
288
|
"lettaLifecycleProtocol": 1,
|
|
289
289
|
"lettaRuntimeGraphProtocol": 1,
|
|
290
|
-
"lettaRuntimeGraphSha512": "sha512-
|
|
290
|
+
"lettaRuntimeGraphSha512": "sha512-WIuDCHjU7HpMkupg3IJU9kpdNZeagbwQQttyZaFDwGbI5Joz+NYvDSWoXrYPaA1w2Oxy6HVIBBPtv/lzIoENmg==",
|
|
291
291
|
"patchedDependencies": {
|
|
292
292
|
"@earendil-works/pi-ai@1.5.2": "patches/@earendil-works%2Fpi-ai@1.5.2.patch"
|
|
293
293
|
}
|
|
@@ -157,7 +157,8 @@ and refine one thing at a time.
|
|
|
157
157
|
9. **Edits: separate the change from what must stay.** "Change only X", then
|
|
158
158
|
list what to preserve (identity, face, pose, geometry, layout, lighting,
|
|
159
159
|
labels, camera angle) and what to exclude. Repeat the preserve list on every
|
|
160
|
-
follow-up edit.
|
|
160
|
+
follow-up edit. When matching a reference's look, also describe what is wrong
|
|
161
|
+
with the current image so the model knows what to correct.
|
|
161
162
|
10. **Give each reference image a role by number**: "image 1 is the scene,
|
|
162
163
|
image 2 is the dog; put the dog on the sofa in image 1, keep everything else
|
|
163
164
|
unchanged". For style references, say which part to borrow (palette,
|
|
@@ -4,32 +4,9 @@ Use this guide when the user is connecting a computer for the first time, no sui
|
|
|
4
4
|
|
|
5
5
|
Explain that the user must complete setup **on the computer they want to connect**, signed into the same Letta account they use on chat.letta.com. Remote access lets agents run commands and access files on that machine, subject to tool approvals. Local-only / “Skip login” mode is not sufficient.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
This works for any computer, including a personal laptop, a terminal-only machine, or a VM. Give the steps below rather than only saying the computer is unavailable. Do not run registration commands in the Cloud sandbox as a substitute for connecting the user's machine.
|
|
8
8
|
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
Only for requests that arrive through Slack. Mint a connect token with the sandbox credentials. The token is pre-approved for the agent's owner and bound to the organization, so the command signs their computer in as them, in that organization, without a browser step:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
curl -sS -X POST "$LETTA_BASE_URL/v1/environments/connect-token" \
|
|
15
|
-
-H "Authorization: Bearer $LETTA_API_KEY" \
|
|
16
|
-
-H "Content-Type: application/json" -d '{}'
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
The response is `{ "deviceCode": "...", "organizationId": "...", "expiresIn": 900 }`. A 403 means this sandbox key does not resolve to an owner; tell the user and fall back to Option 2.
|
|
20
|
-
|
|
21
|
-
Ask the user to install [Node.js ^22.23.4, ^24.22.1, or ^26.12.1](https://nodejs.org/en/download) if they do not have it, then run this **on the computer they want to connect**, filling in both values from the response:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npm install -g @letta-ai/letta-code
|
|
25
|
-
letta server --org <organizationId> --token <deviceCode> --computer-name "work-laptop"
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Tell them the code works once and expires in 15 minutes; if it is used or expired, mint a new one rather than asking them to retry the old command. The CLI refuses a token minted for a different organization than `--org`, so pass the `organizationId` from the same response.
|
|
29
|
-
|
|
30
|
-
The command signs in as the owner. Send it only to that person: a DM, or the thread where the owner asked, never a broadcast in a shared channel. Do not post the command anywhere a second person can run it first.
|
|
31
|
-
|
|
32
|
-
## Option 2: CLI server (browser sign-in)
|
|
9
|
+
## Start the CLI server
|
|
33
10
|
|
|
34
11
|
Ask the user to install [Node.js ^22.23.4, ^24.22.1, or ^26.12.1](https://nodejs.org/en/download), then run these commands in a terminal **on the target computer**:
|
|
35
12
|
|