agent-knowledge 1.7.2 → 1.8.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 (45) hide show
  1. package/.claude-plugin/marketplace.json +19 -0
  2. package/.claude-plugin/plugin.json +12 -0
  3. package/.mcp.json +8 -0
  4. package/CHANGELOG.md +43 -0
  5. package/README.md +43 -18
  6. package/agent-desk-plugin.json +1 -1
  7. package/dist/knowledge/promote.d.ts +145 -0
  8. package/dist/knowledge/promote.d.ts.map +1 -0
  9. package/dist/knowledge/promote.js +517 -0
  10. package/dist/knowledge/promote.js.map +1 -0
  11. package/dist/knowledge/scoring.d.ts +6 -2
  12. package/dist/knowledge/scoring.d.ts.map +1 -1
  13. package/dist/knowledge/scoring.js +7 -3
  14. package/dist/knowledge/scoring.js.map +1 -1
  15. package/dist/knowledge/search.d.ts +32 -5
  16. package/dist/knowledge/search.d.ts.map +1 -1
  17. package/dist/knowledge/search.js +60 -10
  18. package/dist/knowledge/search.js.map +1 -1
  19. package/dist/knowledge/store.d.ts +6 -0
  20. package/dist/knowledge/store.d.ts.map +1 -1
  21. package/dist/knowledge/store.js +10 -0
  22. package/dist/knowledge/store.js.map +1 -1
  23. package/dist/search/mmr.d.ts +54 -0
  24. package/dist/search/mmr.d.ts.map +1 -0
  25. package/dist/search/mmr.js +138 -0
  26. package/dist/search/mmr.js.map +1 -0
  27. package/dist/server.d.ts +307 -0
  28. package/dist/server.d.ts.map +1 -1
  29. package/dist/server.js +336 -301
  30. package/dist/server.js.map +1 -1
  31. package/dist/sessions/indexer.d.ts.map +1 -1
  32. package/dist/sessions/indexer.js +13 -11
  33. package/dist/sessions/indexer.js.map +1 -1
  34. package/dist/tool-handlers.d.ts +10 -3
  35. package/dist/tool-handlers.d.ts.map +1 -1
  36. package/dist/tool-handlers.js +56 -17
  37. package/dist/tool-handlers.js.map +1 -1
  38. package/docs/ARCHITECTURE.md +31 -6
  39. package/docs/SETUP.md +20 -8
  40. package/docs/USER-MANUAL.md +146 -39
  41. package/docs/hooks.md +81 -21
  42. package/package.json +8 -2
  43. package/scripts/hooks/first-prompt-inject.mjs +230 -0
  44. package/scripts/hooks/precompact-flush.mjs +89 -60
  45. package/scripts/hooks/session-start.js +73 -9
package/dist/server.d.ts CHANGED
@@ -3,5 +3,312 @@ export interface ServerOptions {
3
3
  /** Only the leader instance (dashboard owner) runs background indexing. */
4
4
  isLeader?: boolean;
5
5
  }
