15 Commits

Author SHA1 Message Date
Jinjing 01b6e8742f fix: also shrink __LINKEDIT segment when stripping Mach-O signature
The previous strip only removed LC_CODE_SIGNATURE and truncated the file,
leaving __LINKEDIT's filesize pointing past EOF.  Now the script also
adjusts __LINKEDIT filesize/vmsize so rcodesign can parse the binary.
2026-04-14 17:09:09 -07:00
Jinjing 412268b5b1 fix: strip malformed Mach-O signature before rcodesign
rcodesign cannot parse the SuperBlob embedded by Bun's cross-compiler.
Both `rcodesign sign` and `rcodesign remove-signature` choke on the
malformed blob.  Add a small Python helper that strips LC_CODE_SIGNATURE
at the Mach-O binary level so rcodesign can sign from a clean state.
2026-04-14 17:07:10 -07:00
Jinjing 913e4d3e72 fix: strip malformed signature before rcodesign on CI
Bun cross-compiled darwin binaries embed a SuperBlob that rcodesign
cannot parse, causing the v0.8.2 release build to fail.  Run
`rcodesign remove-signature` first so the subsequent `rcodesign sign`
starts from a clean Mach-O.
2026-04-14 17:04:02 -07:00
Jinjing d0f4037513 fix: ad-hoc codesign macOS binaries to prevent Killed: 9
Cross-compiled Mach-O binaries from `bun build --compile` on Linux carry
an invalid code signature that causes modern macOS to SIGKILL on launch.

- Build script: sign darwin binaries after compilation (codesign/rcodesign)
- CI: install rcodesign via cargo-binstall on ubuntu runner
- Self-update: sign downloaded binary on macOS before replacing current
2026-04-13 00:47:31 -07:00
Jinjing 76df40164c Fix RC release to default to patch-level bump
Add "rc" shorthand that defaults to patch-rc, so running
`npm run release rc` from 0.5.2 produces 0.5.3-rc.0 instead
of requiring explicit patch-rc/minor-rc.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 09:21:52 -08:00
Jinjing 2ca220834a Fix release scripts for release candidates (#55)
* Fix release scripts for release candidates

* Refactor release script to use semver npm package
2026-03-07 09:01:13 -08:00
Jinjing 6ab23739ff fix(nix): harden update script with GitHub token auth and add .gitattributes (#54)
- fix(nix): harden update script with GitHub token auth and add .gitattributes

- fix(nix): harden update script with GitHub token auth and add .gitattributes
- fix issues
- fix issues
- fix issues
- fix issues
2026-03-06 21:45:44 -08:00
y0usaf bf4803dae4 feat(nix): add flake package and automated source hash updates 2026-03-06 16:13:48 -05:00
Neil 8b49a03d5f Add npm publishing support
- Add bin, files, publishConfig to package.json for npm distribution
- Add build:npm script targeting Node.js (vs bun for local dev)
- Add bin/agent-slack.js as Node-compatible CLI entry point
- Replace static bun:sqlite import with dynamic bun/node sqlite fallback
- Add npm publish step to release workflow (conditional on NPM_TOKEN)
- Lower engines requirement to Node >= 22 (LTS)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 21:05:28 -08:00
Neil a38535fc5b fix: inject version at build time for compiled binaries
The compiled binary couldn't read package.json from Bun's virtual filesystem.
Now the version is injected via --define at build time.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 20:35:16 -08:00
Neil 6292637214 fix release 2026-02-04 16:55:53 -08:00
Neil bd60cb295e skill updates 2026-02-04 16:38:41 -08:00
Neil 881da9d8f0 Release updates 2026-02-04 16:24:21 -08:00
Neil c7b24ac60b New methods, and code style 2026-02-04 14:39:30 -08:00
Neil cf45c7476c initial working version 2026-02-04 00:58:42 -08:00