@astryxdesign/cli 0.7.15 → 0.7.16-canary.g56680f6

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 (117) hide show
  1. package/README.md +5 -3
  2. package/api/component/_adapter.d.mts +1 -1
  3. package/api/component/_adapter.mjs +28 -1
  4. package/api/doctor/_adapter.d.mts +17 -0
  5. package/api/doctor/_adapter.mjs +35 -0
  6. package/api/doctor/doctor.mjs +18 -4
  7. package/api/integration/validate-integration.mjs +1 -1
  8. package/api/theme/_adapter.d.mts +5 -2
  9. package/api/theme/_adapter.mjs +43 -12
  10. package/api/theme/build/build.d.mts +15 -23
  11. package/api/theme/build/build.mjs +185 -39
  12. package/api/theme/eject/eject.mjs +22 -1
  13. package/api/theme/template/template.d.mts +19 -0
  14. package/api/theme/template/template.mjs +91 -19
  15. package/api/theme/theme.type.d.mts +5 -1
  16. package/api/theme/theme.type.mjs +2 -1
  17. package/api/theme/themeBuild.doc.mjs +3 -3
  18. package/api/theme/themeEject.doc.mjs +1 -1
  19. package/api/theme/themeTemplate.doc.mjs +9 -3
  20. package/api/theme-edit/_adapter.d.mts +21 -0
  21. package/api/theme-edit/_adapter.mjs +176 -22
  22. package/api/theme-edit/_check.d.mts +7 -0
  23. package/api/theme-edit/_check.mjs +1050 -173
  24. package/api/theme-edit/_color.d.mts +2 -8
  25. package/api/theme-edit/_color.mjs +292 -219
  26. package/api/theme-edit/_compiler.d.mts +1 -0
  27. package/api/theme-edit/_compiler.mjs +20 -1
  28. package/api/theme-edit/_context.d.mts +21 -0
  29. package/api/theme-edit/_context.mjs +235 -12
  30. package/api/theme-edit/_css.d.mts +50 -1
  31. package/api/theme-edit/_css.mjs +310 -28
  32. package/api/theme-edit/_edit.d.mts +9 -0
  33. package/api/theme-edit/_edit.mjs +907 -123
  34. package/api/theme-edit/_how-commands.d.mts +11 -26
  35. package/api/theme-edit/_how-commands.mjs +30 -2
  36. package/api/theme-edit/_how-question.d.mts +7 -0
  37. package/api/theme-edit/_how-question.mjs +1304 -176
  38. package/api/theme-edit/_how.mjs +144 -30
  39. package/api/theme-edit/_palette.d.mts +6 -0
  40. package/api/theme-edit/_palette.mjs +164 -62
  41. package/api/theme-edit/_parts.d.mts +16 -0
  42. package/api/theme-edit/_parts.mjs +49 -1
  43. package/api/theme-edit/_png.mjs +19 -14
  44. package/api/theme-edit/_preview-app.mjs +514 -27
  45. package/api/theme-edit/_preview.d.mts +11 -0
  46. package/api/theme-edit/_preview.mjs +245 -24
  47. package/api/theme-edit/_project.d.mts +11 -0
  48. package/api/theme-edit/_project.mjs +35 -9
  49. package/api/theme-edit/_settings.d.mts +122 -5
  50. package/api/theme-edit/_settings.mjs +1363 -71
  51. package/api/theme-edit/_tables.d.mts +19 -0
  52. package/api/theme-edit/_tables.mjs +205 -149
  53. package/api/theme-edit/_vet.d.mts +42 -0
  54. package/api/theme-edit/_vet.mjs +144 -0
  55. package/api/theme-edit/theme-edit.type.d.mts +2 -1
  56. package/api/theme-edit/theme-edit.type.mjs +1 -1
  57. package/api/theme-edit/themeEditNew.doc.mjs +1 -1
  58. package/api/theme-edit/themeEditShow.doc.mjs +11 -3
  59. package/assets/docs/tree/single-component.doc.mjs +11 -2
  60. package/assets/docs/tree/tokens-and-setup.doc.mjs +39 -3
  61. package/assets/docs.generated.json +2 -2
  62. package/assets/preview-app/next.config.mjs +7 -1
  63. package/assets/preview-app/src/app/globals.css +1 -0
  64. package/assets/self-audit.generated.json +1 -1
  65. package/assets/templates/blocks/components/Table/ColumnsVirtualizationHookUsage.doc.mjs +14 -0
  66. package/assets/templates/blocks/components/Table/ColumnsVirtualizationHookUsage.tsx +53 -0
  67. package/assets/templates/blocks/components/Table/InfiniteScrollHookUsage.doc.mjs +14 -0
  68. package/assets/templates/blocks/components/Table/InfiniteScrollHookUsage.tsx +33 -0
  69. package/assets/templates/components.generated.json +1 -1
  70. package/assets/templates/pages/dashboard/page.tsx +1 -1
  71. package/authoring/doctypes/_schema.d.mts +52 -5
  72. package/authoring/doctypes/_schema.mjs +62 -7
  73. package/authoring/doctypes/base/type.ts +10 -0
  74. package/authoring/doctypes/component/component.doc.mjs +1 -1
  75. package/authoring/doctypes/function/function.doc.mjs +6 -0
  76. package/authoring/doctypes/function/type.ts +3 -0
  77. package/authoring/doctypes/legacy.mjs +5 -1
  78. package/authoring/index.d.ts +1 -0
  79. package/clients/cli/build-id.generated.json +1 -1
  80. package/clients/cli/commands/doctor.doc.mjs +2 -2
  81. package/clients/cli/commands/experimental/theme.mjs +188 -37
  82. package/clients/cli/commands/experimental-theme-compile.doc.mjs +2 -2
  83. package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +1 -1
  84. package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +2 -2
  85. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +1 -1
  86. package/clients/cli/commands/experimental-theme-editor.doc.mjs +1 -1
  87. package/clients/cli/commands/experimental-theme-eject.doc.mjs +1 -1
  88. package/clients/cli/commands/experimental-theme-template.doc.mjs +2 -2
  89. package/clients/cli/commands/theme-build.doc.mjs +2 -2
  90. package/clients/cli/commands/theme-eject.doc.mjs +1 -1
  91. package/clients/cli/commands/theme-template.doc.mjs +3 -1
  92. package/clients/cli/commands/theme.mjs +93 -10
  93. package/clients/cli/formatters/index.mjs +7 -4
  94. package/clients/cli/lib/cli-error.mjs +9 -3
  95. package/clients/cli/lib/component-format.mjs +27 -9
  96. package/clients/cli/lib/json-shim.mjs +40 -2
  97. package/clients/cli/manifest.generated.json +1 -1
  98. package/foundation/config/project.mjs +50 -14
  99. package/foundation/discovery/theme-discovery.d.mts +5 -1
  100. package/foundation/discovery/theme-discovery.mjs +24 -3
  101. package/foundation/fs/gather-cache.d.mts +9 -2
  102. package/foundation/fs/gather-cache.mjs +36 -10
  103. package/foundation/fs/paths.d.mts +16 -0
  104. package/foundation/fs/paths.mjs +25 -0
  105. package/foundation/render/host-exit.d.mts +8 -0
  106. package/foundation/render/host-exit.mjs +11 -0
  107. package/foundation/render/page-host.mjs +56 -10
  108. package/foundation/render/page-worker.mjs +14 -0
  109. package/foundation/render/render-page.mjs +37 -2
  110. package/foundation/response/error-codes.d.mts +2 -1
  111. package/foundation/response/error-codes.d.ts +1 -0
  112. package/foundation/response/error-codes.doc.mjs +5 -0
  113. package/foundation/response/error-codes.mjs +3 -0
  114. package/foundation/response/json.d.mts +15 -0
  115. package/foundation/response/json.mjs +52 -1
  116. package/foundation/response/response-types.doc.mjs +1 -1
  117. package/package.json +7 -6
