hablas-ai 1.3.22 → 2.0.1

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 (4) hide show
  1. package/CHANGELOG.md +31 -159
  2. package/README.md +142 -286
  3. package/dist/index.js +173 -1222
  4. package/package.json +6 -11
package/CHANGELOG.md CHANGED
@@ -1,169 +1,41 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to **Hablas CLI** will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ---
9
-
10
- ## [1.3.22] — 2026-06-12 · Direct-Path and Hidden-Team Hotfix
11
-
12
- ### Fixed
13
- - Casual and simple direct-path turns now skip tool definitions when no tools are required, reducing provider-side instability on trivial inputs like `hi`.
14
- - Hid the startup team roster by default in the stable line unless explicit debug theatre is enabled.
15
- - Stopped unified runtime routing payloads from printing in normal operation.
16
- - Kept internal team coordination behind the scenes by default while preserving it for serious engineering turns.
17
-
18
- ### Notes
19
- - If needed for debugging or demos, internal theatre can still be exposed explicitly through environment flags.
20
-
21
- ## [1.3.21] — 2026-06-12 · Leader-Only UX Hotfix
22
-
23
- ### Fixed
24
- - Stopped unified runtime debug payloads from appearing in normal user output.
25
- - Hid internal team theatre by default in the stable line.
26
- - Preserved internal coordinated execution while keeping **Hablas** as the only visible user-facing speaker.
27
- - Replaced visible delegation noise with cleaner coordination status during team execution.
28
- - Tightened Hablas tone to avoid emojis, hype, and filler in normal responses.
29
-
30
- ### Notes
31
- - Internal team theatre is now debug-only and can be re-enabled explicitly for inspection.
32
- - This hotfix targets the reported regression where continuity/team routing leaked internal execution UX to the user.
33
-
34
- ## [1.3.20] — 2026-06-12 · Stable Runtime Recovery
3
+ ## [2.0.1] 2026-06-12 · Setup Flow Restore
35
4
 
36
5
  ### Changed
37
- - Removed public mode-era commands from the stable CLI surface:
38
- - `hablas build`
39
- - `hablas design`
40
- - `hablas ask`
41
- - `/mode`
42
- - Re-centered the product around a **single command surface**:
43
- - `hablas`
44
- - `hablas run "..."`
45
- - Replaced visible mode thinking with an internal unified runtime model based on:
46
- - `executionPath: direct | team`
47
- - `taskKind: conversation | analysis | implementation`
48
- - Updated the interactive REPL and non-interactive `run` command to enter through the unified runtime path first.
49
- - Simplified setup and help messaging to match the stable mental model.
50
-
51
- ### Removed
52
- - Hidden gate-based routing from the active stable-line code path.
53
- - Gate defaults from agent model configuration.
54
- - Gate mindset registration from the built-in mindset registry.
6
+ - Restored the classic two-choice setup flow for the CLI.
7
+ - Brought back:
8
+ 1. **Hablas Integrated Engine** — ready-made NVIDIA-backed setup with preselected model
9
+ 2. **Custom Provider** — user-provided provider and key flow
10
+ - First launch now auto-runs setup again when no saved config exists.
55
11
 
56
- ### Added
57
- - Unified runtime regression smoke tests covering:
58
- - direct casual handling
59
- - direct quick questions
60
- - team analysis routing
61
- - continuity routing
62
- - one-step delivery routing
63
- - Stable runtime recovery documentation in:
64
- - `docs/stable-runtime-recovery-plan-2026-06-12.md`
65
-
66
- ### Verified
67
- - `npm test` passes
68
- - `npm run build` passes
69
- - CLI help no longer exposes removed public mode commands
70
-
71
- ## [1.0.0] — 2026-05-31 · **First Public Release**
12
+ ## [2.0.0] — 2026-06-12 · Full Single-Agent Rebuild
72
13
 
73
- The first formal, polished, production-ready release of Hablas CLI. Months of
74
- internal iteration consolidated into a focused, type-strict, dead-code-free
75
- multi-agent system that runs locally or against any OpenAI-compatible API.
76
-
77
- ### ✨ Highlights
78
- - **Live Team Theatre** — watch the multi-agent team (Hablas → Emma → Bob →
79
- Alex → David) collaborate in real time, in character, with bounded
80
- in-character dialogue between agents.
81
- - **Single-leader UX** — you only talk to Hablas. He delegates, reviews,
82
- synthesizes, and replies in his own INTJ voice.
83
- - **Strict separation of concerns** — `AgentChannel` (event bus),
84
- `TheatreRenderer` (UI), `TeamConductor` (orchestration logic),
85
- `InterAgentChat` (dialogue generation) are fully decoupled.
14
+ This release replaces the old stable product surface with a new one built around a strict single-agent direction.
86
15
 
87
16
  ### Added
