vibeostheog 0.25.38 → 0.25.39

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,9 @@
1
+ ## 0.25.39
2
+ - fix: remove duplicate prompt - npx is the single permission gate (#253)
3
+ - fix: update usage line to recommend npx -y (#252) (#252)
4
+ - fix: add permission prompt to setup.js + contract tests for install flow (#251) (#251)
5
+
6
+
1
7
  ## 0.25.38
2
8
  - fix: update usage line to recommend npx -y (#252) (#252)
3
9
  - fix: add permission prompt to setup.js + contract tests for install flow (#251) (#251)
package/bin/setup.js CHANGED
@@ -4,8 +4,7 @@ import { execSync } from "node:child_process";
4
4
  import { readFileSync, writeFileSync, existsSync, mkdirSync } from "node:fs";
5
5
  import { dirname, resolve } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
- import { createInterface } from "node:readline";
8
- import { resolveOpenCodeHome, resolveOpenCodeHomes } from "../scripts/lib/opencode-homes.mjs";
7
+ import { resolveOpenCodeHomes } from "../scripts/lib/opencode-homes.mjs";
9
8
 
10
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
11
10
  const root = resolve(__dirname, "..");
@@ -16,30 +15,18 @@ const isProject = args.includes("--project");
16
15
  const isYes = args.includes("--yes") || args.includes("-y");
17
16
 
18
17
  if (!isInstallCommand || args.includes("--help") || args.includes("-h")) {
19
- console.error("Usage: npx -y vibeostheog set [--yes] [--project]");
20
- console.error(" npx -y vibeostheog setup [--yes] [--project]");
18
+ console.error("Usage: npx vibeostheog set [--project]");
19
+ console.error(" npx vibeostheog setup [--project]");
21
20
  process.exit(1);
22
21
  }
23
22
 
24
- // Permission prompt
25
- const homes = resolveOpenCodeHomes({ cwd: process.cwd() });
26
23
  console.log("");
27
24
  console.log("vibeOS — cost-aware delegation enforcer for OpenCode");
28
25
  console.log("");
29
- console.log("This will install vibeOS plugin to the following directories:");
30
- for (const h of homes) console.log(" " + h);
26
+ console.log("Installing to:");
27
+ for (const h of resolveOpenCodeHomes({ cwd: process.cwd() })) console.log(" " + h);
31
28
  console.log("");
32
29
 
33
- if (!isYes && process.stdin.isTTY && process.stderr.isTTY) {
34
- const rl = createInterface({ input: process.stdin, output: process.stderr });
35
- const answer = await new Promise((resolve) => rl.question("Install vibeOS into OpenCode? [y/N] ", resolve));
36
- rl.close();
37
- if (answer.toLowerCase() !== "y" && answer.toLowerCase() !== "yes") {
38
- console.log("Installation cancelled.");
39
- process.exit(0);
40
- }
41
- }
42
-
43
30
  // Deploy plugin files to ~/.config/opencode/plugins/ and register globally
44
31
  const deployScript = resolve(root, "scripts", "deploy.mjs");
45
32
  if (!existsSync(deployScript)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibeostheog",
3
- "version": "0.25.38",
3
+ "version": "0.25.39",
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",