zidane 7.1.10 → 7.2.1

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 (100) hide show
  1. package/dist/{acp-Bt-eb5Z8.js → acp-D-tVyUjw.js} +2 -2
  2. package/dist/{acp-Bt-eb5Z8.js.map → acp-D-tVyUjw.js.map} +1 -1
  3. package/dist/acp-cli.js +4 -4
  4. package/dist/acp.d.ts +1 -1
  5. package/dist/acp.js +1 -1
  6. package/dist/{agent-B6etKd_o.js → agent-D0zZnGbt.js} +135 -6
  7. package/dist/agent-D0zZnGbt.js.map +1 -0
  8. package/dist/agent.d.ts +1 -1
  9. package/dist/agent.js +1 -1
  10. package/dist/{anthropic-BQdAnY-w.js → anthropic-C2aole0G.js} +83 -100
  11. package/dist/anthropic-C2aole0G.js.map +1 -0
  12. package/dist/{approvals-CIKGWmiU.js → approvals-CnE_8JVZ.js} +53 -11
  13. package/dist/approvals-CnE_8JVZ.js.map +1 -0
  14. package/dist/{auth-CDDNbEmd.js → auth-BG2rVKSt.js} +2 -2
  15. package/dist/{auth-CDDNbEmd.js.map → auth-BG2rVKSt.js.map} +1 -1
  16. package/dist/chat/pure.d.ts +24 -8
  17. package/dist/chat/pure.d.ts.map +1 -1
  18. package/dist/chat/pure.js +248 -3
  19. package/dist/chat/pure.js.map +1 -0
  20. package/dist/chat.d.ts +6 -6
  21. package/dist/chat.js +4 -4
  22. package/dist/contexts/daytona.d.ts +1 -1
  23. package/dist/contexts/e2b.d.ts +1 -1
  24. package/dist/daemon-cli.js +1 -1
  25. package/dist/eval.d.ts +1 -1
  26. package/dist/extensions.d.ts +2 -2
  27. package/dist/extensions.js +1 -1
  28. package/dist/headless.d.ts +1 -1
  29. package/dist/headless.js +1 -1
  30. package/dist/{index-dXnPmqFx.d.ts → index-BgN1T3lk.d.ts} +342 -109
  31. package/dist/index-BgN1T3lk.d.ts.map +1 -0
  32. package/dist/{index-C45NxBZm.d.ts → index-CWHSTD2Q.d.ts} +5 -5
  33. package/dist/{index-C45NxBZm.d.ts.map → index-CWHSTD2Q.d.ts.map} +1 -1
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +2 -2
  36. package/dist/{ipc-CNRlwg7u.js → ipc-Cu29nNEz.js} +2 -2
  37. package/dist/{ipc-CNRlwg7u.js.map → ipc-Cu29nNEz.js.map} +1 -1
  38. package/dist/ipc.d.ts +5 -5
  39. package/dist/ipc.js +3 -3
  40. package/dist/mcp.d.ts +1 -1
  41. package/dist/output/stream-json.d.ts +1 -1
  42. package/dist/output/terminal.d.ts +1 -1
  43. package/dist/panels-B6gRk4bf.js.map +1 -1
  44. package/dist/plugins.d.ts +1 -1
  45. package/dist/presets.d.ts +1 -1
  46. package/dist/presets.js +1 -1
  47. package/dist/providers/anthropic.d.ts +1 -1
  48. package/dist/providers/anthropic.js +1 -1
  49. package/dist/providers/arcee.d.ts +1 -1
  50. package/dist/providers/baseten.d.ts +1 -1
  51. package/dist/providers/cerebras.d.ts +1 -1
  52. package/dist/providers/local.d.ts +1 -1
  53. package/dist/providers/openai-compat.d.ts +1 -1
  54. package/dist/providers/openai.d.ts +1 -1
  55. package/dist/providers/openai.js +3 -2
  56. package/dist/providers/openai.js.map +1 -1
  57. package/dist/providers/openrouter.d.ts +1 -1
  58. package/dist/providers/xai.d.ts +1 -1
  59. package/dist/providers.d.ts +1 -1
  60. package/dist/providers.js +1 -1
  61. package/dist/restate.d.ts +1 -1
  62. package/dist/restate.js +1 -1
  63. package/dist/session/sqlite.d.ts +19 -2
  64. package/dist/session/sqlite.d.ts.map +1 -1
  65. package/dist/session/sqlite.js +45 -1
  66. package/dist/session/sqlite.js.map +1 -1
  67. package/dist/session.d.ts +1 -1
  68. package/dist/{shell-path-Db04cLEP.js → shell-path-DWo7ooWv.js} +6 -6
  69. package/dist/{shell-path-Db04cLEP.js.map → shell-path-DWo7ooWv.js.map} +1 -1
  70. package/dist/skills.d.ts +1 -1
  71. package/dist/{todo-edits-PxMJvYIX.js → todo-edits-UOwgxGKu.js} +74 -13
  72. package/dist/todo-edits-UOwgxGKu.js.map +1 -0
  73. package/dist/{tool-formatters-Bl1afA8N.d.ts → tool-formatters-DoRLnfuD.d.ts} +5 -3
  74. package/dist/tool-formatters-DoRLnfuD.d.ts.map +1 -0
  75. package/dist/tools/fetch-url.d.ts +1 -1
  76. package/dist/tools/web-search.d.ts +1 -1
  77. package/dist/tools.d.ts +1 -1
  78. package/dist/tools.js +1 -1
  79. package/dist/{transcript-anchors-BfI3ZXh1.d.ts → transcript-anchors-BeudMbXx.d.ts} +12 -4
  80. package/dist/transcript-anchors-BeudMbXx.d.ts.map +1 -0
  81. package/dist/tui.d.ts +3 -3
  82. package/dist/tui.d.ts.map +1 -1
  83. package/dist/tui.js +290 -40
  84. package/dist/tui.js.map +1 -1
  85. package/dist/{turn-operations-D0x_g6XQ.d.ts → turn-operations-C8bMBDl_.d.ts} +3 -3
  86. package/dist/{turn-operations-D0x_g6XQ.d.ts.map → turn-operations-C8bMBDl_.d.ts.map} +1 -1
  87. package/dist/{turn-operations-D_k_FEur.js → turn-operations-DrbJlpq9.js} +5 -2
  88. package/dist/turn-operations-DrbJlpq9.js.map +1 -0
  89. package/dist/types.d.ts +1 -1
  90. package/docs/EXTENSIONS.md +1 -1
  91. package/docs/PANELS.md +16 -2
  92. package/package.json +3 -3
  93. package/dist/agent-B6etKd_o.js.map +0 -1
  94. package/dist/anthropic-BQdAnY-w.js.map +0 -1
  95. package/dist/approvals-CIKGWmiU.js.map +0 -1
  96. package/dist/index-dXnPmqFx.d.ts.map +0 -1
  97. package/dist/todo-edits-PxMJvYIX.js.map +0 -1
  98. package/dist/tool-formatters-Bl1afA8N.d.ts.map +0 -1
  99. package/dist/transcript-anchors-BfI3ZXh1.d.ts.map +0 -1
  100. package/dist/turn-operations-D_k_FEur.js.map +0 -1
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $g as ProgressNudgeMessage, A_ as ToolResultDocumentContent, Ac as SpawnToolOptions, Ag as AgentClock, B_ as toolOutputByteLength, Bm as ToolCall, Br as InteractionToolOptions, C as SuccessfulMutationOutcome, Cv as SessionRun, D_ as ToolOutcome, E_ as ToolHookContext, F_ as ToolResultTextContent, Fm as ProviderCapabilities, G_ as ToolDescriptionTarget, Gh as AnthropicParams, H_ as ToolContext, Hm as ToolSpec, I_ as ToolResultVideoContent, Ig as ChildRunStats, Ih as CerebrasParams, Ji as AgentHookMap, K_ as ToolDescriptions, Kg as McpServerConfig, L_ as TurnFinishReason, Lm as StreamCallbacks, M_ as ToolResultImageContent, Mg as AgentStats, N_ as ToolResultImageRefContent, O_ as ToolResultAudioContent, P_ as ToolResultMetadata, Pm as Provider, Pv as RemoteStoreOptions, Qg as ProgressNudgeKind, R_ as TurnUsage, Rm as StreamOptions, S as MutationValidationResult, Tc as ChildAgent, Ty as McpConnection, U_ as ToolDef, Um as TurnResult, V_ as toolResultToText, Vg as DEFAULT_AGENT_CLOCK, Vm as ToolResult, W_ as ToolDescriptionOverride, X_ as ReadStateMap, Xi as AgentOptions, Y_ as ReadStateEntry, Yi as AgentHooks, Zg as OAuthRefreshHookContext, Zi as AgentToolState, _ as statsByModel, __ as SpawnHookContext, _v as SkillsConfig, a_ as PromptVideoPart, av as ToolStateController, b as MutationValidationHooksOptions, b_ as StreamHookContext, bv as Session, c_ as ResolveContentRef, cv as ToolStateView, d_ as RunHookMap, e_ as PromptAudioPart, eh as OpenRouterParams, f_ as SessionContentBlock, g_ as SessionTurn, h as flattenTurns, h_ as SessionMessage, hv as SkillResource, i_ as PromptTextPart, iv as StagedToolState, j_ as ToolResultDocumentRefContent, jc as SpawnToolState, jg as AgentRunOptions, k_ as ToolResultContent, kg as AgentBehavior, l_ as ResolveContentRefBlock, m_ as SessionHookContext, n_ as PromptImagePart, o_ as RepeatGuardConfig, ov as ToolStateOp, p as ModelUsage, p_ as SessionEndStatus, pv as SkillConfig, q_ as ToolMap, qg as McpToolHookContext, qi as Agent, r_ as PromptPart, s_ as RepeatGuardToolMatcher, sv as ToolStateStore, t as Preset, t_ as PromptDocumentPart, u_ as RetryConfig, v as MutationValidationBatch, vr as ValidationResult, vv as CreateSessionOptions, w_ as ThinkingLevel, wh as OpenAIParams, wv as SessionStore, x as MutationValidationMutation, xv as SessionData, y as MutationValidationFailure, z_ as toolOutputBudgetByteLength } from "./index-dXnPmqFx.js";
1
+ import { $_ as ToolHookContext, A_ as PromptPart, B_ as SessionEndStatus, Br as InteractionToolOptions, Bv as SkillConfig, C as SuccessfulMutationOutcome, Cv as ReadStateMap, D_ as PromptAudioPart, Dh as OpenRouterParams, E_ as ProgressNudgeMessage, F_ as ResolveContentRef, Fv as ToolStateView, Gv as CreateSessionOptions, H_ as SessionMessage, Hv as SkillResource, I_ as ResolveContentRefBlock, Ji as AgentHookMap, Jv as SessionData, L_ as RetryConfig, M_ as PromptVideoPart, Mv as ToolStateController, N_ as RepeatGuardConfig, Nv as ToolStateOp, O_ as PromptDocumentPart, P_ as RepeatGuardToolMatcher, Pv as ToolStateStore, Qy as McpConnection, R_ as RunHookMap, S as MutationValidationResult, Sc as SpawnToolState, Sv as ReadStateEntry, T_ as ProgressNudgeKind, U_ as SessionTurn, V_ as SessionHookContext, W_ as SpawnHookContext, Wv as SkillsConfig, Xi as AgentOptions, Xv as SessionRun, Yi as AgentHooks, Z_ as ThinkingLevel, Zh as OpenAIParams, Zi as AgentToolState, Zv as SessionStore, _ as statsByModel, _v as ToolDescriptionOverride, a_ as AgentStats, av as ToolResultImageContent, b as MutationValidationHooksOptions, b_ as McpToolHookContext, bv as ToolMap, ch as ProviderCapabilities, cv as ToolResultTextContent, dh as StreamOptions, dv as TurnUsage, ev as ToolOutcome, fv as toolOutputBudgetByteLength, gc as ChildAgent, gh as TurnResult, gv as ToolDef, h as flattenTurns, hh as ToolSpec, hv as ToolContext, i_ as AgentRunOptions, iv as ToolResultDocumentRefContent, j_ as PromptTextPart, jv as StagedToolState, k_ as PromptImagePart, l_ as ChildRunStats, lg as CerebrasParams, lv as ToolResultVideoContent, m_ as DEFAULT_AGENT_CLOCK, mh as ToolResult, mv as toolResultToText, n_ as AgentBehavior, nv as ToolResultContent, ov as ToolResultImageRefContent, p as ModelUsage, ph as ToolCall, pv as toolOutputByteLength, q_ as StreamHookContext, qi as Agent, qv as Session, r_ as AgentClock, rv as ToolResultDocumentContent, sh as Provider, sv as ToolResultMetadata, sy as RemoteStoreOptions, t as Preset, tv as ToolResultAudioContent, uh as StreamCallbacks, uv as TurnFinishReason, v as MutationValidationBatch, vg as AnthropicParams, vr as ValidationResult, vv as ToolDescriptionTarget, w_ as OAuthRefreshHookContext, x as MutationValidationMutation, xc as SpawnToolOptions, y as MutationValidationFailure, y_ as McpServerConfig, yv as ToolDescriptions, z_ as SessionContentBlock } from "./index-BgN1T3lk.js";
2
2
  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";
3
3
  import { C as TaskHandle, S as TaskExitInfo, c as ContextCapabilities, d as ContextType, f as DetachedTasksCapability, h as ExecutionHandle, l as ContextHardening, m as ExecutionContext, p as ExecResult, s as BackgroundTaskStatus, w as TaskStallInfo, x as TaskEntry, y as SpawnConfig } from "./isolation-Kfoof0MM.js";
4
4
  import { t as SandboxProvider } from "./sandbox-BH0WQkXn.js";
@@ -519,7 +519,7 @@ Transforms are synchronous and fail-open — use them for cheap composition deci
519
519
  ctx.registerPanel({
520
520
  id: 'ci',
521
521
  label: 'CI',
522
- icon: { gui: 'i-lucide-check-circle', tui: '✓' },
522
+ icon: { gui: 'i-ph-check-circle', tui: '✓' },
523
523
  load: async () => {
524
524
  const runs = await fetchRuns()
525
525
  return {
package/docs/PANELS.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Panels
2
2
 
3
- Side-panel tabs next to the transcript, in both the TUI (docked rail) and the GUI (resizable side panel). Built-in: **Artifacts**. Extensions add their own with `ctx.registerPanel`.
3
+ Side-panel tabs next to the transcript, in both the TUI (docked rail) and the GUI (resizable side panel). Built-ins: **Artifacts** (both hosts), **Diffs** and **Files** (GUI). Extensions add their own with `ctx.registerPanel`.
4
+
5
+ ## Built-in tabs
6
+
7
+ | Tab | What | Host |
8
+ | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
9
+ | Artifacts | What the session produced (PRs, branches, commits, recorded files); see [ARTIFACTS.md](./ARTIFACTS.md) | TUI + GUI |
10
+ | Diffs | Two sources: **Session** (edits the agent made, from the transcript) and **Working tree** (`git diff HEAD` plus untracked files, live). Unified / split, wrap. On working-tree diffs, selecting lines opens a review-comment draft; `Mod+Enter` attaches `file + range + fenced excerpt + note` to the prompt | GUI |
11
+ | Files | The session workspace as a tree with git status; opening a file shows a read-only viewer (or the editor, per the setting below) | GUI |
12
+
13
+ Diffs and Files render with [`@pierre/diffs`](https://diffs.com) and [`@pierre/trees`](https://trees.software) (Apache-2.0), themed from the `--zg-*` tokens through `gui/src/renderer/src/components/code/pierre-theme.ts`; `DiffView` / `FileView` / `FileTree` are the only places the packages are touched. Filesystem and git access is read-only, on the host at the session cwd, confined to it (`gui/src/main/chat/workspace.ts`).
14
+
15
+ ### Setting: "Open files and diffs in"
16
+
17
+ `Settings.openIn`: `editor` (default) sends a clicked file or folder to `$VISUAL` / `$EDITOR` (folders too, when the editor takes them); `panel` reveals it in the Files tab. Every file, folder and artifact click in the GUI goes through one resolver (`components/panel/open-target.ts`); holding ⌘ / Ctrl flips the target for that click. The TUI has no viewer, so `panel` behaves as `editor` there.
4
18
 
5
19
  ## Model
6
20
 
@@ -10,7 +24,7 @@ A panel is data, never UI. The extension returns a JSON-safe `PanelContent`; eac
10
24
  ctx.registerPanel({
11
25
  id: "changes", // namespaced to '<extension>/changes'
12
26
  label: "Git",
13
- icon: { gui: "i-lucide-git-branch", tui: "⎇" },
27
+ icon: { gui: "i-ph-git-branch", tui: "⎇" }, // GUI icons are Phosphor: i-ph-<name>, i-ph-<name>-fill
14
28
  load: async ({ cwd, sessionId }) => ({
15
29
  badge: 3, // number or short string on the tab
16
30
  sections: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zidane",
3
- "version": "7.1.10",
3
+ "version": "7.2.1",
4
4
  "description": "an agent that goes straight to the goal",
5
5
  "type": "module",
6
6
  "private": false,
@@ -279,7 +279,7 @@
279
279
  "typecheck": "tsc --noEmit"
280
280
  },
281
281
  "dependencies": {
282
- "@earendil-works/pi-ai": "0.85.1",
282
+ "@earendil-works/pi-ai": "0.87.1",
283
283
  "chalk": "^5.6.2",
284
284
  "fzf": "^0.5.2",
285
285
  "hookable": "^6.1.1",
@@ -354,7 +354,7 @@
354
354
  "@opentui/core-linux-x64": "^0.5.3",
355
355
  "@opentui/react": "^0.5.3",
356
356
  "@restatedev/restate-sdk": "^1.16.5",
357
- "@types/bun": "^1.3.13",
357
+ "@types/bun": "^1.4.0",
358
358
  "@types/dockerode": "^4.0.1",
359
359
  "@types/react": "19.2.18",
360
360
  "@types/tar-stream": "^3.1.4",