vibeostheog 0.23.20 → 0.23.21
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/package.json +1 -1
- package/src/lib/turn-classify.js +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibeostheog",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.21",
|
|
4
4
|
"description": "Cost-aware delegation enforcer for OpenCode. Tracks model usage, routes Task subagents to cheaper tiers, surfaces cumulative savings in chat. Includes research audit, reporting framework, project memory, progressive scratchpad decadence, and trinity CLI for brain/medium/cheap slot switching.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"release": "node scripts/release.mjs",
|
package/src/lib/turn-classify.js
CHANGED
|
@@ -67,6 +67,7 @@ export function bootstrapOptimizationSession() {
|
|
|
67
67
|
return { mode: resolvedMode, slot: resolvedSlot };
|
|
68
68
|
}
|
|
69
69
|
export async function selectOptimizationModeRemote(subRegime, stressMultiplier, fallbackMode) {
|
|
70
|
+
if (!isApiFallback()) return autoSelectMode(subRegime || "INIT", stressMultiplier);
|
|
70
71
|
const fallback = resolveOptimizationMode(subRegime, stressMultiplier, fallbackMode);
|
|
71
72
|
try {
|
|
72
73
|
if (!isApiFallback()) {
|
|
@@ -576,12 +577,17 @@ export function loadOptimizationMode() {
|
|
|
576
577
|
export function saveOptimizationMode(mode) {
|
|
577
578
|
try {
|
|
578
579
|
writeSessionOptMode(_OC_SID, mode);
|
|
580
|
+
}
|
|
581
|
+
catch (e) {
|
|
582
|
+
console.error("[vibeOS] saveOptimizationMode session write failed: " + e.message);
|
|
583
|
+
}
|
|
584
|
+
try {
|
|
579
585
|
if (mode && mode !== "auto")
|
|
580
586
|
saveGlobalOptMode(mode);
|
|
581
587
|
return true;
|
|
582
588
|
}
|
|
583
|
-
catch (
|
|
584
|
-
console.error("[vibeOS] saveOptimizationMode failed: " +
|
|
589
|
+
catch (e) {
|
|
590
|
+
console.error("[vibeOS] saveOptimizationMode global write failed: " + e.message);
|
|
585
591
|
return false;
|
|
586
592
|
}
|
|
587
593
|
}
|