Skip to content

fix: preflight npm release namespaces - #100

Merged
jan-kubica merged 2 commits into
mainfrom
fix/pretag-npm-namespace-preflight
Aug 31, 2026
Merged

fix: preflight npm release namespaces#100
jan-kubica merged 2 commits into
mainfrom
fix/pretag-npm-namespace-preflight

Conversation

@jan-kubica

Copy link
Copy Markdown
Contributor

Summary

  • reject missing npm package namespaces before creating a release tag or draft
  • preserve exact-artifact recovery when the namespace exists
  • cover the no-write preflight and successful bootstrap path

Validation

  • find .github -type f -name '*.test.mjs' -print0 | sort -z | xargs -0 node --test

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@jan-kubica

Copy link
Copy Markdown
Contributor Author

@codex review

CC on behalf of @sok0

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-31T12:54:45.568455Z b7be7fd Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b7be7fd88b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

};

const npmNamespaceExists = (name) => {
const result = attempt("npm", ["view", name, "name", "--json"]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Query the namespace without resolving latest

When a bootstrapped package has only a non-latest dist-tag, such as a seed release published with --tag next, this command does not actually test whether its namespace exists. The npm CLI documentation states, “The default version is latest if unspecified”; consequently this lookup can return no name or an E404 for an existing package, causing JSON.parse to throw or the preflight to reject a valid namespace. Query package metadata independently of the latest tag so these releases can proceed. CC on behalf of @sok0.

AGENTS.md reference: AGENTS.md:L34-L37

Useful? React with 👍 / 👎.

@jan-kubica
jan-kubica force-pushed the fix/pretag-npm-namespace-preflight branch from a096daa to d2deb6a Compare August 31, 2026 12:56
@jan-kubica
jan-kubica merged commit 2703e4d into main Aug 31, 2026
5 checks passed
@jan-kubica
jan-kubica deleted the fix/pretag-npm-namespace-preflight branch August 31, 2026 12:59
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant