Skip to content

fix(cli): outside a project, a page takes the packages its host's set lists - #12057

Merged
josephfarina merged 7 commits into
mainfrom
josephfarina/served-set-template-packages
Nov 17, 2026
Merged

josephfarina merged 7 commits into
mainfrom
josephfarina/served-set-template-packages

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

User impact

A tool can run the Astryx CLI for you from its own package set: it installs the CLI, Core and other packages in one folder and starts the CLI through the host entry. Outside a project, someone scaffolds a template page with such a tool and renders it:

template settings --type page ./settings
Copied template to settings/page.tsx
Install missing dependencies: npm install @heroicons/react@"^2.2.0"

experimental render settings/page.tsx
Error: The page imports @heroicons/react, which is not installed

Even when the tool's set already holds that icon library, the CLI asks for an npm install in a folder that is not a project, and render stops until it runs. Following the step writes a package.json and node_modules into that folder. On a machine where npm cannot reach its registry from the person's shell, the step never finishes, and the page never renders.

After this change, outside a project, a page also takes each package that the host's set lists in its package.json, as it already takes Astryx, React and StyleX. template names only the packages the set does not hold, and render renders the page with nothing to install. In a folder that no package.json holds, template names a package nothing provides as missing, for the project that uses the page, and prints no install step that would turn the folder into a project. A folder outside an Astryx project counts the same way when it has a package.json of its own, such as a React app that has not added Astryx yet: in a hosted run whose set lists the icon library, template reports nothing missing there and prints no install step, and the page renders from the set. Inside a project nothing changes: the project's own packages serve the page, and template names what the project lacks.

Problem and solution fit

  1. Why does it happen? Outside a project, a render takes from the package set only the Astryx packages, React, StyleX, and the integrations the host approves. template compares the template's imports with the target folder's package.json alone.
  2. Why does it harm the task? The step it prints sets up a project in a folder that is not one, which spec:AST-081 FR3 says output outside a project must not do, and the render cannot go on without it.
  3. Why does that matter? Scaffolding a page and rendering it is the whole task outside a project. A host installs packages for its pages so that this works with no install step.

The set's own package.json says what its host installed there. A render now resolves those packages from the set too, and template counts them as present. The CLI keeps no list of its own: the host decides what its set holds.

Expected behavior and authority

  • spec:AST-081 FR3: outside a project, the answering release answers as a new project with only its Core, the computer-level integrations and the host's approved integrations would, and output there must not give advice that works only inside a project, such as a step that sets up a project the folder does not have. This PR amends FR3: in a hosted run, the packages the serving root's package.json lists in dependencies or optionalDependencies count too (render takes them; template, build and theme eject do not name them as missing), and in a folder that no package.json holds, those three commands name a package nothing provides as missing, with no install command.
  • architecture:cli-surface INV30: what a package set fills outside a project. This PR adds the matching bullet and amends the enumeration bullet to allow that one read.
  • spec:AST-048 FR15, FR17 and FR21 own the readiness values (missingPackages, installCommand, notes). This PR amends them to match: FR15 counts the serving root's listed packages as declared in a hosted run outside a project; FR17 gives a command only when a package.json holds the target directory, and otherwise names the missing packages for the project that uses the source; FR21's notes line names that case.
  • spec:AST-050's theme eject sentence lists the third null case for installCommand.

Smallest restoration

  • foundation/runtime/package-root.mjs: servingRootPackages(), the packages that the root holding the run's starting copy lists in dependencies and optionalDependencies. Empty with no hosted run.
  • api/render/_adapter.mjs: outside a project, the packages a page may take from the set are the approved integrations plus those packages.
  • foundation/discovery/template-needs.mjs, shared by template, build and theme eject: outside a project, a package the set lists is not missing; in a folder that no package.json holds, the note names the missing packages for the project that uses the page and carries no install command (installCommand is null, as it already is when lockfiles tie).
  • foundation/render/served-packages.mjs: comments only.
  • Docs: the exact rule in the render command doc, the render guide, and the host entry page (which names no experimental command); the installCommand null case in the template and theme eject result docs and the canonical response types, with the README table regenerated.

Evidence

  • Reproduction: a package set made with npm (the CLI and Core canary, React, StyleX, @heroicons/react), started through its host entry in an empty folder. template settings --type page ./settings printed Install missing dependencies: npm install @heroicons/react@"^2.2.0". experimental render settings/page.tsx exited 1 with The page imports @heroicons/react, which is not installed.
  • Result with only these files changed in that set's CLI: template printed no install step, and render exited 0 and wrote settings/page.html.
  • Representative unchanged paths: inside a project, and in any run with no host, template still names a missing package with the project's install command when a package.json holds the folder (the existing package-manager tests pass unchanged). With no hosted run, the set adds nothing, because servingRootPackages() is empty.
  • Regression tests: analyzeTemplateNeeds in a folder no package.json holds names the missing packages with no install command; in a hosted run it also counts the set's package as present; inside a project it names both with the install command. servingRootPackages() reads dependencies and optionalDependencies and ignores devDependencies. The new template-needs tests fail on the old code. api/render/hosted-packages.test.mjs renders through a real host entry: the packed CLI placed in a package set with Core and one extra package, started outside any project. It renders a page that imports the extra package when the set's package.json lists it, and refuses the page when the set holds the package without listing it. The first test fails with the old render adapter.

Scope

