feat(core): make the CLI visible where agents read - #5939
Draft
josephfarina wants to merge 1 commit into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary: Add deterministic CLI search hints to every shipped component doc and generated type declaration. Route development warnings through the same CLI-aware formatter while preserving production error output. Test Plan: - pnpm lint:strict - pnpm exec vitest run --maxWorkers=4 --reporter=dot - pnpm -F @astryxdesign/core build - pnpm -F @astryxdesign/core typecheck - pnpm -F @astryxdesign/core pack --pack-destination /tmp/ac-astryx-pack-final - verify all 227 docs and 598 declarations in the tarball contain guidance - verify all 235 generated search queries return results
josephfarina
force-pushed
the
cli-discovery-build-hints
branch
from
September 2, 2026 22:47
fd1141a to
074f41e
Compare
Contributor
PR Analysis Report
Modified ComponentsBreadcrumbs (@astryxdesign/core)
Stepper (@astryxdesign/core)
Bundle Size Summary
Accessibility AuditStatus: 1 accessibility violation(s) found — 1 serious. Stepper - 1 issue(s)
Visual RegressionStatus: Skipped — Broad stable scope is deferred to the daily release gate. It covers 4332 trusted baseline shots instead of recapturing them for this PR. View the report Generated by PR Enrichment workflow | View full report |
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.
Summary
check:repowhen checked-in source hints driftThis closes the gap where an agent can read the package's rich docs or types without ever discovering the Astryx CLI.
Test plan
pnpm lint:strictpnpm exec vitest run --maxWorkers=4 --reporter=dotpnpm -F @astryxdesign/core buildpnpm -F @astryxdesign/core typecheck@astryxdesign/coreand verified all 227 component docs and 598 declarations contain guidanceTry it
Expect the declaration to start with
npx @astryxdesign/cli search "Button". The warning prints the original message followed by the same CLI lookup.