pi-cliproxyapi 0.3.0 → 0.3.2

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
@@ -1,3 +1,12 @@
1
+ ```
2
+ ██████╗ ██╗ ██████╗██╗ ██╗██████╗ ██████╗ ██████╗ ██╗ ██╗██╗ ██╗
3
+ ██╔══██╗██║ ██╔════╝██║ ██║██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝╚██╗ ██╔╝
4
+ ██████╔╝██║ ██║ ██║ ██║██████╔╝██████╔╝██║ ██║ ╚███╔╝ ╚████╔╝
5
+ ██╔═══╝ ██║ ██║ ██║ ██║██╔═══╝ ██╔══██╗██║ ██║ ██╔██╗ ╚██╔╝
6
+ ██║ ██║ ╚██████╗███████╗██║██║ ██║ ██║╚██████╔╝██╔╝ ██╗ ██║
7
+ ╚═╝ ╚═╝ ╚═════╝╚══════╝╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
8
+ ```
9
+
1
10
  # pi-cliproxyapi
2
11
 
3
12
  [![npm](https://img.shields.io/npm/v/pi-cliproxyapi)](https://www.npmjs.com/package/pi-cliproxyapi)
@@ -7,6 +16,8 @@ Pi extension for corporate management of model providers via a single [CliProxyA
7
16
 
8
17
  One `(endpoint, apiKey)` pair — every provider and model inherits it automatically.
9
18
 
19
+ ![pi-cliproxyapi — the /cliproxy hub, Models tab](docs/pi-cliproxyapi-1.png)
20
+
10
21
  ## Features
11
22
 
12
23
  - **Unified hub** — one `/cliproxy` overlay with **Models / Usage / Diagnostics** tabs (number hotkeys `1` `2` `3`) plus global actions: `r` refresh, `e` setup, `s` save
@@ -42,6 +53,20 @@ Extra Models keys: `d` removes a custom group (with confirmation).
42
53
 
43
54
  **Diagnostics tab** — connectivity, key resolution, and discovery shape.
44
55
 
56
+ ## Screenshots
57
+
58
+ **Models — custom group, pool grouped by owner (`/` filters the pool)**
59
+
60
+ ![Models tab: custom proxy group with grouped available pool](docs/pi-cliproxyapi-2.png)
61
+
62
+ **Usage — per-account quota windows**
63
+
64
+ ![Usage tab: per-account quota bars with reset windows](docs/pi-cliproxyapi-3.png)
65
+
66
+ **Diagnostics — connectivity, keys, discovery shape**
67
+
68
+ ![Diagnostics tab: endpoint, key resolution, discovery and conflicts](docs/pi-cliproxyapi-4.png)
69
+
45
70
  ## Prerequisites
46
71
 
47
72
  You need a running [CliProxyAPI](https://github.com/router-for-me/CLIProxyAPI) instance — this is the corporate LLM proxy that aggregates multiple providers behind a single OpenAI-compatible endpoint.
@@ -96,14 +121,14 @@ The **[pi-cliproxyapi-wellknown](https://github.com/abix5/pi-cliproxyapi-wellkno
96
121
 
97
122
  ```
98
123
  ┌──────────────┐ ┌───────────────────────────┐
99
- │ Pi + plugin │────▶│ CliProxyAPI (:8317)
100
- │ │ /v1/models, /v1/chat/...
101
- │ └───────────────────────────┘
102
- │ ┌───────────────────────────┐
103
- │────▶│ wellknown sidecar (:3458)
104
- │ │ /.well-known/pi
105
- │ │ /api/usage
106
- │ └───────────────────────────┘
124
+ │ Pi + plugin │────▶│ CliProxyAPI (:8317)
125
+ │ │ /v1/models, /v1/chat/...
126
+ │ └───────────────────────────┘
127
+ │ ┌───────────────────────────┐
128
+ │────▶│ wellknown sidecar (:3458)│
129
+ │ │ /.well-known/pi
130
+ │ │ /api/usage
131
+ │ └───────────────────────────┘
107
132
  └──────────────┘
108
133
  ```
109
134
 
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cliproxyapi",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "Pi extension for corporate management of model providers via a single CliProxyAPI endpoint",
6
6
  "license": "MIT",
@@ -11,6 +11,7 @@
11
11
  "files": [
12
12
  "index.ts",
13
13
  "src",
14
+ "docs",
14
15
  "README.md"
15
16
  ],
16
17
  "pi": {
@@ -20,7 +20,7 @@ import {
20
20
  import type { ProxyConfig } from "./config.ts";
21
21
  import { log } from "./log.ts";
22
22
 
23
- export const PLUGIN_USER_AGENT = "pi-cliproxyapi/0.3.0";
23
+ export const PLUGIN_USER_AGENT = "pi-cliproxyapi/0.3.2";
24
24
  const REQUEST_TIMEOUT_MS = 5_000;
25
25
 
26
26
  export interface DiscoveryModelEntry {