@astryxdesign/cli 0.7.3-canary.cb489ff → 0.7.3-canary.cde6233

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 (179) hide show
  1. package/README.md +68 -68
  2. package/api/build/blocks/blocks.d.mts +6 -4
  3. package/api/build/blocks/blocks.mjs +103 -20
  4. package/api/build/blocks/blocks.test.mjs +126 -13
  5. package/api/build/blocks/blocks.weights.json +1 -1
  6. package/api/build/kit/answer.d.mts +5 -4
  7. package/api/build/kit/answer.mjs +114 -12
  8. package/api/build/kit/answer.test.mjs +73 -3
  9. package/api/build/kit/signals.d.mts +8 -0
  10. package/api/build/kit/signals.mjs +10 -0
  11. package/api/build/tree.test.mjs +19 -11
  12. package/api/component/component-replacement.test.mjs +1 -0
  13. package/api/component/component.mjs +17 -3
  14. package/api/component/component.test.mjs +15 -0
  15. package/api/component/doc-links.test.mjs +2 -2
  16. package/api/docs/_adapter.d.mts +2 -2
  17. package/api/docs/_adapter.mjs +61 -18
  18. package/api/docs/docs-homes.test.mjs +127 -0
  19. package/api/docs/docs.doc.mjs +3 -3
  20. package/api/docs/docs.test.mjs +28 -18
  21. package/api/docs/integration-tree.test.mjs +20 -20
  22. package/api/docs/integrationDocs.test.mjs +1 -1
  23. package/api/docs/namespace-section.test.mjs +6 -6
  24. package/api/docs/reference-blocks.test.mjs +2 -2
  25. package/api/doctor/doctor.mjs +16 -12
  26. package/api/doctor/doctor.test.mjs +9 -9
  27. package/api/hook/hook.mjs +1 -1
  28. package/api/integration/_adapter.d.mts +8 -0
  29. package/api/integration/_adapter.mjs +21 -1
  30. package/api/integration/authoring-checks.test.mjs +220 -0
  31. package/api/integration/validate-integration-fixes.test.mjs +6 -5
  32. package/api/integration/validate-integration-gaps.test.mjs +9 -1
  33. package/api/integration/validate-integration.d.mts +4 -0
  34. package/api/integration/validate-integration.mjs +72 -7
  35. package/api/integration/validate-integration.type.d.mts +36 -4
  36. package/api/integration/validate-integration.type.mjs +27 -5
  37. package/api/integration/validateIntegration.doc.mjs +1 -1
  38. package/api/search/_adapter.d.mts +16 -0
  39. package/api/search/_adapter.mjs +39 -0
  40. package/api/search/_adapter.test.mjs +173 -0
  41. package/api/search/_candidate-score.mjs +1 -1
  42. package/api/search/_entries.d.mts +11 -0
  43. package/api/search/_entries.mjs +77 -3
  44. package/api/search/_entries.test.mjs +48 -0
  45. package/api/search/_gather-docs.mjs +3 -3
  46. package/api/search/search.doc.mjs +1 -1
  47. package/api/search/search.mjs +6 -2
  48. package/api/search/search.test.mjs +14 -14
  49. package/assets/docs/author-a-theme.doc.mjs +2 -2
  50. package/assets/docs/tree/add-a-component.doc.mjs +1 -1
  51. package/assets/docs/tree/add-a-theme.doc.mjs +1 -1
  52. package/assets/docs/tree/add-a-topic.doc.mjs +2 -2
  53. package/assets/docs/tree/agent-guidance.doc.mjs +1 -1
  54. package/assets/docs/tree/{integrations.doc.mjs → authoring.doc.mjs} +15 -6
  55. package/assets/docs/tree/block-template.doc.mjs +1 -1
  56. package/assets/docs/tree/build-the-template.doc.mjs +1 -1
  57. package/assets/docs/tree/building-blocks.doc.mjs +2 -2
  58. package/assets/docs/tree/check-the-props.doc.mjs +1 -1
  59. package/assets/docs/tree/check-your-docs.doc.mjs +2 -2
  60. package/assets/docs/tree/checks.doc.mjs +3 -3
  61. package/assets/docs/tree/cli-command.doc.mjs +1 -1
  62. package/assets/docs/tree/cli.doc.mjs +1 -1
  63. package/assets/docs/tree/codemods.doc.mjs +1 -1
  64. package/assets/docs/tree/component-family.doc.mjs +1 -1
  65. package/assets/docs/tree/component-imports.doc.mjs +1 -1
  66. package/assets/docs/tree/components.doc.mjs +1 -1
  67. package/assets/docs/tree/configuration.doc.mjs +1 -1
  68. package/assets/docs/tree/debug-and-gap-reports.doc.mjs +1 -1
  69. package/assets/docs/tree/define-the-theme.doc.mjs +1 -1
  70. package/assets/docs/tree/describe-the-component.doc.mjs +1 -1
  71. package/assets/docs/tree/docs.doc.mjs +1 -1
  72. package/assets/docs/tree/document-the-template.doc.mjs +1 -1
  73. package/assets/docs/tree/document-the-theme.doc.mjs +1 -1
  74. package/assets/docs/tree/export-template-assets.doc.mjs +1 -1
  75. package/assets/docs/tree/extend-or-replace.doc.mjs +1 -1
  76. package/assets/docs/{authoring.doc.mjs → tree/field-reference.doc.mjs} +4 -3
  77. package/assets/docs/tree/fonts-and-assets.doc.mjs +1 -1
  78. package/assets/docs/tree/generate-a-palette.doc.mjs +1 -1
  79. package/assets/docs/tree/global-integrations.doc.mjs +2 -2
  80. package/assets/docs/tree/grade-template-with-agent.doc.mjs +4 -4
  81. package/assets/docs/tree/help.doc.mjs +2 -2
  82. package/assets/docs/tree/links.doc.mjs +1 -1
  83. package/assets/docs/tree/package-and-test.doc.mjs +1 -1
  84. package/assets/docs/tree/page-template.doc.mjs +1 -1
  85. package/assets/docs/tree/publishing.doc.mjs +1 -1
  86. package/assets/docs/tree/quick-start.doc.mjs +1 -1
  87. package/assets/docs/tree/replace-a-core-component.doc.mjs +1 -1
  88. package/assets/docs/tree/replace-a-core-template.doc.mjs +1 -1
  89. package/assets/docs/tree/sections-and-placement.doc.mjs +1 -1
  90. package/assets/docs/tree/see-it-in-an-app.doc.mjs +1 -1
  91. package/assets/docs/tree/ship.doc.mjs +2 -2
  92. package/assets/docs/tree/short-and-findable.doc.mjs +1 -1
  93. package/assets/docs/tree/single-component.doc.mjs +1 -1
  94. package/assets/docs/tree/start-a-template.doc.mjs +1 -1
  95. package/assets/docs/tree/subcomponent.doc.mjs +1 -1
  96. package/assets/docs/tree/template-assets.doc.mjs +1 -1
  97. package/assets/docs/tree/template-doc-overview.doc.mjs +2 -2
  98. package/assets/docs/tree/template-fonts.doc.mjs +1 -1
  99. package/assets/docs/tree/template-grading-rubric.doc.mjs +1 -1
  100. package/assets/docs/tree/template-icons.doc.mjs +1 -1
  101. package/assets/docs/tree/template-images-media.doc.mjs +1 -1
  102. package/assets/docs/tree/template-styles.doc.mjs +1 -1
  103. package/assets/docs/tree/templates.doc.mjs +1 -1
  104. package/assets/docs/tree/test-in-an-app.doc.mjs +1 -1
  105. package/assets/docs/tree/test-template-in-app.doc.mjs +1 -1
  106. package/assets/docs/tree/themes.doc.mjs +1 -1
  107. package/assets/docs/tree/troubleshooting.doc.mjs +1 -1
  108. package/assets/docs/tree/upgrading.doc.mjs +1 -1
  109. package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +1 -1
  110. package/assets/docs/tree/verify-packed-template.doc.mjs +1 -1
  111. package/assets/docs/tree/versioning.doc.mjs +5 -1
  112. package/assets/docs/tree/write-good-templates.doc.mjs +1 -1
  113. package/assets/docs/tree/write-the-template-file.doc.mjs +1 -1
  114. package/assets/docs/use-integrations.doc.mjs +120 -0
  115. package/assets/templates/themes/butter/butterTheme.ts +4 -2
  116. package/assets/templates/themes/stone/stoneTheme.ts +4 -2
  117. package/assets/templates/themes/y2k/y2kTheme.ts +4 -2
  118. package/authoring/doctypes/schema/schema.doc.mjs +1 -1
  119. package/authoring/integration/integration.doc.mjs +1 -1
  120. package/authoring/integration/type.ts +1 -1
  121. package/clients/cli/command-result-coverage.test.mjs +6 -5
  122. package/clients/cli/commands/build-theme.color-scheme.test.mjs +1 -1
  123. package/clients/cli/commands/{component/index.mjs → component.mjs} +37 -37
  124. package/clients/cli/commands/component.test.mjs +6 -6
  125. package/clients/cli/commands/docs.doc.mjs +2 -2
  126. package/clients/cli/commands/docs.mjs +1 -1
  127. package/clients/cli/commands/docs.test.mjs +14 -14
  128. package/clients/cli/commands/doctor-integration.test.mjs +49 -1
  129. package/clients/cli/commands/doctor.mjs +10 -0
  130. package/clients/cli/commands/{hook/index.mjs → hook.mjs} +22 -22
  131. package/clients/cli/commands/import-hint-correctness.test.mjs +1 -1
  132. package/clients/cli/commands/integration-check.test.mjs +48 -0
  133. package/clients/cli/commands/integration.doc.mjs +1 -1
  134. package/clients/cli/commands/manifest.doc.mjs +1 -1
  135. package/clients/cli/commands/manifest.mjs +67 -0
  136. package/clients/cli/commands/postinstall.doc.mjs +23 -0
  137. package/clients/cli/commands/postinstall.mjs +31 -0
  138. package/clients/cli/commands/{build-theme.mjs → theme.mjs} +1 -1
  139. package/clients/cli/index.mjs +10 -85
  140. package/clients/cli/lib/component-format.mjs +1 -1
  141. package/clients/cli/lib/define-command.mjs +12 -7
  142. package/clients/cli/lib/exit-codes.test.mjs +5 -0
  143. package/clients/cli/lib/manifest.test.mjs +12 -0
  144. package/clients/cli/lib/welcome-box.mjs +50 -0
  145. package/foundation/agent-docs/agent-docs.mjs +2 -1
  146. package/foundation/agent-docs/agent-docs.test.mjs +5 -4
  147. package/foundation/discovery/authoring-self-docs.d.mts +7 -0
  148. package/foundation/discovery/authoring-self-docs.mjs +16 -4
  149. package/foundation/discovery/authoring-self-docs.test.mjs +15 -3
  150. package/foundation/discovery/authoring-surface.d.mts +1 -1
  151. package/foundation/discovery/authoring-surface.mjs +2 -2
  152. package/foundation/discovery/authoring-surface.test.mjs +1 -1
  153. package/foundation/discovery/cli-self-docs.d.mts +2 -1
  154. package/foundation/discovery/cli-self-docs.mjs +4 -3
  155. package/foundation/discovery/cli-self-docs.test.mjs +2 -2
  156. package/foundation/discovery/runner-allowlist.d.mts +2 -4
  157. package/foundation/discovery/runner-allowlist.mjs +2 -4
  158. package/foundation/discovery/runner-commands.d.mts +77 -0
  159. package/foundation/discovery/runner-commands.mjs +294 -0
  160. package/foundation/discovery/runner-commands.test.mjs +128 -0
  161. package/foundation/discovery/stray-pointers.test.mjs +1 -1
  162. package/foundation/doc-compiler/doc-loads.test.mjs +25 -9
  163. package/foundation/doc-compiler/split-topic-keywords.test.mjs +3 -2
  164. package/foundation/doc-compiler/tree.d.mts +32 -6
  165. package/foundation/doc-compiler/tree.mjs +77 -43
  166. package/foundation/doc-compiler/tree.test.mjs +7 -7
  167. package/foundation/fs/read-record.d.mts +18 -0
  168. package/foundation/fs/read-record.mjs +131 -0
  169. package/foundation/fs/read-record.test.mjs +77 -0
  170. package/foundation/integrations/cli-peer-version.d.mts +36 -0
  171. package/foundation/integrations/cli-peer-version.mjs +132 -0
  172. package/foundation/integrations/cli-peer-version.test.mjs +354 -0
  173. package/foundation/integrations/exports-subpaths.d.mts +57 -0
  174. package/foundation/integrations/exports-subpaths.mjs +113 -0
  175. package/foundation/integrations/public-imports.d.mts +81 -0
  176. package/foundation/integrations/public-imports.mjs +976 -0
  177. package/foundation/integrations/public-imports.test.mjs +868 -0
  178. package/foundation/response/response-types.doc.mjs +1 -1
  179. package/package.json +9 -9
