xparse-cli 2.2.3 → 2.2.4

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/README.md +8 -2
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -16,6 +16,9 @@ npm install -g xparse-cli
16
16
 
17
17
  安装后可运行 `xparse-cli version` 检查版本。
18
18
 
19
+ WorkBuddy 集成、国内/海外 Connector 区别、beta 命名规则及完整发版步骤见
20
+ [WorkBuddy Connector 概念与发版流程](docs/workbuddy_connector_release.md)。
21
+
19
22
  ### 一键安装
20
23
 
21
24
  **Linux / macOS**
@@ -213,7 +216,7 @@ xparse-cli --profile easyclaw parse report.pdf --api paid --auth-method oauth
213
216
  | `--include-char-details` | `false` | 返回字符级坐标和置信度 |
214
217
  | `--table-view` | `html` | 表格视图:`html`、`markdown` |
215
218
  | `--list` | | 从文件读取输入列表(需配合 `--output`) |
216
- | `--output` | _(stdout)_ | 输出文件路径或目录(目录须已存在) |
219
+ | `--output` | _(stdout)_ | 输出文件路径或目录(目录不存在时自动创建) |
217
220
 
218
221
  **全局参数(所有命令均支持):**
219
222
 
@@ -355,7 +358,10 @@ OAuth 参数优先级:
355
358
 
356
359
  稳定错误码至少包括:`FILE_NOT_FOUND`、`EMPTY_FILE`、`UNSUPPORTED_FILE_TYPE`、
357
360
  `FILE_TOO_LARGE`、`PAGE_LIMIT_EXCEEDED`、`PAID_QUOTA_REQUIRED`、
358
- `CAPABILITY_QUERY_FAILED`、`SPLIT_FAILED`、`MERGE_FAILED` 和 `RETRY_EXHAUSTED`。
361
+ `AUTHENTICATION_FAILED`、`CAPABILITY_QUERY_FAILED`、`OUTPUT_FAILED`、`SPLIT_FAILED`、
362
+ `MERGE_FAILED` 和 `RETRY_EXHAUSTED`。服务端返回 `40422` 时仍包装为
363
+ `SERVICE_ERROR`,`message` 保留服务端给出的直接原因;程序判断使用 `next_action`,
364
+ 诊断时可读取 `details.api_code` 和 `request_id`。
359
365
 
360
366
  人工调试或兼容旧脚本时可使用 `--error-format=text`,恢复原有的多行文本与建议格式。
361
367
  其他子命令继续使用原有文本错误格式。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xparse-cli",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "TextIn xParse command-line client for document parsing",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -19,12 +19,12 @@
19
19
  "node": ">=18"
20
20
  },
21
21
  "optionalDependencies": {
22
- "xparse-cli-darwin-amd64": "2.2.3",
23
- "xparse-cli-darwin-arm64": "2.2.3",
24
- "xparse-cli-linux-amd64": "2.2.3",
25
- "xparse-cli-linux-arm64": "2.2.3",
26
- "xparse-cli-windows-amd64": "2.2.3",
27
- "xparse-cli-windows-arm64": "2.2.3"
22
+ "xparse-cli-darwin-amd64": "2.2.4",
23
+ "xparse-cli-darwin-arm64": "2.2.4",
24
+ "xparse-cli-linux-amd64": "2.2.4",
25
+ "xparse-cli-linux-arm64": "2.2.4",
26
+ "xparse-cli-windows-amd64": "2.2.4",
27
+ "xparse-cli-windows-arm64": "2.2.4"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public",