@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
@@ -4,7 +4,16 @@
4
4
  export const doc = {
5
5
  name: 'Product Gallery',
6
6
  displayName: 'Product Gallery',
7
- description: 'Uniform card grid where every tile carries media, title, supporting line, and a price. Browse-to-select only, with no filtering and no detail surface. Products, catalog, storefront, shop, listings, or ecommerce grid.',
7
+ description:
8
+ 'Uniform card grid where every tile carries media, title, supporting line, and a price. Browse-to-select only, with no filtering and no detail surface.',
9
+ keywords: [
10
+ 'products',
11
+ 'catalog',
12
+ 'storefront',
13
+ 'shop',
14
+ 'listings',
15
+ 'ecommerce grid',
16
+ ],
8
17
  type: 'page',
9
18
  isReady: true,
10
19
  category: 'Gallery - Product',
@@ -5,7 +5,9 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Settings Form',
7
7
  displayName: 'Settings Form',
8
- description: 'Preferences as one continuously scrolling form, sections stacked in order with no navigation between them. The simplest settings shape: everything reachable by scrolling. Settings, preferences, configuration, options, or account.',
8
+ description:
9
+ 'Preferences as one continuously scrolling form, sections stacked in order with no navigation between them. The simplest settings shape: everything reachable by scrolling.',
10
+ keywords: ['settings', 'preferences', 'configuration', 'options', 'account'],
9
11
  isReady: true,
10
12
  category: 'Settings - Form',
11
13
  };
@@ -5,7 +5,15 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Settings Dialog',
7
7
  displayName: 'Settings Dialog',
8
- description: 'Preferences inside a modal container with searchable section navigation, so configuration happens without leaving whatever is underneath. Grouped toggles, live preview of appearance choices, rebindable shortcuts. Settings, preferences, configuration, options, or modal dialog.',
8
+ description:
9
+ 'Preferences inside a modal container with searchable section navigation, so configuration happens without leaving whatever is underneath. Grouped toggles, live preview of appearance choices, rebindable shortcuts.',
10
+ keywords: [
11
+ 'settings',
12
+ 'preferences',
13
+ 'configuration',
14
+ 'options',
15
+ 'modal dialog',
16
+ ],
9
17
  isReady: true,
10
18
  category: 'Settings - Dialog',
11
19
  };
@@ -5,7 +5,15 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Settings Panels',
7
7
  displayName: 'Settings Panels',
8
- description: 'Preferences split into nav-switched panels: a persistent section list swaps the pane beside it, and rows edit in place rather than opening a separate form. Settings, preferences, configuration, options, or account panels.',
8
+ description:
9
+ 'Preferences split into nav-switched panels: a persistent section list swaps the pane beside it, and rows edit in place rather than opening a separate form.',
10
+ keywords: [
11
+ 'settings',
12
+ 'preferences',
13
+ 'configuration',
14
+ 'options',
15
+ 'account panels',
16
+ ],
9
17
  isReady: true,
10
18
  category: 'Settings - Panels',
11
19
  };
@@ -5,7 +5,16 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Shell Nav',
7
7
  displayName: 'Shell Nav',
8
- description: 'Application frame combining both navigation axes: a top menu bar with command-palette search over a resizable hierarchy rail, wrapping placeholder content. For when one axis is not enough. Shell, chrome, layout frame, navigation, sidebar, or menu bar.',
8
+ description:
9
+ 'Application frame combining both navigation axes: a top menu bar with command-palette search over a resizable hierarchy rail, wrapping placeholder content. For when one axis is not enough.',
10
+ keywords: [
11
+ 'shell',
12
+ 'chrome',
13
+ 'layout frame',
14
+ 'navigation',
15
+ 'sidebar',
16
+ 'menu bar',
17
+ ],
9
18
  isReady: true,
10
19
  category: 'Shell - Top Nav + Left Sidebar',
11
20
  };
@@ -5,7 +5,20 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Side Nav',
7
7
  displayName: 'Side Nav',
