@denizokcu/haze 0.5.0 → 0.6.0
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/CHANGELOG.md +18 -2
- package/README.md +51 -21
- package/dist/cli/commands/chat.d.ts +1 -1
- package/dist/cli/commands/chat.js +686 -61
- package/dist/cli/commands/commands.d.ts +2 -1
- package/dist/cli/commands/commands.js +62 -101
- package/dist/cli/commands/formatters.d.ts +27 -0
- package/dist/cli/commands/formatters.js +137 -0
- package/dist/cli/commands/streaming.d.ts +10 -13
- package/dist/cli/commands/streaming.js +319 -716
- package/dist/config/lspSettings.d.ts +16 -0
- package/dist/config/lspSettings.js +98 -0
- package/dist/config/mcpSettings.d.ts +24 -0
- package/dist/config/mcpSettings.js +100 -0
- package/dist/config/settings.d.ts +34 -0
- package/dist/config/skillSettings.d.ts +15 -0
- package/dist/config/skillSettings.js +31 -0
- package/dist/config/updateCheck.d.ts +44 -0
- package/dist/config/updateCheck.js +83 -0
- package/dist/llm/lsp.d.ts +64 -0
- package/dist/llm/lsp.js +241 -0
- package/dist/llm/lspTools.d.ts +122 -0
- package/dist/llm/lspTools.js +115 -0
- package/dist/llm/mcp.d.ts +19 -0
- package/dist/llm/mcp.js +64 -0
- package/dist/llm/requestContext.d.ts +28 -0
- package/dist/llm/requestContext.js +56 -0
- package/dist/llm/systemPrompt.d.ts +4 -1
- package/dist/llm/systemPrompt.js +8 -2
- package/dist/skills/builder/SkillBuilder.js +23 -44
- package/dist/ui/components/TextInput.d.ts +1 -1
- package/dist/utils/version.d.ts +20 -0
- package/dist/utils/version.js +72 -0
- package/package.json +2 -1
- package/dist/cli/commands/skills.d.ts +0 -4
- package/dist/cli/commands/skills.js +0 -38
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.6.0 - 2026-06-21
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **MCP server support.** Haze can now connect to [Model Context Protocol](https://modelcontextprotocol.io) servers and expose their tools to the agent alongside the built-in toolset. `/mcp` opens an interactive picker (like `/provider`) to add a server from a preset (Context7 ships built-in for up-to-date library docs) or custom `http`/`sse`/`stdio` details, then enable/disable/remove it or set a masked API key. Servers persist in `~/.haze/settings.json` under `mcpServers`. MCP clients open per agent turn and close when it ends; a failing server is isolated and MCP tools never shadow built-ins.
|
|
8
|
+
- Added optional configurable stdio LSP support through `/lsp`, with TypeScript, Rust, Python, Go, and PHP presets.
|
|
9
|
+
- Added read-only semantic navigation tools (`lspWorkspaceSymbols`, `lspSymbols`, `lspDefinition`, `lspReferences`) that are exposed to the model only when an enabled LSP command is installed on `PATH`.
|
|
10
|
+
- Added `/context`, a token breakdown of the current request (system prompt, project context, tools including MCP, and chat messages).
|
|
11
|
+
- Added `/settings open` to open `~/.haze/settings.json` with the OS default app.
|
|
12
|
+
- Added a non-blocking startup update check (throttled to once per 24 h via `~/.haze/updateCheck.json`) that surfaces a newer published version when one exists; every failure mode resolves silently.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Switched the main agent turn to the AI SDK v6 `ToolLoopAgent` abstraction while preserving compact terminal tool/text rendering and key loop guardrails.
|
|
17
|
+
- Improved transcript segmentation so assistant text and tool blocks alternate cleanly during multi-step turns.
|
|
18
|
+
- Added LSP-aware prompt guidance only when LSP tools are actually available; otherwise Haze naturally falls back to `grep`, `listFiles`, and `readFile`.
|
|
19
|
+
- Made `/lsp` and `/mcp` interactive pickers matching the `/provider` flow (autocomplete lists, preset pickers, masked API-key entry), replacing the previous `/lsp`/`/mcp` subcommand syntax.
|
|
20
|
+
- Unified skill management into a single `/skills` interactive picker that mirrors `/provider`, `/lsp`, and `/mcp`; removed the legacy `/create-skill`, `/skill-info`, `/validate-skill`, and `/remove-skill` commands.
|
|
21
|
+
- Updated README, docs site, and project agent guidance for LSP setup and the 0.6.0 release.
|
|
6
22
|
|
|
7
23
|
## 0.5.0 - 2026-06-19
|
|
8
24
|
|
package/README.md
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
A minimal LLM harness for your terminal.
|
|
4
4
|
|
|
5
|
-
## What's new in 0.
|
|
5
|
+
## What's new in 0.6.0
|
|
6
6
|
|
|
7
|
-
Haze 0.
|
|
7
|
+
Haze 0.6.0 adds an AI SDK-native ToolLoopAgent core, optional LSP semantic navigation, MCP server support, and a unified config-picker UX.
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **Cleaner
|
|
14
|
-
- **
|
|
15
|
-
- **
|
|
16
|
-
- **Less stale state.** Completed task lists clear automatically on the next user turn, and `/init` now guides `AGENTS.md` toward the context-file budget.
|
|
9
|
+
- **MCP servers.** Connect [Model Context Protocol](https://modelcontextprotocol.io) servers with `/mcp` and expose their tools alongside the built-ins. A Context7 preset ships built-in for up-to-date library docs; custom `http`/`sse`/`stdio` servers are supported too. Clients open per turn and close when it ends, a failing server is isolated, and MCP tools never shadow built-ins.
|
|
10
|
+
- **Optional LSP navigation.** Configure stdio language servers with `/lsp` (TypeScript, Rust, Python, Go, and PHP presets). Read-only `lspWorkspaceSymbols`, `lspSymbols`, `lspDefinition`, and `lspReferences` tools are exposed only when an enabled server command is on `PATH`; otherwise Haze falls back to `grep`, `listFiles`, and `readFile`.
|
|
11
|
+
- **Unified config pickers.** `/provider`, `/lsp`, `/mcp`, and `/skills` are now interactive pickers with autocomplete, presets, and masked API-key entry, replacing the old subcommand syntax.
|
|
12
|
+
- **ToolLoopAgent core.** The main turn runs on the AI SDK v6 `ToolLoopAgent` while preserving compact terminal tool/text rendering and the loop guardrails (idle timeout, tool-loop detection, edit recovery, context-overflow auto-compact).
|
|
13
|
+
- **Cleaner transcripts.** Assistant text and tool blocks alternate cleanly during multi-step turns.
|
|
14
|
+
- **Context breakdown.** `/context` shows estimated system-prompt, project-context, tool (including MCP), and message tokens for the current request.
|
|
15
|
+
- **Startup update check.** Haze quietly surfaces a newer published version when one exists.
|
|
17
16
|
|
|
18
17
|
Previous releases:
|
|
19
18
|
|
|
19
|
+
- **0.5.0** — `fetch` tool for public URLs (Markdown/JSON/text, SSRF-protected), removed all provider env vars (config via `/provider`/`/model`/`/settings`), debug-only LLM logs, command-aware output reduction, Markdown rendering in the CLI, scoped nested context files, and auto-clearing completed tasks.
|
|
20
20
|
- **0.4.0** — 3-step skill wizard, language-agnostic skill intent extraction, model-managed tasks, leaner command surface, docs site additions.
|
|
21
21
|
- **0.3.0** — Docs site redesign, task bar moves above the activity spinner, tasks auto-clear between sessions.
|
|
22
22
|
- **0.2.0** — Reliability release: stronger continuation after failed edits and validation, structured bash classification, parsed validation summaries, multi-line chat input with vertical cursor movement.
|
|
@@ -68,9 +68,22 @@ On first run, create or choose a provider, then choose your first model:
|
|
|
68
68
|
/model local:llama3.1
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
### MCP servers
|
|
72
|
+
|
|
73
|
+
Use `/mcp` to connect [Model Context Protocol](https://modelcontextprotocol.io) servers and give the agent extra tools. It opens an interactive picker (like `/provider`): choose a server to enable, disable, remove, or set an API key for it, or choose **add server** to add one from a preset (Context7 ships built-in for up-to-date library docs) or enter custom details.
|
|
74
|
+
|
|
75
|
+
```txt
|
|
76
|
+
/mcp # opens the server picker
|
|
77
|
+
# add server -> context7 (preset)
|
|
78
|
+
# add server -> custom -> name -> http -> url (custom remote)
|
|
79
|
+
# add server -> custom -> name -> stdio -> cmd (custom local)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
API keys are entered in a masked prompt and sent as `Authorization: Bearer <value>`. Servers persist in `~/.haze/settings.json` under `mcpServers` and support `http`, `sse`, and `stdio` transports. Their tools load at the start of each agent turn and the connections close when the turn ends. An unreachable server is isolated and never blocks the agent, and MCP tools never shadow built-in tools.
|
|
83
|
+
|
|
71
84
|
Saved settings live in `~/.haze/settings.json`. Providers can include API keys, base URLs, and model lists; local OpenAI-compatible providers can be configured without a key. Use `/provider`, `/model`, and `/settings` to configure everything from inside Haze — there are no environment variables to set.
|
|
72
85
|
|
|
73
|
-
Haze is intentionally minimal: chat, local tools, context files, sessions, and Markdown skills. Any workflow beyond the core is meant to be grown with the LLM through `/
|
|
86
|
+
Haze is intentionally minimal: chat, local tools, context files, sessions, and Markdown skills. Any workflow beyond the core is meant to be grown with the LLM through `/skills` (an interactive picker: generate a custom skill from a description, then enable/disable, validate, or remove it). If you want reviews, release prep, deploy checks, debugging rituals, or your team's strange checklist, ask Haze to create a skill and then refine the Markdown.
|
|
74
87
|
|
|
75
88
|
## Get productive immediately
|
|
76
89
|
|
|
@@ -88,7 +101,7 @@ Useful starters:
|
|
|
88
101
|
|
|
89
102
|
```txt
|
|
90
103
|
/init
|
|
91
|
-
/
|
|
104
|
+
/skills # then add skill: name + a description like:
|
|
92
105
|
# "review my current branch against main like a senior engineer"
|
|
93
106
|
# "prepare clean git commits from my uncommitted changes"
|
|
94
107
|
# "implement small features with tests and a concise summary"
|
|
@@ -98,14 +111,15 @@ Useful starters:
|
|
|
98
111
|
|
|
99
112
|
## Skills: your workflows, grown while working
|
|
100
113
|
|
|
101
|
-
Skills are Markdown workflows that Haze creates with `/
|
|
114
|
+
Skills are Markdown workflows that Haze creates with `/skills` and stores in `~/.haze/skills` so you can inspect or refine them later.
|
|
102
115
|
|
|
103
116
|
If you do something for the second time, build a skill for it:
|
|
104
117
|
|
|
105
118
|
```txt
|
|
106
|
-
/
|
|
107
|
-
#
|
|
108
|
-
#
|
|
119
|
+
/skills
|
|
120
|
+
# Picker → add skill
|
|
121
|
+
# Name: branch-diff-review
|
|
122
|
+
# Description: review the diff between my current branch and main, focusing on bugs, tests, DRY and KISS
|
|
109
123
|
```
|
|
110
124
|
|
|
111
125
|
Haze uses the model to create the skill file for you:
|
|
@@ -165,8 +179,12 @@ This is the trick: do normal work, notice friction, create a skill, keep going.
|
|
|
165
179
|
/model <name-or-provider:name>
|
|
166
180
|
/model list
|
|
167
181
|
/settings
|
|
182
|
+
/settings open
|
|
168
183
|
/logs [id]
|
|
184
|
+
/lsp
|
|
185
|
+
/mcp
|
|
169
186
|
/init
|
|
187
|
+
/context
|
|
170
188
|
/session
|
|
171
189
|
/resume
|
|
172
190
|
/new
|
|
@@ -175,13 +193,9 @@ This is the trick: do normal work, notice friction, create a skill, keep going.
|
|
|
175
193
|
/exit
|
|
176
194
|
|
|
177
195
|
/skills
|
|
178
|
-
/create-skill
|
|
179
|
-
/skill-info <name>
|
|
180
|
-
/validate-skill <name-or-dir>
|
|
181
|
-
/remove-skill <name> --yes
|
|
182
196
|
```
|
|
183
197
|
|
|
184
|
-
|
|
198
|
+
Skill management is a single interactive picker, mirroring `/provider`, `/lsp`, and `/mcp`: generate a custom skill from a description, then show info, enable/disable, validate, or remove. Disabled skills drop out of the model catalog and the `/<name>` command list until re-enabled.
|
|
185
199
|
|
|
186
200
|
CLI flags:
|
|
187
201
|
|
|
@@ -208,9 +222,25 @@ Haze exposes a deliberately small toolset:
|
|
|
208
222
|
- `fetch` — read a public `http(s)` URL and return readable content (Markdown for docs, pretty JSON, or text). Private/loopback/metadata hosts and non-`http(s)` schemes are blocked; output is bounded and retrievable via `readToolOutput`.
|
|
209
223
|
- `writeTasks` — replace the task list at meaningful phase changes; completed lists auto-clear on the next user turn.
|
|
210
224
|
- `skill` — load one installed Markdown workflow or one of its references.
|
|
225
|
+
- `lspWorkspaceSymbols`, `lspSymbols`, `lspDefinition`, `lspReferences` — optional read-only semantic navigation through user-configured language servers. These tools are exposed only when an enabled LSP command is installed.
|
|
211
226
|
|
|
212
227
|
Tool calls are grouped in the transcript so you can see what happened without reading a novella. Successful targeted file edits show a compact diff with colored additions/removals and one context line around the change when the diff is small; larger diffs are summarized with a pointer to `git diff`. File-tool failures return structured reason codes and recovery hints. Large bash/search/fetch output is kept behind an in-memory handle so later model calls carry only reduced validation, git, search, diff, JSON, log, or head/tail summaries.
|
|
213
228
|
|
|
229
|
+
### Optional LSP navigation
|
|
230
|
+
|
|
231
|
+
Haze can use user-configured stdio Language Server Protocol servers for semantic code navigation. Configure them with `/lsp` (an interactive picker, like `/provider` and `/mcp`): add a preset or a custom command, then enable/disable/remove servers. Presets currently include TypeScript, Rust, Python, Go, and PHP. Haze does not install language servers for you, and it hides LSP tools from the model unless an enabled server command exists on `PATH`, so projects without LSP still use `grep`, `listFiles`, and `readFile` normally.
|
|
232
|
+
|
|
233
|
+
Example TypeScript setup:
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
npm install -g typescript typescript-language-server
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
```txt
|
|
240
|
+
/lsp
|
|
241
|
+
# -> add server -> typescript
|
|
242
|
+
```
|
|
243
|
+
|
|
214
244
|
## Subagents
|
|
215
245
|
|
|
216
246
|
Subagents are a delegation feature, not another file operation. When a request clearly splits into independent parallel work, Haze can spin up focused agents with fresh context, let them inspect or act with their own capped tool loop, then fold their concise summaries back into the main conversation.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Mode = 'chat' | 'provider' | 'providerAction' | 'model' | 'providerAddPreset' | 'providerAddName' | 'providerAddUrl' | 'providerAddKey' | 'providerAddModels' | 'providerAppendModels' | 'providerSetKey' | 'providerRemoveModels' | 'providerConfirmRemove' | '
|
|
1
|
+
export type Mode = 'chat' | 'provider' | 'providerAction' | 'model' | 'providerAddPreset' | 'providerAddName' | 'providerAddUrl' | 'providerAddKey' | 'providerAddModels' | 'providerAppendModels' | 'providerSetKey' | 'providerRemoveModels' | 'providerConfirmRemove' | 'skills' | 'skillsAction' | 'skillsAddName' | 'skillsAddDescription' | 'skillsConfirmRemove' | 'lsp' | 'lspAction' | 'lspAddPreset' | 'lspAddName' | 'lspAddCommand' | 'lspConfirmRemove' | 'mcp' | 'mcpAction' | 'mcpAddPreset' | 'mcpAddName' | 'mcpAddTransport' | 'mcpAddUrl' | 'mcpAddCommand' | 'mcpAddKey' | 'mcpSetKey' | 'mcpConfirmRemove';
|
|
2
2
|
interface ChatOptions {
|
|
3
3
|
debug?: boolean;
|
|
4
4
|
version?: string;
|