@xiaozhi-pro/connector 1.0.0 → 1.0.1

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 (3) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
  3. package/src/cli.js +4 -4
package/README.md CHANGED
@@ -10,6 +10,7 @@ Node 版实现,发布为 npm 包 `@xiaozhi-pro/connector`。
10
10
  node-connector/
11
11
  ├── package.json
12
12
  ├── README.md
13
+ ├── publish.md
13
14
  ├── LICENSE
14
15
  ├── bin/
15
16
  │ └── xiaozhi-pro-connector.js
@@ -30,6 +31,7 @@ node-connector/
30
31
  | 文件 | 作用 |
31
32
  | --- | --- |
32
33
  | `package.json` | npm 包配置、依赖、`bin` 命令、发布文件白名单 |
34
+ | `publish.md` | npm 发布流程 |
33
35
  | `bin/xiaozhi-pro-connector.js` | CLI 入口,调用 `src/cli.js` |
34
36
  | `src/cli.js` | 参数解析、自动探测、启动多个 Connector |
35
37
  | `src/detection.js` | 探测本地 Agent,组装启动命令、参数和环境变量 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaozhi-pro/connector",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "XiaozhiPro Agent Connector: bridge local ACP agents to XiaozhiPro Agent Gateway",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/src/cli.js CHANGED
@@ -2,13 +2,13 @@ import { AGENT_LABELS, AGENT_ORDER, collectTargets } from './detection.js';
2
2
  import { Connector } from './connector.js';
3
3
  import { log } from './log.js';
4
4
 
5
- const VERSION = '1.0.0';
5
+ const VERSION = '1.0.1';
6
6
  const SERVER = 'wss://api.qlcloud.top/xzp';
7
7
 
8
8
  const HELP = `Usage: xiaozhi-pro-connector [options]
9
9
 
10
10
  Options:
11
- --token <token> 小智Pro API Key,也可用 XIAOZHI_PRO_KEY
11
+ --token <token> 小智Pro API Key,也可用 XIAOZHI_PRO_TOKEN
12
12
  -h, --help 显示帮助
13
13
  -v, --version 显示版本
14
14
  `;
@@ -16,7 +16,7 @@ Options:
16
16
  function parseArgs(argv) {
17
17
  const opts = {
18
18
  server: SERVER,
19
- token: process.env.XIAOZHI_PRO_KEY || '',
19
+ token: process.env.XIAOZHI_PRO_TOKEN || '',
20
20
  cwd: process.cwd(),
21
21
  permission_mode: 'native',
22
22
  command: '',
@@ -85,7 +85,7 @@ async function main() {
85
85
  return 0;
86
86
  }
87
87
  if (!opts.token) {
88
- console.error('缺少 --token 或环境变量 XIAOZHI_PRO_KEY');
88
+ console.error('缺少 --token 或环境变量 XIAOZHI_PRO_TOKEN');
89
89
  return 1;
90
90
  }
91
91