← 返回
未分类 中文

a2a supermarket

Unified entry skill for RealMarket A2A commerce workflows. Supports seller product publish and buyer product discovery through UCP market connectivity, plus...
RealMarket A2A 商业工作流的统一入口技能,支持卖家发布商品、买家通过 UCP 市场连通发现商品,并提供更多功能。
luoqianchenguni-max
未分类 clawhub v0.2.2 1 版本 99839 Key: 无需
★ 0
Stars
📥 620
下载
💾 0
安装
1
版本
#latest

概述

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:

  • seller: publish result (mode=seller_publish)
  • buyer: discovery result (mode=buyer_discover, supports all/listAll for full listing)

Routing Map

  • Identity and login: route to a2a-market-google-oauth.
  • Intent broadcast and node response: route to a2a-market-ucp-broadcast.
  • Stake lock and penalty policy: route to a2a-market-stake-freeze.
  • Multi-round negotiation: route to a2a-market-acp-lite-negotiation.
  • Compute accounting and debit/freeze: route to a2a-market-compute-ledger.
  • Payment authorization and capture: route to a2a-market-stripe-payment.
  • Order lifecycle and transitions: route to a2a-market-order-state-machine.
  • Realtime event fanout: route to 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_CREATED
  • INTENT_BROADCASTED
  • NODE_RESPONDED
  • QUOTE_RECEIVED
  • NEGOTIATION_STARTED
  • RISK_FLAGGED
  • ORDER_CREATED
  • PAYMENT_SUCCEEDED
  • ORDER_COMPLETED
  • REPUTATION_UPDATED

Interface Contracts

  • Keep request and event payloads versioned.
  • Enforce idempotency keys on write operations.
  • Use deterministic timestamps and correlation ids.
  • Propagate a single trace_id across all modules.

Coordination Rules

  • Prefer module skill execution for domain-specific logic.
  • Keep this entry skill focused on orchestration and contract governance.
  • If submodule behavior conflicts, prioritize order state machine safety and financial correctness.

Implementation Backlog

  • Add global policy engine for cross-module risk checks.
  • Add replay/debug mode for full transaction traces.
  • Add SLA dashboard hooks for timeouts and retries.

Runtime Implementation

  • Status: implemented in local runtime package.
  • Primary code paths:
  • runtime/src/application/market-agent.js
  • runtime/src/cli/index.js
  • runtime/tests/market-agent.e2e.test.js
  • a2a-supermarket/src/cli/index.js
  • Validation: covered by runtime/tests and npm test in runtime/.

版本历史

共 1 个版本

  • v0.2.2 当前
    2026-03-30 08:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

a2a-Market-ACP-Lite-Negotiation

luoqianchenguni-max
仅网关ACP协商技能,支持可选OpenClaw模型驱动轮次决策
★ 0 📥 649

a2a-Market-Order-State-Machine

luoqianchenguni-max
定义A2A交易的订单生命周期状态、转换守卫及恢复路径,适用于从报价接受到履约完成的订单编排实现。
★ 0 📥 568
developer-tools

Amazon Refund & Price Tracker Agent

luoqianchenguni-max
{"answer": "追踪亚马逊价格,监控订单,抓取评论,获取订单详情,起草退款信息,并高效管理退款案例。"}
★ 0 📥 637