8
- description: 'Application frame with a single collapsible, resizable left rail carrying grouped history and search, wrapping the main content. Vertical navigation only, no top bar. Shell, chrome, layout frame, sidebar, drawer, left rail, or navigation.',
8
+ description:
9
+ 'Application frame with a single collapsible, resizable left rail carrying grouped history and search, wrapping the main content. Vertical navigation only, no top bar.',
10
+ keywords: [
11
+ 'shell',
12
+ 'chrome',
13
+ 'layout frame',
14
+ 'sidebar',
15
+ 'drawer',
16
+ 'left rail',
17
+ 'navigation',
18
+ 'desktop app',
19
+ 'directory',
20
+ 'workspace',
21
+ ],
9
22
  isReady: true,
10
23
  category: 'Shell - Left Sidebar',
11
24
  };
@@ -5,7 +5,17 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Top Nav',
7
7
  displayName: 'Top Nav',
8
- description: 'Application frame with horizontal navigation only: a centered bar whose items open full-width mega-menu panels, over placeholder content that keeps the entire width. Shell, chrome, layout frame, header, menu, topbar, or navigation.',
8
+ description:
9
+ 'Application frame with horizontal navigation only: a centered bar whose items open full-width mega-menu panels, over placeholder content that keeps the entire width.',
10
+ keywords: [
11
+ 'shell',
12
+ 'chrome',
13
+ 'layout frame',
14
+ 'header',
15
+ 'menu',
16
+ 'topbar',
17
+ 'navigation',
18
+ ],
9
19
  isReady: true,
10
20
  category: 'Shell - Top Nav',
11
21
  };
@@ -4,7 +4,9 @@
4
4
  export const doc = {
5
5
  name: 'Side Gallery',
6
6
  displayName: 'Side Gallery',
7
- description: 'Asymmetric split section: a copy column of headline, supporting text, and links held against a clustered image collage opposite. Deliberately off-balance, unlike the centered hero. Feature banner, split section, marketing, or gallery intro.',
7
+ description:
8
+ 'Asymmetric split section: a copy column of headline, supporting text, and links held against a clustered image collage opposite. Deliberately off-balance, unlike the centered hero.',
9
+ keywords: ['feature banner', 'split section', 'marketing', 'gallery intro'],
8
10
  type: 'page',
9
11
  isReady: true,
10
12
  category: 'Gallery - Side',
@@ -5,7 +5,17 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Simple Table',
7
7
  displayName: 'Simple Table',
8
- description: 'Flat row collection where columns sort, rows select into a bulk-action toolbar, and each row carries an overflow menu. Sortable but ungrouped, with no detail pane, the baseline shape. Table, list, rows, records, grid, spreadsheet, or roster.',
8
+ description:
9
+ 'Flat row collection where columns sort, rows select into a bulk-action toolbar, and each row carries an overflow menu. Sortable but ungrouped, with no detail pane, the baseline shape.',
10
+ keywords: [
11
+ 'table',
12
+ 'list',
13
+ 'rows',
14
+ 'records',
15
+ 'grid',
16
+ 'spreadsheet',
17
+ 'roster',
18
+ ],
9
19
  isReady: false,
10
20
  category: 'Table - Basic',
11
21
  isHiddenFromOverview: true,
@@ -5,7 +5,27 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Filterable Table',
7
7
  displayName: 'Filterable Table',
8
- description: 'Flat row collection built around progressive filtering: a token bar that escalates into full query syntax, saved views that persist a filter set, column and grouping options, and a resizable detail pane. Table, list, rows, records, grid, search, or filtered dataset.',
8
+ description:
9
+ 'Flat row collection built around progressive filtering: a token bar that escalates into full query syntax, saved views that persist a filter set, column and grouping options, and a resizable detail pane.',
10
+ keywords: [
11
+ 'table',
12
+ 'list',
13
+ 'rows',
14
+ 'records',
15
+ 'grid',
16
+ 'search',
17
+ 'filtered dataset',
18
+ 'searchable list',
19
+ 'filters',
20
+ 'faceted search',
21
+ 'advanced search',
22
+ 'results list',
23
+ 'explorer',
24
+ 'bulk actions',
25
+ 'badges',
26
+ 'detail drawer',
27
+ 'csv export',
28
+ ],
9
29
  isReady: true,
10
30
  category: 'Table - Filtering',
11
31
  };
