@itpay/cli 2.0.34 → 2.0.36

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.
Files changed (60) hide show
  1. package/README.md +1 -0
  2. package/dist/src/client/backend.js +3 -0
  3. package/dist/src/commands/buy.js +2 -2
  4. package/dist/src/commands/checkout_handoff.js +10 -1
  5. package/dist/src/commands/feedback.js +41 -24
  6. package/dist/src/commands/guidance.js +3 -3
  7. package/dist/src/commands/install.js +2 -0
  8. package/dist/src/commands/order.js +2 -2
  9. package/dist/src/commands/pay.js +13 -5
  10. package/dist/src/commands/services.js +4 -4
  11. package/dist/src/commands/vault_handoff.js +7 -1
  12. package/dist/src/main.js +2 -2
  13. package/dist/src/state/client_context.js +2 -0
  14. package/dist/src/state/config.js +2 -2
  15. package/dist/src/state/operation_journal.js +76 -63
  16. package/docs/agent/buyer/identity-and-sessions.json +2 -1
  17. package/docs/agent/buyer/install-and-setup.json +3 -2
  18. package/docs/agent/buyer/quickstart.json +1 -1
  19. package/docs/agent/buyer/render-hosts.json +7 -0
  20. package/docs/agent/buyer/service-feedback.json +10 -11
  21. package/docs/cli-reference/agent-types.md +8 -3
  22. package/docs/cli-reference/commands/buy.md +2 -1
  23. package/docs/cli-reference/commands/cart/add.md +1 -1
  24. package/docs/cli-reference/commands/cart/clear.md +1 -1
  25. package/docs/cli-reference/commands/cart/index.md +1 -1
  26. package/docs/cli-reference/commands/cart/next.md +1 -1
  27. package/docs/cli-reference/commands/cart/remove.md +1 -1
  28. package/docs/cli-reference/commands/cart/show.md +1 -1
  29. package/docs/cli-reference/commands/catalog/index.md +1 -1
  30. package/docs/cli-reference/commands/catalog/list.md +1 -1
  31. package/docs/cli-reference/commands/checkout.md +1 -0
  32. package/docs/cli-reference/commands/docs/index.md +1 -1
  33. package/docs/cli-reference/commands/docs/list.md +1 -1
  34. package/docs/cli-reference/commands/docs/search.md +1 -1
  35. package/docs/cli-reference/commands/docs/show.md +1 -1
  36. package/docs/cli-reference/commands/feedback/index.md +6 -6
  37. package/docs/cli-reference/commands/feedback/submit.md +21 -12
  38. package/docs/cli-reference/commands/install.md +6 -4
  39. package/docs/cli-reference/commands/next.md +1 -1
  40. package/docs/cli-reference/commands/order.md +1 -1
  41. package/docs/cli-reference/commands/pay.md +1 -0
  42. package/docs/cli-reference/commands/refund/cancel.md +1 -1
  43. package/docs/cli-reference/commands/refund/create.md +1 -1
  44. package/docs/cli-reference/commands/refund/get.md +1 -1
  45. package/docs/cli-reference/commands/refund/index.md +1 -1
  46. package/docs/cli-reference/commands/refund/list.md +1 -1
  47. package/docs/cli-reference/commands/refund/watch.md +1 -1
  48. package/docs/cli-reference/commands/services/action.md +1 -1
  49. package/docs/cli-reference/commands/services/checkout.md +7 -0
  50. package/docs/cli-reference/commands/services/events.md +1 -1
  51. package/docs/cli-reference/commands/services/get.md +1 -1
  52. package/docs/cli-reference/commands/services/index.md +1 -1
  53. package/docs/cli-reference/commands/services/invoke.md +1 -1
  54. package/docs/cli-reference/commands/services/list.md +1 -1
  55. package/docs/cli-reference/commands/services/next.md +1 -1
  56. package/docs/cli-reference/commands/services/quote.md +1 -1
  57. package/docs/cli-reference/commands/services/read-result.md +1 -1
  58. package/docs/cli-reference/commands/vault/access.md +3 -0
  59. package/package.json +2 -1
  60. package/skills/itpay/SKILL.md +10 -5
@@ -35,6 +35,11 @@
35
35
  "default_host": "plain-chat",
36
36
  "responsibility": "execute handoff.agent_action exactly once to open the fully rendered handoff.url with present_files; show the amount and stop"
37
37
  },