Components: CLI (template's install step and render, outside a project, in a hosted run)

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Writing rubric results

  • R1 narration: none; the FR3, AST-048 and AST-050 sentences and the INV30 bullet describe present behavior.
  • R2 research: none in the record.
  • R3 evidence: the template-needs and package-root tests cover both FR3 sentences.
  • R4 rejected alternatives: none added.
  • R5 change references: none in the record.
  • R6 open questions: none touched.
  • R7 project status: none.

Testing

  • vitest run --project node over test/experimental-isolation (the search icon golden count moves 234 to 235: the host entry page now matches "icon"; nothing experimental), test/doc-tokens-compile, foundation/discovery/template-needs, api/template, api/render/hosted-packages, foundation/doc-compiler, foundation/response and the global-mode docs test: 87 files, 770 passed. Earlier, api/build/_adapter, api/theme/_adapter, host, foundation/runtime/package-set and hosted-runtime too.
  • vitest run --project node over foundation/doc-compiler, the golden-reads, packed search catalog and search ranking tests, foundation/render, and host: 27 files, 1070 passed.
  • tsc --project tsconfig.strict.json after sync-api-types, scripts/check-knowledge.mjs, ESLint, and Prettier on the changed files.

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 17, 2026 8:12pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 16, 2026
@astracat-bot

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 17, 2026, 8:16 PM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec e688856

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · ef2c6d7

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.37 MB packed (+987 B); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The fix works: at this head a page outside a project renders from the host's package set when the set's package.json lists the package, and template stops asking to install it. Two record and doc fixes are needed before approval:

  • spec:AST-081 FR3 still says a hosted run outside a project answers as a new project that installs only Core, the computer-level integrations and host-approved integrations (and FR1 lists only approved integrations as host input), so amend it in this pull request to include the packages the serving folder's package.json lists, naming template, build and theme eject (the last two change through the shared analyzeTemplateNeeds) or keeping those two on the old rule, then re-approve the new head.
  • The render doc (render.doc.mjs) and the render guide (render-pages.doc.mjs) say a page takes any package a host installed beside the CLI, but only dependencies and optionalDependencies in that folder's package.json are served, so state that rule exactly and add one sentence to the host entry reference, as spec:AST-017 FR14 requires for automatic behavior.

Smaller points: the new test asserts an npm install recharts step outside a project, which FR3's last sentence forbids, so the FR3 amendment should say what template prints for a package nothing provides; a committed hosted render test would also protect the render half. CI's test jobs were cancelled for lack of capacity, so they still need to run on this head.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: a hosted page outside a project can use what the set's package list names: verified (runtime and optional dependencies only).
  • Claim: render renders such a page with nothing to install: verified with a probe page importing the icon library.
  • Claim: template no longer asks to install those packages: verified by the new test.
  • Claim: before, template printed the install step and render stopped: verified (the new test fails on the base).
  • Claim: the new lookup is empty without a hosted run: verified.
  • Claim: inside a project nothing changes: verified.
  • Claim: the served-packages module changes comments only: verified.
  • Claim: the docs change one clause and one sentence: verified; the wording is imprecise (second finding).
  • Claim: the global-mode record forbids project-setup advice outside a project: verified for that sentence; an earlier sentence of the same requirement contradicts the change (first finding).
  • Claim: the record amendment allows the one package-list read: verified.
  • Claim: the test counts in the description: not reproduced exactly; the related suites pass.
  • File .changeset/served-set-template-packages.md: clear.
  • File docs/architecture/cli-surface.md: clear.
  • File packages/cli/api/render/_adapter.mjs: first finding.
  • File packages/cli/api/render/render.doc.mjs: second finding.
  • File packages/cli/assets/docs/tree/render-pages.doc.mjs: second finding.
  • File packages/cli/foundation/discovery/template-needs.mjs: first finding.
  • File packages/cli/foundation/discovery/template-needs.test.mjs: non-blocking note.
  • File packages/cli/foundation/render/served-packages.mjs: clear.
  • File packages/cli/foundation/runtime/package-root.mjs: clear.
  • File packages/cli/foundation/runtime/package-set.test.mjs: clear.

Automated review (maintainer link)

Comment thread docs/architecture/cli-surface.md Resolved
Comment thread packages/cli/api/render/render.doc.mjs Resolved
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec bfe05ef

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 16, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 83a0c34

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The fix works at this head: a hosted run outside a project renders a page that imports a package the set's package.json lists, template stops asking to install it, and the FR3 and INV30 amendments are approved for this head. One fix is needed before approval:

  • installCommand is now null whenever no package.json holds the folder, but the template and theme eject result docs (api/template/template.doc.mjs, api/template/template.type.mjs, api/theme/themeEject.doc.mjs, api/theme/theme.type.mjs) still say it is null only when nothing is missing or lockfiles tie, so add that case to each.

Two smaller points that predate this pull request: template does not count host-approved integrations the way render does, and render's missing-package error still suggests npm install in a folder with no package.json. A new commit needs a fresh /approve-spec for the record text.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: outside a project, a hosted run's page can use the packages its set's package list names: verified (new render test, host-entry run).
  • Claim: render renders a scaffolded template page with nothing to install: verified (the settings template renders).
  • Claim: template no longer asks to install those packages: verified (new template test, host-entry run).
  • Claim: before, template printed an install step and render stopped: verified (both new tests fail on the base, and the base prints the step).
  • Claim: in a folder with no package file, template, build and theme eject name missing packages without an install step: verified in code and tests; the result docs were not updated (finding).
  • Claim: only runtime and optional dependencies count: verified (unit test; a development-only entry is still refused).
  • Claim: with no hosted run the set adds nothing: verified (unit test).
  • Claim: inside a project nothing changes: verified (in-project test, related suites).
  • Claim: the install command is null in a folder with no package file, as for tied lockfiles: verified in code; the documented contract omits it (finding).
  • Claim: the served-packages module changes comments only: verified.
  • Claim: the new tests fail on the old code: verified for the hosted template test and the first render test; the in-project and refusal tests pass on both, as unchanged-path tests.
  • Claim: the records state the same rule as the code: verified.
  • Claim: the test counts in the description: not reproduced exactly; the related suites pass.
  • File .changeset/served-set-template-packages.md: clear.
  • File docs/architecture/cli-surface.md: clear.
  • File docs/specs/AST-081-global-mode/spec.md: clear.
  • File packages/cli/api/render/_adapter.mjs: clear (non-blocking note on the integrations list).
  • File packages/cli/api/render/hosted-packages.test.mjs: clear.
  • File packages/cli/api/render/render.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/host-entry.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/render-pages.doc.mjs: clear.
  • File packages/cli/foundation/discovery/template-needs.mjs: finding (its new null case is missing from the result docs).
  • File packages/cli/foundation/discovery/template-needs.test.mjs: clear.
  • File packages/cli/foundation/render/served-packages.mjs: clear.
  • File packages/cli/foundation/runtime/package-root.mjs: clear.
  • File packages/cli/foundation/runtime/package-set.test.mjs: clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 25ed0f8

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: the hosted render and template behavior works at this head, and the four installCommand result docs from the last review are fixed, but three fixes remain.

  • Miss: docs/specs/AST-048-build-recommendation/spec.md FR15 and FR17 still require missingPackages to list every package the folder does not declare and installCommand to be one npm install command when no lockfile decides, as does the theme eject receipt sentence in docs/specs/AST-050-app-themes/spec.md, which packages/cli/foundation/discovery/template-needs.mjs:321-332 no longer does, so amend those records in this pull request to state the two outside-a-project rules or point to AST-081 FR3.
  • Miss: packages/cli/assets/docs/tree/host-entry.doc.mjs:91 names {@command experimental render} on the stable host entry page, which fails 4 tests in packages/cli/test/experimental-isolation.test.mjs and 1 in packages/cli/test/doc-tokens-compile.test.mjs (both pass on the base), so move that sentence to the experimental render guide or reword it without the experimental command, then update the remaining search icon golden with --update.
  • Miss: packages/cli/foundation/response/response-types.doc.mjs:354 and the README table generated from it still say installCommand is null only when nothing is missing or lockfiles tie, so add the no-package.json case there and run pnpm -F @astryxdesign/cli readme.

The record edits need a fresh /approve-spec <full head SHA> from an engineering owner at the new head, which the author, as an engineering owner, may post. Two smaller points carry over: template does not count host-approved integrations the way render does, and render's missing-package error still suggests npm install in a folder with no package.json.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: outside a project, a hosted run's page can use the packages its set's package list names: verified (the hosted render test passes).
  • Claim: render renders a scaffolded template page with nothing to install: verified (host-entry run of the settings template; that code is unchanged since).
  • Claim: template no longer asks to install those packages there: verified (hosted template test).
  • Claim: before, template printed an install step and render stopped: verified (base behavior; the new render and hosted template tests fail on the base).
  • Claim: in a folder with no package file, template, build and theme eject name missing packages with no install step: verified in code and tests; the build-recommendation and app-themes records still require a command there (finding).
  • Claim: only runtime and optional dependency lists count: verified (unit test; a development-only entry is ignored).
  • Claim: with no hosted run, the set adds nothing: verified (unit test).
  • Claim: inside a project nothing changes: verified (in-project test; existing package-manager tests pass).
  • Claim: the install command is null in a folder with no package file, as it is for tied lockfiles: verified in code; the four result docs now say so, but the response-type reference and README table do not (finding).
  • Claim: the served-packages module changes comments only: verified.
  • Claim: the new template-needs tests and the first render test fail on the old code: verified.
  • Claim: the global-mode and CLI-surface records state the same rule as the code: verified; the build-recommendation record, which owns these values, was not amended (finding).
  • Claim: the render doc, render guide and host entry page describe the rule: verified; the host entry sentence names an experimental command in a stable doc (finding).
  • Claim: the stated test runs pass: not reproduced as stated; the isolation and doc-token test files, which those runs do not list, fail at this head (finding).
  • File .changeset/served-set-template-packages.md: clear.
  • File docs/architecture/cli-surface.md: clear.
  • File docs/specs/AST-081-global-mode/spec.md: finding (its rule is not carried into the build-recommendation record).
  • File packages/cli/api/render/_adapter.mjs: clear (non-blocking note on the integrations list).
  • File packages/cli/api/render/hosted-packages.test.mjs: clear.
  • File packages/cli/api/render/render.doc.mjs: clear.
  • File packages/cli/api/template/template.doc.mjs: clear; its sibling response-type text is the finding.
  • File packages/cli/api/template/template.type.mjs: clear.
  • File packages/cli/api/theme/theme.type.mjs: clear.
  • File packages/cli/api/theme/themeEject.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/host-entry.doc.mjs: finding (an experimental command on a stable page).
  • File packages/cli/assets/docs/tree/render-pages.doc.mjs: clear.
  • File packages/cli/foundation/discovery/template-needs.mjs: finding (values the build-recommendation record still forbids).
  • File packages/cli/foundation/discovery/template-needs.test.mjs: finding (pins the null install command the record forbids).
  • File packages/cli/foundation/render/served-packages.mjs: clear.
  • File packages/cli/foundation/runtime/package-root.mjs: clear.
  • File packages/cli/foundation/runtime/package-set.test.mjs: clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6605cc2

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not finished on this head yet.

Outside a project, a hosted run's pages now take the packages the host's set lists in its package.json, and the record amendments to global mode, build recommendation, app themes and the CLI surface carry an engineering owner's approval for this head. The three points from the last review are fixed: the build-recommendation and app-themes records state the outside-a-project rules, the host entry page names no experimental command, and the response-type reference and README list the third installCommand null case.

Two smaller points can follow separately: template does not count host-approved integrations as present the way render serves them, and render's missing-package error still suggests npm install in a folder with no package.json.

Claims and files checked

Review mode: full; reason: spec-record

  • Changeset: outside a project, a page can use the packages a host's set lists in its package file, as it uses Astryx, React and StyleX: verified (hosted render test; the settings template rendered through a host entry).
  • Changeset: render renders a scaffolded template page with nothing to install: verified (host-entry run of the settings template exits 0 and writes the HTML file).
  • Changeset: template no longer asks to install those packages there: verified (hosted template-needs test; the host-entry run prints no install step).
  • Changeset: before, template printed an install step for the icon library and render stopped: verified (the same host-entry run on the base).
  • Changeset: in a folder with no package file, template, build and theme eject name a missing package with no install step: verified (template-needs test; build and theme eject read the same result).
  • Description: following the old install step writes a package file and node_modules into that folder: consistent with npm's behavior for an install with no package file; not rerun here.
  • Description: on a machine whose npm cannot reach its registry the step never finishes: context that depends on the network; no finding rests on it.
  • Description: the set's listed packages count, the CLI keeps no list of its own, and only runtime and optional dependency lists are read: verified (lookup reads the set's package file; unit test ignores a development entry).
  • Description: template names only what the set does not provide, and a held but unlisted package is still refused by render: verified (template-needs test; second render test; host-entry run with the package unlisted).
  • Description: inside a project nothing changes: verified (in-project test; both callers skip the set inside a project).
  • Description: with no host, the set adds nothing: verified (unit test).
  • Description: the global-mode, build-recommendation, app-themes and CLI-surface records state the rules the code follows: verified against the code; an engineering owner approved them for this head.
  • Description: the served-packages module changes comments only: verified.
  • Description: the render doc, render guide and host entry page describe the rule, and the host entry page names no experimental command: verified (isolation and doc-token tests pass).
  • Description: the template and theme eject result docs, the response types and the generated README table list the third null case: verified (README generation test passes).
  • Description: the new hosted template-needs test and the first render test fail on the old code: verified (red-first run); the in-project test guards an unchanged path and passes on both.
  • Description: the search icon golden count moves by one because the host entry page now matches the word: verified (isolation test passes; only the count changes).
  • Description: the listed test runs, typecheck, knowledge check, ESLint and Prettier pass: the same test files pass here, the knowledge check and ESLint pass, the typecheck reports only two unbuilt-theme imports in unchanged files, and every changed Markdown file is formatted.
  • File .changeset/served-set-template-packages.md: clear.
  • File docs/architecture/cli-surface.md: clear.
  • File docs/specs/AST-048-build-recommendation/spec.md: clear.
  • File docs/specs/AST-050-app-themes/spec.md: clear.
  • File docs/specs/AST-081-global-mode/spec.md: clear.
  • File packages/cli/README.md: clear (generated).
  • File packages/cli/api/render/_adapter.mjs: clear (non-blocking: integrations list; install suggestion outside a project).
  • File packages/cli/api/render/hosted-packages.test.mjs: clear.
  • File packages/cli/api/render/render.doc.mjs: clear.
  • File packages/cli/api/template/template.doc.mjs: clear.
  • File packages/cli/api/template/template.type.mjs: clear.
  • File packages/cli/api/theme/theme.type.mjs: clear.
  • File packages/cli/api/theme/themeEject.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/host-entry.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/render-pages.doc.mjs: clear.
  • File packages/cli/foundation/discovery/template-needs.mjs: clear (non-blocking: integrations list).
  • File packages/cli/foundation/discovery/template-needs.test.mjs: clear.
  • File packages/cli/foundation/render/served-packages.mjs: clear.
  • File packages/cli/foundation/response/response-types.doc.mjs: clear.
  • File packages/cli/foundation/runtime/package-root.mjs: clear.
  • File packages/cli/foundation/runtime/package-set.test.mjs: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon.json: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon.txt: clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: the hosted render and template behavior and the record amendments are in good shape, and the three points from the last review are fixed, but one description claim needs correcting.

  • Miss: the description's Evidence section says that in any folder a package.json holds template still names the package with the project's install command, but in a hosted run whose set lists @heroicons/react, a React app folder with no Astryx package now gets missingPackages: [] and no install command (as packages/cli/foundation/discovery/template-needs.mjs:321 and the amended build-recommendation FR15 intend), so reword that sentence to cover only runs inside a project or with no host, and state the React-app case under User impact.

