@astryxdesign/cli 0.6.6-canary.fa4c5fc → 0.6.6-canary.fb78fa1

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 (82) hide show
  1. package/README.md +83 -83
  2. package/api/build/_adapter.d.mts +15 -0
  3. package/api/build/_adapter.mjs +22 -0
  4. package/api/build/build.doc.mjs +1 -1
  5. package/api/build/build.type.d.mts +4 -0
  6. package/api/build/build.type.mjs +1 -0
  7. package/api/build/help/help.mjs +1 -1
  8. package/api/build/kit/kit.mjs +12 -1
  9. package/api/doctor/_adapter.d.mts +7 -0
  10. package/api/doctor/_adapter.mjs +48 -0
  11. package/api/doctor/doctor.mjs +5 -3
  12. package/api/doctor/theme-checks.d.mts +12 -0
  13. package/api/doctor/theme-checks.mjs +115 -1
  14. package/api/doctor/theme-checks.test.mjs +142 -1
  15. package/api/init/run/run.mjs +1 -0
  16. package/api/layout/check/check.d.mts +1 -0
  17. package/api/layout/check/check.mjs +1 -0
  18. package/api/layout/expand/expand.d.mts +1 -0
  19. package/api/layout/expand/expand.mjs +1 -0
  20. package/api/layout/grammar/grammar.d.mts +1 -0
  21. package/api/layout/grammar/grammar.mjs +1 -0
  22. package/api/layout/layoutCheck.doc.mjs +1 -1
  23. package/api/layout/layoutExpand.doc.mjs +1 -1
  24. package/api/layout/layoutGrammar.doc.mjs +1 -1
  25. package/api/search/search.d.mts +43 -0
  26. package/api/search/search.domain-priority.test.mjs +247 -0
  27. package/api/search/search.mjs +170 -29
  28. package/api/template/copy/copy.mjs +12 -0
  29. package/api/template/template.doc.mjs +1 -1
  30. package/api/template/template.type.d.mts +3 -0
  31. package/api/template/template.type.mjs +3 -0
  32. package/api/theme/build/build.d.mts +70 -0
  33. package/api/theme/build/build.mjs +205 -41
  34. package/api/theme/build/font-warning.d.mts +11 -0
  35. package/api/theme/build/font-warning.mjs +28 -3
  36. package/assets/docs/author-a-theme.doc.mjs +13 -8
  37. package/assets/docs/styling-overview.doc.mjs +1 -1
  38. package/assets/docs/theme.doc.dense.mjs +1 -1
  39. package/assets/docs/theme.doc.zh.mjs +1 -1
  40. package/assets/docs/tree/layout.doc.mjs +20 -0
  41. package/assets/docs/use-a-theme.doc.mjs +6 -3
  42. package/assets/templates/pages/incident-console/page.tsx +1 -1
  43. package/assets/templates/pages/table-comparison/template.doc.mjs +1 -1
  44. package/authoring/doctypes/template/type.ts +1 -0
  45. package/clients/cli/commands/blog.mjs +3 -3
  46. package/clients/cli/commands/build-theme.adaptations.test.mjs +1 -1
  47. package/clients/cli/commands/build-theme.ascii-output.test.mjs +11 -1
  48. package/clients/cli/commands/build-theme.batch-report.test.mjs +335 -0
  49. package/clients/cli/commands/build-theme.font-warning.test.mjs +36 -7
  50. package/clients/cli/commands/build-theme.import-path.test.mjs +3 -3
  51. package/clients/cli/commands/build-theme.mjs +68 -18
  52. package/clients/cli/commands/build-theme.watch.test.mjs +33 -0
  53. package/clients/cli/commands/build.mjs +1 -0
  54. package/clients/cli/commands/docs.test.mjs +2 -1
  55. package/clients/cli/commands/doctor.doc.mjs +1 -1
  56. package/clients/cli/commands/doctor.test.mjs +17 -1
  57. package/clients/cli/commands/import-hint-correctness.test.mjs +23 -0
  58. package/clients/cli/commands/layout-check.doc.mjs +1 -0
  59. package/clients/cli/commands/layout-expand.doc.mjs +1 -0
  60. package/clients/cli/commands/layout-grammar.doc.mjs +1 -0
  61. package/clients/cli/commands/layout.deprecation-lifecycle.test.mjs +140 -0
  62. package/clients/cli/commands/layout.doc.mjs +1 -0
  63. package/clients/cli/commands/layout.mjs +6 -11
  64. package/clients/cli/commands/search.test.mjs +6 -2
  65. package/clients/cli/commands/swizzle.routing.test.mjs +2 -1
  66. package/clients/cli/commands/template.mjs +4 -3
  67. package/clients/cli/commands/theme-add-lifecycle.test.mjs +9 -6
  68. package/clients/cli/commands/theme-build.doc.mjs +3 -1
  69. package/clients/cli/commands/upgrade.config-ordering.test.mjs +2 -1
  70. package/clients/cli/index.mjs +1 -1
  71. package/clients/cli/lib/component-format.test.mjs +1 -1
  72. package/clients/cli/lib/define-command.mjs +4 -0
  73. package/foundation/agent-docs/agent-docs.mjs +4 -1
  74. package/foundation/agent-docs/agent-docs.test.mjs +18 -0
  75. package/foundation/discovery/template-needs.d.mts +31 -0
  76. package/foundation/discovery/template-needs.mjs +156 -0
  77. package/foundation/discovery/template-needs.test.mjs +203 -0
  78. package/foundation/env/package-manager.d.mts +28 -8
  79. package/foundation/env/package-manager.mjs +49 -10
  80. package/foundation/env/package-manager.test.mjs +93 -1
  81. package/foundation/response/response-types.doc.mjs +4 -4
  82. package/package.json +9 -9