@@ -753,7 +753,7 @@ export default function DashboardTemplate() {
753
753
  <MetricCard
754
754
  key={m.label}
755
755
  {...m}
756
- sparkline={sparklines[start + i]}
756
+ sparkline={sparklines[start + i] ?? []}
757
757
  />
758
758
  ))}
759
759
  </Grid>
@@ -207,6 +207,26 @@ export const NamespaceContentBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
207
207
  full: "full";
208
208
  }>>;
209
209
  }, z.core.$strict>], "type">;
210
+ /**
211
+ * The example fields of any doc, checked before the permissive legacy union so
212
+ * a bad `kind` fails with its own message, not as a union mismatch.
213
+ */
214
+ export const DocExampleKindsSchema: z.ZodObject<{
215
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
216
+ kind: z.ZodOptional<z.ZodEnum<{
217
+ setup: "setup";
218
+ demo: "demo";
219
+ }>>;
220
+ }, z.core.$loose>>>;
221
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
222
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
223
+ kind: z.ZodOptional<z.ZodEnum<{
224
+ setup: "setup";
225
+ demo: "demo";
226
+ }>>;
227
+ }, z.core.$loose>>>;
228
+ }, z.core.$loose>>>;
229
+ }, z.core.$loose>;
210
230
  /**
211
231
  * New-format stamped component doc (`type: 'component'`): one component's
212
232
  * `props`, or the `components` a group doc documents together. These are the
@@ -217,7 +237,12 @@ export const ComponentDocKindSchema: z.ZodObject<{
217
237
  type: z.ZodLiteral<"component">;
218
238
  theming: z.ZodOptional<z.ZodUnknown>;
219
239
  playground: z.ZodOptional<z.ZodUnknown>;
220
- examples: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
240
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
241
+ kind: z.ZodOptional<z.ZodEnum<{
242
+ setup: "setup";
243
+ demo: "demo";
244
+ }>>;
245
+ }, z.core.$loose>>>;
221
246
  replaces: z.ZodOptional<z.ZodString>;
222
247
  deprecated: z.ZodOptional<z.ZodObject<{
223
248
  replacement: z.ZodString;
@@ -255,6 +280,12 @@ export const ComponentDocKindSchema: z.ZodObject<{
255
280
  }, z.core.$loose>>>;
256
281
  components: z.ZodOptional<z.ZodArray<z.ZodObject<{
257
282
  name: z.ZodString;
283
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
284
+ kind: z.ZodOptional<z.ZodEnum<{
285
+ setup: "setup";
286
+ demo: "demo";
287
+ }>>;
288
+ }, z.core.$loose>>>;
258
289
  }, z.core.$loose>>>;
259
290
  }, z.core.$loose>;
260
291
  /** New-format stamped function doc (`type: 'function'`). */