@@ -5,7 +5,21 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Grouped Table',
7
7
  displayName: 'Grouped Table',
8
- description: 'Row collection bundled into collapsible sections with per-group counts, so a long list reads as a handful of blocks that expand and collapse. Query filtering and a resizable inspector for the selected row. Table, list, rows, records, grid, or grouped dataset.',
8
+ description:
9
+ 'Row collection bundled into collapsible sections with per-group counts, so a long list reads as a handful of blocks that expand and collapse. Query filtering and a resizable inspector for the selected row.',
10
+ keywords: [
11
+ 'table',
12
+ 'list',
13
+ 'rows',
14
+ 'records',
15
+ 'grid',
16
+ 'grouped dataset',
17
+ 'to-do list',
18
+ 'todo',
19
+ 'priorities',
20
+ 'completed items',
21
+ 'checkboxes',
22
+ ],
9
23
  isReady: true,
10
24
  category: 'Table - Grouped',
11
25
  };
@@ -6,12 +6,24 @@ export const doc = {
6
6
  name: 'Inbox Table',
7
7
  displayName: 'Inbox Table',
8
8
  description:
9
- 'Two-pane message queue: the table indexes a reading pane rather than ' +
10
- 'being the destination, with a divider you drag to resize. Rows stack ' +
11
- 'when the table narrows, not the window; threads read as collapsible ' +
12
- 'messages; replying opens a composer that leaves the list live. Inbox, ' +
13
- 'mail, email, conversations, thread, triage, reading pane, split pane, ' +
14
- 'resize, collapse, compose, or notifications.',
9
+ 'Two-pane message queue: the table indexes a reading pane rather than being the destination, with a divider you drag to resize. Rows stack when the table narrows, not the window; threads read as collapsible messages; replying opens a composer that leaves the list live.',
10
+ keywords: [
11
+ 'inbox',
12
+ 'mail',
13
+ 'email',
14
+ 'conversations',
15
+ 'thread',
16
+ 'triage',
17
+ 'reading pane',
18
+ 'split pane',
19
+ 'resize',
20
+ 'collapse',
21
+ 'compose',
22
+ 'notifications',
23
+ 'review queue',
24
+ 'approvals',
25
+ 'decisions',
26
+ ],
15
27
  isReady: true,
16
28
  category: 'Table - Split Pane',
17
29
  };
@@ -6,7 +6,26 @@ export const doc = {
6
6
  name: 'Searchable Table',
7
7
  displayName: 'Searchable Table',
8
8
  description:
9
- 'Flat table of uniform rows under a block of record-level facts, narrowed three ways at once — a full-text search box, a scope toggle, and per-column popovers — with sortable and filterable columns, per-row hover detail, and totals derived from the visible rows that flag themselves as partial while a filter is on. The shape for one homogeneous list, not nested rows or groups with their own columns. Search, filter, sort, table, data table, flat rows, records, dataset, or totals.',
9
+ 'Flat table of uniform rows under a block of record-level facts, narrowed three ways at once — a full-text search box, a scope toggle, and per-column popovers — with sortable and filterable columns, per-row hover detail, and totals derived from the visible rows that flag themselves as partial while a filter is on. The shape for one homogeneous list, not nested rows or groups with their own columns.',
10
+ keywords: [
11
+ 'search',
12
+ 'filter',
13
+ 'sort',
14
+ 'table',
15
+ 'flat rows',
16
+ 'records',
17
+ 'dataset',
18
+ 'totals',
19
+ 'roster',
20
+ 'inventory',
21
+ 'assets',
22
+ 'registry',
23
+ 'lookup',
24
+ 'report table',
25
+ 'numeric columns',
26
+ 'pagination',
27
+ 'csv export',
28
+ ],
10
29
  isReady: true,
11
30
  category: 'Table - Basic',
12
31
  };
