pi-freeflow 1.4.4 → 1.4.7

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 (3) hide show
  1. package/README.md +12 -18
  2. package/package.json +1 -1
  3. package/src/config.ts +2 -2
package/README.md CHANGED
@@ -105,7 +105,7 @@ Manage your relay pool directly from the OMP / Pi terminal:
105
105
  /freeflow label <index|url> <name># Assign a friendly label to a relay
106
106
  /freeflow remove <index|url|label># Remove a relay from the pool
107
107
  /freeflow on | off | auto # Toggle relay mode (auto = enabled for freeflow)
108
- /freeflow deploy vercel # Guided Vercel Edge relay deploy (also: deploy cloudflare, deploy deno)
108
+ /freeflow deploy <platform> # Guided relay deploy: vercel|cloudflare|deno — token in-memory, auto-adds (Vercel 1M/mo recommended)
109
109
  /freeflow logs [lines] # Inspect recent proxy logs
110
110
  /freeflow debug on | off # Toggle full HTTP lifecycle debug logging
111
111
  ```
@@ -146,9 +146,11 @@ Default ships direct. Add relays via `/freeflow add <url> [label]`.
146
146
 
147
147
  **Zero setup?** Run `/freeflow deploy cloudflare` (or `deno`, `vercel`), paste your platform token once, and the relay is created and activated for you. Manual snippets below.
148
148
 
149
- **Option A: Cloudflare Workers (100k req/day, no 25s timeout)**
150
- 1. Go to `dash.cloudflare.com` → Workers → Create → Deploy → Edit code
151
- 2. Paste this Worker relay snippet:
149
+ **Option A: Cloudflare Workers (100k req/day, no 25s timeout) — Auto Deploy**
150
+ ```bash
151
+ /freeflow deploy cloudflare # prompts token in-memory, auto-adds to pool
152
+ ```
153
+ *Manual fallback:* `dash.cloudflare.com` → Workers → Create → Deploy → Edit code → paste snippet below → Deploy → `/freeflow add https://your.workers.dev cf-worker-1`
152
154
 
153
155
  ```js
154
156
  // Only the 2 upstreams pi-freeflow talks to. Anything else = open proxy abuse.
@@ -168,20 +170,18 @@ export default {
168
170
  },
169
171
  };
170
172
  ```
171
- 3. Deploy and add it:
172
173
 
174
+ **Option B: Vercel Edge Relay (1M req/mo) — Auto Deploy**
173
175
  ```bash
174
- omp → /freeflow add https://your.workers.dev cf-worker-1
176
+ /freeflow deploy vercel # prompts token in-memory, auto-adds to pool
177
+ # or shorthand: /freeflow deploy
175
178
  ```
176
179
 
177
- **Option B: Vercel Edge Relay (1M req/mo), Auto Deploy**
180
+ **Option C: Deno Deploy (100k req/day) Auto Deploy**
178
181
  ```bash
179
- /freeflow deploy # prompts token in-memory, auto-adds to pool
182
+ /freeflow deploy deno # prompts token in-memory, auto-adds to pool
180
183
  ```
181
-
182
- **Option C: Deno Deploy (100k req/day)**
183
- 1. Go to `dash.deno.com` → New Project → Playground
184
- 2. Paste this relay and click **Deploy**:
184
+ *Manual fallback:* `dash.deno.com` → New Project → Playground → paste snippet below → Deploy → `/freeflow add https://your-project.deno.dev deno-relay-1`
185
185
 
186
186
  ```ts
187
187
  const ALLOWED_TARGETS = ["https://opencode.ai", "https://api.kilo.ai"];
@@ -199,12 +199,6 @@ Deno.serve(async (req) => {
199
199
  });
200
200
  ```
201
201
 
202
- 3. Add it:
203
-
204
- ```bash
205
- /freeflow add https://your-project.deno.dev deno-relay-1
206
- ```
207
-
208
202
  **Verify your pool:**
209
203
  ```bash
210
204
  /freeflow status # relay-A 1/N (ON) → candidates:N
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-freeflow",
3
3
  "type": "module",
4
- "version": "1.4.4",
4
+ "version": "1.4.7",
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",
package/src/config.ts CHANGED
@@ -53,8 +53,8 @@ export const VERCEL_API = "https://api.vercel.com";
53
53
 
54
54
  // ── Catalog & Logging constants ─────────────────────────────────────
55
55
  export const CATALOG_CACHE_TTL_MS = 86_400_000; // 24 hours — delegate to host fetchDynamicModels
56
- export const LOG_MAX_BYTES = 5 * 1024 * 1024; // 5MB
57
- export const LOG_MAX_FILES = 3;
56
+ export const LOG_MAX_BYTES = 10 * 1024 * 1024; // 10MB per file
57
+ export const LOG_MAX_FILES = 10; // 10 archived + current ≈ 110MB max (≈100MB per your request, rotated, not single 100MB blob)
58
58
 
59
59
  // ── Rate Limit Maxima ───────────────────────────────────────────────
60
60
  export const RATE_LIMIT_MAX: Record<Upstream, number> = {