pi-openai-toolkit 0.14.13 → 0.15.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.
- package/README.md +250 -241
- package/README.zh.md +250 -241
- package/config.schema.json +352 -0
- package/docs/configuration.md +176 -0
- package/docs/internals.md +139 -128
- package/package.json +135 -127
- package/src/auto-mode/extension.ts +35 -13
- package/src/config/legacy.ts +717 -0
- package/src/config/migration.ts +100 -0
- package/src/config/notifications.ts +28 -0
- package/src/config/policy.ts +122 -0
- package/src/config/v2.ts +1347 -0
- package/src/config-command.ts +73 -0
- package/src/config.ts +318 -739
- package/src/context-management/tools.ts +353 -347
- package/src/context-management/window-manager.ts +696 -693
- package/src/debug.ts +5 -5
- package/src/deferred-tool-carryover.ts +3 -1
- package/src/extension-runtime.ts +1375 -1329
- package/src/image-generation/extension.ts +14 -18
- package/src/image-generation/protocol.ts +10 -4
- package/src/image-generation/service.ts +9 -3
- package/src/request-context-cache.ts +2 -1
- package/src/types.ts +641 -628
- package/src/web-search/alpha-client.ts +876 -875
- package/src/web-search/extension.ts +529 -523
- package/src/web-search/payload.ts +299 -295
- package/src/web-search/prompt.ts +60 -59
- package/src/web-search/types.ts +144 -144
package/README.zh.md
CHANGED
|
@@ -1,241 +1,250 @@
|
|
|
1
|
-
# pi-openai-toolkit
|
|
2
|
-
|
|
3
|
-
为 Pi 添加 Codex 上下文窗口、Responses 压缩、托管工具和工具调用审查。
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/pi-openai-toolkit)
|
|
6
|
-
[](LICENSE)
|
|
7
|
-
|
|
8
|
-
[英文版](README.md)
|
|
9
|
-
|
|
10
|
-
## 功能
|
|
11
|
-
|
|
12
|
-
| 功能 | 用途 |
|
|
13
|
-
| --- | --- |
|
|
14
|
-
| Codex 远程上下文 |
|
|
15
|
-
| 远程压缩 v2 | 使用服务端返回的加密检查点继续符合条件的 Responses 会话。 |
|
|
16
|
-
| 联网搜索路由 |
|
|
17
|
-
| 图像生成 |
|
|
18
|
-
| 工具调用审查 |
|
|
19
|
-
|
|
20
|
-
本包沿用 Pi 已有的模型、认证和会话配置,不新增提供商或模型。
|
|
21
|
-
|
|
22
|
-
## 安装
|
|
23
|
-
|
|
24
|
-
需要 Pi 0.85.1 或更高版本,以及 Node.js 22.19.0 或更高版本。
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
{
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
|
209
|
-
|
|
|
210
|
-
| `
|
|
211
|
-
| `
|
|
212
|
-
| `
|
|
213
|
-
| `
|
|
214
|
-
| `
|
|
215
|
-
| `
|
|
216
|
-
| `
|
|
217
|
-
| `
|
|
218
|
-
| `
|
|
219
|
-
| `
|
|
220
|
-
| `
|
|
221
|
-
| `
|
|
222
|
-
| `
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
## 开发
|
|
229
|
-
|
|
230
|
-
在仓库根目录安装依赖后运行:
|
|
231
|
-
|
|
232
|
-
```bash
|
|
233
|
-
npm run typecheck
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
1
|
+
# pi-openai-toolkit
|
|
2
|
+
|
|
3
|
+
为 Pi 添加 Codex 上下文窗口、Responses 压缩、托管工具和工具调用审查。
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/pi-openai-toolkit)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
[英文版](README.md)
|
|
9
|
+
|
|
10
|
+
## 功能
|
|
11
|
+
|
|
12
|
+
| 功能 | 用途 |
|
|
13
|
+
| --- | --- |
|
|
14
|
+
| Codex 远程上下文 | 使用适配的 Codex 窗口协议切换上下文窗口,并通过 `history` 检索较早窗口。 |
|
|
15
|
+
| 远程压缩 v2 | 使用服务端返回的加密检查点继续符合条件的 Responses 会话。 |
|
|
16
|
+
| 联网搜索路由 | 按精确模型选择本地 `pi-web-access`、Responses 托管 `web_search` 或实验性的 CPA 独立 `web_run`。 |
|
|
17
|
+
| 图像生成 | 调用 Responses 托管生图工具生成图片,或编辑明确传入的本地参考图片。 |
|
|
18
|
+
| 工具调用审查 | 使用 Toolkit 的审批门禁,由审查模型判断指定工具调用是否可以执行。 |
|
|
19
|
+
|
|
20
|
+
本包沿用 Pi 已有的模型、认证和会话配置,不新增提供商或模型。
|
|
21
|
+
|
|
22
|
+
## 安装
|
|
23
|
+
|
|
24
|
+
需要 Pi 0.85.1 或更高版本,以及 Node.js 22.19.0 或更高版本。
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pi install npm:pi-openai-toolkit
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
在当前项目中安装扩展时加上 `--local`。Toolkit 策略仍然只使用全局配置,不支持项目配置或环境变量策略覆盖。
|
|
31
|
+
|
|
32
|
+
没有配置文件时,符合条件的模型启用远程压缩 v2,远程上下文窗口关闭,搜索不由 Toolkit 管理,图像生成关闭,自动模式不可用。这些默认值不表示后端能力已经验证。
|
|
33
|
+
|
|
34
|
+
Toolkit 唯一的配置文件是:
|
|
35
|
+
|
|
36
|
+
`~/.pi/agent/extensions/pi-openai-toolkit/config.json`
|
|
37
|
+
|
|
38
|
+
下文除 Pi 模型注册示例外,其他 JSON 示例均使用**配置格式 v2**。文件不存在时,创建文件及所需目录;已有 v2 配置时,将示例合并到对应对象并保留其他设置。无版本号的旧格式仍受支持,请勿直接加入 v2 字段,也不要用示例覆盖原文件。先运行 `/toolkit-config migration-preview`;[配置参考](docs/configuration.md)说明了审查和已安装版本检查要求。读取配置和预览迁移都不会改写源文件。
|
|
39
|
+
|
|
40
|
+
## 快速开始:启用远程上下文
|
|
41
|
+
|
|
42
|
+
本节适用于想使用 Codex 风格上下文窗口的用户。如果只需要搜索、生图或工具调用审查,请跳到[常见用法](#常见用法)。
|
|
43
|
+
|
|
44
|
+
### 使用 Pi 内置的 Codex 提供商
|
|
45
|
+
|
|
46
|
+
你需要先登录 Pi 内置的 `openai-codex` 提供商。创建或合并以下 v2 Toolkit 配置:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"schemaVersion": 2,
|
|
51
|
+
"defaults": {
|
|
52
|
+
"context": { "mode": "remote-windows" }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
使用已有 Codex 模型目录中的模型启动 Pi:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pi --model openai-codex/<model-id>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
将 `<model-id>` 换成 Pi 配置中实际显示的模型 ID。会话中出现 `new_context`、`get_context_remaining`、`history` 和 `notes`,说明已经激活;这不代表已完成后端往返验证。
|
|
64
|
+
|
|
65
|
+
### 使用兼容网关
|
|
66
|
+
|
|
67
|
+
本路线要求使用 `openai-responses`,并且网关保留远程上下文所需的 Codex 协议字段。普通对话请求成功,不代表远程上下文兼容性已经验证。
|
|
68
|
+
|
|
69
|
+
如果 `~/.pi/agent/models.json` 中已有兼容模型,可以跳过注册,直接设置下方 Toolkit 精确模型覆盖。否则,添加或合并下面的 Pi 提供商配置。请替换提供商名称、地址、环境变量和模型字段。示例数字不是项目默认值。
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"providers": {
|
|
74
|
+
"my-gateway": {
|
|
75
|
+
"baseUrl": "https://your-gateway.example/v1",
|
|
76
|
+
"api": "openai-responses",
|
|
77
|
+
"apiKey": "$MY_GATEWAY_KEY",
|
|
78
|
+
"models": [{
|
|
79
|
+
"id": "gpt-5.6-luna",
|
|
80
|
+
"name": "GPT-5.6 Luna",
|
|
81
|
+
"reasoning": true,
|
|
82
|
+
"input": ["text"],
|
|
83
|
+
"contextWindow": 272000,
|
|
84
|
+
"maxTokens": 128000
|
|
85
|
+
}]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
启动 Pi 前设置配置中引用的密钥。PowerShell 使用:
|
|
92
|
+
|
|
93
|
+
```powershell
|
|
94
|
+
$env:MY_GATEWAY_KEY = "replace-with-your-gateway-key"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
POSIX shell 使用:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
export MY_GATEWAY_KEY="replace-with-your-gateway-key"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
使用同一个终端启动 Pi。在 Toolkit 配置中,确保键与已注册的提供商名称和模型 ID 完全一致:
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
{
|
|
107
|
+
"schemaVersion": 2,
|
|
108
|
+
"models": {
|
|
109
|
+
"my-gateway/gpt-5.6-luna": {
|
|
110
|
+
"context": { "mode": "remote-windows" },
|
|
111
|
+
"compatibility": { "transport": "codex-gateway" }
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
pi --model my-gateway/gpt-5.6-luna
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
检查是否出现 `new_context`、`get_context_remaining`、`history` 和 `notes`。如果没有,查看通知与 `/toolkit-config`,再检查精确模型键、Pi API、认证和基础 URL。传输设置只是显式选择协议适配,不会注册模型,也不能证明后端支持。
|
|
122
|
+
|
|
123
|
+
较早窗口仍可通过 `history` 检索,但不会全部自动加入当前上下文。
|
|
124
|
+
|
|
125
|
+
## 常见用法
|
|
126
|
+
|
|
127
|
+
### 使用服务端压缩继续会话
|
|
128
|
+
|
|
129
|
+
使用 `context.mode: "remote-compaction"` 选择 Responses 压缩路径(默认值),或设为 `"pi"` 交回 Toolkit 的上下文管理权。只有需要独立模型生成检查点时才设置 `context.remoteCompaction.model`。这些字段放在 `defaults` 或精确的 `models` 覆盖下。
|
|
130
|
+
|
|
131
|
+
`context.remoteCompaction.inputSource` 默认为 `"legacy"`:首次压缩使用 Pi 当前会话上下文,最后才回退到事件提供的数据;递归压缩使用原始分支尾部。这保留了既有行为,但当其他扩展改写消息时,可能与提供商实际看到的上下文不同。
|
|
132
|
+
|
|
133
|
+
主动选择 `"pi-context-hook"` 后,使用 Pi 有序上下文钩子投影。如果桥接不可用,压缩会取消,不会发送未投影的历史。检查点与来源绑定,切换来源后必须创建新检查点。详见[协议说明](docs/internals.md#remote-compaction-v2-wire-contract)。
|
|
134
|
+
|
|
135
|
+
### 选择联网搜索路由
|
|
136
|
+
|
|
137
|
+
设置全局默认值和精确模型覆盖:
|
|
138
|
+
|
|
139
|
+
```json
|
|
140
|
+
{
|
|
141
|
+
"schemaVersion": 2,
|
|
142
|
+
"defaults": {
|
|
143
|
+
"webSearch": { "route": "local" }
|
|
144
|
+
},
|
|
145
|
+
"models": {
|
|
146
|
+
"my-gateway/gpt-5.6-luna": {
|
|
147
|
+
"webSearch": { "route": "hosted" }
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
- `unmanaged` 释放 Toolkit 的管理权,不会关闭第三方搜索或所有网络访问。
|
|
154
|
+
- `local` 保留本地 `pi-web-access` 工具原先的激活状态,并从提供商请求中移除冲突的托管或独立搜索工具。原先未激活的本地工具不会被自动激活。
|
|
155
|
+
- `hosted` 用原生 Responses 搜索工具和来源标注替换本地 `web_search` 函数。
|
|
156
|
+
- `standalone-alpha` 显式启用实验性的 CPA/Codex 网关搜索。它暴露顺序执行的 `web_run`,每次调用向提供商相对路径 `/alpha/search` 发送一次隔离请求,使用当前 Pi 模型及认证。网关必须实际支持该端点和能力,Toolkit 不会探测或替你开启。
|
|
157
|
+
|
|
158
|
+
精确覆盖优先于默认值。不支持模式匹配、猜测能力或路由间回退。选中策略无效时,会阻止受影响操作,不会改选其他路由。旧版托管模型列表仍可读取,但其宽松失败处理与 v2 显式 `hosted` 不完全相同;迁移预览会标出差异。
|
|
159
|
+
|
|
160
|
+
### 生成图片
|
|
161
|
+
|
|
162
|
+
图像生成需要 Responses 会话,并且可能产生服务商费用。全局启用方式如下:
|
|
163
|
+
|
|
164
|
+
```json
|
|
165
|
+
{
|
|
166
|
+
"schemaVersion": 2,
|
|
167
|
+
"defaults": {
|
|
168
|
+
"imageGeneration": {
|
|
169
|
+
"enabled": true,
|
|
170
|
+
"defaultModel": "gpt-image-2.5",
|
|
171
|
+
"allowedModels": ["gpt-image-2.5", "grok-imagine-image-2.0"]
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
这里填写嵌套 Responses `image_generation` 工具使用的裸输出模型 ID。列表顺序不决定默认模型。`defaultModel` 必须属于非空的 `allowedModels` 列表,单次调用的可选 `model` 也必须在列表中。无效策略或不允许的选择会在认证、参考图上传及付费请求前被拒绝。提供商必须支持所选模型。
|
|
178
|
+
|
|
179
|
+
`openai_generate_image` 支持文生图和使用明确传入的本地参考图进行编辑。生图策略不能按当前会话模型覆盖。
|
|
180
|
+
|
|
181
|
+
### 启用工具调用自动审查
|
|
182
|
+
|
|
183
|
+
为精确模型开放自动模式,并选择审查模型:
|
|
184
|
+
|
|
185
|
+
```json
|
|
186
|
+
{
|
|
187
|
+
"schemaVersion": 2,
|
|
188
|
+
"models": {
|
|
189
|
+
"my-gateway/gpt-5.6-luna": {
|
|
190
|
+
"autoMode": {
|
|
191
|
+
"available": true,
|
|
192
|
+
"reviewerModel": "my-gateway/gpt-5.6-luna"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
`available` 表示允许开启,使用 `/auto on` 或 `--auto` 才会实际开启;`/auto off` 明确关闭。默认 `side-effect` 范围覆盖 `bash`、`write`、`edit` 和额外配置的工具;`gate: "all"` 审查所有工具调用。审查超时不会自动放行。运行中配置变为无效时,已开启的门禁继续阻止调用,直到修正配置或明确关闭。
|
|
200
|
+
|
|
201
|
+
TUI 会显示开启提示、审查活动和底部状态。兼容的 Pi 工具渲染器还会显示每次调用的允许、拒绝、阻止或未审查状态。如果渲染接口不可用,Toolkit 告警一次并保留底部显示。审查器、分类器和熔断器的高级配置见[配置参考](docs/configuration.md)。
|
|
202
|
+
|
|
203
|
+
## 常用配置
|
|
204
|
+
|
|
205
|
+
全局文件按内置值、`defaults`、精确 `models["provider/model-id"]` 的顺序解析。缺失字段继承,数组整体替换,`false` 和 `0` 保持含义。支持的可选模型引用可以用 `null` 清除继承。默认值不是总开关:精确覆盖可以开启默认关闭的功能。
|
|
206
|
+
|
|
207
|
+
| 配置项 | 默认值 | 用途 |
|
|
208
|
+
| --- | --- | --- |
|
|
209
|
+
| `defaults.context.mode` | `"remote-compaction"` | `"pi"`、`"remote-compaction"` 或 `"remote-windows"`。 |
|
|
210
|
+
| `models[exact].compatibility.transport` | `"standard"` | 用 `"codex-gateway"` 显式选择网关协议。 |
|
|
211
|
+
| `defaults.context.remoteCompaction.model` | `null` | 可选的检查点生成模型。 |
|
|
212
|
+
| `defaults.context.remoteCompaction.inputSource` | `"legacy"` | 与检查点来源绑定的输入策略。 |
|
|
213
|
+
| `defaults.context.remoteWindows.reminderThresholdPercent` | `5` | `0` 关闭提醒和窗口耗尽兜底。 |
|
|
214
|
+
| `defaults.webSearch.route` | `"unmanaged"` | Toolkit 搜索管理策略。 |
|
|
215
|
+
| `defaults.imageGeneration.enabled` | `false` | 全局生图开关。 |
|
|
216
|
+
| `defaults.imageGeneration.defaultModel` | `"gpt-image-2.5"` | 明确指定默认输出模型。 |
|
|
217
|
+
| `defaults.imageGeneration.allowedModels` | `["gpt-image-2.5"]` | 允许的输出模型,仅支持全局设置。 |
|
|
218
|
+
| `defaults.autoMode.available` | `false` | 是否允许开启工具审查。 |
|
|
219
|
+
| `defaults.autoMode.gate` | `"side-effect"` | 指定副作用工具,或 `"all"`。 |
|
|
220
|
+
| `defaults.autoMode.timeoutMs` | `30000` | 审查超时,单位为毫秒。 |
|
|
221
|
+
| `diagnostics.level` | `"info"` | `"debug"` 开启调试产物。 |
|
|
222
|
+
| `diagnostics.captureRequests` / `captureResponses` | `false` | 分别开启请求或压缩响应捕获。 |
|
|
223
|
+
|
|
224
|
+
使用 `/toolkit-config` 查看有效值及来源,`/toolkit-config validate` 查看文档问题,`/toolkit-config migration-preview` 预览只读的旧格式迁移候选。这些命令需要 UI,不查询网络或认证,不激活工具,也不写文件。选中配置不表示后端支持已验证。
|
|
225
|
+
|
|
226
|
+
未知 v2 策略键和畸形值会产生可见的分范围错误,不依赖调试模式。每个公开回调或工具执行及其等待的辅助操作使用同一份不可变快照,后续操作重新读取文件;独立 Pi 事件之间不保证原子事务。完整选项见[配置参考](docs/configuration.md)和[编辑器 schema](config.schema.json)。
|
|
227
|
+
|
|
228
|
+
## 开发
|
|
229
|
+
|
|
230
|
+
在仓库根目录安装依赖后运行:
|
|
231
|
+
|
|
232
|
+
```bash
|
|
233
|
+
npm run typecheck
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
bun test
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
npm run test:pi
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
npm pack --dry-run
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
## 许可证
|
|
249
|
+
|
|
250
|
+
MIT © awoaCrim 与贡献者。见 [LICENSE](LICENSE) 和 [NOTICE](NOTICE)。
|