@astryxdesign/cli 0.7.16-canary.ge95b87c → 0.7.16

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 (120) hide show
  1. package/CHANGELOG.md +369 -0
  2. package/README.md +1 -1
  3. package/api/build/_adapter.d.mts +9 -0
  4. package/api/build/_adapter.mjs +24 -0
  5. package/api/build/kit/shell.weights.json +1 -0
  6. package/api/build/kit/shellcall.d.mts +26 -0
  7. package/api/build/kit/shellcall.mjs +87 -0
  8. package/api/build/kit/start.mjs +67 -4
  9. package/api/build/kit/weights.d.mts +15 -0
  10. package/api/build/kit/weights.mjs +27 -0
  11. package/api/component/__fixtures__/resolutions/modules.txt +1 -1
  12. package/api/doctor/_adapter.d.mts +3 -2
  13. package/api/doctor/_adapter.mjs +7 -1
  14. package/api/doctor/doctor.d.mts +8 -0
  15. package/api/doctor/doctor.mjs +53 -8
  16. package/api/doctor/theme-checks.mjs +157 -8
  17. package/api/icon/_adapter.d.mts +7 -3
  18. package/api/icon/_adapter.mjs +12 -3
  19. package/api/icon/icon.type.d.mts +15 -0
  20. package/api/icon/icon.type.mjs +10 -3
  21. package/api/icon/iconUse.doc.mjs +19 -5
  22. package/api/icon/list/list.mjs +7 -1
  23. package/api/icon/use/use.d.mts +8 -5
  24. package/api/icon/use/use.mjs +95 -13
  25. package/api/init/run/run.mjs +1 -0
  26. package/api/template/template.type.d.mts +6 -2
  27. package/api/template/template.type.mjs +2 -1
  28. package/api/theme/_adapter.mjs +16 -2
  29. package/api/theme/build/build.d.mts +10 -6
  30. package/api/theme/build/build.mjs +42 -29
  31. package/api/theme/generateTonalPalette.doc.mjs +2 -2
  32. package/api/theme/palette/generate/generator.mjs +141 -2
  33. package/api/theme/theme.type.d.mts +39 -0
  34. package/api/theme/theme.type.mjs +21 -0
  35. package/api/theme/themeBuild.doc.mjs +1 -1
  36. package/api/theme/themePaletteGenerate.doc.mjs +1 -1
  37. package/api/theme-edit/_adapter.d.mts +1 -0
  38. package/api/theme-edit/_adapter.mjs +79 -21
  39. package/api/theme-edit/_check.d.mts +25 -2
  40. package/api/theme-edit/_check.mjs +251 -61
  41. package/api/theme-edit/_context.d.mts +2 -1
  42. package/api/theme-edit/_context.mjs +19 -1
  43. package/api/theme-edit/_edit.d.mts +16 -0
  44. package/api/theme-edit/_edit.mjs +360 -59
  45. package/api/theme-edit/_how-question.d.mts +8 -0
  46. package/api/theme-edit/_how-question.mjs +169 -22
  47. package/api/theme-edit/_marks.d.mts +13 -0
  48. package/api/theme-edit/_marks.mjs +15 -0
  49. package/api/theme-edit/_palette.d.mts +27 -0
  50. package/api/theme-edit/_palette.mjs +112 -8
  51. package/api/theme-edit/_preview-app.d.mts +46 -1
  52. package/api/theme-edit/_preview-app.mjs +367 -36
  53. package/api/theme-edit/_preview.d.mts +55 -0
  54. package/api/theme-edit/_preview.mjs +231 -6
  55. package/api/theme-edit/_project.d.mts +4 -0
  56. package/api/theme-edit/_project.mjs +27 -6
  57. package/api/theme-edit/_settings.d.mts +61 -2
  58. package/api/theme-edit/_settings.mjs +317 -115
  59. package/api/theme-edit/_tables.mjs +1 -1
  60. package/api/theme-edit/theme-edit.type.d.mts +30 -2
  61. package/api/theme-edit/theme-edit.type.mjs +10 -2
  62. package/api/theme-edit/themeEditPreviewApp.doc.mjs +1 -1
  63. package/assets/docs/author-a-theme.doc.mjs +1 -1
  64. package/assets/docs/theme.doc.dense.mjs +1 -1
  65. package/assets/docs/theme.doc.mjs +1 -1
  66. package/assets/docs/theme.doc.zh.mjs +4 -3
  67. package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
  68. package/assets/docs/tree/icon-sets.doc.mjs +63 -8
  69. package/assets/docs.generated.json +2 -2
  70. package/assets/self-audit.generated.json +1 -1
  71. package/assets/templates/blocks/components/Outline/useOutlineFromDOMHookUsage.doc.mjs +21 -0
  72. package/assets/templates/blocks/components/Outline/useOutlineFromDOMHookUsage.tsx +62 -0
  73. package/assets/templates/components.generated.json +1 -1
  74. package/assets/templates/pages/ai-chat/page.tsx +20 -2
  75. package/assets/templates/themes/neutral/neutralPalettes.generated.receipt.json +2 -0
  76. package/authoring/config/config.doc.mjs +8 -0
  77. package/authoring/config/parse.d.mts +1 -0
  78. package/authoring/config/parse.mjs +12 -0
  79. package/authoring/config/type.ts +8 -0
  80. package/authoring/doctypes/icon-set/icon-set-data.doc.mjs +3 -3
  81. package/clients/cli/build-id.generated.json +1 -1
  82. package/clients/cli/commands/experimental/icon.mjs +61 -6
  83. package/clients/cli/commands/experimental/theme.mjs +9 -2
  84. package/clients/cli/commands/experimental-icon-use.doc.mjs +12 -5
  85. package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +2 -2
  86. package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +1 -1
  87. package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +2 -2
  88. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +1 -1
  89. package/clients/cli/commands/experimental-theme-editor.doc.mjs +1 -1
  90. package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +1 -1
  91. package/clients/cli/commands/theme.doc.mjs +7 -2
  92. package/clients/cli/commands/theme.mjs +41 -18
  93. package/clients/cli/commands.generated.json +1 -1
  94. package/clients/cli/index.mjs +25 -5
  95. package/clients/cli/manifest.generated.json +1 -1
  96. package/foundation/agent-docs/agent-docs.mjs +1 -1
  97. package/foundation/config/config-writer.d.mts +23 -0
  98. package/foundation/config/config-writer.mjs +150 -56
  99. package/foundation/config/project.mjs +43 -2
  100. package/foundation/discovery/component-discovery.mjs +6 -5
  101. package/foundation/discovery/icon-set-checks.mjs +164 -48
  102. package/foundation/discovery/icon-set-discovery.d.mts +38 -5
  103. package/foundation/discovery/icon-set-discovery.mjs +50 -6
  104. package/foundation/discovery/icon-set-theme-maps.d.mts +59 -0
  105. package/foundation/discovery/icon-set-theme-maps.mjs +95 -0
  106. package/foundation/discovery/icon-set-writer.d.mts +2 -3
  107. package/foundation/discovery/icon-set-writer.mjs +57 -16
  108. package/foundation/discovery/template-icons.d.mts +27 -10
  109. package/foundation/discovery/template-icons.mjs +142 -26
  110. package/foundation/discovery/theme-discovery.d.mts +25 -0
  111. package/foundation/discovery/theme-discovery.mjs +48 -7
  112. package/foundation/fs/gather-cache.mjs +6 -2
  113. package/foundation/integrations/autolink.d.mts +4 -2
  114. package/foundation/integrations/autolink.mjs +4 -2
  115. package/foundation/integrations/cli-requirement.d.mts +16 -5
  116. package/foundation/integrations/cli-requirement.mjs +27 -6
  117. package/foundation/integrations/may-have-integrations.mjs +5 -2
  118. package/foundation/integrations/missing-dependency.d.mts +9 -0
  119. package/foundation/integrations/missing-dependency.mjs +100 -0
  120. package/package.json +6 -6
