amalfa 1.0.12 → 1.0.14
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/README.md +41 -1
- package/package.json +1 -1
- package/src/cli.ts +1 -1
package/README.md
CHANGED
|
@@ -186,12 +186,52 @@ amalfa/
|
|
|
186
186
|
### Key Patterns
|
|
187
187
|
|
|
188
188
|
1. **Hollow Nodes:** Node metadata in SQLite, content on filesystem
|
|
189
|
-
2. **FAFCAS Protocol:**
|
|
189
|
+
2. **FAFCAS Protocol:** Embedding normalization that enables scalar product searches (10x faster than cosine similarity)
|
|
190
190
|
3. **Git-Based Auditing:** All agent augmentations are git commits
|
|
191
191
|
4. **ServiceLifecycle:** Unified daemon management pattern
|
|
192
192
|
|
|
193
193
|
---
|
|
194
194
|
|
|
195
|
+
## Example Workflow
|
|
196
|
+
|
|
197
|
+
AMALFA follows a **Brief → Work → Debrief → Playbook** cycle:
|
|
198
|
+
|
|
199
|
+
```dot
|
|
200
|
+
digraph workflow {
|
|
201
|
+
rankdir=LR;
|
|
202
|
+
node [shape=box, style=filled];
|
|
203
|
+
|
|
204
|
+
// Nodes
|
|
205
|
+
brief [label="Brief\n(Task Spec)", fillcolor=lightyellow];
|
|
206
|
+
work [label="Work\n(Implementation)", fillcolor=lightblue];
|
|
207
|
+
debrief [label="Debrief\n(Lessons Learned)", fillcolor=lightgreen];
|
|
208
|
+
playbook [label="Playbook\n(Codified Pattern)", fillcolor=orange];
|
|
209
|
+
db [label="AMALFA\nKnowledge Graph", shape=cylinder, fillcolor=lightgray];
|
|
210
|
+
|
|
211
|
+
// Flow
|
|
212
|
+
brief -> work [label="guides"];
|
|
213
|
+
work -> debrief [label="captures"];
|
|
214
|
+
debrief -> playbook [label="abstracts to"];
|
|
215
|
+
playbook -> db [label="indexed as"];
|
|
216
|
+
db -> brief [label="informs\nnext task", style=dashed];
|
|
217
|
+
|
|
218
|
+
// Semantic layer
|
|
219
|
+
db -> db [label="semantic search\nvector embeddings\ngraph traversal", style=dotted];
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
**Example:**
|
|
224
|
+
|
|
225
|
+
1. **Brief:** "Implement user authentication with JWT tokens"
|
|
226
|
+
2. **Work:** Agent implements the feature, commits code
|
|
227
|
+
3. **Debrief:** Document what worked (JWT refresh tokens), what didn't (session storage), lessons learned
|
|
228
|
+
4. **Playbook:** Extract reusable pattern: "Authentication with stateless JWT tokens"
|
|
229
|
+
5. **Query:** Later, "How should we handle auth?" → AMALFA retrieves the playbook via semantic search
|
|
230
|
+
|
|
231
|
+
**The magic:** Each document is embedded as a vector (384 dimensions), enabling semantic search across all accumulated knowledge.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
195
235
|
## Vision
|
|
196
236
|
|
|
197
237
|
See [VISION-AGENT-LEARNING.md](docs/VISION-AGENT-LEARNING.md) for the full vision.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amalfa",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
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",
|
package/src/cli.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { existsSync, statSync } from "node:fs";
|
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
5
5
|
|
|
6
|
-
const VERSION = "1.0.
|
|
6
|
+
const VERSION = "1.0.14";
|
|
7
7
|
|
|
8
8
|
// Database path loaded from config (lazy loaded per command)
|
|
9
9
|
let DB_PATH: string | null = null;
|