@itpay/cli 2.0.0-rc.2 → 2.0.0

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
- This prerelease defaults to `https://test.itpay.ai`. Set
11
+ This test release defaults to `https://test.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 (prerelease default `https://test.itpay.ai`)
57
+ - `ITPAY_BACKEND_URL` — optional backend override (test-release default `https://test.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.0-rc.2");
27
+ .version("2.0.0");
28
28
  function withHost(value) {
29
29
  const host = normalizeHost(value);
30
30
  if (!host) {
@@ -9,7 +9,7 @@ import { BackendClient } from "../client/backend.js";
9
9
  import { DeviceAuthority } from "./device_authority.js";
10
10
  import { OperationJournal } from "./operation_journal.js";
11
11
  export const DEFAULT_BASE_URL = "https://test.itpay.ai";
12
- export const CLI_VERSION = "2.0.0-rc.2";
12
+ export const CLI_VERSION = "2.0.0";
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. This prerelease defaults to https://test.itpay.ai.",
32
+ "description": "Optional V3 backend override. This test release defaults to https://test.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://test.itpay.ai prerelease default; override ITPAY_BACKEND_URL only for another deliberate environment.",
66
+ "Use the built-in https://test.itpay.ai test-release 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
- "prerelease API at https://test.itpay.ai, or an intentional ITPAY_BACKEND_URL override",
15
+ "test-release API at https://test.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itpay/cli",
3
- "version": "2.0.0-rc.2",
3
+ "version": "2.0.0",
4
4
  "description": "ItPay CLI for V3 checkout, payment, order, refund, and agent-facing render flows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,7 +20,7 @@ itpay readyz
20
20
  itpay docs show quickstart
21
21
  ```
22
22
 
23
- This prerelease defaults to `https://test.itpay.ai`. Set `ITPAY_BACKEND_URL`
23
+ This test release defaults to `https://test.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