@@ -39,6 +39,7 @@ import {DropdownMenu} from '@astryxdesign/core/DropdownMenu';
39
39
  import {MoreMenu} from '@astryxdesign/core/MoreMenu';
40
40
  import {Toolbar} from '@astryxdesign/core/Toolbar';
41
41
  import {useResizable, ResizeHandle} from '@astryxdesign/core/Resizable';
42
+ import {rtlStyles} from '@astryxdesign/core/utils';
42
43
 
43
44
  import {
44
45
  DocumentTextIcon,
@@ -92,6 +93,11 @@ const AI_CHAT_CSS = `
92
93
  .ai-chat-resize-handle {
93
94
  display: flex;
94
95
  }
96
+ /* The scrollbar ends where the handle's grab zone begins, so the zone
97
+ never covers it. */
98
+ .ai-chat-column-beside-handle {
99
+ padding-inline-end: var(--spacing-2);
100
+ }
95
101
  .ai-chat-artifact-panel {
96
102
  overflow: hidden;
97
103
  display: flex;
@@ -103,6 +109,9 @@ const AI_CHAT_CSS = `
103
109
  .ai-chat-resize-handle {
104
110
  display: none;
105
111
  }
112
+ .ai-chat-column-beside-handle {
113
+ padding-inline-end: 0;
114
+ }
106
115
  .ai-chat-artifact-panel {
107
116
  display: none;
108
117
  width: 100%;
@@ -260,7 +269,12 @@ function ArtifactCard({onOpen}: {onOpen: () => void}) {
260
269
  </Text>
261
270
  </VStack>
262
271
  </StackItem>
263
- <Icon icon={ChevronRightIcon} size="sm" color="secondary" />
272
+ <Icon
273
+ icon={ChevronRightIcon}
274
+ size="sm"
275
+ color="secondary"
276
+ xstyle={rtlStyles.mirror}
277
+ />
264
278
  </HStack>
265
279
  </ClickableCard>
266
280
  );
@@ -300,7 +314,11 @@ export default function AIChatConversationTemplate() {
300
314
  <LayoutContent padding={0}>
301
315
  <HStack height="100%">
302
316
  {/* Chat column — flexes to fill the space the artifact leaves */}
303
- <VStack style={chatColumn}>
317
+ <VStack
318
+ style={chatColumn}
319
+ className={
320
+ isArtifactOpen ? 'ai-chat-column-beside-handle' : undefined
321
+ }>
304
322
  <ChatLayout
305
323
  density="spacious"
306
324
  style={chatLayout}
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "recipe": "astryx-oklch-v1",
4
+ "generatorVersion": "palette-generator-v1",
5
+ "candidateFormatVersion": "palette-typescript-v1",
4
6
  "candidateSha256": "a9b186bd7aaffafe34bfabd5b76116115cf667e91066e59ff8f11bcdaaee69bf",
5
7
  "request": {
6
8
  "recipe": "astryx-oklch-v1",
@@ -83,6 +83,14 @@ export const doc = {
83
83
  "Experimental: may change or be removed in a patch release. The project's main icon set, by set name or as `<package>/<set>`; or a list of them, the main set first and then backup sets in order. A copied template takes each icon from the first set in the list that has its meaning, and draws a placeholder the copied file declares when none has it. It is the opt-in: copied templates use these icons, and `astryx discover` and `astryx doctor` report icon sets, only when it is set. `astryx experimental icon use <main> --backup <set>` writes it. `astryx experimental icon` ranks the main set's icons first; without it, the only installed set is the project's there. `astryx search` never returns icons.",
84
84
  example: "['@acme/outline-icons/outline', '@acme/brand-icons/brand']",
85
85
  },
86
+ {
87
+ name: 'experimental.iconVariant',
88
+ type: 'string',
89
+ stability: 'experimental',
90
+ description:
91
+ "Experimental: may change or be removed in a patch release. The look every icon of the project draws, such as `outline` or `filled`, by the variant name the icon sets declare. Each set in `experimental.iconSet` that declares a variant of that name draws it: copied templates import that variant's icons, and a theme takes that look's theme map (`themeIconsFilled`). A set that declares no variant of that name draws its default look. The main set must declare it, and it needs `experimental.iconSet`. `astryx experimental icon use <main> --variant <variant>` writes it; without `--variant` that command removes it.",
92
+ example: "'filled'",
93
+ },
86
94
  {
87
95
  name: 'experimental.xle.components',
88
96
  type: 'Record<string, XleComponent>',
@@ -59,6 +59,7 @@ declare const configSchema: z.ZodObject<{
59
59
  }, z.core.$strict>>>;
60
60
  }, z.core.$strict>>;
61
61
  iconSet: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
62
+ iconVariant: z.ZodOptional<z.ZodString>;
62
63
  }, z.core.$strict>>;
63
64
  }, z.core.$strict>;
64
65
  export {};
@@ -106,8 +106,20 @@ const configSchema = z
106
106
  iconSet: z
107
107
  .union([z.string().min(1), z.array(z.string().min(1)).min(1)])
108
108
  .optional(),
109
+ iconVariant: z.string().min(1).optional(),
109
110
  })
110
111
  .strict()
112
+ // The variant is the look of the sets `iconSet` names, so it needs them.
113
+ .superRefine((value, ctx) => {
114
+ if (value.iconVariant !== undefined && value.iconSet === undefined) {
115
+ ctx.addIssue({
116
+ code: 'custom',
117
+ path: ['iconVariant'],
118
+ message:
119
+ 'iconVariant is the look of the icon sets experimental.iconSet names: set experimental.iconSet too (`astryx experimental icon use <set> --variant <variant>` writes both)',
120
+ });
121
+ }
122
+ })
111
123
  .optional(),
