vibeostheog 0.25.26 → 0.25.28

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 (2) hide show
  1. package/dist/vibeOS.js +19 -4
  2. package/package.json +1 -1
package/dist/vibeOS.js CHANGED
@@ -5414,7 +5414,7 @@ var _apiFallbackSince = null;
5414
5414
  var _bootstrapExchangeInFlight = null;
5415
5415
  var _bootstrapExchangeFailedAt = 0;
5416
5416
  var _backendVersion = "";
5417
- var FALLBACK_COOLDOWN_MS = 6e4;
5417
+ var FALLBACK_COOLDOWN_MS = process.env.VIBEOS_FAST_CI === "1" ? 5e3 : 6e4;
5418
5418
  function tryResetFallbackCooldown() {
5419
5419
  if (!_apiFallbackMode || !_apiFallbackSince)
5420
5420
  return false;
@@ -5559,7 +5559,7 @@ async function remoteCall(method, args, fallbackFn) {
5559
5559
  syncApiTokenFromDisk();
5560
5560
  }
5561
5561
  if (tryResetFallbackCooldown()) {
5562
- console.warn("[vibeOS] API fallback cooldown expired \u2014 retrying API");
5562
+ console.debug("[vibeOS] API fallback cooldown expired \u2014 retrying API");
5563
5563
  }
5564
5564
  if (!isApiEnabled() || _apiFallbackMode) {
5565
5565
  if (fallbackFn)
@@ -5586,7 +5586,7 @@ async function remoteCall(method, args, fallbackFn) {
5586
5586
  if (_apiFallbackMode) {
5587
5587
  _apiFallbackMode = false;
5588
5588
  _apiFallbackSince = null;
5589
- console.warn(`[vibeOS] API reconnected \u2014 ${method} OK`);
5589
+ console.debug(`[vibeOS] API reconnected \u2014 ${method} OK`);
5590
5590
  }
5591
5591
  _apiFallbackMode = false;
5592
5592
  _apiFallbackSince = null;
@@ -9870,7 +9870,22 @@ Lock is per-session (resets on restart).`;
9870
9870
  }
9871
9871
  } catch {
9872
9872
  }
9873
- const selectedModel = deps.currentModel || existing?.selection?.selected_model || existing?.selection?.executed_model || "";
9873
+ let selectedModel = deps.currentModel || existing?.selection?.selected_model || existing?.selection?.executed_model || "";
9874
+ if (!selectedModel) {
9875
+ try {
9876
+ for (const dir of [deps.directory || process.cwd(), deps.OPENCODE_HOME].filter(Boolean)) {
9877
+ const p = join11(dir, "opencode.json");
9878
+ if (deps.existsSync(p)) {
9879
+ const oc = deps.safeJsonParse(deps.readFileSync(p, "utf-8"));
9880
+ if (oc?.model) {
9881
+ selectedModel = oc.model;
9882
+ break;
9883
+ }
9884
+ }
9885
+ }
9886
+ } catch {
9887
+ }
9888
+ }
9874
9889
  const trinity = buildDeterministicTrinity(discovered, { selectedModelId: selectedModel });
9875
9890
  const brain = trinity?.brain || existing?.trinity?.brain?.oc || selectedModel || "";
9876
9891
  const medium = trinity?.medium || existing?.trinity?.medium?.oc || brain;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibeostheog",
3
- "version": "0.25.26",
3
+ "version": "0.25.28",
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",