vibeostheog 0.15.3 → 0.15.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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 0.15.5
2
+ - fix: trinity set now clears session slot + refreshes model in footer
3
+
4
+
5
+ ## 0.15.4
6
+ - fix: make model probe non-blocking on slot switch
7
+ Build: self-contained bundle (vibeOScore resolved)
8
+
9
+
1
10
  ## 0.15.3
2
11
  - fix: remove sticky fallback flag that kills auto mode after single API failure
3
12
  - refactor: architecture simplification and scale readiness
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibeostheog",
3
- "version": "0.15.3",
3
+ "version": "0.15.5",
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/index.js CHANGED
@@ -3492,7 +3492,7 @@ var VibeOSNetworkError = class extends Error {
3492
3492
 
3493
3493
  // src/lib/api-client.js
3494
3494
  var VIBEOS_API_URL = process.env.VIBEOS_API_URL || "https://api.vibetheog.com";
3495
- var VIBEOS_API_TOKEN = process.env.VIBEOS_API_TOKEN || "vos_59d73aa4b7838a7ca9dafe957993177b5629c7954091db3350b4150882ff7064";
3495
+ var VIBEOS_API_TOKEN = process.env.VIBEOS_API_TOKEN || "";
3496
3496
  var VIBEOS_API_ENABLED = process.env.VIBEOS_API_ENABLED !== "false" && !!VIBEOS_API_TOKEN;
3497
3497
  var _apiClient = null;
3498
3498
  var _apiFallbackMode = false;
@@ -4744,7 +4744,7 @@ function createTrinityTool(deps) {
4744
4744
  }
4745
4745
  const lines = [
4746
4746
  `[vibeOS-dashboard]`,
4747
- `Model: ${activeSlot} (${brainModel})`,
4747
+ `Model: ${activeSlot} (${tiers?.[activeSlot]?.oc || deps.currentModel || "(unset)"})`,
4748
4748
  ...totalTurns > 0 ? [`Split: brain ${brainPct}% / worker ${workerPct}% (${totalTurns} total)`] : [],
4749
4749
  `Thinking: ${effectiveLevel}`,
4750
4750
  `Credit: ${credit}%`,
@@ -4799,13 +4799,17 @@ function createTrinityTool(deps) {
4799
4799
  return "\u274C No model configured for " + slot + " slot. Run `trinity rebuild` first.";
4800
4800
  }
4801
4801
  const auth = deps._readAuth();
4802
- const ok = await deps.probeModel(targetModel, auth);
4803
- if (!ok) {
4804
- return "\u274C " + targetModel + " failed API probe. Cannot switch to " + slot + " slot.\nCheck API key or run `trinity rebuild` to rediscover working models.";
4802
+ try {
4803
+ const ok = await deps.probeModel(targetModel, auth);
4804
+ if (!ok) console.error("[vibeOS] WARN: " + targetModel + " probe failed - switching anyway");
4805
+ } catch (e) {
4806
+ console.error("[vibeOS] WARN: probe error for " + targetModel + ": " + e.message + " - switching anyway");
4805
4807
  }
4808
+ deps.writeSessionSlot(deps._OC_SID, slot);
4806
4809
  const result = deps.applySlot(slot);
4807
4810
  if (!result.ok)
4808
4811
  return `\u274C Failed to set slot: ${result.reason}`;
4812
+ deps._refreshModel(deps.directory);
4809
4813
  return `\u2705 Switched to ${slot} slot (${result.ocModel}). Active now (no restart needed).`;
4810
4814
  }
4811
4815
  if (action === "mode") {
@@ -9336,6 +9340,10 @@ async function DelegationEnforcer({ client: client2, directory: directory3 } = {
9336
9340
  reportsIndex,
9337
9341
  saveReportsIndex,
9338
9342
  backupFile,
9343
+ writeSessionSlot,
9344
+ _refreshModel,
9345
+ writeSessionSlot,
9346
+ _refreshModel,
9339
9347
  get _blackboxTracker() {
9340
9348
  return getBlackboxTracker();
9341
9349
  },