@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
@@ -52,9 +52,12 @@ Agent不得提取、单独输出、记录或重建其中的 credential;但不
52
52
  | `codex-cli / terminal` | `url`;文本模式同时渲染终端二维码 |
53
53
  | `claude-code-cli / terminal` | `url`;文本模式同时渲染终端二维码 |
54
54
  | `workbuddy / plain-chat` | `url, agent_action` |
55
+ | `zcode / plain-chat` | `url`;立即用内置浏览器打开,浏览器不可用时才展示可点击链接 |
55
56
  | `kimi-code / terminal` | `url`;文本模式同时渲染终端二维码 |
56
57
  | `openclaw / telegram` | `url, qr_image_url, agent_action` |
57
58
  | `openclaw / other` | `url, qr_image_url` |
58
59
 
59
60
  桌面二维码下载失败时保留 `handoff.url`,instruction 必须要求如实说明图片
60
61
  未显示并发送同一个 URL;不得创建替代请求。
62
+
63
+ ZCode 不接收图片路径或二维码 URL。instruction 必须要求 Agent立即用内置浏览器打开完整 `handoff.url`,然后停止等待;不得只粘贴文字链接或重建二维码。仅当内置浏览器明确不可用时才展示同一个可点击链接。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itpay/cli",
3
- "version": "2.0.34",
3
+ "version": "2.0.36",
4
4
  "description": "The ItPay CLI for services, orders, and human-authorized purchased content.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,6 +30,7 @@
30
30
  "claude-code",
31
31
  "codex",
32
32
  "openclaw",
33
+ "zcode",
33
34
  "trae"
34
35
  ],
35
36
  "license": "MIT",
@@ -22,7 +22,7 @@ for the human; never ask them to run commands or learn internal concepts.
22
22
  | Find a previous result by subject | `itpay vault list --query <subject> --json` |
23
23
  | Inspect purchase history | `itpay orders --json` |
24
24
  | Track or request a refund | Resume the known Order or Refund returned by ItPay |
25
- | Rate a purchased service or report a blocker | Resume the known Order; submit only after the human gives a 1–5 rating |
25
+ | Review a completed service or report a blocker | Resume the known Order; submit a safe Agent postmortem after the outcome is explained |
26
26
 
27
27
  Words such as "my", "previous", "bought", "history", "report", "以前",
28
28
  "之前", "买过", "查过", "历史", and "已购内容" usually mean an existing
@@ -51,6 +51,11 @@ itpay docs search <keyword> --json
51
51
 
52
52
  The current Backend response always overrides general documentation.
53
53
 
54
+ When a handoff returns an official URL, open it yourself on the current
55
+ platform whenever possible. Only show the same clickable URL when no browser
56
+ or native action is available; never ask the human to run a command or rebuild
57
+ a QR code.
58
+
54
59
  ## Serve The Human
55
60
 
56
61
  - Ask the human only to choose, authorize, pay, provide required contact
@@ -61,9 +66,9 @@ The current Backend response always overrides general documentation.
61
66
  If delivery fails, recover that same order before discussing a refund.
62
67
  - Explain refund eligibility as a policy route, not a promise. Only ItPay's
63
68
  final refund state proves success.
64
- - Finish delivery or failure recovery before inviting feedback. Ask at most
65
- once per order; require an explicit 1–5 rating, run the feedback command
66
- yourself, and promise only that the feedback was recorded.
69
+ - Finish delivery or failure recovery, then submit one safe Agent postmortem for
70
+ that order. A human rating and comment are optional; record them verbatim when
71
+ given, never infer a score, and update the same feedback if they arrive later.
67
72
  - If feedback lost its Order context, recover through this exact Local Agent's
68
73
  `services list` and `services next`. Account orders, Vault access, and MCP
69
74
  reads do not grant feedback write authority; if the execution is absent,
@@ -99,5 +104,5 @@ The current Backend response always overrides general documentation.
99
104
  separate attempt.
100
105
  - Never claim a handoff, payment, authorization, delivery, or refund succeeded
101
106
  without the corresponding ItPay state.
102
- - Never infer a rating or silently upload chat, prompts, logs, contact details,
107
+ - Never infer a rating or upload chat, prompts, raw logs, contact details,
103
108
  purchased content, credentials, or internal identifiers as feedback.