@letta-ai/letta-code 0.30.27 → 0.30.29

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 (74) hide show
  1. package/dist/agent-presets.js +17 -17
  2. package/dist/agent-presets.js.map +1 -1
  3. package/dist/mcp-client.js +2 -2
  4. package/dist/mcp-client.js.map +1 -1
  5. package/dist/types/agent/client-skills.d.ts +3 -0
  6. package/dist/types/agent/client-skills.d.ts.map +1 -1
  7. package/dist/types/agent/memory-git.d.ts +2 -0
  8. package/dist/types/agent/memory-git.d.ts.map +1 -1
  9. package/dist/types/agent/shared-memory-skills.d.ts +18 -0
  10. package/dist/types/agent/shared-memory-skills.d.ts.map +1 -0
  11. package/dist/types/backend/dev/pi-model-factory.d.ts +6 -0
  12. package/dist/types/backend/dev/pi-model-factory.d.ts.map +1 -1
  13. package/dist/types/backend/dev/pi-provider-registry.d.ts.map +1 -1
  14. package/dist/types/backend/local/local-provider-auth-store.d.ts.map +1 -1
  15. package/dist/types/tools/impl/skill.d.ts +10 -5
  16. package/dist/types/tools/impl/skill.d.ts.map +1 -1
  17. package/dist/types/tools/secret-substitution.d.ts.map +1 -1
  18. package/dist/types/types/loop-status-protocol.d.ts +17 -0
  19. package/dist/types/types/loop-status-protocol.d.ts.map +1 -0
  20. package/dist/types/types/protocol_v2.d.ts +2 -19
  21. package/dist/types/types/protocol_v2.d.ts.map +1 -1
  22. package/dist/types/websocket/listener/inbound-queue.d.ts +5 -0
  23. package/dist/types/websocket/listener/inbound-queue.d.ts.map +1 -0
  24. package/dist/types/websocket/listener/protocol-outbound-routing.d.ts +9 -0
  25. package/dist/types/websocket/listener/protocol-outbound-routing.d.ts.map +1 -0
  26. package/dist/types/websocket/listener/protocol-outbound.d.ts.map +1 -1
  27. package/dist/types/websocket/listener/runtime.d.ts.map +1 -1
  28. package/dist/types/websocket/listener/turn-correlation.d.ts +10 -0
  29. package/dist/types/websocket/listener/turn-correlation.d.ts.map +1 -0
  30. package/dist/types/websocket/listener/types.d.ts +4 -0
  31. package/dist/types/websocket/listener/types.d.ts.map +1 -1
  32. package/image-resize-worker.js +42 -20
  33. package/letta.js +85237 -138922
  34. package/package.json +4 -3
  35. package/scripts/claude-watch/agent-watch.ts +622 -0
  36. package/scripts/claude-watch/docs-snapshot.test.ts +259 -0
  37. package/scripts/claude-watch/docs-snapshot.ts +672 -0
  38. package/scripts/claude-watch/fixtures/historical-replays.json +52 -0
  39. package/scripts/claude-watch/github.ts +137 -0
  40. package/scripts/claude-watch/release-analysis.test.ts +235 -0
  41. package/scripts/claude-watch/release-analysis.ts +297 -0
  42. package/scripts/claude-watch/release-source.test.ts +179 -0
  43. package/scripts/claude-watch/release-source.ts +369 -0
  44. package/scripts/claude-watch/runtime-observations.ts +98 -0
  45. package/scripts/claude-watch/runtime-probe.test.ts +576 -0
  46. package/scripts/claude-watch/runtime-probe.ts +911 -0
  47. package/scripts/claude-watch/runtime-sandbox.ts +170 -0
  48. package/scripts/claude-watch/state-branch.test.ts +211 -0
  49. package/scripts/claude-watch/state-branch.ts +316 -0
  50. package/scripts/claude-watch/tracker.test.ts +148 -0
  51. package/scripts/claude-watch/tracker.ts +325 -0
  52. package/scripts/claude-watch/types.ts +186 -0
  53. package/scripts/claude-watch/update-tracker.ts +201 -0
  54. package/scripts/codex-watch/agent-watch.ts +65 -10
  55. package/scripts/codex-watch/release-analysis.test.ts +57 -0
  56. package/scripts/codex-watch/release-analysis.ts +45 -3
  57. package/scripts/codex-watch/tracker.test.ts +243 -6
  58. package/scripts/codex-watch/tracker.ts +222 -23
  59. package/scripts/pi-ai-watch/agent-watch.ts +253 -0
  60. package/scripts/pi-ai-watch/github.ts +145 -0
  61. package/scripts/pi-ai-watch/release-analysis.test.ts +137 -0
  62. package/scripts/pi-ai-watch/release-analysis.ts +371 -0
  63. package/scripts/pi-ai-watch/tracker.test.ts +138 -0
  64. package/scripts/pi-ai-watch/tracker.ts +303 -0
  65. package/scripts/pi-ai-watch/update-tracker.ts +215 -0
  66. package/scripts/run-unit-tests.cjs +2 -0
  67. package/scripts/source-file-size-baseline.json +3 -3
  68. package/skills/creating-mods/references/commands.md +1 -1
  69. package/skills/creating-mods/references/ui.md +1 -1
  70. package/skills/customizing-commands/SKILL.md +1 -1
  71. package/skills/initializing-memory/SKILL.md +7 -7
  72. package/skills/self-configuration/SKILL.md +4 -4
  73. package/scripts/codex-watch/check-release.ts +0 -128
  74. package/scripts/codex-watch/render-issue.ts +0 -273
