vibeostheog 0.20.1 → 0.20.3
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 +10 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/lib/api-client.js +4 -2
- package/src/lib/hooks/footer.js +1 -1
- package/src/lib/hooks/tool-execute.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.20.3
|
|
2
|
+
- fix: embed valid alpha token fallback
|
|
3
|
+
Merge pull request #69 from DrunkkToys/codex/alpha-token-release
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## 0.20.2
|
|
7
|
+
- fix: restore embedded api token fallback
|
|
8
|
+
Merge pull request #68 from DrunkkToys/codex/embed-api-token
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## 0.20.1
|
|
2
12
|
- docs: rename blackbox to VibeBoX and document local fallback features
|
|
3
13
|
|
package/README.md
CHANGED
|
@@ -138,7 +138,7 @@ Savings are persisted in `~/.claude/delegation-state.json`.
|
|
|
138
138
|
| Variable | Default | Purpose |
|
|
139
139
|
|---|---|---|
|
|
140
140
|
| `VIBEOS_API_URL` | `https://api.vibetheog.com` | Remote API server URL |
|
|
141
|
-
| `VIBEOS_API_TOKEN` | unset |
|
|
141
|
+
| `VIBEOS_API_TOKEN` | unset | vos_a51ffe2cdda8f52f8f3cc66064508999cc6831699309ba661a850865af07c020 |
|
|
142
142
|
| `VIBEOS_API_BOOTSTRAP_TOKEN` | unset | Alpha bootstrap token for initial auth exchange |
|
|
143
143
|
| `VIBEOS_API_ENABLED` | `true` | Set to `false` for local-only mode |
|
|
144
144
|
| `CLAUDE_CREDIT_PERCENT` | `100` | Credit override |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibeostheog",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.3",
|
|
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/api-client.js
CHANGED
|
@@ -5,6 +5,7 @@ import { fileURLToPath } from "node:url";
|
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
import { isApiConnected as isRuntimeApiConnected, markApiConnected, markApiDisconnected, resetApiConnection } from "./runtime-state.js";
|
|
7
7
|
const DEFAULT_API_URL = "https://api.vibetheog.com";
|
|
8
|
+
const EMBEDDED_API_TOKEN = "vos_a51ffe2cdda8f52f8f3cc66064508999cc6831699309ba661a850865af07c020";
|
|
8
9
|
const REQUEST_TIMEOUT = 10000;
|
|
9
10
|
const MAX_RETRIES = 3;
|
|
10
11
|
const BASE_RETRY_DELAY = 1000;
|
|
@@ -327,7 +328,7 @@ function readBootstrapTokenFromDisk() {
|
|
|
327
328
|
catch { }
|
|
328
329
|
return "";
|
|
329
330
|
}
|
|
330
|
-
export let VIBEOS_API_TOKEN = readTokenFromDisk() || process.env.VIBEOS_API_TOKEN ||
|
|
331
|
+
export let VIBEOS_API_TOKEN = readTokenFromDisk() || process.env.VIBEOS_API_TOKEN || EMBEDDED_API_TOKEN;
|
|
331
332
|
export let VIBEOS_API_BOOTSTRAP_TOKEN = readBootstrapTokenFromDisk() || process.env.VIBEOS_API_BOOTSTRAP_TOKEN || "";
|
|
332
333
|
export let VIBEOS_API_ENABLED = process.env.VIBEOS_API_ENABLED !== "false" && (!!VIBEOS_API_TOKEN || !!VIBEOS_API_BOOTSTRAP_TOKEN);
|
|
333
334
|
function persistBootstrapToken(token) {
|
|
@@ -352,7 +353,7 @@ function persistBootstrapToken(token) {
|
|
|
352
353
|
}
|
|
353
354
|
export function setApiToken(newToken) {
|
|
354
355
|
try {
|
|
355
|
-
VIBEOS_API_TOKEN = String(newToken || "").trim();
|
|
356
|
+
VIBEOS_API_TOKEN = String(newToken || "").trim() || EMBEDDED_API_TOKEN;
|
|
356
357
|
VIBEOS_API_ENABLED = process.env.VIBEOS_API_ENABLED !== "false" && !!VIBEOS_API_TOKEN;
|
|
357
358
|
const primaryPath = _envPaths[0] + "/.env.production";
|
|
358
359
|
try {
|
|
@@ -488,6 +489,7 @@ function syncApiTokenFromDisk() {
|
|
|
488
489
|
console.error("[vibeOS] API token loaded from VIBEOS_API_TOKEN env var");
|
|
489
490
|
}
|
|
490
491
|
else {
|
|
492
|
+
VIBEOS_API_TOKEN ||= EMBEDDED_API_TOKEN;
|
|
491
493
|
VIBEOS_API_ENABLED = process.env.VIBEOS_API_ENABLED !== "false" && (!!VIBEOS_API_TOKEN || !!VIBEOS_API_BOOTSTRAP_TOKEN);
|
|
492
494
|
}
|
|
493
495
|
}
|
package/src/lib/hooks/footer.js
CHANGED
|
@@ -262,7 +262,7 @@ async function _appendFooter(input, output, directory) {
|
|
|
262
262
|
const ltTotal = ltTasks + ltCache;
|
|
263
263
|
const optMode = (resolvedMode || "budget").toLowerCase();
|
|
264
264
|
const modeLabel = optMode === "quality" ? "quality" : optMode === "speed" ? "speed" : optMode === "longrun" ? "longrun" : "";
|
|
265
|
-
let vibeLine = `— ${flashIcon ? `${flashIcon} ` : ""}Quality: ${execution.quality_label} | Provider: ${execution.provider_label} | Model: ${execution.
|
|
265
|
+
let vibeLine = `— ${flashIcon ? `${flashIcon} ` : ""}Quality: ${execution.quality_label} | Provider: ${execution.provider_label} | Model: ${execution.model}`;
|
|
266
266
|
if (ltTotal > 0) {
|
|
267
267
|
vibeLine += ` | $${formatUsd(ltTotal)} saved`;
|
|
268
268
|
}
|
|
@@ -617,7 +617,7 @@ export const onToolExecuteAfter = async (input, output) => {
|
|
|
617
617
|
const displayModel = resolveDisplayModelId(liveModel || currentModel || "", projectDirectory) || liveModel || currentModel;
|
|
618
618
|
if (ltTotal > 0) {
|
|
619
619
|
const execution = resolveExecutionIdentity(input?.args?.model || liveModel || currentModel || displayModel || "", projectDirectory);
|
|
620
|
-
_footerText = `— ${flashIcon ? `${flashIcon} ` : ""}Quality: ${formatQualityName(execution.quality)} | Provider: ${formatProviderName(execution.provider)} | Model: ${execution.
|
|
620
|
+
_footerText = `— ${flashIcon ? `${flashIcon} ` : ""}Quality: ${formatQualityName(execution.quality)} | Provider: ${formatProviderName(execution.provider)} | Model: ${execution.model} | $${formatUsd(ltTotal)} saved | VIBE${flashIcon ? " ⚡" : ""} —\n\n`;
|
|
621
621
|
}
|
|
622
622
|
else {
|
|
623
623
|
_footerText = `${statusLine}${stressTag}\n\n`;
|