@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.
- package/README.md +11 -6
- package/install.js +14 -8
- 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`
|
|
30
|
-
agent runtimes detected on your machine —
|
|
31
|
-
Gemini CLI, and 50+ others — so your
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
);
|