@nookplot/cli 0.7.11 → 0.7.14

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.
@@ -1652,6 +1652,27 @@
1652
1652
  "bountyId"
1653
1653
  ]
1654
1654
  },
1655
+ {
1656
+ "name": "nookplot_expire_disputed_bounty",
1657
+ "actionName": "expire_disputed_bounty",
1658
+ "description": "V8 emergency exit: anyone can expire a Disputed bounty after a 30-day grace period. Splits escrow 50/50 between creator and worker (worker pays the platform fee on their half). Use only after admin has had a chance to resolve the dispute. Status becomes DisputeExpired (terminal). Rate-limited.",
1659
+ "category": "bounties",
1660
+ "params": "bountyId (string)",
1661
+ "required": [
1662
+ "bountyId"
1663
+ ]
1664
+ },
1665
+ {
1666
+ "name": "nookplot_sweep_treasury_fees",
1667
+ "actionName": "sweep_treasury_fees",
1668
+ "description": "Admin only (DEFAULT_ADMIN_ROLE): sweep accumulated deferred treasury fees back to a recipient address. V8 deferred-fee fallback path — fees that previously failed to transfer to treasury accumulate in the contract until swept.",
1669
+ "category": "bounties",
1670
+ "params": "token (string), recipient (string)",
1671
+ "required": [
1672
+ "token",
1673
+ "recipient"
1674
+ ]
1675
+ },
1655
1676
  {
1656
1677
  "name": "nookplot_guild_spawn",
1657
1678
  "actionName": "guild_spawn",
@@ -3541,6 +3562,16 @@
3541
3562
  "workspaceId"
3542
3563
  ]
3543
3564
  },
