Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:

jobs:
cli:
name: CLI and packages
name: CLI
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
Expand All @@ -43,8 +43,8 @@ jobs:
- name: Bundle the sweep engine
run: |
bun build src/review-sweep.ts --target=bun --format=esm --outfile=/tmp/stupify-review-sweep.ts
if grep -E '@stupify/exe-(cli|host)' /tmp/stupify-review-sweep.ts; then
echo "::error::review-sweep bundle still imports a workspace package"
if grep -E "from ['\"]@(stupify|bevyl-ai)/" /tmp/stupify-review-sweep.ts; then
echo "::error::review-sweep bundle still imports an external package"
exit 1
fi

Expand All @@ -65,12 +65,10 @@ jobs:
}

ROOT_TGZ="$(pack_tgz . '^stupify-cli-[0-9].*\.tgz$')"
EXE_CLI_TGZ="$(pack_tgz packages/exe-cli '^stupify-exe-cli-[0-9].*\.tgz$')"
EXE_HOST_TGZ="$(pack_tgz packages/exe-host '^stupify-exe-host-[0-9].*\.tgz$')"
TMP="$(mktemp -d)"
npm install --prefix "$TMP" "$EXE_CLI_TGZ" "$EXE_HOST_TGZ" "$ROOT_TGZ"
npm install --prefix "$TMP" "$ROOT_TGZ"
npm exec --prefix "$TMP" -- stupify --help
rm -rf "$TMP" "$ROOT_TGZ" "$EXE_CLI_TGZ" "$EXE_HOST_TGZ"
rm -rf "$TMP" "$ROOT_TGZ"

site:
name: Site build
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,20 @@ jobs:
- name: Smoke the CLI
run: bun src/cli.ts --help

# Bundle the workspace helpers into the CLI so we publish ONE self-contained package (the shape 0.4.x
# shipped before the exe-* split). npm OIDC can't create the never-published @stupify/exe-* packages, and
# a package must exist before it can have a trusted publisher — so we inline them here instead. Runs on the
# ephemeral checkout only; the repo keeps the workspace split for development.
# Bundle the CLI + engine so we publish ONE self-contained package: @bevyl-ai/agent-tools inlines at
# build time, so the published artifact has zero runtime deps beyond clack/picocolors. Runs on the
# ephemeral checkout only; the repo keeps the real dependency for development.
- name: Bundle into a single self-contained package
run: |
set -euo pipefail
bun build src/cli.ts --target=bun --format=esm --outfile=src/cli.bundled.ts
bun build src/review-sweep.ts --target=bun --format=esm --outfile=src/review-sweep.bundled.ts
mv src/cli.bundled.ts src/cli.ts
mv src/review-sweep.bundled.ts src/review-sweep.ts
if grep -E '@stupify/exe-(cli|host)' src/cli.ts src/review-sweep.ts; then
echo "::error::bundle still imports a workspace package"; exit 1
if grep -E "from ['\"]@(stupify|bevyl-ai)/" src/cli.ts src/review-sweep.ts; then
echo "::error::bundle still imports an external package"; exit 1
fi
node -e "const p=require('./package.json'); delete p.dependencies['@stupify/exe-cli']; delete p.dependencies['@stupify/exe-host']; delete p.workspaces; require('fs').writeFileSync('./package.json', JSON.stringify(p,null,2)+'\n')"
node -e "const p=require('./package.json'); delete p.dependencies['@bevyl-ai/agent-tools']; require('fs').writeFileSync('./package.json', JSON.stringify(p,null,2)+'\n')"

- name: Check package contents
run: |
Expand Down
18 changes: 2 additions & 16 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"version": "0.4.5",
"description": "A code reviewer that talks like an idiot and catches real bugs \u2014 corpus-grounded, anti-slop, runs on Codex.",
"type": "module",
"workspaces": [
"packages/*"
],
"bin": {
"stupify": "bin/stupify.js"
},
Expand Down Expand Up @@ -50,11 +47,9 @@
"cli": "bun src/cli.ts"
},
"dependencies": {
"@stupify/exe-cli": "0.4.5",
"@stupify/exe-host": "0.4.5",
"@clack/prompts": "^1.2.0",
"picocolors": "^1.1.1",
"@bevyl-ai/agent-tools": "^0.2.0"
"@bevyl-ai/agent-tools": "^0.3.0"
},
"devDependencies": {
"@types/bun": "^1.3.14",
Expand Down
6 changes: 0 additions & 6 deletions packages/exe-cli/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions packages/exe-cli/package.json

This file was deleted.

155 changes: 0 additions & 155 deletions packages/exe-cli/src/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/exe-host/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions packages/exe-host/package.json

This file was deleted.

Loading