@itpay/cli 2.0.0-rc.1 → 2.0.0-rc.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.
@@ -5,7 +5,7 @@ const INSTALL_TARGETS = {
5
5
  configFile: "~/.claude/settings.json",
6
6
  instructions: [
7
7
  "1. Ensure itpay is installed: npm install -g @itpay/cli",
8
- `2. Production API (default): ${DEFAULT_BASE_URL}`,
8
+ `2. Default API: ${DEFAULT_BASE_URL}`,
9
9
  "3. Use --agent-type claude-code-cli or claude-code-desktop",
10
10
  "4. Use --host claude-code for human-facing output",
11
11
  "5. The CLI renders checkout QR as markdown images and links",
@@ -16,7 +16,7 @@ const INSTALL_TARGETS = {
16
16
  configFile: "~/.codex/config.toml",
17
17
  instructions: [
18
18
  "1. Ensure itpay is installed: npm install -g @itpay/cli",
19
- `2. Production API (default): ${DEFAULT_BASE_URL}`,
19
+ `2. Default API: ${DEFAULT_BASE_URL}`,
20
20
  "3. Use --agent-type codex-cli or codex-desktop",
21
21
  "4. Use --host trae or --host codex for human-facing output",
22
22
  "5. Attach the emitted QR image and show the checkout link",
@@ -28,7 +28,7 @@ const INSTALL_TARGETS = {
28
28
  configFile: "shell profile (~/.zshrc, ~/.bashrc)",
29
29
  instructions: [
30
30
  "1. Install globally: npm install -g @itpay/cli",
31
- `2. Production API (default): ${DEFAULT_BASE_URL}`,
31
+ `2. Default API: ${DEFAULT_BASE_URL}`,
32
32
  "3. Set the real runtime type with --agent-type <type>",
33
33
  "4. Use --host terminal for text/QR output in terminal",
34
34
  "5. Override ITPAY_BACKEND_URL only for local or test backends",
@@ -39,7 +39,7 @@ const INSTALL_TARGETS = {
39
39
  configFile: "OpenClaw gateway config",
40
40
  instructions: [
41
41
  "1. Install itpay: npm install -g @itpay/cli",
42
- `2. Production API (default): ${DEFAULT_BASE_URL}`,
42
+ `2. Default API: ${DEFAULT_BASE_URL}`,
43
43
  "3. Set the real OpenClaw runtime with --agent-type <type>",
44
44
  "4. Use --host telegram --target <chat_id> for human-facing output",
45
45
  "5. The CLI emits openclaw_message payloads with buttons and QR images",
@@ -50,7 +50,7 @@ const INSTALL_TARGETS = {
50
50
  configFile: "Feishu bot config",
51
51
  instructions: [
52
52
  "1. Install itpay: npm install -g @itpay/cli",
53
- `2. Production API (default): ${DEFAULT_BASE_URL}`,
53
+ `2. Default API: ${DEFAULT_BASE_URL}`,
54
54
  "3. Set the real agent runtime with --agent-type <type>",
55
55
  "4. Use --host feishu --target <open_id> or --host lark --target <open_id>",
56
56
  "5. The CLI emits Interactive Card JSON with buttons and QR images",
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.1");
27
+ .version("2.0.0-rc.2");
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.1";
12
+ export const CLI_VERSION = "2.0.0-rc.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itpay/cli",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0-rc.2",
4
4
  "description": "ItPay CLI for V3 checkout, payment, order, refund, and agent-facing render flows.",
5
5
  "type": "module",
6
6
  "bin": {