@astryxdesign/cli 0.7.3-canary.cb489ff → 0.7.3-canary.cde6233

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 (179) hide show
  1. package/README.md +68 -68
  2. package/api/build/blocks/blocks.d.mts +6 -4
  3. package/api/build/blocks/blocks.mjs +103 -20
  4. package/api/build/blocks/blocks.test.mjs +126 -13
  5. package/api/build/blocks/blocks.weights.json +1 -1
  6. package/api/build/kit/answer.d.mts +5 -4
  7. package/api/build/kit/answer.mjs +114 -12
  8. package/api/build/kit/answer.test.mjs +73 -3
  9. package/api/build/kit/signals.d.mts +8 -0
  10. package/api/build/kit/signals.mjs +10 -0
  11. package/api/build/tree.test.mjs +19 -11
  12. package/api/component/component-replacement.test.mjs +1 -0
  13. package/api/component/component.mjs +17 -3
  14. package/api/component/component.test.mjs +15 -0
  15. package/api/component/doc-links.test.mjs +2 -2
  16. package/api/docs/_adapter.d.mts +2 -2
  17. package/api/docs/_adapter.mjs +61 -18
  18. package/api/docs/docs-homes.test.mjs +127 -0
  19. package/api/docs/docs.doc.mjs +3 -3
  20. package/api/docs/docs.test.mjs +28 -18
  21. package/api/docs/integration-tree.test.mjs +20 -20
  22. package/api/docs/integrationDocs.test.mjs +1 -1
  23. package/api/docs/namespace-section.test.mjs +6 -6
  24. package/api/docs/reference-blocks.test.mjs +2 -2
  25. package/api/doctor/doctor.mjs +16 -12
  26. package/api/doctor/doctor.test.mjs +9 -9
  27. package/api/hook/hook.mjs +1 -1
  28. package/api/integration/_adapter.d.mts +8 -0
  29. package/api/integration/_adapter.mjs +21 -1
  30. package/api/integration/authoring-checks.test.mjs +220 -0
  31. package/api/integration/validate-integration-fixes.test.mjs +6 -5
  32. package/api/integration/validate-integration-gaps.test.mjs +9 -1
  33. package/api/integration/validate-integration.d.mts +4 -0
  34. package/api/integration/validate-integration.mjs +72 -7
  35. package/api/integration/validate-integration.type.d.mts +36 -4
  36. package/api/integration/validate-integration.type.mjs +27 -5
  37. package/api/integration/validateIntegration.doc.mjs +1 -1
  38. package/api/search/_adapter.d.mts +16 -0
  39. package/api/search/_adapter.mjs +39 -0
  40. package/api/search/_adapter.test.mjs +173 -0
  41. package/api/search/_candidate-score.mjs +1 -1
  42. package/api/search/_entries.d.mts +11 -0
  43. package/api/search/_entries.mjs +77 -3
  44. package/api/search/_entries.test.mjs +48 -0
  45. package/api/search/_gather-docs.mjs +3 -3
  46. package/api/search/search.doc.mjs +1 -1
  47. package/api/search/search.mjs +6 -2
  48. package/api/search/search.test.mjs +14 -14
  49. package/assets/docs/author-a-theme.doc.mjs +2 -2
  50. package/assets/docs/tree/add-a-component.doc.mjs +1 -1
  51. package/assets/docs/tree/add-a-theme.doc.mjs +1 -1
  52. package/assets/docs/tree/add-a-topic.doc.mjs +2 -2
  53. package/assets/docs/tree/agent-guidance.doc.mjs +1 -1
  54. package/assets/docs/tree/{integrations.doc.mjs → authoring.doc.mjs} +15 -6
  55. package/assets/docs/tree/block-template.doc.mjs +1 -1
  56. package/assets/docs/tree/build-the-template.doc.mjs +1 -1
  57. package/assets/docs/tree/building-blocks.doc.mjs +2 -2
  58. package/assets/docs/tree/check-the-props.doc.mjs +1 -1
  59. package/assets/docs/tree/check-your-docs.doc.mjs +2 -2
  60. package/assets/docs/tree/checks.doc.mjs +3 -3
  61. package/assets/docs/tree/cli-command.doc.mjs +1 -1
  62. package/assets/docs/tree/cli.doc.mjs +1 -1
  63. package/assets/docs/tree/codemods.doc.mjs +1 -1
  64. package/assets/docs/tree/component-family.doc.mjs +1 -1
  65. package/assets/docs/tree/component-imports.doc.mjs +1 -1
  66. package/assets/docs/tree/components.doc.mjs +1 -1
  67. package/assets/docs/tree/configuration.doc.mjs +1 -1
  68. package/assets/docs/tree/debug-and-gap-reports.doc.mjs +1 -1
  69. package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
  70. package/assets/docs/tree/describe-the-component.doc.mjs +1 -1
  71. package/assets/docs/tree/docs.doc.mjs +1 -1
  72. package/assets/docs/tree/document-the-template.doc.mjs +1 -1
  73. package/assets/docs/tree/document-the-theme.doc.mjs +1 -1
  74. package/assets/docs/tree/export-template-assets.doc.mjs +1 -1
  75. package/assets/docs/tree/extend-or-replace.doc.mjs +1 -1
  76. package/assets/docs/{authoring.doc.mjs → tree/field-reference.doc.mjs} +4 -3
  77. package/assets/docs/tree/fonts-and-assets.doc.mjs +1 -1
  78. package/assets/docs/tree/generate-a-palette.doc.mjs +1 -1
  79. package/assets/docs/tree/global-integrations.doc.mjs +2 -2
  80. package/assets/docs/tree/grade-template-with-agent.doc.mjs +4 -4
  81. package/assets/docs/tree/help.doc.mjs +2 -2
  82. package/assets/docs/tree/links.doc.mjs +1 -1
  83. package/assets/docs/tree/package-and-test.doc.mjs +1 -1
  84. package/assets/docs/tree/page-template.doc.mjs +1 -1
  85. package/assets/docs/tree/publishing.doc.mjs +1 -1
  86. package/assets/docs/tree/quick-start.doc.mjs +1 -1
  87. package/assets/docs/tree/replace-a-core-component.doc.mjs +1 -1
  88. package/assets/docs/tree/replace-a-core-template.doc.mjs +1 -1
  89. package/assets/docs/tree/sections-and-placement.doc.mjs +1 -1
  90. package/assets/docs/tree/see-it-in-an-app.doc.mjs +1 -1
  91. package/assets/docs/tree/ship.doc.mjs +2 -2
  92. package/assets/docs/tree/short-and-findable.doc.mjs +1 -1
  93. package/assets/docs/tree/single-component.doc.mjs +1 -1
  94. package/assets/docs/tree/start-a-template.doc.mjs +1 -1
  95. package/assets/docs/tree/subcomponent.doc.mjs +1 -1
  96. package/assets/docs/tree/template-assets.doc.mjs +1 -1
  97. package/assets/docs/tree/template-doc-overview.doc.mjs +2 -2
  98. package/assets/docs/tree/template-fonts.doc.mjs +1 -1
  99. package/assets/docs/tree/template-grading-rubric.doc.mjs +1 -1
  100. package/assets/docs/tree/template-icons.doc.mjs +1 -1
  101. package/assets/docs/tree/template-images-media.doc.mjs +1 -1
  102. package/assets/docs/tree/template-styles.doc.mjs +1 -1
  103. package/assets/docs/tree/templates.doc.mjs +1 -1
  104. package/assets/docs/tree/test-in-an-app.doc.mjs +1 -1
  105. package/assets/docs/tree/test-template-in-app.doc.mjs +1 -1
  106. package/assets/docs/tree/themes.doc.mjs +1 -1
  107. package/assets/docs/tree/troubleshooting.doc.mjs +1 -1
  108. package/assets/docs/tree/upgrading.doc.mjs +1 -1
  109. package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +1 -1
  110. package/assets/docs/tree/verify-packed-template.doc.mjs +1 -1
  111. package/assets/docs/tree/versioning.doc.mjs +5 -1
  112. package/assets/docs/tree/write-good-templates.doc.mjs +1 -1
  113. package/assets/docs/tree/write-the-template-file.doc.mjs +1 -1
  114. package/assets/docs/use-integrations.doc.mjs +120 -0
  115. package/assets/templates/themes/butter/butterTheme.ts +4 -2
  116. package/assets/templates/themes/stone/stoneTheme.ts +4 -2
  117. package/assets/templates/themes/y2k/y2kTheme.ts +4 -2
  118. package/authoring/doctypes/schema/schema.doc.mjs +1 -1
  119. package/authoring/integration/integration.doc.mjs +1 -1
  120. package/authoring/integration/type.ts +1 -1
  121. package/clients/cli/command-result-coverage.test.mjs +6 -5
  122. package/clients/cli/commands/build-theme.color-scheme.test.mjs +1 -1
  123. package/clients/cli/commands/{component/index.mjs → component.mjs} +37 -37
  124. package/clients/cli/commands/component.test.mjs +6 -6
  125. package/clients/cli/commands/docs.doc.mjs +2 -2
  126. package/clients/cli/commands/docs.mjs +1 -1
  127. package/clients/cli/commands/docs.test.mjs +14 -14
  128. package/clients/cli/commands/doctor-integration.test.mjs +49 -1
  129. package/clients/cli/commands/doctor.mjs +10 -0
  130. package/clients/cli/commands/{hook/index.mjs → hook.mjs} +22 -22
  131. package/clients/cli/commands/import-hint-correctness.test.mjs +1 -1
  132. package/clients/cli/commands/integration-check.test.mjs +48 -0
  133. package/clients/cli/commands/integration.doc.mjs +1 -1
  134. package/clients/cli/commands/manifest.doc.mjs +1 -1
  135. package/clients/cli/commands/manifest.mjs +67 -0
  136. package/clients/cli/commands/postinstall.doc.mjs +23 -0
  137. package/clients/cli/commands/postinstall.mjs +31 -0
  138. package/clients/cli/commands/{build-theme.mjs → theme.mjs} +1 -1
  139. package/clients/cli/index.mjs +10 -85
  140. package/clients/cli/lib/component-format.mjs +1 -1
  141. package/clients/cli/lib/define-command.mjs +12 -7
  142. package/clients/cli/lib/exit-codes.test.mjs +5 -0
  143. package/clients/cli/lib/manifest.test.mjs +12 -0
  144. package/clients/cli/lib/welcome-box.mjs +50 -0
  145. package/foundation/agent-docs/agent-docs.mjs +2 -1
  146. package/foundation/agent-docs/agent-docs.test.mjs +5 -4
  147. package/foundation/discovery/authoring-self-docs.d.mts +7 -0
  148. package/foundation/discovery/authoring-self-docs.mjs +16 -4
  149. package/foundation/discovery/authoring-self-docs.test.mjs +15 -3
  150. package/foundation/discovery/authoring-surface.d.mts +1 -1
  151. package/foundation/discovery/authoring-surface.mjs +2 -2
  152. package/foundation/discovery/authoring-surface.test.mjs +1 -1
  153. package/foundation/discovery/cli-self-docs.d.mts +2 -1
  154. package/foundation/discovery/cli-self-docs.mjs +4 -3
  155. package/foundation/discovery/cli-self-docs.test.mjs +2 -2
  156. package/foundation/discovery/runner-allowlist.d.mts +2 -4
  157. package/foundation/discovery/runner-allowlist.mjs +2 -4
  158. package/foundation/discovery/runner-commands.d.mts +77 -0
  159. package/foundation/discovery/runner-commands.mjs +294 -0
  160. package/foundation/discovery/runner-commands.test.mjs +128 -0
  161. package/foundation/discovery/stray-pointers.test.mjs +1 -1
  162. package/foundation/doc-compiler/doc-loads.test.mjs +25 -9
  163. package/foundation/doc-compiler/split-topic-keywords.test.mjs +3 -2
  164. package/foundation/doc-compiler/tree.d.mts +32 -6
  165. package/foundation/doc-compiler/tree.mjs +77 -43
  166. package/foundation/doc-compiler/tree.test.mjs +7 -7
  167. package/foundation/fs/read-record.d.mts +18 -0
  168. package/foundation/fs/read-record.mjs +131 -0
  169. package/foundation/fs/read-record.test.mjs +77 -0
  170. package/foundation/integrations/cli-peer-version.d.mts +36 -0
  171. package/foundation/integrations/cli-peer-version.mjs +132 -0
  172. package/foundation/integrations/cli-peer-version.test.mjs +354 -0
  173. package/foundation/integrations/exports-subpaths.d.mts +57 -0
  174. package/foundation/integrations/exports-subpaths.mjs +113 -0
  175. package/foundation/integrations/public-imports.d.mts +81 -0
  176. package/foundation/integrations/public-imports.mjs +976 -0
  177. package/foundation/integrations/public-imports.test.mjs +868 -0
  178. package/foundation/response/response-types.doc.mjs +1 -1
  179. package/package.json +9 -9
