ReviewOS

also looking at this

stacks/better-dx

fix(deps): move from buddy-bot to @buddysh/buddy

#966
Merged glennmichael123 wants to merge fix/buddy-rename into main
6 files +23 -21

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

.config/buddy-bot.ts .config/buddy.tsrenamed+2-2
Changes to .config/buddy.ts
@@ -1,6 +1,6 @@
1import type { BuddyBotConfig } from 'buddy-bot'
1import type { BuddyConfig } from '@buddysh/buddy'
22
3const config: BuddyBotConfig = {
3const config: BuddyConfig = {
44 repository: {
55 owner: 'stacksjs',
66 name: 'development',
.github/workflows/buddy-bot.ymlmodified+14-12
Changes to .github/workflows/buddy-bot.yml
@@ -115,11 +115,13 @@ jobs:
115115 # buddy-bot updates a PR body → fires edited event → re-triggers workflow)
116116 if [[ "$ACTOR" == *"[bot]"* ]] || [[ "$ACTOR" == "github-actions[bot]" ]] || [[ "$ACTOR" == "buddy-bot" ]]; then
117117 echo "ℹ️ Skipping — PR edit was made by bot actor: $ACTOR"
118 elif [[ "$BRANCH" == buddy-bot/* ]]; then
118 # @buddysh/buddy defaults to the `buddy/` prefix; `buddy-bot/` is kept
119 # so PRs opened by the pre-rename CLI still rebase while they are open.
120 elif [[ "$BRANCH" == buddy/* ]] || [[ "$BRANCH" == buddy-bot/* ]]; then
119121 echo "run_check=true" >> $GITHUB_OUTPUT
120 echo "ℹ️ buddy-bot PR edited by user — running rebase check for branch: $BRANCH"
122 echo "ℹ️ buddy PR edited by user — running rebase check for branch: $BRANCH"
121123 else
122 echo "ℹ️ Non-buddy-bot PR edited — skipping (branch: $BRANCH)"
124 echo "ℹ️ Non-buddy PR edited — skipping (branch: $BRANCH)"
123125 fi
124126 elif [ "$" = "workflow_dispatch" ]; then
125127 JOB="$"
@@ -233,10 +235,10 @@ jobs:
233235
234236 if [ "$" = "true" ]; then
235237 echo "📋 Running in DRY RUN mode..."
236 bunx buddy-bot update-check --dry-run --verbose
238 bunx @buddysh/buddy update-check --dry-run --verbose
237239 else
238240 echo "🔄 Running in LIVE mode..."
239 bunx buddy-bot update-check --verbose
241 bunx @buddysh/buddy update-check --verbose
240242 fi
241243
242244 env:
@@ -326,15 +328,15 @@ jobs:
326328
327329 if [ "$PACKAGES" != "" ]; then
328330 if [ "$VERBOSE" = "true" ]; then
329 bunx buddy-bot update --packages "$PACKAGES" --verbose
331 bunx @buddysh/buddy update --packages "$PACKAGES" --verbose
330332 else
331 bunx buddy-bot update --packages "$PACKAGES"
333 bunx @buddysh/buddy update --packages "$PACKAGES"
332334 fi
333335 else
334336 if [ "$VERBOSE" = "true" ]; then
335 bunx buddy-bot update --strategy "$STRATEGY" --verbose
337 bunx @buddysh/buddy update --strategy "$STRATEGY" --verbose
336338 else
337 bunx buddy-bot update --strategy "$STRATEGY"
339 bunx @buddysh/buddy update --strategy "$STRATEGY"
338340 fi
339341 fi
340342
@@ -447,7 +449,7 @@ jobs:
447449 set -e # Exit on any error
448450
449451 # Build the command
450 COMMAND="bunx buddy-bot dashboard"
452 COMMAND="bunx @buddysh/buddy dashboard"
451453
452454 if [ "$TITLE" != "" ]; then
453455 COMMAND="$COMMAND --title \"$TITLE\""
@@ -470,9 +472,9 @@ jobs:
470472 # Run scan to show what would be included
471473 echo "🔍 Scanning for dependencies that would be included:"
472474 if [ "$VERBOSE" = "true" ]; then
473 bunx buddy-bot scan --verbose
475 bunx @buddysh/buddy scan --verbose
474476 else
475 bunx buddy-bot scan
477 bunx @buddysh/buddy scan
476478 fi
477479 else
478480 echo "🚀 Executing dashboard update:"
CLAUDE.mdmodified+1-1
Changes to CLAUDE.md
@@ -18,7 +18,7 @@ A single dev dependency that bundles all essential development tooling for Stack
1818
1919## Dependencies
2020
21- **buddy-bot** handles dependency updates — not renovatebot
21- **@buddysh/buddy** (formerly `buddy-bot`) handles dependency updates — not renovatebot
2222- **better-dx** provides shared dev tooling as peer dependencies — do not install its peers (e.g., `typescript`, `pickier`, `bun-plugin-dtsx`) separately if `better-dx` is already in `package.json`
2323- If `better-dx` is in `package.json`, ensure `bunfig.toml` includes `linker = "hoisted"`
2424
bun.lockmodified+4-4
Changes to bun.lock
@@ -5,6 +5,7 @@
55 "": {
66 "name": "better-dx",
77 "dependencies": {
8 "@buddysh/buddy": "^0.11.2",
89 "@stacksjs/bumpx": "^0.2.14",
910 "@stacksjs/bunpress": "^0.2.8",
1011 "@stacksjs/clapp": "^0.2.12",
@@ -12,7 +13,6 @@
1213 "@stacksjs/gitlint": "^0.1.7",
1314 "@stacksjs/logsmith": "^0.2.6",
1415 "@types/bun": "^1.3.14",
15 "buddy-bot": "^0.10.5",
1616 "bun-git-hooks": "^0.3.2",
1717 "bun-plugin-dtsx": "^0.11.10",
1818 "bunfig": "^0.15.15",
@@ -26,6 +26,8 @@
2626 "typescript": "^7.0.2",
2727 },
2828 "packages": {
29 "@buddysh/buddy": ["@buddysh/buddy@0.11.2", "", { "dependencies": { "prompts": "^2.4.2", "ts-pantry": "^0.11.64" }, "peerDependencies": { "@anthropic-ai/sdk": ">=0.117.1 <0.123.0" }, "optionalPeers": ["@anthropic-ai/sdk"], "bin": { "buddy": "./dist/bin/cli.js" } }, "sha512-JFXYixMjEcggy6Do8zgCUwiJ7/eEXvxTYr4Nd7QGiryhQ1aCoWYV0GkTRmmtC/hAOPUUMwQEjmFe3gBgMkCW0g=="],
30
2931 "@cwcss/crosswind": ["@cwcss/crosswind@0.2.16", "", { "dependencies": { "@stacksjs/clapp": "^0.2.0", "bunfig": "^0.15.17" }, "bin": { "crosswind": "./dist/cli.js" } }, "sha512-QgSTpcnt1seUQF2++taD5wk/H1lE3wSaybd+i9iP/syQTB2w/v2aM2U9SzYYe2ZcHA3Uxa1Sn/YvhcmHeFfuCA=="],
3032
3133 "@stacksjs/bumpx": ["@stacksjs/bumpx@0.2.14", "", { "dependencies": { "@stacksjs/clapp": "^0.2.0", "@stacksjs/logsmith": "^0.2.6", "bunfig": "^0.15.6" }, "bin": { "bumpx": "./dist/bin/cli.js" } }, "sha512-oXmnW19QEjCGaa4VCCnlMgPSNd7uuFes/A5zBKYHDvCvwGAPuhhg3M3hYDvIAe+jOh2Te1yFs9IfvG84kQmBBg=="],
@@ -108,8 +110,6 @@
108110
109111 "@typescript/typescript-win32-x64": ["@typescript/typescript-win32-x64@7.0.2", "", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="],
110112
111 "buddy-bot": ["buddy-bot@0.10.5", "", { "dependencies": { "prompts": "^2.4.2", "ts-pantry": "^0.11.32" }, "peerDependencies": { "@anthropic-ai/sdk": "^0.117.1" }, "optionalPeers": ["@anthropic-ai/sdk"], "bin": { "buddy-bot": "./dist/bin/cli.js" } }, "sha512-pGyjHSi91Nix76u1VIVLEYEV6vkTVKvKS9NvRYbyGR6X6CdZQrvHcmJLfGqjN/4xuUWc4h6rlVpkiwG6MOo/6Q=="],
112
113113 "bun-git-hooks": ["bun-git-hooks@0.3.2", "", { "bin": { "git-hooks": "./dist/bin/cli.js", "bun-git-hooks": "./dist/bin/cli.js" } }, "sha512-cHkmB7sxmtPNekzG0nGXqbN8Q+dZf4muvV4eCB8dBCduW1DHR+4YulKinPUk/C6Rogy+JMyL1ysVVVWwZobwZw=="],
114114
115115 "bun-plugin-dtsx": ["bun-plugin-dtsx@0.11.10", "", { "dependencies": { "@stacksjs/dtsx": "0.11.10" } }, "sha512-qQrEBIV1pzhDmrxmhTHhgVK5gqE5CfpO8C9NCp7zUaN48c4IJVrpqXbeNWch7sAT/Hf4GhVMWau7T65xySm59Q=="],
@@ -144,7 +144,7 @@
144144
145145 "ts-jpeg": ["ts-jpeg@0.3.1", "", {}, "sha512-KIGTJj4UIlkGoCFEofx8jHHQEkJfSLFJY0MHz60Mu4Scjrcj7K/0UJGCbL9QvfIaFGAOGdf0xNFpYSuzUpimwA=="],
146146
147 "ts-pantry": ["ts-pantry@0.11.35", "", { "bin": { "ts-pantry": "./dist/bin/cli.js" } }, "sha512-KCRrNuQcQ2VizHqanX0tQFm4ZlzaHBeykPLlTZu5RpJDMwpqSwcFOnOwOf4jbg2154vmAjM6mHDRRI8VVzmSxQ=="],
147 "ts-pantry": ["ts-pantry@0.11.64", "", { "bin": { "ts-pantry": "./dist/bin/cli.js" } }, "sha512-eEshD29GX8rgloOTsh0COhEEAeIKZ4yEvweeHHSteH+FsAOt47NhmXBhwxiP6CFg1BWa9Wz7uuIjyf58Y7tStQ=="],
148148
149149 "ts-syntax-highlighter": ["ts-syntax-highlighter@0.2.14", "", { "bin": { "ts-syntax-highlighter": "./dist/bin/cli.js" } }, "sha512-xujx4yJ4Rlhwdstopq6KVYs78K5nSfkpUk/GRK/InwmnJ/SN+E+hUSuSvQZz922xlXYe1SFBtzXxQXbpRt46fw=="],
150150
docs/tools.mdmodified+1-1
Changes to docs/tools.md
@@ -91,7 +91,7 @@ if (result.ok) {
9191
9292## AI Assistant
9393
94### buddy-bot
94### @buddysh/buddy
9595
9696AI-powered development assistant.
9797
package.jsonmodified+1-1
Changes to package.json
@@ -70,6 +70,7 @@
7070 "typecheck": "bun --bun tsc --noEmit"
7171 },
7272 "dependencies": {
73 "@buddysh/buddy": "^0.11.2",
7374 "@stacksjs/bumpx": "^0.2.14",
7475 "@stacksjs/bunpress": "^0.2.8",
7576 "@stacksjs/clapp": "^0.2.12",
@@ -77,7 +78,6 @@
7778 "@stacksjs/gitlint": "^0.1.7",
7879 "@stacksjs/logsmith": "^0.2.6",
7980 "@types/bun": "^1.3.14",
80 "buddy-bot": "^0.10.5",
8181 "bun-git-hooks": "^0.3.2",
8282 "bun-plugin-dtsx": "^0.11.10",
8383 "bunfig": "^0.15.15",