neuralbrain 0.0.1 → 0.1.0
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/.env.example +2 -2
- package/README.md +19 -4
- package/dist/ai/chat.d.ts +1 -2
- package/dist/ai/chat.d.ts.map +1 -1
- package/dist/ai/chat.js +1 -2
- package/dist/ai/chat.js.map +1 -1
- package/dist/ai/config.d.ts +1 -1
- package/dist/ai/config.js +2 -2
- package/dist/ai/config.js.map +1 -1
- package/dist/app.d.ts +1 -0
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +417 -50
- package/dist/app.js.map +1 -1
- package/dist/cli.d.ts +53 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +437 -37
- package/dist/cli.js.map +1 -1
- package/dist/consolidation/candidates.d.ts.map +1 -1
- package/dist/consolidation/candidates.js +19 -4
- package/dist/consolidation/candidates.js.map +1 -1
- package/dist/consolidation/fixtures.js +1 -1
- package/dist/consolidation/fixtures.js.map +1 -1
- package/dist/consolidation/gate.d.ts.map +1 -1
- package/dist/consolidation/gate.js +145 -109
- package/dist/consolidation/gate.js.map +1 -1
- package/dist/consolidation/runner.d.ts +6 -0
- package/dist/consolidation/runner.d.ts.map +1 -1
- package/dist/consolidation/runner.js +22 -2
- package/dist/consolidation/runner.js.map +1 -1
- package/dist/dashboard/clientScript.d.ts +1 -1
- package/dist/dashboard/clientScript.d.ts.map +1 -1
- package/dist/dashboard/clientScript.js +3774 -905
- package/dist/dashboard/clientScript.js.map +1 -1
- package/dist/dashboard/html.d.ts.map +1 -1
- package/dist/dashboard/html.js +605 -101
- package/dist/dashboard/html.js.map +1 -1
- package/dist/dashboard/styles.d.ts +1 -1
- package/dist/dashboard/styles.d.ts.map +1 -1
- package/dist/dashboard/styles.js +1591 -359
- package/dist/dashboard/styles.js.map +1 -1
- package/dist/learning/embedWorker.d.ts +13 -0
- package/dist/learning/embedWorker.d.ts.map +1 -1
- package/dist/learning/embedWorker.js +329 -59
- package/dist/learning/embedWorker.js.map +1 -1
- package/dist/learning/embedding.d.ts +1 -0
- package/dist/learning/embedding.d.ts.map +1 -1
- package/dist/learning/embedding.js +101 -26
- package/dist/learning/embedding.js.map +1 -1
- package/dist/learning/engine.js +1 -1
- package/dist/learning/engine.js.map +1 -1
- package/dist/learning/search.d.ts +17 -1
- package/dist/learning/search.d.ts.map +1 -1
- package/dist/learning/search.js +2094 -354
- package/dist/learning/search.js.map +1 -1
- package/dist/learning/storeMeta.d.ts +9 -0
- package/dist/learning/storeMeta.d.ts.map +1 -1
- package/dist/learning/storeMeta.js +30 -24
- package/dist/learning/storeMeta.js.map +1 -1
- package/dist/learning/types.d.ts +57 -8
- package/dist/learning/types.d.ts.map +1 -1
- package/dist/lib/condenser.d.ts +112 -0
- package/dist/lib/condenser.d.ts.map +1 -0
- package/dist/lib/condenser.js +1337 -0
- package/dist/lib/condenser.js.map +1 -0
- package/dist/lib/db.d.ts +10 -0
- package/dist/lib/db.d.ts.map +1 -1
- package/dist/lib/db.js +654 -167
- package/dist/lib/db.js.map +1 -1
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/logger.js +3 -2
- package/dist/lib/logger.js.map +1 -1
- package/dist/lib/projectSlug.d.ts +12 -5
- package/dist/lib/projectSlug.d.ts.map +1 -1
- package/dist/lib/projectSlug.js +62 -23
- package/dist/lib/projectSlug.js.map +1 -1
- package/dist/lib/recurrence.d.ts +16 -0
- package/dist/lib/recurrence.d.ts.map +1 -0
- package/dist/lib/recurrence.js +293 -0
- package/dist/lib/recurrence.js.map +1 -0
- package/dist/lib/scope.d.ts +36 -1
- package/dist/lib/scope.d.ts.map +1 -1
- package/dist/lib/scope.js +183 -19
- package/dist/lib/scope.js.map +1 -1
- package/dist/lib/signalTags.d.ts +39 -0
- package/dist/lib/signalTags.d.ts.map +1 -0
- package/dist/lib/signalTags.js +203 -0
- package/dist/lib/signalTags.js.map +1 -0
- package/dist/lib/spool.d.ts +2 -0
- package/dist/lib/spool.d.ts.map +1 -1
- package/dist/lib/spool.js +176 -65
- package/dist/lib/spool.js.map +1 -1
- package/dist/lib/storeDiagnostics.d.ts +41 -0
- package/dist/lib/storeDiagnostics.d.ts.map +1 -0
- package/dist/lib/storeDiagnostics.js +148 -0
- package/dist/lib/storeDiagnostics.js.map +1 -0
- package/dist/lib/temporal.d.ts +44 -0
- package/dist/lib/temporal.d.ts.map +1 -0
- package/dist/lib/temporal.js +1063 -0
- package/dist/lib/temporal.js.map +1 -0
- package/dist/mcp/server.d.ts +93 -3
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +499 -68
- package/dist/mcp/server.js.map +1 -1
- package/dist/memory/actionStore.d.ts +94 -3
- package/dist/memory/actionStore.d.ts.map +1 -1
- package/dist/memory/actionStore.js +412 -124
- package/dist/memory/actionStore.js.map +1 -1
- package/dist/memory/deadLetterStore.d.ts.map +1 -1
- package/dist/memory/deadLetterStore.js +4 -2
- package/dist/memory/deadLetterStore.js.map +1 -1
- package/dist/memory/embedQueueStore.d.ts +19 -8
- package/dist/memory/embedQueueStore.d.ts.map +1 -1
- package/dist/memory/embedQueueStore.js +55 -25
- package/dist/memory/embedQueueStore.js.map +1 -1
- package/dist/memory/failurePatternStore.d.ts +17 -1
- package/dist/memory/failurePatternStore.d.ts.map +1 -1
- package/dist/memory/failurePatternStore.js +54 -31
- package/dist/memory/failurePatternStore.js.map +1 -1
- package/dist/memory/graphStore.d.ts +133 -3
- package/dist/memory/graphStore.d.ts.map +1 -1
- package/dist/memory/graphStore.js +980 -155
- package/dist/memory/graphStore.js.map +1 -1
- package/dist/memory/noteStore.d.ts +27 -2
- package/dist/memory/noteStore.d.ts.map +1 -1
- package/dist/memory/noteStore.js +89 -26
- package/dist/memory/noteStore.js.map +1 -1
- package/dist/memory/observationStore.d.ts +11 -1
- package/dist/memory/observationStore.d.ts.map +1 -1
- package/dist/memory/observationStore.js +90 -15
- package/dist/memory/observationStore.js.map +1 -1
- package/dist/memory/projectRename.d.ts.map +1 -1
- package/dist/memory/projectRename.js +5 -1
- package/dist/memory/projectRename.js.map +1 -1
- package/dist/memory/rollupSweeper.d.ts.map +1 -1
- package/dist/memory/rollupSweeper.js +43 -23
- package/dist/memory/rollupSweeper.js.map +1 -1
- package/dist/memory/sessionStore.d.ts +25 -7
- package/dist/memory/sessionStore.d.ts.map +1 -1
- package/dist/memory/sessionStore.js +145 -33
- package/dist/memory/sessionStore.js.map +1 -1
- package/dist/memory/trajectoryStore.d.ts +8 -0
- package/dist/memory/trajectoryStore.d.ts.map +1 -1
- package/dist/memory/trajectoryStore.js +196 -130
- package/dist/memory/trajectoryStore.js.map +1 -1
- package/dist/middleware/rateLimiter.d.ts.map +1 -1
- package/dist/middleware/rateLimiter.js +24 -1
- package/dist/middleware/rateLimiter.js.map +1 -1
- package/dist/routes/dashboard.d.ts.map +1 -1
- package/dist/routes/dashboard.js +181 -8
- package/dist/routes/dashboard.js.map +1 -1
- package/dist/routes/mcp.d.ts.map +1 -1
- package/dist/routes/mcp.js +173 -21
- package/dist/routes/mcp.js.map +1 -1
- package/dist/routes/memories.js +9 -1
- package/dist/routes/memories.js.map +1 -1
- package/dist/scripts/doctor.d.ts +26 -2
- package/dist/scripts/doctor.d.ts.map +1 -1
- package/dist/scripts/doctor.js +371 -259
- package/dist/scripts/doctor.js.map +1 -1
- package/dist/scripts/installAgent.d.ts.map +1 -1
- package/dist/scripts/installAgent.js +101 -19
- package/dist/scripts/installAgent.js.map +1 -1
- package/dist/scripts/migrateAgentMemory.js +2 -2
- package/dist/scripts/smokeTest.js +1 -1
- package/dist/scripts/smokeTest.js.map +1 -1
- package/docker-compose.yml +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +3 -2
- package/plugin/hooks/postToolUse.js +155 -50
- package/plugin/hooks/sessionStart.js +179 -27
- package/plugin/hooks/sessionStop.js +152 -37
- package/plugin/plugin.json +1 -1
- package/plugin/rules/AGENTS.md +10 -8
- package/plugin/skills/brain-memory/REFERENCE.md +15 -14
- package/plugin/skills/brain-memory/SKILL.md +2 -2
- package/plugin/skills/digest/SKILL.md +1 -1
- package/plugin/skills/handoff/SKILL.md +1 -1
- package/plugin/skills/save/SKILL.md +2 -2
- package/plugin/skills/search/SKILL.md +2 -2
- package/src/ai/chat.ts +1 -2
- package/src/ai/config.ts +2 -2
- package/src/app.ts +475 -54
- package/src/cli.ts +500 -38
- package/src/consolidation/candidates.ts +22 -4
- package/src/consolidation/fixtures.ts +1 -1
- package/src/consolidation/gate.ts +177 -140
- package/src/consolidation/runner.ts +26 -2
- package/src/dashboard/clientScript.ts +3774 -905
- package/src/dashboard/html.ts +605 -101
- package/src/dashboard/styles.ts +1591 -359
- package/src/learning/embedWorker.ts +350 -70
- package/src/learning/embedding.ts +141 -28
- package/src/learning/engine.ts +1 -1
- package/src/learning/search.ts +2533 -397
- package/src/learning/storeMeta.ts +36 -29
- package/src/learning/types.ts +66 -8
- package/src/lib/condenser.ts +1515 -0
- package/src/lib/db.ts +690 -171
- package/src/lib/logger.ts +4 -2
- package/src/lib/projectSlug.ts +77 -23
- package/src/lib/recurrence.ts +382 -0
- package/src/lib/scope.ts +220 -22
- package/src/lib/signalTags.ts +257 -0
- package/src/lib/spool.ts +181 -71
- package/src/lib/storeDiagnostics.ts +181 -0
- package/src/lib/temporal.ts +1250 -0
- package/src/mcp/server.ts +559 -88
- package/src/memory/actionStore.ts +642 -171
- package/src/memory/deadLetterStore.ts +4 -2
- package/src/memory/embedQueueStore.ts +63 -27
- package/src/memory/failurePatternStore.ts +84 -31
- package/src/memory/graphStore.ts +1396 -215
- package/src/memory/noteStore.ts +151 -30
- package/src/memory/observationStore.ts +117 -17
- package/src/memory/projectRename.ts +6 -2
- package/src/memory/rollupSweeper.ts +46 -23
- package/src/memory/sessionStore.ts +197 -38
- package/src/memory/trajectoryStore.ts +260 -140
- package/src/middleware/rateLimiter.ts +24 -1
- package/src/routes/dashboard.ts +194 -9
- package/src/routes/mcp.ts +185 -26
- package/src/routes/memories.ts +8 -1
- package/src/scripts/doctor.ts +461 -262
- package/src/scripts/installAgent.ts +106 -19
- package/src/scripts/migrateAgentMemory.ts +2 -2
- package/src/scripts/smokeTest.ts +1 -1
package/src/dashboard/html.ts
CHANGED
|
@@ -3,32 +3,53 @@ export function getDashboardHtml(): string {
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
|
7
7
|
<title>neuralbrain — Operator Dashboard</title>
|
|
8
8
|
<link rel="stylesheet" href="/dashboard/styles.css">
|
|
9
9
|
<script src="/dashboard/app.js" defer></script>
|
|
10
10
|
</head>
|
|
11
|
-
<body>
|
|
11
|
+
<body class="full-height-section">
|
|
12
12
|
<!-- Loud Mismatch Banner (Active when store_meta mismatches config) -->
|
|
13
13
|
<div id="mismatchBanner" class="warning-banner">
|
|
14
14
|
<div class="warning-banner-text">
|
|
15
|
-
<
|
|
15
|
+
<svg class="icon-svg warning-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
16
|
+
<path d="M12 9v4"></path>
|
|
17
|
+
<path d="M12 17h.01"></path>
|
|
18
|
+
<path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z"></path>
|
|
19
|
+
</svg>
|
|
16
20
|
<div>
|
|
17
21
|
<strong>CRITICAL STORE META MISMATCH:</strong>
|
|
18
22
|
<span id="mismatchReasonText">Configured embedder differs from pinned store_meta. Vector search is disabled (SQL and BM25 remain active).</span>
|
|
19
23
|
</div>
|
|
20
24
|
</div>
|
|
21
|
-
<button id="btnBannerReembed" class="btn btn-rose
|
|
25
|
+
<button id="btnBannerReembed" type="button" class="btn btn-rose btn-solid">
|
|
26
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
27
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
28
|
+
<path d="M3 12a9 9 0 0 1 15-6.7L21 8"></path>
|
|
29
|
+
<path d="M21 3v5h-5"></path>
|
|
30
|
+
<path d="M21 12a9 9 0 0 1-15 6.7L3 16"></path>
|
|
31
|
+
<path d="M8 16H3v5"></path>
|
|
32
|
+
</svg>
|
|
33
|
+
</span>
|
|
34
|
+
<span class="btn-label">Run Atomic Re-embed</span>
|
|
35
|
+
</button>
|
|
22
36
|
</div>
|
|
23
37
|
|
|
24
38
|
<!-- Header & Operator Toolbar -->
|
|
25
39
|
<header class="app-header">
|
|
26
40
|
<div class="header-inner">
|
|
27
41
|
<div class="brand-section">
|
|
28
|
-
<div class="brand-logo">B</div>
|
|
42
|
+
<div class="brand-logo" aria-hidden="true">B</div>
|
|
29
43
|
<div class="brand-info">
|
|
30
|
-
<span class="brand-title">
|
|
31
|
-
|
|
44
|
+
<span class="brand-title balanced-headline">
|
|
45
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
46
|
+
<path d="M12 4a4 4 0 0 0-4 4v8a4 4 0 0 0 8 0V8a4 4 0 0 0-4-4Z"></path>
|
|
47
|
+
<path d="M8 10H5a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h3"></path>
|
|
48
|
+
<path d="M16 10h3a2 2 0 0 1 2 2v1a2 2 0 0 1-2 2h-3"></path>
|
|
49
|
+
</svg>
|
|
50
|
+
neuralbrain
|
|
51
|
+
</span>
|
|
52
|
+
<span class="brand-subtitle">Memory for agents that holds up · Layered and recalled when it counts</span>
|
|
32
53
|
</div>
|
|
33
54
|
</div>
|
|
34
55
|
|
|
@@ -49,62 +70,155 @@ export function getDashboardHtml(): string {
|
|
|
49
70
|
</div>
|
|
50
71
|
|
|
51
72
|
<div class="header-actions">
|
|
73
|
+
<button id="btnCommandMenu" type="button" class="btn" title="Open Command Menu (⌘K / Ctrl+K)">
|
|
74
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
75
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
76
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
77
|
+
<path d="m21 21-4.3-4.3"></path>
|
|
78
|
+
</svg>
|
|
79
|
+
</span>
|
|
80
|
+
<span class="btn-label">Actions</span>
|
|
81
|
+
<kbd class="shortcut-hint">⌘K</kbd>
|
|
82
|
+
</button>
|
|
83
|
+
|
|
52
84
|
<form id="formDashboardApiKey" class="header-auth-form" autocomplete="off">
|
|
53
85
|
<input type="text" name="username" class="sr-only" tabindex="-1" autocomplete="username">
|
|
54
|
-
<input id="inputDashboardApiKey" type="password" class="form-input input-api-key" placeholder="Paste API Key..." autocomplete="current-password" title="Bearer token for operator requests">
|
|
86
|
+
<input id="inputDashboardApiKey" type="password" class="form-input input-api-key" placeholder="Paste API Key..." aria-label="API Key" autocomplete="current-password" title="Bearer token for operator requests">
|
|
55
87
|
<button id="btnSubmitApiKey" type="submit" class="btn btn-primary" title="Authenticate with API key">
|
|
56
|
-
|
|
88
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
89
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
90
|
+
<path d="m21 2-9.6 9.6"></path>
|
|
91
|
+
<circle cx="7.5" cy="15.5" r="5.5"></circle>
|
|
92
|
+
<path d="m15.5 7.5 3 3L22 7l-3-3"></path>
|
|
93
|
+
</svg>
|
|
94
|
+
</span>
|
|
95
|
+
<span class="btn-label">Apply</span>
|
|
57
96
|
</button>
|
|
58
97
|
</form>
|
|
98
|
+
|
|
99
|
+
<div id="otpVerifyContainer" class="otp-input-group hidden" aria-label="One-time verification code">
|
|
100
|
+
<input id="otpPrimaryInput" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" class="otp-digit-input" aria-label="OTP digit 1" placeholder="•">
|
|
101
|
+
<input type="text" inputmode="numeric" maxlength="1" class="otp-digit-input" aria-label="OTP digit 2" placeholder="•">
|
|
102
|
+
<input type="text" inputmode="numeric" maxlength="1" class="otp-digit-input" aria-label="OTP digit 3" placeholder="•">
|
|
103
|
+
<input type="text" inputmode="numeric" maxlength="1" class="otp-digit-input" aria-label="OTP digit 4" placeholder="•">
|
|
104
|
+
<input type="text" inputmode="numeric" maxlength="1" class="otp-digit-input" aria-label="OTP digit 5" placeholder="•">
|
|
105
|
+
<input type="text" inputmode="numeric" maxlength="1" class="otp-digit-input" aria-label="OTP digit 6" placeholder="•">
|
|
106
|
+
</div>
|
|
107
|
+
|
|
59
108
|
<div id="authSessionCluster" class="auth-session-cluster hidden">
|
|
60
109
|
<div id="authSessionBadge" class="badge badge-emerald badge-mono" title="Active authenticated operator session">
|
|
61
110
|
<span class="badge-dot"></span>
|
|
62
111
|
<span id="authSessionText">KEY: Active</span>
|
|
63
112
|
</div>
|
|
64
113
|
<button id="btnLogoutApiKey" type="button" class="btn" title="Log out of dashboard session">
|
|
65
|
-
|
|
114
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
115
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
116
|
+
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
|
|
117
|
+
<polyline points="16 17 21 12 16 7"></polyline>
|
|
118
|
+
<line x1="21" y1="12" x2="9" y2="12"></line>
|
|
119
|
+
</svg>
|
|
120
|
+
</span>
|
|
121
|
+
<span class="btn-label">Log Out</span>
|
|
66
122
|
</button>
|
|
67
123
|
</div>
|
|
68
|
-
<button id="btnGenerateApiKey" class="btn
|
|
69
|
-
|
|
124
|
+
<button id="btnGenerateApiKey" type="button" class="btn" title="Generate and manage client API keys for agents">
|
|
125
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
126
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
127
|
+
<circle cx="7.5" cy="15.5" r="4.5"></circle>
|
|
128
|
+
<path d="m21 2-9.6 9.6"></path>
|
|
129
|
+
<path d="m15.5 7.5 3 3L22 7l-3-3"></path>
|
|
130
|
+
</svg>
|
|
131
|
+
</span>
|
|
132
|
+
<span class="btn-label">+ Generate API Key</span>
|
|
70
133
|
</button>
|
|
71
|
-
<button id="btnDrainEmbed" class="btn" title="Drain pending live embeddings into Qdrant">
|
|
72
|
-
|
|
134
|
+
<button id="btnDrainEmbed" type="button" class="btn" title="Drain pending live embeddings into Qdrant">
|
|
135
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
136
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
137
|
+
<path d="M12 3v12"></path>
|
|
138
|
+
<path d="m7 10 5 5 5-5"></path>
|
|
139
|
+
<path d="M5 21h14"></path>
|
|
140
|
+
</svg>
|
|
141
|
+
</span>
|
|
142
|
+
<span class="btn-label">Drain Embed Queue</span>
|
|
73
143
|
</button>
|
|
74
|
-
<button id="btnCleanup" class="btn" title="Run 30-day archive and 90-day delete retention pass">
|
|
75
|
-
|
|
144
|
+
<button id="btnCleanup" type="button" class="btn" title="Run 30-day archive and 90-day delete retention pass">
|
|
145
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
146
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
147
|
+
<polyline points="3 6 5 6 21 6"></polyline>
|
|
148
|
+
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>
|
|
149
|
+
</svg>
|
|
150
|
+
</span>
|
|
151
|
+
<span class="btn-label">Run Retention Cleanup</span>
|
|
76
152
|
</button>
|
|
77
|
-
<button id="btnRefresh" class="btn" title="Refresh all telemetry and counts">
|
|
78
|
-
|
|
153
|
+
<button id="btnRefresh" type="button" class="btn" title="Refresh all telemetry and counts">
|
|
154
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
155
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
156
|
+
<path d="M21 12a9 9 0 1 1-2.64-6.36"></path>
|
|
157
|
+
<path d="M21 3v6h-6"></path>
|
|
158
|
+
</svg>
|
|
159
|
+
</span>
|
|
160
|
+
<span class="btn-label">Refresh Data</span>
|
|
79
161
|
</button>
|
|
80
162
|
</div>
|
|
81
163
|
</div>
|
|
82
164
|
</header>
|
|
83
165
|
|
|
84
166
|
<!-- Navigation Tabs Bar -->
|
|
85
|
-
<nav class="nav-tabs-bar">
|
|
86
|
-
<div class="nav-tabs-container">
|
|
87
|
-
<button id="tabBtnOverview" class="nav-tab-btn active" data-tab="overview" title="Overview & Memory Layers">
|
|
88
|
-
|
|
167
|
+
<nav class="nav-tabs-bar" aria-label="Dashboard Sections">
|
|
168
|
+
<div class="nav-tabs-container" role="tablist" aria-label="Dashboard Sections">
|
|
169
|
+
<button id="tabBtnOverview" type="button" role="tab" aria-selected="true" aria-controls="paneOverview" class="nav-tab-btn active" data-tab="overview" title="Overview & Memory Layers (⌘1)">
|
|
170
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
171
|
+
<rect x="3" y="3" width="7" height="9" rx="1"></rect>
|
|
172
|
+
<rect x="14" y="3" width="7" height="5" rx="1"></rect>
|
|
173
|
+
<rect x="14" y="12" width="7" height="9" rx="1"></rect>
|
|
174
|
+
<rect x="3" y="16" width="7" height="5" rx="1"></rect>
|
|
175
|
+
</svg>
|
|
176
|
+
<span>Overview</span>
|
|
89
177
|
</button>
|
|
90
|
-
<button id="tabBtnNotes" class="nav-tab-btn" data-tab="notes" title="Notes Explorer & Repair Queue">
|
|
91
|
-
|
|
178
|
+
<button id="tabBtnNotes" type="button" role="tab" aria-selected="false" aria-controls="paneNotes" class="nav-tab-btn" data-tab="notes" title="Notes Explorer & Repair Queue (⌘2)">
|
|
179
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
180
|
+
<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"></path>
|
|
181
|
+
<polyline points="10 2 10 10 13 7 16 10 16 2"></polyline>
|
|
182
|
+
</svg>
|
|
183
|
+
<span>Long Term</span>
|
|
92
184
|
<span id="repairQueueBadge" class="tab-badge">0</span>
|
|
93
185
|
</button>
|
|
94
|
-
<button id="tabBtnShortTerm" class="nav-tab-btn" data-tab="shortTerm" title="Active Sessions & Next Actions">
|
|
95
|
-
|
|
186
|
+
<button id="tabBtnShortTerm" type="button" role="tab" aria-selected="false" aria-controls="paneShortTerm" class="nav-tab-btn" data-tab="shortTerm" title="Active Sessions & Next Actions (⌘3)">
|
|
187
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
188
|
+
<circle cx="12" cy="12" r="10"></circle>
|
|
189
|
+
<polyline points="12 6 12 12 16 14"></polyline>
|
|
190
|
+
</svg>
|
|
191
|
+
<span>Short Term</span>
|
|
96
192
|
</button>
|
|
97
|
-
<button id="tabBtnTrajectories" class="nav-tab-btn" data-tab="trajectories" title="Trajectories, Observations, Summaries & Session Replay">
|
|
98
|
-
|
|
193
|
+
<button id="tabBtnTrajectories" type="button" role="tab" aria-selected="false" aria-controls="paneTrajectories" class="nav-tab-btn" data-tab="trajectories" title="Trajectories, Observations, Summaries & Session Replay (⌘4)">
|
|
194
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
195
|
+
<path d="M22 12h-4l-3 9L9 3l-3 9H2"></path>
|
|
196
|
+
</svg>
|
|
197
|
+
<span>Observations</span>
|
|
99
198
|
</button>
|
|
100
|
-
<button id="tabBtnGraph" class="nav-tab-btn" data-tab="graph" title="Knowledge Graph Explorer">
|
|
101
|
-
|
|
199
|
+
<button id="tabBtnGraph" type="button" role="tab" aria-selected="false" aria-controls="paneGraph" class="nav-tab-btn" data-tab="graph" title="Knowledge Graph Explorer (⌘5)">
|
|
200
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
201
|
+
<circle cx="18" cy="5" r="3"></circle>
|
|
202
|
+
<circle cx="6" cy="12" r="3"></circle>
|
|
203
|
+
<circle cx="18" cy="19" r="3"></circle>
|
|
204
|
+
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
|
|
205
|
+
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
|
|
206
|
+
</svg>
|
|
207
|
+
<span>Graph</span>
|
|
102
208
|
</button>
|
|
103
|
-
<button id="tabBtnSearch" class="nav-tab-btn" data-tab="search" title="Hybrid Search & Push Injection">
|
|
104
|
-
|
|
209
|
+
<button id="tabBtnSearch" type="button" role="tab" aria-selected="false" aria-controls="paneSearch" class="nav-tab-btn" data-tab="search" title="Hybrid Search & Push Injection (⌘6)">
|
|
210
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
211
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
212
|
+
<path d="m21 21-4.3-4.3"></path>
|
|
213
|
+
</svg>
|
|
214
|
+
<span>Search & Inject</span>
|
|
105
215
|
</button>
|
|
106
|
-
<button id="tabBtnConformance" class="nav-tab-btn" data-tab="conformance" title="Failure Patterns, Dead Letters & AI Conformance Doctor">
|
|
107
|
-
|
|
216
|
+
<button id="tabBtnConformance" type="button" role="tab" aria-selected="false" aria-controls="paneConformance" class="nav-tab-btn" data-tab="conformance" title="Failure Patterns, Dead Letters & AI Conformance Doctor (⌘7)">
|
|
217
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
218
|
+
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"></path>
|
|
219
|
+
<path d="m9 12 2 2 4-4"></path>
|
|
220
|
+
</svg>
|
|
221
|
+
<span>System & AI</span>
|
|
108
222
|
</button>
|
|
109
223
|
</div>
|
|
110
224
|
</nav>
|
|
@@ -112,32 +226,44 @@ export function getDashboardHtml(): string {
|
|
|
112
226
|
<!-- Main Application Body -->
|
|
113
227
|
<main class="app-main">
|
|
114
228
|
<!-- Tab 1: Overview & Memory Layers -->
|
|
115
|
-
<section id="paneOverview" class="tab-pane active">
|
|
229
|
+
<section id="paneOverview" class="tab-pane active" role="tabpanel" aria-labelledby="tabBtnOverview">
|
|
116
230
|
<div id="overviewKpiGrid" class="kpi-grid"></div>
|
|
117
231
|
|
|
118
232
|
<!-- Scope Breakdown (Rule 4 Visualization) -->
|
|
119
233
|
<div class="card">
|
|
120
234
|
<div class="card-header">
|
|
121
235
|
<div>
|
|
122
|
-
<h2 class="card-title">
|
|
236
|
+
<h2 class="card-title">
|
|
237
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
238
|
+
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"></path>
|
|
239
|
+
</svg>
|
|
240
|
+
Scope Separation & Rule 4 Telemetry
|
|
241
|
+
</h2>
|
|
123
242
|
<div class="card-subtitle">Explicit scope, never inferred — and "global" is not "unknown"</div>
|
|
124
243
|
</div>
|
|
125
|
-
<button id="btnScopeGoRepair" class="btn
|
|
244
|
+
<button id="btnScopeGoRepair" type="button" class="btn">
|
|
245
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
246
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
247
|
+
<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>
|
|
248
|
+
</svg>
|
|
249
|
+
</span>
|
|
250
|
+
<span class="btn-label">Inspect Repair Queue</span>
|
|
251
|
+
</button>
|
|
126
252
|
</div>
|
|
127
253
|
<div class="scope-bar-container">
|
|
128
254
|
<div id="scopeProgressBar" class="scope-bar"></div>
|
|
129
255
|
<div class="scope-legend">
|
|
130
256
|
<div class="scope-legend-item">
|
|
131
257
|
<span class="badge-dot dot-emerald"></span>
|
|
132
|
-
<span>Project Scoped (<strong id="legendCountProject">0</strong>)</span>
|
|
258
|
+
<span>Project Scoped (<strong id="legendCountProject" class="tabular-nums">0</strong>)</span>
|
|
133
259
|
</div>
|
|
134
260
|
<div class="scope-legend-item">
|
|
135
261
|
<span class="badge-dot dot-cyan"></span>
|
|
136
|
-
<span>Global Scoped (<strong id="legendCountGlobal">0</strong>)</span>
|
|
262
|
+
<span>Global Scoped (<strong id="legendCountGlobal" class="tabular-nums">0</strong>)</span>
|
|
137
263
|
</div>
|
|
138
264
|
<div class="scope-legend-item">
|
|
139
265
|
<span class="badge-dot dot-rose"></span>
|
|
140
|
-
<span>Unknown Scoped — Repair Queue (<strong id="legendCountUnknown">0</strong>)</span>
|
|
266
|
+
<span>Unknown Scoped — Repair Queue (<strong id="legendCountUnknown" class="tabular-nums">0</strong>)</span>
|
|
141
267
|
</div>
|
|
142
268
|
</div>
|
|
143
269
|
</div>
|
|
@@ -148,7 +274,14 @@ export function getDashboardHtml(): string {
|
|
|
148
274
|
<div class="card">
|
|
149
275
|
<div class="card-header">
|
|
150
276
|
<div>
|
|
151
|
-
<h2 class="card-title">
|
|
277
|
+
<h2 class="card-title">
|
|
278
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
279
|
+
<line x1="18" y1="20" x2="18" y2="10"></line>
|
|
280
|
+
<line x1="12" y1="20" x2="12" y2="4"></line>
|
|
281
|
+
<line x1="6" y1="20" x2="6" y2="14"></line>
|
|
282
|
+
</svg>
|
|
283
|
+
Note Type Distribution
|
|
284
|
+
</h2>
|
|
152
285
|
<div class="card-subtitle">Taxonomy from live memory corpus</div>
|
|
153
286
|
</div>
|
|
154
287
|
</div>
|
|
@@ -158,7 +291,15 @@ export function getDashboardHtml(): string {
|
|
|
158
291
|
<div class="card">
|
|
159
292
|
<div class="card-header">
|
|
160
293
|
<div>
|
|
161
|
-
<h2 class="card-title">
|
|
294
|
+
<h2 class="card-title">
|
|
295
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
296
|
+
<line x1="22" y1="12" x2="2" y2="12"></line>
|
|
297
|
+
<path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>
|
|
298
|
+
<line x1="6" y1="16" x2="6.01" y2="16"></line>
|
|
299
|
+
<line x1="10" y1="16" x2="10.01" y2="16"></line>
|
|
300
|
+
</svg>
|
|
301
|
+
Client Spool Telemetry
|
|
302
|
+
</h2>
|
|
162
303
|
<div class="card-subtitle">Local JSONL fallback buffer on transport failure</div>
|
|
163
304
|
</div>
|
|
164
305
|
</div>
|
|
@@ -170,7 +311,12 @@ export function getDashboardHtml(): string {
|
|
|
170
311
|
<div class="card">
|
|
171
312
|
<div class="card-header">
|
|
172
313
|
<div>
|
|
173
|
-
<h2 class="card-title">
|
|
314
|
+
<h2 class="card-title">
|
|
315
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
316
|
+
<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path>
|
|
317
|
+
</svg>
|
|
318
|
+
Discovered Projects Breakdown
|
|
319
|
+
</h2>
|
|
174
320
|
<div class="card-subtitle">Multi-tenant memory layers partitioned across notes, trajectories, and observations</div>
|
|
175
321
|
</div>
|
|
176
322
|
</div>
|
|
@@ -179,21 +325,35 @@ export function getDashboardHtml(): string {
|
|
|
179
325
|
</section>
|
|
180
326
|
|
|
181
327
|
<!-- Tab 2: Hybrid Search & Push Injection Workbench -->
|
|
182
|
-
<section id="paneSearch" class="tab-pane">
|
|
328
|
+
<section id="paneSearch" class="tab-pane" role="tabpanel" aria-labelledby="tabBtnSearch">
|
|
183
329
|
<div class="workbench-grid">
|
|
184
330
|
<!-- Hybrid Search Column -->
|
|
185
331
|
<div class="card">
|
|
186
332
|
<div class="card-header">
|
|
187
333
|
<div>
|
|
188
|
-
<h2 class="card-title">
|
|
334
|
+
<h2 class="card-title">
|
|
335
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
336
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
337
|
+
<path d="m21 21-4.3-4.3"></path>
|
|
338
|
+
</svg>
|
|
339
|
+
Hybrid Retrieval (Dense + BM25 with RRF)
|
|
340
|
+
</h2>
|
|
189
341
|
<div class="card-subtitle">POST /search — Vector similarity plus full-text keyword ranking</div>
|
|
190
342
|
</div>
|
|
191
343
|
</div>
|
|
192
344
|
|
|
193
345
|
<form id="searchForm">
|
|
194
346
|
<div class="search-form-grid">
|
|
195
|
-
<input id="searchInputQ" type="text" class="form-input flex-1" placeholder="Search query (e.g., 'foreign key constraint failed' or 'docker')..." required>
|
|
196
|
-
<button id="btnExecuteSearch" type="button" class="btn btn-primary">
|
|
347
|
+
<input id="searchInputQ" type="text" class="form-input flex-1" placeholder="Search query (e.g., 'foreign key constraint failed' or 'docker')..." aria-label="Search query" required>
|
|
348
|
+
<button id="btnExecuteSearch" type="button" class="btn btn-primary">
|
|
349
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
350
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
351
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
352
|
+
<path d="m21 21-4.3-4.3"></path>
|
|
353
|
+
</svg>
|
|
354
|
+
</span>
|
|
355
|
+
<span class="btn-label">Search Brain</span>
|
|
356
|
+
</button>
|
|
197
357
|
</div>
|
|
198
358
|
|
|
199
359
|
<div class="filter-bar">
|
|
@@ -211,7 +371,7 @@ export function getDashboardHtml(): string {
|
|
|
211
371
|
<label for="searchInputProject" class="text-muted form-label-inline">PROJECT:</label>
|
|
212
372
|
<div id="searchProjectDropdownWrapper" class="searchable-dropdown">
|
|
213
373
|
<input id="searchInputProject" type="text" class="form-input input-w-170-pr" placeholder="All Projects..." autocomplete="off" role="combobox" aria-autocomplete="list" aria-expanded="false">
|
|
214
|
-
<span id="searchProjectDropdownToggle" class="dropdown-chevron" title="Toggle project dropdown">▼</span>
|
|
374
|
+
<span id="searchProjectDropdownToggle" class="dropdown-chevron" role="button" tabindex="0" aria-label="Toggle project dropdown" aria-expanded="false" title="Toggle project dropdown">▼</span>
|
|
215
375
|
<div id="searchProjectDropdownMenu" class="dropdown-menu"></div>
|
|
216
376
|
</div>
|
|
217
377
|
</div>
|
|
@@ -239,14 +399,55 @@ export function getDashboardHtml(): string {
|
|
|
239
399
|
<label for="searchInputFilePath" class="text-muted form-label-inline">FILE:</label>
|
|
240
400
|
<input id="searchInputFilePath" type="text" class="form-input input-w-130" placeholder="path filter">
|
|
241
401
|
</div>
|
|
402
|
+
|
|
403
|
+
<label class="checkbox-label">
|
|
404
|
+
<input id="searchCheckAncestors" type="checkbox" checked>
|
|
405
|
+
<span>include_ancestors</span>
|
|
406
|
+
</label>
|
|
407
|
+
|
|
408
|
+
<label class="checkbox-label">
|
|
409
|
+
<input id="searchCheckChildren" type="checkbox">
|
|
410
|
+
<span>include_children</span>
|
|
411
|
+
</label>
|
|
412
|
+
|
|
413
|
+
<label class="checkbox-label">
|
|
414
|
+
<input id="searchCheckHistory" type="checkbox">
|
|
415
|
+
<span>include_history</span>
|
|
416
|
+
</label>
|
|
417
|
+
|
|
418
|
+
<div class="form-row-inline">
|
|
419
|
+
<label for="searchInputUserId" class="text-muted form-label-inline">USER:</label>
|
|
420
|
+
<input id="searchInputUserId" type="text" class="form-input input-w-130" placeholder="user_id">
|
|
421
|
+
</div>
|
|
422
|
+
|
|
423
|
+
<div class="form-row-inline">
|
|
424
|
+
<label for="searchInputAfter" class="text-muted form-label-inline">AFTER:</label>
|
|
425
|
+
<input id="searchInputAfter" type="text" class="form-input input-w-150" placeholder="ISO date (UTC)">
|
|
426
|
+
</div>
|
|
427
|
+
|
|
428
|
+
<div class="form-row-inline">
|
|
429
|
+
<label for="searchInputBefore" class="text-muted form-label-inline">BEFORE:</label>
|
|
430
|
+
<input id="searchInputBefore" type="text" class="form-input input-w-150" placeholder="ISO date (UTC)">
|
|
431
|
+
</div>
|
|
432
|
+
|
|
433
|
+
<div class="form-row-inline">
|
|
434
|
+
<label for="searchSelectTemporalBias" class="text-muted form-label-inline">TEMPORAL BIAS:</label>
|
|
435
|
+
<select id="searchSelectTemporalBias" class="form-select input-w-130">
|
|
436
|
+
<option value="none" selected>none</option>
|
|
437
|
+
<option value="recent">recent</option>
|
|
438
|
+
<option value="upcoming">upcoming</option>
|
|
439
|
+
</select>
|
|
440
|
+
</div>
|
|
242
441
|
</div>
|
|
243
442
|
|
|
244
|
-
<div class="
|
|
443
|
+
<div class="record-types-selection-bar">
|
|
245
444
|
<span class="text-muted form-label-inline">RECORD TYPES:</span>
|
|
246
|
-
<label class="checkbox-label"><input type="checkbox" id="
|
|
247
|
-
<label class="checkbox-label"><input type="checkbox" id="
|
|
248
|
-
<label class="checkbox-label"><input type="checkbox" id="
|
|
249
|
-
<label class="checkbox-label"><input type="checkbox" id="
|
|
445
|
+
<label class="checkbox-label"><input type="checkbox" id="recordTypeCheckNote" checked> note</label>
|
|
446
|
+
<label class="checkbox-label"><input type="checkbox" id="recordTypeCheckTrajectory" checked> trajectory</label>
|
|
447
|
+
<label class="checkbox-label"><input type="checkbox" id="recordTypeCheckObservation" checked> observation</label>
|
|
448
|
+
<label class="checkbox-label"><input type="checkbox" id="recordTypeCheckSummary" checked> summary</label>
|
|
449
|
+
<label class="checkbox-label"><input type="checkbox" id="recordTypeCheckEntity" checked> entity</label>
|
|
450
|
+
<label class="checkbox-label"><input type="checkbox" id="recordTypeCheckAction" checked> action</label>
|
|
250
451
|
</div>
|
|
251
452
|
</form>
|
|
252
453
|
|
|
@@ -258,7 +459,12 @@ export function getDashboardHtml(): string {
|
|
|
258
459
|
<div class="card">
|
|
259
460
|
<div class="card-header">
|
|
260
461
|
<div>
|
|
261
|
-
<h2 class="card-title">
|
|
462
|
+
<h2 class="card-title">
|
|
463
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
464
|
+
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>
|
|
465
|
+
</svg>
|
|
466
|
+
Task-Start Push Injection Simulator
|
|
467
|
+
</h2>
|
|
262
468
|
<div class="card-subtitle">GET /inject — Proactive context delivered to coding agents before task execution</div>
|
|
263
469
|
</div>
|
|
264
470
|
</div>
|
|
@@ -266,11 +472,11 @@ export function getDashboardHtml(): string {
|
|
|
266
472
|
<form id="injectForm">
|
|
267
473
|
<div class="control-row mb-4">
|
|
268
474
|
<div id="injectProjectDropdownWrapper" class="searchable-dropdown flex-1">
|
|
269
|
-
<input id="injectInputProject" type="text" class="form-input input-w-full-pr" placeholder="Project ID (e.g. example-app
|
|
270
|
-
<span id="injectProjectDropdownToggle" class="dropdown-chevron" title="Toggle project dropdown">▼</span>
|
|
475
|
+
<input id="injectInputProject" type="text" class="form-input input-w-full-pr" placeholder="Project ID (e.g. acme/socials/calendar, example-app)..." value="example-app" aria-label="Project ID for injection simulation" autocomplete="off" role="combobox" aria-autocomplete="list" aria-expanded="false">
|
|
476
|
+
<span id="injectProjectDropdownToggle" class="dropdown-chevron" role="button" tabindex="0" aria-label="Toggle project dropdown" aria-expanded="false" title="Toggle project dropdown">▼</span>
|
|
271
477
|
<div id="injectProjectDropdownMenu" class="dropdown-menu"></div>
|
|
272
478
|
</div>
|
|
273
|
-
<select id="injectInputTaskType" class="form-select input-w-170" title="Filter failure patterns and push injection by task type">
|
|
479
|
+
<select id="injectInputTaskType" class="form-select input-w-170" aria-label="Task type filter" title="Filter failure patterns and push injection by task type">
|
|
274
480
|
<option value="">All / Any Task Type</option>
|
|
275
481
|
<option value="general">general</option>
|
|
276
482
|
<option value="implementation">implementation</option>
|
|
@@ -281,7 +487,28 @@ export function getDashboardHtml(): string {
|
|
|
281
487
|
<option value="security">security</option>
|
|
282
488
|
<option value="deployment">deployment</option>
|
|
283
489
|
</select>
|
|
284
|
-
<button id="btnExecuteInject" type="button" class="btn
|
|
490
|
+
<button id="btnExecuteInject" type="button" class="btn">
|
|
491
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
492
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
493
|
+
<polygon points="5 3 19 12 5 21 5 3"></polygon>
|
|
494
|
+
</svg>
|
|
495
|
+
</span>
|
|
496
|
+
<span class="btn-label">Simulate Task-Start Injection</span>
|
|
497
|
+
</button>
|
|
498
|
+
</div>
|
|
499
|
+
<div class="filter-bar">
|
|
500
|
+
<label class="checkbox-label">
|
|
501
|
+
<input id="injectCheckAncestors" type="checkbox" checked>
|
|
502
|
+
<span>include_ancestors</span>
|
|
503
|
+
</label>
|
|
504
|
+
<label class="checkbox-label">
|
|
505
|
+
<input id="injectCheckChildren" type="checkbox">
|
|
506
|
+
<span>include_children</span>
|
|
507
|
+
</label>
|
|
508
|
+
<div class="form-row-inline">
|
|
509
|
+
<label for="injectInputUserId" class="text-muted form-label-inline">USER:</label>
|
|
510
|
+
<input id="injectInputUserId" type="text" class="form-input input-w-130" placeholder="user_id">
|
|
511
|
+
</div>
|
|
285
512
|
</div>
|
|
286
513
|
</form>
|
|
287
514
|
|
|
@@ -291,24 +518,38 @@ export function getDashboardHtml(): string {
|
|
|
291
518
|
</section>
|
|
292
519
|
|
|
293
520
|
<!-- Tab 3: Notes Explorer & Repair Queue -->
|
|
294
|
-
<section id="paneNotes" class="tab-pane">
|
|
521
|
+
<section id="paneNotes" class="tab-pane" role="tabpanel" aria-labelledby="tabBtnNotes">
|
|
295
522
|
<div class="card">
|
|
296
523
|
<div class="card-header">
|
|
297
524
|
<div>
|
|
298
|
-
<h2 class="card-title">
|
|
299
|
-
|
|
525
|
+
<h2 class="card-title">
|
|
526
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
527
|
+
<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"></path>
|
|
528
|
+
<polyline points="14 2 14 8 20 8"></polyline>
|
|
529
|
+
</svg>
|
|
530
|
+
Notes Explorer & Scope Repair Queue
|
|
531
|
+
</h2>
|
|
532
|
+
<div class="card-subtitle">Long-Term Memory (Curated Notes & Lessons) — Rule 4 explicit scope enforcement & SQL repair</div>
|
|
300
533
|
</div>
|
|
301
534
|
<div class="control-row">
|
|
302
|
-
<button id="btnOpenCreateNoteModal" class="btn btn-primary"
|
|
535
|
+
<button id="btnOpenCreateNoteModal" type="button" class="btn btn-primary">
|
|
536
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
537
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
538
|
+
<path d="M12 5v14"></path>
|
|
539
|
+
<path d="M5 12h14"></path>
|
|
540
|
+
</svg>
|
|
541
|
+
</span>
|
|
542
|
+
<span class="btn-label">Create Note</span>
|
|
543
|
+
</button>
|
|
303
544
|
</div>
|
|
304
545
|
</div>
|
|
305
546
|
|
|
306
547
|
<!-- Long-Term Category Filter Pills -->
|
|
307
|
-
<div id="notesCategoryPills" class="subtabs-bar">
|
|
308
|
-
<button id="btnNotesPillAll" type="button" class="btn btn-primary" data-note-category="all">All</button>
|
|
309
|
-
<button id="btnNotesPillMemories" type="button" class="btn" data-note-category="memories">Memories</button>
|
|
310
|
-
<button id="btnNotesPillLessons" type="button" class="btn" data-note-category="lessons">Lessons</button>
|
|
311
|
-
<button id="btnNotesPillUnknown" type="button" class="btn" data-note-category="unknown">Unknown Scope</button>
|
|
548
|
+
<div id="notesCategoryPills" class="subtabs-bar" role="group" aria-label="Long-term memory categories">
|
|
549
|
+
<button id="btnNotesPillAll" type="button" class="btn btn-primary" data-note-category="all" aria-pressed="true">All</button>
|
|
550
|
+
<button id="btnNotesPillMemories" type="button" class="btn" data-note-category="memories" aria-pressed="false">Memories</button>
|
|
551
|
+
<button id="btnNotesPillLessons" type="button" class="btn" data-note-category="lessons" aria-pressed="false">Lessons</button>
|
|
552
|
+
<button id="btnNotesPillUnknown" type="button" class="btn" data-note-category="unknown" aria-pressed="false">Unknown Scope</button>
|
|
312
553
|
</div>
|
|
313
554
|
|
|
314
555
|
<!-- Notes Filter Bar -->
|
|
@@ -327,7 +568,7 @@ export function getDashboardHtml(): string {
|
|
|
327
568
|
<label for="notesFilterProject" class="text-muted form-label-inline">PROJECT:</label>
|
|
328
569
|
<div id="notesProjectDropdownWrapper" class="searchable-dropdown">
|
|
329
570
|
<input id="notesFilterProject" type="text" class="form-input input-w-170-pr" placeholder="All Projects..." autocomplete="off" role="combobox" aria-autocomplete="list" aria-expanded="false">
|
|
330
|
-
<span id="notesProjectDropdownToggle" class="dropdown-chevron" title="Toggle project dropdown">▼</span>
|
|
571
|
+
<span id="notesProjectDropdownToggle" class="dropdown-chevron" role="button" tabindex="0" aria-label="Toggle project dropdown" aria-expanded="false" title="Toggle project dropdown">▼</span>
|
|
331
572
|
<div id="notesProjectDropdownMenu" class="dropdown-menu"></div>
|
|
332
573
|
</div>
|
|
333
574
|
</div>
|
|
@@ -351,8 +592,37 @@ export function getDashboardHtml(): string {
|
|
|
351
592
|
<input id="notesFilterFile" type="text" class="form-input input-w-150" placeholder="e.g. src/lib/db.ts">
|
|
352
593
|
</div>
|
|
353
594
|
|
|
354
|
-
<
|
|
355
|
-
|
|
595
|
+
<label class="checkbox-label">
|
|
596
|
+
<input id="notesCheckAncestors" type="checkbox" checked>
|
|
597
|
+
<span>include_ancestors</span>
|
|
598
|
+
</label>
|
|
599
|
+
|
|
600
|
+
<label class="checkbox-label">
|
|
601
|
+
<input id="notesCheckChildren" type="checkbox">
|
|
602
|
+
<span>include_children</span>
|
|
603
|
+
</label>
|
|
604
|
+
|
|
605
|
+
<div class="form-row-inline">
|
|
606
|
+
<label for="notesInputUserId" class="text-muted form-label-inline">USER:</label>
|
|
607
|
+
<input id="notesInputUserId" type="text" class="form-input input-w-130" placeholder="user_id">
|
|
608
|
+
</div>
|
|
609
|
+
|
|
610
|
+
<button id="btnApplyNotesFilter" type="button" class="btn">
|
|
611
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
612
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
613
|
+
<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>
|
|
614
|
+
</svg>
|
|
615
|
+
</span>
|
|
616
|
+
<span class="btn-label">Filter</span>
|
|
617
|
+
</button>
|
|
618
|
+
<button id="btnShowRepairQueue" type="button" class="btn">
|
|
619
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
620
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
621
|
+
<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>
|
|
622
|
+
</svg>
|
|
623
|
+
</span>
|
|
624
|
+
<span class="btn-label">Show Repair Queue Only</span>
|
|
625
|
+
</button>
|
|
356
626
|
</div>
|
|
357
627
|
|
|
358
628
|
<div id="repairBannerContainer"></div>
|
|
@@ -361,19 +631,44 @@ export function getDashboardHtml(): string {
|
|
|
361
631
|
</section>
|
|
362
632
|
|
|
363
633
|
<!-- Tab: Short Term (Sessions & Next Actions) -->
|
|
364
|
-
<section id="paneShortTerm" class="tab-pane">
|
|
634
|
+
<section id="paneShortTerm" class="tab-pane" role="tabpanel" aria-labelledby="tabBtnShortTerm">
|
|
365
635
|
<div class="card">
|
|
366
636
|
<div class="card-header">
|
|
367
637
|
<div>
|
|
368
|
-
<h2 class="card-title">
|
|
638
|
+
<h2 class="card-title">
|
|
639
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
640
|
+
<circle cx="12" cy="12" r="10"></circle>
|
|
641
|
+
<polyline points="12 6 12 12 16 14"></polyline>
|
|
642
|
+
</svg>
|
|
643
|
+
Short-Term Memory: Sessions & Next Actions
|
|
644
|
+
</h2>
|
|
369
645
|
<div class="card-subtitle">Active cross-agent sessions, session replay timelines, and prioritized next actions</div>
|
|
370
646
|
</div>
|
|
371
647
|
</div>
|
|
372
648
|
|
|
373
|
-
<div class="subtabs-bar">
|
|
374
|
-
<button id="subTabBtnShortSessions" type="button" class="btn btn-primary" data-short-subtab="sessions">
|
|
375
|
-
|
|
376
|
-
|
|
649
|
+
<div class="subtabs-bar" role="tablist" aria-label="Short Term Views">
|
|
650
|
+
<button id="subTabBtnShortSessions" type="button" role="tab" aria-selected="true" class="btn btn-primary" data-short-subtab="sessions">
|
|
651
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
652
|
+
<polyline points="4 17 10 11 4 5"></polyline>
|
|
653
|
+
<line x1="12" y1="19" x2="20" y2="19"></line>
|
|
654
|
+
</svg>
|
|
655
|
+
<span>Sessions</span>
|
|
656
|
+
</button>
|
|
657
|
+
<button id="subTabBtnShortActions" type="button" role="tab" aria-selected="false" class="btn" data-short-subtab="actions">
|
|
658
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
659
|
+
<polyline points="9 11 12 14 22 4"></polyline>
|
|
660
|
+
<path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>
|
|
661
|
+
</svg>
|
|
662
|
+
<span>Next Actions</span>
|
|
663
|
+
</button>
|
|
664
|
+
<button id="subTabBtnShortSummaries" type="button" role="tab" aria-selected="false" class="btn" data-short-subtab="summaries">
|
|
665
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
666
|
+
<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"></path>
|
|
667
|
+
<polyline points="14 2 14 8 20 8"></polyline>
|
|
668
|
+
<path d="m9 15 2 2 4-4"></path>
|
|
669
|
+
</svg>
|
|
670
|
+
<span>Summaries</span>
|
|
671
|
+
</button>
|
|
377
672
|
</div>
|
|
378
673
|
|
|
379
674
|
<div id="shortSessionsFilterBar" class="filter-bar">
|
|
@@ -381,7 +676,7 @@ export function getDashboardHtml(): string {
|
|
|
381
676
|
<label for="shortSessionsProject" class="text-muted form-label-inline">PROJECT:</label>
|
|
382
677
|
<div id="shortSessionsProjectDropdownWrapper" class="searchable-dropdown">
|
|
383
678
|
<input id="shortSessionsProject" type="text" class="form-input input-w-170-pr" placeholder="All Projects..." autocomplete="off" role="combobox" aria-autocomplete="list" aria-expanded="false">
|
|
384
|
-
<span id="shortSessionsProjectDropdownToggle" class="dropdown-chevron" title="Toggle project dropdown">▼</span>
|
|
679
|
+
<span id="shortSessionsProjectDropdownToggle" class="dropdown-chevron" role="button" tabindex="0" aria-label="Toggle project dropdown" aria-expanded="false" title="Toggle project dropdown">▼</span>
|
|
385
680
|
<div id="shortSessionsProjectDropdownMenu" class="dropdown-menu"></div>
|
|
386
681
|
</div>
|
|
387
682
|
</div>
|
|
@@ -395,7 +690,27 @@ export function getDashboardHtml(): string {
|
|
|
395
690
|
<option value="abandoned">abandoned</option>
|
|
396
691
|
</select>
|
|
397
692
|
</div>
|
|
398
|
-
<
|
|
693
|
+
<label class="checkbox-label">
|
|
694
|
+
<input id="shortSessionsCheckAncestors" type="checkbox" checked>
|
|
695
|
+
<span>include_ancestors</span>
|
|
696
|
+
</label>
|
|
697
|
+
<label class="checkbox-label">
|
|
698
|
+
<input id="shortSessionsCheckChildren" type="checkbox">
|
|
699
|
+
<span>include_children</span>
|
|
700
|
+
</label>
|
|
701
|
+
<div class="form-row-inline">
|
|
702
|
+
<label for="shortSessionsInputUserId" class="text-muted form-label-inline">USER:</label>
|
|
703
|
+
<input id="shortSessionsInputUserId" type="text" class="form-input input-w-130" placeholder="user_id">
|
|
704
|
+
</div>
|
|
705
|
+
<button id="btnFilterShortSessions" type="button" class="btn">
|
|
706
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
707
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
708
|
+
<path d="M21 12a9 9 0 1 1-2.64-6.36"></path>
|
|
709
|
+
<path d="M21 3v6h-6"></path>
|
|
710
|
+
</svg>
|
|
711
|
+
</span>
|
|
712
|
+
<span class="btn-label">Refresh Sessions</span>
|
|
713
|
+
</button>
|
|
399
714
|
</div>
|
|
400
715
|
|
|
401
716
|
<div id="shortActionsFilterBar" class="filter-bar hidden">
|
|
@@ -403,7 +718,7 @@ export function getDashboardHtml(): string {
|
|
|
403
718
|
<label for="shortActionsProject" class="text-muted form-label-inline">PROJECT:</label>
|
|
404
719
|
<div id="shortActionsProjectDropdownWrapper" class="searchable-dropdown">
|
|
405
720
|
<input id="shortActionsProject" type="text" class="form-input input-w-170-pr" placeholder="All Projects..." autocomplete="off" role="combobox" aria-autocomplete="list" aria-expanded="false">
|
|
406
|
-
<span id="shortActionsProjectDropdownToggle" class="dropdown-chevron" title="Toggle project dropdown">▼</span>
|
|
721
|
+
<span id="shortActionsProjectDropdownToggle" class="dropdown-chevron" role="button" tabindex="0" aria-label="Toggle project dropdown" aria-expanded="false" title="Toggle project dropdown">▼</span>
|
|
407
722
|
<div id="shortActionsProjectDropdownMenu" class="dropdown-menu"></div>
|
|
408
723
|
</div>
|
|
409
724
|
</div>
|
|
@@ -418,7 +733,40 @@ export function getDashboardHtml(): string {
|
|
|
418
733
|
<option value="dismissed">dismissed</option>
|
|
419
734
|
</select>
|
|
420
735
|
</div>
|
|
421
|
-
<
|
|
736
|
+
<label class="checkbox-label">
|
|
737
|
+
<input id="shortActionsCheckAncestors" type="checkbox" checked>
|
|
738
|
+
<span>include_ancestors</span>
|
|
739
|
+
</label>
|
|
740
|
+
<label class="checkbox-label">
|
|
741
|
+
<input id="shortActionsCheckChildren" type="checkbox">
|
|
742
|
+
<span>include_children</span>
|
|
743
|
+
</label>
|
|
744
|
+
<label class="checkbox-label">
|
|
745
|
+
<input id="shortActionsCheckDueOnly" type="checkbox">
|
|
746
|
+
<span>due_only</span>
|
|
747
|
+
</label>
|
|
748
|
+
<div class="form-row-inline">
|
|
749
|
+
<label for="shortActionsInputUserId" class="text-muted form-label-inline">USER:</label>
|
|
750
|
+
<input id="shortActionsInputUserId" type="text" class="form-input input-w-130" placeholder="user_id">
|
|
751
|
+
</div>
|
|
752
|
+
<button id="btnFilterShortActions" type="button" class="btn">
|
|
753
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
754
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
755
|
+
<path d="M21 12a9 9 0 1 1-2.64-6.36"></path>
|
|
756
|
+
<path d="M21 3v6h-6"></path>
|
|
757
|
+
</svg>
|
|
758
|
+
</span>
|
|
759
|
+
<span class="btn-label">Refresh Actions</span>
|
|
760
|
+
</button>
|
|
761
|
+
<button id="btnOpenCreateActionModal" type="button" class="btn btn-primary">
|
|
762
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
763
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
764
|
+
<path d="M12 5v14"></path>
|
|
765
|
+
<path d="M5 12h14"></path>
|
|
766
|
+
</svg>
|
|
767
|
+
</span>
|
|
768
|
+
<span class="btn-label">+ Create Action</span>
|
|
769
|
+
</button>
|
|
422
770
|
</div>
|
|
423
771
|
|
|
424
772
|
<div id="shortTermListContainer"></div>
|
|
@@ -426,14 +774,43 @@ export function getDashboardHtml(): string {
|
|
|
426
774
|
</section>
|
|
427
775
|
|
|
428
776
|
<!-- Tab: Knowledge Graph -->
|
|
429
|
-
<section id="paneGraph" class="tab-pane">
|
|
777
|
+
<section id="paneGraph" class="tab-pane" role="tabpanel" aria-labelledby="tabBtnGraph">
|
|
430
778
|
<div class="card">
|
|
431
779
|
<div class="card-header">
|
|
432
780
|
<div>
|
|
433
|
-
<h2 class="card-title">
|
|
781
|
+
<h2 class="card-title">
|
|
782
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
783
|
+
<circle cx="18" cy="5" r="3"></circle>
|
|
784
|
+
<circle cx="6" cy="12" r="3"></circle>
|
|
785
|
+
<circle cx="18" cy="19" r="3"></circle>
|
|
786
|
+
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
|
|
787
|
+
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
|
|
788
|
+
</svg>
|
|
789
|
+
Knowledge Graph
|
|
790
|
+
</h2>
|
|
434
791
|
<div class="card-subtitle">GET /dashboard/api/graph — Interactive relational topology across notes, lessons, concepts, files, sessions, actions, and summaries</div>
|
|
435
792
|
</div>
|
|
436
|
-
<div
|
|
793
|
+
<div class="control-row">
|
|
794
|
+
<div id="graphStatsBadge" class="badge badge-subtle badge-mono">0 nodes · 0 edges</div>
|
|
795
|
+
<button id="btnOpenAddEntityModal" type="button" class="btn">
|
|
796
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
797
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
798
|
+
<path d="M12 5v14"></path>
|
|
799
|
+
<path d="M5 12h14"></path>
|
|
800
|
+
</svg>
|
|
801
|
+
</span>
|
|
802
|
+
<span class="btn-label">+ Add Entity</span>
|
|
803
|
+
</button>
|
|
804
|
+
<button id="btnOpenLinkNodesModal" type="button" class="btn">
|
|
805
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
806
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
807
|
+
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
|
|
808
|
+
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
|
|
809
|
+
</svg>
|
|
810
|
+
</span>
|
|
811
|
+
<span class="btn-label">+ Link Nodes</span>
|
|
812
|
+
</button>
|
|
813
|
+
</div>
|
|
437
814
|
</div>
|
|
438
815
|
|
|
439
816
|
<div class="filter-bar">
|
|
@@ -441,7 +818,7 @@ export function getDashboardHtml(): string {
|
|
|
441
818
|
<label for="graphFilterProject" class="text-muted form-label-inline">PROJECT:</label>
|
|
442
819
|
<div id="graphProjectDropdownWrapper" class="searchable-dropdown">
|
|
443
820
|
<input id="graphFilterProject" type="text" class="form-input input-w-170-pr" placeholder="All Projects..." autocomplete="off" role="combobox" aria-autocomplete="list" aria-expanded="false">
|
|
444
|
-
<span id="graphProjectDropdownToggle" class="dropdown-chevron" title="Toggle project dropdown">▼</span>
|
|
821
|
+
<span id="graphProjectDropdownToggle" class="dropdown-chevron" role="button" tabindex="0" aria-label="Toggle project dropdown" aria-expanded="false" title="Toggle project dropdown">▼</span>
|
|
445
822
|
<div id="graphProjectDropdownMenu" class="dropdown-menu"></div>
|
|
446
823
|
</div>
|
|
447
824
|
</div>
|
|
@@ -463,7 +840,50 @@ export function getDashboardHtml(): string {
|
|
|
463
840
|
<option value="200">200 nodes</option>
|
|
464
841
|
</select>
|
|
465
842
|
</div>
|
|
466
|
-
<
|
|
843
|
+
<div class="form-row-inline">
|
|
844
|
+
<label for="graphFilterDepth" class="text-muted form-label-inline">DEPTH:</label>
|
|
845
|
+
<select id="graphFilterDepth" class="form-select input-w-130">
|
|
846
|
+
<option value="1" selected>1 hop</option>
|
|
847
|
+
<option value="2">2 hops</option>
|
|
848
|
+
<option value="3">3 hops</option>
|
|
849
|
+
</select>
|
|
850
|
+
</div>
|
|
851
|
+
<div class="form-row-inline">
|
|
852
|
+
<label for="graphFilterEntityType" class="text-muted form-label-inline">ENTITY TYPE:</label>
|
|
853
|
+
<select id="graphFilterEntityType" class="form-select input-w-140">
|
|
854
|
+
<option value="all" selected>All Types</option>
|
|
855
|
+
<option value="brand">brand</option>
|
|
856
|
+
<option value="person">person</option>
|
|
857
|
+
<option value="asset">asset</option>
|
|
858
|
+
<option value="metric">metric</option>
|
|
859
|
+
<option value="document">document</option>
|
|
860
|
+
<option value="tool">tool</option>
|
|
861
|
+
</select>
|
|
862
|
+
</div>
|
|
863
|
+
<label class="checkbox-label">
|
|
864
|
+
<input id="graphCheckAncestors" type="checkbox" checked>
|
|
865
|
+
<span>include_ancestors</span>
|
|
866
|
+
</label>
|
|
867
|
+
<label class="checkbox-label">
|
|
868
|
+
<input id="graphCheckChildren" type="checkbox">
|
|
869
|
+
<span>include_children</span>
|
|
870
|
+
</label>
|
|
871
|
+
<label class="checkbox-label">
|
|
872
|
+
<input id="graphCheckGlobal" type="checkbox">
|
|
873
|
+
<span>include_global</span>
|
|
874
|
+
</label>
|
|
875
|
+
<button id="btnLoadGraph" type="button" class="btn btn-primary">
|
|
876
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
877
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
878
|
+
<circle cx="18" cy="5" r="3"></circle>
|
|
879
|
+
<circle cx="6" cy="12" r="3"></circle>
|
|
880
|
+
<circle cx="18" cy="19" r="3"></circle>
|
|
881
|
+
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
|
|
882
|
+
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
|
|
883
|
+
</svg>
|
|
884
|
+
</span>
|
|
885
|
+
<span class="btn-label">Load Graph</span>
|
|
886
|
+
</button>
|
|
467
887
|
</div>
|
|
468
888
|
|
|
469
889
|
<div id="graphLegend" class="graph-legend"></div>
|
|
@@ -471,29 +891,69 @@ export function getDashboardHtml(): string {
|
|
|
471
891
|
<div class="graph-layout">
|
|
472
892
|
<div id="graphCanvasContainer" class="graph-canvas-wrap"></div>
|
|
473
893
|
<aside id="graphInspectorContainer" class="graph-inspector-wrap">
|
|
474
|
-
<div class="
|
|
894
|
+
<div class="graph-inspector-empty">
|
|
895
|
+
<div class="carousel-card-media">
|
|
896
|
+
<div class="blurhash-placeholder" data-blurhash="L6PZfSi_.AyE_3t7t7R**0o#DgR4"></div>
|
|
897
|
+
<img class="product-shot blend-multiply" alt="NeuralBrain memory layers: capture to compact to recall" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='84' viewBox='0 0 320 84'%3E%3Crect width='320' height='84' fill='%23ffffff'/%3E%3Crect x='8' y='18' width='84' height='48' rx='10' fill='%23ffffff' stroke='%23111827' stroke-width='1.75'/%3E%3Ccircle cx='24' cy='36' r='5' fill='%23F59E0B'/%3E%3Ctext x='34' y='40' font-family='sans-serif' font-size='11' font-weight='700' fill='%230B0F19'%3Ecapture%3C/text%3E%3Ctext x='18' y='54' font-family='monospace' font-size='9' fill='%23111827'%3Eraw signals%3C/text%3E%3Cpath d='M96 42h14m-4-4 4 4-4 4' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='116' y='18' width='88' height='48' rx='10' fill='%23ffffff' stroke='%23047857' stroke-width='1.75'/%3E%3Ccircle cx='132' cy='36' r='5' fill='%23047857'/%3E%3Ctext x='142' y='40' font-family='sans-serif' font-size='11' font-weight='700' fill='%230B0F19'%3Ecompact%3C/text%3E%3Ctext x='126' y='54' font-family='monospace' font-size='9' fill='%23111827'%3Esourced notes%3C/text%3E%3Cpath d='M208 42h14m-4-4 4 4-4 4' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='228' y='18' width='84' height='48' rx='10' fill='%23ffffff' stroke='%2310B981' stroke-width='2'/%3E%3Ccircle cx='244' cy='36' r='5' fill='%2310B981'/%3E%3Ctext x='254' y='40' font-family='sans-serif' font-size='11' font-weight='700' fill='%230B0F19'%3Erecall%3C/text%3E%3Ctext x='238' y='54' font-family='monospace' font-size='9' fill='%23111827'%3Eaudit trail%3C/text%3E%3C/svg%3E">
|
|
898
|
+
</div>
|
|
899
|
+
<div class="graph-inspector-caption">Click any node in the graph to inspect its metadata, provenance, and connections.</div>
|
|
900
|
+
</div>
|
|
475
901
|
</aside>
|
|
476
902
|
</div>
|
|
477
903
|
</div>
|
|
478
904
|
</section>
|
|
479
905
|
|
|
480
906
|
<!-- Tab 4: Trajectories & Observations -->
|
|
481
|
-
<section id="paneTrajectories" class="tab-pane">
|
|
907
|
+
<section id="paneTrajectories" class="tab-pane" role="tabpanel" aria-labelledby="tabBtnTrajectories">
|
|
482
908
|
<div class="card">
|
|
483
909
|
<div class="card-header">
|
|
484
910
|
<div>
|
|
485
|
-
<h2 class="card-title">
|
|
911
|
+
<h2 class="card-title">
|
|
912
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
913
|
+
<path d="M22 12h-4l-3 9L9 3l-3 9H2"></path>
|
|
914
|
+
</svg>
|
|
915
|
+
Observations, Trajectories & Summaries
|
|
916
|
+
</h2>
|
|
486
917
|
<div class="card-subtitle">Machine-written high-volume observations rolled up into trajectories and verified summaries</div>
|
|
487
918
|
</div>
|
|
488
919
|
<div class="control-row">
|
|
489
|
-
<button id="btnOpenCaptureModal" class="btn
|
|
920
|
+
<button id="btnOpenCaptureModal" type="button" class="btn">
|
|
921
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
922
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
923
|
+
<path d="M12 5v14"></path>
|
|
924
|
+
<path d="M5 12h14"></path>
|
|
925
|
+
</svg>
|
|
926
|
+
</span>
|
|
927
|
+
<span class="btn-label">Capture Test Event</span>
|
|
928
|
+
</button>
|
|
490
929
|
</div>
|
|
491
930
|
</div>
|
|
492
931
|
|
|
493
|
-
<div class="subtabs-bar">
|
|
494
|
-
<button id="subTabBtnTrajectories" class="btn btn-primary" data-subtab="trajectories">
|
|
495
|
-
|
|
496
|
-
|
|
932
|
+
<div class="subtabs-bar" role="tablist" aria-label="Observation Views">
|
|
933
|
+
<button id="subTabBtnTrajectories" type="button" role="tab" aria-selected="true" class="btn btn-primary" data-subtab="trajectories">
|
|
934
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
935
|
+
<line x1="6" y1="3" x2="6" y2="15"></line>
|
|
936
|
+
<circle cx="18" cy="6" r="3"></circle>
|
|
937
|
+
<circle cx="6" cy="18" r="3"></circle>
|
|
938
|
+
<path d="M18 9a9 9 0 0 1-9 9"></path>
|
|
939
|
+
</svg>
|
|
940
|
+
<span>Trajectories</span>
|
|
941
|
+
</button>
|
|
942
|
+
<button id="subTabBtnObservations" type="button" role="tab" aria-selected="false" class="btn" data-subtab="observations">
|
|
943
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
944
|
+
<path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"></path>
|
|
945
|
+
<circle cx="12" cy="12" r="3"></circle>
|
|
946
|
+
</svg>
|
|
947
|
+
<span>Observations</span>
|
|
948
|
+
</button>
|
|
949
|
+
<button id="subTabBtnSummaries" type="button" role="tab" aria-selected="false" class="btn" data-subtab="summaries">
|
|
950
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
951
|
+
<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon>
|
|
952
|
+
<polyline points="2 17 12 22 22 17"></polyline>
|
|
953
|
+
<polyline points="2 12 12 17 22 12"></polyline>
|
|
954
|
+
</svg>
|
|
955
|
+
<span>Summaries</span>
|
|
956
|
+
</button>
|
|
497
957
|
</div>
|
|
498
958
|
|
|
499
959
|
<div id="trajectoriesSubViewContainer"></div>
|
|
@@ -501,15 +961,28 @@ export function getDashboardHtml(): string {
|
|
|
501
961
|
</section>
|
|
502
962
|
|
|
503
963
|
<!-- Tab 5: Failure Patterns & Conformance Doctor -->
|
|
504
|
-
<section id="paneConformance" class="tab-pane">
|
|
964
|
+
<section id="paneConformance" class="tab-pane" role="tabpanel" aria-labelledby="tabBtnConformance">
|
|
505
965
|
<!-- AI Conformance Doctor -->
|
|
506
966
|
<div class="card">
|
|
507
967
|
<div class="card-header">
|
|
508
968
|
<div>
|
|
509
|
-
<h2 class="card-title">
|
|
969
|
+
<h2 class="card-title">
|
|
970
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
971
|
+
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"></path>
|
|
972
|
+
<path d="m9 12 2 2 4-4"></path>
|
|
973
|
+
</svg>
|
|
974
|
+
AI Conformance Doctor
|
|
975
|
+
</h2>
|
|
510
976
|
<div class="card-subtitle">GET /diagnostics/ai — Non-negotiable verification gate fixtures (fx1-failure, fx2-success, fx3-sparse)</div>
|
|
511
977
|
</div>
|
|
512
|
-
<button id="btnRunConformance" class="btn btn-primary">
|
|
978
|
+
<button id="btnRunConformance" type="button" class="btn btn-primary">
|
|
979
|
+
<span class="icon-swap-slot icon-swap-in">
|
|
980
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
981
|
+
<polygon points="5 3 19 12 5 21 5 3"></polygon>
|
|
982
|
+
</svg>
|
|
983
|
+
</span>
|
|
984
|
+
<span class="btn-label">Run Conformance Fixtures</span>
|
|
985
|
+
</button>
|
|
513
986
|
</div>
|
|
514
987
|
<div id="conformanceVerdictContainer"></div>
|
|
515
988
|
<div id="conformanceResultsContainer" class="table-responsive"></div>
|
|
@@ -519,7 +992,14 @@ export function getDashboardHtml(): string {
|
|
|
519
992
|
<div class="card">
|
|
520
993
|
<div class="card-header">
|
|
521
994
|
<div>
|
|
522
|
-
<h2 class="card-title">
|
|
995
|
+
<h2 class="card-title">
|
|
996
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
997
|
+
<circle cx="12" cy="12" r="10"></circle>
|
|
998
|
+
<line x1="12" y1="8" x2="12" y2="12"></line>
|
|
999
|
+
<line x1="12" y1="16" x2="12.01" y2="16"></line>
|
|
1000
|
+
</svg>
|
|
1001
|
+
Push-Injection Scoped Failure Patterns
|
|
1002
|
+
</h2>
|
|
523
1003
|
<div class="card-subtitle">Grouped by (project_id, task_type, error_text) with atomic SQL UPSERT counter</div>
|
|
524
1004
|
</div>
|
|
525
1005
|
</div>
|
|
@@ -530,7 +1010,13 @@ export function getDashboardHtml(): string {
|
|
|
530
1010
|
<div class="card">
|
|
531
1011
|
<div class="card-header">
|
|
532
1012
|
<div>
|
|
533
|
-
<h2 class="card-title">
|
|
1013
|
+
<h2 class="card-title">
|
|
1014
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
1015
|
+
<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline>
|
|
1016
|
+
<path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>
|
|
1017
|
+
</svg>
|
|
1018
|
+
Dead Letters Inspector
|
|
1019
|
+
</h2>
|
|
534
1020
|
<div class="card-subtitle">Rule 3 guarantee: Dead letters are strictly for malformed records, never for capacity or volume</div>
|
|
535
1021
|
</div>
|
|
536
1022
|
</div>
|
|
@@ -540,11 +1026,29 @@ export function getDashboardHtml(): string {
|
|
|
540
1026
|
</section>
|
|
541
1027
|
</main>
|
|
542
1028
|
|
|
543
|
-
<!--
|
|
544
|
-
<div id="
|
|
1029
|
+
<!-- Predictive Back Gesture Preview -->
|
|
1030
|
+
<div id="predictiveBackPreview" class="predictive-back-preview" aria-hidden="true"></div>
|
|
1031
|
+
|
|
1032
|
+
<!-- Command Menu Palette (⌘K) -->
|
|
1033
|
+
<div id="commandMenuOverlay" class="command-menu-overlay" role="dialog" aria-modal="true" aria-label="Command Menu" aria-hidden="true">
|
|
1034
|
+
<div class="command-menu-dialog">
|
|
1035
|
+
<div class="command-menu-input-row">
|
|
1036
|
+
<svg class="icon-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" aria-hidden="true">
|
|
1037
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
1038
|
+
<path d="m21 21-4.3-4.3"></path>
|
|
1039
|
+
</svg>
|
|
1040
|
+
<input id="commandMenuInput" type="text" class="command-menu-input" placeholder="Type a command or search (e.g. 'dep' for Deploy to production)..." aria-label="Search commands" autocomplete="off">
|
|
1041
|
+
<kbd class="shortcut-hint">ESC</kbd>
|
|
1042
|
+
</div>
|
|
1043
|
+
<div id="commandMenuList" class="command-menu-list" role="listbox" aria-label="Commands"></div>
|
|
1044
|
+
</div>
|
|
1045
|
+
</div>
|
|
1046
|
+
|
|
1047
|
+
<!-- Modal Overlays (Swipe-to-Dismiss Sheets) -->
|
|
1048
|
+
<div id="modalContainer" class="modal-overlay" role="dialog" aria-modal="true" aria-label="Modal dialog" aria-hidden="true"></div>
|
|
545
1049
|
|
|
546
1050
|
<!-- Toasts Container -->
|
|
547
|
-
<div id="toastContainer" class="toast-container"></div>
|
|
1051
|
+
<div id="toastContainer" class="toast-container" aria-live="polite" aria-atomic="false"></div>
|
|
548
1052
|
</body>
|
|
549
1053
|
</html>`;
|
|
550
1054
|
}
|