@@ -6,7 +6,20 @@ export const doc = {
6
6
  name: 'Tree Table',
7
7
  displayName: 'Tree Table',
8
8
  description:
9
- 'Hierarchical table where every parent row rolls up from its children — a code repository whose folders show the newest commit beneath them, beside a detail sidebar and a rendered README. Columns resize, siblings sort within their own level, arrow keys walk the rows, and search prunes the tree to matching branches. Tree, hierarchy, nested rows, drilldown, expand, collapse, resizable, expandable, file browser, repository, rolled-up parents.',
9
+ 'Hierarchical table where every parent row rolls up from its children — a code repository whose folders show the newest commit beneath them, beside a detail sidebar and a rendered README. Columns resize, siblings sort within their own level, arrow keys walk the rows, and search prunes the tree to matching branches.',
10
+ keywords: [
11
+ 'tree',
12
+ 'hierarchy',
13
+ 'nested rows',
14
+ 'drilldown',
15
+ 'expand',
16
+ 'collapse',
17
+ 'resizable',
18
+ 'expandable',
19
+ 'file browser',
20
+ 'repository',
21
+ 'rolled-up parents',
22
+ ],
10
23
  isReady: true,
11
24
  category: 'Table - Tree/Hierarchical List',
12
25
  };
@@ -5,7 +5,16 @@ export const doc = {
5
5
  type: 'page',
6
6
  name: 'Theme Showcase',
7
7
  displayName: 'Theme Showcase',
8
- description: 'Several unrelated product surfaces rendered together on one canvas so a token change can be judged across contexts at once. A comparison harness rather than a layout to ship. Theme, tokens, palette, typography, styling, or design system preview.',
8
+ description:
9
+ 'Several unrelated product surfaces rendered together on one canvas so a token change can be judged across contexts at once. A comparison harness rather than a layout to ship.',
10
+ keywords: [
11
+ 'theme',
12
+ 'tokens',
13
+ 'palette',
14
+ 'typography',
15
+ 'styling',
16
+ 'design system preview',
17
+ ],
9
18
  isReady: true,
10
19
  // Surfaced via the Themes page "Open in Playground" action, not the
11
20
  // Templates gallery, so keep it out of the overview + playground menu.
@@ -7,6 +7,16 @@ export const doc = {
7
7
  displayName: 'Work Item Detail',
8
8
  description:
9
9
  'Single work-item detail in two columns: a title with a status selector, a description, a subtask checklist with progress, an attachments block, and a comment and activity feed in the main column, plus a property rail with assignee, dates, labels, and linked items. The shape for any tracked item with children, properties, and a comment history — a task, ticket, issue, story, bug, card, request, or work item.',
10
+ keywords: [
11
+ 'task',
12
+ 'ticket',
13
+ 'issue',
14
+ 'story',
15
+ 'bug',
16
+ 'card',
17
+ 'request',
18
+ 'work item',
19
+ ],
10
20
  isReady: true,
11
21
  category: 'Content - Work Item Detail',
12
22
  };
@@ -31,6 +31,7 @@ import {
31
31
  Menu,
32
32
  MoreHorizontal,
33
33
  Search,
34
+ Upload,
34
35
  ArrowUp,
35
36
  ArrowDown,
36
37
  ArrowUpDown,
@@ -67,6 +68,7 @@ export const butterIconRegistry: IconRegistry = {
67
68
  menu: <Menu {...iconProps} />,
68
69
  moreHorizontal: <MoreHorizontal {...iconProps} />,
69
70
  search: <Search {...iconProps} />,
71
+ upload: <Upload {...iconProps} />,
70
72
  arrowUp: <ArrowUp {...iconProps} />,
71
73
  arrowDown: <ArrowDown {...iconProps} />,
72
74
  arrowsUpDown: <ArrowUpDown {...iconProps} />,
@@ -31,6 +31,7 @@ import {
31
31
  Menu,
32
32
  MoreHorizontal,
33
33
  Search,
34
+ Upload,
34
35
  ArrowUp,
35
36
  ArrowDown,
36
37
  ArrowUpDown,
@@ -67,6 +68,7 @@ export const chocolateIconRegistry: IconRegistry = {
67
68
  menu: <Menu {...iconProps} />,
68
69
  moreHorizontal: <MoreHorizontal {...iconProps} />,
69
70
  search: <Search {...iconProps} />,
71
+ upload: <Upload {...iconProps} />,
70
72
  arrowUp: <ArrowUp {...iconProps} />,
71
73
  arrowDown: <ArrowDown {...iconProps} />,
72
74
  arrowsUpDown: <ArrowUpDown {...iconProps} />,
@@ -31,6 +31,7 @@ import {
31
31
  Menu,
32
32
  MoreHorizontal,
33
33
  Search,
34
+ Upload,
34
35
  ArrowUp,
35
36
  ArrowDown,
36
37
  ArrowUpDown,
@@ -67,6 +68,7 @@ export const gothicIconRegistry: IconRegistry = {
67
68
  menu: <Menu {...iconProps} />,
68
69
  moreHorizontal: <MoreHorizontal {...iconProps} />,
69
70
  search: <Search {...iconProps} />,
71
+ upload: <Upload {...iconProps} />,
70
72
  arrowUp: <ArrowUp {...iconProps} />,
71
73
  arrowDown: <ArrowDown {...iconProps} />,
72
74
  arrowsUpDown: <ArrowUpDown {...iconProps} />,
@@ -21,6 +21,7 @@ import {
21
21
  Menu,
22
22
  MoreHorizontal,
23
23
  Search,
24
+ Upload,
24
25
  ArrowUp,
25
26
  ArrowDown,
26
27
  ArrowUpDown,
@@ -57,6 +58,7 @@ export const matchaIconRegistry: IconRegistry = {
57
58
  menu: <Menu {...iconProps} />,
58
59
  moreHorizontal: <MoreHorizontal {...iconProps} />,
59
60
  search: <Search {...iconProps} />,
61
+ upload: <Upload {...iconProps} />,
60
62
  arrowUp: <ArrowUp {...iconProps} />,
61
63
  arrowDown: <ArrowDown {...iconProps} />,
62
64
  arrowsUpDown: <ArrowUpDown {...iconProps} />,
@@ -31,6 +31,7 @@ import {
31
31
  Menu,
32
32
  MoreHorizontal,
33
33
  Search,
34
+ Upload,
34
35
  ArrowUp,
35
36
  ArrowDown,
36
37
  ArrowUpDown,
@@ -67,6 +68,7 @@ export const neutralIconRegistry: IconRegistry = {
67
68
  menu: <Menu {...iconProps} />,
68
69
  moreHorizontal: <MoreHorizontal {...iconProps} />,
69
70
  search: <Search {...iconProps} />,
71
+ upload: <Upload {...iconProps} />,
70
72
  arrowUp: <ArrowUp {...iconProps} />,
71
73
  arrowDown: <ArrowDown {...iconProps} />,
72
74
  arrowsUpDown: <ArrowUpDown {...iconProps} />,
@@ -31,6 +31,7 @@ import {
31
31
  Menu,
32
32
  MoreHorizontal,
33
33
  Search,
34
+ Upload,
34
35
  ArrowUp,
35
36
  ArrowDown,
36
37
  ArrowUpDown,
@@ -67,6 +68,7 @@ export const stoneIconRegistry: IconRegistry = {
67
68
  menu: <Menu {...iconProps} />,
68
69
  moreHorizontal: <MoreHorizontal {...iconProps} />,
69
70
  search: <Search {...iconProps} />,
71
+ upload: <Upload {...iconProps} />,
70
72
  arrowUp: <ArrowUp {...iconProps} />,
71
73
  arrowDown: <ArrowDown {...iconProps} />,
72
74
  arrowsUpDown: <ArrowUpDown {...iconProps} />,
@@ -21,6 +21,7 @@ import {
21
21
  Menu,
22
22
  MoreHorizontal,
23
23
  Search,
24
+ Upload,
24
25
  ArrowUp,
25
26
  ArrowDown,
26
27
  ArrowUpDown,
@@ -57,6 +58,7 @@ export const y2kIconRegistry: IconRegistry = {
57
58
  menu: <Menu {...iconProps} />,
58
59
  moreHorizontal: <MoreHorizontal {...iconProps} />,
59
60
  search: <Search {...iconProps} />,
61
+ upload: <Upload {...iconProps} />,
60
62
  arrowUp: <ArrowUp {...iconProps} />,
61
63
  arrowDown: <ArrowDown {...iconProps} />,
62
64
  arrowsUpDown: <ArrowUpDown {...iconProps} />,
@@ -43,6 +43,7 @@ declare const pageTemplateSchema: z.ZodObject<{
43
43
  name: z.ZodString;
44
44
  displayName: z.ZodOptional<z.ZodString>;
45
45
  description: z.ZodOptional<z.ZodString>;
46
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
47
  category: z.ZodOptional<z.ZodString>;
47
48
  componentsUsed: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
49
  preview: z.ZodOptional<z.ZodObject<{
@@ -79,6 +80,7 @@ declare const blockTemplateSchema: z.ZodObject<{
79
80
  name: z.ZodString;
80
81
  displayName: z.ZodOptional<z.ZodString>;
81
82
  description: z.ZodOptional<z.ZodString>;
83
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
82
84
  category: z.ZodOptional<z.ZodString>;
83
85
  componentsUsed: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
86
  preview: z.ZodOptional<z.ZodObject<{
@@ -44,6 +44,7 @@ const baseTemplateFields = {
44
44
  name: z.string().min(1, 'name is required'),
45
45
  displayName: z.string().min(1).optional(),
46
46
  description: z.string().min(1, 'description is required').optional(),
47
+ keywords: z.array(z.string().min(1)).optional(),
47
48
  category: z.string().optional(),
48
49
  componentsUsed: z.array(z.string()).optional(),
49
50
  preview: previewSchema.optional(),
@@ -34,6 +34,27 @@ describe('parseTemplate (load boundary)', () => {
34
34
  }
35
35
  });
36
36
 
37
+ it('accepts keywords on page and block templates', () => {
38
+ for (const type of ['page', 'block']) {
39
+ const parsed = parseTemplate({
40
+ type,
41
+ name: 'Acme health',
42
+ description: 'Status tiles over time charts.',
43
+ keywords: ['uptime', 'on-call'],
44
+ });
45
+ expect(parsed.keywords).toEqual(['uptime', 'on-call']);
46
+ }
47
+ });
48
+
49
+ it('rejects keywords that are not a list of words', () => {
50
+ expect(
51
+ reason({type: 'page', name: 'Acme health', keywords: 'uptime'}),
52
+ ).toMatch(/keywords/);
53
+ expect(reason({type: 'page', name: 'Acme health', keywords: ['']})).toMatch(
54
+ /keywords/,
55
+ );
56
+ });
57
+
37
58
  it('rejects an empty replaces', () => {
38
59
  expect(reason({type: 'page', name: 'Acme shell', replaces: ''})).toMatch(
39
60
  /replaces must name a Core template id/,
@@ -52,6 +52,12 @@ export const doc = {
52
52
  type: 'string',
53
53
  description: 'One-sentence description of what the template provides.',
54
54
  },
55
+ {
56
+ name: 'keywords',
57
+ type: 'string[]',
58
+ description:
59
+ "Search keywords for CLI discovery: the ideas, domains, and other names a builder might use for what the template serves (e.g. ['monitoring', 'uptime', 'on-call'] for a service-health dashboard). Lowercase. `astryx search` matches them as it matches the description and `astryx build` ranks page templates on them, so keep them out of `description`. Integration templates need @astryxdesign/cli 0.7.0 or later: earlier CLIs reject the field, drop that template, and hide the package's doc topics.",
60
+ },
55
61
  {
56
62
  name: 'replaces',
57
63
  type: 'string',
@@ -26,6 +26,16 @@ export interface BaseTemplateDoc extends AuthoredDocGraphFields {
26
26
  /** One-sentence description of what the template provides. */
27
27
  description?: string;
28
28
 
29
+ /** Search keywords for CLI discovery: the ideas, domains, and other names a
30
+ * builder might use for what this template serves (e.g. `['monitoring',
31
+ * 'uptime', 'on-call']` for a service-health dashboard). Lowercase.
32
+ * `astryx search` matches them as it matches the description, and
33
+ * `astryx build` ranks page templates on them, so the `description` can
34
+ * stay a description of the layout. Integration templates need
35
+ * `@astryxdesign/cli` 0.7.0 or later: earlier CLIs reject the field, drop
36
+ * that template, and hide the package's doc topics. */
37
+ keywords?: string[];
38
+
29
39
  /** Optional stable slug override and prior aliases for registry output. */
30
40
  registry?: RegistryDocIdentity;
31
41
 
@@ -209,11 +209,16 @@ async function warnOnThemeIntegrationIssues(json) {
209
209
  * @param {import('../../../api/theme/theme.type.mjs').ThemeListEntry[]} themes
210
210
  */
211
211
  function printThemeList(themes) {
212
+ const run = getCliInvocation();
213
+ // `theme list` shows what this project can add now. Themes in packages it
214
+ // has not installed are `discover`'s.
215
+ const more = text(
216
+ `More themes in packages you could add: ${run} discover theme`,
217
+ );
212
218
  if (themes.length === 0) {
213
- emit(text('No themes are available in this project.'));
219
+ emit(text('No themes are available in this project.'), more);
214
220
  return;
215
221
  }
216
- const run = getCliInvocation();
217
222
  emit(
218
223
  section('Themes'),
219
224
  list(
@@ -226,6 +231,7 @@ function printThemeList(themes) {
226
231
  text(
227
232
  `Usage:\n ${run} theme add <slug> [target-path] Scaffold a theme file you own`,
228
233
  ),
234
+ more,
229
235
  );
230
236
  }
231
237
 
@@ -268,19 +268,47 @@ export function registerDiscover(program) {
268
268
  // No discover source: the list of what this project has, as always.
269
269
  if (available === undefined) {
270
270
  if (result.data.length === 0) {
271
- if (result.meta && result.meta.configured === false) {
271
+ if (options.available) {
272
+ // The user specifically asked for available packages but
273
+ // there is no source to answer from. Say so honestly.
274
+ emit(
275
+ text('No discover source is configured.'),
276
+ text(
277
+ [
278
+ 'Available integrations are listed by discover sources.',
279
+ 'A project can set one in astryx.config.mjs, and installed',
280
+ 'integrations can provide one.',
281
+ ].join(' '),
282
+ ),
283
+ text(
284
+ [
285
+ `Find Astryx packages on npm: npm search @astryxdesign`,
286
+ `Learn more: ${run} docs cli/integrations`,
287
+ ].join('\n'),
288
+ ),
289
+ );
290
+ } else if (result.meta && result.meta.configured === false) {
272
291
  emit(
273
292
  text('No integrations configured.'),
274
293
  text('Add integration package names to astryx.config.mjs:'),
275
294
  code(
276
295
  "export default {\n integrations: ['@scope/your-integration'],\n};",
277
296
  ),
297
+ text(
298
+ [
299
+ `Find Astryx packages on npm: npm search @astryxdesign`,
300
+ `Learn more: ${run} docs cli/integrations`,
301
+ ].join('\n'),
302
+ ),
278
303
  );
279
304
  } else {
280
305
  emit(
281
306
  text(
282
307
  'No external components found in configured integrations.',
283
308
  ),
309
+ text(
310
+ `Find more packages: ${run} discover --available (needs a discover source)`,
311
+ ),
284
312
  );
285
313
  }
286
314
  break;