Repository navigation
chore: land 1 reviewed pull request (batch 100) - #13063
Conversation
…for the computer Outside a project, doctor's computer-integrations check names `doctor integration validate <package>` for an integration installed for the computer that it cannot load. That command looked only in the node_modules at or above the folder, so it reported package_not_found. Outside a project it now checks the copy the folder uses, as Project.load decides it: the folder's own source or a package it declares, else the copy installed for the computer. Outside any package, its docs line about TypeScript names no install step. [skip ci]
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
/approve-spec 90ebdce |
|
AI review status for this pull request.
|
|
/approve-spec 90ebdce |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Approved. Outside a project, doctor integration validate <package> now checks the copy the folder actually loads, so the command doctor prints for a computer-installed integration it cannot load finally runs as printed. The behaviours no current record states — validating a copy the other commands skip for its peer ranges, the cli_peer_version and core_peer_version note codes, and the install advice that replaces the in-project upgrade steps — are covered by the engineering owner's exact-head /approve-spec, and the new assertions fail on this pull request's base and pass on its head. CI is green at this head.
No blocking findings. Two optional follow-ups:
- Validating the authored package by name outside a project skips the unreachable-contribution scan that validating it with no package name runs (
packages/cli/api/integration/validate-integration.mjs); passingscanUnreachablebesideownwould make the two routes agree. - The new comment above the skipped-copy note is one 37-word sentence covering two topics, where the comment style allows 25 words and one topic; two sentences keep the same reason.
architecture:cli-surfaceINV35 still describes the oldcli_peer_versiontext for a skipped copy, so the record is now narrower than the shipped behaviour and deserves an amendment.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- The branch merges the reviewed pull request onto main as a merge commit — verified: the head has exactly two parents, the base-branch commit and that pull request's head, and the merge adds nothing of its own.
- Outside a project, validate finds an integration installed for the computer — verified by the global-mode table row that runs the command from an empty folder.
- It checks the folder's own source as the package being made — verified by the row that validates the source copy from its folder and from a folder inside it.
- It checks the copy a folder declares even when that copy's manifest throws — verified: the run prints the declared copy's own error, not the healthy computer copy.
- A skipped copy gets a note built from the skip reason,
core_peer_versionwhen the Core range alone excludes the release andcli_peer_versionwhen the CLI range does — verified by the two JSON assertions and by running the command on both trees. - The advice is doctor's install step, not the in-project upgrade steps — verified: the output carries the install sentence and no
upgrade --fromstep. - The CLI README table is regenerated — verified: the changed block sits inside the generated markers and the generator's check reports the tables in sync (the regenerated block is the response-type table, whose row lists the note codes).
- Before this change the command reported
package_not_foundoutside a project — verified on the base tree, where the same runs exit 1. - The owner's decision is recorded by
/approve-specon the member pull request and at this head — verified: both comments exist, from an engineering owner, at the exact heads. - The member's record lines are scored in its own description — not applicable: this change touches no knowledge record.
Files:
.changeset/validate-computer-integration.md— clear:[fix]at a patch bump matches a victim-free correction, and the changeset check passes.packages/cli/README.md— clear: generated block, in sync with its generator.packages/cli/api/docs/_adapter.mjs— clear: passes the outside-any-package flag through.packages/cli/api/integration/_adapter.mjs— clear: the new lookup follows the project's own candidate order, so a declared copy beats a computer copy.packages/cli/api/integration/validate-integration.mjs— the two follow-ups above; the new path is gated so no other caller changes.packages/cli/api/integration/validate-integration.type.mjs— clear: the new note code is documented with its exact condition.packages/cli/api/integration/validateIntegration.doc.mjs— clear: one clause added to the response description.packages/cli/clients/cli/commands/doctor-integration-validate.doc.mjs— clear: the description matches the implemented lookup order.packages/cli/foundation/config/project.mjs— clear: documentation only.packages/cli/foundation/discovery/doc-types.mjs— clear: the in-project text is unchanged; all three skip paths take the new flag.packages/cli/foundation/discovery/doc-types.test.mjs— clear: three new cases, each failing on the base.packages/cli/foundation/discovery/project-typescript.mjs— clear: the new option defaults off, so existing callers keep their text.packages/cli/foundation/integrations/computer-integrations.mjs— clear: the skip reason now names every excluding range.packages/cli/foundation/integrations/computer-integrations.test.mjs— clear.packages/cli/foundation/response/response-types.doc.mjs— clear: the same clause as the API doc.packages/cli/test/global-local.rows-16-39.test.mjs— clear: exact-string assertions for each new behaviour.packages/cli/test/global-local.rows-40-59.test.mjs— clear: the own-source case from the folder and from a folder inside it.
| }); | ||
| if (peerProblem) { | ||
| (result.notes ??= []).push({code: CLI_PEER_VERSION, message: peerProblem}); | ||
| // A copy installed for the computer that this CLI skips outside a project |
There was a problem hiding this comment.
Non-blocking (comment style): this is one 37-word sentence carrying two topics, where architecture:knowledge-contracts INV29 allows at most 25 words in a description and one topic per sentence. Two sentences keep the whole reason:
// Outside a project, a computer copy this CLI skips gets doctor's reason and
// fix, whichever peer range keeps it out. The project steps would set up a
// project the folder does not have.
Merges this reviewed pull request onto current main as a merge commit. This branch checks that it builds and tests on today's main.
Scope
CLI doctor: outside a project,
doctor integration validatefinds an integration installed for the computer, checks the folder's own source as the package being made, and checks the copy a folder declares even when its manifest throws. A computer copy that the other commands skip for its peer ranges gets a note built from the skip reason:core_peer_versionwhen the Core range alone excludes the release,cli_peer_versionwhen the CLI range does; the advice is doctor's install step, not the in-project upgrade steps. The CLI README's note-code table is regenerated.Records
The owner's decision on three outside-a-project behaviors (validate checks a skipped computer copy; the two note codes; the install advice), recorded by
/approve-specon the member and at this head.Writing rubric results
The member's record lines are scored in its own description: present tense, no change references, research or project status.
When this merges, the pull request above is closed with a note that names this one.