hablas-ai 2.9.0-beta.5 → 2.9.0-beta.8
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 +58 -0
- package/dist/binaries/checksums.json +3 -3
- package/dist/index.js +273 -246
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.9.0-beta.8] — 2026-08-22 · Config honesty + local safety
|
|
4
|
+
|
|
5
|
+
### Security
|
|
6
|
+
- Removed the baked NVIDIA key from the setup wizard. Keys come from `HABLAS_NVIDIA_KEY` / `NVIDIA_API_KEY` / `HABLAS_API_KEY` or a paste at setup time.
|
|
7
|
+
- File tools reject paths that escape the project root (`/etc/passwd`, `../../../…`).
|
|
8
|
+
- `run_command` and `execute_code` are `dangerous` (skipped in `--auto`).
|
|
9
|
+
- `execute_code` no longer inherits the process environment (so it cannot print your API keys) and no longer `eval`s TypeScript.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `src/utils/paths.ts` + test
|
|
13
|
+
- Env-first NVIDIA setup; `HABLAS_MODEL` / `HABLAS_API_URL` honored in the wizard
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## [2.9.0-beta.6] — 2026-08-18 · Setup Wizard Fix
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- **Restored instant sub-options** — Option 1 (Hablas Integrated Engine) now shows two choices:
|
|
21
|
+
- a) NVIDIA NIM (recommended — fast & powerful, pre-configured key)
|
|
22
|
+
- b) Mistral AI (free tier, pre-configured or user key)
|
|
23
|
+
- **Config loader** — `mistral` was silently rejected as a valid provider in env vars and CLI flags; now accepted
|
|
24
|
+
- **CLI help text** — `--provider` now shows `ollama | custom | nvidia | mistral`
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
- Mistral instant falls back to asking user for key if `HABLAS_MISTRAL_KEY` env var is not set
|
|
28
|
+
- Cleaned up prompt text for sub-option selection (a-i range)
|
|
29
|
+
|
|
30
|
+
|
|
3
31
|
## [2.6.0-beta.2] — 2026-08-11 · Dual-Channel Release Infrastructure
|
|
4
32
|
|
|
5
33
|
### Added
|
|
@@ -284,3 +312,33 @@ This release completes backlog items:
|
|
|
284
312
|
- Graceful shutdown on exit (SIGINT handler)
|
|
285
313
|
- All LSP tools are read-only (`safe` safety level)
|
|
286
314
|
- 0 tsc errors, build: 739KB
|
|
315
|
+
|
|
316
|
+
## [v2.9.0-beta.7] — Auto-Compact Engine
|
|
317
|
+
|
|
318
|
+
### Added
|
|
319
|
+
- **Auto-Compactor**: intelligent conversation summarization when context window is exceeded
|
|
320
|
+
- Tracks actual API token usage (not just estimates) from Ollama and OpenAI-compatible providers
|
|
321
|
+
- Triggers at 85% of context window (configurable via `compactThreshold`)
|
|
322
|
+
- Sends full conversation to LLM with a structured summarization prompt
|
|
323
|
+
- Replaces conversation history with the summary, preserving system prompt
|
|
324
|
+
- Progress notifications via `onNotice` IO callback
|
|
325
|
+
- **Token usage tracking**: `OllamaChatResponse` now includes optional `usage` field
|
|
326
|
+
- Ollama: captures `prompt_eval_count` + `eval_count`
|
|
327
|
+
- OpenAI-compatible (NVIDIA/Mistral): captures `usage.prompt_tokens` + `usage.completion_tokens`
|
|
328
|
+
- Streaming mode: estimates from content length
|
|
329
|
+
- **Config options**: `autoCompact`, `compactThreshold`, `contextWindow` in `HablasConfig`
|
|
330
|
+
- **`/compact` slash command**: manual control
|
|
331
|
+
- `/compact now` — trigger compaction immediately
|
|
332
|
+
- `/compact status` — show current token usage and threshold
|
|
333
|
+
- `/compact on` / `/compact off` — enable/disable
|
|
334
|
+
- `/compact threshold <0.1-0.99>` — adjust trigger threshold
|
|
335
|
+
|
|
336
|
+
### Changed
|
|
337
|
+
- `OllamaChatResponse` interface extended with optional `usage` field
|
|
338
|
+
- `SessionManager.replaceWithSummary()` — replaces all non-system messages with a summary
|
|
339
|
+
- Agentic engine checks for compaction after each tool iteration
|
|
340
|
+
|
|
341
|
+
### Design Decisions
|
|
342
|
+
- Threshold at 85% (vs OpenCode's 95%) — Hablas has tool-call overhead that OpenCode doesn't account for
|
|
343
|
+
- Same model for summarization (vs OpenCode's separate summarizer provider) — simpler, works offline
|
|
344
|
+
- In-memory session replacement (vs OpenCode's SummaryMessageID persistence) — Hablas sessions are ephemeral
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"hablas-win-x64.exe": "
|
|
3
|
-
"hablas-linux-x64": "
|
|
4
|
-
"hablas-macos-x64": "
|
|
2
|
+
"hablas-win-x64.exe": "2081912e7a26c0f10cdc0db5b2a95d213838eac60ffc521b5b178cdfaea1194a",
|
|
3
|
+
"hablas-linux-x64": "1873a45a707419f4a7009ecd4d580d2eff59b643da78c493277b529037e60966",
|
|
4
|
+
"hablas-macos-x64": "a440a48a0260346e6df982bb98039eb79826bd43037e1c2421a05d9ad2017d03"
|
|
5
5
|
}
|