No code or record change is needed, and the spec approval for this head stays valid, since editing the description does not change the head. Two smaller points can follow separately: template does not count host-approved integrations as present the way render serves them, and render's missing-package error still suggests npm install in a folder with no package.json.

Claims and files checked

Review mode: full; reason: spec-record

  • Changeset: outside a project, a page can use the packages a host's set lists in its package file, as it uses Astryx, React and StyleX: verified (hosted render test; the settings template rendered through a host entry).
  • Changeset: render renders a scaffolded template page with nothing to install: verified (host-entry run of the settings template exits 0 and writes the HTML file).
  • Changeset: template no longer asks to install those packages there: verified (hosted template-needs test; the host-entry run prints no install step).
  • Changeset: before, template printed an install step for the icon library and render stopped: verified (the same host-entry run on the base).
  • Changeset: in a folder with no package file, template, build and theme eject name a missing package with no install step: verified (template-needs test; build and theme eject read the same result).
  • Description: following the old install step writes a package file and node_modules into that folder: consistent with npm's behavior for an install with no package file; not rerun here.
  • Description: on a machine whose npm cannot reach its registry the step never finishes: context that depends on the network; no finding rests on it.
  • Description: the set's listed packages count, the CLI keeps no list of its own, and only runtime and optional dependency lists are read: verified (lookup reads the set's package file; unit test ignores a development entry).
  • Description: template names only what the set does not provide, and a held but unlisted package is still refused by render: verified (template-needs test; second render test; host-entry run with the package unlisted).
  • Description: inside a project nothing changes: verified (in-project test; both callers skip the set inside a project).
  • Description: inside a project, and in any folder a package file holds, template still names the package with the project's install command: false for hosted runs: in a React app folder with no Astryx package, a host whose set lists the icon library gets no missing package and no install step (host-entry run; the readiness filter counts the set's packages in every folder outside a project). Finding.
  • Description: with no host, the set adds nothing: verified (unit test).
  • Description: the global-mode, build-recommendation, app-themes and CLI-surface records state the rules the code follows: verified against the code; an engineering owner approved them for this head.
  • Description: the served-packages module changes comments only: verified.
  • Description: the render doc, render guide and host entry page describe the rule, and the host entry page names no experimental command: verified (isolation and doc-token tests pass).
  • Description: the template and theme eject result docs, the response types and the generated README table list the third null case: verified (README generation test passes).
  • Description: the new hosted template-needs test and the first render test fail on the old code: verified (red-first run); the in-project test guards an unchanged path and passes on both.
  • Description: the search icon golden count moves by one because the host entry page now matches the word: verified (isolation test passes; only the count changes).
  • Description: the listed test runs, typecheck, knowledge check, ESLint and Prettier pass: the same test files pass here, the knowledge check and ESLint pass, the typecheck reports only two unbuilt-theme imports in unchanged files, and every changed Markdown file is formatted.
  • File .changeset/served-set-template-packages.md: clear.
  • File docs/architecture/cli-surface.md: clear.
  • File docs/specs/AST-048-build-recommendation/spec.md: clear.
  • File docs/specs/AST-050-app-themes/spec.md: clear.
  • File docs/specs/AST-081-global-mode/spec.md: clear.
  • File packages/cli/README.md: clear (generated).
  • File packages/cli/api/render/_adapter.mjs: clear (non-blocking: integrations list; install suggestion outside a project).
  • File packages/cli/api/render/hosted-packages.test.mjs: clear.
  • File packages/cli/api/render/render.doc.mjs: clear.
  • File packages/cli/api/template/template.doc.mjs: clear.
  • File packages/cli/api/template/template.type.mjs: clear.
  • File packages/cli/api/theme/theme.type.mjs: clear.
  • File packages/cli/api/theme/themeEject.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/host-entry.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/render-pages.doc.mjs: clear.
  • File packages/cli/foundation/discovery/template-needs.mjs: clear in code (matches the amended record); the description misstates its effect in folders a package file holds (finding); non-blocking: integrations list.
  • File packages/cli/foundation/discovery/template-needs.test.mjs: clear.
  • File packages/cli/foundation/render/served-packages.mjs: clear.
  • File packages/cli/foundation/response/response-types.doc.mjs: clear.
  • File packages/cli/foundation/runtime/package-root.mjs: clear.
  • File packages/cli/foundation/runtime/package-set.test.mjs: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon.json: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon.txt: clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 3c1fb77

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: the main CI run on this head was cancelled because the CI queue was full, so its test and build jobs still need a re-run before the required checks can pass.

