getvibez 0.1.0 → 0.1.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/cli.mjs +13 -3
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -62,15 +62,19 @@ function commandsFor(target) {
|
|
|
62
62
|
// Runs both plugin commands for a target. "Already added/installed" counts
|
|
63
63
|
// as success so re-runs are harmless.
|
|
64
64
|
function install(target) {
|
|
65
|
+
let already = false;
|
|
65
66
|
for (const [bin, ...args] of commandsFor(target)) {
|
|
66
67
|
const r = spawnSync(bin, args, { encoding: "utf8" });
|
|
67
68
|
const out = (r.stdout ?? "") + (r.stderr ?? "");
|
|
68
|
-
|
|
69
|
+
// "already added/installed" is success, but only for this step — the
|
|
70
|
+
// marketplace may exist while the plugin itself is uninstalled, so the
|
|
71
|
+
// install command must still run.
|
|
72
|
+
already = /already/i.test(out);
|
|
73
|
+
if (r.status !== 0 && !already) {
|
|
69
74
|
return { ok: false, detail: out.trim() || `${bin} ${args.join(" ")} exited ${r.status}` };
|
|
70
75
|
}
|
|
71
|
-
if (/already/i.test(out)) return { ok: true, already: true };
|
|
72
76
|
}
|
|
73
|
-
return { ok: true };
|
|
77
|
+
return { ok: true, already };
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
// Race the question against readline closing: piped stdin hitting EOF
|
|
@@ -170,6 +174,12 @@ Next steps:
|
|
|
170
174
|
2. Open a new agent session — it prints your private 4-word Vibez ID.
|
|
171
175
|
(In Claude Code, /vibez:setup shows it again.)
|
|
172
176
|
3. Enter the ID in the app's Setup card. One ID covers both agents.`);
|
|
177
|
+
if (selected.some((t) => t.bin === "codex")) {
|
|
178
|
+
console.log(`
|
|
179
|
+
Note: on first launch, Codex will ask you to review and trust the Vibez
|
|
180
|
+
hooks — that's expected (Codex requires a one-time review of any plugin's
|
|
181
|
+
hooks, and again if an update changes them).`);
|
|
182
|
+
}
|
|
173
183
|
if (failed) process.exit(1);
|
|
174
184
|
}
|
|
175
185
|
|