@denizokcu/haze 1.7.11 → 1.7.12

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 (80) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +113 -97
  3. package/assets/graph-grammars/NOTICE.md +21 -0
  4. package/assets/graph-grammars/tree-sitter-javascript.wasm +0 -0
  5. package/assets/graph-grammars/tree-sitter-tsx.wasm +0 -0
  6. package/assets/graph-grammars/tree-sitter-typescript.wasm +0 -0
  7. package/assets/graph-grammars/web-tree-sitter.cjs +4116 -0
  8. package/assets/graph-grammars/web-tree-sitter.cjs.map +7 -0
  9. package/assets/graph-grammars/web-tree-sitter.js +4056 -0
  10. package/assets/graph-grammars/web-tree-sitter.js.map +7 -0
  11. package/assets/graph-grammars/web-tree-sitter.wasm +0 -0
  12. package/assets/graph-grammars/web-tree-sitter.wasm.map +55 -0
  13. package/dist/buildInfo.json +3 -3
  14. package/dist/cli/chat/inputSuggestions.js +1 -0
  15. package/dist/cli/chat/sessionLifecycle.js +2 -1
  16. package/dist/cli/chat/sessionRecorder.js +4 -1
  17. package/dist/cli/chat/startupSequence.d.ts +2 -0
  18. package/dist/cli/chat/startupSequence.js +6 -0
  19. package/dist/cli/commands/chat.js +5 -2
  20. package/dist/cli/commands/commandHelp.js +4 -1
  21. package/dist/cli/commands/commands.js +2 -0
  22. package/dist/cli/commands/formatters.js +28 -0
  23. package/dist/cli/commands/graphCommand.d.ts +2 -0
  24. package/dist/cli/commands/graphCommand.js +60 -0
  25. package/dist/cli/commands/initCommand.js +14 -0
  26. package/dist/cli/commands/streaming/agentAttempt.js +11 -1
  27. package/dist/cli/commands/streaming/attemptOutcome.js +1 -1
  28. package/dist/cli/commands/streaming/attemptSetup.d.ts +3 -0
  29. package/dist/cli/commands/streaming/attemptSetup.js +8 -3
  30. package/dist/cli/commands/streaming/goalSupervisor.js +5 -3
  31. package/dist/cli/commands/streaming/prepareStep.js +1 -0
  32. package/dist/cli/commands/streaming/streamLoop.d.ts +2 -0
  33. package/dist/cli/commands/streaming/streamLoop.js +3 -0
  34. package/dist/cli/commands/streaming/toolPartHandlers.js +7 -1
  35. package/dist/cli/commands/streaming.js +5 -0
  36. package/dist/core/agent/compaction.d.ts +1 -0
  37. package/dist/core/agent/compaction.js +3 -0
  38. package/dist/core/graph/analyze.d.ts +61 -0
  39. package/dist/core/graph/analyze.js +274 -0
  40. package/dist/core/graph/buildGraph.d.ts +44 -0
  41. package/dist/core/graph/buildGraph.js +290 -0
  42. package/dist/core/graph/digest.d.ts +2 -0
  43. package/dist/core/graph/digest.js +40 -0
  44. package/dist/core/graph/extract.d.ts +58 -0
  45. package/dist/core/graph/extract.js +394 -0
  46. package/dist/core/graph/model.d.ts +63 -0
  47. package/dist/core/graph/model.js +96 -0
  48. package/dist/core/graph/query.d.ts +69 -0
  49. package/dist/core/graph/query.js +391 -0
  50. package/dist/core/graph/store.d.ts +64 -0
  51. package/dist/core/graph/store.js +171 -0
  52. package/dist/core/process/runBoundedProcess.js +12 -6
  53. package/dist/core/safety/untrustedEnvelopes.d.ts +6 -0
  54. package/dist/core/safety/untrustedEnvelopes.js +17 -2
  55. package/dist/core/subagent/executionProfiles.js +4 -4
  56. package/dist/core/tasks/taskStorage.js +11 -1
  57. package/dist/core/validation/outputParser.js +16 -8
  58. package/dist/llm/hazeTools.d.ts +2 -12426
  59. package/dist/llm/hazeTools.js +2 -0
  60. package/dist/llm/lspTools.d.ts +3 -12622
  61. package/dist/llm/requestContext.d.ts +3 -0
  62. package/dist/llm/requestContext.js +13 -4
  63. package/dist/llm/subagentRunner.d.ts +2 -308
  64. package/dist/llm/systemPrompt.js +7 -4
  65. package/dist/llm/toolResultTypes.d.ts +1 -1
  66. package/dist/llm/tools/fetchTool.d.ts +2 -1221
  67. package/dist/llm/tools/fileTools.d.ts +2 -7768
  68. package/dist/llm/tools/graphAdvisory.d.ts +22 -0
  69. package/dist/llm/tools/graphAdvisory.js +68 -0
  70. package/dist/llm/tools/graphTools.d.ts +13 -0
  71. package/dist/llm/tools/graphTools.js +195 -0
  72. package/dist/llm/tools/processTool.d.ts +2 -1081
  73. package/dist/llm/tools/shellTool.d.ts +2 -1513
  74. package/dist/llm/tools/storedOutputTool.d.ts +2 -355
  75. package/dist/llm/tools/taskTool.d.ts +2 -489
  76. package/dist/llm/tools/toolContext.js +24 -9
  77. package/dist/llm/tools/toolContextState.d.ts +3 -0
  78. package/dist/llm/tools/toolContextState.js +2 -1
  79. package/dist/skills/skillTools.js +4 -1
  80. package/package.json +18 -15
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.12 - 2026-11-20
4
+
5
+ ### Added
6
+
7
+ - Deterministic workspace code graph built with vendored tree-sitter WASM grammars, queried through `graph*` tools (also available to subagent workers), the `/graph` command, and compaction digests; file mutations attach a bounded reverse-dependency advisory.
8
+
9
+ ### Changed
10
+
11
+ - LSP and graph tools are gated on request intent and prompt/schema duplication is trimmed to reduce per-request context.
12
+
13
+ ### Fixed
14
+
15
+ - Bounded processes settle on child exit even when escaped descendants hold stdio pipes.
16
+ - Project skill envelope closers are escaped variant-tolerantly.
17
+ - Only error diagnostics count as validation failure evidence.
18
+ - Durable-write failures surface once, and workspace tasks are written atomically.
19
+ - Epoch-boundary aborts are classified by cause and turn budgets stay honest.
20
+
3
21
  ## 1.7.11 - 2026-11-06
