amalfa 1.0.38 → 1.0.39

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 +193 -0
  2. package/package.json +2 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,193 @@
1
+ # Changelog
2
+
3
+ All notable changes to AMALFA will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.0.39] - 2026-01-09
9
+
10
+ ### Fixed
11
+ - **Documentation**: Updated CHANGELOG.md to include recent Ember Service changes (missed in 1.0.38).
12
+ - **Testing**: Fixed `analyzer.test.ts` to correctly pass file content, resolving pre-commit failures.
13
+ - **Process**: Added Changelog version verification to `pre-commit` hook to prevent future ghost releases.
14
+
15
+ ## [1.0.38] - 2026-01-09
16
+
17
+ ### Added
18
+ - **Ember Service**: Introduced the `amalfa ember` command suite for automated documentation enrichment.
19
+ - `amalfa ember scan`: Analyzes documents using graph communities to suggest missing tags (Sidecar generation).
20
+ - `amalfa ember squash`: Safely merges sidecar suggestions into markdown frontmatter using `gray-matter`.
21
+ - **Graph Intelligence**: Integrated `GraphEngine` into Ember for community detection (Louvain) and neighbor-based tag recommendation.
22
+ - **Stub Detection**: Added heuristics to automatically tag short content as `stub`.
23
+
24
+ ### Changed
25
+ - **Ingestion Pipeline**: Upgraded `AmalfaIngestor` to use `gray-matter` for robust frontmatter parsing (replacing legacy regex).
26
+ - **CLI**: Expanded `src/cli.ts` to include `ember` command handling.
27
+
28
+ ### Fixed
29
+ - **Testing**: Resolved content read logic in `analyzer.test.ts`.
30
+
31
+ ## [1.0.37] - 2026-01-09
32
+
33
+ ### Added
34
+ - **Drizzle Integration**: Added Drizzle ORM for schema management and migrations using `drizzle-kit`.
35
+ - **Hono Migration**: Migrated Sonar Agent to Hono for robust routing and standard middleware support.
36
+ - **Guardrails**: Added explicit "No ORM Runtime" policy for FAFCAS compliance (Drizzle for schema only).
37
+
38
+ ### Changed
39
+ - **Dependency Pinning**: Pinned all dependencies in `package.json` to exact versions to prevent drift.
40
+ - **Cleanup**: Removed stale deprecations and unused imports across the codebase.
41
+
42
+ ## [1.0.36] - 2026-01-09
43
+
44
+ ### Fixed
45
+ - **Pre-commit Checks**: Resolved TypeScript regex match narrowing issues in `doc-consistency-check.ts`
46
+ - **Biome Configuration**: Excluded lab/legacy scripts from linting to focus on core code quality
47
+ - **Branch Protection**: Added local pre-commit hook to prevent direct commits to main branch
48
+
49
+ ### Added
50
+ - **Documentation**: Comprehensive README files added throughout codebase (`src/`, `scripts/`, `src/cli/`, `src/config/`, `src/daemon/`, `src/resonance/services/`, `src/resonance/types/`, `src/types/`, `src/utils/`)
51
+ - **Development Tooling**: Pre-commit hook script for local branch protection
52
+
53
+ ## [1.0.35] - 2026-01-09
54
+
55
+ ### Changed
56
+ - **Version Bump**: Minor version increment for release preparation
57
+
58
+ ## [1.0.34] - 2026-01-09
59
+
60
+ ### Changed
61
+ - **Code Quality**: Applied Biome formatting and lint fixes across the entire codebase to improve consistency and maintainability.
62
+
63
+ ## [1.0.32] - 2026-01-09
64
+
65
+ ### Fixed
66
+ - **CLI**: `setup-mcp` now correctly includes the `--cwd` flag in the generated JSON config. This prevents `EROFS` (read-only file system) errors when the MCP server is launched by clients (like Claude Desktop or Antigravity) that might use a read-only root as the working directory. It forces the server to run in the user's project root where it has write permissions for logs and databases.
67
+
68
+ ## [1.0.31] - 2026-01-09
69
+
70
+ ### Fixed
71
+ - **Publishing**: Included `tsconfig.json` in the published package files. This ensures that global installations (via `npm` or `bun`) can correctly resolve path aliases (e.g., `@src/`) when running the CLI or MCP server.
72
+ - **CLI**: Improved CWD handling when running from system root.
73
+
74
+ ## [1.0.30] - 2026-01-09
75
+
76
+ ### Security
77
+ - **Dependabot**: Updated `@modelcontextprotocol/sdk` to `1.25.2` to resolve ReDoS vulnerability (GHSA-8r9q-7v3j-jr4g).
78
+
79
+ ## [1.0.29] - 2026-01-09
80
+
81
+ ### Added
82
+ - **Phase 5: Autonomous Research & Recursive Discovery (FAFCAS)**: Implemented a multi-step "Internal Monologue" research agent.
83
+ - **Discovery Loop**: Iterative SEARCH → READ → EXPLORE → ANALYZE cycles.
84
+ - **Topological Discovery**: Hub-aware entry points using PageRank and Betweenness Centrality.
85
+ - **EXPLORE Action**: Physical graph neighborhood traversal for non-semantic lead discovery.
86
+ - **Chain Verification**: Autonomous "AMALFA Auditor" that double-checks research findings for truthfulness.
87
+ - **Robust JSON Recovery**: Defensive parsing to handle non-compliant LLM outputs.
88
+ - **Phase 4: Topological Intelligence**: Integrated structural link prediction into the gardening loop.
89
+ - **Adamic-Adar Index**: Implemented topological relationship scoring in `GraphEngine`.
90
+ - **Structural Gap Detection**: 2-hop shared neighbor analysis to find "missing links."
91
+ - **Phase 3 (Chronos) Completion**: Advanced "Timeline Weaving" and temporal grounding verified.
92
+ - **Cross-Corpus Readiness**: Infrastructure for multi-repo research initiated.
93
+
94
+ ### Changed
95
+ - **Architectural Refactor**: decoupled `sonar-agent.ts` daemon from task logic.
96
+ - **Modular Task Handlers**: Synthesis, Timeline, Garden, and Research logic moved to `sonar-logic.ts`.
97
+ - **Bun-Native Async I/O**: Switched to `Bun.write` and `fs/promises` for all task processing and reporting.
98
+ - **Strict Type Safety**: Replaced `any` assertions with explicit API request interfaces.
99
+
100
+ ## [1.0.28] - 2026-01-08
101
+
102
+ ### Added
103
+ - **OpenRouter Cloud Integration**: New `sonar.cloud` config with `openrouter` provider for accessing cloud LLMs
104
+ - **Dev-Cloud/Prod-Local Strategy**: Test with large cloud models, deploy with smaller local ones
105
+ - **Model Strategy Guide**: New `docs/guides/model-strategy.md` documentation
106
+ - **RAG Pipeline**: Vector search now augments chat context for grounded responses
107
+ - **ENV API Key**: `OPENROUTER_API_KEY` read from `.env` for secure credential handling
108
+
109
+ ### Changed
110
+ - **Tiered Model Strategy**: Research tasks use cloud config, quick tasks use local `qwen2.5:1.5b`
111
+ - **Expanded Ingestion Sources**: Root markdown files now included in knowledge graph
112
+ - **Model Priority**: Updated to prioritize `qwen2.5:1.5b` as default local model
113
+
114
+ ### Removed
115
+ - Cleaned up unused Ollama models: `tinydolphin`, `tinyllama`, `phi3`, `functiongemma`, `nomic-embed-text`, `llama3.1:8b`, `mistral:7b-instruct`
116
+
117
+
118
+ ### Added
119
+ - **Staleness Detection**: `amalfa stats` now warns (`⚠️ STALE`) if source files are newer than the database.
120
+ - **JSON Mode (GBNF)**: Sonar Agent now enforces valid JSON output for `tinydolphin` compatibility.
121
+ - **Phi3 Sub-Agent**: Robust daemon (`amalfa phi3`) managing local LLM interactions for chat and analysis.
122
+ - **Search Intelligence**: New endpoints `/search/analyze`, `/search/rerank`, `/search/context`.
123
+ - **Metadata Enhancement**: AI-powered document enrichment via `/metadata/enhance` connected to ResonanceDB.
124
+ - **CLI Tooling**:
125
+ - `amalfa phi3 chat` (Interactive chat with real-time feedback)
126
+ - `amalfa phi3 status` (Rich diagnostics)
127
+ - `amalfa enhance` (Batch/Single doc enhancement)
128
+ - **FAFCAS Optimization**: Prioritized `tinydolphin` (1.1B) model for instant CPU inference.
129
+ - **OH-104 Pinch Check**: Physical file verification after WAL checkpoint to prevent silent corruption
130
+ - Test script `scripts/verify/test-hardening.ts` for validating resilience improvements
131
+
132
+ ### Changed
133
+ - **Sonar Refactor**: Renamed "Phi3" sub-agent to "Sonar Agent" (daemon, CLI, config) for better naming.
134
+ - **Default Model**: Switched from `phi3` to `tinydolphin` for vastly improved local performance.
135
+ - Hardened ingestion pipeline with explicit file size checks after database checkpoints
136
+ - Enhanced MCP gardening tool with tag deduplication logic
137
+
138
+ ## [1.0.19] - 2026-01-07
139
+
140
+ ### Fixed
141
+ - Version reporting: CLI now reads version from `package.json` instead of hardcoded value, ensuring single source of truth
142
+ - Added missing `validate-config` script to package.json for pre-publish checks
143
+
144
+ ### Documentation
145
+ - Added pre-publish checklist to prevent release issues
146
+
147
+ ## [1.0.18] - 2026-01-07
148
+
149
+ ### Added
150
+ - **Configurable notifications**: New `watch.notifications` config option to enable/disable desktop notifications from the daemon
151
+ - Comprehensive documentation for notification settings in example config
152
+
153
+ ### Changed
154
+ - **Cache consolidation**: Moved ML model cache from `.resonance/cache` to `.amalfa/cache` for cleaner project structure
155
+ - All runtime artifacts now in single `.amalfa/` directory (database, logs, PIDs, cache)
156
+ - Updated `.gitignore` and `.npmignore` to reflect new cache location
157
+
158
+ ### Fixed
159
+ - Removed legacy `.resonance/` folder - single source of truth for runtime artifacts
160
+ - Cache directory auto-creates on first use with proper error handling
161
+
162
+ ### Documentation
163
+ - Added brief and debrief for cache consolidation implementation
164
+ - Updated example config with notification settings
165
+ - Clarified single `.amalfa/` directory structure in docs
166
+
167
+ ## [1.0.17] - 2026-01-07
168
+
169
+ ### Added
170
+ - Added `briefs/` folder to watched sources
171
+ - Comprehensive test suite improvements
172
+
173
+ ### Fixed
174
+ - EdgeWeaver tests: Added `getRawDb()` mock for LouvainGate compatibility
175
+ - DatabaseFactory tests: Corrected parameter order for `connectToResonance()`
176
+ - Updated verify scripts with correct DatabaseFactory parameters
177
+
178
+ ### Removed
179
+ - Removed unnecessary tests: `olmo_parsing.test.ts`, `schema.test.ts` (outdated after v6 migration)
180
+ - Skipped daemon integration tests that require full infrastructure
181
+
182
+ ### Testing
183
+ - All core tests passing: 18 pass, 5 skip, 0 fail
184
+ - Database validation passing
185
+ - Deterministic ingestion verified (tear down and rebuild test)
186
+
187
+ ## [1.0.16] - Previous Release
188
+
189
+ Initial stable release with MCP server, daemon, and vector search capabilities.
190
+
191
+ ---
192
+
193
+ **Note**: For full details on each release, see the git commit history and associated debrief documents.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amalfa",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "Local-first knowledge graph engine for AI agents. Transforms markdown into searchable memory with MCP protocol.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/pjsvis/amalfa#readme",
@@ -18,6 +18,7 @@
18
18
  "src",
19
19
  "tsconfig.json",
20
20
  "README.md",
21
+ "CHANGELOG.md",
21
22
  "LICENSE"
22
23
  ],
23
24
  "keywords": [