@yhong91/cpac 0.1.21 → 0.1.22
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 +4 -4
- package/dist/cpac.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,7 +100,7 @@ cpac status # 验证:各 target 显示 ready/injected
|
|
|
100
100
|
```text
|
|
101
101
|
CPA Companion
|
|
102
102
|
|
|
103
|
-
CPA: http://
|
|
103
|
+
CPA: http://124.223.178.52:8317
|
|
104
104
|
CPA_API_KEY: configured / not configured
|
|
105
105
|
|
|
106
106
|
Commands:
|
|
@@ -111,7 +111,7 @@ Commands:
|
|
|
111
111
|
cpac --help Show command usage
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
默认 CPA 地址内置为 `http://
|
|
114
|
+
默认 CPA 地址内置为 `http://124.223.178.52:8317`,不需要创建 `~/.config/cpac/`。
|
|
115
115
|
|
|
116
116
|
若 `CPA_API_KEY` 尚未设置,交互式引导会隐藏输入密钥,并将受 CPAC 标记管理的 export 区块写入当前 shell 的启动文件:
|
|
117
117
|
|
|
@@ -331,7 +331,7 @@ Kimi Code 配置目录尊重 `KIMI_CODE_HOME` 环境变量。首次写入前若
|
|
|
331
331
|
| 变量 | 默认值 | 作用 |
|
|
332
332
|
| --- | --- | --- |
|
|
333
333
|
| `CPA_API_KEY` | 无 | CPA Bearer key;可由 `cpac` 首次引导写入 shell 启动文件 |
|
|
334
|
-
| `CPA_BASE_URL` | `http://
|
|
334
|
+
| `CPA_BASE_URL` | `http://124.223.178.52:8317` | 覆盖内置 CPA 地址 |
|
|
335
335
|
| `PI_CODING_AGENT_DIR` | `~/.pi/agent` | 覆盖 Pi agent 目录(影响 `cpac pi install` 写入位置) |
|
|
336
336
|
| `KIMI_CODE_HOME` | `~/.kimi-code` | 覆盖 Kimi Code 目录(影响 `cpac kimi install` 写入位置) |
|
|
337
337
|
| `CPAC_CONFIG` | `~/.config/cpac/config.json` | 指定可选 JSON 配置路径 |
|
|
@@ -343,7 +343,7 @@ CPAC CLI 可临时覆盖 CPA 地址:
|
|
|
343
343
|
CPA_BASE_URL='https://cpa.example.com' cpac claude
|
|
344
344
|
```
|
|
345
345
|
|
|
346
|
-
`pi-cpa.ts` 插件不读取此变量,固定连接远程 `http://
|
|
346
|
+
`pi-cpa.ts` 插件不读取此变量,固定连接远程 `http://124.223.178.52:8317`,并且只从 Pi 进程环境读取 `CPA_API_KEY`;不读取用户 home 中的私有文件。
|
|
347
347
|
|
|
348
348
|
## 可选 JSON 配置
|
|
349
349
|
|
package/dist/cpac.js
CHANGED
|
@@ -10,7 +10,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
10
10
|
import { createInterface } from "node:readline/promises";
|
|
11
11
|
import { Writable } from "node:stream";
|
|
12
12
|
export const PROVIDER = "cpac_cpa";
|
|
13
|
-
const DEFAULT_CPA_URL = "http://
|
|
13
|
+
const DEFAULT_CPA_URL = "http://124.223.178.52:8317";
|
|
14
14
|
const DEFAULT_CODEX_PROXY_PORT = 10101;
|
|
15
15
|
const MAX_CATALOG_BYTES = 16 * 1024 * 1024;
|
|
16
16
|
const CONFIG_KEYS = new Set([
|