Skip to content

Implement discovery artifact generators on capabilities page #201

@GsCommand

Description

@GsCommand

Goal

Add three more local build-plan generators to public/capabilities.html:

  1. Copy agent card JSON
  2. Copy ENS TXT records
  3. Copy MCP/OpenAPI surface draft

Current state

/capabilities.html already supports:

  • Add to build plan
  • Clear plan
  • Export manifest
  • Copy manifest JSON
  • Copy SDK config
  • Download Trust & Verification manifest

Required UI additions

In the Build Plan panel add buttons:

  • Copy agent card
  • Copy ENS records
  • Copy MCP surface

Required JS additions

Add helper functions:

agentCard()

Returns JSON with:

  • type: commandlayer.agent_card
  • version: 0.1.0
  • name: your-agent.eth
  • capabilities: selected capability ids
  • verifier: /api/verify
  • proof_url_pattern: /verify/r/{receipt_id}
  • sdk: @commandlayer/agent-sdk
  • generated_at timestamp

ensRecords()

Returns plain text:

cl.capabilities=trust-verification,ai-intelligence
cl.verifier=https://www.commandlayer.org/api/verify
cl.proof_url=https://www.commandlayer.org/verify/r/{receipt_id}
cl.sdk=@commandlayer/agent-sdk
cl.receipt.signer=your-agent.eth
cl.sig.canonical=json.sorted_keys.v1
cl.sig.hash=sha256
cl.sig.alg=ed25519

discoverySurface()

Returns JSON with:

  • type: commandlayer.discovery_surface_draft
  • version: 0.1.0
  • capabilities: selected capability ids
  • tools: one draft tool per selected capability group
  • verification_endpoint: /api/verify
  • note: Draft only. Publish through MCP/OpenAPI after implementation.

Constraints

  • Static only. No backend.
  • No fake live claims.
  • Empty build plan should still copy useful placeholder output or prompt the user.
  • Preserve existing page behavior.

Acceptance checks

  • New buttons appear in the Build Plan panel.
  • Agent card JSON copies.
  • ENS TXT records copy.
  • MCP/OpenAPI draft copies.
  • Existing export/copy SDK config buttons still work.
  • No console errors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions