@itpay/cli 2.0.27 → 2.0.29

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.
@@ -15,7 +15,7 @@ export async function runVaultList(backend, input) {
15
15
  const value = await backend.listBuyerVaultArtifacts(input);
16
16
  writeCommandEnvelope({
17
17
  status: value.items.length ? "vault_listed" : "no_vault_artifacts",
18
- result: { items: value.items, next_cursor: value.next_cursor ?? null },
18
+ result: { items: value.items, next_cursor: value.next_cursor || null },
19
19
  instruction: value.items.length
20
20
  ? "让用户选择一个 artifact_ref;需要首次读取授权时运行 itpay vault access --artifact <artifact_ref> --json。"
21
21
  : "当前账号没有匹配的 Vault 内容;不要猜测 artifact_ref。",
@@ -12,7 +12,7 @@ import { DeviceAuthority } from "./device_authority.js";
12
12
  import { OperationJournal } from "./operation_journal.js";
13
13
  export const DEFAULT_BASE_URL = "https://app.itpay.ai";
14
14
  export const DEV_BASE_URL = "https://dev.itpay.ai";
15
- export const CLI_VERSION = "2.0.27";
15
+ export const CLI_VERSION = "2.0.29";
16
16
  export const API_CONTRACT_REVISION = "sha256:9e46ee5a429994b3a9b86c94f210995053f78b3971621dbc2629c1a57107b070";
17
17
  const CART_SESSION_DEFAULT_DIR = ".itpay-v3";
18
18
  const CART_SESSION_FILENAME = "cart.json";
@@ -2,7 +2,7 @@ import { createHash, createPrivateKey, createPublicKey, generateKeyPairSync, ran
2
2
  import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, rmdirSync, statSync, unlinkSync, writeFileSync, } from "node:fs";
3
3
  import { homedir } from "node:os";
4
4
  import { dirname, resolve } from "node:path";
5
- const PROTECTED_PATHS = ["/v1/carts", "/v1/service-executions", "/v1/agent-instances", "/v1/orders", "/v1/refunds"];
5
+ const PROTECTED_PATHS = ["/v1/carts", "/v1/service-executions", "/v1/agent-instances", "/v1/orders", "/v1/refunds", "/v1/me", "/v1/vault"];
6
6
  export class DeviceAuthority {
7
7
  baseURL;
8
8
  backendKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itpay/cli",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "description": "The single ItPay CLI entry point for buy workflows and future sell workflows.",
5
5
  "type": "module",
6
6
  "bin": {