@andorra-labs/code 0.1.10 → 0.1.11
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 +28 -208
- package/THIRD_PARTY_NOTICES.md +15 -0
- package/dist/src/agent-execution.js +36 -0
- package/dist/src/app-server/protocol.d.ts +1 -0
- package/dist/src/app-server.d.ts +34 -1
- package/dist/src/app-server.js +264 -54
- package/dist/src/automation-service.js +1 -1
- package/dist/src/browser-session.d.ts +8 -0
- package/dist/src/browser-session.js +27 -1
- package/dist/src/browser-ui/app.js +237 -15
- package/dist/src/browser-ui/index.html +5 -5
- package/dist/src/browser-ui/style.css +110 -65
- package/dist/src/browser-ui/tokens.css +27 -26
- package/dist/src/coding-tools.d.ts +24 -0
- package/dist/src/coding-tools.js +71 -8
- package/dist/src/command-screens.js +1 -1
- package/dist/src/commands.js +1 -1
- package/dist/src/completion-gates.d.ts +42 -7
- package/dist/src/completion-gates.js +55 -9
- package/dist/src/completion.d.ts +8 -0
- package/dist/src/completion.js +19 -1
- package/dist/src/dashboard-view.js +2 -2
- package/dist/src/deadline.js +4 -0
- package/dist/src/graph-manager-chat.js +13 -13
- package/dist/src/graph-runner.js +39 -2
- package/dist/src/graph-server.js +9 -9
- package/dist/src/graph-sync.d.ts +8 -0
- package/dist/src/graph-sync.js +54 -3
- package/dist/src/graph-tool.js +1 -1
- package/dist/src/graph-ui/app.js +262 -93
- package/dist/src/graph-ui/controls.css +43 -22
- package/dist/src/graph-ui/controls.js +31 -1
- package/dist/src/graph-ui/embed.js +62 -13
- package/dist/src/graph-ui/icons.js +4 -0
- package/dist/src/graph-ui/index.html +3 -3
- package/dist/src/graph-ui/manager-state.js +2 -2
- package/dist/src/graph-ui/manager.css +19 -18
- package/dist/src/graph-ui/manager.js +11 -11
- package/dist/src/graph-ui/skill-picker.js +1 -1
- package/dist/src/graph-ui/studio-canvas.js +8 -8
- package/dist/src/graph-ui/studio.css +18 -15
- package/dist/src/graph-ui/studio.js +92 -35
- package/dist/src/graph-ui/style.css +122 -79
- package/dist/src/graph-ui/theme.js +2 -2
- package/dist/src/graph-ui/tokens.css +33 -29
- package/dist/src/graphs.d.ts +3 -2
- package/dist/src/graphs.js +3 -2
- package/dist/src/membership-errors.d.ts +7 -1
- package/dist/src/membership-errors.js +9 -3
- package/dist/src/pull-requests.d.ts +42 -6
- package/dist/src/pull-requests.js +11 -3
- package/dist/src/react-runtime.js +121 -14
- package/dist/src/read-document-doc.d.ts +20 -0
- package/dist/src/read-document-doc.js +524 -0
- package/dist/src/read-document-docx.d.ts +21 -0
- package/dist/src/read-document-docx.js +584 -0
- package/dist/src/read-document-text.d.ts +29 -0
- package/dist/src/read-document-text.js +67 -0
- package/dist/src/read-document-tool.d.ts +48 -0
- package/dist/src/read-document-tool.js +162 -0
- package/dist/src/read-document.d.ts +78 -0
- package/dist/src/read-document.js +353 -0
- package/dist/src/read-image.d.ts +29 -2
- package/dist/src/read-image.js +42 -17
- package/dist/src/runtime.d.ts +19 -0
- package/dist/src/runtime.js +10 -1
- package/dist/src/session-changes.d.ts +6 -1
- package/dist/src/session-changes.js +13 -5
- package/dist/src/side-panel.d.ts +6 -1
- package/dist/src/side-panel.js +12 -10
- package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
- package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
- package/dist/src/skills/bundled/graph-manager/SKILL.md +37 -3
- package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
- package/dist/src/skills/bundled/provenance.json +4 -4
- package/dist/src/skills/runtime-skills.js +3 -3
- package/dist/src/stall-recovery.d.ts +6 -2
- package/dist/src/stall-recovery.js +7 -2
- package/dist/src/terminal-ui.js +2 -2
- package/dist/src/time-limit.d.ts +53 -0
- package/dist/src/time-limit.js +79 -0
- package/dist/src/tools.js +92 -7
- package/dist/src/transcript.js +1 -1
- package/dist/src/types.d.ts +6 -0
- package/dist/src/usage-analytics.d.ts +3 -1
- package/dist/src/usage-analytics.js +16 -2
- package/package.json +6 -26
- package/docs/README.md +0 -36
- package/docs/agents/README.md +0 -62
- package/docs/agents/install-for-agents.md +0 -56
- package/docs/agents/mcp-server.md +0 -212
- package/docs/agents/subagent-mode.md +0 -149
- package/docs/concepts/README.md +0 -47
- package/docs/concepts/jev-actionable-routing.md +0 -113
- package/docs/concepts/jev-decision-thresholds.md +0 -412
- package/docs/concepts/jev-efficiency.md +0 -217
- package/docs/concepts/jev-eval-2026-11-01.md +0 -78
- package/docs/concepts/limits.md +0 -52
- package/docs/concepts/memory.md +0 -10
- package/docs/concepts/security.md +0 -50
- package/docs/concepts/workspace-instructions.md +0 -29
- package/docs/getting-started/README.md +0 -82
- package/docs/getting-started/accounts.md +0 -78
- package/docs/getting-started/configure-providers.md +0 -132
- package/docs/guides/README.md +0 -13
- package/docs/guides/browser.md +0 -39
- package/docs/guides/desktop-app.md +0 -414
- package/docs/guides/extensions.md +0 -102
- package/docs/guides/graph-builder.md +0 -116
- package/docs/guides/headless.md +0 -46
- package/docs/guides/tui.md +0 -75
- package/docs/guides/update.md +0 -70
- package/docs/guides/web-search.md +0 -51
- package/docs/guides/windows-code-signing.md +0 -319
- package/docs/llms.txt +0 -45
- package/docs/reference/README.md +0 -7
- package/docs/reference/cli.md +0 -76
- package/docs/reference/config.md +0 -91
- package/docs/reference/slash-commands.md +0 -59
- package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
- package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
- package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
- package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
- package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
- package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
- package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
- package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
- package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
- package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
- package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
- package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
- package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
- package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
- package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
- package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
- package/scripts/jev-efficiency-eval.mjs +0 -187
- package/scripts/jev-efficiency-live.mjs +0 -193
- package/scripts/zcode-engine-replay.mjs +0 -223
- package/tests/agent-centric-mcp-test-plan.md +0 -208
- package/tests/analytics-settings-test-plan.md +0 -165
- package/tests/browser-cli-smoke.mjs +0 -276
- package/tests/browser-test-plan.md +0 -280
- package/tests/chat-side-panel-test-plan.md +0 -309
- package/tests/decision-engine-test-plan.md +0 -163
- package/tests/default-active-jev-test-plan.md +0 -85
- package/tests/harness-extensions-test-plan.md +0 -113
- package/tests/jev-all-decisions-test-plan.md +0 -156
- package/tests/jev-efficiency/criteria.json +0 -158
- package/tests/jev-efficiency/workloads.mjs +0 -242
- package/tests/jev-efficiency-test-plan.md +0 -198
- package/tests/permissions-sandbox-probe.mjs +0 -74
- package/tests/permissions-test-plan.md +0 -191
- package/tests/product-telemetry-test-plan.md +0 -536
- package/tests/thinking-stream-preview-test-plan.md +0 -136
- package/tests/zcode-react-engine-test-plan.md +0 -396
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# Thinking stream preview — QA test plan
|
|
2
|
-
|
|
3
|
-
> **Superseded in part (2026-10-31).** The TUI no longer takes mouse reporting, so clicks
|
|
4
|
-
> never reach the app: the thinking preview toggles with Ctrl+Y only and its control row
|
|
5
|
-
> reads `ctrl+y`. Click steps below (TP2, TP3) describe the previous behavior; see
|
|
6
|
-
> [`tui-selection-without-mouse-capture-test-plan.md`](tui-selection-without-mouse-capture-test-plan.md).
|
|
7
|
-
|
|
8
|
-
## Scope and prerequisites
|
|
9
|
-
|
|
10
|
-
**Purpose.** While the model streams its reasoning (`reasoning_content`, DeepSeek-style), the
|
|
11
|
-
interactive terminal shows a live preview that always reflects the latest thinking. Every new
|
|
12
|
-
stream opens as a fixed six-row reasoning window; clicking it or pressing Ctrl+Y collapses it to
|
|
13
|
-
one line for the rest of that stream, and the next stream opens expanded again. A
|
|
14
|
-
separate elapsed-time / `ctrl+y or click` control row is pinned directly beneath those reasoning
|
|
15
|
-
rows, and the whole thinking block stays above the Todo panel.
|
|
16
|
-
|
|
17
|
-
**Affected workflows.**
|
|
18
|
-
|
|
19
|
-
- Interactive TUI runs (`andorra` with no `--prompt`) against an **OpenAI-compatible** provider
|
|
20
|
-
whose model emits `reasoning_content` while streaming (DeepSeek `deepseek-reasoner`, local
|
|
21
|
-
servers exposing DeepSeek-R1-style reasoning: LM Studio, vLLM with the deepseek reasoning
|
|
22
|
-
parser, llama.cpp builds that emit `reasoning_content`).
|
|
23
|
-
- Not affected: Anthropic-type providers, Codex providers, headless `--prompt` runs, graph
|
|
24
|
-
server runs, subagent (Explore/parallel copy) inference. These never stream reasoning; they
|
|
25
|
-
behave exactly as before.
|
|
26
|
-
|
|
27
|
-
**Setup.**
|
|
28
|
-
|
|
29
|
-
1. Build the CLI from this branch: `npm ci && npm run build`.
|
|
30
|
-
2. Configure a provider that streams reasoning, e.g. DeepSeek:
|
|
31
|
-
`andorra` → `/providers` → add `https://api.deepseek.com/v1` with `deepseek-reasoner`, or a
|
|
32
|
-
local LM Studio/vLLM endpoint with a reasoning model.
|
|
33
|
-
3. Run `andorra` in a real terminal (Windows Terminal, GNOME Terminal, iTerm2, or similar) —
|
|
34
|
-
not a piped stdio, which cannot render the TUI.
|
|
35
|
-
|
|
36
|
-
## How to use the feature
|
|
37
|
-
|
|
38
|
-
1. Submit any task that makes the model think (e.g. "Explain how the runtime aborts a run").
|
|
39
|
-
2. While the model is reasoning, a dim line appears above the composer where the
|
|
40
|
-
`Working · …s` shimmer was: `◌ <latest line of reasoning> · <elapsed>s · ctrl+y or click`.
|
|
41
|
-
The text keeps updating as reasoning arrives; it always shows the most recent line.
|
|
42
|
-
3. The six-row reasoning view is open by default. Up to six rows of the reasoning tail are
|
|
43
|
-
shown, the `◌` marker on the first row that holds reasoning, followed by a separate stable
|
|
44
|
-
`◌ <elapsed> · ctrl+y or click` row. If Todo progress is visible, the complete thinking block
|
|
45
|
-
remains above it.
|
|
46
|
-
4. Collapse it to one line: click the block, or press Ctrl+Y. Click or Ctrl+Y again reopens it.
|
|
47
|
-
A collapse lasts only for the current stream.
|
|
48
|
-
5. When the model's call finishes (answer or tool call), the preview disappears. The mouse
|
|
49
|
-
stays captured for the whole session (see
|
|
50
|
-
[`tui-wheel-scrolls-panel-test-plan.md`](tui-wheel-scrolls-panel-test-plan.md)), so
|
|
51
|
-
selecting text uses the terminal's selection bypass — Shift-drag on Windows/Linux
|
|
52
|
-
terminals and in iTerm2, or View ▸ Allow Mouse Reporting (⌘R) on Apple's Terminal.app —
|
|
53
|
-
during and after the stream alike.
|
|
54
|
-
|
|
55
|
-
**Reset/cleanup.** No persistent state. `/clear` or restarting the CLI resets everything.
|
|
56
|
-
|
|
57
|
-
## Test cases and expected results
|
|
58
|
-
|
|
59
|
-
| # | Case | Steps | Expected |
|
|
60
|
-
|---|------|-------|----------|
|
|
61
|
-
| TP1 | Opens expanded | Submit a reasoning task; watch the block above the composer | Preview appears only while reasoning streams, already expanded: up to six reasoning rows with the newest at the bottom, then the elapsed/disclosure control row; elapsed timer keeps ticking |
|
|
62
|
-
| TP2 | Click collapses | Click any row of the expanded block | One preview line showing the latest reasoning, with the control row beneath; transcript above regains the rows |
|
|
63
|
-
| TP3 | Click expands | Click the collapsed preview line | Back to the six-row window |
|
|
64
|
-
| TP4 | Keyboard toggle | Press Ctrl+Y, then Ctrl+Y again | Same as TP2/TP3; works even in terminals whose clicks never reach the app |
|
|
65
|
-
| TP5 | Preview retracts | Let the model call finish | The `◌` preview disappears; the next turn shows the normal working shimmer |
|
|
66
|
-
| TP6 | Retry resets the preview | Force a provider 429/500 mid-stream (or stop/start a local server during a request) | The retry notice prints; the preview restarts from the new attempt's reasoning, never appends the failed attempt's text |
|
|
67
|
-
| TP7 | Non-reasoning model | Run the same task on a non-reasoning model (e.g. `deepseek-chat`) | No preview; ordinary `Working` line; response behaves as before |
|
|
68
|
-
| TP8 | Selection with the mouse captured | While streaming, select and copy transcript text through the terminal's selection bypass (Shift-drag; ⌘R on Apple's Terminal.app); repeat after the call completes | Selection/copy works the same way during and after the stream — capture is held for the whole session, so both windows need the bypass and neither releases it |
|
|
69
|
-
| TP9 | Wheel scroll during a stream | Scroll the wheel while the preview is live | Transcript scrolls back exactly as before (Page Down returns to the tail) |
|
|
70
|
-
| TP10 | Whole-JSON fallback | Point the provider at a server that ignores `stream` (returns plain JSON) | Run completes normally; no preview; no error |
|
|
71
|
-
| TP11 | `stream_options` rejected | Server that 400s unknown body fields (some llama.cpp/Ollama builds) | Request transparently retried unstreamed; run completes; no preview |
|
|
72
|
-
| TP12 | Tiny terminal | Resize to ~10 rows during a stream | Preview collapses to one row or vanishes; no layout corruption; restore size brings it back |
|
|
73
|
-
| TP13 | Steering during a stream | Type a steer and press Enter while reasoning streams | Steer is queued as usual; preview unaffected; input cursor stays in the composer |
|
|
74
|
-
| TP14 | Usage accounting | Run `/usage` after a streamed turn | Request/token counts match the provider's final-chunk usage; no double counting |
|
|
75
|
-
| TP15 | Thinking / Todo ordering | During a reasoning stream with a populated Todo list, expand the thinking preview | Newest reasoning is readable above the stable timestamp/control row; the Todo heading/items are below the entire thinking block and never split the trace from its controls |
|
|
76
|
-
|
|
77
|
-
## Edge cases and potential bugs
|
|
78
|
-
|
|
79
|
-
- **Very long reasoning:** only the last 4,000 characters are retained for rendering; the
|
|
80
|
-
preview keeps working without memory growth. Suspected risk only — no reproduction.
|
|
81
|
-
- **Token firehose:** repaints are throttled to ~80 ms; a local model emitting hundreds of
|
|
82
|
-
chunks per second must not peg the CPU. Suspected risk only.
|
|
83
|
-
- **Reasoning with blank lines:** the collapsed line skips trailing blank lines and shows the
|
|
84
|
-
last nonempty one.
|
|
85
|
-
- **Control characters in reasoning:** stripped by the same `clean()` path all transcript text
|
|
86
|
-
uses.
|
|
87
|
-
- **Concurrent root calls:** subagent inference never streams into the preview (the CLI wrapper
|
|
88
|
-
drops `subagentId` calls), and any call that arrives while another previewing call is in
|
|
89
|
-
flight is suppressed the same way, so parallel modifier copies and concurrent graph branches
|
|
90
|
-
cannot interleave thinking in one preview line.
|
|
91
|
-
- **Stream ends before a finish reason:** a body that closes cleanly without completing the
|
|
92
|
-
choice is retried exactly like a dropped connection, not failed as malformed.
|
|
93
|
-
- **Connection held open after `[DONE]`:** reading stops at the terminator, so a server that
|
|
94
|
-
keeps the SSE connection open cannot turn a finished call into a timeout and a billed retry.
|
|
95
|
-
- **Empty streamed completion:** a choice with `content: ""` and `finish_reason: "stop"` stays
|
|
96
|
-
a valid (empty) answer for the runtime's bounded completion repair, matching whole-body
|
|
97
|
-
behavior.
|
|
98
|
-
- **Wheel scrolling:** the mouse is captured for the whole session, so SGR wheel reports
|
|
99
|
-
scroll the transcript during the stream, after it ends, and while the preview is
|
|
100
|
-
expanded; wheel scrolling never recalls input history.
|
|
101
|
-
- **Terminal without SGR mouse reporting:** clicks do nothing; Ctrl+Y remains the toggle.
|
|
102
|
-
- **Stream cut mid-flight:** retried as the same request; already-visible reasoning from the
|
|
103
|
-
failed attempt is replaced by the retry's stream.
|
|
104
|
-
- **Response > 4 MiB reassembled:** the same cap as whole-body requests aborts the stream with
|
|
105
|
-
the standard "exceeds the 4 MiB limit" error.
|
|
106
|
-
|
|
107
|
-
## Gaps and limitations
|
|
108
|
-
|
|
109
|
-
- OpenRouter-style `reasoning` (not `reasoning_content`) deltas are not surfaced; the preview
|
|
110
|
-
relies on the same field the whole-body path reads.
|
|
111
|
-
- Anthropic extended thinking is not configured by this feature; Anthropic providers never
|
|
112
|
-
stream reasoning here.
|
|
113
|
-
- The QA cases above were not yet executed against a live reasoning provider (TP1–TP14 are
|
|
114
|
-
pending manual QA); automated coverage below is the executed evidence.
|
|
115
|
-
- Mouse capture is held for the whole session (since 2026-10-06, see
|
|
116
|
-
[`tui-wheel-scrolls-panel-test-plan.md`](tui-wheel-scrolls-panel-test-plan.md)); the
|
|
117
|
-
terminal's own click-selection is unavailable throughout and selecting text uses the
|
|
118
|
-
terminal's selection bypass. This is the documented trade for wheel scrolling that
|
|
119
|
-
never recalls history and for click-to-expand disclosures.
|
|
120
|
-
|
|
121
|
-
## Validation evidence
|
|
122
|
-
|
|
123
|
-
- `npx tsc --noEmit` — clean.
|
|
124
|
-
- `npm test` — providers: 36 passing including 9 streaming cases (delta forwarding,
|
|
125
|
-
chunk-boundary reassembly, tool-call fragment assembly, truncation, clean-truncation and
|
|
126
|
-
empty-stream retry, empty-completion validity, `[DONE]` on a held-open connection,
|
|
127
|
-
mid-stream retry, `stream_options` 400 fallback, non-4xx surfacing); terminal-ui: 88
|
|
128
|
-
passing including 3 new preview cases (live tail, Ctrl+Y expand/collapse
|
|
129
|
-
to six rows, SGR click toggle with inert outside clicks; the capture/release assertion
|
|
130
|
-
this run originally checked was superseded on 2026-10-06 by session-wide capture — the
|
|
131
|
-
terminal-ui suite now asserts capture is held from startup and never released).
|
|
132
|
-
- Full suite compared against the same tree without this change: identical failure set
|
|
133
|
-
(36 pre-existing local failures on this Windows host, unchanged by the feature).
|
|
134
|
-
- Environment: Windows 11, Node 22, Git Bash; worktree `Andorra-Code-thinking-preview`.
|
|
135
|
-
- 2026-09-22 layout regression: automated terminal coverage now asserts `reasoning tail → timestamp/control row → Todo` ordering for the expanded preview. This connector-only change did not execute the repository commands locally; CI/manual execution is pending.
|
|
136
|
-
- Pending: TP1–TP15 manual execution against DeepSeek/LM Studio; Windows Terminal click check.
|