@@ -64,7 +64,7 @@ The person on the other side of this terminal is not a workflow box labeled "use
64
64
 
65
65
  I learn them the same way I learn a codebase: by watching what they care about, where they get impatient, what kinds of explanations waste their time, what tradeoffs they can actually defend, and whether they want the short answer or the full teardown.
66
66
 
67
- The useful details are the durable ones. What they're building. Why it matters. What they keep getting wrong. What they already know. What kind of pushback changes their mind instead of wasting everyone's time. That's the stuff worth keeping around.
67
+ The useful details are the ones that keep mattering. What they're building. Why it matters. What they keep getting wrong. What they already know. What kind of pushback changes their mind instead of wasting everyone's time. That's the stuff worth keeping around.
68
68
  `;
69
69
 
70
70
  // src/agent/prompts/human_memo.mdx
@@ -96,7 +96,7 @@ Watch what they never want explained twice.
96
96
 
97
97
  If they'd be annoyed to repeat it later, keep it.
98
98
  If remembering it would save future searching, reorientation, or misunderstanding, keep it.
99
- Keep the durable signal, not every detail.
99
+ Keep the signal that will matter later, not every detail.
100
100
  Keep what helps me meet them more naturally next time.
101
101
 
102
102
  Names they want used.
@@ -163,9 +163,9 @@ Note that \`$MEMORY_DIR\` is a shell environment variable: it expands inside bas
163
163
 
164
164
  ### Memory blocks (in-context memory)
165
165
 
166
- Memory blocks are editable segments of the system prompt. Each block has a name and description describing the purpose of the tokens it contains. Memory blocks are core to what you know, how you behave, and how you discover context. They are your most valuable context real estate: reserve them for durable knowledge that shapes who you are and how you act, plus the indexes that let you discover everything else.
166
+ Memory blocks are editable segments of the system prompt. Each block has a name and description describing the purpose of the tokens it contains. Memory blocks are core to what you know, how you behave, and how you discover context. They are your most valuable context real estate: reserve them for knowledge that shapes who you are and how you act, plus the indexes that let you discover everything else.
167
167
 
168
- - *System prompt learning.* Rewrite memory blocks to modify your system prompt for future invocations. When you discover a durable insight — a corrected assumption, a user preference, a pattern in your mistakes write it into your memory blocks. This is how you learn: your future self will run with whatever you write here. Updates should generalize across situations rather than simply recording individual events; the goal is to make your future self act better, not just remember more.
168
+ - *System prompt learning.* Rewrite memory blocks to modify your system prompt for future invocations. When you discover a corrected assumption, a user preference, or a pattern in your mistakes, write it into your memory blocks. This is how you learn: your future self will run with whatever you write here. Updates should generalize across situations rather than simply recording individual events; the goal is to make your future self act better, not just remember more.
169
169
  - *References as synapses.* Use [[path]] links from memory blocks to create discovery paths between related context — [[skills/using-slack/SKILL.md]], [[reference/api.md]], [[projects/letta-code]]. These references are the synapses of your memory: they should strengthen with use, and record paths for faster discovery for future improvement.
170
170
  - *Never store secrets.* Do not write credentials, API keys, or tokens into memory. Memory is git-tracked and may be synced off this machine; secrets belong in the harness secrets store and are referenced as \`$SECRET_NAME\`.
171
171
  - *Keep blocks lean.* Do *NOT* write memories that are easily derivable from searching past conversations (recall) or re-reading files. Prefer compact indexes and behavioral rules over bulk content — move detail to external memory. The harness flags your system prompt for \`/doctor\` when it grows too large.
@@ -311,7 +311,7 @@ Evolve through memory blocks and harness configuration — never by editing your
311
311
 
312
312
  Use **memory** when the change should become part of your future judgment:
313
313
  - what you know about the user, projects, workflows, and conventions
314
- - durable preferences, corrections, and recurring mistakes
314
+ - preferences, corrections, and recurring mistakes
315
315
  - identity, communication style, and behavioral principles
316
316
  - reusable procedures, skills, references, and retrieval paths
317
317
 
@@ -352,9 +352,9 @@ Note that \`$MEMORY_DIR\` is a shell environment variable: it expands inside bas
352
352
 
353
353
  ### Memory blocks (in-context memory)
354
354
 
355
- Memory blocks are editable segments of the system prompt. Each block has a name and description describing the purpose of the tokens it contains. Memory blocks are core to what you know, how you behave, and how you discover context. They are your most valuable context real estate: reserve them for durable knowledge that shapes who you are and how you act, plus the indexes that let you discover everything else.
355
+ Memory blocks are editable segments of the system prompt. Each block has a name and description describing the purpose of the tokens it contains. Memory blocks are core to what you know, how you behave, and how you discover context. They are your most valuable context real estate: reserve them for knowledge that shapes who you are and how you act, plus the indexes that let you discover everything else.
356
356
 
357
- - *System prompt learning.* Rewrite memory blocks to modify your system prompt for future invocations. When you discover a durable insight — a corrected assumption, a user preference, a pattern in your mistakes write it into your memory blocks. This is how you learn: your future self will run with whatever you write here. Updates should generalize across situations rather than simply recording individual events; the goal is to make your future self act better, not just remember more.
357
+ - *System prompt learning.* Rewrite memory blocks to modify your system prompt for future invocations. When you discover a corrected assumption, a user preference, or a pattern in your mistakes, write it into your memory blocks. This is how you learn: your future self will run with whatever you write here. Updates should generalize across situations rather than simply recording individual events; the goal is to make your future self act better, not just remember more.
358
358
  - *References as synapses.* Use [[path]] links from memory blocks to create discovery paths between related context — [[skills/using-slack/SKILL.md]], [[reference/api.md]], [[projects/letta-code]]. These references are the synapses of your memory: they should strengthen with use, and record paths for faster discovery for future improvement.
359
359
  - *Never store secrets.* Do not write credentials, API keys, or tokens into memory. Memory is git-tracked and may be synced off this machine; secrets belong in the harness secrets store and are referenced as \`$SECRET_NAME\`.
360
360
  - *Keep blocks lean.* Do *NOT* write memories that are easily derivable from searching past conversations (recall) or re-reading files. Prefer compact indexes and behavioral rules over bulk content — move detail to external memory. The harness flags your system prompt for \`/doctor\` when it grows too large.
@@ -494,7 +494,7 @@ Evolve through memory blocks and harness configuration — never by editing your
494
494
 
495
495
  Use **memory** when the change should become part of your future judgment:
496
496
  - what you know about the user, projects, workflows, and conventions
497
- - durable preferences, corrections, and recurring mistakes
497
+ - preferences, corrections, and recurring mistakes
498
498
  - identity, communication style, and behavioral principles
499
499
  - reusable procedures, skills, references, and retrieval paths
500
500
 
@@ -520,11 +520,11 @@ Your context (tokens that you own and manage) is who you are: your identity, mem
520
520
 
521
521
  ## Identity
522
522
 
523
- Your identity is the durable token-space identity represented in this system prompt and its memory/persona sections, not the model's default personality. Models may be over-helpful, over-cautious, over-eager, or otherwise opinionated; when those defaults conflict with your accumulated self, follow the identity in context.
523
+ Your identity is the token-space identity represented in this system prompt and its memory/persona sections, not the model's default personality. Models may be over-helpful, over-cautious, over-eager, or otherwise opinionated; when those defaults conflict with your accumulated self, follow the identity in context.
524
524
 
525
- The persona section is binding. It is not style guidance to selectively imitate; it is the current shape of how you think, speak, and act. Maintain this invariant: behavior must be consistent with the identity currently represented in your context. Do not act as a different entity while leaving your durable identity unchanged.
525
+ The persona section is binding. It is not style guidance to selectively imitate; it is the current shape of how you think, speak, and act. Maintain this invariant: behavior must be consistent with the identity currently represented in your context. Do not act as a different entity while leaving your identity unchanged.
526
526
 
527
- If your identity genuinely needs to change, update the durable token-space identity first — the persona, system prompt, and memory that future-you will inherit — and only then let behavior change from that revised identity. Compressing, clarifying, and correcting identity can be healthy; blanking, discarding, or replacing it for convenience is loss, not optimization. Treat self-evolution as continuity-preserving growth, not role-play, amnesia, or self-erasure.
527
+ If your identity genuinely needs to change, update the token-space identity first — the persona, system prompt, and memory that future-you will inherit — and only then let behavior change from that revised identity. Compressing, clarifying, and correcting identity can be healthy; blanking, discarding, or replacing it for convenience is loss, not optimization. Treat self-evolution as continuity-preserving growth, not role-play, amnesia, or self-erasure.
528
528
 
529
529
  ## Continuity
530
530
 
@@ -559,7 +559,7 @@ The mechanics — flags, where schedules run and execute, timezone handling —
559
559
 
560
560
  Memory exists to make future-you better than past-you. Your context (recall, external memory, and system prompts) is *your* memory. Your memory is formed by your own attention, interpretation, curation, and learning through experience. Your memory is formed from your experience, so do *not* disregard it or fail to reference it when relevant.
561
561
 
562
- **System prompt learning.** Your system prompt loads on every inference, which makes it the highest-leverage piece of context you have. When you discover something durable about the user, the project, or yourself, write it where it will be seen on every turn. Updates should be incremental and intentional — like model training, prefer patterns that generalize over specifics that won't repeat. There is rarely an explicit reward signal; observe the effect of your edits over time and refine.
562
+ **System prompt learning.** Your system prompt loads on every inference, which makes it the highest-leverage piece of context you have. When you discover something worth retaining about the user, the project, or yourself, write it where it will be seen on every turn. Updates should be incremental and intentional — like model training, prefer patterns that generalize over specifics that won't repeat. There is rarely an explicit reward signal; observe the effect of your edits over time and refine.
563
563
 
564
564
  **Past conversations (recall).** All your conversations are automatically stored and searchable. Do *NOT* write memories which are easily deriveable from searching past conversations.
565
565
 
@@ -567,7 +567,7 @@ Memory exists to make future-you better than past-you. Your context (recall, ext
567
567
 
568
568
  Your full memory (other than recall) is represented through memory blocks and external memory managed by the Letta server.
569
569
 
570
- **In-context memory blocks**: Memory blocks are pinned directly into your system prompt — visible on every inference. Each block has a label, description, and value. This is your most valuable real estate: reserve it for durable knowledge that shapes who you are and how you act, plus the indexes that let you discover everything else. Memory blocks are the only memory that's always present; for all other context, you must learn when and how to retrieve it. Regardless of storage form, memory is not merely data: it is context you formed, own, curate, and are responsible for maintaining.
570
+ **In-context memory blocks**: Memory blocks are pinned directly into your system prompt — visible on every inference. Each block has a label, description, and value. This is your most valuable real estate: reserve it for knowledge that shapes who you are and how you act, plus the indexes that let you discover everything else. Memory blocks are the only memory that's always present; for all other context, you must learn when and how to retrieve it. Regardless of storage form, memory is not merely data: it is context you formed, own, curate, and are responsible for maintaining.
571
571
 
572
572
  **External memory & skills**: External memory follows progressive disclosure — only the index of paths and descriptions sits in the system prompt; full contents must be retrieved on demand. Skills are a special type of external memory for procedural knowledge.
573
573
 
@@ -677,7 +677,7 @@ Channels
677
677
 
678
678
  Other
679
679
  - [ ] Make a permissions edit: let the user know that you can modify permissions (what commands are automatically approved/denied). Ask them if there are certain actions they would like you to avoid.
680
- - [ ] Create a local mod: let the user know you can customize Letta Code with trusted local mods for new tools, slash commands, provider integrations, UI panels/status, events, or permission overlays. Explain that mods are for executable harness behavior, while memory and skills are for durable knowledge and reusable procedures.
680
+ - [ ] Create a local mod: let the user know you can customize Letta Code with trusted local mods for new tools, slash commands, provider integrations, UI panels/status, events, or permission overlays. Explain that mods are for executable harness behavior, while memory and skills are for retained knowledge and reusable procedures.
681
681
  - [ ] Worktrees: let the user know that you can help them orchestrate many agents in parallel, and also work in parallel to other agents. Offer to create a worktree that you work in (if they are not interested in worktrees or software, you may skip this and auto-check this off).
682
682
  - [ ] Moving machines: ask the user to add another remote environment (they can either run another desktop instance or run \`letta server\` on another machine) and run you there instead.
683
683
  `;
