@cachly-dev/mcp-server 0.10.129 → 0.10.130

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 (223) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +1 -7
  3. package/dist/packages/telegram-notify/client.js +2 -75
  4. package/dist/src/ambient-cli.js +7 -253
  5. package/dist/src/ambient-deps.js +1 -55
  6. package/dist/src/ambient-hooks.js +5 -278
  7. package/dist/src/ambient-ledger.js +6 -95
  8. package/dist/src/ambient-memory.js +1 -67
  9. package/dist/src/ambient-recall.js +1 -221
  10. package/dist/src/aussetzer.js +1 -225
  11. package/dist/src/auth.js +9 -140
  12. package/dist/src/autor-abzeichen.js +1 -56
  13. package/dist/src/autor.js +1 -136
  14. package/dist/src/bauabdruck.js +1 -93
  15. package/dist/src/bedeutung.js +2 -323
  16. package/dist/src/bench/cachly-bench.js +4 -249
  17. package/dist/src/bench/external-corpus.js +4 -135
  18. package/dist/src/bench/fixtures.js +1 -225
  19. package/dist/src/brain-export.js +16 -119
  20. package/dist/src/brain-watch-hook.js +8 -86
  21. package/dist/src/cachly-url.js +1 -21
  22. package/dist/src/ckg.js +1 -108
  23. package/dist/src/cls-hook.js +8 -94
  24. package/dist/src/confidence.js +1 -50
  25. package/dist/src/credentials.js +1 -85
  26. package/dist/src/deutsch.js +1 -223
  27. package/dist/src/doctor.js +2 -248
  28. package/dist/src/editor.js +1 -63
  29. package/dist/src/eingaenge-nachruesten.js +1 -290
  30. package/dist/src/eingaenge.js +2 -260
  31. package/dist/src/embeddings.js +13 -223
  32. package/dist/src/feldreparatur.js +3 -113
  33. package/dist/src/first-contact.js +4 -108
  34. package/dist/src/first-recall-proof.js +4 -41
  35. package/dist/src/funnel-milestones.js +2 -48
  36. package/dist/src/geliefert.js +1 -114
  37. package/dist/src/handlers/advanced.js +38 -537
  38. package/dist/src/handlers/brain.js +69 -4397
  39. package/dist/src/handlers/cache.js +59 -638
  40. package/dist/src/handlers/context.js +17 -182
  41. package/dist/src/handlers/fedbrain.js +40 -1436
  42. package/dist/src/handlers/instances.js +16 -201
  43. package/dist/src/handlers/roadmap.js +13 -175
  44. package/dist/src/handlers/share.js +19 -530
  45. package/dist/src/handlers/syndicate.js +38 -904
  46. package/dist/src/handlers/team.js +89 -1865
  47. package/dist/src/handlers/viz.js +3 -148
  48. package/dist/src/index.js +321 -4281
  49. package/dist/src/interferenz.js +1 -141
  50. package/dist/src/kostprobe.js +7 -125
  51. package/dist/src/lesson-preview.js +2 -133
  52. package/dist/src/namespace.js +1 -128
  53. package/dist/src/notifier.js +1 -6
  54. package/dist/src/rangfolge-stellschrauben.js +1 -0
  55. package/dist/src/rangfolge.js +1 -249
  56. package/dist/src/raumkorrektur.js +1 -197
  57. package/dist/src/recall-tiefe.js +1 -42
  58. package/dist/src/rerank.js +1 -154
  59. package/dist/src/resonanz.js +1 -140
  60. package/dist/src/search.js +1 -2104
  61. package/dist/src/seltenheitsbestand.js +1 -92
  62. package/dist/src/speicherlage.js +1 -84
  63. package/dist/src/spuren.js +1 -150
  64. package/dist/src/starter-corpus.js +1 -165
  65. package/dist/src/telemetry-types.js +0 -13
  66. package/dist/src/tools.js +10 -2465
  67. package/dist/src/toolspecs.js +1 -121
  68. package/dist/src/upgrade-nudge.js +1 -29
  69. package/dist/src/utils.js +1 -89
  70. package/dist/src/versuch.js +1 -264
  71. package/dist/src/vorspann.js +1 -146
  72. package/dist/src/wartung/vektoren-verdichten.js +1 -200
  73. package/dist/src/werkzeug-nutzung.js +1 -72
  74. package/dist/src/wertbeitrag.js +1 -203
  75. package/dist/src/wirkungsspur.js +1 -0
  76. package/glama.json +1 -1
  77. package/package.json +8 -7
  78. package/server.json +3 -3
  79. package/dist/index.d.ts +0 -1
  80. package/dist/index.js.map +0 -1
  81. package/dist/packages/telegram-notify/client.d.ts +0 -19
  82. package/dist/packages/telegram-notify/client.js.map +0 -1
  83. package/dist/src/ambient-cli.d.ts +0 -101
  84. package/dist/src/ambient-cli.js.map +0 -1
  85. package/dist/src/ambient-deps.d.ts +0 -26
  86. package/dist/src/ambient-deps.js.map +0 -1
  87. package/dist/src/ambient-hooks.d.ts +0 -137
  88. package/dist/src/ambient-hooks.js.map +0 -1
  89. package/dist/src/ambient-ledger.d.ts +0 -19
  90. package/dist/src/ambient-ledger.js.map +0 -1
  91. package/dist/src/ambient-memory.d.ts +0 -12
  92. package/dist/src/ambient-memory.js.map +0 -1
  93. package/dist/src/ambient-recall.d.ts +0 -127
  94. package/dist/src/ambient-recall.js.map +0 -1
  95. package/dist/src/aussetzer.d.ts +0 -156
  96. package/dist/src/aussetzer.js.map +0 -1
  97. package/dist/src/auth.d.ts +0 -43
  98. package/dist/src/auth.js.map +0 -1
  99. package/dist/src/autor-abzeichen.d.ts +0 -41
  100. package/dist/src/autor-abzeichen.js.map +0 -1
  101. package/dist/src/autor.d.ts +0 -101
  102. package/dist/src/autor.js.map +0 -1
  103. package/dist/src/bauabdruck-daten.generiert.json +0 -5
  104. package/dist/src/bauabdruck.d.ts +0 -38
  105. package/dist/src/bauabdruck.js.map +0 -1
  106. package/dist/src/bedeutung.d.ts +0 -168
  107. package/dist/src/bedeutung.js.map +0 -1
  108. package/dist/src/bench/cachly-bench.d.ts +0 -61
  109. package/dist/src/bench/cachly-bench.js.map +0 -1
  110. package/dist/src/bench/external-corpus.d.ts +0 -44
  111. package/dist/src/bench/external-corpus.js.map +0 -1
  112. package/dist/src/bench/fixtures.d.ts +0 -37
  113. package/dist/src/bench/fixtures.js.map +0 -1
  114. package/dist/src/brain-export.d.ts +0 -64
  115. package/dist/src/brain-export.js.map +0 -1
  116. package/dist/src/brain-watch-hook.d.ts +0 -21
  117. package/dist/src/brain-watch-hook.js.map +0 -1
  118. package/dist/src/cachly-url.d.ts +0 -68
  119. package/dist/src/cachly-url.js.map +0 -1
  120. package/dist/src/ckg.d.ts +0 -54
  121. package/dist/src/ckg.js.map +0 -1
  122. package/dist/src/cls-hook.d.ts +0 -15
  123. package/dist/src/cls-hook.js.map +0 -1
  124. package/dist/src/confidence.d.ts +0 -19
  125. package/dist/src/confidence.js.map +0 -1
  126. package/dist/src/credentials.d.ts +0 -37
  127. package/dist/src/credentials.js.map +0 -1
  128. package/dist/src/deutsch.d.ts +0 -98
  129. package/dist/src/deutsch.js.map +0 -1
  130. package/dist/src/doctor.d.ts +0 -47
  131. package/dist/src/doctor.js.map +0 -1
  132. package/dist/src/editor.d.ts +0 -9
  133. package/dist/src/editor.js.map +0 -1
  134. package/dist/src/eingaenge-nachruesten.d.ts +0 -41
  135. package/dist/src/eingaenge-nachruesten.js.map +0 -1
  136. package/dist/src/eingaenge.d.ts +0 -159
  137. package/dist/src/eingaenge.js.map +0 -1
  138. package/dist/src/embeddings.d.ts +0 -48
  139. package/dist/src/embeddings.js.map +0 -1
  140. package/dist/src/feldreparatur.d.ts +0 -58
  141. package/dist/src/feldreparatur.js.map +0 -1
  142. package/dist/src/first-contact.d.ts +0 -56
  143. package/dist/src/first-contact.js.map +0 -1
  144. package/dist/src/first-recall-proof.d.ts +0 -19
  145. package/dist/src/first-recall-proof.js.map +0 -1
  146. package/dist/src/funnel-milestones.d.ts +0 -5
  147. package/dist/src/funnel-milestones.js.map +0 -1
  148. package/dist/src/geliefert.d.ts +0 -63
  149. package/dist/src/geliefert.js.map +0 -1
  150. package/dist/src/handlers/advanced.d.ts +0 -6
  151. package/dist/src/handlers/advanced.js.map +0 -1
  152. package/dist/src/handlers/brain.d.ts +0 -41
  153. package/dist/src/handlers/brain.js.map +0 -1
  154. package/dist/src/handlers/cache.d.ts +0 -6
  155. package/dist/src/handlers/cache.js.map +0 -1
  156. package/dist/src/handlers/context.d.ts +0 -6
  157. package/dist/src/handlers/context.js.map +0 -1
  158. package/dist/src/handlers/fedbrain.d.ts +0 -18
  159. package/dist/src/handlers/fedbrain.js.map +0 -1
  160. package/dist/src/handlers/instances.d.ts +0 -33
  161. package/dist/src/handlers/instances.js.map +0 -1
  162. package/dist/src/handlers/roadmap.d.ts +0 -6
  163. package/dist/src/handlers/roadmap.js.map +0 -1
  164. package/dist/src/handlers/share.d.ts +0 -8
  165. package/dist/src/handlers/share.js.map +0 -1
  166. package/dist/src/handlers/syndicate.d.ts +0 -6
  167. package/dist/src/handlers/syndicate.js.map +0 -1
  168. package/dist/src/handlers/team.d.ts +0 -45
  169. package/dist/src/handlers/team.js.map +0 -1
  170. package/dist/src/handlers/viz.d.ts +0 -6
  171. package/dist/src/handlers/viz.js.map +0 -1
  172. package/dist/src/index.d.ts +0 -93
  173. package/dist/src/index.js.map +0 -1
  174. package/dist/src/interferenz.d.ts +0 -111
  175. package/dist/src/interferenz.js.map +0 -1
  176. package/dist/src/kostprobe.d.ts +0 -25
  177. package/dist/src/kostprobe.js.map +0 -1
  178. package/dist/src/lesson-preview.d.ts +0 -81
  179. package/dist/src/lesson-preview.js.map +0 -1
  180. package/dist/src/namespace.d.ts +0 -20
  181. package/dist/src/namespace.js.map +0 -1
  182. package/dist/src/notifier.d.ts +0 -5
  183. package/dist/src/notifier.js.map +0 -1
  184. package/dist/src/rangfolge.d.ts +0 -205
  185. package/dist/src/rangfolge.js.map +0 -1
  186. package/dist/src/raumkorrektur.d.ts +0 -100
  187. package/dist/src/raumkorrektur.js.map +0 -1
  188. package/dist/src/recall-tiefe.d.ts +0 -48
  189. package/dist/src/recall-tiefe.js.map +0 -1
  190. package/dist/src/rerank.d.ts +0 -48
  191. package/dist/src/rerank.js.map +0 -1
  192. package/dist/src/resonanz.d.ts +0 -85
  193. package/dist/src/resonanz.js.map +0 -1
  194. package/dist/src/search.d.ts +0 -153
  195. package/dist/src/search.js.map +0 -1
  196. package/dist/src/seltenheitsbestand.d.ts +0 -53
  197. package/dist/src/seltenheitsbestand.js.map +0 -1
  198. package/dist/src/speicherlage.d.ts +0 -51
  199. package/dist/src/speicherlage.js.map +0 -1
  200. package/dist/src/spuren.d.ts +0 -97
  201. package/dist/src/spuren.js.map +0 -1
  202. package/dist/src/starter-corpus.d.ts +0 -28
  203. package/dist/src/starter-corpus.js.map +0 -1
  204. package/dist/src/telemetry-types.d.ts +0 -87
  205. package/dist/src/telemetry-types.js.map +0 -1
  206. package/dist/src/tools.d.ts +0 -2933
  207. package/dist/src/tools.js.map +0 -1
  208. package/dist/src/toolspecs.d.ts +0 -43
  209. package/dist/src/toolspecs.js.map +0 -1
  210. package/dist/src/upgrade-nudge.d.ts +0 -15
  211. package/dist/src/upgrade-nudge.js.map +0 -1
  212. package/dist/src/utils.d.ts +0 -34
  213. package/dist/src/utils.js.map +0 -1
  214. package/dist/src/versuch.d.ts +0 -187
  215. package/dist/src/versuch.js.map +0 -1
  216. package/dist/src/vorspann.d.ts +0 -73
  217. package/dist/src/vorspann.js.map +0 -1
  218. package/dist/src/wartung/vektoren-verdichten.d.ts +0 -50
  219. package/dist/src/wartung/vektoren-verdichten.js.map +0 -1
  220. package/dist/src/werkzeug-nutzung.d.ts +0 -62
  221. package/dist/src/werkzeug-nutzung.js.map +0 -1
  222. package/dist/src/wertbeitrag.d.ts +0 -148
  223. package/dist/src/wertbeitrag.js.map +0 -1
