zidane 5.7.4 → 5.7.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/{agent-BNS2nx_T.d.ts → agent-BSPhByzT.d.ts} +21 -1
- package/dist/agent-BSPhByzT.d.ts.map +1 -0
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +74 -28
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +2 -2
- package/dist/{index-Ck_AWt8P.d.ts → index-B6h9C_JE.d.ts} +2 -2
- package/dist/{index-Ck_AWt8P.d.ts.map → index-B6h9C_JE.d.ts.map} +1 -1
- package/dist/{index-KiS7w0dC.d.ts → index-DmbrQjOk.d.ts} +2 -2
- package/dist/{index-KiS7w0dC.d.ts.map → index-DmbrQjOk.d.ts.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/{login-BDeqENSe.js → login-C8Kc4gH0.js} +2 -2
- package/dist/{login-BDeqENSe.js.map → login-C8Kc4gH0.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/{presets-JuOnSI-i.js → presets-DTxFbEZ5.js} +2 -2
- package/dist/{presets-JuOnSI-i.js.map → presets-DTxFbEZ5.js.map} +1 -1
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/restate.d.ts +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/skills.d.ts +2 -2
- package/dist/{tool-formatters-CU-j3a3e.d.ts → tool-formatters-fUAp2Nr4.d.ts} +2 -2
- package/dist/{tool-formatters-CU-j3a3e.d.ts.map → tool-formatters-fUAp2Nr4.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-BGtJK0vo.js → tools-dkB_jARJ.js} +25 -8
- package/dist/tools-dkB_jARJ.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-BTSZAPVc.js → transcript-anchors-Cl7lbbeP.js} +75 -25
- package/dist/transcript-anchors-Cl7lbbeP.js.map +1 -0
- package/dist/{transcript-anchors-DX90kXc4.d.ts → transcript-anchors-qxevvEwT.d.ts} +4 -4
- package/dist/{transcript-anchors-DX90kXc4.d.ts.map → transcript-anchors-qxevvEwT.d.ts.map} +1 -1
- package/dist/tui.d.ts +3 -3
- package/dist/tui.js +3 -3
- package/dist/{turn-operations-DDIl4YVk.d.ts → turn-operations-CE1prnuP.d.ts} +3 -3
- package/dist/{turn-operations-DDIl4YVk.d.ts.map → turn-operations-CE1prnuP.d.ts.map} +1 -1
- package/dist/types-BPw_i5vb.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/docs/ARCHITECTURE.md +2 -1
- package/docs/CHAT.md +9 -6
- package/package.json +1 -1
- package/dist/agent-BNS2nx_T.d.ts.map +0 -1
- package/dist/tools-BGtJK0vo.js.map +0 -1
- package/dist/transcript-anchors-BTSZAPVc.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets-
|
|
1
|
+
{"version":3,"file":"presets-DTxFbEZ5.js","names":[],"sources":["../src/presets/basic.ts","../src/presets/index.ts"],"sourcesContent":["import { definePreset } from '.'\nimport { edit, listFiles, multiEdit, readFile, shell, shellKill, writeFile } from '../tools'\nimport { createSpawnTool } from '../tools/spawn'\n\n/**\n * Core tools available in every basic preset (without spawn).\n *\n * `edit` and `multi_edit` ship in the basic set because surgical edits are the\n * default modality for production agents — `write_file` is for full overwrites.\n * `glob` and `grep` are exported but opt-in: not every agent needs codebase\n * search, and shipping them by default would force `tool:gate` work onto\n * consumers that prefer the model to use `shell` + classic Unix tools.\n */\nexport const basicTools = { shell, shellKill, readFile, writeFile, listFiles, edit, multiEdit }\n\nexport default definePreset({\n name: 'basic',\n system: 'You are a helpful assistant with access to shell, file reading, file writing, surgical and multi-edit tools, directory listing, and sub-agent spawning. Prefer `edit` / `multi_edit` for in-place changes and `write_file` for full file overwrites. Use them to accomplish tasks in the project directory.',\n // `persist: true` shares the parent's session with every child agent — child\n // turns land in `session.turns` tagged with their own `runId`, and the run\n // itself is recorded in `session.runs` with `parentRunId` + `depth`. That's\n // what lets a reloaded TUI session reconstruct the full subagent tree (see\n // `eventsFromTurns` in `tui/store.ts`). Hosts that want children in-memory\n // only can construct their own preset with `createSpawnTool()`.\n tools: { ...basicTools, spawn: createSpawnTool({ persist: true }) },\n})\n","import type { AgentHooks, AgentOptions } from '../agent'\n\nexport type { AgentHookMap } from '../agent'\n\n/**\n * A preset is a reusable slice of `AgentOptions` — spread it into `createAgent()`\n * to configure tools, a default system prompt, aliases, behavior defaults, and\n * agent-lifetime hooks.\n *\n * `provider`, `execution`, `session`, and internal fields are excluded so presets\n * remain shareable and composable.\n *\n * ```ts\n * import { basic } from 'zidane/presets'\n * createAgent({ ...basic, provider })\n * ```\n *\n * ### Composing multiple presets\n *\n * Bare `...spread` is shallow — `{ ...a, ...b }` overwrites every key `b`\n * defines, including `hooks`. Use {@link composePresets} when you want\n * field-aware merging (per-event hook concat, tools shallow-merge, etc.):\n *\n * ```ts\n * createAgent({ ...composePresets(basic, telemetry, mine), provider })\n * ```\n */\nexport type Preset = Omit<Partial<AgentOptions>, 'provider' | 'execution' | 'session' | 'mcpConnector'>\n\n/**\n * Identity helper for type inference when defining a preset.\n */\nexport function definePreset(config: Preset): Preset {\n return config\n}\n\n/**\n * Field-aware composition of presets. Right-most preset wins for scalar fields;\n * objects shallow-merge; arrays and hook handler lists concatenate. Designed so\n * stacking presets does the obvious thing without the spread-collision footgun:\n *\n * - `name`, `system`, `eager`, `skills` → last-defined wins\n * - `tools`, `toolAliases`, `behavior` → shallow-merge (later keys override)\n * - `behavior.dedupTools`, `behavior.toolBudgets` → **deep-merge** (per-tool-name; later wins on collision)\n * - `mcpServers` → concat with last-wins on `name` collision\n * - `hooks` → per-event concat; every handler fires\n *\n * `hooks` always emerges as `event → handler[]` so downstream registration\n * (in `createAgent`) sees a uniform shape. Order of handlers within an event\n * follows preset order: earlier presets register first.\n *\n * `mcpServers` is deduped by `name` because shipping two servers with the same\n * name would trip the connector at runtime — a later preset overriding an\n * earlier preset's `github` server is the practical intent.\n *\n * `behavior.dedupTools` and `behavior.toolBudgets` get the same per-key deep-merge\n * because they are tool-name-keyed records — a preset that ships a dedup hasher\n * for one tool should not erase a hasher another preset ships for a different\n * tool. Last-wins still applies on a per-tool collision so a downstream preset\n * can override an upstream preset's policy for one specific tool. Other\n * `behavior` fields keep last-wins semantics.\n */\nexport function composePresets(...presets: Preset[]): Preset {\n const out: Preset = {}\n const hooksByEvent: { [K in keyof AgentHooks]?: AgentHooks[K][] } = {}\n // Keep mcpServers in source-order on first sight, but allow later\n // declarations to override earlier ones with the same `name`. A `Map`\n // keyed by name gives O(1) override + stable iteration.\n const mcpByName = new Map<string, NonNullable<Preset['mcpServers']>[number]>()\n\n for (const p of presets) {\n if (p.name !== undefined)\n out.name = p.name\n if (p.system !== undefined)\n out.system = p.system\n if (p.eager !== undefined)\n out.eager = p.eager\n if (p.skills !== undefined)\n out.skills = p.skills\n if (p.tools)\n out.tools = { ...out.tools, ...p.tools }\n if (p.toolAliases)\n out.toolAliases = { ...out.toolAliases, ...p.toolAliases }\n if (p.behavior) {\n // Top-level shallow-merge first; then deep-merge the two tool-name-keyed\n // sub-records so per-tool entries from earlier presets aren't clobbered.\n const merged: NonNullable<Preset['behavior']> = { ...out.behavior, ...p.behavior }\n if (out.behavior?.dedupTools || p.behavior.dedupTools) {\n merged.dedupTools = { ...out.behavior?.dedupTools, ...p.behavior.dedupTools }\n }\n if (out.behavior?.toolBudgets || p.behavior.toolBudgets) {\n merged.toolBudgets = { ...out.behavior?.toolBudgets, ...p.behavior.toolBudgets }\n }\n out.behavior = merged\n }\n if (p.mcpServers) {\n for (const server of p.mcpServers)\n mcpByName.set(server.name, server)\n }\n if (p.hooks) {\n for (const [event, handler] of Object.entries(p.hooks)) {\n if (handler === undefined)\n continue\n const list = Array.isArray(handler) ? handler : [handler]\n const key = event as keyof AgentHooks\n // Safe cast: we read the loose `AgentHookMap` shape (handler-or-array)\n // and re-emit only as arrays. Each `list` element matches the event's\n // handler signature by construction (the input was typed `AgentHookMap`).\n const bucket = (hooksByEvent[key] ??= []) as unknown[]\n bucket.push(...(list as unknown[]))\n }\n }\n }\n\n if (mcpByName.size > 0)\n out.mcpServers = [...mcpByName.values()]\n\n if (Object.keys(hooksByEvent).length > 0)\n out.hooks = hooksByEvent\n\n return out\n}\n\nexport { default as basic, basicTools } from './basic'\n"],"mappings":";;;;;;;;;;;AAaA,MAAa,aAAa;CAAE;CAAO;CAAW;CAAU;CAAW;CAAW;CAAM;AAAU;AAE9F,IAAA,gBAAe,aAAa;CAC1B,MAAM;CACN,QAAQ;CAOR,OAAO;EAAE,GAAG;EAAY,OAAO,gBAAgB,EAAE,SAAS,KAAK,CAAC;CAAE;AACpE,CAAC;;;;;;ACOD,SAAgB,aAAa,QAAwB;CACnD,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,SAAgB,eAAe,GAAG,SAA2B;CAC3D,MAAM,MAAc,CAAC;CACrB,MAAM,eAA8D,CAAC;CAIrE,MAAM,4BAAY,IAAI,IAAuD;CAE7E,KAAK,MAAM,KAAK,SAAS;EACvB,IAAI,EAAE,SAAS,KAAA,GACb,IAAI,OAAO,EAAE;EACf,IAAI,EAAE,WAAW,KAAA,GACf,IAAI,SAAS,EAAE;EACjB,IAAI,EAAE,UAAU,KAAA,GACd,IAAI,QAAQ,EAAE;EAChB,IAAI,EAAE,WAAW,KAAA,GACf,IAAI,SAAS,EAAE;EACjB,IAAI,EAAE,OACJ,IAAI,QAAQ;GAAE,GAAG,IAAI;GAAO,GAAG,EAAE;EAAM;EACzC,IAAI,EAAE,aACJ,IAAI,cAAc;GAAE,GAAG,IAAI;GAAa,GAAG,EAAE;EAAY;EAC3D,IAAI,EAAE,UAAU;GAGd,MAAM,SAA0C;IAAE,GAAG,IAAI;IAAU,GAAG,EAAE;GAAS;GACjF,IAAI,IAAI,UAAU,cAAc,EAAE,SAAS,YACzC,OAAO,aAAa;IAAE,GAAG,IAAI,UAAU;IAAY,GAAG,EAAE,SAAS;GAAW;GAE9E,IAAI,IAAI,UAAU,eAAe,EAAE,SAAS,aAC1C,OAAO,cAAc;IAAE,GAAG,IAAI,UAAU;IAAa,GAAG,EAAE,SAAS;GAAY;GAEjF,IAAI,WAAW;EACjB;EACA,IAAI,EAAE,YACJ,KAAK,MAAM,UAAU,EAAE,YACrB,UAAU,IAAI,OAAO,MAAM,MAAM;EAErC,IAAI,EAAE,OACJ,KAAK,MAAM,CAAC,OAAO,YAAY,OAAO,QAAQ,EAAE,KAAK,GAAG;GACtD,IAAI,YAAY,KAAA,GACd;GACF,MAAM,OAAO,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO;GACxD,MAAM,MAAM;GAKZ,CADgB,aAAa,SAAS,CAAC,GAChC,KAAK,GAAI,IAAkB;EACpC;CAEJ;CAEA,IAAI,UAAU,OAAO,GACnB,IAAI,aAAa,CAAC,GAAG,UAAU,OAAO,CAAC;CAEzC,IAAI,OAAO,KAAK,YAAY,EAAE,SAAS,GACrC,IAAI,QAAQ;CAEd,OAAO;AACT"}
|
package/dist/presets.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as AgentHookMap } from "./agent-
|
|
2
|
-
import { a as basicTools, i as _default, n as composePresets, r as definePreset, t as Preset } from "./index-
|
|
1
|
+
import { n as AgentHookMap } from "./agent-BSPhByzT.js";
|
|
2
|
+
import { a as basicTools, i as _default, n as composePresets, r as definePreset, t as Preset } from "./index-B6h9C_JE.js";
|
|
3
3
|
export { type AgentHookMap, Preset, _default as basic, basicTools, composePresets, definePreset };
|
package/dist/presets.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as basic_default, n as definePreset, r as basicTools, t as composePresets } from "./presets-
|
|
1
|
+
import { i as basic_default, n as definePreset, r as basicTools, t as composePresets } from "./presets-DTxFbEZ5.js";
|
|
2
2
|
export { basic_default as basic, basicTools, composePresets, definePreset };
|
package/dist/providers.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { At as openaiCompat, Bt as anthropic, Ct as OpenRouterParams, Dt as OpenAICompatParams, Et as OpenAICompatHttpError, Ft as CursorParams, It as cursor, Lt as CerebrasParams, Mt as openai, Nt as LocalParams, Ot as classifyOpenAICompatError, Pt as local, Rt as cerebras, St as sanitizeToolSpecs, Tt as OpenAICompatAuthHeader, Vt as applyAnthropicCacheBreakpoints, _t as TurnResult, bt as SchemaSanitizeResult, dt as StreamCallbacks, ft as StreamOptions, gt as ToolSpec, ht as ToolResult, jt as OpenAIParams, kt as mapOAIFinishReason, lt as Provider, mt as ToolCall, pt as TokenCountPayload, ut as ProviderCapabilities, vt as SchemaSanitizeOptions, wt as openrouter, xt as sanitizeToolSchema, yt as SchemaSanitizeProfile, zt as AnthropicParams } from "./agent-
|
|
1
|
+
import { At as openaiCompat, Bt as anthropic, Ct as OpenRouterParams, Dt as OpenAICompatParams, Et as OpenAICompatHttpError, Ft as CursorParams, It as cursor, Lt as CerebrasParams, Mt as openai, Nt as LocalParams, Ot as classifyOpenAICompatError, Pt as local, Rt as cerebras, St as sanitizeToolSpecs, Tt as OpenAICompatAuthHeader, Vt as applyAnthropicCacheBreakpoints, _t as TurnResult, bt as SchemaSanitizeResult, dt as StreamCallbacks, ft as StreamOptions, gt as ToolSpec, ht as ToolResult, jt as OpenAIParams, kt as mapOAIFinishReason, lt as Provider, mt as ToolCall, pt as TokenCountPayload, ut as ProviderCapabilities, vt as SchemaSanitizeOptions, wt as openrouter, xt as sanitizeToolSchema, yt as SchemaSanitizeProfile, zt as AnthropicParams } from "./agent-BSPhByzT.js";
|
|
2
2
|
export { type AnthropicParams, type CerebrasParams, type CursorParams, type LocalParams, type OpenAICompatAuthHeader, OpenAICompatHttpError, type OpenAICompatParams, type OpenAIParams, type OpenRouterParams, Provider, ProviderCapabilities, type SchemaSanitizeOptions, type SchemaSanitizeProfile, type SchemaSanitizeResult, StreamCallbacks, StreamOptions, TokenCountPayload, ToolCall, ToolResult, ToolSpec, TurnResult, anthropic, applyAnthropicCacheBreakpoints, cerebras, classifyOpenAICompatError, cursor, local, mapOAIFinishReason, openai, openaiCompat, openrouter, sanitizeToolSchema, sanitizeToolSpecs };
|
package/dist/restate.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as SessionStore, Ut as AgentClock, ft as StreamOptions, lt as Provider, y as ToolDef } from "./agent-
|
|
1
|
+
import { I as SessionStore, Ut as AgentClock, ft as StreamOptions, lt as Provider, y as ToolDef } from "./agent-BSPhByzT.js";
|
|
2
2
|
|
|
3
3
|
//#region src/restate/types.d.ts
|
|
4
4
|
/**
|
package/dist/session/sqlite.d.ts
CHANGED
package/dist/session.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as autoDetectAndConvert, B as createRemoteStore, F as SessionRun, H as FileMapAdapter, I as SessionStore, L as createSession, M as CreateSessionOptions, N as Session, P as SessionData, R as loadSession, U as FileMapStoreOptions, V as createMemoryStore, W as createFileMapStore, Z as ToWireMessagesOptions, at as fromOpenAI, ct as toWireMessages, dn as SessionTurn, it as fromAnthropic, ot as toAnthropic, sn as SessionContentBlock, st as toOpenAI, un as SessionMessage, z as RemoteStoreOptions } from "./agent-
|
|
1
|
+
import { $ as autoDetectAndConvert, B as createRemoteStore, F as SessionRun, H as FileMapAdapter, I as SessionStore, L as createSession, M as CreateSessionOptions, N as Session, P as SessionData, R as loadSession, U as FileMapStoreOptions, V as createMemoryStore, W as createFileMapStore, Z as ToWireMessagesOptions, at as fromOpenAI, ct as toWireMessages, dn as SessionTurn, it as fromAnthropic, ot as toAnthropic, sn as SessionContentBlock, st as toOpenAI, un as SessionMessage, z as RemoteStoreOptions } from "./agent-BSPhByzT.js";
|
|
2
2
|
export { CreateSessionOptions, type FileMapAdapter, type FileMapStoreOptions, type RemoteStoreOptions, Session, type SessionContentBlock, SessionData, type SessionMessage, SessionRun, SessionStore, type SessionTurn, type ToWireMessagesOptions, autoDetectAndConvert, createFileMapStore, createMemoryStore, createRemoteStore, createSession, fromAnthropic, fromOpenAI, loadSession, toAnthropic, toOpenAI, toWireMessages };
|
package/dist/skills.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as SkillSource, D as SkillConfig, O as SkillDiagnostic, c as DeactivationReason, d as createSkillActivationState, j as SkillsConfig, k as SkillResource, l as SkillActivationState, o as ActivationVia, s as ActiveSkill, u as SkillActivationStateOptions } from "./agent-
|
|
2
|
-
import { S as installAllowedToolsGate, _ as inferSource, a as SkillValidationResult, b as buildCatalog, c as parseAllowedToolPattern, d as validateSkillName, f as resolveSkills, g as getDefaultScanPaths, h as discoverSkills, i as SkillValidationIssue, l as validateResourcePath, m as SourcedScanPath, n as writeSkillToDisk, o as isToolAllowedByUnion, p as interpolateShellCommands, r as writeSkillsToDisk, s as matchesAllowedTool, t as defineSkill, u as validateSkillForWrite, v as parseFrontmatter, x as IMPLICITLY_ALLOWED_SKILL_TOOLS, y as parseSkillFile } from "./index-
|
|
1
|
+
import { A as SkillSource, D as SkillConfig, O as SkillDiagnostic, c as DeactivationReason, d as createSkillActivationState, j as SkillsConfig, k as SkillResource, l as SkillActivationState, o as ActivationVia, s as ActiveSkill, u as SkillActivationStateOptions } from "./agent-BSPhByzT.js";
|
|
2
|
+
import { S as installAllowedToolsGate, _ as inferSource, a as SkillValidationResult, b as buildCatalog, c as parseAllowedToolPattern, d as validateSkillName, f as resolveSkills, g as getDefaultScanPaths, h as discoverSkills, i as SkillValidationIssue, l as validateResourcePath, m as SourcedScanPath, n as writeSkillToDisk, o as isToolAllowedByUnion, p as interpolateShellCommands, r as writeSkillsToDisk, s as matchesAllowedTool, t as defineSkill, u as validateSkillForWrite, v as parseFrontmatter, x as IMPLICITLY_ALLOWED_SKILL_TOOLS, y as parseSkillFile } from "./index-DmbrQjOk.js";
|
|
3
3
|
export { type ActivationVia, type ActiveSkill, type DeactivationReason, IMPLICITLY_ALLOWED_SKILL_TOOLS, type SkillActivationState, type SkillActivationStateOptions, type SkillConfig, type SkillDiagnostic, type SkillResource, type SkillSource, type SkillValidationIssue, type SkillValidationResult, type SkillsConfig, type SourcedScanPath, buildCatalog, createSkillActivationState, defineSkill, discoverSkills, getDefaultScanPaths, inferSource, installAllowedToolsGate, interpolateShellCommands, isToolAllowedByUnion, matchesAllowedTool, parseAllowedToolPattern, parseFrontmatter, parseSkillFile, resolveSkills, validateResourcePath, validateSkillForWrite, validateSkillName, writeSkillToDisk, writeSkillsToDisk };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lt as Provider, mn as ThinkingLevel } from "./agent-
|
|
1
|
+
import { lt as Provider, mn as ThinkingLevel } from "./agent-BSPhByzT.js";
|
|
2
2
|
import { OAuthProviderInterface } from "@earendil-works/pi-ai/oauth";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
@@ -1468,4 +1468,4 @@ declare function displayNameFor(name: string, input?: Record<string, unknown>):
|
|
|
1468
1468
|
declare function formatToolCall(name: string, input: Record<string, unknown>): ToolFormatLine | null;
|
|
1469
1469
|
//#endregion
|
|
1470
1470
|
export { anthropicDescriptor as $, SessionMeta as A, collectReferences as B, EditHunk as C, Owner as D, EditPayload as E, CompletionContext as F, ProviderKey as G, mergeReferences as H, CompletionItem as I, CustomField as J, detectAuth as K, CompletionProvider as L, StreamEvent as M, ToolCallDisplay as N, Picked as O, ActiveTrigger as P, ProviderDescriptor as Q, CompletionReference as R, EditDiffDisplay as S, EditOutcomeKind as T, AuthMethod as U, findActiveTrigger as V, ProviderAuth as W, ModelOption as X, ModelInfo as Y, OUTPUT_RESERVE_TOKENS as Z, isEditErrorResult as _, formatToolCall as a, getModelInfo as at, selectableTurnIds as b, splitPromptSegments as c, modelSupportsReasoning as ct, RequestApproval as d, openrouterDescriptor as dt, cerebrasDescriptor as et, SafeModeActions as f, piIdOf as ft, EDIT_TOOL_NAMES as g, useSafeModeQueue as h, displayNameFor as i, getContextWindow as it, Settings as j, Screen as k, ApprovalDecision as l, modelsForDescriptor as lt, useSafeModeActions as m, ToolDisplayMeta as n, effectiveContextWindow as nt, PromptSegment as o, localDescriptor as ot, SafeModeProvider as p, restoreModelOptions as pt, BUILTIN_PROVIDERS as q, ToolFormatLine as r, enabledModelOptions as rt, PromptSegmentRef as s, modelOptionsFor as st, TOOL_DISPLAY as t, credKeyOf as tt, ApprovalRequest as u, openaiDescriptor as ut, isTurnHighlighted as v, EditOutcome as w, turnSelectionOwnership as x, isVisible as y, applyInsert as z };
|
|
1471
|
-
//# sourceMappingURL=tool-formatters-
|
|
1471
|
+
//# sourceMappingURL=tool-formatters-fUAp2Nr4.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-formatters-
|
|
1
|
+
{"version":3,"file":"tool-formatters-fUAp2Nr4.d.ts","names":[],"sources":["../src/chat/providers.ts","../src/chat/auth.ts","../src/chat/completion-core.ts","../src/chat/types.ts","../src/chat/turn-selection.ts","../src/chat/safe-mode-context.tsx","../src/chat/prompt-segments.ts","../src/chat/tool-formatters.ts"],"mappings":";;;;;;;;;;;;;;;;;UA8CiB,SAAA;EACf,EAAA;EACA,IAAA;EACA,aAAA;EACA,SAAA;EACA,SAAA;EACA,KAAA;EACA,IAAA;IAAS,KAAA;IAAe,MAAA;IAAgB,SAAA;IAAoB,UAAA;EAAA;EAC5D,QAAA;EA4BkF;AAAA;AAgBpF;;;;;EApCE,OAAA,YAAmB,WAAW;AAAA;;;;;AAgDtB;UAxCO,WAAA;EA2CkB;EAzCjC,EAAA;EAwDe;EAtDf,KAAA;EAqGkB;EAnGlB,WAAA;EAwHuB;;;;;EAlHvB,cAAA;IAAmB,KAAA;IAAgB,MAAA;IAAiB,SAAA;IAAoB,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
|
|
1223
1223
|
hasher: raw,
|
|
1224
1224
|
mode: "replay",
|
|
1225
1225
|
threshold: Infinity,
|
|
1226
|
-
reason: void 0
|
|
1226
|
+
reason: void 0,
|
|
1227
|
+
scope: "session"
|
|
1227
1228
|
};
|
|
1228
1229
|
const threshold = (typeof raw.threshold === "number" && Number.isFinite(raw.threshold) ? Math.max(2, Math.floor(raw.threshold)) : void 0) ?? (raw.mode === "block-after" ? 4 : Infinity);
|
|
1229
1230
|
return {
|
|
1230
1231
|
hasher: raw.hasher,
|
|
1231
1232
|
mode: raw.mode ?? "replay",
|
|
1232
1233
|
threshold,
|
|
1233
|
-
reason: raw.reason
|
|
1234
|
+
reason: raw.reason,
|
|
1235
|
+
scope: raw.scope === "run" ? "run" : "session"
|
|
1234
1236
|
};
|
|
1235
1237
|
}
|
|
1238
|
+
/**
|
|
1239
|
+
* State-map key for a tool's dedup entry. Session-scoped tools key on
|
|
1240
|
+
* the bare canonical name (the historical behavior). Run-scoped tools
|
|
1241
|
+
* prefix the owning `runId` so a parent and a subagent never share an
|
|
1242
|
+
* entry — falling back to the bare name when no `runId` is present
|
|
1243
|
+
* (hand-built contexts), which keeps the session-scope semantics for
|
|
1244
|
+
* those callers.
|
|
1245
|
+
*/
|
|
1246
|
+
function stateKey(name, scope, runId) {
|
|
1247
|
+
if (scope === "run" && runId) return `${runId}::${name}`;
|
|
1248
|
+
return name;
|
|
1249
|
+
}
|
|
1236
1250
|
function formatReason(reason, toolName, input, count) {
|
|
1237
1251
|
if (typeof reason === "string") return reason;
|
|
1238
1252
|
if (typeof reason === "function") try {
|
|
@@ -1254,14 +1268,15 @@ function installDedupToolsGate(hooks, getDedupTools, getSession) {
|
|
|
1254
1268
|
return;
|
|
1255
1269
|
}
|
|
1256
1270
|
if (typeof hash !== "string" || hash.length === 0) return;
|
|
1257
|
-
const
|
|
1271
|
+
const key = stateKey(ctx.name, config.scope, ctx.runId);
|
|
1272
|
+
const prior = state.get(key);
|
|
1258
1273
|
if (prior && prior.hash === hash) {
|
|
1259
1274
|
const priorRepeats = prior.repeats ?? 0;
|
|
1260
1275
|
const count = priorRepeats + 2;
|
|
1261
1276
|
if (config.mode === "block-after" && count >= config.threshold) {
|
|
1262
1277
|
ctx.block = true;
|
|
1263
1278
|
ctx.reason = formatReason(config.reason, ctx.name, ctx.input, count);
|
|
1264
|
-
state.set(
|
|
1279
|
+
state.set(key, {
|
|
1265
1280
|
hash,
|
|
1266
1281
|
result: prior.result,
|
|
1267
1282
|
repeats: priorRepeats + 1
|
|
@@ -1271,13 +1286,15 @@ function installDedupToolsGate(hooks, getDedupTools, getSession) {
|
|
|
1271
1286
|
ctx.result = prior.result;
|
|
1272
1287
|
pending.set(pendingKey(ctx.callId, ctx.name), {
|
|
1273
1288
|
hash,
|
|
1274
|
-
repeats: priorRepeats + 1
|
|
1289
|
+
repeats: priorRepeats + 1,
|
|
1290
|
+
key
|
|
1275
1291
|
});
|
|
1276
1292
|
return;
|
|
1277
1293
|
}
|
|
1278
1294
|
pending.set(pendingKey(ctx.callId, ctx.name), {
|
|
1279
1295
|
hash,
|
|
1280
|
-
repeats: 0
|
|
1296
|
+
repeats: 0,
|
|
1297
|
+
key
|
|
1281
1298
|
});
|
|
1282
1299
|
}
|
|
1283
1300
|
function afterHandler(ctx) {
|
|
@@ -1287,7 +1304,7 @@ function installDedupToolsGate(hooks, getDedupTools, getSession) {
|
|
|
1287
1304
|
pending.delete(key);
|
|
1288
1305
|
const state = getToolDedupState(getSession());
|
|
1289
1306
|
if (!state) return;
|
|
1290
|
-
state.set(
|
|
1307
|
+
state.set(entry.key, {
|
|
1291
1308
|
hash: entry.hash,
|
|
1292
1309
|
result: ctx.result,
|
|
1293
1310
|
repeats: entry.repeats
|
|
@@ -7471,4 +7488,4 @@ const writeFile$1 = {
|
|
|
7471
7488
|
//#endregion
|
|
7472
7489
|
export { getReadState as A, enabledModelOptions as B, PERSISTED_STUB_PREFIX as C, maybePersistToolResult as D, cleanupPersistedSession as E, OUTPUT_RESERVE_TOKENS as F, modelSupportsReasoning as G, getModelInfo as H, anthropicDescriptor as I, openrouterDescriptor as J, modelsForDescriptor as K, cerebrasDescriptor as L, readStateKey as M, resolveReadStateMap as N, resolvePersistDir as O, BUILTIN_PROVIDERS as P, credKeyOf as R, validateToolArgs as S, buildPersistedStub as T, localDescriptor as U, getContextWindow as V, modelOptionsFor as W, restoreModelOptions as X, piIdOf as Y, shell as _, multiEdit as a, TOOL_USE_CANCELLED_MESSAGE as b, grep as c, createAgent as d, createToolSearchTool as f, createShellTool as g, createSkillsReadTool as h, readFile$1 as i, hashContent as j, resolveTasksDir as k, glob$1 as l, createSkillsRunScriptTool as m, createSpawnTool as n, listFiles as o, createSkillsUseTool as p, openaiDescriptor as q, shellKill as r, createInteractionTool as s, writeFile$1 as t, edit as u, INTERRUPT_MESSAGE_FOR_TOOL_USE as v, PERSISTENCE_PREVIEW_BYTES as w, TOOL_USE_SKIPPED_MESSAGE as x, SHELL_CASCADE_CANCEL_MESSAGE as y, effectiveContextWindow as z };
|
|
7473
7490
|
|
|
7474
|
-
//# sourceMappingURL=tools-
|
|
7491
|
+
//# sourceMappingURL=tools-dkB_jARJ.js.map
|