pi-freeflow 1.7.0 → 1.7.1

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.
Files changed (2) hide show
  1. package/README.md +53 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -123,33 +123,64 @@ Manage your relay pool directly from the OMP / Pi terminal:
123
123
 
124
124
  ### Quick Start in 30 Seconds
125
125
 
126
- #### 1. Install
127
-
128
- **Oh My Pi (Recommended):**
126
+ **On Oh My Pi (OMP):**
129
127
  ```bash
130
128
  omp plugin install pi-freeflow
131
- # or local dev
129
+ # or local dev (repo checkout)
132
130
  omp plugin link /path/to/pi-freeflow
133
131
  ```
134
132
 
135
- **Pi:**
133
+ **On Pi:**
136
134
  ```bash
137
135
  pi install npm:pi-freeflow
138
136
  ```
139
137
 
138
+ > Both commands fetch the **same npm package** from the registry — pi-freeflow
139
+ > is an extension loaded by the host, not a standalone CLI. It works on **OMP
140
+ > and Pi only** (they share the extension API).
141
+
140
142
  #### 2. Pick a Model
141
143
 
144
+ **OMP — interactive:**
142
145
  ```bash
143
146
  omp
144
147
  /model → freeflow → muse-spark-1.2-contributor-free (1M) → max
148
+ ```
145
149
 
146
- # or CLI
150
+ **OMP one-shot CLI:**
151
+ ```bash
147
152
  omp -p --model freeflow/muse-spark-1.2-contributor-free "build me a SaaS"
148
- # or with short alias & thinking level
149
- omp -p --model freeflow/step-3.7-flash:high "solve this bug"
153
+ omp -p --model freeflow/step-3.7-flash:high "solve this bug" # alias + thinking level
154
+ ```
155
+
156
+ **Pi — interactive:**
157
+ ```bash
158
+ pi
159
+ /model → freeflow → pick
160
+ ```
161
+
162
+ **Pi — one-shot CLI:**
163
+ ```bash
164
+ pi -p --model freeflow/step-3.7-flash:high "solve this bug"
165
+ ```
166
+
167
+ > Model IDs accept a full canonical ID, a short alias (see the tables above),
168
+ > and an optional `:effort` suffix (`:minimal` … `:xhigh`, `:max` where
169
+ > supported). The host resolves the rest — you only type `freeflow/<name>`.
170
+
171
+ #### 3. Manage Your Relay Pool (OMP & Pi both)
172
+
173
+ ```bash
174
+ /freeflow status # active relay, pool status, candidates
175
+ /freeflow list # relays with health badges
176
+ /freeflow add <url> [label]
177
+ /freeflow deploy # guided deploy: vercel|cloudflare|deno
178
+ /freeflow logs [n] # tail proxy logs
150
179
  ```
151
180
 
152
- #### 3. Add Your Free Relays (Scale Infinitely)
181
+ These slash commands work **identically in OMP and Pi** — the extension
182
+ registers the same `/freeflow` command set in both hosts.
183
+ #### 4. Add Your Free Relays (Scale Infinitely)
153
184
 
154
185
  Default ships direct. Add relays via `/freeflow add <url> [label]`.
155
186
 
@@ -231,7 +262,7 @@ Log rotation at 10MB. Clean, parseable, real-time HTTP lifecycle tracking.
231
262
 
232
263
  This package stays thin. It ships three things: a model catalog, a relay proxy, and a log. There is no build step. The only runtime dependency is `undici`, which powers the upstream fetch agent. Thinking and prompt normalization stay with the host (`pi-ai`).
233
264
 
234
- Current size: about 11.3k lines including tests. 228 tests pass, typecheck clean.
265
+ Current size: about 11.3k lines including tests. 230 tests pass, typecheck clean.
235
266
 
236
267
  ---
237
268
 
@@ -251,6 +282,18 @@ Deleted in 1.3.0. If zai/qwen/deepseek thinking broke before, it's fixed now bec
251
282
 
252
283
  **Why is context free?**
253
284
  We use OpenCode Zen & Kilo free tiers. You pay only with your own Cloudflare/Vercel free tiers for egress.
285
+ **Why is it installed via npm?**
286
+ The npm package is the **distribution channel** only — both hosts resolve it internally:
287
+ `omp plugin install pi-freeflow` and `pi install npm:pi-freeflow` install the same
288
+ package from the npm registry. pi-freeflow is an **extension, not a standalone CLI** —
289
+ the host (OMP or Pi) loads and runs it. A plain `npm install` just downloads the
290
+ files; it is not a supported way to run the extension.
291
+
292
+ **Which hosts can use it?**
293
+ Oh My Pi (OMP) and Pi only. They share the same extension API
294
+ (`extensions/index.ts` declares both `omp` and `pi` extension entries), so one
295
+ package serves both. Other AI agents (OpenCode, KiloCode, Cursor, ...) have their
296
+ own plugin systems and do not load this extension.
254
297
 
255
298
  ---
256
299
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-freeflow",
3
3
  "type": "module",
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "description": "Thin provider for OMP/Pi — model list + dumb relay proxy + log; host pi-ai owns thinking/normalization",
6
6
  "main": "extensions/index.ts",
7
7
  "types": "src/index.ts",