@astryxdesign/cli 0.7.3-canary.cbe384c → 0.7.3-canary.d421aed

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 (230) hide show
  1. package/README.md +68 -68
  2. package/api/build/_adapter.mjs +37 -25
  3. package/api/build/blocks/blocks.d.mts +68 -18
  4. package/api/build/blocks/blocks.mjs +475 -116
  5. package/api/build/blocks/blocks.test.mjs +191 -61
  6. package/api/build/blocks/blocks.weights.json +1 -1
  7. package/api/build/build.type.mjs +1 -1
  8. package/api/build/kit/answer.d.mts +9 -5
  9. package/api/build/kit/answer.mjs +123 -13
  10. package/api/build/kit/answer.test.mjs +73 -3
  11. package/api/build/kit/signals.d.mts +19 -0
  12. package/api/build/kit/signals.mjs +18 -7
  13. package/api/build/tree.mjs +2 -1
  14. package/api/build/tree.test.mjs +37 -29
  15. package/api/component/_adapter.mjs +39 -5
  16. package/api/component/component-replacement.test.mjs +1 -0
  17. package/api/component/component.mjs +17 -3
  18. package/api/component/component.test.mjs +15 -0
  19. package/api/component/doc-links.test.mjs +2 -2
  20. package/api/discover/_adapter.d.mts +1 -2
  21. package/api/discover/_adapter.mjs +6 -8
  22. package/api/discover/discover.mjs +0 -1
  23. package/api/docs/_adapter.d.mts +2 -2
  24. package/api/docs/_adapter.mjs +65 -18
  25. package/api/docs/docs-homes.test.mjs +127 -0
  26. package/api/docs/docs.doc.mjs +3 -3
  27. package/api/docs/docs.test.mjs +28 -18
  28. package/api/docs/integration-tree.test.mjs +20 -20
  29. package/api/docs/integrationDocs.test.mjs +1 -1
  30. package/api/docs/namespace-section.test.mjs +6 -6
  31. package/api/docs/reference-blocks.test.mjs +2 -2
  32. package/api/doctor/_adapter.d.mts +24 -10
  33. package/api/doctor/_adapter.mjs +28 -25
  34. package/api/doctor/doctor.d.mts +7 -4
  35. package/api/doctor/doctor.mjs +68 -26
  36. package/api/doctor/doctor.test.mjs +95 -12
  37. package/api/hook/hook.mjs +1 -1
  38. package/api/integration/_adapter.d.mts +8 -0
  39. package/api/integration/_adapter.mjs +21 -1
  40. package/api/integration/authoring-checks.test.mjs +220 -0
  41. package/api/integration/validate-integration-fixes.test.mjs +6 -5
  42. package/api/integration/validate-integration-gaps.test.mjs +12 -1
  43. package/api/integration/validate-integration.d.mts +6 -1
  44. package/api/integration/validate-integration.mjs +78 -12
  45. package/api/integration/validate-integration.type.d.mts +36 -4
  46. package/api/integration/validate-integration.type.mjs +27 -5
  47. package/api/integration/validateIntegration.doc.mjs +1 -1
  48. package/api/search/_adapter.d.mts +16 -0
  49. package/api/search/_adapter.mjs +39 -0
  50. package/api/search/_adapter.test.mjs +173 -0
  51. package/api/search/_candidate-score.mjs +1 -1
  52. package/api/search/_entries.d.mts +11 -0
  53. package/api/search/_entries.mjs +77 -3
  54. package/api/search/_entries.test.mjs +48 -0
  55. package/api/search/_gather-docs.mjs +3 -3
  56. package/api/search/search.doc.mjs +1 -1
  57. package/api/search/search.mjs +6 -2
  58. package/api/search/search.test.mjs +14 -14
  59. package/api/template/template.mjs +5 -1
  60. package/api/upgrade/_adapter.d.mts +57 -3
  61. package/api/upgrade/_adapter.mjs +149 -27
  62. package/api/upgrade/registry/registry.d.mts +10 -4
  63. package/api/upgrade/registry/registry.mjs +33 -16
  64. package/api/upgrade/registry/registry.test.mjs +85 -0
  65. package/api/upgrade/run/run.d.mts +4 -2
  66. package/api/upgrade/run/run.mjs +13 -2
  67. package/api/upgrade/run/run.test.mjs +417 -3
  68. package/api/upgrade/upgrade.doc.mjs +10 -5
  69. package/api/upgrade/upgrade.mjs +13 -2
  70. package/api/upgrade/upgrade.type.d.mts +5 -3
  71. package/api/upgrade/upgrade.type.mjs +8 -6
  72. package/assets/docs/author-a-theme.doc.mjs +2 -2
  73. package/assets/docs/tree/add-a-component.doc.mjs +1 -1
  74. package/assets/docs/tree/add-a-theme.doc.mjs +1 -1
  75. package/assets/docs/tree/add-a-topic.doc.mjs +2 -2
  76. package/assets/docs/tree/agent-guidance.doc.mjs +1 -1
  77. package/assets/docs/tree/{integrations.doc.mjs → authoring.doc.mjs} +15 -6
  78. package/assets/docs/tree/block-template.doc.mjs +1 -1
  79. package/assets/docs/tree/build-the-template.doc.mjs +1 -1
  80. package/assets/docs/tree/building-blocks.doc.mjs +2 -2
  81. package/assets/docs/tree/check-the-props.doc.mjs +1 -1
  82. package/assets/docs/tree/check-your-docs.doc.mjs +2 -2
  83. package/assets/docs/tree/checks.doc.mjs +3 -3
  84. package/assets/docs/tree/cli-command.doc.mjs +1 -1
  85. package/assets/docs/tree/cli.doc.mjs +1 -1
  86. package/assets/docs/tree/codemods.doc.mjs +1 -1
  87. package/assets/docs/tree/component-family.doc.mjs +1 -1
  88. package/assets/docs/tree/component-imports.doc.mjs +1 -1
  89. package/assets/docs/tree/components.doc.mjs +1 -1
  90. package/assets/docs/tree/configuration.doc.mjs +1 -1
  91. package/assets/docs/tree/debug-and-gap-reports.doc.mjs +1 -1
  92. package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
  93. package/assets/docs/tree/describe-the-component.doc.mjs +1 -1
  94. package/assets/docs/tree/docs.doc.mjs +1 -1
  95. package/assets/docs/tree/document-the-template.doc.mjs +1 -1
  96. package/assets/docs/tree/document-the-theme.doc.mjs +1 -1
  97. package/assets/docs/tree/export-template-assets.doc.mjs +1 -1
  98. package/assets/docs/tree/extend-or-replace.doc.mjs +1 -1
  99. package/assets/docs/{authoring.doc.mjs → tree/field-reference.doc.mjs} +4 -3
  100. package/assets/docs/tree/fonts-and-assets.doc.mjs +1 -1
  101. package/assets/docs/tree/generate-a-palette.doc.mjs +1 -1
  102. package/assets/docs/tree/global-integrations.doc.mjs +2 -2
  103. package/assets/docs/tree/grade-template-with-agent.doc.mjs +4 -4
  104. package/assets/docs/tree/help.doc.mjs +2 -2
  105. package/assets/docs/tree/links.doc.mjs +1 -1
  106. package/assets/docs/tree/package-and-test.doc.mjs +1 -1
  107. package/assets/docs/tree/page-template.doc.mjs +1 -1
  108. package/assets/docs/tree/publishing.doc.mjs +1 -1
  109. package/assets/docs/tree/quick-start.doc.mjs +1 -1
  110. package/assets/docs/tree/replace-a-core-component.doc.mjs +1 -1
  111. package/assets/docs/tree/replace-a-core-template.doc.mjs +1 -1
  112. package/assets/docs/tree/sections-and-placement.doc.mjs +1 -1
  113. package/assets/docs/tree/see-it-in-an-app.doc.mjs +1 -1
  114. package/assets/docs/tree/ship.doc.mjs +2 -2
  115. package/assets/docs/tree/short-and-findable.doc.mjs +1 -1
  116. package/assets/docs/tree/single-component.doc.mjs +1 -1
  117. package/assets/docs/tree/start-a-template.doc.mjs +1 -1
  118. package/assets/docs/tree/subcomponent.doc.mjs +1 -1
  119. package/assets/docs/tree/template-assets.doc.mjs +1 -1
  120. package/assets/docs/tree/template-doc-overview.doc.mjs +2 -2
  121. package/assets/docs/tree/template-fonts.doc.mjs +1 -1
  122. package/assets/docs/tree/template-grading-rubric.doc.mjs +1 -1
  123. package/assets/docs/tree/template-icons.doc.mjs +1 -1
  124. package/assets/docs/tree/template-images-media.doc.mjs +1 -1
  125. package/assets/docs/tree/template-styles.doc.mjs +1 -1
  126. package/assets/docs/tree/templates.doc.mjs +1 -1
  127. package/assets/docs/tree/test-in-an-app.doc.mjs +1 -1
  128. package/assets/docs/tree/test-template-in-app.doc.mjs +1 -1
  129. package/assets/docs/tree/themes.doc.mjs +1 -1
  130. package/assets/docs/tree/troubleshooting.doc.mjs +1 -1
  131. package/assets/docs/tree/upgrading.doc.mjs +1 -1
  132. package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +1 -1
  133. package/assets/docs/tree/verify-packed-template.doc.mjs +1 -1
  134. package/assets/docs/tree/versioning.doc.mjs +5 -1
  135. package/assets/docs/tree/write-good-templates.doc.mjs +1 -1
  136. package/assets/docs/tree/write-the-template-file.doc.mjs +1 -1
  137. package/assets/docs/use-integrations.doc.mjs +120 -0
  138. package/assets/templates/themes/butter/butterTheme.ts +4 -2
  139. package/assets/templates/themes/stone/stoneTheme.ts +4 -2
  140. package/assets/templates/themes/y2k/y2kTheme.ts +4 -2
  141. package/authoring/doctypes/schema/schema.doc.mjs +1 -1
  142. package/authoring/integration/integration.doc.mjs +1 -1
  143. package/authoring/integration/type.ts +1 -1
  144. package/clients/cli/command-result-coverage.test.mjs +6 -5
  145. package/clients/cli/commands/build-theme.color-scheme.test.mjs +1 -1
  146. package/clients/cli/commands/{component/index.mjs → component.mjs} +37 -37
  147. package/clients/cli/commands/component.test.mjs +6 -6
  148. package/clients/cli/commands/docs.doc.mjs +2 -2
  149. package/clients/cli/commands/docs.mjs +1 -1
  150. package/clients/cli/commands/docs.test.mjs +14 -14
  151. package/clients/cli/commands/doctor-integration.test.mjs +49 -1
  152. package/clients/cli/commands/doctor.mjs +10 -0
  153. package/clients/cli/commands/{hook/index.mjs → hook.mjs} +22 -22
  154. package/clients/cli/commands/import-hint-correctness.test.mjs +1 -1
  155. package/clients/cli/commands/integration-check.test.mjs +48 -0
  156. package/clients/cli/commands/integration.doc.mjs +1 -1
  157. package/clients/cli/commands/manifest.doc.mjs +1 -1
  158. package/clients/cli/commands/manifest.mjs +67 -0
  159. package/clients/cli/commands/postinstall.doc.mjs +23 -0
  160. package/clients/cli/commands/postinstall.mjs +31 -0
  161. package/clients/cli/commands/setup-nudge.test.mjs +17 -0
  162. package/clients/cli/commands/{build-theme.mjs → theme.mjs} +1 -1
  163. package/clients/cli/commands/upgrade.doc.mjs +4 -2
  164. package/clients/cli/commands/upgrade.mjs +9 -2
  165. package/clients/cli/commands/upgrade.subfolder-path.test.mjs +97 -0
  166. package/clients/cli/index.mjs +35 -93
  167. package/clients/cli/lib/component-format.mjs +1 -1
  168. package/clients/cli/lib/define-command.mjs +12 -7
  169. package/clients/cli/lib/exit-codes.test.mjs +5 -0
  170. package/clients/cli/lib/manifest.test.mjs +12 -0
  171. package/clients/cli/lib/welcome-box.mjs +50 -0
  172. package/foundation/agent-docs/agent-doc-state.d.mts +12 -0
  173. package/foundation/agent-docs/agent-doc-state.mjs +24 -2
  174. package/foundation/agent-docs/agent-docs.mjs +7 -6
  175. package/foundation/agent-docs/agent-docs.test.mjs +5 -4
  176. package/foundation/agent-docs/computer-agent-text.mjs +16 -1
  177. package/foundation/agent-docs/computer-agent-text.test.mjs +23 -2
  178. package/foundation/config/project.mjs +5 -20
  179. package/foundation/config/project.test.mjs +30 -0
  180. package/foundation/discovery/authoring-self-docs.d.mts +7 -0
  181. package/foundation/discovery/authoring-self-docs.mjs +16 -4
  182. package/foundation/discovery/authoring-self-docs.test.mjs +15 -3
  183. package/foundation/discovery/authoring-surface.d.mts +1 -1
  184. package/foundation/discovery/authoring-surface.mjs +2 -2
  185. package/foundation/discovery/authoring-surface.test.mjs +1 -1
  186. package/foundation/discovery/cli-self-docs.d.mts +2 -1
  187. package/foundation/discovery/cli-self-docs.mjs +4 -3
  188. package/foundation/discovery/cli-self-docs.test.mjs +2 -2
  189. package/foundation/discovery/runner-allowlist.d.mts +2 -4
  190. package/foundation/discovery/runner-allowlist.mjs +2 -4
  191. package/foundation/discovery/runner-commands.d.mts +77 -0
  192. package/foundation/discovery/runner-commands.mjs +294 -0
  193. package/foundation/discovery/runner-commands.test.mjs +128 -0
  194. package/foundation/discovery/stray-pointers.test.mjs +1 -1
  195. package/foundation/discovery/template-needs.mjs +1 -44
  196. package/foundation/doc-compiler/doc-loads.test.mjs +25 -9
  197. package/foundation/doc-compiler/split-topic-keywords.test.mjs +3 -2
  198. package/foundation/doc-compiler/tree.d.mts +32 -6
  199. package/foundation/doc-compiler/tree.mjs +77 -43
  200. package/foundation/doc-compiler/tree.test.mjs +7 -7
  201. package/foundation/fs/paths.d.mts +70 -8
  202. package/foundation/fs/paths.mjs +526 -35
  203. package/foundation/fs/paths.test.mjs +430 -54
  204. package/foundation/fs/read-record.d.mts +18 -0
  205. package/foundation/fs/read-record.mjs +131 -0
  206. package/foundation/fs/read-record.test.mjs +77 -0
  207. package/foundation/integrations/autolink.d.mts +2 -1
  208. package/foundation/integrations/autolink.mjs +4 -13
  209. package/foundation/integrations/cli-peer-version.d.mts +36 -0
  210. package/foundation/integrations/cli-peer-version.mjs +132 -0
  211. package/foundation/integrations/cli-peer-version.test.mjs +354 -0
  212. package/foundation/integrations/exports-subpaths.d.mts +57 -0
  213. package/foundation/integrations/exports-subpaths.mjs +113 -0
  214. package/foundation/integrations/integrations.d.mts +11 -0
  215. package/foundation/integrations/integrations.mjs +21 -1
  216. package/foundation/integrations/public-imports.d.mts +118 -0
  217. package/foundation/integrations/public-imports.mjs +1769 -0
  218. package/foundation/integrations/public-imports.test.mjs +1793 -0
  219. package/foundation/release/global-state.d.mts +8 -4
  220. package/foundation/release/global-state.mjs +4 -2
  221. package/foundation/release/notices.d.mts +62 -8
  222. package/foundation/release/notices.mjs +136 -25
  223. package/foundation/release/notices.test.mjs +21 -0
  224. package/foundation/response/response-types.doc.mjs +1 -1
  225. package/foundation/text/string-utils.d.mts +2 -1
  226. package/foundation/text/string-utils.mjs +16 -5
  227. package/foundation/text/suggest-order.d.mts +72 -0
  228. package/foundation/text/suggest-order.mjs +363 -0
  229. package/foundation/text/suggest-order.test.mjs +259 -0
  230. package/package.json +9 -9