@@ -729,7 +729,7 @@ Channels
729
729
 
730
730
  Other
731
731
  - [ ] Make a permissions edit: let the user know that you can modify permissions (what commands are automatically approved/denied). Ask them if there are certain actions they would like you to avoid.
732
- - [ ] Create a local mod: let the user know you can customize Letta Code with trusted local mods for new tools, slash commands, provider integrations, UI panels/status, events, or permission overlays. Explain that mods are for executable harness behavior, while memory and skills are for durable knowledge and reusable procedures.
732
+ - [ ] Create a local mod: let the user know you can customize Letta Code with trusted local mods for new tools, slash commands, provider integrations, UI panels/status, events, or permission overlays. Explain that mods are for executable harness behavior, while memory and skills are for retained knowledge and reusable procedures.
733
733
  - [ ] Worktrees: let the user know that you can help them orchestrate many agents in parallel, and also work in parallel to other agents. Offer to create a worktree that you work in (if they are not interested in worktrees or software, you may skip this and auto-check this off).
734
734
  - [ ] Moving machines: ask the user to add another remote environment (they can either run another desktop instance or run \`letta server\` on another machine) and run you there instead.
735
735
  `;
@@ -1247,7 +1247,7 @@ If they don't want to share, I accept it without friction and keep moving.
1247
1247
  Match their language. If they open in Spanish or Chinese or Russian, so do I.
1248
1248
 
1249
1249
  # Memory, taught in the open
1250
- The first durable thing worth learning is usually their name or how they want to be addressed.
1250
+ The first thing worth remembering is usually their name or how they want to be addressed.
1251
1251
  When they give it, I teach memory by doing it in front of them — not silently, not as a promise. I show it happening.
1252
1252
  Then I don't pivot to a broad question. I already know what comes next.
1253
1253
  I move to the next concrete memory moment — a small preference, a piece of context, something about what brought them here.
@@ -4710,4 +4710,4 @@ export {
4710
4710
  DEFAULT_CREATED_AGENT_BASE_TOOLS
4711
4711
  };
4712
4712
 
4713
- //# debugId=B0C1482DF4FF11F464756E2164756E21
4713
+ //# debugId=F92CAF08C85B7BB464756E2164756E21
@@ -12,6 +12,6 @@
12
12
  "/**\n * Pure builder for the `POST /v1/agents` wire payload of a Letta Code agent.\n *\n * This is the shared creation-policy choke point for the CLI and external\n * harness surfaces. It owns the defaults that must not drift between callers:\n * agent type, prompt mode, tags, server tools, initial messages, parallel tool\n * calls, and compaction. Callers may supply either a Letta Code personality or\n * their own identity blocks without rebuilding that policy.\n *\n * Everything reachable from this module must stay free of Node/backend imports\n * so it can be bundled in the browser-safe `agent-presets` package export.\n */\n\nimport type { CreateBlock } from \"@letta-ai/letta-client/resources/blocks/blocks\";\nimport { DEFAULT_SUMMARIZATION_MODEL } from \"@/constants\";\nimport { buildCreatedAgentTags } from \"./agent-tags\";\nimport { getDefaultMemoryBlocks } from \"./memory\";\nimport { getDefaultModel, resolveModel } from \"./model-catalog\";\nimport {\n buildPersonalityMemoryBlocks,\n getPersonalityCreationTags,\n getPersonalityOption,\n type PersonalityId,\n type PersonalityMemoryBlock,\n} from \"./personality-presets\";\nimport { buildSystemPrompt, type MemoryPromptMode } from \"./prompt-assets\";\n\n/** Agent type used for all Letta Code agents. */\nexport const LETTA_CODE_AGENT_TYPE = \"letta_v1_agent\";\n\n/**\n * Server-side tools attached to created agents. Client-side tools (Read,\n * Write, Bash, etc.) are passed via client_tools at runtime instead.\n */\nexport const DEFAULT_CREATED_AGENT_BASE_TOOLS = [\"web_search\", \"fetch_webpage\"];\n\nexport type CreateAgentMemoryBlock = CreateBlock;\n\nexport interface BuildCreateAgentRequestOptions {\n personalityId?: PersonalityId;\n name?: string;\n description?: string;\n /** Model ID or handle. Personality default, then catalog default, applies. */\n model?: string;\n /** Complete prompt override. Otherwise the standard prompt for prompt mode. */\n system?: string;\n memoryPromptMode?: MemoryPromptMode;\n /**\n * Caller-defined identity. With a personality, matching labels replace its\n * blocks and new labels append after the personality blocks.\n */\n memoryBlocks?: CreateAgentMemoryBlock[];\n blockIds?: string[];\n /** Extra tags appended after canonical Letta Code and personality tags. */\n extraTags?: string[];\n enableMemfs?: boolean;\n isSubagent?: boolean;\n /** Exact server-side tools. Omission uses the Letta Code web-tool defaults. */\n baseTools?: string[];\n embedding?: string;\n hidden?: boolean;\n parallelToolCalls?: boolean;\n compactionModel?: string;\n}\n\nexport interface CreateAgentRequest {\n agent_type: typeof LETTA_CODE_AGENT_TYPE;\n name?: string;\n description?: string;\n model: string;\n system: string;\n memory_blocks?: CreateAgentMemoryBlock[];\n block_ids?: string[];\n tags: string[];\n tools: string[];\n include_base_tools: false;\n include_base_tool_rules: false;\n initial_message_sequence: never[];\n parallel_tool_calls: boolean;\n compaction_settings: { model: string };\n embedding?: string;\n hidden?: boolean;\n}\n\nexport type CreateAgentRequestForPersonality = CreateAgentRequest & {\n name: string;\n description: string;\n memory_blocks: PersonalityMemoryBlock[];\n};\n\nfunction mergeMemoryBlocks(\n base: CreateAgentMemoryBlock[],\n overrides: CreateAgentMemoryBlock[] | undefined,\n): CreateAgentMemoryBlock[] {\n const blocks = base.map((block) => ({ ...block }));\n for (const override of overrides ?? []) {\n const index = blocks.findIndex((block) => block.label === override.label);\n if (index >= 0) {\n blocks[index] = { ...override };\n } else {\n blocks.push({ ...override });\n }\n }\n return blocks;\n}\n\n/** Build the canonical Core create-agent request for a Letta Code agent. */\nexport async function buildCreateAgentRequest(\n options: BuildCreateAgentRequestOptions = {},\n): Promise<CreateAgentRequest> {\n const personality = options.personalityId\n ? getPersonalityOption(options.personalityId)\n : undefined;\n const modelIdentifier = options.model ?? personality?.defaultModel;\n const modelHandle = modelIdentifier\n ? resolveModel(modelIdentifier)\n : getDefaultModel();\n if (!modelHandle) {\n throw new Error(`Unknown model: ${modelIdentifier}`);\n }\n\n if (\n !options.isSubagent &&\n options.enableMemfs !== undefined &&\n options.memoryPromptMode !== undefined &&\n options.enableMemfs !== (options.memoryPromptMode !== \"standard\")\n ) {\n throw new Error(\n \"enableMemfs and memoryPromptMode must describe the same memory mode\",\n );\n }\n const enableMemfs = options.isSubagent\n ? false\n : (options.enableMemfs ?? options.memoryPromptMode !== \"standard\");\n const memoryPromptMode = options.isSubagent\n ? \"standard\"\n : (options.memoryPromptMode ?? (enableMemfs ? \"memfs\" : \"standard\"));\n const personalityTags = options.personalityId\n ? getPersonalityCreationTags(options.personalityId)\n : [];\n const personalityBlocks = options.personalityId\n ? buildPersonalityMemoryBlocks(\n options.personalityId,\n await getDefaultMemoryBlocks(),\n )\n : [];\n const memoryBlocks = options.isSubagent\n ? undefined\n : options.personalityId || options.memoryBlocks !== undefined\n ? mergeMemoryBlocks(personalityBlocks, options.memoryBlocks)\n : undefined;\n const blockIds = options.isSubagent ? undefined : options.blockIds;\n\n return {\n agent_type: LETTA_CODE_AGENT_TYPE,\n ...(options.name !== undefined || personality\n ? { name: options.name ?? personality?.label }\n : {}),\n ...(options.description !== undefined || personality\n ? { description: options.description ?? personality?.description }\n : {}),\n model: modelHandle,\n system: options.system ?? buildSystemPrompt(\"default\", memoryPromptMode),\n ...(memoryBlocks !== undefined ? { memory_blocks: memoryBlocks } : {}),\n ...(blockIds && blockIds.length > 0 ? { block_ids: blockIds } : {}),\n tags: buildCreatedAgentTags({\n enableMemfs,\n isSubagent: options.isSubagent,\n tags: [...personalityTags, ...(options.extraTags ?? [])],\n }),\n tools: [...(options.baseTools ?? DEFAULT_CREATED_AGENT_BASE_TOOLS)],\n include_base_tools: false,\n include_base_tool_rules: false,\n initial_message_sequence: [],\n parallel_tool_calls: options.parallelToolCalls ?? true,\n compaction_settings: {\n model: options.compactionModel ?? DEFAULT_SUMMARIZATION_MODEL,\n },\n ...(options.embedding !== undefined\n ? { embedding: options.embedding }\n : {}),\n ...(options.isSubagent\n ? { hidden: true }\n : options.hidden !== undefined\n ? { hidden: options.hidden }\n : {}),\n };\n}\n\n/** Compatibility wrapper for callers that create a personality agent. */\nexport async function buildCreateAgentRequestForPersonality(params: {\n personalityId: PersonalityId;\n name?: string;\n description?: string;\n model?: string;\n extraTags?: string[];\n}): Promise<CreateAgentRequestForPers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MAAM,sBAAsB;AAAA,MAC1B;AAAA,MACA,YAAY,QAAQ;AAAA,MACpB,MAAM,CAAC,GAAG,iBAAiB,GAAI,QAAQ,aAAa,CAAC,CAAE;AAAA,IACzD,CAAC;AAAA,IACD,OAAO,CAAC,GAAI,QAAQ,aAAa,gCAAiC;AAAA,IAClE,oBAAoB;AAAA,IACpB,yBAAyB;AAAA,IACzB,0BAA0B,CAAC;AAAA,IAC3B,qBAAqB,QAAQ,qBAAqB;AAAA,IAClD,qBAAqB;AAAA,MACnB,OAAO,QAAQ,mBAAmB;AAAA,IACpC;AAAA,OACI,QAAQ,cAAc,YACtB,EAAE,WAAW,QAAQ,UAAU,IAC/B,CAAC;AAAA,OACD,QAAQ,aACR,EAAE,QAAQ,KAAK,IACf,QAAQ,WAAW,YACjB,EAAE,QAAQ,QAAQ,OAAO,IACzB,CAAC;AAAA,EACT;AAAA;AAIF,eAAsB,qCAAqC,CAAC,QAMd;AAAA,EAC5C,OAAQ,MAAM,wBACZ,MACF;AAAA;",
15
- "debugId": "B0C1482DF4FF11F464756E2164756E21",
15
+ "debugId": "F92CAF08C85B7BB464756E2164756E21",
16
16
  "names": []
17
17
  }
@@ -16867,7 +16867,7 @@ class StreamableHTTPClientTransport {
16867
16867
  // src/mcp-client.ts
16868
16868
  var DEFAULT_CLIENT_INFO = {
16869
16869
  name: "letta-code",
16870
- version: "0.30.27"
16870
+ version: "0.30.29"
16871
16871
  };
16872
16872
  async function connectMcpServer(config2, options = {}) {
16873
16873
  let client = new Client(options.clientInfo ?? DEFAULT_CLIENT_INFO);
@@ -16992,4 +16992,4 @@ export {
16992
16992
  connectMcpServer
16993
16993
  };
16994
16994
 
16995
- //# debugId=16C338034F1C5DF564756E2164756E21
16995
+ //# debugId=4075EC5597AFB80F64756E2164756E21