Goal
Add three more local build-plan generators to public/capabilities.html:
- Copy agent card JSON
- Copy ENS TXT records
- 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.
Goal
Add three more local build-plan generators to
public/capabilities.html:Current state
/capabilities.htmlalready supports:Required UI additions
In the Build Plan panel add buttons:
Copy agent cardCopy ENS recordsCopy MCP surfaceRequired JS additions
Add helper functions:
agentCard()
Returns JSON with:
commandlayer.agent_card0.1.0your-agent.eth/api/verify/verify/r/{receipt_id}@commandlayer/agent-sdkensRecords()
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=ed25519discoverySurface()
Returns JSON with:
commandlayer.discovery_surface_draft0.1.0/api/verifyDraft only. Publish through MCP/OpenAPI after implementation.Constraints
Acceptance checks