zidane 7.0.15 → 7.0.17

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 (123) hide show
  1. package/README.md +21 -14
  2. package/dist/{acp-Bw2b_kka.js → acp-DTnq3bda.js} +4 -4
  3. package/dist/{acp-Bw2b_kka.js.map → acp-DTnq3bda.js.map} +1 -1
  4. package/dist/acp-cli.js +5 -5
  5. package/dist/acp.d.ts +1 -1
  6. package/dist/acp.js +1 -1
  7. package/dist/{agent-B_uQo4f1.js → agent-C5xr7lqh.js} +170 -22
  8. package/dist/agent-C5xr7lqh.js.map +1 -0
  9. package/dist/agent.d.ts +1 -1
  10. package/dist/agent.js +1 -1
  11. package/dist/{anthropic-QbHqqTkV.js → anthropic-D_aMBEj8.js} +88 -5
  12. package/dist/anthropic-D_aMBEj8.js.map +1 -0
  13. package/dist/{approvals-B9aIQJRQ.js → approvals-D3P3Wz58.js} +48 -72
  14. package/dist/approvals-D3P3Wz58.js.map +1 -0
  15. package/dist/{auth-plw6npda.js → auth-893jSFew.js} +5 -5
  16. package/dist/auth-893jSFew.js.map +1 -0
  17. package/dist/chat/pure.d.ts +4 -4
  18. package/dist/chat/pure.js +2 -2
  19. package/dist/chat.d.ts +6 -6
  20. package/dist/chat.js +5 -5
  21. package/dist/contexts/daytona.d.ts +1 -1
  22. package/dist/contexts/e2b.d.ts +1 -1
  23. package/dist/daemon-cli.js +1 -1
  24. package/dist/eval.d.ts +1 -1
  25. package/dist/eval.js +1 -1
  26. package/dist/extensions.d.ts +1 -1
  27. package/dist/extensions.js +1 -1
  28. package/dist/headless.d.ts +1 -1
  29. package/dist/headless.js +3 -3
  30. package/dist/{index-Df2CH6bn.d.ts → index-CyOGLSQN.d.ts} +27 -16
  31. package/dist/index-CyOGLSQN.d.ts.map +1 -0
  32. package/dist/{index-Dc_zYpEu.d.ts → index-D7H81_kd.d.ts} +125 -4
  33. package/dist/index-D7H81_kd.d.ts.map +1 -0
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +6 -6
  36. package/dist/{ipc-T_pPnHkp.js → ipc-DY40IbcP.js} +2 -2
  37. package/dist/{ipc-T_pPnHkp.js.map → ipc-DY40IbcP.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/{messages-21XfHxyF.js → messages-aORUmIKe.js} +2 -2
  42. package/dist/{messages-21XfHxyF.js.map → messages-aORUmIKe.js.map} +1 -1
  43. package/dist/{openai-compat-DY-AKxCg.js → openai-compat-cIeLSED_.js} +23 -25
  44. package/dist/openai-compat-cIeLSED_.js.map +1 -0
  45. package/dist/output/stream-json.d.ts +1 -1
  46. package/dist/output/terminal.d.ts +1 -1
  47. package/dist/plugins.d.ts +1 -1
  48. package/dist/presets.d.ts +1 -1
  49. package/dist/presets.js +1 -1
  50. package/dist/providers/anthropic.d.ts +2 -2
  51. package/dist/providers/anthropic.js +2 -2
  52. package/dist/providers/arcee.d.ts +1 -1
  53. package/dist/providers/arcee.js +1 -1
  54. package/dist/providers/baseten.d.ts +1 -1
  55. package/dist/providers/baseten.js +1 -1
  56. package/dist/providers/cerebras.d.ts +1 -1
  57. package/dist/providers/cerebras.js +1 -1
  58. package/dist/providers/local.d.ts +1 -1
  59. package/dist/providers/local.js +1 -1
  60. package/dist/providers/openai-compat.d.ts +1 -1
  61. package/dist/providers/openai-compat.js +1 -1
  62. package/dist/providers/openai.d.ts +1 -1
  63. package/dist/providers/openai.js +2 -2
  64. package/dist/providers/openrouter.d.ts +1 -1
  65. package/dist/providers/openrouter.js +1 -1
  66. package/dist/providers/xai.d.ts +1 -1
  67. package/dist/providers/xai.js +1 -1
  68. package/dist/{providers-CoK1rZ1p.js → providers-CTkZSxvp.js} +2 -2
  69. package/dist/{providers-CoK1rZ1p.js.map → providers-CTkZSxvp.js.map} +1 -1
  70. package/dist/providers.d.ts +1 -1
  71. package/dist/providers.js +3 -3
  72. package/dist/restate.d.ts +1 -1
  73. package/dist/restate.js +2 -2
  74. package/dist/{server-DXM8ZbGi.js → server-DaZqNd61.js} +5 -5
  75. package/dist/{server-DXM8ZbGi.js.map → server-DaZqNd61.js.map} +1 -1
  76. package/dist/session/sqlite.d.ts +1 -1
  77. package/dist/{session-DPZnncaQ.js → session-23Stp71-.js} +2 -2
  78. package/dist/{session-DPZnncaQ.js.map → session-23Stp71-.js.map} +1 -1
  79. package/dist/session.d.ts +1 -1
  80. package/dist/session.js +2 -2
  81. package/dist/skills.d.ts +1 -1
  82. package/dist/{tool-formatters-BgdOYAy9.d.ts → tool-formatters-9_ABHXRG.d.ts} +2 -2
  83. package/dist/{tool-formatters-BgdOYAy9.d.ts.map → tool-formatters-9_ABHXRG.d.ts.map} +1 -1
  84. package/dist/tools/fetch-url.d.ts +1 -1
  85. package/dist/tools/web-search.d.ts +1 -1
  86. package/dist/tools.d.ts +1 -1
  87. package/dist/tools.js +1 -1
  88. package/dist/{transcript-anchors-CtnwuQJM.d.ts → transcript-anchors-CbZkEMIN.d.ts} +11 -5
  89. package/dist/transcript-anchors-CbZkEMIN.d.ts.map +1 -0
  90. package/dist/tui.d.ts +67 -11
  91. package/dist/tui.d.ts.map +1 -1
  92. package/dist/tui.js +2930 -2596
  93. package/dist/tui.js.map +1 -1
  94. package/dist/{turn-operations-khAvr7KJ.d.ts → turn-operations-DsVjoO3S.d.ts} +30 -4
  95. package/dist/{turn-operations-khAvr7KJ.d.ts.map → turn-operations-DsVjoO3S.d.ts.map} +1 -1
  96. package/dist/{turn-operations-DkJ1R0p8.js → turn-operations-Dt5L8smX.js} +31 -2
  97. package/dist/{turn-operations-DkJ1R0p8.js.map → turn-operations-Dt5L8smX.js.map} +1 -1
  98. package/dist/types-CWgENVLY.js.map +1 -1
  99. package/dist/types.d.ts +1 -1
  100. package/docs/ACP.md +6 -0
  101. package/docs/ARCHITECTURE.md +179 -356
  102. package/docs/ARTIFACTS.md +145 -0
  103. package/docs/CHAT.md +426 -1312
  104. package/docs/EXECUTION_CONTEXT.md +46 -19
  105. package/docs/EXTENSIONS.md +215 -623
  106. package/docs/HEADLESS.md +5 -0
  107. package/docs/INTERACTIONS.md +21 -22
  108. package/docs/IPC.md +319 -344
  109. package/docs/PLUGINS.md +2 -0
  110. package/docs/README.md +57 -0
  111. package/docs/RESTATE.md +199 -491
  112. package/docs/RUN_IN_BACKGROUND.md +107 -558
  113. package/docs/SKILL.md +172 -238
  114. package/docs/TUI.md +216 -591
  115. package/package.json +1 -1
  116. package/dist/agent-B_uQo4f1.js.map +0 -1
  117. package/dist/anthropic-QbHqqTkV.js.map +0 -1
  118. package/dist/approvals-B9aIQJRQ.js.map +0 -1
  119. package/dist/auth-plw6npda.js.map +0 -1
  120. package/dist/index-Dc_zYpEu.d.ts.map +0 -1
  121. package/dist/index-Df2CH6bn.d.ts.map +0 -1
  122. package/dist/openai-compat-DY-AKxCg.js.map +0 -1
  123. package/dist/transcript-anchors-CtnwuQJM.d.ts.map +0 -1
package/docs/HEADLESS.md CHANGED
@@ -13,6 +13,11 @@ Two entry points, one contract:
13
13
  - **CLI** — `bun run headless` (`src/headless-cli.ts`). Language-agnostic; spawn
14
14
  it per rollout and parse stdout. Emits `stream-json` like `claude -p`.
15
15
 
16
+ Contents: [In-process](#in-process) · [CLI](#cli) ·
17
+ [Reusable output helpers](#reusable-output-helpers) ·
18
+ [Transcript formats](#transcript-formats) · [RL rollouts](#rl-rollouts) ·
19
+ [Known integration checks](#known-integration-checks-real-model--vllm)
20
+
16
21
  ## In-process
17
22
 
18
23
  ```ts
@@ -12,6 +12,12 @@ the matching `tool_result` block follows in the next user turn. There is
12
12
  no parallel store, no migration, no extra schema. Resume-from-disk is
13
13
  just `pendingInteractionsFromTurns(session.turns)`.
14
14
 
15
+ Contents: [How it works](#how-it-works) · [`present_plan`](#present_plan) ·
16
+ [`ask_user`](#ask_user) · [Keyboard](#keyboard) ·
17
+ [Persistence guarantees](#persistence-guarantees) ·
18
+ [Smoke-test checklist](#smoke-test-checklist) ·
19
+ [Public API](#public-api-for-gui-consumers)
20
+
15
21
  ```
16
22
  agent calls present_plan / ask_user
17
23
  │
@@ -119,29 +125,22 @@ In the question wizard (multi-question batches):
119
125
  ### Sizing
120
126
 
121
127
  The wizard is content-sized inside a ceiling, and all three numbers come from
122
- the terminal rather than from percentages of a parent:
123
-
124
- - **Ceiling** — `wizardMaxRows(terminalRows)`, roughly 75% of the terminal,
125
- never below 8 rows and never within 8 rows of the top so some transcript stays
126
- visible. It used to be a `maxHeight: '60%'`, which resolves against the
127
- parent's height; the wizard's parent is content-sized, so Yoga had nothing to
128
- take 60% of and the cap silently never applied — the shell grew to whatever
129
- its content estimate claimed and drew its border there, leaving questions
130
- rendered below a closed frame.
128
+ the terminal rather than from percentages of a parent (the wizard's parent is
129
+ itself content-sized, so a percentage of it has nothing to resolve against):
130
+
131
+ - **Ceiling** — `wizardMaxRows(terminalRows)`: roughly 75% of the terminal,
132
+ never below 8 rows, and never within 8 rows of the top so some transcript
133
+ stays visible.
131
134
  - **Content height** — `introRows` + `estimateQuestionRowHeight` per question,
132
- both **wrap-aware** (`wrappedRows`) and both given the panel's content width.
133
- They previously counted `\n` only and ignored choice descriptions, so any
134
- wrapped markdown intro or wrapped description under-sized the panel.
135
- - **Floor** — the shell takes `minHeight` equal to the rows its content needs.
136
- The shell is `flexShrink: 1` (it was `0`, which is why it could neither cap
137
- nor shrink), and shrinkability alone let a `flexGrow` transcript sibling
138
- squeeze the form to a fraction of its content; the floor makes the transcript
139
- yield instead.
140
-
141
- The height is also **monotonic**: answering a question collapses its row to a
142
- one-line summary, which would otherwise shrink the panel mid-form. A high-water
143
- mark keyed by request id means the panel settles at the largest size it has
144
- needed and stays there.
135
+ both wrap-aware (`wrappedRows`) and given the panel's content width, so a
136
+ wrapped markdown intro or choice description sizes the panel correctly.
137
+ - **Floor** — the shell's `minHeight` equals the rows its content needs, and
138
+ the shell is `flexShrink: 1` so a `flexGrow` transcript sibling yields to it
139
+ instead of squeezing the form.
140
+
141
+ The height is also **monotonic**: it's computed as the max over every possible
142
+ `activeIndex` up front, in one pass, so the panel is sized for its tallest
143
+ state on the first frame and never grows or shrinks as you answer questions.
145
144
 
146
145
  In the plan picker:
147
146