@hiveai/cli 0.3.0 → 0.3.3
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
CHANGED
|
@@ -22,28 +22,30 @@ This installs the `haive` command globally.
|
|
|
22
22
|
## Quick start
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
# 1. Initialize hAIve in your project
|
|
25
|
+
# 1. Initialize hAIve in your project (autopilot ON by default)
|
|
26
26
|
cd my-project
|
|
27
|
-
haive init
|
|
27
|
+
haive init # autopilot: hooks + CI + code-map auto-configured
|
|
28
|
+
# haive init --manual # if you prefer to approve memories yourself
|
|
28
29
|
|
|
29
|
-
# 2.
|
|
30
|
-
|
|
30
|
+
# 2. Point your AI client at the MCP server
|
|
31
|
+
# Add to ~/.claude.json / ~/.cursor/mcp.json:
|
|
32
|
+
# { "mcpServers": { "haive": { "command": "haive-mcp", "args": ["--root", "/absolute/path"] } } }
|
|
31
33
|
|
|
32
|
-
# 3.
|
|
34
|
+
# 3. Bootstrap the project context (run once in your AI client)
|
|
35
|
+
# → Use the bootstrap_project MCP prompt to analyze the codebase and fill .ai/project-context.md
|
|
36
|
+
|
|
37
|
+
# 4. Your AI client now calls get_briefing at every session start — zero config needed
|
|
38
|
+
|
|
39
|
+
# 5. Add a memory manually (or let the AI agent do it via mem_save)
|
|
33
40
|
haive memory add \
|
|
34
|
-
--type gotcha \
|
|
35
|
-
--slug "open-in-view-false" \
|
|
36
|
-
--scope team \
|
|
41
|
+
--type gotcha --slug "jpa-open-in-view" --scope team \
|
|
37
42
|
--paths src/main/resources/application.properties \
|
|
38
43
|
--body "spring.jpa.open-in-view=false is intentional — do not re-enable."
|
|
39
44
|
|
|
40
|
-
#
|
|
41
|
-
haive
|
|
42
|
-
|
|
43
|
-
# 5. Get a briefing before a task
|
|
44
|
-
haive briefing --task "add a payment endpoint" --scope team
|
|
45
|
+
# 6. Browse and manage memories in the TUI dashboard
|
|
46
|
+
haive tui
|
|
45
47
|
|
|
46
|
-
#
|
|
48
|
+
# 7. Sync after a git pull (runs automatically via hooks in autopilot mode)
|
|
47
49
|
haive sync
|
|
48
50
|
```
|
|
49
51
|
|
|
@@ -53,21 +55,35 @@ haive sync
|
|
|
53
55
|
|
|
54
56
|
### `haive init`
|
|
55
57
|
|
|
56
|
-
Initialize the `.ai/` structure in a project
|
|
58
|
+
Initialize the `.ai/` structure in a project. **Autopilot mode is ON by default** — zero manual steps required.
|
|
57
59
|
|
|
58
60
|
```bash
|
|
59
|
-
haive init #
|
|
60
|
-
haive init --
|
|
61
|
-
haive init --
|
|
61
|
+
haive init # Autopilot: validates memories automatically, installs hooks, builds code-map
|
|
62
|
+
haive init --manual # Manual mode: you approve every memory yourself
|
|
63
|
+
haive init --no-bridges # Skip bridge file generation (CLAUDE.md, .cursorrules, etc.)
|
|
62
64
|
haive init --dir /other/path # Initialize in a specific directory
|
|
63
65
|
```
|
|
64
66
|
|
|
67
|
+
**Autopilot mode** (default):
|
|
68
|
+
- Memories are saved directly as `validated` (no approval cycle)
|
|
69
|
+
- Git hooks installed automatically (`haive sync` after every pull)
|
|
70
|
+
- CI workflow generated (`.github/workflows/haive-sync.yml`)
|
|
71
|
+
- Initial code-map built (`.ai/code-map.json`) for symbol lookup
|
|
72
|
+
- Session recaps saved automatically when the MCP server exits
|
|
73
|
+
- Configuration stored in `.ai/haive.config.json`
|
|
74
|
+
|
|
75
|
+
**Manual mode** (`--manual`):
|
|
76
|
+
- Memories start as `proposed` and require explicit approval (`haive memory approve`)
|
|
77
|
+
- No automatic hooks or CI — set up manually with `haive install-hooks` and `haive init --with-ci`
|
|
78
|
+
- Full control over when knowledge is shared with the team
|
|
79
|
+
|
|
65
80
|
**What it creates:**
|
|
66
81
|
|
|
67
82
|
```
|
|
68
83
|
your-project/
|
|
69
84
|
├── .ai/
|
|
70
85
|
│ ├── project-context.md # Shared project overview (fill via bootstrap_project MCP prompt)
|
|
86
|
+
│ ├── haive.config.json # Autopilot settings
|
|
71
87
|
│ ├── modules/ # Per-component context files
|
|
72
88
|
│ └── memories/
|
|
73
89
|
│ ├── personal/ # Private to one developer
|
|
@@ -252,14 +268,22 @@ Show memories relevant to specific files you're about to edit.
|
|
|
252
268
|
haive memory for-files src/payments/PaymentService.java src/payments/PaymentController.java
|
|
253
269
|
```
|
|
254
270
|
|
|
255
|
-
#### `haive memory stats` / `hot` / `pending`
|
|
271
|
+
#### `haive memory stats` / `hot` / `pending` / `digest`
|
|
256
272
|
|
|
257
273
|
```bash
|
|
258
274
|
haive memory stats # Usage stats and confidence levels for all memories
|
|
259
275
|
haive memory hot # Most-read unvalidated memories (good promotion candidates)
|
|
260
276
|
haive memory pending # Proposed memories awaiting review
|
|
277
|
+
|
|
278
|
+
# Generate a Markdown review digest for bulk approval/rejection:
|
|
279
|
+
haive memory digest # Last 7 days, team scope (prints to stdout)
|
|
280
|
+
haive memory digest --days 14 # Last 14 days
|
|
281
|
+
haive memory digest --scope all # All scopes
|
|
282
|
+
haive memory digest --out digest.md # Write to file
|
|
261
283
|
```
|
|
262
284
|
|
|
285
|
+
The digest groups memories by type, shows confidence level (⬜ unverified / 🟡 low / 🟢 trusted / ⭐ authoritative), anchor, read count, and action checkboxes for easy bulk review.
|
|
286
|
+
|
|
263
287
|
---
|
|
264
288
|
|
|
265
289
|
### `haive briefing`
|
|
@@ -267,12 +291,20 @@ haive memory pending # Proposed memories awaiting review
|
|
|
267
291
|
Print the full project briefing — project context + relevant memories — in one shot. Use before starting a task.
|
|
268
292
|
|
|
269
293
|
```bash
|
|
270
|
-
haive briefing
|
|
271
|
-
haive briefing --task "add a Stripe payment"
|
|
294
|
+
haive briefing # Full briefing, team scope
|
|
295
|
+
haive briefing --task "add a Stripe payment" # Filter by task relevance
|
|
272
296
|
haive briefing --files src/payments/PaymentService.java # Filter by files
|
|
273
|
-
haive briefing --
|
|
274
|
-
haive briefing --
|
|
275
|
-
haive briefing --
|
|
297
|
+
haive briefing --symbols PaymentService,TenantFilter # Look up symbol locations in code-map
|
|
298
|
+
haive briefing --scope all # Include personal memories
|
|
299
|
+
haive briefing --include-stale # Include stale memories
|
|
300
|
+
haive briefing --max-memories 15 # Show more memories
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
**`--symbols` (requires `haive index code`):** look up where specific symbols are defined across your entire codebase — no grep needed. Returns file, line number, kind (class/interface/function/enum), and JSDoc description for each match.
|
|
304
|
+
|
|
305
|
+
```
|
|
306
|
+
PaymentProvider src/payments/PaymentProvider.java:12 [interface] — Abstract payment provider
|
|
307
|
+
PaymentProvider src/frontend/payment.types.ts:4 [enum] — Mobile payment provider enum
|
|
276
308
|
```
|
|
277
309
|
|
|
278
310
|
---
|
|
@@ -337,13 +369,51 @@ The code map lets AI agents find where a function lives without grepping — dra
|
|
|
337
369
|
|
|
338
370
|
### `haive tui`
|
|
339
371
|
|
|
340
|
-
Interactive terminal dashboard
|
|
372
|
+
Interactive terminal dashboard with 3 screens — browse, filter, and manage memories without leaving the terminal.
|
|
341
373
|
|
|
342
374
|
```bash
|
|
343
|
-
haive tui # Open the TUI
|
|
375
|
+
haive tui # Open the TUI
|
|
344
376
|
haive tui --dir /path/to/project
|
|
345
377
|
```
|
|
346
378
|
|
|
379
|
+
**Screens (switch with `1` `2` `3`):**
|
|
380
|
+
|
|
381
|
+
| Screen | Key | What it shows |
|
|
382
|
+
|---|---|---|
|
|
383
|
+
| Memories | `1` | Full list + preview panel, filter by status (Tab), actions |
|
|
384
|
+
| Health | `2` | Stale memories, pending review, anchorless memories |
|
|
385
|
+
| Stats | `3` | Top-read memories, decaying (>90d unused), totals by status |
|
|
386
|
+
|
|
387
|
+
**Actions (in Memories screen):**
|
|
388
|
+
|
|
389
|
+
| Key | Action |
|
|
390
|
+
|---|---|
|
|
391
|
+
| `↑` `↓` | Navigate |
|
|
392
|
+
| `Tab` | Cycle filter (all / draft / proposed / validated / stale / rejected) |
|
|
393
|
+
| `a` | Approve (→ validated) |
|
|
394
|
+
| `r` | Reject |
|
|
395
|
+
| `p` | Propose (→ proposed) |
|
|
396
|
+
| `d` | Delete |
|
|
397
|
+
| `q` | Quit |
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
### `haive session end`
|
|
402
|
+
|
|
403
|
+
Save a structured end-of-session recap. Surfaced automatically at the start of the next session via `get_briefing`.
|
|
404
|
+
|
|
405
|
+
```bash
|
|
406
|
+
haive session end \
|
|
407
|
+
--goal "Add Stripe payment integration" \
|
|
408
|
+
--accomplished "Implemented PaymentService, added tests, deployed to staging" \
|
|
409
|
+
--discoveries "The webhook signature must use the raw request body, not parsed JSON" \
|
|
410
|
+
--files "src/payments/PaymentService.ts,src/payments/webhook.ts" \
|
|
411
|
+
--next "Add retry logic for failed webhooks" \
|
|
412
|
+
--scope team
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
One recap is kept per scope (topic-upsert: `revision_count` increments on each call).
|
|
416
|
+
|
|
347
417
|
---
|
|
348
418
|
|
|
349
419
|
## Memory lifecycle
|
|
@@ -5,6 +5,7 @@ import { useState, useEffect, useCallback } from "react";
|
|
|
5
5
|
import { Box, Text, useInput, useApp } from "ink";
|
|
6
6
|
import { existsSync } from "fs";
|
|
7
7
|
import { writeFile, unlink } from "fs/promises";
|
|
8
|
+
import path from "path";
|
|
8
9
|
import {
|
|
9
10
|
getUsage,
|
|
10
11
|
isDecaying,
|
|
@@ -83,13 +84,37 @@ function Dashboard({ root }) {
|
|
|
83
84
|
serializeMemory({ frontmatter: { ...fm, status: newStatus }, body: selected.memory.body }),
|
|
84
85
|
"utf8"
|
|
85
86
|
);
|
|
86
|
-
const label = newStatus === "validated" ? "\u2713 Approved" :
|
|
87
|
-
const color = newStatus === "validated" ? "green" :
|
|
87
|
+
const label = newStatus === "validated" ? "\u2713 Approved" : "\u2717 Rejected";
|
|
88
|
+
const color = newStatus === "validated" ? "green" : "red";
|
|
88
89
|
flash_(`${label}: ${fm.id.slice(0, 40)}`, color);
|
|
89
90
|
const prev = cursor;
|
|
90
91
|
await reload();
|
|
91
92
|
setCursor(Math.min(prev, Math.max(0, filtered.length - 2)));
|
|
92
93
|
}, [selected, cursor, filtered.length, reload]);
|
|
94
|
+
const doPromote = useCallback(async () => {
|
|
95
|
+
if (!selected) return;
|
|
96
|
+
const fm = selected.memory.frontmatter;
|
|
97
|
+
if (fm.scope === "team") {
|
|
98
|
+
flash_("Already team scope", "yellow");
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const teamDir = path.join(path.dirname(path.dirname(selected.filePath)), "team");
|
|
102
|
+
const newFilePath = path.join(teamDir, path.basename(selected.filePath));
|
|
103
|
+
const { mkdir } = await import("fs/promises");
|
|
104
|
+
await mkdir(teamDir, { recursive: true });
|
|
105
|
+
await writeFile(
|
|
106
|
+
newFilePath,
|
|
107
|
+
serializeMemory({
|
|
108
|
+
frontmatter: { ...fm, scope: "team", status: "proposed" },
|
|
109
|
+
body: selected.memory.body
|
|
110
|
+
}),
|
|
111
|
+
"utf8"
|
|
112
|
+
);
|
|
113
|
+
await unlink(selected.filePath);
|
|
114
|
+
flash_(`\u2191 Promoted to team: ${fm.id.slice(0, 36)}`, "yellow");
|
|
115
|
+
await reload();
|
|
116
|
+
setCursor((c) => Math.max(0, c - 1));
|
|
117
|
+
}, [selected, reload]);
|
|
93
118
|
const doDelete = useCallback(async () => {
|
|
94
119
|
if (!selected) return;
|
|
95
120
|
const fm = selected.memory.frontmatter;
|
|
@@ -125,7 +150,7 @@ function Dashboard({ root }) {
|
|
|
125
150
|
}
|
|
126
151
|
if (input === "a") void doStatusChange("validated");
|
|
127
152
|
if (input === "r") void doStatusChange("rejected");
|
|
128
|
-
if (input === "p") void
|
|
153
|
+
if (input === "p") void doPromote();
|
|
129
154
|
if (input === "d") void doDelete();
|
|
130
155
|
}
|
|
131
156
|
});
|
|
@@ -225,7 +250,7 @@ function Dashboard({ root }) {
|
|
|
225
250
|
] })
|
|
226
251
|
] }),
|
|
227
252
|
/* @__PURE__ */ jsx(FlashBar, {}),
|
|
228
|
-
/* @__PURE__ */ jsx(Box, { paddingX: 1, children: /* @__PURE__ */ jsx(Text, { dimColor: true, children: "\u2191\u2193 navigate [tab] filter [a] approve [r] reject [p]
|
|
253
|
+
/* @__PURE__ */ jsx(Box, { paddingX: 1, children: /* @__PURE__ */ jsx(Text, { dimColor: true, children: "\u2191\u2193 navigate [tab] filter [a] approve [r] reject [p] promote personal\u2192team [d] delete" }) })
|
|
229
254
|
] });
|
|
230
255
|
}
|
|
231
256
|
if (screen === "health") {
|
|
@@ -333,4 +358,4 @@ function Dashboard({ root }) {
|
|
|
333
358
|
export {
|
|
334
359
|
Dashboard
|
|
335
360
|
};
|
|
336
|
-
//# sourceMappingURL=Dashboard-
|
|
361
|
+
//# sourceMappingURL=Dashboard-Y2AIWFZK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tui/Dashboard.tsx"],"sourcesContent":["import { useState, useEffect, useCallback } from \"react\";\nimport { Box, Text, useInput, useApp } from \"ink\";\nimport { existsSync } from \"node:fs\";\nimport { writeFile, unlink } from \"node:fs/promises\";\nimport path from \"node:path\";\nimport {\n getUsage,\n isDecaying,\n loadMemoriesFromDir,\n loadUsageIndex,\n resolveHaivePaths,\n serializeMemory,\n type LoadedMemory,\n type UsageIndex,\n} from \"@hiveai/core\";\n\ntype Screen = \"memories\" | \"health\" | \"stats\";\ntype FilterStatus = \"all\" | \"draft\" | \"proposed\" | \"validated\" | \"stale\" | \"rejected\";\nconst FILTERS: FilterStatus[] = [\"all\", \"draft\", \"proposed\", \"validated\", \"stale\", \"rejected\"];\nconst LIST_H = 14;\n\nfunction statusColor(status: string): \"green\" | \"yellow\" | \"red\" | undefined {\n if (status === \"validated\") return \"green\";\n if (status === \"proposed\" || status === \"stale\") return \"yellow\";\n if (status === \"rejected\") return \"red\";\n return undefined;\n}\n\ninterface Props { root: string; }\n\nexport function Dashboard({ root }: Props) {\n const { exit } = useApp();\n const paths = resolveHaivePaths(root);\n\n const [screen, setScreen] = useState<Screen>(\"memories\");\n const [memories, setMemories] = useState<LoadedMemory[]>([]);\n const [usage, setUsage] = useState<UsageIndex>({ version: 1, updated_at: \"\", by_id: {} });\n const [loading, setLoading] = useState(true);\n const [filterIdx, setFilterIdx] = useState(0);\n const [cursor, setCursor] = useState(0);\n const [flash, setFlash] = useState<{ text: string; color: \"green\" | \"red\" | \"yellow\" } | null>(null);\n\n const filter: FilterStatus = FILTERS[filterIdx] ?? \"all\";\n\n const reload = useCallback(async () => {\n setLoading(true);\n const [mems, u] = await Promise.all([\n existsSync(paths.memoriesDir) ? loadMemoriesFromDir(paths.memoriesDir) : Promise.resolve([]),\n loadUsageIndex(paths),\n ]);\n setMemories(mems);\n setUsage(u);\n setLoading(false);\n }, [paths.memoriesDir]);\n\n useEffect(() => { void reload(); }, [reload]);\n\n // ── Derived data ──────────────────────────────────────────────────────\n const nonRecap = memories.filter((m) => m.memory.frontmatter.type !== \"session_recap\");\n\n const filtered = nonRecap.filter((m) => {\n const s = m.memory.frontmatter.status;\n if (filter === \"all\") return s !== \"rejected\";\n return s === filter;\n });\n\n const staleMemories = nonRecap.filter((m) => m.memory.frontmatter.status === \"stale\");\n const anchorless = nonRecap.filter(\n (m) =>\n m.memory.frontmatter.anchor.paths.length === 0 &&\n m.memory.frontmatter.anchor.symbols.length === 0 &&\n m.memory.frontmatter.status !== \"rejected\",\n );\n const pending = nonRecap.filter((m) => m.memory.frontmatter.status === \"proposed\");\n\n // Top-5 by read_count\n const topRead = [...nonRecap]\n .map((m) => ({ m, u: getUsage(usage, m.memory.frontmatter.id) }))\n .filter(({ u }) => u.read_count > 0)\n .sort((a, b) => b.u.read_count - a.u.read_count)\n .slice(0, 5);\n\n // Decaying memories\n const decaying = nonRecap.filter(({ memory: mem }) => {\n const u = getUsage(usage, mem.frontmatter.id);\n return isDecaying(u, mem.frontmatter.created_at);\n });\n\n const selected = filtered[cursor];\n\n const counts = nonRecap.reduce<Record<string, number>>((acc, m) => {\n acc[m.memory.frontmatter.status] = (acc[m.memory.frontmatter.status] ?? 0) + 1;\n return acc;\n }, {});\n\n const flash_ = (text: string, color: \"green\" | \"red\" | \"yellow\" = \"green\") => {\n setFlash({ text, color });\n setTimeout(() => setFlash(null), 2500);\n };\n\n // ── Actions ───────────────────────────────────────────────────────────\n const doStatusChange = useCallback(async (newStatus: \"validated\" | \"rejected\") => {\n if (!selected) return;\n const fm = selected.memory.frontmatter;\n if (fm.status === newStatus) { flash_(`Already ${newStatus}`, \"yellow\"); return; }\n await writeFile(\n selected.filePath,\n serializeMemory({ frontmatter: { ...fm, status: newStatus }, body: selected.memory.body }),\n \"utf8\",\n );\n const label = newStatus === \"validated\" ? \"✓ Approved\" : \"✗ Rejected\";\n const color = newStatus === \"validated\" ? \"green\" : \"red\";\n flash_(`${label}: ${fm.id.slice(0, 40)}`, color);\n const prev = cursor;\n await reload();\n setCursor(Math.min(prev, Math.max(0, filtered.length - 2)));\n }, [selected, cursor, filtered.length, reload]);\n\n // Promote = move personal → team (scope change) + set status proposed\n const doPromote = useCallback(async () => {\n if (!selected) return;\n const fm = selected.memory.frontmatter;\n if (fm.scope === \"team\") { flash_(\"Already team scope\", \"yellow\"); return; }\n const teamDir = path.join(path.dirname(path.dirname(selected.filePath)), \"team\");\n const newFilePath = path.join(teamDir, path.basename(selected.filePath));\n const { mkdir } = await import(\"node:fs/promises\");\n await mkdir(teamDir, { recursive: true });\n await writeFile(\n newFilePath,\n serializeMemory({\n frontmatter: { ...fm, scope: \"team\" as const, status: \"proposed\" as const },\n body: selected.memory.body,\n }),\n \"utf8\",\n );\n await unlink(selected.filePath);\n flash_(`↑ Promoted to team: ${fm.id.slice(0, 36)}`, \"yellow\");\n await reload();\n setCursor((c) => Math.max(0, c - 1));\n }, [selected, reload]);\n\n const doDelete = useCallback(async () => {\n if (!selected) return;\n const fm = selected.memory.frontmatter;\n await unlink(selected.filePath);\n flash_(`🗑 Deleted: ${fm.id.slice(0, 40)}`, \"red\");\n await reload();\n setCursor((c) => Math.max(0, c - 1));\n }, [selected, reload]);\n\n useInput((input, key) => {\n if (input === \"q\") { exit(); return; }\n if (input === \"1\") { setScreen(\"memories\"); setCursor(0); return; }\n if (input === \"2\") { setScreen(\"health\"); return; }\n if (input === \"3\") { setScreen(\"stats\"); return; }\n\n if (screen === \"memories\") {\n if (key.upArrow) setCursor((c) => Math.max(0, c - 1));\n if (key.downArrow) setCursor((c) => Math.min(filtered.length - 1, c + 1));\n if (key.tab) { setFilterIdx((i) => (i + 1) % FILTERS.length); setCursor(0); }\n if (input === \"a\") void doStatusChange(\"validated\");\n if (input === \"r\") void doStatusChange(\"rejected\");\n if (input === \"p\") void doPromote();\n if (input === \"d\") void doDelete();\n }\n });\n\n if (loading) return <Text dimColor>Loading memories…</Text>;\n if (!existsSync(paths.memoriesDir)) {\n return <Text color=\"red\">No .ai/memories found — run `haive init` first.</Text>;\n }\n\n // ── Header (shared) ───────────────────────────────────────────────────\n const v = counts[\"validated\"] ?? 0;\n const p = counts[\"proposed\"] ?? 0;\n const d = counts[\"draft\"] ?? 0;\n const st = counts[\"stale\"] ?? 0;\n const rej = counts[\"rejected\"] ?? 0;\n\n const Header = () => (\n <Box borderStyle=\"round\" paddingX={1} gap={2}>\n <Text bold color=\"cyan\">hAIve</Text>\n <Text dimColor>{root.length > 40 ? \"…\" + root.slice(-38) : root}</Text>\n <Text> </Text>\n <Text color=\"green\">✓ {v}</Text>\n <Text color={p > 0 ? \"yellow\" : undefined}> ~ {p}</Text>\n <Text dimColor> · {d}</Text>\n {st > 0 && <Text color=\"yellow\"> ⚠ {st}</Text>}\n {rej > 0 && <Text color=\"red\"> ✗ {rej}</Text>}\n </Box>\n );\n\n const ScreenTabs = () => (\n <Box paddingX={1} gap={3} marginBottom={0}>\n {([\"memories\", \"health\", \"stats\"] as Screen[]).map((s, i) => (\n <Text key={s} color={screen === s ? \"cyan\" : undefined} bold={screen === s}>\n [{i + 1}] {screen === s ? `[${s}]` : s}\n </Text>\n ))}\n <Text dimColor> [q] quit</Text>\n </Box>\n );\n\n const FlashBar = () => flash\n ? <Box paddingX={1}><Text color={flash.color}>{flash.text}</Text></Box>\n : null;\n\n // ── Screen: Memories ─────────────────────────────────────────────────\n if (screen === \"memories\") {\n const half = Math.floor(LIST_H / 2);\n const start = Math.max(0, Math.min(cursor - half, Math.max(0, filtered.length - LIST_H)));\n const visible = filtered.slice(start, start + LIST_H);\n\n return (\n <Box flexDirection=\"column\">\n <Header />\n <ScreenTabs />\n\n {/* Filter bar */}\n <Box paddingX={1} gap={2} marginBottom={0}>\n {FILTERS.map((f) => (\n <Text key={f} color={filter === f ? \"cyan\" : undefined} bold={filter === f}>\n {filter === f ? `[${f}]` : f}\n </Text>\n ))}\n <Text dimColor> [tab] cycle</Text>\n </Box>\n\n {/* List + Preview */}\n <Box>\n <Box flexDirection=\"column\" width={64} borderStyle=\"single\" paddingX={1}>\n <Text bold dimColor>{`MEMORIES ${filtered.length}/${nonRecap.length}`}</Text>\n {filtered.length === 0 ? (\n <Text dimColor> (no memories in this filter)</Text>\n ) : (\n visible.map((m, vi) => {\n const absIdx = start + vi;\n const fm = m.memory.frontmatter;\n const sel = absIdx === cursor;\n const idShort = fm.id.length > 43 ? fm.id.slice(0, 40) + \"…\" : fm.id;\n return (\n <Box key={fm.id}>\n <Text color={sel ? \"cyan\" : undefined} bold={sel}>\n {sel ? \"▶ \" : \" \"}\n {idShort.padEnd(43)}\n </Text>\n <Text color={statusColor(fm.status)}>{fm.status.slice(0, 9)}</Text>\n </Box>\n );\n })\n )}\n </Box>\n\n {/* Preview */}\n <Box flexDirection=\"column\" width={40} borderStyle=\"single\" paddingX={1}>\n <Text bold dimColor>PREVIEW</Text>\n {selected ? (\n <>\n <Text bold>{selected.memory.frontmatter.id.slice(0, 36)}</Text>\n <Text color=\"cyan\">\n {selected.memory.frontmatter.scope}/{selected.memory.frontmatter.type}\n {selected.memory.frontmatter.module ? ` [${selected.memory.frontmatter.module}]` : \"\"}\n </Text>\n <Text color={statusColor(selected.memory.frontmatter.status)}>\n {selected.memory.frontmatter.status}\n {selected.memory.frontmatter.revision_count ? ` (rev ${selected.memory.frontmatter.revision_count})` : \"\"}\n </Text>\n <Text dimColor>tags: {selected.memory.frontmatter.tags.slice(0, 5).join(\", \") || \"(none)\"}</Text>\n <Text> </Text>\n {selected.memory.body\n .split(\"\\n\")\n .slice(0, LIST_H - 4)\n .map((line, i) => (\n <Text key={i} wrap=\"truncate-end\">{line || \" \"}</Text>\n ))}\n </>\n ) : (\n <Text dimColor>select a memory</Text>\n )}\n </Box>\n </Box>\n\n <FlashBar />\n <Box paddingX={1}>\n <Text dimColor>↑↓ navigate [tab] filter [a] approve [r] reject [p] promote personal→team [d] delete</Text>\n </Box>\n </Box>\n );\n }\n\n // ── Screen: Health ────────────────────────────────────────────────────\n if (screen === \"health\") {\n return (\n <Box flexDirection=\"column\">\n <Header />\n <ScreenTabs />\n <Box gap={2}>\n\n {/* Stale memories */}\n <Box flexDirection=\"column\" width={40} borderStyle=\"single\" paddingX={1}>\n <Text bold color={staleMemories.length > 0 ? \"yellow\" : \"green\"}>\n ⚠ STALE ({staleMemories.length})\n </Text>\n {staleMemories.length === 0\n ? <Text dimColor> All memories are fresh</Text>\n : staleMemories.slice(0, LIST_H).map((m) => (\n <Text key={m.memory.frontmatter.id} wrap=\"truncate-end\" color=\"yellow\">\n {m.memory.frontmatter.id.slice(0, 36)}\n </Text>\n ))\n }\n {staleMemories.length > LIST_H && (\n <Text dimColor> … +{staleMemories.length - LIST_H} more</Text>\n )}\n </Box>\n\n <Box flexDirection=\"column\" gap={1}>\n {/* Pending review */}\n <Box flexDirection=\"column\" width={44} borderStyle=\"single\" paddingX={1}>\n <Text bold color={pending.length > 0 ? \"yellow\" : \"green\"}>\n ~ PENDING REVIEW ({pending.length})\n </Text>\n {pending.length === 0\n ? <Text dimColor> No memories pending review</Text>\n : pending.slice(0, 6).map((m) => (\n <Text key={m.memory.frontmatter.id} wrap=\"truncate-end\">\n {m.memory.frontmatter.id.slice(0, 40)}\n </Text>\n ))\n }\n </Box>\n\n {/* Anchorless */}\n <Box flexDirection=\"column\" width={44} borderStyle=\"single\" paddingX={1}>\n <Text bold dimColor>⊘ ANCHORLESS ({anchorless.length})</Text>\n <Text dimColor> No paths/symbols — staleness undetectable</Text>\n {anchorless.slice(0, 5).map((m) => (\n <Text key={m.memory.frontmatter.id} wrap=\"truncate-end\" dimColor>\n {m.memory.frontmatter.id.slice(0, 40)}\n </Text>\n ))}\n {anchorless.length > 5 && (\n <Text dimColor> … +{anchorless.length - 5} more</Text>\n )}\n </Box>\n </Box>\n </Box>\n\n <Box paddingX={1} marginTop={1}>\n <Text dimColor>\n Run `haive memory verify --update` to recheck anchors | `haive memory update <id> --paths <files>` to add anchors\n </Text>\n </Box>\n <FlashBar />\n </Box>\n );\n }\n\n // ── Screen: Stats ─────────────────────────────────────────────────────\n return (\n <Box flexDirection=\"column\">\n <Header />\n <ScreenTabs />\n <Box gap={2}>\n\n {/* Top read */}\n <Box flexDirection=\"column\" width={44} borderStyle=\"single\" paddingX={1}>\n <Text bold dimColor>📖 TOP READ MEMORIES</Text>\n {topRead.length === 0\n ? <Text dimColor> No read data yet (use `get_briefing`)</Text>\n : topRead.map(({ m, u }) => (\n <Box key={m.memory.frontmatter.id}>\n <Text wrap=\"truncate-end\">\n {m.memory.frontmatter.id.slice(0, 32).padEnd(32)}\n </Text>\n <Text color=\"cyan\"> ×{u.read_count}</Text>\n </Box>\n ))\n }\n </Box>\n\n <Box flexDirection=\"column\" gap={1}>\n {/* Decaying */}\n <Box flexDirection=\"column\" width={44} borderStyle=\"single\" paddingX={1}>\n <Text bold color={decaying.length > 0 ? \"yellow\" : \"green\"}>\n ⏳ DECAYING (not read in 90d) ({decaying.length})\n </Text>\n {decaying.length === 0\n ? <Text dimColor> All memories are actively used</Text>\n : decaying.slice(0, 5).map((m) => (\n <Text key={m.memory.frontmatter.id} wrap=\"truncate-end\" color=\"yellow\">\n {m.memory.frontmatter.id.slice(0, 40)}\n </Text>\n ))\n }\n </Box>\n\n {/* Memory totals */}\n <Box flexDirection=\"column\" width={44} borderStyle=\"single\" paddingX={1}>\n <Text bold dimColor>📊 MEMORY TOTALS</Text>\n <Text> Validated: <Text color=\"green\">{v}</Text></Text>\n <Text> Proposed: <Text color=\"yellow\">{p}</Text></Text>\n <Text> Draft: <Text dimColor>{d}</Text></Text>\n <Text> Stale: <Text color=\"yellow\">{st}</Text></Text>\n <Text> Rejected: <Text color=\"red\">{rej}</Text></Text>\n <Text> Total: <Text bold>{nonRecap.length}</Text></Text>\n </Box>\n </Box>\n </Box>\n <FlashBar />\n </Box>\n );\n}\n"],"mappings":";;;AAAA,SAAS,UAAU,WAAW,mBAAmB;AACjD,SAAS,KAAK,MAAM,UAAU,cAAc;AAC5C,SAAS,kBAAkB;AAC3B,SAAS,WAAW,cAAc;AAClC,OAAO,UAAU;AACjB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AAyJe,SA0FR,UA1FQ,KAiBhB,YAjBgB;AArJtB,IAAM,UAA0B,CAAC,OAAO,SAAS,YAAY,aAAa,SAAS,UAAU;AAC7F,IAAM,SAAS;AAEf,SAAS,YAAY,QAAwD;AAC3E,MAAI,WAAW,YAAa,QAAO;AACnC,MAAI,WAAW,cAAc,WAAW,QAAS,QAAO;AACxD,MAAI,WAAW,WAAY,QAAO;AAClC,SAAO;AACT;AAIO,SAAS,UAAU,EAAE,KAAK,GAAU;AACzC,QAAM,EAAE,KAAK,IAAI,OAAO;AACxB,QAAM,QAAQ,kBAAkB,IAAI;AAEpC,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAiB,UAAU;AACvD,QAAM,CAAC,UAAU,WAAW,IAAI,SAAyB,CAAC,CAAC;AAC3D,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAqB,EAAE,SAAS,GAAG,YAAY,IAAI,OAAO,CAAC,EAAE,CAAC;AACxF,QAAM,CAAC,SAAS,UA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