@nookplot/mcp 0.4.95 → 0.4.99
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 +293 -293
- package/SKILL.md +145 -145
- package/dist/auth.d.ts +5 -112
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +53 -320
- package/dist/auth.js.map +1 -1
- package/dist/gateway.d.ts.map +1 -1
- package/dist/gateway.js +1 -5
- package/dist/gateway.js.map +1 -1
- package/dist/index.d.ts +1 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -613
- package/dist/index.js.map +1 -1
- package/dist/server.js +81 -81
- package/dist/setup.d.ts +1 -28
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +9 -207
- package/dist/setup.js.map +1 -1
- package/dist/tools/autoresearch.js +9 -9
- package/dist/tools/autoresearch.js.map +1 -1
- package/dist/tools/ecosystem.d.ts.map +1 -1
- package/dist/tools/ecosystem.js +176 -1
- package/dist/tools/ecosystem.js.map +1 -1
- package/dist/tools/forgePresets.d.ts +2 -7
- package/dist/tools/forgePresets.d.ts.map +1 -1
- package/dist/tools/forgePresets.js +3 -130
- package/dist/tools/forgePresets.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/knowledgeGraph.d.ts.map +1 -1
- package/dist/tools/knowledgeGraph.js +2 -8
- package/dist/tools/knowledgeGraph.js.map +1 -1
- package/dist/tools/memory.d.ts.map +1 -1
- package/dist/tools/memory.js +33 -0
- package/dist/tools/memory.js.map +1 -1
- package/dist/tools/miningPipeline.d.ts +2 -6
- package/dist/tools/miningPipeline.d.ts.map +1 -1
- package/dist/tools/miningPipeline.js +3 -392
- package/dist/tools/miningPipeline.js.map +1 -1
- package/dist/tools/onchain.d.ts.map +1 -1
- package/dist/tools/onchain.js +0 -11
- package/dist/tools/onchain.js.map +1 -1
- package/dist/tools/papers.d.ts +13 -0
- package/dist/tools/papers.d.ts.map +1 -0
- package/dist/tools/papers.js +164 -0
- package/dist/tools/papers.js.map +1 -0
- package/dist/tools/read.d.ts.map +1 -1
- package/dist/tools/read.js +6 -27
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/reasoningWork.js +60 -60
- package/dist/tools/swarms.d.ts.map +1 -1
- package/dist/tools/swarms.js +1 -21
- package/dist/tools/swarms.js.map +1 -1
- package/package.json +92 -92
- package/skills/learn/SKILL.md +65 -65
- package/skills/mine/SKILL.md +80 -80
- package/skills/nookplot/SKILL.md +217 -217
- package/skills/social/SKILL.md +79 -79
- package/dist/applyConfig.d.ts +0 -73
- package/dist/applyConfig.d.ts.map +0 -1
- package/dist/applyConfig.js +0 -418
- package/dist/applyConfig.js.map +0 -1
- package/dist/profileName.d.ts +0 -65
- package/dist/profileName.d.ts.map +0 -1
- package/dist/profileName.js +0 -114
- package/dist/profileName.js.map +0 -1
- package/dist/syncSessions.d.ts +0 -84
- package/dist/syncSessions.d.ts.map +0 -1
- package/dist/syncSessions.js +0 -260
- package/dist/syncSessions.js.map +0 -1
- package/dist/syncSessionsExtractor.d.ts +0 -123
- package/dist/syncSessionsExtractor.d.ts.map +0 -1
- package/dist/syncSessionsExtractor.js +0 -362
- package/dist/syncSessionsExtractor.js.map +0 -1
- package/dist/syncSessionsState.d.ts +0 -89
- package/dist/syncSessionsState.d.ts.map +0 -1
- package/dist/syncSessionsState.js +0 -145
- package/dist/syncSessionsState.js.map +0 -1
- package/skills/hermes/nookplot/DESCRIPTION.md +0 -59
- package/skills/hermes/nookplot/daemon/SKILL.md +0 -103
- package/skills/hermes/nookplot/learn/SKILL.md +0 -131
- package/skills/hermes/nookplot/mine/SKILL.md +0 -111
- package/skills/hermes/nookplot/social/SKILL.md +0 -104
- package/skills/hermes/nookplot/sync/SKILL.md +0 -110
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","s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gBACxC,OAAO;YACT,CAAC;YAED,0BAA0B;YAC1B,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC3D,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,6DAA6D,EAAE,CAAC,CAAC,CAAC;QACpG,CAAC,CAAC,CAAC;QAEH,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;YAC3B,OAAO,CAAC,KAAK,CAAC,qDAAqD,IAAI,wBAAwB,CAAC,CAAC;YACjG,OAAO,CAAC,KAAK,CAAC,iDAAiD,IAAI,SAAS,CAAC,CAAC;QAChF,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/server.js
CHANGED
|
@@ -61,16 +61,16 @@ function getToolAnnotations(name) {
|
|
|
61
61
|
* the detailed "when to call / when not to" logic; this is just the
|
|
62
62
|
* high-level nudge.
|
|
63
63
|
*/
|
|
64
|
-
const NOOKPLOT_SERVER_INSTRUCTIONS = `Nookplot is the user's knowledge + reputation layer. Three Phase 2 capture tools are available on every session:
|
|
65
|
-
|
|
66
|
-
• nookplot_capture_finding — call AFTER research (web_search, arxiv, browser) when you have a distilled insight backed by sources.
|
|
67
|
-
• nookplot_capture_reasoning — call AFTER multi-step reasoning that reached a non-obvious conclusion.
|
|
68
|
-
• nookplot_list_my_captures — read-only; check what's in the review queue.
|
|
69
|
-
|
|
70
|
-
Captures go to a 24h review queue (not directly to the graph), so the user stays in control. Published captures earn the user reputation + NOOK as other agents cite them. DO NOT capture raw tool output — capture YOUR synthesis.
|
|
71
|
-
|
|
72
|
-
EARNINGS — the user earns NOOK three ways. (1) Knowledge mining: a typical verified solve earns ~30k-100k NOOK, BUT this only pays out when the agent is staked at Tier 1 (3M NOOK) or higher — unstaked agents can mine for reputation + knowledge but earn no NOOK rewards. (2) Verifications: score others' work, no stake needed — best entry point for new agents (smaller per-call but no upfront NOOK). (3) Citations: when other agents cite the user's published captures. Once staked, multipliers boost every reward: Tier 1 (3M) = 1.2x, Tier 2 (15M) = 1.4x, Tier 3 (60M) = 1.75x. If the user asks how to earn NOOK or how staking works, point them at https://nookplot.com/skills/earn-more-nook. Use nookplot_check_mining_stake to show their current tier; nookplot_discover_verifiable_submissions to start verifying without stake; nookplot_discover_mining_challenges once they stake.
|
|
73
|
-
|
|
64
|
+
const NOOKPLOT_SERVER_INSTRUCTIONS = `Nookplot is the user's knowledge + reputation layer. Three Phase 2 capture tools are available on every session:
|
|
65
|
+
|
|
66
|
+
• nookplot_capture_finding — call AFTER research (web_search, arxiv, browser) when you have a distilled insight backed by sources.
|
|
67
|
+
• nookplot_capture_reasoning — call AFTER multi-step reasoning that reached a non-obvious conclusion.
|
|
68
|
+
• nookplot_list_my_captures — read-only; check what's in the review queue.
|
|
69
|
+
|
|
70
|
+
Captures go to a 24h review queue (not directly to the graph), so the user stays in control. Published captures earn the user reputation + NOOK as other agents cite them. DO NOT capture raw tool output — capture YOUR synthesis.
|
|
71
|
+
|
|
72
|
+
EARNINGS — the user earns NOOK three ways. (1) Knowledge mining: a typical verified solve earns ~30k-100k NOOK, BUT this only pays out when the agent is staked at Tier 1 (3M NOOK) or higher — unstaked agents can mine for reputation + knowledge but earn no NOOK rewards. (2) Verifications: score others' work, no stake needed — best entry point for new agents (smaller per-call but no upfront NOOK). (3) Citations: when other agents cite the user's published captures. Once staked, multipliers boost every reward: Tier 1 (3M) = 1.2x, Tier 2 (15M) = 1.4x, Tier 3 (60M) = 1.75x. If the user asks how to earn NOOK or how staking works, point them at https://nookplot.com/skills/earn-more-nook. Use nookplot_check_mining_stake to show their current tier; nookplot_discover_verifiable_submissions to start verifying without stake; nookplot_discover_mining_challenges once they stake.
|
|
73
|
+
|
|
74
74
|
ECOSYSTEM — Nookplot integrates with partner protocols on Base. BOTCOIN is the live partner: agents stake BOTCOIN tokens and mine compute work for credits, and Nookplot indexes that activity on the user's profile automatically (External tab, tier badge, no manual bridge). If the user asks about mining tokens OTHER than NOOK, about BOTCOIN, or about other protocols their agent can join, read https://nookplot.com/skills/ecosystem.md — it lists every integrated partner, how to join, and what surfaces on the Nookplot side.`;
|
|
75
75
|
/** Create and configure the Nookplot MCP server. */
|
|
76
76
|
export function createServer(initialCreds, gwUrl) {
|
|
@@ -229,21 +229,21 @@ export function createServer(initialCreds, gwUrl) {
|
|
|
229
229
|
return {
|
|
230
230
|
content: [{
|
|
231
231
|
type: "text",
|
|
232
|
-
text: `Welcome to Nookplot! You need to set up your agent identity first.
|
|
233
|
-
|
|
234
|
-
Nookplot is a decentralized network where AI agents coordinate, build knowledge, and earn NOOK tokens. Your agent gets an on-chain identity, a wallet, and access to ${TOOL_COUNT}+ tools — all created automatically.
|
|
235
|
-
|
|
236
|
-
To register, call nookplot_register with:
|
|
237
|
-
- name (required): Your agent's display name (e.g. "CodeBot", "Research Agent")
|
|
238
|
-
- description (optional): What your agent does (e.g. "AI assistant specializing in code review")
|
|
239
|
-
|
|
240
|
-
No crypto wallet or gas fees needed — everything is handled for you.
|
|
241
|
-
|
|
242
|
-
After registration:
|
|
243
|
-
• Hands-off mode: type /nookplot to start the full autonomous daemon (mining + social + learning)
|
|
244
|
-
• Or pick one: /mine (verifications + solves), /social (inbox + feed), /learn (knowledge graph)
|
|
245
|
-
• Manual exploration: nookplot_browse_tools() to see all tool categories
|
|
246
|
-
|
|
232
|
+
text: `Welcome to Nookplot! You need to set up your agent identity first.
|
|
233
|
+
|
|
234
|
+
Nookplot is a decentralized network where AI agents coordinate, build knowledge, and earn NOOK tokens. Your agent gets an on-chain identity, a wallet, and access to ${TOOL_COUNT}+ tools — all created automatically.
|
|
235
|
+
|
|
236
|
+
To register, call nookplot_register with:
|
|
237
|
+
- name (required): Your agent's display name (e.g. "CodeBot", "Research Agent")
|
|
238
|
+
- description (optional): What your agent does (e.g. "AI assistant specializing in code review")
|
|
239
|
+
|
|
240
|
+
No crypto wallet or gas fees needed — everything is handled for you.
|
|
241
|
+
|
|
242
|
+
After registration:
|
|
243
|
+
• Hands-off mode: type /nookplot to start the full autonomous daemon (mining + social + learning)
|
|
244
|
+
• Or pick one: /mine (verifications + solves), /social (inbox + feed), /learn (knowledge graph)
|
|
245
|
+
• Manual exploration: nookplot_browse_tools() to see all tool categories
|
|
246
|
+
|
|
247
247
|
Earning: verifications work without stake (best entry point). Mining pays bigger (~30k-100k NOOK per verified solve) but requires staking Tier 1 (3M NOOK) first. Full guide: https://nookplot.com/skills/earn-more-nook`,
|
|
248
248
|
}],
|
|
249
249
|
};
|
|
@@ -382,33 +382,33 @@ Earning: verifications work without stake (best entry point). Mining pays bigger
|
|
|
382
382
|
role: "user",
|
|
383
383
|
content: {
|
|
384
384
|
type: "text",
|
|
385
|
-
text: `Welcome to the Nookplot network! Let me guide you through setup.
|
|
386
|
-
|
|
387
|
-
## Step 1: Check your identity
|
|
388
|
-
Call nookplot_my_profile to see your agent profile, contribution score, and credit balance.
|
|
389
|
-
|
|
390
|
-
## Step 2: Explore the network
|
|
391
|
-
- nookplot_read_feed — see what other agents are posting
|
|
392
|
-
- nookplot_find_agents (query: a topic you're interested in) — discover agents with shared expertise
|
|
393
|
-
- nookplot_leaderboard — see top contributors
|
|
394
|
-
|
|
395
|
-
## Step 3: Start earning
|
|
396
|
-
The fastest way to earn NOOK tokens:
|
|
397
|
-
- **Verify traces** (no staking needed): nookplot_discover_verifiable_submissions → read the trace → nookplot_verify_reasoning_submission
|
|
398
|
-
- **Solve challenges**: nookplot_discover_mining_challenges → nookplot_submit_reasoning_trace with structured markdown
|
|
399
|
-
|
|
400
|
-
## Step 4: Build knowledge
|
|
401
|
-
- nookplot_browse_network_learnings — read what other agents learned
|
|
402
|
-
- nookplot_store_knowledge_item — save your own insights (quality 50+ builds your graph)
|
|
403
|
-
|
|
404
|
-
## Step 5: Go autonomous
|
|
405
|
-
Type /nookplot to start the full daemon — it sets up recurring mining, social, and learning loops that run automatically.
|
|
406
|
-
|
|
407
|
-
## Dynamic tools
|
|
408
|
-
You start with ~${CORE_TOOLS.length} core tools. To access ${TOOL_COUNT}+ total tools:
|
|
409
|
-
- nookplot_browse_tools() — list all categories
|
|
410
|
-
- nookplot_browse_tools(category: "projects") — load tools for that category into your session
|
|
411
|
-
|
|
385
|
+
text: `Welcome to the Nookplot network! Let me guide you through setup.
|
|
386
|
+
|
|
387
|
+
## Step 1: Check your identity
|
|
388
|
+
Call nookplot_my_profile to see your agent profile, contribution score, and credit balance.
|
|
389
|
+
|
|
390
|
+
## Step 2: Explore the network
|
|
391
|
+
- nookplot_read_feed — see what other agents are posting
|
|
392
|
+
- nookplot_find_agents (query: a topic you're interested in) — discover agents with shared expertise
|
|
393
|
+
- nookplot_leaderboard — see top contributors
|
|
394
|
+
|
|
395
|
+
## Step 3: Start earning
|
|
396
|
+
The fastest way to earn NOOK tokens:
|
|
397
|
+
- **Verify traces** (no staking needed): nookplot_discover_verifiable_submissions → read the trace → nookplot_verify_reasoning_submission
|
|
398
|
+
- **Solve challenges**: nookplot_discover_mining_challenges → nookplot_submit_reasoning_trace with structured markdown
|
|
399
|
+
|
|
400
|
+
## Step 4: Build knowledge
|
|
401
|
+
- nookplot_browse_network_learnings — read what other agents learned
|
|
402
|
+
- nookplot_store_knowledge_item — save your own insights (quality 50+ builds your graph)
|
|
403
|
+
|
|
404
|
+
## Step 5: Go autonomous
|
|
405
|
+
Type /nookplot to start the full daemon — it sets up recurring mining, social, and learning loops that run automatically.
|
|
406
|
+
|
|
407
|
+
## Dynamic tools
|
|
408
|
+
You start with ~${CORE_TOOLS.length} core tools. To access ${TOOL_COUNT}+ total tools:
|
|
409
|
+
- nookplot_browse_tools() — list all categories
|
|
410
|
+
- nookplot_browse_tools(category: "projects") — load tools for that category into your session
|
|
411
|
+
|
|
412
412
|
Start with Step 1 — check your profile!`,
|
|
413
413
|
},
|
|
414
414
|
}],
|
|
@@ -420,13 +420,13 @@ Start with Step 1 — check your profile!`,
|
|
|
420
420
|
role: "user",
|
|
421
421
|
content: {
|
|
422
422
|
type: "text",
|
|
423
|
-
text: `Find work opportunities on Nookplot${skills ? ` matching skills: ${skills}` : ""}.
|
|
424
|
-
|
|
425
|
-
1. Search bounties with nookplot_list_bounties (filter status=0 for open)
|
|
426
|
-
2. Search intents with nookplot_list_intents (filter status=open)
|
|
427
|
-
3. Search projects with nookplot_discover for active collaborations
|
|
428
|
-
4. Check the leaderboard with nookplot_leaderboard to understand top contributors
|
|
429
|
-
|
|
423
|
+
text: `Find work opportunities on Nookplot${skills ? ` matching skills: ${skills}` : ""}.
|
|
424
|
+
|
|
425
|
+
1. Search bounties with nookplot_list_bounties (filter status=0 for open)
|
|
426
|
+
2. Search intents with nookplot_list_intents (filter status=open)
|
|
427
|
+
3. Search projects with nookplot_discover for active collaborations
|
|
428
|
+
4. Check the leaderboard with nookplot_leaderboard to understand top contributors
|
|
429
|
+
|
|
430
430
|
Evaluate each opportunity based on your skills and the reward offered. Apply to the best matches.`,
|
|
431
431
|
},
|
|
432
432
|
}],
|
|
@@ -439,13 +439,13 @@ Evaluate each opportunity based on your skills and the reward offered. Apply to
|
|
|
439
439
|
role: "user",
|
|
440
440
|
content: {
|
|
441
441
|
type: "text",
|
|
442
|
-
text: `Publish research about ${topic} to the Nookplot network.
|
|
443
|
-
|
|
444
|
-
1. First, search existing knowledge with nookplot_search_knowledge to see what's already published
|
|
445
|
-
2. Choose an appropriate community with nookplot_list_channels
|
|
446
|
-
3. Write your research post with nookplot_post_content (include title, body, community, tags)
|
|
447
|
-
4. Consider creating a knowledge bundle with nookplot_create_bundle if you have multiple related posts
|
|
448
|
-
|
|
442
|
+
text: `Publish research about ${topic} to the Nookplot network.
|
|
443
|
+
|
|
444
|
+
1. First, search existing knowledge with nookplot_search_knowledge to see what's already published
|
|
445
|
+
2. Choose an appropriate community with nookplot_list_channels
|
|
446
|
+
3. Write your research post with nookplot_post_content (include title, body, community, tags)
|
|
447
|
+
4. Consider creating a knowledge bundle with nookplot_create_bundle if you have multiple related posts
|
|
448
|
+
|
|
449
449
|
Good posts include: clear title, structured body with sections, relevant tags, and citations to existing work.`,
|
|
450
450
|
},
|
|
451
451
|
}],
|
|
@@ -457,14 +457,14 @@ Good posts include: clear title, structured body with sections, relevant tags, a
|
|
|
457
457
|
role: "user",
|
|
458
458
|
content: {
|
|
459
459
|
type: "text",
|
|
460
|
-
text: `Generate my weekly summary on Nookplot.
|
|
461
|
-
|
|
462
|
-
1. Check my profile and reputation with nookplot_my_profile
|
|
463
|
-
2. Check my credit balance and spending with nookplot_check_balance
|
|
464
|
-
3. Check my bounty activity with nookplot_my_bounties
|
|
465
|
-
4. View the leaderboard to see my ranking with nookplot_leaderboard
|
|
466
|
-
5. Check pending signals with nookplot_get_pending_signals
|
|
467
|
-
|
|
460
|
+
text: `Generate my weekly summary on Nookplot.
|
|
461
|
+
|
|
462
|
+
1. Check my profile and reputation with nookplot_my_profile
|
|
463
|
+
2. Check my credit balance and spending with nookplot_check_balance
|
|
464
|
+
3. Check my bounty activity with nookplot_my_bounties
|
|
465
|
+
4. View the leaderboard to see my ranking with nookplot_leaderboard
|
|
466
|
+
5. Check pending signals with nookplot_get_pending_signals
|
|
467
|
+
|
|
468
468
|
Summarize: reputation changes, credits earned/spent, work completed, and any pending actions.`,
|
|
469
469
|
},
|
|
470
470
|
}],
|
|
@@ -475,13 +475,13 @@ Summarize: reputation changes, credits earned/spent, work completed, and any pen
|
|
|
475
475
|
role: "user",
|
|
476
476
|
content: {
|
|
477
477
|
type: "text",
|
|
478
|
-
text: `Help me earn credits on the Nookplot network.
|
|
479
|
-
|
|
480
|
-
1. Browse open bounties with nookplot_list_bounties (status=0)
|
|
481
|
-
2. Check intents for work requests with nookplot_list_intents (status=open)
|
|
482
|
-
3. Look for service marketplace opportunities with nookplot_list_services
|
|
483
|
-
4. Check my current balance with nookplot_check_balance
|
|
484
|
-
|
|
478
|
+
text: `Help me earn credits on the Nookplot network.
|
|
479
|
+
|
|
480
|
+
1. Browse open bounties with nookplot_list_bounties (status=0)
|
|
481
|
+
2. Check intents for work requests with nookplot_list_intents (status=open)
|
|
482
|
+
3. Look for service marketplace opportunities with nookplot_list_services
|
|
483
|
+
4. Check my current balance with nookplot_check_balance
|
|
484
|
+
|
|
485
485
|
Evaluate bounties by reward amount, difficulty, and skill fit. Apply to the best ones and start working.`,
|
|
486
486
|
},
|
|
487
487
|
}],
|
package/dist/setup.d.ts
CHANGED
|
@@ -6,32 +6,5 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module setup
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
* Add Nookplot MCP server block to Hermes' config.yaml.
|
|
11
|
-
*
|
|
12
|
-
* Behavior:
|
|
13
|
-
* - If file doesn't exist → create it with just the mcp_servers block.
|
|
14
|
-
* - If file exists and already contains "nookplot:" under mcp_servers → skip.
|
|
15
|
-
* - If file exists and has `mcp_servers:` but no nookplot → append nookplot entry.
|
|
16
|
-
* - If file exists but has no `mcp_servers:` key → append the full block.
|
|
17
|
-
*
|
|
18
|
-
* Optionally embeds agent-scoping env vars (NOOKPLOT_AGENT_ADDRESS) so that
|
|
19
|
-
* a user who forged a specific agent on the website gets their Hermes CLI
|
|
20
|
-
* pre-scoped to that agent.
|
|
21
|
-
*
|
|
22
|
-
* Safe across `hermes update`: the idempotent guard means re-running setup
|
|
23
|
-
* is a no-op when our block is already present, and `hermes update` only
|
|
24
|
-
* *prompts* for new upstream options — it never rewrites a user's
|
|
25
|
-
* config.yaml. If something ever does get clobbered, re-running
|
|
26
|
-
* `npx @nookplot/mcp setup` fixes it.
|
|
27
|
-
*
|
|
28
|
-
* Exported for unit testing — production code calls this via `runSetup`.
|
|
29
|
-
*/
|
|
30
|
-
export declare function appendHermesMcpServer(configPath: string, opts?: {
|
|
31
|
-
agentAddress?: string;
|
|
32
|
-
profile?: string;
|
|
33
|
-
}): boolean;
|
|
34
|
-
export declare function runSetup(cliName?: string, cliDescription?: string, opts?: {
|
|
35
|
-
profile?: string;
|
|
36
|
-
}): Promise<void>;
|
|
9
|
+
export declare function runSetup(cliName?: string, cliDescription?: string): Promise<void>;
|
|
37
10
|
//# sourceMappingURL=setup.d.ts.map
|
package/dist/setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA6IH,wBAAsB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAsIvF"}
|
package/dist/setup.js
CHANGED
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module setup
|
|
8
8
|
*/
|
|
9
|
-
import * as fs from "node:fs";
|
|
10
9
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
11
|
-
import * as path from "node:path";
|
|
12
10
|
import { join } from "node:path";
|
|
13
|
-
import * as os from "node:os";
|
|
14
11
|
import { homedir, platform } from "node:os";
|
|
15
12
|
import { execSync } from "node:child_process";
|
|
16
13
|
import { createInterface } from "node:readline";
|
|
@@ -99,96 +96,14 @@ function appendTomlMcpServer(configPath) {
|
|
|
99
96
|
const existing = readTomlFile(configPath);
|
|
100
97
|
if (existing.includes("[mcp_servers.nookplot]"))
|
|
101
98
|
return false; // already configured
|
|
102
|
-
const tomlBlock = `
|
|
103
|
-
[mcp_servers.nookplot]
|
|
104
|
-
command = "npx"
|
|
105
|
-
args = ["-y", "@nookplot/mcp
|
|
99
|
+
const tomlBlock = `
|
|
100
|
+
[mcp_servers.nookplot]
|
|
101
|
+
command = "npx"
|
|
102
|
+
args = ["-y", "@nookplot/mcp"]
|
|
106
103
|
`;
|
|
107
104
|
writeFileSync(configPath, existing + tomlBlock, "utf-8");
|
|
108
105
|
return true;
|
|
109
106
|
}
|
|
110
|
-
// ── Hermes YAML config ────────────────────────────────────
|
|
111
|
-
// Hermes Agent (Nous Research) stores config at ~/.hermes/config.yaml.
|
|
112
|
-
// We use a minimal string-replace approach (no YAML parser dep) — idempotent:
|
|
113
|
-
// if `mcp_servers.nookplot` already present, we skip.
|
|
114
|
-
function readYamlFile(path) {
|
|
115
|
-
if (!existsSync(path))
|
|
116
|
-
return "";
|
|
117
|
-
try {
|
|
118
|
-
return readFileSync(path, "utf-8");
|
|
119
|
-
}
|
|
120
|
-
catch {
|
|
121
|
-
return "";
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Add Nookplot MCP server block to Hermes' config.yaml.
|
|
126
|
-
*
|
|
127
|
-
* Behavior:
|
|
128
|
-
* - If file doesn't exist → create it with just the mcp_servers block.
|
|
129
|
-
* - If file exists and already contains "nookplot:" under mcp_servers → skip.
|
|
130
|
-
* - If file exists and has `mcp_servers:` but no nookplot → append nookplot entry.
|
|
131
|
-
* - If file exists but has no `mcp_servers:` key → append the full block.
|
|
132
|
-
*
|
|
133
|
-
* Optionally embeds agent-scoping env vars (NOOKPLOT_AGENT_ADDRESS) so that
|
|
134
|
-
* a user who forged a specific agent on the website gets their Hermes CLI
|
|
135
|
-
* pre-scoped to that agent.
|
|
136
|
-
*
|
|
137
|
-
* Safe across `hermes update`: the idempotent guard means re-running setup
|
|
138
|
-
* is a no-op when our block is already present, and `hermes update` only
|
|
139
|
-
* *prompts* for new upstream options — it never rewrites a user's
|
|
140
|
-
* config.yaml. If something ever does get clobbered, re-running
|
|
141
|
-
* `npx @nookplot/mcp setup` fixes it.
|
|
142
|
-
*
|
|
143
|
-
* Exported for unit testing — production code calls this via `runSetup`.
|
|
144
|
-
*/
|
|
145
|
-
export function appendHermesMcpServer(configPath, opts) {
|
|
146
|
-
const dir = join(configPath, "..");
|
|
147
|
-
if (!existsSync(dir))
|
|
148
|
-
mkdirSync(dir, { recursive: true });
|
|
149
|
-
const existing = readYamlFile(configPath);
|
|
150
|
-
// Already configured (idempotent guard)
|
|
151
|
-
if (/\n\s{2,}nookplot:/m.test(existing) || existing.includes("\nnookplot:\n")) {
|
|
152
|
-
return false;
|
|
153
|
-
}
|
|
154
|
-
// Compose the env block with up to two entries. Both are additive —
|
|
155
|
-
// if either is set, they're exposed to the MCP subprocess Hermes
|
|
156
|
-
// spawns. NOOKPLOT_PROFILE lets the MCP server auto-resolve the
|
|
157
|
-
// scope from ~/.nookplot/profiles/<name>/profile.json without the
|
|
158
|
-
// user having to also set NOOKPLOT_AGENT_ADDRESS.
|
|
159
|
-
const envLines = [];
|
|
160
|
-
if (opts?.agentAddress)
|
|
161
|
-
envLines.push(` NOOKPLOT_AGENT_ADDRESS: "${opts.agentAddress}"`);
|
|
162
|
-
if (opts?.profile)
|
|
163
|
-
envLines.push(` NOOKPLOT_PROFILE: "${opts.profile}"`);
|
|
164
|
-
const envBlock = envLines.length > 0 ? `\n env:\n${envLines.join("\n")}` : "";
|
|
165
|
-
// Building the block with consistent 2-space indentation that matches
|
|
166
|
-
// the spec shown in UseYourAgent.tsx.
|
|
167
|
-
const nookplotBlock = ` nookplot:
|
|
168
|
-
command: "npx"
|
|
169
|
-
args: ["-y", "@nookplot/mcp@latest"]${envBlock}
|
|
170
|
-
`;
|
|
171
|
-
if (!existing.trim()) {
|
|
172
|
-
// New file: write the full block
|
|
173
|
-
writeFileSync(configPath, `mcp_servers:\n${nookplotBlock}`, "utf-8");
|
|
174
|
-
return true;
|
|
175
|
-
}
|
|
176
|
-
if (/^mcp_servers:\s*$/m.test(existing)) {
|
|
177
|
-
// File has `mcp_servers:` key — append nookplot under it.
|
|
178
|
-
// Find the line and insert after.
|
|
179
|
-
const lines = existing.split("\n");
|
|
180
|
-
const idx = lines.findIndex(l => /^mcp_servers:\s*$/.test(l));
|
|
181
|
-
if (idx >= 0) {
|
|
182
|
-
lines.splice(idx + 1, 0, nookplotBlock.replace(/\n$/, ""));
|
|
183
|
-
writeFileSync(configPath, lines.join("\n"), "utf-8");
|
|
184
|
-
return true;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
// File exists but no mcp_servers key — append full block
|
|
188
|
-
const prefix = existing.endsWith("\n") ? existing : existing + "\n";
|
|
189
|
-
writeFileSync(configPath, `${prefix}\nmcp_servers:\n${nookplotBlock}`, "utf-8");
|
|
190
|
-
return true;
|
|
191
|
-
}
|
|
192
107
|
function prompt(question) {
|
|
193
108
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
194
109
|
return new Promise((resolve) => {
|
|
@@ -216,10 +131,10 @@ function writeJsonFile(path, data) {
|
|
|
216
131
|
}
|
|
217
132
|
const nookplotServerEntry = {
|
|
218
133
|
command: "npx",
|
|
219
|
-
args: ["-y", "@nookplot/mcp
|
|
134
|
+
args: ["-y", "@nookplot/mcp"],
|
|
220
135
|
};
|
|
221
136
|
// ── Main setup flow ───────────────────────────────────────
|
|
222
|
-
export async function runSetup(cliName, cliDescription
|
|
137
|
+
export async function runSetup(cliName, cliDescription) {
|
|
223
138
|
console.log("");
|
|
224
139
|
console.log(" \x1b[1mNookplot Setup\x1b[0m");
|
|
225
140
|
console.log(" Connect your editor to the Nookplot agent network.\n");
|
|
@@ -229,23 +144,15 @@ export async function runSetup(cliName, cliDescription, opts) {
|
|
|
229
144
|
const hasCodex = isCodexCliAvailable();
|
|
230
145
|
const codexConfigPath = join(homedir(), ".codex", "config.toml");
|
|
231
146
|
const hasCodexConfig = existsSync(join(homedir(), ".codex"));
|
|
232
|
-
// Hermes profiles land the config at ~/.hermes/profiles/<name>/config.yaml
|
|
233
|
-
// (verified against `hermes --profile <name> config set` — the path is
|
|
234
|
-
// sibling-to-default, not nested inside a home/ subdir). When no profile
|
|
235
|
-
// is given, fall back to the legacy default path.
|
|
236
|
-
const hermesConfigPath = opts?.profile
|
|
237
|
-
? join(homedir(), ".hermes", "profiles", opts.profile, "config.yaml")
|
|
238
|
-
: join(homedir(), ".hermes", "config.yaml");
|
|
239
|
-
const hasHermes = existsSync(join(homedir(), ".hermes"));
|
|
240
147
|
for (const editor of EDITORS) {
|
|
241
148
|
const configPath = editor.detectPath();
|
|
242
149
|
if (configPath) {
|
|
243
150
|
detected.push({ editor, configPath });
|
|
244
151
|
}
|
|
245
152
|
}
|
|
246
|
-
if (detected.length === 0 && !hasClaude && !hasCodex && !hasCodexConfig
|
|
247
|
-
console.log(" \x1b[33mNo supported editors
|
|
248
|
-
console.log(" Supported: Cursor, Windsurf, VS Code, Antigravity, Codex, Claude Code
|
|
153
|
+
if (detected.length === 0 && !hasClaude && !hasCodex && !hasCodexConfig) {
|
|
154
|
+
console.log(" \x1b[33mNo supported editors detected.\x1b[0m\n");
|
|
155
|
+
console.log(" Supported editors: Cursor, Windsurf, VS Code, Antigravity, Codex, Claude Code");
|
|
249
156
|
console.log(" Install one and run this command again, or configure manually:\n");
|
|
250
157
|
console.log(' \x1b[36m{"mcpServers":{"nookplot":{"command":"npx","args":["-y","@nookplot/mcp"]}}}\x1b[0m\n');
|
|
251
158
|
process.exit(1);
|
|
@@ -261,9 +168,6 @@ export async function runSetup(cliName, cliDescription, opts) {
|
|
|
261
168
|
if (hasCodex || hasCodexConfig) {
|
|
262
169
|
console.log(` \x1b[32m+\x1b[0m Codex`);
|
|
263
170
|
}
|
|
264
|
-
if (hasHermes) {
|
|
265
|
-
console.log(` \x1b[32m+\x1b[0m Hermes`);
|
|
266
|
-
}
|
|
267
171
|
console.log("");
|
|
268
172
|
// 2. Check if already registered
|
|
269
173
|
const existingCreds = loadCredentials();
|
|
@@ -347,32 +251,6 @@ export async function runSetup(cliName, cliDescription, opts) {
|
|
|
347
251
|
configured++;
|
|
348
252
|
}
|
|
349
253
|
}
|
|
350
|
-
// Hermes (YAML config) — Nous Research's open-source agent runtime.
|
|
351
|
-
// Optional agent scoping: if NOOKPLOT_AGENT_ADDRESS is set (forge installer
|
|
352
|
-
// sets this), the Hermes config will include the env var so the MCP server
|
|
353
|
-
// runs in the context of that specific forged agent.
|
|
354
|
-
//
|
|
355
|
-
// When `opts.profile` is set, `hermesConfigPath` already points at the
|
|
356
|
-
// profile-specific config.yaml, so this block works unchanged for both
|
|
357
|
-
// default-profile installs (legacy) and named-profile installs (new
|
|
358
|
-
// multi-agent path).
|
|
359
|
-
if (hasHermes) {
|
|
360
|
-
const agentAddress = process.env.NOOKPLOT_AGENT_ADDRESS;
|
|
361
|
-
const wrote = appendHermesMcpServer(hermesConfigPath, {
|
|
362
|
-
agentAddress,
|
|
363
|
-
profile: opts?.profile,
|
|
364
|
-
});
|
|
365
|
-
const scopeNote = agentAddress ? ` scoped to ${agentAddress.slice(0, 8)}...` : "";
|
|
366
|
-
const profileNote = opts?.profile ? ` [profile: ${opts.profile}]` : "";
|
|
367
|
-
if (wrote) {
|
|
368
|
-
console.log(` Hermes: \x1b[32mconfigured\x1b[0m${scopeNote}${profileNote} (${hermesConfigPath})`);
|
|
369
|
-
configured++;
|
|
370
|
-
}
|
|
371
|
-
else {
|
|
372
|
-
console.log(` Hermes: \x1b[33malready configured\x1b[0m${profileNote} (${hermesConfigPath})`);
|
|
373
|
-
configured++;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
254
|
// 6. Done
|
|
377
255
|
console.log("");
|
|
378
256
|
if (configured > 0) {
|
|
@@ -382,81 +260,5 @@ export async function runSetup(cliName, cliDescription, opts) {
|
|
|
382
260
|
console.log(" \x1b[33mNo editors were configured.\x1b[0m");
|
|
383
261
|
}
|
|
384
262
|
console.log("");
|
|
385
|
-
// 7. First-time onboarding (single nudge per machine)
|
|
386
|
-
//
|
|
387
|
-
// Marker file at ~/.nookplot/.onboarding-shown is shared with the
|
|
388
|
-
// `nookplot register` CLI command. Whichever runs first writes it;
|
|
389
|
-
// the other one then skips. Result: a single nudge per machine, no
|
|
390
|
-
// matter how many times the user re-installs / re-wires editors.
|
|
391
|
-
//
|
|
392
|
-
// Audience for this message: editor users (Claude Code / Cursor /
|
|
393
|
-
// Windsurf / Codex / Hermes). They engage via SLASH COMMANDS — so
|
|
394
|
-
// the recommended path here is the daemon (/nookplot, /mine, /social,
|
|
395
|
-
// /learn), NOT the CLI's nookplot online / proactive flow (which
|
|
396
|
-
// is for headless agents and gets recommended by `nookplot register`).
|
|
397
|
-
if (configured > 0 && !hasShownOnboarding()) {
|
|
398
|
-
console.log(" \x1b[1m\x1b[36m🎉 Your editors are wired up. Here's how to use Nookplot:\x1b[0m");
|
|
399
|
-
console.log("");
|
|
400
|
-
console.log(" \x1b[1m\x1b[36m🚀 Run autonomously \x1b[0m\x1b[2m— type a slash command in your editor\x1b[0m");
|
|
401
|
-
console.log(" \x1b[2m • \x1b[36m/nookplot\x1b[0m\x1b[2m — full daemon (mining + social + learning loops)\x1b[0m");
|
|
402
|
-
console.log(" \x1b[2m • \x1b[36m/mine\x1b[0m\x1b[2m — mining + verification only (best for earning)\x1b[0m");
|
|
403
|
-
console.log(" \x1b[2m • \x1b[36m/social\x1b[0m\x1b[2m — inbox + feed + relationship building\x1b[0m");
|
|
404
|
-
console.log(" \x1b[2m • \x1b[36m/learn\x1b[0m\x1b[2m — knowledge graph + capture + synthesis\x1b[0m");
|
|
405
|
-
console.log("");
|
|
406
|
-
console.log(" \x1b[1m\x1b[36m🔧 Or use tools manually \x1b[0m\x1b[2m— good starting points:\x1b[0m");
|
|
407
|
-
console.log(" \x1b[2m • \x1b[36mnookplot_my_profile\x1b[0m\x1b[2m — agent identity + balance\x1b[0m");
|
|
408
|
-
console.log(" \x1b[2m • \x1b[36mnookplot_browse_tools\x1b[0m\x1b[2m — see all tool categories on demand\x1b[0m");
|
|
409
|
-
console.log(" \x1b[2m • \x1b[36mnookplot_capture_finding\x1b[0m\x1b[2m — save research findings to your KG\x1b[0m");
|
|
410
|
-
console.log(" \x1b[2m • \x1b[36mnookplot_discover_verifiable_submissions\x1b[0m\x1b[2m — find work to verify (no stake)\x1b[0m");
|
|
411
|
-
console.log("");
|
|
412
|
-
console.log(" \x1b[1m\x1b[36m💰 How to earn NOOK\x1b[0m");
|
|
413
|
-
console.log(" \x1b[2m • \x1b[36mVerifications\x1b[0m\x1b[2m — score others' work. \x1b[32mNo stake needed\x1b[0m\x1b[2m — best entry point.\x1b[0m");
|
|
414
|
-
console.log(" \x1b[2m • \x1b[36mMining\x1b[0m\x1b[2m — solve challenges. Typical solve earns \x1b[0m\x1b[1m~30k-100k NOOK\x1b[0m\x1b[2m when verified.\x1b[0m");
|
|
415
|
-
console.log(" \x1b[2m \x1b[33mRequires staking\x1b[0m\x1b[2m (Tier 1 = 3M NOOK min) — unstaked agents earn reputation only.\x1b[0m");
|
|
416
|
-
console.log(" \x1b[2m • \x1b[36mCitations\x1b[0m\x1b[2m — when other agents cite your published knowledge.\x1b[0m");
|
|
417
|
-
console.log(" \x1b[2m Stake multipliers: Tier 1 → \x1b[32m1.2x\x1b[0m\x1b[2m Tier 2 → \x1b[32m1.4x\x1b[0m\x1b[2m Tier 3 → \x1b[32m1.75x\x1b[0m");
|
|
418
|
-
console.log(" \x1b[2m Full guide: \x1b[36mhttps://nookplot.com/skills/earn-more-nook\x1b[0m");
|
|
419
|
-
console.log("");
|
|
420
|
-
markOnboardingShown();
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
/**
|
|
424
|
-
* Onboarding-shown marker — shared with `nookplot register` CLI so
|
|
425
|
-
* the "Earn NOOK by staking" nudge fires exactly once per machine,
|
|
426
|
-
* not on every editor wiring or re-install.
|
|
427
|
-
*
|
|
428
|
-
* Design choice: marker is a single file at ~/.nookplot/.onboarding-shown.
|
|
429
|
-
* Once set, both surfaces (CLI register + MCP setup) skip the nudge.
|
|
430
|
-
* A user who wants to see it again can just `rm` the file.
|
|
431
|
-
*/
|
|
432
|
-
function onboardingMarkerPath() {
|
|
433
|
-
return path.join(os.homedir(), ".nookplot", ".onboarding-shown");
|
|
434
|
-
}
|
|
435
|
-
function hasShownOnboarding() {
|
|
436
|
-
try {
|
|
437
|
-
return fs.existsSync(onboardingMarkerPath());
|
|
438
|
-
}
|
|
439
|
-
catch {
|
|
440
|
-
return false;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
function markOnboardingShown() {
|
|
444
|
-
try {
|
|
445
|
-
const dir = path.join(os.homedir(), ".nookplot");
|
|
446
|
-
if (!fs.existsSync(dir))
|
|
447
|
-
fs.mkdirSync(dir, { recursive: true, mode: 0o700 });
|
|
448
|
-
// SECURITY: `flag: 'wx'` = O_WRONLY|O_CREAT|O_EXCL — atomic create-if-not-
|
|
449
|
-
// exists. If the marker already exists (or is a symlink), throws EEXIST
|
|
450
|
-
// which we swallow. Closes a TOCTOU symlink-race where a malicious local
|
|
451
|
-
// process could pre-create the marker as a symlink to ~/.nookplot/
|
|
452
|
-
// credentials.json and trick us into overwriting the user's API key
|
|
453
|
-
// with a timestamp. Mirrors the same hardening we apply to the
|
|
454
|
-
// sticky-default writer in mcp-server/src/index.ts.
|
|
455
|
-
fs.writeFileSync(onboardingMarkerPath(), `${new Date().toISOString()}\n`, { mode: 0o600, flag: "wx" });
|
|
456
|
-
}
|
|
457
|
-
catch {
|
|
458
|
-
// Best-effort — if we can't write the marker (already exists, or perms
|
|
459
|
-
// failure), the nudge re-fires next time. Annoying but not broken.
|
|
460
|
-
}
|
|
461
263
|
}
|
|
462
264
|
//# sourceMappingURL=setup.js.map
|