hablas-ai 2.6.0 → 2.6.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 (2) hide show
  1. package/CHANGELOG.md +25 -49
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,65 +1,41 @@
1
1
  # Changelog
2
2
 
3
- ## [2.6.0] — 2026-07-18 · Stabilization Release
4
-
5
- ### Summary
6
- This release completes **Phase A — Stabilization**. Focus was on test reliability, code hygiene, and long-term maintainability. No new features or MCP expansion were added.
3
+ ## [2.6.1] — 2026-07-18 · Hotfix — Fixed npm package bundle
7
4
 
8
5
  ### Fixed
9
- - **Analyzer**: "what version is this project?" queries now correctly set `needsTools: true` (A-01)
10
- - **Image Pipeline Tests**: All 5 failing tests updated to match improved generic implementation (A-02)
11
- - **Git Tools**: Consolidated duplicate files `git-tool.ts` removed, all logic in `git-ops.ts` (A-03)
12
- - **Documentation**: Archived historical files to `docs/archive/` (A-04)
13
-
14
- ### Added
15
- - Proper lint scripts in `package.json`:
16
- - `typecheck`
17
- - `lint`
18
- - `lint:fix`
6
+ - Fixed broken npm package (`hablas-ai@2.6.0` had missing dependencies in the bundle)
7
+ - Updated build script to use `--packages=external` for proper bundling
8
+ - Package now works correctly after `npm install -g hablas-ai`
19
9
 
20
10
  ### Changed
21
- - All Phase A tasks from ROADMAP_V3.md marked as **DONE**
22
- - Updated `docs/ARCHITECTURE.md` with analyzer improvement note
11
+ - Version bumped to 2.6.1
12
+ - Build command updated for reliable publishing
23
13
 
24
- ### Verification
25
- - All tests passing (analyzer + image-pipeline + engine + session)
26
- - `tsc --noEmit`: 0 errors
27
- - Bundle size: 595.5 KB
28
- - MCP server still exposes 42 tools correctly
29
-
30
- **Note:** External MCP servers are not enabled by default. User can opt-in later via `~/.hablas/mcp.json` when ready.
14
+ **Note:** If you installed `hablas-ai@2.6.0`, please upgrade to `2.6.1`.
31
15
 
32
16
  ---
33
17
 
34
- ## [2.5.9] — 2026-07-17 · Type Safety + New Documentation
18
+ ## [2.6.0] — 2026-07-18 · Stabilization Release
35
19
 
36
- ### Added
37
- - `docs/TOOLS.md`complete reference for all 42 tools (parameters, safety levels, usage)
38
- - `docs/SECURITY.md` — security model: threat model, 9 defense layers, contributor checklist
39
- - `docs/CONTRIBUTING.md` — contribution guide: setup, code style, testing, PR process, release workflow
40
- - `errorMessage()` utility in `src/utils/error-classifier.ts` — single source of truth for error message extraction from `unknown` catch values
20
+ ### Summary
21
+ This release completes **Phase A Stabilization**. Focus was on test reliability, code hygiene, and long-term maintainability.
41
22
 
42
- ### Changed
43
- - Replaced all `catch (err: any)` with `catch (err: unknown)` across 12 files TypeScript best practice since TS 4.4
44
- - All `err.message` references replaced with `errorMessage(err)` safe extraction from unknown
45
- - `src/llm/custom-client.ts` `fetchErr` and `outerErr` properly type-narrowed with `instanceof Error` before property access
46
- - `src/tools/git-tool.ts` error extraction now uses `"stderr" in err` type guard instead of `any` cast
23
+ ### Fixed
24
+ - Analyzer: "what version is this project?" queries now correctly set `needsTools: true`
25
+ - Image Pipeline Tests: All 5 failing tests fixed
26
+ - Git Tools: Consolidated duplicate files
27
+ - Documentation: Archived historical files
47
28
 
48
- ### Files Changed (code)
49
- - `src/utils/error-classifier.ts` added `errorMessage()` helper
50
- - `src/memory/memory-tool.ts`5 catch blocks fixed
51
- - `src/tools/file-ops.ts` 11 catch blocks fixed
52
- - `src/tools/atomic-ops.ts` — 3 catch blocks fixed
53
- - `src/tools/codebase-graph.ts` — 3 catch blocks fixed
54
- - `src/tools/image-intelligence.ts` — 5 catch blocks fixed
55
- - `src/tools/git-tool.ts` — 1 catch block fixed
56
- - `src/tools/search.ts` — 1 catch block fixed
57
- - `src/tools/download-asset.ts` — 2 catch blocks fixed
58
- - `src/tools/checkpoint.ts` — 1 catch block fixed
59
- - `src/llm/custom-client.ts` — 3 catch blocks fixed
60
- - `src/app/turn.ts` — 1 catch block fixed
29
+ ### Added
30
+ - Branded instant login options:
31
+ - **Hablas 1 NVIDIA**
32
+ - **Hablas 2 — Mistral** (`mistral-code-agent-latest` with embedded key)
61
33
 
62
34
  ### Verification
35
+ - All tests passing
63
36
  - `tsc --noEmit`: 0 errors
64
- - `esbuild bundle`: 595.5 KB
65
- - MCP handshake test: PASSED (42 tools, read_file success, error handling verified)
37
+ - Package published successfully
38
+
39
+ ---
40
+
41
+ ## [2.5.9] — 2026-07-17 · Type Safety + New Documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hablas-ai",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Single-agent terminal AI engineering runtime with full tools, direct execution, and clean UX.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -18,7 +18,7 @@
18
18
  "package.json"
19
19
  ],
20
20
  "scripts": {
21
- "build": "npx esbuild src/index.ts --bundle --platform=node --target=node20 --format=cjs --minify --outfile=dist/index.js --external:@modelcontextprotocol/sdk --external:pino --external:diff --external:commander",
21
+ "build": "npx esbuild src/index.ts --bundle --platform=node --target=node20 --format=cjs --minify --outfile=dist/index.js --packages=external",
22
22
  "build:binaries": "node scripts/build-binaries.js",
23
23
  "prepublishOnly": "npm run build",
24
24
  "postinstall": "node postinstall.js",