Repository navigation
chore: land 2 reviewed pull requests together (batch 94) - #13045
Conversation
…at writes the path from its own folder
… folder's CLI invocation; record DEC-20 [skip ci]
… installed for the computer Outside a project, component, template, search, discover and theme print one line when an integration installed for the computer has issues in its contributions, and send the reader to doctor. Doctor's computer-integrations check passed and named nothing, so the pointer led nowhere. It now warns and names each issue. Its fix says that a newer release of the package must fix it, with the command that updates a third-party package beside a CLI installed for the computer, or that a tool's package set updates it. Doctor reads no Core outside a project, so it leaves out the issues that compare components with Core components. [skip ci]
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec b9cc641 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision, and one fix is needed in #13010.
- #13002's doctor fix for an integration installed for the computer that has issues adds maintainer advice and a
<package manager> … <package>@latestupdate step that neither the current nor the proposed global-mode FR12 text states, so an engineering owner either says on this pull request that their decision covers that advice as shipped or adds it to FR12 and approves the new head with/approve-spec <full head SHA>(the author may do either as an engineering owner). - Outside a project,
astryx doctor integration validatereports[ok]with no skip note for a computer copy skipped because its@astryxdesign/corepeer range excludes this CLI, whileastryx doctorwarns that the copy is skipped, becausevalidate-integration.mjs:532attaches the note only when the CLI range fails; build the note from the skip reason alone and add a row G35 case for a Core-range skip.
Judged alone, #12710 is ready, #13002 waits on the decision above, and #13010 needs the fix. Non-blocking: the template refusal still says the template is written only inside the project, directly above the new suggestion that writes outside it (copy.mjs:147-148).
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Template changeset: a refused destination of a Core template outside the project, absolute or through
.., also names the same write from the destination's nearest existing folder, printed with that folder's CLI invocation: verified (copy.mjs:105-173,cli-error.mjs:329-344, path-safety and text-output tests). - Template changeset:
--overwritestays in the commands that write the named path and never in the inside-the-project one: verified (copy.mjs:139-141, overwrite test). - Template changeset: a
..path used to get the refusal with no command: verified (basecopy.mjsrethrew only the traversal message; base transcript). - Template changeset: a
..path into the temp folder is still no scratch copy and the refusal names its absolute path, which takes one: verified (copy.mjs:123-126, test run with a temp folder that takes scratch copies). - Doctor changeset: outside a project doctor warns about and names the issues of a used computer integration: verified (
doctor.mjs:3051-3130, the global-mode row G35 test). - Doctor changeset: before, search and discover pointed at doctor while doctor passed and named nothing: verified (the nudge in
integration-warnings.mjs; the base check warned only for skipped or failed packages). - Doctor changeset: issues that compare components with Core are still not named: verified (
doctor/_adapter.mjs:1549-1554, the row G35 SideNav case). - Validate changeset: outside a project validate checks the copy the folder uses, a computer copy included: verified for used and failing copies (rows G35 and G41); a copy skipped for its Core range is checked with no skip note (finding above).
- Validate changeset: before, it looked only in
node_modulesand answeredpackage_not_foundthough doctor names it: verified (basevalidate-integration.mjs:817; doctor's failed-load fix). - Description: three members merged in order as separate merges, the validate change on top of the doctor change: verified (history; all three merges clean).
- Description: each record edit has an engineering owner's approval on its member and at this head: verified (owner comments on each member and here; the spec-owner status succeeded at this head).
- Description: the template suggestion keeps the caller's write options such as
--overwrite: verified (--overwriteis the template command's only write option). - Description: validate checks the folder's own source as the package being made: verified (
loadedCopyreturnsown; row G41). - Description: writing rubric results report no issue for either record edit: verified (present tense, no research, no change references, one-line rejected alternative, no project status).
- Description: each member is closed when this merges: not checkable in code (process).
Files:
.changeset/doctor-computer-integration-issues.md: clear.changeset/template-refusal-cd-hint.md: clear.changeset/validate-computer-integration.md: clear for used and failing copies; see the skipped-copy findingdocs/architecture/cli-surface.md: clear (new decision, approved at this head)docs/specs/AST-081-global-mode/spec.md: clear (approved at this head); does not state the fix advicepackages/cli/api/docs/_adapter.mjs: clearpackages/cli/api/doctor/_adapter.mjs: clear; update step awaits the owner decisionpackages/cli/api/doctor/doctor.doc.mjs: clearpackages/cli/api/doctor/doctor.mjs: fix advice awaits the owner decisionpackages/cli/api/doctor/doctor.test.mjs: clearpackages/cli/api/integration/_adapter.mjs: clearpackages/cli/api/integration/validate-integration.mjs: blocking finding at line 532packages/cli/api/integration/validateIntegration.doc.mjs: clearpackages/cli/api/template/_adapter.mjs: clearpackages/cli/api/template/copy/copy.mjs: clear; non-blocking wording note at lines 147-148packages/cli/api/template/template-integration.test.mjs: clearpackages/cli/api/template/template.mjs: clearpackages/cli/assets/docs/tree/computer-integrations.doc.mjs: clearpackages/cli/clients/cli/commands/doctor-integration-validate.doc.mjs: clearpackages/cli/clients/cli/commands/doctor.doc.mjs: clearpackages/cli/clients/cli/commands/template.path-safety.test.mjs: clearpackages/cli/clients/cli/lib/cli-error.folder.test.mjs: clearpackages/cli/clients/cli/lib/cli-error.mjs: clearpackages/cli/clients/cli/lib/cli-error.test.mjs: clearpackages/cli/foundation/discovery/component-replacement.mjs: clearpackages/cli/foundation/discovery/doc-types.mjs: clearpackages/cli/foundation/discovery/doc-types.test.mjs: clearpackages/cli/foundation/discovery/project-typescript.mjs: clearpackages/cli/foundation/env/package-manager.mjs: clearpackages/cli/foundation/env/package-manager.test.mjs: clearpackages/cli/foundation/integrations/integration-warnings.mjs: clearpackages/cli/foundation/release/notices.mjs: clear; update step awaits the owner decisionpackages/cli/foundation/release/notices.test.mjs: clearpackages/cli/test/global-local.rows-16-39.test.mjs: clear; needs a Core-range skip case for the fixpackages/cli/test/global-local.rows-40-59.test.mjs: clear
| ? `A scratch copy in the system temp folder takes its absolute path, ${scratchPath}.` | ||
| : scratchFolder | ||
| ? `The template is written only inside the project, or as a scratch copy in the system temp folder (${scratchFolder}). Give a path inside one, or print the source.` | ||
| : 'The template is written only inside the project. Give a path inside it, or print the source.'), |
There was a problem hiding this comment.
Non-blocking: when the run-from-its-folder suggestion is shown, this sentence still says the template is written only inside the project and offers two ways, directly above a third that writes outside it. Consider naming it here too, for example "…Give a path inside it, run the same write from the path's folder, or print the source."
b9cc641 to
b6daae2
Compare
|
/approve-spec b6daae2 |
|
/approve-spec b6daae2 |
There was a problem hiding this comment.
Approved pending CI: CI's heavy jobs have not run on this head yet; they run once review passes, and the merge guard needs them green.
The template refusal's run-from-its-folder command follows the new CLI-surface decision, and doctor's warning and fix advice follow the global-mode requirement and the engineering owner's decision recorded on this pull request. Judged alone, #12710 and #13002 are each ready.
- Non-blocking: when the run-from-its-folder command is shown, the refusal still says the template is written only inside the project and offers two ways, directly above a third that writes outside it (
packages/cli/api/template/copy/copy.mjs:147-148); naming that way in the sentence would read consistently.
Claims and files checked
Review mode: full; reason: history
Claims:
- Doctor release note: outside a project, doctor warns about a used computer-level integration whose own files have issues, and names them: verified (
doctor.mjs:3074-3090,:3125-3126; global-mode row G35 test). - Doctor release note: before, search and discover pointed at doctor while doctor passed and named nothing: verified (the base nudge in
integration-warnings.mjs; base doctor warned only for skipped or failed packages). - Doctor release note: issues that compare components with Core are still not named: verified (
doctor/_adapter.mjs:1548-1560; row G35's replacing integration passes). - Template release note: a refused destination of a Core template outside the project, absolute or through
.., also names the same write from its nearest existing folder, printed with that folder's CLI invocation: verified (copy.mjs:132-135,:161-168,cli-error.mjs:337-344; path-safety and text-output tests; a real run of the suggested command). - Template release note:
--overwritestays on that command and on the scratch-copy one, never on the inside-the-project one: verified (copy.mjs:139-141; the overwrite test). - Template release note: a
..path used to get the refusal with no command and now gets the same commands: verified (basecopy.mjstreated only absolute paths this way; base and head runs). - Template release note: a
..path into the temp folder is still no scratch copy, and the refusal names its absolute path, which takes one: verified (copy.mjs:123-126,:144-145,:154-160; test run with a temp folder that takes scratch copies). - Description: two members merged in order, each as its own merge: verified (history; both merges are clean and add exactly their member's lines).
- Description: each record edit has an engineering owner's approval on its member and at this head: verified (exact-head approvals on both members and here; the spec-owner status passed at this head).
- Description: the template suggestion keeps the caller's write options such as
--overwrite: verified (--overwriteis the template command's only write option). - Description: doctor warns about each issue, the nudge now leads to those issues, and the fix names who acts, with the package manager's
@lateststep or a note that the tool updates it: verified (doctor.mjs:3107-3118,notices.mjs:277-281). - Description: the engineering owner's decision covers the doctor fix advice as shipped: verified (the owner's comment at this head).
- Description: the writing rubric finds no issue in either record edit: verified (present tense; no research, change references or project status; a one-line rejected alternative).
- Description: each member is closed when this merges: not checkable in code (process).
Files:
.changeset/doctor-computer-integration-issues.md: clear.changeset/template-refusal-cd-hint.md: cleardocs/architecture/cli-surface.md: clear (new decision, approved at this head)docs/specs/AST-081-global-mode/spec.md: clear (approved at this head)packages/cli/api/doctor/_adapter.mjs: clearpackages/cli/api/doctor/doctor.doc.mjs: clearpackages/cli/api/doctor/doctor.mjs: clearpackages/cli/api/doctor/doctor.test.mjs: clearpackages/cli/api/template/_adapter.mjs: clearpackages/cli/api/template/copy/copy.mjs: non-blocking wording note at lines 147-148packages/cli/api/template/template-integration.test.mjs: clearpackages/cli/api/template/template.mjs: clearpackages/cli/assets/docs/tree/computer-integrations.doc.mjs: clearpackages/cli/clients/cli/commands/doctor.doc.mjs: clearpackages/cli/clients/cli/commands/template.path-safety.test.mjs: clearpackages/cli/clients/cli/lib/cli-error.folder.test.mjs: clearpackages/cli/clients/cli/lib/cli-error.mjs: clearpackages/cli/clients/cli/lib/cli-error.test.mjs: clearpackages/cli/foundation/discovery/component-replacement.mjs: clearpackages/cli/foundation/env/package-manager.mjs: clearpackages/cli/foundation/env/package-manager.test.mjs: clearpackages/cli/foundation/integrations/integration-warnings.mjs: clearpackages/cli/foundation/release/notices.mjs: clearpackages/cli/foundation/release/notices.test.mjs: clearpackages/cli/test/global-local.rows-16-39.test.mjs: clear
PR Analysis Report🔎 Preview ·
|
Merges two reviewed pull requests onto current main, each as its own
--no-ffmerge, in this order. Each member keeps its own description, tests and review history, and each record edit below has an engineering owner's/approve-specon its member and at this branch's head.Scope
CLI template: a template path that leaves the project gets the same refusal plus one suggestion, the same write run from the path's nearest folder, keeping the caller's write options such as
--overwrite(#12710).CLI doctor: outside a project, doctor warns about each issue of an integration installed for the computer, and the integration-issue nudge leads to those issues. For such an integration with issues, doctor's fix names who acts: a maintainer gets the advice to fix the package and the package manager's
<package>@latestupdate step; a copy that updates with the tool says so (#13002).Records
architecture:cli-surfaceDEC-20: a refused template path names the same write from its folder (feat(cli): template's outside-the-project refusal names the command that writes the path from its own folder #12710).spec:AST-081FR12: the doctor sentence for computer-level integrations and its verification row (fix(cli): doctor outside a project names the issues of an integration installed for the computer #13002). The engineering owner's decision also covers fix(cli): doctor outside a project names the issues of an integration installed for the computer #13002's doctor fix advice as shipped: the maintainer advice with the<package manager> … <package>@latestupdate step, or "It updates with the tool…" for a copy that updates with the tool.Writing rubric results
DEC-20 (#12710): R1 present tense. R2 none. R3 none. R4 none. R5 none. R6 none. R7 none.
FR12 (#13002): R1 present tense. R2 none. R3 none. R4 none. R5 none. R6 none. R7 none.
When this merges, each pull request above is closed with a note that names this one.