@@ -24,6 +24,7 @@
24
24
  import {list} from './list/list.mjs';
25
25
  import {registryUpgrade} from './registry/registry.mjs';
26
26
  import {run} from './run/run.mjs';
27
+ import {relativeToOrigin, scopeToProject} from './_adapter.mjs';
27
28
  import {isValidSemver} from '../../foundation/env/semver.mjs';
28
29
  import {getCliInvocation} from '../../foundation/env/package-manager.mjs';
29
30
  import {isOutsideProject} from '../../foundation/env/project-scope.mjs';
@@ -88,7 +89,11 @@ export async function upgrade(options = {}, {cwd = process.cwd()} = {}) {
88
89
  logger.log('Aborted\n');
89
90
  throw new AstryxError(msg, undefined, ERROR_CODES.ERR_INVALID_ARGUMENT);
90
91
  }
91
- return registryUpgrade(options, {cwd});
92
+ const scoped = scopeToProject(options, cwd);
93
+ return registryUpgrade(scoped.options, {
94
+ cwd: scoped.cwd,
95
+ origin: scoped.origin,
96
+ });
92
97
  }
93
98
 
94
99
  if (!options.list && !options.from) {
@@ -112,5 +117,11 @@ export async function upgrade(options = {}, {cwd = process.cwd()} = {}) {
112
117
  return list();
113
118
  }
114
119
 
115
- return run(options, {cwd});
120
+ // A run from a subfolder upgrades the project the folder belongs to, and
121
+ // names files relative to the folder it ran in.
122
+ const scoped = scopeToProject(options, cwd);
123
+ return relativeToOrigin(
124
+ await run(scoped.options, {cwd: scoped.cwd, origin: scoped.origin}),
125
+ scoped,
126
+ );
116
127
  }