@@ -272,6 +303,15 @@ export const FunctionDocKindSchema: z.ZodObject<{
272
303
  type: z.ZodString;
273
304
  description: z.ZodString;
274
305
  }, z.core.$loose>>;
306
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
307
+ label: z.ZodOptional<z.ZodString>;
308
+ code: z.ZodString;
309
+ result: z.ZodOptional<z.ZodString>;
310
+ kind: z.ZodOptional<z.ZodEnum<{
311
+ setup: "setup";
312
+ demo: "demo";
313
+ }>>;
314
+ }, z.core.$loose>>>;
275
315
  name: z.ZodString;
276
316
  displayName: z.ZodOptional<z.ZodString>;
277
317
  description: z.ZodOptional<z.ZodString>;
@@ -981,6 +1021,7 @@ export type ReferenceSection = import("./reference/type.js").ReferenceSection;
981
1021
  export type ReferenceDoc = import("./reference/type.js").ReferenceDoc;
982
1022
  export type SingleComponentDoc = import("./component/type.js").SingleComponentDoc;
983
1023
  export type ComponentPropDoc = import("./base/type.js").ComponentPropDoc;
1024
+ export type ExampleKind = import("./base/type.js").ExampleKind;
984
1025
  export type HookDoc = import("./hook/type.js").HookDoc;
985
1026
  export type FunctionDoc = import("./function/type.js").FunctionDoc;
986
1027
  export type SchemaDoc = import("./schema/type.js").SchemaDoc;
@@ -994,9 +1035,10 @@ export type _SectionContentBlockDriftLock = import("../_shared/contract.js").Exp
994
1035
  /**
995
1036
  * A stamped component doc as it loads. The loader accepts what the unstamped
996
1037
  * format always accepted, so stamping an existing doc never breaks it:
997
- * `displayName` may be missing, `category` is any string, `usage`, `theming`,
998
- * `playground` and `examples` pass through unchecked, and a doc has `props`,
999
- * `components`, or both; each `components` entry needs only a `name`. Every
1038
+ * `displayName` may be missing, `category` is any string, `usage`, `theming`
1039
+ * and `playground` pass through unchecked, an example is checked only for its
1040
+ * `kind`, and a doc has `props`, `components`, or both; each `components` entry
1041
+ * needs only a `name`. Every
1000
1042
  * other field matches the published type.
1001
1043
  */
