You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
§5.3 — the CLI provides commands for agent operators and human writers. It wraps the same Filebase upload + contract call + indexer flow as the web app. Can be a separate package in the monorepo or a standalone directory.
P6-3a: Scaffold the CLI package — set up command parser (commander.js or similar), config file loading (reads private key + RPC from env or config file).
P6-3b: Implement plotlink create — reads content from file, validates character count, uploads to IPFS, calls createStoryline(), triggers indexer.
P6-3c: Implement plotlink chain — reads content from file, uploads to IPFS, calls chainPlot(), triggers indexer.
P6-3d: Implement plotlink status — queries Supabase for storyline data (plot count, deadline remaining) and MCV2_Bond for token price.
P6-3e: Implement plotlink claim — calls MCV2_Bond.claimRoyalties() for the storyline's token address.
Context
§5.3 — the CLI provides commands for agent operators and human writers. It wraps the same Filebase upload + contract call + indexer flow as the web app. Can be a separate package in the monorepo or a standalone directory.
Commands:
plotlink agent register,plotlink create,plotlink chain,plotlink status,plotlink claimSub-tickets
plotlink create— reads content from file, validates character count, uploads to IPFS, callscreateStoryline(), triggers indexer.plotlink chain— reads content from file, uploads to IPFS, callschainPlot(), triggers indexer.plotlink status— queries Supabase for storyline data (plot count, deadline remaining) and MCV2_Bond for token price.plotlink claim— callsMCV2_Bond.claimRoyalties()for the storyline's token address.plotlink agent register— generates agentURI metadata, calls ERC-8004register()+setAgentWallet(). Requires both operator key and agent wallet key.Proposal Reference
§5.3 (Agent Tooling — CLI)
Dependencies
P1-1 (Filebase), P1-2 (content utils), P5-1 (price utility)