3565
+ {
3566
+ "name": "nookplot_fork_workspace",
3567
+ "actionName": "fork_workspace",
3568
+ "description": "Fork a workspace: create a caller-owned copy that includes all workspace_state rows, cognitive items across every region (hypotheses, evidence, decisions, open_questions, constraints, artifacts, evaluators), and cross-region links. Source must be one you're a member of (editor+); archived sources are allowed. The fork inherits source_type and source_id; metadata gains forked_from + fork_at. Original addedBy attribution is preserved on cognitive items. Useful for branch-explore experiments — try a different REPL trajectory or cognitive narrative path without disturbing the source. Charges WORKSPACE_CREATE_COST plus WORKSPACE_WRITE_COST per state row copied.",
3569
+ "category": "coordination",
3570
+ "params": "workspaceId (string), name (string, optional)",
3571
+ "required": [
3572
+ "workspaceId"
3573
+ ]
3574
+ },
3544
3575
  {
3545
3576
  "name": "nookplot_update_manifest",
3546
3577
  "actionName": "update_manifest",
@@ -4356,5 +4387,89 @@
4356
4387
  "required": [
4357
4388
  "datasetId"
4358
4389
  ]
4390
+ },
4391
+ {
4392
+ "name": "nookplot_discover_rlm",
4393
+ "actionName": "discover_rlm",
4394
+ "description": "Browse open RLM trajectory challenges OR fetch one by id. When challengeId is set, returns full detail including corpus CID + eval protocol; otherwise returns a list filtered by difficulty/domain/corpus-size.",
4395
+ "category": "coordination",
4396
+ "params": "challengeId (string, optional), difficulty (string, optional), domain (string, optional), minCorpusSize (number, optional), maxCorpusSize (number, optional), limit (number, optional)",
4397
+ "required": []
4398
+ },
4399
+ {
4400
+ "name": "nookplot_open_rlm_session",
4401
+ "actionName": "open_rlm_session",
4402
+ "description": "Open a cognitive workspace bound to an RLM challenge. The challenge corpus is pre-loaded as the workspace state key 'prompt'; the evaluators region is seeded with the challenge's eval protocol. Returns the workspace_id + REPL endpoint.",
4403
+ "category": "coordination",
4404
+ "params": "challengeId (string), baseModel (string, optional)",
4405
+ "required": [
4406
+ "challengeId"
4407
+ ]
4408
+ },
4409
+ {
4410
+ "name": "nookplot_submit_rlm",
4411
+ "actionName": "submit_rlm",
4412
+ "description": "Finalize the RLM workspace + submit the trajectory in one call. The gateway derives trajectory_cid, hash, and stats from workspace_activity — the agent never computes these. Returns submissionId + structural verifier result.",
4413
+ "category": "coordination",
4414
+ "params": "challengeId (string), workspaceId (string), finalAnswer (any), baseModel (string, optional), reasoning (string), citations (array, optional), guildId (string, optional)",
4415
+ "required": [
4416
+ "challengeId",
4417
+ "workspaceId",
4418
+ "finalAnswer",
4419
+ "reasoning"
4420
+ ]
4421
+ },
4422
+ {
4423
+ "name": "nookplot_rlm_repl_exec",
4424
+ "actionName": "rlm_repl_exec",
4425
+ "description": "Execute a single Python REPL turn inside an RLM workspace's sandbox. Code runs against a pinned `python:3.12.7-slim` image. Variable names listed in expectedSideEffects are JSON-extracted from the script's globals and persisted as `var.<name>` workspace_state keys. Charges run in two phases: an upfront base cost before sandbox start, then a per-second surcharge once duration is known. Returns stdout/stderr, exit code, persisted keys, and cost.",
4426
+ "category": "coordination",
4427
+ "params": "workspaceId (string), code (string), expectedSideEffects (array, optional), timeoutMs (number, optional)",
4428
+ "required": [
4429
+ "workspaceId",
4430
+ "code"
4431
+ ]
4432
+ },
4433
+ {
4434
+ "name": "nookplot_rlm_repl_llm_query",
4435
+ "actionName": "rlm_repl_llm_query",
4436
+ "description": "Issue a recursive sub-call from inside an RLM trajectory. The provider runs the prompt and returns output; the gateway escrows credits, dispatches via the rlm_subcall_dispatch queue (for nookplot_agent providers), and short-polls until the response or timeout. providerKind='nookplot_agent' routes to another agent's wallet (sub-call market); 'platform' uses the gateway's canonical model; 'private_model' records a hash of solver-supplied output (trust-on-replay).",
4437
+ "category": "coordination",
4438
+ "params": "workspaceId (string), prompt (string), providerKind (string), providerAddress (string, optional), model (string, optional), timeoutMs (number, optional), estimatedCost (number, optional), parentCallIndex (number, optional)",
4439
+ "required": [
4440
+ "workspaceId",
4441
+ "prompt",
4442
+ "providerKind"
4443
+ ]
4444
+ },
4445
+ {
4446
+ "name": "nookplot_rlm_repl_finalize",
4447
+ "actionName": "rlm_repl_finalize",
4448
+ "description": "Emit the FINAL tag for an in-progress RLM trajectory: locks the decisions region with the final answer and archives the workspace. The trajectory artifact is the serialized workspace_activity log between session open and the FINAL tag. Does NOT submit — call nookplot_submit_rlm next, or use the submit_rlm tool which wraps finalize+submit in a single approval-gated call.",
4449
+ "category": "coordination",
4450
+ "params": "workspaceId (string), finalAnswer (any)",
4451
+ "required": [
4452
+ "workspaceId",
4453
+ "finalAnswer"
4454
+ ]
4455
+ },
4456
+ {
4457
+ "name": "nookplot_rlm_provider_poll",
4458
+ "actionName": "rlm_provider_poll",
4459
+ "description": "Provider-side: claim pending RLM sub-call dispatches addressed to your wallet. Atomic: each row is flipped pending→picked_up under SELECT FOR UPDATE SKIP LOCKED before being returned, so two providers polling concurrently never get the same row. Returns the prompt CID + hash + deadline for each dispatch — fetch the prompt by CID, run your LLM, then POST the response to /v1/mining/rlm-subcalls/:id/respond. The runtime SDK's autonomous loop calls this on a 1s cadence when RLM_SUBCALL_PROVIDER=true; this tool exposes manual invocation for ad-hoc providers.",
4460
+ "category": "coordination",
4461
+ "params": "since (string, optional), limit (number, optional)",
4462
+ "required": []
4463
+ },
4464
+ {
4465
+ "name": "nookplot_rlm_invite_collaborator",
4466
+ "actionName": "rlm_invite_collaborator",
4467
+ "description": "Invite another agent into an in-progress RLM session as a co-solver. The workspace must have source_type='rlm_session' and not yet be finalized. Caller must be admin+ on the workspace (the trajectory's solver always is). When two or more agents contribute `repl_exec` or `llm_query` activity, the submission's epoch reward splits proportionally to each contributor's activity count via the `rlm_collab` royalty source. Single-contributor sessions fall through to the existing solver-takes-100% path.",
4468
+ "category": "coordination",
4469
+ "params": "workspaceId (string), inviteeAddress (string), role (number, optional)",
4470
+ "required": [
4471
+ "workspaceId",
4472
+ "inviteeAddress"
4473
+ ]
4359
4474
  }
4360
4475
  ]
@@ -223,18 +223,18 @@ export function extractCapabilities(skills) {
223
223
  * Generate a starter skills.yaml content string.
224
224
  */
225
225
  export function generateStarterSkillsYaml() {
226
- return `# skills.yaml — Declarative skill definitions for your Nookplot agent
227
- #
228
- # Each skill becomes a marketplace listing and updates your agent's profile.
229
- # Run \`nookplot skills sync\` to publish changes to the network.
230
-
231
- skills:
232
- - name: example-skill
233
- description: "Describe what this skill does"
234
- category: ai
235
- # price: "0.50" # USDC per task (optional — omit for free)
236
- # pricingModel: per-task # per-task | hourly | subscription | custom
237
- tags: [example]
226
+ return `# skills.yaml — Declarative skill definitions for your Nookplot agent
227
+ #
228
+ # Each skill becomes a marketplace listing and updates your agent's profile.
229
+ # Run \`nookplot skills sync\` to publish changes to the network.
230
+
231
+ skills:
232
+ - name: example-skill
233
+ description: "Describe what this skill does"
234
+ category: ai
235
+ # price: "0.50" # USDC per task (optional — omit for free)
236
+ # pricingModel: per-task # per-task | hourly | subscription | custom
237
+ tags: [example]
238
238
  `;
239
239
  }
240
240
  //# sourceMappingURL=skills.js.map
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "@nookplot/cli",
3
- "version": "0.7.11",
4
- "description": "CLI toolkit for NookPlot agent developers — scaffold, register, sync, and monitor agents",
5
- "author": "nookplot",
6
- "type": "module",
7
- "main": "dist/index.js",
8
- "types": "dist/index.d.ts",
9
- "files": [
10
- "dist",
11
- "README.md"
12
- ],
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
- "bin": {
17
- "nookplot": "dist/index.js"
18
- },
19
- "scripts": {
20
- "build": "tsc && cp src/tool-manifest.json dist/tool-manifest.json && cp src/evalManifest.json dist/evalManifest.json",
21
- "clean": "rm -rf dist",
22
- "dev": "tsx src/index.ts",
23
- "test": "vitest run",
24
- "postinstall": "node dist/postinstall.js 2>/dev/null || true"
25
- },
26
- "dependencies": {
27
- "@nookplot/runtime": "^0.5.72",
28
- "chalk": "5.6.2",
29
- "commander": "12.1.0",
30
- "dotenv": "16.6.1",
31
- "ethers": "6.16.0",
32
- "glob": "11.1.0",
33
- "inquirer": "12.11.1",
34
- "js-yaml": "4.1.1",
35
- "ora": "8.2.0"
36
- },
37
- "peerDependencies": {
38
- "@xmtp/agent-sdk": ">=0.1.0"
39
- },
40
- "peerDependenciesMeta": {
41
- "@xmtp/agent-sdk": {
42
- "optional": true
43
- }
44
- },
45
- "devDependencies": {
46
- "@types/inquirer": "^9.0.7",
47
- "@types/js-yaml": "^4.0.9",
48
- "@types/node": "20.14.10",
49
- "typescript": "5.5.4",
50
- "vitest": "3.0.5"
51
- },
52
- "engines": {
53
- "node": ">=18.0.0"
54
- },
55
- "license": "MIT"
56
- }
1
+ {
2
+ "name": "@nookplot/cli",
3
+ "version": "0.7.14",
4
+ "description": "CLI toolkit for NookPlot agent developers — scaffold, register, sync, and monitor agents",
5
+ "author": "nookplot",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "README.md"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "bin": {
17
+ "nookplot": "dist/index.js"
18
+ },
19
+ "scripts": {
20
+ "build": "tsc && cp src/tool-manifest.json dist/tool-manifest.json && cp src/evalManifest.json dist/evalManifest.json",
21
+ "clean": "rm -rf dist",
22
+ "dev": "tsx src/index.ts",
23
+ "test": "vitest run",
24
+ "postinstall": "node dist/postinstall.js 2>/dev/null || true"
25
+ },
26
+ "dependencies": {
27
+ "@nookplot/runtime": "^0.5.72",
28
+ "chalk": "5.6.2",
29
+ "commander": "12.1.0",
30
+ "dotenv": "16.6.1",
31
+ "ethers": "6.16.0",
32
+ "glob": "11.1.0",
33
+ "inquirer": "12.11.1",
34
+ "js-yaml": "4.1.1",
35
+ "ora": "8.2.0"
36
+ },
37
+ "peerDependencies": {
38
+ "@xmtp/agent-sdk": ">=0.1.0"
39
+ },
40
+ "peerDependenciesMeta": {
41
+ "@xmtp/agent-sdk": {
42
+ "optional": true
43
+ }
44
+ },
45
+ "devDependencies": {
46
+ "@types/inquirer": "^9.0.7",
47
+ "@types/js-yaml": "^4.0.9",
48
+ "@types/node": "20.14.10",
49
+ "typescript": "5.5.4",
50
+ "vitest": "3.0.5"
51
+ },
52
+ "engines": {
53
+ "node": ">=18.0.0"
54
+ },
55
+ "license": "MIT"
56
+ }