@letta-ai/letta-code 0.33.1 → 0.33.2
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 +8 -8
- package/dist/agent-presets.js.map +1 -1
- package/dist/channels-public.js +6 -35
- package/dist/channels-public.js.map +3 -3
- package/dist/channels-slack.js +2 -2
- package/dist/channels-slack.js.map +4 -4
- package/dist/gateway-core.js +6 -35
- 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/memory-confinement.js.map +1 -1
- package/dist/types/agent/approval-execution.d.ts.map +1 -1
- package/dist/types/agent/subagents/index.d.ts.map +1 -1
- package/dist/types/agent/subagents/manager.d.ts.map +1 -1
- package/dist/types/agent/subagents/sandbox.d.ts +1 -1
- package/dist/types/agent/subagents/subagent-launcher.d.ts +1 -1
- package/dist/types/backend/api/conversation-enqueue.d.ts +3 -1
- package/dist/types/backend/api/conversation-enqueue.d.ts.map +1 -1
- package/dist/types/backend/api/request.d.ts +2 -1
- package/dist/types/backend/api/request.d.ts.map +1 -1
- package/dist/types/channels/progress-formatting.d.ts.map +1 -1
- package/dist/types/channels/slack/progress.d.ts.map +1 -1
- package/dist/types/cron/runner.d.ts +16 -68
- package/dist/types/cron/runner.d.ts.map +1 -1
- package/dist/types/cron/scheduler.d.ts.map +1 -1
- package/dist/types/managed-cloud-runtime.d.ts +9 -0
- package/dist/types/managed-cloud-runtime.d.ts.map +1 -0
- package/dist/types/permissions/canonical.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/cross-agent-guard.d.ts.map +1 -1
- package/dist/types/permissions/mode.d.ts.map +1 -1
- package/dist/types/sandbox/availability.d.ts +1 -1
- package/dist/types/tools/impl/exec-command.d.ts.map +1 -1
- package/dist/types/tools/impl/kill-bash.d.ts +0 -8
- package/dist/types/tools/impl/kill-bash.d.ts.map +1 -1
- package/dist/types/tools/impl/process_manager.d.ts +1 -1
- package/dist/types/tools/impl/send-agent-message.d.ts.map +1 -1
- package/dist/types/tools/impl/skill.d.ts +0 -6
- package/dist/types/tools/impl/skill.d.ts.map +1 -1
- package/dist/types/tools/impl/task-stop.d.ts.map +1 -1
- package/dist/types/tools/impl/tool-return-clamp.d.ts +2 -3
- package/dist/types/tools/impl/tool-return-clamp.d.ts.map +1 -1
- package/dist/types/tools/impl/wake.d.ts.map +1 -1
- package/dist/types/tools/manager.d.ts +1 -1
- package/dist/types/tools/manager.d.ts.map +1 -1
- package/dist/types/tools/removed-tools.d.ts +4 -0
- package/dist/types/tools/removed-tools.d.ts.map +1 -0
- package/dist/types/tools/tool-definitions.d.ts +1 -14
- package/dist/types/tools/tool-definitions.d.ts.map +1 -1
- package/dist/types/tools/tool-permissions.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/tools/toolset.d.ts.map +1 -1
- package/dist/types/tools/workflow/sdk-spawner.d.ts.map +1 -1
- package/dist/types/tools/workflow/types.d.ts +4 -0
- package/dist/types/tools/workflow/types.d.ts.map +1 -1
- package/dist/types/utils/debug.d.ts +11 -1
- package/dist/types/utils/debug.d.ts.map +1 -1
- package/letta.js +7758 -10184
- package/package.json +2 -2
- package/scripts/source-file-size-baseline.json +4 -5
- package/skills/creating-mods/references/plan-mode.md +6 -8
- package/skills/initializing-memory/SKILL.md +122 -640
- package/skills/initializing-memory/scripts/history-coverage.mjs +129 -0
- package/skills/initializing-memory/scripts/prepare-history.mjs +219 -0
- package/skills/scheduling-tasks/SKILL.md +15 -24
- package/skills/workflow-authoring/SKILL.md +6 -5
- package/dist/types/tools/impl/grep-files.d.ts +0 -19
- package/dist/types/tools/impl/grep-files.d.ts.map +0 -1
- package/dist/types/tools/impl/list-dir-codex.d.ts +0 -21
- package/dist/types/tools/impl/list-dir-codex.d.ts.map +0 -1
- package/dist/types/tools/impl/multi-edit.d.ts +0 -21
- package/dist/types/tools/impl/multi-edit.d.ts.map +0 -1
- package/dist/types/tools/impl/read-file-codex.d.ts +0 -24
- package/dist/types/tools/impl/read-file-codex.d.ts.map +0 -1
- package/dist/types/tools/impl/shell-command.d.ts +0 -25
- package/dist/types/tools/impl/shell-command.d.ts.map +0 -1
- package/dist/types/tools/impl/shell.d.ts +0 -25
- package/dist/types/tools/impl/shell.d.ts.map +0 -1
- package/dist/types/tools/impl/todo-write.d.ts +0 -14
- package/dist/types/tools/impl/todo-write.d.ts.map +0 -1
- package/skills/initializing-memory/ROOT_MEMORY.md +0 -723
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"import type { FsSandboxPolicy } from \"./policy.js\";\n\n/**\n * Linux bubblewrap backend.\n *\n * We shell out to `bwrap`, building a mount namespace that mirrors the same\n * policy model as Seatbelt:\n *\n * - The root filesystem is bound `--ro-bind` (write-scoped profile,\n * default-deny writes) or `--bind` (cross-agent profile, default-allow writes). This single\n * choice implements `restrictWrites` for free: under a read-only root, the\n * only writable paths are the explicit `--bind` carveouts.\n * - Each denied root is masked with `--tmpfs`, so other agents' directories\n * are not merely unwritable but *absent* — unreadable and unenumerable,\n * strictly stronger than the static guard.\n * - readonly / writable carveouts are re-bound on top. bwrap creates the\n * mountpoints inside the tmpfs as needed, so a self-memory dir nested in a\n * masked agents tree reappears.\n *\n * No `--unshare-net`: network stays open (out of scope for memory isolation).\n * `--die-with-parent` ensures the sandbox tears down with the agent process,\n * backing up the process-group kill in `shell-runner.ts`.\n *\n * Mount order matters — later operations layer over earlier ones: root → dev →\n * proc → base writable → mask denied → restore readonly → restore writable.\n * The base-writable binds come BEFORE the masks so a denied root nested inside a\n * broad base carve (the cross-agent tree under `~/.letta`) is still masked.\n */\n\n/** Default discovery name; availability probing may substitute a bundled path. */\nexport const BWRAP_BIN = \"bwrap\";\n\n/**\n * Build the bwrap flag list (everything between the binary and the `--`\n * separator). The caller prepends the bwrap path and appends\n * `\"--\"` + the inner launcher.\n */\nexport function buildBwrapArgs(policy: FsSandboxPolicy): string[] {\n const args: string[] = [];\n\n // Root view: read-only for write-scoped profiles, writable for cross-agent.\n args.push(policy.restrictWrites ? \"--ro-bind\" : \"--bind\", \"/\", \"/\");\n\n // Minimal writable /dev (gives us /dev/null, /dev/urandom, ptys) and a fresh\n // /proc so the masked root doesn't leak host process state.\n args.push(\"--dev\", \"/dev\");\n args.push(\"--proc\", \"/proc\");\n\n // Base writable roots: re-bind a broad harness dir (~/.letta) read-write on top\n // of the read-only root. Emitted BEFORE the masks below so a denied root nested\n // inside (the cross-agent tree) is still masked — the ancestor-carve hazard is\n // intentional and safe HERE precisely because the mask runs last. `-try` for\n // the same not-yet-created tolerance as the other carves.\n for (const root of policy.baseWritableRoots) {\n args.push(\"--bind-try\", root, root);\n }\n\n // Mask each denied root with an empty tmpfs.\n //\n // HAZARD (ancestor carve-out): the restore binds below run *after* these\n // masks, and bwrap is last-mount-wins for overlapping paths. A carve-out must\n // therefore be a *descendant of* (or disjoint from) every denied root — never\n // an ancestor. An ancestor carve-out (e.g. binding `/tmp` writable when the\n // agents tree lives under `/tmp`) re-binds the whole subtree on top of the\n // mask and silently re-exposes the denied roots. Callers must not produce\n // such roots; this is why the memory-subagent profile scopes writes to memory\n // roots and does not carve a temp dir. (Seatbelt has no equivalent: it matches\n // most-specific deny rules, independent of order.)\n for (const root of policy.deniedRoots) {\n args.push(\"--tmpfs\", root);\n }\n\n // Restore readonly/writable carveouts on top of the masks. Use the `-try`\n // variants: a carve-out root may not exist on disk yet — e.g. the\n // `memory-worktrees` sibling that `resolveAllowedMemoryRoots` always lists but\n // which is created lazily. Plain `--ro-bind`/`--bind` abort the *entire*\n // sandbox when the source is missing, so a not-yet-created root would fail the\n // spawn outright; `-try` skips a missing source (nothing to expose anyway, and\n // the denied-root masks above still hold). Seatbelt tolerates non-existent\n // paths natively, so this keeps the two backends behaviorally aligned.\n for (const root of policy.readonlyRoots) {\n args.push(\"--ro-bind-try\", root, root);\n }\n\n for (const root of policy.writableRoots) {\n args.push(\"--bind-try\", root, root);\n }\n\n args.push(\"--die-with-parent\");\n return args;\n}\n",
|
|
10
10
|
"import type { FsSandboxPolicy } from \"./policy.js\";\n\n/**\n * macOS Seatbelt backend.\n *\n * We shell out to `/usr/bin/sandbox-exec` with an inline SBPL profile (`-p`).\n * Concrete paths are passed as `-D` parameters and referenced in the profile as\n * `(param \"NAME\")`, so the profile text never needs SBPL string escaping and\n * paths with spaces / quotes are safe (we spawn argv directly, no shell).\n *\n * The profile is `(allow default)` plus targeted denies — deliberately narrower\n * than Codex's Chrome-derived `(deny default)` base. Our threat model is\n * filesystem scoping for memory isolation, not general untrusted-code\n * confinement, so allow-default keeps network, signals, ttys, and arbitrary dev\n * tools working untouched while the FS rules do the isolation. SBPL is\n * last-match-wins, which is why the deny/allow ordering below matters.\n */\n\n/** Hardcoded path — never resolved via PATH, to defend against a planted\n * `sandbox-exec` earlier on PATH (same rationale as Codex). */\nexport const SANDBOX_EXEC_PATH = \"/usr/bin/sandbox-exec\";\n\ninterface SeatbeltDefine {\n name: string;\n value: string;\n}\n\n/**\n * Build the SBPL profile text plus the `-D NAME=value` defines it references.\n * Exposed for snapshot testing; `buildSeatbeltArgs` is what callers use.\n */\nexport function buildSeatbeltProfile(policy: FsSandboxPolicy): {\n profile: string;\n defines: SeatbeltDefine[];\n} {\n const defines: SeatbeltDefine[] = [];\n const lines: string[] = [\"(version 1)\", \"(allow default)\"];\n\n // 1. Memory mode: deny all writes globally. Keep device writes (/dev/null,\n // ttys, pipes) working — countless tools depend on them and they are\n // irrelevant to filesystem isolation.\n if (policy.restrictWrites) {\n lines.push('(deny file-write* (subpath \"/\"))');\n lines.push('(allow file-write* (subpath \"/dev\"))');\n }\n\n // 2. Base writable roots: re-allow writes under a broad harness dir (~/.letta).\n // Emitted AFTER the global write-deny but BEFORE the denied roots, so a\n // cross-agent tree nested inside still gets walled off in step 3.\n policy.baseWritableRoots.forEach((root, i) => {\n const name = `BASEWRITABLE_${i}`;\n defines.push({ name, value: root });\n lines.push(`(allow file-write* (subpath (param \"${name}\")))`);\n });\n\n // 3. Wall off the denied roots entirely (read + write). Overrides the base\n // writable above for the cross-agent subtree.\n policy.deniedRoots.forEach((root, i) => {\n const name = `DENIED_${i}`;\n defines.push({ name, value: root });\n lines.push(`(deny file-read* file-write* (subpath (param \"${name}\")))`);\n // Git linked worktrees may stat denied ancestor directories while resolving\n // an allowed worktree path. Re-allow metadata on the denied root itself so\n // path canonicalization can succeed without exposing directory contents or\n // file data from other agents.\n lines.push(`(allow file-read-metadata (literal (param \"${name}\")))`);\n });\n\n // 4. Restore writable roots (read + write). Emitted after every deny above so\n // it wins — including for a self-memory dir nested inside a denied root.\n policy.writableRoots.forEach((root, i) => {\n const name = `WRITABLE_${i}`;\n defines.push({ name, value: root });\n lines.push(`(allow file-read* file-write* (subpath (param \"${name}\")))`);\n });\n\n // 5. Restore readonly roots (read only). Wins over the read-deny; the\n // corresponding write-deny still stands, so these stay read-only.\n policy.readonlyRoots.forEach((root, i) => {\n const name = `READONLY_${i}`;\n defines.push({ name, value: root });\n lines.push(`(allow file-read* (subpath (param \"${name}\")))`);\n });\n\n return { profile: `${lines.join(\"\\n\")}\\n`, defines };\n}\n\n/**\n * Build the argv tail for `sandbox-exec`: `[\"-p\", <profile>, \"-DNAME=value\",\n * ...]`. The caller prepends {@link SANDBOX_EXEC_PATH} and appends\n * `\"--\"` + the inner launcher.\n */\nexport function buildSeatbeltArgs(policy: FsSandboxPolicy): string[] {\n const { profile, defines } = buildSeatbeltProfile(policy);\n const args = [\"-p\", profile];\n for (const { name, value } of defines) {\n args.push(`-D${name}=${value}`);\n }\n return args;\n}\n",
|
|
11
11
|
"import { BWRAP_BIN, buildBwrapArgs } from \"./bwrap.js\";\nimport type { FsSandboxPolicy, SandboxBackend } from \"./policy.js\";\nimport { buildSeatbeltArgs, SANDBOX_EXEC_PATH } from \"./seatbelt.js\";\n\nexport interface WrapOptions {\n /** Which backend to render for. `null` disables wrapping (returns null). */\n backend: SandboxBackend | null;\n /** Resolved bwrap binary path (system or bundled). Defaults to `bwrap`. */\n bwrapPath?: string;\n}\n\n/**\n * Wrap an inner launcher (e.g. `[\"/bin/zsh\", \"-c\", cmd]`) so it runs under the\n * given sandbox backend with the given policy. Returns the wrapped argv, or\n * `null` when no backend is available — in which case the caller spawns the\n * launcher unchanged (falling back to the static guard tier).\n *\n * Backend selection is the caller's job (see `availability.ts`); this function\n * only renders argv, which keeps it a pure, snapshot-testable transform.\n */\nexport function wrapLauncher(\n launcher: string[],\n policy: FsSandboxPolicy,\n options: WrapOptions,\n): string[] | null {\n if (!options.backend) return null;\n if (launcher.length === 0) return null;\n\n switch (options.backend) {\n case \"seatbelt\":\n return [\n SANDBOX_EXEC_PATH,\n ...buildSeatbeltArgs(policy),\n \"--\",\n ...launcher,\n ];\n case \"bwrap\":\n return [\n options.bwrapPath ?? BWRAP_BIN,\n ...buildBwrapArgs(policy),\n \"--\",\n ...launcher,\n ];\n }\n}\n",
|
|
12
|
-
"import { spawnSync } from \"node:child_process\";\nimport { existsSync } from \"node:fs\";\nimport { delimiter, isAbsolute, join } from \"node:path\";\nimport type { SandboxBackend } from \"./policy.js\";\nimport { SANDBOX_EXEC_PATH } from \"./seatbelt.js\";\n\nexport interface SandboxAvailability {\n /** The usable backend, or null when none is available on this host. */\n backend: SandboxBackend | null;\n /** Resolved bwrap binary path, when `backend === \"bwrap\"`. */\n bwrapPath?: string;\n /** Human-readable explanation, primarily for the null case. */\n reason: string;\n}\n\nexport interface DetectOptions {\n /** Override the platform (for tests). Defaults to `process.platform`. */\n platform?: NodeJS.Platform;\n /** Bypass the module-level cache (for tests / re-probing). */\n force?: boolean;\n}\n\nlet cached: SandboxAvailability | null = null;\nconst warnedUnavailableContexts = new Set<string>();\n\n/**\n * Detect which filesystem-sandbox backend works on this host, probing for real\n * (Seatbelt: binary presence; bwrap: an actual user-namespace mount probe).\n * Result is cached for the process since it cannot change mid-run.\n */\nexport function detectSandboxBackend(\n options: DetectOptions = {},\n): SandboxAvailability {\n const platform = options.platform ?? process.platform;\n\n if (!options.force && cached && !options.platform) {\n return cached;\n }\n\n const result = probe(platform);\n\n if (!options.platform) {\n cached = result;\n }\n return result;\n}\n\n/** Clear the cached probe result (tests only). */\nexport function resetSandboxAvailabilityCache(): void {\n cached = null;\n}\n\n/**\n * Whether the memory-subagent filesystem sandbox is enabled. It is **on by\n * default**: memory subagents (reflection, memory, init
|
|
12
|
+
"import { spawnSync } from \"node:child_process\";\nimport { existsSync } from \"node:fs\";\nimport { delimiter, isAbsolute, join } from \"node:path\";\nimport type { SandboxBackend } from \"./policy.js\";\nimport { SANDBOX_EXEC_PATH } from \"./seatbelt.js\";\n\nexport interface SandboxAvailability {\n /** The usable backend, or null when none is available on this host. */\n backend: SandboxBackend | null;\n /** Resolved bwrap binary path, when `backend === \"bwrap\"`. */\n bwrapPath?: string;\n /** Human-readable explanation, primarily for the null case. */\n reason: string;\n}\n\nexport interface DetectOptions {\n /** Override the platform (for tests). Defaults to `process.platform`. */\n platform?: NodeJS.Platform;\n /** Bypass the module-level cache (for tests / re-probing). */\n force?: boolean;\n}\n\nlet cached: SandboxAvailability | null = null;\nconst warnedUnavailableContexts = new Set<string>();\n\n/**\n * Detect which filesystem-sandbox backend works on this host, probing for real\n * (Seatbelt: binary presence; bwrap: an actual user-namespace mount probe).\n * Result is cached for the process since it cannot change mid-run.\n */\nexport function detectSandboxBackend(\n options: DetectOptions = {},\n): SandboxAvailability {\n const platform = options.platform ?? process.platform;\n\n if (!options.force && cached && !options.platform) {\n return cached;\n }\n\n const result = probe(platform);\n\n if (!options.platform) {\n cached = result;\n }\n return result;\n}\n\n/** Clear the cached probe result (tests only). */\nexport function resetSandboxAvailabilityCache(): void {\n cached = null;\n}\n\n/**\n * Whether the memory-subagent filesystem sandbox is enabled. It is **on by\n * default**: memory subagents (reflection, memory, init) run\n * as whole confined processes with a scoped write surface, and there is no\n * interactive approve/deny flow that could stand in for it. Set\n * `LETTA_FS_SANDBOX=0` (or `false`) to opt out entirely. When no backend is\n * available on the host, {@link detectSandboxBackend} returns `{backend:null}`\n * and every sandbox entry point no-ops regardless of this flag.\n *\n * Lives in this leaf so both subagent spawning (agent layer) and parent Bash\n * wrapping (tools layer) gate on the same env var without importing each other.\n */\nexport function isFsSandboxEnabled(\n env: NodeJS.ProcessEnv = process.env,\n): boolean {\n const value = env.LETTA_FS_SANDBOX?.trim().toLowerCase();\n // Default on: only an explicit off-switch disables it.\n return value !== \"0\" && value !== \"false\";\n}\n\n/**\n * Whether the cross-agent shell sandbox (per-shell-command confinement of the\n * agent process's spawned shells) is enabled. It is **off by default**: an\n * interactive agent's own shells walling off other agents' memory broke\n * legitimate workflows (agents inspecting `~/.letta/agents`) with kernel\n * `Operation not permitted` errors that no permission mode could approve\n * through. Set `LETTA_FS_SANDBOX=1` (or `true`) to opt in — recommended for\n * multi-tenant deployments (app server, experiment runners) where one host\n * runs many agents that must not read each other's memory.\n *\n * `LETTA_FS_SANDBOX` semantics across both checks:\n * - unset → memory subagents sandboxed; agent shells unconfined\n * - `1`/`true` → both sandboxed\n * - `0`/`false` → nothing sandboxed\n */\nexport function isShellSandboxEnabled(\n env: NodeJS.ProcessEnv = process.env,\n): boolean {\n const value = env.LETTA_FS_SANDBOX?.trim().toLowerCase();\n // Opt-in only: an explicit on-switch enables it.\n return value === \"1\" || value === \"true\";\n}\n\n/**\n * Emit a loud, once-per-process warning when sandboxing was requested but this\n * host cannot provide a kernel backend. We intentionally continue rather than\n * fail closed: users can still work, but should know filesystem isolation is\n * degraded on this host.\n */\nexport function warnSandboxBackendUnavailable(\n availability: SandboxAvailability,\n context: string,\n): void {\n if (availability.backend) return;\n const key = `${context}:${availability.reason}`;\n if (warnedUnavailableContexts.has(key)) return;\n warnedUnavailableContexts.add(key);\n console.warn(\n `[sandbox] WARNING: ${context} requested filesystem isolation, but no ` +\n `kernel sandbox backend is available (${availability.reason}). ` +\n `Continuing without filesystem sandbox isolation.`,\n );\n}\n\nfunction probe(platform: NodeJS.Platform): SandboxAvailability {\n if (platform === \"darwin\") {\n if (existsSync(SANDBOX_EXEC_PATH)) {\n return { backend: \"seatbelt\", reason: \"sandbox-exec available\" };\n }\n return {\n backend: null,\n reason: `${SANDBOX_EXEC_PATH} not found`,\n };\n }\n\n if (platform === \"linux\") {\n return probeBwrap();\n }\n\n return {\n backend: null,\n reason: `no filesystem sandbox backend for platform \"${platform}\"`,\n };\n}\n\nfunction probeBwrap(): SandboxAvailability {\n // `bwrap` must exist on PATH (a bundled fallback can be wired in later).\n const bwrapPath = resolveExecutableOnPath(\"bwrap\");\n if (!bwrapPath) {\n return { backend: null, reason: \"bwrap not found on PATH\" };\n }\n\n const version = spawnSync(bwrapPath, [\"--version\"], { timeout: 5000 });\n if (version.error || version.status !== 0) {\n return { backend: null, reason: \"bwrap not found on PATH\" };\n }\n\n // Confirm unprivileged user namespaces actually work (they don't in WSL1 or\n // some hardened/container hosts). A read-only root + /bin/true is the\n // cheapest mount that exercises the namespace machinery.\n const userns = spawnSync(\n bwrapPath,\n [\"--ro-bind\", \"/\", \"/\", \"--unshare-user\", \"/bin/true\"],\n { timeout: 5000 },\n );\n if (userns.error || userns.status !== 0) {\n return {\n backend: null,\n reason: \"bwrap present but user namespaces are unavailable\",\n };\n }\n\n return { backend: \"bwrap\", bwrapPath, reason: \"bwrap available\" };\n}\n\nfunction resolveExecutableOnPath(\n executable: string,\n envPath: string | undefined = process.env.PATH,\n): string | null {\n if (isAbsolute(executable) && existsSync(executable)) return executable;\n for (const dir of (envPath ?? \"\").split(delimiter)) {\n if (!dir) continue;\n const candidate = join(dir, executable);\n if (existsSync(candidate)) return candidate;\n }\n return null;\n}\n",
|
|
13
13
|
"import {\n createMemoryConfinementLauncherWithAvailability,\n type MemoryConfinementLauncherInput,\n type MemoryConfinementLauncherResult,\n} from \"@/permissions/memory-confinement-launcher\";\nimport { detectSandboxBackend } from \"@/sandbox/availability\";\n\nexport type {\n MemoryConfinementLauncherInput,\n MemoryConfinementLauncherResult,\n} from \"@/permissions/memory-confinement-launcher\";\n\n/**\n * Wrap a process in the same fail-closed filesystem policy used by Letta\n * Code's unattended memory subagents.\n *\n * The process can read the host broadly, write harness state and its own\n * memory, and cannot read or write other agents' memory. Throws when no\n * supported kernel sandbox is available rather than silently running with a\n * weaker policy.\n */\nexport function createMemoryConfinementLauncher(\n input: MemoryConfinementLauncherInput,\n): MemoryConfinementLauncherResult {\n return createMemoryConfinementLauncherWithAvailability(\n input,\n detectSandboxBackend(),\n );\n}\n"
|
|
14
14
|
],
|
|
15
15
|
"mappings": ";AAAA,oBAAS;AACT,qBAAS,sBAAU,kBAAS,kBAAM;;;ACDlC;AACA,oBAAS;AACT,gDAAwC;;;ACFxC;AAsDO,IAAM,kBAAkB;AAuBxB,SAAS,oBAAoB,CAClC,SACiB;AAAA,EACjB,OAAO;AAAA,IACL,mBAAmB,eAAe,QAAQ,qBAAqB,CAAC,CAAC;AAAA,IACjE,aAAa,eAAe,QAAQ,eAAe,CAAC,CAAC;AAAA,IACrD,eAAe,eAAe,QAAQ,iBAAiB,CAAC,CAAC;AAAA,IACzD,eAAe,eAAe,QAAQ,iBAAiB,CAAC,CAAC;AAAA,IACzD,gBAAgB,QAAQ,kBAAkB;AAAA,EAC5C;AAAA;AAQK,SAAS,oBAAoB,CAAC,MAAsB;AAAA,EACzD,MAAM,UAAU,KAAK,KAAK;AAAA,EAC1B,MAAM,WACJ,MAAM,WAAW,OAAO,KAAK,MAAM,WAAW,OAAO,IACjD,UACA,MAAM,QAAQ,KAAK,OAAO;AAAA,EAChC,MAAM,UAAU,SAAS,QAAQ,OAAO,GAAG;AAAA,EAC3C,OAAO,QAAQ,QAAQ,QAAQ,EAAE,KAAK;AAAA;AAGxC,SAAS,cAAc,CAAC,OAA2B;AAAA,EACjD,MAAM,OAAO,IAAI;AAAA,EACjB,WAAW,QAAQ,OAAO;AAAA,IACxB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AK,IAAI,CAAC;CAC3D,GACA,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAmB9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/agent/subagents/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/agent/subagents/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAgD/D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,iBAAiB,CAAC;AAClE,MAAM,MAAM,8BAA8B,GAAG,SAAS,GAAG,MAAM,CAAC;AAEhE,sEAAsE;AACtE,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAC;I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O,CACR,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAA;CAAE,CAAC,CACvE,CAUA;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAK/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/agent/subagents/manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAaH,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,WAAW,CAAC;AAqBnB,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/agent/subagents/manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAaH,OAAO,EACL,KAAK,WAAW,EAGjB,MAAM,WAAW,CAAC;AAqBnB,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACpB,MAAM,GAAG,CAAC;AA2DX,UAAU,wBAAwB;IAChC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACnC,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,mDAAmD;AACnD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,cA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to a subagent child process at spawn.
|
|
6
6
|
*
|
|
7
|
-
* Subagents with the memory-subagent profile (reflection, memory, init
|
|
7
|
+
* Subagents with the memory-subagent profile (reflection, memory, init) operate
|
|
8
8
|
* on their parent's memory as their working filesystem. Wrapping the whole child
|
|
9
9
|
* process kernel-enforces the write scope — covering its in-process Write/Edit
|
|
10
10
|
* tools, its Bash commands, and anything those spawn.
|
|
@@ -69,7 +69,7 @@ export interface ComposeSubagentChildEnvOptions {
|
|
|
69
69
|
* - MEMORY_DIR / LETTA_MEMORY_DIR are only overridden when the subagent
|
|
70
70
|
* declares the memory-subagent launch profile. Those subagents operate on
|
|
71
71
|
* the parent's memory as their working filesystem (reflection, memory,
|
|
72
|
-
* init
|
|
72
|
+
* init). Other subagents keep whatever MEMORY_DIR they
|
|
73
73
|
* inherited from the parent process (usually unset).
|
|
74
74
|
*
|
|
75
75
|
* Pure function, no side effects — straightforward to unit-test.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { MessageCreate } from "@letta-ai/letta-client/resources/agents/agents";
|
|
2
2
|
import type { Message } from "@letta-ai/letta-client/resources/agents/messages";
|
|
3
|
-
import { apiRequest } from "./request";
|
|
3
|
+
import { ApiRequestError, apiRequest } from "./request";
|
|
4
|
+
/** Only the server's explicit pre-admission rejection proves a POST was not accepted. */
|
|
5
|
+
export declare function isProvenCloudApiShutdownRejection(error: unknown): error is ApiRequestError;
|
|
4
6
|
export interface EnqueueReceipt {
|
|
5
7
|
status: "queued";
|
|
6
8
|
agent_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-enqueue.d.ts","sourceRoot":"","sources":["../../../../src/backend/api/conversation-enqueue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAGhF,OAAO,
|
|
1
|
+
{"version":3,"file":"conversation-enqueue.d.ts","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,WAAW,GACnB,OAAO,CAAC,0BAA0B,CAAC,CAOrC"}
|
|
@@ -17,7 +17,8 @@ export interface ApiFetchOptions {
|
|
|
17
17
|
export declare class ApiRequestError extends Error {
|
|
18
18
|
readonly status: number;
|
|
19
19
|
readonly responseText: string;
|
|
20
|
-
|
|
20
|
+
readonly headers?: Headers | undefined;
|
|
21
|
+
constructor(message: string, status: number, responseText: string, headers?: Headers | undefined);
|
|
21
22
|
}
|
|
22
23
|
export declare function getApiRequestConfig(): Promise<ApiRequestConfig>;
|
|
23
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/backend/api/request.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEnE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACtE;AAED,qBAAa,eAAgB,SAAQ,KAAK;IAGtC,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,QAAQ,CAAC,YAAY,EAAE,MAAM;
|
|
1
|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ChC,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,OAAO,GAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAM,GACrD,OAAO,CAAC,CAAC,CAAC,CAyBZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-formatting.d.ts","sourceRoot":"","sources":["../../../src/channels/progress-formatting.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,2BAA2B,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"progress-formatting.d.ts","sourceRoot":"","sources":["../../../src/channels/progress-formatting.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAoD/C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAIvE;AAED,wBAAgB,mBAAmB,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,GAAG,SAAS,CAO5E;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,MAAM,SAAQ,GACb,MAAM,CAQR;AAmBD;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAWlE;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,EACd,SAAS,GAAE,MAAiC,GAC3C,MAAM,CAKR;AAED,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,MAAM,GACf,MAAM,CAOR;AA2BD,KAAK,sBAAsB,GACvB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3B,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;AAEjD,MAAM,MAAM,iCAAiC,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progress.d.ts","sourceRoot":"","sources":["../../../../src/channels/slack/progress.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAGjE,eAAO,MAAM,8BAA8B,mBAAmB,CAAC;AAC/D,eAAO,MAAM,8BAA8B,kBAAkB,CAAC;AAI9D,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB,MAAM,CAOR;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAYtE;AAED,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,wBAAwB,GAC9B,MAAM,GAAG,IAAI,CAgCf"}
|
|
@@ -7,35 +7,24 @@
|
|
|
7
7
|
* - "cloud": durable Cloud schedules (`/v1/agents/:id/schedule`), fired by a
|
|
8
8
|
* cloud worker into a target listener or the agent's managed Cloud sandbox.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* the untargeted schedule (which already fires in the agent's Cloud sandbox).
|
|
14
|
-
* `--runner cloud` deliberately selects the managed Cloud sandbox;
|
|
15
|
-
* `--runner local` selects process-local storage. Local-backend agents
|
|
16
|
-
* (`agent-local-*`) always use the local runner, and servers that don't serve
|
|
17
|
-
* the Cloud schedule routes (self-hosted OSS core) fall back to it.
|
|
10
|
+
* Runner ownership follows the execution environment:
|
|
11
|
+
* - Letta-managed Cloud sandboxes use durable Cloud schedules.
|
|
12
|
+
* - User-managed computers and self-hosted runtimes use local schedules.
|
|
18
13
|
*
|
|
19
|
-
* Cloud
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
14
|
+
* Cloud's owning spawner assigns the listener a `sandbox:` identity. Listener
|
|
15
|
+
* bootstrap derives an inherited runtime marker before consuming that private
|
|
16
|
+
* relay identity. Device registration is not an execution-environment signal:
|
|
17
|
+
* Cloud API-backed laptops are still local computers, and a managed sandbox may
|
|
18
|
+
* have a transient or unregistered listener device id.
|
|
23
19
|
*/
|
|
24
|
-
import { type EnvironmentConnection } from "../backend/api/environments";
|
|
25
20
|
export type CronRunner = "local" | "cloud";
|
|
26
21
|
export declare const CLOUD_EXECUTION_TARGET = "cloud-sandbox";
|
|
22
|
+
export declare function isManagedCloudSandbox(env?: NodeJS.ProcessEnv): boolean;
|
|
27
23
|
export interface ResolveCronRunnerParams {
|
|
28
|
-
|
|
29
|
-
explicit?: string;
|
|
30
|
-
agentId: string;
|
|
24
|
+
managedCloudSandbox: boolean;
|
|
31
25
|
/** Active backend mode ("api" | "local"). */
|
|
32
26
|
backendMode: "api" | "local";
|
|
33
|
-
/**
|
|
34
|
-
* Whether the configured server serves the Cloud schedule routes, when
|
|
35
|
-
* known (from probing `GET /v1/agents/:id/schedule`). Omit for the
|
|
36
|
-
* pre-probe pass: cloud-eligible agents then resolve to "cloud" as a
|
|
37
|
-
* candidate, and the caller re-resolves once support is known.
|
|
38
|
-
*/
|
|
27
|
+
/** Whether the configured server serves the Cloud schedule routes. */
|
|
39
28
|
cloudSchedulesSupported?: boolean;
|
|
40
29
|
}
|
|
41
30
|
export type ResolveCronRunnerResult = {
|
|
@@ -45,8 +34,8 @@ export type ResolveCronRunnerResult = {
|
|
|
45
34
|
error: string;
|
|
46
35
|
};
|
|
47
36
|
export declare function resolveCronRunner(params: ResolveCronRunnerParams): ResolveCronRunnerResult;
|
|
48
|
-
/** Resolve
|
|
49
|
-
export declare function resolveCronRunnerForAgent(
|
|
37
|
+
/** Resolve schedule ownership from the current execution environment. */
|
|
38
|
+
export declare function resolveCronRunnerForAgent(agentId: string): Promise<ResolveCronRunnerResult>;
|
|
50
39
|
export type TargetDeviceValidity = {
|
|
51
40
|
ok: true;
|
|
52
41
|
} | {
|
|
@@ -69,61 +58,20 @@ export type TargetDeviceValidity = {
|
|
|
69
58
|
export declare function validateTargetDevice(deviceId: string, environment: {
|
|
70
59
|
organizationId?: string;
|
|
71
60
|
} | null): TargetDeviceValidity;
|
|
72
|
-
/**
|
|
73
|
-
* How a default (no --runner/--computer) schedule should execute:
|
|
74
|
-
* - "device": Cloud schedule targeting the current runtime's device so it
|
|
75
|
-
* keeps executing where it was created.
|
|
76
|
-
* - "cloud-sandbox": untargeted Cloud schedule; it fires in the agent's
|
|
77
|
-
* managed Cloud sandbox.
|
|
78
|
-
* - "local-fallback": the current runtime is not reachable by Cloud
|
|
79
|
-
* scheduling, so the schedule should be stored locally instead — that is
|
|
80
|
-
* the only way it can keep executing here.
|
|
81
|
-
*/
|
|
82
|
-
export type InferredTargetResolution = {
|
|
83
|
-
kind: "device";
|
|
84
|
-
} | {
|
|
85
|
-
kind: "cloud-sandbox";
|
|
86
|
-
} | {
|
|
87
|
-
kind: "local-fallback";
|
|
88
|
-
reason: string;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* A default schedule preserves the current turn's execution locality: work
|
|
92
|
-
* scheduled from a runtime should keep running in that runtime, so a
|
|
93
|
-
* follow-up never races the active conversation from a second execution
|
|
94
|
-
* environment (the two don't share a turn queue).
|
|
95
|
-
*
|
|
96
|
-
* A managed-sandbox runtime (`sandbox-*` device id) resolves to
|
|
97
|
-
* "cloud-sandbox": an untargeted schedule already executes in the agent's
|
|
98
|
-
* managed sandbox, so the untargeted default IS locality-preserving there.
|
|
99
|
-
* The sandbox check must come first — sandbox rows are registered and
|
|
100
|
-
* online in the environments registry, but individual sandboxes get
|
|
101
|
-
* retired and recreated, so pinning one as a device target would be wrong.
|
|
102
|
-
*
|
|
103
|
-
* A runtime that is not a live registered external listener (desktop-local
|
|
104
|
-
* proxy connections, unregistered installations, offline rows) cannot be
|
|
105
|
-
* reached by the Cloud scheduler at all, so the locality-preserving answer
|
|
106
|
-
* is "local-fallback": store the schedule in this computer's local
|
|
107
|
-
* scheduler. The caller surfaces the durability tradeoff to the user.
|
|
108
|
-
*/
|
|
109
|
-
export declare function resolveInferredTargetDevice(deviceId: string, lookupEnvironment: () => Promise<EnvironmentConnection | null>): Promise<InferredTargetResolution>;
|
|
110
61
|
export type CronCreatePlacement = {
|
|
111
62
|
runner: CronRunner;
|
|
112
63
|
targetDeviceId?: string;
|
|
113
|
-
localFallbackNote?: string;
|
|
114
64
|
} | {
|
|
115
65
|
error: string;
|
|
116
66
|
};
|
|
117
67
|
/**
|
|
118
68
|
* Resolve where a newly-created schedule should live and execute.
|
|
119
69
|
*
|
|
120
|
-
* Both `letta cron` and Wake use this path.
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* they fall back to the agent's Cloud sandbox when the device is offline.
|
|
70
|
+
* Both `letta cron` and Wake use this path. Managed Cloud sandboxes always
|
|
71
|
+
* create Cloud schedules; every other execution environment creates local
|
|
72
|
+
* schedules. `--computer` remains a Cloud-only target override.
|
|
124
73
|
*/
|
|
125
74
|
export declare function resolveCronCreatePlacement(params: {
|
|
126
|
-
explicitRunner?: string;
|
|
127
75
|
agentId: string;
|
|
128
76
|
targetDeviceId?: string;
|
|
129
77
|
}): Promise<CronCreatePlacement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/cron/runner.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/cron/runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAQH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAE3C,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AAEtD,wBAAgB,qBAAqB,CACnC,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAET;AAED,MAAM,WAAW,uBAAuB;IACtC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,6CAA6C;IAC7C,WAAW,EAAE,KAAK,GAAG,OAAO,CAAC;IAC7B,sEAAsE;IACtE,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,MAAM,uB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C;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QACnD,QAAQ,EACJ;YAAE,IAAI,EAAE,WAAW,CAAC;YAAC,eAAe,EAAE,MAAM,CAAA;SAAE,GAC9C;YAAE,IAAI,EAAE,UAAU,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAC;QAC/C,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,wCAAwC;IACxC,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,qHACoF,CAAC;AAErH,eAAO,MAAM,0BAA0B,kHAC0E,CAAC;AAElH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,wBAAwB,GAC/B,kBAAkB,CA+BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../src/cron/scheduler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAuB,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAUhF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EAWd,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../src/cron/scheduler.ts"],"names":[],"mapp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;AAC5E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,GAAG,OAAO,CAItE;AAED,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5D,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CA6DD;AAuHD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,IAAI,EAAE,oBAAoB,EAC1B,iBAAiB,EAAE,iBAAiB,EACpC,WAAW,SAAI,GACd,IAAI,CAsGN;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,IAAI,CAmBpC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const MANAGED_CLOUD_RUNTIME_ENV = "LETTA_MANAGED_CLOUD_RUNTIME";
|
|
2
|
+
/**
|
|
3
|
+
* Preserve execution ownership after the listener consumes its non-inheritable
|
|
4
|
+
* relay identity. Cloud assigns the `sandbox:` namespace; Desktop and manual
|
|
5
|
+
* listeners use different identities.
|
|
6
|
+
*/
|
|
7
|
+
export declare function markManagedCloudRuntimeFromListenerIdentity(listenerInstanceId: string, env?: NodeJS.ProcessEnv): void;
|
|
8
|
+
export declare function isManagedCloudRuntime(env?: NodeJS.ProcessEnv): boolean;
|
|
9
|
+
//# sourceMappingURL=managed-cloud-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-cloud-runtime.d.ts","sourceRoot":"","sources":["../../src/managed-cloud-runtime.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AAIvE;;;;GAIG;AACH,wBAAgB,2CAA2C,CACzD,kBAAkB,EAAE,MAAM,EAC1B,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,IAAI,CAIN;AAED,wBAAgB,qBAAqB,CACnC,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonical.d.ts","sourceRoot":"","sources":["../../../src/permissions/canonical.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"canonical.d.ts","sourceRoot":"","sources":["../../../src/permissions/canonical.ts"],"names":[],"mappings":"AAoCA,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAU1D;AAED,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,MAAM,CAIR;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAY1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../../src/permissions/checker.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAkBzE,OAAO,KAAK,EACV,qBAAqB,EAIrB,eAAe,EAEhB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../../../src/permissions/checker.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,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,yBAA8B,GACnD,OAAO,CAAC,qBAAqB,CAAC,CA2EhC"}
|
|
@@ -26,7 +26,7 @@ export interface CrossAgentTargets {
|
|
|
26
26
|
* - `agents-root` — path is exactly the tree root (enumeration of every agent
|
|
27
27
|
* on the machine).
|
|
28
28
|
* - `ancestor` — path is an ancestor of the tree root (e.g. `$HOME`, `/`).
|
|
29
|
-
*
|
|
29
|
+
* Directory search tools (Glob/Grep/LS) entering this path would
|
|
30
30
|
* walk into other agents' directories.
|
|
31
31
|
* - `agent` — path is inside a specific agent's directory (any depth,
|
|
32
32
|
* including the bare agent dir). The `id` is the agent ID
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cross-agent-guard.d.ts","sourceRoot":"","sources":["../../../src/permissions/cross-agent-guard.ts"],"names":[],"mappings":"AAgDA,MAAM,WAAW,sBAAsB;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAYD,wBAAgB,qBAAqB,CACnC,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAMT;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,GAAE,sBAA2B,GACnC,GAAG,CAAC,MAAM,CAAC,CAab;AAMD,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExC,MAAM,WAAW,iBAAiB;IAChC,qEAAqE;IACrE,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;CACzB;AA6BD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,wBAAwB,GAChC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GACvB;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,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;IACH,OAAO,IAAI,cAAc;IAIzB;;;;;;OAMG;IACH,iBAAiB,CACf,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,cAAc,GAC5B,kBAAkB,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"mode.d.ts","sourceRoot":"","sources":["../../../src/permissions/mode.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GACtB,UAAU,GACV,aAAa,GACb,cAAc,GACd,QAAQ,CAAC;AAEb,4CAA4C;AAC5C,eAAO,MAAM,uBAAuB,EAAE,cAA+B,CAAC;AAEtE,gDAAgD;AAChD,eAAO,MAAM,sBAAsB,EAAE,SAAS,cAAc,EAKlD,CAAC;AAEX;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAS1E;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAuBD;;;GAGG;AACH,cAAM,qBAAqB;IACzB,OAAO,KAAK,WAAW,GAEtB;IAED,OAAO,KAAK,WAAW,QAEtB;IAED;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAInC;;OAEG;IACH,OAAO,IAAI,cAAc;IAIzB;;;;;;OAMG;IACH,iBAAiB,CACf,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,cAAc,GAC5B,kBAAkB,GAAG,IAAI;IAqC5B;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,cAAc,GAAG,OAAO;IAIhD;;OAEG;IACH,KAAK,IAAI,IAAI;CAGd;AAGD,eAAO,MAAM,cAAc,uBAA8B,CAAC"}
|
|
@@ -23,7 +23,7 @@ export declare function detectSandboxBackend(options?: DetectOptions): SandboxAv
|
|
|
23
23
|
export declare function resetSandboxAvailabilityCache(): void;
|
|
24
24
|
/**
|
|
25
25
|
* Whether the memory-subagent filesystem sandbox is enabled. It is **on by
|
|
26
|
-
* default**: memory subagents (reflection, memory, init
|
|
26
|
+
* default**: memory subagents (reflection, memory, init) run
|
|
27
27
|
* as whole confined processes with a scoped write surface, and there is no
|
|
28
28
|
* interactive approve/deny flow that could stand in for it. Set
|
|
29
29
|
* `LETTA_FS_SANDBOX=0` (or `false`) to opt out entirely. When no backend is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec-command.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/exec-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exec-command.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/exec-command.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,+BAA+B,CAAC;AAuCvC,UAAU,eAAe;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,QAAQ,KAAK,IAAI,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3D;AAED,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,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,QAAQ,GAAG,QAAQ,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AA4jBF,wBAAsB,YAAY,CAChC,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,iBAAiB,CAAC,CAwC5B;AAED,wBAAsB,WAAW,CAC/B,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,iBAAiB,CAAC,CAoE5B;AAED,wBAAgB,2BAA2B,IAAI,IAAI,CAOlD;AAED,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,GAChB,WAAW,GAAG,SAAS,CAEzB"}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
interface KillBashArgs {
|
|
2
|
-
shell_id: string;
|
|
3
|
-
}
|
|
4
|
-
interface KillBashResult {
|
|
5
|
-
killed: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function kill_bash(args: KillBashArgs): Promise<KillBashResult>;
|
|
8
1
|
export declare function killBackgroundProcess(shell_id: string): boolean;
|
|
9
|
-
export {};
|
|
10
2
|
//# sourceMappingURL=kill-bash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kill-bash.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/kill-bash.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kill-bash.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/kill-bash.ts"],"names":[],"mappings":"AAOA,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CA+B/D"}
|
|
@@ -31,7 +31,7 @@ export interface BackgroundProcess {
|
|
|
31
31
|
persistent?: boolean;
|
|
32
32
|
secrets?: Readonly<Record<string, string>>;
|
|
33
33
|
/**
|
|
34
|
-
* Set when the agent deliberately stops the shell (
|
|
34
|
+
* Set when the agent deliberately stops the shell (TaskStop) so the
|
|
35
35
|
* resulting "exit" event does not wake it with a failure notification for a
|
|
36
36
|
* process it just killed on purpose.
|
|
37
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-agent-message.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/send-agent-message.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,cAAc,EACf,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,WAAW,CAAC;AAOrD,OAAO,
|
|
1
|
+
{"version":3,"file":"send-agent-message.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/send-agent-message.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,cAAc,EACf,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,WAAW,CAAC;AAOrD,OAAO,EACL,0BAA0B,EAE3B,MAAM,oCAAoC,CAAC;AAM5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,UAAU,oBAAoB;IAC5B,OAAO,CAAC,EAAE,IAAI,CACZ,OAAO,EACL,cAAc,GACd,sBAAsB,GACtB,oBAAoB,GACpB,eAAe,CAClB,CAAC;IACF,OAAO,CAAC,EAAE,OAAO,0BAA0B,CAAC;IAC5C,cAAc,CAAC,EAAE,OAAO,cAAc,CAAC;IACvC,iBAAiB,CAAC,EAAE,OAAO,iBAAiB,CAAC;IAC7C,gBAAgB,CAAC,EAAE,OAAO,gBAAgB,CAAC;IAC3C,qBAAqB,CAAC,EAAE,OAAO,+BAA+B,CAAC;CAChE;AAED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,oBAAoB,EAC1B,IAAI,GAAE,oBAAyB,GAC9B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAA;CAAE,CAAC,CAoP3D"}
|
|
@@ -15,12 +15,6 @@ interface SkillResult {
|
|
|
15
15
|
export interface ReadSkillContentOptions {
|
|
16
16
|
attachedRepositories?: readonly AttachedAgentRepository[];
|
|
17
17
|
}
|
|
18
|
-
export declare function resolveBundledSkillContentPath(input: {
|
|
19
|
-
skillId: string;
|
|
20
|
-
bundledSkillPath: string;
|
|
21
|
-
memoryDir: string | null;
|
|
22
|
-
localMemfs: boolean;
|
|
23
|
-
}): string;
|
|
24
18
|
/**
|
|
25
19
|
* Read skill content from file or bundled source
|
|
26
20
|
* Returns both content and the path to the SKILL.md file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/skill.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/skill.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AA0B7E,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,WAAW,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3D;AAED,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,oBAAoB,CAAC,EAAE,SAAS,uBAAuB,EAAE,CAAC;CAC3D;A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,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"task-stop.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/task-stop.ts"],"names":[],"mappings":"AAOA,UAAU,YAAY;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAsB3E"}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* Backstop clamp for model-facing tool returns.
|
|
3
3
|
*
|
|
4
4
|
* Individual tools apply their own limits (see LIMITS in truncation.ts), but
|
|
5
|
-
* several never bound the total size of the string they return:
|
|
6
|
-
*
|
|
7
|
-
* counts only, Memory/Skill return file bodies verbatim, and external/MCP and
|
|
5
|
+
* several never bound the total size of the string they return: Read caps
|
|
6
|
+
* lines and chars-per-line only, Glob caps item counts only, Memory/Skill return file bodies verbatim, and external/MCP and
|
|
8
7
|
* mod tools can return arbitrarily large output. This module clamps any tool
|
|
9
8
|
* return that slipped past those per-tool limits before it reaches the model,
|
|
10
9
|
* writing the full content to an overflow file so nothing is lost.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-return-clamp.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/tool-return-clamp.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tool-return-clamp.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/tool-return-clamp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACZ,MAAM,kDAAkD,CAAC;AAI1D,KAAK,mBAAmB,GAAG,MAAM,GAAG,KAAK,CAAC,WAAW,GAAG,YAAY,CAAC,CAAC;AAEtE;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAO1E;AAWD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,OAAO,EAClB,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,CAWR;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,EAAE,MAAM,GACf,mBAAmB,CASrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wake.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/wake.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wake.d.ts","sourceRoot":"","sources":["../../../../src/tools/impl/wake.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEL,OAAO,EAEP,UAAU,EAEV,SAAS,EAEV,MAAM,QAAQ,CAAC;AAChB,OAAO,EAGL,0BAA0B,EAC3B,MAAM,eAAe,CAAC;AAGvB,KAAK,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/C,UAAU,QAAQ;IAChB,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAkBD,UAAU,QAAQ;IAChB,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,0BAA0B,CAAC;IACrD,WAAW,CAAC,EAAE,OAAO,mBAAmB,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,kBAAkB,CAAC;IACtC,WAAW,CAAC,EAAE,OAAO,mBAAmB,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,SAAS,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,UAAU,CAAC;CACjC;AAED,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;CAC7B;AAoUD,wBAAsB,IAAI,CACxB,IAAI,EAAE,QAAQ,EACd,IAAI,GAAE,QAAa,GAClB,OAAO,CAAC,UAAU,CAAC,CA0BrB"}
|
|
@@ -275,7 +275,7 @@ declare function executeToolInner(name: string, args: ToolArgs, options?: {
|
|
|
275
275
|
agentId: string;
|
|
276
276
|
conversationId: string;
|
|
277
277
|
};
|
|
278
|
-
/** Called after a file-mutating tool (Edit, Write
|
|
278
|
+
/** Called after a file-mutating tool (Edit, Write) writes to disk.
|
|
279
279
|
* The listener layer uses this to broadcast the new content via WebSocket. */
|
|
280
280
|
onFileWrite?: (filePath: string, content: string) => void;
|
|
281
281
|
toolEndArgsRef?: {
|