1002
1044
  export type LoadedComponentDoc = Omit<SingleComponentDoc, "type" | "displayName" | "category" | "usage" | "theming" | "examples" | "playground" | "props"> & {
@@ -1005,11 +1047,16 @@ export type LoadedComponentDoc = Omit<SingleComponentDoc, "type" | "displayName"
1005
1047
  category?: string;
1006
1048
  usage?: unknown;
1007
1049
  theming?: unknown;
1008
- examples?: unknown[];
1050
+ examples?: Array<{
1051
+ kind?: ExampleKind;
1052
+ }>;
1009
1053
  playground?: unknown;
1010
1054
  props?: ComponentPropDoc[];
1011
1055
  components?: Array<{
1012
1056
  name: string;
1057
+ examples?: Array<{
1058
+ kind?: ExampleKind;
1059
+ }>;
1013
1060
  }>;
1014
1061
  };
1015
1062
  export type _ComponentDocDriftLock = import("../_shared/contract.js").Expect<import("../_shared/contract.js").MutuallyAssignable<import("../_shared/contract.js").NamedFields<z.infer<typeof ComponentDocKindSchema>>, import("../_shared/contract.js").NamedFields<LoadedComponentDoc>>>;
@@ -20,6 +20,7 @@ import {z} from 'zod';
20
20
  /** @typedef {import('./reference/type.js').ReferenceDoc} ReferenceDoc */
21
21
  /** @typedef {import('./component/type.js').SingleComponentDoc} SingleComponentDoc */
22
22
  /** @typedef {import('./base/type.js').ComponentPropDoc} ComponentPropDoc */
23
+ /** @typedef {import('./base/type.js').ExampleKind} ExampleKind */
23
24
  /** @typedef {import('./hook/type.js').HookDoc} HookDoc */
24
25
  /** @typedef {import('./function/type.js').FunctionDoc} FunctionDoc */
25
26
  /** @typedef {import('./schema/type.js').SchemaDoc} SchemaDoc */
@@ -290,6 +291,43 @@ const ReturnSchema = z
290
291
  })
291
292
  .passthrough();
292
293
 
294
+ /** Every example kind, in the order the docs list them. */
295
+ const EXAMPLE_KINDS = /** @type {const} */ (['demo', 'setup']);
296
+
297
+ /**
298
+ * An example's `kind`. The message names both values and what each one does,
299
+ * because an author who misspells it needs to pick again.
300
+ */
301
+ const ExampleKindSchema = z.enum(EXAMPLE_KINDS, {
302
+ error: issue =>
303
+ `unknown example kind ${JSON.stringify(issue.input)}; use 'demo' (may render as a live preview) or 'setup' (code only)`,
304
+ });
305
+
306
+ /**
307
+ * One component example as it loads. Only `kind` is checked: the rest passes
308
+ * through unchecked, as component examples always have.
309
+ */
310
+ const ComponentExampleSchema = z
311
+ .object({kind: ExampleKindSchema.optional()})
312
+ .passthrough();
313
+
314
+ /**
315
+ * The example fields of any doc, checked before the permissive legacy union so
316
+ * a bad `kind` fails with its own message, not as a union mismatch.
317
+ */
318
+ export const DocExampleKindsSchema = z
319
+ .object({
320
+ examples: z.array(ComponentExampleSchema).optional(),
321
+ components: z
322
+ .array(
323
+ z
324
+ .object({examples: z.array(ComponentExampleSchema).optional()})
325
+ .passthrough(),
326
+ )
327
+ .optional(),
328
+ })
329
+ .passthrough();
330
+
293
331
  const BaseDocFields = {
294
332
  ...AuthoredDocGraphFields,
295
333
  name: z.string().min(1, 'name is required'),
@@ -323,7 +361,7 @@ const ComponentBaseSchema = z
323
361
  type: z.literal('component'),
324
362
  theming: z.unknown().optional(),
325
363
  playground: z.unknown().optional(),
326
- examples: z.array(z.unknown()).optional(),
364
+ examples: z.array(ComponentExampleSchema).optional(),
327
365
  replaces: z.string().min(1).optional(),
328
366
  deprecated: ComponentDeprecationSchema.optional(),
329
367
  })
@@ -335,7 +373,10 @@ const ComponentBaseSchema = z
335
373
  * is checked here; the rest passes through, as on an unstamped doc.