@@ -44,7 +44,7 @@ export type AgentDocsSummary = {
44
44
  */
45
45
  fromVersions: string[];
46
46
  /**
47
- * Files rewritten (apply) or that would be rewritten (dry-run).
47
+ * Files rewritten (apply) or that would be rewritten (dry-run), relative to the folder the command ran in.
48
48
  */
49
49
  files: string[];
50
50
  /**
@@ -73,7 +73,9 @@ export type RegistryCompositionItemSummary = {
73
73
  files: RegistryCompositionFileSummary[];
74
74
  };
75
75
  /**
76
- * Aggregate receipt for ShadCN-copied composition reconciliation.
76
+ * Aggregate receipt for ShadCN-copied composition reconciliation. File paths
77
+ * are relative to the scanned source directory, or, when the upgrade ran in a
78
+ * folder below the project root, to that folder.
77
79
  */
78
80
  export type RegistryCompositionSummary = {
79
81
  applied: boolean;
@@ -140,7 +142,7 @@ export type UpgradeRegistryResponse = {
140
142
  */
141
143
  export type ProtectedCodemodFile = {
142
144
  /**
143
- * Project-relative path.
145
+ * Path relative to the folder the command ran in.
144
146
  */
145
147
  file: string;
146
148
  /**
@@ -45,7 +45,7 @@
45
45
  * @property {'missing' | 'stale' | 'current'} status
46
46
  * @property {string} installedVersion Installed core version the block should reflect.
47
47
  * @property {string[]} fromVersions Distinct stale block versions found (the "from" side of the refresh).
48
- * @property {string[]} files Files rewritten (apply) or that would be rewritten (dry-run).
48
+ * @property {string[]} files Files rewritten (apply) or that would be rewritten (dry-run), relative to the folder the command ran in.
49
49
  * @property {boolean} refreshed True only when a block was actually rewritten (apply mode).
50
50
  * @property {'refreshed' | 'would-refresh' | 'nudge-init' | 'error' | 'none'} action
51
51
  */
@@ -70,7 +70,9 @@
70
70
  */
71
71
 
72
72
  /**
73
- * Aggregate receipt for ShadCN-copied composition reconciliation.
73
+ * Aggregate receipt for ShadCN-copied composition reconciliation. File paths
74
+ * are relative to the scanned source directory, or, when the upgrade ran in a
75
+ * folder below the project root, to that folder.
74
76
  * @typedef {object} RegistryCompositionSummary
75
77
  * @property {boolean} applied
76
78
  * @property {boolean} ok False when conflicts, missing files, invalid receipts, or failures remain.
@@ -99,7 +101,7 @@
99
101
  /**
100
102
  * A required codemod change blocked by effective working-tree protection.
101
103
  * @typedef {object} ProtectedCodemodFile
102
- * @property {string} file Project-relative path.
104
+ * @property {string} file Path relative to the folder the command ran in.
103
105
  * @property {string[]} codemods Codemods that still require a change.
104
106
  * @property {string[]} reasons Protection categories (generated, vendored, ignored, and hard boundaries).
105
107
  * @property {string[]} declarations Effective declarations that protect the file.
@@ -132,11 +134,11 @@
132
134
  * @property {boolean} [data.complete] False when protected required changes remain.
133
135
  * @property {'ERR_CODEMOD_PROTECTED'} [data.errorCode] Stable incomplete-result code when complete is false.
134
136
  * @property {number} [data.filesChanged] Distinct files changed across core + integration codemods (apply mode). One file that four codemods each changed counts once.
135
- * @property {string[]} [data.modifiedFiles] Project-relative files changed or previewed.
137
+ * @property {string[]} [data.modifiedFiles] Files changed or previewed, relative to the folder the command ran in.
136
138
  * @property {ProtectedCodemodFile[]} [data.protectedFiles] Protected files that still require a codemod change after regeneration.
137
- * @property {Array<{file: string, location?: string, reason: string}>} [data.declinedCandidates] Candidates left unchanged because proof was insufficient.
139
+ * @property {Array<{file: string, location?: string, reason: string}>} [data.declinedCandidates] Candidates left unchanged because proof was insufficient. Each `file` is relative to the folder the command ran in.
138
140
  * @property {number} [data.transformsApplied] Total codemod changes. A code or config codemod counts once for each file it changed, so one file changed by four of them counts four times; a project codemod counts once, however many files it writes.
139
- * @property {Array<{file: string, codemod: string, error: string}>} [data.errors] Per-codemod errors, when any codemod failed.
141
+ * @property {Array<{file: string, codemod: string, error: string}>} [data.errors] Per-codemod errors, when any codemod failed. Each `file` is relative to the folder the command ran in.
140
142
  * @property {CliBehindCore} [data.cliBehindCore] Present only when the installed Core is newer than this CLI: codemods for the releases after `cliBehindCore.cliVersion` did not run.
141
143
  */
142
144
 
@@ -28,7 +28,7 @@ export const docs = {
28
28
  {type: 'code', lang: 'json', label: 'Minimal palette config (palette.config.json)', code: '{"families": [{"id": "ocean", "seed": "#0074e2"}]}'},
29
29
  {type: 'code', lang: 'bash', label: 'Generate and preview', code: '# Print the palette without writing files\nastryx theme palette generate palette.config.json\n\n# Write palette + receipt, and open a visual preview\nastryx theme palette generate palette.config.json \\\n --out src/themes/ocean/tokens/ocean.palette.ts \\\n --preview preview.html'},
30
30
  {type: 'prose', text: "The command writes a `.ts` file exporting 21 shades (stops 0–100) for both light and dark, plus a `.receipt.json` to regenerate later. Point your theme's tokens at the palette, then run defineTheme (see below)."},
31
- {type: 'prose', text: 'For the full palette config fields and CLI flags, run `astryx docs cli/commands/theme-palette-generate`. For the integration-authoring walkthrough of connecting a palette to theme tokens, run `astryx docs cli/integrations/building-blocks/themes/generate-a-palette`.'},
31
+ {type: 'prose', text: 'For the full palette config fields and CLI flags, run `astryx docs cli/commands/theme-palette-generate`. For the integration-authoring walkthrough of connecting a palette to theme tokens, run `astryx docs authoring/building-blocks/themes/generate-a-palette`.'},
32
32
  ],
33
33
  },
34
34
  {
@@ -61,7 +61,7 @@ export const docs = {
61
61
  ['adaptations', 'Width-breakpoint overrides merge by fixed name. Inherited ordered rules keep their relative order; child rules append and re-resolve against the child root axes.'],
62
62
  ]},
63
63
  {type: 'prose', text: "Inheritance is resolved when the theme is defined, so an extended theme is flat: `astryx theme build` emits one self-contained stylesheet holding everything the child inherited, and the base theme's CSS does not need to be loaded next to it. A base that is not a theme (most often an import that missed) throws when `defineTheme` runs, rather than producing a theme that silently inherits nothing."},
64
- {type: 'prose', text: 'For the integration-specific guidance on mapping a palette to tokens when extending, see `astryx docs cli/integrations/building-blocks/themes/define-the-theme`.'},
64
+ {type: 'prose', text: 'For the integration-specific guidance on mapping a palette to tokens when extending, see `astryx docs authoring/building-blocks/themes/define-the-theme`.'},
65
65
  ],
66
66
  },
67
67
  {
@@ -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/add-a-component`: choose a
4
+ * @file `astryx docs authoring/building-blocks/components/add-a-component`: choose a
5
5
  * component name and generate its first source and doc files.
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/add-a-theme`:
4
+ * @file `astryx docs authoring/building-blocks/themes/add-a-theme`:
5
5
  * scaffold a theme in a package — blank, or forked from an existing theme.
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/add-a-topic`: add a
4
+ * @file `astryx docs authoring/building-blocks/docs/add-a-topic`: add a
5
5
  * doc topic to an integration package, write its sections, and pick the doc
6
6
  * kind for each thing the package ships.
7
7
  */
@@ -79,7 +79,7 @@ export const docs = {
79
79
  content: [
80
80
  {
81
81
  type: 'prose',
82
- text: 'Start every CLI command in a doc with the word astryx alone, with no runner such as npx or pnpm exec in front. The CLI prefixes each one when it prints the doc, with the command the reader runs: `pnpm exec astryx` or `yarn astryx` from their package manager, or the `cliCommand` an integration sets. See {@link generic:cli-command}.',
82
+ text: 'Start every CLI command in a doc with the word astryx alone, with no runner such as npx or pnpm exec in front. The CLI prefixes each one when it prints the doc, with the command the reader runs: `pnpm exec astryx` or `yarn astryx` from their package manager, or the `cliCommand` an integration sets. See {@link generic:cli-command}. `doctor integration validate` (and so `integration check`) lists each command written with a runner as a `runner_command` note, with its file, line and the bare command to write. A note fails nothing. An install step, which runs before the CLI is installed, is the one exception: write the scoped package name, `@astryxdesign/cli`, after the download runner. The unscoped name after a download runner is always listed, because it fetches an unrelated package.',
83
83
  },
84
84
  {
85
85
  type: 'code',
@@ -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/agent-guidance`: add short lines of
4
+ * @file `astryx docs authoring/building-blocks/configuration/agent-guidance`: add short lines of
5
5
  * guidance that apps put in front of their AI agents, within the limits.
6
6
  */
7
7
 
@@ -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`). It lists the same way a component's import whose module does not export the component (`component_import_missing_name`), an example or a template that imports a name its package does not export (`example_import_missing_name`, `template_import_missing_name`), and a template source with no default export (`template_no_default_export`). Each is a note, printed with its fix, that fails `--strict` from the next minor; an import it cannot judge, such as an `exports` target not built yet or 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
  },