agent-knowledge 1.1.6 → 1.3.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.
Files changed (81) hide show
  1. package/CHANGELOG.md +115 -5
  2. package/README.md +86 -24
  3. package/dist/dashboard.d.ts +1 -0
  4. package/dist/dashboard.d.ts.map +1 -1
  5. package/dist/dashboard.js +145 -19
  6. package/dist/dashboard.js.map +1 -1
  7. package/dist/embeddings/anthropic.d.ts.map +1 -1
  8. package/dist/embeddings/anthropic.js +2 -1
  9. package/dist/embeddings/anthropic.js.map +1 -1
  10. package/dist/embeddings/gemini.d.ts.map +1 -1
  11. package/dist/embeddings/gemini.js +2 -1
  12. package/dist/embeddings/gemini.js.map +1 -1
  13. package/dist/embeddings/local.d.ts.map +1 -1
  14. package/dist/embeddings/local.js +3 -0
  15. package/dist/embeddings/local.js.map +1 -1
  16. package/dist/knowledge/consolidate.d.ts +46 -0
  17. package/dist/knowledge/consolidate.d.ts.map +1 -0
  18. package/dist/knowledge/consolidate.js +164 -0
  19. package/dist/knowledge/consolidate.js.map +1 -0
  20. package/dist/knowledge/distill.d.ts.map +1 -1
  21. package/dist/knowledge/distill.js +4 -2
  22. package/dist/knowledge/distill.js.map +1 -1
  23. package/dist/knowledge/graph.d.ts +64 -0
  24. package/dist/knowledge/graph.d.ts.map +1 -0
  25. package/dist/knowledge/graph.js +214 -0
  26. package/dist/knowledge/graph.js.map +1 -0
  27. package/dist/knowledge/reflect.d.ts +33 -0
  28. package/dist/knowledge/reflect.d.ts.map +1 -0
  29. package/dist/knowledge/reflect.js +115 -0
  30. package/dist/knowledge/reflect.js.map +1 -0
  31. package/dist/knowledge/scoring.d.ts +57 -0
  32. package/dist/knowledge/scoring.d.ts.map +1 -0
  33. package/dist/knowledge/scoring.js +194 -0
  34. package/dist/knowledge/scoring.js.map +1 -0
  35. package/dist/knowledge/search.d.ts.map +1 -1
  36. package/dist/knowledge/search.js +15 -2
  37. package/dist/knowledge/search.js.map +1 -1
  38. package/dist/knowledge/store.d.ts.map +1 -1
  39. package/dist/knowledge/store.js +4 -3
  40. package/dist/knowledge/store.js.map +1 -1
  41. package/dist/search/excerpt.d.ts.map +1 -1
  42. package/dist/search/excerpt.js +2 -1
  43. package/dist/search/excerpt.js.map +1 -1
  44. package/dist/search/tfidf.d.ts +1 -0
  45. package/dist/search/tfidf.d.ts.map +1 -1
  46. package/dist/search/tfidf.js +38 -3
  47. package/dist/search/tfidf.js.map +1 -1
  48. package/dist/server.d.ts.map +1 -1
  49. package/dist/server.js +117 -381
  50. package/dist/server.js.map +1 -1
  51. package/dist/sessions/parser.d.ts.map +1 -1
  52. package/dist/sessions/parser.js +12 -10
  53. package/dist/sessions/parser.js.map +1 -1
  54. package/dist/sessions/search.js +17 -3
  55. package/dist/sessions/search.js.map +1 -1
  56. package/dist/sessions/summary.d.ts.map +1 -1
  57. package/dist/sessions/summary.js +6 -3
  58. package/dist/sessions/summary.js.map +1 -1
  59. package/dist/tool-handlers.d.ts +42 -0
  60. package/dist/tool-handlers.d.ts.map +1 -0
  61. package/dist/tool-handlers.js +425 -0
  62. package/dist/tool-handlers.js.map +1 -0
  63. package/dist/types.d.ts.map +1 -1
  64. package/dist/types.js +6 -4
  65. package/dist/types.js.map +1 -1
  66. package/dist/ui/app.js +94 -723
  67. package/dist/ui/index.html +29 -0
  68. package/dist/ui/render-knowledge.js +233 -0
  69. package/dist/ui/render-panel.js +350 -0
  70. package/dist/ui/render-search.js +109 -0
  71. package/dist/ui/render-sessions.js +234 -0
  72. package/dist/ui/styles.css +261 -0
  73. package/dist/ui/ui-utils.js +196 -0
  74. package/dist/vectorstore/store.d.ts +25 -44
  75. package/dist/vectorstore/store.d.ts.map +1 -1
  76. package/dist/vectorstore/store.js +167 -167
  77. package/dist/vectorstore/store.js.map +1 -1
  78. package/docs/ARCHITECTURE.md +94 -1
  79. package/docs/DASHBOARD.md +26 -13
  80. package/docs/SETUP.md +17 -3
  81. package/package.json +2 -2