The description now limits the unchanged-path claim to runs inside a project or with no host and states the hosted React-app case, which resolves the one point from the last review; a host-entry run at this head confirms that such a folder reports nothing missing and renders the page from the set. Two smaller, pre-existing points can follow separately: template does not count host-approved integrations as present the way render serves them, and render's missing-package error still suggests npm install in a folder with no package.json.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Changeset: outside a project, when a tool runs the CLI from its own package set, a page can use the other packages that set's package file lists, as it uses Astryx, React and StyleX: verified (hosted render test; host-entry runs in an empty folder and in a React app folder).
  • Changeset: render renders a scaffolded template page with nothing to install: verified (host-entry run of the settings template exits 0 and writes the HTML file).
  • Changeset: template no longer asks to install those packages there: verified (hosted readiness test; host-entry runs print no install step).
  • Changeset: before, template printed an install step for the icon library and render stopped: verified (the same host-entry run on the base).
  • Changeset: in a folder with no package file, template, build and theme eject name a package nothing provides as missing, for the project that uses the page, with no install step: verified (readiness test; build and theme eject read the same result).
  • Description: following the old install step writes a package file and node_modules into the folder: consistent with npm's behavior for an install in a folder with no package file; not rerun.
  • Description: on a machine whose npm cannot reach its registry, the step never finishes: network-dependent context; no finding rests on it.
  • Description: a page takes each package the set's package file lists, and template names only what the set does not provide: verified for listed packages; a package the set holds without listing is still named and refused, as the Evidence section says (readiness test; second render test; host-entry run with the package unlisted).
  • Description: in a folder no package file holds, template names a package nothing provides as missing and prints no install step: verified (readiness test).
  • Description: a folder outside an Astryx project with its own package file, such as a React app without Astryx, counts the same way in a hosted run, template reports nothing missing, and the page renders from the set: verified (host-entry run in such a folder: no missing package, no note, render exits 0 and writes the HTML file).
  • Description: inside a project nothing changes: verified (in-project test; a direct call names both packages with the project's install command; both callers skip the set inside a project).
  • Description: before the change, a render outside a project took only Astryx, React, StyleX and approved integrations, and template read only the folder's package file: verified against the base code.
  • Description: the printed step sets up a project, which the global-mode record says output outside a project must not do: verified (the last sentence of that requirement).
  • Description: the CLI keeps no list of its own, and the host decides what its set holds: verified (the lookup reads the set's package file).
  • Description: the global-mode, build-recommendation, app-themes and CLI-surface records are amended as listed: verified against the diff; an engineering owner approved them for this head.
  • Description: the new lookup reads only the runtime and optional dependency lists and is empty with no host: verified (unit tests; a development entry is ignored).
  • Description: the render adapter allows the approved integrations plus those packages, and the shared readiness module drops listed packages outside a project and gives a note with no install command where no package file holds the folder: verified.
  • Description: the served-packages module changes comments only: verified.
  • Description: the render doc, render guide and host entry page describe the rule, the host entry page names no experimental command, and the result docs, response types and generated README table list the third null case: verified (isolation and doc-token tests pass; the strings match).
  • Description: the base reproduction and the head result through a host entry: verified (host-entry runs).
  • Description: inside a project, and in any run with no host, template still names a missing package with the project's install command when a package file holds the folder: verified (with no host the set adds nothing; the install-command path is unchanged).
  • Description: the readiness tests cover a folder with no package file, a hosted run and a project: verified (the in-project test asserts the names; the install command there comes from the unchanged path, confirmed by a direct call).
  • Description: the new readiness and render tests fail on the old code: verified for the hosted readiness test and the first render test; the in-project test and the unlisted-package render test guard unchanged paths and pass on both.
  • Description: the search icon golden count moves by one because the host entry page now matches the word: verified (isolation test passes; only the count changes).
  • Description: the listed test runs, typecheck, knowledge check, ESLint and Prettier pass: the same test files pass here; the knowledge check, ESLint and Markdown formatting passed on this identical tree in the previous review; the typecheck there reported only two unbuilt-theme imports in unchanged files.
  • Description: no new public API, visual representation, default or interaction model is hidden under the fix label: verified (no exported surface changes; the null case is documented).
  • File .changeset/served-set-template-packages.md: clear.
  • File docs/architecture/cli-surface.md: clear.
  • File docs/specs/AST-048-build-recommendation/spec.md: clear.
  • File docs/specs/AST-050-app-themes/spec.md: clear.
  • File docs/specs/AST-081-global-mode/spec.md: clear.
  • File packages/cli/README.md: clear (generated).
  • File packages/cli/api/render/_adapter.mjs: clear (non-blocking: integrations list; install suggestion outside a project).
  • File packages/cli/api/render/hosted-packages.test.mjs: clear.
  • File packages/cli/api/render/render.doc.mjs: clear.
  • File packages/cli/api/template/template.doc.mjs: clear.
  • File packages/cli/api/template/template.type.mjs: clear.
  • File packages/cli/api/theme/theme.type.mjs: clear.
  • File packages/cli/api/theme/themeEject.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/host-entry.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/render-pages.doc.mjs: clear.
  • File packages/cli/foundation/discovery/template-needs.mjs: clear (non-blocking: integrations list).
  • File packages/cli/foundation/discovery/template-needs.test.mjs: clear.
  • File packages/cli/foundation/render/served-packages.mjs: clear.
  • File packages/cli/foundation/response/response-types.doc.mjs: clear.
  • File packages/cli/foundation/runtime/package-root.mjs: clear.
  • File packages/cli/foundation/runtime/package-set.test.mjs: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon.json: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon.txt: clear.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/served-set-template-packages branch from 3c1fb77 to bf1df96 Compare November 17, 2026 16:19
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner: the record amendments this change relies on (spec:AST-081 FR3, spec:AST-048 FR15, FR17 and FR21, the spec:AST-050 theme eject sentence, and the architecture:cli-surface INV30 bullets) need a spec approval for this head, because the rebase onto main made new commits and the earlier approval covered only the previous head. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, which the author may do as an engineering owner.

The code matches the amended text and no blocking defect was found; CI's test and build jobs did not run on this head because the CI queue was full, so they need a re-run. Two smaller, pre-existing points can follow separately: template does not count host-approved integrations as present the way render serves them, and render's missing-package error still suggests npm install in a folder with no package.json.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset: outside a project, when a tool runs the CLI from its own package set, a page can use the other packages the set's package file lists, as it uses Astryx, React and StyleX: verified (hosted render test passes here and fails on the base).
  • Changeset: render renders a scaffolded template page with nothing to install: verified for a page that imports a set-listed package (hosted render test, server render and inline script); the settings template itself was not rendered through a host entry in this run.
  • Changeset: template no longer asks to install those packages there: verified (hosted readiness test).
  • Changeset: before, template printed an npm install step for the icon library and render stopped: verified (an empty-folder template run on the base prints the step; the hosted render test fails on the base with the missing-package error).
  • Changeset: in a folder with no package file, template, build and theme eject name a package nothing provides as missing, for the project that uses the page, with no install step: verified (readiness test and an empty-folder run; build and theme eject call the same function).
  • Description: following the old step writes a package file and node_modules into the folder: consistent with npm's behavior for an install with no package file; not rerun.
  • Description: on a machine whose npm cannot reach its registry, the step never finishes: network-dependent context; no finding rests on it.
  • Description: a page takes each package the set's package file lists, and template names only what the set does not provide: verified for listed packages; a package the set holds without listing is still named and refused (second render test).
  • Description: in a folder no package file holds, template names a package nothing provides as missing and prints no install step: verified.
  • Description: a folder outside an Astryx project with its own package file, such as a React app, counts the same way in a hosted run, and the page renders from the set: verified in code (both callers use the same outside-a-project check and the same set list); not run through a host entry in this run.
  • Description: inside a project nothing changes: verified (in-project readiness test passes on base and head; both callers skip the set inside a project).
  • Description: before the change, a render outside a project took only Astryx, React, StyleX and approved integrations, and template read only the folder's package file: verified against the base code.
  • Description: the printed step sets up a project, which the global-mode record forbids outside a project: verified (the last sentence of that requirement).
  • Description: the CLI keeps no list of its own and the host decides what its set holds: verified (the lookup reads the set's package file).
  • Description: the global-mode, build-recommendation, app-themes and CLI-surface records are amended as listed: verified against the diff; not yet approved for this head.
  • Description: the new lookup reads only the runtime and optional dependency lists and is empty with no host: verified (unit tests; a development entry is ignored).
  • Description: the render adapter allows the approved integrations plus those packages, and the readiness module drops listed packages outside a project and gives a note with no install command where no package file holds the folder: verified.
  • Description: the served-packages module changes comments only: verified.
  • Description: the render doc, render guide and host entry page describe the rule, the host entry page names no experimental command, and the result docs, response types and generated README table list the third null case: verified (isolation and doc-token tests pass; the README check is in sync).
  • Description: the reproduction and result with an npm-made package set: the base half is reproduced here by the failing hosted test and the empty-folder run; the npm-made set itself was not rebuilt.
  • Description: inside a project, and in any run with no host, template still names a missing package with the project's install command when a package file holds the folder: verified (that path is unchanged; with no host the set adds nothing).
  • Description: the readiness tests cover a folder with no package file, a hosted run and a project, the lookup test ignores development dependencies, and the render test runs a CLI copy placed in a package set through its host entry: verified.
  • Description: the new readiness tests and the first render test fail on the old code: verified (on the base, the hosted readiness test, the first render test and both lookup tests fail; the in-project and unlisted-package tests pass on both).
  • Description: the search icon golden count moves from 234 to 235 because the host entry page now matches the word: verified (isolation test passes).
  • Description: the listed test runs, typecheck, knowledge check, ESLint and Prettier pass: the changed test files and their neighbors pass here (79 files); the strict typecheck after the declaration sync reports only two imports of an unbuilt theme in unchanged template files; CI's Lint workflow passed on this head.
  • Description: no new public API, visual representation, default or interaction model is hidden under the fix label: verified (no exported surface changes; the third null case is documented; the changeset labels the change a feature).
  • File .changeset/served-set-template-packages.md: clear.
  • File docs/architecture/cli-surface.md: clear (amendment awaits owner approval).
  • File docs/specs/AST-048-build-recommendation/spec.md: clear (amendment awaits owner approval).
  • File docs/specs/AST-050-app-themes/spec.md: clear (amendment awaits owner approval).
  • File docs/specs/AST-081-global-mode/spec.md: clear (amendment awaits owner approval).
  • File packages/cli/README.md: clear (generated).
  • File packages/cli/api/render/_adapter.mjs: clear (non-blocking: install suggestion outside a project).
  • File packages/cli/api/render/hosted-packages.test.mjs: clear.
  • File packages/cli/api/render/render.doc.mjs: clear.
  • File packages/cli/api/template/template.doc.mjs: clear.
  • File packages/cli/api/template/template.type.mjs: clear.
  • File packages/cli/api/theme/theme.type.mjs: clear.
  • File packages/cli/api/theme/themeEject.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/host-entry.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/render-pages.doc.mjs: clear.
  • File packages/cli/foundation/discovery/template-needs.mjs: clear (non-blocking: integrations not counted).
  • File packages/cli/foundation/discovery/template-needs.test.mjs: clear.
  • File packages/cli/foundation/render/served-packages.mjs: clear.
  • File packages/cli/foundation/response/response-types.doc.mjs: clear.
  • File packages/cli/foundation/runtime/package-root.mjs: clear.
  • File packages/cli/foundation/runtime/package-set.test.mjs: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon.json: clear (golden).
  • File packages/cli/test/__golden__/no-icon-set/search-icon.txt: clear (golden).

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec bf1df96

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 17, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 2e9fab8

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: the CI run on this head was cancelled because the CI queue was full, so its test and build jobs need a re-run before merge.

The record amendments this change relies on (spec:AST-081 FR3, spec:AST-048 FR15, FR17 and FR21, the spec:AST-050 theme eject sentence, and the architecture:cli-surface INV30 bullets) now carry an engineering owner's approval for this head, and the code matches them: a hosted run scaffolds and renders the settings page with nothing to install, and a folder with no package.json gets no install step. Two smaller, pre-existing points can follow separately: template does not count host-approved integrations as present the way render serves them, and render's missing-package error still suggests npm install outside a project.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Changeset: outside a project, when a tool runs the CLI from its own package set, a page can use the other packages the set's package file lists, as it uses Astryx, React and StyleX: verified (hosted render test passes here and fails on the base; a hosted run renders the settings template page).
  • Changeset: render renders a scaffolded template page with nothing to install: verified (hosted run: template settings then experimental render settings/page.tsx in an empty folder exits 0 and writes the HTML file).
  • Changeset: template no longer asks to install those packages there: verified (hosted run reports no missing package and no note).
  • Changeset: before, template printed an npm install step for the icon library and render stopped: verified (base empty-folder run prints the step; the hosted render test fails on the base with the missing-package error).
  • Changeset: in a folder with no package file, template, build and theme eject name a package nothing provides as missing, for the project that uses the page, with no install step: verified (head empty-folder run; build and theme eject call the same readiness function).
  • Description: before the change, a hosted run outside a project printed an install step and refused the render although the set held the icon library: verified against the base code and the base runs above.
  • Description: following the old step writes a package file and node_modules into the folder: npm's behavior for an install with no package file; not rerun, and no finding rests on it.
  • Description: where npm cannot reach its registry, the step never finishes: environment context; no finding rests on it.
  • Description: a page takes each package the set's package file lists, template names only what the set does not hold, and render needs nothing installed: verified (hosted run; a package the set holds without listing is still named and refused).
  • Description: in a folder no package file holds, template names a package nothing provides as missing and prints no install step: verified.
  • Description: a folder with its own package file but no Astryx, such as a React app, counts the same in a hosted run, reports nothing missing, and the page renders from the set: verified (hosted run in such a folder: no note, render exits 0).
  • Description: inside a project nothing changes: verified (the in-project readiness test passes on base and head; both callers skip the set inside a project).
  • Description: the cause is that a render took only Astryx, React, StyleX and approved integrations, and template read only the folder's package file: verified against the base code.
  • Description: the printed step sets up a project, which the global-mode record forbids outside a project: verified (the last sentence of that requirement).
  • Description: the set's package file says what the host installed and the CLI keeps no list of its own: verified (the lookup reads the set's package file).
  • Description: the global-mode, build-recommendation, app-themes and CLI-surface records are amended as listed: verified against the diff, and an engineering owner approved them for this head.
  • Description: the new lookup reads only the runtime and optional dependency lists and is empty with no host: verified (unit tests; a development entry is ignored).
  • Description: the render adapter allows the approved integrations plus those packages, and the readiness module drops listed packages outside a project and gives no install command where no package file holds the folder: verified.
  • Description: the served-packages module changes comments only: verified.
  • Description: the render doc, render guide and host entry page state the rule, the host entry page names no experimental command, and the result docs, response types and generated README table list the third null case: verified (isolation and doc-token tests pass; the README check is in sync).
  • Description: the reproduction and result with an npm-made package set: reproduced with an equivalent set built from the repository (base by tests and an empty-folder run, head by a hosted run); the npm-made set itself was not rebuilt.
  • Description: inside a project, and in any run with no host, template still names a missing package with the install command when a package file holds the folder: verified (that branch is unchanged; with no host the lookup is empty).
  • Description: the regression tests cover a folder with no package file, a hosted run and a project, the lookup ignores development dependencies, and the render test runs a placed CLI copy through its host entry: verified.
  • Description: the new readiness tests and the first render test fail on the old code: verified (on the base the hosted readiness test, the first render test and both lookup tests fail; the in-project guard passes, as an unchanged path should).
  • Description: the search icon golden count moves from 234 to 235 because the host entry page now matches the word: verified (isolation test passes).
  • Description: the listed test runs pass: the changed test files and their neighbors pass here (79 files, 1122 tests); the full listed set was not rerun.
  • Description: the strict typecheck, knowledge check, ESLint and Prettier pass: verified for this change (the typecheck reports only two imports of an unbuilt theme in unchanged templates, the same on the base; the knowledge check passes; ESLint reports no error; the changed files under the repository's Prettier patterns are formatted).
  • Description: one defect, no tagalong, no hidden public API, default or interaction model, no internal context: verified (no exported surface changes; the third null case is documented; no internal context in the added lines).
  • Description: writing rubric results: verified (the amended sentences describe present behavior and add no status lines).
  • File .changeset/served-set-template-packages.md: clear.
  • File docs/architecture/cli-surface.md: clear (amendment approved for this head).
  • File docs/specs/AST-048-build-recommendation/spec.md: clear (amendment approved for this head).
  • File docs/specs/AST-050-app-themes/spec.md: clear (amendment approved for this head).
  • File docs/specs/AST-081-global-mode/spec.md: clear (amendment approved for this head).
  • File packages/cli/README.md: clear (generated).
  • File packages/cli/api/render/_adapter.mjs: clear (non-blocking: install suggestion outside a project, unchanged).
  • File packages/cli/api/render/hosted-packages.test.mjs: clear.
  • File packages/cli/api/render/render.doc.mjs: clear.
  • File packages/cli/api/template/template.doc.mjs: clear.
  • File packages/cli/api/template/template.type.mjs: clear.
  • File packages/cli/api/theme/theme.type.mjs: clear.
  • File packages/cli/api/theme/themeEject.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/host-entry.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/render-pages.doc.mjs: clear.
  • File packages/cli/foundation/discovery/template-needs.mjs: clear (non-blocking: approved integrations not counted).
  • File packages/cli/foundation/discovery/template-needs.test.mjs: clear.
  • File packages/cli/foundation/render/served-packages.mjs: clear.
  • File packages/cli/foundation/response/response-types.doc.mjs: clear.
  • File packages/cli/foundation/runtime/package-root.mjs: clear.
  • File packages/cli/foundation/runtime/package-set.test.mjs: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon.json: clear (golden).
  • File packages/cli/test/__golden__/no-icon-set/search-icon.txt: clear (golden).

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/served-set-template-packages branch from 2e9fab8 to ef2c6d7 Compare November 17, 2026 19:55
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec ef2c6d7

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not finished on this head yet, so its remaining UI test and docsite browser jobs must pass before merge.

After the rebase, the record amendments this change relies on (spec:AST-081 FR3, spec:AST-048 FR15, FR17 and FR21, the spec:AST-050 theme eject sentence, and the architecture:cli-surface INV30 bullets) carry an engineering owner's approval for this head, and the code matches them: a hosted run scaffolds and renders the settings page with nothing to install, and a folder with no package.json gets no install step. The render adapter's conflict resolution keeps main's refusal that names every missing package. Two smaller, pre-existing points can follow separately: template does not count host-approved integrations as present the way render serves them, and render's missing-package error still suggests npm install outside a project.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset: outside a project, when a tool runs the CLI from its own package set, a page can use the other packages that set's package file lists, as it uses Astryx, React and StyleX: verified (the hosted render test passes here and fails on the base).
  • Changeset: render renders a scaffolded template page with nothing to install: verified (a hosted run scaffolds the settings page and renders it, exit 0).
  • Changeset: template no longer asks to install those packages there: verified (hosted run: no note, empty missingPackages).
  • Changeset: before, template printed an npm install step for the icon library and render stopped until it ran: verified (the same hosted run on the base).
  • Changeset: in a folder with no package file, template, build and theme eject name a package nothing provides as missing, for the project that uses the page, instead of an install step: verified (readiness test and a no-host run; build and theme eject call the same readiness function).
  • Description: on the base, a hosted run outside a project printed the install step and refused the render although the set held the icon library: verified (reproduced with a set built from the repository).
  • Description: following the old step writes a package file and node_modules into the folder, and never finishes where npm cannot reach its registry: npm's behavior, context only; no finding rests on it.
  • Description: after the change a page takes each package the set's package file lists, template names only what the set does not provide, and render needs nothing installed: verified (a package the set holds without listing it is still named and refused, as the description's evidence section states).
  • Description: in a folder no package file holds, template names a package nothing provides as missing and prints no install step: verified.
  • Description: a folder outside an Astryx project with its own package file, such as a React app, counts the same in a hosted run: nothing missing, no install step, and the page renders from the set: verified (hosted run in such a folder).
  • Description: inside a project nothing changes: verified (the in-project test passes on base and head; both callers skip the set in a project).
  • Description: the cause is that a render took only Astryx, React, StyleX and approved integrations, and template read only the folder's package file: verified against the base code.
  • Description: the printed step sets up a project, which the global-mode record forbids outside one: verified (that requirement's last sentence).
  • Description: the set's package file says what the host installed, and the CLI keeps no list of its own: verified (the lookup reads that file only).
  • Description: the global-mode, build-recommendation, app-themes and CLI-surface records are amended as listed: verified against the diff; an engineering owner approved them for this head.
  • Description: the new lookup reads the runtime and optional dependency lists of the root holding the starting copy and is empty with no host: verified (unit tests; a development entry is ignored).
  • Description: the render adapter serves approved integrations plus those packages, and the shared readiness module drops listed packages outside a project and gives no install command where no package file holds the folder: verified.
  • Description: the served-packages module changes comments only: verified.
  • Description: the render doc, render guide and host entry page state the rule, the host entry page names no experimental command, and the result docs, response types and regenerated README table list the new null case: verified (isolation and doc-token tests pass; the README check is in sync).
  • Description: the reproduction and result with an npm-made package set: reproduced with an equivalent set built from the repository; the npm-made set itself was not rebuilt.
  • Description: inside a project, and in any run with no host, template still names a missing package with the install command when a package file holds the folder: verified (branch unchanged; with no host the lookup is empty).
  • Description: the regression tests cover a folder with no package file, a hosted run and a project; the lookup ignores development dependencies; the render test runs a placed CLI through its host entry: verified.
  • Description: the new readiness tests and the first render test fail on the old code: verified (on the base the hosted readiness test, the first render test and both lookup tests fail; the guard tests pass, as unchanged paths should).
  • Description: the search icon golden count moves from 234 to 235 because the host entry page now matches the word: verified (isolation test passes).
  • Description: the listed test runs pass: the changed test files and their neighbors pass here (76 files, 631 tests); the full listed set was not rerun.
  • Description: the knowledge check, ESLint and Prettier pass: verified (Prettier in the repository's formatted file types); the strict typecheck was not rerun here, and CI's typecheck job passed on this head.
  • Description: one defect, no tagalong, no hidden public API, default or interaction model, no internal context: verified.
  • Description: writing rubric results: verified (the amended sentences describe present behavior and add no status lines).
  • File .changeset/served-set-template-packages.md: clear.
  • File docs/architecture/cli-surface.md: clear (amendment approved for this head).
  • File docs/specs/AST-048-build-recommendation/spec.md: clear (amendment approved for this head).
  • File docs/specs/AST-050-app-themes/spec.md: clear (amendment approved for this head).
  • File docs/specs/AST-081-global-mode/spec.md: clear (amendment approved for this head).
  • File packages/cli/README.md: clear (generated; the README check is in sync).
  • File packages/cli/api/render/_adapter.mjs: clear (the rebase resolution keeps the every-package refusal; non-blocking: the install suggestion outside a project is unchanged).
  • File packages/cli/api/render/hosted-packages.test.mjs: clear.
  • File packages/cli/api/render/render.doc.mjs: clear.
  • File packages/cli/api/template/template.doc.mjs: clear.
  • File packages/cli/api/template/template.type.mjs: clear.
  • File packages/cli/api/theme/theme.type.mjs: clear.
  • File packages/cli/api/theme/themeEject.doc.mjs: clear.
  • File packages/cli/assets/docs/tree/host-entry.doc.mjs: clear (names no experimental command).
  • File packages/cli/assets/docs/tree/render-pages.doc.mjs: clear.
  • File packages/cli/foundation/discovery/template-needs.mjs: clear (non-blocking: approved integrations not counted).
  • File packages/cli/foundation/discovery/template-needs.test.mjs: clear.
  • File packages/cli/foundation/render/served-packages.mjs: clear (comments only).
  • File packages/cli/foundation/response/response-types.doc.mjs: clear.
  • File packages/cli/foundation/runtime/package-root.mjs: clear.
  • File packages/cli/foundation/runtime/package-set.test.mjs: clear.
  • File packages/cli/test/__golden__/no-icon-set/search-icon.json: clear (golden count 234 to 235).
  • File packages/cli/test/__golden__/no-icon-set/search-icon.txt: clear (golden count 234 to 235).

Automated review (maintainer link)

@josephfarina
josephfarina merged commit b7f61b7 into main Nov 17, 2026
86 checks passed
@github-actions
github-actions Bot deleted the josephfarina/served-set-template-packages branch November 18, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — ef2c6d76 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant