@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.
Files changed (2) hide show
  1. package/install.js +14 -8
  2. 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
- execSync(
120
- "npx -y skills add proggarapsody/bitbottle --global -y",
121
- {
122
- stdio: "ignore",
123
- timeout: 60_000,
124
- env: { ...process.env, npm_config_yes: "true" },
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
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proggarapsody/bitbottle",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "Bitbucket CLI for Server/Data Center and Cloud — npm wrapper for bitbottle",
5
5
  "keywords": [
6
6
  "mcp",