Uh oh!
There was an error while loading. Please reload this page.
docs(cli): point remaining filePatterns sites at metadata-file-name.ts - #12461
Conversation
Two comments in packages/cli (generate.ts's `skill` template, and both sites in generate-skill.e2e.test.ts) still restated the `_loadFromFileSystem` glob-discovery mechanism without the eager + no-artifactSource precondition #12075 already stated at three sibling sites in this package. Replace the unqualified mechanism sentence at each site with a pointer to metadata-file-name.ts (#12075) instead of restating it a fifth time; the surrounding historical narrative (why the #11025 per-generator override was retired) is unchanged. Comment text only, zero behavior change, zero assertion changes.
📓 Docs Drift CheckThis PR changes 1 package(s): 3 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 23 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b966d25bea926710b3960793c1d1b7369f6cf5a2 && git checkout b966d25bea926710b3960793c1d1b7369f6cf5a2
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 68c5dbaab2ecbc031e7342c9f2fc9efd6ad8bd08 b13357ae70b176cf20786343951b25a9e2816483 && git checkout -B drift-repro 68c5dbaab2ecbc031e7342c9f2fc9efd6ad8bd08 && git merge --no-ff b13357ae70b176cf20786343951b25a9e2816483
node scripts/docs-audit/affected-docs.mjs --json 68c5dbaab2ecbc031e7342c9f2fc9efd6ad8bd08
|
Uh oh!
There was an error while loading. Please reload this page.
Fixes#12163
What changed
Two comments in
packages/clistill restated theMetadataPlugin._loadFromFileSystemglob-discovery mechanism without the eager + no-artifactSourceprecondition that #12075 already stated at three sibling sites in this same package. Per the ruling on #12163 (comment), both sites now point atpackages/cli/src/utils/metadata-file-name.ts(#12075) instead of restating the mechanism inline:packages/cli/src/commands/generate.ts— theskillgenerator's template comment (the sentence that used to read "MetadataPlugin._loadFromFileSystemglobs EVERY registry entry by its ownfilePatterns, so all seven wrote into the same invisibility").packages/cli/test/generate-skill.e2e.test.ts— both sites (the "Why 'it writes a file' is the wrong assertion" section, and the#11071"control this file also holds" section).The historical narrative each comment carries — why the #11025 per-generator override was retired — is unchanged; only the unqualified mechanism sentence at each site is replaced by the pointer.
#12075is the parent measurement and is not re-addressed here.Comment text only. Zero behavior change, zero assertion changes.
Verification
pnpm --filter '@objectstack/cli^...' build— exit 0 (dependency closure)pnpm --filter @objectstack/cli build— exit 0pnpm --filter @objectstack/cli typecheck— exit 0 (tsc --noEmit)pnpm --filter @objectstack/cli exec vitest run test/generate-skill.e2e.test.ts test/generate-file-name-registry-parity.test.ts— 2 files, 50 tests passedeslint packages/cli/src/commands/generate.ts packages/cli/test/generate-skill.e2e.test.ts --no-inline-config --format json— 0 errors, 0 warnings (2 files, per JSON output)node scripts/check-nul-bytes.mjs— OKnode scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack(merge-base424f73c36) — every matched + convention-triggered family run and green:check:cli-test-child-env,check:cross-package-test-inputs,check:i18n,check:page-declaration-shape,check:published-files,check:slot-lookup,check:test-source-alias,check:type-source-resolution,check:type-check-coverage,check:engine-double-contract,check:where-matcher,check:query-options-erasure,check-comment-mask-adoption.mjs,check-plugin-teardown-shape.mjs,check-ci-filter-parity.mjs,check-affected-docs.mjs(self-test),check-drift-comment.mjs(self-test).check:i18n-coverageandcheck:type-check-debt --re-measurecame back NOT MEASURED — this fresh worktree is missing builtdist/for@objectstack/connector-mcpand@objectstack/service-knowledgerespectively (pre-existing prerequisite gap, unrelated to this diff); CI builds fresh so both measure there.b13357ae7skip-changeset: comment text only, nothing user-visible to publish.
Generated by Claude Code