@99percentpeople/pi-codex-api 0.1.1 → 0.1.3

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 CHANGED
@@ -24,9 +24,12 @@ ChatGPT subscription backend rather than metered Platform API usage.
24
24
  pi install npm:@99percentpeople/pi-codex-api
25
25
  ```
26
26
 
27
- During development:
27
+ During development, build the npm artifact before installing the package
28
+ directory:
28
29
 
29
30
  ```bash
31
+ bun run build:packages
32
+ bun run --cwd extensions/codex-api build
30
33
  pi install ./extensions/codex-api
31
34
  ```
32
35
 
@@ -78,7 +81,11 @@ Uses the first-party Codex standalone search API. Supported command families:
78
81
  - PDF page screenshots;
79
82
  - finance, weather, sports, and time lookups.
80
83
 
81
- Search mode is configurable as Cached, Indexed, or Live. External content is
84
+ Search mode is configurable as Auto, Cached, Indexed, or Live. In Auto, the AI
85
+ requests a per-call mode: Cached for stable facts and known references, Indexed
86
+ for recent documentation and announcements, and Live for same-day or real-time
87
+ information. An omitted request defaults to Indexed. Selecting a fixed mode
88
+ pins every call to that mode, regardless of the AI request. External content is
82
89
  untrusted and should never be treated as instructions.
83
90
 
84
91
  ## Parameter ownership
@@ -88,8 +95,8 @@ user policy, and internal protocol fields:
88
95
 
89
96
  | Owner | Search | Image |
90
97
  | --- | --- | --- |
91
- | AI per call | queries, recency, task-specific domains, navigation/lookup commands, response length | prompt, local or recent-conversation references, task-specific size, explicit quality override, destination path |
92
- | User in `/99settings` | Cached/Indexed/Live mode and search context size | default image quality |
98
+ | AI per call | queries, recency, task-specific domains, navigation/lookup commands, response length, and the requested mode when Auto is enabled | prompt, local or recent-conversation references, task-specific size, explicit quality override, destination path |
99
+ | User in `/99settings` | Auto or a fixed Cached/Indexed/Live policy, plus search context size | default image quality |
93
100
  | Extension/backend | session/model routing, caller policy and token ceiling | fixed `gpt-image-2`, automatic background, one PNG result, reference and dimension validation |
94
101
 
95
102
  Model selection, batch count, output format, input fidelity, masks, moderation,
@@ -120,8 +127,10 @@ raw citation dump. The collapsed view shows three title/domain/snippet cards;
120
127
  Pi's configured tool-output expansion shortcut (`Ctrl+O` by default) expands
121
128
  every source with its full URL. Internal reference markers,
122
129
  word-limit metadata, and separators are hidden. Open/click/find/PDF operations
123
- use a cleaned document view, while weather, finance, sports, and time lookups
124
- use a compact data view. This changes only the TUI display copy: the model
130
+ use cleaned document cards. Batched navigation renders each returned page as a
131
+ separate numbered card with a short per-page preview, one shared expansion hint,
132
+ and visible warning styling for unresolved references. Weather, finance,
133
+ sports, and time lookups use a compact data view. This changes only the TUI display copy: the model
125
134
  still receives the complete original search output.
126
135
 
127
136
  Search and image parameters stream into the call row while the model constructs
@@ -179,7 +188,7 @@ The **Codex API** section controls:
179
188
  separately logged-in `openai-codex` OAuth account. It never sends the active
180
189
  model provider's credentials to ChatGPT.
181
190
  - **Fast mode** — enables or disables the priority service tier;
182
- - Cached, Indexed, or Live search;
191
+ - Auto search routing, or a fixed Cached, Indexed, or Live policy;
183
192
  - search context size;
184
193
  - default GPT Image 2 quality (`Auto`, `Low`, `Medium`, or `High`);
185
194
  - subscription usage status visibility.