@99percentpeople/pi-codex-api 0.3.1 → 0.4.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 +42 -5
- package/index.min.js +29 -28
- package/index.min.js.map +11 -7
- package/package.json +1 -5
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ monitoring — **no OpenAI API key required**.
|
|
|
17
17
|
default or override normal Codex replies and `codex_ask` with Low, Medium,
|
|
18
18
|
or High detail.
|
|
19
19
|
- **Image generation & editing** — `codex_image` creates or edits images via
|
|
20
|
-
your Codex subscription
|
|
20
|
+
your Codex subscription (default `gpt-image-2.5-flare`), and works from **any model**:
|
|
21
21
|
even with a third-party provider active (DeepSeek, Google, …), it reuses Pi's
|
|
22
22
|
logged-in `openai-codex` OAuth account (enable **Other providers** in
|
|
23
23
|
`/99settings`).
|
|
@@ -35,15 +35,15 @@ monitoring — **no OpenAI API key required**.
|
|
|
35
35
|
|
|
36
36
|
Subscription usage, limit-reached state, and reset-card redemption:
|
|
37
37
|
|
|
38
|
-

|
|
39
39
|
|
|
40
40
|
Web search with clean result cards (search → open a result → summarize):
|
|
41
41
|
|
|
42
|
-

|
|
43
43
|
|
|
44
44
|
Image generation with `gpt-image-2` (saved PNG + description):
|
|
45
45
|
|
|
46
|
-

|
|
47
47
|
|
|
48
48
|
## Ask Codex
|
|
49
49
|
|
|
@@ -98,6 +98,24 @@ When a batched lookup silently omits one item, the extension compares returned
|
|
|
98
98
|
reference indexes with the request and reports the missing item's applicable
|
|
99
99
|
hint instead of presenting the batch as fully successful.
|
|
100
100
|
|
|
101
|
+
## Inline citations in assistant replies
|
|
102
|
+
|
|
103
|
+
On Pi versions exposing `registerMarkdownTransformer`, the extension formats
|
|
104
|
+
Codex citation markers such as `citeturn1view0` into domain-labelled Markdown
|
|
105
|
+
links. URLs come only from `codex_search` results on the active session branch.
|
|
106
|
+
Multiple references are supported; missing or conflicting reference IDs display
|
|
107
|
+
as `[turn1view0]` without inventing a URL. Terminal hyperlink support determines
|
|
108
|
+
whether links are clickable.
|
|
109
|
+
|
|
110
|
+
Formatting is display-only: assistant text and thinking are transformed, while
|
|
111
|
+
user messages, code examples, stored messages, and model context stay unchanged.
|
|
112
|
+
Incomplete trailing citations are hidden during streaming. Source mappings are
|
|
113
|
+
rebuilt on session load and tree navigation. Older Pi versions without the hook
|
|
114
|
+
keep the original rendering; no private rendering prototypes are patched.
|
|
115
|
+
This affects Pi's Markdown UI, not external Telegram/Feishu renderers or raw JSON
|
|
116
|
+
exports. Other marker families (image cards, navigation widgets, etc.) are not
|
|
117
|
+
handled by this citation formatter.
|
|
118
|
+
|
|
101
119
|
## Quick start
|
|
102
120
|
|
|
103
121
|
```bash
|
|
@@ -211,7 +229,10 @@ Configure under **Codex API** in `/99settings`:
|
|
|
211
229
|
- **Other providers** lets any model (DeepSeek, Google, …) use the logged-in
|
|
212
230
|
Codex subscription.
|
|
213
231
|
- **Search mode** and **Search context** configure search when its feature is on.
|
|
214
|
-
- **Image
|
|
232
|
+
- **Image model** selects `gpt-image-2.5-flare` (default, fast generation),
|
|
233
|
+
`gpt-image-2.5-sunburst` (precise editing), or `gpt-image-2` (compatibility).
|
|
234
|
+
Existing settings without `imageModel` default to Flare. Changes apply on the next call.
|
|
235
|
+
- **Image quality** sets the GPT Image default when its feature is on.
|
|
215
236
|
- **Usage poll** controls the monitor refresh interval when its feature is on.
|
|
216
237
|
|
|
217
238
|
Settings live in `~/.pi/agent/99extensions.json` under the `codex-api`
|
|
@@ -219,6 +240,22 @@ namespace. Existing configurations migrate with Search, Image, and Ask Codex
|
|
|
219
240
|
enabled, so upgrading does not remove tools unless you explicitly switch them
|
|
220
241
|
off.
|
|
221
242
|
|
|
243
|
+
### Images 2.5 availability
|
|
244
|
+
|
|
245
|
+
OpenAI [announced Images 2.5 on September 8, 2026](https://openai.com/index/introducing-chatgpt-images-2-5/).
|
|
246
|
+
The model IDs are `gpt-image-2.5-flare` and `gpt-image-2.5-sunburst`, not
|
|
247
|
+
`gpt-image-2.5`. This extension sends the selected ID to the existing Codex
|
|
248
|
+
subscription generation/edit endpoints, not the public paid Images API.
|
|
249
|
+
The new IDs have mock request coverage but have not been live-verified here;
|
|
250
|
+
account availability depends on the Codex rollout. If the backend rejects a
|
|
251
|
+
new model, select `gpt-image-2` in **Image model**. There is no silent fallback
|
|
252
|
+
or automatic retry that could generate a second image.
|
|
253
|
+
|
|
254
|
+
The existing conservative size limits, five-reference limit, and
|
|
255
|
+
`auto`/`low`/`medium`/`high` quality choices are retained for the subscription
|
|
256
|
+
backend; additional public API options are not assumed to be supported.
|
|
257
|
+
The bundled prompting skill and demo were originally written for GPT Image 2.
|
|
258
|
+
|
|
222
259
|
## How it works
|
|
223
260
|
|
|
224
261
|
- Reuses Pi's existing `openai-codex` OAuth — no API key, no MCP server, no
|