@proggarapsody/bitbottle 1.13.0 → 1.14.0

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 (3) hide show
  1. package/README.md +11 -6
  2. package/install.js +14 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -26,13 +26,18 @@ $ bitbottle pr create --title "fix: handle empty diff" --base main
26
26
  npm install -g @proggarapsody/bitbottle
27
27
  ```
28
28
 
29
- This also registers the bundled AI agent skill (`SKILL.md`) with any
30
- agent runtimes detected on your machine — Claude Code, Cursor, Codex,
31
- Gemini CLI, and 50+ others — so your agents know how to drive bitbottle
32
- correctly. Skip with `BITBOTTLE_SKIP_SKILL_INSTALL=1 npm install -g …`.
33
- Install or refresh manually:
29
+ This also registers the bundled AI agent skill (`SKILL.md` + topic
30
+ references) with any agent runtimes detected on your machine —
31
+ Claude Code, Cursor, Codex, Gemini CLI, and 50+ others — so your
32
+ agents know how to drive bitbottle correctly. Skip with
33
+ `BITBOTTLE_SKIP_SKILL_INSTALL=1 npm install -g …`.
34
+
35
+ If you installed via Homebrew, Go install, or the bare binary,
36
+ register the skill explicitly:
34
37
  ```bash
35
- npx -y skills add proggarapsody/bitbottle --global -y
38
+ bitbottle skill install # uses npx; needs Node.js >= 18
39
+ bitbottle skill path # show where the skill was installed
40
+ bitbottle skill remove # uninstall
36
41
  ```
37
42
 
38
43
  **Go install:**
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.14.0",
4
4
  "description": "Bitbucket CLI for Server/Data Center and Cloud — npm wrapper for bitbottle",
5
5
  "keywords": [
6
6
  "mcp",