Skip to content

Fix four rough edges from an early-access install - #521

Merged
mariojgt merged 2 commits into
mainfrom
early-access-small-fixes
Nov 26, 2026
Merged

mariojgt merged 2 commits into
mainfrom
early-access-small-fixes

Conversation

@mariojgt

Copy link
Copy Markdown
Contributor

Four small problems reported from one install on a self-hosted Next.js app.

1. An npm alias was reported as a missing package

"zod4": "npm:zod@^4" is locked and installed under the name zod. The staleness check compared the key zod4 against those names, found nothing, called the lockfile out of date and fell back to walking node_modules/. A declared alias now counts as present under either name.

2. mark-build said no build directory was found for a Next.js server build

A Next.js build that is not a static export writes .next/, which has no page files to mark. The postbuild step now says that and points at guide, and no longer lists directories it looked for and suggests --dir.

3. protect --check called detection reporting off when the key is in an env file

The check reads this command's environment and the project's config files. A framework that loads .env gives the running app a key this command never sees, so the check printed off (unavailable-no-credential) for an app that was reporting. When an env file sets the key, the check now says it cannot judge from here and names the file. The value is not read out.

4. The CLI's exit on Windows

Commands finished their work and then ended with a Node assertion (UV_HANDLE_CLOSING), which reads as a crash. On Windows the process is now left to end on its own once its work is done, with a 3 second backstop. Other platforms exit as before.

Checked

  • New tests for 1, 2 and 3. npm test passes except tests/field-test-cli-log.test.ts (a temp-path difference on my machine). tests/protect/response-json-structure.test.ts, a timing test, failed once in the full run and passes on its own.
  • typecheck and capabilities:check pass.
  • Not checked: change 4 has not been run on Windows. I have no Windows machine, so this is a fix by reasoning, and it needs someone to confirm it there.

Outstanding

mark-build and protect --check output are read by installing assistants. The post-release field-test run is owed after the release that carries this.

🤖 Generated with Claude Code

An npm alias read as a missing package, mark-build did not recognise a
Next.js server build, protect --check called reporting off when the key
sits in an env file, and the CLI's exit on Windows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderbuds

coderbuds Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🎯 Elite quality (93%) — Four targeted CLI fixes, three with focused regression tests and clear explanatory comments.

📦 Medium

🤖 Written by Claude Code — going by its own attribution. Unknown whether a person read it; agents can report that with the report-ai-usage-tool tool.

🟢 Low risk — 104 lines of code, and nothing that needs a person.

✅ Reviewed — approved by @daniloradovic.

🩺 Coderbuds triage found nothing that should stop this merge, but worth a look: changes Windows exit to a deferred process.exit with timer in src/cli.ts, with no test in this change. It only counts on Minimal or Low risk changes of up to 50 lines of code, so this one needs a person's approval or your own AI review.

See how your team is trending →

@mariojgt

Copy link
Copy Markdown
Contributor Author

/review

@mariojgt
mariojgt merged commit 0f30ee5 into main Nov 26, 2026
28 checks passed
@mariojgt
mariojgt deleted the early-access-small-fixes branch November 26, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants