zidane 6.5.4 → 6.5.5

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.
Files changed (128) hide show
  1. package/dist/{acp-CIpD8UIw.js → acp-BPJbXS2J.js} +6 -6
  2. package/dist/{acp-CIpD8UIw.js.map → acp-BPJbXS2J.js.map} +1 -1
  3. package/dist/acp-cli.js +6 -6
  4. package/dist/acp.d.ts +1 -1
  5. package/dist/acp.js +1 -1
  6. package/dist/{agent-8kfGIDb_.js → agent-gZjHsUft.js} +176 -166
  7. package/dist/agent-gZjHsUft.js.map +1 -0
  8. package/dist/agent.d.ts +1 -1
  9. package/dist/agent.js +1 -1
  10. package/dist/{anthropic-qaw8XAc9.js → anthropic-D3le2d-s.js} +75 -14
  11. package/dist/anthropic-D3le2d-s.js.map +1 -0
  12. package/dist/{auth-BLy7X1SY.js → auth-DCiXCwGa.js} +5 -5
  13. package/dist/{auth-BLy7X1SY.js.map → auth-DCiXCwGa.js.map} +1 -1
  14. package/dist/chat/pure.d.ts +3 -3
  15. package/dist/chat/pure.js +2 -2
  16. package/dist/chat.d.ts +29 -8
  17. package/dist/chat.d.ts.map +1 -1
  18. package/dist/chat.js +8 -8
  19. package/dist/{context-segments-1mcqSCM3.js → context-segments-CJCtJ9sU.js} +16 -3
  20. package/dist/{context-segments-1mcqSCM3.js.map → context-segments-CJCtJ9sU.js.map} +1 -1
  21. package/dist/{context-transport-Bco9Wo0b.js → context-transport-D8yeGdpd.js} +2 -2
  22. package/dist/{context-transport-Bco9Wo0b.js.map → context-transport-D8yeGdpd.js.map} +1 -1
  23. package/dist/contexts/daytona.d.ts +1 -1
  24. package/dist/contexts/daytona.js +1 -1
  25. package/dist/contexts/e2b.d.ts +1 -1
  26. package/dist/{errors-BwBxu3zD.js → errors-DKiMrOKq.js} +61 -2
  27. package/dist/{errors-BwBxu3zD.js.map → errors-DKiMrOKq.js.map} +1 -1
  28. package/dist/errors.js +2 -2
  29. package/dist/eval.d.ts +1 -1
  30. package/dist/eval.js +1 -1
  31. package/dist/extensions.d.ts +1 -1
  32. package/dist/extensions.js +1 -1
  33. package/dist/{fetch-url-B7aSg6Bp.js → fetch-url-ma-5_p0p.js} +2 -2
  34. package/dist/{fetch-url-B7aSg6Bp.js.map → fetch-url-ma-5_p0p.js.map} +1 -1
  35. package/dist/headless.d.ts +1 -1
  36. package/dist/headless.js +3 -3
  37. package/dist/{index-BSNr0OQn.d.ts → index-BYKzzYzi.d.ts} +68 -22
  38. package/dist/index-BYKzzYzi.d.ts.map +1 -0
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +13 -13
  41. package/dist/{login-D3CKhgbI.js → login-CB23LyI1.js} +3 -3
  42. package/dist/{login-D3CKhgbI.js.map → login-CB23LyI1.js.map} +1 -1
  43. package/dist/{mcp-D9fqOQo5.js → mcp-CVtSQTWg.js} +3 -3
  44. package/dist/{mcp-D9fqOQo5.js.map → mcp-CVtSQTWg.js.map} +1 -1
  45. package/dist/mcp.d.ts +1 -1
  46. package/dist/mcp.js +1 -1
  47. package/dist/{messages-C_H9soi5.js → messages-CVVg5jUL.js} +2 -2
  48. package/dist/{messages-C_H9soi5.js.map → messages-CVVg5jUL.js.map} +1 -1
  49. package/dist/{oauth-ZebH9NHb.js → oauth-C4GvY_p1.js} +27 -8
  50. package/dist/oauth-C4GvY_p1.js.map +1 -0
  51. package/dist/{openai-compat-CnHeo4Lz.js → openai-compat-hmZzpDrB.js} +2 -2
  52. package/dist/{openai-compat-CnHeo4Lz.js.map → openai-compat-hmZzpDrB.js.map} +1 -1
  53. package/dist/output/stream-json.d.ts +1 -1
  54. package/dist/output/terminal.d.ts +1 -1
  55. package/dist/{plugins-2PMTVcp-.js → plugins-onDvTHEm.js} +2 -2
  56. package/dist/{plugins-2PMTVcp-.js.map → plugins-onDvTHEm.js.map} +1 -1
  57. package/dist/plugins.d.ts +1 -1
  58. package/dist/plugins.js +1 -1
  59. package/dist/presets.d.ts +1 -1
  60. package/dist/presets.js +1 -1
  61. package/dist/providers/anthropic.d.ts +1 -1
  62. package/dist/providers/anthropic.js +1 -1
  63. package/dist/providers/arcee.d.ts +1 -1
  64. package/dist/providers/arcee.js +1 -1
  65. package/dist/providers/baseten.d.ts +1 -1
  66. package/dist/providers/baseten.js +1 -1
  67. package/dist/providers/cerebras.d.ts +1 -1
  68. package/dist/providers/cerebras.js +1 -1
  69. package/dist/providers/local.d.ts +1 -1
  70. package/dist/providers/local.js +1 -1
  71. package/dist/providers/openai-compat.d.ts +1 -1
  72. package/dist/providers/openai-compat.js +1 -1
  73. package/dist/providers/openai.d.ts +1 -1
  74. package/dist/providers/openai.js +4 -4
  75. package/dist/providers/openrouter.d.ts +1 -1
  76. package/dist/providers/openrouter.js +1 -1
  77. package/dist/providers/xai.d.ts +1 -1
  78. package/dist/providers/xai.js +2 -2
  79. package/dist/{providers-Bxs-XHir.js → providers-Cf0AXIIZ.js} +3 -3
  80. package/dist/{providers-Bxs-XHir.js.map → providers-Cf0AXIIZ.js.map} +1 -1
  81. package/dist/providers.d.ts +1 -1
  82. package/dist/providers.js +4 -4
  83. package/dist/restate.d.ts +1 -1
  84. package/dist/restate.js +2 -2
  85. package/dist/session/sqlite.d.ts +1 -1
  86. package/dist/session/sqlite.js +1 -1
  87. package/dist/{session-VpLrNaFQ.js → session-cqN5NbO-.js} +2 -2
  88. package/dist/{session-VpLrNaFQ.js.map → session-cqN5NbO-.js.map} +1 -1
  89. package/dist/session.d.ts +1 -1
  90. package/dist/session.js +2 -2
  91. package/dist/{skills-Cp9vnBwd.js → skills-BMGH_KK1.js} +2 -2
  92. package/dist/{skills-Cp9vnBwd.js.map → skills-BMGH_KK1.js.map} +1 -1
  93. package/dist/skills.d.ts +1 -1
  94. package/dist/skills.js +1 -1
  95. package/dist/{timeout-BDetbuN6.js → timeout-CjOG2mea.js} +29 -2
  96. package/dist/timeout-CjOG2mea.js.map +1 -0
  97. package/dist/timeout-DEaqslLO.d.ts.map +1 -1
  98. package/dist/{tool-formatters-BfKqWm5N.d.ts → tool-formatters-B5WSHMCU.d.ts} +2 -2
  99. package/dist/{tool-formatters-BfKqWm5N.d.ts.map → tool-formatters-B5WSHMCU.d.ts.map} +1 -1
  100. package/dist/tools/fetch-url.d.ts +1 -1
  101. package/dist/tools/fetch-url.js +1 -1
  102. package/dist/tools/web-search.d.ts +1 -1
  103. package/dist/tools/web-search.js +2 -2
  104. package/dist/tools.d.ts +1 -1
  105. package/dist/tools.js +1 -1
  106. package/dist/{transcript-anchors-CNqDbrc9.d.ts → transcript-anchors-BPnWHLyr.d.ts} +2 -2
  107. package/dist/{transcript-anchors-CNqDbrc9.d.ts.map → transcript-anchors-BPnWHLyr.d.ts.map} +1 -1
  108. package/dist/{transcript-anchors-Bv8HQ3S2.js → transcript-anchors-BvC8t7dt.js} +177 -63
  109. package/dist/transcript-anchors-BvC8t7dt.js.map +1 -0
  110. package/dist/tui.d.ts +18 -29
  111. package/dist/tui.d.ts.map +1 -1
  112. package/dist/tui.js +737 -236
  113. package/dist/tui.js.map +1 -1
  114. package/dist/{turn-operations-iGu5J08j.js → turn-operations-7_Ff7INF.js} +2 -2
  115. package/dist/{turn-operations-iGu5J08j.js.map → turn-operations-7_Ff7INF.js.map} +1 -1
  116. package/dist/{turn-operations-CnIpcenJ.d.ts → turn-operations-BvP3_HsU.d.ts} +3 -3
  117. package/dist/{turn-operations-CnIpcenJ.d.ts.map → turn-operations-BvP3_HsU.d.ts.map} +1 -1
  118. package/dist/types.d.ts +1 -1
  119. package/dist/types.js +1 -1
  120. package/docs/CHAT.md +1 -1
  121. package/docs/TUI.md +4 -4
  122. package/package.json +2 -1
  123. package/dist/agent-8kfGIDb_.js.map +0 -1
  124. package/dist/anthropic-qaw8XAc9.js.map +0 -1
  125. package/dist/index-BSNr0OQn.d.ts.map +0 -1
  126. package/dist/oauth-ZebH9NHb.js.map +0 -1
  127. package/dist/timeout-BDetbuN6.js.map +0 -1
  128. package/dist/transcript-anchors-Bv8HQ3S2.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { Al as CompletionReference, Ph as TurnUsage, Rl as Command, Th as ToolResultContent, bd as StreamEvent, fd as EditOutcome, hd as Owner, kl as CompletionProvider, md as EditPayload, mh as SessionTurn, og as SkillConfig } from "./index-BSNr0OQn.js";