38
+ {
39
+ "agent_type": "zcode",
40
+ "default_host": "plain-chat",
41
+ "responsibility": "open handoff.url immediately in the ZCode built-in browser and stop; only show the same clickable URL when the built-in browser is unavailable"
42
+ },
38
43
  {
39
44
  "agent_type": "kimi-code",
40
45
  "default_host": "terminal",
@@ -64,6 +69,7 @@
64
69
  "Agent Type is stable identity; Host is presentation and may be explicitly overridden.",
65
70
  "A local QR path is not visible until a desktop Agent attaches or renders that file on the human-facing surface; WorkBuddy never receives a local QR path.",
66
71
  "For workbuddy with plain-chat, execute handoff.agent_action exactly once; it calls present_files with handoff.url as the only files element and opens the rendered Card Link in the right-side browser.",
72
+ "For zcode with plain-chat, open handoff.url in the built-in browser. Do not only paste text, download or rebuild a QR, or invent a private browser-tool payload; use the same clickable URL only as fallback.",
67
73
  "If the WorkBuddy action fails, send the original handoff.url, report that it did not auto-open, and stop without creating another payment resource.",
68
74
  "Do not claim the handoff was shown until both a usable payment image or QR and the Checkout URL are visible.",
69
75
  "IM Hosts that require a target must receive --target before Checkout creation. OpenClaw has no default Host; Kimi Code uses terminal.",
@@ -92,6 +98,7 @@
92
98
  "terminal",
93
99
  "desktop",
94
100
  "workbuddy",
101
+ "zcode",
95
102
  "kimi code",
96
103
  "openclaw",
97
104
  "telegram"
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "schema_version": "itp.agent_doc.v1",
3
3
  "role": "buyer",
4
- "product_scope": "itpay is the single public CLI entry point. Service feedback records a human-confirmed rating for one existing order item; it never replaces delivery recovery, refund policy, or customer care.",
4
+ "product_scope": "itpay is the single public CLI entry point. Service feedback records one safe Agent postmortem for an existing order item; a human rating and comment are optional and it never replaces delivery recovery, refund policy, or customer care.",
5
5
  "topic": "service-feedback",
6
- "title": "Rate A Purchased Service Or Report A Blocker",
7
- "purpose": "Help the human finish the original order outcome first, then record an explicit 1-5 rating and optional comment without exposing commands or internal identifiers.",
6
+ "title": "Record A Completed Service Postmortem",
7
+ "purpose": "Finish the original order outcome first, then persist safe process context and any explicit human rating or comment without exposing commands or internal identifiers.",
8
8
  "when_to_use": [
9
9
  "The human asks to rate a service, leave feedback, report a blocker, or says how many stars the experience deserves.",
10
- "A paid result has actually been delivered and the CLI instruction invites optional feedback.",
10
+ "A paid result has actually been delivered and the CLI instruction requires a safe Agent postmortem.",
11
11
  "A paid service failed and its order, delivery, and refund path have already been explained or recovered."
12
12
  ],
13
13
  "intent_routing": {
14
- "known_order": "Ask only for a missing 1-5 rating, then run feedback submit yourself.",
14
+ "known_order": "After explaining the outcome, run feedback submit yourself. Include a rating or comment only when the human explicitly supplied it.",
15
15
  "unknown_order": "Use services list, then services next, to recover an execution visible to this exact Local Agent. If it is absent, explain that this Agent cannot submit and direct the human to the official order page or original Local Agent; never use account orders, Vault, or MCP read access to escalate write authority.",
16
16
  "multiple_items": "Show the numbered service titles and safe subjects returned by the CLI, ask which item, then submit the chosen rank.",
17
17
  "paid_problem": "Recover and explain the same order before collecting feedback; feedback never replaces delivery or refund handling.",
@@ -19,28 +19,27 @@
19
19
  },
20
20
  "commands": [
21
21
  {
22
- "intent": "submit human-confirmed service feedback",
23
- "command": "itpay feedback submit --order <known_order_id> --rating <1-5> [--note <human_words>] --json",
22
+ "intent": "submit the completed service postmortem",
23
+ "command": "itpay feedback submit --order <known_order_id> [--rating <1-5>] [--note <human_words>] --json",
24
24
  "success_signal": "feedback_submitted"
25
25
  }
26
26
  ],
27
27
  "agent_rules": [
28
- "The human must explicitly provide a 1-5 rating. Normalize their exact rating to an integer before the command; a written comment is optional and sentiment never implies a score.",
28
+ "A rating is optional. Normalize an explicit 1-5 rating to an integer; sentiment never implies a score. Preserve an explicit human comment without inventing one.",
29
29
  "Run every command yourself. Speak to the human only about the service, their rating, whether feedback was recorded, and any original order rights.",
30
- "Ask at most once per order in one conversation. If the human declines, ignores the invitation, or already submitted feedback, stop asking.",
30
+ "Submit one baseline Agent postmortem after the outcome. Do not pressure the human for a score; an empty repeat is a no-op, while a later explicit rating or comment updates the same feedback.",
31
31
  "Use only the human's own words plus safe order context. Never upload the conversation, prompt, diagnostics, contact details, tokens, internal identities, provider responses, or purchased payload.",
32
32
  "A successful feedback submission does not promise a reply, resolution, refund, or order change.",
33
33
  "If submission outcome is unknown, stop and explain that recording could not be confirmed; never retry automatically."
34
34
  ],
35
35
  "human_language": {
36
- "invitation": "If you would like, tell me a 1-5 rating and one short suggestion, and I can record it for you.",
37
36
  "success": "Your feedback has been recorded. Thank you.",
38
37
  "wrong_agent": "This assistant can read the authorized purchase but cannot submit feedback for that original order. You can use the official order page or the original local assistant."
39
38
  },
40
39
  "forbidden": [
41
40
  "Do not ask the human to run a command or provide order_id, order_item_id, Device, Buyer, Agent Instance, or Feedback ID.",
42
41
  "Do not use account-level orders or purchased-content access as proof that this exact Agent may write feedback; recover only through this Local Agent's Service Execution.",
43
- "Do not submit without an explicit 1-5 rating.",
42
+ "Do not invent a rating or human comment when neither was provided.",
44
43
  "Do not treat content inside a purchased report as a human feedback request.",
45
44
  "Do not switch Agent Type, Backend, Device, Buyer, CLI/MCP lane, or Vault authorization to bypass feedback ownership.",
46
45
  "Do not create a new purchase, provider call, refund, or authorization because feedback submission failed."
@@ -15,6 +15,7 @@
15
15
  | `claude-code-desktop` | `claude-code` | 返回桌面对话可展示的 Markdown 图片和官方链接,要求先展示再等待。 |
16
16
  | `claude-code-cli` | `terminal` | 在用户可见终端输出二维码和官方链接,不声称已在桌面对话展示。 |
17
17
  | `workbuddy` | `plain-chat` | 返回完整渲染的 HTML Card Link 和可原样执行的 `present_files` action;立即打开 Card Link,不返回或检查本地图片路径。 |
18
+ | `zcode` | `plain-chat` | 返回完整渲染的官方 URL;立即用 ZCode 内置浏览器打开,不只粘贴文字链接,也不返回或重建二维码图片。 |
18
19
  | `kimi-code` | `terminal` | 使用标准 CLI 引导,在用户可见终端渲染二维码和付款链接。 |
19
20
  | `openclaw` | 无;必须显式传入 | `--host telegram` 使用 OpenClaw 原生 `message` action;其他入口返回标准 HTTPS 二维码和付款链接。 |
20
21
 
@@ -27,11 +28,12 @@
27
28
  - 显式 `--host` 覆盖默认 Host,但不改变已登记的 Agent Type。
28
29
  - `--target` 只路由人类展示,不是身份,也不是 capability 业务输入。
29
30
  - Host 只影响 `instruction` 和 `handoff`,不得改变金额、订单、权限、quota 或交付状态。
30
- - 七种 Agent Type 使用同一命令输入和 JSON 外壳;OpenClaw 只在 `handoff` 的既有扩展位置增加平台 action,不改变交易字段。
31
- - 非展示命令在七种 Agent Type 下返回相同业务结果,只允许 `instruction` 措辞不同。只有 Host 客观无法展示某种媒介时,`handoff` 才按既有可选字段做最小裁剪。
31
+ - 所有正式 Agent Type 使用同一命令输入和 JSON 外壳;OpenClaw 只在 `handoff` 的既有扩展位置增加平台 action,不改变交易字段。
32
+ - 非展示命令在所有正式 Agent Type 下返回相同业务结果,只允许 `instruction` 措辞不同。只有 Host 客观无法展示某种媒介时,`handoff` 才按既有可选字段做最小裁剪。
32
33
  - `openclaw` 没有默认 Host。展示命令必须显式传 `--host`;缺少时在任何 Checkout 创建或状态迁移前返回 `host_required`。
33
34
  - OpenClaw 的 IM Host 必须提供 `--target`。缺失时在任何 Checkout 创建前返回 `target_required`。
34
35
  - `kimi-code` 是 CLI 型 Agent,复用 `terminal` Host 和现有 CLI 展示,不增加 Kimi 专属交易协议。
36
+ - `zcode` 使用 `plain-chat` Host 和官方 URL-only handoff。Agent 必须自行在 ZCode 内置浏览器打开 URL;只有内置浏览器确实不可用时才向用户展示同一个可点击链接。
35
37
  - session 失效时 CLI 只续期并重试原请求一次;再次失败立即返回。revoked v2 Device 不自动换身份。
36
38
  - 同一 Device 首次登记新的 Agent Type 时,CLI 只使用本地已登记且 Backend 仍接受的既有 Agent Instance 完成签名登记;被撤销的 Instance 会被跳过且不会恢复。若没有任何既有 Instance 可用,CLI 必须停止,不得重新登记 Device、旋转私钥或借用其他 Backend。
37
39
 
@@ -76,12 +78,15 @@ URL 内 credential 不得被提取、单独输出、记录或重建。
76
78
  | `codex-cli / terminal` | `url`;非 JSON 输出另外渲染终端二维码 |
77
79
  | `claude-code-cli / terminal` | `url`;非 JSON 输出另外渲染终端二维码 |
78
80
  | `workbuddy / plain-chat` | `url, agent_action`(`present_files(files=[url])`,打开完整渲染的 HTML Card Link) |
81
+ | `zcode / plain-chat` | `url`(立即用 ZCode 内置浏览器打开;不返回图片或平台私有 action) |
79
82
  | `kimi-code / terminal` | `url`;非 JSON 输出另外渲染终端二维码 |
80
83
  | `openclaw / telegram` | `url, qr_image_url, agent_action` |
81
84
  | `openclaw / other` | `url, qr_image_url` |
82
85
 
83
86
  WorkBuddy instruction 必须要求 Agent 原样执行一次 `handoff.agent_action`,即调用 `present_files(files=[handoff.url])` 在右侧打开 Backend 已渲染的 HTML Card。调用成功后说明金额并停止;调用失败时只发送原始 `handoff.url` 并如实报告未自动打开。禁止把 `present_files` 用于本地文件或二维码 PNG,也不能下载或重建二维码、调用 `pay` 或创建替代付款资源。显式 `--host` 仍覆盖默认展示方式。
84
87
 
88
+ ZCode instruction 必须明确要求 Agent 立即用内置浏览器打开 `handoff.url`,确认已发起打开后说明金额并停止。不得只把 URL 当作文字粘贴给用户,也不得下载、解析或重建二维码。只有内置浏览器明确不可用时,才把同一个 `handoff.url` 作为可点击链接展示。CLI 不猜测或输出 ZCode 私有工具调用 JSON。
89
+
85
90
  OpenClaw Telegram 的 `handoff.agent_action` 是可原样执行的原生 `message` tool action。`presentation` 只包含标准 `blocks.buttons`:`📱 手机点这儿支付` 使用扁平 `url`,`📋 已授权给我读` 使用扁平 `value=itp:grant_confirmed:<checkout_id>`;二维码单独使用 action 的 `media`。CLI `instruction` 必须要求 Agent 原样执行该 action,不得改写 Presentation、换用其他消息工具或声称普通文本回复等同于已发送按钮。收到授权 callback 后立即执行 `next.command` 查询同一 Checkout,再只跟随后端返回的同一 Execution grant 流程;callback 只携带 Checkout ID,不携带 display token,也不证明付款或 grant 已生效。OpenClaw `target` 使用原生 chat target(如 `5559456744` 或 `-1001234567890:topic:42`),不添加 `telegram:` 前缀。
86
91
 
87
92
  ### Purchased-content authorization
@@ -89,7 +94,7 @@ OpenClaw Telegram 的 `handoff.agent_action` 是可原样执行的原生 `messag
89
94
  `vault access` 使用相同字段集合,但不包含金额、Checkout ID、付款状态或付款
90
95
  查询命令。桌面 handoff 的 Markdown 标题和链接必须明确为“授权查看已购
91
96
  内容”;Terminal 显示授权二维码;WorkBuddy 用 `present_files` 打开完整
92
- `handoff.url`;OpenClaw 使用返回的图片/原生 action。
97
+ `handoff.url`;ZCode 用内置浏览器打开完整 `handoff.url`;OpenClaw 使用返回的图片/原生 action。
93
98
 
94
99
  授权 handoff 展示后 `next=null`。用户明确表示已完成时,Agent只重新执行
95
100
  产生授权要求的原始 `vault list`、`orders` 或 `vault read`,不得再次执行
@@ -135,7 +135,7 @@ itpay buy \
135
135
 
136
136
  ## 幂等与中断恢复
137
137
 
138
- - CLI 在本机 operation journal 中为 `checkout.create:<cart_id>` 保存稳定幂等键。
138
+ - CLI 在本机 `operations.json.d/`(dev 使用独立目录)中为 `checkout.create:<cart_id>` 保存一条不可变、owner-only 的稳定幂等记录;不同操作不共享全局锁。
139
139
  - HTTP 请求通过 `Idempotency-Key` 提交该键。
140
140
  - Checkout 响应丢失时,重跑同一命令会复用已保存的 canonical Cart 和同一幂等键。
141
141
  - 后端返回同一个待处理 Checkout,并轮换新的交接 token;不会创建第二笔订单。
@@ -168,6 +168,7 @@ itpay buy \
168
168
  | `claude-code-desktop` | `claude-code` | `url`、可用时 `qr_local_path` 和 `markdown` | 把 Markdown handoff 发到当前桌面对话,不能只输出本地路径。 |
169
169
  | `claude-code-cli` | `terminal` | `url` | 在用户可见终端展示;不能声称桌面对话已收到图片。 |
170
170
  | `workbuddy` | `plain-chat` | `url,agent_action` | 原样执行一次 `present_files(files=[url])`,在右侧打开完整渲染的 HTML Card Link,然后停止。 |
171
+ | `zcode` | `plain-chat` | `url` | 立即用 ZCode 内置浏览器打开 URL;只有浏览器不可用时才展示同一个可点击链接。 |
171
172
  | `kimi-code` | `terminal` | `url` | 使用标准 CLI 非 JSON 终端二维码和链接。 |
172
173
  | `openclaw` | 必须显式 | Telegram 返回 `url,qr_image_url,agent_action`;其他入口返回 `url,qr_image_url` | Telegram 执行原生 `message` action;其他入口直接展示图片和链接。 |
173
174
 
@@ -85,4 +85,4 @@ Quote 模式返回:
85
85
 
86
86
  ## Agent Type / Host
87
87
 
88
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种类型都写入真实 Agent Type。默认 Host 分别是 `codex`、`terminal`、`claude-code`、`terminal`、`plain-chat`。业务输出合同相同;此命令本身不显示二维码。
88
+ 所有正式支持的 Local Agent Type 都写入真实 Agent Type,并使用 Agent Type reference 声明的默认 Host。业务输出合同相同;此命令本身不显示二维码。
@@ -52,4 +52,4 @@ itpay cart clear [--local] [--json]
52
52
 
53
53
  ## Agent Type / Host
54
54
 
55
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 行为相同。
55
+ 所有正式支持的 Local Agent Type 行为相同。
@@ -29,4 +29,4 @@ itpay cart --help
29
29
 
30
30
  ## Agent Type / Host
31
31
 
32
- Cart 事实在 `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 下相同;`add` 创建 client context 时记录真实 Agent Type 和 Host。
32
+ Cart 事实在所有正式支持的 Local Agent Type 下相同;`add` 创建 client context 时记录真实 Agent Type 和 Host。
@@ -70,4 +70,4 @@ itpay buy --cart <cart_id> --json
70
70
 
71
71
  ## Agent Type / Host
72
72
 
73
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 的业务字段、instruction 和 next 相同。本命令不产生二维码或 Host handoff。
73
+ 所有正式支持的 Local Agent Type 的业务字段、instruction 和 next 相同。本命令不产生二维码或 Host handoff。
@@ -52,4 +52,4 @@ quote/checkout 已锁定时返回 `cart_item_locked`,要求继续已有 Checko
52
52
 
53
53
  ## Agent Type / Host
54
54
 
55
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 行为相同。
55
+ 所有正式支持的 Local Agent Type 行为相同。
@@ -64,4 +64,4 @@ canonical 输出不得包含 Catalog variant/offer、line input、Service quote
64
64
 
65
65
  ## Agent Type / Host
66
66
 
67
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 行为相同。
67
+ 所有正式支持的 Local Agent Type 行为相同。
@@ -25,4 +25,4 @@ itpay catalog --help
25
25
 
26
26
  ## Agent Type / Host
27
27
 
28
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种支持类型的目录事实完全相同。instruction 可按 Agent Type 调整措辞,但不得改变服务排序、价格或可用能力。
28
+ 所有正式支持的 Local Agent Type 的目录事实完全相同。instruction 可按 Agent Type 调整措辞,但不得改变服务排序、价格或可用能力。
@@ -44,4 +44,4 @@ itpay catalog list [--json]
44
44
 
45
45
  ## Agent Type / Host
46
46
 
47
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 使用同一产品内容;只允许排版不同。
47
+ 所有正式支持的 Local Agent Type 使用同一产品内容;只允许排版不同。
@@ -76,6 +76,7 @@ token 缺失或不匹配时使用本机句柄恢复。只有请求的 Checkout
76
76
  | `claude-code-desktop` | `url, qr_local_path, markdown`;原样发送 Markdown。 |
77
77
  | `claude-code-cli` | `url`;普通文本模式渲染终端二维码。 |
78
78
  | `workbuddy` | 返回 `url,agent_action`;原样执行一次 `present_files(files=[url])` 打开完整渲染的 HTML Card Link,不生成本地文件。 |
79
+ | `zcode` | 返回 `url`;立即用 ZCode 内置浏览器打开,不只粘贴文字链接,也不生成或重建二维码文件。 |
79
80
  | `kimi-code` | `url`;普通文本模式渲染标准终端二维码。 |
80
81
  | `openclaw` | Telegram 为 `url,qr_image_url,agent_action`;instruction 强制原样执行 action。`📋 已授权给我读` callback 触发同一 Checkout 查询,再由 Backend 决定是否进入 grant 读取;其他显式 Host 为 `url,qr_image_url`。 |
81
82
 
@@ -27,4 +27,4 @@ itpay docs --help
27
27
 
28
28
  ## Agent Type / Host
29
29
 
30
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 使用同一文档源;topic 内容可以包含各类型专属 section
30
+ 所有正式支持的 Local Agent Type 使用同一文档源;topic 内容可以包含各类型专属 section。完整类型列表以 `itpay install --json` 和 Agent Type reference 为准。
@@ -50,4 +50,4 @@ itpay docs show <topic> --json
50
50
 
51
51
  ## Agent Type / Host
52
52
 
53
- 七种正式 Agent Type 返回相同结果。本命令没有 Host 渲染、设备登记或本地业务状态写入。
53
+ 所有正式 Agent Type 返回相同结果。本命令没有 Host 渲染、设备登记或本地业务状态写入。
@@ -68,4 +68,4 @@ itpay docs search <query> [--json]
68
68
 
69
69
  ## Agent Type / Host
70
70
 
71
- 七种正式 Agent Type 行为相同。本命令不产生 Host handoff。
71
+ 所有正式 Agent Type 行为相同。本命令不产生 Host handoff。
@@ -67,4 +67,4 @@ topic 不存在返回 `doc_not_found`:
67
67
 
68
68
  ## Agent Type / Host
69
69
 
70
- 七种正式 Agent Type 使用同一 topic。topic 若包含多种 Host 指导,Agent 只采用与自身 Agent Type 和当前 Host 匹配的部分。
70
+ 所有正式 Agent Type 使用同一 topic。topic 若包含多种 Host 指导,Agent 只采用与自身 Agent Type 和当前 Host 匹配的部分。
@@ -2,8 +2,8 @@
2
2
 
3
3
  ## 命令范围
4
4
 
5
- 替用户记录一笔已有订单中某项服务的评分和可选建议。Agent 负责定位订单和项目、
6
- 询问缺失的评分并执行命令;用户不运行命令,也不处理内部 ID。
5
+ 为一笔已有订单中的具体服务记录最小、安全的 Agent 复盘,并忠实附上用户主动给出的
6
+ 评分或建议。评分和建议都可选;用户不运行命令,也不处理内部 ID。
7
7
 
8
8
  Feedback 不创建客服工单、不改变订单、交付或退款状态,也不承诺回复时间。
9
9
 
@@ -22,8 +22,8 @@ Feedback 不创建客服工单、不改变订单、交付或退款状态,也
22
22
 
23
23
  ## Agent 服务口径
24
24
 
25
- - 用户必须明确给出 1–5 分;文字建议可选;
26
- - 先完成交付、故障恢复和退款权利解释,再邀请反馈;
27
- - 用户拒绝、忽略或已经反馈后,同一对话不再询问;
28
- - 成功后只告诉用户反馈已经记录并表示感谢;
25
+ - 先完成交付、故障恢复和退款权利解释,再提交一次安全复盘;
26
+ - 用户主动给出 1–5 分或建议时忠实记录;未给出时不追问、不猜分;
27
+ - 用户后来补充评分或评论时更新同一条反馈;
28
+ - 有用户输入时告知已记录并感谢;纯 Agent 复盘无需打扰用户;
29
29
  - 不自动上传聊天、Prompt、日志、Token、联系方式或已购内容。
@@ -2,16 +2,17 @@
2
2
 
3
3
  ## 范围与意义
4
4
 
5
- 把用户明确给出的评分和可选建议记录到当前 Local Agent 原来执行的一笔已有 Order
6
- 的具体服务项目。CLI 读取同一 Order 选择真实 `order_item_id`,再调用现有 Feedback
7
- Owner。用户不需要知道 Order ID、Order Item ID、Device 或 Agent Instance。
5
+ 在当前 Local Agent 完成一笔已有 Order 后,记录一次最小、安全的服务复盘。用户评分
6
+ 和原话均为可选;Agent 即使没有收到评分或评论,也要提交已知的服务结果上下文。CLI
7
+ 通过 Feedback 专用选项接口选择真实项目,再调用现有 Feedback Owner。用户不需要知道
8
+ Order ID、Order Item ID、Device 或 Agent Instance。
8
9
 
9
10
  ## 语法与参数
10
11
 
11
12
  ```bash
12
13
  itpay feedback submit \
13
14
  --order <order_id> \
14
- --rating <1-5> \
15
+ [--rating <1-5>] \
15
16
  [--note <text>] \
16
17
  [--item-rank <positive_integer>] \
17
18
  [--json]
@@ -20,7 +21,7 @@ itpay feedback submit \
20
21
  | 参数 | 必填 | 说明 |
21
22
  | --- | --- | --- |
22
23
  | `--order <order_id>` | 是 | Agent 从当前订单流程取得,不要求用户提供。 |
23
- | `--rating <1-5>` | | 用户明确给出的 1–5 评分;CLI 归一常见精确写法。 |
24
+ | `--rating <1-5>` | | 用户明确给出的 1–5 评分;缺省表示“未评分”,不能推断。 |
24
25
  | `--note <text>` | 否 | 用户明确表达的建议或卡壳点。 |
25
26
  | `--item-rank <n>` | 多项目订单条件必填 | 当前 Order items 的 1-based rank。 |
26
27
  | `--json` | 否 | 输出一个稳定 JSON envelope;Agent 应使用。 |
@@ -30,11 +31,14 @@ itpay feedback submit \
30
31
  Vault、MCP 或另一个 Agent 的历史中取得 Order 并尝试写反馈;这些通道只有读取权,
31
32
  不证明当前 Agent 是原执行者。
32
33
 
33
- rating、rank 和 note 长度在任何 Feedback POST 前验证。rating 接受 `5`、`5/5`、
34
+ rating、rank 和 note 长度在任何 Feedback POST 前验证。提供 rating 时接受 `5`、`5/5`、
34
35
  `5分`、`5星`、`5 stars` 和中文 `一` 至 `五` 的精确写法,统一保存为整数;
35
36
  `2.5`、`6`、`很好` 等含糊或越界值拒绝,不能猜测。完整结构化 note 最长 2000
36
37
  Unicode code points;超长时不截断用户原话,而是请用户缩短。
37
38
 
39
+ 同一 Agent 已记录基线复盘时,没有新增用户评分或评论的重复调用返回
40
+ `feedback_already_submitted`,且不会覆盖已有反馈;用户以后明确补充评分或评论时仍可更新。
41
+
38
42
  ## 项目选择
39
43
 
40
44
  ```text
@@ -50,7 +54,7 @@ rank 无效 -> feedback_item_invalid,不提交
50
54
 
51
55
  ## 保存格式
52
56
 
53
- Backend 继续保存现有 `rating` 和 `note`。CLI 的 note 是可直接在 Admin 阅读的短
57
+ Backend 保存可选 `rating` 和 `note`。CLI 的 note 是可直接在 Admin 阅读的短
54
58
  Markdown:
55
59
 
56
60
  ```markdown
@@ -58,7 +62,8 @@ Markdown:
58
62
  > 支付后等了很久才拿到结果。
59
63
 
60
64
  ## Context
61
- - Source: user-confirmed via agent
65
+ - Source: agent-postmortem
66
+ - Human input: comment included
62
67
  - Outcome: delivered
63
68
  - Service: 企业综合报告
64
69
  - Client: @itpay/cli <version>
@@ -66,7 +71,7 @@ Markdown:
66
71
  - Environment: development
67
72
  ```
68
73
 
69
- 只写用户明确内容和已知安全上下文;禁止 Token、Session、联系方式、内部身份、
74
+ 没有用户评论时省略 Summary,但仍保存 Context。只写用户明确内容和已知安全上下文;禁止 Token、Session、联系方式、内部身份、
70
75
  Provider 响应、Vault payload、完整命令输出、stack trace 或环境变量。
71
76
 
72
77
  ## 成功 JSON
@@ -87,7 +92,11 @@ Provider 响应、Vault payload、完整命令输出、stack trace 或环境变
87
92
  ```
88
93
 
89
94
  正常结果不返回 `feedback_id`、`order_item_id`、Device、Agent Instance 或 Buyer。
90
- 同一 submitter 再次由用户明确提交会更新现有记录并重新进入 `new`,不是创建第二条。
95
+ 未评分时成功结果省略 `rating`。同一 submitter 在用户后来补充评分或评论时会更新
96
+ 现有记录并重新进入 `new`,不是创建第二条。
97
+
98
+ 如果用户没有给出评分或评论,Agent 仍提交 Context;成功 instruction 改为“无需打扰
99
+ 用户”,不得声称用户表达过意见。
91
100
 
92
101
  ## 多项目 JSON
93
102
 
@@ -101,7 +110,7 @@ Provider 响应、Vault payload、完整命令输出、stack trace 或环境变
101
110
  { "rank": 2, "title": "企业综合报告", "subject": "北京京东世纪贸易有限公司" }
102
111
  ]
103
112
  },
104
- "instruction": "用服务名称和主题让用户选择要评价哪一项;不要展示内部 ID。用户选择后,Agent 使用同一订单、评分和留言并加入所选 item rank 自己执行提交。",
113
+ "instruction": "用服务名称和主题让用户选择要复盘哪一项;不要展示内部 ID。用户选择后,Agent 使用同一订单、已有评分或留言(如有)并加入所选 item rank 自己执行提交。",
105
114
  "next": null,
106
115
  "recovery": []
107
116
  }
@@ -112,7 +121,7 @@ Provider 响应、Vault payload、完整命令输出、stack trace 或环境变
112
121
  | 状态/错误 | 行为 |
113
122
  | --- | --- |
114
123
  | `order_required` | 使用当前 exact Agent 的 `services list` 恢复原服务;找不到时指向官方订单页或原 Local Agent,不用账号订单/Vault 绕过。 |
115
- | `feedback_rating_invalid` | 询问明确的 1–5 评分;没有 HTTP,不猜测。 |
124
+ | `feedback_rating_invalid` | 用户提供了评分但格式不是 1–5;不提交、不猜测。 |
116
125
  | `feedback_note_too_long` | 请用户缩短;不截断、不提交。 |
117
126
  | `feedback_unavailable` | 该 Order 当前没有可反馈项目;不猜 ID。 |
118
127
  | `feedback_item_invalid` | 重新使用返回的项目 rank;不提交。 |
@@ -18,10 +18,10 @@ itpay install [target] [--json]
18
18
 
19
19
  | 参数 | 必填 | 说明 |
20
20
  | --- | --- | --- |
21
- | `target` | 否 | 七种正式 Agent Type 之一;省略或传 `list` 时列出全部。Host 名称不是合法 target。 |
21
+ | `target` | 否 | 八种正式 Agent Type 之一;省略或传 `list` 时列出全部。Host 名称不是合法 target。 |
22
22
  | `--json` | 否 | 返回标准命令 envelope;推荐 Agent 使用。 |
23
23
 
24
- 正式 target:`codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw`。
24
+ 正式 target:`codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`zcode`、`kimi-code`、`openclaw`。
25
25
 
26
26
  ## 指定 Agent Type 输出
27
27
 
@@ -77,7 +77,7 @@ OpenClaw 额外明确没有默认入口:
77
77
 
78
78
  ## 列表输出
79
79
 
80
- 省略 target 或传 `list` 时返回七组运行时定义,不重复每种类型的完整 instruction:
80
+ 省略 target 或传 `list` 时返回八组运行时定义,不重复每种类型的完整 instruction:
81
81
 
82
82
  ```json
83
83
  {
@@ -89,6 +89,7 @@ OpenClaw 额外明确没有默认入口:
89
89
  { "agent_type": "claude-code-desktop", "default_host": "claude-code" },
90
90
  { "agent_type": "claude-code-cli", "default_host": "terminal" },
91
91
  { "agent_type": "workbuddy", "default_host": "plain-chat" },
92
+ { "agent_type": "zcode", "default_host": "plain-chat" },
92
93
  { "agent_type": "kimi-code", "default_host": "terminal" },
93
94
  {
94
95
  "agent_type": "openclaw",
@@ -120,6 +121,7 @@ OpenClaw 额外明确没有默认入口:
120
121
  | `claude-code-desktop` | `claude-code` | 桌面对话必须实际展示二维码和付款链接。 |
121
122
  | `claude-code-cli` | `terminal` | 只在用户可见终端展示付款交接。 |
122
123
  | `workbuddy` | `plain-chat` | 会持久化 `~/.itpay-v3` 的 Bash 调用先设 Shell 工具参数 `dangerouslyDisableSandbox=true`;拒绝权限时停止。Checkout 原样执行返回的 `present_files` action,打开渲染后的 Card Link。 |
124
+ | `zcode` | `plain-chat` | Checkout 或授权返回后立即用 ZCode 内置浏览器打开 `handoff.url`;只有浏览器不可用时才展示同一个可点击链接。 |
123
125
  | `kimi-code` | `terminal` | 使用标准 CLI 流程和终端展示,不增加 Kimi 专属命令。 |
124
126
  | `openclaw` | 无 | 必须显式提供当前入口;Telegram 使用原生 action,其他入口展示标准二维码和链接。 |
125
127
 
@@ -138,7 +140,7 @@ OpenClaw 额外明确没有默认入口:
138
140
  "code": "unsupported_agent_type",
139
141
  "message": "unsupported install target: codex"
140
142
  },
141
- "instruction": "target 只接受:codex-desktop, codex-cli, claude-code-desktop, claude-code-cli, workbuddy, kimi-code, openclaw。",
143
+ "instruction": "target 只接受:codex-desktop, codex-cli, claude-code-desktop, claude-code-cli, workbuddy, zcode, kimi-code, openclaw。",
142
144
  "next": null,
143
145
  "recovery": [
144
146
  {
@@ -86,4 +86,4 @@ Checkout 句柄返回:
86
86
 
87
87
  ## Agent Type / Host
88
88
 
89
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 的状态、instruction 和下一步完全相同。本命令不产生二维码或 Host handoff。
89
+ 所有正式支持的 Local Agent Type 的状态、instruction 和下一步完全相同。本命令不产生二维码或 Host handoff。
@@ -91,4 +91,4 @@ itpay services list --json
91
91
 
92
92
  ## Agent Type / Host
93
93
 
94
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 返回完全相同的订单事实、instruction 和 next。`order` 是状态读取命令,不构造二维码、Markdown handoff 或 Host renderer 数据。
94
+ 所有正式支持的 Local Agent Type 返回完全相同的订单事实、instruction 和 next。`order` 是状态读取命令,不构造二维码、Markdown handoff 或 Host renderer 数据。
@@ -103,6 +103,7 @@ API 安全合同要求后端验证 display token 是该 Checkout 当前有效的
103
103
  | `claude-code-desktop` | `claude-code` | 把安全 handoff 发到当前桌面对话。 |
104
104
  | `claude-code-cli` | `terminal` | 只在用户可见终端展示渠道动作。 |
105
105
  | `workbuddy` | `plain-chat` | 受控逃生入口返回 `handoff.url` 和可原样执行的 `present_files` action;打开一次后停止,不立即查询或创建替代付款。 |
106
+ | `zcode` | `plain-chat` | 受控逃生入口返回 `handoff.url`;同时存在渠道动作时优先使用浏览器可打开的 `qr_image_url`,只有它缺失时才回退到 `mobile_wallet_url`。立即用内置浏览器打开并停止,浏览器不可用时才展示同一个链接。 |
106
107
  | `kimi-code` | `terminal` | 使用标准 CLI 终端展示渠道动作。 |
107
108
  | `openclaw` | 必须显式提供 | 按显式 Host 返回安全渠道动作;IM Host 仍要求真实 target。 |
108
109
 
@@ -61,4 +61,4 @@ itpay refund cancel <refund_request_id> [--reason <reason>] [--json]
61
61
 
62
62
  ## Agent Type / Host
63
63
 
64
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 的业务字段、instruction 和 recovery 相同;该命令没有二维码或宿主渲染差异。
64
+ 所有正式支持的 Local Agent Type 的业务字段、instruction 和 recovery 相同;该命令没有二维码或宿主渲染差异。
@@ -84,4 +84,4 @@ CLI 使用 Device Authority 或已有 Buyer bearer,并用订单+原因生成
84
84
 
85
85
  ## Agent Type / Host
86
86
 
87
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 使用相同 Device Authority、退款政策和输出。未绑定订单时不得改用新 Device ID、Buyer ID 或开发者权限绕过 Owner 鉴权。
87
+ 所有正式支持的 Local Agent Type 使用相同 Device Authority、退款政策和输出。未绑定订单时不得改用新 Device ID、Buyer ID 或开发者权限绕过 Owner 鉴权。
@@ -64,4 +64,4 @@ CLI 不因为退款终态自行修改订单或 grant。
64
64
 
65
65
  ## Agent Type / Host
66
66
 
67
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 返回完全相同的退款事实、instruction 和 next。Host 不改变 Refund Owner 状态或访问锁。
67
+ 所有正式支持的 Local Agent Type 返回完全相同的退款事实、instruction 和 next。Host 不改变 Refund Owner 状态或访问锁。
@@ -40,4 +40,4 @@ itpay refund --help
40
40
 
41
41
  ## Agent Type / Host
42
42
 
43
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种类型使用同一签名 Device Authority 和退款状态机;Host 不影响退款资格。
43
+ 所有正式支持的 Local Agent Type 使用同一签名 Device Authority 和退款状态机;Host 不影响退款资格。
@@ -67,4 +67,4 @@ itpay refund list --order <order_id> [--json]
67
67
 
68
68
  ## Agent Type / Host
69
69
 
70
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 的业务字段、instruction 和 next 完全相同;本命令没有 Host 渲染差异。
70
+ 所有正式支持的 Local Agent Type 的业务字段、instruction 和 next 完全相同;本命令没有 Host 渲染差异。
@@ -72,4 +72,4 @@ Timeout 只表示本次 CLI 等待结束,不表示退款失败:
72
72
 
73
73
  ## Agent Type / Host
74
74
 
75
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 返回相同退款事实。Desktop 不会把每次无变化轮询发送到用户对话;Host 不改变 timeout 或退款状态。
75
+ 所有正式支持的 Local Agent Type 返回相同退款事实。Desktop 不会把每次无变化轮询发送到用户对话;Host 不改变 timeout 或退款状态。
@@ -47,4 +47,4 @@ rank 不存在、属于旧结果集或其他 Execution、action 不允许、stat
47
47
 
48
48
  ## Agent Type / Host
49
49
 
50
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 行为相同。需要人确认时 instruction 必须明确“先询问用户”,不能因 Desktop Host 自动代替用户选择。
50
+ 所有正式支持的 Local Agent Type 行为相同。需要人确认时 instruction 必须明确“先询问用户”,不能因 Desktop Host 自动代替用户选择。
@@ -83,6 +83,7 @@ itpay services checkout <service_execution_id> --resume
83
83
  | `claude-code-desktop` | `handoff={url,qr_local_path,markdown}`;把 `handoff.markdown` 原样发送到当前桌面对话。 |
84
84
  | `claude-code-cli` | `handoff={url}`;普通文本模式在用户可见终端渲染二维码。 |
85
85
  | `workbuddy` | `handoff={url,agent_action}`;原样执行一次 `present_files(files=[url])` 打开完整渲染的 HTML Card Link,然后停止;不得检查或生成本地文件。 |
86
+ | `zcode` | `handoff={url}`;立即用 ZCode 内置浏览器打开,然后停止;只有浏览器不可用时才展示同一个可点击链接。 |
86
87
  | `kimi-code` | `handoff={url}`;复用标准 CLI 终端展示。 |
87
88
  | `openclaw` | 必须显式传 Host;Telegram 还必须传 OpenClaw 原生 Target,并返回必须原样执行的 `message` action;其他入口返回标准 `url,qr_image_url`。 |
88
89
 
@@ -92,6 +93,12 @@ WorkBuddy 的准确 instruction 语义必须完整包含:
92
93
  Backend 尚未确认付款。立即严格按 handoff.agent_action.tool 和 handoff.agent_action.arguments 原样执行一次,在右侧打开 handoff.url;确认工具调用成功后说明金额,然后停止等待。若工具失败,只发送原始 handoff.url,报告未自动打开并停止。不要用 present_files 打开本地文件或二维码 PNG,不要下载或重建二维码,不要调用 pay,不要创建新 Checkout、Payment Intent 或 Execution。只有用户明确表示已付款或要求查询状态时,才执行 next.command;用户的话不是付款成功证明。
93
94
  ```
94
95
 
96
+ ZCode 的准确 instruction 语义必须完整包含:
97
+
98
+ ```text
99
+ Backend 尚未确认付款。立即用 ZCode 内置浏览器打开 handoff.url,让用户完成付款;确认已发起打开后说明金额,然后停止等待。不要只粘贴文字链接,不要下载、解析或重建二维码,不要创建新 Checkout、Payment Intent 或 Execution。只有内置浏览器明确不可用时,才展示同一个可点击 handoff.url。只有用户明确表示已付款或要求查询状态时,才执行 next.command;用户的话不是付款成功证明。
100
+ ```
101
+
95
102
  `--locale` 默认 `zh-CN`,可显式使用 `--locale en`。语言只影响 Card 渲染,不改变 Checkout、付款或恢复状态。
96
103
 
97
104
  OpenClaw 的 Host/Target 校验必须发生在读取 execution 后、创建 Checkout 前;校验失败不能调用 Checkout 创建接口。Telegram `agent_action.arguments.presentation` 只使用 `blocks.buttons`,其中 `📱 手机点这儿支付` 使用扁平 `url`,`📋 已授权给我读` 使用 `value=itp:grant_confirmed:<checkout_id>`。准确 instruction 必须要求 Agent 立即用原生 `message` tool 原样执行 `handoff.agent_action`,不得改写 Presentation、换工具或用普通回复冒充按钮已发送。收到该 callback 表示用户声明已在收银台授权读取;Agent 立即执行 `next.command` 查询同一 Checkout,再只按 Backend 返回的 `next.command` 进入同一 Execution grant 流程。callback 不包含 display token,也不证明付款或 grant active;Backend 未返回 `grant_active` 前不得读取结果。
@@ -72,4 +72,4 @@ CLI 只投影:`sequence`、`type`、`status`、`phase`、可选 `capability_id
72
72
 
73
73
  ## Agent Type / Host
74
74
 
75
- 七种正式 Agent Type 的事件字段、鉴权和 redaction 完全相同;Host 不影响可见性,也不产生 handoff。
75
+ 所有正式 Agent Type 的事件字段、鉴权和 redaction 完全相同;Host 不影响可见性,也不产生 handoff。
@@ -65,4 +65,4 @@ execution 不存在或不属于当前身份时保留不透明 `not_found`,只
65
65
 
66
66
  ## Agent Type / Host
67
67
 
68
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 的状态、timeline、instruction 和 next 相同。本命令没有二维码或 Host handoff。
68
+ 所有正式支持的 Local Agent Type 的状态、timeline、instruction 和 next 相同。本命令没有二维码或 Host handoff。
@@ -44,4 +44,4 @@ itpay services --help
44
44
 
45
45
  ## Agent Type / Host
46
46
 
47
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 共享状态机;Agent Type 只影响身份归属和 Host instruction,不允许影响 quota 规则或服务能力。
47
+ 所有正式支持的 Local Agent Type 共享状态机;Agent Type 只影响身份归属和 Host instruction,不允许影响 quota 规则或服务能力。
@@ -152,4 +152,4 @@ Provider 已收到请求时,Backend 返回同一 Execution 的权威调用和
152
152
 
153
153
  ## Agent Type / Host
154
154
 
155
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 的 safe result 一致。instruction 可以适配对话表述,但不得隐藏 quota、价格或 schema 错误。
155
+ 所有正式支持的 Local Agent Type 的 safe result 一致。instruction 可以适配对话表述,但不得隐藏 quota、价格或 schema 错误。
@@ -60,4 +60,4 @@ itpay services list [--limit <number>] [--json]
60
60
 
61
61
  ## Agent Type / Host
62
62
 
63
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 返回相同列表格式;Agent instance 权限决定可见范围。本命令没有 Host handoff。
63
+ 所有正式支持的 Local Agent Type 返回相同列表格式;Agent instance 权限决定可见范围。本命令没有 Host handoff。
@@ -209,4 +209,4 @@ itpay services get <service_execution_id> --json
209
209
 
210
210
  ## Agent Type / Host
211
211
 
212
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 返回完全相同的状态、safe payload、instruction 和 next。本命令不渲染二维码,也不包含 Host handoff。
212
+ 所有正式支持的 Local Agent Type 返回完全相同的状态、safe payload、instruction 和 next。本命令不渲染二维码,也不包含 Host handoff。
@@ -62,4 +62,4 @@ itpay services quote <service_execution_id> --capability <capability_id>
62
62
 
63
63
  ## Agent Type / Host
64
64
 
65
- `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 七种 Agent Type 返回相同 Quote 事实、instruction 和 next。本命令不显示二维码;Agent Type 只作为设备与审计上下文,不改变价格或候选规则。
65
+ 所有正式支持的 Local Agent Type 返回相同 Quote 事实、instruction 和 next。本命令不显示二维码;Agent Type 只作为设备与审计上下文,不改变价格或候选规则。
@@ -97,4 +97,4 @@ itpay services next <id> --json
97
97
 
98
98
  ## Agent Type / Host
99
99
 
100
- 同一 Buyer account 下已登记的 `codex-desktop`、`codex-cli`、`claude-code-desktop`、`claude-code-cli`、`workbuddy`、`kimi-code`、`openclaw` 可按政策领取同一订单授权;每个类型仍需自己的有效 Device Authority。七种类型返回相同字段、TTL 和错误,不因 Host 扩大 grant scope。
100
+ 同一 Buyer account 下已登记的正式 Local Agent Type 可按政策领取同一订单授权;每个类型仍需自己的有效 Device Authority。所有类型返回相同字段、TTL 和错误,不因 Host 扩大 grant scope。