zidane 7.0.15 → 7.0.16
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/README.md +18 -9
- package/docs/ACP.md +6 -0
- package/docs/ARCHITECTURE.md +179 -356
- package/docs/ARTIFACTS.md +130 -0
- package/docs/CHAT.md +426 -1312
- package/docs/EXECUTION_CONTEXT.md +46 -19
- package/docs/EXTENSIONS.md +215 -623
- package/docs/HEADLESS.md +5 -0
- package/docs/INTERACTIONS.md +21 -22
- package/docs/IPC.md +318 -344
- package/docs/PLUGINS.md +2 -0
- package/docs/README.md +57 -0
- package/docs/RESTATE.md +199 -491
- package/docs/RUN_IN_BACKGROUND.md +107 -558
- package/docs/SKILL.md +171 -238
- package/docs/TUI.md +213 -593
- package/package.json +1 -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
|
package/docs/INTERACTIONS.md
CHANGED
|
@@ -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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
|