2
- import { B as ApprovalDecision } from "./tool-formatters-BfKqWm5N.js";
1
+ import { Al as CompletionReference, Bh as TurnUsage, Ed as StreamEvent, Rl as Command, _d as EditOutcome, bh as SessionTurn, fg as SkillConfig, jh as ToolResultContent, kl as CompletionProvider, xd as Owner, yd as EditPayload } from "./index-BYKzzYzi.js";
2
+ import { B as ApprovalDecision } from "./tool-formatters-B5WSHMCU.js";
3
3
 
4
4
  //#region src/chat/color-gradient.d.ts
5
5
  /**
@@ -684,4 +684,4 @@ declare function countNeighbors(turnIds: readonly string[], turnId: string): {
684
684
  } | null;
685
685
  //#endregion
686
686
  export { uniqueFilesFromReferences as $, buildUnifiedDiff as A, buildEditOutcomesAnnotation as B, EditSummary as C, PreviewResult as D, InlineSegment as E, previewEditPayload as F, rewriteMultiEditHeader as G, mergeApprovalAndBodyOutcomes as H, splitLines as I, SKILLS_TRIGGER as J, stripEditOutcomesAnnotation as K, summarizeEditPayload as L, computeLineDiff as M, extractEditPayload as N, applyEditPayload as O, filetypeFromPath as P, createFilesCompletionProvider as Q, tokenize as R, EditHunkSummary as S, InlineDiff as T, parseEditOutcomesFromResult as U, maskToOutcomeKinds as V, resolveApprovalForPayload as W, uniqueSkillNamesFromReferences as X, createSkillsCompletionProvider as Y, FILES_TRIGGER as Z, formatTaskSummary as _, MAX_TRANSCRIPT_EVENTS as a, CHATS_TRIGGER as at, DiffLine as b, finalizeStreamingMarkdown as c, ChatReferenceScope as ct, ageString as d, uniqueChatIdsFromReferences as dt, FileEntry as et, compactPath as f, blendHsl as ft, formatTaskStatus as g, formatDuration as h, turnAsText as i, createCommandsCompletionProvider as it, computeInlineDiff as j, buildContextualDiff as k, finalizeStreamingMarkdownForOwner as l, chatReferenceTokensFromText as lt, fmtTokens as m, deleteTurnSafely as n, listProjectFiles as nt, TRANSCRIPT_TRIM_TO_EVENTS as o, ChatReferenceData as ot, fmtCost as p, buildLinearRamp as pt, summarizeOutcomes as q, truncateTurnsAt as r, COMMANDS_TRIGGER as rt, capTranscriptEvents as s, ChatReferenceEntry as st, countNeighbors as t, ListProjectFilesOptions as tt, turnContextSize as u, createChatsCompletionProvider as ut, previewLine as v, HunkResolution as w, DiffOp as x, shortId as y, ResolvedApproval as z };
687
- //# sourceMappingURL=turn-operations-CnIpcenJ.d.ts.map
687
+ //# sourceMappingURL=turn-operations-BvP3_HsU.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"turn-operations-CnIpcenJ.d.ts","names":[],"sources":["../src/chat/color-gradient.ts","../src/chat/completion-chats.ts","../src/chat/completion-commands.ts","../src/chat/files-discovery.ts","../src/chat/completion-files.ts","../src/chat/completion-skills.ts","../src/chat/edit-approval.ts","../src/tools/edit-utils.ts","../src/chat/edit-diff.ts","../src/chat/format.ts","../src/chat/streaming-pure.ts","../src/chat/turn-operations.ts"],"mappings":";;;;;;;;iBAmFgB,QAAA,CAAS,IAAA,UAAc,EAAA,UAAY,CAAA;;;;;;iBAuBnC,eAAA,CAAgB,IAAA,UAAc,EAAA,UAAY,CAAA;;;cCxF7C,aAAA;AAAA,KAKD,kBAAA;AAAA,UAEK,kBAAA;EACf,EAAA;EACA,KAAA;EACA,SAAA;EACA,gBAAA;EACA,QAAA;EACA,WAAA;EACA,SAAA;AAAA;AAAA,UAGe,iBAAA;EACf,KAAA,EAAO,kBAAkB;EACzB,KAAA;AAAA;AAAA,iBAmIc,6BAAA,CAA8B,IAAA;EAC5C,UAAA,iBAA2B,kBAAA;EAC3B,mBAAA,kBAAqC,kBAAA;EACrC,QAAA,SAAiB,kBAAA;EACjB,aAAA,SAAsB,OAAA,UAAiB,kBAAA;EACvC,KAAA;AAAA,IACE,kBAAA,CAAmB,iBAAA;AAAA,iBAoDP,2BAAA,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GX;iBUuBgB,gBAAA,CAAiB,KAAA,WAAgB,WAAA,IAAe,MAAA,WAAiB,WAAW;;;;;;;AVrBrF;AAmIP;iBUtDgB,UAAA,CAAW,IAAiB,EAAX,WAAW;;;;;;iBA+B5B,cAAA,CACd,OAAA,qBACA,MAAA;EACG,MAAA;EAAgB,KAAA;AAAA"}
1
+ {"version":3,"file":"turn-operations-BvP3_HsU.d.ts","names":[],"sources":["../src/chat/color-gradient.ts","../src/chat/completion-chats.ts","../src/chat/completion-commands.ts","../src/chat/files-discovery.ts","../src/chat/completion-files.ts","../src/chat/completion-skills.ts","../src/chat/edit-approval.ts","../src/tools/edit-utils.ts","../src/chat/edit-diff.ts","../src/chat/format.ts","../src/chat/streaming-pure.ts","../src/chat/turn-operations.ts"],"mappings":";;;;;;;;iBAmFgB,QAAA,CAAS,IAAA,UAAc,EAAA,UAAY,CAAA;;;;;;iBAuBnC,eAAA,CAAgB,IAAA,UAAc,EAAA,UAAY,CAAA;;;cCxF7C,aAAA;AAAA,KAKD,kBAAA;AAAA,UAEK,kBAAA;EACf,EAAA;EACA,KAAA;EACA,SAAA;EACA,gBAAA;EACA,QAAA;EACA,WAAA;EACA,SAAA;AAAA;AAAA,UAGe,iBAAA;EACf,KAAA,EAAO,kBAAkB;EACzB,KAAA;AAAA;AAAA,iBAmIc,6BAAA,CAA8B,IAAA;EAC5C,UAAA,iBAA2B,kBAAA;EAC3B,mBAAA,kBAAqC,kBAAA;EACrC,QAAA,SAAiB,kBAAA;EACjB,aAAA,SAAsB,OAAA,UAAiB,kBAAA;EACvC,KAAA;AAAA,IACE,kBAAA,CAAmB,iBAAA;AAAA,iBAoDP,2BAAA,CACd,UAAmD,WAA9B,mBAAmB;AAAA,iBAe1B,2BAAA,CAA4B,IAAY;;;;cCnO3C,gBAAA;AF2Fb;;;;;AAAA,iBE3BgB,gCAAA,CAAiC,IAAA;EAC/C,WAAA,iBAA4B,OAAA;AAAA,IAC1B,kBAAA,CAAmB,OAAA;;;;;;;A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AA;AAAA"}
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { d as ClassifiedErrorKind, i as AgentContextExceededError, l as CONTEXT_EXCEEDED_MESSAGE_PATTERNS, n as AgentAbortedError, o as AgentProviderError, p as matchesContextExceeded, r as AgentBudgetExceededError, s as AgentToolNotAllowedError, u as ClassifiedError } from "./timeout-DEaqslLO.js";
2
- import { $h as ToolStateOp, $m as PromptDocumentPart, Ah as ToolResultMetadata, Am as AgentStats, Bf as StreamCallbacks, Bh as ToolMap, C as SuccessfulMutationOutcome, Ch as ToolOutcome, Dg as RemoteStoreOptions, Dh as ToolResultDocumentRefContent, Dm as AgentBehavior, Dp as OpenAIParams, Eh as ToolResultDocumentContent, Fh as toolOutputBudgetByteLength, Gf as ToolSpec, Gi as AgentHookMap, Gm as McpToolHookContext, Hh as ReadStateEntry, Ih as toolOutputByteLength, Jp as AnthropicParams, Kf as TurnResult, Ki as AgentHooks, Lf as Provider, Lh as toolResultToText, Mh as ToolResultVideoContent, Nh as TurnFinishReason, Ns as SpawnToolOptions, Oh as ToolResultImageContent, Om as AgentClock, Os as ChildAgent, Ph as TurnUsage, Pm as ChildRunStats, Ps as SpawnToolState, Qh as ToolStateController, Qm as PromptAudioPart, Rf as ProviderCapabilities, Rh as ToolContext, Rr as InteractionToolOptions, S as MutationValidationResult, Sh as ToolHookContext, Th as ToolResultContent, Uf as ToolCall, Uh as ReadStateMap, Vf as StreamOptions, Wf as ToolResult, Wi as Agent, Wm as McpServerConfig, Xm as ProgressNudgeKind, Ym as OAuthRefreshHookContext, Zh as StagedToolState, Zm as ProgressNudgeMessage, _ as statsByModel, _g as SessionStore, ah as RepeatGuardToolMatcher, b as MutationValidationHooksOptions, bh as ThinkingLevel, cg as SkillResource, ch as RetryConfig, dg as CreateSessionOptions, dh as SessionEndStatus, eg as ToolStateStore, eh as PromptImagePart, fh as SessionHookContext, gg as SessionRun, h as flattenTurns, hh as SpawnHookContext, ih as RepeatGuardConfig, jh as ToolResultTextContent, kh as ToolResultImageRefContent, km as AgentRunOptions, lh as RunHookMap, mg as SessionData, mh as SessionTurn, nh as PromptTextPart, o_ as McpConnection, og as SkillConfig, oh as ResolveContentRef, p as ModelUsage, pg as Session, ph as SessionMessage, qi as AgentOptions, rh as PromptVideoPart, rp as OpenRouterParams, sh as ResolveContentRefBlock, t as Preset, tg as ToolStateView, th as PromptPart, ug as SkillsConfig, uh as SessionContentBlock, v as MutationValidationBatch, vh as StreamHookContext, vr as ValidationResult, wh as ToolResultAudioContent, x as MutationValidationMutation, y as MutationValidationFailure, zh as ToolDef, zm as DEFAULT_AGENT_CLOCK, zp as CerebrasParams } from "./index-BSNr0OQn.js";
2
+ import { Ah as ToolResultAudioContent, Bh as TurnUsage, Bm as ChildRunStats, C as SuccessfulMutationOutcome, Cg as SessionStore, Eh as ThinkingLevel, Fh as ToolResultImageRefContent, Fm as AgentRunOptions, Gh as ToolDef, Gi as AgentHookMap, Gm as DEFAULT_AGENT_CLOCK, Gp as CerebrasParams, Hh as toolOutputByteLength, Ih as ToolResultMetadata, Im as AgentStats, Jh as ReadStateEntry, Kf as StreamCallbacks, Kh as ToolMap, Ki as AgentHooks, Lh as ToolResultTextContent, Mh as ToolResultDocumentContent, Ng as RemoteStoreOptions, Nh as ToolResultDocumentRefContent, Nm as AgentBehavior, Np as OpenAIParams, Ns as SpawnToolOptions, Oh as ToolHookContext, Os as ChildAgent, Ph as ToolResultImageContent, Pm as AgentClock, Ps as SpawnToolState, Qf as TurnResult, Rh as ToolResultVideoContent, Rr as InteractionToolOptions, S as MutationValidationResult, Sg as SessionRun, Uf as Provider, Uh as toolResultToText, Vh as toolOutputBudgetByteLength, Wf as ProviderCapabilities, Wh as ToolContext, Wi as Agent, Xf as ToolResult, Xm as McpServerConfig, Yf as ToolCall, Yh as ReadStateMap, Zf as ToolSpec, Zm as McpToolHookContext, _ as statsByModel, _g as CreateSessionOptions, _h as SessionEndStatus, ag as ToolStateOp, ah as PromptDocumentPart, b as MutationValidationHooksOptions, bg as SessionData, bh as SessionTurn, ch as PromptTextPart, dh as RepeatGuardToolMatcher, em as AnthropicParams, f_ as McpConnection, fg as SkillConfig, fh as ResolveContentRef, gg as SkillsConfig, gh as SessionContentBlock, h as flattenTurns, hh as RunHookMap, ig as ToolStateController, ih as PromptAudioPart, jh as ToolResultContent, kh as ToolOutcome, lh as PromptVideoPart, lp as OpenRouterParams, mg as SkillResource, mh as RetryConfig, nh as ProgressNudgeKind, og as ToolStateStore, oh as PromptImagePart, p as ModelUsage, ph as ResolveContentRefBlock, qf as StreamOptions, qi as AgentOptions, rg as StagedToolState, rh as ProgressNudgeMessage, sg as ToolStateView, sh as PromptPart, t as Preset, th as OAuthRefreshHookContext, uh as RepeatGuardConfig, v as MutationValidationBatch, vh as SessionHookContext, vr as ValidationResult, wh as StreamHookContext, x as MutationValidationMutation, xh as SpawnHookContext, y as MutationValidationFailure, yg as Session, yh as SessionMessage, zh as TurnFinishReason } from "./index-BYKzzYzi.js";
3
3
  import { _ as TaskHandle, a as ContextType, c as ExecutionContext, g as TaskExitInfo, h as TaskEntry, l as ExecutionHandle, n as ContextCapabilities, o as DetachedTasksCapability, p as SpawnConfig, r as ContextHardening, s as ExecResult, t as BackgroundTaskStatus, v as TaskStallInfo } from "./types-M2DauK2D.js";
4
4
  import { t as SandboxProvider } from "./sandbox-DLY6uah7.js";
5
5
  export { type Agent, AgentAbortedError, type AgentBehavior, AgentBudgetExceededError, type AgentClock, AgentContextExceededError, type AgentHookMap, type AgentHooks, type AgentOptions, AgentProviderError, type AgentRunOptions, type AgentStats, AgentToolNotAllowedError, type AnthropicParams, type BackgroundTaskStatus, CONTEXT_EXCEEDED_MESSAGE_PATTERNS, type CerebrasParams, type ChildAgent, type ChildRunStats, type ClassifiedError, type ClassifiedErrorKind, type ContextCapabilities, type ContextHardening, type ContextType, type CreateSessionOptions, DEFAULT_AGENT_CLOCK, type DetachedTasksCapability, type ExecResult, type ExecutionContext, type ExecutionHandle, type InteractionToolOptions, type McpConnection, type McpServerConfig, type McpToolHookContext, type ModelUsage, type MutationValidationBatch, type MutationValidationFailure, type MutationValidationHooksOptions, type MutationValidationMutation, type MutationValidationResult, type OAuthRefreshHookContext, type OpenAIParams, type OpenRouterParams, type Preset, type ProgressNudgeKind, type ProgressNudgeMessage, type PromptAudioPart, type PromptDocumentPart, type PromptImagePart, type PromptPart, type PromptTextPart, type PromptVideoPart, type Provider, type ProviderCapabilities, type ReadStateEntry, type ReadStateMap, type RemoteStoreOptions, type RepeatGuardConfig, type RepeatGuardToolMatcher, type ResolveContentRef, type ResolveContentRefBlock, type RetryConfig, type RunHookMap, type SandboxProvider, type Session, type SessionContentBlock, type SessionData, type SessionEndStatus, type SessionHookContext, type SessionMessage, type SessionRun, type SessionStore, type SessionTurn, type SkillConfig, type SkillResource, type SkillsConfig, type SpawnConfig, type SpawnHookContext, type SpawnToolOptions, type SpawnToolState, type StagedToolState, type StreamCallbacks, type StreamHookContext, type StreamOptions, type SuccessfulMutationOutcome, type TaskEntry, type TaskExitInfo, type TaskHandle, type TaskStallInfo, type ThinkingLevel, type ToolCall, type ToolContext, type ToolDef, type ToolHookContext, type ToolMap, type ToolOutcome, type ToolResult, type ToolResultAudioContent, type ToolResultContent, type ToolResultDocumentContent, type ToolResultDocumentRefContent, type ToolResultImageContent, type ToolResultImageRefContent, type ToolResultMetadata, type ToolResultTextContent, type ToolResultVideoContent, type ToolSpec, type ToolStateController, type ToolStateOp, type ToolStateStore, type ToolStateView, type TurnFinishReason, type TurnResult, type TurnUsage, type ValidationResult, flattenTurns, matchesContextExceeded, statsByModel, toolOutputBudgetByteLength, toolOutputByteLength, toolResultToText };
package/dist/types.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { c as toolOutputByteLength, l as toolResultToText, s as toolOutputBudgetByteLength, t as DEFAULT_AGENT_CLOCK } from "./types-BIarq1qE.js";
2
- import { a as AgentProviderError, c as CONTEXT_EXCEEDED_MESSAGE_PATTERNS, n as AgentBudgetExceededError, o as AgentToolNotAllowedError, p as matchesContextExceeded, r as AgentContextExceededError, t as AgentAbortedError } from "./errors-BwBxu3zD.js";
2
+ import { a as AgentProviderError, c as CONTEXT_EXCEEDED_MESSAGE_PATTERNS, m as matchesContextExceeded, n as AgentBudgetExceededError, o as AgentToolNotAllowedError, r as AgentContextExceededError, t as AgentAbortedError } from "./errors-DKiMrOKq.js";
3
3
  import { i as statsByModel, n as flattenTurns } from "./stats-DAKBEKjc.js";
4
4
  export { AgentAbortedError, AgentBudgetExceededError, AgentContextExceededError, AgentProviderError, AgentToolNotAllowedError, CONTEXT_EXCEEDED_MESSAGE_PATTERNS, DEFAULT_AGENT_CLOCK, flattenTurns, matchesContextExceeded, statsByModel, toolOutputBudgetByteLength, toolOutputByteLength, toolResultToText };
package/docs/CHAT.md CHANGED
@@ -426,7 +426,7 @@ buildPlanSystem({ cwd: projectDir, allowInteraction: true })
426
426
 
427
427
  The provider attaches `cache_control` to the static prefix only; per-turn `<env>` rewrites in the TUI re-bill the dynamic suffix but don't invalidate the cached doctrine above. When `cwd` is omitted (no `envSection` to render), the marker is dropped automatically — single-block cache, identical wire bytes to before. See `docs/ARCHITECTURE.md` § Prompt caching > System-prompt boundary for the underlying mechanism.
428
428
 
429
- Pass `allowInteraction: false` (mirror of `Settings.allowInteraction`) to swap in the no-prompts variants — the host should also drop `ask_user` / `present_plan` from the tool set at agent build time so the model can't call tools that aren't reflected in the prompt.
429
+ Pass `allowInteraction: false` (mirror of `Settings.interactionMode === 'disabled'`) to swap in the no-prompts variants — the host should also drop `ask_user` / `present_plan` from the tool set at agent build time so the model can't call tools that aren't reflected in the prompt. The other two modes (`ask`, `skip`) both keep the tools and the interaction guidance; they differ only in who answers, which is a host-side policy (`shouldSkipInteractions`) rather than a prompt variant.
430
430
 
431
431
  **Per-turn env rewrite.** The TUI installs a `system:transform` hook that calls `replaceDynamicSection(ctx.system, envSection(...))` each turn — refreshes the cwd / project root / date below the boundary while leaving the cached static prefix byte-identical:
432
432
 
package/docs/TUI.md CHANGED
@@ -153,7 +153,7 @@ The slot priority has two layers — a top layer that may take over the **transc
153
153
  2. **`pendingInteraction != null`** → `InteractionBlock` (plan picker or question wizard, depending on `request.kind`).
154
154
  - **Live** (`busy === true`) — esc aborts the run.
155
155
  - **Resumed** (`busy === false`, persisted `tool_call` without matching `tool_result`) — esc leaves the form, the session re-enqueues on next activation.
156
- 3. Otherwise → `PromptBlock` (textarea + history) — kept mounted even while `busy` so the user can type-ahead. A small `StatusSpinner` sits next to the session title via `TitleOverlay`'s `statusIcon` slot (`warn` while streaming, `accent` while auto-compacting); `↵` enqueues the typed message onto the drain loop and the next `agent.run()` picks it up when the current stream completes.
156
+ 3. Otherwise → `PromptBlock` (textarea + history) — kept mounted even while `busy` so the user can type-ahead. It also stays mounted (and `suspended`, so the hidden textarea releases focus to the slot owner) under cases 1 and 2 rather than being swapped out: `visible: approvalPending == null && pendingInteraction == null` maps to `Display.None`, so the draft, cursor, history position, and staged attachments survive an approval / interaction round-trip instead of being destroyed by an unmount. A small `StatusSpinner` sits next to the session title via `TitleOverlay`'s `statusIcon` slot (`warn` while streaming, `accent` while auto-compacting); `↵` enqueues the typed message onto the drain loop and the next `agent.run()` picks it up when the current stream completes.
157
157
 
158
158
  File-edit pending falls through to the bottom slot's prompt branch — the inline modal owns the conversation area and the keystroke dispatch, so the prompt stays interactive (queue-only).
159
159
 
@@ -198,7 +198,7 @@ Every customizable shortcut routes through `<userDir>/keybindings.json` and is p
198
198
  | `ctrl+shift+g` | `openContextPanel` | chat | open the context-usage breakdown panel (read-only). Needs a terminal with the kitty keyboard protocol to stay distinct from `ctrl+g`; rebind on legacy terminals like Terminal.app |
199
199
  | `ctrl+y` | `openKeybindings` | non-auth | open the keybindings panel — read-only catalog grouped by surface, with `↵` to edit `~/.zidane/keybindings.json` |
200
200
  | `ctrl+k` | `cancelToolCall` | chat (busy, ≥1 in-flight call) | open the cancel-tool picker — pick one call to flip via `agent.cancelTool(callId)`, or press `a` to cancel every in-flight call. Distinct from `esc abort` (whole-run abort); siblings keep running |
201
- | `ctrl+v` | `attachClipboardImage` | textarea | attach an image from the OS clipboard. Reads via a platform helper (`pngpaste` or an `osascript` fallback on macOS; `wl-paste`/`xclip` on Linux; PowerShell on Windows). An empty bracketed-paste event also probes the clipboard for an image. Soft-fails with an inline notice (no image / helper missing / over SSH / too large). Gated on `attachmentsEnabled` |
201
+ | `ctrl+v` | `attachClipboardImage` | textarea | paste **text or an image** from the OS clipboard, read by the process itself rather than through the terminal's paste path. Images become attachments; text goes through the same policy as a normal paste (large / multiline folds into `paste.txt`). Because only the keystroke crosses the PTY, this is the way out of integrated terminals whose PTY layer freezes on large `cmd+V` pastes (e.g. Cursor). Reads via a platform helper (`pngpaste` or an `osascript` fallback on macOS; `wl-paste`/`xclip` on Linux; PowerShell on Windows). An empty bracketed-paste event also probes the clipboard for an image. Soft-fails with an inline notice (nothing on the clipboard / helper missing / over SSH / too large). Image attaching is gated on `attachmentsEnabled`; the action id stays `attachClipboardImage` so existing keybinding overrides keep working |
202
202
  | `ctrl+g` | `openExternalEditor` | textarea | open the current prompt draft in `$EDITOR` / `$VISUAL` (git-style: temp file, reloads on save & quit). Suspends the renderer for the editor; a non-zero editor exit aborts (prompt unchanged). Gated on `externalEditor` |
203
203
  | `shift+tab` | `cycleAgent` | chat (idle, ≥2 profiles) | cycle to next agent profile |
204
204
  | `tab` | — | sessions list | toggle list scope: current project ↔ all projects (ephemeral — doesn't touch the `showAllProjects` setting). Opening a session from another project `chdir`s to that session's `projectRoot` first |
@@ -417,8 +417,8 @@ A single shared search input filters the active tab's list (`label + description
417
417
 
418
418
  For the live source of truth, see `SETTINGS_TOGGLES` / `SETTINGS_CHOICES` in `src/chat/settings-context.tsx`. The current shape includes:
419
419
 
420
- - **Toggles** — `safeMode`, `allowInteraction`, `resumeLastSession`, `hideSubagentOutput`, `persistToolResults`, `autoCompact`, `showAllProjects`, `showThinking`, `showToolResults`, `showFullShellOutput`, `showEditDiffs`, `smoothStreaming`, `showTodoIndicator`, `showThrobber`.
421
- - **Choices** — `toolCallDisplay` (Formatted / Full / Hidden), `autoCompactThreshold` (60% / 70% / 80% / 90%), `theme` (every entry in `BUILTIN_THEMES`), `targetFps` (30 / 60 / 120).
420
+ - **Toggles** — `safeMode`, `resumeLastSession`, `hideSubagentOutput`, `persistToolResults`, `autoCompact`, `showAllProjects`, `showThinking`, `showToolResults`, `showFullShellOutput`, `showEditDiffs`, `smoothStreaming`, `showTodoIndicator`, `showThrobber`.
421
+ - **Choices** — `interactionMode` (Ask normally / Skip interactions / Disable tools), `toolCallDisplay` (Formatted / Full / Hidden), `autoCompactThreshold` (60% / 70% / 80% / 90%), `theme` (every entry in `BUILTIN_THEMES`), `targetFps` (30 / 60 / 120).
422
422
 
423
423
  `enabledSkills` / `enabledMcps` deliberately default to `undefined` (every discovered entry enabled). The Settings modal seeds the allowlist with the current discovery on first toggle so newly-added entries don't silently flip on — the user opts them in.
424
424
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zidane",
3
- "version": "6.5.4",
3
+ "version": "6.5.5",
4
4
  "description": "an agent that goes straight to the goal",
5
5
  "type": "module",
6
6
  "private": false,
@@ -253,6 +253,7 @@
253
253
  "smoke:bundle": "bun run scripts/smoke-bundle-size.ts",
254
254
  "test": "bun test",
255
255
  "test:extensions": "bun test ./extensions",
256
+ "test:all": "bun test && bun test ./extensions",
256
257
  "typecheck:extensions": "for d in extensions/*/; do tsc --noEmit -p \"$d\" || exit 1; done",
257
258
  "test:inference": "cd test-inference && bun test",
258
259
  "test:eval": "bun run scripts/eval.ts",