4
22
 
5
23
  ### Changed
package/README.md CHANGED
@@ -1,112 +1,26 @@
1
1
  # haze
2
2
 
3
- A minimal LLM harness for your terminal.
3
+ haze is an open-source coding agent for your terminal. It works with local models and hosted providers.
4
4
 
5
- [![Known Vulnerabilities](https://snyk.io/test/github/DenizOkcu/haze/badge.svg)](https://snyk.io/test/github/DenizOkcu/haze)
6
-
7
- ## What's new in 1.7.11
8
-
9
- Fleet size now follows the deployment manifest's worker allowance, and long turns show live generation speed and fleet depth in the busy bar.
10
-
11
- ### Changes in 1.7.10
12
-
13
- This patch rebuilds the npm package with matching version and build metadata.
14
-
15
- ### Changes in 1.7.9
16
-
17
- This release improves model deployment discovery for configured workers.
18
-
19
- ### Changes in 1.7.8
20
-
21
- This release improves compatibility with updated model deployments and preserves explicitly configured deployment trust.
22
-
23
- ### Changes in 1.7.5
24
-
25
- Improved recovery from malformed tool calls and more resilient retry handling for temporary provider errors.
26
-
27
- ### Changes in 1.7.2
28
-
29
- This patch updates the AI SDK and development tooling, and moves the public website and documentation to maintainable Astro components.
30
-
31
- ### Changes in 1.7.1
32
-
33
- This patch updates a provider preset's default endpoint.
34
-
35
- ### Changes in 1.7.0
36
-
37
- haze 1.7.0 hardens the untrusted-content boundary: MCP tool results of every size now arrive inside escaped untrusted envelopes, one variant-tolerant escaper guards all untrusted container closers (including compaction summaries), project instructions discovered mid-turn no longer ride the engine control channel, terminal control sequences (including OSC 52 clipboard writes) are stripped from the Markdown transcript path, and the protected secret-file list extends to database/CLI credential stores, browser profiles, and `~/.haze/settings.json`/`auth.json` — with the shell-side prompt rule derived from the same list. It also fixes validation-evidence edge cases around trailing stderr redirects and repeated tool-call redirects.
38
-
39
- ### Highlights from 1.6.0
40
-
41
- haze 1.6.0 stops mistaking patient local models for dead streams:
42
-
43
- - Idle-stream stall windows are now class-aware: hosted endpoints keep the 5-minute window, while loopback/local inference servers (LM Studio, Ollama) get 30 minutes — their prompt ingestion and hidden reasoning emit no stream output at all, so the old fixed window aborted healthy models mid-work and burned the retry pool re-doing prefill.
44
- - The new `streamIdleTimeoutMs` setting overrides the window explicitly (integer milliseconds, 1s–24h). The `timeout`/`retry` events and the stall system messages report the effective window.
45
-
46
- ### Highlights from 1.5.1
47
-
48
- haze 1.5.1 improves terminal resizing and reasoning-effort compatibility:
49
-
50
- - On terminal width changes, haze replays the full settled transcript, including formatted Markdown, at the new width. The input draft and active turn stay mounted. Terminal scrollback is preserved, so older transcript copies can remain there after a replay.
51
- - Unknown local and hosted endpoints omit reasoning effort by default. Providers can configure their supported reasoning levels explicitly.
52
- - Unsupported `none`/`minimal` choices for GPT-6+ model names are omitted rather than promoted to a different effort; the provider default applies.
53
-
54
- ### Highlights from 1.5.0
55
-
56
- haze 1.5.0 modernizes the terminal experience on Ink 8 — formatted streamed Markdown, native spinners and busy indicators, `$EDITOR`/`$PAGER` handoffs, and IME-aware cursor placement — and adds model steering for compact models, per-model session-scoped `/reasoning` (with the `/thinking` alias), pinned session model selections, and a metadata-only `haze report`.
57
-
58
- - Formatted streaming: assistant Markdown renders as formatted terminal rows while it streams, clamped to the viewport budget; clamped rows settle into the transcript verbatim, never lost.
59
- - Model steering: `steeringProfile: "compact"` lists nearby package-script names, asks for smaller working slices, reminds about validation earlier, and compacts history at 70% of the usual budget — completion evidence stays just as strict. `escalationModel` hands a stuck goal to one explicitly configured model, once, with the conversation and evidence intact.
60
- - Reasoning control: `/reasoning` (alias `/thinking`) keeps a per-model level for the session — `unset` sends no parameter, `reset` drops the override — and the status bar shows the effective level. Headless runs keep `--reasoning <level|unset>` as a run-scoped override.
61
- - Session model pinning: each session remembers its model selection on resume, continue, and fork; changing the global default never rewrites an active session. Headless `--resume` follows the saved selection unless `--model` is explicit.
62
- - `haze report [id] [--json]`: goal outcomes, tool/validation counts, context size, and evidence mismatches from session metadata — never prompts, commands, paths, or tool output.
63
- - Terminal modernization: Ink 8 with native bracketed paste, grapheme/cell-aware editing, one bounded shutdown path, suspended-terminal `$EDITOR`/`$PAGER` handoffs, and screen-reader-aware indicators. The implicit 30-minute per-turn cap is gone; `--timeout` remains the explicit opt-in goal budget.
5
+ Run it in your project and ask it to fix a bug, add a feature, or explain the code. haze can read and edit files, run commands, and check the results. Connect Ollama, LM Studio, OpenRouter, OpenAI, or another OpenAI-compatible endpoint, then pick the model you want to use.
64
6
 
65
- Previous releases:
66
-
67
- - `1.4.0`: per-run reasoning control (`--reasoning` for headless runs and a live status-bar indicator) on top of the 1.3.0 hardening pass — uniform secret/file boundaries, evidence that survives failed exits, durable session lifecycle fixes, credential-safe provider discovery, and honest output reduction.
68
- - `1.2.1`: edit-recovery instructs instead of restricting — the model is told which path to read and why, while the execution-time gate enforces the fresh read.
69
- - `1.2.0`: provider-usage context accounting, recoverable compact-and-retry overflow handling, model-written split-turn-aware compaction, `pipefail` validation truthfulness, and a configurable retry pool.
70
- - `1.1.1`: durable goal ledgers and crash-resume frontiers; headless `--until-done` relaunches with bounded notices and a no-progress guard; proportional task/validation completion gates; and smaller orchestration internals.
71
- - `1.1.0`: terminal theming with 14 built-in palettes and live `/themes` switching; hard secret-file protection across every file tool, including symlink, read-blessing, ignore-override, and grep-traversal defenses.
72
- - `1.0.0`: first stable release — the CLI flags, settings schema, `stream-json` event contract, session format, skill layout, and structured tool-result shape under the 1.x compatibility promise; a configurable model-retry pool; and four benchmark-driven reliability fixes (validated with the Harbor differential benchmark: 17/17 verifier tests, fewest input tokens of the reporting harnesses, zero stalls).
73
- - `0.11.0`: goal-level autonomy across physical-turn budgets (logical-goal supervisor, evidence-gated completion, `goal_*` stream events, cumulative goal envelope), runtime provenance and `haze doctor` (embedded build info, stale-build refusal, session build headers), model-aware context budgeting (per-preset limits, live discovery, 128K fallback, self-healing context overflow), headless `--timeout` with per-tool deadlines and abort-cause typing, performance work (batched ignore checks, LSP reuse, coalesced/vacuumed sessions, memoized estimates, incremental streaming, viewport-clamped live region), and model-written `/compact` summaries with a heuristic fallback.
74
- - `0.10.1`: OpenAI Subscription OAuth preset, SECURITY.md and the attended-use threat model, bounded completion recovery, compact colorized diffs, prompt-injection framing, hardened fetch/stdin/sessions, and a multi-page docs site.
7
+ [Quickstart](https://haze.build/quickstart.html) · [Documentation](https://haze.build/) · [Commands](https://haze.build/commands.html) · [Changelog](https://github.com/DenizOkcu/haze/blob/main/CHANGELOG.md)
75
8
 
76
- - `0.10.0`: image input, read-only path blessings, isolated fleet workers, managed background processes, session browsing and forking, model discovery, project skills, and rotating tips.
77
- - `0.9.0`: private home-state storage, authoritative turn status, collection-time byte bounds, hardened process teardown, stronger real-path and network boundaries, and ordered persistence.
78
- - `0.8.0`: AI SDK v7 runtime, live status with model, elapsed time, and tool labels; bounded bash output processing; lowercase `haze` naming.
79
- - `0.7.0`: headless `-p`, `--output json`, and `--output stream-json`; pinned-connection `fetch` safety; scoped instruction refresh; smaller sessions; startup context visibility.
80
- - `0.6.0`: AI SDK-native ToolLoopAgent core, optional LSP navigation, MCP support, unified configuration pickers, cleaner transcripts, `/context`, and startup update checks.
81
- - `0.5.0`: SSRF-protected public URL fetching, no provider environment variables, debug-only LLM logs, command-aware output reduction, CLI Markdown rendering, scoped nested context files, and automatic cleanup of completed tasks.
82
- - `0.4.0`: three-step skill wizard, language-agnostic skill intent extraction, model-managed tasks, a smaller command surface, and docs site additions.
83
- - `0.3.0`: redesigned docs site, a relocated task bar, and automatic task cleanup between sessions.
84
- - `0.2.0`: more reliable recovery from failed edits and validation, structured bash classification, parsed validation summaries, and multiline input with vertical cursor movement.
85
- - `0.1.0`: bundled ripgrep, subagent delegation, and inline diffs.
86
- - `0.0.3`: durable sessions, context compaction, and provider management.
87
- - `0.0.2`: Markdown skills, autocomplete, and `listFiles` pagination.
88
- - `0.0.1`: initial release.
9
+ [![Known Vulnerabilities](https://snyk.io/test/github/DenizOkcu/haze/badge.svg)](https://snyk.io/test/github/DenizOkcu/haze)
89
10
 
90
- haze works with OpenAI-compatible providers, including OpenRouter and local endpoints. Use `/provider` to choose or add one, then `/model` to select a model.
11
+ ## What haze does
91
12
 
92
- ```txt
93
- _
94
- | |
95
- | |__ __ _ _______
96
- | '_ \ / _` |_ / _ \
97
- | | | | (_| |/ / __/
98
- |_| |_|\__,_/___\___|
99
- ```
13
+ haze manages context, retries, and continuation during longer tasks. For implementation work, it tracks validation results and can continue when tasks or checks are incomplete. You can follow its tool calls and edits in the terminal.
100
14
 
101
- haze keeps guardrails light. The LLM can work from the terminal with access close to yours while staying scoped to the current project where possible. It is for developers who would rather supervise tool calls than work through a stack of permission dialogs. Keep an eye on what it does.
15
+ Sessions can be resumed later. For work you do often, save instructions as a Markdown skill. haze also supports MCP and LSP servers.
102
16
 
103
- ### Supervision model
17
+ In one [Harbor differential benchmark](https://github.com/DenizOkcu/haze/blob/main/benchmarks/harbor/results/20260816-224944-glm53-differential.html), haze 1.0.0 and three other harnesses each passed all 17 verifier tests using the same task, model, and backend. The report includes the runs and measurements. It covers one task and isn't a general ranking.
104
18
 
105
- There is **no sandbox and no permission layer**: the shell tool runs unsupervised in your login shell (its classification is informational only), and only the file tools are confined to the workspace. Claude Code gates tools behind permissions, plan mode, and hooks; Codex CLI runs in an OS sandbox with approval modes; haze, like pi, replaces those mechanisms with your supervision. That trade-off is deliberate and keeps the agent fast and transparent, but it also means haze is **not an unattended automation runtime** — run it where you would run a shell session yourself. If a CI job runs haze headless, treat the job the way you would treat any script with shell access. SECURITY.md documents the attended-use threat model in full.
19
+ > **Supervise haze as you would a shell session.** haze has no sandbox or command approval layer. Shell commands run with your user permissions and can reach outside the project. File tools are scoped to the workspace. See the [safety model](#safety-model) and [SECURITY.md](https://github.com/DenizOkcu/haze/blob/main/SECURITY.md).
106
20
 
107
21
  ## Getting started
108
22
 
109
- haze runs on macOS and Linux with Node.js 22 or newer. Windows is not yet a supported platform (the toolchain assumes a POSIX shell); it is on the 1.x roadmap.
23
+ haze requires Node.js 22.13 or newer and runs on macOS and Linux. Native Windows support is on the 1.x roadmap; the current toolchain assumes a POSIX shell.
110
24
 
111
25
  Install haze:
112
26
 
@@ -127,6 +41,16 @@ On first run, create or choose a provider, then choose your first model:
127
41
  /model
128
42
  ```
129
43
 
44
+ To use a local model, start Ollama or LM Studio and load a model. Choose the matching preset in `/provider`, then discover or enter the model in `/model`. You do not need an API key for a local server. For a hosted model, choose a provider preset and follow the sign-in or API-key prompts. The [quickstart](https://haze.build/quickstart.html) has setup examples.
45
+
46
+ Then try a task in your project:
47
+
48
+ ```txt
49
+ find a failing test, fix the cause, and run the relevant tests
50
+ ```
51
+
52
+ Review the tool calls, changes, and test results as haze works. Results depend on the model, task, and available tools.
53
+
130
54
  `/provider` sets up any OpenAI-compatible endpoint, such as OpenRouter, OpenAI, LM Studio, Ollama, or a proxy. haze asks for a provider name, base URL, optional API key, and model names. The **OpenAI API Key** preset uses platform API billing. The **OpenAI Subscription** preset instead opens a ChatGPT browser login and uses the Codex Responses endpoint; no pasted session token is required. Its sign-in callback listens on a fixed localhost port (1455) required by the registered client, so a lingering process holding that port blocks sign-in until it exits; retry after freeing the port.
131
55
 
132
56
  Cloud presets include a small set of current models; account discovery can expose more. The Ollama, LM Studio, llama.cpp, MLX Server, and vLLM presets do not suggest model names: use the models discovered from your own server, or enter them manually. Custom providers remain available. Preset changes do not modify previously saved providers or their models.
@@ -533,7 +457,7 @@ Shell classification is informational. haze does not ask for confirmation before
533
457
 
534
458
  With `--debug`, haze writes full request and message payloads to `~/.haze/logs/`. The files use private `0600` permissions on POSIX, but they can contain secrets and file contents. Do not share debug logs without reviewing and redacting them.
535
459
 
536
- See [SECURITY.md](SECURITY.md) for supported versions and private vulnerability reporting.
460
+ See [SECURITY.md](https://github.com/DenizOkcu/haze/blob/main/SECURITY.md) for supported versions and private vulnerability reporting.
537
461
 
538
462
  ## Local development
539
463
 
@@ -596,6 +520,98 @@ git push origin main --tags
596
520
  npm publish --access public --provenance
597
521
  ```
598
522
 
523
+ <details>
524
+ <summary>Previous release highlights</summary>
525
+
526
+ ## What's new in 1.7.12
527
+
528
+ A deterministic workspace code graph (tree-sitter WASM) powers the new `graph*` tools and `/graph` command, with bounded reverse-dependency advisories after file edits; LSP/graph tools are now gated on request intent to cut context, plus several reliability fixes.
529
+
530
+ ### Changes in 1.7.11
531
+
532
+ Fleet size now follows the deployment manifest's worker allowance, and long turns show live generation speed and fleet depth in the busy bar.
533
+
534
+ ### Changes in 1.7.10
535
+
536
+ This patch rebuilds the npm package with matching version and build metadata.
537
+
538
+ ### Changes in 1.7.9
539
+
540
+ This release improves model deployment discovery for configured workers.
541
+
542
+ ### Changes in 1.7.8
543
+
544
+ This release improves compatibility with updated model deployments and preserves explicitly configured deployment trust.
545
+
546
+ ### Changes in 1.7.5
547
+
548
+ Improved recovery from malformed tool calls and more resilient retry handling for temporary provider errors.
549
+
550
+ ### Changes in 1.7.2
551
+
552
+ This patch updates the AI SDK and development tooling, and moves the public website and documentation to maintainable Astro components.
553
+
554
+ ### Changes in 1.7.1
555
+
556
+ This patch updates a provider preset's default endpoint.
557
+
558
+ ### Changes in 1.7.0
559
+
560
+ haze 1.7.0 hardens the untrusted-content boundary: MCP tool results of every size now arrive inside escaped untrusted envelopes, one variant-tolerant escaper guards all untrusted container closers (including compaction summaries), project instructions discovered mid-turn no longer ride the engine control channel, terminal control sequences (including OSC 52 clipboard writes) are stripped from the Markdown transcript path, and the protected secret-file list extends to database/CLI credential stores, browser profiles, and `~/.haze/settings.json`/`auth.json` — with the shell-side prompt rule derived from the same list. It also fixes validation-evidence edge cases around trailing stderr redirects and repeated tool-call redirects.
561
+
562
+ ### Highlights from 1.6.0
563
+
564
+ haze 1.6.0 stops mistaking patient local models for dead streams:
565
+
566
+ - Idle-stream stall windows are now class-aware: hosted endpoints keep the 5-minute window, while loopback/local inference servers (LM Studio, Ollama) get 30 minutes — their prompt ingestion and hidden reasoning emit no stream output at all, so the old fixed window aborted healthy models mid-work and burned the retry pool re-doing prefill.
567
+ - The new `streamIdleTimeoutMs` setting overrides the window explicitly (integer milliseconds, 1s–24h). The `timeout`/`retry` events and the stall system messages report the effective window.
568
+
569
+ ### Highlights from 1.5.1
570
+
571
+ haze 1.5.1 improves terminal resizing and reasoning-effort compatibility:
572
+
573
+ - On terminal width changes, haze replays the full settled transcript, including formatted Markdown, at the new width. The input draft and active turn stay mounted. Terminal scrollback is preserved, so older transcript copies can remain there after a replay.
574
+ - Unknown local and hosted endpoints omit reasoning effort by default. Providers can configure their supported reasoning levels explicitly.
575
+ - Unsupported `none`/`minimal` choices for GPT-6+ model names are omitted rather than promoted to a different effort; the provider default applies.
576
+
577
+ ### Highlights from 1.5.0
578
+
579
+ haze 1.5.0 modernizes the terminal experience on Ink 8 — formatted streamed Markdown, native spinners and busy indicators, `$EDITOR`/`$PAGER` handoffs, and IME-aware cursor placement — and adds model steering for compact models, per-model session-scoped `/reasoning` (with the `/thinking` alias), pinned session model selections, and a metadata-only `haze report`.
580
+
581
+ - Formatted streaming: assistant Markdown renders as formatted terminal rows while it streams, clamped to the viewport budget; clamped rows settle into the transcript verbatim, never lost.
582
+ - Model steering: `steeringProfile: "compact"` lists nearby package-script names, asks for smaller working slices, reminds about validation earlier, and compacts history at 70% of the usual budget — completion evidence stays just as strict. `escalationModel` hands a stuck goal to one explicitly configured model, once, with the conversation and evidence intact.
583
+ - Reasoning control: `/reasoning` (alias `/thinking`) keeps a per-model level for the session — `unset` sends no parameter, `reset` drops the override — and the status bar shows the effective level. Headless runs keep `--reasoning <level|unset>` as a run-scoped override.
584
+ - Session model pinning: each session remembers its model selection on resume, continue, and fork; changing the global default never rewrites an active session. Headless `--resume` follows the saved selection unless `--model` is explicit.
585
+ - `haze report [id] [--json]`: goal outcomes, tool/validation counts, context size, and evidence mismatches from session metadata — never prompts, commands, paths, or tool output.
586
+ - Terminal modernization: Ink 8 with native bracketed paste, grapheme/cell-aware editing, one bounded shutdown path, suspended-terminal `$EDITOR`/`$PAGER` handoffs, and screen-reader-aware indicators. The implicit 30-minute per-turn cap is gone; `--timeout` remains the explicit opt-in goal budget.
587
+
588
+ Previous releases:
589
+
590
+ - `1.4.0`: per-run reasoning control (`--reasoning` for headless runs and a live status-bar indicator) on top of the 1.3.0 hardening pass — uniform secret/file boundaries, evidence that survives failed exits, durable session lifecycle fixes, credential-safe provider discovery, and honest output reduction.
591
+ - `1.2.1`: edit-recovery instructs instead of restricting — the model is told which path to read and why, while the execution-time gate enforces the fresh read.
592
+ - `1.2.0`: provider-usage context accounting, recoverable compact-and-retry overflow handling, model-written split-turn-aware compaction, `pipefail` validation truthfulness, and a configurable retry pool.
593
+ - `1.1.1`: durable goal ledgers and crash-resume frontiers; headless `--until-done` relaunches with bounded notices and a no-progress guard; proportional task/validation completion gates; and smaller orchestration internals.
594
+ - `1.1.0`: terminal theming with 14 built-in palettes and live `/themes` switching; hard secret-file protection across every file tool, including symlink, read-blessing, ignore-override, and grep-traversal defenses.
595
+ - `1.0.0`: first stable release — the CLI flags, settings schema, `stream-json` event contract, session format, skill layout, and structured tool-result shape under the 1.x compatibility promise; a configurable model-retry pool; and four benchmark-driven reliability fixes (validated with the Harbor differential benchmark: 17/17 verifier tests, fewest input tokens of the reporting harnesses, zero stalls).
596
+ - `0.11.0`: goal-level autonomy across physical-turn budgets (logical-goal supervisor, evidence-gated completion, `goal_*` stream events, cumulative goal envelope), runtime provenance and `haze doctor` (embedded build info, stale-build refusal, session build headers), model-aware context budgeting (per-preset limits, live discovery, 128K fallback, self-healing context overflow), headless `--timeout` with per-tool deadlines and abort-cause typing, performance work (batched ignore checks, LSP reuse, coalesced/vacuumed sessions, memoized estimates, incremental streaming, viewport-clamped live region), and model-written `/compact` summaries with a heuristic fallback.
597
+ - `0.10.1`: OpenAI Subscription OAuth preset, SECURITY.md and the attended-use threat model, bounded completion recovery, compact colorized diffs, prompt-injection framing, hardened fetch/stdin/sessions, and a multi-page docs site.
598
+
599
+ - `0.10.0`: image input, read-only path blessings, isolated fleet workers, managed background processes, session browsing and forking, model discovery, project skills, and rotating tips.
600
+ - `0.9.0`: private home-state storage, authoritative turn status, collection-time byte bounds, hardened process teardown, stronger real-path and network boundaries, and ordered persistence.
601
+ - `0.8.0`: AI SDK v7 runtime, live status with model, elapsed time, and tool labels; bounded bash output processing; lowercase `haze` naming.
602
+ - `0.7.0`: headless `-p`, `--output json`, and `--output stream-json`; pinned-connection `fetch` safety; scoped instruction refresh; smaller sessions; startup context visibility.
603
+ - `0.6.0`: AI SDK-native ToolLoopAgent core, optional LSP navigation, MCP support, unified configuration pickers, cleaner transcripts, `/context`, and startup update checks.
604
+ - `0.5.0`: SSRF-protected public URL fetching, no provider environment variables, debug-only LLM logs, command-aware output reduction, CLI Markdown rendering, scoped nested context files, and automatic cleanup of completed tasks.
605
+ - `0.4.0`: three-step skill wizard, language-agnostic skill intent extraction, model-managed tasks, a smaller command surface, and docs site additions.
606
+ - `0.3.0`: redesigned docs site, a relocated task bar, and automatic task cleanup between sessions.
607
+ - `0.2.0`: more reliable recovery from failed edits and validation, structured bash classification, parsed validation summaries, and multiline input with vertical cursor movement.
608
+ - `0.1.0`: bundled ripgrep, subagent delegation, and inline diffs.
609
+ - `0.0.3`: durable sessions, context compaction, and provider management.
610
+ - `0.0.2`: Markdown skills, autocomplete, and `listFiles` pagination.
611
+ - `0.0.1`: initial release.
612
+
613
+ </details>
614
+
599
615
  ## License
600
616
 
601
617
  MIT
@@ -0,0 +1,21 @@
1
+ # Vendored grammar assets
2
+
3
+ - `web-tree-sitter.wasm` — core runtime from the npm package `web-tree-sitter` (MIT).
4
+ - `tree-sitter-typescript.wasm`, `tree-sitter-tsx.wasm`, `tree-sitter-javascript.wasm`
5
+ — prebuilt grammars from the npm package `tree-sitter-wasms` (Unlicense);
6
+ the underlying grammars are from the tree-sitter org projects (MIT).
7
+
8
+ Refresh by reinstalling `tree-sitter-wasms` and `web-tree-sitter` and copying
9
+ the files over. The runtime (`src/core/graph/extract.ts`) pairs with
10
+ `web-tree-sitter@0.27.x`. Grammar WASMs must be rebuilt against 0.27.x:
11
+
12
+ 1. Install the wasm-pack toolchain (`cargo install wasm-pack`).
13
+ 2. For each grammar repo (tree-sitter-javascript, tree-sitter-typescript,
14
+ tree-sitter-tsx) run: `cargo xtask build-wasm --lib --release` from the
15
+ monorepo root (or `cargo xtask build-wasm` in a single-grammar checkout).
16
+ 3. Copy the resulting `.wasm` files from `target/wasm32-wasip1/release/` into
17
+ `assets/graph-grammars/`.
18
+
19
+ The 0.23.x runtime ABI is incompatible with 0.27.x — previously vendored
20
+ grammar builds cannot load on the newer runtime.
21
+