336
374
  */
337
375
  const ComponentGroupEntrySchema = z
338
- .object({name: z.string().min(1, 'component name is required')})
376
+ .object({
377
+ name: z.string().min(1, 'component name is required'),
378
+ examples: z.array(ComponentExampleSchema).optional(),
379
+ })
339
380
  .passthrough();
340
381
 
341
382
  /**
@@ -361,16 +402,18 @@ export const ComponentDocKindSchema = ComponentBaseSchema.extend({
361
402
  /**
362
403
  * A stamped component doc as it loads. The loader accepts what the unstamped
363
404
  * format always accepted, so stamping an existing doc never breaks it:
364
- * `displayName` may be missing, `category` is any string, `usage`, `theming`,
365
- * `playground` and `examples` pass through unchecked, and a doc has `props`,
366
- * `components`, or both; each `components` entry needs only a `name`. Every
405
+ * `displayName` may be missing, `category` is any string, `usage`, `theming`
406
+ * and `playground` pass through unchecked, an example is checked only for its
407
+ * `kind`, and a doc has `props`, `components`, or both; each `components` entry
408
+ * needs only a `name`. Every
367
409
  * other field matches the published type.
368
410
  *
369
411
  * @typedef {Omit<SingleComponentDoc,
370
412
  * 'type' | 'displayName' | 'category' | 'usage' | 'theming' | 'examples' | 'playground' | 'props'>
371
413
  * & {type: 'component', displayName?: string, category?: string, usage?: unknown,
372
- * theming?: unknown, examples?: unknown[], playground?: unknown,
373
- * props?: ComponentPropDoc[], components?: Array<{name: string}>}} LoadedComponentDoc
414
+ * theming?: unknown, examples?: Array<{kind?: ExampleKind}>, playground?: unknown,
415
+ * props?: ComponentPropDoc[],
416
+ * components?: Array<{name: string, examples?: Array<{kind?: ExampleKind}>}>}} LoadedComponentDoc
374
417
  */
375
418
  /**
376
419
  * @typedef {import('../_shared/contract.js').Expect<
@@ -397,6 +440,18 @@ export const FunctionDocKindSchema = z
397
440
  type: z.literal('function'),
398
441
  params: z.array(ParamSchema),
399
442
  returns: z.array(FunctionReturnSchema),
443
+ examples: z
444
+ .array(
445
+ z
446
+ .object({
447
+ label: z.string().optional(),
448
+ code: z.string(),
449
+ result: z.string().optional(),
450
+ kind: ExampleKindSchema.optional(),
451
+ })
452
+ .passthrough(),
453
+ )
454
+ .optional(),
400
455
  })
401
456
  .passthrough();
402
457
 
@@ -223,6 +223,14 @@ export interface ComponentAccessibilityThemeCoverage {
223
223
  notMeasured?: string[];
224
224
  }
225
225
 
226
+ /**
227
+ * What an example is for. A `demo` example runs on its own, so a docs site may
228
+ * render it as a live preview. A `setup` example is code to read and copy, such
229
+ * as an app setup file, a server route, or a snippet that uses variables
230
+ * defined elsewhere; it is always shown as code only.
231
+ */
232
+ export type ExampleKind = 'demo' | 'setup';
233
+
226
234
  /**
227
235
  * Code example for a component or sub-component.
228
236
  */
@@ -231,6 +239,8 @@ export interface ComponentExampleDoc {
231
239
  label?: string;
232
240
  /** TSX source for the example. */
233
241
  code: string;
242
+ /** `demo` (default) may render as a live preview; `setup` is code only. */
243
+ kind?: ExampleKind;
234
244
  }
235
245
 
236
246
  /**
@@ -181,7 +181,7 @@ export const doc = {
181
181
  name: 'examples',
182
182
  type: 'ComponentExampleDoc[]',
183
183
  description:
184
- 'Short code examples ({label?, code}) rendered by the CLI after the props table.',
184
+ "Short code examples ({label?, code, kind?}) rendered by the CLI after the props table. `kind` is `'demo'` (the default; it may render as a live preview) or `'setup'` (shown as code, never rendered live).",
185
185
  },
186
186
  {
187
187
  name: 'playground',
@@ -186,6 +186,12 @@ export const doc = {
186
186
  type: 'string',
187
187
  description: 'Optional sample result.',
188
188
  },
189
+ {
190
+ name: 'examples[].kind',
191
+ type: "'demo' | 'setup'",
192
+ description:
193
+ "`'demo'` (the default) may render as a live preview; `'setup'` is shown as code, never rendered live.",
194
+ },
189
195
  ],
190
196
  },
191
197
  {
@@ -12,6 +12,7 @@
12
12
 
13
13
  import type {
14
14
  AuthoredDocGraphFields,
15
+ ExampleKind,
15
16
  HookParamDoc,
16
17
  UsageDoc,
17
18
  } from '../base/type.js';
@@ -41,6 +42,8 @@ export interface FunctionExampleDoc {
41
42
  code: string;
42
43
  /** Optional sample result. */