88
- - **Live Team Theatre subsystem** (5 new modules, ~1,000 LOC):
89
- - `agents/agent-channel.ts` — typed event bus, single source of truth.
90
- - `agents/inter-agent-chat.ts` bounded in-character dialogue generator
91
- with token budget, cache, and deterministic fallback.
92
- - `agents/team-conductor.ts` drives delegate → handoff → execute →
93
- peer-review synthesize on the AgentChannel.
94
- - `repl/theatre.ts` executive-silver TUI subscriber.
95
- - `agents/__tests__/agent-channel.test.ts` 11 unit tests.
96
- - **T-shirt sizing** (XS/S/M/L/XL) for complexity-aware routing.
97
- - **Plan approval flow** with `approve / edit / skip` for L and XL tasks.
98
- - **`/team`, `/agents`, `/agents models`, `/delegate`** slash commands.
99
- - **Multi-provider support** — Ollama, NVIDIA NIM, OpenAI-compatible APIs.
100
- - **Tool Parser V2** — model-aware learning across 6+ tool-call formats.
101
- - **ReAct engine** with `<thinking>` block parsing and step budget warnings.
102
- - **Error Recovery engine** — classifies tool failures and injects
103
- recovery strategies into the next prompt.
104
- - **Smart abort** — only critical tool failures stop the chain.
105
- - **Ctrl+C** — single press cancels the current op, double press exits cleanly.
106
- - **Checkpoint & Undo Stack** — `/checkpoint save|list|restore`, `/undo [all|list|N]`.
107
- - **Project memory** — categorized, importance-weighted, decay-based, agent-lanes.
108
- - **Auto-inject** — files mentioned in user input are auto-loaded into the session.
109
- - **Setup wizard** on first run.
110
- - **Team mode** (`--team`) — Supabase + Git-based file locks and presence.
111
- - **`hablas commit | pr | changelog | security | stats | info`** sub-commands.
17
+ - new single-agent CLI entry
18
+ - new single-agent interactive runtime
19
+ - new task analyzer
20
+ - new prompt builder
21
+ - new direct text-turn path
22
+ - new rebuild-oriented docs set
23
+ - analyzer regression test
24
+ - engine smoke test retained around the canonical execution loop
112
25
 
113
26
  ### Changed
114
- - **`package.json` version** bumped from internal `2.0.0` to public `1.0.0`.
115
- - **README** updated for the v1.0.0 release.
116
- - **`tsconfig.json`** hardened: enabled `noUnusedLocals`,
117
- `noUnusedParameters`, `noImplicitOverride`,
118
- `noFallthroughCasesInSwitch`.
119
-
120
- ### Removed (cleanup)
121
- - **37 dead-code files** (~6,000 LOC) — abandoned v1/v2/v3 variants,
122
- unfinished subsystems, type shims for unused dependencies. Concretely:
123
- - `agents/{research-agent, self-evaluator, smart-retry, sub-agents}.ts`
124
- - `context/{codebase-index, context-manager-v3, simple-vector-store,
125
- sqlite-memory, summarizer}.ts` and `context/v3/*`
126
- - `kernel/{hooks, permissions, runtime}.ts`
127
- - `llm/{models, thinking-engine}.ts`
128
- - `mcp/{client, server}.ts`
129
- - `planner/{classifier, executor, smart-planner-v2}.ts`
130
- - `tools/{compact, glob, multi-edit, project-intelligence, registry-v3,
131
- todo-manager, web-search, v2/web, v2/background}.ts`
132
- - `repl/todo-renderer.ts`
133
- - `templates/template-manager.ts`
134
- - `types/{web-deps, xenova-transformers}.d.ts`
135
- - **~95 unused imports** across live files, removed via static analysis.
136
- - **Legacy `setOutputCallback` printer** in `loop.ts` — superseded by the
137
- Theatre pipeline.
138
- - **Hardcoded `2.0.0` strings** — now bind dynamically to `package.json`.
139
-
140
- ### Fixed
141
- - `api/server.ts` health endpoint returns the real version from `package.json`.
142
- - `team-conductor.ts` no longer holds an unused `config` field.
143
- - `loop.ts` `BACKUP_DIR` and unused `fsPromises` removed.
144
- - All `tsc --noUnusedLocals --noUnusedParameters` warnings cleared.
145
-
146
- ### Hard Guarantees
147
- - ✅ `npm run build` (strict TS) passes with **zero** errors.
148
- - ✅ `npm test` passes (11/11 channel tests).
149
- - ✅ `npm install` succeeds with the declared dependencies (no phantom imports).
150
- - ✅ Hablas is the sole speaker to the user — no agent surprises.
151
- - ✅ Token budget capped per turn; silent fallback when LLM is offline.
152
- - ✅ Web app, Supabase schema, and `@Consul` collaboration code untouched.
153
-
154
- ### Engineering Stats
155
- | Metric | Before | After |
156
- |---|---|---|
157
- | TypeScript files | 111 | **74** |
158
- | Total LOC | 27,143 | **~21,000** |
159
- | Dead-code files | 37 | **0** |
160
- | Unused imports/declarations | 103 | **0** |
161
- | `--noUnusedLocals` clean | ❌ | ✅ |
162
- | `--noUnusedParameters` clean | ❌ | ✅ |
163
- | `@ts-ignore` count | 0 | **0** |
164
- | Unit tests | 0 | **11** |
165
-
166
- ---
167
-
168
- > The full audit that drove this release is preserved in
169
- > [`AUDIT_v1.0.0.md`](./AUDIT_v1.0.0.md).
27
+ - Hablas is now presented as a **single visible engineering agent**
28
+ - the active CLI surface was rewritten from scratch
29
+ - the terminal UI was rebuilt into a simpler minimal style
30
+ - help, startup messaging, and docs were rewritten around the new product model
31
+
32
+ ### Removed from active stable branch
33
+ - visible mode-era CLI surface
34
+ - visible team-theatre runtime surface
35
+ - specialist handoff UX
36
+ - old runtime/planner product surface
37
+ - old rebuild and migration documentation set
38
+ - large sections of dead source code and unused dependencies
39
+
40
+ ### Release intent
41
+ 2.0.0 is the first explicit release candidate of the full stable-branch rebuild direction.