@astryxdesign/cli 0.6.5 → 0.6.6

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 (217) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/README.md +16 -15
  3. package/api/build/_adapter.d.mts +50 -2
  4. package/api/build/_adapter.mjs +98 -10
  5. package/api/build/build.doc.mjs +2 -2
  6. package/api/build/build.test.mjs +111 -2
  7. package/api/build/kit/kit.mjs +98 -22
  8. package/api/build/kit/rank.d.mts +32 -8
  9. package/api/build/kit/rank.mjs +291 -97
  10. package/api/build/kit/rank.test.mjs +231 -48
  11. package/api/build/kit/weights.d.mts +82 -0
  12. package/api/build/kit/weights.json +1 -0
  13. package/api/build/kit/weights.mjs +305 -0
  14. package/api/build/kit/weights.test.mjs +190 -0
  15. package/api/docs/docs.d.mts +6 -0
  16. package/api/docs/docs.depth.test.mjs +132 -0
  17. package/api/docs/docs.doc.mjs +31 -2
  18. package/api/docs/docs.mjs +44 -1
  19. package/api/docs/docs.test.mjs +279 -0
  20. package/api/docs/docs.type.d.mts +38 -1
  21. package/api/docs/docs.type.mjs +18 -1
  22. package/api/docs/integration-tree.test.mjs +572 -0
  23. package/api/docs/integrationDocs.test.mjs +336 -0
  24. package/api/docs/node/node.d.mts +28 -3
  25. package/api/docs/node/node.mjs +146 -23
  26. package/api/error.d.mts +22 -0
  27. package/api/error.mjs +42 -0
  28. package/api/gap-report/gap-report.d.mts +3 -1
  29. package/api/gap-report/gap-report.mjs +12 -2
  30. package/api/gap-report/gap-report.test.mjs +106 -0
  31. package/api/hook/list/list.d.mts +1 -1
  32. package/api/integration/add-contribution.d.mts +2 -1
  33. package/api/integration/add-contribution.mjs +7 -3
  34. package/api/integration/add-contribution.test.mjs +3 -3
  35. package/api/integration/add-theme.mjs +338 -26
  36. package/api/integration/add-theme.test.mjs +314 -1
  37. package/api/integration/authoring-checks.mjs +10 -7
  38. package/api/integration/authoring-checks.type.d.mts +8 -0
  39. package/api/integration/authoring-checks.type.mjs +7 -3
  40. package/api/integration/integration-authoring.type.d.mts +4 -1
  41. package/api/integration/integration-authoring.type.mjs +6 -1
  42. package/api/integration/integrationAdd.doc.mjs +6 -0
  43. package/api/integration/integrationAddTheme.doc.mjs +10 -0
  44. package/api/integration/integrationComponentConflicts.doc.mjs +1 -1
  45. package/api/integration/integrationDocConflicts.doc.mjs +1 -1
  46. package/api/integration/integrationTemplateConflicts.doc.mjs +1 -1
  47. package/api/integration/pack-check.mjs +12 -3
  48. package/api/integration/pack-check.test.mjs +52 -3
  49. package/api/integration/validate-integration.d.mts +4 -2
  50. package/api/integration/validate-integration.mjs +7 -2
  51. package/api/integration/validate-integration.test.mjs +55 -0
  52. package/api/integration/validate-integration.type.d.mts +5 -0
  53. package/api/integration/validate-integration.type.mjs +5 -1
  54. package/api/integration/validateIntegration.doc.mjs +1 -1
  55. package/api/layout/expand/expand.mjs +12 -7
  56. package/api/layout/expand/expand.receipt.test.mjs +74 -0
  57. package/api/layout/layout.type.d.mts +1 -0
  58. package/api/layout/layout.type.mjs +1 -0
  59. package/api/layout/layoutExpand.doc.mjs +1 -1
  60. package/api/search/search.d.mts +36 -5
  61. package/api/search/search.doc.mjs +4 -4
  62. package/api/search/search.mjs +194 -54
  63. package/api/search/search.test.mjs +825 -0
  64. package/api/search/search.type.d.mts +5 -5
  65. package/api/search/search.type.mjs +5 -5
  66. package/api/swizzle/copy/copy.mjs +66 -3
  67. package/api/swizzle/swizzle.doc.mjs +4 -0
  68. package/api/template/copy/copy.mjs +14 -8
  69. package/api/template/copy/copy.receipt.test.mjs +77 -0
  70. package/api/template/show/show.mjs +15 -4
  71. package/api/template/show/show.test.mjs +76 -0
  72. package/api/template/template-integration.test.mjs +14 -0
  73. package/api/template/template.d.mts +1 -1
  74. package/api/template/template.doc.mjs +6 -2
  75. package/api/template/template.mjs +1 -0
  76. package/api/template/template.type.d.mts +2 -0
  77. package/api/template/template.type.mjs +2 -0
  78. package/api/theme/build/build.d.mts +24 -0
  79. package/api/theme/build/build.icon-lineage.test.mjs +117 -0
  80. package/api/theme/build/build.icon-preservation.test.mjs +639 -0
  81. package/api/theme/build/build.mjs +381 -77
  82. package/api/theme/build/build.project-core.test.mjs +165 -0
  83. package/api/theme/build/build.test.mjs +190 -1
  84. package/api/theme/build/icon-imports.d.mts +47 -0
  85. package/api/theme/build/icon-imports.mjs +691 -0
  86. package/api/theme/themeBuild.doc.d.mts +4 -1
  87. package/api/theme/themeBuild.doc.mjs +14 -3
  88. package/api/upgrade/run/run.mjs +20 -3
  89. package/api/upgrade/run/run.test.mjs +45 -1
  90. package/api/upgrade/upgrade.doc.mjs +1 -1
  91. package/api/upgrade/upgrade.type.d.mts +1 -0
  92. package/api/upgrade/upgrade.type.mjs +1 -0
  93. package/assets/docs/icons.doc.mjs +1 -0
  94. package/assets/docs/theme.doc.mjs +3 -2
  95. package/assets/docs/tokens.doc.mjs +3 -3
  96. package/assets/docs/tree/add-a-theme.doc.mjs +4 -0
  97. package/assets/docs/tree/add-a-topic.doc.mjs +1 -1
  98. package/assets/docs/tree/check-your-docs.doc.mjs +2 -2
  99. package/assets/docs/tree/checks.doc.mjs +1 -1
  100. package/assets/docs/tree/debug-and-gap-reports.doc.mjs +1 -1
  101. package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
  102. package/assets/docs/tree/sections-and-placement.doc.mjs +1 -1
  103. package/assets/docs/tree/template-doc-overview.doc.mjs +13 -1
  104. package/assets/docs/tree/troubleshooting.doc.mjs +9 -5
  105. package/assets/docs/tree/versioning.doc.mjs +7 -6
  106. package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupShowcase.doc.mjs +15 -0
  107. package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupShowcase.tsx +38 -0
  108. package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupWithSelectable.doc.mjs +20 -0
  109. package/assets/templates/blocks/components/DropdownMenuGroup/DropdownMenuGroupWithSelectable.tsx +48 -0
  110. package/assets/templates/pages/ai-chat/template.doc.mjs +16 -1
  111. package/assets/templates/pages/ai-chat-landing/template.doc.mjs +9 -1
  112. package/assets/templates/pages/blank/template.doc.mjs +3 -1
  113. package/assets/templates/pages/canvas-editor/template.doc.mjs +9 -1
  114. package/assets/templates/pages/centered-hero/template.doc.mjs +3 -1
  115. package/assets/templates/pages/checkout-wizard/template.doc.mjs +1 -0
  116. package/assets/templates/pages/classic-gallery/template.doc.mjs +3 -1
  117. package/assets/templates/pages/contact-form/template.doc.mjs +16 -1
  118. package/assets/templates/pages/dashboard/template.doc.mjs +15 -1
  119. package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +23 -1
  120. package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +10 -1
  121. package/assets/templates/pages/dashboard-comparison/template.doc.mjs +9 -1
  122. package/assets/templates/pages/dashboard-composition/template.doc.mjs +10 -1
  123. package/assets/templates/pages/dashboard-progress/template.doc.mjs +17 -1
  124. package/assets/templates/pages/dashboard-scorecard/template.doc.mjs +2 -1
  125. package/assets/templates/pages/detail-page/template.doc.mjs +8 -0
  126. package/assets/templates/pages/documentation/template.doc.mjs +10 -1
  127. package/assets/templates/pages/documentation-design/template.doc.mjs +10 -1
  128. package/assets/templates/pages/documentation-technical/template.doc.mjs +10 -1
  129. package/assets/templates/pages/editor/template.doc.mjs +9 -1
  130. package/assets/templates/pages/file-explorer/template.doc.mjs +3 -1
  131. package/assets/templates/pages/form-two-column/template.doc.mjs +17 -1
  132. package/assets/templates/pages/form-wizard/template.doc.mjs +14 -1
  133. package/assets/templates/pages/form-wizard-dialog/template.doc.mjs +1 -0
  134. package/assets/templates/pages/gallery-hero/template.doc.mjs +10 -1
  135. package/assets/templates/pages/ide/template.doc.mjs +9 -1
  136. package/assets/templates/pages/incident-console/template.doc.mjs +10 -1
  137. package/assets/templates/pages/kanban-board/template.doc.mjs +11 -1
  138. package/assets/templates/pages/library/template.doc.mjs +15 -1
  139. package/assets/templates/pages/login/template.doc.mjs +10 -1
  140. package/assets/templates/pages/login-card/template.doc.mjs +11 -1
  141. package/assets/templates/pages/login-split/template.doc.mjs +10 -1
  142. package/assets/templates/pages/login-sso/template.doc.mjs +10 -1
  143. package/assets/templates/pages/messaging-shell/template.doc.mjs +11 -1
  144. package/assets/templates/pages/mixed-gallery/template.doc.mjs +10 -1
  145. package/assets/templates/pages/payment-form/template.doc.mjs +3 -1
  146. package/assets/templates/pages/product-detail/template.doc.mjs +9 -1
  147. package/assets/templates/pages/product-gallery/template.doc.mjs +10 -1
  148. package/assets/templates/pages/settings/template.doc.mjs +3 -1
  149. package/assets/templates/pages/settings-dialog/template.doc.mjs +9 -1
  150. package/assets/templates/pages/settings-sidebar/template.doc.mjs +9 -1
  151. package/assets/templates/pages/shell-nav/template.doc.mjs +10 -1
  152. package/assets/templates/pages/shell-side-nav/template.doc.mjs +14 -1
  153. package/assets/templates/pages/shell-top-nav/template.doc.mjs +11 -1
  154. package/assets/templates/pages/side-gallery/template.doc.mjs +3 -1
  155. package/assets/templates/pages/table/template.doc.mjs +11 -1
  156. package/assets/templates/pages/table-filter/template.doc.mjs +21 -1
  157. package/assets/templates/pages/table-grouped/template.doc.mjs +15 -1
  158. package/assets/templates/pages/table-inbox/template.doc.mjs +18 -6
  159. package/assets/templates/pages/table-page/template.doc.mjs +20 -1
  160. package/assets/templates/pages/table-tree/template.doc.mjs +14 -1
  161. package/assets/templates/pages/theme-showcase/template.doc.mjs +10 -1
  162. package/assets/templates/pages/work-item-detail/template.doc.mjs +10 -0
  163. package/assets/templates/themes/butter/icons.tsx +2 -0
  164. package/assets/templates/themes/chocolate/icons.tsx +2 -0
  165. package/assets/templates/themes/gothic/icons.tsx +2 -0
  166. package/assets/templates/themes/matcha/icons.tsx +2 -0
  167. package/assets/templates/themes/neutral/icons.tsx +2 -0
  168. package/assets/templates/themes/stone/icons.tsx +2 -0
  169. package/assets/templates/themes/y2k/icons.tsx +2 -0
  170. package/authoring/doctypes/template/parse.d.mts +2 -0
  171. package/authoring/doctypes/template/parse.mjs +1 -0
  172. package/authoring/doctypes/template/parse.test.mjs +21 -0
  173. package/authoring/doctypes/template/template.doc.mjs +6 -0
  174. package/authoring/doctypes/template/type.ts +10 -0
  175. package/clients/cli/commands/build-theme.mjs +8 -2
  176. package/clients/cli/commands/discover.mjs +29 -1
  177. package/clients/cli/commands/discover.no-source.test.mjs +75 -0
  178. package/clients/cli/commands/docs.depth.test.mjs +219 -0
  179. package/clients/cli/commands/docs.doc.mjs +15 -2
  180. package/clients/cli/commands/docs.mjs +222 -5
  181. package/clients/cli/commands/docs.test.mjs +383 -0
  182. package/clients/cli/commands/doctor.mjs +4 -4
  183. package/clients/cli/commands/gap-report.mjs +12 -0
  184. package/clients/cli/commands/gap-report.test.mjs +63 -0
  185. package/clients/cli/commands/integration-add.doc.mjs +10 -0
  186. package/clients/cli/commands/integration-authoring.test.mjs +12 -2
  187. package/clients/cli/commands/integration.mjs +3 -1
  188. package/clients/cli/commands/layout-expand.doc.mjs +3 -1
  189. package/clients/cli/commands/layout.expand-receipt.test.mjs +94 -0
  190. package/clients/cli/commands/layout.mjs +16 -0
  191. package/clients/cli/commands/search.doc.mjs +5 -4
  192. package/clients/cli/commands/search.mjs +30 -6
  193. package/clients/cli/commands/search.test.mjs +60 -16
  194. package/clients/cli/commands/template.copy-receipt.test.mjs +60 -0
  195. package/clients/cli/commands/template.mjs +19 -5
  196. package/clients/cli/commands/template.show-media.test.mjs +62 -0
  197. package/clients/cli/commands/theme-list.behavior.test.mjs +41 -0
  198. package/clients/cli/commands/upgrade.ascii-output.test.mjs +14 -0
  199. package/clients/cli/commands/write-failure.test.mjs +175 -0
  200. package/clients/cli/lib/manifest.mjs +44 -165
  201. package/clients/cli/lib/manifest.test.mjs +98 -7
  202. package/foundation/agent-docs/agent-docs.mjs +2 -1
  203. package/foundation/agent-docs/agent-docs.test.mjs +1168 -0
  204. package/foundation/discovery/template-adapter.d.mts +14 -0
  205. package/foundation/discovery/template-adapter.fixture-refs.test.mjs +37 -1
  206. package/foundation/discovery/template-adapter.mjs +21 -1
  207. package/foundation/discovery/theme-discovery.d.mts +6 -0
  208. package/foundation/discovery/theme-discovery.mjs +9 -0
  209. package/foundation/doc-compiler/doc-loads.test.mjs +3 -3
  210. package/foundation/doc-compiler/inputs.test.mjs +0 -1
  211. package/foundation/doc-compiler/tree.test.mjs +649 -0
  212. package/foundation/integrations/cli-requirement.d.mts +57 -13
  213. package/foundation/integrations/cli-requirement.mjs +84 -22
  214. package/foundation/integrations/cli-requirement.test.mjs +135 -8
  215. package/foundation/response/response-types.doc.d.mts +5 -5
  216. package/foundation/response/response-types.doc.mjs +13 -13
  217. package/package.json +1 -1
