@itpay/cli 2.0.1 → 2.0.2
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/README.md
CHANGED
|
@@ -8,7 +8,7 @@ itpay readyz
|
|
|
8
8
|
itpay docs show quickstart
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
The CLI defaults to the production API at `https://api.itpay.ai`. Set
|
|
12
12
|
`ITPAY_BACKEND_URL` only when intentionally using another backend.
|
|
13
13
|
|
|
14
14
|
## Commands
|
|
@@ -54,7 +54,7 @@ Aliases: `tg` and `openclaw-telegram` map to `telegram`; `feishu_im` and `fs` ma
|
|
|
54
54
|
|
|
55
55
|
## Environment
|
|
56
56
|
|
|
57
|
-
- `ITPAY_BACKEND_URL` — optional backend override (
|
|
57
|
+
- `ITPAY_BACKEND_URL` — optional backend override (default `https://api.itpay.ai`)
|
|
58
58
|
- `ITPAY_BEARER_TOKEN` — account-scoped session token (only needed for `orders`)
|
|
59
59
|
- `ITPAY_AGENT_DEVICE_ID` — agent device id, used for cart/service execution quota identity and `client_context`
|
|
60
60
|
- `ITPAY_CURRENCY` — checkout currency (default `CNY`)
|
package/dist/src/main.js
CHANGED
|
@@ -24,7 +24,7 @@ program
|
|
|
24
24
|
.name("itpay")
|
|
25
25
|
.description("V3 ItPay CLI — checkout, payment, order, and refund commands")
|
|
26
26
|
.option("--agent-type <type>", "agent runtime type used for device enrollment and client-specific guidance")
|
|
27
|
-
.version("2.0.
|
|
27
|
+
.version("2.0.2");
|
|
28
28
|
function withHost(value) {
|
|
29
29
|
const host = normalizeHost(value);
|
|
30
30
|
if (!host) {
|
package/dist/src/state/config.js
CHANGED
|
@@ -8,8 +8,8 @@ import { HttpClient } from "../client/http.js";
|
|
|
8
8
|
import { BackendClient } from "../client/backend.js";
|
|
9
9
|
import { DeviceAuthority } from "./device_authority.js";
|
|
10
10
|
import { OperationJournal } from "./operation_journal.js";
|
|
11
|
-
export const DEFAULT_BASE_URL = "https://
|
|
12
|
-
export const CLI_VERSION = "2.0.
|
|
11
|
+
export const DEFAULT_BASE_URL = "https://api.itpay.ai";
|
|
12
|
+
export const CLI_VERSION = "2.0.2";
|
|
13
13
|
export const API_CONTRACT_REVISION = "sha256:2c2829f4618c47bc505efc0ded853cf639d775585ba13aa23012197e39efa31f";
|
|
14
14
|
const CART_SESSION_DEFAULT_DIR = ".itpay-v3";
|
|
15
15
|
const CART_SESSION_FILENAME = "cart.json";
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"env_vars": {
|
|
30
30
|
"ITPAY_BACKEND_URL": {
|
|
31
31
|
"required": false,
|
|
32
|
-
"description": "Optional V3 backend override.
|
|
32
|
+
"description": "Optional V3 backend override. The CLI defaults to https://api.itpay.ai.",
|
|
33
33
|
"examples": ["http://localhost:18080", "https://test.itpay.ai"]
|
|
34
34
|
},
|
|
35
35
|
"ITPAY_BEARER_TOKEN": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"lark": "Use --host lark --target <open_id>. Same as feishu format."
|
|
64
64
|
},
|
|
65
65
|
"agent_rules": [
|
|
66
|
-
"Use the built-in https://
|
|
66
|
+
"Use the built-in https://api.itpay.ai production default; override ITPAY_BACKEND_URL only for another deliberate environment.",
|
|
67
67
|
"Install globally with npm install -g @itpay/cli for all hosts.",
|
|
68
68
|
"Identify the real runtime with --agent-type or ITPAY_AGENT_TYPE; do not invent a new type to obtain quota.",
|
|
69
69
|
"Run `itpay install` without arguments to see all supported targets.",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"required_state": {
|
|
13
13
|
"needs": [
|
|
14
14
|
"itpay CLI installed",
|
|
15
|
-
"
|
|
15
|
+
"production API at https://api.itpay.ai, or an intentional ITPAY_BACKEND_URL override",
|
|
16
16
|
"catalog item id, variant id, and offer id from `itpay catalog list`",
|
|
17
17
|
"real agent runtime type supplied through --agent-type or ITPAY_AGENT_TYPE"
|
|
18
18
|
],
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ itpay readyz
|
|
|
20
20
|
itpay docs show quickstart
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
The CLI defaults to `https://api.itpay.ai`. Set `ITPAY_BACKEND_URL`
|
|
24
24
|
only for an intentional override.
|
|
25
25
|
|
|
26
26
|
Every commerce flow must identify the real runtime. Pass the global option
|