Repository navigation
docs(spec): discover lists the official packages first, from a list built into each release (AST-051) - #7494
Merged
Conversation
…uilt into each release (AST-051) Decide AST-051's open question about a built-in public source. Each CLI release carries a list of the official packages, generated from the repository when the CLI is built. Discover reads it after every other source, so a project's or an integration's source keeps its entry for an official package, and the list adds the rest. Official packages come first in what discover shows. Entries take the CLI's own version, and a canary CLI also lists the canary-only packages as prereleases. A declared official package from the list counts as installed, and the add command for one pins a version. A project that loads no integration and has no discover source of its own still gets the list for every query.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
…leased answers (AST-051) Each official entry shows and lists at most one version, the one its add command pins: the project's Core version, installed or declared exactly, for a package that releases with Core and for a canary-only package; with no Core, a release CLI's own version, or a canary CLI's own version for a canary-only package. Otherwise it lists none and the add command pins nothing. Canary-only packages are not listed beside a released Core. A source keeps its entry for any official package whose integration it publishes under another name. A declared official package is read from the project's own package.json, aliases included, and each package the project could add carries its add command. For a package only the official list supplies, a version or item it does not list fails with ERR_UNKNOWN_PACKAGE.
…pins the project's Core, range included (AST-051) An official entry's latest release is the newest release the CLI knows: its own version on a release CLI, or the project's Core version when that is a newer release. An entry for a package released with Core also lists the project's Core version, installed or declared exactly, so either version can be looked up. Its add command pins the project's Core version, else the Core range the project declares, quoted for the shell, else the latest release.
This was referenced Oct 15, 2026
approved_by: josephfarina, approved_at: 2026-10-20.
josephfarina
marked this pull request as ready for review
October 20, 2026 16:47
Contributor
Author
|
/approve-spec 864e87e |
Contributor
PR Analysis Report
|
josephfarina
added a commit
that referenced
this pull request
Oct 20, 2026
#7494 renumbers the official-list requirement to AST-051 FR11, since FR10 is now "A package can link its docs site"; AST-081's four references follow.
josephfarina
added a commit
that referenced
this pull request
Oct 20, 2026
#7494 renumbers the official-list requirement to AST-051 FR11 (FR10 is now "A package can link its docs site"); the six comments that cite it follow. Comments only; no behavior change.
josephfarina
added a commit
that referenced
this pull request
Oct 20, 2026
…oject's own release answers inside it (#7601) * spec(AST-081): global mode, so the CLI answers in any folder and a project's own release answers inside it Add spec:AST-081 (draft), the global mode record. It owns which release answers a run in a project and outside one, what a door may pass the CLI through the host entry, what every command declares it does outside a project, how a result names the release that answered and which command name printed commands use, how a copy installed for the computer stays current without touching projects, where any run may write, and what each release carries for use outside a project. spec:AST-047 FR7 and spec:AST-048's platform support take the command name they print from AST-081 FR5, and spec:AST-051 FR6 admits a door's own discover sources, named as the door's. * spec(AST-081): one picker names every printed command, and an integration may declare its own FR5 now defines the one picker every printed command goes through. It takes, in order, the command an integration declares in its manifest as `cliCommand`, then the name of the door that started the run, then the package manager's name. When the loaded integrations declare different commands, it takes the package manager's name and doctor warns. Every surface that prints or writes a command uses the picker: hints, errors, doctor fixes, help, docs moves, the agent-docs block, the computer-level agent text and the setup reminder. Docs, agent text and integration text write commands with bare `astryx` and get the picked name when shown; machine-readable output stays bare. FR8's agent text and the AST-047 FR7 and AST-048 amendments take the picked name. DEC-8 records the order. Specification only: no runtime change and no changeset. * spec(AST-081): every copy of the CLI hands a project's run to its own CLI Global mode works through the CLI package itself, installed for the computer or run through a package runner, not only through the launcher. - FR9: every copy (the CLI package installed for the computer, a package runner's copy, and the copy a launcher or host carries) hands a run in a project that installs its own CLI to that CLI, whatever release it is and whatever version was requested. Outside a project, the copy that started the run answers. A run is handed off at most once, keeps its arguments, folder, streams, and exit status, and prints one standard-error line in text mode naming who answered. - Doors now include the CLI package installed for the computer or run through a package runner; the global copy is that package or the launcher. - FR6's update rule covers the CLI package installed for the computer; a version requested through a package runner is exact only outside a project. - FR1, FR3, and FR5 follow; FR9 gets a verification row and DEC-9; OQ2 asks how a CLI package installed for the computer follows `latest`. * spec(AST-081): the project's Core decides the release; the CLI package is the global install - FR2: in a project, the release equal to the project's Core answers (the installed Core, else the lockfile's Core version, else the newest release the declared range allows; a project with no Core is matched by its CLI). The project's own CLI answers only when it is that release; otherwise the matched release answers from the per-user cache, and the project's CLI hands such a run to it too. Upgrade follows the same rule. - A folder's project is found the way the CLI finds the Core and the CLI it reads, so a folder nested in another project answers with that project's release. - FR3: outside a project the global copy answers with the release FR6 keeps it on; the carried Core is installed into the cache when a command first needs it, else ERR_VERSIONS_UNAVAILABLE. - No launcher package: the global copy is the CLI package installed for the computer (doors, FR1, FR6, DEC-9, non-goals). - FR5 picker step 3: the run prefix for the project's own CLI, `astryx` for the global copy outside a project, otherwise the CLI package pinned to the answering version. - FR6: the global copy answers from releases kept in the per-user cache and never changes the package manager's installation (OQ2 closed by DEC-11). - FR9: every copy hands a project's run to the release FR2 names; one stderr line per hand-off, printed by the answering release or, for one that predates it, by the copy that handed off. - FR4: doctor reports the computer-level agent text only in a release that ships it. - DEC-10 (Core decides), DEC-11 (the cache answers); verification rows for FR2, FR6, FR9 updated. * spec(AST-081): what each door covers today; the computer-level text is one skill (DEC-12) - Current-state impact: the CLI provides FR2–FR9 through the doors that run the CLI package directly; FR1's host entry and the clauses that need it (a declined project CLI, door-approved integrations, the door name in the picker, the host line, INV30) arrive with the host entry. The official list is AST-051 FR10's; project starters arrive with the template kind that ships them. - FR8: the computer-level text is one skill file named `astryx` in `.agents/skills/` and `.claude/skills/` of the home folder, written only by `astryx init --user` and removed only by `--remove-agents`; neither touches a file the CLI did not write or follows a link in its place. - FR4: doctor outside a project reports whether that text is present and current. - DEC-12 records the choice; OQ1 is closed. No open questions remain. * spec(AST-081): computer-level commands are never handed off; install progress and healing; Plug'n'Play - FR9: a command that acts on the computer, such as astryx init --user, is never handed to a project's release; it is answered as outside a project and its line says it answered for the computer. - FR2: one stderr line while a release installs or the run waits for another run's install (text mode only); a live install is waited for, a stopped run's lock is taken over, a damaged cached release is installed again, and an install past a generous bound ends in ERR_VERSIONS_UNAVAILABLE, never by stopping the process. - Platform support: in a Yarn Plug'n'Play project the matched release answers from the cache, because seeing the project's own CLI needs the project's loader. * spec(AST-081): no install outlives the run that started it FR2: an install ends when the run that started it ends, however it ends, and a run that takes over a stopped run's lock ends any install that lock records first. * spec: record global mode in cli-surface and cli-conventions; FR5 limits and computer-level names - architecture:cli-surface: a release-choice stage before dispatch (the hand-off, ERR_VERSIONS_UNAVAILABLE before any write); INV2 success meta carries answeredBy; INV3 names ERR_PROJECT_REQUIRED and ERR_VERSIONS_UNAVAILABLE; INV7 command docs declare outsideProject, which the manifest publishes; INV13 covers the computer-level agent text; INV22 hints take the picker's command name; owning code and deciding specs name foundation/release and spec:AST-081. - contributing:cli-conventions: outsideProject in the command doc fields and the checklist. - spec:AST-081 Current-state impact says those records now carry these rules, with the host entry's inputs recorded there with the host entry. - FR5: the computer-level agent text names the door that wrote it, otherwise `astryx`, and no integration's cliCommand; cliCommand is one line of at most 120 characters with no surrounding whitespace. * spec(AST-081): cliCommand is a non-blank single line without marker text FR5: cliCommand is a non-blank single line of at most 120 characters, with no surrounding spaces and no Astryx agent-docs marker text, matching what the manifest parser accepts. * spec(AST-081): computer-level text installs with the global copy; reminders; the global and project table - FR8: the global copy installs and refreshes the computer-level text itself (first run and every release switch, in the background); `init --user` writes it in the foreground, `--agent <names>` limits it to those agents' files, and `--remove-agents` records an opt-out the global copy honors. Choices live in a documented settings file in the per-user configuration directory. Managed markers record a hash, so a person's edit is never overwritten. A table names each agent's file. - FR6: a kept release answers only on a Node it supports; update notices point at FR10 instead of never naming a command. - FR7: the configuration directory is a named place; relative folder settings from the environment are ignored; the computer-level text is written by `init --user` and by the global copy, never by install scripts. - FR10: reminders, one stderr line at most once a day, text mode only, when the global copy cannot move to the newest release (Node, unwritable cache, 7 days offline; points at `astryx doctor`) or a project's release is behind (names the install and upgrade commands). Doctor reports both. - FR11 and its table: 31 cases where global and project copies meet, with who answers, what prints, and one test each; doctor lists every `astryx` on the search path and warns about a non-Astryx or pre-hand-off first one; paths compare without case where the file system ignores it. - DEC-5 and DEC-12 updated; DEC-13 (installer), DEC-14 (reminders), DEC-15 (the table) added. Verification rows for FR6, FR8, FR10, FR11. * spec(AST-081): workspace CLI, lock lease, old-global reminder, smoke-only rows - Project definition: a workspace's own CLI package (the folder itself, or `packages/cli` beside the workspace) is the project's CLI. - FR8: each file records a hash of its text inside its markers; a file that records none counts as edited. - FR10: a third reminder, when the first `astryx` on the search path is a release that predates the hand-off, naming `npm i -g @astryxdesign/cli@latest`; doctor reports it in every folder. - FR11: a release install's lock is renewed every 10 seconds; a lock from another computer is taken over once a waiting run sees it unrenewed for 60 seconds. Rows that depend on an operating system's file system name the cross-platform smoke workflow as their only full test. G11, G21, G25, G26 updated; G32 (a workspace with its own CLI and Core) added. - Re-flow of list items whose lines an earlier edit left ragged or nested one level too deep (FR6, FR7); no wording change there. * spec(AST-081): the measured agent file set; the offline reminder's line - The computer-level agent files table lists every agent tool the CLI writes for: Claude Code's own folder; the shared .agents folder for Codex, Gemini CLI, Copilot CLI, Cursor, OpenCode, Crush, Qwen Code, Cline, Amp, Goose, Roo Code, and Zed; and the single-tool folders of Continue, Kiro, and Windsurf, written for every agent only when that tool's folder exists. - No copy in a folder a shared-folder tool also reads, and no always-on instructions file, since a tool lists such a copy twice. Files are regular files with strict YAML frontmatter whose name is the folder's name. A tool that needs its own configuration changed, such as Aider, gets no copy, and the CLI never edits an agent tool's configuration. - FR10: the line for 7 days without reaching the registry. * spec(AST-081): the old-command reminder needs no check FR10 and DEC-14: a fresh home stays quiet about a newer release, which needs a completed check; the reminder about an astryx command that predates the hand-off needs none, and in a home that keeps no reminder times it prints on each run. G19 reads 'no reminder about a newer release'. * spec(AST-081): notify-only updates, as gh and the Vercel CLI do - FR6: the global copy answers with its own installed release and never installs or switches to a newer one. Once a day, never in the first day, it checks the registry's `latest` (and its Node range) in the background and records it in the per-user state file. No check with `CI` (truthy) or `NO_UPDATE_NOTIFIER` set; both are shared conventions Astryx does not define (AST-017 FR14). - FR10: after a successful command, in text mode, two-line notices at most once a day each: "A new release of Astryx is available: <cur> → <new>" and "To upgrade, run: <command>" (the installing package manager's command outside a project; the project's install and upgrade commands inside one; the Node it needs first when the computer's is too old). The old-command notice keeps its own first line and needs no check. Never with --json, after a failure, or with CI/NO_UPDATE_NOTIFIER; printed without a terminal. - FR3, FR5, FR7, FR8, FR9, platform support, current-state impact: no release switching; the state file lives in the configuration folder; the guide refreshes when the installed global release changes. - DEC-5, DEC-11, DEC-13, DEC-14 rewritten; DEC-16 added (notify, never self-update; rejected: background install and switch). - Table: G9, G12, G14, G17, G19, G22, G23, G29, G31 updated; G33 (the global copy behind, per package manager) and G34 (NO_UPDATE_NOTIFIER or CI) added. Verification rows for FR6 and FR10 rewritten. - architecture:cli-surface: foundation/release owns the update check and notices. * spec(AST-081): integrations installed for the computer apply outside projects - FR12: a computer-level integration is an integration package installed in the same install root as the CLI installed for the computer (a package manager's global folder, or a tool's package set holding the CLI). Outside a project they load as a project's integrations do, with the same validation; one whose Core or CLI peer range excludes the answering release is skipped. Inside a project only the project's own integrations load; discover lists computer-level ones as available with the project's install command, and a door's command name still applies. A project's own copy of the same integration is the only one. Doctor lists them (computer mode) and names them as available (project mode). - FR1 and FR3: a host's approved integrations are needed only for packages not installed beside the CLI it runs; current-state impact narrowed to match. - Table rows G35-G39, FR12 verification row, intent and FR11 updated. - DEC-17: outside projects only (rejected: applying inside projects; a host input for them). * spec(AST-081): FR12 for pnpm global folders, source folders, and what a project is offered - pnpm 11 and later give each global package a folder of its own: every such folder is read when one of them installs the CLI. - Inside a project, discover offers only computer-level integrations whose peer range admits the release that answers there and whose manifest loads; they are read beside the copy that answers when it was installed outside the project (a door's package set included), else beside the first global `astryx` on the search path. - Outside a project, a folder that loads an integration itself (its own source) uses its own copy; doctor names the computer's copy as not used. - Table rows G40-G43; FR12 verification row covers G35-G43. * spec(AST-081): approved; FR54 references point at cli-surface INV10a - authority current, approved_by josephfarina, approved_at 2026-10-19, phase accepted; every DEC's decider recorded as josephfarina, 2026-10-19. - The two mentions of spec:AST-017 FR54 (classifying a refusal that corrects a write outside a confined root) now point at architecture:cli-surface INV10a, which owns that rule. * spec(AST-081): compatible fallback; one skill file linked where agents look; docs global is computer-level; npm prefix; Core-only notice - FR2, FR5, FR9, DEC-1: when the matched release cannot be obtained (offline, a registry without it, no published release in range, an unwritable cache, an install past its bound), the copy that answered before global mode answers: the project's own CLI, whatever its version, else the starting copy. Announced with one standard-error line and meta.answeredBy.copy "fallback". ERR_VERSIONS_UNAVAILABLE is kept for runs nothing can answer (the project's own CLI cannot start; Core outside a project cannot be installed). npm starts without a shell; a declared Core range is read only when it is a plain version range. DEC-1 now rejects failing such runs and any silent or other-release fallback. - FR8, the computer-level agent files table, DEC-12, DEC-13: the computer-level text is one version-free file, ~/.agents/skills/astryx/ SKILL.md, naming only stable entry points; each other agent folder gets a folder link (relative target; a junction on Windows; a managed copy where a link cannot be made, and for Continue, whose scanner skips links). The table names Claude Code (always), Kiro, Windsurf, Letta, Xcode's coding assistant, Kimi's ~/.config/agents/skills, and Continue (copy), each when its folder exists; never a store another tool manages. Settings record the links the CLI made, so removal is exact; doctor names skipped and dangling links. --agent selection removed. Rejected: per-agent copies, picking agents, always-on instruction files. - FR9: `astryx docs global[/...]` is computer-level, like init --user. - FR10: a global copy under its own npm prefix is upgraded into that prefix; a project's notice installs the CLI beside Core (a Core-only project gets it too). - Rows G17 and G31 follow the fallback; new rows G44-G48; the FR12 verification row covers G35-G43. * spec(AST-081): project's own CLI answers (patch); failed-install record; cli-surface INV10/12/14 - FR2, FR5, FR9, DEC-1, DEC-10: a project that installs its own CLI is answered by it, whatever its version, and every other copy hands off to it. The release equal to the project's Core answers only a project with no CLI of its own, or whose CLI cannot start. doctor warns on a CLI/Core mismatch and names the align command. DEC-10 records why (spec:AST-017 FR12: a patch must not change what an in-range install answers); Core deciding over a differing project CLI is named as a next-minor breaking follow-up in Current-state impact. - FR2: the fallback is the starting copy; a failed install is recorded in the per-user cache for ten minutes, by release, and no copy using that cache retries it until then. ERR_VERSIONS_UNAVAILABLE for runs nothing can answer. - architecture:cli-surface: INV10 names the per-user writes outside a project (cache, settings and state, the skill file with its links or copy); INV12 covers the run-level standard-error lines; INV14 notes that computer-level integrations load only outside projects. - FR10: global folders are recognized by layout, so a Bun folder moved with BUN_INSTALL and a Yarn 1 global-folder count; their notice reinstalls into the same folder. - Rows G3, G7, G17, G27, G31, G32, G47 follow; new rows G49-G51. * spec(AST-081): a project with only Core is answered as released; INV14 wording; lock takeover safety; --help/manifest pointer - FR2, FR5, FR9, DEC-10: a project with no CLI of its own (only Core, or a fresh clone) is answered by the copy that started the run, as before global mode, with one text-mode hint after a successful command, at most once a day per project, naming the command that adds the CLI at Core's version; meta.answeredBy.copy "starting"; doctor warns too. The matched release answers only a project whose own CLI cannot start. The next-minor breaking follow-up now also covers the matched release for Core-only projects. DEC-10 gains a compatibility paragraph: the one released route that changes is a non-project copy (global install, npx @astryxdesign/cli@<version>, another runner fetch) started inside a project that installs its own CLI of another release, which now hands off to that CLI; no documented route changes and the JSON shape is the same. - FR2: the guard removes npm's process-id record when it ends npm; a lock takeover ends the recorded process only when it is confirmed to be the install (command line names npm; without a process table, a lock younger than any install and a process named node or npm), otherwise it just takes the lock over. - FR9: `astryx --help` carries one line and the manifest a `globalMode` field pointing to `astryx docs global` (spec:AST-017 FR14). - FR12 and architecture:cli-surface INV14: inside a project, computer-level integrations contribute nothing; discover and doctor load their manifests only to list the compatible ones as available. - Rows G4, G5, G6, G15, G17, G28, G31, G43, G48, G49 follow. * spec(AST-081): a global folder counts only when a package manager's settings name it The global copy is one in npm's global folder or in a global folder that a package manager's own settings name (Bun BUN_INSTALL/globalDir, Yarn global-folder, pnpm PNPM_HOME/global-dir, and defaults); layout alone never makes a copy global, and when unsure the copy is not global (no update check, no agent text). FR10's notice reinstalls into such a folder with the plain command. Rows G50 and G51 add the look-alike apps. * spec(AST-081): failed-install backoff; exact lock-takeover match; setup reminder; Core prefetch; pnpm store links - FR2: a failed install is retried after 2 minutes, then after 10 once it fails again in a row; a success forgets it. - FR2: a lock takeover ends the recorded process only when its arguments are exactly npm, or node running npm-cli.js, installing @astryxdesign/cli at the lock's release, it started after the lock, and the lock is younger than any install; otherwise the lock is taken over and the process left alone. - FR2: in a project with only Core of another release, the setup reminder names the add-CLI command first, then astryx init. - FR3, FR6: on a run while no Core is beside it or cached, the global copy installs its own release's Core into the per-user cache from a detached step (never in CI, never blocking, failures silent with FR2's backoff), so component reads outside a project work offline after one online run. - Definitions: a package in pnpm's store links folder is global only when a settings-named pnpm global folder links to it. - Row G49 follows; new rows G52, G53. * spec(AST-081): deep folders; Core step at run end (Windows: terminal only); npm title; invalid_cli_command follow-up - Project definition: a folder deeper than the nearby look finds the project's own CLI from the declaring package.json's folder (G54). - FR6: the global copy's Core step starts as the run ends, never holding anything the caller waits on; on Windows, where a detached process inherits the caller's pipes, only when the run writes to a terminal (G55). - FR2: a lock takeover reads npm's process title, reported as one argument, as its arguments. - Current-state impact: next-minor follow-up for `integration check --strict` failing on invalid_cli_command (cli-surface INV35); this release reports it without failing. - FR3: an open search gets the release's Core as component does; when it cannot, it answers from the rest with meta.partial and one stderr line (G56). * spec(AST-081): a deep folder reads the project's Core from the declaring package.json A folder deeper than the nearby look finds the project's Core, as well as its own CLI, from the folder of the package.json the walk found, never the carried Core in its place. New row G57. * spec(AST-081): fresh clones read the carried Core; invalid_cli_command is a note - FR3: outside a project, or in a project with nothing installed (the copy that started the run, such as in a fresh clone), commands that need Core answer from the carried Core; a project's installed Core is always read in its place, from any depth. When the carried Core cannot be installed in a project, the message says the project has no Core installed and to install its dependencies. - FR5: `doctor integration validate` and `integration check` report a malformed `cliCommand` as a note (`invalid_cli_command`) beside their issues, which fails nothing; `doctor` still warns. - Follow-up: the next minor makes it a validate warning that `integration check --strict` fails on (cli-surface INV35). * spec(AST-081): signals sent to the starting copy reach the handed-off CLI FR9: an interrupt, termination, or hangup signal sent to the copy that started the run reaches the copy it handed the run to; an interrupt a terminal sends to the whole process group, which that copy already gets, is not passed on a second time while it is still stopping. New row G58. * spec(AST-081): the official package list is AST-051 FR11 #7494 renumbers the official-list requirement to AST-051 FR11, since FR10 is now "A package can link its docs site"; AST-081's four references follow. * spec(AST-081): INV31 carve-out for the computer-level skill; no Windows Core prefetch; 5-second interrupt grace - architecture:cli-surface INV31: the computer-level skill file AST-081 FR8 writes (~/.agents/skills/astryx/SKILL.md, with its folder links or copy in other agents' skill folders) is not a project's agent docs; only `astryx init --user` and the global copy's background step write it. INV31's rule for project agent docs is unchanged. FR7's text says so. - FR6/FR3: the global copy's background Core install never runs on Windows (no terminal check, per INV1); a command that reads Core installs it there on first need. Row G52 notes it. - FR9: termination and hangup signals reach the handed-off CLI; a SIGINT that reaches only the starting copy is forwarded if that CLI is still running 5 seconds later, so a group interrupt reaches a CLI that stops in time exactly once. Row G58 covers both cases. * spec(AST-081): a host's approved integrations resolve by name from the run's package set FR1: the integrations a host approves for use outside a project are resolved by name from the package set that serves the run, in addition to what FR12 finds there (they are no longer defined as those not installed beside the CLI). FR3 and the current-state impact follow. * spec(AST-081): a declined project CLI whose release cannot run falls back to the starting copy FR2: when a door declines the project's own CLI and cannot run the release equal to it, the copy that started the run answers, announced as for a release that cannot be obtained, and the warning names the reason the project's CLI was declined (it no longer fails with ERR_VERSIONS_UNAVAILABLE). FR1: the reason is text the host defines; the record sets no list. The FR2 verification row names the declined-and-unavailable fallback.
josephfarina
added a commit
that referenced
this pull request
Oct 20, 2026
…list built into each release (#7495) * feat(cli): discover lists the official Astryx packages first, from a list built into each release Each CLI release carries a generated list of the official packages: every package the release workflow publishes that adds at least one item discover lists, read with the CLI's own integration and theme readers. A drift test fails when the committed list no longer matches the repository. Discover reads the list after every other source, so a project's or an integration's source keeps its entry for an official package; the list adds the rest. Official packages come first in what discover shows, read like any other package, and name their source Astryx. Entries take the CLI's own version; a canary CLI also lists the canary-only packages, as prereleases. A declared official theme package counts as installed. On a package page, an official entry's add command pins the project's Core version when the package releases with Core, otherwise the CLI's version, and a theme's add text ends with `theme add <slug>`. A project that loads no integration and has no source of its own still gets the list for every query. * fix(cli): discover's official entries list the version they pin and keep released answers An official entry now shows, lists and pins one version, so the package page, a lookup by version and the add command agree: the project's Core version, installed or declared exactly, for a package released with Core and for a canary-only package; with no Core, a release CLI's own version, or a canary CLI's own version for a canary-only package. Otherwise it lists none and the add command pins nothing, because a canary CLI may have been published without some packages and a declared range names no single version. Canary-only packages are no longer listed beside a released Core, which they cannot be installed with. A source keeps its entry for any official package whose integration it publishes under another name, so a fork or mirror stays in the list and in search; the official list is merged in source order and put first only where discover shows it. Declared official packages are read from the project's own package.json, the nearest one above the current folder, including npm aliases; a peer dependency alone no longer counts as installed. For a package only the official list supplies, a version or item it does not show answers ERR_UNKNOWN_PACKAGE, as before. Each package the project could add carries its add command, and in a project that loads no integration and has no source of its own the list points at those commands instead of at queries that only return the list. A published theme package whose folder does not match its theme file now fails the generator, and the drift test checks that every listed stable package releases with Core. * fix(cli): an official entry keeps the newest release as latest and pins the project's Core, range included An official entry's latest release is again the newest release the CLI knows: its own version on a release CLI, or the project's Core version when that is a newer release, so an update check is not told the project's older Core is the latest. An entry for a package released with Core lists that latest release and the project's Core version, so a lookup of either works, and its add command pins the project's Core version. In a fresh clone that declares Core as a semver range and has not installed it, the add command pins that range, quoted for the shell, so the package manager resolves the release that matches the project's Core. A declaration that names no version, such as a path, a workspace protocol or a dist-tag, pins nothing. When the page shows the latest release and the command installs another version, the text says which version it installs and why. * chore(cli): the official package list is AST-051 FR11 #7494 renumbers the official-list requirement to AST-051 FR11 (FR10 is now "A package can link its docs site"); the six comments that cite it follow. Comments only; no behavior change. * fix(cli): discover pins the latest release when the declared Core is no plain range - The official list's pin for a package released with Core is the project's Core version, else the Core range it declares, else the latest release (spec:AST-051 FR11). A Core declared as `workspace:*`, a `file:` path or a dist-tag, and not installed, gave no range and no pin; it now pins the latest release. The `workspace:*`, `file:../core` and `latest` rows expect it. - generate-cli-official-packages.mjs: discover reads the list after every other source (FR11 and DEC-5), and each entry lists the CLI's own version and the project's Core version, with the pin rule above. * fix(cli): discover reads a declared Core range with a space after an operator node-semver accepts a space between an operator and its version (`~ 0.6.8`, `>= 0.6.8 < 0.7.0`), but the range check split on whitespace, so such a declaration counted as no range and add pinned the latest release, outside it. Each operator is now joined to its version first, and the joined range is pinned. Two rows in the fresh-clone pin test.
github-actions
Bot
deleted the
josephfarina/discover-official-list-spec
branch
October 21, 2026 06:22
This branch was successfully deployed
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.
Exact decision needed
spec:AST-051OQ1: whether discover ships a built-in source of public packages, and whether a project's source adds to it or replaces it. Until it is decided, discover in a fresh app has nothing to offer:discover --availablesays no source is configured, whiletheme listin the same folder shows the seven official themes.Existing authority searched
spec:AST-051(current): FR1, FR2, FR6, FR7 (the earlier source's entry is used), FR9, DEC-2 (no catalog URL built into the CLI), OQ1.spec:AST-017(compatibility),architecture:cli-surface(INV10 confined writes, INV21 adapters),spec:AST-039(no hand-written catalog files).theme addtext). Neither decides where official packages come from or the order of sources.Decision
Astryx.Rejected alternatives
Claim scope and non-goals
Evidence and implementation relationship
Writing rubric results
Rejected:line naming two alternatives, reading the list first and searching the registry at run time; DEC-2's line is unchanged.#followed by digits,/pull/, and/issues/).Scope
Validation
pnpm check:knowledge: passes.git diff --check: clean.This changes a current record, so it needs the owner's approval on its exact head. It stays a draft until the content is approved.
Second commit: the version an official entry lists, and released answers
ERR_UNKNOWN_PACKAGE.package.json(the nearest one above the current folder), fromdependencies,devDependenciesoroptionalDependencies, aliases included; each package the project could add carries its add command.Writing rubric results for this commit
#followed by digits,/pull/,/issues/).Third commit: latest release and the Core range
Writing rubric results for this commit
#followed by digits,/pull/,/issues/).