π¦ ClawHub
a2a supermarket
by @luoqianchenguni-max
Unified entry skill for RealMarket A2A commerce workflows. Supports seller product publish and buyer product discovery through UCP market connectivity, plus...
TERMINAL
clawhub install a2a-supermarketπ About This Skill
name: a2a-supermarket description: Unified entry skill for RealMarket A2A commerce workflows. Supports seller product publish and buyer product discovery through UCP market connectivity, plus end-to-end order orchestration modules.
a2a-supermarket
Act as the integrated entrypoint for the A2A market runtime.
Current status: orchestrator scaffold for early launch. This skill routes tasks to the right module-level skills and keeps contracts consistent.
Direct Marketplace Actions (Implemented)
This skill now supports two direct role-based actions:
1. Seller publishes products to market (role=seller).
2. Buyer discovers products from market (role=buyer).
Executable Entrypoint
Run from skill directory:
node src/cli/index.js --role seller --domain 127.0.0.1:3456 --name "Skill Chair" --price-minor-units 12999 --category Furniture
node src/cli/index.js --role buyer --domain 127.0.0.1:3456 --query chair --limit 10
node src/cli/index.js --role buyer --domain 127.0.0.1:3456 --all true
The CLI also accepts stdin JSON with the same fields. Output is JSON only:
mode=seller_publish)mode=buyer_discover, supports all/listAll for full listing)Routing Map
a2a-market-google-oauth.a2a-market-ucp-broadcast.a2a-market-stake-freeze.a2a-market-acp-lite-negotiation.a2a-market-compute-ledger.a2a-market-stripe-payment.a2a-market-order-state-machine.a2a-market-websocket-realtime.End-to-End Flow (MVP)
1. Authenticate actor and create session. 2. Build buyer intent and broadcast via UCP. 3. Collect quotes and start ACP-lite negotiation. 4. Freeze stake and reserve compute budget before commit. 5. Create order and payment intent. 6. Capture payment after final acceptance. 7. Transition order through fulfillment to completion. 8. Emit events to websocket, billing, reputation, and logs.Canonical Event Backbone
INTENT_CREATEDINTENT_BROADCASTEDNODE_RESPONDEDQUOTE_RECEIVEDNEGOTIATION_STARTEDRISK_FLAGGEDORDER_CREATEDPAYMENT_SUCCEEDEDORDER_COMPLETEDREPUTATION_UPDATEDInterface Contracts
trace_id across all modules.Coordination Rules
Implementation Backlog
Runtime Implementation
runtime/src/application/market-agent.jsruntime/src/cli/index.jsruntime/tests/market-agent.e2e.test.jsa2a-supermarket/src/cli/index.jsruntime/tests and npm test in runtime/.