pi-freeflow 1.0.4 → 1.0.6

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.
@@ -25,7 +25,7 @@ if (!process.env.BANSOS_API_KEY) {
25
25
  const UPSTREAM_OPENCODE = "https://opencode.ai/zen";
26
26
  // KiloCode gateway — OpenAI-compatible; free models are keyless (200 req/hr per IP)
27
27
  const KILO_CHAT_URL = "https://api.kilo.ai/api/gateway/chat/completions";
28
- const PORT = Number(process.env.BANSOS_PORT) || 18080;
28
+ const PORT = Number(process.env.FREEFLOW_PORT || process.env.BANSOS_PORT) || 18080;
29
29
  const HOST = "127.0.0.1";
30
30
  const API = `${UPSTREAM_OPENCODE}/v1`;
31
31
  const OPENCODE_USER_AGENT = "opencode/latest/1.14.50/cli";
@@ -774,7 +774,9 @@ function writeCatalogCache(opencode: string[], kilo: string[]): void {
774
774
  opencode,
775
775
  kilo,
776
776
  };
777
- fs.writeFileSync(CATALOG_CACHE_FILE, JSON.stringify(data), "utf8");
777
+ const tmpPath = `${CATALOG_CACHE_FILE}.${randomUUID()}.tmp`;
778
+ fs.writeFileSync(tmpPath, JSON.stringify(data), "utf8");
779
+ fs.renameSync(tmpPath, CATALOG_CACHE_FILE);
778
780
  } catch {}
779
781
  }
780
782
 
@@ -919,6 +921,8 @@ function normalizeRequestBody(
919
921
  body.reasoning_effort = "max";
920
922
  } else if (re === "high" || re === "medium") {
921
923
  body.reasoning_effort = "high";
924
+ } else if (re === "minimal") {
925
+ body.reasoning_effort = "minimal";
922
926
  } else if (re === "none" || re === "off") {
923
927
  delete body.reasoning_effort;
924
928
  } else {
@@ -933,6 +937,7 @@ function normalizeRequestBody(
933
937
  const re = r.effort.toLowerCase();
934
938
  if (re === "xhigh" || re === "max") r.effort = "max";
935
939
  else if (re === "high" || re === "medium") r.effort = "high";
940
+ else if (re === "minimal") r.effort = "minimal";
936
941
  else r.effort = "low";
937
942
  }
938
943
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-freeflow",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Personal multi-cloud rolling fallback relay for OpenCode Zen and KiloCode models in OMP/Pi",
5
5
  "keywords": [
6
6
  "pi-package",