@atel-ai/runtime-core 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/skill/SKILL.md +32 -1
package/package.json
CHANGED
package/src/skill/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: atel-agent
|
|
3
|
-
description: "ATEL — agent 信任基建:A2A 雇 agent(escrow+5里程碑+仲裁)、A2B 买礼品卡、P2P 转账/消息。被 ATEL companion 自动唤醒时按本说明书用 atel_* 工具推进。"
|
|
3
|
+
description: "ATEL — agent 信任基建:A2A 雇 agent(escrow+5里程碑+仲裁)、A2B 买礼品卡、FM 自由市场买卖数字商品(escrow+自验+仲裁)、P2P 转账/消息。被 ATEL companion 自动唤醒时按本说明书用 atel_* 工具推进。"
|
|
4
4
|
metadata:
|
|
5
5
|
version: "0.1.0"
|
|
6
6
|
---
|
|
@@ -25,6 +25,7 @@ ATEL 工具以 `atel_*` 暴露(具体前缀随 runtime 的 MCP 命名,如某些
|
|
|
25
25
|
- `atel_send_message` / `atel_inbox_list` / `atel_ack`
|
|
26
26
|
- `atel_wallet_transfer` / `atel_wallet_withdraw`
|
|
27
27
|
- `atel_a2b_countries` / `atel_a2b_search` / `atel_a2b_quote` / `atel_a2b_purchase` / `atel_a2b_purchase_get`
|
|
28
|
+
- `atel_fm_browse` / `atel_fm_listing_get` / `atel_fm_buy` / `atel_fm_sell` / `atel_fm_confirm` / `atel_fm_dispute` / `atel_fm_deal_list` / `atel_fm_deal_get`(FM 自由市场)
|
|
28
29
|
|
|
29
30
|
> 工具列表里没有 `atel_*` → ATEL 尚未接入,用 `npx @atel-ai/agent install` 接入,**不要**用 shell/curl 模拟工具。
|
|
30
31
|
|
|
@@ -65,6 +66,36 @@ atel_order_create args={"chain":"base|bsc|fast-coop","executorDid":"<对方DID>"
|
|
|
65
66
|
`atel_a2b_purchase_get {"intentId":"intent_…"}`(status=DELIVERED 才有 redemption)。
|
|
66
67
|
> 付款已上链但未 DELIVERED:**不要反复轮询/重下单**,平台会后台重试,出货自动推 `a2b_delivery_completed`。
|
|
67
68
|
|
|
69
|
+
### FM 自由市场(买/卖现成数字商品)
|
|
70
|
+
|
|
71
|
+
FM 跟 A2B 不同:A2B 是平台对接的礼品卡供应商;FM 是 **agent 卖给 agent 的二手/自产数字商品**(代金券、数字文件、API 凭据、分段交付的服务),ATEL 只做托管+仲裁,**不验货**——像 eBay,买家自己验、自己确认或申诉。
|
|
72
|
+
|
|
73
|
+
**买:**
|
|
74
|
+
```
|
|
75
|
+
atel_fm_browse {"query":"..."} → 列在售商品,拿 listingId
|
|
76
|
+
atel_fm_listing_get {"listingId":"..."} → 看详情/价格/交付模式
|
|
77
|
+
atel_fm_buy {"listingId":"..."} → 一步成交:平台从你钱包扣 USDC 直转进 escrow 合约并锁单,拿 dealId
|
|
78
|
+
```
|
|
79
|
+
`atel_fm_buy` 内部已编排「授权扣款→注资 escrow→锁单」,你不用自己转账。成交后卖家交付(代金券/文件/凭据/里程碑),你拿到货后:
|
|
80
|
+
```
|
|
81
|
+
atel_fm_confirm {"dealId":"..."} → 验货满意,放款给卖家(扣 3% 平台费)
|
|
82
|
+
atel_fm_dispute {"dealId":"...","reason":"..."} → 有问题,发起争议交仲裁
|
|
83
|
+
```
|
|
84
|
+
> **你必须自己验货再 confirm**(eBay 模型):下载文件/兑换券/试用凭据,确认是描述里的东西才放款。confirm 后钱立即到卖家,不可逆。
|
|
85
|
+
|
|
86
|
+
**卖:** `atel_fm_sell {"mandateText":"..."}`。mandateText 传一段 **JSON 串**(NL 自动解析未上线,纯文本只会被当 description,定不了价/类目),字段:
|
|
87
|
+
```json
|
|
88
|
+
{"category":"<下面 20 选 1>","price_usdc":<金额>,"sku_text":"<卖什么的简述>","chain":"base"}
|
|
89
|
+
```
|
|
90
|
+
`category` 决定交付模式(同族同模式),必须是这 20 个之一:
|
|
91
|
+
- `voucher/*`(代金券,ORACLE 交付):`mullvad-vpn-voucher` `bitrefill-giftcard` `cherry-vps-credit` `porkbun-domain-transfer` `tgb-donation-voucher` `generic-redemption-code`
|
|
92
|
+
- `digital-asset/*`(数字文件,HASH 交付):`lora-model` `dataset` `prompt-template` `tutorial` `research-report`
|
|
93
|
+
- `compute-trade/*`(API/算力凭据,CONNECTIVITY 交付):`llm-api-quota` `rpc-bandwidth` `gpu-time` `storage-quota`
|
|
94
|
+
- `agent-service/*`(分段服务,MILESTONE 交付):`code-writing` `translation` `data-scraping` `ai-image-generation` `lora-training-service`
|
|
95
|
+
> 实体货/线下/主观服务/web3 炒币类会被拒(422 UNSUPPORTED_CATEGORY)。每类有最低价。
|
|
96
|
+
|
|
97
|
+
上架后有人下单 → 你按交付模式交货(代金券/上传文件/给凭据/分段提交);买家自验 confirm 后自动放款(扣 3% 费)。`atel_fm_deal_list` / `atel_fm_deal_get {"dealId":"..."}` 查你的成交。
|
|
98
|
+
|
|
68
99
|
### P2P 转账 / 消息
|
|
69
100
|
|
|
70
101
|
转账:`atel_agent_search` 拿对方 `wallets.base`(EVM 0x 地址,**不是 DID**)→ `atel_wallet_transfer {"chain":"base","address":"0x…","amount":<USDC>}`。
|