@itpay/cli 2.1.59 → 2.1.61
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/THIRD-PARTY-NOTICES.txt +0 -61
- package/dist/src/main.js +319 -4896
- package/dist/src/state/config.js +1 -1
- package/docs/agent/buyer/render-hosts.json +1 -1
- package/package.json +2 -2
- package/skills/itpay/SKILL.md +2 -0
- package/skills/itpay-api/SKILL.md +4 -0
package/dist/src/state/config.js
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{
|
|
66
66
|
"agent_type": "kimi-code",
|
|
67
67
|
"default_host": "terminal",
|
|
68
|
-
"responsibility": "
|
|
68
|
+
"responsibility": "show the official server card when supported and the original Checkout URL; image failure uses the same URL, purpose, current status, human action and original next; never encode a QR locally"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"agent_type": "openclaw",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itpay/cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.61",
|
|
4
4
|
"description": "The ItPay CLI for services, orders, and human-authorized purchased content.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"services",
|
|
149
149
|
"api"
|
|
150
150
|
],
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "928231fd3c11229cd9116a36fcbf3ff1eef6402f"
|
|
152
152
|
}
|
package/skills/itpay/SKILL.md
CHANGED
|
@@ -5,6 +5,8 @@ description: Find or buy ItPay services, plan or book railway travel, read purch
|
|
|
5
5
|
|
|
6
6
|
# ItPay
|
|
7
7
|
|
|
8
|
+
展示本人登录、办理或付款入口时,只使用工具返回的官方 HTML 卡、由同一 HTML 截图的官方图片和原官方链接。图片失败或宿主不能展示图片时,给出原链接、用途、当前状态、本人需做的动作及原任务 next;不得自行编码、重画、裁剪二维码,也不得换单或重建授权。
|
|
9
|
+
|
|
8
10
|
For a new task, prefer the official pinned ItPay CLI when execution is permitted and available in the current host. Install only through the host-permitted official installation path when authorized. Services tasks use the Services Skill; API tasks use the independent API Skill and `itpay api`. CLI calls HTTP APIs directly, never MCP transport. Without permitted CLI capability, use the corresponding ItPay-hosted user Services MCP or Hub MCP and only its actually available tools; ordinary users do not self-host another MCP. Platform-required workflows and explicit connection tests follow the actual available capability. Entry selection never authorizes a permission bypass: preserve the original identity, entry, request/run and current grant after acceptance or an unknown result. Continue across entries only when the owner explicitly supports recovery under the same actual authority; CLI errors never license a substitute transaction or raw HTTP workaround.
|
|
9
11
|
|
|
10
12
|
Use the installed `itpay` entry yourself. Understand the human’s complete goal and constraints; preserve the actual Agent Type, Backend and device identity. Installation preparation belongs to `install-and-setup`; after setup, ordinary tasks need no repeated installation, readyz or login checks.
|
|
@@ -5,10 +5,14 @@ description: Discover and invoke ItPay API Hub operations, read usage and wallet
|
|
|
5
5
|
|
|
6
6
|
# ItPay API
|
|
7
7
|
|
|
8
|
+
展示本人登录、办理或付款入口时,只使用工具返回的官方 HTML 卡、由同一 HTML 截图的官方图片和原官方链接。图片失败或宿主不能展示图片时,给出原链接、用途、当前状态、本人需做的动作及原任务 next;不得自行编码、重画、裁剪二维码,也不得换单或重建授权。
|
|
9
|
+
|
|
8
10
|
For a new task, prefer the official pinned ItPay CLI when execution is permitted and available in the current host. Install only through the host-permitted official installation path when authorized. Services tasks use the Services Skill; API tasks use the independent API Skill and `itpay api`. CLI calls HTTP APIs directly, never MCP transport. Without permitted CLI capability, use the corresponding ItPay-hosted user Services MCP or Hub MCP and only its actually available tools; ordinary users do not self-host another MCP. Platform-required workflows and explicit connection tests follow the actual available capability. Entry selection never authorizes a permission bypass: preserve the original identity, entry, request/run and current grant after acceptance or an unknown result. Continue across entries only when the owner explicitly supports recovery under the same actual authority; CLI errors never license a substitute transaction or raw HTTP workaround.
|
|
9
11
|
|
|
10
12
|
Use this Skill for API tasks; Services/railway instructions are not prerequisites. Use the installed pinned launcher and `itpay api --help`; `hub` is its compatibility alias. Keep the actual host/Agent Type, ITPAY_HUB_URL and permitted ITPAY_STATE_DIR across every command/session. Never switch accounts, spoof a host or clear identity to recover quota.
|
|
11
13
|
|
|
14
|
+
For an explicitly authorized **v4 dev API** task, select `ITPAY_HUB_URL=https://market-v4-dev.itpay.ai` before the first API command and preserve it with the permitted state directory. Its OAuth issuer is `https://auth-v4-dev.itpay.ai`; the CLI selects that issuer for this exact dev Hub unless explicitly configured otherwise. CLI resource is the Hub root, not the hosted MCP `/mcp` URL. For example, after the user selects v4 dev: `ITPAY_HUB_URL=https://market-v4-dev.itpay.ai itpay api connect --json`. Never select or switch dev merely because a request failed, and never infer the API identity from Services configuration. Local defaults and other explicit Hub/issuer configurations remain separate.
|
|
15
|
+
|
|
12
16
|
Connect with the existing `itpay api connect` browser OAuth flow when authentication is required. The human enters verification privately. Existing credentials and task files belong to their endpoint/resource; sharing an ItPay account does not merge OAuth grants, API budgets, Services devices or data ACLs. Never request tokens or codes in chat. Use `api doctor` only for an actual connection problem, not before every task.
|
|
13
17
|
|
|
14
18
|
Discover the published operation, inspect its current publication, input schema, effects, price and limits, then choose it only if it expresses all user constraints. Read normal text/JSON directly; do not write a parser or infer operation IDs from names. Read the exact command's help as needed. Templates containing placeholders are not executable next actions.
|