112
124
  })
113
125
  .strict();
@@ -132,5 +132,13 @@ export interface AstryxConfig {
132
132
  * @experimental May change or be removed in a patch release.
133
133
  */
134
134
  iconSet?: string | string[];
135
+ /**
136
+ * Experimental icon variant: the look every icon of the project draws,
137
+ * by the name the sets declare (`"filled"`). Each set in `iconSet` that
138
+ * declares a variant of that name draws it; a set that does not draws
139
+ * its default look. The main set must declare it. Needs `iconSet`.
140
+ * @experimental May change or be removed in a patch release.
141
+ */
142
+ iconVariant?: string;
135
143
  };
136
144
  }
@@ -61,8 +61,8 @@ export const doc = {
61
61
  name: 'variants',
62
62
  type: 'string[]',
63
63
  description:
64
- 'The named looks the set offers, in lower-kebab case, such as `outline` and `solid`. Icon size is never a variant: CSS sets it. Omit it when the set has one look.',
65
- example: "['outline', 'solid']",
64
+ "The named looks the set offers, in lower-kebab case, such as `outline` and `filled`. Icon size is never a variant: CSS sets it. Omit it when the set has one look. A project's `experimental.iconVariant` names one of these, so call each look what it draws rather than the library's word for it.",
65
+ example: "['outline', 'filled']",
66
66
  },
