pi-freeflow 1.0.4 → 1.0.5
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 +6 -1
- package/package.json +1 -1
package/extensions/index.ts
CHANGED
|
@@ -774,7 +774,9 @@ function writeCatalogCache(opencode: string[], kilo: string[]): void {
|
|
|
774
774
|
opencode,
|
|
775
775
|
kilo,
|
|
776
776
|
};
|
|
777
|
-
|
|
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
|
}
|