@xiashe/cli 0.1.24 → 0.1.25

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.
Files changed (2) hide show
  1. package/bin/xiashe.mjs +10 -2
  2. package/package.json +2 -2
package/bin/xiashe.mjs CHANGED
@@ -40,7 +40,8 @@ const {
40
40
  preflightAlipay402Resource,
41
41
  payAlipay402Resource,
42
42
  queryAlipay402Resource,
43
- diagnoseAlipay402Resource
43
+ diagnoseAlipay402Resource,
44
+ createAlipay402SupportReport
44
45
  } = sdk;
45
46
 
46
47
  const EXIT_USAGE = 2;
@@ -103,6 +104,7 @@ Usage:
103
104
  ${c} payment pay --resource-url <https-url> --intent-summary <text> --confirm [--wallet-timeout-ms <ms>]
104
105
  ${c} payment status --resource-url <https-url>
105
106
  ${c} payment diagnose --resource-url <https-url>
107
+ ${c} payment support-report --resource-url <https-url>
106
108
 
107
109
  ${c} ops doctor
108
110
 
@@ -1196,7 +1198,13 @@ async function cmdPayment(sub, args, global) {
1196
1198
  print(result, global);
1197
1199
  return;
1198
1200
  }
1199
- fail(`Usage: ${COMMAND_NAME} payment bridge-info|doctor|preflight|pay|status|diagnose`, EXIT_USAGE);
1201
+ if (sub === 'support-report') {
1202
+ const resourceUrl = requireArg(flags['resource-url'] || flags.resourceUrl || flags.r, '--resource-url');
1203
+ const result = await createAlipay402SupportReport({ resourceUrl }, { timeoutMs: global.timeoutMs });
1204
+ print(result, global);
1205
+ return;
1206
+ }
1207
+ fail(`Usage: ${COMMAND_NAME} payment bridge-info|doctor|preflight|pay|status|diagnose|support-report`, EXIT_USAGE);
1200
1208
  }
1201
1209
 
1202
1210
  async function cmdOps(sub, args, global) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiashe/cli",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "xiashe": "bin/xiashe.mjs"
@@ -10,7 +10,7 @@
10
10
  "README.md"
11
11
  ],
12
12
  "dependencies": {
13
- "@xiashe/sdk": "0.1.24"
13
+ "@xiashe/sdk": "0.1.25"
14
14
  },
15
15
  "engines": {
16
16
  "node": ">=20"