67
67
  {
68
68
  name: 'default',
@@ -75,7 +75,7 @@ export const doc = {
75
75
  name: 'themeMap',
76
76
  type: 'string',
77
77
  description:
78
- 'The export that maps each built-in icon definition to its artwork, keyed by exactly the built-in definitions in `map`.',
78
+ "The export that maps each built-in icon definition to its artwork, keyed by exactly the built-in definitions in `map`. When it is `themeIcons`, the generated module writes it, and beside it one map for each other variant an icon draws, `themeIcons<Variant>` (`themeIconsFilled`), whose entries draw that variant, or an icon's own export when it has none.",
79
79
  example: "'themeIcons'",
80
80
  },
81
81
  {
@@ -1 +1 @@
1
- {"id":"89d2a4ff8b5cd2aebb53074936fa8ae0dbc79aa8aed8d9eb4190379be9318a34"}
1
+ {"id":"2fd8a67997004e9c76567e608ad5c22de55d671da1515ff9f3a6c2e68b8ca46d"}
@@ -296,14 +296,23 @@ export function registerExperimentalIcon(group, program) {
296
296
  return answered;
297
297
  }
298
298
 
299
- const {status, projectSet, reason, sets, withdrawn, order, next} =
300
- result.data;
299
+ const {
300
+ status,
301
+ projectSet,
302
+ reason,
303
+ sets,
304
+ withdrawn,
305
+ order,
306
+ next,
307
+ variant,
308
+ } = result.data;
301
309
  emit(
302
310
  section('Icon sets'),
303
311
  record({
304
312
  status,
305
313
  projectSet,
306
314
  ...(order.length > 1 ? {order: order.join(' > ')} : {}),
315
+ ...(variant ? {variant} : {}),
307
316
  reason,
308
317
  }),
309
318
  ...(next ? [text(`[warn] ${next}`)] : []),
@@ -326,6 +335,7 @@ export function registerExperimentalIcon(group, program) {
326
335
  'iconCount',
327
336
  'default',
328
337
  'variants',
338
+ ...(variant ? ['look'] : []),
329
339
  'builtIn',
330
340
  'definitions',
331
341
  'own',
@@ -396,10 +406,15 @@ export function registerExperimentalIcon(group, program) {
396
406
  fn: iconUseFn,
397
407
  action: (
398
408
  /** @type {string} */ set,
399
- /** @type {{backup?: string[]}} */ options,
409
+ /** @type {{backup?: string[], variant?: string}} */ options,
400
410
  ) =>
401
411
  run(
402
- () => iconUse(set, {cwd: process.cwd(), backups: options.backup ?? []}),
412
+ () =>
413
+ iconUse(set, {
414
+ cwd: process.cwd(),
415
+ backups: options.backup ?? [],
416
+ variant: options.variant,
417
+ }),
403
418
  ({data}) => {
404
419
  /** @type {Array<{iconSet: string, set: string}>} */
405
420
  const backups = data.backups;
@@ -410,9 +425,18 @@ export function registerExperimentalIcon(group, program) {
410
425
  backups.length > 0
411
426
  ? `main set ${main}, then ${backups.map(each => `"${each.iconSet}" (${each.set})`).join(', then ')}`
412
427
  : main;
428
+ const written =
429
+ backups.length > 0
430
+ ? [data.iconSet, ...backups.map(each => each.iconSet)]
431
+ : data.iconSet;
432
+ const setChanged =
433
+ JSON.stringify(data.previous) !== JSON.stringify(written);
434
+ const variantChanged = data.previousVariant !== data.variant;
435
+ /** @type {Array<{set: string, variant: string | null}>} */
436
+ const looks = data.looks ?? [];
413
437
  emit(
414
438
  text(
415
- data.changed
439
+ setChanged
416
440
  ? `[ok] experimental.iconSet is now ${order} in ${data.config}${data.created ? ', created' : ''}.`
417
441
  : `[ok] experimental.iconSet already names ${order} in ${data.config}.`,
418
442
  ),
@@ -423,9 +447,40 @@ export function registerExperimentalIcon(group, program) {
423
447
  ),
424
448
  ]
425
449
  : []),
426
- ...(data.previous && data.changed
450
+ ...(data.previous && setChanged
427
451
  ? [text(`It was ${shown(data.previous)}.`)]
428
452
  : []),
453
+ ...(data.variant
454
+ ? [
455
+ text(
456
+ variantChanged
457
+ ? `[ok] experimental.iconVariant is now "${data.variant}"${data.previousVariant ? ` (it was "${data.previousVariant}")` : ''}: every icon draws its ${data.variant} look where its set has one.`
458
+ : `[ok] experimental.iconVariant already names "${data.variant}".`,
459
+ ),
460
+ ]
461
+ : data.previousVariant
462
+ ? [
463
+ text(
464
+ `[ok] Removed experimental.iconVariant (it was "${data.previousVariant}"): each set draws its default look.`,
465
+ ),
466
+ ]
467
+ : []),
468
+ ...looks
469
+ .filter(look => look.variant !== data.variant)
470
+ .map(look =>
471
+ text(
472
+ look.variant
473
+ ? `[note] ${look.set} declares no "${data.variant}" variant: its icons draw its default look, ${look.variant}.`
474
+ : `[note] ${look.set} declares no variants: its icons draw its one look.`,
475
+ ),
476
+ ),
477
+ ...(data.themeMap
478
+ ? [
479
+ text(
480
+ `A theme draws the built-in icons in this look with \`icons: ${data.themeMap.export}\` (import {${data.themeMap.export}} from '${data.themeMap.module}').`,
481
+ ),
482
+ ]
483
+ : []),
429
484
  ...(data.next ? [text(`[warn] ${data.next}`)] : []),
430
485
  ...(data.warning ? [text(`[warn] ${data.warning}`)] : []),
431
486
  );
@@ -887,6 +887,7 @@ export function registerExperimentalTheme(group, program) {
887
887
  `[ok] made theme "${r.data.theme}"${r.data.like ? ` on top of ${r.data.like}` : ''}`,
888
888
  ...project(/** @type {any} */ (r.data)),
889
889
  `Tip: ${EDITOR} set ${r.data.theme} <thing> <value>, or ${HOW} "<what you want>"`,
890
+ `Look at it after each change (this changes nothing in your app): ${EDITOR} show ${r.data.theme} --png writes themes/${r.data.theme}/preview.png and sheet.png from real components; open the PNGs and check them against the request`,
890
891
  ],
891
892
  ),
892
893
  }),
@@ -908,7 +909,9 @@ export function registerExperimentalTheme(group, program) {
908
909
  // or `--color-accent:#e11d48`) is the token and its value; with no
909
910
  // value otherwise, the missing-argument error the parser gives.
910
911
  if (!value.length) {
911
- const pasted = /^(--[a-z0-9-]+)\s*:\s*(.+?);?\s*$/i.exec(thing);
912
+ // Any thing, a token or a dial, with `:` or `=` (`accent: red`,
913
+ // `--color-accent=#e11d48`).
914
+ const pasted = /^(\S+?)\s*[:=]\s*(.+?);?\s*$/.exec(thing);
912
915
  if (!pasted)
913
916
  return missingSetValue(
914
917
  editor.commands.find(c => c.name() === 'set'),
@@ -1125,7 +1128,11 @@ export function registerExperimentalTheme(group, program) {
1125
1128
  : [
1126
1129
  ...project(/** @type {any} */ (r.data)),
1127
1130
  // A folder add refuses has a note that says why instead.
1128
- ...(r.data.notes.some(n => n.includes(' refuses this folder'))
1131
+ ...(r.data.notes.some(
1132
+ n =>
1133
+ n.includes(' refuses this folder') ||
1134
+ n.startsWith('no preview here; '),
1135
+ )
1129
1136
  ? []
1130
1137
  : [
1131
1138
  `Tip: ${PREFIX} preview add${o.path == null ? '' : ` --path ${quoteCommandArgument(String(o.path))}`}`,
@@ -9,18 +9,25 @@ export const doc = {
9
9
  displayName: 'astryx experimental icon use',
10
10
  namespace: 'cli/commands',
11
11
  stability: 'experimental',
12
- summary: "Choose the project's main icon set and backups",
12
+ summary: "Choose the project's main icon set, backups, and look",
13
13
  description:
14
- "Writes `experimental.iconSet` in astryx.config, so copied templates and blocks use that set's icons. With `--backup`, it writes a list: the main set first, then each backup in the order given. A copied template takes each icon from the first set in the list that has its meaning. Every set must be installed. Experimental: it may change or be removed in a patch release.",
14
+ "Writes `experimental.iconSet` in astryx.config, so copied templates and blocks use that set's icons. With `--backup`, it writes a list: the main set first, then each backup in the order given. A copied template takes each icon from the first set in the list that has its meaning. With `--variant`, it also writes `experimental.iconVariant`, the look every icon draws (`outline`, `filled`): one of the main set's variants. Each set in the list draws its variant of that name, or its default look when it declares none, and the receipt names the theme map that draws the built-in icons in that look. Without `--variant`, it removes `experimental.iconVariant`, so each set draws its default look: run it with every set and the look you want. Every set must be installed. Experimental: it may change or be removed in a patch release.",
15
15
  fn: 'iconUse',
16
16
  args: [{name: 'set', param: 'set', required: true}],
17
- options: [{flag: '--backup <set...>', param: 'options.backups'}],
17
+ options: [
18
+ {flag: '--backup <set...>', param: 'options.backups'},
19
+ {flag: '--variant <variant>', param: 'options.variant'},
20
+ ],
18
21
  examples: [
19
22
  {label: 'Use a set', cli: 'astryx experimental icon use outline'},
20
23
  {
21
24
  label: 'Use a main set with a backup',
22
25
  cli: 'astryx experimental icon use outline --backup @acme/brand-icons/brand',
23
26
  },
27
+ {
28
+ label: 'Draw every icon in one look',
29
+ cli: 'astryx experimental icon use brand --variant filled',
30
+ },
24
31
  {
25
32
  label: 'Name its package',
26
33
  cli: 'astryx experimental icon use @acme/icons/outline',
@@ -30,11 +37,11 @@ export const doc = {
30
37
  exitCodes: [
31
38
  {
32
39
  code: 0,
33
- when: 'experimental.iconSet is written, or already names the sets',
40
+ when: 'experimental.iconSet (and experimental.iconVariant) is written, or already names the sets and the look',
34
41
  },
35
42
  {
36
43
  code: 1,
37
- when: 'a set is not installed, two packages ship it, a set is named twice, the config cannot be updated (not a static object literal, or it spreads another object, which you then edit by hand), or the config is protected (a symbolic link, or marked generated, vendored, or ignored: `ERR_CODEMOD_PROTECTED`, naming the declaration)',
44
+ when: 'a set is not installed, two packages ship it, a set is named twice, the main set declares no variant `--variant` names, the config cannot be updated (not a static object literal, or it spreads another object, which you then edit by hand), or the config is protected (a symbolic link, or marked generated, vendored, or ignored: `ERR_CODEMOD_PROTECTED`, naming the declaration)',
38
45
  },
39
46
  ],
40
47
  related: ['experimental icon', 'template'],
@@ -11,7 +11,7 @@ export const doc = {
11
11
  stability: 'experimental',
12
12
  summary: 'Start a theme in themes/<theme>/, optionally on a built-in theme',
13
13
  description:
14
- 'Makes themes/<theme>/ with <theme>.settings.json (the settings this command owns), the generated <theme>.settings.ts, <theme>.theme.ts (which extends it and is yours), and the built <theme>.css and <theme>.js (build them again with `astryx experimental theme compile themes/<theme>/<theme>.theme.ts`, which checks the editor settings first), then writes preview.html, the sample app page with the theme. --like builds on a built-in theme (neutral, stone, matcha, y2k, gothic, chocolate, butter; its package must be installed); without it, or with --like none, the theme starts from Astryx defaults. Any `set` dial can be a flag too (--accent "#7c3aed" --font inter --corners round --vibrancy 60 ...): the same names, values and checks as `set`, all applied in the one build, with one result that lists them. Change the base later with `astryx experimental theme editor set <theme> base <theme|none>`. Afterwards, <theme>.theme.ts is yours: it extends the generated <theme>.settings.ts, and every later change rewrites only the settings files, so your own edits in <theme>.theme.ts survive. A theme name is lowercase letters, digits and dashes, starts with a letter, has 64 characters at most, and is not the name of a built-in theme or a name Windows reserves for a device (con, prn, aux, nul, com1-com9, lpt1-lpt9). Experimental: it may change or be removed in a patch release.',
14
+ 'Makes themes/<theme>/ with <theme>.settings.json (the settings this command owns), the generated <theme>.settings.ts, <theme>.theme.ts (which extends it and is yours), and the built <theme>.css and <theme>.js (build them again with `astryx experimental theme compile themes/<theme>/<theme>.theme.ts`, which checks the editor settings first), then writes preview.html, the sample app page with the theme. --like builds on a built-in theme (neutral, stone, matcha, y2k, gothic, chocolate, butter; its package must be installed); without it, or with --like none, the theme starts from Astryx defaults. Any `set` dial can be a flag too (--accent "#7c3aed" --font inter --corners round --vibrancy 60 ...): the same names, values and checks as `set`, all applied in the one build, with one result that lists them. Change the base later with `astryx experimental theme editor set <theme> base <theme|none>`. Afterwards, <theme>.theme.ts is yours: it extends the generated <theme>.settings.ts, and every later change rewrites only the settings files, so your own edits in <theme>.theme.ts survive. A theme name is lowercase letters, digits and dashes, starts with a letter, has 64 characters at most, and is not the name of a built-in theme or a name Windows reserves for a device (con, prn, aux, nul, com1-com9, lpt1-lpt9). Experimental: it may change or be removed in a patch release. The result ends with `wiring`: `astryx theme add <theme>` for the app copy of the theme (src/themes/<theme>/, a standard local theme every build writes), the `mode` of a one-mode theme for the `<Theme>`, and what builds it; only when a folder of yours holds src/themes/<theme>/ does it give the imports in the root file and the `<Theme>` by hand.',
15
15
  fn: 'themeEditNew',
16
16
  args: [
17
17
  {
@@ -31,7 +31,7 @@ export const doc = {
31
31
  flag: '--png',
32
32
  param: 'options.png',
33
33
  description:
34
- 'Also take PNG pictures of the previews (light and dark), with a Playwright installed in the project or a Chrome or Chromium found on the machine; without one, the result says how to get it. Each picture carries the editor stamp and is recorded, by name and content, in themes/<theme>/<theme>.pictures.json; a file of yours named like a picture (preview.png, sheet.png) is never written over: no picture is taken, and the result names the file',
34
+ 'Also take PNG pictures of the previews (light and dark), with no dev server running: it needs a Playwright installed in the project or a Chrome or Chromium found on the machine, and adds a few seconds while the browser starts; without one, the result says how to get it. Each picture carries the editor stamp and is recorded, by name and content, in themes/<theme>/<theme>.pictures.json; a file of yours named like a picture (preview.png, sheet.png) is never written over: no picture is taken, and the result names the file',
35
35
  },
36
36
  {
37
37
  flag: '--corners <rung>',
@@ -67,7 +67,7 @@ export const doc = {
67
67
  flag: '--png',
68
68
  param: 'options.png',
69
69
  description:
70
- 'Also take PNG pictures of the previews (light and dark), with a Playwright installed in the project or a Chrome or Chromium found on the machine; without one, the result says how to get it. Each picture carries the editor stamp and is recorded, by name and content, in themes/<theme>/<theme>.pictures.json; a file of yours named like a picture (preview.png, sheet.png) is never written over: no picture is taken, and the result names the file',
70
+ 'Also take PNG pictures of the previews (light and dark), with no dev server running: it needs a Playwright installed in the project or a Chrome or Chromium found on the machine, and adds a few seconds while the browser starts; without one, the result says how to get it. Each picture carries the editor stamp and is recorded, by name and content, in themes/<theme>/<theme>.pictures.json; a file of yours named like a picture (preview.png, sheet.png) is never written over: no picture is taken, and the result names the file',
71
71
  },
72
72
  ],
73
73
  examples: [
@@ -12,7 +12,7 @@ export const doc = {
12
12
  summary:
13
13
  'Every setting, key values, problems the theme caused, and the theme-building page with every component',
14
14
  description:
15
- 'Lists every setting with where it applies and its source (dial, token or property), the resolved value of key tokens in each mode, the colors (the vibrancy; each color with its seed and the shade each token uses in light and dark, marked when an exact token setting wins; any shade moved so text reads), contrast problems this theme caused versus its base, font notes, and last the generated color files. Writes two self-contained HTML files: preview.html (the sample app page) and sheet.html (the theme-building page: every component grouped, each variant side by side, overlays open, and real template pages, with an auto/light/dark switch). A theme with no build is built first, and an in-app preview (`preview add`) of the theme has its route and Colors page rewritten. --section limits the sheet to one section. An own change to <theme>.theme.ts since the last build is built first, and the colors mark where it wins over a generated shade; a theme source that no longer builds, or a token in it that is not text, is refused (ERR_THEME_INVALID, exit 1) and the folder stays as it was. Experimental: it may change or be removed in a patch release.',
15
+ 'Lists every setting with where it applies and its source (dial, token or property), the resolved value of key tokens in each mode, the colors (the vibrancy; each color with its seed and the shade each token uses in light and dark, marked when an exact token setting wins; any shade moved so text reads), contrast problems this theme caused versus its base, font notes, and last the generated color files. Writes two self-contained HTML files: preview.html (the sample app page) and sheet.html (the theme-building page: every component grouped, each variant side by side, overlays open, and real template pages, with an auto/light/dark switch). A theme with no build is built first, and an in-app preview (`preview add`) of the theme has its route and Colors page rewritten. --section limits the sheet to one section. An own change to <theme>.theme.ts since the last build is built first, and the colors mark where it wins over a generated shade; a theme source that no longer builds, or a token in it that is not text, is refused (ERR_THEME_INVALID, exit 1) and the folder stays as it was. Experimental: it may change or be removed in a patch release. The result ends with `wiring`: `astryx theme add <theme>` for the app copy of the theme (src/themes/<theme>/, a standard local theme every build writes), the `mode` of a one-mode theme for the `<Theme>`, and what builds it; only when a folder of yours holds src/themes/<theme>/ does it give the imports in the root file and the `<Theme>` by hand.',
16
16
  fn: 'themeEditShow',
17
17
  args: [
18
18
  {
@@ -32,7 +32,7 @@ export const doc = {
32
32
  flag: '--png',
33
33
  param: 'options.png',
34
34
  description:
35
- 'Also take PNG pictures of the previews (light and dark), with a Playwright installed in the project or a Chrome or Chromium found on the machine; without one, the result says how to get it. Each picture carries the editor stamp and is recorded, by name and content, in themes/<theme>/<theme>.pictures.json; a file of yours named like a picture (preview.png, sheet.png) is never written over: no picture is taken, and the result names the file',
35
+ 'Also take PNG pictures of the previews (light and dark), with no dev server running: it needs a Playwright installed in the project or a Chrome or Chromium found on the machine, and adds a few seconds while the browser starts; without one, the result says how to get it. Each picture carries the editor stamp and is recorded, by name and content, in themes/<theme>/<theme>.pictures.json; a file of yours named like a picture (preview.png, sheet.png) is never written over: no picture is taken, and the result names the file',
36
36
  },
37
37
  ],
38
38
  examples: [
@@ -66,7 +66,7 @@ export const doc = {
66
66
  flag: '--png',
67
67
  param: 'options.png',
68
68
  description:
69
- 'Also take PNG pictures of the previews (light and dark), with a Playwright installed in the project or a Chrome or Chromium found on the machine; without one, the result says how to get it. Each picture carries the editor stamp and is recorded, by name and content, in themes/<theme>/<theme>.pictures.json; a file of yours named like a picture (preview.png, sheet.png) is never written over: no picture is taken, and the result names the file',
69
+ 'Also take PNG pictures of the previews (light and dark), with no dev server running: it needs a Playwright installed in the project or a Chrome or Chromium found on the machine, and adds a few seconds while the browser starts; without one, the result says how to get it. Each picture carries the editor stamp and is recorded, by name and content, in themes/<theme>/<theme>.pictures.json; a file of yours named like a picture (preview.png, sheet.png) is never written over: no picture is taken, and the result names the file',
70
70
  },
71
71
  ],
72
72
  examples: [
@@ -15,7 +15,7 @@ export const doc = {
15
15
  summary:
16
16
  'Make and change a theme one checked change at a time (dials, tokens, part styles), with previews',
17
17
  description:
18
- "A type-safe compiler for themes. A theme lives in themes/<theme>/: <theme>.settings.json holds the checked settings and is owned by this command; <theme>.settings.ts is generated from it on every change; <theme>.theme.ts extends it, is written once and is yours to edit; <theme>.css and <theme>.js are built from it; build them again with `astryx experimental theme compile themes/<theme>/<theme>.theme.ts`, which checks the editor's settings first. Every change is CHECKED against what the installed Core's components really read (derived from Core itself, version for version, and cached under node_modules/.cache/) and against the token's type; a change that cannot take effect is refused, nothing is written, and the error leads with the command that works. The thing you set is a dial (a big move with named rungs: corners, spacing, font, headings, text-size, base, mode; or a color: accent, neutral, success, warning, danger, info, each generating its light and dark shades from one color for the color tokens, and vibrancy, how saturated they are), a design token by name, or a CSS property on a part. Where it applies: --on <part|group>, --when <prop>:<value>, --state <state>, --mode light|dark, --only. Every accepted change rebuilds and writes preview.html (the sample app page); `show` adds the theme-building page with every component. PNG pictures only with --png. Commands on one theme run one after the other, through a lock in node_modules/.cache/astryx-theme/ of the project; when node_modules cannot be written (a read-only install), changes are refused and `show` still reads the last build. `how` answers everything else: what a part, group, setting or aspect does, how the colors are made, plain-words questions (with exact commands), a picture's colors, and lists of what you can set. Experimental: it may change or be removed in a patch release.",
18
+ "A type-safe compiler for themes. A theme lives in themes/<theme>/: <theme>.settings.json holds the checked settings and is owned by this command; <theme>.settings.ts is generated from it on every change; <theme>.theme.ts extends it, is written once and is yours to edit; <theme>.css and <theme>.js are built from it; build them again with `astryx experimental theme compile themes/<theme>/<theme>.theme.ts`, which checks the editor's settings first. Every build also writes the theme's app copy, src/themes/<theme>/: a standard local theme (descriptor, source, built module and stylesheets), never edited by hand, so `astryx theme add <theme>` puts the theme into the app and `theme use`, `remove` and `list` take it as they take any local theme. A folder there that is not the editor's copy is left alone, and `new` and `show` then print the import lines by hand instead (`wiring`). Every change is CHECKED against what the installed Core's components really read (derived from Core itself, version for version, and cached under node_modules/.cache/) and against the token's type; a change that cannot take effect is refused, nothing is written, and the error leads with the command that works. The thing you set is a dial (a big move with named rungs: corners, spacing, font, headings, text-size, base, mode; or a color: accent, neutral, success, warning, danger, info, each generating its light and dark shades from one color for the color tokens, and vibrancy, how saturated they are), a design token by name, or a CSS property on a part. Where it applies: --on <part|group>, --when <prop>:<value>, --state <state>, --mode light|dark, --only. Every accepted change rebuilds and writes preview.html (the sample app page); `show` adds the theme-building page with every component. PNG pictures only with --png. Commands on one theme run one after the other, through a lock in node_modules/.cache/astryx-theme/ of the project; when node_modules cannot be written (a read-only install), changes are refused and `show` still reads the last build. `how` answers everything else: what a part, group, setting or aspect does, how the colors are made, plain-words questions (with exact commands), a picture's colors, and lists of what you can set. Experimental: it may change or be removed in a patch release.",
19
19
  subcommands: ['new', 'set', 'undo', 'show', 'how'],
20
20
  examples: [
21
21
  {
@@ -12,7 +12,7 @@ export const doc = {
12
12
  summary:
13
13
  'Make a new starter app with the theme preview inside, ready to install and run',
14
14
  description:
15
- "Writes a new starter app into <dir> (Next.js app router, Core and the neutral theme, with the Astryx packages pinned to this CLI's release), with the theme preview route and its default pages (the sample app page and every component grouped) in src/app/theme-preview/. With --theme, the theme folder is copied into the app's themes/ and the pages wear it; a base theme or font package it needs is added to package.json. No install runs: it prints the install and dev commands and the page to open. <dir> must be new or empty, inside the current folder; a folder that is not empty is refused, with a free folder name to use instead. Every check runs before the first write, so a refusal changes nothing. Later pages go in with `experimental theme preview add`, run in the new app. Every open font the theme names is added to package.json, at the version this project has or a pinned range, and the route imports it; a theme with generated colors gets the Colors page too, and a one-mode theme starts the route in its mode. The app is written into a temp folder beside the folder and moved into place, so a failure leaves nothing behind. A folder holding only .git, .DS_Store or Thumbs.db counts as empty. The folder is refused when it is a file, a dangling link, inside this app's routes folder, themes/, node_modules/ or Next's build folder (.next/, out/ or the distDir next.config names), or written with Windows separators, white space at either end or a name too long. A theme whose build is missing or older than its settings is built first, with a note. The app's home page links to the preview, and its .gitignore leaves out node_modules, next-env.d.ts and *.tsbuildinfo. Inside a project with a tsconfig.json, a note says to exclude the new folder. It takes one folder; more arguments are refused. With a theme, it holds that theme's lock while it builds and copies it, so an `editor set` on the same theme waits for it. A folder given from a subfolder of the project is taken from where it was given. An app is refused in public/ (served as files at the site root) and under a name Windows does not allow; a base theme passed to --theme is named as a package theme, installed or not, with the command that adds it. Experimental: it may change or be removed in a patch release.",
15
+ "Writes a new starter app into <dir> (Next.js app router, Core and the neutral theme, with the Astryx packages pinned to this CLI's release; with --theme, Core and the base theme are pinned to the versions this project has, the ones the copied build was made on, with a note), with the theme preview route and its default pages (the sample app page and every component grouped) in src/app/theme-preview/. With --theme, the theme folder is copied into the app's themes/ and the pages wear it; a base theme or font package it needs is added to package.json. No install runs: it prints the install and dev commands and the page to open. <dir> must be new or empty, inside the current folder; a folder that is not empty is refused, with a free folder name to use instead. Every check runs before the first write, so a refusal changes nothing. Later pages go in with `experimental theme preview add`, run in the new app. Every open font the theme names is added to package.json, at the version this project has or a pinned range, and the route imports it; a theme with generated colors gets the Colors page too, and a one-mode theme starts the route in its mode. The app is written into a temp folder beside the folder and moved into place, so a failure leaves nothing behind. A folder holding only .git, .DS_Store or Thumbs.db counts as empty. The folder is refused when it is a file, a dangling link, inside this app's routes folder, themes/, node_modules/ or Next's build folder (.next/, out/ or the distDir next.config names), or written with Windows separators, white space at either end or a name too long. A theme whose build is missing or older than its settings is built first, with a note. The app's home page links to the preview, and its .gitignore leaves out node_modules, next-env.d.ts and *.tsbuildinfo. Inside a project with a tsconfig.json, a note says to exclude the new folder. It takes one folder; more arguments are refused. With a theme, it holds that theme's lock while it builds and copies it, so an `editor set` on the same theme waits for it. A folder given from a subfolder of the project is taken from where it was given. An app is refused in public/ (served as files at the site root) and under a name Windows does not allow; a base theme passed to --theme is named as a package theme, installed or not, with the command that adds it. Experimental: it may change or be removed in a patch release.",
16
16
  fn: 'themeEditPreviewApp',
17
17
  args: [
18
18
  {
@@ -11,9 +11,10 @@ export const doc = {
11
11
  name: 'theme',
12
12
  displayName: 'astryx theme',
13
13
  namespace: 'cli/commands',
14
- summary: 'Add, switch, build, and author themes',
14
+ summary:
15
+ 'Add, switch, build, and author themes (to make or change one, use experimental theme editor)',
15
16
  description:
16
- 'The theme command group. Add built themes to an app, choose its default, remove them, list available and added themes, or eject source to make a local fork. The authoring commands build themes, generate palettes, write the annotated template, and list component theme targets.',
17
+ 'To make or change a theme (colors, fonts, corners, spacing, a look from a picture), use the experimental theme editor: `astryx experimental theme editor new <name> --like neutral`, then `editor set` and `editor how`; it writes and checks the theme, and `astryx theme add <name>` wires it. Look at every change with `astryx experimental theme editor show <name> --png` (pictures; nothing changes in the app): a theme change is not done until you have looked. The theme command group. Add built themes to an app, choose its default, remove them, list available and added themes, or eject source to make a local fork. The authoring commands build themes, generate palettes, write the annotated template, and list component theme targets.',
17
18
  subcommands: [
18
19
  'build',
19
20
  'list',
@@ -26,6 +27,10 @@ export const doc = {
26
27
  'targets',
27
28
  ],
28
29
  examples: [
30
+ {
31
+ label: 'Make or change a theme (the experimental theme editor)',
32
+ cli: 'astryx experimental theme editor new brand --like neutral',
33
+ },
29
34
  {label: 'List available and added themes', cli: 'astryx theme list'},
30
35
  {label: 'Import a theme into the app', cli: 'astryx theme add ocean'},
31
36
  {label: 'Choose the default', cli: 'astryx theme use ocean'},
@@ -79,7 +79,6 @@ import {
79
79
  printBatchTrailer,
80
80
  printCompactTrailer,
81
81
  setEditorFolderListener,
82
- setPrivateVarErrorListener,
83
82
  themeBuildFamily,
84
83
  themeBuildForReport,
85
84
  themeBuildWithHandOff,
@@ -670,12 +669,28 @@ function printThemeApp(result) {
670
669
  );
671
670
  }
672
671
 
672
+ /**
673
+ * The base the experimental theme editor can start an ejected theme from,
674
+ * by the editor's own check: the theme's slug when it is a built-in base the
675
+ * editor knows (LIKE) and its package is installed where the command runs
676
+ * (baseInstalled), else neutral. Loaded only for an eject.
677
+ * @param {{slug?: string | null}} data
678
+ * @param {string} cwd
679
+ * @returns {Promise<string>}
680
+ */
681
+ export async function editorBaseFor(data, cwd) {
682
+ if (!data.slug) return 'neutral';
683
+ const {editorBaseIn} = await import('../../../api/theme-edit/_adapter.mjs');
684
+ return editorBaseIn(data.slug, cwd);
685
+ }
686
+
673
687
  /**
674
688
  * Print every field in a source-fork receipt.
675
689
  * @param {import('../../../api/theme/theme.type.mjs').ThemeEjectResponse} result
676
690
  * @param {ThemeCommandWords} [words]
691
+ * @param {string} [like] the base the theme editor line starts from
677
692
  */
678
- function printThemeEject(result, words = THEME_WORDS) {
693
+ function printThemeEject(result, words = THEME_WORDS, like = 'neutral') {
679
694
  const {data} = result;
680
695
  emit(
681
696
  section('Ejected theme'),
@@ -705,6 +720,12 @@ function printThemeEject(result, words = THEME_WORDS) {
705
720
  text(
706
721
  `This is a local fork. Build it with ${buildStep(getCliInvocation(), words, path.join(data.outputDir, data.entry))}.`,
707
722
  ),
723
+ // One theme-only line (AST-017 FR27): the editor builds only on an
724
+ // Astryx theme package, so a theme from another package starts from
725
+ // neutral.
726
+ text(
727
+ `To make or change a theme: the experimental theme editor, ${getCliInvocation()} experimental theme editor new <name> --like ${like}.`,
728
+ ),
708
729
  );
709
730
  }
710
731
 
@@ -925,6 +946,10 @@ function registerPaletteCommands(
925
946
  text(
926
947
  'Review and edit the candidate before adopting it as theme-owned palette data.',
927
948
  ),
949
+ // One theme-only line (AST-017 FR27).
950
+ text(
951
+ `To make or change a theme: the experimental theme editor makes the palettes from one color, ${getCliInvocation(process.cwd())} experimental theme editor set <name> accent <color>.`,
952
+ ),
928
953
  );
929
954
  return NO_RESULT_SET;
930
955
  },
@@ -1196,10 +1221,6 @@ function registerThemeCommands(theme, program, docs, words) {
1196
1221
  );
1197
1222
  });
1198
1223
  }
1199
- let privateVarError = false;
1200
- setPrivateVarErrorListener(() => {
1201
- privateVarError = true;
1202
- });
1203
1224
 
1204
1225
  const refused = await words.preflight?.(files, {
1205
1226
  cwd: process.cwd(),
@@ -1224,13 +1245,12 @@ function registerThemeCommands(theme, program, docs, words) {
1224
1245
  );
1225
1246
  if (json) jsonOut(result);
1226
1247
  if (
1227
- privateVarError ||
1228
- (result.type === 'theme.build.check' &&
1229
- !(
1230
- /** @type {import('../../../api/theme/theme.type.mjs').ThemeBuildCheckResponse} */ (
1231
- result
1232
- ).data.upToDate
1233
- ))
1248
+ result.type === 'theme.build.check' &&
1249
+ !(
1250
+ /** @type {import('../../../api/theme/theme.type.mjs').ThemeBuildCheckResponse} */ (
1251
+ result
1252
+ ).data.upToDate
1253
+ )
1234
1254
  ) {
1235
1255
  process.exitCode = 1;
1236
1256
  }
@@ -1422,10 +1442,8 @@ function registerThemeCommands(theme, program, docs, words) {
1422
1442
  );
1423
1443
  }
1424
1444
 
1425
- // Private-variable diagnostics are build failures even though the released
1426
- // output and generated files stay unchanged. Stale --check output is also
1427
- // a failure after its receipt has been emitted.
1428
- if (privateVarError || (options.check && stale)) {
1445
+ // Stale --check output is a failure after its receipt has been emitted.
1446
+ if (options.check && stale) {
1429
1447
  process.exitCode = 1;
1430
1448
  }
1431
1449
 
@@ -1624,7 +1642,12 @@ function registerThemeCommands(theme, program, docs, words) {
1624
1642
  }
1625
1643
  await warnOnThemeIntegrationIssues(json);
1626
1644
  if (json) jsonOut(result);
1627
- else printThemeEject(result, words);
1645
+ else
1646
+ printThemeEject(
1647
+ result,
1648
+ words,
1649
+ await editorBaseFor(result.data, process.cwd()),
1650
+ );
1628
1651
  return NO_RESULT_SET;
1629
1652
  },
1630
1653
  });
@@ -1 +1 @@
1
- [{"name":"init","term":"init [options]","description":"Initialize the design system in your project"},{"name":"component","term":"component [options] [names...]","description":"List components or print component docs"},{"name":"docs","term":"docs [options] [topic] [section]","description":"Print reference docs"},{"name":"blog","term":"blog [slug]","description":"Read the Astryx blog from the published feed"},{"name":"swizzle","term":"swizzle [options] [component]","description":"Copy component source for customization"},{"name":"gap-report","term":"gap-report [options] [component]","description":"Report a missing component or feature to the package that owns it"},{"name":"template","term":"template [options] [name] [path]","description":"List, show, or scaffold page and block templates"},{"name":"upgrade","term":"upgrade [options]","description":"Update your code after upgrading Astryx, and refresh ShadCN-copied components"},{"name":"theme","term":"theme","description":"Add, switch, build, and author themes"},{"name":"integration","term":"integration","description":"Author and verify an Astryx integration package"},{"name":"hook","term":"hook [options] [name]","description":"List hooks or print hook docs"},{"name":"discover","term":"discover [options] [query]","description":"Browse and search integrations: the ones you have and the ones you could add"},{"name":"search","term":"search [options] <query...>","description":"Search components, hooks, docs, templates, and themes in one ranked list"},{"name":"build","term":"build [options] [query]","description":"Build a page: the template to start from, or the workflow playbook (no query)"},{"name":"doctor","term":"doctor [options]","description":"Diagnose Astryx projects and integration packages"},{"name":"experimental","term":"experimental","description":"[experimental] Try features that may change in a patch release: icon sets, page rendering, checked theme editing"},{"name":"manifest","term":"manifest","description":"Print the full CLI capability manifest (use with --json)"},{"name":"help","term":"help","description":"Show all commands"}]
1
+ [{"name":"init","term":"init [options]","description":"Initialize the design system in your project"},{"name":"component","term":"component [options] [names...]","description":"List components or print component docs"},{"name":"docs","term":"docs [options] [topic] [section]","description":"Print reference docs"},{"name":"blog","term":"blog [slug]","description":"Read the Astryx blog from the published feed"},{"name":"swizzle","term":"swizzle [options] [component]","description":"Copy component source for customization"},{"name":"gap-report","term":"gap-report [options] [component]","description":"Report a missing component or feature to the package that owns it"},{"name":"template","term":"template [options] [name] [path]","description":"List, show, or scaffold page and block templates"},{"name":"upgrade","term":"upgrade [options]","description":"Update your code after upgrading Astryx, and refresh ShadCN-copied components"},{"name":"theme","term":"theme","description":"Add, switch, build, and author themes (to make or change one, use experimental theme editor)"},{"name":"integration","term":"integration","description":"Author and verify an Astryx integration package"},{"name":"hook","term":"hook [options] [name]","description":"List hooks or print hook docs"},{"name":"discover","term":"discover [options] [query]","description":"Browse and search integrations: the ones you have and the ones you could add"},{"name":"search","term":"search [options] <query...>","description":"Search components, hooks, docs, templates, and themes in one ranked list"},{"name":"build","term":"build [options] [query]","description":"Build a page: the template to start from, or the workflow playbook (no query)"},{"name":"doctor","term":"doctor [options]","description":"Diagnose Astryx projects and integration packages"},{"name":"experimental","term":"experimental","description":"[experimental] Try features that may change in a patch release: icon sets, page rendering, checked theme editing"},{"name":"manifest","term":"manifest","description":"Print the full CLI capability manifest (use with --json)"},{"name":"help","term":"help","description":"Show all commands"}]