[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openrouter-create-headless-agent":3,"mdc--vsi222-key":33,"related-org-openrouter-create-headless-agent":13264,"related-repo-openrouter-create-headless-agent":13399},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":31,"mdContent":32},"create-headless-agent","scaffold headless agents with OpenRouter","Scaffolds a headless agent in TypeScript using @openrouter\u002Fagent and Bun — for CLI tools, API servers, queue workers, and pipelines. No terminal UI. Use when building a headless agent, programmatic agent, CLI tool that uses AI, batch agent, pipeline agent, API agent, agent without a UI, or agent service.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"openrouter","OpenRouter","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenrouter.png","OpenRouterTeam",[13,17,20],{"name":14,"slug":15,"type":16},"TypeScript","typescript","tag",{"name":18,"slug":19,"type":16},"CLI","cli",{"name":21,"slug":22,"type":16},"Agents","agents",187,"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills","2026-07-14T05:38:30.178029",null,26,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":26},[],"https:\u002F\u002Fgithub.com\u002FOpenRouterTeam\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fcreate-headless-agent","---\nname: create-headless-agent\ndescription: Scaffolds a headless agent in TypeScript using @openrouter\u002Fagent and Bun — for CLI tools, API servers, queue workers, and pipelines. No terminal UI. Use when building a headless agent, programmatic agent, CLI tool that uses AI, batch agent, pipeline agent, API agent, agent without a UI, or agent service.\n---\n\n# Create Headless Agent\n\nScaffolds a headless agent in TypeScript targeting OpenRouter. The generated project uses `@openrouter\u002Fagent` for the inner loop (model calls, tool execution, stop conditions) and provides a clean programmatic shell: configuration, session management, tool definitions, and one or more entry points (CLI, HTTP server, MCP server, or library import). No terminal UI, no readline, no ANSI — just input in, result out.\n\n## Prerequisites\n\n- Bun 1.1+\n- `OPENROUTER_API_KEY` from [openrouter.ai\u002Fsettings\u002Fkeys](https:\u002F\u002Fopenrouter.ai\u002Fsettings\u002Fkeys)\n- For full SDK reference, see the `openrouter-typescript-sdk` skill\n\n---\n\n## Decision Tree\n\n| User wants to... | Action |\n|---|---|\n| Build a new headless agent | Present checklist below, follow Generation Workflow |\n| Add tools to an existing agent | Read [references\u002Ftools.md](references\u002Ftools.md), present tool checklist only |\n| Add a module | Read [references\u002Fmodules.md](references\u002Fmodules.md), generate the module |\n| Add an entry point | Read [references\u002Fentry-points.md](references\u002Fentry-points.md), generate it |\n\n---\n\n## Interactive Feature Checklist\n\nPresent this as a multi-select checklist. Items marked **ON** are pre-selected defaults.\n\n### Entry Points (pick one or more)\n\n| Entry Point | Default | Description |\n|-------------|---------|-------------|\n| CLI | ON | args\u002Fstdin to agent to stdout, `--json` for NDJSON |\n| Library module | ON | `import { runAgent } from '.\u002Fagent'` |\n| HTTP server | OFF | `Bun.serve()` with SSE streaming |\n| MCP server | OFF | Expose as MCP tool via stdio |\n\n### OpenRouter Server Tools (server-side, zero implementation)\n\n| Tool | Type string | Default |\n|------|------------|---------|\n| Web Search | `openrouter:web_search` | ON |\n| Web Fetch | `openrouter:web_fetch` | ON |\n| Datetime | `openrouter:datetime` | ON |\n| Image Generation | `openrouter:image_generation` | OFF |\n\nServer tools go in the `tools` array alongside user-defined tools. No client code needed — OpenRouter executes them. Docs: [openrouter.ai\u002Fdocs\u002Fguides\u002Ffeatures\u002Fserver-tools](https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fguides\u002Ffeatures\u002Fserver-tools\u002Foverview).\n\n### User-Defined Tools (client-side, generated into src\u002Ftools\u002F)\n\n| Tool | Default | Description |\n|------|---------|-------------|\n| File Read | ON | Read files with offset\u002Flimit |\n| File Write | ON | Write\u002Fcreate files, auto-create directories |\n| File Edit | ON | Search-and-replace with diff validation |\n| Glob\u002FFind | ON | File discovery by glob pattern |\n| Grep\u002FSearch | ON | Content search by regex |\n| Directory List | ON | List directory contents |\n| Shell\u002FBash | ON | Execute commands with timeout and output capture |\n| Custom Tool Template | ON | Empty skeleton for domain-specific tools |\n| JS\u002FTS REPL | OFF | Persistent Bun REPL |\n| Sub-agent Spawn | OFF | Delegate tasks to child agents |\n| View Image | OFF | Read local images as base64 |\n\n### Agent Modules (architectural components)\n\n| Module | Default | Description |\n|--------|---------|-------------|\n| Session Persistence | ON | JSONL conversation log, `--no-session` to disable |\n| Retry with Backoff | ON | Built into agent.ts |\n| Context Compaction | OFF | Summarize when context is long |\n| Tool Result Offload | OFF | Persist oversized tool outputs to disk, keep preview in context |\n| System Prompt Composition | OFF | Dynamic instructions from context files |\n| Tool Approval Flow | OFF | Programmatic approve\u002Freject |\n| Structured Event Logging | OFF | JSON events to stderr |\n| Output Schema Validation | OFF | Zod schema constraining response |\n| Webhook Notifications | OFF | POST on completion |\n\n### CLI Output Mode (single-select, if CLI entry point is ON)\n\n| Mode | Default | Description |\n|------|---------|-------------|\n| Text | ON | Final response text to stdout |\n| JSON | OFF | NDJSON event stream |\n| Quiet | OFF | Exit code only |\n\n---\n\n## Generation Workflow\n\nBefore generating, **ask the user what to name their agent**. This name is used as:\n- the `\"name\"` field in `package.json`\n- the `\"bin\"` command (so `bun link` makes it a globally-invokable CLI)\n- the project directory name (if creating a new directory)\n\nSuggested question: *\"What would you like to call your agent? (short kebab-case, e.g. `research-bot` or `docs-helper`)\"*. Validate the answer is a valid npm package name (lowercase, kebab-case, no spaces). Default to `my-agent` if the user has no preference. Use the chosen name everywhere the workflow below shows `\u003Cagent-name>`.\n\nAfter getting the name and checklist selections, follow this workflow:\n\n```\n- [ ] Generate package.json with name=\u003Cagent-name> and bin={\"\u003Cagent-name>\": \"src\u002Fcli.ts\"}\n- [ ] Generate tsconfig.json (Bun-native)\n- [ ] Generate src\u002Fconfig.ts\n- [ ] Generate src\u002Ftools\u002Findex.ts wiring selected tools\n- [ ] Generate selected tool files in src\u002Ftools\u002F (specs in references\u002Ftools.md)\n- [ ] Generate src\u002Fagent.ts (core runner)\n- [ ] If Session Persistence ON: generate src\u002Fsession.ts (spec in references\u002Fmodules.md)\n- [ ] Generate selected modules (specs in references\u002Fmodules.md)\n- [ ] Generate src\u002Fcli.ts entry point with shebang `#!\u002Fusr\u002Fbin\u002Fenv bun` (spec in references\u002Fentry-points.md)\n- [ ] If HTTP server selected: generate src\u002Fserver.ts (spec in references\u002Fentry-points.md)\n- [ ] If MCP server selected: generate src\u002Fmcp-server.ts (spec in references\u002Fentry-points.md)\n- [ ] Generate .env.example\n- [ ] Generate test\u002Fagent.test.ts\n- [ ] Run `bun install` to fetch dependencies\n- [ ] Verify: run `bunx tsc --noEmit`\n- [ ] Run `bun link` inside the project to register \u003Cagent-name> globally\n- [ ] Verify the command is on PATH: `command -v \u003Cagent-name>` should print a path. If it fails, tell the user to add Bun's bin dir to their shell rc:\n      `export PATH=\"$HOME\u002F.bun\u002Fbin:$PATH\"` (for bash\u002Fzsh). `bun link` silently succeeds even when `~\u002F.bun\u002Fbin` isn't on PATH, so without this check the user will be told the agent is globally available but `command not found` will greet them.\n- [ ] Tell the user they can now invoke their agent from anywhere with `\u003Cagent-name> \"\u003Cprompt>\"`\n- [ ] Optional: run `npx skills-ref validate .` to check SKILL.md frontmatter (if installed)\n```\n\nAfter generation, the user can run their agent from any directory:\n\n```bash\n\u003Cagent-name> \"What's in this repo?\"\necho \"Summarize README.md\" | \u003Cagent-name>\n\u003Cagent-name> --json \"List all TODOs\" | jq .\n```\n\nTo later rename the agent, update the `name` and `bin` keys in `package.json`, then run `bun unlink && bun link`.\n\n---\n\n## Tool Pattern\n\nAll user-defined tools follow this pattern using `@openrouter\u002Fagent\u002Ftool`. Here is one complete example — all other tools in [references\u002Ftools.md](references\u002Ftools.md) follow the same shape:\n\n```typescript\nimport { tool } from '@openrouter\u002Fagent\u002Ftool';\nimport { z } from 'zod';\n\nconst DEFAULT_LINE_LIMIT = 2000;\nconst MAX_LINE_CHARS = 2000;\n\nexport const fileReadTool = tool({\n  name: 'file_read',\n  description:\n    'Read the contents of a file. Output is capped at 2000 lines by default (use offset\u002Flimit to paginate) and any line longer than 2000 characters is truncated. When the response is truncated, the hint field tells you how to continue.',\n  inputSchema: z.object({\n    path: z.string().describe('Absolute path to the file'),\n    offset: z.number().optional().describe('Start reading from this line (1-indexed)'),\n    limit: z.number().optional().describe(`Maximum lines to return (default ${DEFAULT_LINE_LIMIT})`),\n  }),\n  execute: async ({ path, offset, limit }) => {\n    try {\n      const content = await Bun.file(path).text();\n      const lines = content.split('\\n');\n      const start = offset ? offset - 1 : 0;\n      const end = Math.min(start + (limit ?? DEFAULT_LINE_LIMIT), lines.length);\n      let longLines = 0;\n      const slice = lines.slice(start, end).map((line) => {\n        if (line.length \u003C= MAX_LINE_CHARS) return line;\n        longLines++;\n        return line.slice(0, MAX_LINE_CHARS) + `… [line truncated, ${line.length - MAX_LINE_CHARS} chars dropped]`;\n      });\n      const tailTruncated = end \u003C lines.length;\n      const truncated = tailTruncated || longLines > 0;\n      const hintParts: string[] = [`Showing lines ${start + 1}-${end} of ${lines.length}.`];\n      if (tailTruncated) hintParts.push(`Use offset=${end + 1} to continue.`);\n      if (longLines > 0) hintParts.push(`${longLines} line(s) exceeded ${MAX_LINE_CHARS} chars and were per-line truncated; use grep to fetch content from those lines.`);\n      return {\n        content: slice.join('\\n'),\n        totalLines: lines.length,\n        ...(truncated && {\n          truncated: true,\n          ...(tailTruncated && { nextOffset: end + 1 }),\n          hint: hintParts.join(' '),\n        }),\n      };\n    } catch (err: any) {\n      if (err.code === 'ENOENT') return { error: `File not found: ${path}` };\n      if (err.code === 'EACCES') return { error: `Permission denied: ${path}` };\n      return { error: err.message };\n    }\n  },\n});\n```\n\nFor specs of all other tools, see [references\u002Ftools.md](references\u002Ftools.md).\n\n---\n\n## Core Files\n\nThese files are always generated. The agent adapts them based on checklist selections.\n\n### package.json\n\nInitialize the project and install dependencies. Replace `\u003Cagent-name>` with the name the user chose:\n\n```bash\nbun init -y\n# Then edit package.json:\n```\n\n```json\n{\n  \"name\": \"\u003Cagent-name>\",\n  \"type\": \"module\",\n  \"bin\": {\n    \"\u003Cagent-name>\": \"src\u002Fcli.ts\"\n  },\n  \"scripts\": {\n    \"start\": \"bun run src\u002Fcli.ts\",\n    \"dev\": \"bun --watch src\u002Fcli.ts\",\n    \"build\": \"tsc --noEmit\",\n    \"test\": \"bun test\"\n  },\n  \"dependencies\": {\n    \"@openrouter\u002Fagent\": \"latest\",\n    \"zod\": \"latest\"\n  },\n  \"devDependencies\": {\n    \"@types\u002Fbun\": \"latest\",\n    \"typescript\": \"latest\"\n  }\n}\n```\n\nThe `bin` entry is what makes the agent invokable by name after `bun link`. The target (`src\u002Fcli.ts`) must have a `#!\u002Fusr\u002Fbin\u002Fenv bun` shebang on the first line.\n\n### tsconfig.json\n\n```json\n{\n  \"compilerOptions\": {\n    \"target\": \"ES2022\",\n    \"module\": \"ESNext\",\n    \"moduleResolution\": \"bundler\",\n    \"outDir\": \"dist\",\n    \"strict\": true,\n    \"esModuleInterop\": true,\n    \"skipLibCheck\": true,\n    \"types\": [\"bun-types\"]\n  },\n  \"include\": [\"src\", \"test\"]\n}\n```\n\n### src\u002Fconfig.ts\n\n```typescript\nimport { readFileSync, existsSync } from 'fs';\nimport { resolve } from 'path';\n\nfunction positiveNumber(name: string, raw: string): number {\n  const n = Number(raw);\n  if (!Number.isFinite(n) || n \u003C= 0) {\n    throw new Error(`${name} must be a positive number, got: ${JSON.stringify(raw)}`);\n  }\n  return n;\n}\n\nexport interface AgentConfig {\n  apiKey: string;\n  model: string;\n  name: string;\n  systemPrompt: string;\n  maxSteps: number;\n  maxCost: number;\n  sessionDir: string;\n  sessionEnabled: boolean;\n  outputMode: 'text' | 'json' | 'quiet';\n}\n\nconst DEFAULTS: AgentConfig = {\n  apiKey: '',\n  model: 'anthropic\u002Fclaude-sonnet-4.6',\n  name: 'My Agent',\n  systemPrompt: [\n    'You are a coding assistant with access to tools for reading, writing, editing, and searching files, and running shell commands.',\n    '',\n    'Current working directory: {cwd}',\n    '',\n    'Guidelines:',\n    '- Use your tools proactively. Explore the codebase to find answers instead of asking the user.',\n    '- Keep working until the task is fully resolved before responding.',\n    '- Do not guess or make up information — use your tools to verify.',\n    '- Be concise and direct.',\n    '- Show file paths clearly when working with files.',\n    '- Prefer grep and glob tools over shell commands for file search.',\n    '- When editing code, make minimal targeted changes consistent with the existing style.',\n  ].join('\\n'),\n  maxSteps: 20,\n  maxCost: 1.0,\n  sessionDir: '.sessions',\n  sessionEnabled: true,\n  outputMode: 'text',\n};\n\nexport function loadConfig(overrides: Partial\u003CAgentConfig> = {}, opts?: { skipApiKey?: boolean }): AgentConfig {\n  let config = { ...DEFAULTS };\n\n  const configPath = resolve('agent.config.json');\n  if (existsSync(configPath)) {\n    const file = JSON.parse(readFileSync(configPath, 'utf-8'));\n    config = { ...config, ...file };\n  }\n\n  if (process.env.OPENROUTER_API_KEY) config.apiKey = process.env.OPENROUTER_API_KEY;\n  if (process.env.AGENT_MODEL) config.model = process.env.AGENT_MODEL;\n  if (process.env.AGENT_MAX_STEPS) config.maxSteps = positiveNumber('AGENT_MAX_STEPS', process.env.AGENT_MAX_STEPS);\n  if (process.env.AGENT_MAX_COST) config.maxCost = positiveNumber('AGENT_MAX_COST', process.env.AGENT_MAX_COST);\n\n  config = { ...config, ...overrides };\n  if (!config.apiKey && !opts?.skipApiKey) throw new Error('OPENROUTER_API_KEY is required.');\n  return config;\n}\n```\n\n### src\u002Ftools\u002Findex.ts\n\nAdapt imports based on checklist selections. This example includes all default-ON tools:\n\n```typescript\nimport { serverTool } from '@openrouter\u002Fagent';\nimport { fileReadTool } from '.\u002Ffile-read.js';\nimport { fileWriteTool } from '.\u002Ffile-write.js';\nimport { fileEditTool } from '.\u002Ffile-edit.js';\nimport { globTool } from '.\u002Fglob.js';\nimport { grepTool } from '.\u002Fgrep.js';\nimport { listDirTool } from '.\u002Flist-dir.js';\nimport { shellTool } from '.\u002Fshell.js';\nimport { myCustomTool } from '.\u002Fcustom.js';\n\n\u002F\u002F `as const` unlocks full type inference for tool calls downstream.\n\u002F\u002F See: https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fagent-sdk\u002Fcall-model\u002Ftools\nexport const tools = [\n  \u002F\u002F User-defined tools — executed client-side\n  fileReadTool,\n  fileWriteTool,\n  fileEditTool,\n  globTool,\n  grepTool,\n  listDirTool,\n  shellTool,\n  myCustomTool,\n\n  \u002F\u002F Server tools — executed by OpenRouter, no client implementation needed\n  serverTool({ type: 'openrouter:web_search' }),\n  serverTool({ type: 'openrouter:web_fetch' }),\n  serverTool({ type: 'openrouter:datetime', parameters: { timezone: 'UTC' } }),\n] as const;\n```\n\n### src\u002Fagent.ts\n\n```typescript\nimport { OpenRouter } from '@openrouter\u002Fagent';\nimport type { Item } from '@openrouter\u002Fagent';\nimport { stepCountIs, maxCost } from '@openrouter\u002Fagent\u002Fstop-conditions';\nimport type { AgentConfig } from '.\u002Fconfig.js';\nimport { tools } from '.\u002Ftools\u002Findex.js';\n\nexport type ChatMessage = { role: 'user' | 'assistant' | 'system'; content: string };\n\nexport type AgentEvent =\n  | { type: 'text'; delta: string }\n  | { type: 'tool_call'; name: string; callId: string; args: Record\u003Cstring, unknown> }\n  | { type: 'tool_result'; name: string; callId: string; output: string }\n  | { type: 'reasoning'; delta: string }\n  | { type: 'turn_end' }\n  | { type: 'done'; usage: { inputTokens?: number; outputTokens?: number; totalTokens?: number } | null | undefined; durationMs: number };\n\nexport async function runAgent(\n  config: AgentConfig,\n  input: string | ChatMessage[],\n  options?: { onEvent?: (event: AgentEvent) => void; signal?: AbortSignal },\n) {\n  const startedAt = Date.now();\n  const client = new OpenRouter({ apiKey: config.apiKey });\n\n  const result = client.callModel({\n    model: config.model,\n    instructions: config.systemPrompt.replace('{cwd}', process.cwd()),\n    input: input as string | Item[],\n    tools,\n    stopWhen: [stepCountIs(config.maxSteps), maxCost(config.maxCost)],\n  });\n\n  \u002F\u002F Wire AbortSignal → result.cancel() so the underlying network stream\n  \u002F\u002F actually closes (not just the iterator we're about to walk). Also\n  \u002F\u002F handle the pre-aborted case: addEventListener('abort') does not fire\n  \u002F\u002F for signals already in the aborted state.\n  const onAbort = () => result.cancel();\n  options?.signal?.addEventListener('abort', onAbort);\n  if (options?.signal?.aborted) result.cancel();\n\n  \u002F\u002F Draining getTextStream concurrently with getItemsStream reads the\n  \u002F\u002F stream dry, so getResponse().outputText ends up empty. We accumulate\n  \u002F\u002F text deltas here as a source of truth for the final text.\n  let accumulatedText = '';\n\n  try {\n    if (options?.onEvent) {\n      \u002F\u002F Run two streams concurrently: getTextStream for text deltas (no\n      \u002F\u002F bookkeeping required) and getItemsStream filtered to tool events.\n      \u002F\u002F The SDK's ReusableReadableStream allows concurrent consumption.\n      const callNames = new Map\u003Cstring, string>();\n\n      const streamText = async () => {\n        for await (const delta of result.getTextStream()) {\n          if (options?.signal?.aborted) break;\n          options.onEvent!({ type: 'text', delta });\n          accumulatedText += delta;\n        }\n      };\n\n      const streamTools = async () => {\n        for await (const item of result.getItemsStream()) {\n          if (options?.signal?.aborted) break;\n          if (item.type === 'function_call') {\n            callNames.set(item.callId, item.name);\n            if (item.status === 'completed') {\n              const args = (() => { try { return item.arguments ? JSON.parse(item.arguments) : {}; } catch { return {}; } })();\n              options.onEvent!({ type: 'tool_call', name: item.name, callId: item.callId, args });\n            }\n          } else if (item.type === 'function_call_output') {\n            const out = typeof item.output === 'string' ? item.output : JSON.stringify(item.output);\n            options.onEvent!({\n              type: 'tool_result',\n              name: callNames.get(item.callId) ?? 'unknown',\n              callId: item.callId,\n              output: out.length > 200 ? out.slice(0, 200) + '...' : out,\n            });\n            \u002F\u002F Signal a turn boundary; consumers (e.g. CLI text mode) can\n            \u002F\u002F render a separator. Keeps presentation out of agent.ts.\n            options.onEvent!({ type: 'turn_end' });\n          } else if (item.type === 'reasoning') {\n            const text = item.summary?.map((s: { text: string }) => s.text).join('') ?? '';\n            if (text) options.onEvent!({ type: 'reasoning', delta: text });\n          }\n        }\n      };\n\n      await Promise.all([streamText(), streamTools()]);\n    }\n\n    const response = await result.getResponse();\n    const durationMs = Date.now() - startedAt;\n    const text = accumulatedText || (response.outputText ?? '');\n    options?.onEvent?.({ type: 'done', usage: response.usage, durationMs });\n    return { text, usage: response.usage, output: response.output, durationMs };\n  } finally {\n    options?.signal?.removeEventListener('abort', onAbort);\n  }\n}\n\n\u002F**\n * Retry on 429\u002F5xx — but ONLY if no tool calls have been executed yet.\n * Once a mutating tool (file_write, shell, etc.) has run, replaying the\n * whole agent from the initial prompt would double-execute side effects.\n * For mid-run resilience, use a StateAccessor (see references\u002Fmodules.md).\n *\u002F\nexport async function runAgentWithRetry(\n  config: AgentConfig,\n  input: string | ChatMessage[],\n  options?: { onEvent?: (event: AgentEvent) => void; signal?: AbortSignal; maxRetries?: number },\n) {\n  for (let attempt = 0, max = options?.maxRetries ?? 3; attempt \u003C= max; attempt++) {\n    let toolCallsMade = 0;\n    const wrappedOptions = {\n      ...options,\n      onEvent: (event: AgentEvent) => {\n        if (event.type === 'tool_call') toolCallsMade++;\n        options?.onEvent?.(event);\n      },\n    };\n    try {\n      return await runAgent(config, input, wrappedOptions);\n    } catch (err: any) {\n      const s = err?.status ?? err?.statusCode;\n      const retryable = s === 429 || (s >= 500 && s \u003C 600);\n      if (!retryable || attempt === max || toolCallsMade > 0) throw err;\n      await new Promise((r) => setTimeout(r, Math.min(1000 * 2 ** attempt, 30000)));\n    }\n  }\n  throw new Error('Unreachable');\n}\n```\n\n### src\u002Fcli.ts\n\nHeadless CLI entry point — parses args, reads stdin, dispatches to the agent, and exits. See [references\u002Fentry-points.md](references\u002Fentry-points.md) for the complete implementation.\n\n```typescript\nimport { parseArgs } from 'util';\nimport { loadConfig } from '.\u002Fconfig.js';\nimport { runAgentWithRetry, type AgentEvent } from '.\u002Fagent.js';\nimport { initSessionDir, saveMessage, newSessionPath } from '.\u002Fsession.js';\n\nconst { values, positionals } = parseArgs({\n  args: process.argv.slice(2),\n  options: {\n    prompt: { type: 'string', short: 'p' },\n    json: { type: 'boolean', short: 'j', default: false },\n    quiet: { type: 'boolean', short: 'q', default: false },\n    'no-session': { type: 'boolean', default: false },\n    model: { type: 'string', short: 'm' },\n    'max-steps': { type: 'string' },\n    'max-cost': { type: 'string' },\n    help: { type: 'boolean', short: 'h', default: false },\n  },\n  allowPositionals: true,\n});\n\n\u002F\u002F ... resolve prompt from args, positional, or stdin\n\u002F\u002F ... call loadConfig with overrides\n\u002F\u002F ... call runAgentWithRetry with appropriate event handler\n\u002F\u002F ... exit with code 0 on success, 1 on error\n```\n\nSee [references\u002Fentry-points.md](references\u002Fentry-points.md) for the complete `src\u002Fcli.ts`, `src\u002Fserver.ts`, and `src\u002Fmcp-server.ts` implementations.\n\n---\n\n## Reference Files\n\nFor content beyond the core files:\n\n- **[references\u002Ftools.md](references\u002Ftools.md)** -- Specs for all user-defined tools: file-read, file-write, file-edit, glob, grep, list-dir, shell, web-fetch, js-repl, sub-agent, view-image, custom template\n- **[references\u002Fmodules.md](references\u002Fmodules.md)** -- Agent modules: session persistence, context compaction, system prompt composition, tool approval, structured logging, output schema validation, webhook notifications\n- **[references\u002Fentry-points.md](references\u002Fentry-points.md)** -- Entry point specs: CLI (full implementation), HTTP server with SSE, MCP server via stdio\n",{"data":34,"body":35},{"name":4,"description":6},{"type":36,"children":37},"root",[38,46,61,68,111,115,121,220,223,229,242,249,362,368,478,500,506,717,723,909,915,991,994,1000,1012,1059,1103,1108,1120,1125,1265,1300,1303,1309,1328,3478,3488,3491,3497,3502,3507,3519,3553,4084,4118,4124,4495,4501,6544,6550,6555,7304,7310,12224,12229,12240,13171,13205,13208,13214,13219,13258],{"type":39,"tag":40,"props":41,"children":42},"element","h1",{"id":4},[43],{"type":44,"value":45},"text","Create Headless Agent",{"type":39,"tag":47,"props":48,"children":49},"p",{},[50,52,59],{"type":44,"value":51},"Scaffolds a headless agent in TypeScript targeting OpenRouter. The generated project uses ",{"type":39,"tag":53,"props":54,"children":56},"code",{"className":55},[],[57],{"type":44,"value":58},"@openrouter\u002Fagent",{"type":44,"value":60}," for the inner loop (model calls, tool execution, stop conditions) and provides a clean programmatic shell: configuration, session management, tool definitions, and one or more entry points (CLI, HTTP server, MCP server, or library import). No terminal UI, no readline, no ANSI — just input in, result out.",{"type":39,"tag":62,"props":63,"children":65},"h2",{"id":64},"prerequisites",[66],{"type":44,"value":67},"Prerequisites",{"type":39,"tag":69,"props":70,"children":71},"ul",{},[72,78,98],{"type":39,"tag":73,"props":74,"children":75},"li",{},[76],{"type":44,"value":77},"Bun 1.1+",{"type":39,"tag":73,"props":79,"children":80},{},[81,87,89],{"type":39,"tag":53,"props":82,"children":84},{"className":83},[],[85],{"type":44,"value":86},"OPENROUTER_API_KEY",{"type":44,"value":88}," from ",{"type":39,"tag":90,"props":91,"children":95},"a",{"href":92,"rel":93},"https:\u002F\u002Fopenrouter.ai\u002Fsettings\u002Fkeys",[94],"nofollow",[96],{"type":44,"value":97},"openrouter.ai\u002Fsettings\u002Fkeys",{"type":39,"tag":73,"props":99,"children":100},{},[101,103,109],{"type":44,"value":102},"For full SDK reference, see the ",{"type":39,"tag":53,"props":104,"children":106},{"className":105},[],[107],{"type":44,"value":108},"openrouter-typescript-sdk",{"type":44,"value":110}," skill",{"type":39,"tag":112,"props":113,"children":114},"hr",{},[],{"type":39,"tag":62,"props":116,"children":118},{"id":117},"decision-tree",[119],{"type":44,"value":120},"Decision Tree",{"type":39,"tag":122,"props":123,"children":124},"table",{},[125,144],{"type":39,"tag":126,"props":127,"children":128},"thead",{},[129],{"type":39,"tag":130,"props":131,"children":132},"tr",{},[133,139],{"type":39,"tag":134,"props":135,"children":136},"th",{},[137],{"type":44,"value":138},"User wants to...",{"type":39,"tag":134,"props":140,"children":141},{},[142],{"type":44,"value":143},"Action",{"type":39,"tag":145,"props":146,"children":147},"tbody",{},[148,162,182,201],{"type":39,"tag":130,"props":149,"children":150},{},[151,157],{"type":39,"tag":152,"props":153,"children":154},"td",{},[155],{"type":44,"value":156},"Build a new headless agent",{"type":39,"tag":152,"props":158,"children":159},{},[160],{"type":44,"value":161},"Present checklist below, follow Generation Workflow",{"type":39,"tag":130,"props":163,"children":164},{},[165,170],{"type":39,"tag":152,"props":166,"children":167},{},[168],{"type":44,"value":169},"Add tools to an existing agent",{"type":39,"tag":152,"props":171,"children":172},{},[173,175,180],{"type":44,"value":174},"Read ",{"type":39,"tag":90,"props":176,"children":178},{"href":177},"references\u002Ftools.md",[179],{"type":44,"value":177},{"type":44,"value":181},", present tool checklist only",{"type":39,"tag":130,"props":183,"children":184},{},[185,190],{"type":39,"tag":152,"props":186,"children":187},{},[188],{"type":44,"value":189},"Add a module",{"type":39,"tag":152,"props":191,"children":192},{},[193,194,199],{"type":44,"value":174},{"type":39,"tag":90,"props":195,"children":197},{"href":196},"references\u002Fmodules.md",[198],{"type":44,"value":196},{"type":44,"value":200},", generate the module",{"type":39,"tag":130,"props":202,"children":203},{},[204,209],{"type":39,"tag":152,"props":205,"children":206},{},[207],{"type":44,"value":208},"Add an entry point",{"type":39,"tag":152,"props":210,"children":211},{},[212,213,218],{"type":44,"value":174},{"type":39,"tag":90,"props":214,"children":216},{"href":215},"references\u002Fentry-points.md",[217],{"type":44,"value":215},{"type":44,"value":219},", generate it",{"type":39,"tag":112,"props":221,"children":222},{},[],{"type":39,"tag":62,"props":224,"children":226},{"id":225},"interactive-feature-checklist",[227],{"type":44,"value":228},"Interactive Feature Checklist",{"type":39,"tag":47,"props":230,"children":231},{},[232,234,240],{"type":44,"value":233},"Present this as a multi-select checklist. Items marked ",{"type":39,"tag":235,"props":236,"children":237},"strong",{},[238],{"type":44,"value":239},"ON",{"type":44,"value":241}," are pre-selected defaults.",{"type":39,"tag":243,"props":244,"children":246},"h3",{"id":245},"entry-points-pick-one-or-more",[247],{"type":44,"value":248},"Entry Points (pick one or more)",{"type":39,"tag":122,"props":250,"children":251},{},[252,273],{"type":39,"tag":126,"props":253,"children":254},{},[255],{"type":39,"tag":130,"props":256,"children":257},{},[258,263,268],{"type":39,"tag":134,"props":259,"children":260},{},[261],{"type":44,"value":262},"Entry Point",{"type":39,"tag":134,"props":264,"children":265},{},[266],{"type":44,"value":267},"Default",{"type":39,"tag":134,"props":269,"children":270},{},[271],{"type":44,"value":272},"Description",{"type":39,"tag":145,"props":274,"children":275},{},[276,300,321,345],{"type":39,"tag":130,"props":277,"children":278},{},[279,283,287],{"type":39,"tag":152,"props":280,"children":281},{},[282],{"type":44,"value":18},{"type":39,"tag":152,"props":284,"children":285},{},[286],{"type":44,"value":239},{"type":39,"tag":152,"props":288,"children":289},{},[290,292,298],{"type":44,"value":291},"args\u002Fstdin to agent to stdout, ",{"type":39,"tag":53,"props":293,"children":295},{"className":294},[],[296],{"type":44,"value":297},"--json",{"type":44,"value":299}," for NDJSON",{"type":39,"tag":130,"props":301,"children":302},{},[303,308,312],{"type":39,"tag":152,"props":304,"children":305},{},[306],{"type":44,"value":307},"Library module",{"type":39,"tag":152,"props":309,"children":310},{},[311],{"type":44,"value":239},{"type":39,"tag":152,"props":313,"children":314},{},[315],{"type":39,"tag":53,"props":316,"children":318},{"className":317},[],[319],{"type":44,"value":320},"import { runAgent } from '.\u002Fagent'",{"type":39,"tag":130,"props":322,"children":323},{},[324,329,334],{"type":39,"tag":152,"props":325,"children":326},{},[327],{"type":44,"value":328},"HTTP server",{"type":39,"tag":152,"props":330,"children":331},{},[332],{"type":44,"value":333},"OFF",{"type":39,"tag":152,"props":335,"children":336},{},[337,343],{"type":39,"tag":53,"props":338,"children":340},{"className":339},[],[341],{"type":44,"value":342},"Bun.serve()",{"type":44,"value":344}," with SSE streaming",{"type":39,"tag":130,"props":346,"children":347},{},[348,353,357],{"type":39,"tag":152,"props":349,"children":350},{},[351],{"type":44,"value":352},"MCP server",{"type":39,"tag":152,"props":354,"children":355},{},[356],{"type":44,"value":333},{"type":39,"tag":152,"props":358,"children":359},{},[360],{"type":44,"value":361},"Expose as MCP tool via stdio",{"type":39,"tag":243,"props":363,"children":365},{"id":364},"openrouter-server-tools-server-side-zero-implementation",[366],{"type":44,"value":367},"OpenRouter Server Tools (server-side, zero implementation)",{"type":39,"tag":122,"props":369,"children":370},{},[371,391],{"type":39,"tag":126,"props":372,"children":373},{},[374],{"type":39,"tag":130,"props":375,"children":376},{},[377,382,387],{"type":39,"tag":134,"props":378,"children":379},{},[380],{"type":44,"value":381},"Tool",{"type":39,"tag":134,"props":383,"children":384},{},[385],{"type":44,"value":386},"Type string",{"type":39,"tag":134,"props":388,"children":389},{},[390],{"type":44,"value":267},{"type":39,"tag":145,"props":392,"children":393},{},[394,415,436,457],{"type":39,"tag":130,"props":395,"children":396},{},[397,402,411],{"type":39,"tag":152,"props":398,"children":399},{},[400],{"type":44,"value":401},"Web Search",{"type":39,"tag":152,"props":403,"children":404},{},[405],{"type":39,"tag":53,"props":406,"children":408},{"className":407},[],[409],{"type":44,"value":410},"openrouter:web_search",{"type":39,"tag":152,"props":412,"children":413},{},[414],{"type":44,"value":239},{"type":39,"tag":130,"props":416,"children":417},{},[418,423,432],{"type":39,"tag":152,"props":419,"children":420},{},[421],{"type":44,"value":422},"Web Fetch",{"type":39,"tag":152,"props":424,"children":425},{},[426],{"type":39,"tag":53,"props":427,"children":429},{"className":428},[],[430],{"type":44,"value":431},"openrouter:web_fetch",{"type":39,"tag":152,"props":433,"children":434},{},[435],{"type":44,"value":239},{"type":39,"tag":130,"props":437,"children":438},{},[439,444,453],{"type":39,"tag":152,"props":440,"children":441},{},[442],{"type":44,"value":443},"Datetime",{"type":39,"tag":152,"props":445,"children":446},{},[447],{"type":39,"tag":53,"props":448,"children":450},{"className":449},[],[451],{"type":44,"value":452},"openrouter:datetime",{"type":39,"tag":152,"props":454,"children":455},{},[456],{"type":44,"value":239},{"type":39,"tag":130,"props":458,"children":459},{},[460,465,474],{"type":39,"tag":152,"props":461,"children":462},{},[463],{"type":44,"value":464},"Image Generation",{"type":39,"tag":152,"props":466,"children":467},{},[468],{"type":39,"tag":53,"props":469,"children":471},{"className":470},[],[472],{"type":44,"value":473},"openrouter:image_generation",{"type":39,"tag":152,"props":475,"children":476},{},[477],{"type":44,"value":333},{"type":39,"tag":47,"props":479,"children":480},{},[481,483,489,491,498],{"type":44,"value":482},"Server tools go in the ",{"type":39,"tag":53,"props":484,"children":486},{"className":485},[],[487],{"type":44,"value":488},"tools",{"type":44,"value":490}," array alongside user-defined tools. No client code needed — OpenRouter executes them. Docs: ",{"type":39,"tag":90,"props":492,"children":495},{"href":493,"rel":494},"https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fguides\u002Ffeatures\u002Fserver-tools\u002Foverview",[94],[496],{"type":44,"value":497},"openrouter.ai\u002Fdocs\u002Fguides\u002Ffeatures\u002Fserver-tools",{"type":44,"value":499},".",{"type":39,"tag":243,"props":501,"children":503},{"id":502},"user-defined-tools-client-side-generated-into-srctools",[504],{"type":44,"value":505},"User-Defined Tools (client-side, generated into src\u002Ftools\u002F)",{"type":39,"tag":122,"props":507,"children":508},{},[509,527],{"type":39,"tag":126,"props":510,"children":511},{},[512],{"type":39,"tag":130,"props":513,"children":514},{},[515,519,523],{"type":39,"tag":134,"props":516,"children":517},{},[518],{"type":44,"value":381},{"type":39,"tag":134,"props":520,"children":521},{},[522],{"type":44,"value":267},{"type":39,"tag":134,"props":524,"children":525},{},[526],{"type":44,"value":272},{"type":39,"tag":145,"props":528,"children":529},{},[530,547,564,581,598,615,632,649,666,683,700],{"type":39,"tag":130,"props":531,"children":532},{},[533,538,542],{"type":39,"tag":152,"props":534,"children":535},{},[536],{"type":44,"value":537},"File Read",{"type":39,"tag":152,"props":539,"children":540},{},[541],{"type":44,"value":239},{"type":39,"tag":152,"props":543,"children":544},{},[545],{"type":44,"value":546},"Read files with offset\u002Flimit",{"type":39,"tag":130,"props":548,"children":549},{},[550,555,559],{"type":39,"tag":152,"props":551,"children":552},{},[553],{"type":44,"value":554},"File Write",{"type":39,"tag":152,"props":556,"children":557},{},[558],{"type":44,"value":239},{"type":39,"tag":152,"props":560,"children":561},{},[562],{"type":44,"value":563},"Write\u002Fcreate files, auto-create directories",{"type":39,"tag":130,"props":565,"children":566},{},[567,572,576],{"type":39,"tag":152,"props":568,"children":569},{},[570],{"type":44,"value":571},"File Edit",{"type":39,"tag":152,"props":573,"children":574},{},[575],{"type":44,"value":239},{"type":39,"tag":152,"props":577,"children":578},{},[579],{"type":44,"value":580},"Search-and-replace with diff validation",{"type":39,"tag":130,"props":582,"children":583},{},[584,589,593],{"type":39,"tag":152,"props":585,"children":586},{},[587],{"type":44,"value":588},"Glob\u002FFind",{"type":39,"tag":152,"props":590,"children":591},{},[592],{"type":44,"value":239},{"type":39,"tag":152,"props":594,"children":595},{},[596],{"type":44,"value":597},"File discovery by glob pattern",{"type":39,"tag":130,"props":599,"children":600},{},[601,606,610],{"type":39,"tag":152,"props":602,"children":603},{},[604],{"type":44,"value":605},"Grep\u002FSearch",{"type":39,"tag":152,"props":607,"children":608},{},[609],{"type":44,"value":239},{"type":39,"tag":152,"props":611,"children":612},{},[613],{"type":44,"value":614},"Content search by regex",{"type":39,"tag":130,"props":616,"children":617},{},[618,623,627],{"type":39,"tag":152,"props":619,"children":620},{},[621],{"type":44,"value":622},"Directory List",{"type":39,"tag":152,"props":624,"children":625},{},[626],{"type":44,"value":239},{"type":39,"tag":152,"props":628,"children":629},{},[630],{"type":44,"value":631},"List directory contents",{"type":39,"tag":130,"props":633,"children":634},{},[635,640,644],{"type":39,"tag":152,"props":636,"children":637},{},[638],{"type":44,"value":639},"Shell\u002FBash",{"type":39,"tag":152,"props":641,"children":642},{},[643],{"type":44,"value":239},{"type":39,"tag":152,"props":645,"children":646},{},[647],{"type":44,"value":648},"Execute commands with timeout and output capture",{"type":39,"tag":130,"props":650,"children":651},{},[652,657,661],{"type":39,"tag":152,"props":653,"children":654},{},[655],{"type":44,"value":656},"Custom Tool Template",{"type":39,"tag":152,"props":658,"children":659},{},[660],{"type":44,"value":239},{"type":39,"tag":152,"props":662,"children":663},{},[664],{"type":44,"value":665},"Empty skeleton for domain-specific tools",{"type":39,"tag":130,"props":667,"children":668},{},[669,674,678],{"type":39,"tag":152,"props":670,"children":671},{},[672],{"type":44,"value":673},"JS\u002FTS REPL",{"type":39,"tag":152,"props":675,"children":676},{},[677],{"type":44,"value":333},{"type":39,"tag":152,"props":679,"children":680},{},[681],{"type":44,"value":682},"Persistent Bun REPL",{"type":39,"tag":130,"props":684,"children":685},{},[686,691,695],{"type":39,"tag":152,"props":687,"children":688},{},[689],{"type":44,"value":690},"Sub-agent Spawn",{"type":39,"tag":152,"props":692,"children":693},{},[694],{"type":44,"value":333},{"type":39,"tag":152,"props":696,"children":697},{},[698],{"type":44,"value":699},"Delegate tasks to child agents",{"type":39,"tag":130,"props":701,"children":702},{},[703,708,712],{"type":39,"tag":152,"props":704,"children":705},{},[706],{"type":44,"value":707},"View Image",{"type":39,"tag":152,"props":709,"children":710},{},[711],{"type":44,"value":333},{"type":39,"tag":152,"props":713,"children":714},{},[715],{"type":44,"value":716},"Read local images as base64",{"type":39,"tag":243,"props":718,"children":720},{"id":719},"agent-modules-architectural-components",[721],{"type":44,"value":722},"Agent Modules (architectural components)",{"type":39,"tag":122,"props":724,"children":725},{},[726,745],{"type":39,"tag":126,"props":727,"children":728},{},[729],{"type":39,"tag":130,"props":730,"children":731},{},[732,737,741],{"type":39,"tag":134,"props":733,"children":734},{},[735],{"type":44,"value":736},"Module",{"type":39,"tag":134,"props":738,"children":739},{},[740],{"type":44,"value":267},{"type":39,"tag":134,"props":742,"children":743},{},[744],{"type":44,"value":272},{"type":39,"tag":145,"props":746,"children":747},{},[748,773,790,807,824,841,858,875,892],{"type":39,"tag":130,"props":749,"children":750},{},[751,756,760],{"type":39,"tag":152,"props":752,"children":753},{},[754],{"type":44,"value":755},"Session Persistence",{"type":39,"tag":152,"props":757,"children":758},{},[759],{"type":44,"value":239},{"type":39,"tag":152,"props":761,"children":762},{},[763,765,771],{"type":44,"value":764},"JSONL conversation log, ",{"type":39,"tag":53,"props":766,"children":768},{"className":767},[],[769],{"type":44,"value":770},"--no-session",{"type":44,"value":772}," to disable",{"type":39,"tag":130,"props":774,"children":775},{},[776,781,785],{"type":39,"tag":152,"props":777,"children":778},{},[779],{"type":44,"value":780},"Retry with Backoff",{"type":39,"tag":152,"props":782,"children":783},{},[784],{"type":44,"value":239},{"type":39,"tag":152,"props":786,"children":787},{},[788],{"type":44,"value":789},"Built into agent.ts",{"type":39,"tag":130,"props":791,"children":792},{},[793,798,802],{"type":39,"tag":152,"props":794,"children":795},{},[796],{"type":44,"value":797},"Context Compaction",{"type":39,"tag":152,"props":799,"children":800},{},[801],{"type":44,"value":333},{"type":39,"tag":152,"props":803,"children":804},{},[805],{"type":44,"value":806},"Summarize when context is long",{"type":39,"tag":130,"props":808,"children":809},{},[810,815,819],{"type":39,"tag":152,"props":811,"children":812},{},[813],{"type":44,"value":814},"Tool Result Offload",{"type":39,"tag":152,"props":816,"children":817},{},[818],{"type":44,"value":333},{"type":39,"tag":152,"props":820,"children":821},{},[822],{"type":44,"value":823},"Persist oversized tool outputs to disk, keep preview in context",{"type":39,"tag":130,"props":825,"children":826},{},[827,832,836],{"type":39,"tag":152,"props":828,"children":829},{},[830],{"type":44,"value":831},"System Prompt Composition",{"type":39,"tag":152,"props":833,"children":834},{},[835],{"type":44,"value":333},{"type":39,"tag":152,"props":837,"children":838},{},[839],{"type":44,"value":840},"Dynamic instructions from context files",{"type":39,"tag":130,"props":842,"children":843},{},[844,849,853],{"type":39,"tag":152,"props":845,"children":846},{},[847],{"type":44,"value":848},"Tool Approval Flow",{"type":39,"tag":152,"props":850,"children":851},{},[852],{"type":44,"value":333},{"type":39,"tag":152,"props":854,"children":855},{},[856],{"type":44,"value":857},"Programmatic approve\u002Freject",{"type":39,"tag":130,"props":859,"children":860},{},[861,866,870],{"type":39,"tag":152,"props":862,"children":863},{},[864],{"type":44,"value":865},"Structured Event Logging",{"type":39,"tag":152,"props":867,"children":868},{},[869],{"type":44,"value":333},{"type":39,"tag":152,"props":871,"children":872},{},[873],{"type":44,"value":874},"JSON events to stderr",{"type":39,"tag":130,"props":876,"children":877},{},[878,883,887],{"type":39,"tag":152,"props":879,"children":880},{},[881],{"type":44,"value":882},"Output Schema Validation",{"type":39,"tag":152,"props":884,"children":885},{},[886],{"type":44,"value":333},{"type":39,"tag":152,"props":888,"children":889},{},[890],{"type":44,"value":891},"Zod schema constraining response",{"type":39,"tag":130,"props":893,"children":894},{},[895,900,904],{"type":39,"tag":152,"props":896,"children":897},{},[898],{"type":44,"value":899},"Webhook Notifications",{"type":39,"tag":152,"props":901,"children":902},{},[903],{"type":44,"value":333},{"type":39,"tag":152,"props":905,"children":906},{},[907],{"type":44,"value":908},"POST on completion",{"type":39,"tag":243,"props":910,"children":912},{"id":911},"cli-output-mode-single-select-if-cli-entry-point-is-on",[913],{"type":44,"value":914},"CLI Output Mode (single-select, if CLI entry point is ON)",{"type":39,"tag":122,"props":916,"children":917},{},[918,937],{"type":39,"tag":126,"props":919,"children":920},{},[921],{"type":39,"tag":130,"props":922,"children":923},{},[924,929,933],{"type":39,"tag":134,"props":925,"children":926},{},[927],{"type":44,"value":928},"Mode",{"type":39,"tag":134,"props":930,"children":931},{},[932],{"type":44,"value":267},{"type":39,"tag":134,"props":934,"children":935},{},[936],{"type":44,"value":272},{"type":39,"tag":145,"props":938,"children":939},{},[940,957,974],{"type":39,"tag":130,"props":941,"children":942},{},[943,948,952],{"type":39,"tag":152,"props":944,"children":945},{},[946],{"type":44,"value":947},"Text",{"type":39,"tag":152,"props":949,"children":950},{},[951],{"type":44,"value":239},{"type":39,"tag":152,"props":953,"children":954},{},[955],{"type":44,"value":956},"Final response text to stdout",{"type":39,"tag":130,"props":958,"children":959},{},[960,965,969],{"type":39,"tag":152,"props":961,"children":962},{},[963],{"type":44,"value":964},"JSON",{"type":39,"tag":152,"props":966,"children":967},{},[968],{"type":44,"value":333},{"type":39,"tag":152,"props":970,"children":971},{},[972],{"type":44,"value":973},"NDJSON event stream",{"type":39,"tag":130,"props":975,"children":976},{},[977,982,986],{"type":39,"tag":152,"props":978,"children":979},{},[980],{"type":44,"value":981},"Quiet",{"type":39,"tag":152,"props":983,"children":984},{},[985],{"type":44,"value":333},{"type":39,"tag":152,"props":987,"children":988},{},[989],{"type":44,"value":990},"Exit code only",{"type":39,"tag":112,"props":992,"children":993},{},[],{"type":39,"tag":62,"props":995,"children":997},{"id":996},"generation-workflow",[998],{"type":44,"value":999},"Generation Workflow",{"type":39,"tag":47,"props":1001,"children":1002},{},[1003,1005,1010],{"type":44,"value":1004},"Before generating, ",{"type":39,"tag":235,"props":1006,"children":1007},{},[1008],{"type":44,"value":1009},"ask the user what to name their agent",{"type":44,"value":1011},". This name is used as:",{"type":39,"tag":69,"props":1013,"children":1014},{},[1015,1034,1054],{"type":39,"tag":73,"props":1016,"children":1017},{},[1018,1020,1026,1028],{"type":44,"value":1019},"the ",{"type":39,"tag":53,"props":1021,"children":1023},{"className":1022},[],[1024],{"type":44,"value":1025},"\"name\"",{"type":44,"value":1027}," field in ",{"type":39,"tag":53,"props":1029,"children":1031},{"className":1030},[],[1032],{"type":44,"value":1033},"package.json",{"type":39,"tag":73,"props":1035,"children":1036},{},[1037,1038,1044,1046,1052],{"type":44,"value":1019},{"type":39,"tag":53,"props":1039,"children":1041},{"className":1040},[],[1042],{"type":44,"value":1043},"\"bin\"",{"type":44,"value":1045}," command (so ",{"type":39,"tag":53,"props":1047,"children":1049},{"className":1048},[],[1050],{"type":44,"value":1051},"bun link",{"type":44,"value":1053}," makes it a globally-invokable CLI)",{"type":39,"tag":73,"props":1055,"children":1056},{},[1057],{"type":44,"value":1058},"the project directory name (if creating a new directory)",{"type":39,"tag":47,"props":1060,"children":1061},{},[1062,1064,1086,1088,1094,1096,1102],{"type":44,"value":1063},"Suggested question: ",{"type":39,"tag":1065,"props":1066,"children":1067},"em",{},[1068,1070,1076,1078,1084],{"type":44,"value":1069},"\"What would you like to call your agent? (short kebab-case, e.g. ",{"type":39,"tag":53,"props":1071,"children":1073},{"className":1072},[],[1074],{"type":44,"value":1075},"research-bot",{"type":44,"value":1077}," or ",{"type":39,"tag":53,"props":1079,"children":1081},{"className":1080},[],[1082],{"type":44,"value":1083},"docs-helper",{"type":44,"value":1085},")\"",{"type":44,"value":1087},". Validate the answer is a valid npm package name (lowercase, kebab-case, no spaces). Default to ",{"type":39,"tag":53,"props":1089,"children":1091},{"className":1090},[],[1092],{"type":44,"value":1093},"my-agent",{"type":44,"value":1095}," if the user has no preference. Use the chosen name everywhere the workflow below shows ",{"type":39,"tag":53,"props":1097,"children":1099},{"className":1098},[],[1100],{"type":44,"value":1101},"\u003Cagent-name>",{"type":44,"value":499},{"type":39,"tag":47,"props":1104,"children":1105},{},[1106],{"type":44,"value":1107},"After getting the name and checklist selections, follow this workflow:",{"type":39,"tag":1109,"props":1110,"children":1114},"pre",{"className":1111,"code":1113,"language":44},[1112],"language-text","- [ ] Generate package.json with name=\u003Cagent-name> and bin={\"\u003Cagent-name>\": \"src\u002Fcli.ts\"}\n- [ ] Generate tsconfig.json (Bun-native)\n- [ ] Generate src\u002Fconfig.ts\n- [ ] Generate src\u002Ftools\u002Findex.ts wiring selected tools\n- [ ] Generate selected tool files in src\u002Ftools\u002F (specs in references\u002Ftools.md)\n- [ ] Generate src\u002Fagent.ts (core runner)\n- [ ] If Session Persistence ON: generate src\u002Fsession.ts (spec in references\u002Fmodules.md)\n- [ ] Generate selected modules (specs in references\u002Fmodules.md)\n- [ ] Generate src\u002Fcli.ts entry point with shebang `#!\u002Fusr\u002Fbin\u002Fenv bun` (spec in references\u002Fentry-points.md)\n- [ ] If HTTP server selected: generate src\u002Fserver.ts (spec in references\u002Fentry-points.md)\n- [ ] If MCP server selected: generate src\u002Fmcp-server.ts (spec in references\u002Fentry-points.md)\n- [ ] Generate .env.example\n- [ ] Generate test\u002Fagent.test.ts\n- [ ] Run `bun install` to fetch dependencies\n- [ ] Verify: run `bunx tsc --noEmit`\n- [ ] Run `bun link` inside the project to register \u003Cagent-name> globally\n- [ ] Verify the command is on PATH: `command -v \u003Cagent-name>` should print a path. If it fails, tell the user to add Bun's bin dir to their shell rc:\n      `export PATH=\"$HOME\u002F.bun\u002Fbin:$PATH\"` (for bash\u002Fzsh). `bun link` silently succeeds even when `~\u002F.bun\u002Fbin` isn't on PATH, so without this check the user will be told the agent is globally available but `command not found` will greet them.\n- [ ] Tell the user they can now invoke their agent from anywhere with `\u003Cagent-name> \"\u003Cprompt>\"`\n- [ ] Optional: run `npx skills-ref validate .` to check SKILL.md frontmatter (if installed)\n",[1115],{"type":39,"tag":53,"props":1116,"children":1118},{"__ignoreMap":1117},"",[1119],{"type":44,"value":1113},{"type":39,"tag":47,"props":1121,"children":1122},{},[1123],{"type":44,"value":1124},"After generation, the user can run their agent from any directory:",{"type":39,"tag":1109,"props":1126,"children":1130},{"className":1127,"code":1128,"language":1129,"meta":1117,"style":1117},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cagent-name> \"What's in this repo?\"\necho \"Summarize README.md\" | \u003Cagent-name>\n\u003Cagent-name> --json \"List all TODOs\" | jq .\n","bash",[1131],{"type":39,"tag":53,"props":1132,"children":1133},{"__ignoreMap":1117},[1134,1173,1217],{"type":39,"tag":1135,"props":1136,"children":1139},"span",{"class":1137,"line":1138},"line",1,[1140,1146,1152,1157,1162,1168],{"type":39,"tag":1135,"props":1141,"children":1143},{"style":1142},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[1144],{"type":44,"value":1145},"\u003C",{"type":39,"tag":1135,"props":1147,"children":1149},{"style":1148},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[1150],{"type":44,"value":1151},"agent-name",{"type":39,"tag":1135,"props":1153,"children":1154},{"style":1142},[1155],{"type":44,"value":1156},">",{"type":39,"tag":1135,"props":1158,"children":1159},{"style":1142},[1160],{"type":44,"value":1161}," \"",{"type":39,"tag":1135,"props":1163,"children":1165},{"style":1164},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[1166],{"type":44,"value":1167},"What's in this repo?",{"type":39,"tag":1135,"props":1169,"children":1170},{"style":1142},[1171],{"type":44,"value":1172},"\"\n",{"type":39,"tag":1135,"props":1174,"children":1176},{"class":1137,"line":1175},2,[1177,1183,1187,1192,1197,1202,1207,1212],{"type":39,"tag":1135,"props":1178,"children":1180},{"style":1179},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[1181],{"type":44,"value":1182},"echo",{"type":39,"tag":1135,"props":1184,"children":1185},{"style":1142},[1186],{"type":44,"value":1161},{"type":39,"tag":1135,"props":1188,"children":1189},{"style":1164},[1190],{"type":44,"value":1191},"Summarize README.md",{"type":39,"tag":1135,"props":1193,"children":1194},{"style":1142},[1195],{"type":44,"value":1196},"\"",{"type":39,"tag":1135,"props":1198,"children":1199},{"style":1142},[1200],{"type":44,"value":1201}," |",{"type":39,"tag":1135,"props":1203,"children":1204},{"style":1142},[1205],{"type":44,"value":1206}," \u003C",{"type":39,"tag":1135,"props":1208,"children":1210},{"style":1209},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1211],{"type":44,"value":1151},{"type":39,"tag":1135,"props":1213,"children":1214},{"style":1148},[1215],{"type":44,"value":1216},">\n",{"type":39,"tag":1135,"props":1218,"children":1220},{"class":1137,"line":1219},3,[1221,1225,1229,1233,1238,1242,1247,1251,1255,1260],{"type":39,"tag":1135,"props":1222,"children":1223},{"style":1142},[1224],{"type":44,"value":1145},{"type":39,"tag":1135,"props":1226,"children":1227},{"style":1148},[1228],{"type":44,"value":1151},{"type":39,"tag":1135,"props":1230,"children":1231},{"style":1142},[1232],{"type":44,"value":1156},{"type":39,"tag":1135,"props":1234,"children":1235},{"style":1148},[1236],{"type":44,"value":1237}," --json ",{"type":39,"tag":1135,"props":1239,"children":1240},{"style":1142},[1241],{"type":44,"value":1196},{"type":39,"tag":1135,"props":1243,"children":1244},{"style":1164},[1245],{"type":44,"value":1246},"List all TODOs",{"type":39,"tag":1135,"props":1248,"children":1249},{"style":1142},[1250],{"type":44,"value":1196},{"type":39,"tag":1135,"props":1252,"children":1253},{"style":1142},[1254],{"type":44,"value":1201},{"type":39,"tag":1135,"props":1256,"children":1257},{"style":1209},[1258],{"type":44,"value":1259}," jq",{"type":39,"tag":1135,"props":1261,"children":1262},{"style":1164},[1263],{"type":44,"value":1264}," .\n",{"type":39,"tag":47,"props":1266,"children":1267},{},[1268,1270,1276,1278,1284,1286,1291,1293,1299],{"type":44,"value":1269},"To later rename the agent, update the ",{"type":39,"tag":53,"props":1271,"children":1273},{"className":1272},[],[1274],{"type":44,"value":1275},"name",{"type":44,"value":1277}," and ",{"type":39,"tag":53,"props":1279,"children":1281},{"className":1280},[],[1282],{"type":44,"value":1283},"bin",{"type":44,"value":1285}," keys in ",{"type":39,"tag":53,"props":1287,"children":1289},{"className":1288},[],[1290],{"type":44,"value":1033},{"type":44,"value":1292},", then run ",{"type":39,"tag":53,"props":1294,"children":1296},{"className":1295},[],[1297],{"type":44,"value":1298},"bun unlink && bun link",{"type":44,"value":499},{"type":39,"tag":112,"props":1301,"children":1302},{},[],{"type":39,"tag":62,"props":1304,"children":1306},{"id":1305},"tool-pattern",[1307],{"type":44,"value":1308},"Tool Pattern",{"type":39,"tag":47,"props":1310,"children":1311},{},[1312,1314,1320,1322,1326],{"type":44,"value":1313},"All user-defined tools follow this pattern using ",{"type":39,"tag":53,"props":1315,"children":1317},{"className":1316},[],[1318],{"type":44,"value":1319},"@openrouter\u002Fagent\u002Ftool",{"type":44,"value":1321},". Here is one complete example — all other tools in ",{"type":39,"tag":90,"props":1323,"children":1324},{"href":177},[1325],{"type":44,"value":177},{"type":44,"value":1327}," follow the same shape:",{"type":39,"tag":1109,"props":1329,"children":1332},{"className":1330,"code":1331,"language":15,"meta":1117,"style":1117},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { tool } from '@openrouter\u002Fagent\u002Ftool';\nimport { z } from 'zod';\n\nconst DEFAULT_LINE_LIMIT = 2000;\nconst MAX_LINE_CHARS = 2000;\n\nexport const fileReadTool = tool({\n  name: 'file_read',\n  description:\n    'Read the contents of a file. Output is capped at 2000 lines by default (use offset\u002Flimit to paginate) and any line longer than 2000 characters is truncated. When the response is truncated, the hint field tells you how to continue.',\n  inputSchema: z.object({\n    path: z.string().describe('Absolute path to the file'),\n    offset: z.number().optional().describe('Start reading from this line (1-indexed)'),\n    limit: z.number().optional().describe(`Maximum lines to return (default ${DEFAULT_LINE_LIMIT})`),\n  }),\n  execute: async ({ path, offset, limit }) => {\n    try {\n      const content = await Bun.file(path).text();\n      const lines = content.split('\\n');\n      const start = offset ? offset - 1 : 0;\n      const end = Math.min(start + (limit ?? DEFAULT_LINE_LIMIT), lines.length);\n      let longLines = 0;\n      const slice = lines.slice(start, end).map((line) => {\n        if (line.length \u003C= MAX_LINE_CHARS) return line;\n        longLines++;\n        return line.slice(0, MAX_LINE_CHARS) + `… [line truncated, ${line.length - MAX_LINE_CHARS} chars dropped]`;\n      });\n      const tailTruncated = end \u003C lines.length;\n      const truncated = tailTruncated || longLines > 0;\n      const hintParts: string[] = [`Showing lines ${start + 1}-${end} of ${lines.length}.`];\n      if (tailTruncated) hintParts.push(`Use offset=${end + 1} to continue.`);\n      if (longLines > 0) hintParts.push(`${longLines} line(s) exceeded ${MAX_LINE_CHARS} chars and were per-line truncated; use grep to fetch content from those lines.`);\n      return {\n        content: slice.join('\\n'),\n        totalLines: lines.length,\n        ...(truncated && {\n          truncated: true,\n          ...(tailTruncated && { nextOffset: end + 1 }),\n          hint: hintParts.join(' '),\n        }),\n      };\n    } catch (err: any) {\n      if (err.code === 'ENOENT') return { error: `File not found: ${path}` };\n      if (err.code === 'EACCES') return { error: `Permission denied: ${path}` };\n      return { error: err.message };\n    }\n  },\n});\n",[1333],{"type":39,"tag":53,"props":1334,"children":1335},{"__ignoreMap":1117},[1336,1384,1425,1434,1464,1489,1497,1534,1567,1581,1603,1637,1703,1779,1873,1890,1953,1966,2033,2088,2142,2236,2262,2345,2399,2413,2512,2529,2570,2613,2739,2826,2919,2932,2982,3011,3038,3061,3119,3164,3181,3190,3230,3320,3406,3444,3453,3462],{"type":39,"tag":1135,"props":1337,"children":1338},{"class":1137,"line":1138},[1339,1345,1350,1355,1360,1365,1370,1374,1379],{"type":39,"tag":1135,"props":1340,"children":1342},{"style":1341},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[1343],{"type":44,"value":1344},"import",{"type":39,"tag":1135,"props":1346,"children":1347},{"style":1142},[1348],{"type":44,"value":1349}," {",{"type":39,"tag":1135,"props":1351,"children":1352},{"style":1148},[1353],{"type":44,"value":1354}," tool",{"type":39,"tag":1135,"props":1356,"children":1357},{"style":1142},[1358],{"type":44,"value":1359}," }",{"type":39,"tag":1135,"props":1361,"children":1362},{"style":1341},[1363],{"type":44,"value":1364}," from",{"type":39,"tag":1135,"props":1366,"children":1367},{"style":1142},[1368],{"type":44,"value":1369}," '",{"type":39,"tag":1135,"props":1371,"children":1372},{"style":1164},[1373],{"type":44,"value":1319},{"type":39,"tag":1135,"props":1375,"children":1376},{"style":1142},[1377],{"type":44,"value":1378},"'",{"type":39,"tag":1135,"props":1380,"children":1381},{"style":1142},[1382],{"type":44,"value":1383},";\n",{"type":39,"tag":1135,"props":1385,"children":1386},{"class":1137,"line":1175},[1387,1391,1395,1400,1404,1408,1412,1417,1421],{"type":39,"tag":1135,"props":1388,"children":1389},{"style":1341},[1390],{"type":44,"value":1344},{"type":39,"tag":1135,"props":1392,"children":1393},{"style":1142},[1394],{"type":44,"value":1349},{"type":39,"tag":1135,"props":1396,"children":1397},{"style":1148},[1398],{"type":44,"value":1399}," z",{"type":39,"tag":1135,"props":1401,"children":1402},{"style":1142},[1403],{"type":44,"value":1359},{"type":39,"tag":1135,"props":1405,"children":1406},{"style":1341},[1407],{"type":44,"value":1364},{"type":39,"tag":1135,"props":1409,"children":1410},{"style":1142},[1411],{"type":44,"value":1369},{"type":39,"tag":1135,"props":1413,"children":1414},{"style":1164},[1415],{"type":44,"value":1416},"zod",{"type":39,"tag":1135,"props":1418,"children":1419},{"style":1142},[1420],{"type":44,"value":1378},{"type":39,"tag":1135,"props":1422,"children":1423},{"style":1142},[1424],{"type":44,"value":1383},{"type":39,"tag":1135,"props":1426,"children":1427},{"class":1137,"line":1219},[1428],{"type":39,"tag":1135,"props":1429,"children":1431},{"emptyLinePlaceholder":1430},true,[1432],{"type":44,"value":1433},"\n",{"type":39,"tag":1135,"props":1435,"children":1437},{"class":1137,"line":1436},4,[1438,1444,1449,1454,1460],{"type":39,"tag":1135,"props":1439,"children":1441},{"style":1440},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[1442],{"type":44,"value":1443},"const",{"type":39,"tag":1135,"props":1445,"children":1446},{"style":1148},[1447],{"type":44,"value":1448}," DEFAULT_LINE_LIMIT ",{"type":39,"tag":1135,"props":1450,"children":1451},{"style":1142},[1452],{"type":44,"value":1453},"=",{"type":39,"tag":1135,"props":1455,"children":1457},{"style":1456},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1458],{"type":44,"value":1459}," 2000",{"type":39,"tag":1135,"props":1461,"children":1462},{"style":1142},[1463],{"type":44,"value":1383},{"type":39,"tag":1135,"props":1465,"children":1467},{"class":1137,"line":1466},5,[1468,1472,1477,1481,1485],{"type":39,"tag":1135,"props":1469,"children":1470},{"style":1440},[1471],{"type":44,"value":1443},{"type":39,"tag":1135,"props":1473,"children":1474},{"style":1148},[1475],{"type":44,"value":1476}," MAX_LINE_CHARS ",{"type":39,"tag":1135,"props":1478,"children":1479},{"style":1142},[1480],{"type":44,"value":1453},{"type":39,"tag":1135,"props":1482,"children":1483},{"style":1456},[1484],{"type":44,"value":1459},{"type":39,"tag":1135,"props":1486,"children":1487},{"style":1142},[1488],{"type":44,"value":1383},{"type":39,"tag":1135,"props":1490,"children":1492},{"class":1137,"line":1491},6,[1493],{"type":39,"tag":1135,"props":1494,"children":1495},{"emptyLinePlaceholder":1430},[1496],{"type":44,"value":1433},{"type":39,"tag":1135,"props":1498,"children":1500},{"class":1137,"line":1499},7,[1501,1506,1511,1516,1520,1524,1529],{"type":39,"tag":1135,"props":1502,"children":1503},{"style":1341},[1504],{"type":44,"value":1505},"export",{"type":39,"tag":1135,"props":1507,"children":1508},{"style":1440},[1509],{"type":44,"value":1510}," const",{"type":39,"tag":1135,"props":1512,"children":1513},{"style":1148},[1514],{"type":44,"value":1515}," fileReadTool ",{"type":39,"tag":1135,"props":1517,"children":1518},{"style":1142},[1519],{"type":44,"value":1453},{"type":39,"tag":1135,"props":1521,"children":1522},{"style":1179},[1523],{"type":44,"value":1354},{"type":39,"tag":1135,"props":1525,"children":1526},{"style":1148},[1527],{"type":44,"value":1528},"(",{"type":39,"tag":1135,"props":1530,"children":1531},{"style":1142},[1532],{"type":44,"value":1533},"{\n",{"type":39,"tag":1135,"props":1535,"children":1537},{"class":1137,"line":1536},8,[1538,1544,1549,1553,1558,1562],{"type":39,"tag":1135,"props":1539,"children":1541},{"style":1540},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1542],{"type":44,"value":1543},"  name",{"type":39,"tag":1135,"props":1545,"children":1546},{"style":1142},[1547],{"type":44,"value":1548},":",{"type":39,"tag":1135,"props":1550,"children":1551},{"style":1142},[1552],{"type":44,"value":1369},{"type":39,"tag":1135,"props":1554,"children":1555},{"style":1164},[1556],{"type":44,"value":1557},"file_read",{"type":39,"tag":1135,"props":1559,"children":1560},{"style":1142},[1561],{"type":44,"value":1378},{"type":39,"tag":1135,"props":1563,"children":1564},{"style":1142},[1565],{"type":44,"value":1566},",\n",{"type":39,"tag":1135,"props":1568,"children":1570},{"class":1137,"line":1569},9,[1571,1576],{"type":39,"tag":1135,"props":1572,"children":1573},{"style":1540},[1574],{"type":44,"value":1575},"  description",{"type":39,"tag":1135,"props":1577,"children":1578},{"style":1142},[1579],{"type":44,"value":1580},":\n",{"type":39,"tag":1135,"props":1582,"children":1584},{"class":1137,"line":1583},10,[1585,1590,1595,1599],{"type":39,"tag":1135,"props":1586,"children":1587},{"style":1142},[1588],{"type":44,"value":1589},"    '",{"type":39,"tag":1135,"props":1591,"children":1592},{"style":1164},[1593],{"type":44,"value":1594},"Read the contents of a file. Output is capped at 2000 lines by default (use offset\u002Flimit to paginate) and any line longer than 2000 characters is truncated. When the response is truncated, the hint field tells you how to continue.",{"type":39,"tag":1135,"props":1596,"children":1597},{"style":1142},[1598],{"type":44,"value":1378},{"type":39,"tag":1135,"props":1600,"children":1601},{"style":1142},[1602],{"type":44,"value":1566},{"type":39,"tag":1135,"props":1604,"children":1606},{"class":1137,"line":1605},11,[1607,1612,1616,1620,1624,1629,1633],{"type":39,"tag":1135,"props":1608,"children":1609},{"style":1540},[1610],{"type":44,"value":1611},"  inputSchema",{"type":39,"tag":1135,"props":1613,"children":1614},{"style":1142},[1615],{"type":44,"value":1548},{"type":39,"tag":1135,"props":1617,"children":1618},{"style":1148},[1619],{"type":44,"value":1399},{"type":39,"tag":1135,"props":1621,"children":1622},{"style":1142},[1623],{"type":44,"value":499},{"type":39,"tag":1135,"props":1625,"children":1626},{"style":1179},[1627],{"type":44,"value":1628},"object",{"type":39,"tag":1135,"props":1630,"children":1631},{"style":1148},[1632],{"type":44,"value":1528},{"type":39,"tag":1135,"props":1634,"children":1635},{"style":1142},[1636],{"type":44,"value":1533},{"type":39,"tag":1135,"props":1638,"children":1640},{"class":1137,"line":1639},12,[1641,1646,1650,1654,1658,1663,1668,1672,1677,1681,1685,1690,1694,1699],{"type":39,"tag":1135,"props":1642,"children":1643},{"style":1540},[1644],{"type":44,"value":1645},"    path",{"type":39,"tag":1135,"props":1647,"children":1648},{"style":1142},[1649],{"type":44,"value":1548},{"type":39,"tag":1135,"props":1651,"children":1652},{"style":1148},[1653],{"type":44,"value":1399},{"type":39,"tag":1135,"props":1655,"children":1656},{"style":1142},[1657],{"type":44,"value":499},{"type":39,"tag":1135,"props":1659,"children":1660},{"style":1179},[1661],{"type":44,"value":1662},"string",{"type":39,"tag":1135,"props":1664,"children":1665},{"style":1148},[1666],{"type":44,"value":1667},"()",{"type":39,"tag":1135,"props":1669,"children":1670},{"style":1142},[1671],{"type":44,"value":499},{"type":39,"tag":1135,"props":1673,"children":1674},{"style":1179},[1675],{"type":44,"value":1676},"describe",{"type":39,"tag":1135,"props":1678,"children":1679},{"style":1148},[1680],{"type":44,"value":1528},{"type":39,"tag":1135,"props":1682,"children":1683},{"style":1142},[1684],{"type":44,"value":1378},{"type":39,"tag":1135,"props":1686,"children":1687},{"style":1164},[1688],{"type":44,"value":1689},"Absolute path to the file",{"type":39,"tag":1135,"props":1691,"children":1692},{"style":1142},[1693],{"type":44,"value":1378},{"type":39,"tag":1135,"props":1695,"children":1696},{"style":1148},[1697],{"type":44,"value":1698},")",{"type":39,"tag":1135,"props":1700,"children":1701},{"style":1142},[1702],{"type":44,"value":1566},{"type":39,"tag":1135,"props":1704,"children":1706},{"class":1137,"line":1705},13,[1707,1712,1716,1720,1724,1729,1733,1737,1742,1746,1750,1754,1758,1762,1767,1771,1775],{"type":39,"tag":1135,"props":1708,"children":1709},{"style":1540},[1710],{"type":44,"value":1711},"    offset",{"type":39,"tag":1135,"props":1713,"children":1714},{"style":1142},[1715],{"type":44,"value":1548},{"type":39,"tag":1135,"props":1717,"children":1718},{"style":1148},[1719],{"type":44,"value":1399},{"type":39,"tag":1135,"props":1721,"children":1722},{"style":1142},[1723],{"type":44,"value":499},{"type":39,"tag":1135,"props":1725,"children":1726},{"style":1179},[1727],{"type":44,"value":1728},"number",{"type":39,"tag":1135,"props":1730,"children":1731},{"style":1148},[1732],{"type":44,"value":1667},{"type":39,"tag":1135,"props":1734,"children":1735},{"style":1142},[1736],{"type":44,"value":499},{"type":39,"tag":1135,"props":1738,"children":1739},{"style":1179},[1740],{"type":44,"value":1741},"optional",{"type":39,"tag":1135,"props":1743,"children":1744},{"style":1148},[1745],{"type":44,"value":1667},{"type":39,"tag":1135,"props":1747,"children":1748},{"style":1142},[1749],{"type":44,"value":499},{"type":39,"tag":1135,"props":1751,"children":1752},{"style":1179},[1753],{"type":44,"value":1676},{"type":39,"tag":1135,"props":1755,"children":1756},{"style":1148},[1757],{"type":44,"value":1528},{"type":39,"tag":1135,"props":1759,"children":1760},{"style":1142},[1761],{"type":44,"value":1378},{"type":39,"tag":1135,"props":1763,"children":1764},{"style":1164},[1765],{"type":44,"value":1766},"Start reading from this line (1-indexed)",{"type":39,"tag":1135,"props":1768,"children":1769},{"style":1142},[1770],{"type":44,"value":1378},{"type":39,"tag":1135,"props":1772,"children":1773},{"style":1148},[1774],{"type":44,"value":1698},{"type":39,"tag":1135,"props":1776,"children":1777},{"style":1142},[1778],{"type":44,"value":1566},{"type":39,"tag":1135,"props":1780,"children":1782},{"class":1137,"line":1781},14,[1783,1788,1792,1796,1800,1804,1808,1812,1816,1820,1824,1828,1832,1837,1842,1847,1852,1857,1861,1865,1869],{"type":39,"tag":1135,"props":1784,"children":1785},{"style":1540},[1786],{"type":44,"value":1787},"    limit",{"type":39,"tag":1135,"props":1789,"children":1790},{"style":1142},[1791],{"type":44,"value":1548},{"type":39,"tag":1135,"props":1793,"children":1794},{"style":1148},[1795],{"type":44,"value":1399},{"type":39,"tag":1135,"props":1797,"children":1798},{"style":1142},[1799],{"type":44,"value":499},{"type":39,"tag":1135,"props":1801,"children":1802},{"style":1179},[1803],{"type":44,"value":1728},{"type":39,"tag":1135,"props":1805,"children":1806},{"style":1148},[1807],{"type":44,"value":1667},{"type":39,"tag":1135,"props":1809,"children":1810},{"style":1142},[1811],{"type":44,"value":499},{"type":39,"tag":1135,"props":1813,"children":1814},{"style":1179},[1815],{"type":44,"value":1741},{"type":39,"tag":1135,"props":1817,"children":1818},{"style":1148},[1819],{"type":44,"value":1667},{"type":39,"tag":1135,"props":1821,"children":1822},{"style":1142},[1823],{"type":44,"value":499},{"type":39,"tag":1135,"props":1825,"children":1826},{"style":1179},[1827],{"type":44,"value":1676},{"type":39,"tag":1135,"props":1829,"children":1830},{"style":1148},[1831],{"type":44,"value":1528},{"type":39,"tag":1135,"props":1833,"children":1834},{"style":1142},[1835],{"type":44,"value":1836},"`",{"type":39,"tag":1135,"props":1838,"children":1839},{"style":1164},[1840],{"type":44,"value":1841},"Maximum lines to return (default ",{"type":39,"tag":1135,"props":1843,"children":1844},{"style":1142},[1845],{"type":44,"value":1846},"${",{"type":39,"tag":1135,"props":1848,"children":1849},{"style":1148},[1850],{"type":44,"value":1851},"DEFAULT_LINE_LIMIT",{"type":39,"tag":1135,"props":1853,"children":1854},{"style":1142},[1855],{"type":44,"value":1856},"}",{"type":39,"tag":1135,"props":1858,"children":1859},{"style":1164},[1860],{"type":44,"value":1698},{"type":39,"tag":1135,"props":1862,"children":1863},{"style":1142},[1864],{"type":44,"value":1836},{"type":39,"tag":1135,"props":1866,"children":1867},{"style":1148},[1868],{"type":44,"value":1698},{"type":39,"tag":1135,"props":1870,"children":1871},{"style":1142},[1872],{"type":44,"value":1566},{"type":39,"tag":1135,"props":1874,"children":1876},{"class":1137,"line":1875},15,[1877,1882,1886],{"type":39,"tag":1135,"props":1878,"children":1879},{"style":1142},[1880],{"type":44,"value":1881},"  }",{"type":39,"tag":1135,"props":1883,"children":1884},{"style":1148},[1885],{"type":44,"value":1698},{"type":39,"tag":1135,"props":1887,"children":1888},{"style":1142},[1889],{"type":44,"value":1566},{"type":39,"tag":1135,"props":1891,"children":1893},{"class":1137,"line":1892},16,[1894,1899,1903,1908,1913,1919,1924,1929,1933,1938,1943,1948],{"type":39,"tag":1135,"props":1895,"children":1896},{"style":1179},[1897],{"type":44,"value":1898},"  execute",{"type":39,"tag":1135,"props":1900,"children":1901},{"style":1142},[1902],{"type":44,"value":1548},{"type":39,"tag":1135,"props":1904,"children":1905},{"style":1440},[1906],{"type":44,"value":1907}," async",{"type":39,"tag":1135,"props":1909,"children":1910},{"style":1142},[1911],{"type":44,"value":1912}," ({",{"type":39,"tag":1135,"props":1914,"children":1916},{"style":1915},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1917],{"type":44,"value":1918}," path",{"type":39,"tag":1135,"props":1920,"children":1921},{"style":1142},[1922],{"type":44,"value":1923},",",{"type":39,"tag":1135,"props":1925,"children":1926},{"style":1915},[1927],{"type":44,"value":1928}," offset",{"type":39,"tag":1135,"props":1930,"children":1931},{"style":1142},[1932],{"type":44,"value":1923},{"type":39,"tag":1135,"props":1934,"children":1935},{"style":1915},[1936],{"type":44,"value":1937}," limit",{"type":39,"tag":1135,"props":1939,"children":1940},{"style":1142},[1941],{"type":44,"value":1942}," })",{"type":39,"tag":1135,"props":1944,"children":1945},{"style":1440},[1946],{"type":44,"value":1947}," =>",{"type":39,"tag":1135,"props":1949,"children":1950},{"style":1142},[1951],{"type":44,"value":1952}," {\n",{"type":39,"tag":1135,"props":1954,"children":1956},{"class":1137,"line":1955},17,[1957,1962],{"type":39,"tag":1135,"props":1958,"children":1959},{"style":1341},[1960],{"type":44,"value":1961},"    try",{"type":39,"tag":1135,"props":1963,"children":1964},{"style":1142},[1965],{"type":44,"value":1952},{"type":39,"tag":1135,"props":1967,"children":1969},{"class":1137,"line":1968},18,[1970,1975,1980,1985,1990,1995,1999,2004,2008,2013,2017,2021,2025,2029],{"type":39,"tag":1135,"props":1971,"children":1972},{"style":1440},[1973],{"type":44,"value":1974},"      const",{"type":39,"tag":1135,"props":1976,"children":1977},{"style":1148},[1978],{"type":44,"value":1979}," content",{"type":39,"tag":1135,"props":1981,"children":1982},{"style":1142},[1983],{"type":44,"value":1984}," =",{"type":39,"tag":1135,"props":1986,"children":1987},{"style":1341},[1988],{"type":44,"value":1989}," await",{"type":39,"tag":1135,"props":1991,"children":1992},{"style":1148},[1993],{"type":44,"value":1994}," Bun",{"type":39,"tag":1135,"props":1996,"children":1997},{"style":1142},[1998],{"type":44,"value":499},{"type":39,"tag":1135,"props":2000,"children":2001},{"style":1179},[2002],{"type":44,"value":2003},"file",{"type":39,"tag":1135,"props":2005,"children":2006},{"style":1540},[2007],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2009,"children":2010},{"style":1148},[2011],{"type":44,"value":2012},"path",{"type":39,"tag":1135,"props":2014,"children":2015},{"style":1540},[2016],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2018,"children":2019},{"style":1142},[2020],{"type":44,"value":499},{"type":39,"tag":1135,"props":2022,"children":2023},{"style":1179},[2024],{"type":44,"value":44},{"type":39,"tag":1135,"props":2026,"children":2027},{"style":1540},[2028],{"type":44,"value":1667},{"type":39,"tag":1135,"props":2030,"children":2031},{"style":1142},[2032],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2034,"children":2036},{"class":1137,"line":2035},19,[2037,2041,2046,2050,2054,2058,2063,2067,2071,2076,2080,2084],{"type":39,"tag":1135,"props":2038,"children":2039},{"style":1440},[2040],{"type":44,"value":1974},{"type":39,"tag":1135,"props":2042,"children":2043},{"style":1148},[2044],{"type":44,"value":2045}," lines",{"type":39,"tag":1135,"props":2047,"children":2048},{"style":1142},[2049],{"type":44,"value":1984},{"type":39,"tag":1135,"props":2051,"children":2052},{"style":1148},[2053],{"type":44,"value":1979},{"type":39,"tag":1135,"props":2055,"children":2056},{"style":1142},[2057],{"type":44,"value":499},{"type":39,"tag":1135,"props":2059,"children":2060},{"style":1179},[2061],{"type":44,"value":2062},"split",{"type":39,"tag":1135,"props":2064,"children":2065},{"style":1540},[2066],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2068,"children":2069},{"style":1142},[2070],{"type":44,"value":1378},{"type":39,"tag":1135,"props":2072,"children":2073},{"style":1148},[2074],{"type":44,"value":2075},"\\n",{"type":39,"tag":1135,"props":2077,"children":2078},{"style":1142},[2079],{"type":44,"value":1378},{"type":39,"tag":1135,"props":2081,"children":2082},{"style":1540},[2083],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2085,"children":2086},{"style":1142},[2087],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2089,"children":2091},{"class":1137,"line":2090},20,[2092,2096,2101,2105,2109,2114,2118,2123,2128,2133,2138],{"type":39,"tag":1135,"props":2093,"children":2094},{"style":1440},[2095],{"type":44,"value":1974},{"type":39,"tag":1135,"props":2097,"children":2098},{"style":1148},[2099],{"type":44,"value":2100}," start",{"type":39,"tag":1135,"props":2102,"children":2103},{"style":1142},[2104],{"type":44,"value":1984},{"type":39,"tag":1135,"props":2106,"children":2107},{"style":1148},[2108],{"type":44,"value":1928},{"type":39,"tag":1135,"props":2110,"children":2111},{"style":1142},[2112],{"type":44,"value":2113}," ?",{"type":39,"tag":1135,"props":2115,"children":2116},{"style":1148},[2117],{"type":44,"value":1928},{"type":39,"tag":1135,"props":2119,"children":2120},{"style":1142},[2121],{"type":44,"value":2122}," -",{"type":39,"tag":1135,"props":2124,"children":2125},{"style":1456},[2126],{"type":44,"value":2127}," 1",{"type":39,"tag":1135,"props":2129,"children":2130},{"style":1142},[2131],{"type":44,"value":2132}," :",{"type":39,"tag":1135,"props":2134,"children":2135},{"style":1456},[2136],{"type":44,"value":2137}," 0",{"type":39,"tag":1135,"props":2139,"children":2140},{"style":1142},[2141],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2143,"children":2145},{"class":1137,"line":2144},21,[2146,2150,2155,2159,2164,2168,2173,2177,2182,2187,2192,2197,2202,2207,2211,2215,2219,2223,2228,2232],{"type":39,"tag":1135,"props":2147,"children":2148},{"style":1440},[2149],{"type":44,"value":1974},{"type":39,"tag":1135,"props":2151,"children":2152},{"style":1148},[2153],{"type":44,"value":2154}," end",{"type":39,"tag":1135,"props":2156,"children":2157},{"style":1142},[2158],{"type":44,"value":1984},{"type":39,"tag":1135,"props":2160,"children":2161},{"style":1148},[2162],{"type":44,"value":2163}," Math",{"type":39,"tag":1135,"props":2165,"children":2166},{"style":1142},[2167],{"type":44,"value":499},{"type":39,"tag":1135,"props":2169,"children":2170},{"style":1179},[2171],{"type":44,"value":2172},"min",{"type":39,"tag":1135,"props":2174,"children":2175},{"style":1540},[2176],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2178,"children":2179},{"style":1148},[2180],{"type":44,"value":2181},"start",{"type":39,"tag":1135,"props":2183,"children":2184},{"style":1142},[2185],{"type":44,"value":2186}," +",{"type":39,"tag":1135,"props":2188,"children":2189},{"style":1540},[2190],{"type":44,"value":2191}," (",{"type":39,"tag":1135,"props":2193,"children":2194},{"style":1148},[2195],{"type":44,"value":2196},"limit",{"type":39,"tag":1135,"props":2198,"children":2199},{"style":1142},[2200],{"type":44,"value":2201}," ??",{"type":39,"tag":1135,"props":2203,"children":2204},{"style":1148},[2205],{"type":44,"value":2206}," DEFAULT_LINE_LIMIT",{"type":39,"tag":1135,"props":2208,"children":2209},{"style":1540},[2210],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2212,"children":2213},{"style":1142},[2214],{"type":44,"value":1923},{"type":39,"tag":1135,"props":2216,"children":2217},{"style":1148},[2218],{"type":44,"value":2045},{"type":39,"tag":1135,"props":2220,"children":2221},{"style":1142},[2222],{"type":44,"value":499},{"type":39,"tag":1135,"props":2224,"children":2225},{"style":1148},[2226],{"type":44,"value":2227},"length",{"type":39,"tag":1135,"props":2229,"children":2230},{"style":1540},[2231],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2233,"children":2234},{"style":1142},[2235],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2237,"children":2239},{"class":1137,"line":2238},22,[2240,2245,2250,2254,2258],{"type":39,"tag":1135,"props":2241,"children":2242},{"style":1440},[2243],{"type":44,"value":2244},"      let",{"type":39,"tag":1135,"props":2246,"children":2247},{"style":1148},[2248],{"type":44,"value":2249}," longLines",{"type":39,"tag":1135,"props":2251,"children":2252},{"style":1142},[2253],{"type":44,"value":1984},{"type":39,"tag":1135,"props":2255,"children":2256},{"style":1456},[2257],{"type":44,"value":2137},{"type":39,"tag":1135,"props":2259,"children":2260},{"style":1142},[2261],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2263,"children":2265},{"class":1137,"line":2264},23,[2266,2270,2275,2279,2283,2287,2292,2296,2300,2304,2308,2312,2316,2321,2325,2329,2333,2337,2341],{"type":39,"tag":1135,"props":2267,"children":2268},{"style":1440},[2269],{"type":44,"value":1974},{"type":39,"tag":1135,"props":2271,"children":2272},{"style":1148},[2273],{"type":44,"value":2274}," slice",{"type":39,"tag":1135,"props":2276,"children":2277},{"style":1142},[2278],{"type":44,"value":1984},{"type":39,"tag":1135,"props":2280,"children":2281},{"style":1148},[2282],{"type":44,"value":2045},{"type":39,"tag":1135,"props":2284,"children":2285},{"style":1142},[2286],{"type":44,"value":499},{"type":39,"tag":1135,"props":2288,"children":2289},{"style":1179},[2290],{"type":44,"value":2291},"slice",{"type":39,"tag":1135,"props":2293,"children":2294},{"style":1540},[2295],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2297,"children":2298},{"style":1148},[2299],{"type":44,"value":2181},{"type":39,"tag":1135,"props":2301,"children":2302},{"style":1142},[2303],{"type":44,"value":1923},{"type":39,"tag":1135,"props":2305,"children":2306},{"style":1148},[2307],{"type":44,"value":2154},{"type":39,"tag":1135,"props":2309,"children":2310},{"style":1540},[2311],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2313,"children":2314},{"style":1142},[2315],{"type":44,"value":499},{"type":39,"tag":1135,"props":2317,"children":2318},{"style":1179},[2319],{"type":44,"value":2320},"map",{"type":39,"tag":1135,"props":2322,"children":2323},{"style":1540},[2324],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2326,"children":2327},{"style":1142},[2328],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2330,"children":2331},{"style":1915},[2332],{"type":44,"value":1137},{"type":39,"tag":1135,"props":2334,"children":2335},{"style":1142},[2336],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2338,"children":2339},{"style":1440},[2340],{"type":44,"value":1947},{"type":39,"tag":1135,"props":2342,"children":2343},{"style":1142},[2344],{"type":44,"value":1952},{"type":39,"tag":1135,"props":2346,"children":2348},{"class":1137,"line":2347},24,[2349,2354,2358,2362,2366,2370,2375,2380,2385,2390,2395],{"type":39,"tag":1135,"props":2350,"children":2351},{"style":1341},[2352],{"type":44,"value":2353},"        if",{"type":39,"tag":1135,"props":2355,"children":2356},{"style":1540},[2357],{"type":44,"value":2191},{"type":39,"tag":1135,"props":2359,"children":2360},{"style":1148},[2361],{"type":44,"value":1137},{"type":39,"tag":1135,"props":2363,"children":2364},{"style":1142},[2365],{"type":44,"value":499},{"type":39,"tag":1135,"props":2367,"children":2368},{"style":1148},[2369],{"type":44,"value":2227},{"type":39,"tag":1135,"props":2371,"children":2372},{"style":1142},[2373],{"type":44,"value":2374}," \u003C=",{"type":39,"tag":1135,"props":2376,"children":2377},{"style":1148},[2378],{"type":44,"value":2379}," MAX_LINE_CHARS",{"type":39,"tag":1135,"props":2381,"children":2382},{"style":1540},[2383],{"type":44,"value":2384},") ",{"type":39,"tag":1135,"props":2386,"children":2387},{"style":1341},[2388],{"type":44,"value":2389},"return",{"type":39,"tag":1135,"props":2391,"children":2392},{"style":1148},[2393],{"type":44,"value":2394}," line",{"type":39,"tag":1135,"props":2396,"children":2397},{"style":1142},[2398],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2400,"children":2402},{"class":1137,"line":2401},25,[2403,2408],{"type":39,"tag":1135,"props":2404,"children":2405},{"style":1148},[2406],{"type":44,"value":2407},"        longLines",{"type":39,"tag":1135,"props":2409,"children":2410},{"style":1142},[2411],{"type":44,"value":2412},"++;\n",{"type":39,"tag":1135,"props":2414,"children":2415},{"class":1137,"line":27},[2416,2421,2425,2429,2433,2437,2442,2446,2450,2454,2459,2464,2469,2473,2477,2481,2486,2491,2495,2499,2504,2508],{"type":39,"tag":1135,"props":2417,"children":2418},{"style":1341},[2419],{"type":44,"value":2420},"        return",{"type":39,"tag":1135,"props":2422,"children":2423},{"style":1148},[2424],{"type":44,"value":2394},{"type":39,"tag":1135,"props":2426,"children":2427},{"style":1142},[2428],{"type":44,"value":499},{"type":39,"tag":1135,"props":2430,"children":2431},{"style":1179},[2432],{"type":44,"value":2291},{"type":39,"tag":1135,"props":2434,"children":2435},{"style":1540},[2436],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2438,"children":2439},{"style":1456},[2440],{"type":44,"value":2441},"0",{"type":39,"tag":1135,"props":2443,"children":2444},{"style":1142},[2445],{"type":44,"value":1923},{"type":39,"tag":1135,"props":2447,"children":2448},{"style":1148},[2449],{"type":44,"value":2379},{"type":39,"tag":1135,"props":2451,"children":2452},{"style":1540},[2453],{"type":44,"value":2384},{"type":39,"tag":1135,"props":2455,"children":2456},{"style":1142},[2457],{"type":44,"value":2458},"+",{"type":39,"tag":1135,"props":2460,"children":2461},{"style":1142},[2462],{"type":44,"value":2463}," `",{"type":39,"tag":1135,"props":2465,"children":2466},{"style":1164},[2467],{"type":44,"value":2468},"… [line truncated, ",{"type":39,"tag":1135,"props":2470,"children":2471},{"style":1142},[2472],{"type":44,"value":1846},{"type":39,"tag":1135,"props":2474,"children":2475},{"style":1148},[2476],{"type":44,"value":1137},{"type":39,"tag":1135,"props":2478,"children":2479},{"style":1142},[2480],{"type":44,"value":499},{"type":39,"tag":1135,"props":2482,"children":2483},{"style":1148},[2484],{"type":44,"value":2485},"length ",{"type":39,"tag":1135,"props":2487,"children":2488},{"style":1142},[2489],{"type":44,"value":2490},"-",{"type":39,"tag":1135,"props":2492,"children":2493},{"style":1148},[2494],{"type":44,"value":2379},{"type":39,"tag":1135,"props":2496,"children":2497},{"style":1142},[2498],{"type":44,"value":1856},{"type":39,"tag":1135,"props":2500,"children":2501},{"style":1164},[2502],{"type":44,"value":2503}," chars dropped]",{"type":39,"tag":1135,"props":2505,"children":2506},{"style":1142},[2507],{"type":44,"value":1836},{"type":39,"tag":1135,"props":2509,"children":2510},{"style":1142},[2511],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2513,"children":2515},{"class":1137,"line":2514},27,[2516,2521,2525],{"type":39,"tag":1135,"props":2517,"children":2518},{"style":1142},[2519],{"type":44,"value":2520},"      }",{"type":39,"tag":1135,"props":2522,"children":2523},{"style":1540},[2524],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2526,"children":2527},{"style":1142},[2528],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2530,"children":2532},{"class":1137,"line":2531},28,[2533,2537,2542,2546,2550,2554,2558,2562,2566],{"type":39,"tag":1135,"props":2534,"children":2535},{"style":1440},[2536],{"type":44,"value":1974},{"type":39,"tag":1135,"props":2538,"children":2539},{"style":1148},[2540],{"type":44,"value":2541}," tailTruncated",{"type":39,"tag":1135,"props":2543,"children":2544},{"style":1142},[2545],{"type":44,"value":1984},{"type":39,"tag":1135,"props":2547,"children":2548},{"style":1148},[2549],{"type":44,"value":2154},{"type":39,"tag":1135,"props":2551,"children":2552},{"style":1142},[2553],{"type":44,"value":1206},{"type":39,"tag":1135,"props":2555,"children":2556},{"style":1148},[2557],{"type":44,"value":2045},{"type":39,"tag":1135,"props":2559,"children":2560},{"style":1142},[2561],{"type":44,"value":499},{"type":39,"tag":1135,"props":2563,"children":2564},{"style":1148},[2565],{"type":44,"value":2227},{"type":39,"tag":1135,"props":2567,"children":2568},{"style":1142},[2569],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2571,"children":2573},{"class":1137,"line":2572},29,[2574,2578,2583,2587,2591,2596,2600,2605,2609],{"type":39,"tag":1135,"props":2575,"children":2576},{"style":1440},[2577],{"type":44,"value":1974},{"type":39,"tag":1135,"props":2579,"children":2580},{"style":1148},[2581],{"type":44,"value":2582}," truncated",{"type":39,"tag":1135,"props":2584,"children":2585},{"style":1142},[2586],{"type":44,"value":1984},{"type":39,"tag":1135,"props":2588,"children":2589},{"style":1148},[2590],{"type":44,"value":2541},{"type":39,"tag":1135,"props":2592,"children":2593},{"style":1142},[2594],{"type":44,"value":2595}," ||",{"type":39,"tag":1135,"props":2597,"children":2598},{"style":1148},[2599],{"type":44,"value":2249},{"type":39,"tag":1135,"props":2601,"children":2602},{"style":1142},[2603],{"type":44,"value":2604}," >",{"type":39,"tag":1135,"props":2606,"children":2607},{"style":1456},[2608],{"type":44,"value":2137},{"type":39,"tag":1135,"props":2610,"children":2611},{"style":1142},[2612],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2614,"children":2616},{"class":1137,"line":2615},30,[2617,2621,2626,2630,2635,2640,2644,2649,2653,2658,2662,2667,2671,2675,2679,2683,2687,2692,2696,2701,2705,2710,2714,2718,2722,2726,2730,2735],{"type":39,"tag":1135,"props":2618,"children":2619},{"style":1440},[2620],{"type":44,"value":1974},{"type":39,"tag":1135,"props":2622,"children":2623},{"style":1148},[2624],{"type":44,"value":2625}," hintParts",{"type":39,"tag":1135,"props":2627,"children":2628},{"style":1142},[2629],{"type":44,"value":1548},{"type":39,"tag":1135,"props":2631,"children":2632},{"style":1209},[2633],{"type":44,"value":2634}," string",{"type":39,"tag":1135,"props":2636,"children":2637},{"style":1540},[2638],{"type":44,"value":2639},"[] ",{"type":39,"tag":1135,"props":2641,"children":2642},{"style":1142},[2643],{"type":44,"value":1453},{"type":39,"tag":1135,"props":2645,"children":2646},{"style":1540},[2647],{"type":44,"value":2648}," [",{"type":39,"tag":1135,"props":2650,"children":2651},{"style":1142},[2652],{"type":44,"value":1836},{"type":39,"tag":1135,"props":2654,"children":2655},{"style":1164},[2656],{"type":44,"value":2657},"Showing lines ",{"type":39,"tag":1135,"props":2659,"children":2660},{"style":1142},[2661],{"type":44,"value":1846},{"type":39,"tag":1135,"props":2663,"children":2664},{"style":1148},[2665],{"type":44,"value":2666},"start ",{"type":39,"tag":1135,"props":2668,"children":2669},{"style":1142},[2670],{"type":44,"value":2458},{"type":39,"tag":1135,"props":2672,"children":2673},{"style":1456},[2674],{"type":44,"value":2127},{"type":39,"tag":1135,"props":2676,"children":2677},{"style":1142},[2678],{"type":44,"value":1856},{"type":39,"tag":1135,"props":2680,"children":2681},{"style":1164},[2682],{"type":44,"value":2490},{"type":39,"tag":1135,"props":2684,"children":2685},{"style":1142},[2686],{"type":44,"value":1846},{"type":39,"tag":1135,"props":2688,"children":2689},{"style":1148},[2690],{"type":44,"value":2691},"end",{"type":39,"tag":1135,"props":2693,"children":2694},{"style":1142},[2695],{"type":44,"value":1856},{"type":39,"tag":1135,"props":2697,"children":2698},{"style":1164},[2699],{"type":44,"value":2700}," of ",{"type":39,"tag":1135,"props":2702,"children":2703},{"style":1142},[2704],{"type":44,"value":1846},{"type":39,"tag":1135,"props":2706,"children":2707},{"style":1148},[2708],{"type":44,"value":2709},"lines",{"type":39,"tag":1135,"props":2711,"children":2712},{"style":1142},[2713],{"type":44,"value":499},{"type":39,"tag":1135,"props":2715,"children":2716},{"style":1148},[2717],{"type":44,"value":2227},{"type":39,"tag":1135,"props":2719,"children":2720},{"style":1142},[2721],{"type":44,"value":1856},{"type":39,"tag":1135,"props":2723,"children":2724},{"style":1164},[2725],{"type":44,"value":499},{"type":39,"tag":1135,"props":2727,"children":2728},{"style":1142},[2729],{"type":44,"value":1836},{"type":39,"tag":1135,"props":2731,"children":2732},{"style":1540},[2733],{"type":44,"value":2734},"]",{"type":39,"tag":1135,"props":2736,"children":2737},{"style":1142},[2738],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2740,"children":2742},{"class":1137,"line":2741},31,[2743,2748,2752,2757,2761,2766,2770,2775,2779,2783,2788,2792,2797,2801,2805,2809,2814,2818,2822],{"type":39,"tag":1135,"props":2744,"children":2745},{"style":1341},[2746],{"type":44,"value":2747},"      if",{"type":39,"tag":1135,"props":2749,"children":2750},{"style":1540},[2751],{"type":44,"value":2191},{"type":39,"tag":1135,"props":2753,"children":2754},{"style":1148},[2755],{"type":44,"value":2756},"tailTruncated",{"type":39,"tag":1135,"props":2758,"children":2759},{"style":1540},[2760],{"type":44,"value":2384},{"type":39,"tag":1135,"props":2762,"children":2763},{"style":1148},[2764],{"type":44,"value":2765},"hintParts",{"type":39,"tag":1135,"props":2767,"children":2768},{"style":1142},[2769],{"type":44,"value":499},{"type":39,"tag":1135,"props":2771,"children":2772},{"style":1179},[2773],{"type":44,"value":2774},"push",{"type":39,"tag":1135,"props":2776,"children":2777},{"style":1540},[2778],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2780,"children":2781},{"style":1142},[2782],{"type":44,"value":1836},{"type":39,"tag":1135,"props":2784,"children":2785},{"style":1164},[2786],{"type":44,"value":2787},"Use offset=",{"type":39,"tag":1135,"props":2789,"children":2790},{"style":1142},[2791],{"type":44,"value":1846},{"type":39,"tag":1135,"props":2793,"children":2794},{"style":1148},[2795],{"type":44,"value":2796},"end ",{"type":39,"tag":1135,"props":2798,"children":2799},{"style":1142},[2800],{"type":44,"value":2458},{"type":39,"tag":1135,"props":2802,"children":2803},{"style":1456},[2804],{"type":44,"value":2127},{"type":39,"tag":1135,"props":2806,"children":2807},{"style":1142},[2808],{"type":44,"value":1856},{"type":39,"tag":1135,"props":2810,"children":2811},{"style":1164},[2812],{"type":44,"value":2813}," to continue.",{"type":39,"tag":1135,"props":2815,"children":2816},{"style":1142},[2817],{"type":44,"value":1836},{"type":39,"tag":1135,"props":2819,"children":2820},{"style":1540},[2821],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2823,"children":2824},{"style":1142},[2825],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2827,"children":2829},{"class":1137,"line":2828},32,[2830,2834,2838,2843,2847,2851,2855,2859,2863,2867,2871,2876,2880,2884,2889,2893,2898,2902,2907,2911,2915],{"type":39,"tag":1135,"props":2831,"children":2832},{"style":1341},[2833],{"type":44,"value":2747},{"type":39,"tag":1135,"props":2835,"children":2836},{"style":1540},[2837],{"type":44,"value":2191},{"type":39,"tag":1135,"props":2839,"children":2840},{"style":1148},[2841],{"type":44,"value":2842},"longLines",{"type":39,"tag":1135,"props":2844,"children":2845},{"style":1142},[2846],{"type":44,"value":2604},{"type":39,"tag":1135,"props":2848,"children":2849},{"style":1456},[2850],{"type":44,"value":2137},{"type":39,"tag":1135,"props":2852,"children":2853},{"style":1540},[2854],{"type":44,"value":2384},{"type":39,"tag":1135,"props":2856,"children":2857},{"style":1148},[2858],{"type":44,"value":2765},{"type":39,"tag":1135,"props":2860,"children":2861},{"style":1142},[2862],{"type":44,"value":499},{"type":39,"tag":1135,"props":2864,"children":2865},{"style":1179},[2866],{"type":44,"value":2774},{"type":39,"tag":1135,"props":2868,"children":2869},{"style":1540},[2870],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2872,"children":2873},{"style":1142},[2874],{"type":44,"value":2875},"`${",{"type":39,"tag":1135,"props":2877,"children":2878},{"style":1148},[2879],{"type":44,"value":2842},{"type":39,"tag":1135,"props":2881,"children":2882},{"style":1142},[2883],{"type":44,"value":1856},{"type":39,"tag":1135,"props":2885,"children":2886},{"style":1164},[2887],{"type":44,"value":2888}," line(s) exceeded ",{"type":39,"tag":1135,"props":2890,"children":2891},{"style":1142},[2892],{"type":44,"value":1846},{"type":39,"tag":1135,"props":2894,"children":2895},{"style":1148},[2896],{"type":44,"value":2897},"MAX_LINE_CHARS",{"type":39,"tag":1135,"props":2899,"children":2900},{"style":1142},[2901],{"type":44,"value":1856},{"type":39,"tag":1135,"props":2903,"children":2904},{"style":1164},[2905],{"type":44,"value":2906}," chars and were per-line truncated; use grep to fetch content from those lines.",{"type":39,"tag":1135,"props":2908,"children":2909},{"style":1142},[2910],{"type":44,"value":1836},{"type":39,"tag":1135,"props":2912,"children":2913},{"style":1540},[2914],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2916,"children":2917},{"style":1142},[2918],{"type":44,"value":1383},{"type":39,"tag":1135,"props":2920,"children":2922},{"class":1137,"line":2921},33,[2923,2928],{"type":39,"tag":1135,"props":2924,"children":2925},{"style":1341},[2926],{"type":44,"value":2927},"      return",{"type":39,"tag":1135,"props":2929,"children":2930},{"style":1142},[2931],{"type":44,"value":1952},{"type":39,"tag":1135,"props":2933,"children":2935},{"class":1137,"line":2934},34,[2936,2941,2945,2949,2953,2958,2962,2966,2970,2974,2978],{"type":39,"tag":1135,"props":2937,"children":2938},{"style":1540},[2939],{"type":44,"value":2940},"        content",{"type":39,"tag":1135,"props":2942,"children":2943},{"style":1142},[2944],{"type":44,"value":1548},{"type":39,"tag":1135,"props":2946,"children":2947},{"style":1148},[2948],{"type":44,"value":2274},{"type":39,"tag":1135,"props":2950,"children":2951},{"style":1142},[2952],{"type":44,"value":499},{"type":39,"tag":1135,"props":2954,"children":2955},{"style":1179},[2956],{"type":44,"value":2957},"join",{"type":39,"tag":1135,"props":2959,"children":2960},{"style":1540},[2961],{"type":44,"value":1528},{"type":39,"tag":1135,"props":2963,"children":2964},{"style":1142},[2965],{"type":44,"value":1378},{"type":39,"tag":1135,"props":2967,"children":2968},{"style":1148},[2969],{"type":44,"value":2075},{"type":39,"tag":1135,"props":2971,"children":2972},{"style":1142},[2973],{"type":44,"value":1378},{"type":39,"tag":1135,"props":2975,"children":2976},{"style":1540},[2977],{"type":44,"value":1698},{"type":39,"tag":1135,"props":2979,"children":2980},{"style":1142},[2981],{"type":44,"value":1566},{"type":39,"tag":1135,"props":2983,"children":2985},{"class":1137,"line":2984},35,[2986,2991,2995,2999,3003,3007],{"type":39,"tag":1135,"props":2987,"children":2988},{"style":1540},[2989],{"type":44,"value":2990},"        totalLines",{"type":39,"tag":1135,"props":2992,"children":2993},{"style":1142},[2994],{"type":44,"value":1548},{"type":39,"tag":1135,"props":2996,"children":2997},{"style":1148},[2998],{"type":44,"value":2045},{"type":39,"tag":1135,"props":3000,"children":3001},{"style":1142},[3002],{"type":44,"value":499},{"type":39,"tag":1135,"props":3004,"children":3005},{"style":1148},[3006],{"type":44,"value":2227},{"type":39,"tag":1135,"props":3008,"children":3009},{"style":1142},[3010],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3012,"children":3014},{"class":1137,"line":3013},36,[3015,3020,3024,3029,3034],{"type":39,"tag":1135,"props":3016,"children":3017},{"style":1142},[3018],{"type":44,"value":3019},"        ...",{"type":39,"tag":1135,"props":3021,"children":3022},{"style":1540},[3023],{"type":44,"value":1528},{"type":39,"tag":1135,"props":3025,"children":3026},{"style":1148},[3027],{"type":44,"value":3028},"truncated",{"type":39,"tag":1135,"props":3030,"children":3031},{"style":1142},[3032],{"type":44,"value":3033}," &&",{"type":39,"tag":1135,"props":3035,"children":3036},{"style":1142},[3037],{"type":44,"value":1952},{"type":39,"tag":1135,"props":3039,"children":3041},{"class":1137,"line":3040},37,[3042,3047,3051,3057],{"type":39,"tag":1135,"props":3043,"children":3044},{"style":1540},[3045],{"type":44,"value":3046},"          truncated",{"type":39,"tag":1135,"props":3048,"children":3049},{"style":1142},[3050],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3052,"children":3054},{"style":3053},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[3055],{"type":44,"value":3056}," true",{"type":39,"tag":1135,"props":3058,"children":3059},{"style":1142},[3060],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3062,"children":3064},{"class":1137,"line":3063},38,[3065,3070,3074,3078,3082,3086,3091,3095,3099,3103,3107,3111,3115],{"type":39,"tag":1135,"props":3066,"children":3067},{"style":1142},[3068],{"type":44,"value":3069},"          ...",{"type":39,"tag":1135,"props":3071,"children":3072},{"style":1540},[3073],{"type":44,"value":1528},{"type":39,"tag":1135,"props":3075,"children":3076},{"style":1148},[3077],{"type":44,"value":2756},{"type":39,"tag":1135,"props":3079,"children":3080},{"style":1142},[3081],{"type":44,"value":3033},{"type":39,"tag":1135,"props":3083,"children":3084},{"style":1142},[3085],{"type":44,"value":1349},{"type":39,"tag":1135,"props":3087,"children":3088},{"style":1540},[3089],{"type":44,"value":3090}," nextOffset",{"type":39,"tag":1135,"props":3092,"children":3093},{"style":1142},[3094],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3096,"children":3097},{"style":1148},[3098],{"type":44,"value":2154},{"type":39,"tag":1135,"props":3100,"children":3101},{"style":1142},[3102],{"type":44,"value":2186},{"type":39,"tag":1135,"props":3104,"children":3105},{"style":1456},[3106],{"type":44,"value":2127},{"type":39,"tag":1135,"props":3108,"children":3109},{"style":1142},[3110],{"type":44,"value":1359},{"type":39,"tag":1135,"props":3112,"children":3113},{"style":1540},[3114],{"type":44,"value":1698},{"type":39,"tag":1135,"props":3116,"children":3117},{"style":1142},[3118],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3120,"children":3122},{"class":1137,"line":3121},39,[3123,3128,3132,3136,3140,3144,3148,3152,3156,3160],{"type":39,"tag":1135,"props":3124,"children":3125},{"style":1540},[3126],{"type":44,"value":3127},"          hint",{"type":39,"tag":1135,"props":3129,"children":3130},{"style":1142},[3131],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3133,"children":3134},{"style":1148},[3135],{"type":44,"value":2625},{"type":39,"tag":1135,"props":3137,"children":3138},{"style":1142},[3139],{"type":44,"value":499},{"type":39,"tag":1135,"props":3141,"children":3142},{"style":1179},[3143],{"type":44,"value":2957},{"type":39,"tag":1135,"props":3145,"children":3146},{"style":1540},[3147],{"type":44,"value":1528},{"type":39,"tag":1135,"props":3149,"children":3150},{"style":1142},[3151],{"type":44,"value":1378},{"type":39,"tag":1135,"props":3153,"children":3154},{"style":1142},[3155],{"type":44,"value":1369},{"type":39,"tag":1135,"props":3157,"children":3158},{"style":1540},[3159],{"type":44,"value":1698},{"type":39,"tag":1135,"props":3161,"children":3162},{"style":1142},[3163],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3165,"children":3167},{"class":1137,"line":3166},40,[3168,3173,3177],{"type":39,"tag":1135,"props":3169,"children":3170},{"style":1142},[3171],{"type":44,"value":3172},"        }",{"type":39,"tag":1135,"props":3174,"children":3175},{"style":1540},[3176],{"type":44,"value":1698},{"type":39,"tag":1135,"props":3178,"children":3179},{"style":1142},[3180],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3182,"children":3184},{"class":1137,"line":3183},41,[3185],{"type":39,"tag":1135,"props":3186,"children":3187},{"style":1142},[3188],{"type":44,"value":3189},"      };\n",{"type":39,"tag":1135,"props":3191,"children":3193},{"class":1137,"line":3192},42,[3194,3199,3204,3208,3213,3217,3222,3226],{"type":39,"tag":1135,"props":3195,"children":3196},{"style":1142},[3197],{"type":44,"value":3198},"    }",{"type":39,"tag":1135,"props":3200,"children":3201},{"style":1341},[3202],{"type":44,"value":3203}," catch",{"type":39,"tag":1135,"props":3205,"children":3206},{"style":1142},[3207],{"type":44,"value":2191},{"type":39,"tag":1135,"props":3209,"children":3210},{"style":1915},[3211],{"type":44,"value":3212},"err",{"type":39,"tag":1135,"props":3214,"children":3215},{"style":1142},[3216],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3218,"children":3219},{"style":1209},[3220],{"type":44,"value":3221}," any",{"type":39,"tag":1135,"props":3223,"children":3224},{"style":1142},[3225],{"type":44,"value":1698},{"type":39,"tag":1135,"props":3227,"children":3228},{"style":1142},[3229],{"type":44,"value":1952},{"type":39,"tag":1135,"props":3231,"children":3233},{"class":1137,"line":3232},43,[3234,3238,3242,3246,3250,3254,3259,3263,3268,3272,3276,3280,3284,3289,3293,3297,3302,3306,3310,3315],{"type":39,"tag":1135,"props":3235,"children":3236},{"style":1341},[3237],{"type":44,"value":2747},{"type":39,"tag":1135,"props":3239,"children":3240},{"style":1540},[3241],{"type":44,"value":2191},{"type":39,"tag":1135,"props":3243,"children":3244},{"style":1148},[3245],{"type":44,"value":3212},{"type":39,"tag":1135,"props":3247,"children":3248},{"style":1142},[3249],{"type":44,"value":499},{"type":39,"tag":1135,"props":3251,"children":3252},{"style":1148},[3253],{"type":44,"value":53},{"type":39,"tag":1135,"props":3255,"children":3256},{"style":1142},[3257],{"type":44,"value":3258}," ===",{"type":39,"tag":1135,"props":3260,"children":3261},{"style":1142},[3262],{"type":44,"value":1369},{"type":39,"tag":1135,"props":3264,"children":3265},{"style":1164},[3266],{"type":44,"value":3267},"ENOENT",{"type":39,"tag":1135,"props":3269,"children":3270},{"style":1142},[3271],{"type":44,"value":1378},{"type":39,"tag":1135,"props":3273,"children":3274},{"style":1540},[3275],{"type":44,"value":2384},{"type":39,"tag":1135,"props":3277,"children":3278},{"style":1341},[3279],{"type":44,"value":2389},{"type":39,"tag":1135,"props":3281,"children":3282},{"style":1142},[3283],{"type":44,"value":1349},{"type":39,"tag":1135,"props":3285,"children":3286},{"style":1540},[3287],{"type":44,"value":3288}," error",{"type":39,"tag":1135,"props":3290,"children":3291},{"style":1142},[3292],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3294,"children":3295},{"style":1142},[3296],{"type":44,"value":2463},{"type":39,"tag":1135,"props":3298,"children":3299},{"style":1164},[3300],{"type":44,"value":3301},"File not found: ",{"type":39,"tag":1135,"props":3303,"children":3304},{"style":1142},[3305],{"type":44,"value":1846},{"type":39,"tag":1135,"props":3307,"children":3308},{"style":1148},[3309],{"type":44,"value":2012},{"type":39,"tag":1135,"props":3311,"children":3312},{"style":1142},[3313],{"type":44,"value":3314},"}`",{"type":39,"tag":1135,"props":3316,"children":3317},{"style":1142},[3318],{"type":44,"value":3319}," };\n",{"type":39,"tag":1135,"props":3321,"children":3323},{"class":1137,"line":3322},44,[3324,3328,3332,3336,3340,3344,3348,3352,3357,3361,3365,3369,3373,3377,3381,3385,3390,3394,3398,3402],{"type":39,"tag":1135,"props":3325,"children":3326},{"style":1341},[3327],{"type":44,"value":2747},{"type":39,"tag":1135,"props":3329,"children":3330},{"style":1540},[3331],{"type":44,"value":2191},{"type":39,"tag":1135,"props":3333,"children":3334},{"style":1148},[3335],{"type":44,"value":3212},{"type":39,"tag":1135,"props":3337,"children":3338},{"style":1142},[3339],{"type":44,"value":499},{"type":39,"tag":1135,"props":3341,"children":3342},{"style":1148},[3343],{"type":44,"value":53},{"type":39,"tag":1135,"props":3345,"children":3346},{"style":1142},[3347],{"type":44,"value":3258},{"type":39,"tag":1135,"props":3349,"children":3350},{"style":1142},[3351],{"type":44,"value":1369},{"type":39,"tag":1135,"props":3353,"children":3354},{"style":1164},[3355],{"type":44,"value":3356},"EACCES",{"type":39,"tag":1135,"props":3358,"children":3359},{"style":1142},[3360],{"type":44,"value":1378},{"type":39,"tag":1135,"props":3362,"children":3363},{"style":1540},[3364],{"type":44,"value":2384},{"type":39,"tag":1135,"props":3366,"children":3367},{"style":1341},[3368],{"type":44,"value":2389},{"type":39,"tag":1135,"props":3370,"children":3371},{"style":1142},[3372],{"type":44,"value":1349},{"type":39,"tag":1135,"props":3374,"children":3375},{"style":1540},[3376],{"type":44,"value":3288},{"type":39,"tag":1135,"props":3378,"children":3379},{"style":1142},[3380],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3382,"children":3383},{"style":1142},[3384],{"type":44,"value":2463},{"type":39,"tag":1135,"props":3386,"children":3387},{"style":1164},[3388],{"type":44,"value":3389},"Permission denied: ",{"type":39,"tag":1135,"props":3391,"children":3392},{"style":1142},[3393],{"type":44,"value":1846},{"type":39,"tag":1135,"props":3395,"children":3396},{"style":1148},[3397],{"type":44,"value":2012},{"type":39,"tag":1135,"props":3399,"children":3400},{"style":1142},[3401],{"type":44,"value":3314},{"type":39,"tag":1135,"props":3403,"children":3404},{"style":1142},[3405],{"type":44,"value":3319},{"type":39,"tag":1135,"props":3407,"children":3409},{"class":1137,"line":3408},45,[3410,3414,3418,3422,3426,3431,3435,3440],{"type":39,"tag":1135,"props":3411,"children":3412},{"style":1341},[3413],{"type":44,"value":2927},{"type":39,"tag":1135,"props":3415,"children":3416},{"style":1142},[3417],{"type":44,"value":1349},{"type":39,"tag":1135,"props":3419,"children":3420},{"style":1540},[3421],{"type":44,"value":3288},{"type":39,"tag":1135,"props":3423,"children":3424},{"style":1142},[3425],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3427,"children":3428},{"style":1148},[3429],{"type":44,"value":3430}," err",{"type":39,"tag":1135,"props":3432,"children":3433},{"style":1142},[3434],{"type":44,"value":499},{"type":39,"tag":1135,"props":3436,"children":3437},{"style":1148},[3438],{"type":44,"value":3439},"message",{"type":39,"tag":1135,"props":3441,"children":3442},{"style":1142},[3443],{"type":44,"value":3319},{"type":39,"tag":1135,"props":3445,"children":3447},{"class":1137,"line":3446},46,[3448],{"type":39,"tag":1135,"props":3449,"children":3450},{"style":1142},[3451],{"type":44,"value":3452},"    }\n",{"type":39,"tag":1135,"props":3454,"children":3456},{"class":1137,"line":3455},47,[3457],{"type":39,"tag":1135,"props":3458,"children":3459},{"style":1142},[3460],{"type":44,"value":3461},"  },\n",{"type":39,"tag":1135,"props":3463,"children":3465},{"class":1137,"line":3464},48,[3466,3470,3474],{"type":39,"tag":1135,"props":3467,"children":3468},{"style":1142},[3469],{"type":44,"value":1856},{"type":39,"tag":1135,"props":3471,"children":3472},{"style":1148},[3473],{"type":44,"value":1698},{"type":39,"tag":1135,"props":3475,"children":3476},{"style":1142},[3477],{"type":44,"value":1383},{"type":39,"tag":47,"props":3479,"children":3480},{},[3481,3483,3487],{"type":44,"value":3482},"For specs of all other tools, see ",{"type":39,"tag":90,"props":3484,"children":3485},{"href":177},[3486],{"type":44,"value":177},{"type":44,"value":499},{"type":39,"tag":112,"props":3489,"children":3490},{},[],{"type":39,"tag":62,"props":3492,"children":3494},{"id":3493},"core-files",[3495],{"type":44,"value":3496},"Core Files",{"type":39,"tag":47,"props":3498,"children":3499},{},[3500],{"type":44,"value":3501},"These files are always generated. The agent adapts them based on checklist selections.",{"type":39,"tag":243,"props":3503,"children":3505},{"id":3504},"packagejson",[3506],{"type":44,"value":1033},{"type":39,"tag":47,"props":3508,"children":3509},{},[3510,3512,3517],{"type":44,"value":3511},"Initialize the project and install dependencies. Replace ",{"type":39,"tag":53,"props":3513,"children":3515},{"className":3514},[],[3516],{"type":44,"value":1101},{"type":44,"value":3518}," with the name the user chose:",{"type":39,"tag":1109,"props":3520,"children":3522},{"className":1127,"code":3521,"language":1129,"meta":1117,"style":1117},"bun init -y\n# Then edit package.json:\n",[3523],{"type":39,"tag":53,"props":3524,"children":3525},{"__ignoreMap":1117},[3526,3544],{"type":39,"tag":1135,"props":3527,"children":3528},{"class":1137,"line":1138},[3529,3534,3539],{"type":39,"tag":1135,"props":3530,"children":3531},{"style":1209},[3532],{"type":44,"value":3533},"bun",{"type":39,"tag":1135,"props":3535,"children":3536},{"style":1164},[3537],{"type":44,"value":3538}," init",{"type":39,"tag":1135,"props":3540,"children":3541},{"style":1164},[3542],{"type":44,"value":3543}," -y\n",{"type":39,"tag":1135,"props":3545,"children":3546},{"class":1137,"line":1175},[3547],{"type":39,"tag":1135,"props":3548,"children":3550},{"style":3549},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[3551],{"type":44,"value":3552},"# Then edit package.json:\n",{"type":39,"tag":1109,"props":3554,"children":3558},{"className":3555,"code":3556,"language":3557,"meta":1117,"style":1117},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"name\": \"\u003Cagent-name>\",\n  \"type\": \"module\",\n  \"bin\": {\n    \"\u003Cagent-name>\": \"src\u002Fcli.ts\"\n  },\n  \"scripts\": {\n    \"start\": \"bun run src\u002Fcli.ts\",\n    \"dev\": \"bun --watch src\u002Fcli.ts\",\n    \"build\": \"tsc --noEmit\",\n    \"test\": \"bun test\"\n  },\n  \"dependencies\": {\n    \"@openrouter\u002Fagent\": \"latest\",\n    \"zod\": \"latest\"\n  },\n  \"devDependencies\": {\n    \"@types\u002Fbun\": \"latest\",\n    \"typescript\": \"latest\"\n  }\n}\n","json",[3559],{"type":39,"tag":53,"props":3560,"children":3561},{"__ignoreMap":1117},[3562,3569,3605,3642,3665,3698,3705,3729,3765,3802,3839,3872,3879,3903,3939,3970,3977,4001,4037,4068,4076],{"type":39,"tag":1135,"props":3563,"children":3564},{"class":1137,"line":1138},[3565],{"type":39,"tag":1135,"props":3566,"children":3567},{"style":1142},[3568],{"type":44,"value":1533},{"type":39,"tag":1135,"props":3570,"children":3571},{"class":1137,"line":1175},[3572,3577,3581,3585,3589,3593,3597,3601],{"type":39,"tag":1135,"props":3573,"children":3574},{"style":1142},[3575],{"type":44,"value":3576},"  \"",{"type":39,"tag":1135,"props":3578,"children":3579},{"style":1440},[3580],{"type":44,"value":1275},{"type":39,"tag":1135,"props":3582,"children":3583},{"style":1142},[3584],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3586,"children":3587},{"style":1142},[3588],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3590,"children":3591},{"style":1142},[3592],{"type":44,"value":1161},{"type":39,"tag":1135,"props":3594,"children":3595},{"style":1164},[3596],{"type":44,"value":1101},{"type":39,"tag":1135,"props":3598,"children":3599},{"style":1142},[3600],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3602,"children":3603},{"style":1142},[3604],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3606,"children":3607},{"class":1137,"line":1219},[3608,3612,3617,3621,3625,3629,3634,3638],{"type":39,"tag":1135,"props":3609,"children":3610},{"style":1142},[3611],{"type":44,"value":3576},{"type":39,"tag":1135,"props":3613,"children":3614},{"style":1440},[3615],{"type":44,"value":3616},"type",{"type":39,"tag":1135,"props":3618,"children":3619},{"style":1142},[3620],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3622,"children":3623},{"style":1142},[3624],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3626,"children":3627},{"style":1142},[3628],{"type":44,"value":1161},{"type":39,"tag":1135,"props":3630,"children":3631},{"style":1164},[3632],{"type":44,"value":3633},"module",{"type":39,"tag":1135,"props":3635,"children":3636},{"style":1142},[3637],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3639,"children":3640},{"style":1142},[3641],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3643,"children":3644},{"class":1137,"line":1436},[3645,3649,3653,3657,3661],{"type":39,"tag":1135,"props":3646,"children":3647},{"style":1142},[3648],{"type":44,"value":3576},{"type":39,"tag":1135,"props":3650,"children":3651},{"style":1440},[3652],{"type":44,"value":1283},{"type":39,"tag":1135,"props":3654,"children":3655},{"style":1142},[3656],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3658,"children":3659},{"style":1142},[3660],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3662,"children":3663},{"style":1142},[3664],{"type":44,"value":1952},{"type":39,"tag":1135,"props":3666,"children":3667},{"class":1137,"line":1466},[3668,3673,3677,3681,3685,3689,3694],{"type":39,"tag":1135,"props":3669,"children":3670},{"style":1142},[3671],{"type":44,"value":3672},"    \"",{"type":39,"tag":1135,"props":3674,"children":3675},{"style":1209},[3676],{"type":44,"value":1101},{"type":39,"tag":1135,"props":3678,"children":3679},{"style":1142},[3680],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3682,"children":3683},{"style":1142},[3684],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3686,"children":3687},{"style":1142},[3688],{"type":44,"value":1161},{"type":39,"tag":1135,"props":3690,"children":3691},{"style":1164},[3692],{"type":44,"value":3693},"src\u002Fcli.ts",{"type":39,"tag":1135,"props":3695,"children":3696},{"style":1142},[3697],{"type":44,"value":1172},{"type":39,"tag":1135,"props":3699,"children":3700},{"class":1137,"line":1491},[3701],{"type":39,"tag":1135,"props":3702,"children":3703},{"style":1142},[3704],{"type":44,"value":3461},{"type":39,"tag":1135,"props":3706,"children":3707},{"class":1137,"line":1499},[3708,3712,3717,3721,3725],{"type":39,"tag":1135,"props":3709,"children":3710},{"style":1142},[3711],{"type":44,"value":3576},{"type":39,"tag":1135,"props":3713,"children":3714},{"style":1440},[3715],{"type":44,"value":3716},"scripts",{"type":39,"tag":1135,"props":3718,"children":3719},{"style":1142},[3720],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3722,"children":3723},{"style":1142},[3724],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3726,"children":3727},{"style":1142},[3728],{"type":44,"value":1952},{"type":39,"tag":1135,"props":3730,"children":3731},{"class":1137,"line":1536},[3732,3736,3740,3744,3748,3752,3757,3761],{"type":39,"tag":1135,"props":3733,"children":3734},{"style":1142},[3735],{"type":44,"value":3672},{"type":39,"tag":1135,"props":3737,"children":3738},{"style":1209},[3739],{"type":44,"value":2181},{"type":39,"tag":1135,"props":3741,"children":3742},{"style":1142},[3743],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3745,"children":3746},{"style":1142},[3747],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3749,"children":3750},{"style":1142},[3751],{"type":44,"value":1161},{"type":39,"tag":1135,"props":3753,"children":3754},{"style":1164},[3755],{"type":44,"value":3756},"bun run src\u002Fcli.ts",{"type":39,"tag":1135,"props":3758,"children":3759},{"style":1142},[3760],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3762,"children":3763},{"style":1142},[3764],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3766,"children":3767},{"class":1137,"line":1569},[3768,3772,3777,3781,3785,3789,3794,3798],{"type":39,"tag":1135,"props":3769,"children":3770},{"style":1142},[3771],{"type":44,"value":3672},{"type":39,"tag":1135,"props":3773,"children":3774},{"style":1209},[3775],{"type":44,"value":3776},"dev",{"type":39,"tag":1135,"props":3778,"children":3779},{"style":1142},[3780],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3782,"children":3783},{"style":1142},[3784],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3786,"children":3787},{"style":1142},[3788],{"type":44,"value":1161},{"type":39,"tag":1135,"props":3790,"children":3791},{"style":1164},[3792],{"type":44,"value":3793},"bun --watch src\u002Fcli.ts",{"type":39,"tag":1135,"props":3795,"children":3796},{"style":1142},[3797],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3799,"children":3800},{"style":1142},[3801],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3803,"children":3804},{"class":1137,"line":1583},[3805,3809,3814,3818,3822,3826,3831,3835],{"type":39,"tag":1135,"props":3806,"children":3807},{"style":1142},[3808],{"type":44,"value":3672},{"type":39,"tag":1135,"props":3810,"children":3811},{"style":1209},[3812],{"type":44,"value":3813},"build",{"type":39,"tag":1135,"props":3815,"children":3816},{"style":1142},[3817],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3819,"children":3820},{"style":1142},[3821],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3823,"children":3824},{"style":1142},[3825],{"type":44,"value":1161},{"type":39,"tag":1135,"props":3827,"children":3828},{"style":1164},[3829],{"type":44,"value":3830},"tsc --noEmit",{"type":39,"tag":1135,"props":3832,"children":3833},{"style":1142},[3834],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3836,"children":3837},{"style":1142},[3838],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3840,"children":3841},{"class":1137,"line":1605},[3842,3846,3851,3855,3859,3863,3868],{"type":39,"tag":1135,"props":3843,"children":3844},{"style":1142},[3845],{"type":44,"value":3672},{"type":39,"tag":1135,"props":3847,"children":3848},{"style":1209},[3849],{"type":44,"value":3850},"test",{"type":39,"tag":1135,"props":3852,"children":3853},{"style":1142},[3854],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3856,"children":3857},{"style":1142},[3858],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3860,"children":3861},{"style":1142},[3862],{"type":44,"value":1161},{"type":39,"tag":1135,"props":3864,"children":3865},{"style":1164},[3866],{"type":44,"value":3867},"bun test",{"type":39,"tag":1135,"props":3869,"children":3870},{"style":1142},[3871],{"type":44,"value":1172},{"type":39,"tag":1135,"props":3873,"children":3874},{"class":1137,"line":1639},[3875],{"type":39,"tag":1135,"props":3876,"children":3877},{"style":1142},[3878],{"type":44,"value":3461},{"type":39,"tag":1135,"props":3880,"children":3881},{"class":1137,"line":1705},[3882,3886,3891,3895,3899],{"type":39,"tag":1135,"props":3883,"children":3884},{"style":1142},[3885],{"type":44,"value":3576},{"type":39,"tag":1135,"props":3887,"children":3888},{"style":1440},[3889],{"type":44,"value":3890},"dependencies",{"type":39,"tag":1135,"props":3892,"children":3893},{"style":1142},[3894],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3896,"children":3897},{"style":1142},[3898],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3900,"children":3901},{"style":1142},[3902],{"type":44,"value":1952},{"type":39,"tag":1135,"props":3904,"children":3905},{"class":1137,"line":1781},[3906,3910,3914,3918,3922,3926,3931,3935],{"type":39,"tag":1135,"props":3907,"children":3908},{"style":1142},[3909],{"type":44,"value":3672},{"type":39,"tag":1135,"props":3911,"children":3912},{"style":1209},[3913],{"type":44,"value":58},{"type":39,"tag":1135,"props":3915,"children":3916},{"style":1142},[3917],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3919,"children":3920},{"style":1142},[3921],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3923,"children":3924},{"style":1142},[3925],{"type":44,"value":1161},{"type":39,"tag":1135,"props":3927,"children":3928},{"style":1164},[3929],{"type":44,"value":3930},"latest",{"type":39,"tag":1135,"props":3932,"children":3933},{"style":1142},[3934],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3936,"children":3937},{"style":1142},[3938],{"type":44,"value":1566},{"type":39,"tag":1135,"props":3940,"children":3941},{"class":1137,"line":1875},[3942,3946,3950,3954,3958,3962,3966],{"type":39,"tag":1135,"props":3943,"children":3944},{"style":1142},[3945],{"type":44,"value":3672},{"type":39,"tag":1135,"props":3947,"children":3948},{"style":1209},[3949],{"type":44,"value":1416},{"type":39,"tag":1135,"props":3951,"children":3952},{"style":1142},[3953],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3955,"children":3956},{"style":1142},[3957],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3959,"children":3960},{"style":1142},[3961],{"type":44,"value":1161},{"type":39,"tag":1135,"props":3963,"children":3964},{"style":1164},[3965],{"type":44,"value":3930},{"type":39,"tag":1135,"props":3967,"children":3968},{"style":1142},[3969],{"type":44,"value":1172},{"type":39,"tag":1135,"props":3971,"children":3972},{"class":1137,"line":1892},[3973],{"type":39,"tag":1135,"props":3974,"children":3975},{"style":1142},[3976],{"type":44,"value":3461},{"type":39,"tag":1135,"props":3978,"children":3979},{"class":1137,"line":1955},[3980,3984,3989,3993,3997],{"type":39,"tag":1135,"props":3981,"children":3982},{"style":1142},[3983],{"type":44,"value":3576},{"type":39,"tag":1135,"props":3985,"children":3986},{"style":1440},[3987],{"type":44,"value":3988},"devDependencies",{"type":39,"tag":1135,"props":3990,"children":3991},{"style":1142},[3992],{"type":44,"value":1196},{"type":39,"tag":1135,"props":3994,"children":3995},{"style":1142},[3996],{"type":44,"value":1548},{"type":39,"tag":1135,"props":3998,"children":3999},{"style":1142},[4000],{"type":44,"value":1952},{"type":39,"tag":1135,"props":4002,"children":4003},{"class":1137,"line":1968},[4004,4008,4013,4017,4021,4025,4029,4033],{"type":39,"tag":1135,"props":4005,"children":4006},{"style":1142},[4007],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4009,"children":4010},{"style":1209},[4011],{"type":44,"value":4012},"@types\u002Fbun",{"type":39,"tag":1135,"props":4014,"children":4015},{"style":1142},[4016],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4018,"children":4019},{"style":1142},[4020],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4022,"children":4023},{"style":1142},[4024],{"type":44,"value":1161},{"type":39,"tag":1135,"props":4026,"children":4027},{"style":1164},[4028],{"type":44,"value":3930},{"type":39,"tag":1135,"props":4030,"children":4031},{"style":1142},[4032],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4034,"children":4035},{"style":1142},[4036],{"type":44,"value":1566},{"type":39,"tag":1135,"props":4038,"children":4039},{"class":1137,"line":2035},[4040,4044,4048,4052,4056,4060,4064],{"type":39,"tag":1135,"props":4041,"children":4042},{"style":1142},[4043],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4045,"children":4046},{"style":1209},[4047],{"type":44,"value":15},{"type":39,"tag":1135,"props":4049,"children":4050},{"style":1142},[4051],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4053,"children":4054},{"style":1142},[4055],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4057,"children":4058},{"style":1142},[4059],{"type":44,"value":1161},{"type":39,"tag":1135,"props":4061,"children":4062},{"style":1164},[4063],{"type":44,"value":3930},{"type":39,"tag":1135,"props":4065,"children":4066},{"style":1142},[4067],{"type":44,"value":1172},{"type":39,"tag":1135,"props":4069,"children":4070},{"class":1137,"line":2090},[4071],{"type":39,"tag":1135,"props":4072,"children":4073},{"style":1142},[4074],{"type":44,"value":4075},"  }\n",{"type":39,"tag":1135,"props":4077,"children":4078},{"class":1137,"line":2144},[4079],{"type":39,"tag":1135,"props":4080,"children":4081},{"style":1142},[4082],{"type":44,"value":4083},"}\n",{"type":39,"tag":47,"props":4085,"children":4086},{},[4087,4089,4094,4096,4101,4103,4108,4110,4116],{"type":44,"value":4088},"The ",{"type":39,"tag":53,"props":4090,"children":4092},{"className":4091},[],[4093],{"type":44,"value":1283},{"type":44,"value":4095}," entry is what makes the agent invokable by name after ",{"type":39,"tag":53,"props":4097,"children":4099},{"className":4098},[],[4100],{"type":44,"value":1051},{"type":44,"value":4102},". The target (",{"type":39,"tag":53,"props":4104,"children":4106},{"className":4105},[],[4107],{"type":44,"value":3693},{"type":44,"value":4109},") must have a ",{"type":39,"tag":53,"props":4111,"children":4113},{"className":4112},[],[4114],{"type":44,"value":4115},"#!\u002Fusr\u002Fbin\u002Fenv bun",{"type":44,"value":4117}," shebang on the first line.",{"type":39,"tag":243,"props":4119,"children":4121},{"id":4120},"tsconfigjson",[4122],{"type":44,"value":4123},"tsconfig.json",{"type":39,"tag":1109,"props":4125,"children":4127},{"className":3555,"code":4126,"language":3557,"meta":1117,"style":1117},"{\n  \"compilerOptions\": {\n    \"target\": \"ES2022\",\n    \"module\": \"ESNext\",\n    \"moduleResolution\": \"bundler\",\n    \"outDir\": \"dist\",\n    \"strict\": true,\n    \"esModuleInterop\": true,\n    \"skipLibCheck\": true,\n    \"types\": [\"bun-types\"]\n  },\n  \"include\": [\"src\", \"test\"]\n}\n",[4128],{"type":39,"tag":53,"props":4129,"children":4130},{"__ignoreMap":1117},[4131,4138,4162,4199,4235,4272,4309,4334,4358,4382,4424,4431,4488],{"type":39,"tag":1135,"props":4132,"children":4133},{"class":1137,"line":1138},[4134],{"type":39,"tag":1135,"props":4135,"children":4136},{"style":1142},[4137],{"type":44,"value":1533},{"type":39,"tag":1135,"props":4139,"children":4140},{"class":1137,"line":1175},[4141,4145,4150,4154,4158],{"type":39,"tag":1135,"props":4142,"children":4143},{"style":1142},[4144],{"type":44,"value":3576},{"type":39,"tag":1135,"props":4146,"children":4147},{"style":1440},[4148],{"type":44,"value":4149},"compilerOptions",{"type":39,"tag":1135,"props":4151,"children":4152},{"style":1142},[4153],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4155,"children":4156},{"style":1142},[4157],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4159,"children":4160},{"style":1142},[4161],{"type":44,"value":1952},{"type":39,"tag":1135,"props":4163,"children":4164},{"class":1137,"line":1219},[4165,4169,4174,4178,4182,4186,4191,4195],{"type":39,"tag":1135,"props":4166,"children":4167},{"style":1142},[4168],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4170,"children":4171},{"style":1209},[4172],{"type":44,"value":4173},"target",{"type":39,"tag":1135,"props":4175,"children":4176},{"style":1142},[4177],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4179,"children":4180},{"style":1142},[4181],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4183,"children":4184},{"style":1142},[4185],{"type":44,"value":1161},{"type":39,"tag":1135,"props":4187,"children":4188},{"style":1164},[4189],{"type":44,"value":4190},"ES2022",{"type":39,"tag":1135,"props":4192,"children":4193},{"style":1142},[4194],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4196,"children":4197},{"style":1142},[4198],{"type":44,"value":1566},{"type":39,"tag":1135,"props":4200,"children":4201},{"class":1137,"line":1436},[4202,4206,4210,4214,4218,4222,4227,4231],{"type":39,"tag":1135,"props":4203,"children":4204},{"style":1142},[4205],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4207,"children":4208},{"style":1209},[4209],{"type":44,"value":3633},{"type":39,"tag":1135,"props":4211,"children":4212},{"style":1142},[4213],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4215,"children":4216},{"style":1142},[4217],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4219,"children":4220},{"style":1142},[4221],{"type":44,"value":1161},{"type":39,"tag":1135,"props":4223,"children":4224},{"style":1164},[4225],{"type":44,"value":4226},"ESNext",{"type":39,"tag":1135,"props":4228,"children":4229},{"style":1142},[4230],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4232,"children":4233},{"style":1142},[4234],{"type":44,"value":1566},{"type":39,"tag":1135,"props":4236,"children":4237},{"class":1137,"line":1466},[4238,4242,4247,4251,4255,4259,4264,4268],{"type":39,"tag":1135,"props":4239,"children":4240},{"style":1142},[4241],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4243,"children":4244},{"style":1209},[4245],{"type":44,"value":4246},"moduleResolution",{"type":39,"tag":1135,"props":4248,"children":4249},{"style":1142},[4250],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4252,"children":4253},{"style":1142},[4254],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4256,"children":4257},{"style":1142},[4258],{"type":44,"value":1161},{"type":39,"tag":1135,"props":4260,"children":4261},{"style":1164},[4262],{"type":44,"value":4263},"bundler",{"type":39,"tag":1135,"props":4265,"children":4266},{"style":1142},[4267],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4269,"children":4270},{"style":1142},[4271],{"type":44,"value":1566},{"type":39,"tag":1135,"props":4273,"children":4274},{"class":1137,"line":1491},[4275,4279,4284,4288,4292,4296,4301,4305],{"type":39,"tag":1135,"props":4276,"children":4277},{"style":1142},[4278],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4280,"children":4281},{"style":1209},[4282],{"type":44,"value":4283},"outDir",{"type":39,"tag":1135,"props":4285,"children":4286},{"style":1142},[4287],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4289,"children":4290},{"style":1142},[4291],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4293,"children":4294},{"style":1142},[4295],{"type":44,"value":1161},{"type":39,"tag":1135,"props":4297,"children":4298},{"style":1164},[4299],{"type":44,"value":4300},"dist",{"type":39,"tag":1135,"props":4302,"children":4303},{"style":1142},[4304],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4306,"children":4307},{"style":1142},[4308],{"type":44,"value":1566},{"type":39,"tag":1135,"props":4310,"children":4311},{"class":1137,"line":1499},[4312,4316,4321,4325,4329],{"type":39,"tag":1135,"props":4313,"children":4314},{"style":1142},[4315],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4317,"children":4318},{"style":1209},[4319],{"type":44,"value":4320},"strict",{"type":39,"tag":1135,"props":4322,"children":4323},{"style":1142},[4324],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4326,"children":4327},{"style":1142},[4328],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4330,"children":4331},{"style":1142},[4332],{"type":44,"value":4333}," true,\n",{"type":39,"tag":1135,"props":4335,"children":4336},{"class":1137,"line":1536},[4337,4341,4346,4350,4354],{"type":39,"tag":1135,"props":4338,"children":4339},{"style":1142},[4340],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4342,"children":4343},{"style":1209},[4344],{"type":44,"value":4345},"esModuleInterop",{"type":39,"tag":1135,"props":4347,"children":4348},{"style":1142},[4349],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4351,"children":4352},{"style":1142},[4353],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4355,"children":4356},{"style":1142},[4357],{"type":44,"value":4333},{"type":39,"tag":1135,"props":4359,"children":4360},{"class":1137,"line":1569},[4361,4365,4370,4374,4378],{"type":39,"tag":1135,"props":4362,"children":4363},{"style":1142},[4364],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4366,"children":4367},{"style":1209},[4368],{"type":44,"value":4369},"skipLibCheck",{"type":39,"tag":1135,"props":4371,"children":4372},{"style":1142},[4373],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4375,"children":4376},{"style":1142},[4377],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4379,"children":4380},{"style":1142},[4381],{"type":44,"value":4333},{"type":39,"tag":1135,"props":4383,"children":4384},{"class":1137,"line":1583},[4385,4389,4394,4398,4402,4406,4410,4415,4419],{"type":39,"tag":1135,"props":4386,"children":4387},{"style":1142},[4388],{"type":44,"value":3672},{"type":39,"tag":1135,"props":4390,"children":4391},{"style":1209},[4392],{"type":44,"value":4393},"types",{"type":39,"tag":1135,"props":4395,"children":4396},{"style":1142},[4397],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4399,"children":4400},{"style":1142},[4401],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4403,"children":4404},{"style":1142},[4405],{"type":44,"value":2648},{"type":39,"tag":1135,"props":4407,"children":4408},{"style":1142},[4409],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4411,"children":4412},{"style":1164},[4413],{"type":44,"value":4414},"bun-types",{"type":39,"tag":1135,"props":4416,"children":4417},{"style":1142},[4418],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4420,"children":4421},{"style":1142},[4422],{"type":44,"value":4423},"]\n",{"type":39,"tag":1135,"props":4425,"children":4426},{"class":1137,"line":1605},[4427],{"type":39,"tag":1135,"props":4428,"children":4429},{"style":1142},[4430],{"type":44,"value":3461},{"type":39,"tag":1135,"props":4432,"children":4433},{"class":1137,"line":1639},[4434,4438,4443,4447,4451,4455,4459,4464,4468,4472,4476,4480,4484],{"type":39,"tag":1135,"props":4435,"children":4436},{"style":1142},[4437],{"type":44,"value":3576},{"type":39,"tag":1135,"props":4439,"children":4440},{"style":1440},[4441],{"type":44,"value":4442},"include",{"type":39,"tag":1135,"props":4444,"children":4445},{"style":1142},[4446],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4448,"children":4449},{"style":1142},[4450],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4452,"children":4453},{"style":1142},[4454],{"type":44,"value":2648},{"type":39,"tag":1135,"props":4456,"children":4457},{"style":1142},[4458],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4460,"children":4461},{"style":1164},[4462],{"type":44,"value":4463},"src",{"type":39,"tag":1135,"props":4465,"children":4466},{"style":1142},[4467],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4469,"children":4470},{"style":1142},[4471],{"type":44,"value":1923},{"type":39,"tag":1135,"props":4473,"children":4474},{"style":1142},[4475],{"type":44,"value":1161},{"type":39,"tag":1135,"props":4477,"children":4478},{"style":1164},[4479],{"type":44,"value":3850},{"type":39,"tag":1135,"props":4481,"children":4482},{"style":1142},[4483],{"type":44,"value":1196},{"type":39,"tag":1135,"props":4485,"children":4486},{"style":1142},[4487],{"type":44,"value":4423},{"type":39,"tag":1135,"props":4489,"children":4490},{"class":1137,"line":1705},[4491],{"type":39,"tag":1135,"props":4492,"children":4493},{"style":1142},[4494],{"type":44,"value":4083},{"type":39,"tag":243,"props":4496,"children":4498},{"id":4497},"srcconfigts",[4499],{"type":44,"value":4500},"src\u002Fconfig.ts",{"type":39,"tag":1109,"props":4502,"children":4504},{"className":1330,"code":4503,"language":15,"meta":1117,"style":1117},"import { readFileSync, existsSync } from 'fs';\nimport { resolve } from 'path';\n\nfunction positiveNumber(name: string, raw: string): number {\n  const n = Number(raw);\n  if (!Number.isFinite(n) || n \u003C= 0) {\n    throw new Error(`${name} must be a positive number, got: ${JSON.stringify(raw)}`);\n  }\n  return n;\n}\n\nexport interface AgentConfig {\n  apiKey: string;\n  model: string;\n  name: string;\n  systemPrompt: string;\n  maxSteps: number;\n  maxCost: number;\n  sessionDir: string;\n  sessionEnabled: boolean;\n  outputMode: 'text' | 'json' | 'quiet';\n}\n\nconst DEFAULTS: AgentConfig = {\n  apiKey: '',\n  model: 'anthropic\u002Fclaude-sonnet-4.6',\n  name: 'My Agent',\n  systemPrompt: [\n    'You are a coding assistant with access to tools for reading, writing, editing, and searching files, and running shell commands.',\n    '',\n    'Current working directory: {cwd}',\n    '',\n    'Guidelines:',\n    '- Use your tools proactively. Explore the codebase to find answers instead of asking the user.',\n    '- Keep working until the task is fully resolved before responding.',\n    '- Do not guess or make up information — use your tools to verify.',\n    '- Be concise and direct.',\n    '- Show file paths clearly when working with files.',\n    '- Prefer grep and glob tools over shell commands for file search.',\n    '- When editing code, make minimal targeted changes consistent with the existing style.',\n  ].join('\\n'),\n  maxSteps: 20,\n  maxCost: 1.0,\n  sessionDir: '.sessions',\n  sessionEnabled: true,\n  outputMode: 'text',\n};\n\nexport function loadConfig(overrides: Partial\u003CAgentConfig> = {}, opts?: { skipApiKey?: boolean }): AgentConfig {\n  let config = { ...DEFAULTS };\n\n  const configPath = resolve('agent.config.json');\n  if (existsSync(configPath)) {\n    const file = JSON.parse(readFileSync(configPath, 'utf-8'));\n    config = { ...config, ...file };\n  }\n\n  if (process.env.OPENROUTER_API_KEY) config.apiKey = process.env.OPENROUTER_API_KEY;\n  if (process.env.AGENT_MODEL) config.model = process.env.AGENT_MODEL;\n  if (process.env.AGENT_MAX_STEPS) config.maxSteps = positiveNumber('AGENT_MAX_STEPS', process.env.AGENT_MAX_STEPS);\n  if (process.env.AGENT_MAX_COST) config.maxCost = positiveNumber('AGENT_MAX_COST', process.env.AGENT_MAX_COST);\n\n  config = { ...config, ...overrides };\n  if (!config.apiKey && !opts?.skipApiKey) throw new Error('OPENROUTER_API_KEY is required.');\n  return config;\n}\n",[4505],{"type":39,"tag":53,"props":4506,"children":4507},{"__ignoreMap":1117},[4508,4558,4598,4605,4665,4704,4773,4846,4853,4869,4876,4883,4904,4924,4944,4963,4983,5003,5023,5043,5064,5125,5132,5139,5167,5187,5215,5243,5259,5279,5291,5311,5322,5342,5362,5382,5402,5422,5442,5462,5482,5522,5542,5562,5590,5609,5636,5644,5651,5749,5785,5793,5839,5874,5949,5991,5999,6007,6087,6165,6271,6377,6385,6426,6520,6536],{"type":39,"tag":1135,"props":4509,"children":4510},{"class":1137,"line":1138},[4511,4515,4519,4524,4528,4533,4537,4541,4545,4550,4554],{"type":39,"tag":1135,"props":4512,"children":4513},{"style":1341},[4514],{"type":44,"value":1344},{"type":39,"tag":1135,"props":4516,"children":4517},{"style":1142},[4518],{"type":44,"value":1349},{"type":39,"tag":1135,"props":4520,"children":4521},{"style":1148},[4522],{"type":44,"value":4523}," readFileSync",{"type":39,"tag":1135,"props":4525,"children":4526},{"style":1142},[4527],{"type":44,"value":1923},{"type":39,"tag":1135,"props":4529,"children":4530},{"style":1148},[4531],{"type":44,"value":4532}," existsSync",{"type":39,"tag":1135,"props":4534,"children":4535},{"style":1142},[4536],{"type":44,"value":1359},{"type":39,"tag":1135,"props":4538,"children":4539},{"style":1341},[4540],{"type":44,"value":1364},{"type":39,"tag":1135,"props":4542,"children":4543},{"style":1142},[4544],{"type":44,"value":1369},{"type":39,"tag":1135,"props":4546,"children":4547},{"style":1164},[4548],{"type":44,"value":4549},"fs",{"type":39,"tag":1135,"props":4551,"children":4552},{"style":1142},[4553],{"type":44,"value":1378},{"type":39,"tag":1135,"props":4555,"children":4556},{"style":1142},[4557],{"type":44,"value":1383},{"type":39,"tag":1135,"props":4559,"children":4560},{"class":1137,"line":1175},[4561,4565,4569,4574,4578,4582,4586,4590,4594],{"type":39,"tag":1135,"props":4562,"children":4563},{"style":1341},[4564],{"type":44,"value":1344},{"type":39,"tag":1135,"props":4566,"children":4567},{"style":1142},[4568],{"type":44,"value":1349},{"type":39,"tag":1135,"props":4570,"children":4571},{"style":1148},[4572],{"type":44,"value":4573}," resolve",{"type":39,"tag":1135,"props":4575,"children":4576},{"style":1142},[4577],{"type":44,"value":1359},{"type":39,"tag":1135,"props":4579,"children":4580},{"style":1341},[4581],{"type":44,"value":1364},{"type":39,"tag":1135,"props":4583,"children":4584},{"style":1142},[4585],{"type":44,"value":1369},{"type":39,"tag":1135,"props":4587,"children":4588},{"style":1164},[4589],{"type":44,"value":2012},{"type":39,"tag":1135,"props":4591,"children":4592},{"style":1142},[4593],{"type":44,"value":1378},{"type":39,"tag":1135,"props":4595,"children":4596},{"style":1142},[4597],{"type":44,"value":1383},{"type":39,"tag":1135,"props":4599,"children":4600},{"class":1137,"line":1219},[4601],{"type":39,"tag":1135,"props":4602,"children":4603},{"emptyLinePlaceholder":1430},[4604],{"type":44,"value":1433},{"type":39,"tag":1135,"props":4606,"children":4607},{"class":1137,"line":1436},[4608,4613,4618,4622,4626,4630,4634,4638,4643,4647,4651,4656,4661],{"type":39,"tag":1135,"props":4609,"children":4610},{"style":1440},[4611],{"type":44,"value":4612},"function",{"type":39,"tag":1135,"props":4614,"children":4615},{"style":1179},[4616],{"type":44,"value":4617}," positiveNumber",{"type":39,"tag":1135,"props":4619,"children":4620},{"style":1142},[4621],{"type":44,"value":1528},{"type":39,"tag":1135,"props":4623,"children":4624},{"style":1915},[4625],{"type":44,"value":1275},{"type":39,"tag":1135,"props":4627,"children":4628},{"style":1142},[4629],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4631,"children":4632},{"style":1209},[4633],{"type":44,"value":2634},{"type":39,"tag":1135,"props":4635,"children":4636},{"style":1142},[4637],{"type":44,"value":1923},{"type":39,"tag":1135,"props":4639,"children":4640},{"style":1915},[4641],{"type":44,"value":4642}," raw",{"type":39,"tag":1135,"props":4644,"children":4645},{"style":1142},[4646],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4648,"children":4649},{"style":1209},[4650],{"type":44,"value":2634},{"type":39,"tag":1135,"props":4652,"children":4653},{"style":1142},[4654],{"type":44,"value":4655},"):",{"type":39,"tag":1135,"props":4657,"children":4658},{"style":1209},[4659],{"type":44,"value":4660}," number",{"type":39,"tag":1135,"props":4662,"children":4663},{"style":1142},[4664],{"type":44,"value":1952},{"type":39,"tag":1135,"props":4666,"children":4667},{"class":1137,"line":1466},[4668,4673,4678,4682,4687,4691,4696,4700],{"type":39,"tag":1135,"props":4669,"children":4670},{"style":1440},[4671],{"type":44,"value":4672},"  const",{"type":39,"tag":1135,"props":4674,"children":4675},{"style":1148},[4676],{"type":44,"value":4677}," n",{"type":39,"tag":1135,"props":4679,"children":4680},{"style":1142},[4681],{"type":44,"value":1984},{"type":39,"tag":1135,"props":4683,"children":4684},{"style":1179},[4685],{"type":44,"value":4686}," Number",{"type":39,"tag":1135,"props":4688,"children":4689},{"style":1540},[4690],{"type":44,"value":1528},{"type":39,"tag":1135,"props":4692,"children":4693},{"style":1148},[4694],{"type":44,"value":4695},"raw",{"type":39,"tag":1135,"props":4697,"children":4698},{"style":1540},[4699],{"type":44,"value":1698},{"type":39,"tag":1135,"props":4701,"children":4702},{"style":1142},[4703],{"type":44,"value":1383},{"type":39,"tag":1135,"props":4705,"children":4706},{"class":1137,"line":1491},[4707,4712,4716,4721,4726,4730,4735,4739,4744,4748,4753,4757,4761,4765,4769],{"type":39,"tag":1135,"props":4708,"children":4709},{"style":1341},[4710],{"type":44,"value":4711},"  if",{"type":39,"tag":1135,"props":4713,"children":4714},{"style":1540},[4715],{"type":44,"value":2191},{"type":39,"tag":1135,"props":4717,"children":4718},{"style":1142},[4719],{"type":44,"value":4720},"!",{"type":39,"tag":1135,"props":4722,"children":4723},{"style":1148},[4724],{"type":44,"value":4725},"Number",{"type":39,"tag":1135,"props":4727,"children":4728},{"style":1142},[4729],{"type":44,"value":499},{"type":39,"tag":1135,"props":4731,"children":4732},{"style":1179},[4733],{"type":44,"value":4734},"isFinite",{"type":39,"tag":1135,"props":4736,"children":4737},{"style":1540},[4738],{"type":44,"value":1528},{"type":39,"tag":1135,"props":4740,"children":4741},{"style":1148},[4742],{"type":44,"value":4743},"n",{"type":39,"tag":1135,"props":4745,"children":4746},{"style":1540},[4747],{"type":44,"value":2384},{"type":39,"tag":1135,"props":4749,"children":4750},{"style":1142},[4751],{"type":44,"value":4752},"||",{"type":39,"tag":1135,"props":4754,"children":4755},{"style":1148},[4756],{"type":44,"value":4677},{"type":39,"tag":1135,"props":4758,"children":4759},{"style":1142},[4760],{"type":44,"value":2374},{"type":39,"tag":1135,"props":4762,"children":4763},{"style":1456},[4764],{"type":44,"value":2137},{"type":39,"tag":1135,"props":4766,"children":4767},{"style":1540},[4768],{"type":44,"value":2384},{"type":39,"tag":1135,"props":4770,"children":4771},{"style":1142},[4772],{"type":44,"value":1533},{"type":39,"tag":1135,"props":4774,"children":4775},{"class":1137,"line":1499},[4776,4781,4786,4791,4795,4799,4803,4807,4812,4816,4820,4824,4829,4834,4838,4842],{"type":39,"tag":1135,"props":4777,"children":4778},{"style":1341},[4779],{"type":44,"value":4780},"    throw",{"type":39,"tag":1135,"props":4782,"children":4783},{"style":1142},[4784],{"type":44,"value":4785}," new",{"type":39,"tag":1135,"props":4787,"children":4788},{"style":1179},[4789],{"type":44,"value":4790}," Error",{"type":39,"tag":1135,"props":4792,"children":4793},{"style":1540},[4794],{"type":44,"value":1528},{"type":39,"tag":1135,"props":4796,"children":4797},{"style":1142},[4798],{"type":44,"value":2875},{"type":39,"tag":1135,"props":4800,"children":4801},{"style":1148},[4802],{"type":44,"value":1275},{"type":39,"tag":1135,"props":4804,"children":4805},{"style":1142},[4806],{"type":44,"value":1856},{"type":39,"tag":1135,"props":4808,"children":4809},{"style":1164},[4810],{"type":44,"value":4811}," must be a positive number, got: ",{"type":39,"tag":1135,"props":4813,"children":4814},{"style":1142},[4815],{"type":44,"value":1846},{"type":39,"tag":1135,"props":4817,"children":4818},{"style":1148},[4819],{"type":44,"value":964},{"type":39,"tag":1135,"props":4821,"children":4822},{"style":1142},[4823],{"type":44,"value":499},{"type":39,"tag":1135,"props":4825,"children":4826},{"style":1179},[4827],{"type":44,"value":4828},"stringify",{"type":39,"tag":1135,"props":4830,"children":4831},{"style":1148},[4832],{"type":44,"value":4833},"(raw)",{"type":39,"tag":1135,"props":4835,"children":4836},{"style":1142},[4837],{"type":44,"value":3314},{"type":39,"tag":1135,"props":4839,"children":4840},{"style":1540},[4841],{"type":44,"value":1698},{"type":39,"tag":1135,"props":4843,"children":4844},{"style":1142},[4845],{"type":44,"value":1383},{"type":39,"tag":1135,"props":4847,"children":4848},{"class":1137,"line":1536},[4849],{"type":39,"tag":1135,"props":4850,"children":4851},{"style":1142},[4852],{"type":44,"value":4075},{"type":39,"tag":1135,"props":4854,"children":4855},{"class":1137,"line":1569},[4856,4861,4865],{"type":39,"tag":1135,"props":4857,"children":4858},{"style":1341},[4859],{"type":44,"value":4860},"  return",{"type":39,"tag":1135,"props":4862,"children":4863},{"style":1148},[4864],{"type":44,"value":4677},{"type":39,"tag":1135,"props":4866,"children":4867},{"style":1142},[4868],{"type":44,"value":1383},{"type":39,"tag":1135,"props":4870,"children":4871},{"class":1137,"line":1583},[4872],{"type":39,"tag":1135,"props":4873,"children":4874},{"style":1142},[4875],{"type":44,"value":4083},{"type":39,"tag":1135,"props":4877,"children":4878},{"class":1137,"line":1605},[4879],{"type":39,"tag":1135,"props":4880,"children":4881},{"emptyLinePlaceholder":1430},[4882],{"type":44,"value":1433},{"type":39,"tag":1135,"props":4884,"children":4885},{"class":1137,"line":1639},[4886,4890,4895,4900],{"type":39,"tag":1135,"props":4887,"children":4888},{"style":1341},[4889],{"type":44,"value":1505},{"type":39,"tag":1135,"props":4891,"children":4892},{"style":1440},[4893],{"type":44,"value":4894}," interface",{"type":39,"tag":1135,"props":4896,"children":4897},{"style":1209},[4898],{"type":44,"value":4899}," AgentConfig",{"type":39,"tag":1135,"props":4901,"children":4902},{"style":1142},[4903],{"type":44,"value":1952},{"type":39,"tag":1135,"props":4905,"children":4906},{"class":1137,"line":1705},[4907,4912,4916,4920],{"type":39,"tag":1135,"props":4908,"children":4909},{"style":1540},[4910],{"type":44,"value":4911},"  apiKey",{"type":39,"tag":1135,"props":4913,"children":4914},{"style":1142},[4915],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4917,"children":4918},{"style":1209},[4919],{"type":44,"value":2634},{"type":39,"tag":1135,"props":4921,"children":4922},{"style":1142},[4923],{"type":44,"value":1383},{"type":39,"tag":1135,"props":4925,"children":4926},{"class":1137,"line":1781},[4927,4932,4936,4940],{"type":39,"tag":1135,"props":4928,"children":4929},{"style":1540},[4930],{"type":44,"value":4931},"  model",{"type":39,"tag":1135,"props":4933,"children":4934},{"style":1142},[4935],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4937,"children":4938},{"style":1209},[4939],{"type":44,"value":2634},{"type":39,"tag":1135,"props":4941,"children":4942},{"style":1142},[4943],{"type":44,"value":1383},{"type":39,"tag":1135,"props":4945,"children":4946},{"class":1137,"line":1875},[4947,4951,4955,4959],{"type":39,"tag":1135,"props":4948,"children":4949},{"style":1540},[4950],{"type":44,"value":1543},{"type":39,"tag":1135,"props":4952,"children":4953},{"style":1142},[4954],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4956,"children":4957},{"style":1209},[4958],{"type":44,"value":2634},{"type":39,"tag":1135,"props":4960,"children":4961},{"style":1142},[4962],{"type":44,"value":1383},{"type":39,"tag":1135,"props":4964,"children":4965},{"class":1137,"line":1892},[4966,4971,4975,4979],{"type":39,"tag":1135,"props":4967,"children":4968},{"style":1540},[4969],{"type":44,"value":4970},"  systemPrompt",{"type":39,"tag":1135,"props":4972,"children":4973},{"style":1142},[4974],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4976,"children":4977},{"style":1209},[4978],{"type":44,"value":2634},{"type":39,"tag":1135,"props":4980,"children":4981},{"style":1142},[4982],{"type":44,"value":1383},{"type":39,"tag":1135,"props":4984,"children":4985},{"class":1137,"line":1955},[4986,4991,4995,4999],{"type":39,"tag":1135,"props":4987,"children":4988},{"style":1540},[4989],{"type":44,"value":4990},"  maxSteps",{"type":39,"tag":1135,"props":4992,"children":4993},{"style":1142},[4994],{"type":44,"value":1548},{"type":39,"tag":1135,"props":4996,"children":4997},{"style":1209},[4998],{"type":44,"value":4660},{"type":39,"tag":1135,"props":5000,"children":5001},{"style":1142},[5002],{"type":44,"value":1383},{"type":39,"tag":1135,"props":5004,"children":5005},{"class":1137,"line":1968},[5006,5011,5015,5019],{"type":39,"tag":1135,"props":5007,"children":5008},{"style":1540},[5009],{"type":44,"value":5010},"  maxCost",{"type":39,"tag":1135,"props":5012,"children":5013},{"style":1142},[5014],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5016,"children":5017},{"style":1209},[5018],{"type":44,"value":4660},{"type":39,"tag":1135,"props":5020,"children":5021},{"style":1142},[5022],{"type":44,"value":1383},{"type":39,"tag":1135,"props":5024,"children":5025},{"class":1137,"line":2035},[5026,5031,5035,5039],{"type":39,"tag":1135,"props":5027,"children":5028},{"style":1540},[5029],{"type":44,"value":5030},"  sessionDir",{"type":39,"tag":1135,"props":5032,"children":5033},{"style":1142},[5034],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5036,"children":5037},{"style":1209},[5038],{"type":44,"value":2634},{"type":39,"tag":1135,"props":5040,"children":5041},{"style":1142},[5042],{"type":44,"value":1383},{"type":39,"tag":1135,"props":5044,"children":5045},{"class":1137,"line":2090},[5046,5051,5055,5060],{"type":39,"tag":1135,"props":5047,"children":5048},{"style":1540},[5049],{"type":44,"value":5050},"  sessionEnabled",{"type":39,"tag":1135,"props":5052,"children":5053},{"style":1142},[5054],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5056,"children":5057},{"style":1209},[5058],{"type":44,"value":5059}," boolean",{"type":39,"tag":1135,"props":5061,"children":5062},{"style":1142},[5063],{"type":44,"value":1383},{"type":39,"tag":1135,"props":5065,"children":5066},{"class":1137,"line":2144},[5067,5072,5076,5080,5084,5088,5092,5096,5100,5104,5108,5112,5117,5121],{"type":39,"tag":1135,"props":5068,"children":5069},{"style":1540},[5070],{"type":44,"value":5071},"  outputMode",{"type":39,"tag":1135,"props":5073,"children":5074},{"style":1142},[5075],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5077,"children":5078},{"style":1142},[5079],{"type":44,"value":1369},{"type":39,"tag":1135,"props":5081,"children":5082},{"style":1164},[5083],{"type":44,"value":44},{"type":39,"tag":1135,"props":5085,"children":5086},{"style":1142},[5087],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5089,"children":5090},{"style":1142},[5091],{"type":44,"value":1201},{"type":39,"tag":1135,"props":5093,"children":5094},{"style":1142},[5095],{"type":44,"value":1369},{"type":39,"tag":1135,"props":5097,"children":5098},{"style":1164},[5099],{"type":44,"value":3557},{"type":39,"tag":1135,"props":5101,"children":5102},{"style":1142},[5103],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5105,"children":5106},{"style":1142},[5107],{"type":44,"value":1201},{"type":39,"tag":1135,"props":5109,"children":5110},{"style":1142},[5111],{"type":44,"value":1369},{"type":39,"tag":1135,"props":5113,"children":5114},{"style":1164},[5115],{"type":44,"value":5116},"quiet",{"type":39,"tag":1135,"props":5118,"children":5119},{"style":1142},[5120],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5122,"children":5123},{"style":1142},[5124],{"type":44,"value":1383},{"type":39,"tag":1135,"props":5126,"children":5127},{"class":1137,"line":2238},[5128],{"type":39,"tag":1135,"props":5129,"children":5130},{"style":1142},[5131],{"type":44,"value":4083},{"type":39,"tag":1135,"props":5133,"children":5134},{"class":1137,"line":2264},[5135],{"type":39,"tag":1135,"props":5136,"children":5137},{"emptyLinePlaceholder":1430},[5138],{"type":44,"value":1433},{"type":39,"tag":1135,"props":5140,"children":5141},{"class":1137,"line":2347},[5142,5146,5151,5155,5159,5163],{"type":39,"tag":1135,"props":5143,"children":5144},{"style":1440},[5145],{"type":44,"value":1443},{"type":39,"tag":1135,"props":5147,"children":5148},{"style":1148},[5149],{"type":44,"value":5150}," DEFAULTS",{"type":39,"tag":1135,"props":5152,"children":5153},{"style":1142},[5154],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5156,"children":5157},{"style":1209},[5158],{"type":44,"value":4899},{"type":39,"tag":1135,"props":5160,"children":5161},{"style":1142},[5162],{"type":44,"value":1984},{"type":39,"tag":1135,"props":5164,"children":5165},{"style":1142},[5166],{"type":44,"value":1952},{"type":39,"tag":1135,"props":5168,"children":5169},{"class":1137,"line":2401},[5170,5174,5178,5183],{"type":39,"tag":1135,"props":5171,"children":5172},{"style":1540},[5173],{"type":44,"value":4911},{"type":39,"tag":1135,"props":5175,"children":5176},{"style":1142},[5177],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5179,"children":5180},{"style":1142},[5181],{"type":44,"value":5182}," ''",{"type":39,"tag":1135,"props":5184,"children":5185},{"style":1142},[5186],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5188,"children":5189},{"class":1137,"line":27},[5190,5194,5198,5202,5207,5211],{"type":39,"tag":1135,"props":5191,"children":5192},{"style":1540},[5193],{"type":44,"value":4931},{"type":39,"tag":1135,"props":5195,"children":5196},{"style":1142},[5197],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5199,"children":5200},{"style":1142},[5201],{"type":44,"value":1369},{"type":39,"tag":1135,"props":5203,"children":5204},{"style":1164},[5205],{"type":44,"value":5206},"anthropic\u002Fclaude-sonnet-4.6",{"type":39,"tag":1135,"props":5208,"children":5209},{"style":1142},[5210],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5212,"children":5213},{"style":1142},[5214],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5216,"children":5217},{"class":1137,"line":2514},[5218,5222,5226,5230,5235,5239],{"type":39,"tag":1135,"props":5219,"children":5220},{"style":1540},[5221],{"type":44,"value":1543},{"type":39,"tag":1135,"props":5223,"children":5224},{"style":1142},[5225],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5227,"children":5228},{"style":1142},[5229],{"type":44,"value":1369},{"type":39,"tag":1135,"props":5231,"children":5232},{"style":1164},[5233],{"type":44,"value":5234},"My Agent",{"type":39,"tag":1135,"props":5236,"children":5237},{"style":1142},[5238],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5240,"children":5241},{"style":1142},[5242],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5244,"children":5245},{"class":1137,"line":2531},[5246,5250,5254],{"type":39,"tag":1135,"props":5247,"children":5248},{"style":1540},[5249],{"type":44,"value":4970},{"type":39,"tag":1135,"props":5251,"children":5252},{"style":1142},[5253],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5255,"children":5256},{"style":1148},[5257],{"type":44,"value":5258}," [\n",{"type":39,"tag":1135,"props":5260,"children":5261},{"class":1137,"line":2572},[5262,5266,5271,5275],{"type":39,"tag":1135,"props":5263,"children":5264},{"style":1142},[5265],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5267,"children":5268},{"style":1164},[5269],{"type":44,"value":5270},"You are a coding assistant with access to tools for reading, writing, editing, and searching files, and running shell commands.",{"type":39,"tag":1135,"props":5272,"children":5273},{"style":1142},[5274],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5276,"children":5277},{"style":1142},[5278],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5280,"children":5281},{"class":1137,"line":2615},[5282,5287],{"type":39,"tag":1135,"props":5283,"children":5284},{"style":1142},[5285],{"type":44,"value":5286},"    ''",{"type":39,"tag":1135,"props":5288,"children":5289},{"style":1142},[5290],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5292,"children":5293},{"class":1137,"line":2741},[5294,5298,5303,5307],{"type":39,"tag":1135,"props":5295,"children":5296},{"style":1142},[5297],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5299,"children":5300},{"style":1164},[5301],{"type":44,"value":5302},"Current working directory: {cwd}",{"type":39,"tag":1135,"props":5304,"children":5305},{"style":1142},[5306],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5308,"children":5309},{"style":1142},[5310],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5312,"children":5313},{"class":1137,"line":2828},[5314,5318],{"type":39,"tag":1135,"props":5315,"children":5316},{"style":1142},[5317],{"type":44,"value":5286},{"type":39,"tag":1135,"props":5319,"children":5320},{"style":1142},[5321],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5323,"children":5324},{"class":1137,"line":2921},[5325,5329,5334,5338],{"type":39,"tag":1135,"props":5326,"children":5327},{"style":1142},[5328],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5330,"children":5331},{"style":1164},[5332],{"type":44,"value":5333},"Guidelines:",{"type":39,"tag":1135,"props":5335,"children":5336},{"style":1142},[5337],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5339,"children":5340},{"style":1142},[5341],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5343,"children":5344},{"class":1137,"line":2934},[5345,5349,5354,5358],{"type":39,"tag":1135,"props":5346,"children":5347},{"style":1142},[5348],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5350,"children":5351},{"style":1164},[5352],{"type":44,"value":5353},"- Use your tools proactively. Explore the codebase to find answers instead of asking the user.",{"type":39,"tag":1135,"props":5355,"children":5356},{"style":1142},[5357],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5359,"children":5360},{"style":1142},[5361],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5363,"children":5364},{"class":1137,"line":2984},[5365,5369,5374,5378],{"type":39,"tag":1135,"props":5366,"children":5367},{"style":1142},[5368],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5370,"children":5371},{"style":1164},[5372],{"type":44,"value":5373},"- Keep working until the task is fully resolved before responding.",{"type":39,"tag":1135,"props":5375,"children":5376},{"style":1142},[5377],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5379,"children":5380},{"style":1142},[5381],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5383,"children":5384},{"class":1137,"line":3013},[5385,5389,5394,5398],{"type":39,"tag":1135,"props":5386,"children":5387},{"style":1142},[5388],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5390,"children":5391},{"style":1164},[5392],{"type":44,"value":5393},"- Do not guess or make up information — use your tools to verify.",{"type":39,"tag":1135,"props":5395,"children":5396},{"style":1142},[5397],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5399,"children":5400},{"style":1142},[5401],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5403,"children":5404},{"class":1137,"line":3040},[5405,5409,5414,5418],{"type":39,"tag":1135,"props":5406,"children":5407},{"style":1142},[5408],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5410,"children":5411},{"style":1164},[5412],{"type":44,"value":5413},"- Be concise and direct.",{"type":39,"tag":1135,"props":5415,"children":5416},{"style":1142},[5417],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5419,"children":5420},{"style":1142},[5421],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5423,"children":5424},{"class":1137,"line":3063},[5425,5429,5434,5438],{"type":39,"tag":1135,"props":5426,"children":5427},{"style":1142},[5428],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5430,"children":5431},{"style":1164},[5432],{"type":44,"value":5433},"- Show file paths clearly when working with files.",{"type":39,"tag":1135,"props":5435,"children":5436},{"style":1142},[5437],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5439,"children":5440},{"style":1142},[5441],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5443,"children":5444},{"class":1137,"line":3121},[5445,5449,5454,5458],{"type":39,"tag":1135,"props":5446,"children":5447},{"style":1142},[5448],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5450,"children":5451},{"style":1164},[5452],{"type":44,"value":5453},"- Prefer grep and glob tools over shell commands for file search.",{"type":39,"tag":1135,"props":5455,"children":5456},{"style":1142},[5457],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5459,"children":5460},{"style":1142},[5461],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5463,"children":5464},{"class":1137,"line":3166},[5465,5469,5474,5478],{"type":39,"tag":1135,"props":5466,"children":5467},{"style":1142},[5468],{"type":44,"value":1589},{"type":39,"tag":1135,"props":5470,"children":5471},{"style":1164},[5472],{"type":44,"value":5473},"- When editing code, make minimal targeted changes consistent with the existing style.",{"type":39,"tag":1135,"props":5475,"children":5476},{"style":1142},[5477],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5479,"children":5480},{"style":1142},[5481],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5483,"children":5484},{"class":1137,"line":3183},[5485,5490,5494,5498,5502,5506,5510,5514,5518],{"type":39,"tag":1135,"props":5486,"children":5487},{"style":1148},[5488],{"type":44,"value":5489},"  ]",{"type":39,"tag":1135,"props":5491,"children":5492},{"style":1142},[5493],{"type":44,"value":499},{"type":39,"tag":1135,"props":5495,"children":5496},{"style":1179},[5497],{"type":44,"value":2957},{"type":39,"tag":1135,"props":5499,"children":5500},{"style":1148},[5501],{"type":44,"value":1528},{"type":39,"tag":1135,"props":5503,"children":5504},{"style":1142},[5505],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5507,"children":5508},{"style":1148},[5509],{"type":44,"value":2075},{"type":39,"tag":1135,"props":5511,"children":5512},{"style":1142},[5513],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5515,"children":5516},{"style":1148},[5517],{"type":44,"value":1698},{"type":39,"tag":1135,"props":5519,"children":5520},{"style":1142},[5521],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5523,"children":5524},{"class":1137,"line":3192},[5525,5529,5533,5538],{"type":39,"tag":1135,"props":5526,"children":5527},{"style":1540},[5528],{"type":44,"value":4990},{"type":39,"tag":1135,"props":5530,"children":5531},{"style":1142},[5532],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5534,"children":5535},{"style":1456},[5536],{"type":44,"value":5537}," 20",{"type":39,"tag":1135,"props":5539,"children":5540},{"style":1142},[5541],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5543,"children":5544},{"class":1137,"line":3232},[5545,5549,5553,5558],{"type":39,"tag":1135,"props":5546,"children":5547},{"style":1540},[5548],{"type":44,"value":5010},{"type":39,"tag":1135,"props":5550,"children":5551},{"style":1142},[5552],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5554,"children":5555},{"style":1456},[5556],{"type":44,"value":5557}," 1.0",{"type":39,"tag":1135,"props":5559,"children":5560},{"style":1142},[5561],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5563,"children":5564},{"class":1137,"line":3322},[5565,5569,5573,5577,5582,5586],{"type":39,"tag":1135,"props":5566,"children":5567},{"style":1540},[5568],{"type":44,"value":5030},{"type":39,"tag":1135,"props":5570,"children":5571},{"style":1142},[5572],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5574,"children":5575},{"style":1142},[5576],{"type":44,"value":1369},{"type":39,"tag":1135,"props":5578,"children":5579},{"style":1164},[5580],{"type":44,"value":5581},".sessions",{"type":39,"tag":1135,"props":5583,"children":5584},{"style":1142},[5585],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5587,"children":5588},{"style":1142},[5589],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5591,"children":5592},{"class":1137,"line":3408},[5593,5597,5601,5605],{"type":39,"tag":1135,"props":5594,"children":5595},{"style":1540},[5596],{"type":44,"value":5050},{"type":39,"tag":1135,"props":5598,"children":5599},{"style":1142},[5600],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5602,"children":5603},{"style":3053},[5604],{"type":44,"value":3056},{"type":39,"tag":1135,"props":5606,"children":5607},{"style":1142},[5608],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5610,"children":5611},{"class":1137,"line":3446},[5612,5616,5620,5624,5628,5632],{"type":39,"tag":1135,"props":5613,"children":5614},{"style":1540},[5615],{"type":44,"value":5071},{"type":39,"tag":1135,"props":5617,"children":5618},{"style":1142},[5619],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5621,"children":5622},{"style":1142},[5623],{"type":44,"value":1369},{"type":39,"tag":1135,"props":5625,"children":5626},{"style":1164},[5627],{"type":44,"value":44},{"type":39,"tag":1135,"props":5629,"children":5630},{"style":1142},[5631],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5633,"children":5634},{"style":1142},[5635],{"type":44,"value":1566},{"type":39,"tag":1135,"props":5637,"children":5638},{"class":1137,"line":3455},[5639],{"type":39,"tag":1135,"props":5640,"children":5641},{"style":1142},[5642],{"type":44,"value":5643},"};\n",{"type":39,"tag":1135,"props":5645,"children":5646},{"class":1137,"line":3464},[5647],{"type":39,"tag":1135,"props":5648,"children":5649},{"emptyLinePlaceholder":1430},[5650],{"type":44,"value":1433},{"type":39,"tag":1135,"props":5652,"children":5654},{"class":1137,"line":5653},49,[5655,5659,5664,5669,5673,5678,5682,5687,5691,5696,5700,5704,5709,5714,5719,5723,5728,5732,5736,5741,5745],{"type":39,"tag":1135,"props":5656,"children":5657},{"style":1341},[5658],{"type":44,"value":1505},{"type":39,"tag":1135,"props":5660,"children":5661},{"style":1440},[5662],{"type":44,"value":5663}," function",{"type":39,"tag":1135,"props":5665,"children":5666},{"style":1179},[5667],{"type":44,"value":5668}," loadConfig",{"type":39,"tag":1135,"props":5670,"children":5671},{"style":1142},[5672],{"type":44,"value":1528},{"type":39,"tag":1135,"props":5674,"children":5675},{"style":1915},[5676],{"type":44,"value":5677},"overrides",{"type":39,"tag":1135,"props":5679,"children":5680},{"style":1142},[5681],{"type":44,"value":1548},{"type":39,"tag":1135,"props":5683,"children":5684},{"style":1209},[5685],{"type":44,"value":5686}," Partial",{"type":39,"tag":1135,"props":5688,"children":5689},{"style":1142},[5690],{"type":44,"value":1145},{"type":39,"tag":1135,"props":5692,"children":5693},{"style":1209},[5694],{"type":44,"value":5695},"AgentConfig",{"type":39,"tag":1135,"props":5697,"children":5698},{"style":1142},[5699],{"type":44,"value":1156},{"type":39,"tag":1135,"props":5701,"children":5702},{"style":1142},[5703],{"type":44,"value":1984},{"type":39,"tag":1135,"props":5705,"children":5706},{"style":1142},[5707],{"type":44,"value":5708}," {},",{"type":39,"tag":1135,"props":5710,"children":5711},{"style":1915},[5712],{"type":44,"value":5713}," opts",{"type":39,"tag":1135,"props":5715,"children":5716},{"style":1142},[5717],{"type":44,"value":5718},"?:",{"type":39,"tag":1135,"props":5720,"children":5721},{"style":1142},[5722],{"type":44,"value":1349},{"type":39,"tag":1135,"props":5724,"children":5725},{"style":1540},[5726],{"type":44,"value":5727}," skipApiKey",{"type":39,"tag":1135,"props":5729,"children":5730},{"style":1142},[5731],{"type":44,"value":5718},{"type":39,"tag":1135,"props":5733,"children":5734},{"style":1209},[5735],{"type":44,"value":5059},{"type":39,"tag":1135,"props":5737,"children":5738},{"style":1142},[5739],{"type":44,"value":5740}," }):",{"type":39,"tag":1135,"props":5742,"children":5743},{"style":1209},[5744],{"type":44,"value":4899},{"type":39,"tag":1135,"props":5746,"children":5747},{"style":1142},[5748],{"type":44,"value":1952},{"type":39,"tag":1135,"props":5750,"children":5752},{"class":1137,"line":5751},50,[5753,5758,5763,5767,5771,5776,5781],{"type":39,"tag":1135,"props":5754,"children":5755},{"style":1440},[5756],{"type":44,"value":5757},"  let",{"type":39,"tag":1135,"props":5759,"children":5760},{"style":1148},[5761],{"type":44,"value":5762}," config",{"type":39,"tag":1135,"props":5764,"children":5765},{"style":1142},[5766],{"type":44,"value":1984},{"type":39,"tag":1135,"props":5768,"children":5769},{"style":1142},[5770],{"type":44,"value":1349},{"type":39,"tag":1135,"props":5772,"children":5773},{"style":1142},[5774],{"type":44,"value":5775}," ...",{"type":39,"tag":1135,"props":5777,"children":5778},{"style":1148},[5779],{"type":44,"value":5780},"DEFAULTS",{"type":39,"tag":1135,"props":5782,"children":5783},{"style":1142},[5784],{"type":44,"value":3319},{"type":39,"tag":1135,"props":5786,"children":5788},{"class":1137,"line":5787},51,[5789],{"type":39,"tag":1135,"props":5790,"children":5791},{"emptyLinePlaceholder":1430},[5792],{"type":44,"value":1433},{"type":39,"tag":1135,"props":5794,"children":5796},{"class":1137,"line":5795},52,[5797,5801,5806,5810,5814,5818,5822,5827,5831,5835],{"type":39,"tag":1135,"props":5798,"children":5799},{"style":1440},[5800],{"type":44,"value":4672},{"type":39,"tag":1135,"props":5802,"children":5803},{"style":1148},[5804],{"type":44,"value":5805}," configPath",{"type":39,"tag":1135,"props":5807,"children":5808},{"style":1142},[5809],{"type":44,"value":1984},{"type":39,"tag":1135,"props":5811,"children":5812},{"style":1179},[5813],{"type":44,"value":4573},{"type":39,"tag":1135,"props":5815,"children":5816},{"style":1540},[5817],{"type":44,"value":1528},{"type":39,"tag":1135,"props":5819,"children":5820},{"style":1142},[5821],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5823,"children":5824},{"style":1164},[5825],{"type":44,"value":5826},"agent.config.json",{"type":39,"tag":1135,"props":5828,"children":5829},{"style":1142},[5830],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5832,"children":5833},{"style":1540},[5834],{"type":44,"value":1698},{"type":39,"tag":1135,"props":5836,"children":5837},{"style":1142},[5838],{"type":44,"value":1383},{"type":39,"tag":1135,"props":5840,"children":5842},{"class":1137,"line":5841},53,[5843,5847,5851,5856,5860,5865,5870],{"type":39,"tag":1135,"props":5844,"children":5845},{"style":1341},[5846],{"type":44,"value":4711},{"type":39,"tag":1135,"props":5848,"children":5849},{"style":1540},[5850],{"type":44,"value":2191},{"type":39,"tag":1135,"props":5852,"children":5853},{"style":1179},[5854],{"type":44,"value":5855},"existsSync",{"type":39,"tag":1135,"props":5857,"children":5858},{"style":1540},[5859],{"type":44,"value":1528},{"type":39,"tag":1135,"props":5861,"children":5862},{"style":1148},[5863],{"type":44,"value":5864},"configPath",{"type":39,"tag":1135,"props":5866,"children":5867},{"style":1540},[5868],{"type":44,"value":5869},")) ",{"type":39,"tag":1135,"props":5871,"children":5872},{"style":1142},[5873],{"type":44,"value":1533},{"type":39,"tag":1135,"props":5875,"children":5877},{"class":1137,"line":5876},54,[5878,5883,5888,5892,5897,5901,5906,5910,5915,5919,5923,5927,5931,5936,5940,5945],{"type":39,"tag":1135,"props":5879,"children":5880},{"style":1440},[5881],{"type":44,"value":5882},"    const",{"type":39,"tag":1135,"props":5884,"children":5885},{"style":1148},[5886],{"type":44,"value":5887}," file",{"type":39,"tag":1135,"props":5889,"children":5890},{"style":1142},[5891],{"type":44,"value":1984},{"type":39,"tag":1135,"props":5893,"children":5894},{"style":1148},[5895],{"type":44,"value":5896}," JSON",{"type":39,"tag":1135,"props":5898,"children":5899},{"style":1142},[5900],{"type":44,"value":499},{"type":39,"tag":1135,"props":5902,"children":5903},{"style":1179},[5904],{"type":44,"value":5905},"parse",{"type":39,"tag":1135,"props":5907,"children":5908},{"style":1540},[5909],{"type":44,"value":1528},{"type":39,"tag":1135,"props":5911,"children":5912},{"style":1179},[5913],{"type":44,"value":5914},"readFileSync",{"type":39,"tag":1135,"props":5916,"children":5917},{"style":1540},[5918],{"type":44,"value":1528},{"type":39,"tag":1135,"props":5920,"children":5921},{"style":1148},[5922],{"type":44,"value":5864},{"type":39,"tag":1135,"props":5924,"children":5925},{"style":1142},[5926],{"type":44,"value":1923},{"type":39,"tag":1135,"props":5928,"children":5929},{"style":1142},[5930],{"type":44,"value":1369},{"type":39,"tag":1135,"props":5932,"children":5933},{"style":1164},[5934],{"type":44,"value":5935},"utf-8",{"type":39,"tag":1135,"props":5937,"children":5938},{"style":1142},[5939],{"type":44,"value":1378},{"type":39,"tag":1135,"props":5941,"children":5942},{"style":1540},[5943],{"type":44,"value":5944},"))",{"type":39,"tag":1135,"props":5946,"children":5947},{"style":1142},[5948],{"type":44,"value":1383},{"type":39,"tag":1135,"props":5950,"children":5952},{"class":1137,"line":5951},55,[5953,5958,5962,5966,5970,5975,5979,5983,5987],{"type":39,"tag":1135,"props":5954,"children":5955},{"style":1148},[5956],{"type":44,"value":5957},"    config",{"type":39,"tag":1135,"props":5959,"children":5960},{"style":1142},[5961],{"type":44,"value":1984},{"type":39,"tag":1135,"props":5963,"children":5964},{"style":1142},[5965],{"type":44,"value":1349},{"type":39,"tag":1135,"props":5967,"children":5968},{"style":1142},[5969],{"type":44,"value":5775},{"type":39,"tag":1135,"props":5971,"children":5972},{"style":1148},[5973],{"type":44,"value":5974},"config",{"type":39,"tag":1135,"props":5976,"children":5977},{"style":1142},[5978],{"type":44,"value":1923},{"type":39,"tag":1135,"props":5980,"children":5981},{"style":1142},[5982],{"type":44,"value":5775},{"type":39,"tag":1135,"props":5984,"children":5985},{"style":1148},[5986],{"type":44,"value":2003},{"type":39,"tag":1135,"props":5988,"children":5989},{"style":1142},[5990],{"type":44,"value":3319},{"type":39,"tag":1135,"props":5992,"children":5994},{"class":1137,"line":5993},56,[5995],{"type":39,"tag":1135,"props":5996,"children":5997},{"style":1142},[5998],{"type":44,"value":4075},{"type":39,"tag":1135,"props":6000,"children":6002},{"class":1137,"line":6001},57,[6003],{"type":39,"tag":1135,"props":6004,"children":6005},{"emptyLinePlaceholder":1430},[6006],{"type":44,"value":1433},{"type":39,"tag":1135,"props":6008,"children":6010},{"class":1137,"line":6009},58,[6011,6015,6019,6024,6028,6033,6037,6041,6045,6049,6053,6058,6062,6067,6071,6075,6079,6083],{"type":39,"tag":1135,"props":6012,"children":6013},{"style":1341},[6014],{"type":44,"value":4711},{"type":39,"tag":1135,"props":6016,"children":6017},{"style":1540},[6018],{"type":44,"value":2191},{"type":39,"tag":1135,"props":6020,"children":6021},{"style":1148},[6022],{"type":44,"value":6023},"process",{"type":39,"tag":1135,"props":6025,"children":6026},{"style":1142},[6027],{"type":44,"value":499},{"type":39,"tag":1135,"props":6029,"children":6030},{"style":1148},[6031],{"type":44,"value":6032},"env",{"type":39,"tag":1135,"props":6034,"children":6035},{"style":1142},[6036],{"type":44,"value":499},{"type":39,"tag":1135,"props":6038,"children":6039},{"style":1148},[6040],{"type":44,"value":86},{"type":39,"tag":1135,"props":6042,"children":6043},{"style":1540},[6044],{"type":44,"value":2384},{"type":39,"tag":1135,"props":6046,"children":6047},{"style":1148},[6048],{"type":44,"value":5974},{"type":39,"tag":1135,"props":6050,"children":6051},{"style":1142},[6052],{"type":44,"value":499},{"type":39,"tag":1135,"props":6054,"children":6055},{"style":1148},[6056],{"type":44,"value":6057},"apiKey",{"type":39,"tag":1135,"props":6059,"children":6060},{"style":1142},[6061],{"type":44,"value":1984},{"type":39,"tag":1135,"props":6063,"children":6064},{"style":1148},[6065],{"type":44,"value":6066}," process",{"type":39,"tag":1135,"props":6068,"children":6069},{"style":1142},[6070],{"type":44,"value":499},{"type":39,"tag":1135,"props":6072,"children":6073},{"style":1148},[6074],{"type":44,"value":6032},{"type":39,"tag":1135,"props":6076,"children":6077},{"style":1142},[6078],{"type":44,"value":499},{"type":39,"tag":1135,"props":6080,"children":6081},{"style":1148},[6082],{"type":44,"value":86},{"type":39,"tag":1135,"props":6084,"children":6085},{"style":1142},[6086],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6088,"children":6090},{"class":1137,"line":6089},59,[6091,6095,6099,6103,6107,6111,6115,6120,6124,6128,6132,6137,6141,6145,6149,6153,6157,6161],{"type":39,"tag":1135,"props":6092,"children":6093},{"style":1341},[6094],{"type":44,"value":4711},{"type":39,"tag":1135,"props":6096,"children":6097},{"style":1540},[6098],{"type":44,"value":2191},{"type":39,"tag":1135,"props":6100,"children":6101},{"style":1148},[6102],{"type":44,"value":6023},{"type":39,"tag":1135,"props":6104,"children":6105},{"style":1142},[6106],{"type":44,"value":499},{"type":39,"tag":1135,"props":6108,"children":6109},{"style":1148},[6110],{"type":44,"value":6032},{"type":39,"tag":1135,"props":6112,"children":6113},{"style":1142},[6114],{"type":44,"value":499},{"type":39,"tag":1135,"props":6116,"children":6117},{"style":1148},[6118],{"type":44,"value":6119},"AGENT_MODEL",{"type":39,"tag":1135,"props":6121,"children":6122},{"style":1540},[6123],{"type":44,"value":2384},{"type":39,"tag":1135,"props":6125,"children":6126},{"style":1148},[6127],{"type":44,"value":5974},{"type":39,"tag":1135,"props":6129,"children":6130},{"style":1142},[6131],{"type":44,"value":499},{"type":39,"tag":1135,"props":6133,"children":6134},{"style":1148},[6135],{"type":44,"value":6136},"model",{"type":39,"tag":1135,"props":6138,"children":6139},{"style":1142},[6140],{"type":44,"value":1984},{"type":39,"tag":1135,"props":6142,"children":6143},{"style":1148},[6144],{"type":44,"value":6066},{"type":39,"tag":1135,"props":6146,"children":6147},{"style":1142},[6148],{"type":44,"value":499},{"type":39,"tag":1135,"props":6150,"children":6151},{"style":1148},[6152],{"type":44,"value":6032},{"type":39,"tag":1135,"props":6154,"children":6155},{"style":1142},[6156],{"type":44,"value":499},{"type":39,"tag":1135,"props":6158,"children":6159},{"style":1148},[6160],{"type":44,"value":6119},{"type":39,"tag":1135,"props":6162,"children":6163},{"style":1142},[6164],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6166,"children":6168},{"class":1137,"line":6167},60,[6169,6173,6177,6181,6185,6189,6193,6198,6202,6206,6210,6215,6219,6223,6227,6231,6235,6239,6243,6247,6251,6255,6259,6263,6267],{"type":39,"tag":1135,"props":6170,"children":6171},{"style":1341},[6172],{"type":44,"value":4711},{"type":39,"tag":1135,"props":6174,"children":6175},{"style":1540},[6176],{"type":44,"value":2191},{"type":39,"tag":1135,"props":6178,"children":6179},{"style":1148},[6180],{"type":44,"value":6023},{"type":39,"tag":1135,"props":6182,"children":6183},{"style":1142},[6184],{"type":44,"value":499},{"type":39,"tag":1135,"props":6186,"children":6187},{"style":1148},[6188],{"type":44,"value":6032},{"type":39,"tag":1135,"props":6190,"children":6191},{"style":1142},[6192],{"type":44,"value":499},{"type":39,"tag":1135,"props":6194,"children":6195},{"style":1148},[6196],{"type":44,"value":6197},"AGENT_MAX_STEPS",{"type":39,"tag":1135,"props":6199,"children":6200},{"style":1540},[6201],{"type":44,"value":2384},{"type":39,"tag":1135,"props":6203,"children":6204},{"style":1148},[6205],{"type":44,"value":5974},{"type":39,"tag":1135,"props":6207,"children":6208},{"style":1142},[6209],{"type":44,"value":499},{"type":39,"tag":1135,"props":6211,"children":6212},{"style":1148},[6213],{"type":44,"value":6214},"maxSteps",{"type":39,"tag":1135,"props":6216,"children":6217},{"style":1142},[6218],{"type":44,"value":1984},{"type":39,"tag":1135,"props":6220,"children":6221},{"style":1179},[6222],{"type":44,"value":4617},{"type":39,"tag":1135,"props":6224,"children":6225},{"style":1540},[6226],{"type":44,"value":1528},{"type":39,"tag":1135,"props":6228,"children":6229},{"style":1142},[6230],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6232,"children":6233},{"style":1164},[6234],{"type":44,"value":6197},{"type":39,"tag":1135,"props":6236,"children":6237},{"style":1142},[6238],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6240,"children":6241},{"style":1142},[6242],{"type":44,"value":1923},{"type":39,"tag":1135,"props":6244,"children":6245},{"style":1148},[6246],{"type":44,"value":6066},{"type":39,"tag":1135,"props":6248,"children":6249},{"style":1142},[6250],{"type":44,"value":499},{"type":39,"tag":1135,"props":6252,"children":6253},{"style":1148},[6254],{"type":44,"value":6032},{"type":39,"tag":1135,"props":6256,"children":6257},{"style":1142},[6258],{"type":44,"value":499},{"type":39,"tag":1135,"props":6260,"children":6261},{"style":1148},[6262],{"type":44,"value":6197},{"type":39,"tag":1135,"props":6264,"children":6265},{"style":1540},[6266],{"type":44,"value":1698},{"type":39,"tag":1135,"props":6268,"children":6269},{"style":1142},[6270],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6272,"children":6274},{"class":1137,"line":6273},61,[6275,6279,6283,6287,6291,6295,6299,6304,6308,6312,6316,6321,6325,6329,6333,6337,6341,6345,6349,6353,6357,6361,6365,6369,6373],{"type":39,"tag":1135,"props":6276,"children":6277},{"style":1341},[6278],{"type":44,"value":4711},{"type":39,"tag":1135,"props":6280,"children":6281},{"style":1540},[6282],{"type":44,"value":2191},{"type":39,"tag":1135,"props":6284,"children":6285},{"style":1148},[6286],{"type":44,"value":6023},{"type":39,"tag":1135,"props":6288,"children":6289},{"style":1142},[6290],{"type":44,"value":499},{"type":39,"tag":1135,"props":6292,"children":6293},{"style":1148},[6294],{"type":44,"value":6032},{"type":39,"tag":1135,"props":6296,"children":6297},{"style":1142},[6298],{"type":44,"value":499},{"type":39,"tag":1135,"props":6300,"children":6301},{"style":1148},[6302],{"type":44,"value":6303},"AGENT_MAX_COST",{"type":39,"tag":1135,"props":6305,"children":6306},{"style":1540},[6307],{"type":44,"value":2384},{"type":39,"tag":1135,"props":6309,"children":6310},{"style":1148},[6311],{"type":44,"value":5974},{"type":39,"tag":1135,"props":6313,"children":6314},{"style":1142},[6315],{"type":44,"value":499},{"type":39,"tag":1135,"props":6317,"children":6318},{"style":1148},[6319],{"type":44,"value":6320},"maxCost",{"type":39,"tag":1135,"props":6322,"children":6323},{"style":1142},[6324],{"type":44,"value":1984},{"type":39,"tag":1135,"props":6326,"children":6327},{"style":1179},[6328],{"type":44,"value":4617},{"type":39,"tag":1135,"props":6330,"children":6331},{"style":1540},[6332],{"type":44,"value":1528},{"type":39,"tag":1135,"props":6334,"children":6335},{"style":1142},[6336],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6338,"children":6339},{"style":1164},[6340],{"type":44,"value":6303},{"type":39,"tag":1135,"props":6342,"children":6343},{"style":1142},[6344],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6346,"children":6347},{"style":1142},[6348],{"type":44,"value":1923},{"type":39,"tag":1135,"props":6350,"children":6351},{"style":1148},[6352],{"type":44,"value":6066},{"type":39,"tag":1135,"props":6354,"children":6355},{"style":1142},[6356],{"type":44,"value":499},{"type":39,"tag":1135,"props":6358,"children":6359},{"style":1148},[6360],{"type":44,"value":6032},{"type":39,"tag":1135,"props":6362,"children":6363},{"style":1142},[6364],{"type":44,"value":499},{"type":39,"tag":1135,"props":6366,"children":6367},{"style":1148},[6368],{"type":44,"value":6303},{"type":39,"tag":1135,"props":6370,"children":6371},{"style":1540},[6372],{"type":44,"value":1698},{"type":39,"tag":1135,"props":6374,"children":6375},{"style":1142},[6376],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6378,"children":6380},{"class":1137,"line":6379},62,[6381],{"type":39,"tag":1135,"props":6382,"children":6383},{"emptyLinePlaceholder":1430},[6384],{"type":44,"value":1433},{"type":39,"tag":1135,"props":6386,"children":6388},{"class":1137,"line":6387},63,[6389,6394,6398,6402,6406,6410,6414,6418,6422],{"type":39,"tag":1135,"props":6390,"children":6391},{"style":1148},[6392],{"type":44,"value":6393},"  config",{"type":39,"tag":1135,"props":6395,"children":6396},{"style":1142},[6397],{"type":44,"value":1984},{"type":39,"tag":1135,"props":6399,"children":6400},{"style":1142},[6401],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6403,"children":6404},{"style":1142},[6405],{"type":44,"value":5775},{"type":39,"tag":1135,"props":6407,"children":6408},{"style":1148},[6409],{"type":44,"value":5974},{"type":39,"tag":1135,"props":6411,"children":6412},{"style":1142},[6413],{"type":44,"value":1923},{"type":39,"tag":1135,"props":6415,"children":6416},{"style":1142},[6417],{"type":44,"value":5775},{"type":39,"tag":1135,"props":6419,"children":6420},{"style":1148},[6421],{"type":44,"value":5677},{"type":39,"tag":1135,"props":6423,"children":6424},{"style":1142},[6425],{"type":44,"value":3319},{"type":39,"tag":1135,"props":6427,"children":6429},{"class":1137,"line":6428},64,[6430,6434,6438,6442,6446,6450,6454,6458,6463,6468,6473,6478,6482,6487,6491,6495,6499,6503,6508,6512,6516],{"type":39,"tag":1135,"props":6431,"children":6432},{"style":1341},[6433],{"type":44,"value":4711},{"type":39,"tag":1135,"props":6435,"children":6436},{"style":1540},[6437],{"type":44,"value":2191},{"type":39,"tag":1135,"props":6439,"children":6440},{"style":1142},[6441],{"type":44,"value":4720},{"type":39,"tag":1135,"props":6443,"children":6444},{"style":1148},[6445],{"type":44,"value":5974},{"type":39,"tag":1135,"props":6447,"children":6448},{"style":1142},[6449],{"type":44,"value":499},{"type":39,"tag":1135,"props":6451,"children":6452},{"style":1148},[6453],{"type":44,"value":6057},{"type":39,"tag":1135,"props":6455,"children":6456},{"style":1142},[6457],{"type":44,"value":3033},{"type":39,"tag":1135,"props":6459,"children":6460},{"style":1142},[6461],{"type":44,"value":6462}," !",{"type":39,"tag":1135,"props":6464,"children":6465},{"style":1148},[6466],{"type":44,"value":6467},"opts",{"type":39,"tag":1135,"props":6469,"children":6470},{"style":1142},[6471],{"type":44,"value":6472},"?.",{"type":39,"tag":1135,"props":6474,"children":6475},{"style":1148},[6476],{"type":44,"value":6477},"skipApiKey",{"type":39,"tag":1135,"props":6479,"children":6480},{"style":1540},[6481],{"type":44,"value":2384},{"type":39,"tag":1135,"props":6483,"children":6484},{"style":1341},[6485],{"type":44,"value":6486},"throw",{"type":39,"tag":1135,"props":6488,"children":6489},{"style":1142},[6490],{"type":44,"value":4785},{"type":39,"tag":1135,"props":6492,"children":6493},{"style":1179},[6494],{"type":44,"value":4790},{"type":39,"tag":1135,"props":6496,"children":6497},{"style":1540},[6498],{"type":44,"value":1528},{"type":39,"tag":1135,"props":6500,"children":6501},{"style":1142},[6502],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6504,"children":6505},{"style":1164},[6506],{"type":44,"value":6507},"OPENROUTER_API_KEY is required.",{"type":39,"tag":1135,"props":6509,"children":6510},{"style":1142},[6511],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6513,"children":6514},{"style":1540},[6515],{"type":44,"value":1698},{"type":39,"tag":1135,"props":6517,"children":6518},{"style":1142},[6519],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6521,"children":6523},{"class":1137,"line":6522},65,[6524,6528,6532],{"type":39,"tag":1135,"props":6525,"children":6526},{"style":1341},[6527],{"type":44,"value":4860},{"type":39,"tag":1135,"props":6529,"children":6530},{"style":1148},[6531],{"type":44,"value":5762},{"type":39,"tag":1135,"props":6533,"children":6534},{"style":1142},[6535],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6537,"children":6539},{"class":1137,"line":6538},66,[6540],{"type":39,"tag":1135,"props":6541,"children":6542},{"style":1142},[6543],{"type":44,"value":4083},{"type":39,"tag":243,"props":6545,"children":6547},{"id":6546},"srctoolsindexts",[6548],{"type":44,"value":6549},"src\u002Ftools\u002Findex.ts",{"type":39,"tag":47,"props":6551,"children":6552},{},[6553],{"type":44,"value":6554},"Adapt imports based on checklist selections. This example includes all default-ON tools:",{"type":39,"tag":1109,"props":6556,"children":6558},{"className":1330,"code":6557,"language":15,"meta":1117,"style":1117},"import { serverTool } from '@openrouter\u002Fagent';\nimport { fileReadTool } from '.\u002Ffile-read.js';\nimport { fileWriteTool } from '.\u002Ffile-write.js';\nimport { fileEditTool } from '.\u002Ffile-edit.js';\nimport { globTool } from '.\u002Fglob.js';\nimport { grepTool } from '.\u002Fgrep.js';\nimport { listDirTool } from '.\u002Flist-dir.js';\nimport { shellTool } from '.\u002Fshell.js';\nimport { myCustomTool } from '.\u002Fcustom.js';\n\n\u002F\u002F `as const` unlocks full type inference for tool calls downstream.\n\u002F\u002F See: https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fagent-sdk\u002Fcall-model\u002Ftools\nexport const tools = [\n  \u002F\u002F User-defined tools — executed client-side\n  fileReadTool,\n  fileWriteTool,\n  fileEditTool,\n  globTool,\n  grepTool,\n  listDirTool,\n  shellTool,\n  myCustomTool,\n\n  \u002F\u002F Server tools — executed by OpenRouter, no client implementation needed\n  serverTool({ type: 'openrouter:web_search' }),\n  serverTool({ type: 'openrouter:web_fetch' }),\n  serverTool({ type: 'openrouter:datetime', parameters: { timezone: 'UTC' } }),\n] as const;\n",[6559],{"type":39,"tag":53,"props":6560,"children":6561},{"__ignoreMap":1117},[6562,6602,6643,6684,6725,6766,6807,6848,6889,6930,6937,6945,6953,6977,6985,6997,7009,7021,7033,7045,7057,7069,7081,7088,7096,7146,7193,7283],{"type":39,"tag":1135,"props":6563,"children":6564},{"class":1137,"line":1138},[6565,6569,6573,6578,6582,6586,6590,6594,6598],{"type":39,"tag":1135,"props":6566,"children":6567},{"style":1341},[6568],{"type":44,"value":1344},{"type":39,"tag":1135,"props":6570,"children":6571},{"style":1142},[6572],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6574,"children":6575},{"style":1148},[6576],{"type":44,"value":6577}," serverTool",{"type":39,"tag":1135,"props":6579,"children":6580},{"style":1142},[6581],{"type":44,"value":1359},{"type":39,"tag":1135,"props":6583,"children":6584},{"style":1341},[6585],{"type":44,"value":1364},{"type":39,"tag":1135,"props":6587,"children":6588},{"style":1142},[6589],{"type":44,"value":1369},{"type":39,"tag":1135,"props":6591,"children":6592},{"style":1164},[6593],{"type":44,"value":58},{"type":39,"tag":1135,"props":6595,"children":6596},{"style":1142},[6597],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6599,"children":6600},{"style":1142},[6601],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6603,"children":6604},{"class":1137,"line":1175},[6605,6609,6613,6618,6622,6626,6630,6635,6639],{"type":39,"tag":1135,"props":6606,"children":6607},{"style":1341},[6608],{"type":44,"value":1344},{"type":39,"tag":1135,"props":6610,"children":6611},{"style":1142},[6612],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6614,"children":6615},{"style":1148},[6616],{"type":44,"value":6617}," fileReadTool",{"type":39,"tag":1135,"props":6619,"children":6620},{"style":1142},[6621],{"type":44,"value":1359},{"type":39,"tag":1135,"props":6623,"children":6624},{"style":1341},[6625],{"type":44,"value":1364},{"type":39,"tag":1135,"props":6627,"children":6628},{"style":1142},[6629],{"type":44,"value":1369},{"type":39,"tag":1135,"props":6631,"children":6632},{"style":1164},[6633],{"type":44,"value":6634},".\u002Ffile-read.js",{"type":39,"tag":1135,"props":6636,"children":6637},{"style":1142},[6638],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6640,"children":6641},{"style":1142},[6642],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6644,"children":6645},{"class":1137,"line":1219},[6646,6650,6654,6659,6663,6667,6671,6676,6680],{"type":39,"tag":1135,"props":6647,"children":6648},{"style":1341},[6649],{"type":44,"value":1344},{"type":39,"tag":1135,"props":6651,"children":6652},{"style":1142},[6653],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6655,"children":6656},{"style":1148},[6657],{"type":44,"value":6658}," fileWriteTool",{"type":39,"tag":1135,"props":6660,"children":6661},{"style":1142},[6662],{"type":44,"value":1359},{"type":39,"tag":1135,"props":6664,"children":6665},{"style":1341},[6666],{"type":44,"value":1364},{"type":39,"tag":1135,"props":6668,"children":6669},{"style":1142},[6670],{"type":44,"value":1369},{"type":39,"tag":1135,"props":6672,"children":6673},{"style":1164},[6674],{"type":44,"value":6675},".\u002Ffile-write.js",{"type":39,"tag":1135,"props":6677,"children":6678},{"style":1142},[6679],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6681,"children":6682},{"style":1142},[6683],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6685,"children":6686},{"class":1137,"line":1436},[6687,6691,6695,6700,6704,6708,6712,6717,6721],{"type":39,"tag":1135,"props":6688,"children":6689},{"style":1341},[6690],{"type":44,"value":1344},{"type":39,"tag":1135,"props":6692,"children":6693},{"style":1142},[6694],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6696,"children":6697},{"style":1148},[6698],{"type":44,"value":6699}," fileEditTool",{"type":39,"tag":1135,"props":6701,"children":6702},{"style":1142},[6703],{"type":44,"value":1359},{"type":39,"tag":1135,"props":6705,"children":6706},{"style":1341},[6707],{"type":44,"value":1364},{"type":39,"tag":1135,"props":6709,"children":6710},{"style":1142},[6711],{"type":44,"value":1369},{"type":39,"tag":1135,"props":6713,"children":6714},{"style":1164},[6715],{"type":44,"value":6716},".\u002Ffile-edit.js",{"type":39,"tag":1135,"props":6718,"children":6719},{"style":1142},[6720],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6722,"children":6723},{"style":1142},[6724],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6726,"children":6727},{"class":1137,"line":1466},[6728,6732,6736,6741,6745,6749,6753,6758,6762],{"type":39,"tag":1135,"props":6729,"children":6730},{"style":1341},[6731],{"type":44,"value":1344},{"type":39,"tag":1135,"props":6733,"children":6734},{"style":1142},[6735],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6737,"children":6738},{"style":1148},[6739],{"type":44,"value":6740}," globTool",{"type":39,"tag":1135,"props":6742,"children":6743},{"style":1142},[6744],{"type":44,"value":1359},{"type":39,"tag":1135,"props":6746,"children":6747},{"style":1341},[6748],{"type":44,"value":1364},{"type":39,"tag":1135,"props":6750,"children":6751},{"style":1142},[6752],{"type":44,"value":1369},{"type":39,"tag":1135,"props":6754,"children":6755},{"style":1164},[6756],{"type":44,"value":6757},".\u002Fglob.js",{"type":39,"tag":1135,"props":6759,"children":6760},{"style":1142},[6761],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6763,"children":6764},{"style":1142},[6765],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6767,"children":6768},{"class":1137,"line":1491},[6769,6773,6777,6782,6786,6790,6794,6799,6803],{"type":39,"tag":1135,"props":6770,"children":6771},{"style":1341},[6772],{"type":44,"value":1344},{"type":39,"tag":1135,"props":6774,"children":6775},{"style":1142},[6776],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6778,"children":6779},{"style":1148},[6780],{"type":44,"value":6781}," grepTool",{"type":39,"tag":1135,"props":6783,"children":6784},{"style":1142},[6785],{"type":44,"value":1359},{"type":39,"tag":1135,"props":6787,"children":6788},{"style":1341},[6789],{"type":44,"value":1364},{"type":39,"tag":1135,"props":6791,"children":6792},{"style":1142},[6793],{"type":44,"value":1369},{"type":39,"tag":1135,"props":6795,"children":6796},{"style":1164},[6797],{"type":44,"value":6798},".\u002Fgrep.js",{"type":39,"tag":1135,"props":6800,"children":6801},{"style":1142},[6802],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6804,"children":6805},{"style":1142},[6806],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6808,"children":6809},{"class":1137,"line":1499},[6810,6814,6818,6823,6827,6831,6835,6840,6844],{"type":39,"tag":1135,"props":6811,"children":6812},{"style":1341},[6813],{"type":44,"value":1344},{"type":39,"tag":1135,"props":6815,"children":6816},{"style":1142},[6817],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6819,"children":6820},{"style":1148},[6821],{"type":44,"value":6822}," listDirTool",{"type":39,"tag":1135,"props":6824,"children":6825},{"style":1142},[6826],{"type":44,"value":1359},{"type":39,"tag":1135,"props":6828,"children":6829},{"style":1341},[6830],{"type":44,"value":1364},{"type":39,"tag":1135,"props":6832,"children":6833},{"style":1142},[6834],{"type":44,"value":1369},{"type":39,"tag":1135,"props":6836,"children":6837},{"style":1164},[6838],{"type":44,"value":6839},".\u002Flist-dir.js",{"type":39,"tag":1135,"props":6841,"children":6842},{"style":1142},[6843],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6845,"children":6846},{"style":1142},[6847],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6849,"children":6850},{"class":1137,"line":1536},[6851,6855,6859,6864,6868,6872,6876,6881,6885],{"type":39,"tag":1135,"props":6852,"children":6853},{"style":1341},[6854],{"type":44,"value":1344},{"type":39,"tag":1135,"props":6856,"children":6857},{"style":1142},[6858],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6860,"children":6861},{"style":1148},[6862],{"type":44,"value":6863}," shellTool",{"type":39,"tag":1135,"props":6865,"children":6866},{"style":1142},[6867],{"type":44,"value":1359},{"type":39,"tag":1135,"props":6869,"children":6870},{"style":1341},[6871],{"type":44,"value":1364},{"type":39,"tag":1135,"props":6873,"children":6874},{"style":1142},[6875],{"type":44,"value":1369},{"type":39,"tag":1135,"props":6877,"children":6878},{"style":1164},[6879],{"type":44,"value":6880},".\u002Fshell.js",{"type":39,"tag":1135,"props":6882,"children":6883},{"style":1142},[6884],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6886,"children":6887},{"style":1142},[6888],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6890,"children":6891},{"class":1137,"line":1569},[6892,6896,6900,6905,6909,6913,6917,6922,6926],{"type":39,"tag":1135,"props":6893,"children":6894},{"style":1341},[6895],{"type":44,"value":1344},{"type":39,"tag":1135,"props":6897,"children":6898},{"style":1142},[6899],{"type":44,"value":1349},{"type":39,"tag":1135,"props":6901,"children":6902},{"style":1148},[6903],{"type":44,"value":6904}," myCustomTool",{"type":39,"tag":1135,"props":6906,"children":6907},{"style":1142},[6908],{"type":44,"value":1359},{"type":39,"tag":1135,"props":6910,"children":6911},{"style":1341},[6912],{"type":44,"value":1364},{"type":39,"tag":1135,"props":6914,"children":6915},{"style":1142},[6916],{"type":44,"value":1369},{"type":39,"tag":1135,"props":6918,"children":6919},{"style":1164},[6920],{"type":44,"value":6921},".\u002Fcustom.js",{"type":39,"tag":1135,"props":6923,"children":6924},{"style":1142},[6925],{"type":44,"value":1378},{"type":39,"tag":1135,"props":6927,"children":6928},{"style":1142},[6929],{"type":44,"value":1383},{"type":39,"tag":1135,"props":6931,"children":6932},{"class":1137,"line":1583},[6933],{"type":39,"tag":1135,"props":6934,"children":6935},{"emptyLinePlaceholder":1430},[6936],{"type":44,"value":1433},{"type":39,"tag":1135,"props":6938,"children":6939},{"class":1137,"line":1605},[6940],{"type":39,"tag":1135,"props":6941,"children":6942},{"style":3549},[6943],{"type":44,"value":6944},"\u002F\u002F `as const` unlocks full type inference for tool calls downstream.\n",{"type":39,"tag":1135,"props":6946,"children":6947},{"class":1137,"line":1639},[6948],{"type":39,"tag":1135,"props":6949,"children":6950},{"style":3549},[6951],{"type":44,"value":6952},"\u002F\u002F See: https:\u002F\u002Fopenrouter.ai\u002Fdocs\u002Fagent-sdk\u002Fcall-model\u002Ftools\n",{"type":39,"tag":1135,"props":6954,"children":6955},{"class":1137,"line":1705},[6956,6960,6964,6969,6973],{"type":39,"tag":1135,"props":6957,"children":6958},{"style":1341},[6959],{"type":44,"value":1505},{"type":39,"tag":1135,"props":6961,"children":6962},{"style":1440},[6963],{"type":44,"value":1510},{"type":39,"tag":1135,"props":6965,"children":6966},{"style":1148},[6967],{"type":44,"value":6968}," tools ",{"type":39,"tag":1135,"props":6970,"children":6971},{"style":1142},[6972],{"type":44,"value":1453},{"type":39,"tag":1135,"props":6974,"children":6975},{"style":1148},[6976],{"type":44,"value":5258},{"type":39,"tag":1135,"props":6978,"children":6979},{"class":1137,"line":1781},[6980],{"type":39,"tag":1135,"props":6981,"children":6982},{"style":3549},[6983],{"type":44,"value":6984},"  \u002F\u002F User-defined tools — executed client-side\n",{"type":39,"tag":1135,"props":6986,"children":6987},{"class":1137,"line":1875},[6988,6993],{"type":39,"tag":1135,"props":6989,"children":6990},{"style":1148},[6991],{"type":44,"value":6992},"  fileReadTool",{"type":39,"tag":1135,"props":6994,"children":6995},{"style":1142},[6996],{"type":44,"value":1566},{"type":39,"tag":1135,"props":6998,"children":6999},{"class":1137,"line":1892},[7000,7005],{"type":39,"tag":1135,"props":7001,"children":7002},{"style":1148},[7003],{"type":44,"value":7004},"  fileWriteTool",{"type":39,"tag":1135,"props":7006,"children":7007},{"style":1142},[7008],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7010,"children":7011},{"class":1137,"line":1955},[7012,7017],{"type":39,"tag":1135,"props":7013,"children":7014},{"style":1148},[7015],{"type":44,"value":7016},"  fileEditTool",{"type":39,"tag":1135,"props":7018,"children":7019},{"style":1142},[7020],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7022,"children":7023},{"class":1137,"line":1968},[7024,7029],{"type":39,"tag":1135,"props":7025,"children":7026},{"style":1148},[7027],{"type":44,"value":7028},"  globTool",{"type":39,"tag":1135,"props":7030,"children":7031},{"style":1142},[7032],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7034,"children":7035},{"class":1137,"line":2035},[7036,7041],{"type":39,"tag":1135,"props":7037,"children":7038},{"style":1148},[7039],{"type":44,"value":7040},"  grepTool",{"type":39,"tag":1135,"props":7042,"children":7043},{"style":1142},[7044],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7046,"children":7047},{"class":1137,"line":2090},[7048,7053],{"type":39,"tag":1135,"props":7049,"children":7050},{"style":1148},[7051],{"type":44,"value":7052},"  listDirTool",{"type":39,"tag":1135,"props":7054,"children":7055},{"style":1142},[7056],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7058,"children":7059},{"class":1137,"line":2144},[7060,7065],{"type":39,"tag":1135,"props":7061,"children":7062},{"style":1148},[7063],{"type":44,"value":7064},"  shellTool",{"type":39,"tag":1135,"props":7066,"children":7067},{"style":1142},[7068],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7070,"children":7071},{"class":1137,"line":2238},[7072,7077],{"type":39,"tag":1135,"props":7073,"children":7074},{"style":1148},[7075],{"type":44,"value":7076},"  myCustomTool",{"type":39,"tag":1135,"props":7078,"children":7079},{"style":1142},[7080],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7082,"children":7083},{"class":1137,"line":2264},[7084],{"type":39,"tag":1135,"props":7085,"children":7086},{"emptyLinePlaceholder":1430},[7087],{"type":44,"value":1433},{"type":39,"tag":1135,"props":7089,"children":7090},{"class":1137,"line":2347},[7091],{"type":39,"tag":1135,"props":7092,"children":7093},{"style":3549},[7094],{"type":44,"value":7095},"  \u002F\u002F Server tools — executed by OpenRouter, no client implementation needed\n",{"type":39,"tag":1135,"props":7097,"children":7098},{"class":1137,"line":2401},[7099,7104,7108,7113,7118,7122,7126,7130,7134,7138,7142],{"type":39,"tag":1135,"props":7100,"children":7101},{"style":1179},[7102],{"type":44,"value":7103},"  serverTool",{"type":39,"tag":1135,"props":7105,"children":7106},{"style":1148},[7107],{"type":44,"value":1528},{"type":39,"tag":1135,"props":7109,"children":7110},{"style":1142},[7111],{"type":44,"value":7112},"{",{"type":39,"tag":1135,"props":7114,"children":7115},{"style":1540},[7116],{"type":44,"value":7117}," type",{"type":39,"tag":1135,"props":7119,"children":7120},{"style":1142},[7121],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7123,"children":7124},{"style":1142},[7125],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7127,"children":7128},{"style":1164},[7129],{"type":44,"value":410},{"type":39,"tag":1135,"props":7131,"children":7132},{"style":1142},[7133],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7135,"children":7136},{"style":1142},[7137],{"type":44,"value":1359},{"type":39,"tag":1135,"props":7139,"children":7140},{"style":1148},[7141],{"type":44,"value":1698},{"type":39,"tag":1135,"props":7143,"children":7144},{"style":1142},[7145],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7147,"children":7148},{"class":1137,"line":27},[7149,7153,7157,7161,7165,7169,7173,7177,7181,7185,7189],{"type":39,"tag":1135,"props":7150,"children":7151},{"style":1179},[7152],{"type":44,"value":7103},{"type":39,"tag":1135,"props":7154,"children":7155},{"style":1148},[7156],{"type":44,"value":1528},{"type":39,"tag":1135,"props":7158,"children":7159},{"style":1142},[7160],{"type":44,"value":7112},{"type":39,"tag":1135,"props":7162,"children":7163},{"style":1540},[7164],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7166,"children":7167},{"style":1142},[7168],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7170,"children":7171},{"style":1142},[7172],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7174,"children":7175},{"style":1164},[7176],{"type":44,"value":431},{"type":39,"tag":1135,"props":7178,"children":7179},{"style":1142},[7180],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7182,"children":7183},{"style":1142},[7184],{"type":44,"value":1359},{"type":39,"tag":1135,"props":7186,"children":7187},{"style":1148},[7188],{"type":44,"value":1698},{"type":39,"tag":1135,"props":7190,"children":7191},{"style":1142},[7192],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7194,"children":7195},{"class":1137,"line":2514},[7196,7200,7204,7208,7212,7216,7220,7224,7228,7232,7237,7241,7245,7250,7254,7258,7263,7267,7271,7275,7279],{"type":39,"tag":1135,"props":7197,"children":7198},{"style":1179},[7199],{"type":44,"value":7103},{"type":39,"tag":1135,"props":7201,"children":7202},{"style":1148},[7203],{"type":44,"value":1528},{"type":39,"tag":1135,"props":7205,"children":7206},{"style":1142},[7207],{"type":44,"value":7112},{"type":39,"tag":1135,"props":7209,"children":7210},{"style":1540},[7211],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7213,"children":7214},{"style":1142},[7215],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7217,"children":7218},{"style":1142},[7219],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7221,"children":7222},{"style":1164},[7223],{"type":44,"value":452},{"type":39,"tag":1135,"props":7225,"children":7226},{"style":1142},[7227],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7229,"children":7230},{"style":1142},[7231],{"type":44,"value":1923},{"type":39,"tag":1135,"props":7233,"children":7234},{"style":1540},[7235],{"type":44,"value":7236}," parameters",{"type":39,"tag":1135,"props":7238,"children":7239},{"style":1142},[7240],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7242,"children":7243},{"style":1142},[7244],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7246,"children":7247},{"style":1540},[7248],{"type":44,"value":7249}," timezone",{"type":39,"tag":1135,"props":7251,"children":7252},{"style":1142},[7253],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7255,"children":7256},{"style":1142},[7257],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7259,"children":7260},{"style":1164},[7261],{"type":44,"value":7262},"UTC",{"type":39,"tag":1135,"props":7264,"children":7265},{"style":1142},[7266],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7268,"children":7269},{"style":1142},[7270],{"type":44,"value":1359},{"type":39,"tag":1135,"props":7272,"children":7273},{"style":1142},[7274],{"type":44,"value":1359},{"type":39,"tag":1135,"props":7276,"children":7277},{"style":1148},[7278],{"type":44,"value":1698},{"type":39,"tag":1135,"props":7280,"children":7281},{"style":1142},[7282],{"type":44,"value":1566},{"type":39,"tag":1135,"props":7284,"children":7285},{"class":1137,"line":2531},[7286,7291,7296,7300],{"type":39,"tag":1135,"props":7287,"children":7288},{"style":1148},[7289],{"type":44,"value":7290},"] ",{"type":39,"tag":1135,"props":7292,"children":7293},{"style":1341},[7294],{"type":44,"value":7295},"as",{"type":39,"tag":1135,"props":7297,"children":7298},{"style":1440},[7299],{"type":44,"value":1510},{"type":39,"tag":1135,"props":7301,"children":7302},{"style":1142},[7303],{"type":44,"value":1383},{"type":39,"tag":243,"props":7305,"children":7307},{"id":7306},"srcagentts",[7308],{"type":44,"value":7309},"src\u002Fagent.ts",{"type":39,"tag":1109,"props":7311,"children":7313},{"className":1330,"code":7312,"language":15,"meta":1117,"style":1117},"import { OpenRouter } from '@openrouter\u002Fagent';\nimport type { Item } from '@openrouter\u002Fagent';\nimport { stepCountIs, maxCost } from '@openrouter\u002Fagent\u002Fstop-conditions';\nimport type { AgentConfig } from '.\u002Fconfig.js';\nimport { tools } from '.\u002Ftools\u002Findex.js';\n\nexport type ChatMessage = { role: 'user' | 'assistant' | 'system'; content: string };\n\nexport type AgentEvent =\n  | { type: 'text'; delta: string }\n  | { type: 'tool_call'; name: string; callId: string; args: Record\u003Cstring, unknown> }\n  | { type: 'tool_result'; name: string; callId: string; output: string }\n  | { type: 'reasoning'; delta: string }\n  | { type: 'turn_end' }\n  | { type: 'done'; usage: { inputTokens?: number; outputTokens?: number; totalTokens?: number } | null | undefined; durationMs: number };\n\nexport async function runAgent(\n  config: AgentConfig,\n  input: string | ChatMessage[],\n  options?: { onEvent?: (event: AgentEvent) => void; signal?: AbortSignal },\n) {\n  const startedAt = Date.now();\n  const client = new OpenRouter({ apiKey: config.apiKey });\n\n  const result = client.callModel({\n    model: config.model,\n    instructions: config.systemPrompt.replace('{cwd}', process.cwd()),\n    input: input as string | Item[],\n    tools,\n    stopWhen: [stepCountIs(config.maxSteps), maxCost(config.maxCost)],\n  });\n\n  \u002F\u002F Wire AbortSignal → result.cancel() so the underlying network stream\n  \u002F\u002F actually closes (not just the iterator we're about to walk). Also\n  \u002F\u002F handle the pre-aborted case: addEventListener('abort') does not fire\n  \u002F\u002F for signals already in the aborted state.\n  const onAbort = () => result.cancel();\n  options?.signal?.addEventListener('abort', onAbort);\n  if (options?.signal?.aborted) result.cancel();\n\n  \u002F\u002F Draining getTextStream concurrently with getItemsStream reads the\n  \u002F\u002F stream dry, so getResponse().outputText ends up empty. We accumulate\n  \u002F\u002F text deltas here as a source of truth for the final text.\n  let accumulatedText = '';\n\n  try {\n    if (options?.onEvent) {\n      \u002F\u002F Run two streams concurrently: getTextStream for text deltas (no\n      \u002F\u002F bookkeeping required) and getItemsStream filtered to tool events.\n      \u002F\u002F The SDK's ReusableReadableStream allows concurrent consumption.\n      const callNames = new Map\u003Cstring, string>();\n\n      const streamText = async () => {\n        for await (const delta of result.getTextStream()) {\n          if (options?.signal?.aborted) break;\n          options.onEvent!({ type: 'text', delta });\n          accumulatedText += delta;\n        }\n      };\n\n      const streamTools = async () => {\n        for await (const item of result.getItemsStream()) {\n          if (options?.signal?.aborted) break;\n          if (item.type === 'function_call') {\n            callNames.set(item.callId, item.name);\n            if (item.status === 'completed') {\n              const args = (() => { try { return item.arguments ? JSON.parse(item.arguments) : {}; } catch { return {}; } })();\n              options.onEvent!({ type: 'tool_call', name: item.name, callId: item.callId, args });\n            }\n          } else if (item.type === 'function_call_output') {\n            const out = typeof item.output === 'string' ? item.output : JSON.stringify(item.output);\n            options.onEvent!({\n              type: 'tool_result',\n              name: callNames.get(item.callId) ?? 'unknown',\n              callId: item.callId,\n              output: out.length > 200 ? out.slice(0, 200) + '...' : out,\n            });\n            \u002F\u002F Signal a turn boundary; consumers (e.g. CLI text mode) can\n            \u002F\u002F render a separator. Keeps presentation out of agent.ts.\n            options.onEvent!({ type: 'turn_end' });\n          } else if (item.type === 'reasoning') {\n            const text = item.summary?.map((s: { text: string }) => s.text).join('') ?? '';\n            if (text) options.onEvent!({ type: 'reasoning', delta: text });\n          }\n        }\n      };\n\n      await Promise.all([streamText(), streamTools()]);\n    }\n\n    const response = await result.getResponse();\n    const durationMs = Date.now() - startedAt;\n    const text = accumulatedText || (response.outputText ?? '');\n    options?.onEvent?.({ type: 'done', usage: response.usage, durationMs });\n    return { text, usage: response.usage, output: response.output, durationMs };\n  } finally {\n    options?.signal?.removeEventListener('abort', onAbort);\n  }\n}\n\n\u002F**\n * Retry on 429\u002F5xx — but ONLY if no tool calls have been executed yet.\n * Once a mutating tool (file_write, shell, etc.) has run, replaying the\n * whole agent from the initial prompt would double-execute side effects.\n * For mid-run resilience, use a StateAccessor (see references\u002Fmodules.md).\n *\u002F\nexport async function runAgentWithRetry(\n  config: AgentConfig,\n  input: string | ChatMessage[],\n  options?: { onEvent?: (event: AgentEvent) => void; signal?: AbortSignal; maxRetries?: number },\n) {\n  for (let attempt = 0, max = options?.maxRetries ?? 3; attempt \u003C= max; attempt++) {\n    let toolCallsMade = 0;\n    const wrappedOptions = {\n      ...options,\n      onEvent: (event: AgentEvent) => {\n        if (event.type === 'tool_call') toolCallsMade++;\n        options?.onEvent?.(event);\n      },\n    };\n    try {\n      return await runAgent(config, input, wrappedOptions);\n    } catch (err: any) {\n      const s = err?.status ?? err?.statusCode;\n      const retryable = s === 429 || (s >= 500 && s \u003C 600);\n      if (!retryable || attempt === max || toolCallsMade > 0) throw err;\n      await new Promise((r) => setTimeout(r, Math.min(1000 * 2 ** attempt, 30000)));\n    }\n  }\n  throw new Error('Unreachable');\n}\n",[7314],{"type":39,"tag":53,"props":7315,"children":7316},{"__ignoreMap":1117},[7317,7357,7401,7451,7495,7536,7543,7644,7651,7672,7726,7835,7920,7972,8008,8147,8154,8179,8198,8231,8309,8320,8358,8423,8430,8467,8495,8572,8614,8626,8700,8715,8722,8730,8738,8746,8754,8800,8858,8916,8923,8931,8939,8947,8971,8978,8990,9023,9031,9039,9047,9100,9107,9139,9190,9235,9303,9324,9332,9339,9346,9378,9427,9470,9519,9577,9627,9769,9886,9895,9955,10063,10092,10121,10189,10218,10317,10334,10343,10352,10412,10468,10597,10689,10698,10706,10714,10722,10776,10784,10792,10834,10879,10937,11031,11108,11125,11182,11190,11198,11206,11215,11224,11233,11242,11251,11260,11285,11305,11337,11426,11438,11542,11568,11589,11606,11647,11700,11737,11746,11755,11767,11815,11851,11900,11977,12046,12158,12166,12174,12216],{"type":39,"tag":1135,"props":7318,"children":7319},{"class":1137,"line":1138},[7320,7324,7328,7333,7337,7341,7345,7349,7353],{"type":39,"tag":1135,"props":7321,"children":7322},{"style":1341},[7323],{"type":44,"value":1344},{"type":39,"tag":1135,"props":7325,"children":7326},{"style":1142},[7327],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7329,"children":7330},{"style":1148},[7331],{"type":44,"value":7332}," OpenRouter",{"type":39,"tag":1135,"props":7334,"children":7335},{"style":1142},[7336],{"type":44,"value":1359},{"type":39,"tag":1135,"props":7338,"children":7339},{"style":1341},[7340],{"type":44,"value":1364},{"type":39,"tag":1135,"props":7342,"children":7343},{"style":1142},[7344],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7346,"children":7347},{"style":1164},[7348],{"type":44,"value":58},{"type":39,"tag":1135,"props":7350,"children":7351},{"style":1142},[7352],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7354,"children":7355},{"style":1142},[7356],{"type":44,"value":1383},{"type":39,"tag":1135,"props":7358,"children":7359},{"class":1137,"line":1175},[7360,7364,7368,7372,7377,7381,7385,7389,7393,7397],{"type":39,"tag":1135,"props":7361,"children":7362},{"style":1341},[7363],{"type":44,"value":1344},{"type":39,"tag":1135,"props":7365,"children":7366},{"style":1341},[7367],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7369,"children":7370},{"style":1142},[7371],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7373,"children":7374},{"style":1148},[7375],{"type":44,"value":7376}," Item",{"type":39,"tag":1135,"props":7378,"children":7379},{"style":1142},[7380],{"type":44,"value":1359},{"type":39,"tag":1135,"props":7382,"children":7383},{"style":1341},[7384],{"type":44,"value":1364},{"type":39,"tag":1135,"props":7386,"children":7387},{"style":1142},[7388],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7390,"children":7391},{"style":1164},[7392],{"type":44,"value":58},{"type":39,"tag":1135,"props":7394,"children":7395},{"style":1142},[7396],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7398,"children":7399},{"style":1142},[7400],{"type":44,"value":1383},{"type":39,"tag":1135,"props":7402,"children":7403},{"class":1137,"line":1219},[7404,7408,7412,7417,7421,7426,7430,7434,7438,7443,7447],{"type":39,"tag":1135,"props":7405,"children":7406},{"style":1341},[7407],{"type":44,"value":1344},{"type":39,"tag":1135,"props":7409,"children":7410},{"style":1142},[7411],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7413,"children":7414},{"style":1148},[7415],{"type":44,"value":7416}," stepCountIs",{"type":39,"tag":1135,"props":7418,"children":7419},{"style":1142},[7420],{"type":44,"value":1923},{"type":39,"tag":1135,"props":7422,"children":7423},{"style":1148},[7424],{"type":44,"value":7425}," maxCost",{"type":39,"tag":1135,"props":7427,"children":7428},{"style":1142},[7429],{"type":44,"value":1359},{"type":39,"tag":1135,"props":7431,"children":7432},{"style":1341},[7433],{"type":44,"value":1364},{"type":39,"tag":1135,"props":7435,"children":7436},{"style":1142},[7437],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7439,"children":7440},{"style":1164},[7441],{"type":44,"value":7442},"@openrouter\u002Fagent\u002Fstop-conditions",{"type":39,"tag":1135,"props":7444,"children":7445},{"style":1142},[7446],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7448,"children":7449},{"style":1142},[7450],{"type":44,"value":1383},{"type":39,"tag":1135,"props":7452,"children":7453},{"class":1137,"line":1436},[7454,7458,7462,7466,7470,7474,7478,7482,7487,7491],{"type":39,"tag":1135,"props":7455,"children":7456},{"style":1341},[7457],{"type":44,"value":1344},{"type":39,"tag":1135,"props":7459,"children":7460},{"style":1341},[7461],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7463,"children":7464},{"style":1142},[7465],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7467,"children":7468},{"style":1148},[7469],{"type":44,"value":4899},{"type":39,"tag":1135,"props":7471,"children":7472},{"style":1142},[7473],{"type":44,"value":1359},{"type":39,"tag":1135,"props":7475,"children":7476},{"style":1341},[7477],{"type":44,"value":1364},{"type":39,"tag":1135,"props":7479,"children":7480},{"style":1142},[7481],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7483,"children":7484},{"style":1164},[7485],{"type":44,"value":7486},".\u002Fconfig.js",{"type":39,"tag":1135,"props":7488,"children":7489},{"style":1142},[7490],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7492,"children":7493},{"style":1142},[7494],{"type":44,"value":1383},{"type":39,"tag":1135,"props":7496,"children":7497},{"class":1137,"line":1466},[7498,7502,7506,7511,7515,7519,7523,7528,7532],{"type":39,"tag":1135,"props":7499,"children":7500},{"style":1341},[7501],{"type":44,"value":1344},{"type":39,"tag":1135,"props":7503,"children":7504},{"style":1142},[7505],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7507,"children":7508},{"style":1148},[7509],{"type":44,"value":7510}," tools",{"type":39,"tag":1135,"props":7512,"children":7513},{"style":1142},[7514],{"type":44,"value":1359},{"type":39,"tag":1135,"props":7516,"children":7517},{"style":1341},[7518],{"type":44,"value":1364},{"type":39,"tag":1135,"props":7520,"children":7521},{"style":1142},[7522],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7524,"children":7525},{"style":1164},[7526],{"type":44,"value":7527},".\u002Ftools\u002Findex.js",{"type":39,"tag":1135,"props":7529,"children":7530},{"style":1142},[7531],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7533,"children":7534},{"style":1142},[7535],{"type":44,"value":1383},{"type":39,"tag":1135,"props":7537,"children":7538},{"class":1137,"line":1491},[7539],{"type":39,"tag":1135,"props":7540,"children":7541},{"emptyLinePlaceholder":1430},[7542],{"type":44,"value":1433},{"type":39,"tag":1135,"props":7544,"children":7545},{"class":1137,"line":1499},[7546,7550,7554,7559,7563,7567,7572,7576,7580,7585,7589,7593,7597,7602,7606,7610,7614,7619,7623,7628,7632,7636,7640],{"type":39,"tag":1135,"props":7547,"children":7548},{"style":1341},[7549],{"type":44,"value":1505},{"type":39,"tag":1135,"props":7551,"children":7552},{"style":1440},[7553],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7555,"children":7556},{"style":1209},[7557],{"type":44,"value":7558}," ChatMessage",{"type":39,"tag":1135,"props":7560,"children":7561},{"style":1142},[7562],{"type":44,"value":1984},{"type":39,"tag":1135,"props":7564,"children":7565},{"style":1142},[7566],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7568,"children":7569},{"style":1540},[7570],{"type":44,"value":7571}," role",{"type":39,"tag":1135,"props":7573,"children":7574},{"style":1142},[7575],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7577,"children":7578},{"style":1142},[7579],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7581,"children":7582},{"style":1164},[7583],{"type":44,"value":7584},"user",{"type":39,"tag":1135,"props":7586,"children":7587},{"style":1142},[7588],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7590,"children":7591},{"style":1142},[7592],{"type":44,"value":1201},{"type":39,"tag":1135,"props":7594,"children":7595},{"style":1142},[7596],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7598,"children":7599},{"style":1164},[7600],{"type":44,"value":7601},"assistant",{"type":39,"tag":1135,"props":7603,"children":7604},{"style":1142},[7605],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7607,"children":7608},{"style":1142},[7609],{"type":44,"value":1201},{"type":39,"tag":1135,"props":7611,"children":7612},{"style":1142},[7613],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7615,"children":7616},{"style":1164},[7617],{"type":44,"value":7618},"system",{"type":39,"tag":1135,"props":7620,"children":7621},{"style":1142},[7622],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7624,"children":7625},{"style":1142},[7626],{"type":44,"value":7627},";",{"type":39,"tag":1135,"props":7629,"children":7630},{"style":1540},[7631],{"type":44,"value":1979},{"type":39,"tag":1135,"props":7633,"children":7634},{"style":1142},[7635],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7637,"children":7638},{"style":1209},[7639],{"type":44,"value":2634},{"type":39,"tag":1135,"props":7641,"children":7642},{"style":1142},[7643],{"type":44,"value":3319},{"type":39,"tag":1135,"props":7645,"children":7646},{"class":1137,"line":1536},[7647],{"type":39,"tag":1135,"props":7648,"children":7649},{"emptyLinePlaceholder":1430},[7650],{"type":44,"value":1433},{"type":39,"tag":1135,"props":7652,"children":7653},{"class":1137,"line":1569},[7654,7658,7662,7667],{"type":39,"tag":1135,"props":7655,"children":7656},{"style":1341},[7657],{"type":44,"value":1505},{"type":39,"tag":1135,"props":7659,"children":7660},{"style":1440},[7661],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7663,"children":7664},{"style":1209},[7665],{"type":44,"value":7666}," AgentEvent",{"type":39,"tag":1135,"props":7668,"children":7669},{"style":1142},[7670],{"type":44,"value":7671}," =\n",{"type":39,"tag":1135,"props":7673,"children":7674},{"class":1137,"line":1583},[7675,7680,7684,7688,7692,7696,7700,7704,7708,7713,7717,7721],{"type":39,"tag":1135,"props":7676,"children":7677},{"style":1142},[7678],{"type":44,"value":7679},"  |",{"type":39,"tag":1135,"props":7681,"children":7682},{"style":1142},[7683],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7685,"children":7686},{"style":1540},[7687],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7689,"children":7690},{"style":1142},[7691],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7693,"children":7694},{"style":1142},[7695],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7697,"children":7698},{"style":1164},[7699],{"type":44,"value":44},{"type":39,"tag":1135,"props":7701,"children":7702},{"style":1142},[7703],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7705,"children":7706},{"style":1142},[7707],{"type":44,"value":7627},{"type":39,"tag":1135,"props":7709,"children":7710},{"style":1540},[7711],{"type":44,"value":7712}," delta",{"type":39,"tag":1135,"props":7714,"children":7715},{"style":1142},[7716],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7718,"children":7719},{"style":1209},[7720],{"type":44,"value":2634},{"type":39,"tag":1135,"props":7722,"children":7723},{"style":1142},[7724],{"type":44,"value":7725}," }\n",{"type":39,"tag":1135,"props":7727,"children":7728},{"class":1137,"line":1605},[7729,7733,7737,7741,7745,7749,7754,7758,7762,7767,7771,7775,7779,7784,7788,7792,7796,7801,7805,7810,7814,7818,7822,7827,7831],{"type":39,"tag":1135,"props":7730,"children":7731},{"style":1142},[7732],{"type":44,"value":7679},{"type":39,"tag":1135,"props":7734,"children":7735},{"style":1142},[7736],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7738,"children":7739},{"style":1540},[7740],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7742,"children":7743},{"style":1142},[7744],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7746,"children":7747},{"style":1142},[7748],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7750,"children":7751},{"style":1164},[7752],{"type":44,"value":7753},"tool_call",{"type":39,"tag":1135,"props":7755,"children":7756},{"style":1142},[7757],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7759,"children":7760},{"style":1142},[7761],{"type":44,"value":7627},{"type":39,"tag":1135,"props":7763,"children":7764},{"style":1540},[7765],{"type":44,"value":7766}," name",{"type":39,"tag":1135,"props":7768,"children":7769},{"style":1142},[7770],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7772,"children":7773},{"style":1209},[7774],{"type":44,"value":2634},{"type":39,"tag":1135,"props":7776,"children":7777},{"style":1142},[7778],{"type":44,"value":7627},{"type":39,"tag":1135,"props":7780,"children":7781},{"style":1540},[7782],{"type":44,"value":7783}," callId",{"type":39,"tag":1135,"props":7785,"children":7786},{"style":1142},[7787],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7789,"children":7790},{"style":1209},[7791],{"type":44,"value":2634},{"type":39,"tag":1135,"props":7793,"children":7794},{"style":1142},[7795],{"type":44,"value":7627},{"type":39,"tag":1135,"props":7797,"children":7798},{"style":1540},[7799],{"type":44,"value":7800}," args",{"type":39,"tag":1135,"props":7802,"children":7803},{"style":1142},[7804],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7806,"children":7807},{"style":1209},[7808],{"type":44,"value":7809}," Record",{"type":39,"tag":1135,"props":7811,"children":7812},{"style":1142},[7813],{"type":44,"value":1145},{"type":39,"tag":1135,"props":7815,"children":7816},{"style":1209},[7817],{"type":44,"value":1662},{"type":39,"tag":1135,"props":7819,"children":7820},{"style":1142},[7821],{"type":44,"value":1923},{"type":39,"tag":1135,"props":7823,"children":7824},{"style":1209},[7825],{"type":44,"value":7826}," unknown",{"type":39,"tag":1135,"props":7828,"children":7829},{"style":1142},[7830],{"type":44,"value":1156},{"type":39,"tag":1135,"props":7832,"children":7833},{"style":1142},[7834],{"type":44,"value":7725},{"type":39,"tag":1135,"props":7836,"children":7837},{"class":1137,"line":1639},[7838,7842,7846,7850,7854,7858,7863,7867,7871,7875,7879,7883,7887,7891,7895,7899,7903,7908,7912,7916],{"type":39,"tag":1135,"props":7839,"children":7840},{"style":1142},[7841],{"type":44,"value":7679},{"type":39,"tag":1135,"props":7843,"children":7844},{"style":1142},[7845],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7847,"children":7848},{"style":1540},[7849],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7851,"children":7852},{"style":1142},[7853],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7855,"children":7856},{"style":1142},[7857],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7859,"children":7860},{"style":1164},[7861],{"type":44,"value":7862},"tool_result",{"type":39,"tag":1135,"props":7864,"children":7865},{"style":1142},[7866],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7868,"children":7869},{"style":1142},[7870],{"type":44,"value":7627},{"type":39,"tag":1135,"props":7872,"children":7873},{"style":1540},[7874],{"type":44,"value":7766},{"type":39,"tag":1135,"props":7876,"children":7877},{"style":1142},[7878],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7880,"children":7881},{"style":1209},[7882],{"type":44,"value":2634},{"type":39,"tag":1135,"props":7884,"children":7885},{"style":1142},[7886],{"type":44,"value":7627},{"type":39,"tag":1135,"props":7888,"children":7889},{"style":1540},[7890],{"type":44,"value":7783},{"type":39,"tag":1135,"props":7892,"children":7893},{"style":1142},[7894],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7896,"children":7897},{"style":1209},[7898],{"type":44,"value":2634},{"type":39,"tag":1135,"props":7900,"children":7901},{"style":1142},[7902],{"type":44,"value":7627},{"type":39,"tag":1135,"props":7904,"children":7905},{"style":1540},[7906],{"type":44,"value":7907}," output",{"type":39,"tag":1135,"props":7909,"children":7910},{"style":1142},[7911],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7913,"children":7914},{"style":1209},[7915],{"type":44,"value":2634},{"type":39,"tag":1135,"props":7917,"children":7918},{"style":1142},[7919],{"type":44,"value":7725},{"type":39,"tag":1135,"props":7921,"children":7922},{"class":1137,"line":1705},[7923,7927,7931,7935,7939,7943,7948,7952,7956,7960,7964,7968],{"type":39,"tag":1135,"props":7924,"children":7925},{"style":1142},[7926],{"type":44,"value":7679},{"type":39,"tag":1135,"props":7928,"children":7929},{"style":1142},[7930],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7932,"children":7933},{"style":1540},[7934],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7936,"children":7937},{"style":1142},[7938],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7940,"children":7941},{"style":1142},[7942],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7944,"children":7945},{"style":1164},[7946],{"type":44,"value":7947},"reasoning",{"type":39,"tag":1135,"props":7949,"children":7950},{"style":1142},[7951],{"type":44,"value":1378},{"type":39,"tag":1135,"props":7953,"children":7954},{"style":1142},[7955],{"type":44,"value":7627},{"type":39,"tag":1135,"props":7957,"children":7958},{"style":1540},[7959],{"type":44,"value":7712},{"type":39,"tag":1135,"props":7961,"children":7962},{"style":1142},[7963],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7965,"children":7966},{"style":1209},[7967],{"type":44,"value":2634},{"type":39,"tag":1135,"props":7969,"children":7970},{"style":1142},[7971],{"type":44,"value":7725},{"type":39,"tag":1135,"props":7973,"children":7974},{"class":1137,"line":1781},[7975,7979,7983,7987,7991,7995,8000,8004],{"type":39,"tag":1135,"props":7976,"children":7977},{"style":1142},[7978],{"type":44,"value":7679},{"type":39,"tag":1135,"props":7980,"children":7981},{"style":1142},[7982],{"type":44,"value":1349},{"type":39,"tag":1135,"props":7984,"children":7985},{"style":1540},[7986],{"type":44,"value":7117},{"type":39,"tag":1135,"props":7988,"children":7989},{"style":1142},[7990],{"type":44,"value":1548},{"type":39,"tag":1135,"props":7992,"children":7993},{"style":1142},[7994],{"type":44,"value":1369},{"type":39,"tag":1135,"props":7996,"children":7997},{"style":1164},[7998],{"type":44,"value":7999},"turn_end",{"type":39,"tag":1135,"props":8001,"children":8002},{"style":1142},[8003],{"type":44,"value":1378},{"type":39,"tag":1135,"props":8005,"children":8006},{"style":1142},[8007],{"type":44,"value":7725},{"type":39,"tag":1135,"props":8009,"children":8010},{"class":1137,"line":1875},[8011,8015,8019,8023,8027,8031,8036,8040,8044,8049,8053,8057,8062,8066,8070,8074,8079,8083,8087,8091,8096,8100,8104,8108,8112,8117,8121,8126,8130,8135,8139,8143],{"type":39,"tag":1135,"props":8012,"children":8013},{"style":1142},[8014],{"type":44,"value":7679},{"type":39,"tag":1135,"props":8016,"children":8017},{"style":1142},[8018],{"type":44,"value":1349},{"type":39,"tag":1135,"props":8020,"children":8021},{"style":1540},[8022],{"type":44,"value":7117},{"type":39,"tag":1135,"props":8024,"children":8025},{"style":1142},[8026],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8028,"children":8029},{"style":1142},[8030],{"type":44,"value":1369},{"type":39,"tag":1135,"props":8032,"children":8033},{"style":1164},[8034],{"type":44,"value":8035},"done",{"type":39,"tag":1135,"props":8037,"children":8038},{"style":1142},[8039],{"type":44,"value":1378},{"type":39,"tag":1135,"props":8041,"children":8042},{"style":1142},[8043],{"type":44,"value":7627},{"type":39,"tag":1135,"props":8045,"children":8046},{"style":1540},[8047],{"type":44,"value":8048}," usage",{"type":39,"tag":1135,"props":8050,"children":8051},{"style":1142},[8052],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8054,"children":8055},{"style":1142},[8056],{"type":44,"value":1349},{"type":39,"tag":1135,"props":8058,"children":8059},{"style":1540},[8060],{"type":44,"value":8061}," inputTokens",{"type":39,"tag":1135,"props":8063,"children":8064},{"style":1142},[8065],{"type":44,"value":5718},{"type":39,"tag":1135,"props":8067,"children":8068},{"style":1209},[8069],{"type":44,"value":4660},{"type":39,"tag":1135,"props":8071,"children":8072},{"style":1142},[8073],{"type":44,"value":7627},{"type":39,"tag":1135,"props":8075,"children":8076},{"style":1540},[8077],{"type":44,"value":8078}," outputTokens",{"type":39,"tag":1135,"props":8080,"children":8081},{"style":1142},[8082],{"type":44,"value":5718},{"type":39,"tag":1135,"props":8084,"children":8085},{"style":1209},[8086],{"type":44,"value":4660},{"type":39,"tag":1135,"props":8088,"children":8089},{"style":1142},[8090],{"type":44,"value":7627},{"type":39,"tag":1135,"props":8092,"children":8093},{"style":1540},[8094],{"type":44,"value":8095}," totalTokens",{"type":39,"tag":1135,"props":8097,"children":8098},{"style":1142},[8099],{"type":44,"value":5718},{"type":39,"tag":1135,"props":8101,"children":8102},{"style":1209},[8103],{"type":44,"value":4660},{"type":39,"tag":1135,"props":8105,"children":8106},{"style":1142},[8107],{"type":44,"value":1359},{"type":39,"tag":1135,"props":8109,"children":8110},{"style":1142},[8111],{"type":44,"value":1201},{"type":39,"tag":1135,"props":8113,"children":8114},{"style":1209},[8115],{"type":44,"value":8116}," null",{"type":39,"tag":1135,"props":8118,"children":8119},{"style":1142},[8120],{"type":44,"value":1201},{"type":39,"tag":1135,"props":8122,"children":8123},{"style":1209},[8124],{"type":44,"value":8125}," undefined",{"type":39,"tag":1135,"props":8127,"children":8128},{"style":1142},[8129],{"type":44,"value":7627},{"type":39,"tag":1135,"props":8131,"children":8132},{"style":1540},[8133],{"type":44,"value":8134}," durationMs",{"type":39,"tag":1135,"props":8136,"children":8137},{"style":1142},[8138],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8140,"children":8141},{"style":1209},[8142],{"type":44,"value":4660},{"type":39,"tag":1135,"props":8144,"children":8145},{"style":1142},[8146],{"type":44,"value":3319},{"type":39,"tag":1135,"props":8148,"children":8149},{"class":1137,"line":1892},[8150],{"type":39,"tag":1135,"props":8151,"children":8152},{"emptyLinePlaceholder":1430},[8153],{"type":44,"value":1433},{"type":39,"tag":1135,"props":8155,"children":8156},{"class":1137,"line":1955},[8157,8161,8165,8169,8174],{"type":39,"tag":1135,"props":8158,"children":8159},{"style":1341},[8160],{"type":44,"value":1505},{"type":39,"tag":1135,"props":8162,"children":8163},{"style":1440},[8164],{"type":44,"value":1907},{"type":39,"tag":1135,"props":8166,"children":8167},{"style":1440},[8168],{"type":44,"value":5663},{"type":39,"tag":1135,"props":8170,"children":8171},{"style":1179},[8172],{"type":44,"value":8173}," runAgent",{"type":39,"tag":1135,"props":8175,"children":8176},{"style":1142},[8177],{"type":44,"value":8178},"(\n",{"type":39,"tag":1135,"props":8180,"children":8181},{"class":1137,"line":1968},[8182,8186,8190,8194],{"type":39,"tag":1135,"props":8183,"children":8184},{"style":1915},[8185],{"type":44,"value":6393},{"type":39,"tag":1135,"props":8187,"children":8188},{"style":1142},[8189],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8191,"children":8192},{"style":1209},[8193],{"type":44,"value":4899},{"type":39,"tag":1135,"props":8195,"children":8196},{"style":1142},[8197],{"type":44,"value":1566},{"type":39,"tag":1135,"props":8199,"children":8200},{"class":1137,"line":2035},[8201,8206,8210,8214,8218,8222,8227],{"type":39,"tag":1135,"props":8202,"children":8203},{"style":1915},[8204],{"type":44,"value":8205},"  input",{"type":39,"tag":1135,"props":8207,"children":8208},{"style":1142},[8209],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8211,"children":8212},{"style":1209},[8213],{"type":44,"value":2634},{"type":39,"tag":1135,"props":8215,"children":8216},{"style":1142},[8217],{"type":44,"value":1201},{"type":39,"tag":1135,"props":8219,"children":8220},{"style":1209},[8221],{"type":44,"value":7558},{"type":39,"tag":1135,"props":8223,"children":8224},{"style":1148},[8225],{"type":44,"value":8226},"[]",{"type":39,"tag":1135,"props":8228,"children":8229},{"style":1142},[8230],{"type":44,"value":1566},{"type":39,"tag":1135,"props":8232,"children":8233},{"class":1137,"line":2090},[8234,8239,8243,8247,8252,8256,8260,8265,8269,8273,8277,8281,8286,8290,8295,8299,8304],{"type":39,"tag":1135,"props":8235,"children":8236},{"style":1915},[8237],{"type":44,"value":8238},"  options",{"type":39,"tag":1135,"props":8240,"children":8241},{"style":1142},[8242],{"type":44,"value":5718},{"type":39,"tag":1135,"props":8244,"children":8245},{"style":1142},[8246],{"type":44,"value":1349},{"type":39,"tag":1135,"props":8248,"children":8249},{"style":1540},[8250],{"type":44,"value":8251}," onEvent",{"type":39,"tag":1135,"props":8253,"children":8254},{"style":1142},[8255],{"type":44,"value":5718},{"type":39,"tag":1135,"props":8257,"children":8258},{"style":1142},[8259],{"type":44,"value":2191},{"type":39,"tag":1135,"props":8261,"children":8262},{"style":1915},[8263],{"type":44,"value":8264},"event",{"type":39,"tag":1135,"props":8266,"children":8267},{"style":1142},[8268],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8270,"children":8271},{"style":1209},[8272],{"type":44,"value":7666},{"type":39,"tag":1135,"props":8274,"children":8275},{"style":1142},[8276],{"type":44,"value":1698},{"type":39,"tag":1135,"props":8278,"children":8279},{"style":1440},[8280],{"type":44,"value":1947},{"type":39,"tag":1135,"props":8282,"children":8283},{"style":1209},[8284],{"type":44,"value":8285}," void",{"type":39,"tag":1135,"props":8287,"children":8288},{"style":1142},[8289],{"type":44,"value":7627},{"type":39,"tag":1135,"props":8291,"children":8292},{"style":1540},[8293],{"type":44,"value":8294}," signal",{"type":39,"tag":1135,"props":8296,"children":8297},{"style":1142},[8298],{"type":44,"value":5718},{"type":39,"tag":1135,"props":8300,"children":8301},{"style":1209},[8302],{"type":44,"value":8303}," AbortSignal",{"type":39,"tag":1135,"props":8305,"children":8306},{"style":1142},[8307],{"type":44,"value":8308}," },\n",{"type":39,"tag":1135,"props":8310,"children":8311},{"class":1137,"line":2144},[8312,8316],{"type":39,"tag":1135,"props":8313,"children":8314},{"style":1142},[8315],{"type":44,"value":1698},{"type":39,"tag":1135,"props":8317,"children":8318},{"style":1142},[8319],{"type":44,"value":1952},{"type":39,"tag":1135,"props":8321,"children":8322},{"class":1137,"line":2238},[8323,8327,8332,8336,8341,8345,8350,8354],{"type":39,"tag":1135,"props":8324,"children":8325},{"style":1440},[8326],{"type":44,"value":4672},{"type":39,"tag":1135,"props":8328,"children":8329},{"style":1148},[8330],{"type":44,"value":8331}," startedAt",{"type":39,"tag":1135,"props":8333,"children":8334},{"style":1142},[8335],{"type":44,"value":1984},{"type":39,"tag":1135,"props":8337,"children":8338},{"style":1148},[8339],{"type":44,"value":8340}," Date",{"type":39,"tag":1135,"props":8342,"children":8343},{"style":1142},[8344],{"type":44,"value":499},{"type":39,"tag":1135,"props":8346,"children":8347},{"style":1179},[8348],{"type":44,"value":8349},"now",{"type":39,"tag":1135,"props":8351,"children":8352},{"style":1540},[8353],{"type":44,"value":1667},{"type":39,"tag":1135,"props":8355,"children":8356},{"style":1142},[8357],{"type":44,"value":1383},{"type":39,"tag":1135,"props":8359,"children":8360},{"class":1137,"line":2264},[8361,8365,8370,8374,8378,8382,8386,8390,8395,8399,8403,8407,8411,8415,8419],{"type":39,"tag":1135,"props":8362,"children":8363},{"style":1440},[8364],{"type":44,"value":4672},{"type":39,"tag":1135,"props":8366,"children":8367},{"style":1148},[8368],{"type":44,"value":8369}," client",{"type":39,"tag":1135,"props":8371,"children":8372},{"style":1142},[8373],{"type":44,"value":1984},{"type":39,"tag":1135,"props":8375,"children":8376},{"style":1142},[8377],{"type":44,"value":4785},{"type":39,"tag":1135,"props":8379,"children":8380},{"style":1179},[8381],{"type":44,"value":7332},{"type":39,"tag":1135,"props":8383,"children":8384},{"style":1540},[8385],{"type":44,"value":1528},{"type":39,"tag":1135,"props":8387,"children":8388},{"style":1142},[8389],{"type":44,"value":7112},{"type":39,"tag":1135,"props":8391,"children":8392},{"style":1540},[8393],{"type":44,"value":8394}," apiKey",{"type":39,"tag":1135,"props":8396,"children":8397},{"style":1142},[8398],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8400,"children":8401},{"style":1148},[8402],{"type":44,"value":5762},{"type":39,"tag":1135,"props":8404,"children":8405},{"style":1142},[8406],{"type":44,"value":499},{"type":39,"tag":1135,"props":8408,"children":8409},{"style":1148},[8410],{"type":44,"value":6057},{"type":39,"tag":1135,"props":8412,"children":8413},{"style":1142},[8414],{"type":44,"value":1359},{"type":39,"tag":1135,"props":8416,"children":8417},{"style":1540},[8418],{"type":44,"value":1698},{"type":39,"tag":1135,"props":8420,"children":8421},{"style":1142},[8422],{"type":44,"value":1383},{"type":39,"tag":1135,"props":8424,"children":8425},{"class":1137,"line":2347},[8426],{"type":39,"tag":1135,"props":8427,"children":8428},{"emptyLinePlaceholder":1430},[8429],{"type":44,"value":1433},{"type":39,"tag":1135,"props":8431,"children":8432},{"class":1137,"line":2401},[8433,8437,8442,8446,8450,8454,8459,8463],{"type":39,"tag":1135,"props":8434,"children":8435},{"style":1440},[8436],{"type":44,"value":4672},{"type":39,"tag":1135,"props":8438,"children":8439},{"style":1148},[8440],{"type":44,"value":8441}," result",{"type":39,"tag":1135,"props":8443,"children":8444},{"style":1142},[8445],{"type":44,"value":1984},{"type":39,"tag":1135,"props":8447,"children":8448},{"style":1148},[8449],{"type":44,"value":8369},{"type":39,"tag":1135,"props":8451,"children":8452},{"style":1142},[8453],{"type":44,"value":499},{"type":39,"tag":1135,"props":8455,"children":8456},{"style":1179},[8457],{"type":44,"value":8458},"callModel",{"type":39,"tag":1135,"props":8460,"children":8461},{"style":1540},[8462],{"type":44,"value":1528},{"type":39,"tag":1135,"props":8464,"children":8465},{"style":1142},[8466],{"type":44,"value":1533},{"type":39,"tag":1135,"props":8468,"children":8469},{"class":1137,"line":27},[8470,8475,8479,8483,8487,8491],{"type":39,"tag":1135,"props":8471,"children":8472},{"style":1540},[8473],{"type":44,"value":8474},"    model",{"type":39,"tag":1135,"props":8476,"children":8477},{"style":1142},[8478],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8480,"children":8481},{"style":1148},[8482],{"type":44,"value":5762},{"type":39,"tag":1135,"props":8484,"children":8485},{"style":1142},[8486],{"type":44,"value":499},{"type":39,"tag":1135,"props":8488,"children":8489},{"style":1148},[8490],{"type":44,"value":6136},{"type":39,"tag":1135,"props":8492,"children":8493},{"style":1142},[8494],{"type":44,"value":1566},{"type":39,"tag":1135,"props":8496,"children":8497},{"class":1137,"line":2514},[8498,8503,8507,8511,8515,8520,8524,8529,8533,8537,8542,8546,8550,8554,8558,8563,8568],{"type":39,"tag":1135,"props":8499,"children":8500},{"style":1540},[8501],{"type":44,"value":8502},"    instructions",{"type":39,"tag":1135,"props":8504,"children":8505},{"style":1142},[8506],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8508,"children":8509},{"style":1148},[8510],{"type":44,"value":5762},{"type":39,"tag":1135,"props":8512,"children":8513},{"style":1142},[8514],{"type":44,"value":499},{"type":39,"tag":1135,"props":8516,"children":8517},{"style":1148},[8518],{"type":44,"value":8519},"systemPrompt",{"type":39,"tag":1135,"props":8521,"children":8522},{"style":1142},[8523],{"type":44,"value":499},{"type":39,"tag":1135,"props":8525,"children":8526},{"style":1179},[8527],{"type":44,"value":8528},"replace",{"type":39,"tag":1135,"props":8530,"children":8531},{"style":1540},[8532],{"type":44,"value":1528},{"type":39,"tag":1135,"props":8534,"children":8535},{"style":1142},[8536],{"type":44,"value":1378},{"type":39,"tag":1135,"props":8538,"children":8539},{"style":1164},[8540],{"type":44,"value":8541},"{cwd}",{"type":39,"tag":1135,"props":8543,"children":8544},{"style":1142},[8545],{"type":44,"value":1378},{"type":39,"tag":1135,"props":8547,"children":8548},{"style":1142},[8549],{"type":44,"value":1923},{"type":39,"tag":1135,"props":8551,"children":8552},{"style":1148},[8553],{"type":44,"value":6066},{"type":39,"tag":1135,"props":8555,"children":8556},{"style":1142},[8557],{"type":44,"value":499},{"type":39,"tag":1135,"props":8559,"children":8560},{"style":1179},[8561],{"type":44,"value":8562},"cwd",{"type":39,"tag":1135,"props":8564,"children":8565},{"style":1540},[8566],{"type":44,"value":8567},"())",{"type":39,"tag":1135,"props":8569,"children":8570},{"style":1142},[8571],{"type":44,"value":1566},{"type":39,"tag":1135,"props":8573,"children":8574},{"class":1137,"line":2531},[8575,8580,8584,8589,8594,8598,8602,8606,8610],{"type":39,"tag":1135,"props":8576,"children":8577},{"style":1540},[8578],{"type":44,"value":8579},"    input",{"type":39,"tag":1135,"props":8581,"children":8582},{"style":1142},[8583],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8585,"children":8586},{"style":1148},[8587],{"type":44,"value":8588}," input",{"type":39,"tag":1135,"props":8590,"children":8591},{"style":1341},[8592],{"type":44,"value":8593}," as",{"type":39,"tag":1135,"props":8595,"children":8596},{"style":1209},[8597],{"type":44,"value":2634},{"type":39,"tag":1135,"props":8599,"children":8600},{"style":1142},[8601],{"type":44,"value":1201},{"type":39,"tag":1135,"props":8603,"children":8604},{"style":1209},[8605],{"type":44,"value":7376},{"type":39,"tag":1135,"props":8607,"children":8608},{"style":1540},[8609],{"type":44,"value":8226},{"type":39,"tag":1135,"props":8611,"children":8612},{"style":1142},[8613],{"type":44,"value":1566},{"type":39,"tag":1135,"props":8615,"children":8616},{"class":1137,"line":2572},[8617,8622],{"type":39,"tag":1135,"props":8618,"children":8619},{"style":1148},[8620],{"type":44,"value":8621},"    tools",{"type":39,"tag":1135,"props":8623,"children":8624},{"style":1142},[8625],{"type":44,"value":1566},{"type":39,"tag":1135,"props":8627,"children":8628},{"class":1137,"line":2615},[8629,8634,8638,8642,8647,8651,8655,8659,8663,8667,8671,8675,8679,8683,8687,8691,8696],{"type":39,"tag":1135,"props":8630,"children":8631},{"style":1540},[8632],{"type":44,"value":8633},"    stopWhen",{"type":39,"tag":1135,"props":8635,"children":8636},{"style":1142},[8637],{"type":44,"value":1548},{"type":39,"tag":1135,"props":8639,"children":8640},{"style":1540},[8641],{"type":44,"value":2648},{"type":39,"tag":1135,"props":8643,"children":8644},{"style":1179},[8645],{"type":44,"value":8646},"stepCountIs",{"type":39,"tag":1135,"props":8648,"children":8649},{"style":1540},[8650],{"type":44,"value":1528},{"type":39,"tag":1135,"props":8652,"children":8653},{"style":1148},[8654],{"type":44,"value":5974},{"type":39,"tag":1135,"props":8656,"children":8657},{"style":1142},[8658],{"type":44,"value":499},{"type":39,"tag":1135,"props":8660,"children":8661},{"style":1148},[8662],{"type":44,"value":6214},{"type":39,"tag":1135,"props":8664,"children":8665},{"style":1540},[8666],{"type":44,"value":1698},{"type":39,"tag":1135,"props":8668,"children":8669},{"style":1142},[8670],{"type":44,"value":1923},{"type":39,"tag":1135,"props":8672,"children":8673},{"style":1179},[8674],{"type":44,"value":7425},{"type":39,"tag":1135,"props":8676,"children":8677},{"style":1540},[8678],{"type":44,"value":1528},{"type":39,"tag":1135,"props":8680,"children":8681},{"style":1148},[8682],{"type":44,"value":5974},{"type":39,"tag":1135,"props":8684,"children":8685},{"style":1142},[8686],{"type":44,"value":499},{"type":39,"tag":1135,"props":8688,"children":8689},{"style":1148},[8690],{"type":44,"value":6320},{"type":39,"tag":1135,"props":8692,"children":8693},{"style":1540},[8694],{"type":44,"value":8695},")]",{"type":39,"tag":1135,"props":8697,"children":8698},{"style":1142},[8699],{"type":44,"value":1566},{"type":39,"tag":1135,"props":8701,"children":8702},{"class":1137,"line":2741},[8703,8707,8711],{"type":39,"tag":1135,"props":8704,"children":8705},{"style":1142},[8706],{"type":44,"value":1881},{"type":39,"tag":1135,"props":8708,"children":8709},{"style":1540},[8710],{"type":44,"value":1698},{"type":39,"tag":1135,"props":8712,"children":8713},{"style":1142},[8714],{"type":44,"value":1383},{"type":39,"tag":1135,"props":8716,"children":8717},{"class":1137,"line":2828},[8718],{"type":39,"tag":1135,"props":8719,"children":8720},{"emptyLinePlaceholder":1430},[8721],{"type":44,"value":1433},{"type":39,"tag":1135,"props":8723,"children":8724},{"class":1137,"line":2921},[8725],{"type":39,"tag":1135,"props":8726,"children":8727},{"style":3549},[8728],{"type":44,"value":8729},"  \u002F\u002F Wire AbortSignal → result.cancel() so the underlying network stream\n",{"type":39,"tag":1135,"props":8731,"children":8732},{"class":1137,"line":2934},[8733],{"type":39,"tag":1135,"props":8734,"children":8735},{"style":3549},[8736],{"type":44,"value":8737},"  \u002F\u002F actually closes (not just the iterator we're about to walk). Also\n",{"type":39,"tag":1135,"props":8739,"children":8740},{"class":1137,"line":2984},[8741],{"type":39,"tag":1135,"props":8742,"children":8743},{"style":3549},[8744],{"type":44,"value":8745},"  \u002F\u002F handle the pre-aborted case: addEventListener('abort') does not fire\n",{"type":39,"tag":1135,"props":8747,"children":8748},{"class":1137,"line":3013},[8749],{"type":39,"tag":1135,"props":8750,"children":8751},{"style":3549},[8752],{"type":44,"value":8753},"  \u002F\u002F for signals already in the aborted state.\n",{"type":39,"tag":1135,"props":8755,"children":8756},{"class":1137,"line":3040},[8757,8761,8766,8770,8775,8779,8783,8787,8792,8796],{"type":39,"tag":1135,"props":8758,"children":8759},{"style":1440},[8760],{"type":44,"value":4672},{"type":39,"tag":1135,"props":8762,"children":8763},{"style":1148},[8764],{"type":44,"value":8765}," onAbort",{"type":39,"tag":1135,"props":8767,"children":8768},{"style":1142},[8769],{"type":44,"value":1984},{"type":39,"tag":1135,"props":8771,"children":8772},{"style":1142},[8773],{"type":44,"value":8774}," ()",{"type":39,"tag":1135,"props":8776,"children":8777},{"style":1440},[8778],{"type":44,"value":1947},{"type":39,"tag":1135,"props":8780,"children":8781},{"style":1148},[8782],{"type":44,"value":8441},{"type":39,"tag":1135,"props":8784,"children":8785},{"style":1142},[8786],{"type":44,"value":499},{"type":39,"tag":1135,"props":8788,"children":8789},{"style":1179},[8790],{"type":44,"value":8791},"cancel",{"type":39,"tag":1135,"props":8793,"children":8794},{"style":1540},[8795],{"type":44,"value":1667},{"type":39,"tag":1135,"props":8797,"children":8798},{"style":1142},[8799],{"type":44,"value":1383},{"type":39,"tag":1135,"props":8801,"children":8802},{"class":1137,"line":3063},[8803,8807,8811,8816,8820,8825,8829,8833,8838,8842,8846,8850,8854],{"type":39,"tag":1135,"props":8804,"children":8805},{"style":1148},[8806],{"type":44,"value":8238},{"type":39,"tag":1135,"props":8808,"children":8809},{"style":1142},[8810],{"type":44,"value":6472},{"type":39,"tag":1135,"props":8812,"children":8813},{"style":1148},[8814],{"type":44,"value":8815},"signal",{"type":39,"tag":1135,"props":8817,"children":8818},{"style":1142},[8819],{"type":44,"value":6472},{"type":39,"tag":1135,"props":8821,"children":8822},{"style":1179},[8823],{"type":44,"value":8824},"addEventListener",{"type":39,"tag":1135,"props":8826,"children":8827},{"style":1540},[8828],{"type":44,"value":1528},{"type":39,"tag":1135,"props":8830,"children":8831},{"style":1142},[8832],{"type":44,"value":1378},{"type":39,"tag":1135,"props":8834,"children":8835},{"style":1164},[8836],{"type":44,"value":8837},"abort",{"type":39,"tag":1135,"props":8839,"children":8840},{"style":1142},[8841],{"type":44,"value":1378},{"type":39,"tag":1135,"props":8843,"children":8844},{"style":1142},[8845],{"type":44,"value":1923},{"type":39,"tag":1135,"props":8847,"children":8848},{"style":1148},[8849],{"type":44,"value":8765},{"type":39,"tag":1135,"props":8851,"children":8852},{"style":1540},[8853],{"type":44,"value":1698},{"type":39,"tag":1135,"props":8855,"children":8856},{"style":1142},[8857],{"type":44,"value":1383},{"type":39,"tag":1135,"props":8859,"children":8860},{"class":1137,"line":3121},[8861,8865,8869,8874,8878,8882,8886,8891,8895,8900,8904,8908,8912],{"type":39,"tag":1135,"props":8862,"children":8863},{"style":1341},[8864],{"type":44,"value":4711},{"type":39,"tag":1135,"props":8866,"children":8867},{"style":1540},[8868],{"type":44,"value":2191},{"type":39,"tag":1135,"props":8870,"children":8871},{"style":1148},[8872],{"type":44,"value":8873},"options",{"type":39,"tag":1135,"props":8875,"children":8876},{"style":1142},[8877],{"type":44,"value":6472},{"type":39,"tag":1135,"props":8879,"children":8880},{"style":1148},[8881],{"type":44,"value":8815},{"type":39,"tag":1135,"props":8883,"children":8884},{"style":1142},[8885],{"type":44,"value":6472},{"type":39,"tag":1135,"props":8887,"children":8888},{"style":1148},[8889],{"type":44,"value":8890},"aborted",{"type":39,"tag":1135,"props":8892,"children":8893},{"style":1540},[8894],{"type":44,"value":2384},{"type":39,"tag":1135,"props":8896,"children":8897},{"style":1148},[8898],{"type":44,"value":8899},"result",{"type":39,"tag":1135,"props":8901,"children":8902},{"style":1142},[8903],{"type":44,"value":499},{"type":39,"tag":1135,"props":8905,"children":8906},{"style":1179},[8907],{"type":44,"value":8791},{"type":39,"tag":1135,"props":8909,"children":8910},{"style":1540},[8911],{"type":44,"value":1667},{"type":39,"tag":1135,"props":8913,"children":8914},{"style":1142},[8915],{"type":44,"value":1383},{"type":39,"tag":1135,"props":8917,"children":8918},{"class":1137,"line":3166},[8919],{"type":39,"tag":1135,"props":8920,"children":8921},{"emptyLinePlaceholder":1430},[8922],{"type":44,"value":1433},{"type":39,"tag":1135,"props":8924,"children":8925},{"class":1137,"line":3183},[8926],{"type":39,"tag":1135,"props":8927,"children":8928},{"style":3549},[8929],{"type":44,"value":8930},"  \u002F\u002F Draining getTextStream concurrently with getItemsStream reads the\n",{"type":39,"tag":1135,"props":8932,"children":8933},{"class":1137,"line":3192},[8934],{"type":39,"tag":1135,"props":8935,"children":8936},{"style":3549},[8937],{"type":44,"value":8938},"  \u002F\u002F stream dry, so getResponse().outputText ends up empty. We accumulate\n",{"type":39,"tag":1135,"props":8940,"children":8941},{"class":1137,"line":3232},[8942],{"type":39,"tag":1135,"props":8943,"children":8944},{"style":3549},[8945],{"type":44,"value":8946},"  \u002F\u002F text deltas here as a source of truth for the final text.\n",{"type":39,"tag":1135,"props":8948,"children":8949},{"class":1137,"line":3322},[8950,8954,8959,8963,8967],{"type":39,"tag":1135,"props":8951,"children":8952},{"style":1440},[8953],{"type":44,"value":5757},{"type":39,"tag":1135,"props":8955,"children":8956},{"style":1148},[8957],{"type":44,"value":8958}," accumulatedText",{"type":39,"tag":1135,"props":8960,"children":8961},{"style":1142},[8962],{"type":44,"value":1984},{"type":39,"tag":1135,"props":8964,"children":8965},{"style":1142},[8966],{"type":44,"value":5182},{"type":39,"tag":1135,"props":8968,"children":8969},{"style":1142},[8970],{"type":44,"value":1383},{"type":39,"tag":1135,"props":8972,"children":8973},{"class":1137,"line":3408},[8974],{"type":39,"tag":1135,"props":8975,"children":8976},{"emptyLinePlaceholder":1430},[8977],{"type":44,"value":1433},{"type":39,"tag":1135,"props":8979,"children":8980},{"class":1137,"line":3446},[8981,8986],{"type":39,"tag":1135,"props":8982,"children":8983},{"style":1341},[8984],{"type":44,"value":8985},"  try",{"type":39,"tag":1135,"props":8987,"children":8988},{"style":1142},[8989],{"type":44,"value":1952},{"type":39,"tag":1135,"props":8991,"children":8992},{"class":1137,"line":3455},[8993,8998,9002,9006,9010,9015,9019],{"type":39,"tag":1135,"props":8994,"children":8995},{"style":1341},[8996],{"type":44,"value":8997},"    if",{"type":39,"tag":1135,"props":8999,"children":9000},{"style":1540},[9001],{"type":44,"value":2191},{"type":39,"tag":1135,"props":9003,"children":9004},{"style":1148},[9005],{"type":44,"value":8873},{"type":39,"tag":1135,"props":9007,"children":9008},{"style":1142},[9009],{"type":44,"value":6472},{"type":39,"tag":1135,"props":9011,"children":9012},{"style":1148},[9013],{"type":44,"value":9014},"onEvent",{"type":39,"tag":1135,"props":9016,"children":9017},{"style":1540},[9018],{"type":44,"value":2384},{"type":39,"tag":1135,"props":9020,"children":9021},{"style":1142},[9022],{"type":44,"value":1533},{"type":39,"tag":1135,"props":9024,"children":9025},{"class":1137,"line":3464},[9026],{"type":39,"tag":1135,"props":9027,"children":9028},{"style":3549},[9029],{"type":44,"value":9030},"      \u002F\u002F Run two streams concurrently: getTextStream for text deltas (no\n",{"type":39,"tag":1135,"props":9032,"children":9033},{"class":1137,"line":5653},[9034],{"type":39,"tag":1135,"props":9035,"children":9036},{"style":3549},[9037],{"type":44,"value":9038},"      \u002F\u002F bookkeeping required) and getItemsStream filtered to tool events.\n",{"type":39,"tag":1135,"props":9040,"children":9041},{"class":1137,"line":5751},[9042],{"type":39,"tag":1135,"props":9043,"children":9044},{"style":3549},[9045],{"type":44,"value":9046},"      \u002F\u002F The SDK's ReusableReadableStream allows concurrent consumption.\n",{"type":39,"tag":1135,"props":9048,"children":9049},{"class":1137,"line":5787},[9050,9054,9059,9063,9067,9072,9076,9080,9084,9088,9092,9096],{"type":39,"tag":1135,"props":9051,"children":9052},{"style":1440},[9053],{"type":44,"value":1974},{"type":39,"tag":1135,"props":9055,"children":9056},{"style":1148},[9057],{"type":44,"value":9058}," callNames",{"type":39,"tag":1135,"props":9060,"children":9061},{"style":1142},[9062],{"type":44,"value":1984},{"type":39,"tag":1135,"props":9064,"children":9065},{"style":1142},[9066],{"type":44,"value":4785},{"type":39,"tag":1135,"props":9068,"children":9069},{"style":1179},[9070],{"type":44,"value":9071}," Map",{"type":39,"tag":1135,"props":9073,"children":9074},{"style":1142},[9075],{"type":44,"value":1145},{"type":39,"tag":1135,"props":9077,"children":9078},{"style":1209},[9079],{"type":44,"value":1662},{"type":39,"tag":1135,"props":9081,"children":9082},{"style":1142},[9083],{"type":44,"value":1923},{"type":39,"tag":1135,"props":9085,"children":9086},{"style":1209},[9087],{"type":44,"value":2634},{"type":39,"tag":1135,"props":9089,"children":9090},{"style":1142},[9091],{"type":44,"value":1156},{"type":39,"tag":1135,"props":9093,"children":9094},{"style":1540},[9095],{"type":44,"value":1667},{"type":39,"tag":1135,"props":9097,"children":9098},{"style":1142},[9099],{"type":44,"value":1383},{"type":39,"tag":1135,"props":9101,"children":9102},{"class":1137,"line":5795},[9103],{"type":39,"tag":1135,"props":9104,"children":9105},{"emptyLinePlaceholder":1430},[9106],{"type":44,"value":1433},{"type":39,"tag":1135,"props":9108,"children":9109},{"class":1137,"line":5841},[9110,9114,9119,9123,9127,9131,9135],{"type":39,"tag":1135,"props":9111,"children":9112},{"style":1440},[9113],{"type":44,"value":1974},{"type":39,"tag":1135,"props":9115,"children":9116},{"style":1148},[9117],{"type":44,"value":9118}," streamText",{"type":39,"tag":1135,"props":9120,"children":9121},{"style":1142},[9122],{"type":44,"value":1984},{"type":39,"tag":1135,"props":9124,"children":9125},{"style":1440},[9126],{"type":44,"value":1907},{"type":39,"tag":1135,"props":9128,"children":9129},{"style":1142},[9130],{"type":44,"value":8774},{"type":39,"tag":1135,"props":9132,"children":9133},{"style":1440},[9134],{"type":44,"value":1947},{"type":39,"tag":1135,"props":9136,"children":9137},{"style":1142},[9138],{"type":44,"value":1952},{"type":39,"tag":1135,"props":9140,"children":9141},{"class":1137,"line":5876},[9142,9147,9151,9155,9159,9163,9168,9172,9176,9181,9186],{"type":39,"tag":1135,"props":9143,"children":9144},{"style":1341},[9145],{"type":44,"value":9146},"        for",{"type":39,"tag":1135,"props":9148,"children":9149},{"style":1341},[9150],{"type":44,"value":1989},{"type":39,"tag":1135,"props":9152,"children":9153},{"style":1540},[9154],{"type":44,"value":2191},{"type":39,"tag":1135,"props":9156,"children":9157},{"style":1440},[9158],{"type":44,"value":1443},{"type":39,"tag":1135,"props":9160,"children":9161},{"style":1148},[9162],{"type":44,"value":7712},{"type":39,"tag":1135,"props":9164,"children":9165},{"style":1142},[9166],{"type":44,"value":9167}," of",{"type":39,"tag":1135,"props":9169,"children":9170},{"style":1148},[9171],{"type":44,"value":8441},{"type":39,"tag":1135,"props":9173,"children":9174},{"style":1142},[9175],{"type":44,"value":499},{"type":39,"tag":1135,"props":9177,"children":9178},{"style":1179},[9179],{"type":44,"value":9180},"getTextStream",{"type":39,"tag":1135,"props":9182,"children":9183},{"style":1540},[9184],{"type":44,"value":9185},"()) ",{"type":39,"tag":1135,"props":9187,"children":9188},{"style":1142},[9189],{"type":44,"value":1533},{"type":39,"tag":1135,"props":9191,"children":9192},{"class":1137,"line":5951},[9193,9198,9202,9206,9210,9214,9218,9222,9226,9231],{"type":39,"tag":1135,"props":9194,"children":9195},{"style":1341},[9196],{"type":44,"value":9197},"          if",{"type":39,"tag":1135,"props":9199,"children":9200},{"style":1540},[9201],{"type":44,"value":2191},{"type":39,"tag":1135,"props":9203,"children":9204},{"style":1148},[9205],{"type":44,"value":8873},{"type":39,"tag":1135,"props":9207,"children":9208},{"style":1142},[9209],{"type":44,"value":6472},{"type":39,"tag":1135,"props":9211,"children":9212},{"style":1148},[9213],{"type":44,"value":8815},{"type":39,"tag":1135,"props":9215,"children":9216},{"style":1142},[9217],{"type":44,"value":6472},{"type":39,"tag":1135,"props":9219,"children":9220},{"style":1148},[9221],{"type":44,"value":8890},{"type":39,"tag":1135,"props":9223,"children":9224},{"style":1540},[9225],{"type":44,"value":2384},{"type":39,"tag":1135,"props":9227,"children":9228},{"style":1341},[9229],{"type":44,"value":9230},"break",{"type":39,"tag":1135,"props":9232,"children":9233},{"style":1142},[9234],{"type":44,"value":1383},{"type":39,"tag":1135,"props":9236,"children":9237},{"class":1137,"line":5993},[9238,9243,9247,9251,9255,9259,9263,9267,9271,9275,9279,9283,9287,9291,9295,9299],{"type":39,"tag":1135,"props":9239,"children":9240},{"style":1148},[9241],{"type":44,"value":9242},"          options",{"type":39,"tag":1135,"props":9244,"children":9245},{"style":1142},[9246],{"type":44,"value":499},{"type":39,"tag":1135,"props":9248,"children":9249},{"style":1179},[9250],{"type":44,"value":9014},{"type":39,"tag":1135,"props":9252,"children":9253},{"style":1142},[9254],{"type":44,"value":4720},{"type":39,"tag":1135,"props":9256,"children":9257},{"style":1540},[9258],{"type":44,"value":1528},{"type":39,"tag":1135,"props":9260,"children":9261},{"style":1142},[9262],{"type":44,"value":7112},{"type":39,"tag":1135,"props":9264,"children":9265},{"style":1540},[9266],{"type":44,"value":7117},{"type":39,"tag":1135,"props":9268,"children":9269},{"style":1142},[9270],{"type":44,"value":1548},{"type":39,"tag":1135,"props":9272,"children":9273},{"style":1142},[9274],{"type":44,"value":1369},{"type":39,"tag":1135,"props":9276,"children":9277},{"style":1164},[9278],{"type":44,"value":44},{"type":39,"tag":1135,"props":9280,"children":9281},{"style":1142},[9282],{"type":44,"value":1378},{"type":39,"tag":1135,"props":9284,"children":9285},{"style":1142},[9286],{"type":44,"value":1923},{"type":39,"tag":1135,"props":9288,"children":9289},{"style":1148},[9290],{"type":44,"value":7712},{"type":39,"tag":1135,"props":9292,"children":9293},{"style":1142},[9294],{"type":44,"value":1359},{"type":39,"tag":1135,"props":9296,"children":9297},{"style":1540},[9298],{"type":44,"value":1698},{"type":39,"tag":1135,"props":9300,"children":9301},{"style":1142},[9302],{"type":44,"value":1383},{"type":39,"tag":1135,"props":9304,"children":9305},{"class":1137,"line":6001},[9306,9311,9316,9320],{"type":39,"tag":1135,"props":9307,"children":9308},{"style":1148},[9309],{"type":44,"value":9310},"          accumulatedText",{"type":39,"tag":1135,"props":9312,"children":9313},{"style":1142},[9314],{"type":44,"value":9315}," +=",{"type":39,"tag":1135,"props":9317,"children":9318},{"style":1148},[9319],{"type":44,"value":7712},{"type":39,"tag":1135,"props":9321,"children":9322},{"style":1142},[9323],{"type":44,"value":1383},{"type":39,"tag":1135,"props":9325,"children":9326},{"class":1137,"line":6009},[9327],{"type":39,"tag":1135,"props":9328,"children":9329},{"style":1142},[9330],{"type":44,"value":9331},"        }\n",{"type":39,"tag":1135,"props":9333,"children":9334},{"class":1137,"line":6089},[9335],{"type":39,"tag":1135,"props":9336,"children":9337},{"style":1142},[9338],{"type":44,"value":3189},{"type":39,"tag":1135,"props":9340,"children":9341},{"class":1137,"line":6167},[9342],{"type":39,"tag":1135,"props":9343,"children":9344},{"emptyLinePlaceholder":1430},[9345],{"type":44,"value":1433},{"type":39,"tag":1135,"props":9347,"children":9348},{"class":1137,"line":6273},[9349,9353,9358,9362,9366,9370,9374],{"type":39,"tag":1135,"props":9350,"children":9351},{"style":1440},[9352],{"type":44,"value":1974},{"type":39,"tag":1135,"props":9354,"children":9355},{"style":1148},[9356],{"type":44,"value":9357}," streamTools",{"type":39,"tag":1135,"props":9359,"children":9360},{"style":1142},[9361],{"type":44,"value":1984},{"type":39,"tag":1135,"props":9363,"children":9364},{"style":1440},[9365],{"type":44,"value":1907},{"type":39,"tag":1135,"props":9367,"children":9368},{"style":1142},[9369],{"type":44,"value":8774},{"type":39,"tag":1135,"props":9371,"children":9372},{"style":1440},[9373],{"type":44,"value":1947},{"type":39,"tag":1135,"props":9375,"children":9376},{"style":1142},[9377],{"type":44,"value":1952},{"type":39,"tag":1135,"props":9379,"children":9380},{"class":1137,"line":6379},[9381,9385,9389,9393,9397,9402,9406,9410,9414,9419,9423],{"type":39,"tag":1135,"props":9382,"children":9383},{"style":1341},[9384],{"type":44,"value":9146},{"type":39,"tag":1135,"props":9386,"children":9387},{"style":1341},[9388],{"type":44,"value":1989},{"type":39,"tag":1135,"props":9390,"children":9391},{"style":1540},[9392],{"type":44,"value":2191},{"type":39,"tag":1135,"props":9394,"children":9395},{"style":1440},[9396],{"type":44,"value":1443},{"type":39,"tag":1135,"props":9398,"children":9399},{"style":1148},[9400],{"type":44,"value":9401}," item",{"type":39,"tag":1135,"props":9403,"children":9404},{"style":1142},[9405],{"type":44,"value":9167},{"type":39,"tag":1135,"props":9407,"children":9408},{"style":1148},[9409],{"type":44,"value":8441},{"type":39,"tag":1135,"props":9411,"children":9412},{"style":1142},[9413],{"type":44,"value":499},{"type":39,"tag":1135,"props":9415,"children":9416},{"style":1179},[9417],{"type":44,"value":9418},"getItemsStream",{"type":39,"tag":1135,"props":9420,"children":9421},{"style":1540},[9422],{"type":44,"value":9185},{"type":39,"tag":1135,"props":9424,"children":9425},{"style":1142},[9426],{"type":44,"value":1533},{"type":39,"tag":1135,"props":9428,"children":9429},{"class":1137,"line":6387},[9430,9434,9438,9442,9446,9450,9454,9458,9462,9466],{"type":39,"tag":1135,"props":9431,"children":9432},{"style":1341},[9433],{"type":44,"value":9197},{"type":39,"tag":1135,"props":9435,"children":9436},{"style":1540},[9437],{"type":44,"value":2191},{"type":39,"tag":1135,"props":9439,"children":9440},{"style":1148},[9441],{"type":44,"value":8873},{"type":39,"tag":1135,"props":9443,"children":9444},{"style":1142},[9445],{"type":44,"value":6472},{"type":39,"tag":1135,"props":9447,"children":9448},{"style":1148},[9449],{"type":44,"value":8815},{"type":39,"tag":1135,"props":9451,"children":9452},{"style":1142},[9453],{"type":44,"value":6472},{"type":39,"tag":1135,"props":9455,"children":9456},{"style":1148},[9457],{"type":44,"value":8890},{"type":39,"tag":1135,"props":9459,"children":9460},{"style":1540},[9461],{"type":44,"value":2384},{"type":39,"tag":1135,"props":9463,"children":9464},{"style":1341},[9465],{"type":44,"value":9230},{"type":39,"tag":1135,"props":9467,"children":9468},{"style":1142},[9469],{"type":44,"value":1383},{"type":39,"tag":1135,"props":9471,"children":9472},{"class":1137,"line":6428},[9473,9477,9481,9486,9490,9494,9498,9502,9507,9511,9515],{"type":39,"tag":1135,"props":9474,"children":9475},{"style":1341},[9476],{"type":44,"value":9197},{"type":39,"tag":1135,"props":9478,"children":9479},{"style":1540},[9480],{"type":44,"value":2191},{"type":39,"tag":1135,"props":9482,"children":9483},{"style":1148},[9484],{"type":44,"value":9485},"item",{"type":39,"tag":1135,"props":9487,"children":9488},{"style":1142},[9489],{"type":44,"value":499},{"type":39,"tag":1135,"props":9491,"children":9492},{"style":1148},[9493],{"type":44,"value":3616},{"type":39,"tag":1135,"props":9495,"children":9496},{"style":1142},[9497],{"type":44,"value":3258},{"type":39,"tag":1135,"props":9499,"children":9500},{"style":1142},[9501],{"type":44,"value":1369},{"type":39,"tag":1135,"props":9503,"children":9504},{"style":1164},[9505],{"type":44,"value":9506},"function_call",{"type":39,"tag":1135,"props":9508,"children":9509},{"style":1142},[9510],{"type":44,"value":1378},{"type":39,"tag":1135,"props":9512,"children":9513},{"style":1540},[9514],{"type":44,"value":2384},{"type":39,"tag":1135,"props":9516,"children":9517},{"style":1142},[9518],{"type":44,"value":1533},{"type":39,"tag":1135,"props":9520,"children":9521},{"class":1137,"line":6522},[9522,9527,9531,9536,9540,9544,9548,9553,9557,9561,9565,9569,9573],{"type":39,"tag":1135,"props":9523,"children":9524},{"style":1148},[9525],{"type":44,"value":9526},"            callNames",{"type":39,"tag":1135,"props":9528,"children":9529},{"style":1142},[9530],{"type":44,"value":499},{"type":39,"tag":1135,"props":9532,"children":9533},{"style":1179},[9534],{"type":44,"value":9535},"set",{"type":39,"tag":1135,"props":9537,"children":9538},{"style":1540},[9539],{"type":44,"value":1528},{"type":39,"tag":1135,"props":9541,"children":9542},{"style":1148},[9543],{"type":44,"value":9485},{"type":39,"tag":1135,"props":9545,"children":9546},{"style":1142},[9547],{"type":44,"value":499},{"type":39,"tag":1135,"props":9549,"children":9550},{"style":1148},[9551],{"type":44,"value":9552},"callId",{"type":39,"tag":1135,"props":9554,"children":9555},{"style":1142},[9556],{"type":44,"value":1923},{"type":39,"tag":1135,"props":9558,"children":9559},{"style":1148},[9560],{"type":44,"value":9401},{"type":39,"tag":1135,"props":9562,"children":9563},{"style":1142},[9564],{"type":44,"value":499},{"type":39,"tag":1135,"props":9566,"children":9567},{"style":1148},[9568],{"type":44,"value":1275},{"type":39,"tag":1135,"props":9570,"children":9571},{"style":1540},[9572],{"type":44,"value":1698},{"type":39,"tag":1135,"props":9574,"children":9575},{"style":1142},[9576],{"type":44,"value":1383},{"type":39,"tag":1135,"props":9578,"children":9579},{"class":1137,"line":6538},[9580,9585,9589,9593,9597,9602,9606,9610,9615,9619,9623],{"type":39,"tag":1135,"props":9581,"children":9582},{"style":1341},[9583],{"type":44,"value":9584},"            if",{"type":39,"tag":1135,"props":9586,"children":9587},{"style":1540},[9588],{"type":44,"value":2191},{"type":39,"tag":1135,"props":9590,"children":9591},{"style":1148},[9592],{"type":44,"value":9485},{"type":39,"tag":1135,"props":9594,"children":9595},{"style":1142},[9596],{"type":44,"value":499},{"type":39,"tag":1135,"props":9598,"children":9599},{"style":1148},[9600],{"type":44,"value":9601},"status",{"type":39,"tag":1135,"props":9603,"children":9604},{"style":1142},[9605],{"type":44,"value":3258},{"type":39,"tag":1135,"props":9607,"children":9608},{"style":1142},[9609],{"type":44,"value":1369},{"type":39,"tag":1135,"props":9611,"children":9612},{"style":1164},[9613],{"type":44,"value":9614},"completed",{"type":39,"tag":1135,"props":9616,"children":9617},{"style":1142},[9618],{"type":44,"value":1378},{"type":39,"tag":1135,"props":9620,"children":9621},{"style":1540},[9622],{"type":44,"value":2384},{"type":39,"tag":1135,"props":9624,"children":9625},{"style":1142},[9626],{"type":44,"value":1533},{"type":39,"tag":1135,"props":9628,"children":9630},{"class":1137,"line":9629},67,[9631,9636,9640,9644,9648,9652,9656,9660,9665,9669,9674,9678,9682,9687,9691,9695,9699,9703,9707,9711,9715,9719,9723,9727,9732,9736,9740,9744,9748,9752,9756,9760,9765],{"type":39,"tag":1135,"props":9632,"children":9633},{"style":1440},[9634],{"type":44,"value":9635},"              const",{"type":39,"tag":1135,"props":9637,"children":9638},{"style":1148},[9639],{"type":44,"value":7800},{"type":39,"tag":1135,"props":9641,"children":9642},{"style":1142},[9643],{"type":44,"value":1984},{"type":39,"tag":1135,"props":9645,"children":9646},{"style":1540},[9647],{"type":44,"value":2191},{"type":39,"tag":1135,"props":9649,"children":9650},{"style":1142},[9651],{"type":44,"value":1667},{"type":39,"tag":1135,"props":9653,"children":9654},{"style":1440},[9655],{"type":44,"value":1947},{"type":39,"tag":1135,"props":9657,"children":9658},{"style":1142},[9659],{"type":44,"value":1349},{"type":39,"tag":1135,"props":9661,"children":9662},{"style":1341},[9663],{"type":44,"value":9664}," try",{"type":39,"tag":1135,"props":9666,"children":9667},{"style":1142},[9668],{"type":44,"value":1349},{"type":39,"tag":1135,"props":9670,"children":9671},{"style":1341},[9672],{"type":44,"value":9673}," return",{"type":39,"tag":1135,"props":9675,"children":9676},{"style":1148},[9677],{"type":44,"value":9401},{"type":39,"tag":1135,"props":9679,"children":9680},{"style":1142},[9681],{"type":44,"value":499},{"type":39,"tag":1135,"props":9683,"children":9684},{"style":1148},[9685],{"type":44,"value":9686},"arguments",{"type":39,"tag":1135,"props":9688,"children":9689},{"style":1142},[9690],{"type":44,"value":2113},{"type":39,"tag":1135,"props":9692,"children":9693},{"style":1148},[9694],{"type":44,"value":5896},{"type":39,"tag":1135,"props":9696,"children":9697},{"style":1142},[9698],{"type":44,"value":499},{"type":39,"tag":1135,"props":9700,"children":9701},{"style":1179},[9702],{"type":44,"value":5905},{"type":39,"tag":1135,"props":9704,"children":9705},{"style":1540},[9706],{"type":44,"value":1528},{"type":39,"tag":1135,"props":9708,"children":9709},{"style":1148},[9710],{"type":44,"value":9485},{"type":39,"tag":1135,"props":9712,"children":9713},{"style":1142},[9714],{"type":44,"value":499},{"type":39,"tag":1135,"props":9716,"children":9717},{"style":1148},[9718],{"type":44,"value":9686},{"type":39,"tag":1135,"props":9720,"children":9721},{"style":1540},[9722],{"type":44,"value":2384},{"type":39,"tag":1135,"props":9724,"children":9725},{"style":1142},[9726],{"type":44,"value":1548},{"type":39,"tag":1135,"props":9728,"children":9729},{"style":1142},[9730],{"type":44,"value":9731}," {};",{"type":39,"tag":1135,"props":9733,"children":9734},{"style":1142},[9735],{"type":44,"value":1359},{"type":39,"tag":1135,"props":9737,"children":9738},{"style":1341},[9739],{"type":44,"value":3203},{"type":39,"tag":1135,"props":9741,"children":9742},{"style":1142},[9743],{"type":44,"value":1349},{"type":39,"tag":1135,"props":9745,"children":9746},{"style":1341},[9747],{"type":44,"value":9673},{"type":39,"tag":1135,"props":9749,"children":9750},{"style":1142},[9751],{"type":44,"value":9731},{"type":39,"tag":1135,"props":9753,"children":9754},{"style":1142},[9755],{"type":44,"value":1359},{"type":39,"tag":1135,"props":9757,"children":9758},{"style":1142},[9759],{"type":44,"value":1359},{"type":39,"tag":1135,"props":9761,"children":9762},{"style":1540},[9763],{"type":44,"value":9764},")()",{"type":39,"tag":1135,"props":9766,"children":9767},{"style":1142},[9768],{"type":44,"value":1383},{"type":39,"tag":1135,"props":9770,"children":9772},{"class":1137,"line":9771},68,[9773,9778,9782,9786,9790,9794,9798,9802,9806,9810,9814,9818,9822,9826,9830,9834,9838,9842,9846,9850,9854,9858,9862,9866,9870,9874,9878,9882],{"type":39,"tag":1135,"props":9774,"children":9775},{"style":1148},[9776],{"type":44,"value":9777},"              options",{"type":39,"tag":1135,"props":9779,"children":9780},{"style":1142},[9781],{"type":44,"value":499},{"type":39,"tag":1135,"props":9783,"children":9784},{"style":1179},[9785],{"type":44,"value":9014},{"type":39,"tag":1135,"props":9787,"children":9788},{"style":1142},[9789],{"type":44,"value":4720},{"type":39,"tag":1135,"props":9791,"children":9792},{"style":1540},[9793],{"type":44,"value":1528},{"type":39,"tag":1135,"props":9795,"children":9796},{"style":1142},[9797],{"type":44,"value":7112},{"type":39,"tag":1135,"props":9799,"children":9800},{"style":1540},[9801],{"type":44,"value":7117},{"type":39,"tag":1135,"props":9803,"children":9804},{"style":1142},[9805],{"type":44,"value":1548},{"type":39,"tag":1135,"props":9807,"children":9808},{"style":1142},[9809],{"type":44,"value":1369},{"type":39,"tag":1135,"props":9811,"children":9812},{"style":1164},[9813],{"type":44,"value":7753},{"type":39,"tag":1135,"props":9815,"children":9816},{"style":1142},[9817],{"type":44,"value":1378},{"type":39,"tag":1135,"props":9819,"children":9820},{"style":1142},[9821],{"type":44,"value":1923},{"type":39,"tag":1135,"props":9823,"children":9824},{"style":1540},[9825],{"type":44,"value":7766},{"type":39,"tag":1135,"props":9827,"children":9828},{"style":1142},[9829],{"type":44,"value":1548},{"type":39,"tag":1135,"props":9831,"children":9832},{"style":1148},[9833],{"type":44,"value":9401},{"type":39,"tag":1135,"props":9835,"children":9836},{"style":1142},[9837],{"type":44,"value":499},{"type":39,"tag":1135,"props":9839,"children":9840},{"style":1148},[9841],{"type":44,"value":1275},{"type":39,"tag":1135,"props":9843,"children":9844},{"style":1142},[9845],{"type":44,"value":1923},{"type":39,"tag":1135,"props":9847,"children":9848},{"style":1540},[9849],{"type":44,"value":7783},{"type":39,"tag":1135,"props":9851,"children":9852},{"style":1142},[9853],{"type":44,"value":1548},{"type":39,"tag":1135,"props":9855,"children":9856},{"style":1148},[9857],{"type":44,"value":9401},{"type":39,"tag":1135,"props":9859,"children":9860},{"style":1142},[9861],{"type":44,"value":499},{"type":39,"tag":1135,"props":9863,"children":9864},{"style":1148},[9865],{"type":44,"value":9552},{"type":39,"tag":1135,"props":9867,"children":9868},{"style":1142},[9869],{"type":44,"value":1923},{"type":39,"tag":1135,"props":9871,"children":9872},{"style":1148},[9873],{"type":44,"value":7800},{"type":39,"tag":1135,"props":9875,"children":9876},{"style":1142},[9877],{"type":44,"value":1359},{"type":39,"tag":1135,"props":9879,"children":9880},{"style":1540},[9881],{"type":44,"value":1698},{"type":39,"tag":1135,"props":9883,"children":9884},{"style":1142},[9885],{"type":44,"value":1383},{"type":39,"tag":1135,"props":9887,"children":9889},{"class":1137,"line":9888},69,[9890],{"type":39,"tag":1135,"props":9891,"children":9892},{"style":1142},[9893],{"type":44,"value":9894},"            }\n",{"type":39,"tag":1135,"props":9896,"children":9898},{"class":1137,"line":9897},70,[9899,9904,9909,9914,9918,9922,9926,9930,9934,9938,9943,9947,9951],{"type":39,"tag":1135,"props":9900,"children":9901},{"style":1142},[9902],{"type":44,"value":9903},"          }",{"type":39,"tag":1135,"props":9905,"children":9906},{"style":1341},[9907],{"type":44,"value":9908}," else",{"type":39,"tag":1135,"props":9910,"children":9911},{"style":1341},[9912],{"type":44,"value":9913}," if",{"type":39,"tag":1135,"props":9915,"children":9916},{"style":1540},[9917],{"type":44,"value":2191},{"type":39,"tag":1135,"props":9919,"children":9920},{"style":1148},[9921],{"type":44,"value":9485},{"type":39,"tag":1135,"props":9923,"children":9924},{"style":1142},[9925],{"type":44,"value":499},{"type":39,"tag":1135,"props":9927,"children":9928},{"style":1148},[9929],{"type":44,"value":3616},{"type":39,"tag":1135,"props":9931,"children":9932},{"style":1142},[9933],{"type":44,"value":3258},{"type":39,"tag":1135,"props":9935,"children":9936},{"style":1142},[9937],{"type":44,"value":1369},{"type":39,"tag":1135,"props":9939,"children":9940},{"style":1164},[9941],{"type":44,"value":9942},"function_call_output",{"type":39,"tag":1135,"props":9944,"children":9945},{"style":1142},[9946],{"type":44,"value":1378},{"type":39,"tag":1135,"props":9948,"children":9949},{"style":1540},[9950],{"type":44,"value":2384},{"type":39,"tag":1135,"props":9952,"children":9953},{"style":1142},[9954],{"type":44,"value":1533},{"type":39,"tag":1135,"props":9956,"children":9958},{"class":1137,"line":9957},71,[9959,9964,9969,9973,9978,9982,9986,9991,9995,9999,10003,10007,10011,10015,10019,10023,10027,10031,10035,10039,10043,10047,10051,10055,10059],{"type":39,"tag":1135,"props":9960,"children":9961},{"style":1440},[9962],{"type":44,"value":9963},"            const",{"type":39,"tag":1135,"props":9965,"children":9966},{"style":1148},[9967],{"type":44,"value":9968}," out",{"type":39,"tag":1135,"props":9970,"children":9971},{"style":1142},[9972],{"type":44,"value":1984},{"type":39,"tag":1135,"props":9974,"children":9975},{"style":1142},[9976],{"type":44,"value":9977}," typeof",{"type":39,"tag":1135,"props":9979,"children":9980},{"style":1148},[9981],{"type":44,"value":9401},{"type":39,"tag":1135,"props":9983,"children":9984},{"style":1142},[9985],{"type":44,"value":499},{"type":39,"tag":1135,"props":9987,"children":9988},{"style":1148},[9989],{"type":44,"value":9990},"output",{"type":39,"tag":1135,"props":9992,"children":9993},{"style":1142},[9994],{"type":44,"value":3258},{"type":39,"tag":1135,"props":9996,"children":9997},{"style":1142},[9998],{"type":44,"value":1369},{"type":39,"tag":1135,"props":10000,"children":10001},{"style":1164},[10002],{"type":44,"value":1662},{"type":39,"tag":1135,"props":10004,"children":10005},{"style":1142},[10006],{"type":44,"value":1378},{"type":39,"tag":1135,"props":10008,"children":10009},{"style":1142},[10010],{"type":44,"value":2113},{"type":39,"tag":1135,"props":10012,"children":10013},{"style":1148},[10014],{"type":44,"value":9401},{"type":39,"tag":1135,"props":10016,"children":10017},{"style":1142},[10018],{"type":44,"value":499},{"type":39,"tag":1135,"props":10020,"children":10021},{"style":1148},[10022],{"type":44,"value":9990},{"type":39,"tag":1135,"props":10024,"children":10025},{"style":1142},[10026],{"type":44,"value":2132},{"type":39,"tag":1135,"props":10028,"children":10029},{"style":1148},[10030],{"type":44,"value":5896},{"type":39,"tag":1135,"props":10032,"children":10033},{"style":1142},[10034],{"type":44,"value":499},{"type":39,"tag":1135,"props":10036,"children":10037},{"style":1179},[10038],{"type":44,"value":4828},{"type":39,"tag":1135,"props":10040,"children":10041},{"style":1540},[10042],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10044,"children":10045},{"style":1148},[10046],{"type":44,"value":9485},{"type":39,"tag":1135,"props":10048,"children":10049},{"style":1142},[10050],{"type":44,"value":499},{"type":39,"tag":1135,"props":10052,"children":10053},{"style":1148},[10054],{"type":44,"value":9990},{"type":39,"tag":1135,"props":10056,"children":10057},{"style":1540},[10058],{"type":44,"value":1698},{"type":39,"tag":1135,"props":10060,"children":10061},{"style":1142},[10062],{"type":44,"value":1383},{"type":39,"tag":1135,"props":10064,"children":10066},{"class":1137,"line":10065},72,[10067,10072,10076,10080,10084,10088],{"type":39,"tag":1135,"props":10068,"children":10069},{"style":1148},[10070],{"type":44,"value":10071},"            options",{"type":39,"tag":1135,"props":10073,"children":10074},{"style":1142},[10075],{"type":44,"value":499},{"type":39,"tag":1135,"props":10077,"children":10078},{"style":1179},[10079],{"type":44,"value":9014},{"type":39,"tag":1135,"props":10081,"children":10082},{"style":1142},[10083],{"type":44,"value":4720},{"type":39,"tag":1135,"props":10085,"children":10086},{"style":1540},[10087],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10089,"children":10090},{"style":1142},[10091],{"type":44,"value":1533},{"type":39,"tag":1135,"props":10093,"children":10095},{"class":1137,"line":10094},73,[10096,10101,10105,10109,10113,10117],{"type":39,"tag":1135,"props":10097,"children":10098},{"style":1540},[10099],{"type":44,"value":10100},"              type",{"type":39,"tag":1135,"props":10102,"children":10103},{"style":1142},[10104],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10106,"children":10107},{"style":1142},[10108],{"type":44,"value":1369},{"type":39,"tag":1135,"props":10110,"children":10111},{"style":1164},[10112],{"type":44,"value":7862},{"type":39,"tag":1135,"props":10114,"children":10115},{"style":1142},[10116],{"type":44,"value":1378},{"type":39,"tag":1135,"props":10118,"children":10119},{"style":1142},[10120],{"type":44,"value":1566},{"type":39,"tag":1135,"props":10122,"children":10124},{"class":1137,"line":10123},74,[10125,10130,10134,10138,10142,10147,10151,10155,10159,10163,10167,10172,10176,10181,10185],{"type":39,"tag":1135,"props":10126,"children":10127},{"style":1540},[10128],{"type":44,"value":10129},"              name",{"type":39,"tag":1135,"props":10131,"children":10132},{"style":1142},[10133],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10135,"children":10136},{"style":1148},[10137],{"type":44,"value":9058},{"type":39,"tag":1135,"props":10139,"children":10140},{"style":1142},[10141],{"type":44,"value":499},{"type":39,"tag":1135,"props":10143,"children":10144},{"style":1179},[10145],{"type":44,"value":10146},"get",{"type":39,"tag":1135,"props":10148,"children":10149},{"style":1540},[10150],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10152,"children":10153},{"style":1148},[10154],{"type":44,"value":9485},{"type":39,"tag":1135,"props":10156,"children":10157},{"style":1142},[10158],{"type":44,"value":499},{"type":39,"tag":1135,"props":10160,"children":10161},{"style":1148},[10162],{"type":44,"value":9552},{"type":39,"tag":1135,"props":10164,"children":10165},{"style":1540},[10166],{"type":44,"value":2384},{"type":39,"tag":1135,"props":10168,"children":10169},{"style":1142},[10170],{"type":44,"value":10171},"??",{"type":39,"tag":1135,"props":10173,"children":10174},{"style":1142},[10175],{"type":44,"value":1369},{"type":39,"tag":1135,"props":10177,"children":10178},{"style":1164},[10179],{"type":44,"value":10180},"unknown",{"type":39,"tag":1135,"props":10182,"children":10183},{"style":1142},[10184],{"type":44,"value":1378},{"type":39,"tag":1135,"props":10186,"children":10187},{"style":1142},[10188],{"type":44,"value":1566},{"type":39,"tag":1135,"props":10190,"children":10192},{"class":1137,"line":10191},75,[10193,10198,10202,10206,10210,10214],{"type":39,"tag":1135,"props":10194,"children":10195},{"style":1540},[10196],{"type":44,"value":10197},"              callId",{"type":39,"tag":1135,"props":10199,"children":10200},{"style":1142},[10201],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10203,"children":10204},{"style":1148},[10205],{"type":44,"value":9401},{"type":39,"tag":1135,"props":10207,"children":10208},{"style":1142},[10209],{"type":44,"value":499},{"type":39,"tag":1135,"props":10211,"children":10212},{"style":1148},[10213],{"type":44,"value":9552},{"type":39,"tag":1135,"props":10215,"children":10216},{"style":1142},[10217],{"type":44,"value":1566},{"type":39,"tag":1135,"props":10219,"children":10221},{"class":1137,"line":10220},76,[10222,10227,10231,10235,10239,10243,10247,10252,10256,10260,10264,10268,10272,10276,10280,10284,10288,10292,10296,10301,10305,10309,10313],{"type":39,"tag":1135,"props":10223,"children":10224},{"style":1540},[10225],{"type":44,"value":10226},"              output",{"type":39,"tag":1135,"props":10228,"children":10229},{"style":1142},[10230],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10232,"children":10233},{"style":1148},[10234],{"type":44,"value":9968},{"type":39,"tag":1135,"props":10236,"children":10237},{"style":1142},[10238],{"type":44,"value":499},{"type":39,"tag":1135,"props":10240,"children":10241},{"style":1148},[10242],{"type":44,"value":2227},{"type":39,"tag":1135,"props":10244,"children":10245},{"style":1142},[10246],{"type":44,"value":2604},{"type":39,"tag":1135,"props":10248,"children":10249},{"style":1456},[10250],{"type":44,"value":10251}," 200",{"type":39,"tag":1135,"props":10253,"children":10254},{"style":1142},[10255],{"type":44,"value":2113},{"type":39,"tag":1135,"props":10257,"children":10258},{"style":1148},[10259],{"type":44,"value":9968},{"type":39,"tag":1135,"props":10261,"children":10262},{"style":1142},[10263],{"type":44,"value":499},{"type":39,"tag":1135,"props":10265,"children":10266},{"style":1179},[10267],{"type":44,"value":2291},{"type":39,"tag":1135,"props":10269,"children":10270},{"style":1540},[10271],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10273,"children":10274},{"style":1456},[10275],{"type":44,"value":2441},{"type":39,"tag":1135,"props":10277,"children":10278},{"style":1142},[10279],{"type":44,"value":1923},{"type":39,"tag":1135,"props":10281,"children":10282},{"style":1456},[10283],{"type":44,"value":10251},{"type":39,"tag":1135,"props":10285,"children":10286},{"style":1540},[10287],{"type":44,"value":2384},{"type":39,"tag":1135,"props":10289,"children":10290},{"style":1142},[10291],{"type":44,"value":2458},{"type":39,"tag":1135,"props":10293,"children":10294},{"style":1142},[10295],{"type":44,"value":1369},{"type":39,"tag":1135,"props":10297,"children":10298},{"style":1164},[10299],{"type":44,"value":10300},"...",{"type":39,"tag":1135,"props":10302,"children":10303},{"style":1142},[10304],{"type":44,"value":1378},{"type":39,"tag":1135,"props":10306,"children":10307},{"style":1142},[10308],{"type":44,"value":2132},{"type":39,"tag":1135,"props":10310,"children":10311},{"style":1148},[10312],{"type":44,"value":9968},{"type":39,"tag":1135,"props":10314,"children":10315},{"style":1142},[10316],{"type":44,"value":1566},{"type":39,"tag":1135,"props":10318,"children":10320},{"class":1137,"line":10319},77,[10321,10326,10330],{"type":39,"tag":1135,"props":10322,"children":10323},{"style":1142},[10324],{"type":44,"value":10325},"            }",{"type":39,"tag":1135,"props":10327,"children":10328},{"style":1540},[10329],{"type":44,"value":1698},{"type":39,"tag":1135,"props":10331,"children":10332},{"style":1142},[10333],{"type":44,"value":1383},{"type":39,"tag":1135,"props":10335,"children":10337},{"class":1137,"line":10336},78,[10338],{"type":39,"tag":1135,"props":10339,"children":10340},{"style":3549},[10341],{"type":44,"value":10342},"            \u002F\u002F Signal a turn boundary; consumers (e.g. CLI text mode) can\n",{"type":39,"tag":1135,"props":10344,"children":10346},{"class":1137,"line":10345},79,[10347],{"type":39,"tag":1135,"props":10348,"children":10349},{"style":3549},[10350],{"type":44,"value":10351},"            \u002F\u002F render a separator. Keeps presentation out of agent.ts.\n",{"type":39,"tag":1135,"props":10353,"children":10355},{"class":1137,"line":10354},80,[10356,10360,10364,10368,10372,10376,10380,10384,10388,10392,10396,10400,10404,10408],{"type":39,"tag":1135,"props":10357,"children":10358},{"style":1148},[10359],{"type":44,"value":10071},{"type":39,"tag":1135,"props":10361,"children":10362},{"style":1142},[10363],{"type":44,"value":499},{"type":39,"tag":1135,"props":10365,"children":10366},{"style":1179},[10367],{"type":44,"value":9014},{"type":39,"tag":1135,"props":10369,"children":10370},{"style":1142},[10371],{"type":44,"value":4720},{"type":39,"tag":1135,"props":10373,"children":10374},{"style":1540},[10375],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10377,"children":10378},{"style":1142},[10379],{"type":44,"value":7112},{"type":39,"tag":1135,"props":10381,"children":10382},{"style":1540},[10383],{"type":44,"value":7117},{"type":39,"tag":1135,"props":10385,"children":10386},{"style":1142},[10387],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10389,"children":10390},{"style":1142},[10391],{"type":44,"value":1369},{"type":39,"tag":1135,"props":10393,"children":10394},{"style":1164},[10395],{"type":44,"value":7999},{"type":39,"tag":1135,"props":10397,"children":10398},{"style":1142},[10399],{"type":44,"value":1378},{"type":39,"tag":1135,"props":10401,"children":10402},{"style":1142},[10403],{"type":44,"value":1359},{"type":39,"tag":1135,"props":10405,"children":10406},{"style":1540},[10407],{"type":44,"value":1698},{"type":39,"tag":1135,"props":10409,"children":10410},{"style":1142},[10411],{"type":44,"value":1383},{"type":39,"tag":1135,"props":10413,"children":10415},{"class":1137,"line":10414},81,[10416,10420,10424,10428,10432,10436,10440,10444,10448,10452,10456,10460,10464],{"type":39,"tag":1135,"props":10417,"children":10418},{"style":1142},[10419],{"type":44,"value":9903},{"type":39,"tag":1135,"props":10421,"children":10422},{"style":1341},[10423],{"type":44,"value":9908},{"type":39,"tag":1135,"props":10425,"children":10426},{"style":1341},[10427],{"type":44,"value":9913},{"type":39,"tag":1135,"props":10429,"children":10430},{"style":1540},[10431],{"type":44,"value":2191},{"type":39,"tag":1135,"props":10433,"children":10434},{"style":1148},[10435],{"type":44,"value":9485},{"type":39,"tag":1135,"props":10437,"children":10438},{"style":1142},[10439],{"type":44,"value":499},{"type":39,"tag":1135,"props":10441,"children":10442},{"style":1148},[10443],{"type":44,"value":3616},{"type":39,"tag":1135,"props":10445,"children":10446},{"style":1142},[10447],{"type":44,"value":3258},{"type":39,"tag":1135,"props":10449,"children":10450},{"style":1142},[10451],{"type":44,"value":1369},{"type":39,"tag":1135,"props":10453,"children":10454},{"style":1164},[10455],{"type":44,"value":7947},{"type":39,"tag":1135,"props":10457,"children":10458},{"style":1142},[10459],{"type":44,"value":1378},{"type":39,"tag":1135,"props":10461,"children":10462},{"style":1540},[10463],{"type":44,"value":2384},{"type":39,"tag":1135,"props":10465,"children":10466},{"style":1142},[10467],{"type":44,"value":1533},{"type":39,"tag":1135,"props":10469,"children":10471},{"class":1137,"line":10470},82,[10472,10476,10481,10485,10489,10493,10498,10502,10506,10510,10514,10519,10523,10527,10531,10535,10539,10543,10547,10552,10556,10560,10564,10568,10572,10576,10581,10585,10589,10593],{"type":39,"tag":1135,"props":10473,"children":10474},{"style":1440},[10475],{"type":44,"value":9963},{"type":39,"tag":1135,"props":10477,"children":10478},{"style":1148},[10479],{"type":44,"value":10480}," text",{"type":39,"tag":1135,"props":10482,"children":10483},{"style":1142},[10484],{"type":44,"value":1984},{"type":39,"tag":1135,"props":10486,"children":10487},{"style":1148},[10488],{"type":44,"value":9401},{"type":39,"tag":1135,"props":10490,"children":10491},{"style":1142},[10492],{"type":44,"value":499},{"type":39,"tag":1135,"props":10494,"children":10495},{"style":1148},[10496],{"type":44,"value":10497},"summary",{"type":39,"tag":1135,"props":10499,"children":10500},{"style":1142},[10501],{"type":44,"value":6472},{"type":39,"tag":1135,"props":10503,"children":10504},{"style":1179},[10505],{"type":44,"value":2320},{"type":39,"tag":1135,"props":10507,"children":10508},{"style":1540},[10509],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10511,"children":10512},{"style":1142},[10513],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10515,"children":10516},{"style":1915},[10517],{"type":44,"value":10518},"s",{"type":39,"tag":1135,"props":10520,"children":10521},{"style":1142},[10522],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10524,"children":10525},{"style":1142},[10526],{"type":44,"value":1349},{"type":39,"tag":1135,"props":10528,"children":10529},{"style":1540},[10530],{"type":44,"value":10480},{"type":39,"tag":1135,"props":10532,"children":10533},{"style":1142},[10534],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10536,"children":10537},{"style":1209},[10538],{"type":44,"value":2634},{"type":39,"tag":1135,"props":10540,"children":10541},{"style":1142},[10542],{"type":44,"value":1942},{"type":39,"tag":1135,"props":10544,"children":10545},{"style":1440},[10546],{"type":44,"value":1947},{"type":39,"tag":1135,"props":10548,"children":10549},{"style":1148},[10550],{"type":44,"value":10551}," s",{"type":39,"tag":1135,"props":10553,"children":10554},{"style":1142},[10555],{"type":44,"value":499},{"type":39,"tag":1135,"props":10557,"children":10558},{"style":1148},[10559],{"type":44,"value":44},{"type":39,"tag":1135,"props":10561,"children":10562},{"style":1540},[10563],{"type":44,"value":1698},{"type":39,"tag":1135,"props":10565,"children":10566},{"style":1142},[10567],{"type":44,"value":499},{"type":39,"tag":1135,"props":10569,"children":10570},{"style":1179},[10571],{"type":44,"value":2957},{"type":39,"tag":1135,"props":10573,"children":10574},{"style":1540},[10575],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10577,"children":10578},{"style":1142},[10579],{"type":44,"value":10580},"''",{"type":39,"tag":1135,"props":10582,"children":10583},{"style":1540},[10584],{"type":44,"value":2384},{"type":39,"tag":1135,"props":10586,"children":10587},{"style":1142},[10588],{"type":44,"value":10171},{"type":39,"tag":1135,"props":10590,"children":10591},{"style":1142},[10592],{"type":44,"value":5182},{"type":39,"tag":1135,"props":10594,"children":10595},{"style":1142},[10596],{"type":44,"value":1383},{"type":39,"tag":1135,"props":10598,"children":10600},{"class":1137,"line":10599},83,[10601,10605,10609,10613,10617,10621,10625,10629,10633,10637,10641,10645,10649,10653,10657,10661,10665,10669,10673,10677,10681,10685],{"type":39,"tag":1135,"props":10602,"children":10603},{"style":1341},[10604],{"type":44,"value":9584},{"type":39,"tag":1135,"props":10606,"children":10607},{"style":1540},[10608],{"type":44,"value":2191},{"type":39,"tag":1135,"props":10610,"children":10611},{"style":1148},[10612],{"type":44,"value":44},{"type":39,"tag":1135,"props":10614,"children":10615},{"style":1540},[10616],{"type":44,"value":2384},{"type":39,"tag":1135,"props":10618,"children":10619},{"style":1148},[10620],{"type":44,"value":8873},{"type":39,"tag":1135,"props":10622,"children":10623},{"style":1142},[10624],{"type":44,"value":499},{"type":39,"tag":1135,"props":10626,"children":10627},{"style":1179},[10628],{"type":44,"value":9014},{"type":39,"tag":1135,"props":10630,"children":10631},{"style":1142},[10632],{"type":44,"value":4720},{"type":39,"tag":1135,"props":10634,"children":10635},{"style":1540},[10636],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10638,"children":10639},{"style":1142},[10640],{"type":44,"value":7112},{"type":39,"tag":1135,"props":10642,"children":10643},{"style":1540},[10644],{"type":44,"value":7117},{"type":39,"tag":1135,"props":10646,"children":10647},{"style":1142},[10648],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10650,"children":10651},{"style":1142},[10652],{"type":44,"value":1369},{"type":39,"tag":1135,"props":10654,"children":10655},{"style":1164},[10656],{"type":44,"value":7947},{"type":39,"tag":1135,"props":10658,"children":10659},{"style":1142},[10660],{"type":44,"value":1378},{"type":39,"tag":1135,"props":10662,"children":10663},{"style":1142},[10664],{"type":44,"value":1923},{"type":39,"tag":1135,"props":10666,"children":10667},{"style":1540},[10668],{"type":44,"value":7712},{"type":39,"tag":1135,"props":10670,"children":10671},{"style":1142},[10672],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10674,"children":10675},{"style":1148},[10676],{"type":44,"value":10480},{"type":39,"tag":1135,"props":10678,"children":10679},{"style":1142},[10680],{"type":44,"value":1359},{"type":39,"tag":1135,"props":10682,"children":10683},{"style":1540},[10684],{"type":44,"value":1698},{"type":39,"tag":1135,"props":10686,"children":10687},{"style":1142},[10688],{"type":44,"value":1383},{"type":39,"tag":1135,"props":10690,"children":10692},{"class":1137,"line":10691},84,[10693],{"type":39,"tag":1135,"props":10694,"children":10695},{"style":1142},[10696],{"type":44,"value":10697},"          }\n",{"type":39,"tag":1135,"props":10699,"children":10701},{"class":1137,"line":10700},85,[10702],{"type":39,"tag":1135,"props":10703,"children":10704},{"style":1142},[10705],{"type":44,"value":9331},{"type":39,"tag":1135,"props":10707,"children":10709},{"class":1137,"line":10708},86,[10710],{"type":39,"tag":1135,"props":10711,"children":10712},{"style":1142},[10713],{"type":44,"value":3189},{"type":39,"tag":1135,"props":10715,"children":10717},{"class":1137,"line":10716},87,[10718],{"type":39,"tag":1135,"props":10719,"children":10720},{"emptyLinePlaceholder":1430},[10721],{"type":44,"value":1433},{"type":39,"tag":1135,"props":10723,"children":10725},{"class":1137,"line":10724},88,[10726,10731,10736,10740,10745,10750,10755,10759,10763,10767,10772],{"type":39,"tag":1135,"props":10727,"children":10728},{"style":1341},[10729],{"type":44,"value":10730},"      await",{"type":39,"tag":1135,"props":10732,"children":10733},{"style":1209},[10734],{"type":44,"value":10735}," Promise",{"type":39,"tag":1135,"props":10737,"children":10738},{"style":1142},[10739],{"type":44,"value":499},{"type":39,"tag":1135,"props":10741,"children":10742},{"style":1179},[10743],{"type":44,"value":10744},"all",{"type":39,"tag":1135,"props":10746,"children":10747},{"style":1540},[10748],{"type":44,"value":10749},"([",{"type":39,"tag":1135,"props":10751,"children":10752},{"style":1179},[10753],{"type":44,"value":10754},"streamText",{"type":39,"tag":1135,"props":10756,"children":10757},{"style":1540},[10758],{"type":44,"value":1667},{"type":39,"tag":1135,"props":10760,"children":10761},{"style":1142},[10762],{"type":44,"value":1923},{"type":39,"tag":1135,"props":10764,"children":10765},{"style":1179},[10766],{"type":44,"value":9357},{"type":39,"tag":1135,"props":10768,"children":10769},{"style":1540},[10770],{"type":44,"value":10771},"()])",{"type":39,"tag":1135,"props":10773,"children":10774},{"style":1142},[10775],{"type":44,"value":1383},{"type":39,"tag":1135,"props":10777,"children":10779},{"class":1137,"line":10778},89,[10780],{"type":39,"tag":1135,"props":10781,"children":10782},{"style":1142},[10783],{"type":44,"value":3452},{"type":39,"tag":1135,"props":10785,"children":10787},{"class":1137,"line":10786},90,[10788],{"type":39,"tag":1135,"props":10789,"children":10790},{"emptyLinePlaceholder":1430},[10791],{"type":44,"value":1433},{"type":39,"tag":1135,"props":10793,"children":10795},{"class":1137,"line":10794},91,[10796,10800,10805,10809,10813,10817,10821,10826,10830],{"type":39,"tag":1135,"props":10797,"children":10798},{"style":1440},[10799],{"type":44,"value":5882},{"type":39,"tag":1135,"props":10801,"children":10802},{"style":1148},[10803],{"type":44,"value":10804}," response",{"type":39,"tag":1135,"props":10806,"children":10807},{"style":1142},[10808],{"type":44,"value":1984},{"type":39,"tag":1135,"props":10810,"children":10811},{"style":1341},[10812],{"type":44,"value":1989},{"type":39,"tag":1135,"props":10814,"children":10815},{"style":1148},[10816],{"type":44,"value":8441},{"type":39,"tag":1135,"props":10818,"children":10819},{"style":1142},[10820],{"type":44,"value":499},{"type":39,"tag":1135,"props":10822,"children":10823},{"style":1179},[10824],{"type":44,"value":10825},"getResponse",{"type":39,"tag":1135,"props":10827,"children":10828},{"style":1540},[10829],{"type":44,"value":1667},{"type":39,"tag":1135,"props":10831,"children":10832},{"style":1142},[10833],{"type":44,"value":1383},{"type":39,"tag":1135,"props":10835,"children":10837},{"class":1137,"line":10836},92,[10838,10842,10846,10850,10854,10858,10862,10867,10871,10875],{"type":39,"tag":1135,"props":10839,"children":10840},{"style":1440},[10841],{"type":44,"value":5882},{"type":39,"tag":1135,"props":10843,"children":10844},{"style":1148},[10845],{"type":44,"value":8134},{"type":39,"tag":1135,"props":10847,"children":10848},{"style":1142},[10849],{"type":44,"value":1984},{"type":39,"tag":1135,"props":10851,"children":10852},{"style":1148},[10853],{"type":44,"value":8340},{"type":39,"tag":1135,"props":10855,"children":10856},{"style":1142},[10857],{"type":44,"value":499},{"type":39,"tag":1135,"props":10859,"children":10860},{"style":1179},[10861],{"type":44,"value":8349},{"type":39,"tag":1135,"props":10863,"children":10864},{"style":1540},[10865],{"type":44,"value":10866},"() ",{"type":39,"tag":1135,"props":10868,"children":10869},{"style":1142},[10870],{"type":44,"value":2490},{"type":39,"tag":1135,"props":10872,"children":10873},{"style":1148},[10874],{"type":44,"value":8331},{"type":39,"tag":1135,"props":10876,"children":10877},{"style":1142},[10878],{"type":44,"value":1383},{"type":39,"tag":1135,"props":10880,"children":10882},{"class":1137,"line":10881},93,[10883,10887,10891,10895,10899,10903,10907,10912,10916,10921,10925,10929,10933],{"type":39,"tag":1135,"props":10884,"children":10885},{"style":1440},[10886],{"type":44,"value":5882},{"type":39,"tag":1135,"props":10888,"children":10889},{"style":1148},[10890],{"type":44,"value":10480},{"type":39,"tag":1135,"props":10892,"children":10893},{"style":1142},[10894],{"type":44,"value":1984},{"type":39,"tag":1135,"props":10896,"children":10897},{"style":1148},[10898],{"type":44,"value":8958},{"type":39,"tag":1135,"props":10900,"children":10901},{"style":1142},[10902],{"type":44,"value":2595},{"type":39,"tag":1135,"props":10904,"children":10905},{"style":1540},[10906],{"type":44,"value":2191},{"type":39,"tag":1135,"props":10908,"children":10909},{"style":1148},[10910],{"type":44,"value":10911},"response",{"type":39,"tag":1135,"props":10913,"children":10914},{"style":1142},[10915],{"type":44,"value":499},{"type":39,"tag":1135,"props":10917,"children":10918},{"style":1148},[10919],{"type":44,"value":10920},"outputText",{"type":39,"tag":1135,"props":10922,"children":10923},{"style":1142},[10924],{"type":44,"value":2201},{"type":39,"tag":1135,"props":10926,"children":10927},{"style":1142},[10928],{"type":44,"value":5182},{"type":39,"tag":1135,"props":10930,"children":10931},{"style":1540},[10932],{"type":44,"value":1698},{"type":39,"tag":1135,"props":10934,"children":10935},{"style":1142},[10936],{"type":44,"value":1383},{"type":39,"tag":1135,"props":10938,"children":10940},{"class":1137,"line":10939},94,[10941,10946,10950,10954,10958,10962,10966,10970,10974,10978,10982,10986,10990,10994,10998,11002,11006,11011,11015,11019,11023,11027],{"type":39,"tag":1135,"props":10942,"children":10943},{"style":1148},[10944],{"type":44,"value":10945},"    options",{"type":39,"tag":1135,"props":10947,"children":10948},{"style":1142},[10949],{"type":44,"value":6472},{"type":39,"tag":1135,"props":10951,"children":10952},{"style":1179},[10953],{"type":44,"value":9014},{"type":39,"tag":1135,"props":10955,"children":10956},{"style":1142},[10957],{"type":44,"value":6472},{"type":39,"tag":1135,"props":10959,"children":10960},{"style":1540},[10961],{"type":44,"value":1528},{"type":39,"tag":1135,"props":10963,"children":10964},{"style":1142},[10965],{"type":44,"value":7112},{"type":39,"tag":1135,"props":10967,"children":10968},{"style":1540},[10969],{"type":44,"value":7117},{"type":39,"tag":1135,"props":10971,"children":10972},{"style":1142},[10973],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10975,"children":10976},{"style":1142},[10977],{"type":44,"value":1369},{"type":39,"tag":1135,"props":10979,"children":10980},{"style":1164},[10981],{"type":44,"value":8035},{"type":39,"tag":1135,"props":10983,"children":10984},{"style":1142},[10985],{"type":44,"value":1378},{"type":39,"tag":1135,"props":10987,"children":10988},{"style":1142},[10989],{"type":44,"value":1923},{"type":39,"tag":1135,"props":10991,"children":10992},{"style":1540},[10993],{"type":44,"value":8048},{"type":39,"tag":1135,"props":10995,"children":10996},{"style":1142},[10997],{"type":44,"value":1548},{"type":39,"tag":1135,"props":10999,"children":11000},{"style":1148},[11001],{"type":44,"value":10804},{"type":39,"tag":1135,"props":11003,"children":11004},{"style":1142},[11005],{"type":44,"value":499},{"type":39,"tag":1135,"props":11007,"children":11008},{"style":1148},[11009],{"type":44,"value":11010},"usage",{"type":39,"tag":1135,"props":11012,"children":11013},{"style":1142},[11014],{"type":44,"value":1923},{"type":39,"tag":1135,"props":11016,"children":11017},{"style":1148},[11018],{"type":44,"value":8134},{"type":39,"tag":1135,"props":11020,"children":11021},{"style":1142},[11022],{"type":44,"value":1359},{"type":39,"tag":1135,"props":11024,"children":11025},{"style":1540},[11026],{"type":44,"value":1698},{"type":39,"tag":1135,"props":11028,"children":11029},{"style":1142},[11030],{"type":44,"value":1383},{"type":39,"tag":1135,"props":11032,"children":11034},{"class":1137,"line":11033},95,[11035,11040,11044,11048,11052,11056,11060,11064,11068,11072,11076,11080,11084,11088,11092,11096,11100,11104],{"type":39,"tag":1135,"props":11036,"children":11037},{"style":1341},[11038],{"type":44,"value":11039},"    return",{"type":39,"tag":1135,"props":11041,"children":11042},{"style":1142},[11043],{"type":44,"value":1349},{"type":39,"tag":1135,"props":11045,"children":11046},{"style":1148},[11047],{"type":44,"value":10480},{"type":39,"tag":1135,"props":11049,"children":11050},{"style":1142},[11051],{"type":44,"value":1923},{"type":39,"tag":1135,"props":11053,"children":11054},{"style":1540},[11055],{"type":44,"value":8048},{"type":39,"tag":1135,"props":11057,"children":11058},{"style":1142},[11059],{"type":44,"value":1548},{"type":39,"tag":1135,"props":11061,"children":11062},{"style":1148},[11063],{"type":44,"value":10804},{"type":39,"tag":1135,"props":11065,"children":11066},{"style":1142},[11067],{"type":44,"value":499},{"type":39,"tag":1135,"props":11069,"children":11070},{"style":1148},[11071],{"type":44,"value":11010},{"type":39,"tag":1135,"props":11073,"children":11074},{"style":1142},[11075],{"type":44,"value":1923},{"type":39,"tag":1135,"props":11077,"children":11078},{"style":1540},[11079],{"type":44,"value":7907},{"type":39,"tag":1135,"props":11081,"children":11082},{"style":1142},[11083],{"type":44,"value":1548},{"type":39,"tag":1135,"props":11085,"children":11086},{"style":1148},[11087],{"type":44,"value":10804},{"type":39,"tag":1135,"props":11089,"children":11090},{"style":1142},[11091],{"type":44,"value":499},{"type":39,"tag":1135,"props":11093,"children":11094},{"style":1148},[11095],{"type":44,"value":9990},{"type":39,"tag":1135,"props":11097,"children":11098},{"style":1142},[11099],{"type":44,"value":1923},{"type":39,"tag":1135,"props":11101,"children":11102},{"style":1148},[11103],{"type":44,"value":8134},{"type":39,"tag":1135,"props":11105,"children":11106},{"style":1142},[11107],{"type":44,"value":3319},{"type":39,"tag":1135,"props":11109,"children":11111},{"class":1137,"line":11110},96,[11112,11116,11121],{"type":39,"tag":1135,"props":11113,"children":11114},{"style":1142},[11115],{"type":44,"value":1881},{"type":39,"tag":1135,"props":11117,"children":11118},{"style":1341},[11119],{"type":44,"value":11120}," finally",{"type":39,"tag":1135,"props":11122,"children":11123},{"style":1142},[11124],{"type":44,"value":1952},{"type":39,"tag":1135,"props":11126,"children":11128},{"class":1137,"line":11127},97,[11129,11133,11137,11141,11145,11150,11154,11158,11162,11166,11170,11174,11178],{"type":39,"tag":1135,"props":11130,"children":11131},{"style":1148},[11132],{"type":44,"value":10945},{"type":39,"tag":1135,"props":11134,"children":11135},{"style":1142},[11136],{"type":44,"value":6472},{"type":39,"tag":1135,"props":11138,"children":11139},{"style":1148},[11140],{"type":44,"value":8815},{"type":39,"tag":1135,"props":11142,"children":11143},{"style":1142},[11144],{"type":44,"value":6472},{"type":39,"tag":1135,"props":11146,"children":11147},{"style":1179},[11148],{"type":44,"value":11149},"removeEventListener",{"type":39,"tag":1135,"props":11151,"children":11152},{"style":1540},[11153],{"type":44,"value":1528},{"type":39,"tag":1135,"props":11155,"children":11156},{"style":1142},[11157],{"type":44,"value":1378},{"type":39,"tag":1135,"props":11159,"children":11160},{"style":1164},[11161],{"type":44,"value":8837},{"type":39,"tag":1135,"props":11163,"children":11164},{"style":1142},[11165],{"type":44,"value":1378},{"type":39,"tag":1135,"props":11167,"children":11168},{"style":1142},[11169],{"type":44,"value":1923},{"type":39,"tag":1135,"props":11171,"children":11172},{"style":1148},[11173],{"type":44,"value":8765},{"type":39,"tag":1135,"props":11175,"children":11176},{"style":1540},[11177],{"type":44,"value":1698},{"type":39,"tag":1135,"props":11179,"children":11180},{"style":1142},[11181],{"type":44,"value":1383},{"type":39,"tag":1135,"props":11183,"children":11185},{"class":1137,"line":11184},98,[11186],{"type":39,"tag":1135,"props":11187,"children":11188},{"style":1142},[11189],{"type":44,"value":4075},{"type":39,"tag":1135,"props":11191,"children":11193},{"class":1137,"line":11192},99,[11194],{"type":39,"tag":1135,"props":11195,"children":11196},{"style":1142},[11197],{"type":44,"value":4083},{"type":39,"tag":1135,"props":11199,"children":11201},{"class":1137,"line":11200},100,[11202],{"type":39,"tag":1135,"props":11203,"children":11204},{"emptyLinePlaceholder":1430},[11205],{"type":44,"value":1433},{"type":39,"tag":1135,"props":11207,"children":11209},{"class":1137,"line":11208},101,[11210],{"type":39,"tag":1135,"props":11211,"children":11212},{"style":3549},[11213],{"type":44,"value":11214},"\u002F**\n",{"type":39,"tag":1135,"props":11216,"children":11218},{"class":1137,"line":11217},102,[11219],{"type":39,"tag":1135,"props":11220,"children":11221},{"style":3549},[11222],{"type":44,"value":11223}," * Retry on 429\u002F5xx — but ONLY if no tool calls have been executed yet.\n",{"type":39,"tag":1135,"props":11225,"children":11227},{"class":1137,"line":11226},103,[11228],{"type":39,"tag":1135,"props":11229,"children":11230},{"style":3549},[11231],{"type":44,"value":11232}," * Once a mutating tool (file_write, shell, etc.) has run, replaying the\n",{"type":39,"tag":1135,"props":11234,"children":11236},{"class":1137,"line":11235},104,[11237],{"type":39,"tag":1135,"props":11238,"children":11239},{"style":3549},[11240],{"type":44,"value":11241}," * whole agent from the initial prompt would double-execute side effects.\n",{"type":39,"tag":1135,"props":11243,"children":11245},{"class":1137,"line":11244},105,[11246],{"type":39,"tag":1135,"props":11247,"children":11248},{"style":3549},[11249],{"type":44,"value":11250}," * For mid-run resilience, use a StateAccessor (see references\u002Fmodules.md).\n",{"type":39,"tag":1135,"props":11252,"children":11254},{"class":1137,"line":11253},106,[11255],{"type":39,"tag":1135,"props":11256,"children":11257},{"style":3549},[11258],{"type":44,"value":11259}," *\u002F\n",{"type":39,"tag":1135,"props":11261,"children":11263},{"class":1137,"line":11262},107,[11264,11268,11272,11276,11281],{"type":39,"tag":1135,"props":11265,"children":11266},{"style":1341},[11267],{"type":44,"value":1505},{"type":39,"tag":1135,"props":11269,"children":11270},{"style":1440},[11271],{"type":44,"value":1907},{"type":39,"tag":1135,"props":11273,"children":11274},{"style":1440},[11275],{"type":44,"value":5663},{"type":39,"tag":1135,"props":11277,"children":11278},{"style":1179},[11279],{"type":44,"value":11280}," runAgentWithRetry",{"type":39,"tag":1135,"props":11282,"children":11283},{"style":1142},[11284],{"type":44,"value":8178},{"type":39,"tag":1135,"props":11286,"children":11288},{"class":1137,"line":11287},108,[11289,11293,11297,11301],{"type":39,"tag":1135,"props":11290,"children":11291},{"style":1915},[11292],{"type":44,"value":6393},{"type":39,"tag":1135,"props":11294,"children":11295},{"style":1142},[11296],{"type":44,"value":1548},{"type":39,"tag":1135,"props":11298,"children":11299},{"style":1209},[11300],{"type":44,"value":4899},{"type":39,"tag":1135,"props":11302,"children":11303},{"style":1142},[11304],{"type":44,"value":1566},{"type":39,"tag":1135,"props":11306,"children":11308},{"class":1137,"line":11307},109,[11309,11313,11317,11321,11325,11329,11333],{"type":39,"tag":1135,"props":11310,"children":11311},{"style":1915},[11312],{"type":44,"value":8205},{"type":39,"tag":1135,"props":11314,"children":11315},{"style":1142},[11316],{"type":44,"value":1548},{"type":39,"tag":1135,"props":11318,"children":11319},{"style":1209},[11320],{"type":44,"value":2634},{"type":39,"tag":1135,"props":11322,"children":11323},{"style":1142},[11324],{"type":44,"value":1201},{"type":39,"tag":1135,"props":11326,"children":11327},{"style":1209},[11328],{"type":44,"value":7558},{"type":39,"tag":1135,"props":11330,"children":11331},{"style":1148},[11332],{"type":44,"value":8226},{"type":39,"tag":1135,"props":11334,"children":11335},{"style":1142},[11336],{"type":44,"value":1566},{"type":39,"tag":1135,"props":11338,"children":11340},{"class":1137,"line":11339},110,[11341,11345,11349,11353,11357,11361,11365,11369,11373,11377,11381,11385,11389,11393,11397,11401,11405,11409,11414,11418,11422],{"type":39,"tag":1135,"props":11342,"children":11343},{"style":1915},[11344],{"type":44,"value":8238},{"type":39,"tag":1135,"props":11346,"children":11347},{"style":1142},[11348],{"type":44,"value":5718},{"type":39,"tag":1135,"props":11350,"children":11351},{"style":1142},[11352],{"type":44,"value":1349},{"type":39,"tag":1135,"props":11354,"children":11355},{"style":1540},[11356],{"type":44,"value":8251},{"type":39,"tag":1135,"props":11358,"children":11359},{"style":1142},[11360],{"type":44,"value":5718},{"type":39,"tag":1135,"props":11362,"children":11363},{"style":1142},[11364],{"type":44,"value":2191},{"type":39,"tag":1135,"props":11366,"children":11367},{"style":1915},[11368],{"type":44,"value":8264},{"type":39,"tag":1135,"props":11370,"children":11371},{"style":1142},[11372],{"type":44,"value":1548},{"type":39,"tag":1135,"props":11374,"children":11375},{"style":1209},[11376],{"type":44,"value":7666},{"type":39,"tag":1135,"props":11378,"children":11379},{"style":1142},[11380],{"type":44,"value":1698},{"type":39,"tag":1135,"props":11382,"children":11383},{"style":1440},[11384],{"type":44,"value":1947},{"type":39,"tag":1135,"props":11386,"children":11387},{"style":1209},[11388],{"type":44,"value":8285},{"type":39,"tag":1135,"props":11390,"children":11391},{"style":1142},[11392],{"type":44,"value":7627},{"type":39,"tag":1135,"props":11394,"children":11395},{"style":1540},[11396],{"type":44,"value":8294},{"type":39,"tag":1135,"props":11398,"children":11399},{"style":1142},[11400],{"type":44,"value":5718},{"type":39,"tag":1135,"props":11402,"children":11403},{"style":1209},[11404],{"type":44,"value":8303},{"type":39,"tag":1135,"props":11406,"children":11407},{"style":1142},[11408],{"type":44,"value":7627},{"type":39,"tag":1135,"props":11410,"children":11411},{"style":1540},[11412],{"type":44,"value":11413}," maxRetries",{"type":39,"tag":1135,"props":11415,"children":11416},{"style":1142},[11417],{"type":44,"value":5718},{"type":39,"tag":1135,"props":11419,"children":11420},{"style":1209},[11421],{"type":44,"value":4660},{"type":39,"tag":1135,"props":11423,"children":11424},{"style":1142},[11425],{"type":44,"value":8308},{"type":39,"tag":1135,"props":11427,"children":11429},{"class":1137,"line":11428},111,[11430,11434],{"type":39,"tag":1135,"props":11431,"children":11432},{"style":1142},[11433],{"type":44,"value":1698},{"type":39,"tag":1135,"props":11435,"children":11436},{"style":1142},[11437],{"type":44,"value":1952},{"type":39,"tag":1135,"props":11439,"children":11441},{"class":1137,"line":11440},112,[11442,11447,11451,11456,11461,11465,11469,11473,11478,11482,11487,11491,11496,11500,11505,11509,11513,11517,11521,11525,11529,11534,11538],{"type":39,"tag":1135,"props":11443,"children":11444},{"style":1341},[11445],{"type":44,"value":11446},"  for",{"type":39,"tag":1135,"props":11448,"children":11449},{"style":1540},[11450],{"type":44,"value":2191},{"type":39,"tag":1135,"props":11452,"children":11453},{"style":1440},[11454],{"type":44,"value":11455},"let",{"type":39,"tag":1135,"props":11457,"children":11458},{"style":1148},[11459],{"type":44,"value":11460}," attempt",{"type":39,"tag":1135,"props":11462,"children":11463},{"style":1142},[11464],{"type":44,"value":1984},{"type":39,"tag":1135,"props":11466,"children":11467},{"style":1456},[11468],{"type":44,"value":2137},{"type":39,"tag":1135,"props":11470,"children":11471},{"style":1142},[11472],{"type":44,"value":1923},{"type":39,"tag":1135,"props":11474,"children":11475},{"style":1148},[11476],{"type":44,"value":11477}," max",{"type":39,"tag":1135,"props":11479,"children":11480},{"style":1142},[11481],{"type":44,"value":1984},{"type":39,"tag":1135,"props":11483,"children":11484},{"style":1148},[11485],{"type":44,"value":11486}," options",{"type":39,"tag":1135,"props":11488,"children":11489},{"style":1142},[11490],{"type":44,"value":6472},{"type":39,"tag":1135,"props":11492,"children":11493},{"style":1148},[11494],{"type":44,"value":11495},"maxRetries",{"type":39,"tag":1135,"props":11497,"children":11498},{"style":1142},[11499],{"type":44,"value":2201},{"type":39,"tag":1135,"props":11501,"children":11502},{"style":1456},[11503],{"type":44,"value":11504}," 3",{"type":39,"tag":1135,"props":11506,"children":11507},{"style":1142},[11508],{"type":44,"value":7627},{"type":39,"tag":1135,"props":11510,"children":11511},{"style":1148},[11512],{"type":44,"value":11460},{"type":39,"tag":1135,"props":11514,"children":11515},{"style":1142},[11516],{"type":44,"value":2374},{"type":39,"tag":1135,"props":11518,"children":11519},{"style":1148},[11520],{"type":44,"value":11477},{"type":39,"tag":1135,"props":11522,"children":11523},{"style":1142},[11524],{"type":44,"value":7627},{"type":39,"tag":1135,"props":11526,"children":11527},{"style":1148},[11528],{"type":44,"value":11460},{"type":39,"tag":1135,"props":11530,"children":11531},{"style":1142},[11532],{"type":44,"value":11533},"++",{"type":39,"tag":1135,"props":11535,"children":11536},{"style":1540},[11537],{"type":44,"value":2384},{"type":39,"tag":1135,"props":11539,"children":11540},{"style":1142},[11541],{"type":44,"value":1533},{"type":39,"tag":1135,"props":11543,"children":11545},{"class":1137,"line":11544},113,[11546,11551,11556,11560,11564],{"type":39,"tag":1135,"props":11547,"children":11548},{"style":1440},[11549],{"type":44,"value":11550},"    let",{"type":39,"tag":1135,"props":11552,"children":11553},{"style":1148},[11554],{"type":44,"value":11555}," toolCallsMade",{"type":39,"tag":1135,"props":11557,"children":11558},{"style":1142},[11559],{"type":44,"value":1984},{"type":39,"tag":1135,"props":11561,"children":11562},{"style":1456},[11563],{"type":44,"value":2137},{"type":39,"tag":1135,"props":11565,"children":11566},{"style":1142},[11567],{"type":44,"value":1383},{"type":39,"tag":1135,"props":11569,"children":11571},{"class":1137,"line":11570},114,[11572,11576,11581,11585],{"type":39,"tag":1135,"props":11573,"children":11574},{"style":1440},[11575],{"type":44,"value":5882},{"type":39,"tag":1135,"props":11577,"children":11578},{"style":1148},[11579],{"type":44,"value":11580}," wrappedOptions",{"type":39,"tag":1135,"props":11582,"children":11583},{"style":1142},[11584],{"type":44,"value":1984},{"type":39,"tag":1135,"props":11586,"children":11587},{"style":1142},[11588],{"type":44,"value":1952},{"type":39,"tag":1135,"props":11590,"children":11592},{"class":1137,"line":11591},115,[11593,11598,11602],{"type":39,"tag":1135,"props":11594,"children":11595},{"style":1142},[11596],{"type":44,"value":11597},"      ...",{"type":39,"tag":1135,"props":11599,"children":11600},{"style":1148},[11601],{"type":44,"value":8873},{"type":39,"tag":1135,"props":11603,"children":11604},{"style":1142},[11605],{"type":44,"value":1566},{"type":39,"tag":1135,"props":11607,"children":11609},{"class":1137,"line":11608},116,[11610,11615,11619,11623,11627,11631,11635,11639,11643],{"type":39,"tag":1135,"props":11611,"children":11612},{"style":1179},[11613],{"type":44,"value":11614},"      onEvent",{"type":39,"tag":1135,"props":11616,"children":11617},{"style":1142},[11618],{"type":44,"value":1548},{"type":39,"tag":1135,"props":11620,"children":11621},{"style":1142},[11622],{"type":44,"value":2191},{"type":39,"tag":1135,"props":11624,"children":11625},{"style":1915},[11626],{"type":44,"value":8264},{"type":39,"tag":1135,"props":11628,"children":11629},{"style":1142},[11630],{"type":44,"value":1548},{"type":39,"tag":1135,"props":11632,"children":11633},{"style":1209},[11634],{"type":44,"value":7666},{"type":39,"tag":1135,"props":11636,"children":11637},{"style":1142},[11638],{"type":44,"value":1698},{"type":39,"tag":1135,"props":11640,"children":11641},{"style":1440},[11642],{"type":44,"value":1947},{"type":39,"tag":1135,"props":11644,"children":11645},{"style":1142},[11646],{"type":44,"value":1952},{"type":39,"tag":1135,"props":11648,"children":11650},{"class":1137,"line":11649},117,[11651,11655,11659,11663,11667,11671,11675,11679,11683,11687,11691,11696],{"type":39,"tag":1135,"props":11652,"children":11653},{"style":1341},[11654],{"type":44,"value":2353},{"type":39,"tag":1135,"props":11656,"children":11657},{"style":1540},[11658],{"type":44,"value":2191},{"type":39,"tag":1135,"props":11660,"children":11661},{"style":1148},[11662],{"type":44,"value":8264},{"type":39,"tag":1135,"props":11664,"children":11665},{"style":1142},[11666],{"type":44,"value":499},{"type":39,"tag":1135,"props":11668,"children":11669},{"style":1148},[11670],{"type":44,"value":3616},{"type":39,"tag":1135,"props":11672,"children":11673},{"style":1142},[11674],{"type":44,"value":3258},{"type":39,"tag":1135,"props":11676,"children":11677},{"style":1142},[11678],{"type":44,"value":1369},{"type":39,"tag":1135,"props":11680,"children":11681},{"style":1164},[11682],{"type":44,"value":7753},{"type":39,"tag":1135,"props":11684,"children":11685},{"style":1142},[11686],{"type":44,"value":1378},{"type":39,"tag":1135,"props":11688,"children":11689},{"style":1540},[11690],{"type":44,"value":2384},{"type":39,"tag":1135,"props":11692,"children":11693},{"style":1148},[11694],{"type":44,"value":11695},"toolCallsMade",{"type":39,"tag":1135,"props":11697,"children":11698},{"style":1142},[11699],{"type":44,"value":2412},{"type":39,"tag":1135,"props":11701,"children":11703},{"class":1137,"line":11702},118,[11704,11709,11713,11717,11721,11725,11729,11733],{"type":39,"tag":1135,"props":11705,"children":11706},{"style":1148},[11707],{"type":44,"value":11708},"        options",{"type":39,"tag":1135,"props":11710,"children":11711},{"style":1142},[11712],{"type":44,"value":6472},{"type":39,"tag":1135,"props":11714,"children":11715},{"style":1179},[11716],{"type":44,"value":9014},{"type":39,"tag":1135,"props":11718,"children":11719},{"style":1142},[11720],{"type":44,"value":6472},{"type":39,"tag":1135,"props":11722,"children":11723},{"style":1540},[11724],{"type":44,"value":1528},{"type":39,"tag":1135,"props":11726,"children":11727},{"style":1148},[11728],{"type":44,"value":8264},{"type":39,"tag":1135,"props":11730,"children":11731},{"style":1540},[11732],{"type":44,"value":1698},{"type":39,"tag":1135,"props":11734,"children":11735},{"style":1142},[11736],{"type":44,"value":1383},{"type":39,"tag":1135,"props":11738,"children":11740},{"class":1137,"line":11739},119,[11741],{"type":39,"tag":1135,"props":11742,"children":11743},{"style":1142},[11744],{"type":44,"value":11745},"      },\n",{"type":39,"tag":1135,"props":11747,"children":11749},{"class":1137,"line":11748},120,[11750],{"type":39,"tag":1135,"props":11751,"children":11752},{"style":1142},[11753],{"type":44,"value":11754},"    };\n",{"type":39,"tag":1135,"props":11756,"children":11758},{"class":1137,"line":11757},121,[11759,11763],{"type":39,"tag":1135,"props":11760,"children":11761},{"style":1341},[11762],{"type":44,"value":1961},{"type":39,"tag":1135,"props":11764,"children":11765},{"style":1142},[11766],{"type":44,"value":1952},{"type":39,"tag":1135,"props":11768,"children":11770},{"class":1137,"line":11769},122,[11771,11775,11779,11783,11787,11791,11795,11799,11803,11807,11811],{"type":39,"tag":1135,"props":11772,"children":11773},{"style":1341},[11774],{"type":44,"value":2927},{"type":39,"tag":1135,"props":11776,"children":11777},{"style":1341},[11778],{"type":44,"value":1989},{"type":39,"tag":1135,"props":11780,"children":11781},{"style":1179},[11782],{"type":44,"value":8173},{"type":39,"tag":1135,"props":11784,"children":11785},{"style":1540},[11786],{"type":44,"value":1528},{"type":39,"tag":1135,"props":11788,"children":11789},{"style":1148},[11790],{"type":44,"value":5974},{"type":39,"tag":1135,"props":11792,"children":11793},{"style":1142},[11794],{"type":44,"value":1923},{"type":39,"tag":1135,"props":11796,"children":11797},{"style":1148},[11798],{"type":44,"value":8588},{"type":39,"tag":1135,"props":11800,"children":11801},{"style":1142},[11802],{"type":44,"value":1923},{"type":39,"tag":1135,"props":11804,"children":11805},{"style":1148},[11806],{"type":44,"value":11580},{"type":39,"tag":1135,"props":11808,"children":11809},{"style":1540},[11810],{"type":44,"value":1698},{"type":39,"tag":1135,"props":11812,"children":11813},{"style":1142},[11814],{"type":44,"value":1383},{"type":39,"tag":1135,"props":11816,"children":11818},{"class":1137,"line":11817},123,[11819,11823,11827,11831,11835,11839,11843,11847],{"type":39,"tag":1135,"props":11820,"children":11821},{"style":1142},[11822],{"type":44,"value":3198},{"type":39,"tag":1135,"props":11824,"children":11825},{"style":1341},[11826],{"type":44,"value":3203},{"type":39,"tag":1135,"props":11828,"children":11829},{"style":1142},[11830],{"type":44,"value":2191},{"type":39,"tag":1135,"props":11832,"children":11833},{"style":1915},[11834],{"type":44,"value":3212},{"type":39,"tag":1135,"props":11836,"children":11837},{"style":1142},[11838],{"type":44,"value":1548},{"type":39,"tag":1135,"props":11840,"children":11841},{"style":1209},[11842],{"type":44,"value":3221},{"type":39,"tag":1135,"props":11844,"children":11845},{"style":1142},[11846],{"type":44,"value":1698},{"type":39,"tag":1135,"props":11848,"children":11849},{"style":1142},[11850],{"type":44,"value":1952},{"type":39,"tag":1135,"props":11852,"children":11854},{"class":1137,"line":11853},124,[11855,11859,11863,11867,11871,11875,11879,11883,11887,11891,11896],{"type":39,"tag":1135,"props":11856,"children":11857},{"style":1440},[11858],{"type":44,"value":1974},{"type":39,"tag":1135,"props":11860,"children":11861},{"style":1148},[11862],{"type":44,"value":10551},{"type":39,"tag":1135,"props":11864,"children":11865},{"style":1142},[11866],{"type":44,"value":1984},{"type":39,"tag":1135,"props":11868,"children":11869},{"style":1148},[11870],{"type":44,"value":3430},{"type":39,"tag":1135,"props":11872,"children":11873},{"style":1142},[11874],{"type":44,"value":6472},{"type":39,"tag":1135,"props":11876,"children":11877},{"style":1148},[11878],{"type":44,"value":9601},{"type":39,"tag":1135,"props":11880,"children":11881},{"style":1142},[11882],{"type":44,"value":2201},{"type":39,"tag":1135,"props":11884,"children":11885},{"style":1148},[11886],{"type":44,"value":3430},{"type":39,"tag":1135,"props":11888,"children":11889},{"style":1142},[11890],{"type":44,"value":6472},{"type":39,"tag":1135,"props":11892,"children":11893},{"style":1148},[11894],{"type":44,"value":11895},"statusCode",{"type":39,"tag":1135,"props":11897,"children":11898},{"style":1142},[11899],{"type":44,"value":1383},{"type":39,"tag":1135,"props":11901,"children":11903},{"class":1137,"line":11902},125,[11904,11908,11913,11917,11921,11925,11930,11934,11938,11942,11947,11952,11956,11960,11964,11969,11973],{"type":39,"tag":1135,"props":11905,"children":11906},{"style":1440},[11907],{"type":44,"value":1974},{"type":39,"tag":1135,"props":11909,"children":11910},{"style":1148},[11911],{"type":44,"value":11912}," retryable",{"type":39,"tag":1135,"props":11914,"children":11915},{"style":1142},[11916],{"type":44,"value":1984},{"type":39,"tag":1135,"props":11918,"children":11919},{"style":1148},[11920],{"type":44,"value":10551},{"type":39,"tag":1135,"props":11922,"children":11923},{"style":1142},[11924],{"type":44,"value":3258},{"type":39,"tag":1135,"props":11926,"children":11927},{"style":1456},[11928],{"type":44,"value":11929}," 429",{"type":39,"tag":1135,"props":11931,"children":11932},{"style":1142},[11933],{"type":44,"value":2595},{"type":39,"tag":1135,"props":11935,"children":11936},{"style":1540},[11937],{"type":44,"value":2191},{"type":39,"tag":1135,"props":11939,"children":11940},{"style":1148},[11941],{"type":44,"value":10518},{"type":39,"tag":1135,"props":11943,"children":11944},{"style":1142},[11945],{"type":44,"value":11946}," >=",{"type":39,"tag":1135,"props":11948,"children":11949},{"style":1456},[11950],{"type":44,"value":11951}," 500",{"type":39,"tag":1135,"props":11953,"children":11954},{"style":1142},[11955],{"type":44,"value":3033},{"type":39,"tag":1135,"props":11957,"children":11958},{"style":1148},[11959],{"type":44,"value":10551},{"type":39,"tag":1135,"props":11961,"children":11962},{"style":1142},[11963],{"type":44,"value":1206},{"type":39,"tag":1135,"props":11965,"children":11966},{"style":1456},[11967],{"type":44,"value":11968}," 600",{"type":39,"tag":1135,"props":11970,"children":11971},{"style":1540},[11972],{"type":44,"value":1698},{"type":39,"tag":1135,"props":11974,"children":11975},{"style":1142},[11976],{"type":44,"value":1383},{"type":39,"tag":1135,"props":11978,"children":11980},{"class":1137,"line":11979},126,[11981,11985,11989,11993,11998,12002,12006,12010,12014,12018,12022,12026,12030,12034,12038,12042],{"type":39,"tag":1135,"props":11982,"children":11983},{"style":1341},[11984],{"type":44,"value":2747},{"type":39,"tag":1135,"props":11986,"children":11987},{"style":1540},[11988],{"type":44,"value":2191},{"type":39,"tag":1135,"props":11990,"children":11991},{"style":1142},[11992],{"type":44,"value":4720},{"type":39,"tag":1135,"props":11994,"children":11995},{"style":1148},[11996],{"type":44,"value":11997},"retryable",{"type":39,"tag":1135,"props":11999,"children":12000},{"style":1142},[12001],{"type":44,"value":2595},{"type":39,"tag":1135,"props":12003,"children":12004},{"style":1148},[12005],{"type":44,"value":11460},{"type":39,"tag":1135,"props":12007,"children":12008},{"style":1142},[12009],{"type":44,"value":3258},{"type":39,"tag":1135,"props":12011,"children":12012},{"style":1148},[12013],{"type":44,"value":11477},{"type":39,"tag":1135,"props":12015,"children":12016},{"style":1142},[12017],{"type":44,"value":2595},{"type":39,"tag":1135,"props":12019,"children":12020},{"style":1148},[12021],{"type":44,"value":11555},{"type":39,"tag":1135,"props":12023,"children":12024},{"style":1142},[12025],{"type":44,"value":2604},{"type":39,"tag":1135,"props":12027,"children":12028},{"style":1456},[12029],{"type":44,"value":2137},{"type":39,"tag":1135,"props":12031,"children":12032},{"style":1540},[12033],{"type":44,"value":2384},{"type":39,"tag":1135,"props":12035,"children":12036},{"style":1341},[12037],{"type":44,"value":6486},{"type":39,"tag":1135,"props":12039,"children":12040},{"style":1148},[12041],{"type":44,"value":3430},{"type":39,"tag":1135,"props":12043,"children":12044},{"style":1142},[12045],{"type":44,"value":1383},{"type":39,"tag":1135,"props":12047,"children":12049},{"class":1137,"line":12048},127,[12050,12054,12058,12062,12066,12070,12075,12079,12083,12088,12092,12096,12100,12104,12108,12112,12116,12121,12126,12131,12136,12140,12144,12149,12154],{"type":39,"tag":1135,"props":12051,"children":12052},{"style":1341},[12053],{"type":44,"value":10730},{"type":39,"tag":1135,"props":12055,"children":12056},{"style":1142},[12057],{"type":44,"value":4785},{"type":39,"tag":1135,"props":12059,"children":12060},{"style":1209},[12061],{"type":44,"value":10735},{"type":39,"tag":1135,"props":12063,"children":12064},{"style":1540},[12065],{"type":44,"value":1528},{"type":39,"tag":1135,"props":12067,"children":12068},{"style":1142},[12069],{"type":44,"value":1528},{"type":39,"tag":1135,"props":12071,"children":12072},{"style":1915},[12073],{"type":44,"value":12074},"r",{"type":39,"tag":1135,"props":12076,"children":12077},{"style":1142},[12078],{"type":44,"value":1698},{"type":39,"tag":1135,"props":12080,"children":12081},{"style":1440},[12082],{"type":44,"value":1947},{"type":39,"tag":1135,"props":12084,"children":12085},{"style":1179},[12086],{"type":44,"value":12087}," setTimeout",{"type":39,"tag":1135,"props":12089,"children":12090},{"style":1540},[12091],{"type":44,"value":1528},{"type":39,"tag":1135,"props":12093,"children":12094},{"style":1148},[12095],{"type":44,"value":12074},{"type":39,"tag":1135,"props":12097,"children":12098},{"style":1142},[12099],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12101,"children":12102},{"style":1148},[12103],{"type":44,"value":2163},{"type":39,"tag":1135,"props":12105,"children":12106},{"style":1142},[12107],{"type":44,"value":499},{"type":39,"tag":1135,"props":12109,"children":12110},{"style":1179},[12111],{"type":44,"value":2172},{"type":39,"tag":1135,"props":12113,"children":12114},{"style":1540},[12115],{"type":44,"value":1528},{"type":39,"tag":1135,"props":12117,"children":12118},{"style":1456},[12119],{"type":44,"value":12120},"1000",{"type":39,"tag":1135,"props":12122,"children":12123},{"style":1142},[12124],{"type":44,"value":12125}," *",{"type":39,"tag":1135,"props":12127,"children":12128},{"style":1456},[12129],{"type":44,"value":12130}," 2",{"type":39,"tag":1135,"props":12132,"children":12133},{"style":1142},[12134],{"type":44,"value":12135}," **",{"type":39,"tag":1135,"props":12137,"children":12138},{"style":1148},[12139],{"type":44,"value":11460},{"type":39,"tag":1135,"props":12141,"children":12142},{"style":1142},[12143],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12145,"children":12146},{"style":1456},[12147],{"type":44,"value":12148}," 30000",{"type":39,"tag":1135,"props":12150,"children":12151},{"style":1540},[12152],{"type":44,"value":12153},")))",{"type":39,"tag":1135,"props":12155,"children":12156},{"style":1142},[12157],{"type":44,"value":1383},{"type":39,"tag":1135,"props":12159,"children":12161},{"class":1137,"line":12160},128,[12162],{"type":39,"tag":1135,"props":12163,"children":12164},{"style":1142},[12165],{"type":44,"value":3452},{"type":39,"tag":1135,"props":12167,"children":12169},{"class":1137,"line":12168},129,[12170],{"type":39,"tag":1135,"props":12171,"children":12172},{"style":1142},[12173],{"type":44,"value":4075},{"type":39,"tag":1135,"props":12175,"children":12177},{"class":1137,"line":12176},130,[12178,12183,12187,12191,12195,12199,12204,12208,12212],{"type":39,"tag":1135,"props":12179,"children":12180},{"style":1341},[12181],{"type":44,"value":12182},"  throw",{"type":39,"tag":1135,"props":12184,"children":12185},{"style":1142},[12186],{"type":44,"value":4785},{"type":39,"tag":1135,"props":12188,"children":12189},{"style":1179},[12190],{"type":44,"value":4790},{"type":39,"tag":1135,"props":12192,"children":12193},{"style":1540},[12194],{"type":44,"value":1528},{"type":39,"tag":1135,"props":12196,"children":12197},{"style":1142},[12198],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12200,"children":12201},{"style":1164},[12202],{"type":44,"value":12203},"Unreachable",{"type":39,"tag":1135,"props":12205,"children":12206},{"style":1142},[12207],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12209,"children":12210},{"style":1540},[12211],{"type":44,"value":1698},{"type":39,"tag":1135,"props":12213,"children":12214},{"style":1142},[12215],{"type":44,"value":1383},{"type":39,"tag":1135,"props":12217,"children":12219},{"class":1137,"line":12218},131,[12220],{"type":39,"tag":1135,"props":12221,"children":12222},{"style":1142},[12223],{"type":44,"value":4083},{"type":39,"tag":243,"props":12225,"children":12227},{"id":12226},"srcclits",[12228],{"type":44,"value":3693},{"type":39,"tag":47,"props":12230,"children":12231},{},[12232,12234,12238],{"type":44,"value":12233},"Headless CLI entry point — parses args, reads stdin, dispatches to the agent, and exits. See ",{"type":39,"tag":90,"props":12235,"children":12236},{"href":215},[12237],{"type":44,"value":215},{"type":44,"value":12239}," for the complete implementation.",{"type":39,"tag":1109,"props":12241,"children":12243},{"className":1330,"code":12242,"language":15,"meta":1117,"style":1117},"import { parseArgs } from 'util';\nimport { loadConfig } from '.\u002Fconfig.js';\nimport { runAgentWithRetry, type AgentEvent } from '.\u002Fagent.js';\nimport { initSessionDir, saveMessage, newSessionPath } from '.\u002Fsession.js';\n\nconst { values, positionals } = parseArgs({\n  args: process.argv.slice(2),\n  options: {\n    prompt: { type: 'string', short: 'p' },\n    json: { type: 'boolean', short: 'j', default: false },\n    quiet: { type: 'boolean', short: 'q', default: false },\n    'no-session': { type: 'boolean', default: false },\n    model: { type: 'string', short: 'm' },\n    'max-steps': { type: 'string' },\n    'max-cost': { type: 'string' },\n    help: { type: 'boolean', short: 'h', default: false },\n  },\n  allowPositionals: true,\n});\n\n\u002F\u002F ... resolve prompt from args, positional, or stdin\n\u002F\u002F ... call loadConfig with overrides\n\u002F\u002F ... call runAgentWithRetry with appropriate event handler\n\u002F\u002F ... exit with code 0 on success, 1 on error\n",[12244],{"type":39,"tag":53,"props":12245,"children":12246},{"__ignoreMap":1117},[12247,12288,12327,12379,12438,12445,12490,12540,12555,12620,12704,12785,12849,12913,12961,13009,13090,13097,13117,13132,13139,13147,13155,13163],{"type":39,"tag":1135,"props":12248,"children":12249},{"class":1137,"line":1138},[12250,12254,12258,12263,12267,12271,12275,12280,12284],{"type":39,"tag":1135,"props":12251,"children":12252},{"style":1341},[12253],{"type":44,"value":1344},{"type":39,"tag":1135,"props":12255,"children":12256},{"style":1142},[12257],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12259,"children":12260},{"style":1148},[12261],{"type":44,"value":12262}," parseArgs",{"type":39,"tag":1135,"props":12264,"children":12265},{"style":1142},[12266],{"type":44,"value":1359},{"type":39,"tag":1135,"props":12268,"children":12269},{"style":1341},[12270],{"type":44,"value":1364},{"type":39,"tag":1135,"props":12272,"children":12273},{"style":1142},[12274],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12276,"children":12277},{"style":1164},[12278],{"type":44,"value":12279},"util",{"type":39,"tag":1135,"props":12281,"children":12282},{"style":1142},[12283],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12285,"children":12286},{"style":1142},[12287],{"type":44,"value":1383},{"type":39,"tag":1135,"props":12289,"children":12290},{"class":1137,"line":1175},[12291,12295,12299,12303,12307,12311,12315,12319,12323],{"type":39,"tag":1135,"props":12292,"children":12293},{"style":1341},[12294],{"type":44,"value":1344},{"type":39,"tag":1135,"props":12296,"children":12297},{"style":1142},[12298],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12300,"children":12301},{"style":1148},[12302],{"type":44,"value":5668},{"type":39,"tag":1135,"props":12304,"children":12305},{"style":1142},[12306],{"type":44,"value":1359},{"type":39,"tag":1135,"props":12308,"children":12309},{"style":1341},[12310],{"type":44,"value":1364},{"type":39,"tag":1135,"props":12312,"children":12313},{"style":1142},[12314],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12316,"children":12317},{"style":1164},[12318],{"type":44,"value":7486},{"type":39,"tag":1135,"props":12320,"children":12321},{"style":1142},[12322],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12324,"children":12325},{"style":1142},[12326],{"type":44,"value":1383},{"type":39,"tag":1135,"props":12328,"children":12329},{"class":1137,"line":1219},[12330,12334,12338,12342,12346,12350,12354,12358,12362,12366,12371,12375],{"type":39,"tag":1135,"props":12331,"children":12332},{"style":1341},[12333],{"type":44,"value":1344},{"type":39,"tag":1135,"props":12335,"children":12336},{"style":1142},[12337],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12339,"children":12340},{"style":1148},[12341],{"type":44,"value":11280},{"type":39,"tag":1135,"props":12343,"children":12344},{"style":1142},[12345],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12347,"children":12348},{"style":1341},[12349],{"type":44,"value":7117},{"type":39,"tag":1135,"props":12351,"children":12352},{"style":1148},[12353],{"type":44,"value":7666},{"type":39,"tag":1135,"props":12355,"children":12356},{"style":1142},[12357],{"type":44,"value":1359},{"type":39,"tag":1135,"props":12359,"children":12360},{"style":1341},[12361],{"type":44,"value":1364},{"type":39,"tag":1135,"props":12363,"children":12364},{"style":1142},[12365],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12367,"children":12368},{"style":1164},[12369],{"type":44,"value":12370},".\u002Fagent.js",{"type":39,"tag":1135,"props":12372,"children":12373},{"style":1142},[12374],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12376,"children":12377},{"style":1142},[12378],{"type":44,"value":1383},{"type":39,"tag":1135,"props":12380,"children":12381},{"class":1137,"line":1436},[12382,12386,12390,12395,12399,12404,12408,12413,12417,12421,12425,12430,12434],{"type":39,"tag":1135,"props":12383,"children":12384},{"style":1341},[12385],{"type":44,"value":1344},{"type":39,"tag":1135,"props":12387,"children":12388},{"style":1142},[12389],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12391,"children":12392},{"style":1148},[12393],{"type":44,"value":12394}," initSessionDir",{"type":39,"tag":1135,"props":12396,"children":12397},{"style":1142},[12398],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12400,"children":12401},{"style":1148},[12402],{"type":44,"value":12403}," saveMessage",{"type":39,"tag":1135,"props":12405,"children":12406},{"style":1142},[12407],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12409,"children":12410},{"style":1148},[12411],{"type":44,"value":12412}," newSessionPath",{"type":39,"tag":1135,"props":12414,"children":12415},{"style":1142},[12416],{"type":44,"value":1359},{"type":39,"tag":1135,"props":12418,"children":12419},{"style":1341},[12420],{"type":44,"value":1364},{"type":39,"tag":1135,"props":12422,"children":12423},{"style":1142},[12424],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12426,"children":12427},{"style":1164},[12428],{"type":44,"value":12429},".\u002Fsession.js",{"type":39,"tag":1135,"props":12431,"children":12432},{"style":1142},[12433],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12435,"children":12436},{"style":1142},[12437],{"type":44,"value":1383},{"type":39,"tag":1135,"props":12439,"children":12440},{"class":1137,"line":1466},[12441],{"type":39,"tag":1135,"props":12442,"children":12443},{"emptyLinePlaceholder":1430},[12444],{"type":44,"value":1433},{"type":39,"tag":1135,"props":12446,"children":12447},{"class":1137,"line":1491},[12448,12452,12456,12461,12465,12470,12474,12478,12482,12486],{"type":39,"tag":1135,"props":12449,"children":12450},{"style":1440},[12451],{"type":44,"value":1443},{"type":39,"tag":1135,"props":12453,"children":12454},{"style":1142},[12455],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12457,"children":12458},{"style":1148},[12459],{"type":44,"value":12460}," values",{"type":39,"tag":1135,"props":12462,"children":12463},{"style":1142},[12464],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12466,"children":12467},{"style":1148},[12468],{"type":44,"value":12469}," positionals ",{"type":39,"tag":1135,"props":12471,"children":12472},{"style":1142},[12473],{"type":44,"value":1856},{"type":39,"tag":1135,"props":12475,"children":12476},{"style":1142},[12477],{"type":44,"value":1984},{"type":39,"tag":1135,"props":12479,"children":12480},{"style":1179},[12481],{"type":44,"value":12262},{"type":39,"tag":1135,"props":12483,"children":12484},{"style":1148},[12485],{"type":44,"value":1528},{"type":39,"tag":1135,"props":12487,"children":12488},{"style":1142},[12489],{"type":44,"value":1533},{"type":39,"tag":1135,"props":12491,"children":12492},{"class":1137,"line":1499},[12493,12498,12502,12506,12510,12515,12519,12523,12527,12532,12536],{"type":39,"tag":1135,"props":12494,"children":12495},{"style":1540},[12496],{"type":44,"value":12497},"  args",{"type":39,"tag":1135,"props":12499,"children":12500},{"style":1142},[12501],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12503,"children":12504},{"style":1148},[12505],{"type":44,"value":6066},{"type":39,"tag":1135,"props":12507,"children":12508},{"style":1142},[12509],{"type":44,"value":499},{"type":39,"tag":1135,"props":12511,"children":12512},{"style":1148},[12513],{"type":44,"value":12514},"argv",{"type":39,"tag":1135,"props":12516,"children":12517},{"style":1142},[12518],{"type":44,"value":499},{"type":39,"tag":1135,"props":12520,"children":12521},{"style":1179},[12522],{"type":44,"value":2291},{"type":39,"tag":1135,"props":12524,"children":12525},{"style":1148},[12526],{"type":44,"value":1528},{"type":39,"tag":1135,"props":12528,"children":12529},{"style":1456},[12530],{"type":44,"value":12531},"2",{"type":39,"tag":1135,"props":12533,"children":12534},{"style":1148},[12535],{"type":44,"value":1698},{"type":39,"tag":1135,"props":12537,"children":12538},{"style":1142},[12539],{"type":44,"value":1566},{"type":39,"tag":1135,"props":12541,"children":12542},{"class":1137,"line":1536},[12543,12547,12551],{"type":39,"tag":1135,"props":12544,"children":12545},{"style":1540},[12546],{"type":44,"value":8238},{"type":39,"tag":1135,"props":12548,"children":12549},{"style":1142},[12550],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12552,"children":12553},{"style":1142},[12554],{"type":44,"value":1952},{"type":39,"tag":1135,"props":12556,"children":12557},{"class":1137,"line":1569},[12558,12563,12567,12571,12575,12579,12583,12587,12591,12595,12600,12604,12608,12612,12616],{"type":39,"tag":1135,"props":12559,"children":12560},{"style":1540},[12561],{"type":44,"value":12562},"    prompt",{"type":39,"tag":1135,"props":12564,"children":12565},{"style":1142},[12566],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12568,"children":12569},{"style":1142},[12570],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12572,"children":12573},{"style":1540},[12574],{"type":44,"value":7117},{"type":39,"tag":1135,"props":12576,"children":12577},{"style":1142},[12578],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12580,"children":12581},{"style":1142},[12582],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12584,"children":12585},{"style":1164},[12586],{"type":44,"value":1662},{"type":39,"tag":1135,"props":12588,"children":12589},{"style":1142},[12590],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12592,"children":12593},{"style":1142},[12594],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12596,"children":12597},{"style":1540},[12598],{"type":44,"value":12599}," short",{"type":39,"tag":1135,"props":12601,"children":12602},{"style":1142},[12603],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12605,"children":12606},{"style":1142},[12607],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12609,"children":12610},{"style":1164},[12611],{"type":44,"value":47},{"type":39,"tag":1135,"props":12613,"children":12614},{"style":1142},[12615],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12617,"children":12618},{"style":1142},[12619],{"type":44,"value":8308},{"type":39,"tag":1135,"props":12621,"children":12622},{"class":1137,"line":1583},[12623,12628,12632,12636,12640,12644,12648,12653,12657,12661,12665,12669,12673,12678,12682,12686,12691,12695,12700],{"type":39,"tag":1135,"props":12624,"children":12625},{"style":1540},[12626],{"type":44,"value":12627},"    json",{"type":39,"tag":1135,"props":12629,"children":12630},{"style":1142},[12631],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12633,"children":12634},{"style":1142},[12635],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12637,"children":12638},{"style":1540},[12639],{"type":44,"value":7117},{"type":39,"tag":1135,"props":12641,"children":12642},{"style":1142},[12643],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12645,"children":12646},{"style":1142},[12647],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12649,"children":12650},{"style":1164},[12651],{"type":44,"value":12652},"boolean",{"type":39,"tag":1135,"props":12654,"children":12655},{"style":1142},[12656],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12658,"children":12659},{"style":1142},[12660],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12662,"children":12663},{"style":1540},[12664],{"type":44,"value":12599},{"type":39,"tag":1135,"props":12666,"children":12667},{"style":1142},[12668],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12670,"children":12671},{"style":1142},[12672],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12674,"children":12675},{"style":1164},[12676],{"type":44,"value":12677},"j",{"type":39,"tag":1135,"props":12679,"children":12680},{"style":1142},[12681],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12683,"children":12684},{"style":1142},[12685],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12687,"children":12688},{"style":1540},[12689],{"type":44,"value":12690}," default",{"type":39,"tag":1135,"props":12692,"children":12693},{"style":1142},[12694],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12696,"children":12697},{"style":3053},[12698],{"type":44,"value":12699}," false",{"type":39,"tag":1135,"props":12701,"children":12702},{"style":1142},[12703],{"type":44,"value":8308},{"type":39,"tag":1135,"props":12705,"children":12706},{"class":1137,"line":1605},[12707,12712,12716,12720,12724,12728,12732,12736,12740,12744,12748,12752,12756,12761,12765,12769,12773,12777,12781],{"type":39,"tag":1135,"props":12708,"children":12709},{"style":1540},[12710],{"type":44,"value":12711},"    quiet",{"type":39,"tag":1135,"props":12713,"children":12714},{"style":1142},[12715],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12717,"children":12718},{"style":1142},[12719],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12721,"children":12722},{"style":1540},[12723],{"type":44,"value":7117},{"type":39,"tag":1135,"props":12725,"children":12726},{"style":1142},[12727],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12729,"children":12730},{"style":1142},[12731],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12733,"children":12734},{"style":1164},[12735],{"type":44,"value":12652},{"type":39,"tag":1135,"props":12737,"children":12738},{"style":1142},[12739],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12741,"children":12742},{"style":1142},[12743],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12745,"children":12746},{"style":1540},[12747],{"type":44,"value":12599},{"type":39,"tag":1135,"props":12749,"children":12750},{"style":1142},[12751],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12753,"children":12754},{"style":1142},[12755],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12757,"children":12758},{"style":1164},[12759],{"type":44,"value":12760},"q",{"type":39,"tag":1135,"props":12762,"children":12763},{"style":1142},[12764],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12766,"children":12767},{"style":1142},[12768],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12770,"children":12771},{"style":1540},[12772],{"type":44,"value":12690},{"type":39,"tag":1135,"props":12774,"children":12775},{"style":1142},[12776],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12778,"children":12779},{"style":3053},[12780],{"type":44,"value":12699},{"type":39,"tag":1135,"props":12782,"children":12783},{"style":1142},[12784],{"type":44,"value":8308},{"type":39,"tag":1135,"props":12786,"children":12787},{"class":1137,"line":1639},[12788,12792,12797,12801,12805,12809,12813,12817,12821,12825,12829,12833,12837,12841,12845],{"type":39,"tag":1135,"props":12789,"children":12790},{"style":1142},[12791],{"type":44,"value":1589},{"type":39,"tag":1135,"props":12793,"children":12794},{"style":1540},[12795],{"type":44,"value":12796},"no-session",{"type":39,"tag":1135,"props":12798,"children":12799},{"style":1142},[12800],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12802,"children":12803},{"style":1142},[12804],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12806,"children":12807},{"style":1142},[12808],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12810,"children":12811},{"style":1540},[12812],{"type":44,"value":7117},{"type":39,"tag":1135,"props":12814,"children":12815},{"style":1142},[12816],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12818,"children":12819},{"style":1142},[12820],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12822,"children":12823},{"style":1164},[12824],{"type":44,"value":12652},{"type":39,"tag":1135,"props":12826,"children":12827},{"style":1142},[12828],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12830,"children":12831},{"style":1142},[12832],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12834,"children":12835},{"style":1540},[12836],{"type":44,"value":12690},{"type":39,"tag":1135,"props":12838,"children":12839},{"style":1142},[12840],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12842,"children":12843},{"style":3053},[12844],{"type":44,"value":12699},{"type":39,"tag":1135,"props":12846,"children":12847},{"style":1142},[12848],{"type":44,"value":8308},{"type":39,"tag":1135,"props":12850,"children":12851},{"class":1137,"line":1705},[12852,12856,12860,12864,12868,12872,12876,12880,12884,12888,12892,12896,12900,12905,12909],{"type":39,"tag":1135,"props":12853,"children":12854},{"style":1540},[12855],{"type":44,"value":8474},{"type":39,"tag":1135,"props":12857,"children":12858},{"style":1142},[12859],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12861,"children":12862},{"style":1142},[12863],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12865,"children":12866},{"style":1540},[12867],{"type":44,"value":7117},{"type":39,"tag":1135,"props":12869,"children":12870},{"style":1142},[12871],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12873,"children":12874},{"style":1142},[12875],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12877,"children":12878},{"style":1164},[12879],{"type":44,"value":1662},{"type":39,"tag":1135,"props":12881,"children":12882},{"style":1142},[12883],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12885,"children":12886},{"style":1142},[12887],{"type":44,"value":1923},{"type":39,"tag":1135,"props":12889,"children":12890},{"style":1540},[12891],{"type":44,"value":12599},{"type":39,"tag":1135,"props":12893,"children":12894},{"style":1142},[12895],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12897,"children":12898},{"style":1142},[12899],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12901,"children":12902},{"style":1164},[12903],{"type":44,"value":12904},"m",{"type":39,"tag":1135,"props":12906,"children":12907},{"style":1142},[12908],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12910,"children":12911},{"style":1142},[12912],{"type":44,"value":8308},{"type":39,"tag":1135,"props":12914,"children":12915},{"class":1137,"line":1781},[12916,12920,12925,12929,12933,12937,12941,12945,12949,12953,12957],{"type":39,"tag":1135,"props":12917,"children":12918},{"style":1142},[12919],{"type":44,"value":1589},{"type":39,"tag":1135,"props":12921,"children":12922},{"style":1540},[12923],{"type":44,"value":12924},"max-steps",{"type":39,"tag":1135,"props":12926,"children":12927},{"style":1142},[12928],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12930,"children":12931},{"style":1142},[12932],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12934,"children":12935},{"style":1142},[12936],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12938,"children":12939},{"style":1540},[12940],{"type":44,"value":7117},{"type":39,"tag":1135,"props":12942,"children":12943},{"style":1142},[12944],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12946,"children":12947},{"style":1142},[12948],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12950,"children":12951},{"style":1164},[12952],{"type":44,"value":1662},{"type":39,"tag":1135,"props":12954,"children":12955},{"style":1142},[12956],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12958,"children":12959},{"style":1142},[12960],{"type":44,"value":8308},{"type":39,"tag":1135,"props":12962,"children":12963},{"class":1137,"line":1875},[12964,12968,12973,12977,12981,12985,12989,12993,12997,13001,13005],{"type":39,"tag":1135,"props":12965,"children":12966},{"style":1142},[12967],{"type":44,"value":1589},{"type":39,"tag":1135,"props":12969,"children":12970},{"style":1540},[12971],{"type":44,"value":12972},"max-cost",{"type":39,"tag":1135,"props":12974,"children":12975},{"style":1142},[12976],{"type":44,"value":1378},{"type":39,"tag":1135,"props":12978,"children":12979},{"style":1142},[12980],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12982,"children":12983},{"style":1142},[12984],{"type":44,"value":1349},{"type":39,"tag":1135,"props":12986,"children":12987},{"style":1540},[12988],{"type":44,"value":7117},{"type":39,"tag":1135,"props":12990,"children":12991},{"style":1142},[12992],{"type":44,"value":1548},{"type":39,"tag":1135,"props":12994,"children":12995},{"style":1142},[12996],{"type":44,"value":1369},{"type":39,"tag":1135,"props":12998,"children":12999},{"style":1164},[13000],{"type":44,"value":1662},{"type":39,"tag":1135,"props":13002,"children":13003},{"style":1142},[13004],{"type":44,"value":1378},{"type":39,"tag":1135,"props":13006,"children":13007},{"style":1142},[13008],{"type":44,"value":8308},{"type":39,"tag":1135,"props":13010,"children":13011},{"class":1137,"line":1892},[13012,13017,13021,13025,13029,13033,13037,13041,13045,13049,13053,13057,13061,13066,13070,13074,13078,13082,13086],{"type":39,"tag":1135,"props":13013,"children":13014},{"style":1540},[13015],{"type":44,"value":13016},"    help",{"type":39,"tag":1135,"props":13018,"children":13019},{"style":1142},[13020],{"type":44,"value":1548},{"type":39,"tag":1135,"props":13022,"children":13023},{"style":1142},[13024],{"type":44,"value":1349},{"type":39,"tag":1135,"props":13026,"children":13027},{"style":1540},[13028],{"type":44,"value":7117},{"type":39,"tag":1135,"props":13030,"children":13031},{"style":1142},[13032],{"type":44,"value":1548},{"type":39,"tag":1135,"props":13034,"children":13035},{"style":1142},[13036],{"type":44,"value":1369},{"type":39,"tag":1135,"props":13038,"children":13039},{"style":1164},[13040],{"type":44,"value":12652},{"type":39,"tag":1135,"props":13042,"children":13043},{"style":1142},[13044],{"type":44,"value":1378},{"type":39,"tag":1135,"props":13046,"children":13047},{"style":1142},[13048],{"type":44,"value":1923},{"type":39,"tag":1135,"props":13050,"children":13051},{"style":1540},[13052],{"type":44,"value":12599},{"type":39,"tag":1135,"props":13054,"children":13055},{"style":1142},[13056],{"type":44,"value":1548},{"type":39,"tag":1135,"props":13058,"children":13059},{"style":1142},[13060],{"type":44,"value":1369},{"type":39,"tag":1135,"props":13062,"children":13063},{"style":1164},[13064],{"type":44,"value":13065},"h",{"type":39,"tag":1135,"props":13067,"children":13068},{"style":1142},[13069],{"type":44,"value":1378},{"type":39,"tag":1135,"props":13071,"children":13072},{"style":1142},[13073],{"type":44,"value":1923},{"type":39,"tag":1135,"props":13075,"children":13076},{"style":1540},[13077],{"type":44,"value":12690},{"type":39,"tag":1135,"props":13079,"children":13080},{"style":1142},[13081],{"type":44,"value":1548},{"type":39,"tag":1135,"props":13083,"children":13084},{"style":3053},[13085],{"type":44,"value":12699},{"type":39,"tag":1135,"props":13087,"children":13088},{"style":1142},[13089],{"type":44,"value":8308},{"type":39,"tag":1135,"props":13091,"children":13092},{"class":1137,"line":1955},[13093],{"type":39,"tag":1135,"props":13094,"children":13095},{"style":1142},[13096],{"type":44,"value":3461},{"type":39,"tag":1135,"props":13098,"children":13099},{"class":1137,"line":1968},[13100,13105,13109,13113],{"type":39,"tag":1135,"props":13101,"children":13102},{"style":1540},[13103],{"type":44,"value":13104},"  allowPositionals",{"type":39,"tag":1135,"props":13106,"children":13107},{"style":1142},[13108],{"type":44,"value":1548},{"type":39,"tag":1135,"props":13110,"children":13111},{"style":3053},[13112],{"type":44,"value":3056},{"type":39,"tag":1135,"props":13114,"children":13115},{"style":1142},[13116],{"type":44,"value":1566},{"type":39,"tag":1135,"props":13118,"children":13119},{"class":1137,"line":2035},[13120,13124,13128],{"type":39,"tag":1135,"props":13121,"children":13122},{"style":1142},[13123],{"type":44,"value":1856},{"type":39,"tag":1135,"props":13125,"children":13126},{"style":1148},[13127],{"type":44,"value":1698},{"type":39,"tag":1135,"props":13129,"children":13130},{"style":1142},[13131],{"type":44,"value":1383},{"type":39,"tag":1135,"props":13133,"children":13134},{"class":1137,"line":2090},[13135],{"type":39,"tag":1135,"props":13136,"children":13137},{"emptyLinePlaceholder":1430},[13138],{"type":44,"value":1433},{"type":39,"tag":1135,"props":13140,"children":13141},{"class":1137,"line":2144},[13142],{"type":39,"tag":1135,"props":13143,"children":13144},{"style":3549},[13145],{"type":44,"value":13146},"\u002F\u002F ... resolve prompt from args, positional, or stdin\n",{"type":39,"tag":1135,"props":13148,"children":13149},{"class":1137,"line":2238},[13150],{"type":39,"tag":1135,"props":13151,"children":13152},{"style":3549},[13153],{"type":44,"value":13154},"\u002F\u002F ... call loadConfig with overrides\n",{"type":39,"tag":1135,"props":13156,"children":13157},{"class":1137,"line":2264},[13158],{"type":39,"tag":1135,"props":13159,"children":13160},{"style":3549},[13161],{"type":44,"value":13162},"\u002F\u002F ... call runAgentWithRetry with appropriate event handler\n",{"type":39,"tag":1135,"props":13164,"children":13165},{"class":1137,"line":2347},[13166],{"type":39,"tag":1135,"props":13167,"children":13168},{"style":3549},[13169],{"type":44,"value":13170},"\u002F\u002F ... exit with code 0 on success, 1 on error\n",{"type":39,"tag":47,"props":13172,"children":13173},{},[13174,13176,13180,13182,13187,13189,13195,13197,13203],{"type":44,"value":13175},"See ",{"type":39,"tag":90,"props":13177,"children":13178},{"href":215},[13179],{"type":44,"value":215},{"type":44,"value":13181}," for the complete ",{"type":39,"tag":53,"props":13183,"children":13185},{"className":13184},[],[13186],{"type":44,"value":3693},{"type":44,"value":13188},", ",{"type":39,"tag":53,"props":13190,"children":13192},{"className":13191},[],[13193],{"type":44,"value":13194},"src\u002Fserver.ts",{"type":44,"value":13196},", and ",{"type":39,"tag":53,"props":13198,"children":13200},{"className":13199},[],[13201],{"type":44,"value":13202},"src\u002Fmcp-server.ts",{"type":44,"value":13204}," implementations.",{"type":39,"tag":112,"props":13206,"children":13207},{},[],{"type":39,"tag":62,"props":13209,"children":13211},{"id":13210},"reference-files",[13212],{"type":44,"value":13213},"Reference Files",{"type":39,"tag":47,"props":13215,"children":13216},{},[13217],{"type":44,"value":13218},"For content beyond the core files:",{"type":39,"tag":69,"props":13220,"children":13221},{},[13222,13234,13246],{"type":39,"tag":73,"props":13223,"children":13224},{},[13225,13232],{"type":39,"tag":235,"props":13226,"children":13227},{},[13228],{"type":39,"tag":90,"props":13229,"children":13230},{"href":177},[13231],{"type":44,"value":177},{"type":44,"value":13233}," -- Specs for all user-defined tools: file-read, file-write, file-edit, glob, grep, list-dir, shell, web-fetch, js-repl, sub-agent, view-image, custom template",{"type":39,"tag":73,"props":13235,"children":13236},{},[13237,13244],{"type":39,"tag":235,"props":13238,"children":13239},{},[13240],{"type":39,"tag":90,"props":13241,"children":13242},{"href":196},[13243],{"type":44,"value":196},{"type":44,"value":13245}," -- Agent modules: session persistence, context compaction, system prompt composition, tool approval, structured logging, output schema validation, webhook notifications",{"type":39,"tag":73,"props":13247,"children":13248},{},[13249,13256],{"type":39,"tag":235,"props":13250,"children":13251},{},[13252],{"type":39,"tag":90,"props":13253,"children":13254},{"href":215},[13255],{"type":44,"value":215},{"type":44,"value":13257}," -- Entry point specs: CLI (full implementation), HTTP server with SSE, MCP server via stdio",{"type":39,"tag":13259,"props":13260,"children":13261},"style",{},[13262],{"type":44,"value":13263},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":13265,"total":1955},[13266,13277,13283,13299,13313,13324,13333,13345,13357,13366,13376,13385],{"slug":13267,"name":13267,"fn":13268,"description":13269,"org":13270,"tags":13271,"stars":23,"repoUrl":24,"updatedAt":13276},"create-agent-tui","scaffold terminal agents with OpenRouter","Scaffolds a complete agent TUI in TypeScript using @openrouter\u002Fagent — like create-react-app for terminal agents. Generates a customizable terminal interface with three input styles, four tool display modes, ASCII banners, streaming output, session persistence, and configurable tools. Use when building an agent, creating a TUI, scaffolding an agent project, or building a coding assistant.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13272,13273,13274,13275],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"name":14,"slug":15,"type":16},"2026-07-14T05:38:18.849741",{"slug":4,"name":4,"fn":5,"description":6,"org":13278,"tags":13279,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13280,13281,13282],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":13284,"name":13284,"fn":13285,"description":13286,"org":13287,"tags":13288,"stars":23,"repoUrl":24,"updatedAt":13298},"open-responses","implement Open Responses-compliant APIs","This skill should be used when implementing, consuming, or debugging an Open Responses-compliant API — the open standard for multi-provider LLM interoperability. Covers protocol, items, state machines, streaming events, tools, the agentic loop pattern, and extensions. Triggers on: Open Responses, open-responses, \u002Fv1\u002Fresponses endpoint, multi-provider LLM API, Open Responses compliance.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13289,13292,13295],{"name":13290,"slug":13291,"type":16},"API Development","api-development",{"name":13293,"slug":13294,"type":16},"Interoperability","interoperability",{"name":13296,"slug":13297,"type":16},"LLM","llm","2026-07-14T05:38:13.153467",{"slug":13300,"name":13300,"fn":13301,"description":13302,"org":13303,"tags":13304,"stars":23,"repoUrl":24,"updatedAt":13312},"openrouter-agent-migration","migrate OpenRouter SDK to agent patterns","Migration guide from @openrouter\u002Fsdk to @openrouter\u002Fagent for callModel, tool(), stop conditions, and agent features. This skill should be used when code imports callModel, tool(), or stop conditions from @openrouter\u002Fsdk and needs to migrate to @openrouter\u002Fagent.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13305,13308,13311],{"name":13306,"slug":13307,"type":16},"Migration","migration",{"name":13309,"slug":13310,"type":16},"SDK","sdk",{"name":14,"slug":15,"type":16},"2026-07-14T05:38:28.914981",{"slug":13314,"name":13314,"fn":13315,"description":13316,"org":13317,"tags":13318,"stars":23,"repoUrl":24,"updatedAt":13323},"openrouter-analytics","analyze OpenRouter usage and spend","Answer natural-language questions about a user's OpenRouter usage data — spend, request volume, model breakdown, latency, token usage, and cost optimization. Use when the user asks about their API usage, billing, costs, top models, traffic patterns, or wants to optimize their OpenRouter spend.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13319,13322],{"name":13320,"slug":13321,"type":16},"Analytics","analytics",{"name":9,"slug":8,"type":16},"2026-07-30T05:30:15.098344",{"slug":13325,"name":13325,"fn":13326,"description":13327,"org":13328,"tags":13329,"stars":23,"repoUrl":24,"updatedAt":13332},"openrouter-analytics-query","execute analytics queries against OpenRouter","Construct and execute analytics queries against the OpenRouter API — full parameter reference for metrics, dimensions, filters, time ranges, ordering, and pagination. Use when building or debugging an analytics query, understanding the request\u002Fresponse shape, or handling query errors.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13330,13331],{"name":13320,"slug":13321,"type":16},{"name":13290,"slug":13291,"type":16},"2026-07-14T05:38:26.402047",{"slug":13334,"name":13334,"fn":13335,"description":13336,"org":13337,"tags":13338,"stars":23,"repoUrl":24,"updatedAt":13344},"openrouter-analytics-schema","query OpenRouter analytics schema","Discover the OpenRouter analytics schema — available metrics, dimensions, filter operators, and granularities. Use when you need to know what analytics data is queryable, what dimensions you can break down by, or how to map a user's question to the right metric\u002Fdimension combination.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13339,13340,13341],{"name":13320,"slug":13321,"type":16},{"name":13296,"slug":13297,"type":16},{"name":13342,"slug":13343,"type":16},"Reporting","reporting","2026-07-14T05:38:32.721796",{"slug":13346,"name":13346,"fn":13347,"description":13348,"org":13349,"tags":13350,"stars":23,"repoUrl":24,"updatedAt":13356},"openrouter-benchmarks","query OpenRouter model benchmarks","Query OpenRouter's Benchmarks API for model benchmark rankings and scores. Use when the user asks for benchmark-backed model selection, model rankings by coding\u002Fintelligence\u002Fagentic ability, Artificial Analysis or Design Arena ELO\u002Fwin-rate results, benchmark citations, or wants to call GET \u002Fapi\u002Fv1\u002Fbenchmarks. Also use alongside openrouter-models when the user asks what model should power an app, product, workflow, or use case and benchmark evidence could inform or rule out part of the recommendation, including creative writing, editing, coding, design, agentic, or intelligence-heavy apps. Do not use for OpenRouter usage analytics, billing\u002Fspend analysis, generation metadata, provider uptime\u002Flatency, generic model pricing\u002Fcapability lookup without any selection or benchmark-relevance decision, or creating an evaluation suite for a local app.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13351,13352,13355],{"name":13320,"slug":13321,"type":16},{"name":13353,"slug":13354,"type":16},"Benchmarking","benchmarking",{"name":13296,"slug":13297,"type":16},"2026-07-14T05:38:27.658475",{"slug":13358,"name":13358,"fn":13359,"description":13360,"org":13361,"tags":13362,"stars":23,"repoUrl":24,"updatedAt":13365},"openrouter-generations","retrieve metadata for OpenRouter generations","Retrieve detailed metadata and stored content for individual OpenRouter generations. Use when the user wants to inspect a specific request — its cost, latency, token usage, provider routing, or the actual prompt\u002Fcompletion text — or is debugging a failed or unexpected generation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13363,13364],{"name":13296,"slug":13297,"type":16},{"name":9,"slug":8,"type":16},"2026-07-14T05:38:25.132801",{"slug":13367,"name":13367,"fn":13368,"description":13369,"org":13370,"tags":13371,"stars":23,"repoUrl":24,"updatedAt":13375},"openrouter-images","generate images with OpenRouter","Generate images from text prompts and edit existing images using OpenRouter's dedicated Image API. Use when the user asks to create, generate, or make an image, picture, or illustration from a description, or wants to edit, modify, transform, or alter an existing image with a text prompt.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13372,13374],{"name":464,"slug":13373,"type":16},"image-generation",{"name":9,"slug":8,"type":16},"2026-07-14T05:38:21.393411",{"slug":13377,"name":13377,"fn":13378,"description":13379,"org":13380,"tags":13381,"stars":23,"repoUrl":24,"updatedAt":13384},"openrouter-models","query OpenRouter model metadata and pricing","Query OpenRouter for available AI models, pricing, capabilities, throughput, and provider performance. Use when the user asks about available OpenRouter models, model pricing, model context lengths, model capabilities, provider latency or uptime, throughput limits, supported parameters, wants to search\u002Ffilter\u002Fcompare models, or find the fastest provider for a model.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13382,13383],{"name":13296,"slug":13297,"type":16},{"name":9,"slug":8,"type":16},"2026-07-14T05:38:22.650307",{"slug":13386,"name":13386,"fn":13387,"description":13388,"org":13389,"tags":13390,"stars":23,"repoUrl":24,"updatedAt":13398},"openrouter-oauth","implement OpenRouter OAuth authentication","Implement \"Sign In with OpenRouter\" using OAuth PKCE — framework-agnostic, no SDK or client registration required. Use when the user wants to add OpenRouter login, authentication, sign-in buttons, OAuth, or AI model inference API keys for browser-based apps. No client registration, no backend, no secrets required.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13391,13394,13397],{"name":13392,"slug":13393,"type":16},"Auth","auth",{"name":13395,"slug":13396,"type":16},"OAuth","oauth",{"name":9,"slug":8,"type":16},"2026-07-14T05:38:20.116308",{"items":13400,"total":1955},[13401,13408,13414,13420,13426,13431,13436],{"slug":13267,"name":13267,"fn":13268,"description":13269,"org":13402,"tags":13403,"stars":23,"repoUrl":24,"updatedAt":13276},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13404,13405,13406,13407],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":9,"slug":8,"type":16},{"name":14,"slug":15,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":13409,"tags":13410,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13411,13412,13413],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":13284,"name":13284,"fn":13285,"description":13286,"org":13415,"tags":13416,"stars":23,"repoUrl":24,"updatedAt":13298},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13417,13418,13419],{"name":13290,"slug":13291,"type":16},{"name":13293,"slug":13294,"type":16},{"name":13296,"slug":13297,"type":16},{"slug":13300,"name":13300,"fn":13301,"description":13302,"org":13421,"tags":13422,"stars":23,"repoUrl":24,"updatedAt":13312},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13423,13424,13425],{"name":13306,"slug":13307,"type":16},{"name":13309,"slug":13310,"type":16},{"name":14,"slug":15,"type":16},{"slug":13314,"name":13314,"fn":13315,"description":13316,"org":13427,"tags":13428,"stars":23,"repoUrl":24,"updatedAt":13323},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13429,13430],{"name":13320,"slug":13321,"type":16},{"name":9,"slug":8,"type":16},{"slug":13325,"name":13325,"fn":13326,"description":13327,"org":13432,"tags":13433,"stars":23,"repoUrl":24,"updatedAt":13332},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13434,13435],{"name":13320,"slug":13321,"type":16},{"name":13290,"slug":13291,"type":16},{"slug":13334,"name":13334,"fn":13335,"description":13336,"org":13437,"tags":13438,"stars":23,"repoUrl":24,"updatedAt":13344},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[13439,13440,13441],{"name":13320,"slug":13321,"type":16},{"name":13296,"slug":13297,"type":16},{"name":13342,"slug":13343,"type":16}]