@@ -1,2933 +0,0 @@
1
- declare const TOOLS: readonly [{
2
- readonly name: "list_instances";
3
- readonly description: string;
4
- readonly inputSchema: {
5
- readonly type: "object";
6
- readonly properties: {};
7
- readonly required: readonly [];
8
- };
9
- }, {
10
- readonly name: "create_instance";
11
- readonly description: string;
12
- readonly inputSchema: {
13
- readonly type: "object";
14
- readonly properties: {
15
- readonly name: {
16
- readonly type: "string";
17
- readonly description: "Unique name for the instance (min 3 chars)";
18
- };
19
- readonly tier: {
20
- readonly type: "string";
21
- readonly enum: readonly ["free", "dev", "pro", "speed", "business"];
22
- readonly description: "Pricing tier. Start with \"free\" for testing.";
23
- };
24
- };
25
- readonly required: readonly ["name", "tier"];
26
- };
27
- }, {
28
- readonly name: "get_instance";
29
- readonly description: string;
30
- readonly inputSchema: {
31
- readonly type: "object";
32
- readonly properties: {
33
- readonly instance_id: {
34
- readonly type: "string";
35
- readonly description: "UUID of the instance (from list_instances)";
36
- };
37
- };
38
- readonly required: readonly ["instance_id"];
39
- };
40
- }, {
41
- readonly name: "get_connection_string";
42
- readonly description: string;
43
- readonly inputSchema: {
44
- readonly type: "object";
45
- readonly properties: {
46
- readonly instance_id: {
47
- readonly type: "string";
48
- readonly description: "UUID of the instance";
49
- };
50
- };
51
- readonly required: readonly ["instance_id"];
52
- };
53
- }, {
54
- readonly name: "delete_instance";
55
- readonly description: string;
56
- readonly inputSchema: {
57
- readonly type: "object";
58
- readonly properties: {
59
- readonly instance_id: {
60
- readonly type: "string";
61
- readonly description: "UUID of the instance to delete";
62
- };
63
- readonly confirm: {
64
- readonly type: "boolean";
65
- readonly description: "Must be true to confirm deletion";
66
- };
67
- };
68
- readonly required: readonly ["instance_id", "confirm"];
69
- };
70
- }, {
71
- readonly name: "cache_get";
72
- readonly description: string;
73
- readonly inputSchema: {
74
- readonly type: "object";
75
- readonly properties: {
76
- readonly instance_id: {
77
- readonly type: "string";
78
- readonly description: "UUID of the instance";
79
- };
80
- readonly key: {
81
- readonly type: "string";
82
- readonly description: "Cache key to retrieve";
83
- };
84
- readonly org_id: {
85
- readonly type: "string";
86
- readonly description: "Optional org ID — if the direct key misses, falls back to the shared org namespace org:{org_id}:sem:{key}";
87
- };
88
- };
89
- readonly required: readonly ["instance_id", "key"];
90
- };
91
- }, {
92
- readonly name: "cache_set";
93
- readonly description: string;
94
- readonly inputSchema: {
95
- readonly type: "object";
96
- readonly properties: {
97
- readonly instance_id: {
98
- readonly type: "string";
99
- readonly description: "UUID of the cache instance (from list_instances)";
100
- };
101
- readonly key: {
102
- readonly type: "string";
103
- readonly description: "Cache key";
104
- };
105
- readonly value: {
106
- readonly type: "string";
107
- readonly description: "Value to store (string or JSON)";
108
- };
109
- readonly ttl: {
110
- readonly type: "number";
111
- readonly description: "Time-to-live in seconds (optional, omit for no expiry)";
112
- };
113
- readonly org_id: {
114
- readonly type: "string";
115
- readonly description: "Optional org ID — also writes the key to the shared org namespace org:{org_id}:sem:{key} with the same TTL";
116
- };
117
- };
118
- readonly required: readonly ["instance_id", "key", "value"];
119
- };
120
- }, {
121
- readonly name: "cache_delete";
122
- readonly description: string;
123
- readonly inputSchema: {
124
- readonly type: "object";
125
- readonly properties: {
126
- readonly instance_id: {
127
- readonly type: "string";
128
- readonly description: "UUID of the cache instance to delete keys from (get from list_instances)";
129
- };
130
- readonly keys: {
131
- readonly type: "array";
132
- readonly items: {
133
- readonly type: "string";
134
- };
135
- readonly description: "One or more cache keys to delete. Accepts exact keys only (no glob patterns — use cache_keys to list first).";
136
- };
137
- };
138
- readonly required: readonly ["instance_id", "keys"];
139
- };
140
- }, {
141
- readonly name: "cache_exists";
142
- readonly description: string;
143
- readonly inputSchema: {
144
- readonly type: "object";
145
- readonly properties: {
146
- readonly instance_id: {
147
- readonly type: "string";
148
- readonly description: "UUID of the cache instance to check (get from list_instances)";
149
- };
150
- readonly keys: {
151
- readonly type: "array";
152
- readonly items: {
153
- readonly type: "string";
154
- };
155
- readonly description: "Keys to check for existence. Accepts exact keys only (no glob patterns).";
156
- };
157
- };
158
- readonly required: readonly ["instance_id", "keys"];
159
- };
160
- }, {
161
- readonly name: "cache_ttl";
162
- readonly description: string;
163
- readonly inputSchema: {
164
- readonly type: "object";
165
- readonly properties: {
166
- readonly instance_id: {
167
- readonly type: "string";
168
- readonly description: "UUID of the cache instance (from list_instances)";
169
- };
170
- readonly key: {
171
- readonly type: "string";
172
- readonly description: "Cache key to inspect";
173
- };
174
- };
175
- readonly required: readonly ["instance_id", "key"];
176
- };
177
- }, {
178
- readonly name: "cache_keys";
179
- readonly description: string;
180
- readonly inputSchema: {
181
- readonly type: "object";
182
- readonly properties: {
183
- readonly instance_id: {
184
- readonly type: "string";
185
- };
186
- readonly pattern: {
187
- readonly type: "string";
188
- readonly description: "Glob pattern (default: *)";
189
- };
190
- readonly count: {
191
- readonly type: "number";
192
- readonly description: "Max keys to return (default: 50, max: 500)";
193
- };
194
- };
195
- readonly required: readonly ["instance_id"];
196
- };
197
- }, {
198
- readonly name: "cache_stats";
199
- readonly description: string;
200
- readonly inputSchema: {
201
- readonly type: "object";
202
- readonly properties: {
203
- readonly instance_id: {
204
- readonly type: "string";
205
- readonly description: "UUID of the cache instance (from list_instances)";
206
- };
207
- };
208
- readonly required: readonly ["instance_id"];
209
- };
210
- }, {
211
- readonly name: "semantic_search";
212
- readonly description: string;
213
- readonly inputSchema: {
214
- readonly type: "object";
215
- readonly properties: {
216
- readonly instance_id: {
217
- readonly type: "string";
218
- readonly description: "UUID of the cache instance (from list_instances)";
219
- };
220
- readonly query: {
221
- readonly type: "string";
222
- readonly description: "Natural-language query to find similar cached content";
223
- };
224
- readonly threshold: {
225
- readonly type: "number";
226
- readonly description: "Minimum cosine similarity 0–1 (default: 0.82). Lower = broader matches.";
227
- };
228
- readonly namespace: {
229
- readonly type: "string";
230
- readonly description: "Semantic namespace to search in (default: cachly:sem)";
231
- };
232
- readonly top_k: {
233
- readonly type: "number";
234
- readonly description: "Maximum number of results to return (default: 5)";
235
- };
236
- readonly use_hybrid: {
237
- readonly type: "boolean";
238
- readonly description: string;
239
- };
240
- readonly auto_namespace: {
241
- readonly type: "boolean";
242
- readonly description: string;
243
- };
244
- };
245
- readonly required: readonly ["instance_id", "query"];
246
- };
247
- }, {
248
- readonly name: "detect_namespace";
249
- readonly description: string;
250
- readonly inputSchema: {
251
- readonly type: "object";
252
- readonly properties: {
253
- readonly prompt: {
254
- readonly type: "string";
255
- readonly description: "The text prompt to classify into a semantic namespace";
256
- };
257
- };
258
- readonly required: readonly ["prompt"];
259
- };
260
- }, {
261
- readonly name: "cache_warmup";
262
- readonly description: string;
263
- readonly inputSchema: {
264
- readonly type: "object";
265
- readonly properties: {
266
- readonly instance_id: {
267
- readonly type: "string";
268
- readonly description: "UUID of the cache instance";
269
- };
270
- readonly entries: {
271
- readonly type: "array";
272
- readonly description: "List of prompt/value pairs to pre-warm into the cache";
273
- readonly items: {
274
- readonly type: "object";
275
- readonly properties: {
276
- readonly prompt: {
277
- readonly type: "string";
278
- readonly description: "The query or question to cache";
279
- };
280
- readonly value: {
281
- readonly type: "string";
282
- readonly description: "The answer or response to store for this prompt";
283
- };
284
- readonly namespace: {
285
- readonly type: "string";
286
- readonly description: "Optional per-entry namespace override";
287
- };
288
- };
289
- readonly required: readonly ["prompt", "value"];
290
- };
291
- };
292
- readonly namespace: {
293
- readonly type: "string";
294
- readonly description: "Default namespace for all entries (default: cachly:sem)";
295
- };
296
- readonly ttl: {
297
- readonly type: "number";
298
- readonly description: "Time-to-live in seconds for warmed entries (omit for no expiry)";
299
- };
300
- readonly auto_namespace: {
301
- readonly type: "boolean";
302
- readonly description: string;
303
- };
304
- };
305
- readonly required: readonly ["instance_id", "entries"];
306
- };
307
- }, {
308
- readonly name: "index_project";
309
- readonly description: string;
310
- readonly inputSchema: {
311
- readonly type: "object";
312
- readonly properties: {
313
- readonly instance_id: {
314
- readonly type: "string";
315
- readonly description: "UUID of the cachly instance";
316
- };
317
- readonly dir: {
318
- readonly type: "string";
319
- readonly description: "Absolute path to the directory to index (e.g. /Users/you/myproject/src)";
320
- };
321
- readonly extensions: {
322
- readonly type: "array";
323
- readonly items: {
324
- readonly type: "string";
325
- };
326
- readonly description: "File extensions to include (default: [\"ts\",\"js\",\"go\",\"py\",\"java\",\"rs\",\"md\",\"kt\",\"swift\"])";
327
- };
328
- readonly max_files: {
329
- readonly type: "number";
330
- readonly description: "Maximum number of files to index (default: 100)";
331
- };
332
- readonly ttl: {
333
- readonly type: "number";
334
- readonly description: "TTL in seconds for indexed entries (default: 86400 = 24 h)";
335
- };
336
- readonly summary_chars: {
337
- readonly type: "number";
338
- readonly description: "Characters to use as summary per file (default: 1200)";
339
- };
340
- readonly namespace: {
341
- readonly type: "string";
342
- readonly description: "Semantic namespace to store under (default: cachly:sem:code)";
343
- };
344
- };
345
- readonly required: readonly ["instance_id", "dir"];
346
- };
347
- }, {
348
- readonly name: "cache_mset";
349
- readonly description: string;
350
- readonly inputSchema: {
351
- readonly type: "object";
352
- readonly properties: {
353
- readonly instance_id: {
354
- readonly type: "string";
355
- readonly description: "UUID of the cache instance";
356
- };
357
- readonly items: {
358
- readonly type: "array";
359
- readonly description: "Key-value pairs to set";
360
- readonly items: {
361
- readonly type: "object";
362
- readonly properties: {
363
- readonly key: {
364
- readonly type: "string";
365
- readonly description: "Cache key";
366
- };
367
- readonly value: {
368
- readonly description: "Value to store (JSON-serialised)";
369
- };
370
- readonly ttl: {
371
- readonly type: "number";
372
- readonly description: "Per-key TTL in seconds (optional)";
373
- };
374
- };
375
- readonly required: readonly ["key", "value"];
376
- };
377
- };
378
- };
379
- readonly required: readonly ["instance_id", "items"];
380
- };
381
- }, {
382
- readonly name: "cache_mget";
383
- readonly description: string;
384
- readonly inputSchema: {
385
- readonly type: "object";
386
- readonly properties: {
387
- readonly instance_id: {
388
- readonly type: "string";
389
- readonly description: "UUID of the cache instance";
390
- };
391
- readonly keys: {
392
- readonly type: "array";
393
- readonly items: {
394
- readonly type: "string";
395
- };
396
- readonly description: "List of keys to fetch";
397
- };
398
- };
399
- readonly required: readonly ["instance_id", "keys"];
400
- };
401
- }, {
402
- readonly name: "cache_lock_acquire";
403
- readonly description: string;
404
- readonly inputSchema: {
405
- readonly type: "object";
406
- readonly properties: {
407
- readonly instance_id: {
408
- readonly type: "string";
409
- readonly description: "UUID of the cache instance";
410
- };
411
- readonly key: {
412
- readonly type: "string";
413
- readonly description: "Lock resource identifier";
414
- };
415
- readonly ttl_ms: {
416
- readonly type: "number";
417
- readonly description: "Safety TTL in milliseconds (e.g. 5000)";
418
- };
419
- readonly retries: {
420
- readonly type: "number";
421
- readonly description: "Max acquire attempts (default: 3)";
422
- };
423
- readonly retry_delay_ms: {
424
- readonly type: "number";
425
- readonly description: "Milliseconds between retries (default: 50)";
426
- };
427
- };
428
- readonly required: readonly ["instance_id", "key", "ttl_ms"];
429
- };
430
- }, {
431
- readonly name: "cache_lock_release";
432
- readonly description: string;
433
- readonly inputSchema: {
434
- readonly type: "object";
435
- readonly properties: {
436
- readonly instance_id: {
437
- readonly type: "string";
438
- readonly description: "UUID of the cache instance";
439
- };
440
- readonly key: {
441
- readonly type: "string";
442
- readonly description: "Lock resource identifier (same as in cache_lock_acquire)";
443
- };
444
- readonly token: {
445
- readonly type: "string";
446
- readonly description: "Fencing token returned by cache_lock_acquire";
447
- };
448
- };
449
- readonly required: readonly ["instance_id", "key", "token"];
450
- };
451
- }, {
452
- readonly name: "get_api_status";
453
- readonly description: string;
454
- readonly inputSchema: {
455
- readonly type: "object";
456
- readonly properties: {};
457
- readonly required: readonly [];
458
- };
459
- }, {
460
- readonly name: "remember_context";
461
- readonly description: string;
462
- readonly inputSchema: {
463
- readonly type: "object";
464
- readonly properties: {
465
- readonly instance_id: {
466
- readonly type: "string";
467
- readonly description: "UUID of the cache instance";
468
- };
469
- readonly key: {
470
- readonly type: "string";
471
- readonly description: "Descriptive key like \"project_overview\", \"auth_architecture\", \"file:src/index.ts\"";
472
- };
473
- readonly content: {
474
- readonly type: "string";
475
- readonly description: "The context/summary/analysis to remember";
476
- };
477
- readonly category: {
478
- readonly type: "string";
479
- readonly enum: readonly ["overview", "architecture", "file_summary", "dependency", "thinking", "custom"];
480
- readonly description: "Category for organization (default: custom)";
481
- };
482
- readonly ttl: {
483
- readonly type: "number";
484
- readonly description: "Time-to-live in seconds (default: 86400 = 24h, use 0 for no expiry)";
485
- };
486
- };
487
- readonly required: readonly ["instance_id", "key", "content"];
488
- };
489
- }, {
490
- readonly name: "recall_context";
491
- readonly description: string;
492
- readonly inputSchema: {
493
- readonly type: "object";
494
- readonly properties: {
495
- readonly instance_id: {
496
- readonly type: "string";
497
- readonly description: "UUID of the cache instance";
498
- };
499
- readonly key: {
500
- readonly type: "string";
501
- readonly description: "The key to look up (supports glob pattern like \"file:*\")";
502
- };
503
- };
504
- readonly required: readonly ["instance_id", "key"];
505
- };
506
- }, {
507
- readonly name: "list_remembered";
508
- readonly description: string;
509
- readonly inputSchema: {
510
- readonly type: "object";
511
- readonly properties: {
512
- readonly instance_id: {
513
- readonly type: "string";
514
- readonly description: "UUID of the cache instance";
515
- };
516
- readonly category: {
517
- readonly type: "string";
518
- readonly enum: readonly ["overview", "architecture", "file_summary", "dependency", "thinking", "custom", "all"];
519
- readonly description: "Filter by category (default: all)";
520
- };
521
- readonly limit: {
522
- readonly type: "number";
523
- readonly description: "Max entries to return (default: 50)";
524
- };
525
- };
526
- readonly required: readonly ["instance_id"];
527
- };
528
- }, {
529
- readonly name: "forget_context";
530
- readonly description: string;
531
- readonly inputSchema: {
532
- readonly type: "object";
533
- readonly properties: {
534
- readonly instance_id: {
535
- readonly type: "string";
536
- readonly description: "UUID of the cache instance";
537
- };
538
- readonly keys: {
539
- readonly type: "array";
540
- readonly items: {
541
- readonly type: "string";
542
- };
543
- readonly description: "Keys to delete (supports glob)";
544
- };
545
- };
546
- readonly required: readonly ["instance_id", "keys"];
547
- };
548
- }, {
549
- readonly name: "learn_from_attempts";
550
- readonly description: string;
551
- readonly inputSchema: {
552
- readonly type: "object";
553
- readonly properties: {
554
- readonly instance_id: {
555
- readonly type: "string";
556
- readonly description: "UUID of the cache instance";
557
- };
558
- readonly topic: {
559
- readonly type: "string";
560
- readonly description: "Short slug, e.g. \"deploy:web\", \"debug:redis-tls\", \"fix:generate-series\"";
561
- };
562
- readonly outcome: {
563
- readonly type: "string";
564
- readonly enum: readonly ["success", "failure", "partial"];
565
- readonly description: "Did it work?";
566
- };
567
- readonly what_worked: {
568
- readonly type: "string";
569
- readonly description: "What solved the problem or what approach succeeded";
570
- };
571
- readonly what_failed: {
572
- readonly type: "string";
573
- readonly description: "What did NOT work (optional but valuable)";
574
- };
575
- readonly context: {
576
- readonly type: "string";
577
- readonly description: "Additional context, error messages, root cause (optional)";
578
- };
579
- readonly severity: {
580
- readonly type: "string";
581
- readonly enum: readonly ["critical", "major", "minor"];
582
- readonly description: "Impact severity: critical (blocks work/deploy), major (significant slowdown), minor (nice to know). Default: major.";
583
- };
584
- readonly file_paths: {
585
- readonly type: "array";
586
- readonly items: {
587
- readonly type: "string";
588
- };
589
- readonly description: "Files involved in this lesson (e.g. [\"infra/deploy.sh\", \".env\"])";
590
- };
591
- readonly commands: {
592
- readonly type: "array";
593
- readonly items: {
594
- readonly type: "string";
595
- };
596
- readonly description: "Commands that worked or failed (e.g. [\"rsync -avz ...\", \"docker compose up -d\"])";
597
- };
598
- readonly tags: {
599
- readonly type: "array";
600
- readonly items: {
601
- readonly type: "string";
602
- };
603
- readonly description: "Topic tags for filtering (e.g. [\"bash\", \"deploy\", \"env\"])";
604
- };
605
- readonly depends_on: {
606
- readonly type: "array";
607
- readonly items: {
608
- readonly type: "string";
609
- };
610
- readonly description: "Prerequisites this lesson depends on (e.g. [\"node:>=20\", \"docker:running\", \"wireguard:active\"]). When a dependency is marked stale, all dependent lessons get needs_review.";
611
- };
612
- readonly author: {
613
- readonly type: "string";
614
- readonly description: "Name or handle of the person storing this lesson (e.g. \"alice\", \"bob\"). Used for Team Telepathy — teammates see each other's lessons in session_start. Also powers brain_who_knows and team_expertise_map.";
615
- };
616
- readonly visibility: {
617
- readonly type: "string";
618
- readonly enum: readonly ["team", "private", "public"];
619
- readonly description: "Who can see this lesson. \"team\" (default) = all team members. \"private\" = only accessible via exact recall_best_solution, never surfaced in smart_recall or team_recall. \"public\" = same as team (public syndication planned).";
620
- };
621
- readonly service: {
622
- readonly type: "string";
623
- readonly description: "The service or system this lesson concerns (e.g. \"prometheus\", \"cachly-web\", \"auth-service\"). Builds a Service node in the knowledge graph linking the people who operate it and the files that run in it. Powers brain_service_map for instant incident triage.";
624
- };
625
- readonly service_kind: {
626
- readonly type: "string";
627
- readonly enum: readonly ["service", "system"];
628
- readonly description: "Whether `service` is an application service (\"service\", default) or infrastructure (\"system\", e.g. prometheus, kubernetes, redis). Shown as 🛰️/🖥️ in brain_service_map.";
629
- };
630
- readonly group: {
631
- readonly type: "string";
632
- readonly description: "Optional team scope — restricts this lesson to a named group/sub-team (e.g. \"backend\", \"security\"). Only members of that group (managed via team_grant_scope) and admins see it in smart_recall. Orthogonal to visibility: a team-wide lesson has no group; a private lesson is author-only regardless of group.";
633
- };
634
- };
635
- readonly required: readonly ["instance_id", "topic", "outcome", "what_worked"];
636
- };
637
- }, {
638
- readonly name: "recall_best_solution";
639
- readonly description: string;
640
- readonly inputSchema: {
641
- readonly type: "object";
642
- readonly properties: {
643
- readonly instance_id: {
644
- readonly type: "string";
645
- readonly description: "UUID of the cache instance";
646
- };
647
- readonly topic: {
648
- readonly type: "string";
649
- readonly description: "Topic slug to look up, e.g. \"deploy:web\". Supports partial match.";
650
- };
651
- };
652
- readonly required: readonly ["instance_id", "topic"];
653
- };
654
- }, {
655
- readonly name: "smart_recall";
656
- readonly description: string;
657
- readonly inputSchema: {
658
- readonly type: "object";
659
- readonly properties: {
660
- readonly instance_id: {
661
- readonly type: "string";
662
- readonly description: "UUID of the cache instance";
663
- };
664
- readonly query: {
665
- readonly type: "string";
666
- readonly description: "Natural language query to find relevant cached context";
667
- };
668
- readonly threshold: {
669
- readonly type: "number";
670
- readonly description: "Similarity threshold 0-1 (default: 0.78)";
671
- };
672
- readonly author: {
673
- readonly type: "string";
674
- readonly description: "Handle of the person doing the recall (optional). Enables team-knowledge-reuse tracking: when you recall a lesson written by a teammate, cachly counts it as cross-author reuse — the value only a shared brain delivers.";
675
- };
676
- readonly context_files: {
677
- readonly type: "array";
678
- readonly items: {
679
- readonly type: "string";
680
- };
681
- readonly description: "File paths you are currently working on (e.g. [\"src/auth/service.ts\", \"src/api/routes.ts\"]). When provided, lessons that were learned in the context of these files are boosted in ranking — surfacing file-specific knowledge even when the query does not mention the file name. Pair with author for fully personalized recall.";
682
- };
683
- };
684
- readonly required: readonly ["instance_id", "query"];
685
- };
686
- }, {
687
- readonly name: "session_start";
688
- readonly description: string;
689
- readonly inputSchema: {
690
- readonly type: "object";
691
- readonly properties: {
692
- readonly instance_id: {
693
- readonly type: "string";
694
- readonly description: "UUID of the cache instance";
695
- };
696
- readonly focus: {
697
- readonly type: "string";
698
- readonly description: "Keywords for what you plan to work on today (e.g. \"deploy infra api\"). Used to surface relevant lessons at the top.";
699
- };
700
- readonly author: {
701
- readonly type: "string";
702
- readonly description: "Your name or handle (e.g. \"alice\"). Enables Team Telepathy — filters YOUR lessons vs TEAM lessons from past 7 days.";
703
- };
704
- readonly provider: {
705
- readonly type: "string";
706
- readonly description: "Current AI provider (e.g. \"claude-code\", \"copilot\", \"cursor\", \"windsurf\"). Shown in the briefing header and saved so the next provider can see who was last active.";
707
- };
708
- readonly workspace_path: {
709
- readonly type: "string";
710
- readonly description: "Absolute path to the project root. If no session_end was found (e.g. context limit hit), reads git log to reconstruct what happened since last session.";
711
- };
712
- };
713
- readonly required: readonly ["instance_id"];
714
- };
715
- }, {
716
- readonly name: "session_start_summary";
717
- readonly description: string;
718
- readonly inputSchema: {
719
- readonly type: "object";
720
- readonly properties: {
721
- readonly instance_id: {
722
- readonly type: "string";
723
- readonly description: "UUID of the cache instance";
724
- };
725
- readonly focus: {
726
- readonly type: "string";
727
- readonly description: "The topic or task you are about to work on (e.g. \"deploy infra\", \"api auth\"). Used to score and rank lessons by relevance.";
728
- };
729
- readonly top_n: {
730
- readonly type: "number";
731
- readonly description: "Number of lessons to return (default 10, max 25). Lessons are ranked by relevance to focus.";
732
- };
733
- readonly author: {
734
- readonly type: "string";
735
- readonly description: "Your name or handle (optional). Same as session_start — used for team lesson filtering.";
736
- };
737
- };
738
- readonly required: readonly ["instance_id", "focus"];
739
- };
740
- }, {
741
- readonly name: "session_end";
742
- readonly description: string;
743
- readonly inputSchema: {
744
- readonly type: "object";
745
- readonly properties: {
746
- readonly instance_id: {
747
- readonly type: "string";
748
- readonly description: "UUID of the cache instance";
749
- };
750
- readonly summary: {
751
- readonly type: "string";
752
- readonly description: "Brief summary of what was accomplished this session (2-3 sentences)";
753
- };
754
- readonly files_changed: {
755
- readonly type: "array";
756
- readonly items: {
757
- readonly type: "string";
758
- };
759
- readonly description: "Key files changed this session (optional)";
760
- };
761
- readonly lessons_learned: {
762
- readonly type: "number";
763
- readonly description: "Number of new lessons stored this session (optional)";
764
- };
765
- readonly workspace_path: {
766
- readonly type: "string";
767
- readonly description: "Absolute path to the project root (e.g. \"/Users/you/myproject\"). Enables Ambient Learning — reads git log since session start and auto-learns from commit messages.";
768
- };
769
- };
770
- readonly required: readonly ["instance_id", "summary"];
771
- };
772
- }, {
773
- readonly name: "session_handoff";
774
- readonly description: string;
775
- readonly inputSchema: {
776
- readonly type: "object";
777
- readonly properties: {
778
- readonly instance_id: {
779
- readonly type: "string";
780
- readonly description: "UUID of the cache instance";
781
- };
782
- readonly completed_tasks: {
783
- readonly type: "array";
784
- readonly items: {
785
- readonly type: "string";
786
- };
787
- readonly description: "Tasks that were fully completed (e.g. \"Implemented brainSearch() in JS SDK\")";
788
- };
789
- readonly remaining_tasks: {
790
- readonly type: "array";
791
- readonly items: {
792
- readonly type: "string";
793
- };
794
- readonly description: "Tasks NOT yet done — the next window MUST pick these up";
795
- };
796
- readonly files_changed: {
797
- readonly type: "array";
798
- readonly items: {
799
- readonly type: "object";
800
- readonly properties: {
801
- readonly path: {
802
- readonly type: "string";
803
- readonly description: "File path relative to project root";
804
- };
805
- readonly status: {
806
- readonly type: "string";
807
- readonly enum: readonly ["complete", "partial", "broken"];
808
- readonly description: "State of this file";
809
- };
810
- readonly description: {
811
- readonly type: "string";
812
- readonly description: "What was changed and what still needs work";
813
- };
814
- };
815
- readonly required: readonly ["path", "status"];
816
- };
817
- readonly description: "Changed files with their current state — marks partial/broken files so next window knows to fix them";
818
- };
819
- readonly instructions: {
820
- readonly type: "string";
821
- readonly description: "Free-form instructions for the next assistant. Be specific: what to do next, what to avoid, what broke.";
822
- };
823
- readonly context_summary: {
824
- readonly type: "string";
825
- readonly description: "Brief summary of what happened this session (architecture decisions, key findings, blockers)";
826
- };
827
- readonly blocked_on: {
828
- readonly type: "string";
829
- readonly description: "If work is blocked, describe what is needed to unblock (e.g. \"waiting for API deploy\", \"needs user input on design\")";
830
- };
831
- };
832
- readonly required: readonly ["instance_id", "completed_tasks", "remaining_tasks"];
833
- };
834
- }, {
835
- readonly name: "session_ping";
836
- readonly description: string;
837
- readonly inputSchema: {
838
- readonly type: "object";
839
- readonly properties: {
840
- readonly instance_id: {
841
- readonly type: "string";
842
- readonly description: "UUID of the cache instance";
843
- };
844
- readonly task: {
845
- readonly type: "string";
846
- readonly description: "What you are currently working on (e.g. \"Implementing invite handler in handler/invite.go\")";
847
- };
848
- readonly files_touched: {
849
- readonly type: "array";
850
- readonly items: {
851
- readonly type: "string";
852
- };
853
- readonly description: "Files modified so far this session";
854
- };
855
- readonly next_step: {
856
- readonly type: "string";
857
- readonly description: "What the NEXT step is after this checkpoint (helps next provider resume immediately)";
858
- };
859
- readonly provider: {
860
- readonly type: "string";
861
- readonly description: "Current AI provider (e.g. \"claude-code\", \"copilot\", \"cursor\", \"windsurf\")";
862
- };
863
- };
864
- readonly required: readonly ["instance_id", "task"];
865
- };
866
- }, {
867
- readonly name: "auto_learn_session";
868
- readonly description: string;
869
- readonly inputSchema: {
870
- readonly type: "object";
871
- readonly properties: {
872
- readonly instance_id: {
873
- readonly type: "string";
874
- readonly description: "UUID of the cache instance";
875
- };
876
- readonly observations: {
877
- readonly type: "array";
878
- readonly description: "List of observations from this session";
879
- readonly items: {
880
- readonly type: "object";
881
- readonly properties: {
882
- readonly action: {
883
- readonly type: "string";
884
- readonly description: "What was tried (command, approach, code change)";
885
- };
886
- readonly outcome: {
887
- readonly type: "string";
888
- readonly enum: readonly ["success", "failure", "partial"];
889
- readonly description: "Result";
890
- };
891
- readonly details: {
892
- readonly type: "string";
893
- readonly description: "Error message, output, or explanation";
894
- };
895
- readonly topic: {
896
- readonly type: "string";
897
- readonly description: "Optional topic key (auto-generated if omitted)";
898
- };
899
- readonly severity: {
900
- readonly type: "string";
901
- readonly enum: readonly ["critical", "major", "minor"];
902
- readonly description: "Severity (default: minor)";
903
- };
904
- };
905
- readonly required: readonly ["action", "outcome"];
906
- };
907
- };
908
- };
909
- readonly required: readonly ["instance_id", "observations"];
910
- };
911
- }, {
912
- readonly name: "brain_who_knows";
913
- readonly description: string;
914
- readonly inputSchema: {
915
- readonly type: "object";
916
- readonly properties: {
917
- readonly instance_id: {
918
- readonly type: "string";
919
- readonly description: "UUID of the cache instance";
920
- };
921
- readonly topic: {
922
- readonly type: "string";
923
- readonly description: "Topic or question to find experts for";
924
- };
925
- readonly limit: {
926
- readonly type: "number";
927
- readonly description: "Max number of experts to return (default: 10)";
928
- };
929
- };
930
- readonly required: readonly ["instance_id", "topic"];
931
- };
932
- }, {
933
- readonly name: "brain_file_map";
934
- readonly description: string;
935
- readonly inputSchema: {
936
- readonly type: "object";
937
- readonly properties: {
938
- readonly instance_id: {
939
- readonly type: "string";
940
- readonly description: "UUID of the cache instance";
941
- };
942
- readonly file_paths: {
943
- readonly type: "array";
944
- readonly items: {
945
- readonly type: "string";
946
- };
947
- readonly description: "File paths to look up (max 10)";
948
- };
949
- };
950
- readonly required: readonly ["instance_id", "file_paths"];
951
- };
952
- }, {
953
- readonly name: "team_expertise_map";
954
- readonly description: string;
955
- readonly inputSchema: {
956
- readonly type: "object";
957
- readonly properties: {
958
- readonly instance_id: {
959
- readonly type: "string";
960
- readonly description: "UUID of the cache instance";
961
- };
962
- readonly top_n: {
963
- readonly type: "number";
964
- readonly description: "Max contributors to show (default: 20)";
965
- };
966
- };
967
- readonly required: readonly ["instance_id"];
968
- };
969
- }, {
970
- readonly name: "brain_collab_pairs";
971
- readonly description: string;
972
- readonly inputSchema: {
973
- readonly type: "object";
974
- readonly properties: {
975
- readonly instance_id: {
976
- readonly type: "string";
977
- readonly description: "UUID of the cache instance";
978
- };
979
- readonly min_weight: {
980
- readonly type: "number";
981
- readonly description: "Minimum collaboration events to show a pair (default: 1)";
982
- };
983
- };
984
- readonly required: readonly ["instance_id"];
985
- };
986
- }, {
987
- readonly name: "brain_portability";
988
- readonly description: string;
989
- readonly inputSchema: {
990
- readonly type: "object";
991
- readonly properties: {
992
- readonly instance_id: {
993
- readonly type: "string";
994
- readonly description: "UUID of the cache instance";
995
- };
996
- };
997
- readonly required: readonly ["instance_id"];
998
- };
999
- }, {
1000
- readonly name: "skill_gaps";
1001
- readonly description: string;
1002
- readonly inputSchema: {
1003
- readonly type: "object";
1004
- readonly properties: {
1005
- readonly instance_id: {
1006
- readonly type: "string";
1007
- readonly description: "UUID of the cache instance";
1008
- };
1009
- readonly min_failures: {
1010
- readonly type: "number";
1011
- readonly description: "Min failure count to flag a domain as a gap (default: 1)";
1012
- };
1013
- };
1014
- readonly required: readonly ["instance_id"];
1015
- };
1016
- }, {
1017
- readonly name: "brain_coverage";
1018
- readonly description: string;
1019
- readonly inputSchema: {
1020
- readonly type: "object";
1021
- readonly properties: {
1022
- readonly instance_id: {
1023
- readonly type: "string";
1024
- readonly description: "UUID of the cache instance";
1025
- };
1026
- readonly repo_path: {
1027
- readonly type: "string";
1028
- readonly description: "Path to the git repository (default: current directory)";
1029
- };
1030
- };
1031
- readonly required: readonly ["instance_id"];
1032
- };
1033
- }, {
1034
- readonly name: "brain_metrics";
1035
- readonly description: string;
1036
- readonly inputSchema: {
1037
- readonly type: "object";
1038
- readonly properties: {
1039
- readonly instance_id: {
1040
- readonly type: "string";
1041
- readonly description: "UUID of the cache instance";
1042
- };
1043
- };
1044
- readonly required: readonly ["instance_id"];
1045
- };
1046
- }, {
1047
- readonly name: "brain_changelog";
1048
- readonly description: string;
1049
- readonly inputSchema: {
1050
- readonly type: "object";
1051
- readonly properties: {
1052
- readonly instance_id: {
1053
- readonly type: "string";
1054
- readonly description: "UUID of the cache instance";
1055
- };
1056
- readonly days: {
1057
- readonly type: "number";
1058
- readonly description: "How many days back to include (default: 7)";
1059
- };
1060
- readonly max_lessons: {
1061
- readonly type: "number";
1062
- readonly description: "Maximum number of lessons to include (default: 30)";
1063
- };
1064
- readonly include_failures: {
1065
- readonly type: "boolean";
1066
- readonly description: "Include failure-outcome lessons (default: true)";
1067
- };
1068
- };
1069
- readonly required: readonly ["instance_id"];
1070
- };
1071
- }, {
1072
- readonly name: "brain_service_map";
1073
- readonly description: string;
1074
- readonly inputSchema: {
1075
- readonly type: "object";
1076
- readonly properties: {
1077
- readonly instance_id: {
1078
- readonly type: "string";
1079
- readonly description: "UUID of the cache instance";
1080
- };
1081
- readonly service: {
1082
- readonly type: "string";
1083
- readonly description: "Name of the service/system to map (e.g. \"prometheus\", \"cachly-web\", \"auth-service\"). Matches the `service` tag on stored lessons.";
1084
- };
1085
- };
1086
- readonly required: readonly ["instance_id", "service"];
1087
- };
1088
- }, {
1089
- readonly name: "sync_file_changes";
1090
- readonly description: string;
1091
- readonly inputSchema: {
1092
- readonly type: "object";
1093
- readonly properties: {
1094
- readonly instance_id: {
1095
- readonly type: "string";
1096
- readonly description: "UUID of the cache instance";
1097
- };
1098
- readonly changed_files: {
1099
- readonly type: "array";
1100
- readonly items: {
1101
- readonly type: "string";
1102
- };
1103
- readonly description: "List of changed file paths";
1104
- };
1105
- readonly git_diff_stat: {
1106
- readonly type: "string";
1107
- readonly description: "Output of `git diff --stat` (optional)";
1108
- };
1109
- readonly commit_msg: {
1110
- readonly type: "string";
1111
- readonly description: "Commit message (optional)";
1112
- };
1113
- };
1114
- readonly required: readonly ["instance_id", "changed_files"];
1115
- };
1116
- }, {
1117
- readonly name: "team_learn";
1118
- readonly description: string;
1119
- readonly inputSchema: {
1120
- readonly type: "object";
1121
- readonly properties: {
1122
- readonly instance_id: {
1123
- readonly type: "string";
1124
- readonly description: "UUID of the shared team brain instance";
1125
- };
1126
- readonly author: {
1127
- readonly type: "string";
1128
- readonly description: "Your name or handle (required for team attribution)";
1129
- };
1130
- readonly topic: {
1131
- readonly type: "string";
1132
- readonly description: "Topic in category:keyword format (e.g. \"deploy:api\")";
1133
- };
1134
- readonly outcome: {
1135
- readonly type: "string";
1136
- readonly enum: readonly ["success", "failure", "partial"];
1137
- readonly description: "What happened";
1138
- };
1139
- readonly what_worked: {
1140
- readonly type: "string";
1141
- readonly description: "What worked (the solution)";
1142
- };
1143
- readonly what_failed: {
1144
- readonly type: "string";
1145
- readonly description: "What did NOT work (avoid this)";
1146
- };
1147
- readonly severity: {
1148
- readonly type: "string";
1149
- readonly enum: readonly ["critical", "major", "minor"];
1150
- readonly description: "Impact level";
1151
- };
1152
- readonly file_paths: {
1153
- readonly type: "array";
1154
- readonly items: {
1155
- readonly type: "string";
1156
- };
1157
- readonly description: "Relevant file paths";
1158
- };
1159
- readonly commands: {
1160
- readonly type: "array";
1161
- readonly items: {
1162
- readonly type: "string";
1163
- };
1164
- readonly description: "Commands that worked";
1165
- };
1166
- readonly tags: {
1167
- readonly type: "array";
1168
- readonly items: {
1169
- readonly type: "string";
1170
- };
1171
- readonly description: "Tags for categorization";
1172
- };
1173
- };
1174
- readonly required: readonly ["instance_id", "author", "topic", "outcome", "what_worked"];
1175
- };
1176
- }, {
1177
- readonly name: "team_confirm";
1178
- readonly description: string;
1179
- readonly inputSchema: {
1180
- readonly type: "object";
1181
- readonly properties: {
1182
- readonly instance_id: {
1183
- readonly type: "string";
1184
- readonly description: "UUID of the shared team brain instance";
1185
- };
1186
- readonly topic: {
1187
- readonly type: "string";
1188
- readonly description: "Topic slug of the lesson to confirm (e.g. \"deploy:api\")";
1189
- };
1190
- readonly reviewer: {
1191
- readonly type: "string";
1192
- readonly description: "Your name or handle (the reviewer endorsing this lesson)";
1193
- };
1194
- readonly level: {
1195
- readonly type: "string";
1196
- readonly enum: readonly ["senior", "peer"];
1197
- readonly description: "Review weight — \"senior\" ranks higher than \"peer\" (default: peer)";
1198
- };
1199
- readonly note: {
1200
- readonly type: "string";
1201
- readonly description: "Optional review note (kept in the lesson audit trail)";
1202
- };
1203
- };
1204
- readonly required: readonly ["instance_id", "topic", "reviewer"];
1205
- };
1206
- }, {
1207
- readonly name: "team_assign_role";
1208
- readonly description: string;
1209
- readonly inputSchema: {
1210
- readonly type: "object";
1211
- readonly properties: {
1212
- readonly instance_id: {
1213
- readonly type: "string";
1214
- readonly description: "UUID of the shared team brain instance";
1215
- };
1216
- readonly handle: {
1217
- readonly type: "string";
1218
- readonly description: "Handle or name of the team member to assign a role to";
1219
- };
1220
- readonly role: {
1221
- readonly type: "string";
1222
- readonly enum: readonly ["admin", "reviewer", "contributor", "viewer"];
1223
- readonly description: "Role to assign. admin: manage roles + all actions. reviewer: senior-review (🛡️). contributor: store + peer-review. viewer: read-only.";
1224
- };
1225
- readonly assigned_by: {
1226
- readonly type: "string";
1227
- readonly description: "Handle of the admin performing the assignment (required after governance bootstrap)";
1228
- };
1229
- };
1230
- readonly required: readonly ["instance_id", "handle", "role"];
1231
- };
1232
- }, {
1233
- readonly name: "team_whoami";
1234
- readonly description: string;
1235
- readonly inputSchema: {
1236
- readonly type: "object";
1237
- readonly properties: {
1238
- readonly instance_id: {
1239
- readonly type: "string";
1240
- readonly description: "UUID of the shared team brain instance";
1241
- };
1242
- readonly handle: {
1243
- readonly type: "string";
1244
- readonly description: "Your handle or name";
1245
- };
1246
- };
1247
- readonly required: readonly ["instance_id", "handle"];
1248
- };
1249
- }, {
1250
- readonly name: "team_roster";
1251
- readonly description: string;
1252
- readonly inputSchema: {
1253
- readonly type: "object";
1254
- readonly properties: {
1255
- readonly instance_id: {
1256
- readonly type: "string";
1257
- readonly description: "UUID of the shared team brain instance";
1258
- };
1259
- };
1260
- readonly required: readonly ["instance_id"];
1261
- };
1262
- }, {
1263
- readonly name: "team_audit";
1264
- readonly description: string;
1265
- readonly inputSchema: {
1266
- readonly type: "object";
1267
- readonly properties: {
1268
- readonly instance_id: {
1269
- readonly type: "string";
1270
- readonly description: "UUID of the shared team brain instance";
1271
- };
1272
- readonly requester: {
1273
- readonly type: "string";
1274
- readonly description: "Your handle — must be an admin once governance is active";
1275
- };
1276
- readonly limit: {
1277
- readonly type: "number";
1278
- readonly description: "Max events to show, newest first (default: 50, max: 200)";
1279
- };
1280
- };
1281
- readonly required: readonly ["instance_id"];
1282
- };
1283
- }, {
1284
- readonly name: "team_grant_scope";
1285
- readonly description: string;
1286
- readonly inputSchema: {
1287
- readonly type: "object";
1288
- readonly properties: {
1289
- readonly instance_id: {
1290
- readonly type: "string";
1291
- readonly description: "UUID of the shared team brain instance";
1292
- };
1293
- readonly handle: {
1294
- readonly type: "string";
1295
- readonly description: "Handle of the team member to add/remove";
1296
- };
1297
- readonly group: {
1298
- readonly type: "string";
1299
- readonly description: "Group/sub-team name (e.g. \"backend\", \"security\", \"platform\")";
1300
- };
1301
- readonly action: {
1302
- readonly type: "string";
1303
- readonly enum: readonly ["add", "remove"];
1304
- readonly description: "add (default) or remove the member from the group";
1305
- };
1306
- readonly assigned_by: {
1307
- readonly type: "string";
1308
- readonly description: "Handle of the admin performing the change (required after governance bootstrap)";
1309
- };
1310
- };
1311
- readonly required: readonly ["instance_id", "handle", "group"];
1312
- };
1313
- }, {
1314
- readonly name: "team_scopes";
1315
- readonly description: string;
1316
- readonly inputSchema: {
1317
- readonly type: "object";
1318
- readonly properties: {
1319
- readonly instance_id: {
1320
- readonly type: "string";
1321
- readonly description: "UUID of the shared team brain instance";
1322
- };
1323
- readonly handle: {
1324
- readonly type: "string";
1325
- readonly description: "Optional — show only this person's group memberships";
1326
- };
1327
- };
1328
- readonly required: readonly ["instance_id"];
1329
- };
1330
- }, {
1331
- readonly name: "team_recall";
1332
- readonly description: string;
1333
- readonly inputSchema: {
1334
- readonly type: "object";
1335
- readonly properties: {
1336
- readonly instance_id: {
1337
- readonly type: "string";
1338
- readonly description: "UUID of the shared team brain instance";
1339
- };
1340
- readonly topic: {
1341
- readonly type: "string";
1342
- readonly description: "Topic or keyword to filter lessons (optional)";
1343
- };
1344
- readonly author: {
1345
- readonly type: "string";
1346
- readonly description: "Filter by author name (optional)";
1347
- };
1348
- readonly limit: {
1349
- readonly type: "number";
1350
- readonly description: "Max lessons to return (default: 10)";
1351
- };
1352
- };
1353
- readonly required: readonly ["instance_id"];
1354
- };
1355
- }, {
1356
- readonly name: "team_synthesize";
1357
- readonly description: string;
1358
- readonly inputSchema: {
1359
- readonly type: "object";
1360
- readonly properties: {
1361
- readonly instance_id: {
1362
- readonly type: "string";
1363
- readonly description: "UUID of the shared team brain instance";
1364
- };
1365
- readonly topic: {
1366
- readonly type: "string";
1367
- readonly description: "Topic slug to synthesize (e.g. \"deploy:api\")";
1368
- };
1369
- };
1370
- readonly required: readonly ["instance_id", "topic"];
1371
- };
1372
- }, {
1373
- readonly name: "memory_crystalize";
1374
- readonly description: string;
1375
- readonly inputSchema: {
1376
- readonly type: "object";
1377
- readonly properties: {
1378
- readonly instance_id: {
1379
- readonly type: "string";
1380
- readonly description: "UUID of the cache instance";
1381
- };
1382
- readonly label: {
1383
- readonly type: "string";
1384
- readonly description: "Optional label for this crystal (e.g. \"Q1 2026\", \"v2 launch\"). Auto-generated from date if omitted.";
1385
- };
1386
- };
1387
- readonly required: readonly ["instance_id"];
1388
- };
1389
- }, {
1390
- readonly name: "team_crystallize";
1391
- readonly description: string;
1392
- readonly inputSchema: {
1393
- readonly type: "object";
1394
- readonly properties: {
1395
- readonly instance_id: {
1396
- readonly type: "string";
1397
- readonly description: "UUID of the shared team brain instance";
1398
- };
1399
- readonly min_authors: {
1400
- readonly type: "number";
1401
- readonly description: "Min distinct authors that must converge for a pattern to crystallize (default: 2, min: 2)";
1402
- };
1403
- readonly label: {
1404
- readonly type: "string";
1405
- readonly description: "Optional label (e.g. \"Q1 2026\"). Auto-generated from date if omitted.";
1406
- };
1407
- };
1408
- readonly required: readonly ["instance_id"];
1409
- };
1410
- }, {
1411
- readonly name: "roadmap_add";
1412
- readonly description: string;
1413
- readonly inputSchema: {
1414
- readonly type: "object";
1415
- readonly properties: {
1416
- readonly instance_id: {
1417
- readonly type: "string";
1418
- readonly description: "UUID of the cache instance";
1419
- };
1420
- readonly title: {
1421
- readonly type: "string";
1422
- readonly description: "Short title of the task/feature (3–10 words)";
1423
- };
1424
- readonly description: {
1425
- readonly type: "string";
1426
- readonly description: "What needs to be done, acceptance criteria, context";
1427
- };
1428
- readonly priority: {
1429
- readonly type: "string";
1430
- readonly enum: readonly ["critical", "high", "medium", "low"];
1431
- readonly description: "Priority level (default: medium)";
1432
- };
1433
- readonly tags: {
1434
- readonly type: "array";
1435
- readonly items: {
1436
- readonly type: "string";
1437
- };
1438
- readonly description: "Tags for filtering (e.g. [\"api\", \"web\", \"sdk\", \"infra\"])";
1439
- };
1440
- readonly milestone: {
1441
- readonly type: "string";
1442
- readonly description: "Milestone/epic this belongs to (optional)";
1443
- };
1444
- };
1445
- readonly required: readonly ["instance_id", "title"];
1446
- };
1447
- }, {
1448
- readonly name: "roadmap_update";
1449
- readonly description: string;
1450
- readonly inputSchema: {
1451
- readonly type: "object";
1452
- readonly properties: {
1453
- readonly instance_id: {
1454
- readonly type: "string";
1455
- readonly description: "UUID of the cache instance";
1456
- };
1457
- readonly id: {
1458
- readonly type: "string";
1459
- readonly description: "Item ID returned by roadmap_add or roadmap_list";
1460
- };
1461
- readonly status: {
1462
- readonly type: "string";
1463
- readonly enum: readonly ["planned", "in-progress", "done", "blocked", "cancelled"];
1464
- readonly description: "New status for the item";
1465
- };
1466
- readonly priority: {
1467
- readonly type: "string";
1468
- readonly enum: readonly ["critical", "high", "medium", "low"];
1469
- readonly description: "Updated priority (optional)";
1470
- };
1471
- readonly notes: {
1472
- readonly type: "string";
1473
- readonly description: "Progress notes, findings, or blockers (appended to existing notes)";
1474
- };
1475
- readonly title: {
1476
- readonly type: "string";
1477
- readonly description: "Updated title (optional)";
1478
- };
1479
- readonly description: {
1480
- readonly type: "string";
1481
- readonly description: "Updated description (optional)";
1482
- };
1483
- };
1484
- readonly required: readonly ["instance_id", "id"];
1485
- };
1486
- }, {
1487
- readonly name: "roadmap_list";
1488
- readonly description: string;
1489
- readonly inputSchema: {
1490
- readonly type: "object";
1491
- readonly properties: {
1492
- readonly instance_id: {
1493
- readonly type: "string";
1494
- readonly description: "UUID of the cache instance";
1495
- };
1496
- readonly status: {
1497
- readonly type: "string";
1498
- readonly enum: readonly ["planned", "in-progress", "done", "blocked", "cancelled", "open"];
1499
- readonly description: "Filter by status. Use 'open' to see planned+in-progress+blocked (default: open)";
1500
- };
1501
- readonly tag: {
1502
- readonly type: "string";
1503
- readonly description: "Filter by tag (optional)";
1504
- };
1505
- readonly milestone: {
1506
- readonly type: "string";
1507
- readonly description: "Filter by milestone (optional)";
1508
- };
1509
- readonly priority: {
1510
- readonly type: "string";
1511
- readonly enum: readonly ["critical", "high", "medium", "low"];
1512
- readonly description: "Filter by minimum priority (optional)";
1513
- };
1514
- };
1515
- readonly required: readonly ["instance_id"];
1516
- };
1517
- }, {
1518
- readonly name: "roadmap_next";
1519
- readonly description: string;
1520
- readonly inputSchema: {
1521
- readonly type: "object";
1522
- readonly properties: {
1523
- readonly instance_id: {
1524
- readonly type: "string";
1525
- readonly description: "UUID of the cache instance";
1526
- };
1527
- readonly tag: {
1528
- readonly type: "string";
1529
- readonly description: "Filter by tag (optional)";
1530
- };
1531
- };
1532
- readonly required: readonly ["instance_id"];
1533
- };
1534
- }, {
1535
- readonly name: "brain_doctor";
1536
- readonly description: string;
1537
- readonly inputSchema: {
1538
- readonly type: "object";
1539
- readonly properties: {
1540
- readonly instance_id: {
1541
- readonly type: "string";
1542
- readonly description: "UUID of the cache instance";
1543
- };
1544
- readonly workspace_path: {
1545
- readonly type: "string";
1546
- readonly description: "Absolute path to workspace root — enables package.json analysis for openclaw cross-promo (optional)";
1547
- };
1548
- };
1549
- readonly required: readonly ["instance_id"];
1550
- };
1551
- }, {
1552
- readonly name: "brain_hygiene";
1553
- readonly description: string;
1554
- readonly inputSchema: {
1555
- readonly type: "object";
1556
- readonly properties: {
1557
- readonly instance_id: {
1558
- readonly type: "string";
1559
- readonly description: "UUID of the cache instance";
1560
- };
1561
- readonly dry_run: {
1562
- readonly type: "boolean";
1563
- readonly description: "Report changes without applying them (default false)";
1564
- };
1565
- readonly provisional_threshold: {
1566
- readonly type: "number";
1567
- readonly description: "Confidence below which a lesson is flagged provisional (default 0.5)";
1568
- };
1569
- readonly archive_days: {
1570
- readonly type: "number";
1571
- readonly description: "Days after which a provisional low-recall lesson is archived (default 30)";
1572
- };
1573
- };
1574
- readonly required: readonly ["instance_id"];
1575
- };
1576
- }, {
1577
- readonly name: "global_learn";
1578
- readonly description: string;
1579
- readonly inputSchema: {
1580
- readonly type: "object";
1581
- readonly properties: {
1582
- readonly instance_id: {
1583
- readonly type: "string";
1584
- readonly description: "UUID of the cache instance (used for connection)";
1585
- };
1586
- readonly topic: {
1587
- readonly type: "string";
1588
- readonly description: "Topic key in format \"category:keyword\"";
1589
- };
1590
- readonly lesson: {
1591
- readonly type: "string";
1592
- readonly description: "The lesson content";
1593
- };
1594
- readonly severity: {
1595
- readonly type: "string";
1596
- readonly enum: readonly ["critical", "major", "minor"];
1597
- readonly description: "Severity (default: minor)";
1598
- };
1599
- readonly tags: {
1600
- readonly type: "array";
1601
- readonly items: {
1602
- readonly type: "string";
1603
- };
1604
- readonly description: "Optional tags";
1605
- };
1606
- };
1607
- readonly required: readonly ["instance_id", "topic", "lesson"];
1608
- };
1609
- }, {
1610
- readonly name: "global_recall";
1611
- readonly description: string;
1612
- readonly inputSchema: {
1613
- readonly type: "object";
1614
- readonly properties: {
1615
- readonly instance_id: {
1616
- readonly type: "string";
1617
- readonly description: "UUID of the cache instance (used for connection)";
1618
- };
1619
- readonly topic: {
1620
- readonly type: "string";
1621
- readonly description: "Topic or keyword filter (optional)";
1622
- };
1623
- };
1624
- readonly required: readonly ["instance_id"];
1625
- };
1626
- }, {
1627
- readonly name: "publish_lesson";
1628
- readonly description: string;
1629
- readonly inputSchema: {
1630
- readonly type: "object";
1631
- readonly properties: {
1632
- readonly instance_id: {
1633
- readonly type: "string";
1634
- readonly description: "UUID of the cache instance";
1635
- };
1636
- readonly topic: {
1637
- readonly type: "string";
1638
- readonly description: "Topic key (used as public category)";
1639
- };
1640
- readonly lesson: {
1641
- readonly type: "string";
1642
- readonly description: "Lesson to publish (PII will be stripped)";
1643
- };
1644
- readonly framework: {
1645
- readonly type: "string";
1646
- readonly description: "Framework/platform tag (nextjs, fastapi, go, docker, etc.)";
1647
- };
1648
- readonly severity: {
1649
- readonly type: "string";
1650
- readonly enum: readonly ["critical", "major", "minor"];
1651
- readonly description: "Severity";
1652
- };
1653
- };
1654
- readonly required: readonly ["instance_id", "topic", "lesson"];
1655
- };
1656
- }, {
1657
- readonly name: "import_public_brain";
1658
- readonly description: string;
1659
- readonly inputSchema: {
1660
- readonly type: "object";
1661
- readonly properties: {
1662
- readonly instance_id: {
1663
- readonly type: "string";
1664
- readonly description: "UUID of the cache instance to import into";
1665
- };
1666
- readonly framework: {
1667
- readonly type: "string";
1668
- readonly description: "Framework/platform to import lessons for";
1669
- };
1670
- readonly limit: {
1671
- readonly type: "number";
1672
- readonly description: "Max lessons to import (default: 20)";
1673
- };
1674
- };
1675
- readonly required: readonly ["instance_id", "framework"];
1676
- };
1677
- }, {
1678
- readonly name: "recall_at";
1679
- readonly description: string;
1680
- readonly inputSchema: {
1681
- readonly type: "object";
1682
- readonly properties: {
1683
- readonly instance_id: {
1684
- readonly type: "string";
1685
- readonly description: "UUID of the cache instance";
1686
- };
1687
- readonly topic: {
1688
- readonly type: "string";
1689
- readonly description: "Topic slug to look up, e.g. \"deploy:api\"";
1690
- };
1691
- readonly date: {
1692
- readonly type: "string";
1693
- readonly description: "ISO date string (e.g. \"2026-01-15\") — returns entries stored BEFORE this date";
1694
- };
1695
- };
1696
- readonly required: readonly ["instance_id", "topic", "date"];
1697
- };
1698
- }, {
1699
- readonly name: "trace_dependency";
1700
- readonly description: string;
1701
- readonly inputSchema: {
1702
- readonly type: "object";
1703
- readonly properties: {
1704
- readonly instance_id: {
1705
- readonly type: "string";
1706
- readonly description: "UUID of the cache instance";
1707
- };
1708
- readonly dependency: {
1709
- readonly type: "string";
1710
- readonly description: "Dependency to trace (e.g. \"node:>=20\", \"docker:running\", \"wireguard:active\")";
1711
- };
1712
- readonly mark_review: {
1713
- readonly type: "boolean";
1714
- readonly description: "If true, marks all dependent lessons as needs_review (default: false)";
1715
- };
1716
- };
1717
- readonly required: readonly ["instance_id", "dependency"];
1718
- };
1719
- }, {
1720
- readonly name: "list_orgs";
1721
- readonly description: string;
1722
- readonly inputSchema: {
1723
- readonly type: "object";
1724
- readonly properties: {};
1725
- readonly required: readonly [];
1726
- };
1727
- }, {
1728
- readonly name: "create_org";
1729
- readonly description: string;
1730
- readonly inputSchema: {
1731
- readonly type: "object";
1732
- readonly properties: {
1733
- readonly name: {
1734
- readonly type: "string";
1735
- readonly description: "Organization display name (e.g. \"Acme Engineering\")";
1736
- };
1737
- readonly slug: {
1738
- readonly type: "string";
1739
- readonly description: "URL-safe slug (e.g. \"acme-eng\"). Auto-generated from name if omitted.";
1740
- };
1741
- };
1742
- readonly required: readonly ["name"];
1743
- };
1744
- }, {
1745
- readonly name: "invite_member";
1746
- readonly description: string;
1747
- readonly inputSchema: {
1748
- readonly type: "object";
1749
- readonly properties: {
1750
- readonly org_id: {
1751
- readonly type: "string";
1752
- readonly description: "UUID of the organization";
1753
- };
1754
- readonly email: {
1755
- readonly type: "string";
1756
- readonly description: "Email address to invite";
1757
- };
1758
- readonly role: {
1759
- readonly type: "string";
1760
- readonly enum: readonly ["admin", "member"];
1761
- readonly description: "Role for the invited member (default: member)";
1762
- };
1763
- };
1764
- readonly required: readonly ["org_id", "email"];
1765
- };
1766
- }, {
1767
- readonly name: "get_org_plan";
1768
- readonly description: string;
1769
- readonly inputSchema: {
1770
- readonly type: "object";
1771
- readonly properties: {
1772
- readonly org_id: {
1773
- readonly type: "string";
1774
- readonly description: "UUID of the organization";
1775
- };
1776
- };
1777
- readonly required: readonly ["org_id"];
1778
- };
1779
- }, {
1780
- readonly name: "setup_ai_memory";
1781
- readonly description: string;
1782
- readonly inputSchema: {
1783
- readonly type: "object";
1784
- readonly properties: {
1785
- readonly instance_id: {
1786
- readonly type: "string";
1787
- readonly description: "UUID of the cachly instance to use as the AI brain";
1788
- };
1789
- readonly project_dir: {
1790
- readonly type: "string";
1791
- readonly description: string;
1792
- };
1793
- readonly embed_provider: {
1794
- readonly type: "string";
1795
- readonly enum: readonly ["openai", "mistral", "cohere", "ollama", "gemini"];
1796
- readonly description: string;
1797
- };
1798
- readonly project_description: {
1799
- readonly type: "string";
1800
- readonly description: "Short description of the project (used in the generated instructions)";
1801
- };
1802
- };
1803
- readonly required: readonly ["instance_id"];
1804
- };
1805
- }, {
1806
- readonly name: "cache_stream_set";
1807
- readonly description: string;
1808
- readonly inputSchema: {
1809
- readonly type: "object";
1810
- readonly properties: {
1811
- readonly instance_id: {
1812
- readonly type: "string";
1813
- readonly description: "UUID of the cache instance";
1814
- };
1815
- readonly key: {
1816
- readonly type: "string";
1817
- readonly description: "Cache key";
1818
- };
1819
- readonly chunks: {
1820
- readonly type: "array";
1821
- readonly items: {
1822
- readonly type: "string";
1823
- };
1824
- readonly description: "Ordered list of string chunks";
1825
- };
1826
- readonly ttl: {
1827
- readonly type: "number";
1828
- readonly description: "TTL in seconds for the stored list (optional)";
1829
- };
1830
- };
1831
- readonly required: readonly ["instance_id", "key", "chunks"];
1832
- };
1833
- }, {
1834
- readonly name: "cache_stream_get";
1835
- readonly description: string;
1836
- readonly inputSchema: {
1837
- readonly type: "object";
1838
- readonly properties: {
1839
- readonly instance_id: {
1840
- readonly type: "string";
1841
- readonly description: "UUID of the cache instance";
1842
- };
1843
- readonly key: {
1844
- readonly type: "string";
1845
- readonly description: "Cache key";
1846
- };
1847
- };
1848
- readonly required: readonly ["instance_id", "key"];
1849
- };
1850
- }, {
1851
- readonly name: "cache_org_stats";
1852
- readonly description: string;
1853
- readonly inputSchema: {
1854
- readonly type: "object";
1855
- readonly properties: {
1856
- readonly instance_id: {
1857
- readonly type: "string";
1858
- readonly description: "UUID of the cache instance";
1859
- };
1860
- readonly org_id: {
1861
- readonly type: "string";
1862
- readonly description: "Org ID to inspect (e.g. \"acme\", \"my-company\")";
1863
- };
1864
- };
1865
- readonly required: readonly ["instance_id", "org_id"];
1866
- };
1867
- }, {
1868
- readonly name: "set_cost_per_call";
1869
- readonly description: string;
1870
- readonly inputSchema: {
1871
- readonly type: "object";
1872
- readonly properties: {
1873
- readonly instance_id: {
1874
- readonly type: "string";
1875
- readonly description: "UUID of the cache instance";
1876
- };
1877
- readonly cost_per_call_usd: {
1878
- readonly type: "number";
1879
- readonly description: "Cost per LLM API call in USD. Common values: 0.02 (claude-opus-4.8), 0.015 (gpt-5.5), 0.009 (claude-sonnet-4.6), 0.002 (gpt-5.5-mini), 0.001 (claude-haiku-4.5).";
1880
- };
1881
- };
1882
- readonly required: readonly ["instance_id", "cost_per_call_usd"];
1883
- };
1884
- }, {
1885
- readonly name: "memory_consolidate";
1886
- readonly description: string;
1887
- readonly inputSchema: {
1888
- readonly type: "object";
1889
- readonly properties: {
1890
- readonly instance_id: {
1891
- readonly type: "string";
1892
- readonly description: "UUID of the cache instance";
1893
- };
1894
- readonly dry_run: {
1895
- readonly type: "boolean";
1896
- readonly description: "If true, report what would change without writing (default: false)";
1897
- };
1898
- readonly stale_days: {
1899
- readonly type: "number";
1900
- readonly description: "Lessons not recalled in this many days are flagged stale (default: 90)";
1901
- };
1902
- };
1903
- readonly required: readonly ["instance_id"];
1904
- };
1905
- }, {
1906
- readonly name: "brain_diff";
1907
- readonly description: string;
1908
- readonly inputSchema: {
1909
- readonly type: "object";
1910
- readonly properties: {
1911
- readonly instance_id: {
1912
- readonly type: "string";
1913
- readonly description: "UUID of the cache instance";
1914
- };
1915
- readonly since: {
1916
- readonly type: "string";
1917
- readonly description: "Time window: \"1d\", \"7d\", \"30d\", or ISO-8601 date (default: \"7d\")";
1918
- };
1919
- readonly format: {
1920
- readonly type: "string";
1921
- readonly enum: readonly ["summary", "detailed"];
1922
- readonly description: "Output format (default: summary)";
1923
- };
1924
- };
1925
- readonly required: readonly ["instance_id"];
1926
- };
1927
- }, {
1928
- readonly name: "causal_trace";
1929
- readonly description: string;
1930
- readonly inputSchema: {
1931
- readonly type: "object";
1932
- readonly properties: {
1933
- readonly instance_id: {
1934
- readonly type: "string";
1935
- readonly description: "UUID of the cache instance";
1936
- };
1937
- readonly problem: {
1938
- readonly type: "string";
1939
- readonly description: "Describe the problem or error you are seeing right now";
1940
- };
1941
- readonly max_depth: {
1942
- readonly type: "number";
1943
- readonly description: "Max causal chain depth to trace (default: 5)";
1944
- };
1945
- readonly tags: {
1946
- readonly type: "array";
1947
- readonly items: {
1948
- readonly type: "string";
1949
- };
1950
- readonly description: "Optional: narrow search to these tags";
1951
- };
1952
- };
1953
- readonly required: readonly ["instance_id", "problem"];
1954
- };
1955
- }, {
1956
- readonly name: "knowledge_decay";
1957
- readonly description: string;
1958
- readonly inputSchema: {
1959
- readonly type: "object";
1960
- readonly properties: {
1961
- readonly instance_id: {
1962
- readonly type: "string";
1963
- readonly description: "UUID of the cache instance";
1964
- };
1965
- readonly min_age_days: {
1966
- readonly type: "number";
1967
- readonly description: "Only include lessons older than N days (default: 0 = all)";
1968
- };
1969
- readonly show_top: {
1970
- readonly type: "number";
1971
- readonly description: "Number of entries to return, sorted by lowest confidence first (default: 20)";
1972
- };
1973
- };
1974
- readonly required: readonly ["instance_id"];
1975
- };
1976
- }, {
1977
- readonly name: "autopilot";
1978
- readonly description: string;
1979
- readonly inputSchema: {
1980
- readonly type: "object";
1981
- readonly properties: {
1982
- readonly instance_id: {
1983
- readonly type: "string";
1984
- readonly description: "UUID of the cache instance";
1985
- };
1986
- readonly editor: {
1987
- readonly type: "string";
1988
- readonly enum: readonly ["claude", "cursor", "copilot", "windsurf", "gemini", "continue", "all"];
1989
- readonly description: "Target editor (default: claude)";
1990
- };
1991
- readonly project_name: {
1992
- readonly type: "string";
1993
- readonly description: "Your project name (used in generated instructions)";
1994
- };
1995
- readonly style: {
1996
- readonly type: "string";
1997
- readonly enum: readonly ["minimal", "full"];
1998
- readonly description: "minimal = just the hooks, full = full ruleset with examples (default: full)";
1999
- };
2000
- };
2001
- readonly required: readonly ["instance_id"];
2002
- };
2003
- }, {
2004
- readonly name: "syndicate";
2005
- readonly description: string;
2006
- readonly inputSchema: {
2007
- readonly type: "object";
2008
- readonly properties: {
2009
- readonly topic: {
2010
- readonly type: "string";
2011
- readonly description: "Topic key in category:keyword format (e.g. \"fix:clickhouse-ipv6\", \"deploy:docker-compose\")";
2012
- };
2013
- readonly outcome: {
2014
- readonly type: "string";
2015
- readonly enum: readonly ["success", "failure", "partial"];
2016
- readonly description: "Result of the attempt (default: success)";
2017
- };
2018
- readonly what_worked: {
2019
- readonly type: "string";
2020
- readonly description: "Exact approach, command, or fix that worked. File paths are stripped automatically.";
2021
- };
2022
- readonly what_failed: {
2023
- readonly type: "string";
2024
- readonly description: "What failed or was wrong — helps others avoid the same trap.";
2025
- };
2026
- readonly severity: {
2027
- readonly type: "string";
2028
- readonly enum: readonly ["critical", "major", "minor"];
2029
- readonly description: "How severe the issue was (default: minor)";
2030
- };
2031
- readonly tags: {
2032
- readonly type: "array";
2033
- readonly items: {
2034
- readonly type: "string";
2035
- };
2036
- readonly description: "Up to 10 keywords for better discoverability";
2037
- };
2038
- readonly scope: {
2039
- readonly type: "string";
2040
- readonly enum: readonly ["public", "org"];
2041
- readonly description: "Visibility: \"public\" = global commons (default), \"org\" = private to your org only";
2042
- };
2043
- };
2044
- readonly required: readonly ["topic", "what_worked"];
2045
- };
2046
- }, {
2047
- readonly name: "syndicate_search";
2048
- readonly description: string;
2049
- readonly inputSchema: {
2050
- readonly type: "object";
2051
- readonly properties: {
2052
- readonly q: {
2053
- readonly type: "string";
2054
- readonly description: "Free-text search query (leave empty for most recent lessons)";
2055
- };
2056
- readonly category: {
2057
- readonly type: "string";
2058
- readonly description: "Filter by category prefix: \"fix\", \"deploy\", \"debug\", \"infra\", \"api\", \"web\"";
2059
- };
2060
- readonly scope: {
2061
- readonly type: "string";
2062
- readonly enum: readonly ["public", "org"];
2063
- readonly description: "\"public\" = global commons (default), \"org\" = public + your org-private lessons";
2064
- };
2065
- readonly limit: {
2066
- readonly type: "number";
2067
- readonly description: "Max results to return (default: 20, max: 50)";
2068
- };
2069
- };
2070
- readonly required: readonly [];
2071
- };
2072
- }, {
2073
- readonly name: "syndicate_stats";
2074
- readonly description: string;
2075
- readonly inputSchema: {
2076
- readonly type: "object";
2077
- readonly properties: {};
2078
- readonly required: readonly [];
2079
- };
2080
- }, {
2081
- readonly name: "syndicate_trending";
2082
- readonly description: string;
2083
- readonly inputSchema: {
2084
- readonly type: "object";
2085
- readonly properties: {
2086
- readonly limit: {
2087
- readonly type: "number";
2088
- readonly description: "Max results (default: 10, max: 50)";
2089
- };
2090
- };
2091
- readonly required: readonly [];
2092
- };
2093
- }, {
2094
- readonly name: "brain_marketplace";
2095
- readonly description: string;
2096
- readonly inputSchema: {
2097
- readonly type: "object";
2098
- readonly properties: {
2099
- readonly min_confirms: {
2100
- readonly type: "number";
2101
- readonly description: "Only count lessons with at least this many community confirmations (default: 1)";
2102
- };
2103
- };
2104
- readonly required: readonly [];
2105
- };
2106
- }, {
2107
- readonly name: "brain_install";
2108
- readonly description: string;
2109
- readonly inputSchema: {
2110
- readonly type: "object";
2111
- readonly properties: {
2112
- readonly instance_id: {
2113
- readonly type: "string";
2114
- readonly description: "UUID of the cache instance";
2115
- };
2116
- readonly slug: {
2117
- readonly type: "string";
2118
- readonly description: "Domain brain slug from brain_marketplace (e.g. \"k8s\", \"auth\", \"db\")";
2119
- };
2120
- readonly min_confirms: {
2121
- readonly type: "number";
2122
- readonly description: "Only install lessons with at least this many community confirmations (default: 1)";
2123
- };
2124
- readonly limit: {
2125
- readonly type: "number";
2126
- readonly description: "Max lessons to install (default: 200, max: 500)";
2127
- };
2128
- readonly dry_run: {
2129
- readonly type: "boolean";
2130
- readonly description: "Preview what would be installed without writing anything (default: false)";
2131
- };
2132
- };
2133
- readonly required: readonly ["instance_id", "slug"];
2134
- };
2135
- }, {
2136
- readonly name: "brain_search";
2137
- readonly description: string;
2138
- readonly inputSchema: {
2139
- readonly type: "object";
2140
- readonly properties: {
2141
- readonly instance_id: {
2142
- readonly type: "string";
2143
- readonly description: "Brain instance ID";
2144
- };
2145
- readonly query: {
2146
- readonly type: "string";
2147
- readonly description: "What to search for";
2148
- };
2149
- readonly limit: {
2150
- readonly type: "number";
2151
- readonly description: "Max results (default: 15)";
2152
- };
2153
- };
2154
- readonly required: readonly ["instance_id", "query"];
2155
- };
2156
- }, {
2157
- readonly name: "ckg_inspect";
2158
- readonly description: string;
2159
- readonly inputSchema: {
2160
- readonly type: "object";
2161
- readonly properties: {
2162
- readonly instance_id: {
2163
- readonly type: "string";
2164
- readonly description: "Brain instance ID";
2165
- };
2166
- readonly concept: {
2167
- readonly type: "string";
2168
- readonly description: "Concept to inspect, e.g. \"fix:clickhouse-ipv6\" or \"docker\"";
2169
- };
2170
- readonly max_hops: {
2171
- readonly type: "number";
2172
- readonly description: "Traversal depth (default: 2)";
2173
- };
2174
- };
2175
- readonly required: readonly ["instance_id", "concept"];
2176
- };
2177
- }, {
2178
- readonly name: "brain_predict";
2179
- readonly description: string;
2180
- readonly inputSchema: {
2181
- readonly type: "object";
2182
- readonly properties: {
2183
- readonly instance_id: {
2184
- readonly type: "string";
2185
- readonly description: "Brain instance ID";
2186
- };
2187
- readonly context: {
2188
- readonly type: "string";
2189
- readonly description: "What you're working on, e.g. \"upgrading Keycloak from 21 to 24\"";
2190
- };
2191
- readonly top_k: {
2192
- readonly type: "number";
2193
- readonly description: "Max predictions to return (default: 5)";
2194
- };
2195
- readonly scope: {
2196
- readonly type: "string";
2197
- readonly enum: readonly ["instance", "org", "org+commons"];
2198
- readonly description: string;
2199
- };
2200
- };
2201
- readonly required: readonly ["instance_id", "context"];
2202
- };
2203
- }, {
2204
- readonly name: "brain_plan";
2205
- readonly description: string;
2206
- readonly inputSchema: {
2207
- readonly type: "object";
2208
- readonly properties: {
2209
- readonly instance_id: {
2210
- readonly type: "string";
2211
- readonly description: "Brain instance ID";
2212
- };
2213
- readonly task: {
2214
- readonly type: "string";
2215
- readonly description: "The change you are about to make, e.g. \"migrate auth from sessions to JWT\"";
2216
- };
2217
- readonly top_k: {
2218
- readonly type: "number";
2219
- readonly description: "Max items per section (default: 5)";
2220
- };
2221
- };
2222
- readonly required: readonly ["instance_id", "task"];
2223
- };
2224
- }, {
2225
- readonly name: "brain_conflicts";
2226
- readonly description: string;
2227
- readonly inputSchema: {
2228
- readonly type: "object";
2229
- readonly properties: {
2230
- readonly instance_id: {
2231
- readonly type: "string";
2232
- readonly description: "Brain instance ID";
2233
- };
2234
- };
2235
- readonly required: readonly ["instance_id"];
2236
- };
2237
- }, {
2238
- readonly name: "brain_resolve_conflict";
2239
- readonly description: string;
2240
- readonly inputSchema: {
2241
- readonly type: "object";
2242
- readonly properties: {
2243
- readonly instance_id: {
2244
- readonly type: "string";
2245
- readonly description: "Brain instance ID";
2246
- };
2247
- readonly topic: {
2248
- readonly type: "string";
2249
- readonly description: "The contested topic, e.g. \"fix:jwks-rotation\"";
2250
- };
2251
- readonly winner: {
2252
- readonly type: "string";
2253
- readonly enum: readonly ["success", "failure"];
2254
- readonly description: "Which side wins the arbitration";
2255
- };
2256
- readonly resolved_by: {
2257
- readonly type: "string";
2258
- readonly description: "Who resolved it (agent name or \"human\"); default \"human\"";
2259
- };
2260
- };
2261
- readonly required: readonly ["instance_id", "topic", "winner"];
2262
- };
2263
- }, {
2264
- readonly name: "brain_confirm_ci";
2265
- readonly description: string;
2266
- readonly inputSchema: {
2267
- readonly type: "object";
2268
- readonly properties: {
2269
- readonly instance_id: {
2270
- readonly type: "string";
2271
- readonly description: "Brain instance ID";
2272
- };
2273
- readonly job_status: {
2274
- readonly type: "string";
2275
- readonly enum: readonly ["success", "failure", "cancelled"];
2276
- readonly description: "Outcome of the CI job";
2277
- };
2278
- readonly topics: {
2279
- readonly type: "array";
2280
- readonly items: {
2281
- readonly type: "string";
2282
- };
2283
- readonly description: "Topics touched by this CI run (e.g. [\"auth:jwt\", \"deploy:k8s\"])";
2284
- };
2285
- readonly scan_topics: {
2286
- readonly type: "array";
2287
- readonly items: {
2288
- readonly type: "string";
2289
- };
2290
- readonly description: "Topics the brain predicted would fail (from the scan response). Used to detect false positives.";
2291
- };
2292
- readonly source: {
2293
- readonly type: "string";
2294
- readonly description: "Optional: \"github_actions\", \"gitlab_ci\", etc.";
2295
- };
2296
- };
2297
- readonly required: readonly ["instance_id", "job_status", "topics"];
2298
- };
2299
- }, {
2300
- readonly name: "brain_briefing";
2301
- readonly description: string;
2302
- readonly inputSchema: {
2303
- readonly type: "object";
2304
- readonly properties: {
2305
- readonly instance_id: {
2306
- readonly type: "string";
2307
- readonly description: "Brain instance ID";
2308
- };
2309
- readonly event_type: {
2310
- readonly type: "string";
2311
- readonly enum: readonly ["file_open", "pr_open", "deploy", "manual"];
2312
- readonly description: "What triggered this briefing — determines how the context is interpreted";
2313
- };
2314
- readonly context: {
2315
- readonly type: "string";
2316
- readonly description: "The event context: file path for file_open, title+body for pr_open, short description for deploy/manual";
2317
- };
2318
- readonly threshold: {
2319
- readonly type: "number";
2320
- readonly description: "Minimum confidence (0–1) for a warning to be surfaced. Default 0.6 — raise it to reduce noise.";
2321
- };
2322
- };
2323
- readonly required: readonly ["instance_id", "event_type", "context"];
2324
- };
2325
- }, {
2326
- readonly name: "brain_contribute_signal";
2327
- readonly description: string;
2328
- readonly inputSchema: {
2329
- readonly type: "object";
2330
- readonly properties: {
2331
- readonly instance_id: {
2332
- readonly type: "string";
2333
- readonly description: "Brain instance ID";
2334
- };
2335
- readonly topic_category: {
2336
- readonly type: "string";
2337
- readonly description: "Normalised topic, e.g. \"auth:jwt\" or \"deploy:k8s\"";
2338
- };
2339
- readonly outcome: {
2340
- readonly type: "string";
2341
- readonly enum: readonly ["success", "failure", "partial"];
2342
- readonly description: "Outcome of the pattern";
2343
- };
2344
- readonly confidence: {
2345
- readonly type: "number";
2346
- readonly description: "Confidence 0–1 (bucketed before sending; default 0.5)";
2347
- };
2348
- };
2349
- readonly required: readonly ["instance_id", "topic_category", "outcome"];
2350
- };
2351
- }, {
2352
- readonly name: "brain_import_meta";
2353
- readonly description: string;
2354
- readonly inputSchema: {
2355
- readonly type: "object";
2356
- readonly properties: {
2357
- readonly instance_id: {
2358
- readonly type: "string";
2359
- readonly description: "Brain instance ID";
2360
- };
2361
- readonly category: {
2362
- readonly type: "string";
2363
- readonly description: "Optional filter, e.g. \"auth\" or \"deploy\"";
2364
- };
2365
- readonly limit: {
2366
- readonly type: "number";
2367
- readonly description: "Max meta-lessons to import (default 20, max 200)";
2368
- };
2369
- };
2370
- readonly required: readonly ["instance_id"];
2371
- };
2372
- }, {
2373
- readonly name: "madc_deliberate";
2374
- readonly description: string;
2375
- readonly inputSchema: {
2376
- readonly type: "object";
2377
- readonly properties: {
2378
- readonly instance_id: {
2379
- readonly type: "string";
2380
- readonly description: "Brain instance ID";
2381
- };
2382
- readonly topic: {
2383
- readonly type: "string";
2384
- readonly description: "Topic to deliberate, e.g. \"fix:jwks-rotation\"";
2385
- };
2386
- readonly context: {
2387
- readonly type: "string";
2388
- readonly description: "Optional context for the deliberation";
2389
- };
2390
- };
2391
- readonly required: readonly ["instance_id", "topic"];
2392
- };
2393
- }, {
2394
- readonly name: "cls_ingest";
2395
- readonly description: string;
2396
- readonly inputSchema: {
2397
- readonly type: "object";
2398
- readonly properties: {
2399
- readonly instance_id: {
2400
- readonly type: "string";
2401
- readonly description: "Brain instance ID";
2402
- };
2403
- readonly source: {
2404
- readonly type: "string";
2405
- readonly enum: readonly ["git_commit", "ci_outcome", "ide_diagnostic"];
2406
- readonly description: "Event source type";
2407
- };
2408
- readonly payload: {
2409
- readonly type: "object";
2410
- readonly description: string;
2411
- };
2412
- };
2413
- readonly required: readonly ["instance_id", "source", "payload"];
2414
- };
2415
- }, {
2416
- readonly name: "cls_install_hooks";
2417
- readonly description: string;
2418
- readonly inputSchema: {
2419
- readonly type: "object";
2420
- readonly properties: {
2421
- readonly instance_id: {
2422
- readonly type: "string";
2423
- readonly description: "Brain instance ID";
2424
- };
2425
- readonly repo_path: {
2426
- readonly type: "string";
2427
- readonly description: "Path to repo root (default: current dir)";
2428
- };
2429
- readonly hooks: {
2430
- readonly type: "array";
2431
- readonly items: {
2432
- readonly type: "string";
2433
- readonly enum: readonly ["git", "ci"];
2434
- };
2435
- readonly description: "Which hooks to output (default: [\"git\", \"ci\"])";
2436
- };
2437
- };
2438
- readonly required: readonly ["instance_id"];
2439
- };
2440
- }, {
2441
- readonly name: "fedbrain_contribute";
2442
- readonly description: string;
2443
- readonly inputSchema: {
2444
- readonly type: "object";
2445
- readonly properties: {
2446
- readonly instance_id: {
2447
- readonly type: "string";
2448
- readonly description: "Brain instance ID";
2449
- };
2450
- readonly lesson_key: {
2451
- readonly type: "string";
2452
- readonly description: "Topic key to contribute, e.g. \"fix:clickhouse-ipv6\"";
2453
- };
2454
- readonly visibility: {
2455
- readonly type: "string";
2456
- readonly enum: readonly ["public", "org_private"];
2457
- readonly description: "Visibility (default: public)";
2458
- };
2459
- };
2460
- readonly required: readonly ["instance_id", "lesson_key"];
2461
- };
2462
- }, {
2463
- readonly name: "fedbrain_search";
2464
- readonly description: string;
2465
- readonly inputSchema: {
2466
- readonly type: "object";
2467
- readonly properties: {
2468
- readonly instance_id: {
2469
- readonly type: "string";
2470
- readonly description: "Brain instance ID";
2471
- };
2472
- readonly query: {
2473
- readonly type: "string";
2474
- readonly description: "What to search for";
2475
- };
2476
- readonly context_hints: {
2477
- readonly type: "array";
2478
- readonly items: {
2479
- readonly type: "string";
2480
- };
2481
- readonly description: "Your tech stack, e.g. [\"go\", \"kubernetes\", \"postgres\"]";
2482
- };
2483
- readonly limit: {
2484
- readonly type: "number";
2485
- readonly description: "Max results (default: 10)";
2486
- };
2487
- };
2488
- readonly required: readonly ["instance_id", "query"];
2489
- };
2490
- }, {
2491
- readonly name: "fedbrain_confirm";
2492
- readonly description: string;
2493
- readonly inputSchema: {
2494
- readonly type: "object";
2495
- readonly properties: {
2496
- readonly instance_id: {
2497
- readonly type: "string";
2498
- readonly description: "Brain instance ID";
2499
- };
2500
- readonly id: {
2501
- readonly type: "string";
2502
- readonly description: "Syndicated lesson id to confirm (shown next to each fedbrain_search result)";
2503
- };
2504
- readonly topic: {
2505
- readonly type: "string";
2506
- readonly description: "Optional topic of the lesson — also updates your local CKG confidence for it";
2507
- };
2508
- readonly outcome: {
2509
- readonly type: "string";
2510
- readonly enum: readonly ["worked", "partially_worked", "did_not_work"];
2511
- readonly description: "Did the lesson work for you?";
2512
- };
2513
- };
2514
- readonly required: readonly ["instance_id", "id", "outcome"];
2515
- };
2516
- }, {
2517
- readonly name: "fedbrain_status";
2518
- readonly description: string;
2519
- readonly inputSchema: {
2520
- readonly type: "object";
2521
- readonly properties: {
2522
- readonly instance_id: {
2523
- readonly type: "string";
2524
- readonly description: "Brain instance ID";
2525
- };
2526
- };
2527
- readonly required: readonly ["instance_id"];
2528
- };
2529
- }, {
2530
- readonly name: "brain_federate";
2531
- readonly description: string;
2532
- readonly inputSchema: {
2533
- readonly type: "object";
2534
- readonly properties: {
2535
- readonly instance_id: {
2536
- readonly type: "string";
2537
- readonly description: "Your brain instance ID (destination)";
2538
- };
2539
- readonly source: {
2540
- readonly type: "string";
2541
- readonly description: "Source brain instance ID to federate from";
2542
- };
2543
- readonly domain: {
2544
- readonly type: "string";
2545
- readonly description: "Domain to transfer, e.g. \"billing\", \"auth\", \"deploy\", \"infra\". Use \"*\" for all domains.";
2546
- };
2547
- readonly min_confidence: {
2548
- readonly type: "number";
2549
- readonly description: "Minimum edge confidence to transfer (default: 0.6)";
2550
- };
2551
- readonly dry_run: {
2552
- readonly type: "boolean";
2553
- readonly description: "Preview what would be transferred without writing (default: false)";
2554
- };
2555
- };
2556
- readonly required: readonly ["instance_id", "source", "domain"];
2557
- };
2558
- }, {
2559
- readonly name: "crystal_view";
2560
- readonly description: string;
2561
- readonly inputSchema: {
2562
- readonly type: "object";
2563
- readonly properties: {
2564
- readonly instance_id: {
2565
- readonly type: "string";
2566
- readonly description: "Brain instance ID";
2567
- };
2568
- readonly show_raw: {
2569
- readonly type: "boolean";
2570
- readonly description: "Include raw JSON crystal data (default: false)";
2571
- };
2572
- };
2573
- readonly required: readonly ["instance_id"];
2574
- };
2575
- }, {
2576
- readonly name: "compact_recover";
2577
- readonly description: string;
2578
- readonly inputSchema: {
2579
- readonly type: "object";
2580
- readonly properties: {
2581
- readonly instance_id: {
2582
- readonly type: "string";
2583
- readonly description: "Brain instance ID";
2584
- };
2585
- readonly focus: {
2586
- readonly type: "string";
2587
- readonly description: "What you were working on (helps filter relevant context)";
2588
- };
2589
- };
2590
- readonly required: readonly ["instance_id"];
2591
- };
2592
- }, {
2593
- readonly name: "brain_from_git";
2594
- readonly description: string;
2595
- readonly inputSchema: {
2596
- readonly type: "object";
2597
- readonly properties: {
2598
- readonly instance_id: {
2599
- readonly type: "string";
2600
- readonly description: "Brain instance ID";
2601
- };
2602
- readonly repo_path: {
2603
- readonly type: "string";
2604
- readonly description: "Path to git repository (default: current directory)";
2605
- };
2606
- readonly limit: {
2607
- readonly type: "number";
2608
- readonly description: "Max commits to process (default: 100, max: 500)";
2609
- };
2610
- readonly branch: {
2611
- readonly type: "string";
2612
- readonly description: "Git branch to parse (default: current branch / HEAD)";
2613
- };
2614
- readonly since: {
2615
- readonly type: "string";
2616
- readonly description: "Only commits after this date, e.g. \"2024-01-01\" (optional)";
2617
- };
2618
- readonly incremental: {
2619
- readonly type: "boolean";
2620
- readonly description: "Only process commits since last run (default: true). Set false to reprocess all.";
2621
- };
2622
- };
2623
- readonly required: readonly ["instance_id"];
2624
- };
2625
- }, {
2626
- readonly name: "brain_from_ci";
2627
- readonly description: string;
2628
- readonly inputSchema: {
2629
- readonly type: "object";
2630
- readonly properties: {
2631
- readonly instance_id: {
2632
- readonly type: "string";
2633
- readonly description: "Brain instance ID";
2634
- };
2635
- readonly outcomes: {
2636
- readonly type: "array";
2637
- readonly description: "List of CI run outcomes to ingest";
2638
- readonly items: {
2639
- readonly type: "object";
2640
- readonly properties: {
2641
- readonly job: {
2642
- readonly type: "string";
2643
- readonly description: "Job name (e.g. \"test\", \"build\", \"lint\")";
2644
- };
2645
- readonly status: {
2646
- readonly type: "string";
2647
- readonly description: "Current status: success|failure|error";
2648
- };
2649
- readonly prev_status: {
2650
- readonly type: "string";
2651
- readonly description: "Previous run status (optional, needed to detect transitions)";
2652
- };
2653
- readonly context: {
2654
- readonly type: "string";
2655
- readonly description: "Optional: error message, branch, commit hash, etc.";
2656
- };
2657
- };
2658
- readonly required: readonly ["job", "status"];
2659
- };
2660
- };
2661
- };
2662
- readonly required: readonly ["instance_id", "outcomes"];
2663
- };
2664
- }, {
2665
- readonly name: "brain_watch";
2666
- readonly description: string;
2667
- readonly inputSchema: {
2668
- readonly type: "object";
2669
- readonly properties: {
2670
- readonly instance_id: {
2671
- readonly type: "string";
2672
- readonly description: "Brain instance ID to learn into";
2673
- };
2674
- readonly project_dir: {
2675
- readonly type: "string";
2676
- readonly description: "Path to the git repository (default: current directory \".\")";
2677
- };
2678
- readonly api_key: {
2679
- readonly type: "string";
2680
- readonly description: "Optional cachly API key (cky_…) to embed in the hook for authentication";
2681
- };
2682
- };
2683
- readonly required: readonly [];
2684
- };
2685
- }, {
2686
- readonly name: "brain_predict_failures";
2687
- readonly description: string;
2688
- readonly inputSchema: {
2689
- readonly type: "object";
2690
- readonly properties: {
2691
- readonly instance_id: {
2692
- readonly type: "string";
2693
- readonly description: "Brain instance ID";
2694
- };
2695
- readonly context: {
2696
- readonly type: "string";
2697
- readonly description: "What you are about to do, e.g. \"upgrading Keycloak 21 to 24\"";
2698
- };
2699
- readonly top_k: {
2700
- readonly type: "number";
2701
- readonly description: "Number of failure predictions to return (default: 5)";
2702
- };
2703
- readonly format: {
2704
- readonly type: "string";
2705
- readonly enum: readonly ["brief", "detailed"];
2706
- readonly description: "Output format (default: detailed)";
2707
- };
2708
- };
2709
- readonly required: readonly ["instance_id", "context"];
2710
- };
2711
- }, {
2712
- readonly name: "brain_share";
2713
- readonly description: string;
2714
- readonly inputSchema: {
2715
- readonly type: "object";
2716
- readonly properties: {
2717
- readonly instance_id: {
2718
- readonly type: "string";
2719
- readonly description: "UUID of the Brain instance to export from.";
2720
- };
2721
- readonly title: {
2722
- readonly type: "string";
2723
- readonly description: "Human-readable title for the shared Brain snapshot. Default: \"My Brain Snapshot\".";
2724
- };
2725
- readonly description: {
2726
- readonly type: "string";
2727
- readonly description: "Short description of what knowledge this Brain contains.";
2728
- };
2729
- readonly topic_filter: {
2730
- readonly type: "array";
2731
- readonly items: {
2732
- readonly type: "string";
2733
- };
2734
- readonly description: "Only export lessons whose topic contains one of these strings. Omit to export all lessons.";
2735
- };
2736
- readonly visibility: {
2737
- readonly type: "string";
2738
- readonly enum: readonly ["public", "unlisted"];
2739
- readonly description: "\"public\" = discoverable in the Brain marketplace. \"unlisted\" = only accessible by direct link. Default: unlisted.";
2740
- };
2741
- readonly max_lessons: {
2742
- readonly type: "number";
2743
- readonly description: "Maximum number of lessons to include (default 100, max 500).";
2744
- };
2745
- readonly dry_run: {
2746
- readonly type: "boolean";
2747
- readonly description: "If true, preview what would be shared without creating the public link.";
2748
- };
2749
- };
2750
- readonly required: readonly ["instance_id"];
2751
- };
2752
- }, {
2753
- readonly name: "brain_import";
2754
- readonly description: string;
2755
- readonly inputSchema: {
2756
- readonly type: "object";
2757
- readonly properties: {
2758
- readonly instance_id: {
2759
- readonly type: "string";
2760
- readonly description: "UUID of the Brain instance to import lessons into.";
2761
- };
2762
- readonly share_id: {
2763
- readonly type: "string";
2764
- readonly description: "Share ID (UUID) or full share URL from brain_share.";
2765
- };
2766
- readonly topic_prefix: {
2767
- readonly type: "string";
2768
- readonly description: "Optional prefix to prepend to all imported topic names (e.g. \"team\" → \"team:auth:jwt-expiry\"). Prevents collisions with your own lessons.";
2769
- };
2770
- readonly min_confidence: {
2771
- readonly type: "number";
2772
- readonly description: "Skip lessons below this confidence threshold (0.0–1.0). Default: 0 (import all).";
2773
- };
2774
- readonly overwrite: {
2775
- readonly type: "boolean";
2776
- readonly description: "Replace existing lessons with the same topic. Default false.";
2777
- };
2778
- readonly dry_run: {
2779
- readonly type: "boolean";
2780
- readonly description: "Preview what would be imported without writing to the Brain.";
2781
- };
2782
- };
2783
- readonly required: readonly ["instance_id", "share_id"];
2784
- };
2785
- }, {
2786
- readonly name: "brain_share_list";
2787
- readonly description: string;
2788
- readonly inputSchema: {
2789
- readonly type: "object";
2790
- readonly properties: {
2791
- readonly instance_id: {
2792
- readonly type: "string";
2793
- readonly description: "UUID of the Brain instance that created the shares.";
2794
- };
2795
- };
2796
- readonly required: readonly ["instance_id"];
2797
- };
2798
- }, {
2799
- readonly name: "brain_unshare";
2800
- readonly description: string;
2801
- readonly inputSchema: {
2802
- readonly type: "object";
2803
- readonly properties: {
2804
- readonly instance_id: {
2805
- readonly type: "string";
2806
- readonly description: "UUID of the Brain instance that owns the share.";
2807
- };
2808
- readonly share_id: {
2809
- readonly type: "string";
2810
- readonly description: "Share ID to revoke (from brain_share or brain_share_list).";
2811
- };
2812
- };
2813
- readonly required: readonly ["instance_id", "share_id"];
2814
- };
2815
- }, {
2816
- readonly name: "brain_discover";
2817
- readonly description: string;
2818
- readonly inputSchema: {
2819
- readonly type: "object";
2820
- readonly properties: {
2821
- readonly query: {
2822
- readonly type: "string";
2823
- readonly description: "Full-text search query across Brain titles and descriptions.";
2824
- };
2825
- readonly topic: {
2826
- readonly type: "string";
2827
- readonly description: "Filter by topic prefix (e.g. \"auth\", \"docker\", \"nextjs\").";
2828
- };
2829
- readonly limit: {
2830
- readonly type: "number";
2831
- readonly description: "Max number of results to return (default 10, max 50).";
2832
- };
2833
- };
2834
- readonly required: readonly [];
2835
- };
2836
- }, {
2837
- readonly name: "brain_seed_starter";
2838
- readonly description: string;
2839
- readonly inputSchema: {
2840
- readonly type: "object";
2841
- readonly properties: {
2842
- readonly instance_id: {
2843
- readonly type: "string";
2844
- readonly description: "UUID of the Brain instance to seed.";
2845
- };
2846
- readonly topic_filter: {
2847
- readonly type: "array";
2848
- readonly items: {
2849
- readonly type: "string";
2850
- };
2851
- readonly description: "Only seed lessons whose topic or tags match one of these strings (e.g. [\"docker\", \"auth\"]). Omit to seed all.";
2852
- };
2853
- readonly force: {
2854
- readonly type: "boolean";
2855
- readonly description: "Re-seed even if already seeded; also overwrites same-topic lessons. Default false.";
2856
- };
2857
- readonly dry_run: {
2858
- readonly type: "boolean";
2859
- readonly description: "Preview which starter lessons would be seeded without writing.";
2860
- };
2861
- };
2862
- readonly required: readonly ["instance_id"];
2863
- };
2864
- }, {
2865
- readonly name: "brain_graph";
2866
- readonly description: string;
2867
- readonly inputSchema: {
2868
- readonly type: "object";
2869
- readonly properties: {
2870
- readonly instance_id: {
2871
- readonly type: "string";
2872
- readonly description: "UUID of the Brain instance to export.";
2873
- };
2874
- readonly max_nodes: {
2875
- readonly type: "number";
2876
- readonly description: "Cap on nodes returned (default 400, max 2000). Edges to dropped nodes are pruned.";
2877
- };
2878
- readonly domain: {
2879
- readonly type: "string";
2880
- readonly description: "Only include nodes whose domain or id contains this string (e.g. \"auth\", \"docker\"). Omit for the whole graph.";
2881
- };
2882
- readonly min_confidence: {
2883
- readonly type: "number";
2884
- readonly description: "Drop edges below this confidence 0..1 (default 0 = keep all).";
2885
- };
2886
- readonly format: {
2887
- readonly type: "string";
2888
- readonly enum: readonly ["json", "summary"];
2889
- readonly description: "\"json\" (default) emits the full renderable payload; \"summary\" emits a human-readable overview.";
2890
- };
2891
- };
2892
- readonly required: readonly ["instance_id"];
2893
- };
2894
- }, {
2895
- readonly name: "brain_set_pref";
2896
- readonly description: string;
2897
- readonly inputSchema: {
2898
- readonly type: "object";
2899
- readonly properties: {
2900
- readonly instance_id: {
2901
- readonly type: "string";
2902
- readonly description: "UUID of the cache instance (Brain ID).";
2903
- };
2904
- readonly key: {
2905
- readonly type: "string";
2906
- readonly description: "Preference key (e.g. \"auto_changelog\").";
2907
- };
2908
- readonly value: {
2909
- readonly type: "string";
2910
- readonly description: "Value to set (e.g. \"false\" to disable, \"true\" to re-enable).";
2911
- };
2912
- };
2913
- readonly required: readonly ["instance_id", "key", "value"];
2914
- };
2915
- }, {
2916
- readonly name: "brain_get_pref";
2917
- readonly description: string;
2918
- readonly inputSchema: {
2919
- readonly type: "object";
2920
- readonly properties: {
2921
- readonly instance_id: {
2922
- readonly type: "string";
2923
- readonly description: "UUID of the Brain instance.";
2924
- };
2925
- readonly key: {
2926
- readonly type: "string";
2927
- readonly description: "Preference key to read. Omit to list all preferences.";
2928
- };
2929
- };
2930
- readonly required: readonly ["instance_id"];
2931
- };
2932
- }];
2933
- export { TOOLS };