@anyuse/cli 0.1.1 → 0.1.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 CHANGED
@@ -1,39 +1,45 @@
1
1
  # Anyuse CLI
2
2
 
3
- 在终端搜索 Anyuse 提供的 API、查看报价,并在指定预算内运行任务。输出为 JSON,可直接用于脚本和 Agent。[Anyuse 官网](https://anyuse.app) · [API 文档](https://anyuse.app/docs)
3
+ Search the Anyuse API catalog from your terminal, get a price quote, and run an operation with a per-call spending limit. The CLI returns JSON for scripts and agents.
4
4
 
5
- ## 安装
5
+ [中文文档](README.zh-CN.md) · [API docs](https://anyuse.app/docs) · [npm package](https://www.npmjs.com/package/@anyuse/cli)
6
6
 
7
- CLI 已发布到 npm,安装稳定版需要 Node.js 22.12 或更高版本。[npm 包页面](https://www.npmjs.com/package/@anyuse/cli)
7
+ ## Install
8
+
9
+ With Node.js 22.12 or later, install the CLI and check the version:
8
10
 
9
11
  ```sh
10
12
  npm install -g @anyuse/cli@latest
11
13
  anyuse --version
12
14
  ```
13
15
 
14
- 也可以用 `npx @anyuse/cli@latest --help` 直接试用。
16
+ To see the available commands without a global install, run `npx @anyuse/cli@latest --help`.
15
17
 
16
- ## 试一次搜索
18
+ ## Find an operation
17
19
 
18
- 查询目录免费,无需 API Key。用小红书搜索为例,先看它接受哪些参数、返回什么数据。
20
+ Catalog searches are free and work without an API key. For example, find the Xiaohongshu (RedNote) search operation and inspect its input schema and pricing.
19
21
 
20
22
  ```sh
21
- anyuse capabilities search 小红书
23
+ anyuse capabilities search redbook
22
24
  anyuse capabilities inspect redbook.note.search
23
25
  ```
24
26
 
25
- 要获取报价或执行搜索,请先在 [Anyuse 控制台创建 API Key](https://anyuse.app/console/keys),并将它设为环境变量 `ANYUSE_API_KEY`。下面的命令只查看报价,免费。
27
+ ## Get a quote
28
+
29
+ Create an API key in the [Anyuse console](https://anyuse.app/console/keys) and set the `ANYUSE_API_KEY` environment variable in your shell. A quote is free. This example asks what it would cost to search for posts about coffee.
26
30
 
27
31
  ```sh
28
- anyuse quote redbook.note.search --input '{"keyword":"咖啡"}'
32
+ anyuse quote redbook.note.search --input '{"keyword":"coffee"}'
29
33
  ```
30
34
 
31
- 需要实际结果时再执行。此例允许本次调用最多消费 0.10 美元,报价超出预算会直接退出。
35
+ ## Run with a spending limit
36
+
37
+ When you want the search results, run the operation with a budget in USD. The command below gets a fresh quote and submits the search if it fits within $0.10. With `--no-input`, an over-budget quote makes the command exit before submission. Use `--wait` to wait for the result.
32
38
 
33
39
  ```sh
34
- anyuse run redbook.note.search --input '{"keyword":"咖啡"}' --max-cost 0.10 --no-input --wait
40
+ anyuse run redbook.note.search --input '{"keyword":"coffee"}' --max-cost 0.10 --no-input --wait
35
41
  ```
36
42
 
37
- 运行中断后,已有执行 ID 时可用 `anyuse jobs get <id>` 查询原任务。完整命令见 `anyuse --help`,自动化调用和请求恢复见 [Agent Skill](skills/anyuse/SKILL.md)。
43
+ If the wait is interrupted and you have an execution ID, check the existing job with `anyuse jobs get <execution-id>`. For request recovery and automation examples, see the [agent skill](skills/anyuse/SKILL.md) (in Chinese).
38
44
 
39
- [参与开发](CONTRIBUTING.md) · [发布说明](RELEASING.md) · [MIT 许可证](LICENSE)
45
+ [Contributing](CONTRIBUTING.md) · [Release guide](RELEASING.md) · [MIT license](LICENSE)
@@ -0,0 +1,41 @@
1
+ # Anyuse CLI
2
+
3
+ [English](README.md)
4
+
5
+ 在终端搜索 Anyuse 提供的 API、查看报价,并在指定预算内运行任务。输出为 JSON,可直接用于脚本和 Agent。[Anyuse 官网](https://anyuse.app) · [API 文档](https://anyuse.app/docs)
6
+
7
+ ## 安装
8
+
9
+ CLI 已发布到 npm,安装稳定版需要 Node.js 22.12 或更高版本。[npm 包页面](https://www.npmjs.com/package/@anyuse/cli)
10
+
11
+ ```sh
12
+ npm install -g @anyuse/cli@latest
13
+ anyuse --version
14
+ ```
15
+
16
+ 也可以用 `npx @anyuse/cli@latest --help` 直接试用。
17
+
18
+ ## 试一次搜索
19
+
20
+ 查询目录免费,无需 API Key。用小红书搜索为例,先看它接受哪些参数、返回什么数据。
21
+
22
+ ```sh
23
+ anyuse capabilities search 小红书
24
+ anyuse capabilities inspect redbook.note.search
25
+ ```
26
+
27
+ 要获取报价或执行搜索,请先在 [Anyuse 控制台创建 API Key](https://anyuse.app/console/keys),并将它设为环境变量 `ANYUSE_API_KEY`。下面的命令只查看报价,免费。
28
+
29
+ ```sh
30
+ anyuse quote redbook.note.search --input '{"keyword":"咖啡"}'
31
+ ```
32
+
33
+ 需要实际结果时再执行。此例允许本次调用最多消费 0.10 美元,报价超出预算会直接退出。
34
+
35
+ ```sh
36
+ anyuse run redbook.note.search --input '{"keyword":"咖啡"}' --max-cost 0.10 --no-input --wait
37
+ ```
38
+
39
+ 运行中断后,已有执行 ID 时可用 `anyuse jobs get <id>` 查询原任务。完整命令见 `anyuse --help`,自动化调用和请求恢复见 [Agent Skill](skills/anyuse/SKILL.md)。
40
+
41
+ [参与开发](CONTRIBUTING.md) · [发布说明](RELEASING.md) · [MIT 许可证](LICENSE)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anyuse/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Discover, quote, and run external capabilities through the Anyuse API.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,6 +8,7 @@
8
8
  "anyuse": "dist/index.js"
9
9
  },
10
10
  "files": [
11
+ "README.zh-CN.md",
11
12
  "dist/*.js",
12
13
  "skills/anyuse/SKILL.md"
13
14
  ],