pi-freeflow 1.0.1 → 1.0.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/extensions/index.ts +8 -0
- package/package.json +1 -1
package/extensions/index.ts
CHANGED
|
@@ -13,6 +13,14 @@ import { Readable } from "node:stream";
|
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
14
14
|
import type { ExtensionAPI, ExtensionUIContext } from "@earendil-works/pi-coding-agent";
|
|
15
15
|
|
|
16
|
+
|
|
17
|
+
// Ensure subagents and OMP resolver recognize active credentials for freeflow
|
|
18
|
+
if (!process.env.FREEFLOW_API_KEY) {
|
|
19
|
+
process.env.FREEFLOW_API_KEY = "freeflow";
|
|
20
|
+
}
|
|
21
|
+
if (!process.env.BANSOS_API_KEY) {
|
|
22
|
+
process.env.BANSOS_API_KEY = "freeflow";
|
|
23
|
+
}
|
|
16
24
|
// ── Configuration ──────────────────────────────────────────────────
|
|
17
25
|
const UPSTREAM_OPENCODE = "https://opencode.ai/zen";
|
|
18
26
|
// KiloCode gateway — OpenAI-compatible; free models are keyless (200 req/hr per IP)
|