pi-cliproxyapi-native 0.1.9 → 0.2.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 CHANGED
@@ -4,17 +4,38 @@ Use [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI) for chat, image
4
4
 
5
5
  Chat uses Pi's native API adapters and model metadata, with availability from your proxy. Image and video tools have separate model selections, so you can generate media without switching your chat model.
6
6
 
7
+ ## Contents
8
+
9
+ - [Install](#install)
10
+ - [Connection](#connection)
11
+ - [Images and videos](#images-and-videos)
12
+ - [Choose a media model](#choose-a-media-model)
13
+ - [Generate media](#generate-media)
14
+ - [Resolution and aspect ratio](#resolution-and-aspect-ratio)
15
+ - [Supported media models](#supported-media-models)
16
+ - [Files, status, and limits](#files-status-and-limits)
17
+ - [Chat models](#chat-models)
18
+ - [Refresh](#refresh)
19
+ - [Wait for quota reset](#wait-for-quota-reset)
20
+ - [Compaction](#compaction)
21
+ - [Aliases and model limits](#aliases-and-model-limits)
22
+ - [Backend routes](#backend-routes)
23
+ - [OAuth and API-key routes](#oauth-and-api-key-routes)
24
+ - [Thinking and child sessions](#thinking-and-child-sessions)
25
+ - [Protocol notes](#protocol-notes)
26
+ - [License](#license)
27
+
7
28
  ## Install
8
29
 
9
- The extension targets Pi 1.1.0 and CLIProxyAPI 8.0.22, with Node.js 22.19 or newer. Run CLIProxyAPI with your upstream accounts configured before connecting Pi. The extension uses Pi's host-provided packages, adds no runtime dependencies, and needs no compilation.
30
+ The extension targets Pi 1.3.0 and CLIProxyAPI 8.0.30, with Node.js 22.19 or newer. Run CLIProxyAPI with your upstream accounts configured before connecting Pi. The extension uses Pi's host-provided packages, adds no runtime dependencies, and needs no compilation.
10
31
 
11
32
  If you installed `pi-cliproxy-native`, remove it before installing the renamed package. Both register the same `cliproxyapi` provider.
12
33
 
13
34
  ```sh
14
- pi install npm:pi-cliproxyapi-native@0.1.9
35
+ pi install npm:pi-cliproxyapi-native@0.2.0
15
36
  ```
16
37
 
17
- For Git installation, use `pi install git:github.com/hawkff/pi-cliproxyapi-native@v0.1.9`. For a local checkout, use `pi install /path/to/pi-cliproxyapi-native`.
38
+ For Git installation, use `pi install git:github.com/hawkff/pi-cliproxyapi-native@v0.2.0`. For a local checkout, use `pi install /path/to/pi-cliproxyapi-native`.
18
39
 
19
40
  The default proxy address is `http://localhost:8317`. For another address, set the [connection](#connection) before logging in. Restart Pi, then run:
20
41
 
@@ -231,6 +252,8 @@ The recognized prefixes are `vertex/`, `antigravity/`, `api/`, and `oauth/`. Eac
231
252
 
232
253
  For Antigravity IDs `claude-opus-5-5-high` and `claude-sonnet-5-5-high`, the extension falls back to `anthropic/claude-opus-5-5` and `anthropic/claude-sonnet-5-5` metadata. This applies to bare IDs and the recognized route prefixes. Explicit aliases take precedence, followed by exact native metadata. The fallback requires the corresponding canonical entry in Pi and names the model like a configured alias, for example `claude-opus-5-5-high (Claude Opus 5.5)`; requests keep the advertised `-high` ID.
233
254
 
255
+ The same fallback rules map `gemini-4-argon-high` to `google/gemini-4-argon`, including recognized route prefixes.
256
+
234
257
  Use Pi's `models.json` `modelOverrides` for limits, prices, or compatibility changes. Use its `models` array for IDs with no built-in metadata. Updating Pi supplies newer metadata. Catalog prices are estimates, not the proxy's bill; check upstream limits before increasing them.
235
258
 
236
259
  ## Backend routes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cliproxyapi-native",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "CLIProxyAPI chat discovery and image/video generation with Pi's native adapters",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -39,9 +39,9 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@biomejs/biome": "^2.5.13",
42
- "@earendil-works/pi-ai": "^1.1.0",
43
- "@earendil-works/pi-coding-agent": "^1.1.0",
44
- "@earendil-works/pi-tui": "^1.1.0",
42
+ "@earendil-works/pi-ai": "^1.3.0",
43
+ "@earendil-works/pi-coding-agent": "^1.3.0",
44
+ "@earendil-works/pi-tui": "^1.3.0",
45
45
  "@types/node": "^24.13.4",
46
46
  "typescript": "5.9.3"
47
47
  },
package/src/catalog.ts CHANGED
@@ -180,6 +180,7 @@ const owners: Readonly<Record<string, string>> = {
180
180
  const metadataFallbacks = new Map([
181
181
  ["claude-opus-5-5-high", "anthropic/claude-opus-5-5"],
182
182
  ["claude-sonnet-5-5-high", "anthropic/claude-sonnet-5-5"],
183
+ ["gemini-4-argon-high", "google/gemini-4-argon"],
183
184
  ]);
184
185
 
185
186
  export function mapCatalog(value: unknown, config: Config, known: readonly Model<Api>[]) {