@astryxdesign/cli 0.7.2 → 0.7.3-canary.54b15c6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/README.md +99 -66
  2. package/api/build/_adapter.d.mts +58 -0
  3. package/api/build/_adapter.mjs +115 -3
  4. package/api/build/blocks/blocks.d.mts +42 -0
  5. package/api/build/blocks/blocks.mjs +169 -0
  6. package/api/build/blocks/blocks.test.mjs +108 -0
  7. package/api/build/blocks/blocks.weights.json +1 -0
  8. package/api/build/build.mjs +25 -6
  9. package/api/build/kit/answer.d.mts +14 -0
  10. package/api/build/kit/answer.mjs +85 -0
  11. package/api/build/kit/answer.test.mjs +38 -0
  12. package/api/build/kit/kind.d.mts +25 -0
  13. package/api/build/kit/kind.mjs +170 -0
  14. package/api/build/kit/kit.d.mts +2 -4
  15. package/api/build/kit/kit.mjs +8 -398
  16. package/api/build/kit/rank.d.mts +3 -32
  17. package/api/build/kit/rank.mjs +25 -342
  18. package/api/build/kit/rank.test.mjs +2 -1
  19. package/api/build/kit/signals.d.mts +60 -0
  20. package/api/build/kit/signals.mjs +284 -0
  21. package/api/build/kit/start.d.mts +32 -0
  22. package/api/build/kit/start.mjs +163 -0
  23. package/api/build/kit/words.d.mts +72 -0
  24. package/api/build/kit/words.mjs +202 -0
  25. package/api/build/tree.d.mts +20 -0
  26. package/api/build/tree.mjs +52 -0
  27. package/api/build/tree.test.mjs +177 -0
  28. package/api/build/tree.weights.json +1 -0
  29. package/api/discover/_adapter.mjs +36 -9
  30. package/api/discover/_adapter.test.mjs +42 -0
  31. package/api/docs/_adapter.mjs +17 -5
  32. package/api/docs/docs.test.mjs +7 -1
  33. package/api/doctor/doctor.mjs +86 -12
  34. package/api/init/init.doc.mjs +20 -6
  35. package/api/init/init.test.mjs +18 -2
  36. package/api/init/init.type.d.mts +3 -3
  37. package/api/init/init.type.mjs +3 -3
  38. package/api/init/remove/remove.mjs +17 -4
  39. package/api/init/remove/remove.test.mjs +114 -2
  40. package/api/init/run/run.mjs +69 -6
  41. package/api/integration/authoring-checks.mjs +83 -9
  42. package/api/integration/pack-check.mjs +14 -1
  43. package/api/integration/pack-check.test.mjs +18 -0
  44. package/api/integration/validate-integration-case-disk.test.mjs +111 -0
  45. package/api/integration/validate-integration-gaps.test.mjs +1672 -0
  46. package/api/integration/validate-integration.d.mts +9 -1
  47. package/api/integration/validate-integration.mjs +216 -26
  48. package/api/integration/validate-integration.type.d.mts +57 -1
  49. package/api/integration/validate-integration.type.mjs +44 -2
  50. package/api/integration/validateIntegration.doc.mjs +1 -1
  51. package/api/search/ORDERING.md +28 -0
  52. package/api/search/_adapter.d.mts +66 -2
  53. package/api/search/_adapter.mjs +118 -10
  54. package/api/search/_candidate-score.d.mts +40 -0
  55. package/api/search/_candidate-score.mjs +238 -0
  56. package/api/search/_cards.json +6098 -0
  57. package/api/search/_compound.d.mts +50 -0
  58. package/api/search/_compound.mjs +170 -0
  59. package/api/search/_doc-searcher.d.mts +4 -0
  60. package/api/search/_doc-searcher.mjs +23 -0
  61. package/api/search/_doc-searcher.test.mjs +36 -0
  62. package/api/search/_doc-searcher.weights.json +1 -0
  63. package/api/search/_doc-text.d.mts +30 -0
  64. package/api/search/_doc-text.mjs +87 -0
  65. package/api/search/_entries.d.mts +52 -0
  66. package/api/search/_entries.mjs +158 -0
  67. package/api/search/_features.d.mts +35 -0
  68. package/api/search/_features.mjs +155 -0
  69. package/api/search/_gather-components.d.mts +26 -0
  70. package/api/search/_gather-components.mjs +284 -0
  71. package/api/search/_gather-docs.d.mts +20 -0
  72. package/api/search/_gather-docs.mjs +254 -0
  73. package/api/search/_gather-hooks.d.mts +12 -0
  74. package/api/search/_gather-hooks.mjs +52 -0
  75. package/api/search/_gather-templates.d.mts +25 -0
  76. package/api/search/_gather-templates.mjs +107 -0
  77. package/api/search/_lexical.d.mts +135 -0
  78. package/api/search/_lexical.mjs +351 -0
  79. package/api/search/_main-searcher.d.mts +19 -0
  80. package/api/search/_main-searcher.mjs +115 -0
  81. package/api/search/_main-searcher.test.mjs +106 -0
  82. package/api/search/_main-searcher.weights.json +1 -0
  83. package/api/search/_module-doc.d.mts +32 -0
  84. package/api/search/_module-doc.mjs +78 -0
  85. package/api/search/_order.d.mts +32 -0
  86. package/api/search/_order.mjs +162 -0
  87. package/api/search/_order.test.mjs +72 -0
  88. package/api/search/_priority.d.mts +50 -0
  89. package/api/search/_priority.mjs +139 -0
  90. package/api/search/_query-words.d.mts +25 -0
  91. package/api/search/_query-words.mjs +92 -0
  92. package/api/search/_query.d.mts +65 -0
  93. package/api/search/_query.mjs +176 -0
  94. package/api/search/_result.d.mts +97 -0
  95. package/api/search/_result.mjs +150 -0
  96. package/api/search/_score.d.mts +60 -0
  97. package/api/search/_score.mjs +283 -0
  98. package/api/search/_synonyms.d.mts +21 -0
  99. package/api/search/_synonyms.mjs +67 -0
  100. package/api/search/_template-searcher.d.mts +4 -0
  101. package/api/search/_template-searcher.mjs +23 -0
  102. package/api/search/_template-searcher.test.mjs +40 -0
  103. package/api/search/_template-searcher.weights.json +1 -0
  104. package/api/search/_titles.d.mts +33 -0
  105. package/api/search/_titles.mjs +65 -0
  106. package/api/search/_words.d.mts +64 -0
  107. package/api/search/_words.mjs +157 -0
  108. package/api/search/search.d.mts +22 -305
  109. package/api/search/search.doc.mjs +7 -5
  110. package/api/search/search.mjs +53 -2483
  111. package/api/search/search.type.d.mts +6 -1
  112. package/api/search/search.type.mjs +6 -1
  113. package/api/search/tree.d.mts +15 -0
  114. package/api/search/tree.mjs +40 -0
  115. package/api/search/tree.test.mjs +66 -0
  116. package/api/search/tree.weights.json +1 -0
  117. package/api/theme/build/build.packed-old-core.test.mjs +1 -0
  118. package/api/upgrade/_adapter.d.mts +0 -6
  119. package/api/upgrade/_adapter.mjs +52 -4
  120. package/api/upgrade/upgrade.test.mjs +194 -0
  121. package/assets/codemods/transforms/v0.7.0/__tests__/validate-data-token-ownership.test.mjs +11 -0
  122. package/assets/codemods/transforms/v0.7.0/validate-data-token-ownership.mjs +3 -3
  123. package/assets/docs/is-my-code-good.doc.mjs +287 -0
  124. package/assets/docs/tree/api.doc.mjs +6 -0
  125. package/assets/docs/tree/host-entry.doc.mjs +128 -0
  126. package/assets/docs/tree/template-grading-rubric.doc.mjs +16 -37
  127. package/assets/docs/tree/tokens-data.doc.mjs +2 -2
  128. package/assets/docs/working-with-ai.doc.mjs +6 -2
  129. package/authoring/debug/parse.d.mts +1 -1
  130. package/clients/cli/bin/astryx.mjs +7 -78
  131. package/clients/cli/commands/doctor.mjs +30 -0
  132. package/clients/cli/commands/doctor.test.mjs +65 -0
  133. package/clients/cli/commands/init.behavior.test.mjs +230 -1
  134. package/clients/cli/commands/init.doc.mjs +28 -9
  135. package/clients/cli/commands/init.flag-help.test.mjs +1 -0
  136. package/clients/cli/commands/init.mjs +2 -2
  137. package/clients/cli/commands/outside-project.test.mjs +2 -1
  138. package/clients/cli/commands/setup-nudge.test.mjs +61 -0
  139. package/clients/cli/index.mjs +19 -1
  140. package/clients/cli/run.mjs +108 -0
  141. package/foundation/agent-docs/agent-doc-state.d.mts +20 -7
  142. package/foundation/agent-docs/agent-doc-state.mjs +35 -8
  143. package/foundation/agent-docs/agent-docs.d.mts +100 -12
  144. package/foundation/agent-docs/agent-docs.mjs +1010 -99
  145. package/foundation/agent-docs/agent-docs.path-safety.test.mjs +1239 -17
  146. package/foundation/agent-docs/agent-docs.test.mjs +678 -35
  147. package/foundation/config/project.mjs +15 -2
  148. package/foundation/discovery/component-discovery.d.mts +37 -0
  149. package/foundation/discovery/component-discovery.mjs +80 -5
  150. package/foundation/discovery/component-loader.d.mts +1 -1
  151. package/foundation/discovery/docs-discovery.mjs +14 -1
  152. package/foundation/discovery/module-exports.d.mts +41 -0
  153. package/foundation/discovery/module-exports.mjs +253 -0
  154. package/foundation/doc-compiler/doc-loads.test.mjs +8 -0
  155. package/foundation/fs/paths.mjs +30 -3
  156. package/foundation/integrations/computer-integrations.d.mts +6 -3
  157. package/foundation/integrations/computer-integrations.mjs +38 -9
  158. package/foundation/integrations/contribution-inventory.d.mts +15 -20
  159. package/foundation/integrations/contribution-inventory.mjs +41 -5
  160. package/foundation/integrations/integrations.d.mts +7 -0
  161. package/foundation/integrations/integrations.mjs +2 -0
  162. package/foundation/integrations/validate-contributions.d.mts +96 -0
  163. package/foundation/integrations/validate-contributions.mjs +996 -10
  164. package/foundation/release/handoff.d.mts +23 -4
  165. package/foundation/release/handoff.mjs +175 -8
  166. package/foundation/release/run-context.mjs +14 -0
  167. package/foundation/response/response-types.doc.mjs +1 -1
  168. package/foundation/route/route.d.mts +285 -0
  169. package/foundation/route/route.mjs +324 -0
  170. package/foundation/route/route.test.mjs +153 -0
  171. package/foundation/runtime/hosted-runtime.test.mjs +403 -0
  172. package/foundation/runtime/locked-versions.d.mts +32 -0
  173. package/foundation/runtime/locked-versions.mjs +65 -0
  174. package/foundation/runtime/package-root.d.mts +91 -0
  175. package/foundation/runtime/package-root.mjs +174 -0
  176. package/foundation/runtime/package-set.d.mts +62 -0
  177. package/foundation/runtime/package-set.mjs +130 -0
  178. package/foundation/runtime/package-set.test.mjs +432 -0
  179. package/host/door-conformance.test.mjs +274 -0
  180. package/host/index.d.ts +116 -0
  181. package/host/index.mjs +295 -0
  182. package/host/index.test.mjs +302 -0
  183. package/package.json +14 -9