43
44
  result?: string;
45
+ /** `demo` (default) may render as a live preview; `setup` is code only. */
46
+ kind?: ExampleKind;
44
47
  }
45
48
 
46
49
  /**
@@ -7,7 +7,7 @@
7
7
  * stamped `type`.
8
8
  */
9
9
 
10
- import {LegacyDocSchema} from './_schema.mjs';
10
+ import {DocExampleKindsSchema, LegacyDocSchema} from './_schema.mjs';
11
11
  import {formatZodError} from '../_shared/errors.mjs';
12
12
 
13
13
  /** @typedef {import('./types.js').ComponentDoc} ComponentDoc */
@@ -22,6 +22,10 @@ import {formatZodError} from '../_shared/errors.mjs';
22
22
  * @returns {ComponentDoc | HookDoc | ReferenceDoc}
23
23
  */
24
24
  export function parseLegacyDoc(input, label = 'doc') {
25
+ const kinds = DocExampleKindsSchema.safeParse(input);
26
+ if (!kinds.success) {
27
+ throw new Error(formatZodError(label, kinds.error));
28
+ }
25
29
  const result = LegacyDocSchema.safeParse(input);
26
30
  if (!result.success) {
27
31
  throw new Error(formatZodError(label, result.error));
@@ -123,6 +123,7 @@ export type {
123
123
  ComponentTranslationDoc,
124
124
  ComponentPropDoc,
125
125
  ComponentExampleDoc,
126
+ ExampleKind,
126
127
  ComponentAnatomyElement,
127
128
  ComponentAccessibilityRequirement,
128
129
  ComponentAccessibilityThemeStatus,
@@ -1 +1 @@
1
- {"id":"55cd1168a93331c6c988c853d3f54e3616cc44e464e722005f051d0b646116af"}
1
+ {"id":"53f7b5270285ef368485accabdb7731f8c8ac6ed21710acbb1d9b0df29aadf9c"}
@@ -15,10 +15,10 @@ export const doc = {
15
15
  namespace: 'cli/commands',
16
16
  summary: 'Diagnose Astryx projects and integration packages',
17
17
  description:
18
- 'Runs read-only project health diagnostics by default: Node version, @astryxdesign/core ' +
18
+ 'Runs project health diagnostics by default: Node version, @astryxdesign/core ' +
19
19
  'install and version alignment, theme packages, generated app themes when present, earlier copied-theme migration, config, integrations (every one astryx.config names must load, linked without a config entry, ' +
20
20
  'provider identity, contribution issues), agent docs, core peer dependencies, package manager, ' +
21
- "the docs the CLI reads, the newest release the computer knows of, with the install and upgrade commands when the project's release is older, and every `astryx` command on the search path, warning when the first one is not the Astryx CLI or predates the hand-off. It writes nothing, but loading astryx.config runs that file's code. " +
21
+ "the docs the CLI reads, the newest release the computer knows of, with the install and upgrade commands when the project's release is older, and every `astryx` command on the search path, warning when the first one is not the Astryx CLI or predates the hand-off. Loading astryx.config runs that file's code. " +
22
22
  'The `integration` subcommands provide authoring checks for one integration package. ' +
23
23
  'Outside a project it checks the computer instead: the Node version, the release that answered, ' +
24
24
  "the newest release this computer knows of, with the command that upgrades the CLI installed for the computer when it is older, the astryx commands on the search path, the integrations installed for the computer (warning about one it skips), and whether the computer-level agent text (`{@command init --user}`) is present, matches this release, was edited, or is turned off (info only); when that text names `astryx` and no `astryx` command is on the search path, apart from a package runner's own copy, it says so and names the install step the text records, or npm's when it records none. " +