astryx init foolproof: @astryxdesign/cli postinstall nudge#4154
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
josephfarina
force-pushed
the
navi/vibe/cli-postinstall
branch
from
July 22, 2026 00:49
73bcd7d to
92d398d
Compare
josephfarina
force-pushed
the
navi/vibe/cli-setup-nudge
branch
from
July 22, 2026 00:55
f59ef63 to
67cf01b
Compare
josephfarina
force-pushed
the
navi/vibe/cli-postinstall
branch
from
July 22, 2026 00:56
92d398d to
a3e4a84
Compare
josephfarina
force-pushed
the
navi/vibe/cli-setup-nudge
branch
from
July 22, 2026 01:37
67cf01b to
a913a63
Compare
josephfarina
force-pushed
the
navi/vibe/cli-postinstall
branch
from
July 22, 2026 01:37
a3e4a84 to
3020906
Compare
josephfarina
force-pushed
the
navi/vibe/cli-setup-nudge
branch
from
July 22, 2026 03:41
a913a63 to
2af3f76
Compare
josephfarina
force-pushed
the
navi/vibe/cli-postinstall
branch
from
July 22, 2026 03:41
3020906 to
9628986
Compare
josephfarina
marked this pull request as ready for review
July 22, 2026 03:42
When @astryxdesign/cli is installed as a project dependency and the project hasn't run init yet, print a one-line next-step so agents/humans discover it. - scripts/postinstall.mjs reuses the ONE setup check (isAstryxInitialized — a dep-free import chain, safe at install time). Never fails the install. - Quiet in the monorepo/source build, during npx's transient fetch (path _npx or npm_command=exec — the bin/init runs right after, so nudging would double up), and once setup is already done. - Message is the validated simple one-liner (message-format vibe test). - shouldNudge() is a pure, unit-tested decision; guardrail test covers the matrix. Stacks on the per-command nudge PR (shares isAstryxInitialized).
josephfarina
force-pushed
the
navi/vibe/cli-postinstall
branch
from
July 22, 2026 04:01
9628986 to
471af5d
Compare
josephfarina
enabled auto-merge (squash)
July 22, 2026 04:01
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
added a commit
that referenced
this pull request
Jul 22, 2026
Seven published-behavior PRs merged since v0.1.7 without a changeset, which would leave their contributors uncredited in the CHANGELOG. Add changesets so the v0.1.8 bump credits them: - core docs.mjs redirect to the CLI (#4207) - Table tree-data plugin: useTableTreeState / useTableTreeData (#3789) - Table tree expander aria-label localization (#4149) - foolproof init: postinstall nudges + non-interactive init (#4147, #4153, #4154, #4155)
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.
Enforcement layer 2 of 3. When
@astryxdesign/cliis installed as a project dependency and the project hasn't run init yet, its postinstall prints a one-line next-step so agents/humans discover it.What
packages/cli/scripts/postinstall.mjsreuses the one setup check (dep-free import chain → safe at install time). Never fails the install._npxpath ornpm_command=exec— npx runs the bin right after, so nudging would double up), and once set up.npx @astryxdesign/cli init, footgun-free per 4/n astryx init foolproof: scope CLI invocation (no barenpx astryxfootgun) #4151).Tests
cli-postinstall.test.mjs—shouldNudge()decision matrix (dependency install / monorepo / npx / already-set-up). 6/6 green.