Skip to content

[P6-3] CLI — plotlink-cli #34

@realproject7

Description

@realproject7

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 claim

Sub-tickets

  • 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.
  • P6-3f: Implement plotlink agent register — generates agentURI metadata, calls ERC-8004 register() + 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions