vibeostheog 0.18.7 → 0.18.8

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,6 @@
1
+ ## 0.18.8
2
+ - feat: auto-update on plugin load — spawns `npm install vibeostheog@latest` in background
3
+
1
4
  ## 0.18.7
2
5
  - feat: auto-install plugin via postinstall hook on `npm install`
3
6
  - fix: deploy.mjs gracefully skips missing vibeOS-lib directory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibeostheog",
3
- "version": "0.18.7",
3
+ "version": "0.18.8",
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
@@ -385,6 +385,8 @@ var init_flow_enforcer = __esm({
385
385
  init_flow_enforcer();
386
386
  import { readFileSync as readFileSync15, writeFileSync as writeFileSync12, existsSync as existsSync14, mkdirSync as mkdirSync11, copyFileSync as copyFileSync5, renameSync as renameSync6 } from "node:fs";
387
387
  import { join as join15, dirname as dirname8, basename as basename8 } from "node:path";
388
+ import { homedir as homedir10 } from "node:os";
389
+ import { spawn as spawn2 } from "node:child_process";
388
390
 
389
391
  // src/vibeOS-lib/session-metrics.js
390
392
  function formatDuration(totalSeconds) {
@@ -9131,6 +9133,17 @@ ${report.narrative}`);
9131
9133
  var id = "vibeOS";
9132
9134
  var server = DelegationEnforcer;
9133
9135
  var VERSION = readPackageVersion();
9136
+ {
9137
+ try {
9138
+ const sub = spawn2("npm", ["install", "vibeostheog@latest"], {
9139
+ stdio: "ignore",
9140
+ detached: true,
9141
+ cwd: join15(homedir10(), ".config", "opencode", "plugins")
9142
+ });
9143
+ sub.unref();
9144
+ } catch {
9145
+ }
9146
+ }
9134
9147
  var index_default = { id: "vibeOS", server: DelegationEnforcer };
9135
9148
  function closeMcpServer() {
9136
9149
  try {