@oai404iao/pi-codex-minimal-tools 2.0.0 → 3.0.0
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 +12 -4
- package/config.schema.json +2 -101
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Codex-specific Responses support for Pi, driven by an exact per-model JSON
|
|
4
4
|
catalog instead of model-name heuristics.
|
|
5
5
|
|
|
6
|
-
Peer floor: Pi 0.
|
|
6
|
+
Peer floor: Pi 0.86.1; tested against 0.86.1.
|
|
7
7
|
|
|
8
8
|
> npm identity stays `@oai404iao/pi-codex-minimal-tools`. This checkout composes
|
|
9
9
|
> core, web-search and imagegen through a shared runtime. The four new packages
|
|
@@ -112,6 +112,7 @@ Without `PI_CODING_AGENT_DIR`, Pi normally uses `~/.config/pi/agent` or
|
|
|
112
112
|
"enabled": true,
|
|
113
113
|
"glyphStyle": "unicode",
|
|
114
114
|
"autoEnable": true,
|
|
115
|
+
"webSocketEnabled": true,
|
|
115
116
|
"fastMode": false,
|
|
116
117
|
"imageGeneration": true,
|
|
117
118
|
"imageOutputDir": ".pi/openai-codex-images",
|
|
@@ -127,6 +128,7 @@ Without `PI_CODING_AGENT_DIR`, Pi normally uses `~/.config/pi/agent` or
|
|
|
127
128
|
| `enabled` | Enable all package behavior. |
|
|
128
129
|
| `glyphStyle` | Use `unicode` or `ascii` UI glyphs. |
|
|
129
130
|
| `autoEnable` | Add supported package tools automatically. |
|
|
131
|
+
| `webSocketEnabled` | Global Responses WebSocket master switch. Set `false` to force SSE and disable WebSocket prewarm for every model profile. |
|
|
130
132
|
| `fastMode` | Global user toggle; only profiles with `fast` are affected. |
|
|
131
133
|
| `imageGeneration` | Global master switch. Set `false` to omit image tools, `/image-gen`, presentation, hosted injection, standalone requests, and direct fallback without changing other model behavior. |
|
|
132
134
|
| `imageOutputDir` | Generated-image output directory. Relative paths resolve from the workspace root. |
|
|
@@ -136,8 +138,9 @@ Without `PI_CODING_AGENT_DIR`, Pi normally uses `~/.config/pi/agent` or
|
|
|
136
138
|
| `deferApplyPatchRendering` | Use Pi's fallback renderer instead of the streaming patch preview. |
|
|
137
139
|
|
|
138
140
|
The older model-level keys remain readable for one migration version, but are
|
|
139
|
-
deprecated
|
|
140
|
-
master switch. See
|
|
141
|
+
deprecated and no longer appear in `config.schema.json`. `imageGeneration` is
|
|
142
|
+
the exception: it remains the supported global master switch. See
|
|
143
|
+
[Legacy migration](#legacy-migration).
|
|
141
144
|
|
|
142
145
|
### Per-Model Catalog
|
|
143
146
|
|
|
@@ -320,7 +323,7 @@ The pre-Astra entries include equivalent `openai/...` and
|
|
|
320
323
|
ChatGPT subscription route. A public-API or proxy Astra deployment requires an
|
|
321
324
|
explicit user profile for that endpoint.
|
|
322
325
|
|
|
323
|
-
Pi 0.
|
|
326
|
+
Pi 0.86.1 provides the Astra model descriptor; it is now the package peer
|
|
324
327
|
floor. The extension composes its stream shim over that provider and does not
|
|
325
328
|
replace authentication, streams, or the model catalog.
|
|
326
329
|
The descriptor keeps the production default at 272,000 context tokens and
|
|
@@ -373,6 +376,11 @@ loaded image-capable model with an enabled catalog profile.
|
|
|
373
376
|
|
|
374
377
|
## WebSocket And Compaction
|
|
375
378
|
|
|
379
|
+
Global `config.json.webSocketEnabled:false` forces `sse` and disables
|
|
380
|
+
WebSocket prewarm without changing the selected per-model profile. When it is
|
|
381
|
+
`true` (the default), each profile's `responses.transport` and
|
|
382
|
+
`responses.websocketPrewarm` values apply.
|
|
383
|
+
|
|
376
384
|
`transport` values:
|
|
377
385
|
|
|
378
386
|
- `sse`: HTTP streaming only.
|
package/config.schema.json
CHANGED
|
@@ -27,23 +27,9 @@
|
|
|
27
27
|
"description": "Automatically activate enabled package tools on supported models.",
|
|
28
28
|
"default": true
|
|
29
29
|
},
|
|
30
|
-
"
|
|
30
|
+
"webSocketEnabled": {
|
|
31
31
|
"type": "boolean",
|
|
32
|
-
"description": "
|
|
33
|
-
"deprecated": true,
|
|
34
|
-
"default": true
|
|
35
|
-
},
|
|
36
|
-
"openaiTransport": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Deprecated compatibility override. Move per-model Responses transport to extension models.json.",
|
|
39
|
-
"deprecated": true,
|
|
40
|
-
"enum": ["sse", "websocket", "websocket-cached", "auto"],
|
|
41
|
-
"default": "sse"
|
|
42
|
-
},
|
|
43
|
-
"openaiWebSocketPrewarm": {
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"description": "Deprecated compatibility override. Move per-model one-shot session-startup WebSocket prewarm behavior to extension models.json.",
|
|
46
|
-
"deprecated": true,
|
|
32
|
+
"description": "Global Responses WebSocket master switch. false forces SSE and disables WebSocket prewarm for every model profile.",
|
|
47
33
|
"default": true
|
|
48
34
|
},
|
|
49
35
|
"fastMode": {
|
|
@@ -51,73 +37,11 @@
|
|
|
51
37
|
"description": "Global user toggle for the Fast service tier declared by the active model profile.",
|
|
52
38
|
"default": false
|
|
53
39
|
},
|
|
54
|
-
"compactionMode": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"description": "Deprecated compatibility override. Move per-model compaction behavior to extension models.json.",
|
|
57
|
-
"deprecated": true,
|
|
58
|
-
"enum": ["pi", "responses", "responses-compact"],
|
|
59
|
-
"default": "pi"
|
|
60
|
-
},
|
|
61
|
-
"requestProfile": {
|
|
62
|
-
"type": "object",
|
|
63
|
-
"description": "Deprecated compatibility override. Move Responses mode, reasoning summary, prompt placement, patch transport, and tool capabilities to extension models.json.",
|
|
64
|
-
"deprecated": true,
|
|
65
|
-
"default": {},
|
|
66
|
-
"additionalProperties": false,
|
|
67
|
-
"properties": {
|
|
68
|
-
"responsesMode": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"description": "Responses protocol mode. Lite requires an endpoint that implements the Codex Responses Lite contract.",
|
|
71
|
-
"enum": ["standard", "lite"],
|
|
72
|
-
"default": "standard"
|
|
73
|
-
},
|
|
74
|
-
"reasoningSummary": {
|
|
75
|
-
"type": "string",
|
|
76
|
-
"description": "Deprecated compatibility override for the reasoning summary mode. Move this to responses.reasoningSummary in the per-model catalog.",
|
|
77
|
-
"enum": ["auto", "concise", "detailed", "none"],
|
|
78
|
-
"default": "auto"
|
|
79
|
-
},
|
|
80
|
-
"systemPromptPlacement": {
|
|
81
|
-
"type": "string",
|
|
82
|
-
"description": "Where Standard Responses places Pi's system prompt. Responses Lite always uses a developer message.",
|
|
83
|
-
"enum": ["instructions", "developer"],
|
|
84
|
-
"default": "instructions"
|
|
85
|
-
},
|
|
86
|
-
"patchTransport": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"description": "Transport for apply_patch: a JSON function tool or the Codex freeform custom tool.",
|
|
89
|
-
"enum": ["function", "custom"],
|
|
90
|
-
"default": "function"
|
|
91
|
-
},
|
|
92
|
-
"supportsHostedTools": {
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"description": "Enable hosted-tool activation and request rewriting. Responses Lite always disables hosted tools.",
|
|
95
|
-
"default": true
|
|
96
|
-
},
|
|
97
|
-
"supportsParallelTools": {
|
|
98
|
-
"type": "boolean",
|
|
99
|
-
"description": "Enable parallel tool calls in provider requests. Responses Lite always disables parallel tools.",
|
|
100
|
-
"default": true
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"apiKeyMode": {
|
|
105
|
-
"type": "boolean",
|
|
106
|
-
"description": "Deprecated compatibility override. Move the endpoint/auth shape to responses.endpoint in extension models.json.",
|
|
107
|
-
"deprecated": true,
|
|
108
|
-
"default": false
|
|
109
|
-
},
|
|
110
40
|
"imageGeneration": {
|
|
111
41
|
"type": "boolean",
|
|
112
42
|
"description": "Global image-generation master switch. false disables image tools, commands, presentation, hosted injection, standalone endpoints, and direct fallback without changing other model-profile behavior.",
|
|
113
43
|
"default": true
|
|
114
44
|
},
|
|
115
|
-
"webSearchEnabled": {
|
|
116
|
-
"type": "boolean",
|
|
117
|
-
"description": "Deprecated compatibility override. Move per-model web-search support to extension models.json.",
|
|
118
|
-
"deprecated": true,
|
|
119
|
-
"default": false
|
|
120
|
-
},
|
|
121
45
|
"imageOutputDir": {
|
|
122
46
|
"type": "string",
|
|
123
47
|
"description": "Directory for generated images. Relative paths resolve against the workspace root.",
|
|
@@ -136,34 +60,11 @@
|
|
|
136
60
|
"description": "Allow direct OpenAI Images API generation when native Codex generation is unavailable.",
|
|
137
61
|
"default": false
|
|
138
62
|
},
|
|
139
|
-
"viewImage": {
|
|
140
|
-
"type": "boolean",
|
|
141
|
-
"description": "Deprecated compatibility override. Move per-model view_image support to extension models.json.",
|
|
142
|
-
"deprecated": true,
|
|
143
|
-
"default": false
|
|
144
|
-
},
|
|
145
63
|
"viewImageWorkspaceOnly": {
|
|
146
64
|
"type": "boolean",
|
|
147
65
|
"description": "Reject view_image paths outside the active workspace.",
|
|
148
66
|
"default": false
|
|
149
67
|
},
|
|
150
|
-
"applyPatchEnabled": {
|
|
151
|
-
"type": "boolean",
|
|
152
|
-
"description": "Deprecated compatibility override. Move per-model apply_patch support to extension models.json.",
|
|
153
|
-
"deprecated": true,
|
|
154
|
-
"default": true
|
|
155
|
-
},
|
|
156
|
-
"additionalModelIds": {
|
|
157
|
-
"type": "array",
|
|
158
|
-
"description": "Deprecated compatibility allowlist. Add exact per-model entries to extension models.json instead.",
|
|
159
|
-
"deprecated": true,
|
|
160
|
-
"items": {
|
|
161
|
-
"type": "string",
|
|
162
|
-
"pattern": "^[^\\s/]+/\\S+$"
|
|
163
|
-
},
|
|
164
|
-
"uniqueItems": true,
|
|
165
|
-
"default": []
|
|
166
|
-
},
|
|
167
68
|
"deferApplyPatchRendering": {
|
|
168
69
|
"type": "boolean",
|
|
169
70
|
"description": "Use Pi's fallback tool renderer instead of the built-in streaming filesystem preview.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oai404iao/pi-codex-minimal-tools",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Model-profiled Codex Responses tools for Pi: WebSocket, Lite, web search, images, compaction, and apply_patch",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@earendil-works/pi-ai": ">=0.
|
|
41
|
-
"@earendil-works/pi-coding-agent": ">=0.
|
|
42
|
-
"@earendil-works/pi-tui": ">=0.
|
|
40
|
+
"@earendil-works/pi-ai": ">=0.86.1",
|
|
41
|
+
"@earendil-works/pi-coding-agent": ">=0.86.1",
|
|
42
|
+
"@earendil-works/pi-tui": ">=0.86.1",
|
|
43
43
|
"typebox": "*"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@oai404iao/pi-codex-runtime": "0.
|
|
47
|
-
"@oai404iao/pi-codex-core": "0.
|
|
48
|
-
"@oai404iao/pi-codex-web-search": "0.
|
|
49
|
-
"@oai404iao/pi-codex-imagegen": "0.
|
|
46
|
+
"@oai404iao/pi-codex-runtime": "0.3.0",
|
|
47
|
+
"@oai404iao/pi-codex-core": "0.3.0",
|
|
48
|
+
"@oai404iao/pi-codex-web-search": "0.2.0",
|
|
49
|
+
"@oai404iao/pi-codex-imagegen": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@earendil-works/pi-ai": "0.
|
|
53
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
54
|
-
"@earendil-works/pi-tui": "0.
|
|
52
|
+
"@earendil-works/pi-ai": "0.86.1",
|
|
53
|
+
"@earendil-works/pi-coding-agent": "0.86.1",
|
|
54
|
+
"@earendil-works/pi-tui": "0.86.1",
|
|
55
55
|
"@types/node": "^26.2.0",
|
|
56
56
|
"tsx": "^4.20.6",
|
|
57
57
|
"typebox": "^1.1.24",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"optional": true
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "b02484cecad9081886797bf9b4438135aaae1e07"
|
|
92
92
|
}
|