xparse-cli 2.2.2-beta.1 → 2.2.2-beta.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.
- package/README.md +15 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -162,6 +162,20 @@ xparse-cli --profile workbuddy parse report.pdf --api paid --auth-method oauth
|
|
|
162
162
|
该 Profile 的凭证保存在 `~/.xparse-cli/profiles/workbuddy/`,其登录和登出不会影响
|
|
163
163
|
终端中默认的 `~/.xparse-cli` 凭证;请求会自动携带 `X-From: workbuddy`。
|
|
164
164
|
|
|
165
|
+
EasyClaw 使用独立的 OAuth-only Profile:
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
xparse-cli --profile easyclaw auth device --output jsonl
|
|
169
|
+
xparse-cli --profile easyclaw auth status --output json
|
|
170
|
+
xparse-cli --profile easyclaw parse report.pdf
|
|
171
|
+
xparse-cli --profile easyclaw parse report.pdf --api paid --auth-method oauth
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
该 Profile 固定使用 OAuth Client `cli_textin_xparse_easyclaw`,凭证保存在
|
|
175
|
+
`~/.xparse-cli/profiles/easyclaw/`,不读取 AppKey 或其他 Profile 的 token。普通解析始终
|
|
176
|
+
调用 free API;只有显式 `--api paid` 才调用 paid API。请求自动携带
|
|
177
|
+
`X-From: easyclaw`。
|
|
178
|
+
|
|
165
179
|
## 命令一览
|
|
166
180
|
|
|
167
181
|
| 命令 | 说明 |
|
|
@@ -179,7 +193,7 @@ xparse-cli --profile workbuddy parse report.pdf --api paid --auth-method oauth
|
|
|
179
193
|
| `xparse-cli update` | 自更新 CLI 到最新版本 |
|
|
180
194
|
| `xparse-cli version` | 显示版本信息 |
|
|
181
195
|
|
|
182
|
-
全局参数 `--profile workbuddy`
|
|
196
|
+
全局参数 `--profile workbuddy` 或 `--profile easyclaw` 可放在子命令前后,用于选择隔离凭证。
|
|
183
197
|
|
|
184
198
|
## parse 命令参数
|
|
185
199
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xparse-cli",
|
|
3
|
-
"version": "2.2.2-beta.
|
|
3
|
+
"version": "2.2.2-beta.2",
|
|
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.2-beta.
|
|
23
|
-
"xparse-cli-darwin-arm64": "2.2.2-beta.
|
|
24
|
-
"xparse-cli-linux-amd64": "2.2.2-beta.
|
|
25
|
-
"xparse-cli-linux-arm64": "2.2.2-beta.
|
|
26
|
-
"xparse-cli-windows-amd64": "2.2.2-beta.
|
|
27
|
-
"xparse-cli-windows-arm64": "2.2.2-beta.
|
|
22
|
+
"xparse-cli-darwin-amd64": "2.2.2-beta.2",
|
|
23
|
+
"xparse-cli-darwin-arm64": "2.2.2-beta.2",
|
|
24
|
+
"xparse-cli-linux-amd64": "2.2.2-beta.2",
|
|
25
|
+
"xparse-cli-linux-arm64": "2.2.2-beta.2",
|
|
26
|
+
"xparse-cli-windows-amd64": "2.2.2-beta.2",
|
|
27
|
+
"xparse-cli-windows-arm64": "2.2.2-beta.2"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public",
|