@@ -0,0 +1,196 @@
1
+ /* agent-knowledge — shared UI utilities */
2
+ (function () {
3
+ 'use strict';
4
+
5
+ window.Knowledge = window.Knowledge || {};
6
+
7
+ // ── DOM helper ──────────────────────────────────────────────────────────────
8
+
9
+ const $ = (id) => document.getElementById(id);
10
+
11
+ // ── Escape HTML ─────────────────────────────────────────────────────────────
12
+
13
+ function esc(str) {
14
+ const d = document.createElement('div');
15
+ d.textContent = str;
16
+ return d.innerHTML;
17
+ }
18
+
19
+ // ── Debounce ────────────────────────────────────────────────────────────────
20
+
21
+ function debounce(fn, ms) {
22
+ let t;
23
+ return (...args) => {
24
+ clearTimeout(t);
25
+ t = setTimeout(() => fn(...args), ms);
26
+ };
27
+ }
28
+
29
+ // ── Relative time ───────────────────────────────────────────────────────────
30
+
31
+ function relativeTime(dateStr) {
32
+ if (!dateStr) return '';
33
+ const now = Date.now();
34
+ const then = new Date(dateStr).getTime();
35
+ const diff = now - then;
36
+ if (diff < 0) return 'just now';
37
+ const secs = Math.floor(diff / 1000);
38
+ if (secs < 60) return 'just now';
39
+ const mins = Math.floor(secs / 60);
40
+ if (mins < 60) return `${mins}m ago`;
41
+ const hrs = Math.floor(mins / 60);
42
+ if (hrs < 24) return `${hrs}h ago`;
43
+ const days = Math.floor(hrs / 24);
44
+ if (days < 30) return `${days}d ago`;
45
+ const months = Math.floor(days / 30);
46
+ if (months < 12) return `${months}mo ago`;
47
+ return `${Math.floor(months / 12)}y ago`;
48
+ }
49
+
50
+ // ── Markdown rendering ──────────────────────────────────────────────────────
51
+
52
+ function renderMd(raw) {
53
+ if (!raw) return '';
54
+ try {
55
+ const html = marked.parse(raw, { breaks: true, gfm: true });
56
+ const clean = DOMPurify.sanitize(html, { ADD_TAGS: ['pre', 'code'] });
57
+ const wrapper = document.createElement('div');
58
+ wrapper.innerHTML = clean;
59
+ wrapper.querySelectorAll('pre code').forEach((block) => {
60
+ try {
61
+ hljs.highlightElement(block);
62
+ } catch (_) {
63
+ /* noop */
64
+ }
65
+ });
66
+ return wrapper.innerHTML;
67
+ } catch {
68
+ return esc(raw);
69
+ }
70
+ }
71
+
72
+ // ── Highlight search excerpts ───────────────────────────────────────────────
73
+
74
+ function highlightExcerpt(text, query) {
75
+ if (!text || !query) return esc(text || '');
76
+ try {
77
+ const escaped = query.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
78
+ const re = new RegExp(`(${escaped})`, 'gi');
79
+ return esc(text).replace(re, '<mark>$1</mark>');
80
+ } catch {
81
+ return esc(text);
82
+ }
83
+ }
84
+
85
+ // ── Score bar rendering ─────────────────────────────────────────────────────
86
+
87
+ function formatScore(score, metadata) {
88
+ if (score == null) return '';
89
+ const pct = Math.min(Math.max(score * 100, 0), 100);
90
+ const tfidf = metadata?.tfidfScore;
91
+ const semantic = metadata?.semanticScore;
92
+ const recency = metadata?.recencyMultiplier;
93
+ const alpha = metadata?.blendAlpha;
94
+
95
+ let tooltip = `Score: ${score.toFixed(3)}`;
96
+ if (tfidf != null && semantic != null) {
97
+ tooltip += ` (TF-IDF: ${tfidf.toFixed(2)} \u00d7 ${((alpha || 0.3) * 100).toFixed(0)}% + Semantic: ${semantic.toFixed(2)} \u00d7 ${((1 - (alpha || 0.3)) * 100).toFixed(0)}%)`;
98
+ }
99
+ if (recency != null) tooltip += ` \u00d7 recency ${(recency * 100).toFixed(0)}%`;
100
+
101
+ const recencyTag =
102
+ recency != null && recency < 0.95
103
+ ? `<span class="recency-tag" title="Recency: ${(recency * 100).toFixed(0)}%">${(recency * 100).toFixed(0)}%</span>`
104
+ : '';
105
+ const scoreType =
106
+ tfidf != null && semantic != null
107
+ ? '<span class="score-type hybrid">hybrid</span>'
108
+ : tfidf != null
109
+ ? '<span class="score-type tfidf">tf-idf</span>'
110
+ : '';
111
+ return `<div class="score-bar" title="${tooltip}">
112
+ <div class="score-fill" style="width:${pct}%"></div>
113
+ <span class="score-label">${score.toFixed(2)}${recencyTag}${scoreType}</span>
114
+ </div>`;
115
+ }
116
+
117
+ // ── Toast notifications ─────────────────────────────────────────────────────
118
+
119
+ function toast(msg, type = 'info', duration = 4000) {
120
+ const container = $('toast-container');
121
+ const t = document.createElement('div');
122
+ t.className = `toast toast-${type}`;
123
+ const icons = { info: 'info', success: 'check_circle', error: 'error', warning: 'warning' };
124
+ t.innerHTML = `<span class="material-symbols-outlined toast-icon">${icons[type] || 'info'}</span>
125
+ <span class="toast-msg">${esc(msg)}</span>`;
126
+ container.appendChild(t);
127
+ requestAnimationFrame(() => t.classList.add('show'));
128
+ setTimeout(() => {
129
+ t.classList.remove('show');
130
+ t.addEventListener('transitionend', () => t.remove());
131
+ }, duration);
132
+ }
133
+
134
+ // ── API helper ──────────────────────────────────────────────────────────────
135
+
136
+ async function api(path) {
137
+ const res = await fetch(`/api${path}`);
138
+ if (!res.ok) throw new Error(`API ${res.status}: ${res.statusText}`);
139
+ return res.json();
140
+ }
141
+
142
+ // ── Theme ───────────────────────────────────────────────────────────────────
143
+
144
+ function initTheme() {
145
+ const saved = localStorage.getItem('agent-knowledge-theme');
146
+ const theme = saved || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
147
+ applyTheme(theme);
148
+ }
149
+
150
+ function applyTheme(theme) {
151
+ document.documentElement.setAttribute('data-theme', theme);
152
+ localStorage.setItem('agent-knowledge-theme', theme);
153
+ const icon = $('theme-toggle')?.querySelector('.theme-icon');
154
+ if (icon) icon.textContent = theme === 'dark' ? 'light_mode' : 'dark_mode';
155
+ }
156
+
157
+ function toggleTheme() {
158
+ const cur = document.documentElement.getAttribute('data-theme') || 'light';
159
+ applyTheme(cur === 'dark' ? 'light' : 'dark');
160
+ }
161
+
162
+ // ── Strip frontmatter ───────────────────────────────────────────────────────
163
+
164
+ function stripFrontmatter(content) {
165
+ const match = content.match(/^---\n[\s\S]*?\n---\n([\s\S]*)$/);
166
+ return match ? match[1].trim() : content;
167
+ }
168
+
169
+ // ── Check if input is focused ───────────────────────────────────────────────
170
+
171
+ function isInputFocused() {
172
+ const active = document.activeElement;
173
+ if (!active) return false;
174
+ const tag = active.tagName.toLowerCase();
175
+ return tag === 'input' || tag === 'textarea' || tag === 'select' || active.isContentEditable;
176
+ }
177
+
178
+ // ── Export ──────────────────────────────────────────────────────────────────
179
+
180
+ Object.assign(window.Knowledge, {
181
+ $,
182
+ esc,
183
+ debounce,
184
+ relativeTime,
185
+ renderMd,
186
+ highlightExcerpt,
187
+ formatScore,
188
+ toast,
189
+ api,
190
+ initTheme,
191
+ applyTheme,
192
+ toggleTheme,
193
+ stripFrontmatter,
194
+ isInputFocused,
195
+ });
196
+ })();
@@ -36,91 +36,74 @@ export interface VectorStoreStats {
36
36
  /**
37
37
  * SQLite + sqlite-vec vector store for semantic search.
38
38
  *
39
- * Lazily initializes the database on first access. Stores embeddings as
40
- * Float32 BLOBs and uses sqlite-vec's vec0 virtual table for cosine
41
- * similarity search.
39
+ * Call `connect()` once before using the store, or let public methods
40
+ * auto-connect on first access. The DB connection and schema are set up
41
+ * once; subsequent calls are no-ops.
42
42
  */
43
43
  export declare class VectorStore {
44
44
  private db;
45
45
  private dbPath;
46
- private initialized;
46
+ private connected;
47
47
  private vecAvailable;
48
48
  private currentDimensions;
49
- /**
50
- * Create a VectorStore instance.
51
- * @param dbPath - Path to the SQLite database file. Defaults to `{dataDir}/knowledge-vectors.db`.
52
- */
49
+ private connectError;
53
50
  constructor(dbPath?: string);
54
51
  /**
55
- * Initialize the database: create tables, load sqlite-vec extension.
56
- * Called lazily on first operation that needs the DB.
52
+ * Open the database, create tables, and load the sqlite-vec extension.
53
+ * Safe to call multiple times — subsequent calls are no-ops unless
54
+ * `dimensions` changes (which recreates the vec0 virtual table).
55
+ *
56
+ * If called without `dimensions`, uses the value stored in the meta table
57
+ * from a previous run. Throws if no dimensions are available at all.
57
58
  */
58
- private init;
59
- /** Attempt to load the sqlite-vec extension. */
59
+ connect(dimensions?: number): void;
60
+ private openDb;
61
+ private createSchema;
60
62
  private loadVecExtension;
61
- /** Create or verify the vec0 virtual table matches the expected dimensions. */
62
63
  private ensureVecTable;
63
- /** Get a value from the meta table. */
64
+ /**
65
+ * Read stored dimensions from meta (opens a temporary read-only DB if needed).
66
+ */
67
+ private readStoredDimensions;
68
+ /**
69
+ * Ensure the store is connected. Auto-connects if not yet connected.
70
+ * If `dimensions` is provided, also ensures the vec0 table matches.
71
+ *
72
+ * Throws a clear error if initialization fails.
73
+ */
74
+ private requireConnection;
64
75
  private getMetaValue;
65
- /** Set a value in the meta table. */
66
76
  private setMetaValue;
67
- /** Ensure DB is initialized, using dimensions from the first entry or the stored value. */
68
- private ensureInit;
69
- /** Read stored dimensions from meta (requires db to exist). */
70
- private getStoredDimensions;
71
77
  /**
72
78
  * Store embeddings for a source. Replaces existing chunks for the same source_id.
73
79
  * Uses a transaction for atomicity.
74
- *
75
- * @param entries - The embedding entries to store
76
80
  */
77
81
  upsert(entries: VectorEntry[]): void;
78
82
  /**
79
83
  * Search by vector similarity. Returns top-k nearest neighbors.
80
- *
81
- * @param queryVector - The query embedding vector
82
- * @param maxResults - Maximum number of results (default 10)
83
- * @returns Sorted results with cosine similarity scores
84
84
  */
85
85
  search(queryVector: number[], maxResults?: number): VectorSearchResult[];
86
86
  /**
87
87
  * Search filtered by source type (knowledge or session).
88
- *
89
- * @param queryVector - The query embedding vector
90
- * @param source - Filter to 'knowledge' or 'session' entries only
91
- * @param maxResults - Maximum number of results (default 10)
92
- * @returns Sorted results with cosine similarity scores
93
88
  */
94
89
  searchBySource(queryVector: number[], source: 'knowledge' | 'session', maxResults?: number): VectorSearchResult[];
95
- /** Internal search implementation with optional source filter. */
96
90
  private searchInternal;
97
91
  /**
98
92
  * Delete all embeddings for a given source_id.
99
- *
100
- * @param sourceId - The source identifier to remove
101
93
  */
102
94
  deleteBySource(sourceId: string): void;
103
95
  /**
104
96
  * Check whether a source_id has any stored embeddings.
105
- *
106
- * @param sourceId - The source identifier to check
107
- * @returns True if at least one embedding exists for this source
108
97
  */
109
98
  hasEmbeddings(sourceId: string): boolean;
110
99
  /**
111
100
  * Get the name of the currently active embedding provider.
112
- *
113
- * @returns The provider name, or null if none is set
114
101
  */
115
102
  getCurrentProvider(): string | null;
116
103
  /**
117
104
  * Set the active embedding provider. If the provider has changed since
118
105
  * the last call, all existing embeddings are wiped to avoid mixing
119
106
  * incompatible vector spaces.
120
- *
121
- * @param providerName - The provider name (e.g. "openai", "ollama")
122
- * @param dimensions - The embedding dimensions for this provider
123
- * @returns True if a wipe was performed (provider changed)
124
107
  */
125
108
  setProvider(providerName: string, dimensions: number): boolean;
126
109
  /**
@@ -130,8 +113,6 @@ export declare class VectorStore {
130
113
  wipe(): void;
131
114
  /**
132
115
  * Get statistics about the vector store.
133
- *
134
- * @returns Counts by source type, DB file size, provider, and dimensions
135
116
  */
136
117
  stats(): VectorStoreStats;
137
118
  /** Close the database connection and release resources. */
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/vectorstore/store.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,yCAAyC;AACzC,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,6CAA6C;AAC7C,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAA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