GeezerVison is showing github.com — feat: add M2 update check by anandh8x · Pull Request #16 · Twigpine/zero
Conversation
Summary
- add zero update --check for latest GitHub release comparison
- add JSON output for automation and docs for the M2 check-only update flow
- centralize the CLI version constant used by commander and update checks
Validation
- bun test
- bun run typecheck
- bun run build
- bun run smoke:build
- bun run package:release
- compiled ./zero update --check --json with a stubbed release endpoint
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
anandh8x
commented
Jun 2, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Pushed a follow-up commit: efe20dc Harden update check version and timeout.
What changed:
- derive
ZERO_VERSION from package.json so release bumps have one source of truth
- add a 5s default update-check timeout and pass
AbortSignal through the fetch path
- document
ZERO_UPDATE_RELEASE_URL precedence and allow full URLs or owner/repo slugs
- add tests for version sync, timeout signal wiring, endpoint precedence, and
--json output
Validation:
bun test 109/109
bun run typecheck
bun run build
bun run smoke:build
bun run package:release
- compiled
./zero --version and ./zero update --check --json with a stubbed endpoint
- GitHub CI green on Ubuntu, macOS, and Windows
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed by Hermes Agent. I checked the update-check implementation, CLI wiring, docs, and test coverage. Local validation passed with npx bun: bun test, bun run typecheck, and bun run build. LGTM.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Blockers
None found.
Non-Blocking
zero update --check currently returns a provider-style failure when GitHub has no latest release yet. That matches the documented check-failed behavior, but once releases start this should be fine.
- feat: add M2 update check #16 and [codex] add m1 headless exec surface #17 both touch
src/index.ts; I tested the combined merge path and it passes, but preserve both command registrations if resolving manually.
Looks Good
ZERO_VERSION now comes from package.json, so release bumps have one source of truth.
- Endpoint resolution handles default repo, full URLs, and owner/repo slugs, with a 5s abort signal wired through fetch.
- JSON output is covered and suitable for automation.
- Validation passed locally in an isolated worktree: 109/109 tests, typecheck, build, smoke, package release, and diff-check. Combined feat: add M2 update check #16 + [codex] add m1 headless exec surface #17 merge also passed 117/117 tests and build.
Verdict: Approve — clean check-only update flow for M2.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved — update check flow, timeout/endpoint handling, JSON output, and version source-of-truth all checked out.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|