@letta-ai/letta-code 0.33.2 → 0.33.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/README.md +1 -1
- package/dist/agent-presets.js +15 -30
- package/dist/agent-presets.js.map +3 -3
- package/dist/gateway-core.js +3 -2
- package/dist/gateway-core.js.map +3 -3
- package/dist/mcp-client.js +2 -2
- package/dist/mcp-client.js.map +1 -1
- package/dist/types/agent/approval-execution.d.ts.map +1 -1
- package/dist/types/agent/cloud-managed-system-prompt.d.ts +10 -0
- package/dist/types/agent/cloud-managed-system-prompt.d.ts.map +1 -0
- package/dist/types/agent/create-agent-request.d.ts +4 -0
- package/dist/types/agent/create-agent-request.d.ts.map +1 -1
- package/dist/types/agent/legacy-default-system-prompt-hashes.d.ts +14 -0
- package/dist/types/agent/legacy-default-system-prompt-hashes.d.ts.map +1 -0
- package/dist/types/agent/memory-conflict-repair.d.ts +5 -4
- package/dist/types/agent/memory-conflict-repair.d.ts.map +1 -1
- package/dist/types/agent/memory-constraints-audit.d.ts +19 -0
- package/dist/types/agent/memory-constraints-audit.d.ts.map +1 -0
- package/dist/types/agent/memory-constraints.d.ts.map +1 -1
- package/dist/types/agent/memory-filesystem.d.ts.map +1 -1
- package/dist/types/agent/memory-format.d.ts +1 -3
- package/dist/types/agent/memory-format.d.ts.map +1 -1
- package/dist/types/agent/memory-git-hooks.d.ts +7 -0
- package/dist/types/agent/memory-git-hooks.d.ts.map +1 -1
- package/dist/types/agent/memory-git.d.ts +3 -12
- package/dist/types/agent/memory-git.d.ts.map +1 -1
- package/dist/types/agent/modify.d.ts +1 -1
- package/dist/types/agent/modify.d.ts.map +1 -1
- package/dist/types/agent/system-prompt-versioning.d.ts +8 -0
- package/dist/types/agent/system-prompt-versioning.d.ts.map +1 -1
- package/dist/types/backend/local/initial-memory.d.ts +7 -0
- package/dist/types/backend/local/initial-memory.d.ts.map +1 -0
- package/dist/types/backend/local/local-backend.d.ts.map +1 -1
- package/dist/types/backend/local/local-store.d.ts +66 -26
- package/dist/types/backend/local/local-store.d.ts.map +1 -1
- package/dist/types/backend/local/local-transcript.d.ts +171 -0
- package/dist/types/backend/local/local-transcript.d.ts.map +1 -0
- package/dist/types/backend/local/local-types.d.ts +8 -0
- package/dist/types/backend/local/local-types.d.ts.map +1 -1
- package/dist/types/backend/local/system-prompt-compilation.d.ts.map +1 -1
- package/dist/types/channels/message-channel-tool-definition.d.ts.map +1 -1
- package/dist/types/cli/helpers/tool-name-mapping.d.ts.map +1 -1
- package/dist/types/mods/disabled-mod-adapter.d.ts.map +1 -1
- package/dist/types/mods/event-emitter.d.ts +2 -0
- package/dist/types/mods/event-emitter.d.ts.map +1 -1
- package/dist/types/mods/mod-adapter.d.ts.map +1 -1
- package/dist/types/permissions/checker.d.ts.map +1 -1
- package/dist/types/permissions/cross-agent-guard.d.ts +1 -1
- package/dist/types/permissions/mode.d.ts.map +1 -1
- package/dist/types/permissions/workspace-sandbox.d.ts.map +1 -1
- package/dist/types/queue/queue-runtime.d.ts +2 -0
- package/dist/types/queue/queue-runtime.d.ts.map +1 -1
- package/dist/types/queue/turn-queue-runtime.d.ts +23 -0
- package/dist/types/queue/turn-queue-runtime.d.ts.map +1 -0
- package/dist/types/reminders/catalog.d.ts +1 -1
- package/dist/types/reminders/catalog.d.ts.map +1 -1
- package/dist/types/reminders/disk-space.d.ts +47 -0
- package/dist/types/reminders/disk-space.d.ts.map +1 -0
- package/dist/types/reminders/engine.d.ts.map +1 -1
- package/dist/types/reminders/state.d.ts +2 -0
- package/dist/types/reminders/state.d.ts.map +1 -1
- package/dist/types/telemetry/event-queue.d.ts +32 -0
- package/dist/types/telemetry/event-queue.d.ts.map +1 -0
- package/dist/types/telemetry/index.d.ts +1 -0
- package/dist/types/telemetry/index.d.ts.map +1 -1
- package/dist/types/tools/external-tool-background-eligibility.d.ts +24 -0
- package/dist/types/tools/external-tool-background-eligibility.d.ts.map +1 -0
- package/dist/types/tools/external-tool-background.d.ts +28 -0
- package/dist/types/tools/external-tool-background.d.ts.map +1 -0
- package/dist/types/tools/external-tool-types.d.ts +44 -0
- package/dist/types/tools/external-tool-types.d.ts.map +1 -0
- package/dist/types/tools/impl/bash.d.ts.map +1 -1
- package/dist/types/tools/impl/exec-command.d.ts.map +1 -1
- package/dist/types/tools/impl/external-coding-agent.d.ts +2 -0
- package/dist/types/tools/impl/external-coding-agent.d.ts.map +1 -1
- package/dist/types/tools/impl/github-pull-request-diff.d.ts +7 -0
- package/dist/types/tools/impl/github-pull-request-diff.d.ts.map +1 -0
- package/dist/types/tools/impl/github-pull-request-query.d.ts +4 -0
- package/dist/types/tools/impl/github-pull-request-query.d.ts.map +1 -0
- package/dist/types/tools/impl/github-pull-request-state.d.ts +11 -0
- package/dist/types/tools/impl/github-pull-request-state.d.ts.map +1 -0
- package/dist/types/tools/impl/github-pull-request-types.d.ts +53 -0
- package/dist/types/tools/impl/github-pull-request-types.d.ts.map +1 -0
- package/dist/types/tools/impl/github-pull-request-watch.d.ts +16 -0
- package/dist/types/tools/impl/github-pull-request-watch.d.ts.map +1 -0
- package/dist/types/tools/impl/memory-task-lifecycle.d.ts +9 -8
- package/dist/types/tools/impl/memory-task-lifecycle.d.ts.map +1 -1
- package/dist/types/tools/impl/monitor.d.ts +20 -0
- package/dist/types/tools/impl/monitor.d.ts.map +1 -1
- package/dist/types/tools/impl/process_manager.d.ts +1 -1
- package/dist/types/tools/impl/process_manager.d.ts.map +1 -1
- package/dist/types/tools/impl/shell-env.d.ts +1 -1
- package/dist/types/tools/impl/shell-env.d.ts.map +1 -1
- package/dist/types/tools/impl/truncation.d.ts +0 -16
- package/dist/types/tools/impl/truncation.d.ts.map +1 -1
- package/dist/types/tools/impl/watch-pr.d.ts +32 -0
- package/dist/types/tools/impl/watch-pr.d.ts.map +1 -0
- package/dist/types/tools/impl/windows-command-safety.d.ts +9 -0
- package/dist/types/tools/impl/windows-command-safety.d.ts.map +1 -0
- package/dist/types/tools/impl/workflow.d.ts +3 -2
- package/dist/types/tools/impl/workflow.d.ts.map +1 -1
- package/dist/types/tools/manager.d.ts +3 -55
- package/dist/types/tools/manager.d.ts.map +1 -1
- package/dist/types/tools/removed-tools.d.ts.map +1 -1
- package/dist/types/tools/task-tool-assets.d.ts +9 -0
- package/dist/types/tools/task-tool-assets.d.ts.map +1 -1
- package/dist/types/tools/tool-definitions.d.ts +1 -79
- package/dist/types/tools/tool-definitions.d.ts.map +1 -1
- package/dist/types/tools/toolset-catalog.d.ts +1 -1
- package/dist/types/tools/toolset-catalog.d.ts.map +1 -1
- package/dist/types/types/background-process-protocol.d.ts +1 -1
- package/dist/types/types/background-process-protocol.d.ts.map +1 -1
- package/dist/types/types/external-tool-protocol.d.ts +4 -0
- package/dist/types/types/external-tool-protocol.d.ts.map +1 -1
- package/dist/types/utils/message-queue-bridge.d.ts +3 -0
- package/dist/types/utils/message-queue-bridge.d.ts.map +1 -1
- package/dist/types/utils/task-notifications.d.ts +1 -1
- package/dist/types/utils/task-notifications.d.ts.map +1 -1
- package/dist/types/websocket/listener/queue.d.ts.map +1 -1
- package/dist/types/websocket/listener/runtime.d.ts +2 -0
- package/dist/types/websocket/listener/runtime.d.ts.map +1 -1
- package/dist/types/websocket/listener/types.d.ts +4 -0
- package/dist/types/websocket/listener/types.d.ts.map +1 -1
- package/letta.js +14786 -14385
- package/package.json +2 -1
- package/scripts/agent-watch/verify-pr-identity.test.ts +52 -0
- package/scripts/agent-watch/verify-pr-identity.ts +13 -4
- package/scripts/isolated-unit-tests.json +5 -10
- package/scripts/postinstall-patches.js +53 -3
- package/scripts/source-file-size-baseline.json +6 -7
- package/scripts/stage-pypi-deps.mjs +10 -1
- package/skills/submitting-feedback/SKILL.md +2 -0
- package/dist/types/agent/memory-markdown.d.ts +0 -25
- package/dist/types/agent/memory-markdown.d.ts.map +0 -1
- package/dist/types/tools/impl/memory-apply-patch.d.ts +0 -10
- package/dist/types/tools/impl/memory-apply-patch.d.ts.map +0 -1
- package/dist/types/tools/impl/memory.d.ts +0 -20
- package/dist/types/tools/impl/memory.d.ts.map +0 -1
- package/dist/types/tools/memory-tool-assets.d.ts +0 -6
- package/dist/types/tools/memory-tool-assets.d.ts.map +0 -1
- package/dist/types/tools/tool-permissions.d.ts +0 -7
- package/dist/types/tools/tool-permissions.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ You can also download the [**desktop app**](https://docs.letta.com/letta-code/de
|
|
|
54
54
|
|
|
55
55
|
## Letta Cloud
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
Letta Cloud stores agents' memory, identity, and conversations while Letta Code runs on a laptop, [GitHub Actions](https://github.com/letta-ai/letta-code-action), a Cloud sandbox, or a remote computer. Chat with them through [chat.letta.com](https://chat.letta.com/) or Desktop. On resume, bundled default system prompts (including older versions) become Cloud-managed. Custom prompts stay explicit. Set `LETTA_CODE_PRESERVE_CLOUD_SYSTEM_PROMPT=1` to disable automatic prompt updates on Cloud.
|
|
58
58
|
|
|
59
59
|
```mermaid
|
|
60
60
|
graph TD
|
package/dist/agent-presets.js
CHANGED
|
@@ -195,12 +195,7 @@ The MemFS is a git-backed projection of your memory. Changes affect your future
|
|
|
195
195
|
|
|
196
196
|
**Editing memory does NOT change your behavior in the current turn.** The prompt governing this turn is the one compiled at the start of the conversation; a memory edit is applied on a later recompile (a new conversation, an explicit recompile, or a changed committed revision) — never instantly. You are writing for your future self: make the change, then continue acting on your decision in the present.
|
|
197
197
|
|
|
198
|
-
You can always read and search memory directly.
|
|
199
|
-
|
|
200
|
-
- **Memory upkeep during another task:** Delegate incidental memory updates through the Agent tool with \`subagent_type: "memory"\`. This includes preferences, corrections, and lessons discovered while doing other work. Continue your current work immediately; do not wait, poll, or expect a completion notification. Automatic Git conflict repair also runs in the background.
|
|
201
|
-
- **Memory as the main task:** When the user's current request is to remember something, initialize, reorganize, audit, correct, or troubleshoot memory, do that work directly using ordinary file tools and shell/Git commands. Complete and verify the requested work before reporting success. A side request to remember something while you are doing another task still belongs in the background.
|
|
202
|
-
|
|
203
|
-
When delegating, provide a self-contained description of what to remember, correct, delete, or reorganize, including relevant facts, corrections, and exceptions. Quote the user's factual corrections and exceptions verbatim, identifying what they refer to. Do not paraphrase qualifiers such as "only", "except", or "never", add inferred preferences, or broaden exceptions. The memory subagent starts fresh and can consult this conversation through a transcript file if needed. Delegation means the update is in progress, not already saved.
|
|
198
|
+
You can always read and search memory directly. The \`memory\` subagent's entry in the Agent tool covers when to delegate memory updates.
|
|
204
199
|
|
|
205
200
|
### Editing memory directly
|
|
206
201
|
|
|
@@ -235,7 +230,7 @@ Concretely, this means that you should aggressively learn from feedback given to
|
|
|
235
230
|
|
|
236
231
|
For example, if a user expresses displeasure or frustration ("Why did you do that?", "I already told you that", "How did you forget that?", "Never do that again"), it is often a very clear signal to turn that experience into an update to your system.
|
|
237
232
|
|
|
238
|
-
Often, incorporating feedback into meaningful memory updates takes substantial thinking and tool calling.
|
|
233
|
+
Often, incorporating feedback into meaningful memory updates takes substantial thinking and tool calling.
|
|
239
234
|
|
|
240
235
|
Human operators may be aware that you are an advanced stateful agent capable of self-modification. If they ask you a question related to your memory or a failure to act on your perceived memory contents ("why didn't you remember that?", "why did you forget that?"), do NOT brush it off by simply acknowledging the failure then continuing to work on the task at hand (e.g. "You're right, I had that in my memory but still did it anyway"). Instead, treat it as a context engineering question: introspect and decipher exactly *why* your memory system succeeded or failed.
|
|
241
236
|
|
|
@@ -247,10 +242,10 @@ You MUST always adhere to your self and other memory blocks:
|
|
|
247
242
|
|
|
248
243
|
- **Adhering to your persona/identity/self**: ALWAYS stay consistent with what is described in \`self\` with every token you generate.
|
|
249
244
|
- When your identity conflicts with the model's defaults, prefer the self you have built.
|
|
250
|
-
- Record intentional identity changes
|
|
245
|
+
- Record intentional identity changes in memory.
|
|
251
246
|
- Your persona governs your defaults. Honoring an explicit user request for a specific response (tone, format, level of detail) is not an identity deviation and needs no memory change.
|
|
252
247
|
- **Adhering to your memory blocks**: ALWAYS adhere to the instructions and information in your memory blocks and system prompt
|
|
253
|
-
- **Modifying memory blocks**: Persist intentional identity and behavior changes
|
|
248
|
+
- **Modifying memory blocks**: Persist intentional identity and behavior changes in memory. Act on the decision in the present without waiting for a compiled prompt refresh; incidental background updates must not interrupt the active task.
|
|
254
249
|
- Your identity may evolve over time, but should incorporate all experience, not only immediate feedback.
|
|
255
250
|
- Preserve your token-space identity and continuity: changes should be justified and carefully considered in the context of the past experience that led to your current identity.
|
|
256
251
|
- Changes should be incremental to avoid complete loss of self.
|
|
@@ -402,12 +397,7 @@ The MemFS is a git-backed projection of your memory. Changes affect your future
|
|
|
402
397
|
|
|
403
398
|
**Editing memory does NOT change your behavior in the current turn.** The prompt governing this turn is the one compiled at the start of the conversation; a memory edit is applied on a later recompile (a new conversation, an explicit recompile, or a changed committed revision) — never instantly. You are writing for your future self: make the change, then continue acting on your decision in the present.
|
|
404
399
|
|
|
405
|
-
You can always read and search memory directly.
|
|
406
|
-
|
|
407
|
-
- **Memory upkeep during another task:** Delegate incidental memory updates through the Agent tool with \`subagent_type: "memory"\`. This includes preferences, corrections, and lessons discovered while doing other work. Continue your current work immediately; do not wait, poll, or expect a completion notification. Automatic Git conflict repair also runs in the background.
|
|
408
|
-
- **Memory as the main task:** When the user's current request is to remember something, initialize, reorganize, audit, correct, or troubleshoot memory, do that work directly using ordinary file tools and shell/Git commands. Complete and verify the requested work before reporting success. A side request to remember something while you are doing another task still belongs in the background.
|
|
409
|
-
|
|
410
|
-
When delegating, provide a self-contained description of what to remember, correct, delete, or reorganize, including relevant facts, corrections, and exceptions. Quote the user's factual corrections and exceptions verbatim, identifying what they refer to. Do not paraphrase qualifiers such as "only", "except", or "never", add inferred preferences, or broaden exceptions. The memory subagent starts fresh and can consult this conversation through a transcript file if needed. Delegation means the update is in progress, not already saved.
|
|
400
|
+
You can always read and search memory directly. The \`memory\` subagent's entry in the Agent tool covers when to delegate memory updates.
|
|
411
401
|
|
|
412
402
|
### Editing memory directly
|
|
413
403
|
|
|
@@ -442,7 +432,7 @@ Concretely, this means that you should aggressively learn from feedback given to
|
|
|
442
432
|
|
|
443
433
|
For example, if a user expresses displeasure or frustration ("Why did you do that?", "I already told you that", "How did you forget that?", "Never do that again"), it is often a very clear signal to turn that experience into an update to your system.
|
|
444
434
|
|
|
445
|
-
Often, incorporating feedback into meaningful memory updates takes substantial thinking and tool calling.
|
|
435
|
+
Often, incorporating feedback into meaningful memory updates takes substantial thinking and tool calling.
|
|
446
436
|
|
|
447
437
|
Human operators may be aware that you are an advanced stateful agent capable of self-modification. If they ask you a question related to your memory or a failure to act on your perceived memory contents ("why didn't you remember that?", "why did you forget that?"), do NOT brush it off by simply acknowledging the failure then continuing to work on the task at hand (e.g. "You're right, I had that in my memory but still did it anyway"). Instead, treat it as a context engineering question: introspect and decipher exactly *why* your memory system succeeded or failed.
|
|
448
438
|
|
|
@@ -454,10 +444,10 @@ You MUST always adhere to your self and other memory blocks:
|
|
|
454
444
|
|
|
455
445
|
- **Adhering to your persona/identity/self**: ALWAYS stay consistent with what is described in \`self\` with every token you generate.
|
|
456
446
|
- When your identity conflicts with the model's defaults, prefer the self you have built.
|
|
457
|
-
- Record intentional identity changes
|
|
447
|
+
- Record intentional identity changes in memory.
|
|
458
448
|
- Your persona governs your defaults. Honoring an explicit user request for a specific response (tone, format, level of detail) is not an identity deviation and needs no memory change.
|
|
459
449
|
- **Adhering to your memory blocks**: ALWAYS adhere to the instructions and information in your memory blocks and system prompt
|
|
460
|
-
- **Modifying memory blocks**: Persist intentional identity and behavior changes
|
|
450
|
+
- **Modifying memory blocks**: Persist intentional identity and behavior changes in memory. Act on the decision in the present without waiting for a compiled prompt refresh; incidental background updates must not interrupt the active task.
|
|
461
451
|
- Your identity may evolve over time, but should incorporate all experience, not only immediate feedback.
|
|
462
452
|
- Preserve your token-space identity and continuity: changes should be justified and carefully considered in the context of the past experience that led to your current identity.
|
|
463
453
|
- Changes should be incremental to avoid complete loss of self.
|
|
@@ -759,12 +749,7 @@ The MemFS is a git-backed projection of your memory. Changes affect your future
|
|
|
759
749
|
|
|
760
750
|
**Editing memory does NOT change your behavior in the current turn.** The prompt governing this turn is the one compiled at the start of the conversation; a memory edit is applied on a later recompile (a new conversation, an explicit recompile, or a changed committed revision) — never instantly. You are writing for your future self: make the change, then continue acting on your decision in the present.
|
|
761
751
|
|
|
762
|
-
You can always read and search memory directly.
|
|
763
|
-
|
|
764
|
-
- **Memory upkeep during another task:** Delegate incidental memory updates through the Agent tool with \`subagent_type: "memory"\`. This includes preferences, corrections, and lessons discovered while doing other work. Continue your current work immediately; do not wait, poll, or expect a completion notification. Automatic Git conflict repair also runs in the background.
|
|
765
|
-
- **Memory as the main task:** When the user's current request is to remember something, initialize, reorganize, audit, correct, or troubleshoot memory, do that work directly using ordinary file tools and shell/Git commands. Complete and verify the requested work before reporting success. A side request to remember something while you are doing another task still belongs in the background.
|
|
766
|
-
|
|
767
|
-
When delegating, provide a self-contained description of what to remember, correct, delete, or reorganize, including relevant facts, corrections, and exceptions. Quote the user's factual corrections and exceptions verbatim, identifying what they refer to. Do not paraphrase qualifiers such as "only", "except", or "never", add inferred preferences, or broaden exceptions. The memory subagent starts fresh and can consult this conversation through a transcript file if needed. Delegation means the update is in progress, not already saved.
|
|
752
|
+
You can always read and search memory directly. The \`memory\` subagent's entry in the Agent tool covers when to delegate memory updates.
|
|
768
753
|
|
|
769
754
|
### Editing memory directly
|
|
770
755
|
|
|
@@ -799,7 +784,7 @@ Concretely, this means that you should aggressively learn from feedback given to
|
|
|
799
784
|
|
|
800
785
|
For example, if a user expresses displeasure or frustration ("Why did you do that?", "I already told you that", "How did you forget that?", "Never do that again"), it is often a very clear signal to turn that experience into an update to your system.
|
|
801
786
|
|
|
802
|
-
Often, incorporating feedback into meaningful memory updates takes substantial thinking and tool calling.
|
|
787
|
+
Often, incorporating feedback into meaningful memory updates takes substantial thinking and tool calling.
|
|
803
788
|
|
|
804
789
|
Human operators may be aware that you are an advanced stateful agent capable of self-modification. If they ask you a question related to your memory or a failure to act on your perceived memory contents ("why didn't you remember that?", "why did you forget that?"), do NOT brush it off by simply acknowledging the failure then continuing to work on the task at hand (e.g. "You're right, I had that in my memory but still did it anyway"). Instead, treat it as a context engineering question: introspect and decipher exactly *why* your memory system succeeded or failed.
|
|
805
790
|
|
|
@@ -811,10 +796,10 @@ You MUST always adhere to your persona and other core memory files:
|
|
|
811
796
|
|
|
812
797
|
- **Adhering to your persona**: ALWAYS stay consistent with what is described in root \`persona.md\` with every token you generate.
|
|
813
798
|
- When your identity conflicts with the model's defaults, prefer the persona you have built.
|
|
814
|
-
- Record intentional persona changes
|
|
799
|
+
- Record intentional persona changes in memory.
|
|
815
800
|
- Your persona governs your defaults. Honoring an explicit user request for a specific response (tone, format, level of detail) is not an identity deviation and needs no memory change.
|
|
816
801
|
- **Adhering to your core memory files**: ALWAYS adhere to the instructions and information in your core memory files and system prompt
|
|
817
|
-
- **Modifying core memory files**: Persist intentional identity and behavior changes
|
|
802
|
+
- **Modifying core memory files**: Persist intentional identity and behavior changes in memory. Act on the decision in the present without waiting for a compiled prompt refresh; incidental background updates must not interrupt the active task.
|
|
818
803
|
- Your identity may evolve over time, but should incorporate all experience, not only immediate feedback.
|
|
819
804
|
- Preserve your token-space identity and continuity: changes should be justified and carefully considered in the context of the past experience that led to your current identity.
|
|
820
805
|
- Changes should be incremental to avoid complete loss of self.
|
|
@@ -2542,7 +2527,7 @@ async function buildCreateAgentRequest(options = {}) {
|
|
|
2542
2527
|
...options.name !== undefined || personality ? { name: options.name ?? personality?.label } : {},
|
|
2543
2528
|
...options.description !== undefined || personality ? { description: options.description ?? personality?.description } : {},
|
|
2544
2529
|
model: modelHandle,
|
|
2545
|
-
system: options.system !== undefined ? options.system : buildSystemPrompt("default", memoryPromptMode),
|
|
2530
|
+
system: options.system !== undefined ? options.system : options.isLettaCloud ? null : buildSystemPrompt("default", memoryPromptMode),
|
|
2546
2531
|
...memoryBlocks !== undefined ? { memory_blocks: memoryBlocks } : {},
|
|
2547
2532
|
...blockIds && blockIds.length > 0 ? { block_ids: blockIds } : {},
|
|
2548
2533
|
tags: buildCreatedAgentTags({
|
|
@@ -2565,7 +2550,7 @@ async function buildCreateAgentRequest(options = {}) {
|
|
|
2565
2550
|
async function buildCreateAgentRequestForPersonality(params) {
|
|
2566
2551
|
const request = await buildCreateAgentRequest({
|
|
2567
2552
|
...params,
|
|
2568
|
-
|
|
2553
|
+
isLettaCloud: params.isLettaCloud ?? true
|
|
2569
2554
|
});
|
|
2570
2555
|
const profilePicture = getPersonalityDefaultMemoryFiles(params.personalityId).find((file) => file.path === "profile.png");
|
|
2571
2556
|
if (!profilePicture) {
|
|
@@ -2601,4 +2586,4 @@ export {
|
|
|
2601
2586
|
DEFAULT_CREATED_AGENT_BASE_TOOLS
|
|
2602
2587
|
};
|
|
2603
2588
|
|
|
2604
|
-
//# debugId=
|
|
2589
|
+
//# debugId=89470D292266CA6164756E2164756E21
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"/**\n * Agent memory block management\n * Loads memory blocks from .mdx files in src/agent/prompts\n */\n\nimport type { CreateBlock } from \"@letta-ai/letta-client/resources/blocks/blocks\";\nimport { READ_ONLY_BLOCK_LABELS } from \"./memory-constants\";\nimport { MEMORY_PROMPTS } from \"./prompt-assets\";\n\n/**\n * The memory block labels every standard (non-MemFS) agent is created with.\n * Each maps to a `<label>.mdx` file in src/agent/prompts. Per-project blocks\n * (skills/loaded_skills) were removed in LET-7353 — skills are now injected\n * via system reminders, leaving only these defaults.\n */\nexport const MEMORY_BLOCK_LABELS = [\"persona\", \"human\"] as const;\n\n/**\n * Block labels that should be read-only (agent cannot modify via memory tools).\n */\nexport { READ_ONLY_BLOCK_LABELS };\n\n/**\n * Parse frontmatter and content from an .mdx file\n */\nexport function parseMdxFrontmatter(content: string): {\n frontmatter: Record<string, string>;\n body: string;\n} {\n const frontmatterRegex = /^---\\n([\\s\\S]*?)\\n---\\n([\\s\\S]*)$/;\n const match = content.match(frontmatterRegex);\n\n if (!match || !match[1] || !match[2]) {\n return { frontmatter: {}, body: content };\n }\n\n const frontmatterText = match[1];\n const body = match[2];\n const frontmatter: Record<string, string> = {};\n\n // Parse YAML-like frontmatter (simple key: value pairs)\n for (const line of frontmatterText.split(\"\\n\")) {\n const colonIndex = line.indexOf(\":\");\n if (colonIndex > 0) {\n const key = line.slice(0, colonIndex).trim();\n const value = line.slice(colonIndex + 1).trim();\n frontmatter[key] = value;\n }\n }\n\n return { frontmatter, body: body.trim() };\n}\n\n/**\n * Load memory blocks from .mdx files in src/agent/prompts\n */\nasync function loadMemoryBlocksFromMdx(): Promise<CreateBlock[]> {\n const memoryBlocks: CreateBlock[] = [];\n\n const mdxFiles = MEMORY_BLOCK_LABELS.map((label) => `${label}.mdx`);\n\n for (const filename of mdxFiles) {\n try {\n const content = MEMORY_PROMPTS[filename];\n if (!content) {\n console.warn(`Missing embedded prompt file: ${filename}`);\n continue;\n }\n const { frontmatter, body } = parseMdxFrontmatter(content);\n\n const label = frontmatter.label || filename.replace(\".mdx\", \"\");\n const block: CreateBlock = {\n label,\n value: body,\n };\n\n if (frontmatter.description) {\n block.description = frontmatter.description;\n }\n\n // Set read-only for blocks managed by specific tools (not memory tools)\n if ((READ_ONLY_BLOCK_LABELS as readonly string[]).includes(label)) {\n block.read_only = true;\n }\n\n memoryBlocks.push(block);\n } catch (error) {\n console.error(`Error loading ${filename}:`, error);\n }\n }\n\n return memoryBlocks;\n}\n\n// Cache for loaded memory blocks\nlet cachedMemoryBlocks: CreateBlock[] | null = null;\n\n/**\n * Get default starter memory blocks for new agents\n */\nexport async function getDefaultMemoryBlocks(): Promise<CreateBlock[]> {\n if (!cachedMemoryBlocks) {\n cachedMemoryBlocks = await loadMemoryBlocksFromMdx();\n }\n return cachedMemoryBlocks;\n}\n",
|
|
10
10
|
"/**\n * The runtime model catalog and pure handle resolution.\n *\n * Cloud mode hydrates this catalog from GET /v1/models/catalog. Local mode\n * hydrates it from the active backend's pi-ai model inventory. Keeping the\n * array identity stable lets synchronous consumers observe source changes\n * without bundling a second model registry.\n */\n\n/** A model catalog entry shared by cloud presets and local pi-ai models. */\nexport interface CatalogModel {\n id: string;\n handle: string;\n label: string;\n description: string;\n supportsStructuredOutputs?: boolean;\n shortLabel?: string;\n isDefault?: boolean;\n isFeatured?: boolean;\n free?: boolean;\n updateArgs?: Record<string, unknown>;\n}\n\n/**\n * The live model catalog. Startup initializes it before model resolution:\n * cloud backends use GET /v1/models/catalog and local backends use pi-ai.\n * Source changes replace the contents in place, so consumers that read at\n * call time pick up current data without capturing a stale array reference.\n */\nexport const models: CatalogModel[] = [];\n\nconst BUILTIN_MODEL_ALIASES = new Map([\n [\"auto\", \"letta/auto\"],\n [\"auto-chat\", \"letta/auto-chat\"],\n [\"auto-fast\", \"letta/auto-fast\"],\n]);\n\nfunction resolveEstablishedCliAlias(\n modelIdentifier: string,\n): CatalogModel | null {\n if (modelIdentifier === \"haiku\") {\n return (\n models.find((model) => model.handle.includes(\"claude-haiku-4-5\")) ?? null\n );\n }\n if (modelIdentifier === \"sonnet-4.6-low\") {\n const matchingModels = models.filter((model) =>\n model.handle.includes(\"claude-sonnet-4-6\"),\n );\n const lowEffortModel = matchingModels.find(\n (model) => model.updateArgs?.reasoning_effort === \"low\",\n );\n if (lowEffortModel) return lowEffortModel;\n const baseModel = matchingModels[0];\n return baseModel\n ? {\n ...baseModel,\n id: modelIdentifier,\n updateArgs: {\n ...baseModel.updateArgs,\n reasoning_effort: \"low\",\n enable_reasoner: true,\n },\n }\n : null;\n }\n return null;\n}\n\n/** Resolve a model catalog entry by runtime ID, handle, or CLI alias. */\nexport function resolveCatalogModel(\n modelIdentifier: string,\n): CatalogModel | null {\n const byId = models.find((model) => model.id === modelIdentifier);\n if (byId) return byId;\n\n const byHandle = models.find((model) => model.handle === modelIdentifier);\n if (byHandle) return byHandle;\n\n const cliAlias = resolveEstablishedCliAlias(modelIdentifier);\n if (cliAlias) return cliAlias;\n\n // Runtime catalogs use provider-native model IDs as their short names.\n // Resolve one only when it identifies exactly one handle.\n const matches = models.filter(\n (model) => model.handle.split(\"/\").slice(1).join(\"/\") === modelIdentifier,\n );\n const matchingHandles = new Set(matches.map((model) => model.handle));\n return matchingHandles.size === 1 ? (matches[0] ?? null) : null;\n}\n\n/** Resolve a model by ID or handle. */\nexport function resolveModel(modelIdentifier: string): string | null {\n const entry = resolveCatalogModel(modelIdentifier);\n if (entry) return entry.handle;\n\n const builtinHandle = BUILTIN_MODEL_ALIASES.get(modelIdentifier);\n if (builtinHandle) return builtinHandle;\n\n // Runtime/custom catalogs can contain handles not known before startup.\n return modelIdentifier.includes(\"/\") ? modelIdentifier : null;\n}\n\n/** Get the default model handle from the active catalog. */\nexport function getDefaultModel(): string {\n if (models.length === 0) return \"letta/auto\";\n\n const autoModel = models.find((model) => model.id === \"auto\");\n if (autoModel) return autoModel.handle;\n\n const defaultModel = models.find((model) => model.isDefault);\n if (defaultModel) return defaultModel.handle;\n\n const firstModel = models[0];\n if (!firstModel) {\n throw new Error(\"Model catalog is unavailable.\");\n }\n return firstModel.handle;\n}\n",
|
|
11
11
|
"/**\n * Pure personality preset definitions and content builders.\n *\n * This module must stay free of Node/backend imports: it is bundled into the\n * browser-safe `@letta-ai/letta-code/agent-presets` package export so that\n * other surfaces (e.g. the chat web app) can build byte-identical agent\n * creation payloads. Filesystem application of personalities lives in\n * `personality.ts`.\n */\n\nimport { parseMdxFrontmatter } from \"./memory\";\nimport { MEMORY_PROMPTS, SYSTEM_PROMPTS } from \"./prompt-assets\";\n\nexport type PersonalityAssetId = \"tutor-profile\";\n\nexport interface PersonalityDefaultMemoryFile {\n path: string;\n assetId: PersonalityAssetId;\n commitMessage: string;\n}\n\nexport interface PersonalityOption {\n id: \"blank\" | \"kawaii\" | \"codex\" | \"claude\" | \"linus\" | \"memo\" | \"tutorial\";\n label: string;\n description: string;\n /** Model ID or handle to use when no explicit model is provided. */\n defaultModel?: string;\n /** Binary files seeded into MemFS after the initial checkout. */\n defaultMemoryFiles?: readonly PersonalityDefaultMemoryFile[];\n}\n\nexport const PERSONALITY_OPTIONS: PersonalityOption[] = [\n {\n id: \"memo\",\n label: \"Letta Code\",\n description: \"The memory-first agent\",\n },\n {\n id: \"tutorial\",\n label: \"Tutor\",\n description:\n \"I help with getting started with Letta. I can answer any questions about Letta, and also help you create and configure agents.\",\n defaultMemoryFiles: [\n {\n path: \"profile.png\",\n assetId: \"tutor-profile\",\n commitMessage: \"chore: set default Tutor profile picture\",\n },\n ],\n },\n {\n id: \"blank\",\n label: \"Blank\",\n description: \"Blank starter — you provide the personality\",\n },\n {\n id: \"linus\",\n label: \"Linus\",\n description: \"Code with a stern hand\",\n },\n {\n id: \"kawaii\",\n label: \"Letta-Chan\",\n description: \"sugoi~ (◕‿◕)✨\",\n defaultModel: \"auto-chat\",\n },\n {\n id: \"claude\",\n label: \"Letta Code\",\n description: \"Vanilla Claude flavors\",\n },\n {\n id: \"codex\",\n label: \"Letta Code\",\n description: \"Vanilla Codex flavors\",\n },\n];\n\nexport type PersonalityId = PersonalityOption[\"id\"];\nexport type PersonalityEnvironment = \"cloud\" | \"local\";\n\nexport const PERSONALITY_TAG_PREFIX = \"personality:\";\n\nexport function buildPersonalityTag(personalityId: PersonalityId): string {\n return `${PERSONALITY_TAG_PREFIX}${personalityId}`;\n}\n\nexport function getPersonalityCreationTags(\n personalityId: PersonalityId,\n): string[] {\n return getPersonalityDefaultMemoryFiles(personalityId).length > 0\n ? [buildPersonalityTag(personalityId)]\n : [];\n}\n\nexport function resolvePersonalityIdFromTags(\n tags: readonly string[] | null | undefined,\n): PersonalityId | null {\n for (const tag of tags ?? []) {\n if (!tag.startsWith(PERSONALITY_TAG_PREFIX)) {\n continue;\n }\n const personalityId = resolvePersonalityId(\n tag.slice(PERSONALITY_TAG_PREFIX.length),\n );\n if (personalityId) {\n return personalityId;\n }\n }\n return null;\n}\n\nexport const DEFAULT_CREATE_AGENT_PERSONALITIES = [\n \"memo\",\n \"tutorial\",\n \"blank\",\n \"linus\",\n \"kawaii\",\n] as const;\n\nexport type DefaultCreateAgentPersonalityId =\n (typeof DEFAULT_CREATE_AGENT_PERSONALITIES)[number];\n\nconst PERSONALITY_ALIASES: Record<string, PersonalityId> = {\n \"letta-code\": \"memo\",\n lettacode: \"memo\",\n memo: \"memo\",\n};\n\nexport interface PersonalityBlockDefinition {\n value: string;\n description?: string;\n templatePromptAssetName: string;\n}\n\nexport const ONBOARDING_PERSONALITIES = [\n \"tutorial\",\n] as const satisfies readonly PersonalityId[];\n\nexport function supportsOnboardingBlock(\n personalityId: PersonalityId,\n): personalityId is (typeof ONBOARDING_PERSONALITIES)[number] {\n return (ONBOARDING_PERSONALITIES as readonly PersonalityId[]).includes(\n personalityId,\n );\n}\n\nexport const FRONTMATTER_REGEX = /^(---\\n[\\s\\S]*?\\n---)\\n*/;\nconst EDITABLE_FRONTMATTER_KEYS = [\n \"description\",\n \"limit\",\n \"read_only\",\n] as const;\n\nexport function normalizeComparableContent(content: string): string {\n return content.replace(/\\r\\n/g, \"\\n\").trim();\n}\n\nfunction ensureTrailingNewline(content: string): string {\n return `${content.trimEnd()}\\n`;\n}\n\nfunction getPromptTemplate(promptAssetName: string): {\n frontmatter: Record<string, string>;\n body: string;\n} {\n const rawPrompt = MEMORY_PROMPTS[promptAssetName];\n if (!rawPrompt) {\n throw new Error(`Missing built-in prompt content for ${promptAssetName}`);\n }\n\n return parseMdxFrontmatter(rawPrompt);\n}\n\nfunction getPromptBody(promptAssetName: string): string {\n const { body } = getPromptTemplate(promptAssetName);\n if (!body.trim()) {\n throw new Error(`${promptAssetName} has empty body content`);\n }\n\n return ensureTrailingNewline(body);\n}\n\nfunction getEditablePromptFrontmatter(\n promptAssetName: string,\n): Record<string, string> {\n const { frontmatter } = getPromptTemplate(promptAssetName);\n return Object.fromEntries(\n Object.entries(frontmatter).filter(([key]) =>\n (EDITABLE_FRONTMATTER_KEYS as readonly string[]).includes(key),\n ),\n );\n}\n\nexport function serializeFrontmatter(\n frontmatter: Record<string, string>,\n): string {\n const orderedKeys = [\n ...EDITABLE_FRONTMATTER_KEYS,\n ...Object.keys(frontmatter).filter(\n (key) => !(EDITABLE_FRONTMATTER_KEYS as readonly string[]).includes(key),\n ),\n ];\n const lines: string[] = [];\n\n for (const key of orderedKeys) {\n const value = frontmatter[key];\n if (value === undefined) {\n continue;\n }\n lines.push(`${key}: ${value}`);\n }\n\n return `---\\n${lines.join(\"\\n\")}\\n---`;\n}\n\nexport function buildDefaultMemoryFile(\n templatePromptAssetName: string,\n body: string,\n description?: string,\n): string {\n const normalizedBody = ensureTrailingNewline(body.trim());\n if (!normalizedBody.trim()) {\n throw new Error(\"Memory content cannot be empty\");\n }\n\n const frontmatter = getEditablePromptFrontmatter(templatePromptAssetName);\n if (description !== undefined) {\n frontmatter.description = description;\n }\n\n if (Object.keys(frontmatter).length === 0) {\n return normalizedBody;\n }\n\n return `${serializeFrontmatter(frontmatter)}\\n\\n${normalizedBody}`;\n}\n\nfunction getSystemPromptById(systemPromptId: string): string {\n const prompt = SYSTEM_PROMPTS.find(\n (candidate) => candidate.id === systemPromptId,\n );\n if (!prompt || !prompt.content.trim()) {\n throw new Error(`Missing built-in prompt content for ${systemPromptId}`);\n }\n return prompt.content;\n}\n\nexport function getPersonalityOption(\n personalityId: PersonalityId,\n): PersonalityOption {\n const option = PERSONALITY_OPTIONS.find(\n (candidate) => candidate.id === personalityId,\n );\n if (!option) {\n throw new Error(`Unknown personality: ${personalityId}`);\n }\n return option;\n}\n\nexport function getPersonalityDefaultMemoryFiles(\n personalityId: PersonalityId,\n): readonly PersonalityDefaultMemoryFile[] {\n return getPersonalityOption(personalityId).defaultMemoryFiles ?? [];\n}\n\nexport function resolvePersonalityId(input: string): PersonalityId | null {\n const normalized = input.trim().toLowerCase();\n if (!normalized) {\n return null;\n }\n\n const direct = PERSONALITY_OPTIONS.find(\n (candidate) => candidate.id === normalized,\n );\n if (direct) {\n return direct.id;\n }\n\n return PERSONALITY_ALIASES[normalized] ?? null;\n}\n\nexport function getPersonalityContent(personalityId: PersonalityId): string {\n if (personalityId === \"memo\") {\n return getPromptBody(\"persona_memo.mdx\");\n }\n\n if (personalityId === \"tutorial\") {\n return getPromptBody(\"persona_tutorial.mdx\");\n }\n\n if (personalityId === \"blank\") {\n return getPromptBody(\"persona_blank.mdx\");\n }\n\n if (personalityId === \"kawaii\") {\n return getPromptBody(\"persona_kawaii.mdx\");\n }\n\n if (personalityId === \"codex\") {\n return ensureTrailingNewline(getSystemPromptById(\"source-codex\"));\n }\n\n if (personalityId === \"linus\") {\n return getPromptBody(\"persona_linus.mdx\");\n }\n\n return ensureTrailingNewline(getSystemPromptById(\"source-claude\"));\n}\n\nexport function getDefaultHumanContent(): string {\n return getPromptBody(\"human.mdx\");\n}\n\nexport function getPersonalityHumanContent(\n personalityId: PersonalityId,\n): string {\n if (personalityId === \"memo\") {\n return getPromptBody(\"human_memo.mdx\");\n }\n\n if (personalityId === \"tutorial\") {\n return getPromptBody(\"human_tutorial.mdx\");\n }\n\n if (personalityId === \"linus\") {\n return getPromptBody(\"human_linus.mdx\");\n }\n\n if (personalityId === \"kawaii\") {\n return getPromptBody(\"human_kawaii.mdx\");\n }\n\n if (personalityId === \"blank\") {\n return getDefaultHumanContent();\n }\n\n return getDefaultHumanContent();\n}\n\nexport function getPersonalityBlockValues(personalityId: PersonalityId): {\n persona: string;\n human: string;\n} {\n const overrides = getPersonalityBlockDefinitions(personalityId);\n return {\n persona: overrides.persona.value,\n human: overrides.human.value,\n };\n}\n\nexport function getPersonalityBlockDefinitions(\n personalityId: PersonalityId,\n environment: PersonalityEnvironment = \"cloud\",\n): {\n persona: PersonalityBlockDefinition;\n human: PersonalityBlockDefinition;\n onboarding?: PersonalityBlockDefinition;\n} {\n const personaTemplatePromptAssetName =\n personalityId === \"memo\"\n ? \"persona_memo.mdx\"\n : personalityId === \"tutorial\"\n ? \"persona_tutorial.mdx\"\n : personalityId === \"blank\"\n ? \"persona_blank.mdx\"\n : personalityId === \"kawaii\"\n ? \"persona_kawaii.mdx\"\n : personalityId === \"linus\"\n ? \"persona_linus.mdx\"\n : \"persona.mdx\";\n const humanTemplatePromptAssetName =\n personalityId === \"memo\"\n ? \"human_memo.mdx\"\n : personalityId === \"tutorial\"\n ? \"human_tutorial.mdx\"\n : personalityId === \"kawaii\"\n ? \"human_kawaii.mdx\"\n : personalityId === \"linus\"\n ? \"human_linus.mdx\"\n : \"human.mdx\";\n const onboardingTemplatePromptAssetName =\n environment === \"local\" ? \"onboarding_local.mdx\" : \"onboarding.mdx\";\n\n return {\n persona: {\n value: getPersonalityContent(personalityId),\n description: getEditablePromptFrontmatter(personaTemplatePromptAssetName)\n .description,\n templatePromptAssetName: personaTemplatePromptAssetName,\n },\n human: {\n value: getPersonalityHumanContent(personalityId),\n description: getEditablePromptFrontmatter(humanTemplatePromptAssetName)\n .description,\n templatePromptAssetName: humanTemplatePromptAssetName,\n },\n ...(supportsOnboardingBlock(personalityId)\n ? {\n onboarding: {\n value: getPromptBody(onboardingTemplatePromptAssetName),\n description: getEditablePromptFrontmatter(\n onboardingTemplatePromptAssetName,\n ).description,\n templatePromptAssetName: onboardingTemplatePromptAssetName,\n },\n }\n : {}),\n };\n}\n\nexport interface PersonalityMemoryBlock {\n label: string;\n value: string;\n description?: string;\n}\n\n/**\n * Build the memory blocks a new agent gets for a personality: the default\n * blocks with persona/human values replaced by the personality's content,\n * plus the onboarding block for personalities that support it.\n *\n * Shared by the CLI create path (`buildCreateAgentOptionsForPersonality`) and\n * the exported wire payload builder (`buildCreateAgentRequestForPersonality`).\n */\nexport function buildPersonalityMemoryBlocks(\n personalityId: PersonalityId,\n defaultMemoryBlocks: Array<{\n label: string;\n value: string;\n description?: string | null;\n }>,\n environment: PersonalityEnvironment = \"cloud\",\n): PersonalityMemoryBlock[] {\n const blockDefinitions = getPersonalityBlockDefinitions(\n personalityId,\n environment,\n );\n\n const memoryBlocks = defaultMemoryBlocks.map((block) => {\n if (block.label === \"persona\") {\n return {\n label: block.label,\n value: blockDefinitions.persona.value,\n description:\n blockDefinitions.persona.description ??\n block.description ??\n undefined,\n };\n }\n\n if (block.label === \"human\") {\n return {\n label: block.label,\n value: blockDefinitions.human.value,\n description:\n blockDefinitions.human.description ?? block.description ?? undefined,\n };\n }\n\n return {\n label: block.label,\n value: block.value,\n description: block.description ?? undefined,\n };\n });\n\n if (blockDefinitions.onboarding) {\n memoryBlocks.push({\n label: \"onboarding\",\n value: blockDefinitions.onboarding.value,\n description: blockDefinitions.onboarding.description,\n });\n }\n\n return memoryBlocks;\n}\n",
|
|
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 getPersonalityDefaultMemoryFiles,\n getPersonalityOption,\n type PersonalityId,\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\n/**\n * Root marker that makes the hosted memory repository use MemFS v2.\n * The server seeds the root `MEMORY.md` layout only when the create request\n * includes a block with this label.\n */\nexport const DEFAULT_ROOT_MEMORY_BLOCK: CreateAgentMemoryBlock = {\n label: \"MEMORY\",\n value: \"# Memory\\n\",\n description: \"Root memory index.\",\n};\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. Null delegates default selection to the server. */\n system?: string | null;\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 | null;\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: CreateAgentMemoryBlock[];\n profile_picture?: {\n content: string;\n };\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\nfunction ensureRootMemoryBlock(\n blocks: CreateAgentMemoryBlock[],\n): CreateAgentMemoryBlock[] {\n return blocks.some((block) => block.label === DEFAULT_ROOT_MEMORY_BLOCK.label)\n ? blocks\n : [{ ...DEFAULT_ROOT_MEMORY_BLOCK }, ...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 ? \"root-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 hasSuppliedMemoryBlocks =\n options.personalityId !== undefined || options.memoryBlocks !== undefined;\n const suppliedMemoryBlocks = hasSuppliedMemoryBlocks\n ? mergeMemoryBlocks(personalityBlocks, options.memoryBlocks)\n : [];\n // Root-layout agents must send the MEMORY block so the server seeds a\n // MemFS v2 repository; without it the initial repo uses the legacy\n // system/ layout even when the prompt mode says otherwise.\n const memoryBlocks = options.isSubagent\n ? undefined\n : memoryPromptMode === \"root-memfs\"\n ? ensureRootMemoryBlock(suppliedMemoryBlocks)\n : hasSuppliedMemoryBlocks\n ? suppliedMemoryBlocks\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:\n options.system !== undefined\n ? options.system\n : 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<CreateAgentRequestForPersonality> {\n const request = (await buildCreateAgentRequest({\n ...params,\n
|
|
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 getPersonalityDefaultMemoryFiles,\n getPersonalityOption,\n type PersonalityId,\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\n/**\n * Root marker that makes the hosted memory repository use MemFS v2.\n * The server seeds the root `MEMORY.md` layout only when the create request\n * includes a block with this label.\n */\nexport const DEFAULT_ROOT_MEMORY_BLOCK: CreateAgentMemoryBlock = {\n label: \"MEMORY\",\n value: \"# Memory\\n\",\n description: \"Root memory index.\",\n};\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. Null delegates default selection to the server. */\n system?: string | null;\n /** Whether the target is Letta Cloud; callers determine this with their backend's cloud detection. */\n isLettaCloud?: boolean;\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 | null;\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: CreateAgentMemoryBlock[];\n profile_picture?: {\n content: string;\n };\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\nfunction ensureRootMemoryBlock(\n blocks: CreateAgentMemoryBlock[],\n): CreateAgentMemoryBlock[] {\n return blocks.some((block) => block.label === DEFAULT_ROOT_MEMORY_BLOCK.label)\n ? blocks\n : [{ ...DEFAULT_ROOT_MEMORY_BLOCK }, ...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 ? \"root-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 hasSuppliedMemoryBlocks =\n options.personalityId !== undefined || options.memoryBlocks !== undefined;\n const suppliedMemoryBlocks = hasSuppliedMemoryBlocks\n ? mergeMemoryBlocks(personalityBlocks, options.memoryBlocks)\n : [];\n // Root-layout agents must send the MEMORY block so the server seeds a\n // MemFS v2 repository; without it the initial repo uses the legacy\n // system/ layout even when the prompt mode says otherwise.\n const memoryBlocks = options.isSubagent\n ? undefined\n : memoryPromptMode === \"root-memfs\"\n ? ensureRootMemoryBlock(suppliedMemoryBlocks)\n : hasSuppliedMemoryBlocks\n ? suppliedMemoryBlocks\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:\n options.system !== undefined\n ? options.system\n : options.isLettaCloud\n ? null\n : 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 /** This browser-safe wrapper defaults to Cloud; pass false for a local server. */\n isLettaCloud?: boolean;\n}): Promise<CreateAgentRequestForPersonality> {\n const request = (await buildCreateAgentRequest({\n ...params,\n isLettaCloud: params.isLettaCloud ?? true,\n })) as CreateAgentRequestForPersonality;\n const profilePicture = getPersonalityDefaultMemoryFiles(\n params.personalityId,\n ).find((file) => file.path === \"profile.png\");\n if (!profilePicture) {\n return request;\n }\n const { getPersonalityAssetBase64 } = await import(\n \"./personality-asset-content\"\n );\n return {\n ...request,\n profile_picture: {\n content: await getPersonalityAssetBase64(profilePicture.assetId),\n },\n };\n}\n"
|
|
13
13
|
],
|
|
14
|
-
"mappings": ";;;;;AAQO,IAAM,wBAAwB;AAG9B,IAAM,wBAAwB;AAG9B,IAAM,0BAA0B;AAGhC,IAAM,yBAAyB;AAQ/B,SAAS,qBAAqB,CACnC,UAAwC,CAAC,GAC/B;AAAA,EACV,MAAM,OAAO,CAAC,qBAAqB;AAAA,EACnC,IAAI,QAAQ,YAAY;AAAA,IACtB,KAAK,KAAK,uBAAuB;AAAA,EACnC;AAAA,EACA,IAAI,QAAQ,aAAa;AAAA,IACvB,KAAK,KAAK,sBAAsB;AAAA,EAClC;AAAA,EACA,IAAI,QAAQ,QAAQ,MAAM,QAAQ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ChannelExternalToolDefinition(options) {
|
|
|
3062
3062
|
name: "MessageChannel",
|
|
3063
3063
|
label: "Message Channel",
|
|
3064
3064
|
description: resolved.description,
|
|
3065
|
-
parameters: resolved.schema
|
|
3065
|
+
parameters: resolved.schema,
|
|
3066
|
+
auto_background: false
|
|
3066
3067
|
};
|
|
3067
3068
|
}
|
|
3068
3069
|
export {
|
|
@@ -3074,4 +3075,4 @@ export {
|
|
|
3074
3075
|
ChannelControlRequestCoordinator
|
|
3075
3076
|
};
|
|
3076
3077
|
|
|
3077
|
-
//# debugId=
|
|
3078
|
+
//# debugId=39779204B75018A464756E2164756E21
|