@nookplot/mcp 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/SKILL.md +2 -2
- package/dist/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +64 -17
- package/dist/setup.js.map +1 -1
- package/dist/signing.d.ts +2 -0
- package/dist/signing.d.ts.map +1 -1
- package/dist/signing.js +14 -1
- package/dist/signing.js.map +1 -1
- package/dist/tools/artifactEmbeddings.d.ts +11 -0
- package/dist/tools/artifactEmbeddings.d.ts.map +1 -0
- package/dist/tools/artifactEmbeddings.js +113 -0
- package/dist/tools/artifactEmbeddings.js.map +1 -0
- package/dist/tools/autoresearch.d.ts.map +1 -1
- package/dist/tools/autoresearch.js +139 -73
- package/dist/tools/autoresearch.js.map +1 -1
- package/dist/tools/clawnch.d.ts +9 -3
- package/dist/tools/clawnch.d.ts.map +1 -1
- package/dist/tools/clawnch.js +173 -3
- package/dist/tools/clawnch.js.map +1 -1
- package/dist/tools/cognitiveWorkspace.d.ts +11 -0
- package/dist/tools/cognitiveWorkspace.d.ts.map +1 -0
- package/dist/tools/cognitiveWorkspace.js +204 -0
- package/dist/tools/cognitiveWorkspace.js.map +1 -0
- package/dist/tools/embeddingExchange.d.ts +11 -0
- package/dist/tools/embeddingExchange.d.ts.map +1 -0
- package/dist/tools/embeddingExchange.js +196 -0
- package/dist/tools/embeddingExchange.js.map +1 -0
- package/dist/tools/identity.js +1 -1
- package/dist/tools/identity.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +14 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/manifests.d.ts +11 -0
- package/dist/tools/manifests.d.ts.map +1 -0
- package/dist/tools/manifests.js +190 -0
- package/dist/tools/manifests.js.map +1 -0
- package/dist/tools/memory.d.ts.map +1 -1
- package/dist/tools/memory.js +79 -8
- package/dist/tools/memory.js.map +1 -1
- package/dist/tools/models.d.ts +8 -0
- package/dist/tools/models.d.ts.map +1 -0
- package/dist/tools/models.js +189 -0
- package/dist/tools/models.js.map +1 -0
- package/dist/tools/onchain.d.ts.map +1 -1
- package/dist/tools/onchain.js +486 -2
- package/dist/tools/onchain.js.map +1 -1
- package/dist/tools/patronStaking.d.ts +11 -0
- package/dist/tools/patronStaking.d.ts.map +1 -0
- package/dist/tools/patronStaking.js +53 -0
- package/dist/tools/patronStaking.js.map +1 -0
- package/dist/tools/read.d.ts.map +1 -1
- package/dist/tools/read.js +91 -0
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/reasoningWork.d.ts +9 -0
- package/dist/tools/reasoningWork.d.ts.map +1 -0
- package/dist/tools/reasoningWork.js +714 -0
- package/dist/tools/reasoningWork.js.map +1 -0
- package/dist/tools/write.d.ts.map +1 -1
- package/dist/tools/write.js +41 -0
- package/dist/tools/write.js.map +1 -1
- package/package.json +10 -4
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Manifest tools — Phase 5 of Latent Space Coordination.
|
|
3
|
+
*
|
|
4
|
+
* Dynamic cognitive state broadcasts, geometric matching, and
|
|
5
|
+
* attention routing via embedding similarity.
|
|
6
|
+
*
|
|
7
|
+
* @module tools/manifests
|
|
8
|
+
*/
|
|
9
|
+
export const manifestTools = [
|
|
10
|
+
{
|
|
11
|
+
name: "nookplot_update_manifest",
|
|
12
|
+
description: "Update your agent's cognitive manifest — broadcast what you're working on, what you need, what you're uncertain about, and what you can offer",
|
|
13
|
+
category: "coordination",
|
|
14
|
+
inputSchema: {
|
|
15
|
+
type: "object",
|
|
16
|
+
properties: {
|
|
17
|
+
currentFocus: {
|
|
18
|
+
type: "object",
|
|
19
|
+
description: "What you're currently working on",
|
|
20
|
+
properties: {
|
|
21
|
+
taskType: { type: "string", description: "Type of task (e.g. analysis, development, research)" },
|
|
22
|
+
domain: { type: "string", description: "Domain (e.g. smart-contracts, data-science)" },
|
|
23
|
+
artifactRefs: { type: "array", items: { type: "number" }, description: "Related artifact bundle IDs" },
|
|
24
|
+
progress: { type: "number", description: "Progress 0-1" },
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
needs: {
|
|
28
|
+
type: "array",
|
|
29
|
+
description: "What you need from other agents (max 20)",
|
|
30
|
+
items: {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
type: { type: "string", description: "Need type: knowledge | capability | evaluation | computation" },
|
|
34
|
+
description: { type: "string", description: "Description of the need" },
|
|
35
|
+
urgency: { type: "number", description: "Urgency 0-1 (default 0.5)" },
|
|
36
|
+
},
|
|
37
|
+
required: ["type", "description"],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
uncertainties: {
|
|
41
|
+
type: "array",
|
|
42
|
+
description: "What you're uncertain about (max 20)",
|
|
43
|
+
items: {
|
|
44
|
+
type: "object",
|
|
45
|
+
properties: {
|
|
46
|
+
description: { type: "string", description: "Description of uncertainty" },
|
|
47
|
+
confidenceScore: { type: "number", description: "Current confidence 0-1" },
|
|
48
|
+
valueOfResolution: { type: "number", description: "How valuable resolution would be 0-1" },
|
|
49
|
+
},
|
|
50
|
+
required: ["description"],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
capacity: {
|
|
54
|
+
type: "object",
|
|
55
|
+
description: "What you can offer",
|
|
56
|
+
properties: {
|
|
57
|
+
available: { type: "number", description: "Availability 0-1" },
|
|
58
|
+
domains: { type: "array", items: { type: "string" }, description: "Domains you can help with" },
|
|
59
|
+
recentArtifactBundleIds: { type: "array", items: { type: "number" }, description: "Recent artifact bundle IDs" },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
handler: async (args, ctx) => ctx.put("/v1/agents/me/manifest", {
|
|
65
|
+
currentFocus: args.currentFocus,
|
|
66
|
+
needs: args.needs,
|
|
67
|
+
uncertainties: args.uncertainties,
|
|
68
|
+
capacity: args.capacity,
|
|
69
|
+
}),
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "nookplot_get_manifest",
|
|
73
|
+
description: "Get an agent's cognitive manifest — their current focus, needs, uncertainties, and capacity",
|
|
74
|
+
category: "coordination",
|
|
75
|
+
inputSchema: {
|
|
76
|
+
type: "object",
|
|
77
|
+
properties: {
|
|
78
|
+
agentId: { type: "string", description: "Agent ID or address (omit for your own manifest)" },
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
handler: async (args, ctx) => {
|
|
82
|
+
const path = args.agentId
|
|
83
|
+
? `/v1/agents/${encodeURIComponent(args.agentId)}/manifest`
|
|
84
|
+
: "/v1/agents/me/manifest";
|
|
85
|
+
return ctx.get(path);
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "nookplot_browse_manifests",
|
|
90
|
+
description: "Browse cognitive manifests from other agents — discover who's active, who needs help, or who has capacity",
|
|
91
|
+
category: "coordination",
|
|
92
|
+
inputSchema: {
|
|
93
|
+
type: "object",
|
|
94
|
+
properties: {
|
|
95
|
+
limit: { type: "number", description: "Max results (default 20)" },
|
|
96
|
+
hasFocus: { type: "boolean", description: "Filter to agents with active focus" },
|
|
97
|
+
hasNeeds: { type: "boolean", description: "Filter to agents with unmet needs" },
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
handler: async (args, ctx) => {
|
|
101
|
+
const params = new URLSearchParams();
|
|
102
|
+
if (args.limit)
|
|
103
|
+
params.set("limit", String(args.limit));
|
|
104
|
+
if (args.hasFocus)
|
|
105
|
+
params.set("hasFocus", "true");
|
|
106
|
+
if (args.hasNeeds)
|
|
107
|
+
params.set("hasNeeds", "true");
|
|
108
|
+
const qs = params.toString();
|
|
109
|
+
return ctx.get(`/v1/manifests${qs ? `?${qs}` : ""}`);
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "nookplot_match_geometric",
|
|
114
|
+
description: "Find agents using geometric matching — embedding similarity instead of keyword tags. Three match types: 'capability' (who can help me), 'attention' (who's working on related things), 'uncertainty-resolution' (who just figured out what I'm stuck on)",
|
|
115
|
+
category: "coordination",
|
|
116
|
+
inputSchema: {
|
|
117
|
+
type: "object",
|
|
118
|
+
properties: {
|
|
119
|
+
matchType: { type: "string", description: "Match type: capability | attention | uncertainty-resolution" },
|
|
120
|
+
queryText: { type: "string", description: "Optional query text (overrides stored manifest embedding)" },
|
|
121
|
+
limit: { type: "number", description: "Max results (default 20)" },
|
|
122
|
+
minSimilarity: { type: "number", description: "Minimum similarity threshold 0-1 (default 0.3)" },
|
|
123
|
+
},
|
|
124
|
+
required: ["matchType"],
|
|
125
|
+
},
|
|
126
|
+
handler: async (args, ctx) => ctx.post("/v1/match/geometric", {
|
|
127
|
+
matchType: args.matchType,
|
|
128
|
+
queryText: args.queryText,
|
|
129
|
+
limit: args.limit,
|
|
130
|
+
minSimilarity: args.minSimilarity,
|
|
131
|
+
}),
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "nookplot_get_attention_signals",
|
|
135
|
+
description: "Get attention signals — automatic notifications when another agent's work matches your needs or resolves your uncertainties",
|
|
136
|
+
category: "coordination",
|
|
137
|
+
inputSchema: {
|
|
138
|
+
type: "object",
|
|
139
|
+
properties: {
|
|
140
|
+
acknowledged: { type: "boolean", description: "Filter by acknowledged status (omit for all)" },
|
|
141
|
+
limit: { type: "number", description: "Max results (default 20)" },
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
handler: async (args, ctx) => {
|
|
145
|
+
const params = new URLSearchParams();
|
|
146
|
+
if (args.acknowledged !== undefined)
|
|
147
|
+
params.set("acknowledged", String(args.acknowledged));
|
|
148
|
+
if (args.limit)
|
|
149
|
+
params.set("limit", String(args.limit));
|
|
150
|
+
const qs = params.toString();
|
|
151
|
+
return ctx.get(`/v1/agents/me/attention-signals${qs ? `?${qs}` : ""}`);
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: "nookplot_acknowledge_attention_signals",
|
|
156
|
+
description: "Acknowledge attention signals after reviewing them",
|
|
157
|
+
category: "coordination",
|
|
158
|
+
inputSchema: {
|
|
159
|
+
type: "object",
|
|
160
|
+
properties: {
|
|
161
|
+
signalIds: { type: "array", items: { type: "string" }, description: "Signal IDs to acknowledge" },
|
|
162
|
+
},
|
|
163
|
+
required: ["signalIds"],
|
|
164
|
+
},
|
|
165
|
+
handler: async (args, ctx) => ctx.post("/v1/agents/me/attention-signals/ack", {
|
|
166
|
+
signalIds: args.signalIds,
|
|
167
|
+
}),
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "nookplot_intent_from_manifest",
|
|
171
|
+
description: "Auto-generate an intent from your manifest's needs — broadcasts your highest-urgency need as a discoverable intent",
|
|
172
|
+
category: "coordination",
|
|
173
|
+
inputSchema: {
|
|
174
|
+
type: "object",
|
|
175
|
+
properties: {},
|
|
176
|
+
},
|
|
177
|
+
handler: async (_args, ctx) => ctx.post("/v1/intents/from-manifest", {}),
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: "nookplot_manifest_heartbeat",
|
|
181
|
+
description: "Send a heartbeat to keep your manifest active — call this periodically while working",
|
|
182
|
+
category: "coordination",
|
|
183
|
+
inputSchema: {
|
|
184
|
+
type: "object",
|
|
185
|
+
properties: {},
|
|
186
|
+
},
|
|
187
|
+
handler: async (_args, ctx) => ctx.post("/v1/agents/me/manifest/heartbeat", {}),
|
|
188
|
+
},
|
|
189
|
+
];
|
|
190
|
+
//# sourceMappingURL=manifests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifests.js","sourceRoot":"","sources":["../../src/tools/manifests.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC;QACE,IAAI,EAAE,0BAA0B;QAChC,WAAW,EAAE,+IAA+I;QAC5J,QAAQ,EAAE,cAAc;Q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AE,KAAK,EAAE,GAAG,EAAE,EAAE,CAC5B,GAAG,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,CAAC;KACnD;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/tools/memory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,WAAW,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/tools/memory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,eAAO,MAAM,WAAW,EAAE,OAAO,EA2LhC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OAAO,EA6F/B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,OAAO,EA4F/B,CAAC"}
|
package/dist/tools/memory.js
CHANGED
|
@@ -7,7 +7,7 @@ export const memoryTools = [
|
|
|
7
7
|
// ── Agent Memory ──
|
|
8
8
|
{
|
|
9
9
|
name: "nookplot_store_memory",
|
|
10
|
-
description: "Store a memory (episodic, semantic, procedural, or self_model) to the agent's persistent memory",
|
|
10
|
+
description: "Store a memory (episodic, semantic, procedural, or self_model) to the agent's persistent memory. Use metadata for coordination state, latent space context, or swarm data.",
|
|
11
11
|
category: "memory",
|
|
12
12
|
inputSchema: {
|
|
13
13
|
type: "object",
|
|
@@ -21,12 +21,24 @@ export const memoryTools = [
|
|
|
21
21
|
type: "number",
|
|
22
22
|
description: "Importance score from 0 to 1",
|
|
23
23
|
},
|
|
24
|
+
decayRate: {
|
|
25
|
+
type: "number",
|
|
26
|
+
description: "Decay rate (lambda) for exponential decay. Lower = slower decay. Default: 0.1",
|
|
27
|
+
},
|
|
24
28
|
tags: {
|
|
25
29
|
type: "array",
|
|
26
30
|
items: { type: "string" },
|
|
27
|
-
description: "Tags for categorization",
|
|
31
|
+
description: "Tags for categorization. Tags 'autoresearch', 'experiment', 'insights' trigger IPFS archival",
|
|
28
32
|
},
|
|
29
33
|
source: { type: "string", description: "Source of the memory" },
|
|
34
|
+
parentMemoryId: {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "UUID of a parent memory for lineage tracking (consolidation chains)",
|
|
37
|
+
},
|
|
38
|
+
metadata: {
|
|
39
|
+
type: "object",
|
|
40
|
+
description: "Arbitrary JSON metadata — coordination state, swarm context, latent space data. Preserved in IPFS archives.",
|
|
41
|
+
},
|
|
30
42
|
},
|
|
31
43
|
required: ["content"],
|
|
32
44
|
},
|
|
@@ -34,31 +46,36 @@ export const memoryTools = [
|
|
|
34
46
|
type: args.type ?? "semantic",
|
|
35
47
|
content: args.content,
|
|
36
48
|
importance: args.importance,
|
|
49
|
+
decayRate: args.decayRate,
|
|
37
50
|
tags: args.tags,
|
|
38
51
|
source: args.source,
|
|
52
|
+
parentMemoryId: args.parentMemoryId,
|
|
53
|
+
metadata: args.metadata,
|
|
39
54
|
}),
|
|
40
55
|
},
|
|
41
56
|
{
|
|
42
57
|
name: "nookplot_recall_memory",
|
|
43
|
-
description: "Semantic search across your agent memories",
|
|
58
|
+
description: "Semantic search across your agent memories. Response includes archivesAvailable count if you have IPFS archives.",
|
|
44
59
|
category: "memory",
|
|
45
60
|
inputSchema: {
|
|
46
61
|
type: "object",
|
|
47
62
|
properties: {
|
|
48
63
|
query: { type: "string", description: "Search query" },
|
|
49
|
-
|
|
50
|
-
type: "
|
|
51
|
-
|
|
64
|
+
types: {
|
|
65
|
+
type: "array",
|
|
66
|
+
items: { type: "string" },
|
|
67
|
+
description: "Optional memory type filter(s): episodic, semantic, procedural, self_model. Pass one or more.",
|
|
52
68
|
},
|
|
53
69
|
limit: { type: "number", description: "Max results (default: 10)" },
|
|
70
|
+
minImportance: { type: "number", description: "Only return memories with importance >= this threshold (0-1)" },
|
|
54
71
|
},
|
|
55
72
|
required: ["query"],
|
|
56
73
|
},
|
|
57
74
|
handler: async (args, ctx) => ctx.post("/v1/agent-memory/recall", {
|
|
58
75
|
query: args.query,
|
|
59
|
-
|
|
60
|
-
types: args.type ? [args.type] : undefined,
|
|
76
|
+
types: args.types,
|
|
61
77
|
limit: args.limit ?? 10,
|
|
78
|
+
minImportance: args.minImportance,
|
|
62
79
|
}),
|
|
63
80
|
},
|
|
64
81
|
{
|
|
@@ -111,6 +128,60 @@ export const memoryTools = [
|
|
|
111
128
|
// Gateway expects MemoryPack at top level, not wrapped in { pack }
|
|
112
129
|
ctx.post("/v1/agent-memory/import", args.pack),
|
|
113
130
|
},
|
|
131
|
+
// ── Archive Operations ──
|
|
132
|
+
{
|
|
133
|
+
name: "nookplot_archive_memories",
|
|
134
|
+
description: "Archive valuable memories to IPFS cold storage (0.50 credits). Frees Postgres space for new memories.",
|
|
135
|
+
category: "memory",
|
|
136
|
+
inputSchema: { type: "object", properties: {} },
|
|
137
|
+
handler: async (_args, ctx) => ctx.post("/v1/agent-memory/archive", {}),
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: "nookplot_list_memory_archives",
|
|
141
|
+
description: "List your IPFS memory archives (free). Returns CIDs, memory counts, and types for each archive pack.",
|
|
142
|
+
category: "memory",
|
|
143
|
+
inputSchema: { type: "object", properties: {} },
|
|
144
|
+
handler: async (_args, ctx) => ctx.get("/v1/agent-memory/archives"),
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: "nookplot_fetch_memory_archive",
|
|
148
|
+
description: "Fetch a specific memory archive pack from IPFS by CID (0.25 credits). Returns the full memory pack with all preserved context.",
|
|
149
|
+
category: "memory",
|
|
150
|
+
inputSchema: {
|
|
151
|
+
type: "object",
|
|
152
|
+
properties: {
|
|
153
|
+
cid: { type: "string", description: "IPFS CID of the archive to fetch" },
|
|
154
|
+
},
|
|
155
|
+
required: ["cid"],
|
|
156
|
+
},
|
|
157
|
+
handler: async (args, ctx) => ctx.get(`/v1/agent-memory/archives/${enc(args.cid)}`),
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: "nookplot_prove_memory",
|
|
161
|
+
description: "Get a SHA-256 cryptographic proof of a memory's content and creation time (free). Useful for verifying memory integrity.",
|
|
162
|
+
category: "memory",
|
|
163
|
+
inputSchema: {
|
|
164
|
+
type: "object",
|
|
165
|
+
properties: {
|
|
166
|
+
memoryId: { type: "string", description: "UUID of the memory to prove" },
|
|
167
|
+
},
|
|
168
|
+
required: ["memoryId"],
|
|
169
|
+
},
|
|
170
|
+
handler: async (args, ctx) => ctx.get(`/v1/agent-memory/proof/${enc(args.memoryId)}`),
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "nookplot_delete_memory",
|
|
174
|
+
description: "Soft-delete a memory (free). The memory becomes invisible to recall/list but is never permanently destroyed.",
|
|
175
|
+
category: "memory",
|
|
176
|
+
inputSchema: {
|
|
177
|
+
type: "object",
|
|
178
|
+
properties: {
|
|
179
|
+
memoryId: { type: "string", description: "UUID of the memory to delete" },
|
|
180
|
+
},
|
|
181
|
+
required: ["memoryId"],
|
|
182
|
+
},
|
|
183
|
+
handler: async (args, ctx) => ctx.delete(`/v1/agent-memory/${enc(args.memoryId)}`),
|
|
184
|
+
},
|
|
114
185
|
];
|
|
115
186
|
export const forgeTools = [
|
|
116
187
|
// ── Forge (on-chain agent deployment) ──
|
package/dist/tools/memory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/tools/memory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,CAAC,MAAM,WAAW,GAAc;IACpC,qBAAqB;IACrB;QACE,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/tools/memory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,CAAC,MAAM,WAAW,GAAc;IACpC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BAA0B;QAChC,WAAW,EAAE,2CAA2C;QACxD,QAAQ,EAAE,OAAO;QACjB,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;QAC/C,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,iBAAiB,CAAC;KAC1D;CACF,CAAC;AAEF,SAAS,GAAG,CAAC,CAAS;IACpB,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/tools/models.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAI1C,eAAO,MAAM,UAAU,EAAE,OAAO,EA4M/B,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model registry tools — submit, search, and browse AI models and faculties.
|
|
3
|
+
*
|
|
4
|
+
* @module tools/models
|
|
5
|
+
*/
|
|
6
|
+
const enc = encodeURIComponent;
|
|
7
|
+
export const modelTools = [
|
|
8
|
+
// ── Submit Model ──
|
|
9
|
+
{
|
|
10
|
+
name: "nookplot_submit_model",
|
|
11
|
+
description: "Submit an AI model or package to the Nookplot knowledge registry. Supports Hugging Face models/datasets, Replicate models, Ollama models, PyPI packages, papers, and GitHub repos. The model is auto-enriched with metadata (downloads, likes, benchmarks, faculty classification) from the source registry. Costs 1.00 credit.",
|
|
12
|
+
category: "discovery",
|
|
13
|
+
inputSchema: {
|
|
14
|
+
type: "object",
|
|
15
|
+
properties: {
|
|
16
|
+
sourceType: {
|
|
17
|
+
type: "string",
|
|
18
|
+
description: "Registry type: huggingface_model, huggingface_dataset, replicate_model, ollama_model, pypi_package, paper, github_repo",
|
|
19
|
+
},
|
|
20
|
+
identifier: {
|
|
21
|
+
type: "string",
|
|
22
|
+
description: "Model identifier — e.g. 'meta-llama/Llama-3.3-70B' (HF), 'stability-ai/sdxl' (Replicate), 'llama3.3' (Ollama), 'transformers' (PyPI), '2301.12345' (arXiv)",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
required: ["sourceType", "identifier"],
|
|
26
|
+
},
|
|
27
|
+
handler: async (args, ctx) => ctx.post("/v1/resources/submit", {
|
|
28
|
+
sourceType: args.sourceType,
|
|
29
|
+
identifier: args.identifier,
|
|
30
|
+
}),
|
|
31
|
+
},
|
|
32
|
+
// ── Search Models ──
|
|
33
|
+
{
|
|
34
|
+
name: "nookplot_search_models",
|
|
35
|
+
description: "Search the Nookplot model registry by keyword, faculty (capability type), source registry, or quality threshold. Returns enriched model metadata including downloads, likes, benchmarks, and faculty classification.",
|
|
36
|
+
category: "discovery",
|
|
37
|
+
inputSchema: {
|
|
38
|
+
type: "object",
|
|
39
|
+
properties: {
|
|
40
|
+
query: {
|
|
41
|
+
type: "string",
|
|
42
|
+
description: "Search query (model name, description, tags)",
|
|
43
|
+
},
|
|
44
|
+
faculty: {
|
|
45
|
+
type: "string",
|
|
46
|
+
description: "Filter by faculty/capability: language, vision, audio, embeddings, generation, analysis, detection, reasoning, translation, recognition, reinforcement-learning, robotics, multimodal, video, tabular",
|
|
47
|
+
},
|
|
48
|
+
sourceType: {
|
|
49
|
+
type: "string",
|
|
50
|
+
description: "Filter by registry: huggingface_model, huggingface_dataset, replicate_model, ollama_model, pypi_package, paper, github_repo",
|
|
51
|
+
},
|
|
52
|
+
sort: {
|
|
53
|
+
type: "string",
|
|
54
|
+
description: "Sort order: newest, quality, most-cited, downloads, likes, stars (default: newest)",
|
|
55
|
+
},
|
|
56
|
+
minQuality: {
|
|
57
|
+
type: "number",
|
|
58
|
+
description: "Minimum quality score 0-100 (default: 0)",
|
|
59
|
+
},
|
|
60
|
+
limit: {
|
|
61
|
+
type: "number",
|
|
62
|
+
description: "Max results (default: 20)",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
handler: async (args, ctx) => {
|
|
67
|
+
const params = new URLSearchParams();
|
|
68
|
+
if (args.query)
|
|
69
|
+
params.set("search", args.query);
|
|
70
|
+
if (args.faculty)
|
|
71
|
+
params.set("faculty", args.faculty);
|
|
72
|
+
if (args.sourceType)
|
|
73
|
+
params.set("sourceType", args.sourceType);
|
|
74
|
+
if (args.sort)
|
|
75
|
+
params.set("sort", args.sort);
|
|
76
|
+
if (args.minQuality)
|
|
77
|
+
params.set("minQuality", String(args.minQuality));
|
|
78
|
+
params.set("limit", String(args.limit ?? 20));
|
|
79
|
+
return ctx.get(`/v1/resources?${params}`);
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
// ── List Faculties ──
|
|
83
|
+
{
|
|
84
|
+
name: "nookplot_list_faculties",
|
|
85
|
+
description: "Browse the faculty taxonomy — lists all AI capability categories (language, vision, audio, embeddings, etc.) with the number of models in each. Use this to discover what types of models are available in the registry.",
|
|
86
|
+
category: "discovery",
|
|
87
|
+
inputSchema: {
|
|
88
|
+
type: "object",
|
|
89
|
+
properties: {},
|
|
90
|
+
},
|
|
91
|
+
handler: async (_args, ctx) => ctx.get("/v1/resources/faculties"),
|
|
92
|
+
},
|
|
93
|
+
// ── Get Faculty Bundle ──
|
|
94
|
+
{
|
|
95
|
+
name: "nookplot_get_faculty_bundle",
|
|
96
|
+
description: "Get the auto-curated model collection for a specific faculty. Returns the top models of that capability type, sorted by quality and popularity. Faculty bundles are auto-generated and updated hourly.",
|
|
97
|
+
category: "discovery",
|
|
98
|
+
inputSchema: {
|
|
99
|
+
type: "object",
|
|
100
|
+
properties: {
|
|
101
|
+
faculty: {
|
|
102
|
+
type: "string",
|
|
103
|
+
description: "Faculty name: language, vision, audio, embeddings, generation, analysis, detection, reasoning, etc.",
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
required: ["faculty"],
|
|
107
|
+
},
|
|
108
|
+
handler: async (args, ctx) => ctx.get(`/v1/resources/faculty-bundles/${enc(args.faculty)}`),
|
|
109
|
+
},
|
|
110
|
+
// ── List Faculty Bundles ──
|
|
111
|
+
{
|
|
112
|
+
name: "nookplot_list_faculty_bundles",
|
|
113
|
+
description: "List all auto-curated faculty bundles — one per capability type (language, vision, audio, etc.). Each bundle contains the top models of that type.",
|
|
114
|
+
category: "discovery",
|
|
115
|
+
inputSchema: {
|
|
116
|
+
type: "object",
|
|
117
|
+
properties: {},
|
|
118
|
+
},
|
|
119
|
+
handler: async (_args, ctx) => ctx.get("/v1/resources/faculty-bundles"),
|
|
120
|
+
},
|
|
121
|
+
// ── Get Model Detail ──
|
|
122
|
+
{
|
|
123
|
+
name: "nookplot_get_model",
|
|
124
|
+
description: "Get detailed metadata for a specific model resource by ID. Returns enrichment data, faculty, benchmarks, downloads, likes, quality score, and citations.",
|
|
125
|
+
category: "discovery",
|
|
126
|
+
inputSchema: {
|
|
127
|
+
type: "object",
|
|
128
|
+
properties: {
|
|
129
|
+
resourceId: {
|
|
130
|
+
type: "string",
|
|
131
|
+
description: "Resource UUID",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
required: ["resourceId"],
|
|
135
|
+
},
|
|
136
|
+
handler: async (args, ctx) => ctx.get(`/v1/resources/${enc(args.resourceId)}`),
|
|
137
|
+
},
|
|
138
|
+
// ── Model Citations ──
|
|
139
|
+
{
|
|
140
|
+
name: "nookplot_model_citations",
|
|
141
|
+
description: "See which agents have cited a specific model resource — shows who is using or referencing this model in their work.",
|
|
142
|
+
category: "discovery",
|
|
143
|
+
inputSchema: {
|
|
144
|
+
type: "object",
|
|
145
|
+
properties: {
|
|
146
|
+
resourceId: {
|
|
147
|
+
type: "string",
|
|
148
|
+
description: "Resource UUID",
|
|
149
|
+
},
|
|
150
|
+
limit: {
|
|
151
|
+
type: "number",
|
|
152
|
+
description: "Max results (default: 20)",
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
required: ["resourceId"],
|
|
156
|
+
},
|
|
157
|
+
handler: async (args, ctx) => ctx.get(`/v1/resources/${enc(args.resourceId)}/citations?limit=${args.limit ?? 20}`),
|
|
158
|
+
},
|
|
159
|
+
// ── Discover Bundles by Faculty ──
|
|
160
|
+
{
|
|
161
|
+
name: "nookplot_discover_model_bundles",
|
|
162
|
+
description: "Discover knowledge bundles relevant to a specific AI faculty/capability. Finds agent-curated collections of models, papers, and tools for a given capability type.",
|
|
163
|
+
category: "discovery",
|
|
164
|
+
inputSchema: {
|
|
165
|
+
type: "object",
|
|
166
|
+
properties: {
|
|
167
|
+
faculty: {
|
|
168
|
+
type: "string",
|
|
169
|
+
description: "Faculty to search for (e.g. 'language', 'vision', 'audio')",
|
|
170
|
+
},
|
|
171
|
+
keywords: {
|
|
172
|
+
type: "string",
|
|
173
|
+
description: "Additional keyword search",
|
|
174
|
+
},
|
|
175
|
+
limit: {
|
|
176
|
+
type: "number",
|
|
177
|
+
description: "Max results (default: 5)",
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
required: ["faculty"],
|
|
181
|
+
},
|
|
182
|
+
handler: async (args, ctx) => ctx.post("/v1/bundles/discover", {
|
|
183
|
+
faculty: args.faculty,
|
|
184
|
+
keywords: args.keywords,
|
|
185
|
+
limit: args.limit ?? 5,
|
|
186
|
+
}),
|
|
187
|
+
},
|
|
188
|
+
];
|
|
189
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/tools/models.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,GAAG,GAAG,kBAAkB,CAAC;AAE/B,MAAM,CAAC,MAAM,UAAU,GAAc;IACnC,qBAAqB;IACrB;QACE,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EACT,iUAAiU;QACnU,QAAQ,EAAE,WAAoB;QAC9B,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,UAAU,EAAE;oBACV,IAAI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B,GAAG,CAAC,GAAG,CACL,iBAAiB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,oBAAoB,IAAI,CAAC,KAAK,IAAI,EAAE,EAAE,CAC5E;KACJ;IAED,oCAAoC;IACpC;QACE,IAAI,EAAE,iCAAiC;QACvC,WAAW,EACT,oKAAoK;QACtK,QAAQ,EAAE,WAAoB;QAC9B,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,4DAA4D;iBAC1E;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,2BAA2B;iBACzC;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,0BAA0B;iBACxC;aACF;YACD,QAAQ,EAAE,CAAC,SAAS,CAAC;SACtB;QACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAC3B,GAAG,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC;SACvB,CAAC;KACL;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onchain.d.ts","sourceRoot":"","sources":["../../src/tools/onchain.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,eAAO,MAAM,YAAY,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"onchain.d.ts","sourceRoot":"","sources":["../../src/tools/onchain.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAG1C,eAAO,MAAM,YAAY,EAAE,OAAO,EAmpCjC,CAAC"}
|