@@ -225,12 +225,19 @@ export function peerProblem(pkg, release) {
225
225
 
226
226
  /**
227
227
  * The computer-level integrations installed beside the CLI at `cliRoot`, in
228
- * name order (declaration order when the root declares them). Reads
228
+ * name order (declaration order when the root declares them), then each
229
+ * integration a host approves (`approved`, architecture:cli-surface INV30),
230
+ * resolved by name from the package set that holds that CLI alone. Reads
229
231
  * package.json files only.
230
- * @param {{cliRoot: string, release: string, cacheDir?: string}} options
232
+ * @param {{cliRoot: string, release: string, cacheDir?: string, approved?: readonly string[]}} options
231
233
  * @returns {ComputerIntegrationCandidate[]}
232
234
  */
233
- export function scanComputerIntegrations({cliRoot, release, cacheDir}) {
235
+ export function scanComputerIntegrations({
236
+ cliRoot,
237
+ release,
238
+ cacheDir,
239
+ approved = [],
240
+ }) {
234
241
  const self = real(cliRoot);
235
242
  /** @type {ComputerIntegrationCandidate[]} */
236
243
  const found = [];
@@ -238,21 +245,43 @@ export function scanComputerIntegrations({cliRoot, release, cacheDir}) {
238
245
  for (const root of computerInstallRoots(cliRoot, {cacheDir})) {
239
246
  scanRoot(root, {self, release, found, seen});
240
247
  }
248
+ const owner = approved.length > 0 ? installPlaceOf(self).owner : null;
249
+ if (owner) scanRoot(owner, {self, release, found, seen}, approved);
241
250
  return found;
242
251
  }
243
252
 
244
253
  /**
245
- * Add the integrations installed in one install root.
254
+ * `name` as installed in `root`'s own `node_modules`, never in a folder above.
255
+ * @param {string} name
256
+ * @param {string} root
257
+ * @returns {{packageDir: string, hostDir: string} | null}
258
+ */
259
+ function ownPackageDir(name, root) {
260
+ const packageDir = path.join(root, 'node_modules', ...name.split('/'));
261
+ return fs.existsSync(path.join(packageDir, 'package.json'))
262
+ ? {packageDir, hostDir: root}
263
+ : null;
264
+ }
265
+
266
+ /**
267
+ * Add the integrations installed in one install root: those it declares or
268
+ * installs, or, given `approved`, those names installed in its own
269
+ * `node_modules`.
246
270
  * @param {string} root
247
271
  * @param {{self: string, release: string, found: ComputerIntegrationCandidate[], seen: Set<string>}} into
272
+ * @param {readonly string[] | null} [approved]
248
273
  */
249
- function scanRoot(root, {self, release, found, seen}) {
250
- const declared = readPackage(root)
251
- ? readDeclaredDependencies(root).map(d => d.name)
252
- : installedNames(root);
274
+ function scanRoot(root, {self, release, found, seen}, approved = null) {
275
+ const declared =
276
+ approved ??
277
+ (readPackage(root)
278
+ ? readDeclaredDependencies(root).map(d => d.name)
279
+ : installedNames(root));
253
280
  for (const name of declared) {
254
281
  if (NOT_INTEGRATIONS.has(name)) continue;
255
- const resolved = resolveInstalledPackageDir(name, root);
282
+ const resolved = approved
283
+ ? ownPackageDir(name, root)
284
+ : resolveInstalledPackageDir(name, root);
256
285
  if (!resolved) continue;
257
286
  const identity = real(resolved.packageDir);
258
287
  if (identity === self || seen.has(identity)) continue;
@@ -1,6 +1,21 @@
1
1
  // @generated by scripts/sync-api-types.mjs from the JSDoc in foundation/**/*.mjs.
2
2
  // DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
3
3
 
4
+ /**
5
+ * The contribution files readers read under each declared root that is a
6
+ * readable folder, package-relative, without importing anything. A folder
7
+ * inside a root that cannot be listed is skipped.
8
+ * @param {{components?: string, templates?: string, codemods?: string, docs?: string, themes?: string}} loaded
9
+ * @param {string} pkgDir
10
+ * @returns {string[]}
11
+ */
12
+ export function contributionFiles(loaded: {
13
+ components?: string;
14
+ templates?: string;
15
+ codemods?: string;
16
+ docs?: string;
17
+ themes?: string;
18
+ }, pkgDir: string): string[];
4
19
  /**
5
20
  * @typedef {object} FileInventoryRoot
6
21
  * @property {'themes'|'components'|'templates'|'codemods'|'docs'} kind
@@ -22,26 +37,6 @@
22
37
  * @returns {FileInventory}
23
38
  */
24
39
  export function computeRequiredFiles(loaded: import("./integrations.mjs").LoadedIntegration): FileInventory;
25
- /**
26
- * @typedef {object} ContributionIdentities
27
- * @property {{slug: string, exportName: string}[]} themes
28
- * @property {string[]} components
29
- * @property {{id: string, type: string, name: string, replaces?: string}[]} templates
30
- * @property {{version: string, id: string}[]} codemods
31
- * @property {string[]} docs
32
- * @property {string[]} agentDocsAppend
33
- */
34
- /**
35
- * The resolved fields needed to discover contribution identities.
36
- * @typedef {object} IdentitySource
37
- * @property {string} name
38
- * @property {string} [themes]
39
- * @property {string} [components]
40
- * @property {string} [templates]
41
- * @property {string} [codemods]
42
- * @property {string} [docs]
43
- * @property {{append?: readonly string[]}} [agentDocs]
44
- */
45
40
  /**
46
41
  * Run the same discovery functions a consumer uses to collect every
47
42
  * contribution identity from a loaded integration.
@@ -137,6 +137,29 @@ const ROOT_KINDS = /** @type {const} */ ([
137
137
  'docs',
138
138
  ]);
139
139
 
140
+ /**
141
+ * The contribution files readers read under each declared root that is a
142
+ * readable folder, package-relative, without importing anything. A folder
143
+ * inside a root that cannot be listed is skipped.
144
+ * @param {{components?: string, templates?: string, codemods?: string, docs?: string, themes?: string}} loaded
145
+ * @param {string} pkgDir
146
+ * @returns {string[]}
147
+ */
148
+ export function contributionFiles(loaded, pkgDir) {
149
+ /** @type {Set<string>} */
150
+ const files = new Set();
151
+ for (const kind of ROOT_KINDS) {
152
+ const root = loaded[kind];
153
+ if (!root || !isFolder(root)) continue;
154
+ try {
155
+ for (const file of ENUMERATORS[kind](root, pkgDir)) files.add(file);
156
+ } catch {
157
+ // An unreadable folder inside the root.
158
+ }
159
+ }
160
+ return [...files].sort();
161
+ }
162
+
140
163
  // ── Public: static file inventory ────────────────────────────────
141
164
 
142
165
  /**
@@ -207,6 +230,19 @@ export function computeRequiredFiles(loaded) {
207
230
  * @property {{append?: readonly string[]}} [agentDocs]
208
231
  */
209
232
 
233
+ /**
234
+ * Whether `dir` is a folder to list. A declared root that is a file is
235
+ * reported by the root check; discovery finds nothing in it.
236
+ * @param {string} dir
237
+ */
238
+ function isFolder(dir) {
239
+ try {
240
+ return fs.statSync(dir).isDirectory();
241
+ } catch {
242
+ return false;
243
+ }
244
+ }
245
+
210
246
  /**
211
247
  * Run the same discovery functions a consumer uses to collect every
212
248
  * contribution identity from a loaded integration.
@@ -229,7 +265,7 @@ export async function collectIdentities(loaded) {
229
265
  /** @type {Array<{kind: string, message: string}>} */
230
266
  const errors = [];
231
267
 
232
- if (loaded.themes && fs.existsSync(loaded.themes)) {
268
+ if (loaded.themes && isFolder(loaded.themes)) {
233
269
  try {
234
270
  const themes = await discoverIntegrationThemes(
235
271
  /** @type {import('./integrations.mjs').LoadedIntegration} */ (loaded),
@@ -245,7 +281,7 @@ export async function collectIdentities(loaded) {
245
281
  }
246
282
  }
247
283
 
248
- if (loaded.components && fs.existsSync(loaded.components)) {
284
+ if (loaded.components && isFolder(loaded.components)) {
249
285
  try {
250
286
  const records = discoverIntegrationComponents(loaded) ?? [];
251
287
  // A family doc backs several records: load it, and report it, once.
@@ -275,7 +311,7 @@ export async function collectIdentities(loaded) {
275
311
  }
276
312
  }
277
313
 
278
- if (loaded.templates && fs.existsSync(loaded.templates)) {
314
+ if (loaded.templates && isFolder(loaded.templates)) {
279
315
  try {
280
316
  const {templates, errors: templateErrors} =
281
317
  await discoverIntegrationTemplatesForOne(loaded);
@@ -298,7 +334,7 @@ export async function collectIdentities(loaded) {
298
334
  }
299
335
  }
300
336
 
301
- if (loaded.codemods && fs.existsSync(loaded.codemods)) {
337
+ if (loaded.codemods && isFolder(loaded.codemods)) {
302
338
  try {
303
339
  const byVersion = await discoverIntegrationCodemods([loaded]);
304
340
  /** @type {{version: string, id: string}[]} */
@@ -317,7 +353,7 @@ export async function collectIdentities(loaded) {
317
353
  }
318
354
  }
319
355
 
320
- if (loaded.docs && fs.existsSync(loaded.docs)) {
356
+ if (loaded.docs && isFolder(loaded.docs)) {
321
357
  try {
322
358
  const {
323
359
  records,
@@ -134,6 +134,8 @@ export function loadIntegrations(specs?: string[], { cwd, fresh, resolveProvider
134
134
  * @property {string} [__agentDocsError] contribution-specific validation
135
135
  * failure; other manifest contributions remain available
136
136
  * @property {string} __spec
137
+ * @property {string} [__declaredProviderId] the manifest's `providerId` as
138
+ * written, kept by validation so it can tell whether the package has one
137
139
  * @property {string} __packageDir
138
140
  * @property {Record<string, unknown>|null} [__packageExports] the owning
139
141
  * package's `exports` map, kept from the package.json this loader already
@@ -210,6 +212,11 @@ export type LoadedIntegration = {
210
212
  */
211
213
  __agentDocsError?: string | undefined;
212
214
  __spec: string;
215
+ /**
216
+ * the manifest's `providerId` as
217
+ * written, kept by validation so it can tell whether the package has one
218
+ */
219
+ __declaredProviderId?: string | undefined;
213
220
  __packageDir: string;
214
221
  /**
215
222
  * the owning
@@ -60,6 +60,8 @@ import {resolveProviders} from './provider-resolution.mjs';
60
60
  * @property {string} [__agentDocsError] contribution-specific validation
61
61
  * failure; other manifest contributions remain available
62
62
  * @property {string} __spec
63
+ * @property {string} [__declaredProviderId] the manifest's `providerId` as
64
+ * written, kept by validation so it can tell whether the package has one
63
65
  * @property {string} __packageDir
64
66
  * @property {Record<string, unknown>|null} [__packageExports] the owning
65
67
  * package's `exports` map, kept from the package.json this loader already
@@ -5,6 +5,21 @@
5
5
  export function issueError(code: string, message: string): Issue;
6
6
  /** @param {string} code @param {string} message @returns {Issue} */
7
7
  export function issueWarning(code: string, message: string): Issue;
8
+ /**
9
+ * A layout finding added after the last minor release: validate lists it, in
10
+ * its `layout` report, but it is never an issue, so nothing counts it and
11
+ * `integration check --strict` does not fail on it. A new failing finding
12
+ * joins only in a minor release (architecture:cli-surface INV35).
13
+ * @param {string} code
14
+ * @param {string} message
15
+ * @returns {Issue}
16
+ */
17
+ export function issueListed(code: string, message: string): Issue;
18
+ /**
19
+ * Whether `issueListed` made this issue.
20
+ * @param {Issue} issue
21
+ */
22
+ export function isListedIssue(issue: Issue): boolean;
8
23
  /**
9
24
  * Why a declared root cannot be read as a folder, or null when it can.
10
25
  * A missing root keeps its own issue; a root that is a file or that the
@@ -21,6 +36,68 @@ export function rootProblem(root: string): {
21
36
  kind: "unreadable";
22
37
  code: string;
23
38
  } | null;
39
+ /**
40
+ * The first folder on the way from the package to `root` (the root itself
41
+ * included) that is a symlink, with where it points, or null.
42
+ * @param {string} root absolute
43
+ * @param {string} packageDir absolute
44
+ * @returns {{path: string, target: string} | null}
45
+ */
46
+ export function symlinkedFolder(root: string, packageDir: string): {
47
+ path: string;
48
+ target: string;
49
+ } | null;
50
+ /**
51
+ * The block component names this check could not judge, shaped like the
52
+ * doc type report so `integration check` counts them as not compared: each
53
+ * name a template gives in `exampleFor` or `componentsUsed` that neither the
54
+ * package nor Core has, when the template reaches components through
55
+ * anything but named imports and re-exports from the package, Core, or
56
+ * helpers read in full (see importedNames), or when Core is not installed to
57
+ * look it up in; its findings are always empty. A name judged unknown is an
58
+ * `unknown_block_component` note, with its fix in the message: validate
59
+ * lists notes beside its issues, and nothing counts them, so `--strict` does
60
+ * not fail on it until the next minor release (architecture:cli-surface
61
+ * INV35).
62
+ * @param {LoadedIntegration} integration
63
+ * @returns {Promise<{report: {status: 'checked', findings: [], unchecked: Array<{file: string, name: string, reason: string}>}, notes: Note[]}>}
64
+ */
65
+ export function blockComponentsCheck(integration: LoadedIntegration): Promise<{
66
+ report: {
67
+ status: "checked";
68
+ findings: [];
69
+ unchecked: Array<{
70
+ file: string;
71
+ name: string;
72
+ reason: string;
73
+ }>;
74
+ };
75
+ notes: Note[];
76
+ }>;
77
+ /**
78
+ * The component doc names the check could not judge, shaped like the doc type
79
+ * report so `integration check` counts them as not compared: each doc whose
80
+ * `name` differs from the name it is listed under and whose source's exports
81
+ * cannot all be read without running it; its findings are always empty. A
82
+ * name the module its printed import names provably lacks is a
83
+ * `doc_name_mismatch` note, with its fix in the message: validate lists
84
+ * notes beside its issues, and nothing counts them, so `--strict` does not
85
+ * fail on it until the next minor release (architecture:cli-surface INV35).
86
+ * @param {LoadedIntegration} integration
87
+ * @returns {Promise<{report: {status: 'checked', findings: [], unchecked: Array<{file: string, name: string, reason: string}>}, notes: Note[]}>}
88
+ */
89
+ export function componentDocNamesCheck(integration: LoadedIntegration): Promise<{
90
+ report: {
91
+ status: "checked";
92
+ findings: [];
93
+ unchecked: Array<{
94
+ file: string;
95
+ name: string;
96
+ reason: string;
97
+ }>;
98
+ };
99
+ notes: Note[];
100
+ }>;
24
101
  /**
25
102
  * Validate an already-LOADED integration (as produced by `loadIntegrations` —
26
103
  * absolute contribution roots plus identity) and return its issues. This is the
@@ -32,6 +109,17 @@ export function rootProblem(root: string): {
32
109
  * @returns {Promise<Issue[]>}
33
110
  */
34
111
  export function validateLoadedIntegration(loaded: LoadedIntegration): Promise<Issue[]>;
112
+ /**
113
+ * Every contribution check, split: `issues` as validateLoadedIntegration
114
+ * returns them, and `listed`, the layout findings validate lists in its
115
+ * `layout` report without counting them.
116
+ * @param {LoadedIntegration} loaded
117
+ * @returns {Promise<{issues: Issue[], listed: Issue[]}>}
118
+ */
119
+ export function validateLoadedIntegrationListed(loaded: LoadedIntegration): Promise<{
120
+ issues: Issue[];
121
+ listed: Issue[];
122
+ }>;
35
123
  /**
36
124
  * @typedef {import('./issue').AstryxIntegrationIssue} Issue
37
125
  * @typedef {import('./integrations.mjs').LoadedIntegration} LoadedIntegration
@@ -42,5 +130,13 @@ export const INVALID_AGENT_DOCS: "invalid_agent_docs";
42
130
  export const INVALID_CLI_COMMAND: "invalid_cli_command";
43
131
  /** Stable issue code for a package whose provider ID is already claimed. */
44
132
  export const DUPLICATE_PROVIDER: "duplicate_provider";
133
+ /**
134
+ * A note: information beside validate's issues that fails nothing, with the
135
+ * fix in its message.
136
+ */
137
+ export type Note = {
138
+ code: string;
139
+ message: string;
140
+ };
45
141
  export type Issue = import("./issue").AstryxIntegrationIssue;
46
142
  export type LoadedIntegration = import("./integrations.mjs").LoadedIntegration;