@letta-ai/letta-code 0.28.14 → 0.28.16

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.
Files changed (35) hide show
  1. package/README.md +12 -11
  2. package/dist/agent-presets.js +120 -11
  3. package/dist/agent-presets.js.map +4 -4
  4. package/dist/channels-slack.js +105 -1
  5. package/dist/channels-slack.js.map +8 -4
  6. package/dist/types/agent/agent-id.d.ts +5 -0
  7. package/dist/types/agent/agent-id.d.ts.map +1 -0
  8. package/dist/types/agent/personality-presets.d.ts +3 -2
  9. package/dist/types/agent/personality-presets.d.ts.map +1 -1
  10. package/dist/types/agent/prompt-assets.d.ts.map +1 -1
  11. package/dist/types/channels/lifecycle-error.d.ts +25 -0
  12. package/dist/types/channels/lifecycle-error.d.ts.map +1 -0
  13. package/dist/types/channels/slack/internal-types.d.ts +163 -0
  14. package/dist/types/channels/slack/internal-types.d.ts.map +1 -0
  15. package/dist/types/channels/slack/presentation.d.ts +18 -0
  16. package/dist/types/channels/slack/presentation.d.ts.map +1 -0
  17. package/dist/types/channels/slack/sender.d.ts.map +1 -1
  18. package/dist/types/channels/slack/utils.d.ts +39 -0
  19. package/dist/types/channels/slack/utils.d.ts.map +1 -0
  20. package/dist/types/types/protocol_v2.d.ts +1 -1
  21. package/dist/types/types/protocol_v2.d.ts.map +1 -1
  22. package/dist/types/utils/conversation-busy-error.d.ts +8 -0
  23. package/dist/types/utils/conversation-busy-error.d.ts.map +1 -0
  24. package/image-resize-worker.js +6586 -0
  25. package/letta.js +9408 -8833
  26. package/package.json +3 -1
  27. package/scripts/source-file-size-baseline.json +9 -9
  28. package/skills/creating-mods/SKILL.md +1 -1
  29. package/skills/creating-mods/references/architecture.md +1 -1
  30. package/skills/creating-mods/references/commands.md +1 -1
  31. package/skills/creating-mods/references/events.md +1 -1
  32. package/skills/creating-mods/references/providers.md +1 -1
  33. package/skills/letta-guide/SKILL.md +37 -18
  34. package/skills/letta-guide/scripts/fetch-letta-docs.mjs +440 -0
  35. package/skills/self-configuration/SKILL.md +19 -4
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: self-configuration
3
- description: Modify Letta Code's own memory, model, context window, system prompt, compaction, permissions, toolsets, mods, skills, channels, schedules, and local runtime settings. Use when the user asks you to change how you behave or how the harness runs you.
3
+ description: Inspect or modify Letta Code's own memory, model, context window, system prompt, compaction, permissions, toolsets, mods, skills, channels, schedules, and local runtime settings. Use when the user asks how this agent or conversation is configured, or asks you to change how you behave or how the harness runs you.
4
4
  license: MIT
5
5
  ---
6
6
 
@@ -48,13 +48,28 @@ If a broken model or prompt prevents the agent from completing a turn, recover o
48
48
 
49
49
  Local settings, server state, and the current process are different sources of truth. Inspect the layer you intend to change before writing it.
50
50
 
51
- Start with the secret-safe local/runtime report:
51
+ Start with the authenticated, backend-aware active configuration report:
52
+
53
+ ```bash
54
+ letta agents config
55
+ ```
56
+
57
+ With no arguments it uses `AGENT_ID` and `CONVERSATION_ID` from the current session. To inspect an explicit scope:
58
+
59
+ ```bash
60
+ letta agents config --agent "$AGENT_ID"
61
+ letta agents config --conversation "$CONVERSATION_ID"
62
+ ```
63
+
64
+ The conversation form retrieves its parent agent automatically and reports both scopes plus the effective configured model. It works through the active API or local backend; do not read auth files, call REST directly, or decode local persistence paths yourself. A configured router handle such as `letta/auto` does not identify the underlying model selected for one inference.
65
+
66
+ Use the secret-safe local/runtime report for harness settings, permissions, and backend diagnostics:
52
67
 
53
68
  ```bash
54
69
  python3 <SKILL_DIR>/scripts/show_config.py --cwd "$PWD"
55
70
  ```
56
71
 
57
- Before changing server state, read the relevant scopes without printing full system prompts or credentials:
72
+ Before changing server state, the targeted helper can also read either scope without printing full system prompts or credentials:
58
73
 
59
74
  ```bash
60
75
  npx tsx <SKILL_DIR>/scripts/update-agent-settings.ts \
@@ -349,7 +364,7 @@ letta connect lmstudio --base-url http://127.0.0.1:1234/v1 --timeout 600s
349
364
  letta connect bedrock --method profile --profile "$AWS_PROFILE" --region "$AWS_REGION"
350
365
  ```
351
366
 
352
- Before connecting, verify whether the target agent/backend is API/Constellation or local. A provider saved to the wrong backend does not configure the current agent.
367
+ Before connecting, verify whether the target agent/backend is Letta Cloud or local. A provider saved to the wrong backend does not configure the current agent.
353
368
 
354
369
  Never print provider keys. Shell expansion such as `--api-key "$OPENAI_API_KEY"` still puts the resolved secret in process argv, where process listings may expose it. Prefer the command's interactive secret prompt in a trusted TTY. If no safer input path exists, stop for explicit user approval rather than passing a provider secret autonomously. Browser login, device-code confirmation, or account consent also requires human consent; do not claim success before it completes.
355
370