vibeostheog 0.25.12 → 0.25.13

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,7 @@
1
+ ## 0.25.13
2
+ - fix: prompt before installer deploy
3
+
4
+
1
5
  ## 0.25.12
2
6
  - feat: add reality-check guardrail
3
7
  - fix: harden live opencode runtime integration (#191)
package/bin/setup.js CHANGED
@@ -5,11 +5,31 @@ import { readFileSync, writeFileSync, existsSync, mkdirSync } from "node:fs";
5
5
  import { dirname, resolve } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
7
  import { homedir } from "node:os";
8
+ import readline from "node:readline";
8
9
 
9
10
  const __dirname = dirname(fileURLToPath(import.meta.url));
10
11
  const root = resolve(__dirname, "..");
11
12
  const args = process.argv.slice(2);
12
13
  const isProject = args.includes("--project");
14
+ const autoYes = args.includes("--yes") || args.includes("-y");
15
+
16
+ async function confirmInstall() {
17
+ if (autoYes) return true;
18
+ if (!process.stdin.isTTY || !process.stderr.isTTY) return true;
19
+ const prompt = readline.createInterface({ input: process.stdin, output: process.stderr });
20
+ const answer = await new Promise((resolveAnswer) => {
21
+ prompt.question("Install vibeOS into OpenCode? [y/N] ", (response) => {
22
+ resolveAnswer(String(response || "").trim().toLowerCase());
23
+ });
24
+ });
25
+ prompt.close();
26
+ return answer === "y" || answer === "yes";
27
+ }
28
+
29
+ if (!(await confirmInstall())) {
30
+ console.log("Install cancelled.");
31
+ process.exit(0);
32
+ }
13
33
 
14
34
  // Deploy plugin files to ~/.config/opencode/plugins/ and register globally
15
35
  const deployScript = resolve(root, "scripts", "deploy.mjs");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibeostheog",
3
- "version": "0.25.12",
3
+ "version": "0.25.13",
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",