feat(global): rebuild auto-brain as a Node 26 TypeScript monorepo - #46
Merged
Merged
Conversation
Clear the repository for the auto-brain rebuild. The plugin's final state is preserved in BeOnAuto/auto-agent-backup at e50f420. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rborepo toolchain Node 26 runs TypeScript directly, so nothing is built before it runs. Oxlint enforces the strict type-aware rules, Oxfmt formats, Vitest holds every file to 100% coverage, and Turborepo caches the gate with transit nodes so a dependency's source change re-runs its dependents. Lefthook formats and lints staged files, checks commit messages, and runs the affected gate before a push. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Package it as one container image for Cloudflare Containers and on-prem: multi-arch, non-root, dependencies resolved on the build platform so the runtime stage needs no emulation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e image and deploy CI runs the full gate, smoke-tests the container, lints the pull request title and audits the workflows with zizmor, all behind one required ci-ok check. Releases publish the image to GHCR (and Docker Hub once configured), then copy its amd64 manifest into the Cloudflare registry and deploy the Worker pinned to that digest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the auto-agent plugin with the iteration-zero foundation for auto-brain: a Node server runtime, packaged as one container image that runs on Cloudflare Containers (the public offering) and on-prem.
The plugin's last state is preserved in
BeOnAuto/auto-agent-backupate50f420.Layout
apps/server@beonauto/serverGET /health, graceful shutdown on SIGTERMapps/cloudflare@beonauto/cloudflare@cloudflare/containers)packages/config@beonauto/configHOST/PORTfrom the environmentToolchain
.tsdirectly (native type stripping). No build step for the server or internal packages; workspace packages exportsrc/index.ts.noUncheckedIndexedAccess,exactOptionalPropertyTypesanderasableSyntaxOnly.asassertions oranymain.tsis covered by spawning the real process.trustPolicy: no-downgrade, and an explicitallowBuildslist.czgprovides the guided prompt (pnpm commit).Container
nodeuser, contains no test files, and is 249 MB.CI/CD
ci.ymlruns on PRs, the merge queue andmain. It contains:pnpm checkAll of these sit behind one required check,
ci-ok. Every action is pinned by SHA, and the repo now enforces that.release.yml: release-please maintains a release PR using a short-lived BeOnAutoBot token. Merging it tagsvX.Y.Zand then:ghcr.io/beonauto/auto-brain, with provenance and an SBOM, and also to Docker Hub once it is configured;Both the Docker Hub and the Cloudflare steps stay off until their credentials exist.
Renovate handles dependency updates, grouped for non-major bumps and held back by a one-day minimum release age.
Verified locally
pnpm check: all 13 tasks green, about 0.5 s cold.docker buildplus a smoke test: health returns 200, the process runs asnode, and it exits 0 on stop.wrangler deploy --dry-runbuilds the Worker bundle and the image.pnpm devreload: 288 ms🤖 Generated with Claude Code