@@ -194,7 +194,7 @@ export const doc = {
194
194
  {
195
195
  value: 'template.copy',
196
196
  description:
197
- 'A scaffold receipt: template id, output directory, written file name, file count, and demoMediaReplaced (how many Astryx demo media references were replaced with placeholders for you to swap for your own media). The envelope\'s package names the npm package that owns the template.',
197
+ 'A scaffold receipt: template id, output directory, written file name, file count, demoMediaReplaced (how many Astryx demo media references were replaced with placeholders), notes (setup notes naming what the template needs that the project lacks — missing packages, missing StyleX compiler; empty when satisfied), missingPackages (external package names the template imports that are not in the project), and installCommand (a ready-to-run install command with the detected package manager and workspace version ranges; null when nothing is missing). The envelope\'s package names the npm package that owns the template.',
198
198
  },
199
199
 
200
200
  {
@@ -357,17 +357,17 @@ export const doc = {
357
357
  {
358
358
  value: 'layout.expand',
359
359
  description:
360
- 'The expansion: parsed form, generated TSX code, componentsUsed, states (count of useState hooks scaffolded), todos, blocksReferenced (each {name, mode}), warnings, written (the output path, or null when nothing was written), and demoMediaReplaced (count of demo media placeholders).',
360
+ 'The expansion: parsed form, generated TSX code, componentsUsed, states (count of useState hooks scaffolded), todos, blocksReferenced (each {name, mode}), warnings, written (the output path, or null when nothing was written), and demoMediaReplaced (count of demo media placeholders). Carries `meta.deprecations` with DEP-0006 and its replacement commands.',
361
361
  },
362
362
  {
363
363
  value: 'layout.check',
364
364
  description:
365
- 'The validation result: a valid flag, the detected form, errors (each with line/col, message, formatted text, and suggestions), warnings, and the expression re-printed in both canonical surfaces (compact and outline).',
365
+ 'The validation result: a valid flag, the detected form, errors (each with line/col, message, formatted text, and suggestions), warnings, and the expression re-printed in both canonical surfaces (compact and outline). Carries `meta.deprecations` with DEP-0006 and its replacement commands.',
366
366
  },
367
367
  {
368
368
  value: 'layout.grammar',
369
369
  description:
370
- "The XLE/XLO grammar cheatsheet: a text field with the full reference plus an aliases map (short name → canonical component) generated from this install's registry.",
370
+ "The XLE/XLO grammar cheatsheet: a text field with the full reference plus an aliases map (short name → canonical component) generated from this install's registry. Carries `meta.deprecations` with DEP-0006 and its replacement commands.",
371
371
  },
372
372
  ],
373
373
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.6.6-canary.fa4c5fc",
3
+ "version": "0.6.6-canary.fb78fa1",
4
4
  "displayName": "CLI",
5
5
  "description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
6
6
  "author": "Meta Open Source",
@@ -101,10 +101,10 @@
101
101
  "zod": "^4.4.3"
102
102
  },
103
103
  "peerDependencies": {
104
- "@astryxdesign/charts": "0.6.6-canary.fa4c5fc",
105
- "@astryxdesign/core": "0.6.6-canary.fa4c5fc",
106
- "@astryxdesign/lab": "0.6.6-canary.fa4c5fc",
107
- "@astryxdesign/theme-neutral": "0.6.6-canary.fa4c5fc"
104
+ "@astryxdesign/charts": "0.6.6-canary.fb78fa1",
105
+ "@astryxdesign/core": "0.6.6-canary.fb78fa1",
106
+ "@astryxdesign/lab": "0.6.6-canary.fb78fa1",
107
+ "@astryxdesign/theme-neutral": "0.6.6-canary.fb78fa1"
108
108
  },
109
109
  "peerDependenciesMeta": {
110
110
  "@astryxdesign/charts": {
@@ -121,10 +121,10 @@
121
121
  }
122
122
  },
123
123
  "devDependencies": {
124
- "@astryxdesign/charts": "0.6.6-canary.fa4c5fc",
125
- "@astryxdesign/core": "0.6.6-canary.fa4c5fc",
126
- "@astryxdesign/lab": "0.6.6-canary.fa4c5fc",
127
- "@astryxdesign/theme-neutral": "0.6.6-canary.fa4c5fc",
124
+ "@astryxdesign/charts": "0.6.6-canary.fb78fa1",
125
+ "@astryxdesign/core": "0.6.6-canary.fb78fa1",
126
+ "@astryxdesign/lab": "0.6.6-canary.fb78fa1",
127
+ "@astryxdesign/theme-neutral": "0.6.6-canary.fb78fa1",
128
128
  "@heroicons/react": "^2.2.0",
129
129
  "@stylexjs/stylex": "^0.19.0",
130
130
  "@types/babel__core": "^7.20.5",