@@ -1,27 +1,36 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @file astryx docs cli/integrations — build an integration package. */
3
+ /**
4
+ * @file `astryx docs authoring`: everything for integration authors. The
5
+ * guides build, ship, and fix an integration package; the field reference
6
+ * covers every file it holds.
7
+ */
4
8
 
5
9
  /** @type {import('@astryxdesign/cli/authoring').NamespaceDoc} */
6
10
  export const docs = {
7
11
  type: 'namespace',
8
- name: 'integrations',
9
- placement: {parent: 'namespace:cli', slot: 'guides', order: 10},
10
- title: 'Build an integration',
12
+ name: 'authoring',
13
+ title: 'Authoring',
11
14
  summary:
12
- 'Build an npm package that adds components, templates, themes, docs, and codemods to Astryx apps.',
15
+ 'Build an npm package that adds components, templates, themes, docs, and codemods to Astryx apps, and look up every field of every file it holds.',
13
16
  keywords: [
17
+ 'authoring',
14
18
  'integration',
15
19
  'integration package',
16
20
  'make an integration',
17
21
  'publish an integration',
18
22
  'integration authoring',
23
+ 'authoring reference',
19
24
  ],
20
25
  slots: {
21
26
  guides: {
22
27
  title: 'Build an integration',
23
28
  accepts: {kinds: ['generic', 'namespace']},
24
29
  },
30
+ reference: {
31
+ title: 'Reference',
32
+ accepts: {kinds: ['generic']},
33
+ },
25
34
  },
26
35
  blocks: [
27
36
  {
@@ -42,7 +51,7 @@ export const docs = {
42
51
  },
43
52
  {
44
53
  type: 'prose',
45
- text: 'Every field of every file you write for an integration is in {@link generic:authoring}.',
54
+ text: 'Every field of every file you write for an integration is in {@link generic:field-reference}.',
46
55
  },
47
56
  {
48
57
  type: 'prose',
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/document-the-template/block-template`:
4
+ * @file `astryx docs authoring/building-blocks/templates/document-the-template/block-template`:
5
5
  * the block-only fields: component relationships and the preview shape.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/build-the-template`:
4
+ * @file `astryx docs authoring/building-blocks/templates/build-the-template`:
5
5
  * author portable template source and every asset that source needs.
6
6
  */
7
7
 
@@ -1,12 +1,12 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @file astryx docs cli/integrations/building-blocks — the kinds you can add. */
3
+ /** @file astryx docs authoring/building-blocks — the kinds you can add. */
4
4
 
5
5
  /** @type {import('@astryxdesign/cli/authoring').NamespaceDoc} */
6
6
  export const docs = {
7
7
  type: 'namespace',
8
8
  name: 'building-blocks',
9
- placement: {parent: 'namespace:integrations', slot: 'guides', order: 20},
9
+ placement: {parent: 'namespace:authoring', slot: 'guides', order: 20},
10
10
  title: 'Building Blocks',
11
11
  summary:
12
12
  'Add components, templates, themes, docs, and codemods, and configure how it behaves.',
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/components/describe-the-component/check-the-props`:
4
+ * @file `astryx docs authoring/building-blocks/components/describe-the-component/check-the-props`:
5
5
  * compare each component doc's props table with the component's TypeScript
6
6
  * props, read each finding, and fix the doc or the code.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/docs/check-your-docs`:
4
+ * @file `astryx docs authoring/building-blocks/docs/check-your-docs`:
5
5
  * what each check proves about an integration's docs: the docs check, each
6
6
  * doc's fields, the read size, and the CLI peer.
7
7
  */
@@ -133,7 +133,7 @@ fix: Remove \`summary\`: SingleComponentDoc has no field \`summary\`.`,
133
133
  "The folder decides the type: `ComponentDoc` in your components root, `IntegrationTemplateDoc` in your templates root, `ThemeDoc` in your themes root, and in your docs root the type the doc's `type` names. Keep the `@type` comment above each doc's export too, so your editor shows the same problems as you type.",
134
134
  'Every finding is a warning, so the exit code stays 0. With `--json`, they are in `data.docTypes.findings`.',
135
135
  'It uses the `typescript` your package installs. Where `typescript` is missing or has no JavaScript compiler API, as TypeScript 7 does, it uses `@typescript/typescript6`, the TypeScript 6 API package, if your package installs it. Without either, it prints `[skip] Docs not type-checked` and the reason.',
136
- 'Every field of every doc type is in {@link generic:authoring}.',
136
+ 'Every field of every doc type is in {@link generic:field-reference}.',
137
137
  ],
138
138
  },
139
139
  ],
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/ship/checks`: what each package check
4
+ * @file `astryx docs authoring/ship/checks`: what each package check
5
5
  * proves, what fails and what only warns, and one command to run them all.
6
6
  */
7
7
 
@@ -30,9 +30,9 @@ export const docs = {
30
30
  rows: [
31
31
  [
32
32
  '`astryx doctor integration validate`',
33
- 'The manifest loads, each root holds contributions the CLI can read, and each doc matches its authoring type',
33
+ 'The manifest loads, each root holds contributions the CLI can read, and each doc matches its authoring type. Notes, which fail nothing, list a malformed `cliCommand` and each command a topic writes with a package runner (`runner_command`)',
34
34
  'A declared root is missing (`missing_root`), a contribution does not load (`invalid_doc`, `invalid_component`, `invalid_theme`), or two templates in the package replace one Core id (`ambiguous_template_replacement`)',
35
- "The manifest has a key this CLI does not know (`unknown_manifest_key`), or a doc field does not match the doc's authoring type: a field the type does not have, a missing required field, or a value outside the field's type. It also warns on what no reader can serve: a prop listed twice (`duplicate_prop`), a `propDescriptions` key that names no documented prop (`unknown_translated_prop`), a section with no content (`empty_section`), two sections of a topic with one key (`duplicate_section_key`), or a `.doc.zh.mjs` or `.doc.dense.mjs` overlay beside no topic file (`orphan_doc_overlay`). It checks docs with your installed `typescript`, or, where that is missing or has no JavaScript compiler API (TypeScript 7), with an installed `@typescript/typescript6`; without either, it prints `[skip] Docs not type-checked`. With no `astryx.integration.mjs` it prints a hint and exits 0",
35
+ "The manifest has a key this CLI does not know (`unknown_manifest_key`), or a doc field does not match the doc's authoring type: a field the type does not have, a missing required field, or a value outside the field's type. It also warns on what no reader can serve: a prop listed twice (`duplicate_prop`), a `propDescriptions` key that names no documented prop (`unknown_translated_prop`), a section with no content (`empty_section`), two sections of a topic with one key (`duplicate_section_key`), or a `.doc.zh.mjs` or `.doc.dense.mjs` overlay beside no topic file (`orphan_doc_overlay`). Since 0.7.3 it also lists, from source and without failing, what the package tells apps to import that they cannot: a component's import (the doc's `import`, or the one the CLI derives) or a template's public import whose subpath package.json `exports` does not declare (`component_import_not_exported`, `template_import_not_exported`) or that names another package (`component_import_other_package`); an example that imports an undeclared subpath (`example_import_not_exported`); a template that imports a path outside the templates root (`template_import_outside_root`) or a path its package or Core does not export (`template_private_import`). Each is a note, printed with its fix, that fails `--strict` from the next minor; an import it cannot judge, such as a deep path into a `dist/` not built yet, is listed under `publicImports` as not checked. It checks docs with your installed `typescript`, or, where that is missing or has no JavaScript compiler API (TypeScript 7), with an installed `@typescript/typescript6`; without either, it prints `[skip] Docs not type-checked`. With no `astryx.integration.mjs` it prints a hint and exits 0",
36
36
  ],
37
37
  [
38
38
  '`astryx doctor integration components`',
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/configuration/cli-command`:
4
+ * @file `astryx docs authoring/building-blocks/configuration/cli-command`:
5
5
  * name the command an integration's users run the CLI with, so every command
6
6
  * the CLI prints in their apps starts with it.
7
7
  */
@@ -14,7 +14,7 @@ export const docs = {
14
14
  name: 'cli',
15
15
  title: 'Astryx CLI',
16
16
  summary:
17
- 'Commands, programmatic APIs, integration authoring, and output contracts.',
17
+ 'Commands, programmatic APIs, and output contracts. Building an integration is under {@link namespace:authoring}.',
18
18
  keywords: ['cli', 'commands', 'api', 'reference'],
19
19
  slots: {
20
20
  guides: {title: 'Guides', accepts: {kinds: ['generic', 'namespace']}},
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/codemods`: add codemods to an
4
+ * @file `astryx docs authoring/building-blocks/codemods`: add codemods to an
5
5
  * integration package, and know which of them `astryx upgrade` runs in an app.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/components/describe-the-component/component-family`:
4
+ * @file `astryx docs authoring/building-blocks/components/describe-the-component/component-family`:
5
5
  * author one ComponentDoc for several public exports in a component family.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/components/component-imports`: make an
4
+ * @file `astryx docs authoring/building-blocks/components/component-imports`: make an
5
5
  * integration component's documented import resolve from the packed package.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/components`: guides for adding and
4
+ * @file `astryx docs authoring/building-blocks/components`: guides for adding and
5
5
  * documenting components in an integration package.
6
6
  */
7
7
 
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @file astryx docs cli/integrations/building-blocks/configuration — set how your integration behaves. */
3
+ /** @file astryx docs authoring/building-blocks/configuration — set how your integration behaves. */
4
4
 
5
5
  /** @type {import('@astryxdesign/cli/authoring').NamespaceDoc} */
6
6
  export const docs = {
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/configuration/debug-and-gap-reports`: receive a record
4
+ * @file `astryx docs authoring/building-blocks/configuration/debug-and-gap-reports`: receive a record
5
5
  * of each CLI run with `debug`, and handle `astryx gap-report` with
6
6
  * `gapReport`, both named exports of the integration manifest.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/themes/define-the-theme`:
4
+ * @file `astryx docs authoring/building-blocks/themes/define-the-theme`:
5
5
  * map the palette to tokens, keep light-dark() to colors, and avoid Core internals.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/components/describe-the-component`:
4
+ * @file `astryx docs authoring/building-blocks/components/describe-the-component`:
5
5
  * choose and maintain the ComponentDoc shape that matches a component's public
6
6
  * source.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/docs`: the guides to
4
+ * @file `astryx docs authoring/building-blocks/docs`: the guides to
5
5
  * writing docs for an integration package, which join the same docs tree as
6
6
  * the CLI's own (spec:AST-046, spec:AST-047).
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/document-the-template`:
4
+ * @file `astryx docs authoring/building-blocks/templates/document-the-template`:
5
5
  * document page and block templates for discovery and correct reuse.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/themes/document-the-theme`:
4
+ * @file `astryx docs authoring/building-blocks/themes/document-the-theme`:
5
5
  * document a theme by extending the core theme topic, not in agent guidance.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/build-the-template/package-and-test/export-template-assets`:
4
+ * @file `astryx docs authoring/building-blocks/templates/build-the-template/package-and-test/export-template-assets`:
5
5
  * expose and include everything a copied template imports, and declare the
6
6
  * packages it needs.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/docs/extend-or-replace`:
4
+ * @file `astryx docs authoring/building-blocks/docs/extend-or-replace`:
5
5
  * take over an existing topic with `replaces`, merge sections into one with
6
6
  * `extends`, and check overlaps with Core topics.
7
7
  */
@@ -1,14 +1,15 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs authoring`: every authoring schema, one section each.
4
+ * @file `astryx docs authoring/field-reference`: every authoring schema, one
5
+ * section each. `astryx docs authoring <name>` reads one of them.
5
6
  *
6
7
  * Built from the self-docs colocated under packages/cli/authoring, so it cannot
7
8
  * drift from the schemas it describes. `astryx doctor` names a self-doc this
8
- * topic cannot reach.
9
+ * guide cannot reach.
9
10
  */
10
11
 
11
- import {buildAuthoringTopic} from '../../foundation/discovery/authoring-self-docs.mjs';
12
+ import {buildAuthoringTopic} from '../../../foundation/discovery/authoring-self-docs.mjs';
12
13
 
13
14
  /** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */
14
15
  export const docs = await buildAuthoringTopic();
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/themes/fonts-and-assets`:
4
+ * @file `astryx docs authoring/building-blocks/themes/fonts-and-assets`:
5
5
  * ship a theme's optional font loader beside its built module and CSS.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/themes/generate-a-palette`:
4
+ * @file `astryx docs authoring/building-blocks/themes/generate-a-palette`:
5
5
  * turn a few seed colors into a full light and dark color palette.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/global-integrations`: make an
4
+ * @file `astryx docs authoring/global-integrations`: make an
5
5
  * integration work when people install it next to their global Astryx
6
6
  * install; a checklist and the commands to try it (spec AST-081 FR12).
7
7
  */
@@ -11,7 +11,7 @@ export const docs = {
11
11
  type: 'generic',
12
12
  name: 'global-integrations',
13
13
  placement: {
14
- parent: 'namespace:integrations',
14
+ parent: 'namespace:authoring',
15
15
  slot: 'guides',
16
16
  order: 25,
17
17
  },
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/write-good-templates/grade-template-with-agent`:
4
+ * @file `astryx docs authoring/building-blocks/templates/write-good-templates/grade-template-with-agent`:
5
5
  * give an agent the canonical rubric and require a reproducible template grade.
6
6
  */
7
7
 
@@ -36,11 +36,11 @@ export const docs = {
36
36
  code: `Grade integration template <id> from <package> at <revision>.
37
37
 
38
38
  Before scoring:
39
- 1. Read \`astryx docs cli/integrations/building-blocks/templates/write-good-templates --full\`.
40
- 2. Read \`astryx docs cli/integrations/building-blocks/templates/write-good-templates/template-grading-rubric --full\` and every guide it links.
39
+ 1. Read \`astryx docs authoring/building-blocks/templates/write-good-templates --full\`.
40
+ 2. Read \`astryx docs authoring/building-blocks/templates/write-good-templates/template-grading-rubric --full\` and every guide it links.
41
41
  3. Inspect the template source, its matching .doc.mjs file, package.json exports and files, and astryx.integration.mjs.
42
42
  4. Run \`astryx integration verify\` in the package.
43
- 5. Follow \`astryx docs cli/integrations/building-blocks/templates/build-the-template/package-and-test/test-template-in-app --full\`: install the packed package in the clean app, copy the template, build the app, and render the behavior matrix.
43
+ 5. Follow \`astryx docs authoring/building-blocks/templates/build-the-template/package-and-test/test-template-in-app --full\`: install the packed package in the clean app, copy the template, build the app, and render the behavior matrix.
44
44
 
45
45
  Score all seven rubric categories. Cite file and line evidence for every deduction. Do not award points for a state you did not inspect. If browser or build evidence is unavailable, say so and mark the template not publishable.
46
46
 
@@ -1,12 +1,12 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @file astryx docs cli/integrations/help — find a CLI message and its fix. */
3
+ /** @file astryx docs authoring/help — find a CLI message and its fix. */
4
4
 
5
5
  /** @type {import('@astryxdesign/cli/authoring').NamespaceDoc} */
6
6
  export const docs = {
7
7
  type: 'namespace',
8
8
  name: 'help',
9
- placement: {parent: 'namespace:integrations', slot: 'guides', order: 40},
9
+ placement: {parent: 'namespace:authoring', slot: 'guides', order: 40},
10
10
  title: 'Help',
11
11
  summary: 'Find a CLI message and how to fix it.',
12
12
  keywords: ['help', 'troubleshooting', 'error'],
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/docs/links`: link one doc
4
+ * @file `astryx docs authoring/building-blocks/docs/links`: link one doc
5
5
  * to another by identity, link the CLI's docs, and fix a link that names no
6
6
  * doc.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/build-the-template/package-and-test`:
4
+ * @file `astryx docs authoring/building-blocks/templates/build-the-template/package-and-test`:
5
5
  * expose a template from its package and prove the copied result in an app.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/document-the-template/page-template`:
4
+ * @file `astryx docs authoring/building-blocks/templates/document-the-template/page-template`:
5
5
  * the page-only fields that help people find a page.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/ship/publishing`: publish an integration to
4
+ * @file `astryx docs authoring/ship/publishing`: publish an integration to
5
5
  * npm, use release tags, and check the package before and after.
6
6
  */
7
7
 
@@ -5,7 +5,7 @@ export const docs = {
5
5
  type: 'generic',
6
6
  name: 'quick-start',
7
7
  placement: {
8
- parent: 'namespace:integrations',
8
+ parent: 'namespace:authoring',
9
9
  slot: 'guides',
10
10
  order: 10,
11
11
  },
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/components/replace-a-core-component`:
4
+ * @file `astryx docs authoring/building-blocks/components/replace-a-core-component`:
5
5
  * intentionally make an integration component the default for a Core identity.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/document-the-template/replace-a-core-template`:
4
+ * @file `astryx docs authoring/building-blocks/templates/document-the-template/replace-a-core-template`:
5
5
  * deliberately replace one Core template through template metadata.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/docs/sections-and-placement`:
4
+ * @file `astryx docs authoring/building-blocks/docs/sections-and-placement`:
5
5
  * give an integration package its own section in the docs tree, place guides
6
6
  * in it, and fix a placement that fails.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/components/see-it-in-an-app`: inspect an
4
+ * @file `astryx docs authoring/building-blocks/components/see-it-in-an-app`: inspect an
5
5
  * integration component from an app that installs the package.
6
6
  */
7
7
 
@@ -1,12 +1,12 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @file astryx docs cli/integrations/ship — test, publish, and upgrade. */
3
+ /** @file astryx docs authoring/ship — test, publish, and upgrade. */
4
4
 
5
5
  /** @type {import('@astryxdesign/cli/authoring').NamespaceDoc} */
6
6
  export const docs = {
7
7
  type: 'namespace',
8
8
  name: 'ship',
9
- placement: {parent: 'namespace:integrations', slot: 'guides', order: 30},
9
+ placement: {parent: 'namespace:authoring', slot: 'guides', order: 30},
10
10
  title: 'Ship',
11
11
  summary: 'Test, publish, and upgrade your package.',
12
12
  keywords: ['ship', 'publish', 'release', 'upgrade'],
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/docs/short-and-findable`:
4
+ * @file `astryx docs authoring/building-blocks/docs/short-and-findable`:
5
5
  * keep each read short, lead each section with its summary, and write docs
6
6
  * that search finds.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/components/describe-the-component/single-component`:
4
+ * @file `astryx docs authoring/building-blocks/components/describe-the-component/single-component`:
5
5
  * write and maintain the default ComponentDoc for one public component.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/start-a-template`:
4
+ * @file `astryx docs authoring/building-blocks/templates/start-a-template`:
5
5
  * what a template is, why an integration shares one, whether it is a page or
6
6
  * a block, and how to add one.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/components/describe-the-component/subcomponent`:
4
+ * @file `astryx docs authoring/building-blocks/components/describe-the-component/subcomponent`:
5
5
  * give one member of a component family its own ComponentDoc.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/build-the-template/template-assets`:
4
+ * @file `astryx docs authoring/building-blocks/templates/build-the-template/template-assets`:
5
5
  * make every style, font, icon, and media dependency survive a template copy.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/document-the-template/template-doc-overview`:
4
+ * @file `astryx docs authoring/building-blocks/templates/document-the-template/template-doc-overview`:
5
5
  * the source and doc file pair, the fields every template doc shares, and how
6
6
  * to check what Astryx lists.
7
7
  */
@@ -67,7 +67,7 @@ export const docs = {
67
67
  'Set `type` to the kind you chose in {@link generic:start-a-template}. It decides which other fields the doc accepts.',
68
68
  'The file name sets the template id ({@link generic:start-a-template}). Labels live in the doc: the terminal list prints `name`, and JSON listings print `displayName`. Changing either never changes the id.',
69
69
  'Write the description for someone choosing between templates. The Doc metadata category in {@link generic:template-grading-rubric} defines what a complete description covers.',
70
- "Name the ideas the template serves in `keywords`: the domains, tasks, and other names a builder might use for it, in lowercase, such as `['monitoring', 'uptime', 'on-call']` for a service-health dashboard. How search and build use them is in {@link generic:authoring}, so the description can stay about the layout.",
70
+ "Name the ideas the template serves in `keywords`: the domains, tasks, and other names a builder might use for it, in lowercase, such as `['monitoring', 'uptime', 'on-call']` for a service-health dashboard. How search and build use them is in {@link generic:field-reference}, so the description can stay about the layout.",
71
71
  'Add `isReady: false` as soon as you generate the doc, because a doc without `isReady` is listed as ready. Keep it until the template passes {@link generic:test-template-in-app} and the quality review.',
72
72
  ],
73
73
  },
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/build-the-template/template-assets/template-fonts`:
4
+ * @file `astryx docs authoring/building-blocks/templates/build-the-template/template-assets/template-fonts`:
5
5
  * use the app typeface by default, and ship every font file a template needs
6
6
  * when it must bring its own.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/templates/template-grading-rubric`:
4
+ * @file `astryx docs authoring/templates/template-grading-rubric`:
5
5
  * complete scoring rules for page and block template quality.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/build-the-template/template-assets/template-icons`:
4
+ * @file `astryx docs authoring/building-blocks/templates/build-the-template/template-assets/template-icons`:
5
5
  * render template icons through Astryx and ship custom product icons from the
6
6
  * package.
7
7
  */
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
3
  /**
4
- * @file `astryx docs cli/integrations/building-blocks/templates/build-the-template/template-assets/template-images-media`:
4
+ * @file `astryx docs authoring/building-blocks/templates/build-the-template/template-assets/template-images-media`:
5
5
  * keep template images and video working after the copy, or make them clear
6
6
  * placeholders.
7
7
  */