vibeostheog 0.19.9 → 0.20.1
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 +37 -11
- package/package.json +14 -5
- package/src/index.js +698 -11736
- package/src/lib/credit-api.js +31 -7
- package/src/lib/hooks/chat-transform.js +49 -28
- package/src/lib/hooks/footer.js +9 -9
- package/src/lib/hooks/session-compact.js +3 -3
- package/src/lib/hooks/shell-env.js +4 -4
- package/src/lib/hooks/tool-execute.js +24 -23
- package/src/lib/index-helpers.js +9 -9
- package/src/lib/pricing.js +297 -9
- package/src/lib/runtime-surface.js +5 -0
- package/src/lib/selection-manager.js +11 -5
- package/src/lib/state.js +7 -7
- package/src/lib/trinity-rebuild.js +204 -30
- package/src/lib/trinity-tool.js +76 -54
- package/src/utils/cost-formatter.js +6 -6
- package/src/utils/timer.js +1 -1
- package/src/vibeOS-lib/flow-enforcer.js +2 -2
- package/src/vibeOS-lib/session-metrics.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.20.1
|
|
2
|
+
- docs: rename blackbox to VibeBoX and document local fallback features
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## 0.20.0
|
|
6
|
+
- fix: resolve live OpenCode model and refresh README launch copy
|
|
7
|
+
Merge pull request #61 from DrunkkToys/codex/release-candidate-blackbox-footer
|
|
8
|
+
Merge pull request #59 from DrunkkToys/codex/fix-thinking-directive-precedence
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## 0.19.9
|
|
2
12
|
- fix: show live run model in footer
|
|
3
13
|
|
package/README.md
CHANGED
|
@@ -1,18 +1,44 @@
|
|
|
1
1
|
# vibeOS for OpenCode
|
|
2
2
|
|
|
3
|
-
> **Alpha
|
|
4
|
-
vibeOS is the cost-aware routing layer for OpenCode Desktop. It keeps high-tier models focused on orchestration, pushes implementation work to cheaper tiers, and makes the savings visible in real time through the live footer and dashboard.
|
|
3
|
+
> **Alpha Omega Launch** - This release is the first major public launch of vibeOS. See [CHANGELOG.md](CHANGELOG.md) for release notes.
|
|
5
4
|
|
|
5
|
+
vibeOS is the cost-aware control plane for OpenCode Desktop. It helps individuals and teams keep expensive models focused on strategy, move implementation work to cheaper tiers, and make the resulting savings visible in real time through the live footer and dashboard.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
For teams, vibeOS adds practical guardrails: delegation enforcement, flow and TDD controls, pattern learning, stress-aware routing, VibeBoX decision tracking, reporting, and remote API protection for the core algorithms.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## What We Offer
|
|
10
|
+
|
|
11
|
+
- Model routing that matches the job to the right provider and tier
|
|
12
|
+
- Live savings visibility in chat, the footer, and the web dashboard
|
|
13
|
+
- Separate tracking for delegation savings and cache savings
|
|
14
|
+
- Runtime controls for flow, TDD, model locking, and VibeBoX mode
|
|
15
|
+
- A local fallback path if the remote API is unavailable
|
|
16
|
+
|
|
17
|
+
## Local Fallback Mode
|
|
18
|
+
|
|
19
|
+
Without a token, vibeOS keeps running in local-only mode with bundled algorithms. Here's what works locally versus what requires the remote API.
|
|
20
|
+
|
|
21
|
+
### Fully Functional Locally
|
|
22
|
+
|
|
23
|
+
- Model tier classification (brain / medium / cheap)
|
|
24
|
+
- Static pricing for ~20 common models
|
|
25
|
+
- Stress scoring, context budget estimation, and turn classification
|
|
26
|
+
- TDD skeleton generation, text compression, and flow enforcement
|
|
27
|
+
- Savings ledger, session metrics, reports, and footer/dashboard rendering
|
|
28
|
+
- Session-scoped smart cache for duplicate tool output detection
|
|
29
|
+
|
|
30
|
+
### Requires Remote API
|
|
31
|
+
|
|
32
|
+
- Bootstrap token exchange (required for initial API setup)
|
|
33
|
+
- Advanced VibeBoX decision engine with full session history tracking
|
|
34
|
+
- Dynamic per-prompt delegation decisions (local fallback uses a safe "block all writes on high tier" default)
|
|
35
|
+
- Learned subagent routing patterns across projects (local fallback uses a static exploratory keyword list)
|
|
36
|
+
- Optimization mode selection via advanced VibeBoX (local fallback uses rule-based selection)
|
|
37
|
+
- Aggregated cross-session calibration and model retraining
|
|
38
|
+
- Live pricing fetch for models beyond the hardcoded map
|
|
39
|
+
|
|
40
|
+
When the remote API is unreachable, the plugin degrades gracefully to rule-based local algorithms. Core enforcement features continue working — the plugin stays functional and safe, just less adaptive in its routing and mode decisions.
|
|
10
41
|
|
|
11
|
-
- Routes work to the right model tier without manual babysitting
|
|
12
|
-
- Tracks delegation savings and cache savings separately
|
|
13
|
-
- Shows live status in chat, the footer, and the web dashboard
|
|
14
|
-
- Adds runtime controls for flow, TDD, model locking, and blackbox mode
|
|
15
|
-
- Falls back to local algorithms if the remote API is unavailable
|
|
16
42
|
|
|
17
43
|
## Install
|
|
18
44
|
|
|
@@ -83,7 +109,7 @@ The most common controls are:
|
|
|
83
109
|
- `trinity patterns` / `trinity patterns clear` - inspect or reset learned patterns
|
|
84
110
|
- `trinity diagnose` - run a health check
|
|
85
111
|
- `trinity repair-state preview|apply` - fix state fingerprint collisions
|
|
86
|
-
- `trinity
|
|
112
|
+
- `trinity VibeBoX on|off|status|reset` - control the decision engine
|
|
87
113
|
- `trinity guard` - refresh AGENTS.md and README.md checks
|
|
88
114
|
- `trinity api-token <token>` - update the remote API token
|
|
89
115
|
- `trinity api-bootstrap-token <token>` - store an alpha bootstrap token and exchange it for a normal API token on alpha builds
|
|
@@ -99,7 +125,7 @@ Additional reporting commands:
|
|
|
99
125
|
|
|
100
126
|
The footer shows:
|
|
101
127
|
|
|
102
|
-
- the active model
|
|
128
|
+
- the active provider/model in use for the current run
|
|
103
129
|
- cumulative delegation savings
|
|
104
130
|
- cache savings
|
|
105
131
|
- stress level
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibeostheog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
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",
|
|
7
7
|
"release:patch": "node scripts/release.mjs patch --yes",
|
|
8
8
|
"release:minor": "node scripts/release.mjs minor --yes",
|
|
9
9
|
"release:major": "node scripts/release.mjs major --yes",
|
|
10
|
-
"build": "
|
|
10
|
+
"build": "npm run build:bundle && node scripts/deploy.mjs",
|
|
11
|
+
"build:bundle": "tsc -p tsconfig.json && node scripts/sync-ts-build.mjs",
|
|
11
12
|
"deploy": "node scripts/deploy.mjs",
|
|
12
13
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
13
14
|
"checkpoint:validate": "node scripts/checkpoint-validate.mjs",
|
|
@@ -21,7 +22,11 @@
|
|
|
21
22
|
"codex:hook:summary": "bash plugins/vibetheog-codex/hooks/post-command-summary.sh",
|
|
22
23
|
"precommit": "node scripts/pre-commit.mjs",
|
|
23
24
|
"audit-state": "node scripts/audit-state.mjs",
|
|
24
|
-
"migrate-ledger": "node scripts/migrate-ledger.mjs"
|
|
25
|
+
"migrate-ledger": "node scripts/migrate-ledger.mjs",
|
|
26
|
+
"lint": "eslint src/",
|
|
27
|
+
"lint:fix": "eslint src/ --fix",
|
|
28
|
+
"test:coverage": "c8 --reporter=text --reporter=html npm test",
|
|
29
|
+
"typecheck:strict": "tsc -p tsconfig.strict.json --noEmit"
|
|
25
30
|
},
|
|
26
31
|
"type": "module",
|
|
27
32
|
"main": "./src/index.js",
|
|
@@ -70,11 +75,15 @@
|
|
|
70
75
|
},
|
|
71
76
|
"devDependencies": {
|
|
72
77
|
"@playwright/test": "^1.60.0",
|
|
78
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
73
79
|
"@types/express": "^5.0.6",
|
|
74
80
|
"@types/node": "^22.15.30",
|
|
81
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
82
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
83
|
+
"c8": "^11.0.0",
|
|
75
84
|
"esbuild": "^0.28.0",
|
|
85
|
+
"eslint": "^10.4.0",
|
|
76
86
|
"express": "^5.2.1",
|
|
77
87
|
"typescript": "^5.9.3"
|
|
78
|
-
}
|
|
79
|
-
"dependencies": {}
|
|
88
|
+
}
|
|
80
89
|
}
|