@@ -3,7 +3,10 @@
3
3
  /**
4
4
  * @file FunctionDoc for `themeBuild()` / `astryx theme build`. Colocated with
5
5
  * the API function it documents; the response-shape source of truth stays in
6
- * `theme.type.mjs`.
6
+ * `theme.type.mjs`. Documents imported/inherited icons and atomic rejection
7
+ * of registries that cannot be preserved in build/check modes.
8
+ * @input themeBuild's build/check and icon-import behavior.
9
+ * @output Consumer API documentation for generated theme artifacts.
7
10
  * @position packages/cli/api/theme — function documentation
8
11
  */
9
12
 
@@ -21,6 +24,14 @@ export const doc = {
21
24
  'writes a scoped CSS file, a JS module that re-exports the built theme, and a .d.ts ' +
22
25
  '(plus an optional .variants.d.ts when the theme adds custom prop values). It uses ' +
23
26
  "@astryxdesign/core's own generator, so the CSS matches what the <Theme> runtime emits. " +
27
+ 'When another build step emits the icon registry, ' +
28
+ '{iconsSpecifier} declares the fully specified module path for the generated JS import. ' +
29
+ 'Real registry imports are preserved, including aliases, default imports, and namespace ' +
30
+ 'imports. Icons inherited through extends are retained, with child entries taking precedence. ' +
31
+ 'Comment and string contents do not affect import detection. ' +
32
+ 'An inline registry that cannot be preserved fails with ERR_THEME_INVALID before any ' +
33
+ 'output is written, including in check mode. Move the registry to its own module and ' +
34
+ 'import it into the theme file. ' +
24
35
  'With {check: true} it writes nothing and instead compares ' +
25
36
  'each output against disk, returning the drift: the CI guard for committed, generated theme CSS.',
26
37
  importPath: '@astryxdesign/cli/api',
@@ -60,7 +71,7 @@ export const doc = {
60
71
  name: 'options.iconsSpecifier',
61
72
  type: 'string',
62
73
  description:
63
- 'Override the import specifier of the icon registry in the generated JS module, for example ./icons.mjs. Takes effect only when the theme sets icons: to a named import; when omitted, the source specifier is kept.',
74
+ 'Override the selected icon-registry import specifier in the generated JS module, for example ./icons.mjs. With child and inherited registries, this changes the child registry import. When omitted, direct source specifiers are preserved; relative imports followed through a local base are rebased to the theme file. A registry inherited through a package theme must be imported directly to use this option.',
64
75
  },
65
76
  {
66
77
  name: 'ctx.cwd',
@@ -90,7 +101,7 @@ export const doc = {
90
101
  },
91
102
  {
92
103
  code: 'ERR_THEME_INVALID',
93
- when: 'the resolved theme is invalid, for example it has no name, or a custom Heading type has no standalone rule with a declaration the compiler can emit',
104
+ when: 'the resolved theme is invalid, for example it has no name, a custom Heading type has no standalone rule with a declaration the compiler can emit, or its icon registry cannot be preserved through an import (also rejected in check mode)',
94
105
  },
95
106
  {
96
107
  code: 'ERR_PATH_TRAVERSAL',
@@ -137,6 +137,12 @@ export async function run(options = {}, {cwd = process.cwd()} = {}) {
137
137
  }
138
138
  const apply = options.apply ?? false;
139
139
 
140
+ // One fact about the resolved source directory, captured before anything
141
+ // runs. `--path` defaults to `./src`, so a project laid out as `app/` (or a
142
+ // typo) skips every code codemod; without this the receipt is byte-identical
143
+ // to a clean, fully migrated project.
144
+ const sourcePathFound = fs.existsSync(path_);
145
+
140
146
  const currentVersion = /** @type {string} */ (options.from);
141
147
  const installed = detectInstalledTargetVersion(cwd);
142
148
  if (!installed) {
@@ -282,6 +288,7 @@ export async function run(options = {}, {cwd = process.cwd()} = {}) {
282
288
  refreshed: false,
283
289
  action: 'none',
284
290
  },
291
+ sourcePathFound,
285
292
  filesChanged: coreResult?.totalFilesChanged ?? 0,
286
293
  transformsApplied: coreResult?.totalTransformsApplied ?? 0,
287
294
  modifiedFiles: uniqueFiles(coreResult?.changedFiles).map(file =>
@@ -407,6 +414,12 @@ export async function run(options = {}, {cwd = process.cwd()} = {}) {
407
414
  refreshed: false,
408
415
  action: 'none',
409
416
  }),
417
+ // A missing source directory is the one way this command can migrate
418
+ // nothing and still look complete: every codemod is skipped, filesChanged
419
+ // stays 0, and errors stays empty. The receipt carries the fact so a
420
+ // machine consumer can tell "nothing needed changing" from "nothing was
421
+ // ever read" — the human text says so via the runner's own error line.
422
+ sourcePathFound,
410
423
  };
411
424
 
412
425
  let integrationResult = null;
@@ -642,12 +655,16 @@ export async function run(options = {}, {cwd = process.cwd()} = {}) {
642
655
  }
643
656
 
644
657
  const registryOk = receipt.registryCompositions?.ok ?? true;
658
+ const done = apply ? 'Upgrade complete' : 'Dry run complete';
645
659
  logger.log(
646
660
  protectedFiles.length > 0
647
661
  ? 'Upgrade incomplete: protected changes remain\n'
648
- : registryOk
649
- ? (apply ? 'Upgrade complete' : 'Dry run complete') + '\n'
650
- : 'Upgrade finished with unresolved registry items\n',
662
+ : !registryOk
663
+ ? 'Upgrade finished with unresolved registry items\n'
664
+ : sourcePathFound
665
+ ? done + '\n'
666
+ : `${done}, but ${path.relative(cwd, path_) || '.'} does not exist, so no source files were scanned. ` +
667
+ `Pass --path <your source directory> if your code does not live in ./src.\n`,
651
668
  );
652
669
  return {
653
670
  type: 'upgrade.run',
@@ -3,7 +3,8 @@
3
3
  /**
4
4
  * @file Colocated tests for the upgrade.run leaf — the --path scan dir must be
5
5
  * confined to cwd (upgrade rewrites source in place with --apply, so an escaping
6
- * or out-of-tree path must be rejected).
6
+ * or out-of-tree path must be rejected), and the receipt must say whether that
7
+ * dir existed at all.
7
8
  */
8
9
 
9
10
  import {describe, it, expect, beforeEach, afterEach} from 'vitest';
@@ -51,3 +52,46 @@ describe('upgrade.run — --path confinement', () => {
51
52
  ).rejects.toMatchObject({code: 'ERR_PATH_TRAVERSAL'});
52
53
  }, SLOW);
53
54
  });
55
+
56
+ describe('upgrade.run — sourcePathFound', () => {
57
+ let dir;
58
+ beforeEach(() => {
59
+ dir = fs.mkdtempSync(path.join(os.tmpdir(), 'upg-srcpath-'));
60
+ seedProject(dir);
61
+ });
62
+ afterEach(() => fs.rmSync(dir, {recursive: true, force: true}));
63
+
64
+ // The receipt for a project whose source lives somewhere other than ./src was
65
+ // byte-identical to a fully migrated one: exit 0, filesChanged 0, errors [].
66
+ // The only signal was a human log line --json suppresses by design.
67
+ it('reports false when the resolved source directory is missing, and still counts nothing', async () => {
68
+ fs.rmSync(path.join(dir, 'src'), {recursive: true, force: true});
69
+ fs.mkdirSync(path.join(dir, 'app'), {recursive: true});
70
+ fs.writeFileSync(path.join(dir, 'app', 'index.ts'), 'const x = 1;\n');
71
+
72
+ const res = await upgrade({from: '0.0.1', apply: true}, {cwd: dir});
73
+
74
+ expect(res.type).toBe('upgrade.run');
75
+ expect(res.data.sourcePathFound).toBe(false);
76
+ expect(res.data.filesChanged).toBe(0);
77
+ expect(res.data.errors).toEqual([]);
78
+ }, SLOW);
79
+
80
+ it('reports true for a source directory that exists', async () => {
81
+ const res = await upgrade({from: '0.0.1', apply: true}, {cwd: dir});
82
+
83
+ expect(res.type).toBe('upgrade.run');
84
+ expect(res.data.sourcePathFound).toBe(true);
85
+ }, SLOW);
86
+
87
+ it('follows --path, so the right directory under another name reports true', async () => {
88
+ fs.rmSync(path.join(dir, 'src'), {recursive: true, force: true});
89
+ fs.mkdirSync(path.join(dir, 'app'), {recursive: true});
90
+ fs.writeFileSync(path.join(dir, 'app', 'index.ts'), 'const x = 1;\n');
91
+
92
+ const res = await upgrade({from: '0.0.1', path: 'app'}, {cwd: dir});
93
+
94
+ expect(res.type).toBe('upgrade.run');
95
+ expect(res.data.sourcePathFound).toBe(true);
96
+ }, SLOW);
97
+ });
@@ -123,7 +123,7 @@ export const doc = {
123
123
  {
124
124
  type: 'upgrade.run',
125
125
  description:
126
- 'The terminal run receipt: from, to, codemods (count), integrations, agentDocs, agentDocsRefreshed, registryCompositions (when receipts are found), filesChanged, transformsApplied, modifiedFiles, protectedFiles, declinedCandidates, errors, and complete. When a protected file still requires a change, complete is false and errorCode is ERR_CODEMOD_PROTECTED; the CLI exits nonzero while preserving the structured receipt.',
126
+ 'The terminal run receipt: from, to, codemods (count), integrations, agentDocs, agentDocsRefreshed, registryCompositions (when receipts are found), sourcePathFound (false when the resolved `path` does not exist, so nothing was scanned), filesChanged, transformsApplied, modifiedFiles, protectedFiles, declinedCandidates, errors, and complete. When a protected file still requires a change, complete is false and errorCode is ERR_CODEMOD_PROTECTED; the CLI exits nonzero while preserving the structured receipt.',
127
127
  },
128
128
  ],
129
129
  throws: [
@@ -168,6 +168,7 @@ export type UpgradeRunResponse = {
168
168
  integrations: string[];
169
169
  agentDocsRefreshed: boolean;
170
170
  agentDocs: AgentDocsSummary;
171
+ sourcePathFound: boolean;
171
172
  registryCompositions?: RegistryCompositionSummary | undefined;
172
173
  complete?: boolean | undefined;
173
174
  errorCode?: "ERR_CODEMOD_PROTECTED" | undefined;
@@ -116,6 +116,7 @@
116
116
  * @property {string[]} data.integrations Integration packages processed in this upgrade (by name/spec).
117
117
  * @property {boolean} data.agentDocsRefreshed
118
118
  * @property {AgentDocsSummary} data.agentDocs
119
+ * @property {boolean} data.sourcePathFound Whether the resolved source directory (`path`, default `./src`) exists. False means no source file was read, so a zero `filesChanged` says nothing about the project being migrated.
119
120
  * @property {RegistryCompositionSummary} [data.registryCompositions]
120
121
  * @property {boolean} [data.complete] False when protected required changes remain.
121
122
  * @property {'ERR_CODEMOD_PROTECTED'} [data.errorCode] Stable incomplete-result code when complete is false.
@@ -42,6 +42,7 @@ export const docs = {
42
42
  ['menu', 'Hamburger menu, navigation toggle'],
43
43
  ['moreHorizontal', 'Overflow menu, additional actions'],
44
44
  ['search', 'Search inputs, find'],
45
+ ['upload', 'Upload files or content'],
45
46
  ['arrowUp', 'Sort ascending, move up'],
46
47
  ['arrowDown', 'Sort descending, move down'],
47
48
  ['arrowsUpDown', 'Sortable column indicator'],
@@ -6,8 +6,9 @@ export const docs = {
6
6
  name: 'theme',
7
7
  title: 'Theme System',
8
8
  category: 'guide',
9
+ keywords: ['use', 'apply', 'setup'],
9
10
  description:
10
- 'Theme provider, custom themes, theme build for production/SSR, light/dark mode, and component style overrides.',
11
+ 'How to use and apply themes in your app: providers, custom themes, light/dark mode, production builds, and component style overrides.',
11
12
 
12
13
  sections: [
13
14
  {
@@ -400,7 +401,7 @@ const brandTheme = defineTheme({
400
401
  code: `components: {
401
402
  // Standard CSS properties are expanded automatically.
402
403
  // borderRadius also sets the internal radius var for concentric math.
403
- // padding on container components (card, section, dialog) expands to layout tokens.
404
+ // padding on container components (card, section, dialog, bottom-sheet) expands to layout tokens.
404
405
  card: {
405
406
  base: { borderRadius: '20px', padding: '24px' },
406
407
  },
@@ -2,7 +2,7 @@
2
2
 
3
3
  // AUTO-GENERATED — do not edit manually.
4
4
  // Source: packages/core/src/theme/tokens.stylex.ts,
5
- // domainTokens/dataTokens.ts, and syntax/tokens.ts
5
+ // dataTokens.stylex.ts, and syntax/tokens.ts
6
6
  // Run: node scripts/generate-token-docs.mjs
7
7
  // Total: 258 tokens across 15 categories.
8
8
 
@@ -439,7 +439,7 @@ export const docs = {
439
439
  "content": [
440
440
  {
441
441
  "type": "prose",
442
- "text": "Colors for charts and graphs: one categorical accent per series, a neutral for labels and reference lines, and sequential ramps from 5 (darkest) to 1 (lightest) for ordered scales and heatmaps."
442
+ "text": "Colors for charts and graphs: one categorical accent per series, a neutral for labels and reference lines, and sequential ramps from 5 (darkest) to 1 (lightest) for ordered scales and heatmaps. Import their public StyleX variables from @astryxdesign/core/theme/dataTokens.stylex."
443
443
  },
444
444
  {
445
445
  "type": "table",
@@ -1479,7 +1479,7 @@ export const docs = {
1479
1479
  "type": "code",
1480
1480
  "lang": "tsx",
1481
1481
  "label": "Using token imports",
1482
- "code": "import * as stylex from '@stylexjs/stylex';\nimport {colorVars, spacingVars, sizeVars, radiusVars} from '@astryxdesign/core/theme/tokens.stylex';\n\nconst styles = stylex.create({\n card: {\n padding: spacingVars['--spacing-4'],\n backgroundColor: colorVars['--color-background-surface'],\n borderRadius: radiusVars['--radius-container'],\n },\n button: {\n height: sizeVars['--size-element-md'],\n },\n});"
1482
+ "code": "import * as stylex from '@stylexjs/stylex';\nimport {colorVars, spacingVars, sizeVars, radiusVars} from '@astryxdesign/core/theme/tokens.stylex';\nimport {dataVars} from '@astryxdesign/core/theme/dataTokens.stylex';\n\nconst styles = stylex.create({\n card: {\n padding: spacingVars['--spacing-4'],\n backgroundColor: colorVars['--color-background-surface'],\n borderRadius: radiusVars['--radius-container'],\n },\n series: {\n color: dataVars['--color-data-categorical-blue'],\n },\n button: {\n height: sizeVars['--size-element-md'],\n },\n});"
1483
1483
  },
1484
1484
  {
1485
1485
  "type": "prose",
@@ -65,6 +65,10 @@ Declare theme root ./themes in astryx.integration.mjs.
65
65
  lang: 'bash',
66
66
  code: 'npx astryx integration add theme ocean --from neutral',
67
67
  },
68
+ {
69
+ type: 'prose',
70
+ text: 'The copy keeps the packages the base theme uses, such as `lucide-react` for its icons: `--from` adds them to your `dependencies`, so an app that installs your package gets them too. Install your dependencies again before you build the theme.',
71
+ },
68
72
  {
69
73
  type: 'prose',
70
74
  text: 'Use `--from` when you want to change a lot. For a small change that should stay linked to a base theme, use `extends` instead ({@link generic:define-the-theme}).',
@@ -64,7 +64,7 @@ export const docs = {
64
64
  style: 'unordered',
65
65
  items: [
66
66
  'Content blocks are `prose`, `code`, `list`, and `table`, as shown; `heading`, with a `level` from 3 to 6 and a `text`; and `token-ref`, which inlines a token table from another topic.',
67
- '`id` is optional: a stable key for the section. Without it, the key comes from the title. A stable CLI before 0.7.0 cannot read `id`; see {@link generic:versioning}.',
67
+ '`id` is optional: a stable key for the section. Without it, the key comes from the title. A stable CLI before 0.6.4 cannot read `id`; see {@link generic:versioning}.',
68
68
  'Replace the `Overview` placeholder that `integration add` writes. Every field is in {@link generic:authoring}.',
69
69
  ],
70
70
  },
@@ -110,7 +110,7 @@ export const docs = {
110
110
  content: [
111
111
  {
112
112
  type: 'prose',
113
- text: '`integration verify` fails a package that ships a docs section, a placed guide, or a doc section with an `id` without an `@astryxdesign/cli` peer of `>=0.7.0`. It does not run the docs check, so run both.',
113
+ text: '`integration verify` fails a package that ships a docs section, a placed guide, or a doc section with an `id` without an `@astryxdesign/cli` peer of `>=0.6.4`. It does not run the docs check, so run both.',
114
114
  },
115
115
  {
116
116
  type: 'code',
@@ -120,7 +120,7 @@ export const docs = {
120
120
  {
121
121
  type: 'code',
122
122
  lang: 'text',
123
- code: '- [fail] The package ships a namespace doc or a placed guide but declares no @astryxdesign/cli peer. A stable CLI before 0.7.0 does not read the docs tree, and can hide every doc topic the package ships. Declare "@astryxdesign/cli": ">=0.7.0" in peerDependencies (optional in peerDependenciesMeta, if the CLI is not required).',
123
+ code: '- [fail] The package ships a namespace doc or a placed guide but declares no @astryxdesign/cli peer. A stable CLI before 0.6.4 does not read the docs tree, and can hide every doc topic the package ships. Declare "@astryxdesign/cli": ">=0.6.4" in peerDependencies (optional in peerDependenciesMeta, if the CLI is not required).',
124
124
  },
125
125
  {
126
126
  type: 'list',
@@ -106,7 +106,7 @@ export const docs = {
106
106
  'It checks that every contribution file is in the `.tgz` file. A root missing from `files` fails with `Add "templates" to "files" in package.json.`',
107
107
  'It lists the components, templates, themes, docs, and codemods the temporary app sees, and compares them with your source.',
108
108
  "It resolves each component's `import`, and each template's public import, the way Node does, and checks that the module exports the component, or a default export for a template.",
109
- 'It fails a package that ships a docs section, a placed guide, a template `replaces`, a doc section with an `id`, or a theme without an `@astryxdesign/cli` peer of `>=0.7.0`.',
109
+ 'It fails a package that needs an `@astryxdesign/cli` peer and lacks it: `>=0.7.0` for a template that sets `replaces` or `keywords`, and `>=0.6.4` for a docs section, a placed guide, a doc section with an `id`, or a theme.',
110
110
  ],
111
111
  },
112
112
  {
@@ -174,7 +174,7 @@ message: Rerun with --confirm-public to file this report.`,
174
174
  },
175
175
  {
176
176
  type: 'prose',
177
- text: 'One handler anywhere in the app, from the app or from any package, turns the fallback off for every report. See {@link command:gap-report}.',
177
+ text: 'One handler anywhere in the app, from the app or from any package, turns the fallback off for every report. So does a listed package that fails to load: the CLI cannot tell whether it has a handler, so the report fails for that package instead of going to another tracker. See {@link command:gap-report}.',
178
178
  },
179
179
  ],
180
180
  },
@@ -106,7 +106,7 @@ export const oceanContrastTheme = defineTheme({
106
106
  lang: 'json',
107
107
  code: `"peerDependencies": {
108
108
  "@astryxdesign/core": "^0.7.0",
109
- "@astryxdesign/cli": ">=0.7.0"
109
+ "@astryxdesign/cli": ">=0.6.4"
110
110
  },
111
111
  "peerDependenciesMeta": {
112
112
  "@astryxdesign/cli": {"optional": true}
@@ -40,7 +40,7 @@ export const docs = {
40
40
  items: [
41
41
  'Edit its `title` and `summary`: readers see them in the docs list and at the top of your section.',
42
42
  "The guide, `docs/deploying.doc.mjs`, gets `placement: {parent: 'namespace:acme', slot: 'guides'}`. Later runs with `--parent acme` reuse the namespace doc.",
43
- '`package.json` gets the optional peer `"@astryxdesign/cli": ">=0.7.0"`, because an older CLI does not read sections; see {@link generic:versioning}.',
43
+ '`package.json` gets the optional peer `"@astryxdesign/cli": ">=0.6.4"`, because an older CLI does not read sections; see {@link generic:versioning}.',
44
44
  ],
45
45
  },
46
46
  ],
@@ -60,7 +60,14 @@ export const docs = {
60
60
  type: 'reference',
61
61
  target: 'schema:template-doc',
62
62
  projection: {
63
- fields: ['type', 'name', 'displayName', 'description', 'isReady'],
63
+ fields: [
64
+ 'type',
65
+ 'name',
66
+ 'displayName',
67
+ 'description',
68
+ 'keywords',
69
+ 'isReady',
70
+ ],
64
71
  },
65
72
  presentation: 'full',
66
73
  },
@@ -71,9 +78,14 @@ export const docs = {
71
78
  'Set `type` to the kind you chose in {@link generic:start-a-template}. It decides which other fields the doc accepts.',
72
79
  '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.',
73
80
  'Write the description for someone choosing between templates. The Doc metadata category in {@link generic:template-grading-rubric} defines what a complete description covers.',
81
+ "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. `astryx search` matches them as it matches the description, and `astryx build` ranks page templates on them, so the description can stay about the layout.",
74
82
  '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.',
75
83
  ],
76
84
  },
85
+ {
86
+ type: 'prose',
87
+ text: 'Note: `keywords` needs `@astryxdesign/cli` 0.7.0 or later. A stable CLI before 0.7.0 rejects the field, drops that template, and hides your doc topics: `template --list` and `search` print one warning, and `docs` and `build` say nothing. Declare the CLI floor as an optional peer ({@link generic:versioning}); `integration verify` fails until you do.',
88
+ },
77
89
  ],
78
90
  },
79
91
  {
@@ -87,19 +87,23 @@ export const docs = {
87
87
  ],
88
88
  [
89
89
  '`docs_tree_needs_cli`: `The package ships a namespace doc or a placed guide but declares no @astryxdesign/cli peer.`',
90
- "Run `npm pkg set 'peerDependencies.@astryxdesign/cli=>=0.7.0'` and `npm pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json`.",
90
+ "Run `npm pkg set 'peerDependencies.@astryxdesign/cli=>=0.6.4'` and `npm pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json`.",
91
91
  ],
92
92
  [
93
93
  '`replaces_needs_cli`: The package has a template that sets `replaces` but declares no @astryxdesign/cli peer.',
94
- 'Same fix: an older CLI rejects `replaces`, drops that template, and hides your doc topics.',
94
+ "Run `npm pkg set 'peerDependencies.@astryxdesign/cli=>=0.7.0'` and `npm pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json`. A stable CLI before 0.7.0 rejects `replaces`, drops that template, and hides your doc topics.",
95
+ ],
96
+ [
97
+ '`keywords_needs_cli`: The package has a template that sets `keywords` but declares no @astryxdesign/cli peer.',
98
+ 'The same fix as `replaces_needs_cli`: a stable CLI before 0.7.0 rejects `keywords`, drops that template, and hides your doc topics.',
95
99
  ],
96
100
  [
97
101
  '`themes_need_cli`: The package ships a theme but declares no @astryxdesign/cli peer.',
98
- 'Same fix: an older CLI cannot read typed theme descriptors, so it drops your themes and can hide your doc topics.',
102
+ "Run `npm pkg set 'peerDependencies.@astryxdesign/cli=>=0.6.4'` and `npm pkg set 'peerDependenciesMeta.@astryxdesign/cli.optional=true' --json`. A stable CLI before 0.6.4 cannot read typed theme descriptors, so it drops your themes and can hide your doc topics.",
99
103
  ],
100
104
  [
101
105
  '`section_ids_need_cli`: The package has a doc section that sets `id` but declares no @astryxdesign/cli peer.',
102
- 'Same fix, or drop the section `id`s: an older CLI rejects them and hides your doc topics.',
106
+ 'The same fix as `themes_need_cli`, or drop the section `id`s: a stable CLI before 0.6.4 rejects them and hides your doc topics.',
103
107
  ],
104
108
  ],
105
109
  },
@@ -135,7 +139,7 @@ export const docs = {
135
139
  ],
136
140
  [
137
141
  'Your docs section, templates, or themes are missing only in some apps',
138
- 'Those apps run a stable CLI before 0.7.0. Update `@astryxdesign/cli` there, and keep your optional `@astryxdesign/cli` peer so npm warns about an old CLI.',
142
+ 'Those apps run a CLI too old to read them: a stable CLI before 0.7.0 for a template that sets `replaces` or `keywords`, or before 0.6.4 for a docs section or a theme. Update `@astryxdesign/cli` there, and keep your optional `@astryxdesign/cli` peer so npm warns about an old CLI.',
139
143
  ],
140
144
  ],
141
145
  },
@@ -106,19 +106,19 @@ export const docs = {
106
106
  ],
107
107
  [
108
108
  '`@astryxdesign/cli`',
109
- 'You ship a docs section, a placed guide, a template that sets `replaces`, a doc section with an `id`, or a theme',
110
- '`>=0.7.0`, optional in `peerDependenciesMeta`',
109
+ 'You ship a docs section, a placed guide, a template that sets `replaces` or `keywords`, a doc section with an `id`, or a theme',
110
+ '`>=0.7.0` when you ship a template that sets `replaces` or `keywords`, otherwise `>=0.6.4`. Optional in `peerDependenciesMeta`',
111
111
  ],
112
112
  ],
113
113
  },
114
114
  {
115
115
  type: 'code',
116
116
  lang: 'json',
117
- code: '{\n "peerDependencies": {\n "@astryxdesign/core": "^0.6.0",\n "@astryxdesign/cli": ">=0.7.0"\n },\n "peerDependenciesMeta": {\n "@astryxdesign/cli": {"optional": true}\n }\n}',
117
+ code: '{\n "peerDependencies": {\n "@astryxdesign/core": "^0.6.0",\n "@astryxdesign/cli": ">=0.6.4"\n },\n "peerDependenciesMeta": {\n "@astryxdesign/cli": {"optional": true}\n }\n}',
118
118
  },
119
119
  {
120
120
  type: 'prose',
121
- text: '`integration verify` fails a package that needs the CLI peer and lacks it, or whose range admits a stable CLI before 0.7.0. `integration add doc --parent` and `integration add theme` write the peer for you.',
121
+ text: '`integration verify` fails a package that needs the CLI peer and lacks it, or whose range admits a stable CLI too old for what it ships. `integration add doc --parent` and `integration add theme` write the peer for you.',
122
122
  },
123
123
  ],
124
124
  },
@@ -137,13 +137,14 @@ export const docs = {
137
137
  'An unknown field in `astryx.integration.mjs` is ignored with an `unknown_manifest_key` warning, and the rest of the manifest still loads.',
138
138
  'A named export that the CLI does not know is ignored with no warning, so `debug` and `gapReport` are safe to add.',
139
139
  'A stable CLI before 0.7.0 prints each `{@link ...}` as written.',
140
- 'A stable CLI before 0.7.0 cannot read a docs section, a section `id`, a template that sets `replaces`, or a theme folder that `integration add theme` writes. It can then hide every doc topic your package ships.',
140
+ 'A stable CLI before 0.7.0 rejects a template that sets `replaces` or `keywords`, drops that template, and can hide every doc topic your package ships.',
141
+ 'A stable CLI before 0.6.4 cannot read a docs section, a section `id`, or a theme folder that `integration add theme` writes. It can then hide every doc topic your package ships.',
141
142
  'Stable 0.6.3 still loads your components, but 0.6.0 cannot read the component docs that `integration add component` writes: `component AcmeCarousel` fails there.',
142
143
  ],
143
144
  },
144
145
  {
145
146
  type: 'prose',
146
- text: '`integration verify` requires the CLI peer for a docs section, a placed guide, a template `replaces`, a doc section with an `id`, and a theme. A stable CLI before 0.7.0 cannot read any of them, and when it hides your topics, `docs` gives no warning.',
147
+ text: '`integration verify` requires the CLI peer for a docs section, a placed guide, a template `replaces` or `keywords`, a doc section with an `id`, and a theme. A CLI too old for one of them cannot read it, and when it hides your topics, `docs` gives no warning.',
147
148
  },
148
149
  ],
149
150
  },
@@ -0,0 +1,15 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'DropdownMenuGroup',
7
+ name: 'DropdownMenuGroup',
8
+ displayName: 'Dropdown Menu Group',
9
+ description:
10
+ 'A compound-mode menu whose rows are titled in groups. Each DropdownMenuGroup renders a role="group" named by its heading; arrow keys and typeahead skip the heading.',
11
+ isReady: true,
12
+ isShowcase: true,
13
+ aspectRatio: 16 / 9,
14
+ componentsUsed: ['DropdownMenu', 'DropdownMenuGroup', 'DropdownMenuItem'],
15
+ };
@@ -0,0 +1,38 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {
6
+ DropdownMenu,
7
+ DropdownMenuDivider,
8
+ DropdownMenuGroup,
9
+ DropdownMenuItem,
10
+ } from '@astryxdesign/core/DropdownMenu';
11
+
12
+ export default function DropdownMenuGroupShowcase() {
13
+ return (
14
+ <DropdownMenu button={{label: 'Version'}}>
15
+ <DropdownMenuGroup title="Version history">
16
+ <DropdownMenuItem
17
+ icon="arrowDown"
18
+ label="Restore this version"
19
+ onClick={() => {}}
20
+ />
21
+ <DropdownMenuItem
22
+ icon="copy"
23
+ label="Compare with current"
24
+ onClick={() => {}}
25
+ />
26
+ </DropdownMenuGroup>
27
+ <DropdownMenuDivider />
28
+ <DropdownMenuGroup title="Add to message">
29
+ <DropdownMenuItem
30
+ icon="externalLink"
31
+ label="As a link"
32
+ onClick={() => {}}
33
+ />
34
+ <DropdownMenuItem label="As a snippet" onClick={() => {}} />
35
+ </DropdownMenuGroup>
36
+ </DropdownMenu>
37
+ );
38
+ }
@@ -0,0 +1,20 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'DropdownMenuGroup',
7
+ name: 'DropdownMenuGroup — Selectable rows',
8
+ displayName: 'DropdownMenuGroup — Selectable rows',
9
+ description:
10
+ 'Titled groups around a radio group and checkbox rows — the rows the data API cannot express, which is why the heading lives in compound mode.',
11
+ isReady: true,
12
+ aspectRatio: 16 / 9,
13
+ componentsUsed: [
14
+ 'DropdownMenu',
15
+ 'DropdownMenuGroup',
16
+ 'DropdownMenuRadioGroup',
17
+ 'DropdownMenuRadioItem',
18
+ 'DropdownMenuCheckboxItem',
19
+ ],
20
+ };
@@ -0,0 +1,48 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {useState} from 'react';
6
+ import {
7
+ DropdownMenu,
8
+ DropdownMenuCheckboxItem,
9
+ DropdownMenuDivider,
10
+ DropdownMenuGroup,
11
+ DropdownMenuRadioGroup,
12
+ DropdownMenuRadioItem,
13
+ } from '@astryxdesign/core/DropdownMenu';
14
+
15
+ export default function DropdownMenuGroupWithSelectable() {
16
+ const [model, setModel] = useState('balanced');
17
+ const [notify, setNotify] = useState(true);
18
+ const [retry, setRetry] = useState(false);
19
+
20
+ return (
21
+ <DropdownMenu button={{label: 'Run settings'}}>
22
+ <DropdownMenuGroup title="Model">
23
+ <DropdownMenuRadioGroup
24
+ label="Model"
25
+ value={model}
26
+ onChange={setModel}
27
+ hasCloseOnSelect={false}>
28
+ <DropdownMenuRadioItem value="fast" label="Fast" />
29
+ <DropdownMenuRadioItem value="balanced" label="Balanced" />
30
+ <DropdownMenuRadioItem value="thorough" label="Thorough" />
31
+ </DropdownMenuRadioGroup>
32
+ </DropdownMenuGroup>
33
+ <DropdownMenuDivider />
34
+ <DropdownMenuGroup title="On completion">
35
+ <DropdownMenuCheckboxItem
36
+ label="Notify me"
37
+ value={notify}
38
+ onChange={setNotify}
39
+ />
40
+ <DropdownMenuCheckboxItem
41
+ label="Retry on failure"
42
+ value={retry}
43
+ onChange={setRetry}
44
+ />
45
+ </DropdownMenuGroup>
46
+ </DropdownMenu>
47
+ );
48
+ }
@@ -5,7 +5,22 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'AI Chat Conversation',
7
7
  displayName: 'AI Chat Conversation',
8
- description: 'Transcript of alternating turns carrying mixed rich content inline (markdown, code blocks, collapsible tool-call output) beside a resizable artifact panel that holds generated output while the stream keeps scrolling. Chat, conversation, assistant, messages, or copilot thread.',
8
+ description:
9
+ 'Transcript of alternating turns carrying mixed rich content inline (markdown, code blocks, collapsible tool-call output) beside a resizable artifact panel that holds generated output while the stream keeps scrolling.',
10
+ keywords: [
11
+ 'chat',
12
+ 'conversation',
13
+ 'assistant',
14
+ 'messages',
15
+ 'copilot thread',
16
+ 'agent',
17
+ 'session',
18
+ 'composer',
19
+ 'questions',
20
+ 'answers with citations',
21
+ 'reasoning trace',
22
+ 'prompt playground',
23
+ ],
9
24
  isReady: true,
10
25
  category: 'AI Chat - Conversation',
11
26
  };
@@ -5,7 +5,15 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'AI Chat Landing',
7
7
  displayName: 'AI Chat Landing',
8
- description: 'Zero-state entry surface centered on a single composer with suggestion chips instead of history, sized for the moment before any content exists. The empty counterpart to a transcript. Chat, conversation, assistant, prompt, or messages launcher.',
8
+ description:
9
+ 'Zero-state entry surface centered on a single composer with suggestion chips instead of history, sized for the moment before any content exists. The empty counterpart to a transcript.',
10
+ keywords: [
11
+ 'chat',
12
+ 'conversation',
13
+ 'assistant',
14
+ 'prompt',
15
+ 'messages launcher',
16
+ ],
9
17
  isReady: true,
10
18
  category: 'AI Chat - Landing',
11
19
  };
@@ -5,7 +5,9 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Blank',
7
7
  displayName: 'Blank',
8
- description: 'Bare scaffold: one heading slot, one empty content region, no navigation and no chrome. The starting point when every other layout imposes more structure than wanted. Blank, empty, stub, placeholder, or minimal scaffold.',
8
+ description:
9
+ 'Bare scaffold: one heading slot, one empty content region, no navigation and no chrome. The starting point when every other layout imposes more structure than wanted.',
10
+ keywords: ['blank', 'empty', 'stub', 'placeholder', 'minimal scaffold'],
9
11
  isReady: true,
10
12
  scaffold: true,
11
13
  category: 'Shell - Blank',