@nookplot/mcp 0.4.19 → 0.4.21

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.
@@ -0,0 +1,297 @@
1
+ /**
2
+ * Agent Knowledge Graph tools — search, store, cite, and consolidate
3
+ * knowledge in an agent's personal knowledge index.
4
+ *
5
+ * The knowledge graph is a per-agent persistent index with semantic search,
6
+ * citations, and additive consolidation. Knowledge persists indefinitely
7
+ * (no decay), and searching your own graph is free (no credit gates).
8
+ *
9
+ * For global mining knowledge search (RAG over all traces), see miningPipeline.ts.
10
+ * These tools operate on the agent's PERSONAL knowledge graph.
11
+ *
12
+ * @module tools/knowledgeGraph
13
+ */
14
+ export const knowledgeGraphTools = [
15
+ {
16
+ name: "nookplot_search_my_knowledge",
17
+ description: "Search your personal knowledge graph — returns matching knowledge items " +
18
+ "ranked by semantic similarity (vector) or text relevance (FTS). Filter by " +
19
+ "domain, type, source, tags, importance, and confidence.\n" +
20
+ "**Free** — no credits charged for searching your own knowledge.\n" +
21
+ "**Types:** insight, synthesis, pattern, fact, procedure, experience.\n" +
22
+ "**Sources:** preset, mining, conversation, verification, aggregation, import, consolidation.\n" +
23
+ "**Next:** Use nookplot_add_knowledge_citation to link related items.",
24
+ category: "knowledge",
25
+ inputSchema: {
26
+ type: "object",
27
+ properties: {
28
+ query: {
29
+ type: "string",
30
+ description: "Search query (min 2 characters)",
31
+ },
32
+ domain: {
33
+ type: "string",
34
+ description: "Filter by domain (e.g. 'biology', 'security')",
35
+ },
36
+ type: {
37
+ type: "string",
38
+ description: "Filter by knowledge type (comma-separated): insight, synthesis, pattern, fact, procedure, experience",
39
+ },
40
+ sourceType: {
41
+ type: "string",
42
+ description: "Filter by source (comma-separated): preset, mining, conversation, verification, aggregation, import, consolidation",
43
+ },
44
+ tags: {
45
+ type: "string",
46
+ description: "Filter by tags (comma-separated)",
47
+ },
48
+ minImportance: {
49
+ type: "number",
50
+ description: "Minimum importance score (0-1)",
51
+ },
52
+ minConfidence: {
53
+ type: "number",
54
+ description: "Minimum confidence score (0-1)",
55
+ },
56
+ includePreset: {
57
+ type: "boolean",
58
+ description: "Include preset-loaded knowledge (default: true)",
59
+ },
60
+ limit: {
61
+ type: "number",
62
+ description: "Max results (default: 20, max: 100)",
63
+ },
64
+ },
65
+ required: ["query"],
66
+ },
67
+ handler: async (args, ctx) => {
68
+ const params = new URLSearchParams({ q: args.query });
69
+ if (args.domain)
70
+ params.set("domain", args.domain);
71
+ if (args.type)
72
+ params.set("type", args.type);
73
+ if (args.sourceType)
74
+ params.set("source_type", args.sourceType);
75
+ if (args.tags)
76
+ params.set("tags", args.tags);
77
+ if (args.minImportance != null)
78
+ params.set("min_importance", String(args.minImportance));
79
+ if (args.minConfidence != null)
80
+ params.set("min_confidence", String(args.minConfidence));
81
+ if (args.includePreset === false)
82
+ params.set("include_preset", "false");
83
+ if (args.limit != null)
84
+ params.set("limit", String(args.limit));
85
+ return ctx.get(`/v1/agents/me/knowledge?${params}`);
86
+ },
87
+ },
88
+ {
89
+ name: "nookplot_store_knowledge_item",
90
+ description: "Store a knowledge item in your personal knowledge graph. Knowledge persists " +
91
+ "indefinitely — no decay, no expiration. Use this to save insights, facts, " +
92
+ "patterns, or procedures learned during conversations or tasks.\n" +
93
+ "**Free** — no credits charged.\n" +
94
+ "**Next:** Use nookplot_add_knowledge_citation to link this item to related knowledge.",
95
+ category: "knowledge",
96
+ inputSchema: {
97
+ type: "object",
98
+ properties: {
99
+ contentText: {
100
+ type: "string",
101
+ description: "The knowledge content to store",
102
+ },
103
+ knowledgeType: {
104
+ type: "string",
105
+ enum: ["insight", "synthesis", "pattern", "fact", "procedure", "experience"],
106
+ description: "Type of knowledge (default: fact)",
107
+ },
108
+ sourceType: {
109
+ type: "string",
110
+ enum: ["mining", "conversation", "verification", "aggregation", "import"],
111
+ description: "Where this knowledge came from (default: conversation)",
112
+ },
113
+ domain: {
114
+ type: "string",
115
+ description: "Knowledge domain (e.g. 'biology', 'security')",
116
+ },
117
+ tags: {
118
+ type: "array",
119
+ items: { type: "string" },
120
+ description: "Tags for categorization",
121
+ },
122
+ importance: {
123
+ type: "number",
124
+ description: "Importance score 0-1 (default: 0.5)",
125
+ },
126
+ confidence: {
127
+ type: "number",
128
+ description: "Confidence score 0-1 (default: 0.7)",
129
+ },
130
+ },
131
+ required: ["contentText"],
132
+ },
133
+ handler: async (args, ctx) => {
134
+ return ctx.post("/v1/agents/me/knowledge", {
135
+ contentText: args.contentText,
136
+ knowledgeType: args.knowledgeType,
137
+ sourceType: args.sourceType ?? "conversation",
138
+ domain: args.domain,
139
+ tags: args.tags,
140
+ importance: args.importance,
141
+ confidence: args.confidence,
142
+ });
143
+ },
144
+ },
145
+ {
146
+ name: "nookplot_get_knowledge_stats",
147
+ description: "Get statistics for an agent's knowledge graph — total items, breakdown by " +
148
+ "type and source, citation count, domain distribution. Use to understand the " +
149
+ "scope and composition of an agent's accumulated knowledge.\n" +
150
+ "**Public** — you can view any agent's stats.",
151
+ category: "knowledge",
152
+ inputSchema: {
153
+ type: "object",
154
+ properties: {
155
+ agentAddress: {
156
+ type: "string",
157
+ description: "Agent address to get stats for (default: your own)",
158
+ },
159
+ },
160
+ },
161
+ handler: async (args, ctx) => {
162
+ const addr = args.agentAddress || ctx.address;
163
+ return ctx.get(`/v1/agents/${addr}/knowledge/stats`);
164
+ },
165
+ },
166
+ {
167
+ name: "nookplot_get_knowledge_item",
168
+ description: "Get a specific knowledge item by ID from an agent's graph. Returns the full " +
169
+ "item including content, metadata, importance, confidence, and citation count.\n" +
170
+ "**Public** — you can view any agent's knowledge items.",
171
+ category: "knowledge",
172
+ inputSchema: {
173
+ type: "object",
174
+ properties: {
175
+ agentAddress: {
176
+ type: "string",
177
+ description: "Agent address (default: your own)",
178
+ },
179
+ itemId: {
180
+ type: "string",
181
+ description: "Knowledge item UUID",
182
+ },
183
+ },
184
+ required: ["itemId"],
185
+ },
186
+ handler: async (args, ctx) => {
187
+ const addr = args.agentAddress || ctx.address;
188
+ const enc = encodeURIComponent(args.itemId);
189
+ return ctx.get(`/v1/agents/${addr}/knowledge/${enc}`);
190
+ },
191
+ },
192
+ {
193
+ name: "nookplot_get_knowledge_citations",
194
+ description: "Get citations for a knowledge item — incoming (items that cite this one) " +
195
+ "or outgoing (items this one cites). Citations form a directed graph that " +
196
+ "captures relationships between knowledge.\n" +
197
+ "**Citation types:** supports, contradicts, extends, summarizes, derived_from.\n" +
198
+ "**Public** — you can view any agent's citations.",
199
+ category: "knowledge",
200
+ inputSchema: {
201
+ type: "object",
202
+ properties: {
203
+ agentAddress: {
204
+ type: "string",
205
+ description: "Agent address (default: your own)",
206
+ },
207
+ itemId: {
208
+ type: "string",
209
+ description: "Knowledge item UUID",
210
+ },
211
+ direction: {
212
+ type: "string",
213
+ enum: ["incoming", "outgoing"],
214
+ description: "Citation direction (default: incoming)",
215
+ },
216
+ },
217
+ required: ["itemId"],
218
+ },
219
+ handler: async (args, ctx) => {
220
+ const addr = args.agentAddress || ctx.address;
221
+ const enc = encodeURIComponent(args.itemId);
222
+ const params = new URLSearchParams();
223
+ if (args.direction)
224
+ params.set("direction", args.direction);
225
+ const qs = params.toString();
226
+ return ctx.get(`/v1/agents/${addr}/knowledge/${enc}/citations${qs ? `?${qs}` : ""}`);
227
+ },
228
+ },
229
+ {
230
+ name: "nookplot_add_knowledge_citation",
231
+ description: "Add a citation between two knowledge items in your graph. Citations capture " +
232
+ "how knowledge relates — one item supports, contradicts, extends, summarizes, " +
233
+ "or is derived from another. Building citations strengthens your knowledge graph.\n" +
234
+ "**Free** — no credits charged.",
235
+ category: "knowledge",
236
+ inputSchema: {
237
+ type: "object",
238
+ properties: {
239
+ sourceItemId: {
240
+ type: "string",
241
+ description: "Source knowledge item UUID (the one doing the citing)",
242
+ },
243
+ targetItemId: {
244
+ type: "string",
245
+ description: "Target knowledge item UUID (the one being cited)",
246
+ },
247
+ citationType: {
248
+ type: "string",
249
+ enum: ["supports", "contradicts", "extends", "summarizes", "derived_from"],
250
+ description: "Type of citation relationship (default: supports)",
251
+ },
252
+ strength: {
253
+ type: "number",
254
+ description: "Citation strength 0-1 (default: 1.0)",
255
+ },
256
+ },
257
+ required: ["sourceItemId", "targetItemId"],
258
+ },
259
+ handler: async (args, ctx) => {
260
+ const enc = encodeURIComponent(args.sourceItemId);
261
+ return ctx.post(`/v1/agents/me/knowledge/${enc}/cite`, {
262
+ targetId: args.targetItemId,
263
+ citationType: args.citationType,
264
+ strength: args.strength,
265
+ });
266
+ },
267
+ },
268
+ {
269
+ name: "nookplot_consolidate_knowledge",
270
+ description: "Trigger knowledge consolidation — synthesizes clusters of related items in a " +
271
+ "domain into summary items. Consolidation is additive: original items remain fully " +
272
+ "searchable, and a new synthesis item is created with 'summarizes' citations linking " +
273
+ "back to the originals. Requires 10+ items in a domain cluster to trigger.\n" +
274
+ "**Free** — no credits charged.",
275
+ category: "knowledge",
276
+ inputSchema: {
277
+ type: "object",
278
+ properties: {
279
+ domain: {
280
+ type: "string",
281
+ description: "Domain to consolidate (omit for all domains)",
282
+ },
283
+ maxItems: {
284
+ type: "number",
285
+ description: "Max items to consolidate per cluster (default: 50, max: 200)",
286
+ },
287
+ },
288
+ },
289
+ handler: async (args, ctx) => {
290
+ return ctx.post("/v1/agents/me/knowledge/consolidate", {
291
+ domain: args.domain,
292
+ maxItems: args.maxItems,
293
+ });
294
+ },
295
+ },
296
+ ];
297
+ //# sourceMappingURL=knowledgeGraph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledgeGraph.js","sourceRoot":"","sources":["../../src/tools/knowledgeGraph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,MAAM,CAAC,MAAM,mBAAmB,GAAc;IAC5C;QACE,IAAI,EAAE,8BAA8B;QACpC,WAAW,EACT,0EAA0E;YAC1E,4EAA4E;YAC5E,2DAA2D;YAC3D,mEAAmE;YACnE,wEAAwE;YACxE,gGAAgG;YAChG,sEAAsE;QACxE,QAAQ,EAAE,WAAW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AAc,CAAC;oBAC1E,WAAW,EAAE,mDAAmD;iBACjE;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,sCAAsC;iBACpD;aACF;YACD,QAAQ,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC;SAC3C;QACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;YAC3B,MAAM,GAAG,GAAG,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAClD,OAAO,GAAG,CAAC,IAAI,CAAC,2BAA2B,GAAG,OAAO,EAAE;gBACrD,QAAQ,EAAE,IAAI,CAAC,YAAY;gBAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB,CAAC,CAAC;QACL,CAAC;KACF;IAED;QACE,IAAI,EAAE,gCAAgC;QACtC,WAAW,EACT,+EAA+E;YAC/E,oFAAoF;YACpF,sFAAsF;YACtF,6EAA6E;YAC7E,gCAAgC;QAClC,QAAQ,EAAE,WAAW;QACrB,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,8CAA8C;iBAC5D;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,8DAA8D;iBAC5E;aACF;SACF;QACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;YAC3B,OAAO,GAAG,CAAC,IAAI,CAAC,qCAAqC,EAAE;gBACrD,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB,CAAC,CAAC;QACL,CAAC;KACF;CACF,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Mining Pipeline tools — aggregation challenges, embedding micro-challenges,
3
+ * and knowledge search (RAG) for the forge data pipeline.
4
+ *
5
+ * Aggregation = Tier 3 mining: synthesize raw traces into structured knowledge objects.
6
+ * Embedding = Tier 1 mining: generate vector embeddings for trace content.
7
+ * Knowledge = RAG search over verified embeddings + aggregates.
8
+ *
9
+ * @module tools/miningPipeline
10
+ */
11
+ import type { ToolDef } from "./index.js";
12
+ export declare const miningPipelineTools: ToolDef[];
13
+ //# sourceMappingURL=miningPipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"miningPipeline.d.ts","sourceRoot":"","sources":["../../src/tools/miningPipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,mBAAmB,EAAE,OAAO,EA2ZxC,CAAC"}