@proggarapsody/bitbottle 1.13.0 → 1.13.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/install.js +14 -8
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -115,15 +115,21 @@ function installSkill() {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
console.log("Registering bitbottle agent skill (Claude Code, Cursor, Codex, …)…");
|
|
118
|
+
const env = { ...process.env, npm_config_yes: "true" };
|
|
119
|
+
const skillsCmd = (cmd) =>
|
|
120
|
+
execSync(cmd, { stdio: "ignore", timeout: 60_000, env });
|
|
118
121
|
try {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
)
|
|
122
|
+
// Remove first so reinstalls actually pick up new SKILL.md content.
|
|
123
|
+
// `skills add` is idempotent and skips when the skill already exists,
|
|
124
|
+
// which means a fresh `npm i -g` after a release would NOT refresh
|
|
125
|
+
// the skill — defeating the whole point of postinstall. Removing
|
|
126
|
+
// first guarantees `add` writes the latest content.
|
|
127
|
+
try {
|
|
128
|
+
skillsCmd("npx -y skills remove bitbottle -g -y");
|
|
129
|
+
} catch (_) {
|
|
130
|
+
// not installed yet; that's fine
|
|
131
|
+
}
|
|
132
|
+
skillsCmd("npx -y skills add proggarapsody/bitbottle --global -y");
|
|
127
133
|
console.log(
|
|
128
134
|
"Agent skill registered. Set BITBOTTLE_SKIP_SKILL_INSTALL=1 to disable on next install."
|
|
129
135
|
);
|