@@ -338,7 +338,7 @@ export const doc = {
338
338
  {
339
339
  value: 'integration.validate',
340
340
  description:
341
- 'The validation result: validated (false when nothing was validated: with no package.json the issues list carries one no_package error so the command exits 1, and with a package.json but no integration manifest the issues list is empty and proves nothing), the package name and version (both null when validated is false) plus issues, an AstryxIntegrationIssue[] of {code, severity: warning | error, message, fix?, file?, line?} (fix: the change that resolves it; file and line: where, relative to the package), and notes when there are any: {code, message} information that fails nothing, such as invalid_cli_command for a malformed cliCommand, and the package layout findings added after the last minor release, each with its fix in the message (duplicate_component_doc, symlinked_root, unreadable_file, invalid_package_json, no_provider_id, source_without_component_doc where a doc and its source still pair), and doc_name_mismatch and unknown_block_component, until they become warnings in the next minor release. When the manifest loads, docTypes checks each doc against its published authoring type: status (checked | skipped), reason, typescript, docs, findings (all warnings, each naming the field and a fix), unchecked, and fixtures (test fixture docs not checked). When the manifest loads, docNames lists the component doc names it could not judge: status (checked), findings (always empty; a doc name the module its import names provably does not export is a doc_name_mismatch note, with its fix in the message) and unchecked ({file, name, reason}: a doc whose name differs from the name it is listed under and whose source exports cannot all be read, such as a re-export from another package). When the manifest loads, blockComponents lists the component names templates give in exampleFor or componentsUsed that could not be judged: status (checked), findings (always empty; a name neither the package nor Core has, and the template does not import, is an unknown_block_component note, with its fix in the message) and unchecked ({file, name, reason}: a name the template may reach through anything other than named imports and re-exports from Core, React, StyleX, local helpers or the entry of the package itself, such as an import from another package, a default or namespace import, an alias of or member read off an imported binding, require() or a dynamic import(), or a local module that cannot be read, or any name Core would have to resolve when Core is not installed).',
341
+ 'The validation result: validated (false when nothing was validated: with no package.json the issues list carries one no_package error so the command exits 1, and with a package.json but no integration manifest the issues list is empty and proves nothing), the package name and version (both null when validated is false) plus issues, an AstryxIntegrationIssue[] of {code, severity: warning | error, message, fix?, file?, line?} (fix: the change that resolves it; file and line: where, relative to the package), and notes when there are any: {code, message} information that fails nothing, such as invalid_cli_command for a malformed cliCommand and cli_peer_version when the running CLI is outside the @astryxdesign/cli peer range of the package, and the package layout findings added after the last minor release, each with its fix in the message (duplicate_component_doc, symlinked_root, unreadable_file, invalid_package_json, no_provider_id, source_without_component_doc where a doc and its source still pair), and doc_name_mismatch and unknown_block_component, until they become warnings in the next minor release. A runner_command note lists each Astryx command a topic writes with a package runner (its file, line and the bare command to write). When the manifest loads, docTypes checks each doc against its published authoring type: status (checked | skipped), reason, typescript, docs, findings (all warnings, each naming the field and a fix), unchecked, and fixtures (test fixture docs not checked). When the manifest loads, docNames lists the component doc names it could not judge: status (checked), findings (always empty; a doc name the module its import names provably does not export is a doc_name_mismatch note, with its fix in the message) and unchecked ({file, name, reason}: a doc whose name differs from the name it is listed under and whose source exports cannot all be read, such as a re-export from another package). When the manifest loads, blockComponents lists the component names templates give in exampleFor or componentsUsed that could not be judged: status (checked), findings (always empty; a name neither the package nor Core has, and the template does not import, is an unknown_block_component note, with its fix in the message) and unchecked ({file, name, reason}: a name the template may reach through anything other than named imports and re-exports from Core, React, StyleX, local helpers or the entry of the package itself, such as an import from another package, a default or namespace import, an alias of or member read off an imported binding, require() or a dynamic import(), or a local module that cannot be read, or any name Core would have to resolve when Core is not installed). Since 0.7.3 each import apps cannot use is also a note (its fix in the message), listed only and failing --strict from the next minor. publicImports ({status: checked, findings: [], unchecked}) lists each import the check could not judge as {file, specifier, reason}; never counted or failed on.',
342
342
  },
343
343
  {
344
344
  value: 'integration.template-conflicts',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.3-canary.cb489ff",
3
+ "version": "0.7.3-canary.cde6233",
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",
@@ -106,10 +106,10 @@
106
106
  "zod": "^4.4.3"
107
107
  },
108
108
  "peerDependencies": {
109
- "@astryxdesign/charts": "0.7.3-canary.cb489ff",
110
- "@astryxdesign/core": "0.7.3-canary.cb489ff",
111
- "@astryxdesign/lab": "0.7.3-canary.cb489ff",
112
- "@astryxdesign/theme-neutral": "0.7.3-canary.cb489ff"
109
+ "@astryxdesign/charts": "0.7.3-canary.cde6233",
110
+ "@astryxdesign/core": "0.7.3-canary.cde6233",
111
+ "@astryxdesign/lab": "0.7.3-canary.cde6233",
112
+ "@astryxdesign/theme-neutral": "0.7.3-canary.cde6233"
113
113
  },
114
114
  "peerDependenciesMeta": {
115
115
  "@astryxdesign/charts": {
@@ -126,10 +126,10 @@
126
126
  }
127
127
  },
128
128
  "devDependencies": {
129
- "@astryxdesign/charts": "0.7.3-canary.cb489ff",
130
- "@astryxdesign/core": "0.7.3-canary.cb489ff",
131
- "@astryxdesign/lab": "0.7.3-canary.cb489ff",
132
- "@astryxdesign/theme-neutral": "0.7.3-canary.cb489ff",
129
+ "@astryxdesign/charts": "0.7.3-canary.cde6233",
130
+ "@astryxdesign/core": "0.7.3-canary.cde6233",
131
+ "@astryxdesign/lab": "0.7.3-canary.cde6233",
132
+ "@astryxdesign/theme-neutral": "0.7.3-canary.cde6233",
133
133
  "@heroicons/react": "^2.2.0",
134
134
  "@stylexjs/stylex": "^0.19.0",
135
135
  "@types/babel__core": "^7.20.5",