agent-knowledge 1.0.10 → 1.0.12

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/docs/DASHBOARD.md CHANGED
@@ -1,133 +1,133 @@
1
- # Dashboard
2
-
3
- The dashboard runs at **http://localhost:3423** and auto-starts with the MCP server.
4
-
5
- ## Tabs
6
-
7
- | Tab | Purpose |
8
- | ------------- | --------------------------------------------------------------- |
9
- | **Knowledge** | Browse knowledge base entries by category |
10
- | **Search** | TF-IDF ranked search across session transcripts |
11
- | **Sessions** | Browse and read session conversation logs |
12
- | **Recall** | Scoped search (errors, plans, configs, tools, files, decisions) |
13
-
14
- ## Knowledge Tab
15
-
16
- Card grid of knowledge entries. Each card shows:
17
-
18
- - Category badge with color: projects (blue), people (purple), decisions (orange), workflows (green), notes (yellow)
19
- - Title and tag pills
20
- - Last updated date
21
-
22
- Category filter chips at the top: All, Projects, People, Decisions, Workflows, Notes.
23
-
24
- Click a card to open the side panel with rendered markdown content.
25
-
26
- ## Search Tab
27
-
28
- Full-text search across all session transcripts.
29
-
30
- **Controls:**
31
-
32
- - Search input with debounce (300ms)
33
- - Role filter chips: All, User, Assistant
34
- - Mode toggle: Ranked (TF-IDF) vs Regex
35
-
36
- **Results show:**
37
-
38
- - Role badge (user/assistant)
39
- - Project name
40
- - Relative timestamp
41
- - Score bar with numeric value
42
- - Excerpt with highlighted matching terms
43
-
44
- Click a result to open the session in the side panel.
45
-
46
- ## Sessions Tab
47
-
48
- Lists all Claude Code sessions with metadata:
49
-
50
- - Project name
51
- - Git branch
52
- - Message count
53
- - Date
54
- - Preview of first user message
55
-
56
- Project filter dropdown at the top.
57
-
58
- Click a session to open the side panel with the full conversation rendered as chat bubbles.
59
-
60
- ## Recall Tab
61
-
62
- Scoped search that pre-filters results by category:
63
-
64
- | Scope | What it finds |
65
- | ----------- | ----------------------------------------- |
66
- | `errors` | Stack traces, exceptions, failed commands |
67
- | `plans` | Architecture, TODOs, implementation steps |
68
- | `configs` | Settings, env vars, configuration files |
69
- | `tools` | MCP tool calls, CLI commands |
70
- | `files` | File paths, modifications |
71
- | `decisions` | Trade-offs, rationale, choices |
72
-
73
- Results use the same format as the Search tab.
74
-
75
- ## Side Panel
76
-
77
- - Width: 560px, resizable by dragging the left edge
78
- - Close: X button or press Escape
79
- - Knowledge entries: rendered as markdown via marked + DOMPurify + highlight.js
80
- - Sessions: chat bubbles (user = right/accent, assistant = left/surface)
81
-
82
- ## Theming
83
-
84
- - Toggle: sun/moon button in header
85
- - Persisted in `localStorage('agent-knowledge-theme')`
86
- - MD3 design tokens matching agent-comm and agent-tasks dashboards
87
- - CSS custom properties on `:root`, switched via `data-theme` attribute
88
-
89
- ## Live Reload
90
-
91
- File watcher monitors `src/ui/` for `.html`, `.css`, `.js` changes. On change, broadcasts `{type: "reload"}` via WebSocket. Connected browsers auto-refresh.
92
-
93
- ## Keyboard Shortcuts
94
-
95
- | Shortcut | Action |
96
- | --------------- | ------------------ |
97
- | `/` or `Ctrl+K` | Focus search input |
98
- | `Escape` | Close side panel |
99
-
100
- ## REST API
101
-
102
- | Method | Endpoint | Description |
103
- | ------ | --------------------------------------- | ---------------- |
104
- | GET | `/api/knowledge` | List entries |
105
- | GET | `/api/knowledge/search?q=` | Search knowledge |
106
- | GET | `/api/knowledge/:path` | Read entry |
107
- | GET | `/api/sessions` | List sessions |
108
- | GET | `/api/sessions/search?q=&role=&ranked=` | Search sessions |
109
- | GET | `/api/sessions/recall?scope=&q=` | Scoped recall |
110
- | GET | `/api/sessions/:id` | Read session |
111
- | GET | `/api/sessions/:id/summary` | Session summary |
112
- | GET | `/health` | Health check |
113
-
114
- ## WebSocket
115
-
116
- Connects to `ws://localhost:3423` on page load.
117
-
118
- **State message** (on connect):
119
-
120
- ```json
121
- {
122
- "type": "state",
123
- "knowledge": [...],
124
- "sessions": [...],
125
- "stats": { "knowledge_entries": 12, "session_count": 247 }
126
- }
127
- ```
128
-
129
- **Reload message** (on file change):
130
-
131
- ```json
132
- { "type": "reload" }
133
- ```
1
+ # Dashboard
2
+
3
+ The dashboard runs at **http://localhost:3423** and auto-starts with the MCP server.
4
+
5
+ ## Tabs
6
+
7
+ | Tab | Purpose |
8
+ | ------------- | --------------------------------------------------------------- |
9
+ | **Knowledge** | Browse knowledge base entries by category |
10
+ | **Search** | TF-IDF ranked search across session transcripts |
11
+ | **Sessions** | Browse and read session conversation logs |
12
+ | **Recall** | Scoped search (errors, plans, configs, tools, files, decisions) |
13
+
14
+ ## Knowledge Tab
15
+
16
+ Card grid of knowledge entries. Each card shows:
17
+
18
+ - Category badge with color: projects (blue), people (purple), decisions (orange), workflows (green), notes (yellow)
19
+ - Title and tag pills
20
+ - Last updated date
21
+
22
+ Category filter chips at the top: All, Projects, People, Decisions, Workflows, Notes.
23
+
24
+ Click a card to open the side panel with rendered markdown content.
25
+
26
+ ## Search Tab
27
+
28
+ Full-text search across all session transcripts.
29
+
30
+ **Controls:**
31
+
32
+ - Search input with debounce (300ms)
33
+ - Role filter chips: All, User, Assistant
34
+ - Mode toggle: Ranked (TF-IDF) vs Regex
35
+
36
+ **Results show:**
37
+
38
+ - Role badge (user/assistant)
39
+ - Project name
40
+ - Relative timestamp
41
+ - Score bar with numeric value
42
+ - Excerpt with highlighted matching terms
43
+
44
+ Click a result to open the session in the side panel.
45
+
46
+ ## Sessions Tab
47
+
48
+ Lists all Claude Code sessions with metadata:
49
+
50
+ - Project name
51
+ - Git branch
52
+ - Message count
53
+ - Date
54
+ - Preview of first user message
55
+
56
+ Project filter dropdown at the top.
57
+
58
+ Click a session to open the side panel with the full conversation rendered as chat bubbles.
59
+
60
+ ## Recall Tab
61
+
62
+ Scoped search that pre-filters results by category:
63
+
64
+ | Scope | What it finds |
65
+ | ----------- | ----------------------------------------- |
66
+ | `errors` | Stack traces, exceptions, failed commands |
67
+ | `plans` | Architecture, TODOs, implementation steps |
68
+ | `configs` | Settings, env vars, configuration files |
69
+ | `tools` | MCP tool calls, CLI commands |
70
+ | `files` | File paths, modifications |
71
+ | `decisions` | Trade-offs, rationale, choices |
72
+
73
+ Results use the same format as the Search tab.
74
+
75
+ ## Side Panel
76
+
77
+ - Width: 560px, resizable by dragging the left edge
78
+ - Close: X button or press Escape
79
+ - Knowledge entries: rendered as markdown via marked + DOMPurify + highlight.js
80
+ - Sessions: chat bubbles (user = right/accent, assistant = left/surface)
81
+
82
+ ## Theming
83
+
84
+ - Toggle: sun/moon button in header
85
+ - Persisted in `localStorage('agent-knowledge-theme')`
86
+ - MD3 design tokens matching agent-comm and agent-tasks dashboards
87
+ - CSS custom properties on `:root`, switched via `data-theme` attribute
88
+
89
+ ## Live Reload
90
+
91
+ File watcher monitors `src/ui/` for `.html`, `.css`, `.js` changes. On change, broadcasts `{type: "reload"}` via WebSocket. Connected browsers auto-refresh.
92
+
93
+ ## Keyboard Shortcuts
94
+
95
+ | Shortcut | Action |
96
+ | --------------- | ------------------ |
97
+ | `/` or `Ctrl+K` | Focus search input |
98
+ | `Escape` | Close side panel |
99
+
100
+ ## REST API
101
+
102
+ | Method | Endpoint | Description |
103
+ | ------ | --------------------------------------- | ---------------- |
104
+ | GET | `/api/knowledge` | List entries |
105
+ | GET | `/api/knowledge/search?q=` | Search knowledge |
106
+ | GET | `/api/knowledge/:path` | Read entry |
107
+ | GET | `/api/sessions` | List sessions |
108
+ | GET | `/api/sessions/search?q=&role=&ranked=` | Search sessions |
109
+ | GET | `/api/sessions/recall?scope=&q=` | Scoped recall |
110
+ | GET | `/api/sessions/:id` | Read session |
111
+ | GET | `/api/sessions/:id/summary` | Session summary |
112
+ | GET | `/health` | Health check |
113
+
114
+ ## WebSocket
115
+
116
+ Connects to `ws://localhost:3423` on page load.
117
+
118
+ **State message** (on connect):
119
+
120
+ ```json
121
+ {
122
+ "type": "state",
123
+ "knowledge": [...],
124
+ "sessions": [...],
125
+ "stats": { "knowledge_entries": 12, "session_count": 247 }
126
+ }
127
+ ```
128
+
129
+ **Reload message** (on file change):
130
+
131
+ ```json
132
+ { "type": "reload" }
133
+ ```