pi-freeflow 1.9.9 → 1.11.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/CHANGELOG.md +35 -5
- package/README.md +6 -8
- package/package.json +61 -61
- package/src/catalog.ts +4 -2
- package/src/client.ts +248 -7
- package/src/commands.ts +177 -2
- package/src/config.ts +27 -3
- package/src/daemon.ts +7 -4
- package/src/health.ts +17 -0
- package/src/index.ts +1 -1
- package/src/lease.ts +20 -12
- package/src/logger.ts +359 -359
- package/src/models.ts +3 -25
- package/src/proxy.ts +42 -6
- package/src/stream-pipe.ts +63 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Proxy daemon now stays up while any session uses it, even when idle. It shuts down only after the last session leaves, instead of retiring after a short quiet window.
|
|
8
|
+
|
|
9
|
+
## 1.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- cf48598: Hands-free proxy recovery plus catalog refresh: the proxy now watches its own health, restarts with backoff instead of leaving a dead port, and can start on login. Removed two discontinued free models from the picker.
|
|
14
|
+
|
|
3
15
|
All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
4
16
|
|
|
5
17
|
## 1.9.9 - 2026-09-06
|
|
6
18
|
|
|
7
19
|
### Fixes
|
|
8
|
-
- **Removed our own request cap — sorry, that one was on us.** The proxy used to enforce a built-in request limit and could answer 429 before upstream quota was actually exhausted. That was a bug, not your quota. From this version the proxy never rejects on quota itself: a 429 only surfaces when the upstream — and every relay in your pool — genuinely is rate-limited, and that response now points you at `/freeflow deploy` to add relay egress.
|
|
9
20
|
|
|
10
|
-
|
|
11
|
-
- TypeScript typecheck passed cleanly (`tsc --noEmit`) on Windows and Ubuntu Linux (`acerblue-local`).
|
|
12
|
-
- Full test suite: Windows 302 tests (301 pass + 1 Linux-only skip), `acerblue-local` 302/302 pass, including new regressions locking the guidance hint onto genuine upstream 429s (direct path and exhausted relay pool).
|
|
13
|
-
- Sandboxed stress harness 7/7 on `acerblue-local`; extension smoke load green on both machines.
|
|
21
|
+
- **Removed our own request cap — sorry, that one was on us.** The proxy used to enforce a built-in request limit and could answer 429 before upstream quota was actually exhausted. That was a bug, not your quota. From this version the proxy never rejects on quota itself: a 429 only surfaces when the upstream — and every relay in your pool — genuinely is rate-limited, and that response now points you at `/freeflow deploy` to add relay egress.
|
|
14
22
|
|
|
15
23
|
## 1.9.8 - 2026-09-06
|
|
16
24
|
|
|
17
25
|
### Fixes
|
|
26
|
+
|
|
18
27
|
- **Stale model list heals itself (follow-up to #6).** If your saved model list predates a newly added model, the background refresh now repairs the entry (correct endpoint and details) instead of sending requests to the wrong address — no manual `/freeflow refresh` or cache deletion needed.
|
|
19
28
|
- **Paid models stay out of the picker even from old saved lists.** Every read of the saved model list now drops non-free entries, so models requiring an API key cannot linger after an upgrade.
|
|
20
29
|
- **Old saved lists without a sync marker now re-sync once.** A saved list that could never trigger a network check now performs one plain revalidation (then syncs normally), so newly added free models appear without manual intervention. Missing or corrupt lists still fall back silently with no network call.
|
|
21
30
|
- **Upstream errors are now visible in the proxy log.** Failed upstream responses log their status code and model, and a model routed to the wrong endpoint logs the mismatch with the fix (restart Pi/OMP after upgrade).
|
|
22
31
|
|
|
23
32
|
### Validation
|
|
33
|
+
|
|
24
34
|
- TypeScript typecheck passed cleanly (`tsc --noEmit`).
|
|
25
35
|
- Full test suite passed on Windows (304 tests) and Ubuntu Linux (`acerblue`, 305/305 tests passed), including new regressions for the stale-cache shape from #6.
|
|
26
36
|
- Live sweep of all 26 models through a fresh install on `acerblue`: 23/26 answered on first try (both Muse Spark models via the Responses endpoint); the 3 misses are upstream per-model daily quotas (429), zero server errors.
|
|
@@ -28,16 +38,19 @@ All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
|
28
38
|
## 1.9.7 - 2026-09-06
|
|
29
39
|
|
|
30
40
|
### Fixes
|
|
41
|
+
|
|
31
42
|
- **Model picker only shows verified free models (fixes #6).** Background catalog refresh now filters out non-free models from upstream endpoints so paid models requiring an API key no longer leak into your picker.
|
|
32
43
|
- **Relay pool automatically recovers from dead deployments (fixes #5).** If a relay URL in your pool returns an infrastructure 404 (such as a missing or deleted Vercel deployment), the proxy marks it as failed and immediately rolls over to your next healthy relay or direct mode instead of getting trapped in a 404 loop.
|
|
33
44
|
|
|
34
45
|
### Changes
|
|
46
|
+
|
|
35
47
|
- **Updated model catalog (26 verified free models: 7 OpenCode Zen + 19 KiloCode Gateway).**
|
|
36
48
|
- Added `inclusionai/ling-3.0-flash-sante:free` (Ling 3.0 Flash Sante, 262K context, 32K output, reasoning supported). Clean CLI alias `ling-3.0-flash-sante` supported.
|
|
37
49
|
- Removed `laguna-s-2.1-free` (OpenCode Zen) after upstream dropped free-tier access. `poolside/laguna-s-2.1:free` on Kilo remains active.
|
|
38
50
|
- **Public by default for new relay deployments.** Relays deployed via `/freeflow deploy` are now public by default with no mandatory authentication tokens. This enables seamless copy-paste migration across proxy tools (such as 9router) while maintaining safety guards for allowed AI upstreams.
|
|
39
51
|
|
|
40
52
|
### Validation
|
|
53
|
+
|
|
41
54
|
- TypeScript typecheck passed cleanly (`tsc --noEmit`).
|
|
42
55
|
- Full test suite passed across Windows (299 tests) and Ubuntu Linux (`acerblue-local`, 300/300 tests passed).
|
|
43
56
|
- End-to-end concurrency and failover stress testing verified (100 parallel requests, 20 subagent leases, burst failover).
|
|
@@ -45,6 +58,7 @@ All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
|
45
58
|
## 1.9.6 - 2026-09-03
|
|
46
59
|
|
|
47
60
|
### Fixes
|
|
61
|
+
|
|
48
62
|
- **Hiding the status widget now sticks.** `/freeflow hide` survives restarts, new sessions, and background update notices — previously the widget could reappear on the next session.
|
|
49
63
|
- **Calmer startup with many sessions.** Sessions starting at the same time now converge on a single background proxy instead of each spawning its own; a spawn that never becomes ready falls back to in-process mode instead of running untracked.
|
|
50
64
|
- **Survives daemon restarts mid-session.** If the background proxy is replaced while sessions run, connected sessions re-register automatically instead of silently losing their lease (which could retire the daemon mid-use).
|
|
@@ -52,11 +66,13 @@ All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
|
52
66
|
- **`/freeflow logs --follow` no longer runs forever.** The live tail stops when the session ends and caps burst output; the update/install subprocess now has a 2-minute timeout.
|
|
53
67
|
|
|
54
68
|
### Validation
|
|
69
|
+
|
|
55
70
|
- `npx tsc --noEmit` clean, `npm test` 299 (298 pass + 1 Linux-only skip) + smoke green on Windows; stress harness 7/7 on Windows and Linux `acerblue-local`. **`macOS not tested`** this cycle.
|
|
56
71
|
|
|
57
72
|
## 1.9.5 - 2026-09-03
|
|
58
73
|
|
|
59
74
|
### Changes
|
|
75
|
+
|
|
60
76
|
- **Catalog refreshed against live upstream model lists (26 models: 8 OpenCode Zen + 18 KiloCode Gateway).** Re-checked both upstreams against their live endpoints and live inference probes:
|
|
61
77
|
- **Added** `muse-spark-1.3-contributor-free` (OpenCode Zen, Responses API, 1M context, 131K output, vision) — verified live: completes with reasoning, accepts effort levels, and answers vision queries.
|
|
62
78
|
- **Removed** `hy3-free` (OpenCode Zen) — upstream no longer serves it (`Model hy3-free is not supported`).
|
|
@@ -64,29 +80,35 @@ All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
|
64
80
|
- Pruned IDs added to the dead-model filter so a stale disk cache cannot resurrect them.
|
|
65
81
|
|
|
66
82
|
### Validation
|
|
83
|
+
|
|
67
84
|
- `npx tsc --noEmit` clean, `npm test` full suite green on Windows.
|
|
68
85
|
|
|
69
86
|
## 1.9.4 - 2026-09-02
|
|
70
87
|
|
|
71
88
|
### Dependencies
|
|
89
|
+
|
|
72
90
|
- **Zero runtime dependencies.** Removed `undici@8.10.0` — `pi` (`0.84.4`) and `omp` (`18.1.3`) already bundle `undici` 6.x/7.x and expose `global fetch` with keep-alive pooling. `relayFetch` and proxy now use `global fetch` directly (`src/relay.ts` `Agent` + `canUseCustomDispatcher` + `dispatcher: agent` removed; `src/proxy.ts` dispatcher removed). Keeps thin `11.3k` + `298 tests` + `0 deps` compatible directly with `reference/pi` + `reference/oh-my-pi`.
|
|
73
91
|
|
|
74
92
|
### Validation
|
|
93
|
+
|
|
75
94
|
- `npx tsc --noEmit` clean, `npm test 298/298` on **Windows** (`omp/18.1.3`, `pi 0.84.4`) and **Linux `acerblue-local`** (`Ubuntu 6.8.0-138`, `node v22.23.2`, `pi 0.84.4`) via `/tmp/pi-freeflow-validation`. **`macOS not tested`** this cycle.
|
|
76
95
|
|
|
77
96
|
## 1.9.3 - 2026-09-02
|
|
78
97
|
|
|
79
98
|
### Fixes
|
|
99
|
+
|
|
80
100
|
- **Windows console flood fixed.** Two Windows-only helpers flashed a visible `conhost`/`cmd` window on every daemon probe: `netstat -ano | findstr :28180` / `taskkill` in the stale-daemon replace path and `spawn(omp|npm, shell:true)` for `/freeflow update`. Both now use `windowsHide: true` (no-op on Linux/macOS) and `spawnWithProgress` was refactored to `Promise.withResolvers` to satisfy `ts-promise-with-resolvers`. Idle `pi` no longer spawns many visible consoles even after closing the terminal (detached daemon at `127.0.0.1:28180` survives by design; `beatOnce` 10s heartbeat now throttled 2s via `lastSpawnAt`).
|
|
81
101
|
- Daemon spawn now throttled per-process (2s) as a storm guard when `28180` is contended or blocked; the `ensuring` guard + `waitForReady 5s` already prevented tight loops.
|
|
82
102
|
|
|
83
103
|
### Validation
|
|
104
|
+
|
|
84
105
|
- `npx tsc --noEmit` clean, `npm test 279/279` on **Windows** (`omp/18.1.3`, `pi 0.84.4`) and **Linux `acerblue-local`** (`Ubuntu 6.8.0-138`, `node v22.23.2`, `pi 0.84.4`) via `/tmp/pi-freeflow-validation`. **`macOS not tested`** this cycle.
|
|
85
106
|
- Reporter `LOYINuts` issue #3 (`pi idle creates many sessions → force reboot`) — `grep -r rtk src` ∅ confirms `rtk` is an external global skill (`~/.agents/skills/rtk` → `Command::new("cmd")` without `CREATE_NO_WINDOW`), not `pi-freeflow`. After this fix, closing the terminal no longer leaves flashing zombies; kill via `netstat -ano | findstr :28180` → `taskkill /F /PID` or `/freeflow kill`.
|
|
86
107
|
|
|
87
108
|
## 1.9.2 - 2026-08-31
|
|
88
109
|
|
|
89
110
|
### Fixes
|
|
111
|
+
|
|
90
112
|
- **Closing one session no longer stops the shared local proxy.** The proxy daemon
|
|
91
113
|
is now a fully detached background process: it outlives any single OMP/Pi session
|
|
92
114
|
(previously, closing the session that owned the daemon could shut it down even
|
|
@@ -97,6 +119,7 @@ All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
|
97
119
|
daemon on demand. The next freeflow use restarts it.
|
|
98
120
|
|
|
99
121
|
### Improvements
|
|
122
|
+
|
|
100
123
|
- The proxy tracks connected sessions and last request time; `/freeflow status`
|
|
101
124
|
and the health endpoint now report active session leases, so you can see when
|
|
102
125
|
other sessions are keeping the daemon alive.
|
|
@@ -106,6 +129,7 @@ All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
|
106
129
|
## 1.9.1 - 2026-08-30
|
|
107
130
|
|
|
108
131
|
### Fixes
|
|
132
|
+
|
|
109
133
|
- Stale-daemon guard completed: a pre-1.9.0 daemon cannot report its in-flight requests, and usage cannot be verified — so it is now left running instead of being replaced. Previously such a daemon could still be killed mid-stream while busy (a one-time window when upgrading from 1.8.x). The guarantee now holds in every case: only older, verified-idle daemons are replaced.
|
|
110
134
|
- The stale-daemon kill ritual was consolidated into one path (it was duplicated at five call sites); behavior unchanged.
|
|
111
135
|
- Tests: new coverage for the pre-1.9 daemon case; shared sandbox helpers extracted.
|
|
@@ -113,16 +137,19 @@ All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
|
113
137
|
## 1.9.0 - 2026-08-30
|
|
114
138
|
|
|
115
139
|
### Development hardening
|
|
140
|
+
|
|
116
141
|
- Test suite now runs fully sandboxed: every test uses a temporary data directory, so no test can ever write to your real `~/.pi/agent/` files or interfere with a running local proxy. A single env override (`PI_*_DATA_DIR`) re-roots all data files for tests/CI.
|
|
117
142
|
- Added a complete mocked user-flow e2e suite: fresh install → onboarding → proxy health → direct chat → relay add/roll/fallback → guided deploy → update check → command surface — all deterministic, zero network.
|
|
118
143
|
- Docs: test counts no longer hardcoded in README (they drifted with releases); release history tracked here.
|
|
119
144
|
|
|
120
145
|
### Fixes
|
|
146
|
+
|
|
121
147
|
- **Stale-daemon replacement no longer interrupts running sessions.** The shared local proxy can be held by another OMP/Pi session; the old upgrade logic killed that holder on version mismatch, which could terminate the session that owned the proxy mid-stream. Replacement now only happens when the running daemon is strictly older AND idle (0 in-flight requests, reported via `/_health`); newer or busy daemons are reused with a log note instead. Optional opt-out: set the no-kill env to `1` (see README FAQ for upgrades).
|
|
122
148
|
|
|
123
149
|
## 1.8.2 - 2026-08-30
|
|
124
150
|
|
|
125
151
|
### Fixes & polish
|
|
152
|
+
|
|
126
153
|
- Deploy: compare-and-swap on concurrent deployments (no duplicate relays when two sessions deploy at once).
|
|
127
154
|
- Proxy: URL-encoding edge cases (`%` in paths), startup timeout and kill handling, port conflict fallback.
|
|
128
155
|
- Logs: sanitized sensitive headers in debug output.
|
|
@@ -136,6 +163,7 @@ All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
|
136
163
|
## 1.8.0 - 2026-08-29
|
|
137
164
|
|
|
138
165
|
### Automatic upgrades
|
|
166
|
+
|
|
139
167
|
- On version upgrade, the extension detects a stale local proxy daemon and replaces it automatically — users get fixes without manual restarts or killing sessions.
|
|
140
168
|
- Fix: client auth key stripped before reaching the opencode.ai/zen upstream (failed with 401 for some clients).
|
|
141
169
|
- 3 new free models (28 total).
|
|
@@ -156,12 +184,14 @@ All notable changes to pi-freeflow. Public, user-visible behavior only.
|
|
|
156
184
|
## 1.6.0 - 2026-08-29
|
|
157
185
|
|
|
158
186
|
### Onboarding & UX
|
|
187
|
+
|
|
159
188
|
- First-run onboarding message; 429 guidance hint (add your own relay egress).
|
|
160
189
|
- `/freeflow test` to probe a relay; relay latency tracking with health badges in `/freeflow list`.
|
|
161
190
|
- Guided deploy with context picker + confirmation; post-deploy health check.
|
|
162
191
|
- Status clarity: current mode + state file path; log text filter; per-relay usage counters; throttled roll notifications.
|
|
163
192
|
|
|
164
193
|
### Reliability
|
|
194
|
+
|
|
165
195
|
- Relay state write-protection: before every save, the current state is snapshotted to `.bak`; if the main file is corrupted or missing, the backup is recovered automatically.
|
|
166
196
|
- New-user flow never seeds a fake relay; starts in direct mode with an empty pool.
|
|
167
197
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pi-freeflow 🌊
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **24 free models. Up to 1M context. Zero API keys. Infinite scale via your own relay pool.**
|
|
4
4
|
|
|
5
5
|
Thin by design: model list + dumb relay + log. Host `pi-ai` owns thinking, normalization & provider magic. We just make it free, fast, and unbreakable.
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@ Join devs bypassing rate limits with their own relay pools. BYO, add as many as
|
|
|
18
18
|
|
|
19
19
|
| Feature | Description | Value | Cost |
|
|
20
20
|
| :--- | :--- | :--- | :--- |
|
|
21
|
-
| **
|
|
21
|
+
| **24 Curated Free Models** | 7 OpenCode Zen + 17 KiloCode Gateway models, up to 1M context & 512K output | Ceiling Unlocked | **$0** |
|
|
22
22
|
| **BYO Relay Pool** | Round-robin load balancing across your Cloudflare Workers & Vercel Edges | Zero Rate Limits | **$0** (your free tiers) |
|
|
23
23
|
| **Adaptive Health & Error Detection** | Auto-cooldown on 429 rate limits, 504 timeouts, and socket drops | 0ms Wasted Latency | **$0** |
|
|
24
24
|
| **Stream Truncation Resilience** | Stateful SSE terminal tracking (`response.failed` / `response.incomplete` injection) | Zero Host Crashes | **$0** |
|
|
@@ -32,7 +32,7 @@ Philosophy: **Thin by design.** We only ship model list + relay proxy + log. Hos
|
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
###
|
|
35
|
+
### 24 Curated Models, One Command
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
38
|
/model → freeflow → pick
|
|
@@ -51,7 +51,7 @@ Optimized for deep reasoning, long-horizon coding & autonomous agentic workflows
|
|
|
51
51
|
| `big-pickle` | Big Pickle | **200K** (200.000) | **32K** (32.000) | `high / max` | ❌ |
|
|
52
52
|
| `ling-3.0-flash-fin-free` | Inclusion AI | **262K** (262.144) | **131K** (131.072) | `minimal … xhigh` | ❌ |
|
|
53
53
|
|
|
54
|
-
#### KiloCode Gateway (
|
|
54
|
+
#### KiloCode Gateway (17 Models), OpenRouter Compatible
|
|
55
55
|
Keyless access with `Bearer kilo-free`. Clean slash-free and colon-free CLI aliases supported.
|
|
56
56
|
|
|
57
57
|
| Model ID | Creator / Lab | Context | Max Output | Thinking | Vision |
|
|
@@ -69,8 +69,6 @@ Keyless access with `Bearer kilo-free`. Clean slash-free and colon-free CLI alia
|
|
|
69
69
|
| `kilo-auto` (`kilo-auto/free`) | Kilo Gateway Auto | **256K** (256.000) | **10K** (10.000) | `minimal…xhigh`\* | ❌ |
|
|
70
70
|
| `openrouter` (`openrouter/free`) | OpenRouter Free | **200K** (200.000) | **65K** (65.536) | `minimal…xhigh`\* | ✅ |
|
|
71
71
|
| `content-safety` (`nvidia/...:free`) | NVIDIA | **128K** (128.000) | **8K** (8.192) | ❌ *(non-thinking)* | ✅ |
|
|
72
|
-
| `minimax-m2.7` (`minimax/minimax-m2.7:free`) | MiniMax | **196K** (196.608) | **196K** (196.608) | `minimal…xhigh`\* | ❌ |
|
|
73
|
-
| `minimax-m3` (`minimax/minimax-m3:free`) | MiniMax | **1M** (1.048.576) | **512K** (524.288) | `minimal…xhigh`\* | ❌ |
|
|
74
72
|
| `ling-3.0-flash-fin` (`inclusionai/ling-3.0-flash-fin:free`) | Inclusion AI | **262K** (262.144) | **32K** (32.768) | `minimal…xhigh`\* | ❌ |
|
|
75
73
|
| `inkling` (`thinkingmachines/inkling:free`) | Thinking Machines | **1M** (1.048.576) | **262K** (262.144) | `minimal…xhigh`\* | ✅ |
|
|
76
74
|
| `ling-3.0-flash-sante` (`inclusionai/ling-3.0-flash-sante:free`) | Inclusion AI | **262K** (262.144) | **32K** (32.768) | `minimal…xhigh`\* | ❌ |
|
|
@@ -292,7 +290,7 @@ to `1` before starting a session.
|
|
|
292
290
|
Nothing visible to your other sessions. The proxy daemon is a separate background
|
|
293
291
|
process shared by every OMP/Pi session on the machine. Closing one session just
|
|
294
292
|
unregisters it; the daemon keeps serving the rest and retires itself automatically
|
|
295
|
-
once the last client disconnects and
|
|
293
|
+
once the last client disconnects and no client re-attaches within a short grace window.
|
|
296
294
|
To stop it manually, run `/freeflow kill` — the next freeflow use starts it again.
|
|
297
295
|
|
|
298
296
|
**Where's the normalizer?**
|
|
@@ -342,7 +340,7 @@ pnpm smoke # verifies extensions/index.ts loads without crashing
|
|
|
342
340
|
```
|
|
343
341
|
src/
|
|
344
342
|
├── index.ts # extension entry, lifecycle hooks
|
|
345
|
-
├── models.ts #
|
|
343
|
+
├── models.ts # 24-model catalog definitions
|
|
346
344
|
├── catalog.ts # model catalog cache (24h disk)
|
|
347
345
|
├── proxy.ts # local proxy server (127.0.0.1:28180)
|
|
348
346
|
├── relay.ts # relay selection & round-robin
|
package/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pi-freeflow",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"description": "Thin provider for OMP/Pi — model list + dumb relay proxy + log; host pi-ai owns thinking/normalization",
|
|
6
|
-
"main": "extensions/index.ts",
|
|
7
|
-
"types": "src/index.ts",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"pi-package",
|
|
10
|
-
"pi-extension",
|
|
11
|
-
"oh-my-pi",
|
|
12
|
-
"omp",
|
|
13
|
-
"free-models",
|
|
14
|
-
"opencode",
|
|
15
|
-
"kilocode",
|
|
16
|
-
"ai-models",
|
|
17
|
-
"relay"
|
|
18
|
-
],
|
|
19
|
-
"author": "trefeon",
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"repository": {
|
|
22
|
-
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/trefeon/pi-freeflow.git"
|
|
24
|
-
},
|
|
25
|
-
"homepage": "https://github.com/trefeon/pi-freeflow#readme",
|
|
26
|
-
"engines": {
|
|
27
|
-
"node": ">=22.19.0"
|
|
28
|
-
},
|
|
29
|
-
"omp": {
|
|
30
|
-
"extensions": [
|
|
31
|
-
"./extensions"
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
"pi": {
|
|
35
|
-
"extensions": [
|
|
36
|
-
"./extensions"
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"files": [
|
|
40
|
-
"extensions",
|
|
41
|
-
"src",
|
|
42
|
-
"README.md",
|
|
43
|
-
"CHANGELOG.md",
|
|
44
|
-
"LICENSE"
|
|
45
|
-
],
|
|
46
|
-
"scripts": {
|
|
47
|
-
"test": "node --experimental-strip-types --import ./test/setup.mjs --test --test-concurrency=1 test/**/*.test.ts",
|
|
48
|
-
"typecheck": "tsc --noEmit",
|
|
49
|
-
"smoke": "node --experimental-strip-types -e \"import('./extensions/index.ts').then(() => console.log('✓ Smoke test passed: extensions/index.ts loaded successfully')).catch(err => { console.error(err); process.exit(1); })\"",
|
|
50
|
-
"changeset": "changeset",
|
|
51
|
-
"docs:dev": "vitepress dev docs",
|
|
52
|
-
"docs:build": "vitepress build docs"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@changesets/cli": "^2.27.0",
|
|
56
|
-
"@types/node": "^22.13.9",
|
|
57
|
-
"typescript": "^5.8.2",
|
|
58
|
-
"vitepress": "^1.6.4"
|
|
59
|
-
},
|
|
60
|
-
"dependencies": {}
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "pi-freeflow",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.11.0",
|
|
5
|
+
"description": "Thin provider for OMP/Pi — model list + dumb relay proxy + log; host pi-ai owns thinking/normalization",
|
|
6
|
+
"main": "extensions/index.ts",
|
|
7
|
+
"types": "src/index.ts",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"pi-package",
|
|
10
|
+
"pi-extension",
|
|
11
|
+
"oh-my-pi",
|
|
12
|
+
"omp",
|
|
13
|
+
"free-models",
|
|
14
|
+
"opencode",
|
|
15
|
+
"kilocode",
|
|
16
|
+
"ai-models",
|
|
17
|
+
"relay"
|
|
18
|
+
],
|
|
19
|
+
"author": "trefeon",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/trefeon/pi-freeflow.git"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/trefeon/pi-freeflow#readme",
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=22.19.0"
|
|
28
|
+
},
|
|
29
|
+
"omp": {
|
|
30
|
+
"extensions": [
|
|
31
|
+
"./extensions"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"pi": {
|
|
35
|
+
"extensions": [
|
|
36
|
+
"./extensions"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"extensions",
|
|
41
|
+
"src",
|
|
42
|
+
"README.md",
|
|
43
|
+
"CHANGELOG.md",
|
|
44
|
+
"LICENSE"
|
|
45
|
+
],
|
|
46
|
+
"scripts": {
|
|
47
|
+
"test": "node --experimental-strip-types --import ./test/setup.mjs --test --test-concurrency=1 test/**/*.test.ts",
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
49
|
+
"smoke": "node --experimental-strip-types -e \"import('./extensions/index.ts').then(() => console.log('✓ Smoke test passed: extensions/index.ts loaded successfully')).catch(err => { console.error(err); process.exit(1); })\"",
|
|
50
|
+
"changeset": "changeset",
|
|
51
|
+
"docs:dev": "vitepress dev docs",
|
|
52
|
+
"docs:build": "vitepress build docs"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@changesets/cli": "^2.27.0",
|
|
56
|
+
"@types/node": "^22.13.9",
|
|
57
|
+
"typescript": "^5.8.2",
|
|
58
|
+
"vitepress": "^1.6.4"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {}
|
|
61
|
+
}
|
package/src/catalog.ts
CHANGED
|
@@ -38,6 +38,8 @@ export const DEAD_MODEL_IDS = new Set<string>([
|
|
|
38
38
|
"tencent/hy3:free",
|
|
39
39
|
"meituan/longcat-2.0-free",
|
|
40
40
|
"laguna-s-2.1-free",
|
|
41
|
+
"minimax/minimax-m2.7:free",
|
|
42
|
+
"minimax/minimax-m3:free",
|
|
41
43
|
]);
|
|
42
44
|
/**
|
|
43
45
|
* Free-tier allowlist for anything entering the picker via network or stale disk.
|
|
@@ -74,7 +76,7 @@ export function sanitizeCatalogModels(models: RegisteredModel[]): RegisteredMode
|
|
|
74
76
|
}
|
|
75
77
|
/**
|
|
76
78
|
* In-memory cache of currently active/available free models.
|
|
77
|
-
* Initialized with all
|
|
79
|
+
* Initialized with all 24 verified models for 0ms instant availability.
|
|
78
80
|
*/
|
|
79
81
|
let aliveCatalog: RegisteredModel[] = ALL_MODELS.map((m) => ({
|
|
80
82
|
...m,
|
|
@@ -397,6 +399,6 @@ export async function refreshCatalog(force = false): Promise<RegisteredModel[]>
|
|
|
397
399
|
} catch (err) {
|
|
398
400
|
logDebug("Failed reading stale catalog cache", { error: String(err) });
|
|
399
401
|
}
|
|
400
|
-
// No valid cache — return in-memory static
|
|
402
|
+
// No valid cache — return in-memory static 24 (host will refresh if needed)
|
|
401
403
|
return aliveCatalog;
|
|
402
404
|
}
|