zidane 6.3.4 → 6.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-IgXPptYr.js → acp-Xkhrpx8r.js} +4 -4
- package/dist/{acp-IgXPptYr.js.map → acp-Xkhrpx8r.js.map} +1 -1
- package/dist/acp-cli.js +6 -6
- package/dist/acp.d.ts +2 -2
- package/dist/acp.js +1 -1
- package/dist/{agent-BJuiohV_.js → agent-xjMzFclr.js} +236 -23
- package/dist/{agent-BJuiohV_.js.map → agent-xjMzFclr.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{anthropic-Drd3842n.js → anthropic-BN0iPMox.js} +20 -5
- package/dist/anthropic-BN0iPMox.js.map +1 -0
- package/dist/{auth-WkdClN2Y.js → auth-Dptb8U5J.js} +10 -5
- package/dist/auth-Dptb8U5J.js.map +1 -0
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +4 -4
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +3 -3
- package/dist/{context-transport-DAjjzK_x.js → context-transport-O-oQHwhP.js} +3 -3
- package/dist/{context-transport-DAjjzK_x.js.map → context-transport-O-oQHwhP.js.map} +1 -1
- package/dist/contexts/daytona.d.ts +3 -3
- package/dist/contexts/docker.d.ts +1 -1
- package/dist/contexts/e2b.d.ts +2 -2
- package/dist/contexts/sandbox.d.ts +1 -1
- package/dist/contexts-DWVt7MvF.js.map +1 -1
- package/dist/contexts.d.ts +3 -3
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +1 -1
- package/dist/extensions.d.ts +1 -1
- package/dist/extensions.js +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +3 -3
- package/dist/{index-B9jSo84a.d.ts → index-C8TwH34B.d.ts} +2 -2
- package/dist/index-C8TwH34B.d.ts.map +1 -0
- package/dist/{index-D-DPqXxU.d.ts → index-DTIe4e1R.d.ts} +268 -10
- package/dist/index-DTIe4e1R.d.ts.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +9 -9
- package/dist/{login-ClSY8pN6.js → login-DZHMF7Gl.js} +2 -2
- package/dist/{login-ClSY8pN6.js.map → login-DZHMF7Gl.js.map} +1 -1
- package/dist/{mcp-UIBc81Zm.js → mcp-B5iXOceC.js} +3 -3
- package/dist/{mcp-UIBc81Zm.js.map → mcp-B5iXOceC.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{messages-B-Zt-_Oz.js → messages-DoHRwMw-.js} +2 -2
- package/dist/{messages-B-Zt-_Oz.js.map → messages-DoHRwMw-.js.map} +1 -1
- package/dist/{openai-compat-BF1pSB_F.js → openai-compat-Bf9uMTMa.js} +60 -3
- package/dist/openai-compat-Bf9uMTMa.js.map +1 -0
- package/dist/output/stream-json.d.ts +1 -1
- package/dist/output/terminal.d.ts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/anthropic.js +1 -1
- package/dist/providers/arcee.d.ts +1 -1
- package/dist/providers/arcee.js +1 -1
- package/dist/providers/baseten.d.ts +1 -1
- package/dist/providers/baseten.js +4 -2
- package/dist/providers/baseten.js.map +1 -1
- package/dist/providers/cerebras.d.ts +1 -1
- package/dist/providers/cerebras.js +1 -1
- package/dist/providers/local.d.ts +1 -1
- package/dist/providers/local.js +1 -1
- package/dist/providers/openai-compat.d.ts +1 -1
- package/dist/providers/openai-compat.js +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openai.js +2 -2
- package/dist/providers/openrouter.d.ts +1 -1
- package/dist/providers/openrouter.js +3 -1
- package/dist/providers/openrouter.js.map +1 -1
- package/dist/providers/xai.d.ts +1 -1
- package/dist/providers/xai.js +1 -1
- package/dist/{providers-C-lh3sVD.js → providers-BlaXBUwd.js} +3 -3
- package/dist/{providers-C-lh3sVD.js.map → providers-BlaXBUwd.js.map} +1 -1
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +5 -5
- package/dist/restate.d.ts +2 -2
- package/dist/{sandbox-DqwpKX18.d.ts → sandbox-DLY6uah7.d.ts} +2 -2
- package/dist/{sandbox-DqwpKX18.d.ts.map → sandbox-DLY6uah7.d.ts.map} +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/{session-BE9_p0sN.js → session-Bdk31kA5.js} +2 -2
- package/dist/{session-BE9_p0sN.js.map → session-Bdk31kA5.js.map} +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/session.js +2 -2
- package/dist/skills.d.ts +1 -1
- package/dist/{stdio-e45MhlYy.js → stdio-BsB0QEE9.js} +2 -2
- package/dist/{stdio-e45MhlYy.js.map → stdio-BsB0QEE9.js.map} +1 -1
- package/dist/{stdio-loader-Bkrs9e8t.js → stdio-loader-p7qCIzPS.js} +2 -2
- package/dist/{stdio-loader-Bkrs9e8t.js.map → stdio-loader-p7qCIzPS.js.map} +1 -1
- package/dist/{tool-formatters-BX9TaWAr.d.ts → tool-formatters-B_dGfYqT.d.ts} +2 -2
- package/dist/{tool-formatters-BX9TaWAr.d.ts.map → tool-formatters-B_dGfYqT.d.ts.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-9LKsM0OZ.js → transcript-anchors-Bsmm4435.js} +68 -28
- package/dist/transcript-anchors-Bsmm4435.js.map +1 -0
- package/dist/{transcript-anchors-BpCQElT6.d.ts → transcript-anchors-CqxIlrhv.d.ts} +15 -6
- package/dist/transcript-anchors-CqxIlrhv.d.ts.map +1 -0
- package/dist/tui.d.ts +22 -6
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +214 -211
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-C_bn9UmE.d.ts → turn-operations-D7JhuW_X.d.ts} +3 -3
- package/dist/{turn-operations-C_bn9UmE.d.ts.map → turn-operations-D7JhuW_X.d.ts.map} +1 -1
- package/dist/types-BIarq1qE.js.map +1 -1
- package/dist/{types-DdZMQxfT.d.ts → types-M2DauK2D.d.ts} +2 -2
- package/dist/{types-DdZMQxfT.d.ts.map → types-M2DauK2D.d.ts.map} +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/{xai-CLqZQdcj.js → xai-BI4KgCGS.js} +2 -2
- package/dist/{xai-CLqZQdcj.js.map → xai-BI4KgCGS.js.map} +1 -1
- package/docs/ARCHITECTURE.md +29 -1
- package/docs/CHAT.md +1 -1
- package/docs/RUN_IN_BACKGROUND.md +2 -2
- package/docs/SKILL.md +1 -1
- package/docs/TUI.md +1 -1
- package/package.json +1 -1
- package/dist/anthropic-Drd3842n.js.map +0 -1
- package/dist/auth-WkdClN2Y.js.map +0 -1
- package/dist/index-B9jSo84a.d.ts.map +0 -1
- package/dist/index-D-DPqXxU.d.ts.map +0 -1
- package/dist/openai-compat-BF1pSB_F.js.map +0 -1
- package/dist/transcript-anchors-9LKsM0OZ.js.map +0 -1
- package/dist/transcript-anchors-BpCQElT6.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio-loader-Bkrs9e8t.js","names":["spawn","nodeSpawn","spawnSync","nodeSpawnSync","spawn"],"sources":["../scripts/cross-spawn-shim.mjs","../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js"],"sourcesContent":["/**\n * Build-time replacement for the userland process-spawn helper that the\n * MCP SDK's stdio transport depends on. Injected by tsdown via the\n * rolldown alias plugin in `tsdown.config.ts`.\n *\n * Why this exists\n *\n * The upstream spawn helper is CJS and its first line dynamically resolves\n * Node's process-spawn built-in via a bare specifier. When a downstream\n * consumer re-bundles zidane as ESM (esbuild / Vite / tsup with\n * `format: 'esm'` and Node built-ins not externalized), that bare\n * resolution gets wrapped in esbuild's `__require` shim and throws at\n * runtime — every stdio MCP server fails to launch.\n *\n * Aliasing the helper to this file at zidane's own build step replaces\n * the offending bare resolution with explicit `node:`-prefixed imports.\n * Downstream bundlers recognize the `node:` prefix as a Node built-in\n * and externalize it automatically. The upstream MCP SDK is unmodified.\n *\n * Tradeoff\n *\n * The replaced helper does two extra things vs. raw spawn:\n * 1. Windows `.cmd` / `.bat` / `.ps1` resolution via PATHEXT + cmd.exe\n * shelling. Compensated below with `shell: true` on Win32, which\n * routes through cmd.exe and handles the common `npx` / `pnpm` /\n * `yarn` shims.\n * 2. Synthesizes a clean ENOENT error event for missing commands.\n * `node:child_process.spawn` already emits a perfectly usable\n * `error` event with `code === 'ENOENT'`, which the MCP SDK's stdio\n * transport forwards to `onerror`. Functionally equivalent.\n *\n * Net: zero behavioural change on POSIX, near-identical on Windows for\n * MCP-style stdio invocations.\n */\n\nimport { spawn as nodeSpawn, spawnSync as nodeSpawnSync } from 'node:child_process'\nimport process from 'node:process'\n\nconst IS_WIN32 = process.platform === 'win32'\n\nfunction withWin32Shell(options) {\n // Only opt into shell mode on Windows, and only when the caller hasn't\n // explicitly disabled it. POSIX never needs the shell wrapper — args\n // would have to be re-quoted (changes argv semantics) and trap/`set -e`\n // behaviour shifts in subtle ways.\n if (!IS_WIN32)\n return options\n if (options && options.shell !== undefined)\n return options\n return { ...(options ?? {}), shell: true }\n}\n\nexport function spawn(command, args, options) {\n return nodeSpawn(command, args, withWin32Shell(options))\n}\n\nexport function spawnSync(command, args, options) {\n return nodeSpawnSync(command, args, withWin32Shell(options))\n}\n\n// Match cross-spawn's CommonJS interop shape so existing imports keep\n// working byte-for-byte:\n// - default import: `import spawn from 'cross-spawn'` (SDK uses this)\n// - named import: `import { spawn, sync } from 'cross-spawn'`\n// - require pattern: `const cs = require('cross-spawn'); cs.sync(...)`\nspawn.spawn = spawn\nspawn.sync = spawnSync\n\nexport const sync = spawnSync\nexport default spawn\n","import spawn from 'cross-spawn';\nimport process from 'node:process';\nimport { PassThrough } from 'node:stream';\nimport { ReadBuffer, serializeMessage } from '../shared/stdio.js';\n/**\n * Environment variables to inherit by default, if an environment is not explicitly given.\n */\nexport const DEFAULT_INHERITED_ENV_VARS = process.platform === 'win32'\n ? [\n 'APPDATA',\n 'HOMEDRIVE',\n 'HOMEPATH',\n 'LOCALAPPDATA',\n 'PATH',\n 'PROCESSOR_ARCHITECTURE',\n 'SYSTEMDRIVE',\n 'SYSTEMROOT',\n 'TEMP',\n 'USERNAME',\n 'USERPROFILE',\n 'PROGRAMFILES'\n ]\n : /* list inspired by the default env inheritance of sudo */\n ['HOME', 'LOGNAME', 'PATH', 'SHELL', 'TERM', 'USER'];\n/**\n * Returns a default environment object including only environment variables deemed safe to inherit.\n */\nexport function getDefaultEnvironment() {\n const env = {};\n for (const key of DEFAULT_INHERITED_ENV_VARS) {\n const value = process.env[key];\n if (value === undefined) {\n continue;\n }\n if (value.startsWith('()')) {\n // Skip functions, which are a security risk.\n continue;\n }\n env[key] = value;\n }\n return env;\n}\n/**\n * Client transport for stdio: this will connect to a server by spawning a process and communicating with it over stdin/stdout.\n *\n * This transport is only available in Node.js environments.\n */\nexport class StdioClientTransport {\n constructor(server) {\n this._readBuffer = new ReadBuffer();\n this._stderrStream = null;\n this._serverParams = server;\n if (server.stderr === 'pipe' || server.stderr === 'overlapped') {\n this._stderrStream = new PassThrough();\n }\n }\n /**\n * Starts the server process and prepares to communicate with it.\n */\n async start() {\n if (this._process) {\n throw new Error('StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.');\n }\n return new Promise((resolve, reject) => {\n this._process = spawn(this._serverParams.command, this._serverParams.args ?? [], {\n // merge default env with server env because mcp server needs some env vars\n env: {\n ...getDefaultEnvironment(),\n ...this._serverParams.env\n },\n stdio: ['pipe', 'pipe', this._serverParams.stderr ?? 'inherit'],\n shell: false,\n windowsHide: process.platform === 'win32',\n cwd: this._serverParams.cwd\n });\n this._process.on('error', error => {\n reject(error);\n this.onerror?.(error);\n });\n this._process.on('spawn', () => {\n resolve();\n });\n this._process.on('close', _code => {\n this._process = undefined;\n this.onclose?.();\n });\n this._process.stdin?.on('error', error => {\n this.onerror?.(error);\n });\n this._process.stdout?.on('data', chunk => {\n this._readBuffer.append(chunk);\n this.processReadBuffer();\n });\n this._process.stdout?.on('error', error => {\n this.onerror?.(error);\n });\n if (this._stderrStream && this._process.stderr) {\n this._process.stderr.pipe(this._stderrStream);\n }\n });\n }\n /**\n * The stderr stream of the child process, if `StdioServerParameters.stderr` was set to \"pipe\" or \"overlapped\".\n *\n * If stderr piping was requested, a PassThrough stream is returned _immediately_, allowing callers to\n * attach listeners before the start method is invoked. This prevents loss of any early\n * error output emitted by the child process.\n */\n get stderr() {\n if (this._stderrStream) {\n return this._stderrStream;\n }\n return this._process?.stderr ?? null;\n }\n /**\n * The child process pid spawned by this transport.\n *\n * This is only available after the transport has been started.\n */\n get pid() {\n return this._process?.pid ?? null;\n }\n processReadBuffer() {\n while (true) {\n try {\n const message = this._readBuffer.readMessage();\n if (message === null) {\n break;\n }\n this.onmessage?.(message);\n }\n catch (error) {\n this.onerror?.(error);\n }\n }\n }\n async close() {\n if (this._process) {\n const processToClose = this._process;\n this._process = undefined;\n const closePromise = new Promise(resolve => {\n processToClose.once('close', () => {\n resolve();\n });\n });\n try {\n processToClose.stdin?.end();\n }\n catch {\n // ignore\n }\n await Promise.race([closePromise, new Promise(resolve => setTimeout(resolve, 2000).unref())]);\n if (processToClose.exitCode === null) {\n try {\n processToClose.kill('SIGTERM');\n }\n catch {\n // ignore\n }\n await Promise.race([closePromise, new Promise(resolve => setTimeout(resolve, 2000).unref())]);\n }\n if (processToClose.exitCode === null) {\n try {\n processToClose.kill('SIGKILL');\n }\n catch {\n // ignore\n }\n }\n }\n this._readBuffer.clear();\n }\n send(message) {\n return new Promise(resolve => {\n if (!this._process?.stdin) {\n throw new Error('Not connected');\n }\n const json = serializeMessage(message);\n if (this._process.stdin.write(json)) {\n resolve();\n }\n else {\n this._process.stdin.once('drain', resolve);\n }\n });\n }\n}\n//# s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AAiB,KAAK;GAC5B,KAAK,WAAW,KAAA;GAChB,MAAM,eAAe,IAAI,SAAQ,YAAW;IACxC,eAAe,KAAK,eAAe;KAC/B,QAAQ;IACZ,CAAC;GACL,CAAC;GACD,IAAI;IACA,eAAe,OAAO,IAAI;GAC9B,QACM,CAEN;GACA,MAAM,QAAQ,KAAK,CAAC,cAAc,IAAI,SAAQ,YAAW,WAAW,SAAS,GAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;GAC5F,IAAI,eAAe,aAAa,MAAM;IAClC,IAAI;KACA,eAAe,KAAK,SAAS;IACjC,QACM,CAEN;IACA,MAAM,QAAQ,KAAK,CAAC,cAAc,IAAI,SAAQ,YAAW,WAAW,SAAS,GAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;GAChG;GACA,IAAI,eAAe,aAAa,MAC5B,IAAI;IACA,eAAe,KAAK,SAAS;GACjC,QACM,CAEN;EAER;EACA,KAAK,YAAY,MAAM;CAC3B;CACA,KAAK,SAAS;EACV,OAAO,IAAI,SAAQ,YAAW;GAC1B,IAAI,CAAC,KAAK,UAAU,OAChB,MAAM,IAAI,MAAM,eAAe;GAEnC,MAAM,OAAO,iBAAiB,OAAO;GACrC,IAAI,KAAK,SAAS,MAAM,MAAM,IAAI,GAC9B,QAAQ;QAGR,KAAK,SAAS,MAAM,KAAK,SAAS,OAAO;EAEjD,CAAC;CACL;AACJ"}
|
|
1
|
+
{"version":3,"file":"stdio-loader-p7qCIzPS.js","names":["spawn","nodeSpawn","spawnSync","nodeSpawnSync","spawn"],"sources":["../scripts/cross-spawn-shim.mjs","../node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js"],"sourcesContent":["/**\n * Build-time replacement for the userland process-spawn helper that the\n * MCP SDK's stdio transport depends on. Injected by tsdown via the\n * rolldown alias plugin in `tsdown.config.ts`.\n *\n * Why this exists\n *\n * The upstream spawn helper is CJS and its first line dynamically resolves\n * Node's process-spawn built-in via a bare specifier. When a downstream\n * consumer re-bundles zidane as ESM (esbuild / Vite / tsup with\n * `format: 'esm'` and Node built-ins not externalized), that bare\n * resolution gets wrapped in esbuild's `__require` shim and throws at\n * runtime — every stdio MCP server fails to launch.\n *\n * Aliasing the helper to this file at zidane's own build step replaces\n * the offending bare resolution with explicit `node:`-prefixed imports.\n * Downstream bundlers recognize the `node:` prefix as a Node built-in\n * and externalize it automatically. The upstream MCP SDK is unmodified.\n *\n * Tradeoff\n *\n * The replaced helper does two extra things vs. raw spawn:\n * 1. Windows `.cmd` / `.bat` / `.ps1` resolution via PATHEXT + cmd.exe\n * shelling. Compensated below with `shell: true` on Win32, which\n * routes through cmd.exe and handles the common `npx` / `pnpm` /\n * `yarn` shims.\n * 2. Synthesizes a clean ENOENT error event for missing commands.\n * `node:child_process.spawn` already emits a perfectly usable\n * `error` event with `code === 'ENOENT'`, which the MCP SDK's stdio\n * transport forwards to `onerror`. Functionally equivalent.\n *\n * Net: zero behavioural change on POSIX, near-identical on Windows for\n * MCP-style stdio invocations.\n */\n\nimport { spawn as nodeSpawn, spawnSync as nodeSpawnSync } from 'node:child_process'\nimport process from 'node:process'\n\nconst IS_WIN32 = process.platform === 'win32'\n\nfunction withWin32Shell(options) {\n // Only opt into shell mode on Windows, and only when the caller hasn't\n // explicitly disabled it. POSIX never needs the shell wrapper — args\n // would have to be re-quoted (changes argv semantics) and trap/`set -e`\n // behaviour shifts in subtle ways.\n if (!IS_WIN32)\n return options\n if (options && options.shell !== undefined)\n return options\n return { ...(options ?? {}), shell: true }\n}\n\nexport function spawn(command, args, options) {\n return nodeSpawn(command, args, withWin32Shell(options))\n}\n\nexport function spawnSync(command, args, options) {\n return nodeSpawnSync(command, args, withWin32Shell(options))\n}\n\n// Match cross-spawn's CommonJS interop shape so existing imports keep\n// working byte-for-byte:\n// - default import: `import spawn from 'cross-spawn'` (SDK uses this)\n// - named import: `import { spawn, sync } from 'cross-spawn'`\n// - require pattern: `const cs = require('cross-spawn'); cs.sync(...)`\nspawn.spawn = spawn\nspawn.sync = spawnSync\n\nexport const sync = spawnSync\nexport default spawn\n","import spawn from 'cross-spawn';\nimport process from 'node:process';\nimport { PassThrough } from 'node:stream';\nimport { ReadBuffer, serializeMessage } from '../shared/stdio.js';\n/**\n * Environment variables to inherit by default, if an environment is not explicitly given.\n */\nexport const DEFAULT_INHERITED_ENV_VARS = process.platform === 'win32'\n ? [\n 'APPDATA',\n 'HOMEDRIVE',\n 'HOMEPATH',\n 'LOCALAPPDATA',\n 'PATH',\n 'PROCESSOR_ARCHITECTURE',\n 'SYSTEMDRIVE',\n 'SYSTEMROOT',\n 'TEMP',\n 'USERNAME',\n 'USERPROFILE',\n 'PROGRAMFILES'\n ]\n : /* list inspired by the default env inheritance of sudo */\n ['HOME', 'LOGNAME', 'PATH', 'SHELL', 'TERM', 'USER'];\n/**\n * Returns a default environment object including only environment variables deemed safe to inherit.\n */\nexport function getDefaultEnvironment() {\n const env = {};\n for (const key of DEFAULT_INHERITED_ENV_VARS) {\n const value = process.env[key];\n if (value === undefined) {\n continue;\n }\n if (value.startsWith('()')) {\n // Skip functions, which are a security risk.\n continue;\n }\n env[key] = value;\n }\n return env;\n}\n/**\n * Client transport for stdio: this will connect to a server by spawning a process and communicating with it over stdin/stdout.\n *\n * This transport is only available in Node.js environments.\n */\nexport class StdioClientTransport {\n constructor(server) {\n this._readBuffer = new ReadBuffer();\n this._stderrStream = null;\n this._serverParams = server;\n if (server.stderr === 'pipe' || server.stderr === 'overlapped') {\n this._stderrStream = new PassThrough();\n }\n }\n /**\n * Starts the server process and prepares to communicate with it.\n */\n async start() {\n if (this._process) {\n throw new Error('StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.');\n }\n return new Promise((resolve, reject) => {\n this._process = spawn(this._serverParams.command, this._serverParams.args ?? [], {\n // merge default env with server env because mcp server needs some env vars\n env: {\n ...getDefaultEnvironment(),\n ...this._serverParams.env\n },\n stdio: ['pipe', 'pipe', this._serverParams.stderr ?? 'inherit'],\n shell: false,\n windowsHide: process.platform === 'win32',\n cwd: this._serverParams.cwd\n });\n this._process.on('error', error => {\n reject(error);\n this.onerror?.(error);\n });\n this._process.on('spawn', () => {\n resolve();\n });\n this._process.on('close', _code => {\n this._process = undefined;\n this.onclose?.();\n });\n this._process.stdin?.on('error', error => {\n this.onerror?.(error);\n });\n this._process.stdout?.on('data', chunk => {\n this._readBuffer.append(chunk);\n this.processReadBuffer();\n });\n this._process.stdout?.on('error', error => {\n this.onerror?.(error);\n });\n if (this._stderrStream && this._process.stderr) {\n this._process.stderr.pipe(this._stderrStream);\n }\n });\n }\n /**\n * The stderr stream of the child process, if `StdioServerParameters.stderr` was set to \"pipe\" or \"overlapped\".\n *\n * If stderr piping was requested, a PassThrough stream is returned _immediately_, allowing callers to\n * attach listeners before the start method is invoked. This prevents loss of any early\n * error output emitted by the child process.\n */\n get stderr() {\n if (this._stderrStream) {\n return this._stderrStream;\n }\n return this._process?.stderr ?? null;\n }\n /**\n * The child process pid spawned by this transport.\n *\n * This is only available after the transport has been started.\n */\n get pid() {\n return this._process?.pid ?? null;\n }\n processReadBuffer() {\n while (true) {\n try {\n const message = this._readBuffer.readMessage();\n if (message === null) {\n break;\n }\n this.onmessage?.(message);\n }\n catch (error) {\n this.onerror?.(error);\n }\n }\n }\n async close() {\n if (this._process) {\n const processToClose = this._process;\n this._process = undefined;\n const closePromise = new Promise(resolve => {\n processToClose.once('close', () => {\n resolve();\n });\n });\n try {\n processToClose.stdin?.end();\n }\n catch {\n // ignore\n }\n await Promise.race([closePromise, new Promise(resolve => setTimeout(resolve, 2000).unref())]);\n if (processToClose.exitCode === null) {\n try {\n processToClose.kill('SIGTERM');\n }\n catch {\n // ignore\n }\n await Promise.race([closePromise, new Promise(resolve => setTimeout(resolve, 2000).unref())]);\n }\n if (processToClose.exitCode === null) {\n try {\n processToClose.kill('SIGKILL');\n }\n catch {\n // ignore\n }\n }\n }\n this._readBuffer.clear();\n }\n send(message) {\n return new Promise(resolve => {\n if (!this._process?.stdin) {\n throw new Error('Not connected');\n }\n const json = serializeMessage(message);\n if (this._process.stdin.write(json)) {\n resolve();\n }\n else {\n this._process.stdin.once('drain', resolve);\n }\n });\n }\n}\n//# sourceMappingURL=stdio.js.map"],"x_google_ignoreList":[1],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,MAAM,WAAW,QAAQ,aAAa;AAEtC,SAAS,eAAe,SAAS;CAK/B,IAAI,CAAC,UACH,OAAO;CACT,IAAI,WAAW,QAAQ,UAAU,KAAA,GAC/B,OAAO;CACT,OAAO;EAAE,GAAI,WAAW,CAAC;EAAI,OAAO;CAAK;AAC3C;AAEA,SAAgBA,QAAM,SAAS,MAAM,SAAS;CAC5C,OAAOC,MAAU,SAAS,MAAM,eAAe,OAAO,CAAC;AACzD;AAEA,SAAgBC,YAAU,SAAS,MAAM,SAAS;CAChD,OAAOC,UAAc,SAAS,MAAM,eAAe,OAAO,CAAC;AAC7D;AAOA,QAAM,QAAQH;AACd,QAAM,OAAOE;;;;;;AC3Db,MAAa,6BAA6B,QAAQ,aAAa,UACzD;CACE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ,IAEI;CAAC;CAAQ;CAAW;CAAQ;CAAS;CAAQ;AAAM;;;;AAI3D,SAAgB,wBAAwB;CACpC,MAAM,MAAM,CAAC;CACb,KAAK,MAAM,OAAO,4BAA4B;EAC1C,MAAM,QAAQ,QAAQ,IAAI;EAC1B,IAAI,UAAU,KAAA,GACV;EAEJ,IAAI,MAAM,WAAW,IAAI,GAErB;EAEJ,IAAI,OAAO;CACf;CACA,OAAO;AACX;;;;;;AAMA,IAAa,uBAAb,MAAkC;CAC9B,YAAY,QAAQ;EAChB,KAAK,cAAc,IAAI,WAAW;EAClC,KAAK,gBAAgB;EACrB,KAAK,gBAAgB;EACrB,IAAI,OAAO,WAAW,UAAU,OAAO,WAAW,cAC9C,KAAK,gBAAgB,IAAI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Y,MACZ;GAEJ,KAAK,YAAY,OAAO;EAC5B,SACO,OAAO;GACV,KAAK,UAAU,KAAK;EACxB;CAER;CACA,MAAM,QAAQ;EACV,IAAI,KAAK,UAAU;GACf,MAAM,iBAAiB,KAAK;GAC5B,KAAK,WAAW,KAAA;GAChB,MAAM,eAAe,IAAI,SAAQ,YAAW;IACxC,eAAe,KAAK,eAAe;KAC/B,QAAQ;IACZ,CAAC;GACL,CAAC;GACD,IAAI;IACA,eAAe,OAAO,IAAI;GAC9B,QACM,CAEN;GACA,MAAM,QAAQ,KAAK,CAAC,cAAc,IAAI,SAAQ,YAAW,WAAW,SAAS,GAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;GAC5F,IAAI,eAAe,aAAa,MAAM;IAClC,IAAI;KACA,eAAe,KAAK,SAAS;IACjC,QACM,CAEN;IACA,MAAM,QAAQ,KAAK,CAAC,cAAc,IAAI,SAAQ,YAAW,WAAW,SAAS,GAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;GAChG;GACA,IAAI,eAAe,aAAa,MAC5B,IAAI;IACA,eAAe,KAAK,SAAS;GACjC,QACM,CAEN;EAER;EACA,KAAK,YAAY,MAAM;CAC3B;CACA,KAAK,SAAS;EACV,OAAO,IAAI,SAAQ,YAAW;GAC1B,IAAI,CAAC,KAAK,UAAU,OAChB,MAAM,IAAI,MAAM,eAAe;GAEnC,MAAM,OAAO,iBAAiB,OAAO;GACrC,IAAI,KAAK,SAAS,MAAM,MAAM,IAAI,GAC9B,QAAQ;QAGR,KAAK,SAAS,MAAM,KAAK,SAAS,OAAO;EAEjD,CAAC;CACL;AACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gu as StreamEvent, Uu as SessionMeta, Wu as Settings, cd as ModelInfo, id as ProviderKey, rd as ProviderAuth, xm as SessionTurn } from "./index-DTIe4e1R.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/chat/turn-selection.d.ts
|
|
@@ -557,4 +557,4 @@ declare function displayNameFor(name: string, input?: Record<string, unknown>):
|
|
|
557
557
|
declare function formatToolCall(name: string, input: Record<string, unknown>): ToolFormatLine | null;
|
|
558
558
|
//#endregion
|
|
559
559
|
export { retagUserPromptEvents as $, highlightSegments as A, ApprovalDecision as B, SearchTurnResult as C, buildSessionSearchIndex as D, SessionSearchIndex as E, searchSessionIndex as F, useSafeModeActions as G, RequestApproval as H, searchSessionIndexAsync as I, EDIT_TOOL_NAMES as J, useSafeModeQueue as K, searchSessionTurns as L, searchSessionHistory as M, searchSessionHistoryIndex as N, buildSessionSearchIndexAsync as O, searchSessionHistoryIndexAsync as P, isVisible as Q, searchTurns as R, SearchSessionResult as S, SessionSearchExcerpt as T, SafeModeActions as U, ApprovalRequest as V, SafeModeProvider as W, isTurnHighlighted as X, isEditErrorResult as Y, isUserBashEvent as Z, splitMarkdownCodeBlocks as _, formatToolCall as a, IndexedSearchTurn as b, splitPromptSegments as c, filterModelCatalog as d, selectableTurnIds as et, indexOfEntry as f, normalizeMarkdownCodeFences as g, chunkMarkdownForRender as h, displayNameFor as i, searchHighlightRanges as j, filterSessionSearchCatalog as k, CatalogEntry as l, MarkdownSegment as m, ToolDisplayMeta as n, turnSelectionOwnership as nt, PromptSegment as o, MARKDOWN_RENDER_CHUNK_TARGET_BYTES as p, BASH_CALL_ID_PREFIX as q, ToolFormatLine as r, PromptSegmentRef as s, TOOL_DISPLAY as t, selectionAfterTurnRemoval as tt, buildModelCatalog as u, HighlightRange as v, SessionHistoryMatch as w, SearchExcerpt as x, HighlightSegment as y, searchableTurnText as z };
|
|
560
|
-
//# sourceMappingURL=tool-formatters-
|
|
560
|
+
//# sourceMappingURL=tool-formatters-B_dGfYqT.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-formatters-
|
|
1
|
+
{"version":3,"file":"tool-formatters-B_dGfYqT.d.ts","names":[],"sources":["../src/chat/turn-selection.ts","../src/chat/safe-mode-context.tsx","../src/chat/history-search.ts","../src/chat/markdown-segments.ts","../src/chat/model-catalog.ts","../src/chat/prompt-segments.ts","../src/chat/tool-formatters.ts"],"mappings":";;;;;cAea,eAAA,EAAiB,WAAW;AAAzC;;;;AAAyC;AAAzC,iBAOgB,yBAAA,CACd,MAAA,qBACA,SAAA,UACA,KAAA;;;;;;;;AAAwB;AA2B1B;;;;AAA8C;AA0B9C;;;;iBA1BgB,iBAAA,CAAkB,IAAY;AA6B9C;;;;;;;;AAAA,cAHa,mBAAA;AAyDb;AAAA,iBAtDgB,eAAA,CAAgB,KAAA,EAAO,IAAI,CAAC,WAAA;;;AAyDrB;AAiEvB;;;;;;;;;AAAgE;AA2DhE;;;;;;;;AAA2E;AAkE3E;;;;;iBAjMgB,qBAAA,CACd,MAAA,WAAiB,WAAA,IACjB,aAAA,WAAwB,WAAA,cACd,WAAA;;;;;;;AAiM4B;AA8BxC;;;;;;iBA9JgB,SAAA,CAAU,KAAA,EAAO,WAAA,EAAa,QAAA,EAAU,QAAQ;;;;;;;;;;AAiKrB;;;;ACzU3C;;;;AAK6B;AAQ7B;;;;;;;;AAE4B;iBDoNZ,sBAAA,CAAuB,MAAA,WAAiB,WAAA,KAAgB,GAAG;;;;;;;;;;;;iBAkE3D,iBAAA,CACd,KAAA,EAAO,IAAA,CAAK,WAAA,aACZ,cAAA,iBACA,SAAA,EAAW,WAAA;;;;;;ACjRoB;AAIjC;;;;;;;;;;;;;;iBD2SgB,iBAAA,CACd,MAAA,WAAiB,WAAA,IACjB,QAAA,GAAW,QAAA,EACX,OAAA,IAAW,KAAA,EAAO,WAAA;;;;AAxT0B;AA0B9C;;;;AAAgC;AAGhC;;;;KC9CY,gBAAA;EAKJ,IAAA;EAAiB,IAAI;AAAA;ADyC8C;AAsD3E;;;;;AAtD2E,KCjC/D,kBAAA;EACJ,IAAA;AAAA;EACA,IAAA;EAAe,KAAA;AAAA;AAAA,UAEN,eAAA;EACf,EAAA;EACA,IAAA;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AA;AAAA;ALiDuC;AAsD3E;;;;;;;;;;;;;;AAGuB;AAiEvB;;;;;;AA1H2E,iBKzB3D,mBAAA,CACd,IAAA,UACA,IAAA,WAAe,gBAAA,KACd,aAAa;;;;;;;AL5ChB;;;;AAAyC;AAOzC;;;;;;;;UMFiB,cAAA;ENgCD;;;;AAA8B;EM1B5C,MAAA;ENoD8B;;;AAAA;AAGhC;EMjDE,IAAI;AAAA;AAAA,UAGW,eAAA;EN8CsB;;;;AAAoC;AAsD3E;;;;EM1FE,WAAA,aAAwB,KAAA,EAAO,MAAA;EN6FrB;;;;;EMvFV,MAAA,GAAS,KAAA,EAAO,MAAA,sBAA4B,cAAA;AAAA;AAAA,cAOjC,YAAA,EAAc,QAAA,CAAS,MAAA,SAAe,eAAA;;ANgF5B;AAiEvB;;;;;;;;;AAAgE;AA2DhE;;;iBMuGgB,cAAA,CACd,IAAA,UACA,KAAA,GAAQ,MAAM;;;;;ANzG2D;AAkE3E;iBMyDgB,cAAA,CAAe,IAAA,UAAc,KAAA,EAAO,MAAA,oBAA0B,cAAc"}
|
package/dist/tools.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ar as
|
|
1
|
+
import { $m as hydrateReadStateFromSession, Ar as createSkillsReadTool, As as SpawnToolOptions, Br as grep, Bs as matchModelEntries, Cr as ToolSearchToolOptions, Dr as SkillsRunScriptToolOptions, Ds as SpawnTaskInput, Er as createSkillsUseTool, Es as ExtensionSubagentDef, Fr as readFile, Fs as createSpawnTool, Gm as ToolContext, Hr as edit, Ir as multiEdit, Is as isSpawnTool, Jm as HydrateReadStateOptions, Km as ToolDef, Lr as listFiles, Ls as SpawnModelEntry, Mr as CreateShellToolOptions, Ms as SubagentDef, Nr as createShellTool, Ns as SubagentOverride, Or as createSkillsRunScriptTool, Os as SpawnTaskOutcome, Pr as shell, Ps as SubagentRegistry, Qm as hashContent, Rr as InteractionToolOptions, Rs as createModelSearchTool, Sr as LazyToolEntry, Tr as SkillsUseToolOptions, Ts as ChildAgent, Vr as glob, Xm as ReadStateMap, Ym as ReadStateEntry, Zm as getReadState, _r as waitTask, br as TailTruncateOptions, eh as hydrateReadStateFromSessionAsync, gr as WAIT_TASK_TIMED_OUT_PREFIX, hr as writeFile, jr as shellKill, js as SpawnToolState, kr as SkillsReadToolOptions, ks as SpawnTool, nh as resolveReadStateMap, qm as ToolMap, th as readStateKey, vr as ValidationResult, wr as createToolSearchTool, xr as tailTruncate, yr as validateToolArgs, zr as createInteractionTool, zs as formatModelLine } from "./index-DTIe4e1R.js";
|
|
2
2
|
export { type ChildAgent, type CreateShellToolOptions, type ExtensionSubagentDef, type HydrateReadStateOptions, type InteractionToolOptions, type LazyToolEntry, type ReadStateEntry, type ReadStateMap, type SkillsReadToolOptions, type SkillsRunScriptToolOptions, type SkillsUseToolOptions, type SpawnModelEntry, type SpawnTaskInput, type SpawnTaskOutcome, type SpawnTool, type SpawnToolOptions, type SpawnToolState, type SubagentDef, type SubagentOverride, type SubagentRegistry, type TailTruncateOptions, type ToolContext, type ToolDef, type ToolMap, type ToolSearchToolOptions, type ValidationResult, WAIT_TASK_TIMED_OUT_PREFIX, createInteractionTool, createModelSearchTool, createShellTool, createSkillsReadTool, createSkillsRunScriptTool, createSkillsUseTool, createSpawnTool, createToolSearchTool, edit, formatModelLine, getReadState, glob, grep, hashContent, hydrateReadStateFromSession, hydrateReadStateFromSessionAsync, isSpawnTool, listFiles, matchModelEntries, multiEdit, readFile, readStateKey, resolveReadStateMap, shell, shellKill, tailTruncate, validateToolArgs, waitTask, writeFile };
|
package/dist/tools.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as hydrateReadStateFromSessionAsync, c as resolveReadStateMap, i as hydrateReadStateFromSession, r as hashContent, s as readStateKey, t as getReadState } from "./read-state-CNyeMG7W.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as validateToolArgs, Ct as createSkillsRunScriptTool, Dt as shell, Et as createShellTool, Ft as listFiles, It as createInteractionTool, Lt as grep, Mt as createModelSearchTool, Nt as formatModelLine, Ot as tailTruncate, Pt as matchModelEntries, Rt as glob, St as createSkillsUseTool, Tt as shellKill, _t as WAIT_TASK_TIMED_OUT_PREFIX, bt as createSpawnTool, gt as writeFile, jt as multiEdit, kt as readFile, vt as waitTask, wt as createSkillsReadTool, xt as isSpawnTool, yt as createToolSearchTool, zt as edit } from "./agent-xjMzFclr.js";
|
|
3
3
|
export { WAIT_TASK_TIMED_OUT_PREFIX, createInteractionTool, createModelSearchTool, createShellTool, createSkillsReadTool, createSkillsRunScriptTool, createSkillsUseTool, createSpawnTool, createToolSearchTool, edit, formatModelLine, getReadState, glob, grep, hashContent, hydrateReadStateFromSession, hydrateReadStateFromSessionAsync, isSpawnTool, listFiles, matchModelEntries, multiEdit, readFile, readStateKey, resolveReadStateMap, shell, shellKill, tailTruncate, validateToolArgs, waitTask, writeFile };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { l as toolResultToText } from "./types-BIarq1qE.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Dt as shell, Ft as listFiles, G as EMPTY_EXTENSION_REGISTRY, Lt as grep, Rt as glob, Tt as shellKill, Vt as resolveStorageDirs, Zt as mergeKeybindings, bt as createSpawnTool, en as readKeybindingsRaw, ft as composePresets, g as migrateSessionArtifactDirs, gt as writeFile$1, jt as multiEdit, kt as readFile$1, pt as definePreset, rt as buildExtensionPreset, tn as resolveExtensionKeybindings, vt as waitTask, zt as edit } from "./agent-xjMzFclr.js";
|
|
3
3
|
import { a as formatDuration, c as previewLine, i as fmtTokens, l as shortId } from "./format-BF745pLL.js";
|
|
4
4
|
import { l as errorMessage } from "./errors-DJUxZg9b.js";
|
|
5
5
|
import { M as findGitRoot$1, i as discoverSkills, j as projectUserPaths } from "./resolve-BPTA1RpX.js";
|
|
6
6
|
import { t as writeFileAtomic } from "./atomic-write-B7zr1ddF.js";
|
|
7
|
-
import { l as normalizeMcpServers, n as connectMcpServers } from "./mcp-
|
|
7
|
+
import { l as normalizeMcpServers, n as connectMcpServers } from "./mcp-B5iXOceC.js";
|
|
8
8
|
import { joinSystemPrompt } from "./prompt.js";
|
|
9
9
|
import { r as formatTokenUsage } from "./stats-DAKBEKjc.js";
|
|
10
10
|
import { i as findActiveTriggers, n as collectReferences, o as mergeSuggestions, t as applyInsert } from "./completion-core-BRo86R_L.js";
|
|
11
11
|
import { r as fetchUrl } from "./fetch-url-_5WKWpbQ.js";
|
|
12
12
|
import { webSearch } from "./tools/web-search.js";
|
|
13
|
-
import { C as restoreModelOptions, l as BUILTIN_PROVIDERS, n as applyApiKeyEnv, r as credentialsPath, t as detectAuth, v as modelSupportsReasoning, y as modelsForDescriptor } from "./auth-
|
|
13
|
+
import { C as restoreModelOptions, l as BUILTIN_PROVIDERS, n as applyApiKeyEnv, r as credentialsPath, t as detectAuth, v as modelSupportsReasoning, y as modelsForDescriptor } from "./auth-Dptb8U5J.js";
|
|
14
14
|
import { C as chunkMarkdownForRender, _t as chatReferenceTokensFromText, dt as parseEditOutcomesFromResult, m as ownerOf, nt as extractEditPayload, u as capTranscriptEvents } from "./turn-operations-CBdrdYiF.js";
|
|
15
15
|
import { createRequire } from "node:module";
|
|
16
16
|
import { basename, dirname, isAbsolute, join, posix, relative, resolve, sep } from "node:path";
|
|
@@ -4931,6 +4931,8 @@ function resolveConfig(options) {
|
|
|
4931
4931
|
cwd: options.cwd ?? process.cwd(),
|
|
4932
4932
|
projectDb: options.projectDb
|
|
4933
4933
|
});
|
|
4934
|
+
const migration = migrateSessionArtifactDirs({ userDir: paths.cacheDir });
|
|
4935
|
+
if (process.env.ZIDANE_DEBUG && (migration.moved > 0 || migration.failed > 0)) process.stderr.write(`[zidane/chat] session-dir migration: moved ${migration.moved}, removed ${migration.removed}, failed ${migration.failed}\n`);
|
|
4934
4936
|
if (!options.store) throw new Error("resolveConfig: `store` is required. Pass a `SessionStore` instance, or a factory — terminal hosts can use `createTuiStore` from `zidane/session/sqlite`.");
|
|
4935
4937
|
const store = typeof options.store === "function" ? options.store(paths) : options.store;
|
|
4936
4938
|
const stateStore = createStateStore(paths.state);
|
|
@@ -7531,6 +7533,7 @@ function buildHints(options) {
|
|
|
7531
7533
|
labelColor: modelColor,
|
|
7532
7534
|
...chordLabel ? { extra: {
|
|
7533
7535
|
key: shortChord(keybindings.openEffortPicker),
|
|
7536
|
+
keySpec: keybindings.openEffortPicker,
|
|
7534
7537
|
keyColor: effortKeyColor,
|
|
7535
7538
|
label: chordLabel,
|
|
7536
7539
|
labelColor: effortColor
|
|
@@ -9737,47 +9740,74 @@ function applyBucket(prev, bucket) {
|
|
|
9737
9740
|
*/
|
|
9738
9741
|
const unsplittableAtLength = /* @__PURE__ */ new WeakMap();
|
|
9739
9742
|
const SEGMENT_SPLIT_RETRY_GROWTH = 1.25;
|
|
9743
|
+
/** Is this event owned by a subagent (rather than the top-level agent)? */
|
|
9744
|
+
function isChildOwned(event) {
|
|
9745
|
+
return event.childId !== void 0 || (event.depth ?? 0) > 0;
|
|
9746
|
+
}
|
|
9747
|
+
/**
|
|
9748
|
+
* Index of the event `owner`'s next delta may coalesce into, or `-1` when the
|
|
9749
|
+
* owner has no open lane at the tail.
|
|
9750
|
+
*
|
|
9751
|
+
* Walks backwards over events owned by OTHER subagents — concurrent siblings
|
|
9752
|
+
* whose rows carry no ordering relation to this owner's output, and which the
|
|
9753
|
+
* per-owner drain interleaves at ~60Hz — and stops at the first event that is
|
|
9754
|
+
* either this owner's or a real ordering boundary (parent output, user
|
|
9755
|
+
* prompts, banners). The caller decides whether the event found is mergeable
|
|
9756
|
+
* for its kind.
|
|
9757
|
+
*
|
|
9758
|
+
* Exported for tests.
|
|
9759
|
+
*/
|
|
9760
|
+
function mergeTargetIndex(events, owner) {
|
|
9761
|
+
for (let i = events.length - 1; i >= 0; i--) {
|
|
9762
|
+
const event = events[i];
|
|
9763
|
+
if (ownerOf(event) === owner) return i;
|
|
9764
|
+
if (!isChildOwned(event)) return -1;
|
|
9765
|
+
}
|
|
9766
|
+
return -1;
|
|
9767
|
+
}
|
|
9768
|
+
/** Coalesce a markdown delta into `owner`'s open block. Exported for tests. */
|
|
9740
9769
|
function appendMarkdownDelta(prev, delta, owner, depth, turnId) {
|
|
9741
|
-
const
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
const
|
|
9770
|
+
const at = mergeTargetIndex(prev, owner);
|
|
9771
|
+
const target = at >= 0 ? prev[at] : void 0;
|
|
9772
|
+
if (target && target.kind === "markdown" && target.streaming) {
|
|
9773
|
+
const merged = target.text + delta;
|
|
9774
|
+
const next = prev.slice();
|
|
9745
9775
|
if (merged.length > STREAMING_MARKDOWN_SEGMENT_CHARS) {
|
|
9746
|
-
const lastFailed = unsplittableAtLength.get(
|
|
9776
|
+
const lastFailed = unsplittableAtLength.get(target);
|
|
9747
9777
|
if (lastFailed === void 0 || merged.length > lastFailed * SEGMENT_SPLIT_RETRY_GROWTH) {
|
|
9748
9778
|
const chunks = chunkMarkdownForRender(merged);
|
|
9749
9779
|
if (chunks.length > 1) {
|
|
9750
|
-
|
|
9751
|
-
...
|
|
9780
|
+
const segments = chunks.map((chunk, i) => i === chunks.length - 1 ? {
|
|
9781
|
+
...target,
|
|
9782
|
+
text: chunk
|
|
9783
|
+
} : {
|
|
9784
|
+
...target,
|
|
9752
9785
|
text: chunk,
|
|
9753
9786
|
streaming: false
|
|
9754
9787
|
});
|
|
9755
|
-
next.
|
|
9756
|
-
...last,
|
|
9757
|
-
text: chunks[chunks.length - 1]
|
|
9758
|
-
});
|
|
9788
|
+
next.splice(at, 1, ...segments);
|
|
9759
9789
|
return next;
|
|
9760
9790
|
}
|
|
9761
9791
|
const grown = {
|
|
9762
|
-
...
|
|
9792
|
+
...target,
|
|
9763
9793
|
text: merged
|
|
9764
9794
|
};
|
|
9765
9795
|
unsplittableAtLength.set(grown, merged.length);
|
|
9766
|
-
next
|
|
9796
|
+
next[at] = grown;
|
|
9767
9797
|
return next;
|
|
9768
9798
|
}
|
|
9769
9799
|
const grown = {
|
|
9770
|
-
...
|
|
9800
|
+
...target,
|
|
9771
9801
|
text: merged
|
|
9772
9802
|
};
|
|
9773
9803
|
unsplittableAtLength.set(grown, lastFailed);
|
|
9774
|
-
next
|
|
9804
|
+
next[at] = grown;
|
|
9775
9805
|
return next;
|
|
9776
9806
|
}
|
|
9777
|
-
next
|
|
9778
|
-
...
|
|
9807
|
+
next[at] = {
|
|
9808
|
+
...target,
|
|
9779
9809
|
text: merged
|
|
9780
|
-
}
|
|
9810
|
+
};
|
|
9781
9811
|
return next;
|
|
9782
9812
|
}
|
|
9783
9813
|
return [...prev, tagEvent({
|
|
@@ -9786,15 +9816,25 @@ function appendMarkdownDelta(prev, delta, owner, depth, turnId) {
|
|
|
9786
9816
|
streaming: true
|
|
9787
9817
|
}, owner, depth, turnId)];
|
|
9788
9818
|
}
|
|
9819
|
+
/** Coalesce a thinking delta into `owner`'s open lane. Exported for tests. */
|
|
9789
9820
|
function appendThinkingLines(prev, delta, owner, depth, turnId) {
|
|
9790
9821
|
const lines = delta.split("\n");
|
|
9822
|
+
const at = mergeTargetIndex(prev, owner);
|
|
9823
|
+
const target = at >= 0 ? prev[at] : void 0;
|
|
9824
|
+
if (target && target.kind === "thinking") {
|
|
9825
|
+
const next = prev.slice();
|
|
9826
|
+
next[at] = {
|
|
9827
|
+
...target,
|
|
9828
|
+
text: target.text + lines[0]
|
|
9829
|
+
};
|
|
9830
|
+
if (lines.length > 1) next.splice(at + 1, 0, ...lines.slice(1).map((line) => tagEvent({
|
|
9831
|
+
kind: "thinking",
|
|
9832
|
+
text: line
|
|
9833
|
+
}, owner, depth, turnId)));
|
|
9834
|
+
return next;
|
|
9835
|
+
}
|
|
9791
9836
|
const result = [...prev];
|
|
9792
|
-
|
|
9793
|
-
if (last && last.kind === "thinking" && ownerOf(last) === owner) result[result.length - 1] = {
|
|
9794
|
-
...last,
|
|
9795
|
-
text: last.text + lines[0]
|
|
9796
|
-
};
|
|
9797
|
-
else if (lines[0] || lines.length > 1) result.push(tagEvent({
|
|
9837
|
+
if (lines[0] || lines.length > 1) result.push(tagEvent({
|
|
9798
9838
|
kind: "thinking",
|
|
9799
9839
|
text: lines[0]
|
|
9800
9840
|
}, owner, depth, turnId));
|
|
@@ -10156,4 +10196,4 @@ function computeTurnAnchors(items) {
|
|
|
10156
10196
|
//#endregion
|
|
10157
10197
|
export { InteractionsProvider as $, INTERACTION_GUIDANCE_NO_PROMPTS as $n, countClaudeSessionFiles as $t, runOAuthLogin as A, PLAN_AGENT as An, GRUVBOX_DARK as At, useMcpToolToggleSet as B, getArchivedTodosForRun as Bn, ConfigProvider as Bt, projectsFilePath as C, discoverAgentsMd as Cn, toolCallPreview as Cr, clampFps as Ct, formatPathForCwd as D, DEFAULT_AGENT_ID as Dn, __exportAll as Dr, resolveChipColor as Dt, writeProjects as E, BUILTIN_AGENTS as En, usageByModel as Er, DEFAULT_THEME as Et, refreshMcpToolsCatalog as F, TODOS_METADATA_KEY as Fn, CATPPUCCIN_MOCHA as Ft, mcpCredentialsPath as G, selectActiveTodos as Gn, chainPositionOf as Gt, indexOfServerRow as H, isTodoTool as Hn, resolveConfig as Ht, saveMcpToolsCache as I, TODOWRITE_TOOL as In, createDiscoverySlot as It, useMcpAuthDispatch as J, ACTIONS_WITH_CARE_DOCTRINE as Jn, providerKeySetChanged as Jt, patchMcpCredential as K, setTodosForRun as Kn, chainsEqual as Kt, subscribeMcpToolsCache as L, TODO_STATUS_GLYPHS as Ln, DiscoveryProvider as Lt, clearMcpToolsCache as M, resolveAgentId as Mn, CATPPUCCIN_FRAPPE as Mt, loadMcpToolsCache as N, singleAgentRegistry as Nn, CATPPUCCIN_LATTE as Nt, fetchOAuthRedirect as O, DEFAULT_BUDGET_EXCLUDE_TOOLS as On, resolveTheme as Ot, mcpToolsCachePath as P, TODOREAD_TOOL as Pn, CATPPUCCIN_MACCHIATO as Pt, ASK_USER_TOOL as Q, INTERACTION_GUIDANCE as Qn, useCompletion as Qt, buildToolToggle as R, TODO_WRITE_COUNTS_METADATA_KEY as Rn, useDiscovery as Rt, matchesSafelistEntry as S, chatAutoCompactBehavior as Sn, titleFromTurns as Sr, SettingsProvider as St, suggestSafelistEntries as T, BUILD_AGENT as Tn, updateToolEventOutcomes as Tr, BUILTIN_THEMES as Tt, parentServerName as U, pickActiveRunId as Un, resolveStoragePaths as Ut, buildVisibleMcpRows as V, getTodosForRun as Vn, useConfig as Vt, createFileMcpCredentialStore as W, pruneTodosByRun as Wn, buildRunModel as Wt, getMcpAuthStatus as X, DOING_TASKS_DOCTRINE as Xn, sanitizeModelChain as Xt, useMcpAuthState as Y, COMMUNICATION_DOCTRINE as Yn, restoreChainFallbacks as Yt, reduceMcpAuth as Z, IDENTITY_PREFIX as Zn, toggleChainEntry as Zt, useSafeModeQueue as _, detectPackageManager as _n, marginTopFor as _r, DEFAULT_SETTINGS as _t, useSurfaces as a, buildMcpServers as an, buildPlanSystem as ar, pendingInteractionsFromTurns as at, getSafelist as b, performSelfUpdate as bn, stripSpawnTokensLine as br, SETTINGS_INPUTS as bt, useStreamBuffer as c, parseMcpsFile as cn, createChatTurnsReadTool as cr, useInteractionsQueue as ct, discoverProjectSkills as d, bootTick as dn, createStateStore as dr, hintsLength as dt, hasClaudeCodeSetup as en, PLAN_MODE_DOCTRINE as er, PRESENT_PLAN_TOOL as et, renderSession as f, buildUpdateHint as fn, deriveSessionTitle as fr, truncateTrailing as ft, useSafeModeActions as g, detectLibc as gn, loadState as gr, useEnabledToggleSet as gt, SafeModeProvider as h, compareSemver as hn, listSessionMeta as hr, listProjectFiles as ht, useSelectStyle as i, upsertMcpServer as in, buildBuildSystem as ir, makeRequestInteraction as it, supportsOAuth as j, accentColor as jn, GRUVBOX_LIGHT as jt, oauthUsesManualCodePaste as k, DEFAULT_PERSIST_EXCLUDE_TOOLS as kn, VAPORWAVE_THEME as kt, buildSkillsConfig as l, tryOpenBrowser as ln, DEFAULT_SESSION_TITLE as lr, EMPTY_HINTS as lt, writeSessionExport as m, checkForUpdate as mn, lastContextSizeFromTurns as mr, shortChord as mt, ThemeProvider as n, mcpsWritePath as nn, SUBAGENT_GUIDANCE as nr, createInteractionTools as nt, useSyntaxStyles as o, defaultMcpsConfigPaths as on, envSection as or, serializeInteractionResponse as ot, resolveSessionExportTarget as p, useUpdateCheck as pn, eventsFromTurns as pr, buildHints as pt, McpAuthProvider as q, useActiveTodos as qn, filterChainFallbacks as qt, useColors as r, removeMcpServer as rn, TOKEN_DISCIPLINE_DOCTRINE as rr, isInteractionTool as rt, useTheme as s, discoverProjectMcps as sn, chatReferenceTokensForPrompt as sr, useInteractionsActions as st, computeTurnAnchors as t, importFromClaudeCode as tn, PLAN_MODE_DOCTRINE_NO_PROMPTS as tr, buildResumedToolResultsTurn as tt, defaultSkillScanPaths as u, bootProfileEnabled as un, compactSummaryEvent as ur, clipHintsToWidth as ut, IMPLICITLY_SAFE_TOOLS as v, parseSemver as vn, saveState as vr, SETTINGS_CATEGORIES as vt, readProjects as w, renderAgentsMdBlock as wn, toolResultText as wr, useSettings as wt, isOnSafelist as x, resolvePlatformPackage as xn, sumRunCosts as xr, SETTINGS_TOGGLES as xt, addToSafelist as y, performInPlaceSelfUpdate as yn, serverToolResultSummary as yr, SETTINGS_CHOICES as yt, useMcpToolToggleMap as z, createTodoTools as zn, useDiscoveryOptional as zt };
|
|
10158
10198
|
|
|
10159
|
-
//# sourceMappingURL=transcript-anchors-
|
|
10199
|
+
//# sourceMappingURL=transcript-anchors-Bsmm4435.js.map
|