6
+ export declare const TOOLS: readonly [{
7
+ name: string;
8
+ description: string;
9
+ inputSchema: {
10
+ type: "object";
11
+ properties: {
12
+ action: {
13
+ type: string;
14
+ enum: string[];
15
+ description: string;
16
+ };
17
+ token_budget: {
18
+ type: string;
19
+ description: string;
20
+ };
21
+ category: {
22
+ type: string;
23
+ enum: ("projects" | "people" | "decisions" | "workflows" | "notes")[];
24
+ description: string;
25
+ };
26
+ tag: {
27
+ type: string;
28
+ description: string;
29
+ };
30
+ path: {
31
+ type: string;
32
+ description: string;
33
+ };
34
+ filename: {
35
+ type: string;
36
+ description: string;
37
+ };
38
+ content: {
39
+ type: string;
40
+ description: string;
41
+ };
42
+ };
43
+ required: string[];
44
+ };
45
+ }, {
46
+ name: string;
47
+ description: string;
48
+ inputSchema: {
49
+ type: "object";
50
+ properties: {
51
+ query: {
52
+ type: string;
53
+ description: string;
54
+ };
55
+ scope: {
56
+ type: string;
57
+ enum: ("decisions" | "all" | "errors" | "plans" | "configs" | "tools" | "files")[];
58
+ description: string;
59
+ };
60
+ project: {
61
+ type: string;
62
+ description: string;
63
+ };
64
+ role: {
65
+ type: string;
66
+ enum: string[];
67
+ description: string;
68
+ };
69
+ max_results: {
70
+ type: string;
71
+ description: string;
72
+ };
73
+ ranked: {
74
+ type: string;
75
+ description: string;
76
+ };
77
+ semantic: {
78
+ type: string;
79
+ description: string;
80
+ };
81
+ category: {
82
+ type: string;
83
+ enum: ("projects" | "people" | "decisions" | "workflows" | "notes")[];
84
+ description: string;
85
+ };
86
+ category_mode: {
87
+ type: string;
88
+ enum: string[];
89
+ description: string;
90
+ };
91
+ mmr: {
92
+ type: string;
93
+ description: string;
94
+ };
95
+ mmr_lambda: {
96
+ type: string;
97
+ description: string;
98
+ };
99
+ explain: {
100
+ type: string;
101
+ description: string;
102
+ };
103
+ };
104
+ required: string[];
105
+ };
106
+ }, {
107
+ name: string;
108
+ description: string;
109
+ inputSchema: {
110
+ type: "object";
111
+ properties: {
112
+ action: {
113
+ type: string;
114
+ enum: string[];
115
+ description: string;
116
+ };
117
+ session_id: {
118
+ type: string;
119
+ description: string;
120
+ };
121
+ project: {
122
+ type: string;
123
+ description: string;
124
+ };
125
+ include_tools: {
126
+ type: string;
127
+ description: string;
128
+ };
129
+ tail: {
130
+ type: string;
131
+ description: string;
132
+ };
133
+ limit: {
134
+ type: string;
135
+ description: string;
136
+ };
137
+ offset: {
138
+ type: string;
139
+ description: string;
140
+ };
141
+ };
142
+ required: string[];
143
+ };
144
+ }, {
145
+ name: string;
146
+ description: string;
147
+ inputSchema: {
148
+ type: "object";
149
+ properties: {
150
+ action: {
151
+ type: string;
152
+ enum: string[];
153
+ description: string;
154
+ };
155
+ vacuum: {
156
+ type: string;
157
+ description: string;
158
+ };
159
+ force_vacuum: {
160
+ type: string;
161
+ description: string;
162
+ };
163
+ git_url: {
164
+ type: string;
165
+ description: string;
166
+ };
167
+ memory_dir: {
168
+ type: string;
169
+ description: string;
170
+ };
171
+ auto_distill: {
172
+ type: string;
173
+ description: string;
174
+ };
175
+ promote_mode: {
176
+ type: string;
177
+ enum: string[];
178
+ description: string;
179
+ };
180
+ min_score: {
181
+ type: string;
182
+ description: string;
183
+ };
184
+ min_recall_count: {
185
+ type: string;
186
+ description: string;
187
+ };
188
+ min_unique_queries: {
189
+ type: string;
190
+ description: string;
191
+ };
192
+ };
193
+ required: string[];
194
+ };
195
+ }, {
196
+ name: string;
197
+ description: string;
198
+ inputSchema: {
199
+ type: "object";
200
+ properties: {
201
+ action: {
202
+ type: string;
203
+ enum: string[];
204
+ description: string;
205
+ };
206
+ source: {
207
+ type: string;
208
+ description: string;
209
+ };
210
+ target: {
211
+ type: string;
212
+ description: string;
213
+ };
214
+ entry: {
215
+ type: string;
216
+ description: string;
217
+ };
218
+ rel_type: {
219
+ type: string;
220
+ enum: ("related_to" | "supersedes" | "depends_on" | "contradicts" | "specializes" | "part_of" | "alternative_to" | "builds_on" | "calls" | "imports" | "inherits")[];
221
+ description: string;
222
+ };
223
+ strength: {
224
+ type: string;
225
+ description: string;
226
+ };
227
+ depth: {
228
+ type: string;
229
+ description: string;
230
+ };
231
+ valid_from: {
232
+ type: string;
233
+ description: string;
234
+ };
235
+ valid_to: {
236
+ type: string;
237
+ description: string;
238
+ };
239
+ as_of: {
240
+ type: string;
241
+ description: string;
242
+ };
243
+ direction: {
244
+ type: string;
245
+ enum: string[];
246
+ description: string;
247
+ };
248
+ edges: {
249
+ type: string;
250
+ description: string;
251
+ items: {
252
+ type: string;
253
+ properties: {
254
+ source: {
255
+ type: string;
256
+ };
257
+ target: {
258
+ type: string;
259
+ };
260
+ rel_type: {
261
+ type: string;
262
+ enum: ("related_to" | "supersedes" | "depends_on" | "contradicts" | "specializes" | "part_of" | "alternative_to" | "builds_on" | "calls" | "imports" | "inherits")[];
263
+ };
264
+ strength: {
265
+ type: string;
266
+ };
267
+ origin: {
268
+ type: string;
269
+ };
270
+ };
271
+ required: string[];
272
+ };
273
+ };
274
+ origin: {
275
+ type: string;
276
+ description: string;
277
+ };
278
+ };
279
+ required: string[];
280
+ };
281
+ }, {
282
+ name: string;
283
+ description: string;
284
+ inputSchema: {
285
+ type: "object";
286
+ properties: {
287
+ action: {
288
+ type: string;
289
+ enum: string[];
290
+ description: string;
291
+ };
292
+ category: {
293
+ type: string;
294
+ enum: ("projects" | "people" | "decisions" | "workflows" | "notes")[];
295
+ description: string;
296
+ };
297
+ threshold: {
298
+ type: string;
299
+ description: string;
300
+ };
301
+ max_entries: {
302
+ type: string;
303
+ description: string;
304
+ };
305
+ top_n: {
306
+ type: string;
307
+ description: string;
308
+ };
309
+ };
310
+ required: string[];
311
+ };
312
+ }];
6
313
  export declare function createServer(options?: ServerOptions): Server;
7
314
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAUnE,MAAM,WAAW,aAAa;IAC5B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CA0X5D"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAUnE,MAAM,WAAW,aAAa;IAC5B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAmXD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOR,CAAC;AAEX,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CA4C5D"}