@astryxdesign/cli 0.7.16 → 0.7.17-canary.g0404a74
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.
- package/README.md +76 -86
- package/api/build/_adapter.d.mts +17 -0
- package/api/build/_adapter.mjs +53 -34
- package/api/build/blocks/blocks.d.mts +7 -5
- package/api/build/blocks/blocks.mjs +113 -26
- package/api/build/blocks/blocks.weights.json +1 -1
- package/api/build/build.doc.mjs +4 -3
- package/api/build/build.type.d.mts +2 -2
- package/api/build/build.type.mjs +3 -3
- package/api/build/kit/kind.d.mts +2 -1
- package/api/build/kit/kind.mjs +199 -10
- package/api/build/kit/kit.mjs +6 -4
- package/api/build/kit/rank.d.mts +6 -4
- package/api/build/kit/rank.mjs +132 -28
- package/api/build/kit/signals.d.mts +7 -1
- package/api/build/kit/signals.mjs +21 -10
- package/api/build/kit/start.d.mts +5 -4
- package/api/build/kit/start.mjs +14 -9
- package/api/build/kit/weights.d.mts +39 -3
- package/api/build/kit/weights.json +1 -1
- package/api/build/kit/weights.mjs +351 -46
- package/api/build/kit/word-model.d.mts +23 -0
- package/api/build/kit/word-model.mjs +46 -0
- package/api/build/kit/words.d.mts +86 -0
- package/api/build/kit/words.mjs +241 -1
- package/api/build/tree.mjs +1 -1
- package/api/component/__fixtures__/resolutions/modules.txt +5 -6
- package/api/component/_adapter.d.mts +26 -2
- package/api/component/_adapter.mjs +135 -8
- package/api/component/component.mjs +14 -1
- package/api/component/list/list.d.mts +1 -1
- package/api/component/list/list.mjs +48 -6
- package/api/discover/_adapter.d.mts +11 -1
- package/api/discover/_adapter.mjs +95 -1
- package/api/discover/detail/item/item.mjs +5 -0
- package/api/discover/discover.mjs +12 -3
- package/api/discover/discover.type.d.mts +16 -3
- package/api/discover/discover.type.mjs +13 -3
- package/api/discover/search/search.mjs +3 -2
- package/api/docs/_adapter.d.mts +57 -2
- package/api/docs/_adapter.mjs +266 -33
- package/api/docs/_entry-names-lazily.d.mts +22 -0
- package/api/docs/_entry-names-lazily.mjs +25 -0
- package/api/docs/_entry-names.d.mts +23 -0
- package/api/docs/_entry-names.mjs +105 -0
- package/api/docs/docs.d.mts +3 -0
- package/api/docs/docs.doc.mjs +7 -1
- package/api/docs/docs.mjs +12 -0
- package/api/docs/docs.type.d.mts +5 -0
- package/api/docs/docs.type.mjs +2 -0
- package/api/docs/node/node.mjs +1 -1
- package/api/doctor/_adapter.d.mts +54 -5
- package/api/doctor/_adapter.mjs +162 -11
- package/api/doctor/built-checks.mjs +40 -14
- package/api/doctor/doctor.d.mts +15 -3
- package/api/doctor/doctor.doc.mjs +1 -1
- package/api/doctor/doctor.mjs +31 -7
- package/api/doctor/theme-checks.d.mts +35 -3
- package/api/doctor/theme-checks.mjs +377 -29
- package/api/hook/_adapter.d.mts +10 -4
- package/api/hook/_adapter.mjs +41 -5
- package/api/hook/detail/detail.mjs +5 -2
- package/api/hook/detail/params/params.mjs +10 -3
- package/api/icon/_records.mjs +2 -1
- package/api/index.d.mts +2 -0
- package/api/index.mjs +2 -0
- package/api/integration/_adapter.d.mts +44 -0
- package/api/integration/_adapter.mjs +77 -1
- package/api/integration/add-helpers.mjs +10 -0
- package/api/integration/authoring-checks.mjs +11 -8
- package/api/integration/example-scope.d.mts +14 -0
- package/api/integration/example-scope.mjs +44 -0
- package/api/integration/example-scope.type.d.mts +29 -0
- package/api/integration/example-scope.type.mjs +25 -0
- package/api/integration/integrationExampleScope.doc.d.mts +11 -0
- package/api/integration/integrationExampleScope.doc.mjs +59 -0
- package/api/integration/pack-check.mjs +16 -1
- package/api/integration/validate-integration.d.mts +18 -6
- package/api/integration/validate-integration.mjs +129 -15
- package/api/integration/validate-integration.type.d.mts +22 -0
- package/api/integration/validate-integration.type.mjs +2 -1
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/render/_adapter.mjs +591 -195
- package/api/render/render.doc.mjs +11 -3
- package/api/render/render.type.d.mts +53 -1
- package/api/render/render.type.mjs +32 -2
- package/api/search/ORDERING.md +2 -2
- package/api/search/_adapter.d.mts +9 -0
- package/api/search/_adapter.mjs +85 -0
- package/api/search/_candidate-score.d.mts +9 -4
- package/api/search/_candidate-score.mjs +133 -46
- package/api/search/_fit-order.mjs +3 -3
- package/api/search/_gather-components.d.mts +3 -2
- package/api/search/_gather-components.mjs +12 -3
- package/api/search/_lexical.d.mts +14 -0
- package/api/search/_lexical.mjs +93 -11
- package/api/search/_result.d.mts +11 -9
- package/api/search/_result.mjs +4 -4
- package/api/search/_score.d.mts +6 -1
- package/api/search/_score.mjs +15 -3
- package/api/search/search-index.mjs +7 -1
- package/api/search/search.d.mts +1 -1
- package/api/template/_adapter.d.mts +16 -0
- package/api/template/_adapter.mjs +39 -2
- package/api/template/cdn/cdn.mjs +37 -8
- package/api/template/copy/copy.d.mts +6 -3
- package/api/template/copy/copy.mjs +40 -8
- package/api/template/template.doc.mjs +3 -3
- package/api/template/template.mjs +63 -11
- package/api/template/template.type.d.mts +1 -0
- package/api/template/template.type.mjs +1 -0
- package/api/theme/_adapter.d.mts +12 -1
- package/api/theme/_adapter.mjs +132 -13
- package/api/theme/_app-provider.d.mts +31 -0
- package/api/theme/_app-provider.mjs +135 -0
- package/api/theme/add/add.mjs +3 -1
- package/api/theme/build/build.d.mts +142 -1
- package/api/theme/build/build.mjs +692 -284
- package/api/theme/build/core-interception.d.mts +10 -0
- package/api/theme/build/core-interception.mjs +10 -0
- package/api/theme/build/font-warning.d.mts +80 -5
- package/api/theme/build/font-warning.mjs +323 -55
- package/api/theme/build/icon-imports.mjs +51 -9
- package/api/theme/build/null-values.d.mts +28 -0
- package/api/theme/build/null-values.mjs +191 -0
- package/api/theme/list/list.mjs +17 -1
- package/api/theme/remove/remove.d.mts +2 -1
- package/api/theme/remove/remove.mjs +7 -3
- package/api/theme/theme.type.d.mts +78 -1
- package/api/theme/theme.type.mjs +38 -2
- package/api/theme/themeAdd.doc.mjs +1 -1
- package/api/theme/themeListAvailable.doc.mjs +1 -1
- package/api/theme/themeRemove.doc.mjs +8 -5
- package/api/theme-edit/_adapter.d.mts +116 -4
- package/api/theme-edit/_adapter.mjs +1058 -93
- package/api/theme-edit/_catalog.d.mts +46 -2
- package/api/theme-edit/_catalog.mjs +115 -14
- package/api/theme-edit/_check.d.mts +133 -24
- package/api/theme-edit/_check.mjs +3392 -531
- package/api/theme-edit/_color.d.mts +26 -0
- package/api/theme-edit/_color.mjs +92 -2
- package/api/theme-edit/_compiler.d.mts +5 -1
- package/api/theme-edit/_compiler.mjs +141 -17
- package/api/theme-edit/_context.d.mts +74 -6
- package/api/theme-edit/_context.mjs +468 -76
- package/api/theme-edit/_css.d.mts +21 -0
- package/api/theme-edit/_css.mjs +87 -14
- package/api/theme-edit/_edit.d.mts +74 -7
- package/api/theme-edit/_edit.mjs +4426 -319
- package/api/theme-edit/_how-commands.d.mts +76 -1
- package/api/theme-edit/_how-commands.mjs +793 -9
- package/api/theme-edit/_how-question.d.mts +97 -6
- package/api/theme-edit/_how-question.mjs +9184 -747
- package/api/theme-edit/_how.d.mts +5 -2
- package/api/theme-edit/_how.mjs +255 -46
- package/api/theme-edit/_importers.d.mts +38 -0
- package/api/theme-edit/_importers.mjs +188 -0
- package/api/theme-edit/_marks.d.mts +31 -5
- package/api/theme-edit/_marks.mjs +57 -5
- package/api/theme-edit/_name-rule.d.mts +11 -0
- package/api/theme-edit/_name-rule.mjs +12 -0
- package/api/theme-edit/_normal.d.mts +322 -0
- package/api/theme-edit/_normal.mjs +1630 -0
- package/api/theme-edit/_palette.d.mts +49 -0
- package/api/theme-edit/_palette.mjs +180 -38
- package/api/theme-edit/_part-words.d.mts +39 -0
- package/api/theme-edit/_part-words.mjs +152 -0
- package/api/theme-edit/_parts.d.mts +55 -3
- package/api/theme-edit/_parts.mjs +421 -36
- package/api/theme-edit/_preview-app.d.mts +7 -13
- package/api/theme-edit/_preview-app.mjs +1108 -599
- package/api/theme-edit/_preview.d.mts +156 -19
- package/api/theme-edit/_preview.mjs +809 -180
- package/api/theme-edit/_project.d.mts +61 -1
- package/api/theme-edit/_project.mjs +177 -6
- package/api/theme-edit/_settings.d.mts +619 -48
- package/api/theme-edit/_settings.mjs +4910 -617
- package/api/theme-edit/_tables.d.mts +41 -0
- package/api/theme-edit/_tables.mjs +261 -41
- package/api/theme-edit/_vet.d.mts +31 -0
- package/api/theme-edit/_vet.mjs +114 -8
- package/api/theme-edit/theme-edit.type.d.mts +34 -2
- package/api/theme-edit/theme-edit.type.mjs +18 -3
- package/api/theme-edit/themeEditHow.doc.mjs +1 -1
- package/api/theme-edit/themeEditNew.doc.d.mts +0 -1
- package/api/theme-edit/themeEditNew.doc.mjs +7 -4
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +3 -3
- package/api/theme-edit/themeEditPreviewRemove.doc.mjs +2 -2
- package/api/upgrade/run/run.mjs +4 -3
- package/api/upgrade/upgrade.mjs +16 -1
- package/assets/codemods/integration-discovery.mjs +2 -1
- package/assets/codemods/integration-runner.mjs +1 -1
- package/assets/codemods/jscodeshift.d.ts +1 -1
- package/assets/codemods/run-codemod.mjs +151 -18
- package/assets/codemods/runner.mjs +1 -4
- package/assets/codemods/transforms/next/index.mjs +11 -1
- package/assets/codemods/transforms/next/migrate-item-swipe-actions-to-swipe.mjs +394 -0
- package/assets/component-list.generated.json +1 -0
- package/assets/docs/author-a-theme.doc.mjs +2 -0
- package/assets/docs/theme.doc.dense.mjs +76 -7
- package/assets/docs/theme.doc.mjs +66 -2
- package/assets/docs/theme.doc.zh.mjs +51 -1
- package/assets/docs/tree/check-your-docs.doc.mjs +1 -1
- package/assets/docs/tree/checks.doc.mjs +2 -2
- package/assets/docs/tree/cli-command.doc.mjs +2 -3
- package/assets/docs/tree/document-the-theme.doc.mjs +1 -1
- package/assets/docs/tree/font-setup.doc.mjs +1 -1
- package/assets/docs/tree/fonts-and-assets.doc.mjs +1 -1
- package/assets/docs/tree/render-pages.doc.mjs +46 -5
- package/assets/docs/tree/share-a-page.doc.mjs +157 -0
- package/assets/docs/tree/single-component.doc.mjs +4 -0
- package/assets/docs/tree/template-doc-overview.doc.mjs +1 -1
- package/assets/docs/tree/test-in-an-app.doc.mjs +1 -1
- package/assets/docs/tree/write-good-templates.doc.mjs +1 -1
- package/assets/docs/use-a-theme.doc.mjs +2 -2
- package/assets/docs-routes.generated.json +1 -0
- package/assets/docs.generated.json +2 -2
- package/assets/search-catalog.generated.json +2 -0
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/ChatComposerInput/useChatDictationHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/ChatComposerInput/useChatDictationHookUsage.tsx +38 -0
- package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/ChatComposerInput/useSpeechRecognitionHookUsage.tsx +43 -0
- package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.tsx +2 -2
- package/assets/templates/blocks/components/SyntaxTheme/useSyntaxThemeHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/SyntaxTheme/useSyntaxThemeHookUsage.tsx +36 -0
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat/template.doc.mjs +5 -4
- package/assets/templates/pages/ai-chat-landing/page.tsx +31 -4
- package/assets/templates/pages/ai-chat-landing/template.doc.mjs +5 -1
- package/assets/templates/pages/blank/template.doc.mjs +1 -1
- package/assets/templates/pages/canvas-editor/template.doc.mjs +4 -2
- package/assets/templates/pages/centered-hero/template.doc.mjs +9 -1
- package/assets/templates/pages/classic-gallery/template.doc.mjs +1 -1
- package/assets/templates/pages/contact-form/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard/template.doc.mjs +3 -2
- package/assets/templates/pages/dashboard-alert-rail/page.tsx +1 -1
- package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +1 -1
- package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard-comparison/page.tsx +2 -2
- package/assets/templates/pages/dashboard-composition/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard-progress/page.tsx +1 -1
- package/assets/templates/pages/dashboard-progress/template.doc.mjs +6 -3
- package/assets/templates/pages/detail-page/page.tsx +60 -7
- package/assets/templates/pages/detail-page/template.doc.mjs +10 -3
- package/assets/templates/pages/documentation/template.doc.mjs +4 -1
- package/assets/templates/pages/documentation-design/template.doc.mjs +7 -1
- package/assets/templates/pages/documentation-technical/page.tsx +13 -13
- package/assets/templates/pages/documentation-technical/template.doc.mjs +7 -1
- package/assets/templates/pages/editor/page.tsx +14 -2
- package/assets/templates/pages/editor/template.doc.mjs +2 -8
- package/assets/templates/pages/file-explorer/page.tsx +9 -0
- package/assets/templates/pages/file-explorer/template.doc.mjs +1 -1
- package/assets/templates/pages/form-two-column/template.doc.mjs +4 -3
- package/assets/templates/pages/form-wizard/template.doc.mjs +5 -3
- package/assets/templates/pages/form-wizard-vertical/page.tsx +23 -3
- package/assets/templates/pages/gallery-hero/template.doc.mjs +4 -2
- package/assets/templates/pages/ide/page.tsx +33 -2
- package/assets/templates/pages/kanban-board/page.tsx +12 -2
- package/assets/templates/pages/kanban-board/template.doc.mjs +1 -9
- package/assets/templates/pages/library/template.doc.mjs +4 -1
- package/assets/templates/pages/login/template.doc.mjs +2 -1
- package/assets/templates/pages/login-card/page.tsx +16 -0
- package/assets/templates/pages/login-card/template.doc.mjs +2 -1
- package/assets/templates/pages/login-split/page.tsx +19 -6
- package/assets/templates/pages/login-split/template.doc.mjs +2 -1
- package/assets/templates/pages/login-sso/template.doc.mjs +4 -2
- package/assets/templates/pages/messaging-shell/template.doc.mjs +6 -0
- package/assets/templates/pages/mixed-gallery/template.doc.mjs +2 -1
- package/assets/templates/pages/payment-form/page.tsx +30 -4
- package/assets/templates/pages/product-detail/page.tsx +26 -2
- package/assets/templates/pages/product-detail/template.doc.mjs +4 -2
- package/assets/templates/pages/product-gallery/template.doc.mjs +2 -1
- package/assets/templates/pages/settings-dialog/page.tsx +162 -12
- package/assets/templates/pages/settings-dialog/template.doc.mjs +2 -1
- package/assets/templates/pages/settings-sidebar/template.doc.mjs +2 -1
- package/assets/templates/pages/shell-nav/template.doc.mjs +4 -2
- package/assets/templates/pages/shell-side-nav/page.tsx +11 -3
- package/assets/templates/pages/shell-side-nav/template.doc.mjs +5 -3
- package/assets/templates/pages/shell-top-nav/template.doc.mjs +2 -1
- package/assets/templates/pages/side-gallery/template.doc.mjs +9 -1
- package/assets/templates/pages/table-filter/page.tsx +9 -0
- package/assets/templates/pages/table-filter/template.doc.mjs +9 -8
- package/assets/templates/pages/table-grouped/page.tsx +161 -133
- package/assets/templates/pages/table-grouped/template.doc.mjs +4 -2
- package/assets/templates/pages/table-page/page.tsx +14 -1
- package/assets/templates/pages/table-page/template.doc.mjs +5 -4
- package/assets/templates/pages/table-tree/template.doc.mjs +6 -3
- package/assets/templates/pages/theme-showcase/template.doc.mjs +2 -9
- package/assets/templates/pages/work-item-detail/page.tsx +47 -7
- package/assets/templates/pages/work-item-detail/template.doc.mjs +1 -0
- package/assets/theme.template.ts +9 -2
- package/authoring/debug/parse.d.mts +3 -3
- package/authoring/doctypes/_schema.d.mts +9 -9
- package/authoring/doctypes/command/command.doc.mjs +1 -1
- package/authoring/doctypes/component/categories.d.mts +37 -0
- package/authoring/doctypes/component/categories.mjs +54 -0
- package/authoring/doctypes/template/template.doc.mjs +1 -1
- package/authoring/doctypes/template/type.ts +9 -0
- package/authoring/example/example.doc.d.mts +12 -0
- package/authoring/example/example.doc.mjs +69 -0
- package/authoring/example/preview.d.mts +92 -0
- package/authoring/example/preview.mjs +994 -0
- package/authoring/example/type.ts +102 -0
- package/authoring/index.d.mts +1 -0
- package/authoring/index.d.ts +12 -0
- package/authoring/index.mjs +3 -1
- package/authoring/integration/integration.doc.mjs +8 -0
- package/authoring/integration/schema.d.mts +24 -1
- package/authoring/integration/schema.mjs +126 -4
- package/authoring/integration/type.ts +14 -0
- package/clients/cli/bin/astryx.mjs +6 -9
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/component.doc.mjs +1 -1
- package/clients/cli/commands/component.mjs +22 -3
- package/clients/cli/commands/discover.mjs +70 -3
- package/clients/cli/commands/docs.doc.mjs +7 -1
- package/clients/cli/commands/docs.mjs +44 -6
- package/clients/cli/commands/doctor.mjs +84 -16
- package/clients/cli/commands/experimental/render.mjs +42 -1
- package/clients/cli/commands/experimental/theme.mjs +1032 -134
- package/clients/cli/commands/experimental-render.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +3 -3
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +87 -1
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +10 -3
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-preview.doc.mjs +2 -1
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +4 -4
- package/clients/cli/commands/experimental-theme.doc.mjs +5 -1
- package/clients/cli/commands/search.doc.mjs +2 -1
- package/clients/cli/commands/search.mjs +6 -1
- package/clients/cli/commands/template.doc.mjs +1 -1
- package/clients/cli/commands/template.mjs +15 -2
- package/clients/cli/commands/theme-add.doc.mjs +1 -1
- package/clients/cli/commands/theme-build.doc.mjs +5 -1
- package/clients/cli/commands/theme-list.doc.mjs +1 -1
- package/clients/cli/commands/theme-remove.doc.mjs +13 -5
- package/clients/cli/commands/theme.doc.mjs +1 -1
- package/clients/cli/commands/theme.mjs +849 -441
- package/clients/cli/commands/upgrade.mjs +46 -8
- package/clients/cli/index.mjs +9 -19
- package/clients/cli/lib/cli-error.mjs +2 -1
- package/clients/cli/lib/component-format.mjs +205 -98
- package/clients/cli/lib/hook-format.mjs +9 -19
- package/clients/cli/lib/json-shim.mjs +265 -29
- package/clients/cli/lib/manifest.mjs +3 -2
- package/clients/cli/lib/stray-option.mjs +478 -0
- package/clients/cli/lib/unknown-command.mjs +353 -0
- package/clients/cli/manifest.generated.json +1 -1
- package/foundation/agent-docs/agent-docs.mjs +1 -1
- package/foundation/config/project.d.mts +8 -0
- package/foundation/config/project.mjs +26 -29
- package/foundation/config/theme-state.d.mts +31 -2
- package/foundation/config/theme-state.mjs +140 -8
- package/foundation/discovery/authoring-self-docs.mjs +1 -0
- package/foundation/discovery/cli-self-doc-names.d.mts +13 -0
- package/foundation/discovery/cli-self-doc-names.mjs +51 -0
- package/foundation/discovery/cli-self-docs.d.mts +0 -2
- package/foundation/discovery/cli-self-docs.mjs +2 -15
- package/foundation/discovery/component-discovery.d.mts +11 -0
- package/foundation/discovery/component-discovery.mjs +59 -10
- package/foundation/discovery/component-replacement.mjs +130 -1
- package/foundation/discovery/copied-passages.mjs +2 -1
- package/foundation/discovery/core-component-docs.d.mts +29 -0
- package/foundation/discovery/core-component-docs.mjs +83 -0
- package/foundation/discovery/core-theme-facts.d.mts +70 -0
- package/foundation/discovery/core-theme-facts.mjs +384 -0
- package/foundation/discovery/doc-types.mjs +4 -3
- package/foundation/discovery/docs-discovery.d.mts +66 -9
- package/foundation/discovery/docs-discovery.mjs +126 -60
- package/foundation/discovery/entry-name-files.d.mts +106 -0
- package/foundation/discovery/entry-name-files.mjs +354 -0
- package/foundation/discovery/hook-discovery.d.mts +18 -2
- package/foundation/discovery/hook-discovery.mjs +93 -42
- package/foundation/discovery/icon-definition-discovery.mjs +2 -1
- package/foundation/discovery/icon-set-checks.mjs +2 -1
- package/foundation/discovery/icon-set-discovery.mjs +2 -1
- package/foundation/discovery/integration-component-views.d.mts +15 -0
- package/foundation/discovery/integration-component-views.mjs +91 -0
- package/foundation/discovery/integration-doc-files.mjs +2 -1
- package/foundation/discovery/module-exports.d.mts +26 -1
- package/foundation/discovery/module-exports.mjs +114 -40
- package/foundation/discovery/name-roots.d.mts +38 -0
- package/foundation/discovery/name-roots.mjs +108 -0
- package/foundation/discovery/next-routes.d.mts +48 -0
- package/foundation/discovery/next-routes.mjs +181 -0
- package/foundation/discovery/package-exports.d.mts +10 -0
- package/foundation/discovery/package-exports.mjs +56 -3
- package/foundation/discovery/prop-drift.mjs +9 -9
- package/foundation/discovery/runner-allowlist.d.mts +1 -0
- package/foundation/discovery/runner-allowlist.mjs +2 -0
- package/foundation/discovery/stored-component-list.d.mts +43 -0
- package/foundation/discovery/stored-component-list.mjs +90 -0
- package/foundation/discovery/stored-search-catalog.d.mts +115 -0
- package/foundation/discovery/stored-search-catalog.mjs +297 -0
- package/foundation/discovery/stored-self-audit.d.mts +26 -10
- package/foundation/discovery/stored-self-audit.mjs +40 -18
- package/foundation/discovery/template-adapter.d.mts +49 -29
- package/foundation/discovery/template-adapter.mjs +89 -99
- package/foundation/discovery/template-destination.d.mts +28 -0
- package/foundation/discovery/template-destination.mjs +104 -0
- package/foundation/discovery/template-icons.mjs +2 -1
- package/foundation/discovery/template-ids.d.mts +69 -0
- package/foundation/discovery/template-ids.mjs +199 -0
- package/foundation/discovery/theme-discovery.d.mts +12 -0
- package/foundation/discovery/theme-discovery.mjs +34 -4
- package/foundation/discovery/theme-imports.d.mts +24 -0
- package/foundation/discovery/theme-imports.mjs +61 -4
- package/foundation/discovery/theming-targets.d.mts +13 -5
- package/foundation/discovery/theming-targets.mjs +41 -47
- package/foundation/doc-compiler/generated-levels.d.mts +43 -0
- package/foundation/doc-compiler/generated-levels.mjs +72 -0
- package/foundation/doc-compiler/import.mjs +7 -1
- package/foundation/doc-compiler/inputs.mjs +3 -2
- package/foundation/doc-compiler/literal-doc.d.mts +12 -0
- package/foundation/doc-compiler/literal-doc.mjs +322 -0
- package/foundation/doc-compiler/parse-readable.mjs +4 -1
- package/foundation/doc-compiler/stored-docs.d.mts +29 -0
- package/foundation/doc-compiler/stored-docs.mjs +63 -1
- package/foundation/doc-compiler/tree.d.mts +4 -84
- package/foundation/doc-compiler/tree.mjs +4 -62
- package/foundation/env/semver.mjs +3 -1
- package/foundation/fonts/font-stylesheet.d.mts +46 -0
- package/foundation/fonts/font-stylesheet.mjs +173 -0
- package/foundation/fs/cache-eviction.d.mts +21 -0
- package/foundation/fs/cache-eviction.mjs +73 -0
- package/foundation/fs/exact-codec.d.mts +12 -2
- package/foundation/fs/exact-codec.mjs +23 -6
- package/foundation/fs/file-protection.mjs +16 -5
- package/foundation/fs/gather-cache.d.mts +94 -4
- package/foundation/fs/gather-cache.mjs +671 -106
- package/foundation/fs/glob.d.mts +16 -0
- package/foundation/fs/glob.mjs +105 -0
- package/foundation/fs/jiti-cache.d.mts +19 -1
- package/foundation/fs/jiti-cache.mjs +130 -6
- package/foundation/fs/kept-tree.d.mts +80 -0
- package/foundation/fs/kept-tree.mjs +240 -0
- package/foundation/fs/listing-cache.d.mts +7 -0
- package/foundation/fs/listing-cache.mjs +10 -0
- package/foundation/fs/module-loader.d.mts +24 -2
- package/foundation/fs/module-loader.mjs +94 -21
- package/foundation/fs/path-safety.d.mts +11 -2
- package/foundation/fs/path-safety.mjs +108 -18
- package/foundation/fs/paths.d.mts +18 -0
- package/foundation/fs/paths.mjs +15 -2
- package/foundation/fs/read-record.d.mts +56 -7
- package/foundation/fs/read-record.mjs +280 -56
- package/foundation/fs/regular-file.d.mts +29 -0
- package/foundation/fs/regular-file.mjs +77 -0
- package/foundation/fs/stop-cleanup.d.mts +12 -0
- package/foundation/fs/stop-cleanup.mjs +66 -0
- package/foundation/identity/provider-identity.d.mts +6 -0
- package/foundation/identity/provider-identity.mjs +10 -1
- package/foundation/integrations/contribution-inventory.mjs +4 -3
- package/foundation/integrations/example-code.d.mts +63 -0
- package/foundation/integrations/example-code.mjs +416 -0
- package/foundation/integrations/integrations.d.mts +23 -1
- package/foundation/integrations/integrations.mjs +18 -1
- package/foundation/integrations/pack-state.d.mts +75 -0
- package/foundation/integrations/pack-state.mjs +314 -0
- package/foundation/integrations/public-imports.d.mts +9 -0
- package/foundation/integrations/public-imports.mjs +3 -2
- package/foundation/integrations/shipped-imports.d.mts +122 -0
- package/foundation/integrations/shipped-imports.mjs +497 -0
- package/foundation/integrations/validate-contributions.d.mts +0 -17
- package/foundation/integrations/validate-contributions.mjs +59 -333
- package/foundation/render/assets.mjs +52 -7
- package/foundation/render/charts.d.mts +78 -27
- package/foundation/render/charts.mjs +266 -90
- package/foundation/render/embedded-files.d.mts +6 -0
- package/foundation/render/embedded-files.mjs +25 -5
- package/foundation/render/embedded-imports.d.mts +70 -7
- package/foundation/render/embedded-imports.mjs +132 -41
- package/foundation/render/file-header.d.mts +66 -0
- package/foundation/render/file-header.mjs +118 -0
- package/foundation/render/host-answer.d.mts +18 -0
- package/foundation/render/host-answer.mjs +46 -0
- package/foundation/render/host-exit.d.mts +1 -0
- package/foundation/render/host-exit.mjs +6 -1
- package/foundation/render/html-reader.d.mts +55 -2
- package/foundation/render/html-reader.mjs +145 -26
- package/foundation/render/layers.d.mts +30 -0
- package/foundation/render/layers.mjs +158 -0
- package/foundation/render/markup-edits.d.mts +57 -0
- package/foundation/render/markup-edits.mjs +182 -0
- package/foundation/render/offline.d.mts +32 -0
- package/foundation/render/offline.mjs +56 -0
- package/foundation/render/page-host.mjs +29 -12
- package/foundation/render/page-worker.mjs +354 -21
- package/foundation/render/picture-chrome.d.mts +4 -0
- package/foundation/render/picture-chrome.mjs +192 -0
- package/foundation/render/picture-playwright.d.mts +4 -0
- package/foundation/render/picture-playwright.mjs +46 -0
- package/foundation/render/rebuild.mjs +2 -1
- package/foundation/render/render-page.d.mts +79 -5
- package/foundation/render/render-page.mjs +735 -109
- package/foundation/render/source-block.d.mts +85 -6
- package/foundation/render/source-block.mjs +211 -20
- package/foundation/render/ts-paths.d.mts +69 -6
- package/foundation/render/ts-paths.mjs +326 -40
- package/foundation/response/error-codes.d.mts +3 -1
- package/foundation/response/error-codes.d.ts +1 -0
- package/foundation/response/error-codes.doc.mjs +12 -1
- package/foundation/response/error-codes.mjs +11 -1
- package/foundation/response/response-types.doc.mjs +6 -6
- package/foundation/suggest/name-index.d.mts +148 -0
- package/foundation/suggest/name-index.mjs +317 -0
- package/foundation/suggest/other-command.d.mts +140 -0
- package/foundation/suggest/other-command.mjs +756 -0
- package/foundation/text/compare-text.d.mts +14 -0
- package/foundation/text/compare-text.mjs +68 -0
- package/foundation/text/css-escape.d.mts +18 -0
- package/foundation/text/css-escape.mjs +35 -0
- package/foundation/text/entry-names.d.mts +14 -0
- package/foundation/text/entry-names.mjs +14 -0
- package/foundation/text/string-utils.d.mts +46 -6
- package/foundation/text/string-utils.mjs +118 -20
- package/foundation/text/suggest-order.d.mts +47 -4
- package/foundation/text/suggest-order.mjs +174 -5
- package/foundation/xle/browser.d.mts +2 -2
- package/foundation/xle/expand.mjs +2 -1
- package/host/index.mjs +8 -6
- package/package.json +7 -6
package/api/hook/_adapter.mjs
CHANGED
|
@@ -39,17 +39,22 @@ export function resolveCoreDir(cwd) {
|
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Resolve a single hook's authored doc by name, or throw ERR_UNKNOWN_HOOK with
|
|
42
|
-
* fuzzy (levenshtein) suggestions.
|
|
43
|
-
*
|
|
42
|
+
* fuzzy (levenshtein) suggestions. When the name matches a component,
|
|
43
|
+
* template or docs topic exactly, folded or by its last segment, the
|
|
44
|
+
* suggestions also hold the command that reads it: right after the
|
|
45
|
+
* suggestions that match the name at its tier or a better one
|
|
46
|
+
* (foundation/suggest/other-command.mjs withOtherCommand), the list keeping
|
|
47
|
+
* its length. Shared by the detail and detail.params leaves, which both start
|
|
48
|
+
* from a resolved hook doc.
|
|
44
49
|
* @param {string} coreDir
|
|
45
50
|
* @param {string} name
|
|
46
|
-
* @param {{zh?: boolean, lang?: string|null}} [opts]
|
|
51
|
+
* @param {{zh?: boolean, lang?: string|null, cwd?: string}} [opts]
|
|
47
52
|
* @returns {Promise<import('./hook.type.mjs').HookDoc>}
|
|
48
53
|
*/
|
|
49
54
|
export async function resolveHookDoc(
|
|
50
55
|
coreDir,
|
|
51
56
|
name,
|
|
52
|
-
{zh = false, lang = null} = {},
|
|
57
|
+
{zh = false, lang = null, cwd = process.cwd()} = {},
|
|
53
58
|
) {
|
|
54
59
|
const docPath = findHookDoc(coreDir, name);
|
|
55
60
|
|
|
@@ -72,10 +77,41 @@ export async function resolveHookDoc(
|
|
|
72
77
|
|
|
73
78
|
throw new AstryxError(
|
|
74
79
|
`No hook named "${name}"`,
|
|
75
|
-
suggestions,
|
|
80
|
+
await withOtherCommandHint(name, suggestions, {coreDir, cwd}),
|
|
76
81
|
ERROR_CODES.ERR_UNKNOWN_HOOK,
|
|
77
82
|
);
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
return loadDocs(docPath, {zh, lang, root: 'hooks'});
|
|
81
86
|
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The unknown-hook suggestions with the command that reads a component,
|
|
90
|
+
* template or docs topic matching that name (exact, folded or last segment)
|
|
91
|
+
* in them, the list keeping its length, in the place
|
|
92
|
+
* foundation/suggest/other-command.mjs gives it. The suggestions stay as they
|
|
93
|
+
* are when no such entry exists or the check fails. The hint's modules load
|
|
94
|
+
* only on this path.
|
|
95
|
+
* @param {string} name
|
|
96
|
+
* @param {import('../../foundation/response/base').Suggestion[]} suggestions
|
|
97
|
+
* @param {{coreDir: string, cwd: string}} context
|
|
98
|
+
* @returns {Promise<import('../../foundation/response/base').Suggestion[] | undefined>}
|
|
99
|
+
*/
|
|
100
|
+
async function withOtherCommandHint(name, suggestions, {coreDir, cwd}) {
|
|
101
|
+
try {
|
|
102
|
+
const [{findOtherCommand, withOtherCommand}, {docsRoutesLazily}] =
|
|
103
|
+
await Promise.all([
|
|
104
|
+
import('../../foundation/suggest/other-command.mjs'),
|
|
105
|
+
import('../docs/_entry-names-lazily.mjs'),
|
|
106
|
+
]);
|
|
107
|
+
const hint = await findOtherCommand(name, {
|
|
108
|
+
from: 'hook',
|
|
109
|
+
cwd,
|
|
110
|
+
coreDir,
|
|
111
|
+
docsRoutes: docsRoutesLazily,
|
|
112
|
+
});
|
|
113
|
+
return withOtherCommand(suggestions, hint, name, {from: 'hook'});
|
|
114
|
+
} catch {
|
|
115
|
+
return suggestions;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -19,8 +19,11 @@ import {CORE_PACKAGE, resolveCoreDir, resolveHookDoc} from '../_adapter.mjs';
|
|
|
19
19
|
* @param {{cwd?: string, zh?: boolean, lang?: string|null}} [options]
|
|
20
20
|
* @returns {Promise<import('../hook.type.mjs').HookDetailResponse>}
|
|
21
21
|
*/
|
|
22
|
-
export async function detail(
|
|
22
|
+
export async function detail(
|
|
23
|
+
name,
|
|
24
|
+
{cwd = process.cwd(), zh = false, lang = null} = {},
|
|
25
|
+
) {
|
|
23
26
|
const coreDir = resolveCoreDir(cwd);
|
|
24
|
-
const docs = await resolveHookDoc(coreDir, name, {zh, lang});
|
|
27
|
+
const docs = await resolveHookDoc(coreDir, name, {zh, lang, cwd});
|
|
25
28
|
return {type: 'hook.detail', package: CORE_PACKAGE, data: docs};
|
|
26
29
|
}
|
|
@@ -19,8 +19,15 @@ import {CORE_PACKAGE, resolveCoreDir, resolveHookDoc} from '../../_adapter.mjs';
|
|
|
19
19
|
* @param {{cwd?: string, zh?: boolean, lang?: string|null}} [options]
|
|
20
20
|
* @returns {Promise<import('../../hook.type.mjs').HookDetailParamsResponse>}
|
|
21
21
|
*/
|
|
22
|
-
export async function params(
|
|
22
|
+
export async function params(
|
|
23
|
+
name,
|
|
24
|
+
{cwd = process.cwd(), zh = false, lang = null} = {},
|
|
25
|
+
) {
|
|
23
26
|
const coreDir = resolveCoreDir(cwd);
|
|
24
|
-
const docs = await resolveHookDoc(coreDir, name, {zh, lang});
|
|
25
|
-
return {
|
|
27
|
+
const docs = await resolveHookDoc(coreDir, name, {zh, lang, cwd});
|
|
28
|
+
return {
|
|
29
|
+
type: 'hook.detail.params',
|
|
30
|
+
package: CORE_PACKAGE,
|
|
31
|
+
data: docs.params || [],
|
|
32
|
+
};
|
|
26
33
|
}
|
package/api/icon/_records.mjs
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import {AstryxError} from '../error.mjs';
|
|
15
15
|
import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';
|
|
16
16
|
import {levenshteinDistance} from '../../foundation/text/string-utils.mjs';
|
|
17
|
+
import {compareText} from '../../foundation/text/compare-text.mjs';
|
|
17
18
|
export {
|
|
18
19
|
answeringMatches,
|
|
19
20
|
iconRecord,
|
|
@@ -115,7 +116,7 @@ export function oneNamedSet(sets, withdrawn, selector) {
|
|
|
115
116
|
export function closest(wanted, candidates, reason, max = 5) {
|
|
116
117
|
return [...new Set(candidates)]
|
|
117
118
|
.map(name => ({name, distance: levenshteinDistance(wanted, name)}))
|
|
118
|
-
.sort((a, b) => a.distance - b.distance || a.name
|
|
119
|
+
.sort((a, b) => a.distance - b.distance || compareText(a.name, b.name))
|
|
119
120
|
.slice(0, max)
|
|
120
121
|
.map(({name}) => ({name, reason}));
|
|
121
122
|
}
|
package/api/index.d.mts
CHANGED
|
@@ -23,6 +23,7 @@ export { doctor } from "./doctor/doctor.mjs";
|
|
|
23
23
|
export { integrationAddTheme } from "./integration/add-theme.mjs";
|
|
24
24
|
export { integrationPackCheck } from "./integration/pack-check.mjs";
|
|
25
25
|
export { integrationCheck } from "./integration/check/check.mjs";
|
|
26
|
+
export { integrationExampleScope } from "./integration/example-scope.mjs";
|
|
26
27
|
export { AstryxError } from "./error.mjs";
|
|
27
28
|
export { logger } from "./logger.mjs";
|
|
28
29
|
export * from "../foundation/response/batch.type.mjs";
|
|
@@ -45,6 +46,7 @@ export * from "./integration/pack-check.type.mjs";
|
|
|
45
46
|
export * from "./integration/validate-integration.type.mjs";
|
|
46
47
|
export * from "./integration/authoring-checks.type.mjs";
|
|
47
48
|
export * from "./integration/integration-check.type.mjs";
|
|
49
|
+
export * from "./integration/example-scope.type.mjs";
|
|
48
50
|
export type Logger = import("./logger.mjs").Logger;
|
|
49
51
|
export { themeBuild, themeAdd, themeRemove, themeUse, themeEject, themeTemplate, themeList, themeListAvailable, themeListCopySources, themeTargets, themePaletteGenerate, generateTonalPalette, listThemes } from "./theme/theme.mjs";
|
|
50
52
|
export { exportSearchIndex, rankSearchIndex } from "./search/search-index.mjs";
|
package/api/index.mjs
CHANGED
|
@@ -75,6 +75,7 @@ export {
|
|
|
75
75
|
integrationDocConflicts,
|
|
76
76
|
} from './integration/authoring-checks.mjs';
|
|
77
77
|
export {integrationCheck} from './integration/check/check.mjs';
|
|
78
|
+
export {integrationExampleScope} from './integration/example-scope.mjs';
|
|
78
79
|
export {AstryxError} from './error.mjs';
|
|
79
80
|
// The one shared logger: the `logger` instance side-effecting commands write
|
|
80
81
|
// through, plus its generated `Logger` type. Part of the public surface so an
|
|
@@ -109,3 +110,4 @@ export * from './integration/pack-check.type.mjs';
|
|
|
109
110
|
export * from './integration/validate-integration.type.mjs';
|
|
110
111
|
export * from './integration/authoring-checks.type.mjs';
|
|
111
112
|
export * from './integration/integration-check.type.mjs';
|
|
113
|
+
export * from './integration/example-scope.type.mjs';
|
|
@@ -66,6 +66,50 @@ export function integrationDocCommands(integration: any): Promise<import("../../
|
|
|
66
66
|
* @returns {Promise<boolean>}
|
|
67
67
|
*/
|
|
68
68
|
export function projectUsesIconSets(cwd: string): Promise<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* @typedef {object} LoadedExampleScope
|
|
71
|
+
* @property {boolean} found whether an integration manifest loaded
|
|
72
|
+
* @property {string | null} name
|
|
73
|
+
* @property {string | null} version
|
|
74
|
+
* @property {import('../../authoring/example/type.ts').ExampleScope | null} scope
|
|
75
|
+
* @property {string} [reason] why there is no scope
|
|
76
|
+
* @property {string} [incomplete] why names Core or React give were not read
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* The scope a package's component examples are read against: the local
|
|
80
|
+
* package rooted at `cwd` (no `pkg`), or a package installed beside it.
|
|
81
|
+
* Throws when `pkg` is not a bare package name.
|
|
82
|
+
* @param {string | undefined} pkg
|
|
83
|
+
* @param {string} cwd
|
|
84
|
+
* @returns {Promise<LoadedExampleScope>}
|
|
85
|
+
*/
|
|
86
|
+
export function loadExampleScope(pkg: string | undefined, cwd: string): Promise<LoadedExampleScope>;
|
|
87
|
+
/**
|
|
88
|
+
* Each of the package's component examples that cannot run on its own, as a
|
|
89
|
+
* note with its fix, and the examples that could not be judged.
|
|
90
|
+
* @param {any} integration a loaded integration
|
|
91
|
+
*/
|
|
92
|
+
export function integrationExampleCode(integration: any): Promise<{
|
|
93
|
+
notes: ExampleCodeNote[];
|
|
94
|
+
unchecked: ExampleCodeUnchecked[];
|
|
95
|
+
}>;
|
|
96
|
+
export type LoadedExampleScope = {
|
|
97
|
+
/**
|
|
98
|
+
* whether an integration manifest loaded
|
|
99
|
+
*/
|
|
100
|
+
found: boolean;
|
|
101
|
+
name: string | null;
|
|
102
|
+
version: string | null;
|
|
103
|
+
scope: import("../../authoring/example/type.ts").ExampleScope | null;
|
|
104
|
+
/**
|
|
105
|
+
* why there is no scope
|
|
106
|
+
*/
|
|
107
|
+
reason?: string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* why names Core or React give were not read
|
|
110
|
+
*/
|
|
111
|
+
incomplete?: string | undefined;
|
|
112
|
+
};
|
|
69
113
|
import { findCopiedPassages } from '../../foundation/discovery/copied-passages.mjs';
|
|
70
114
|
import { findFluff } from '../../foundation/discovery/doc-fluff.mjs';
|
|
71
115
|
import { findStrayPointers } from '../../foundation/discovery/stray-pointers.mjs';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @file The integration subject's access to the environment (INV21): reading
|
|
5
5
|
* one package's component docs and sources with the project's own TypeScript,
|
|
6
|
-
* and its
|
|
6
|
+
* its topics, and the scope its examples are read against.
|
|
7
7
|
*
|
|
8
8
|
* @input a loaded integration and the directory the command runs in
|
|
9
9
|
* @output the reports the integration checks attach to their results
|
|
@@ -23,6 +23,15 @@ import {findCopiedPassages} from '../../foundation/discovery/copied-passages.mjs
|
|
|
23
23
|
import {findFluff} from '../../foundation/discovery/doc-fluff.mjs';
|
|
24
24
|
import {findDocCommands} from '../../foundation/discovery/runner-commands.mjs';
|
|
25
25
|
import {findStrayPointers} from '../../foundation/discovery/stray-pointers.mjs';
|
|
26
|
+
import {findPackageRoot} from '../../foundation/fs/paths.mjs';
|
|
27
|
+
import {
|
|
28
|
+
loadLocalIntegration,
|
|
29
|
+
resolveInstalledIntegrationDir,
|
|
30
|
+
} from '../../foundation/integrations/integrations.mjs';
|
|
31
|
+
import {
|
|
32
|
+
exampleCodeCheck,
|
|
33
|
+
exampleScopeFor,
|
|
34
|
+
} from '../../foundation/integrations/example-code.mjs';
|
|
26
35
|
|
|
27
36
|
/**
|
|
28
37
|
* Each component doc's props compared with the component's TypeScript props,
|
|
@@ -174,3 +183,70 @@ export async function projectUsesIconSets(cwd) {
|
|
|
174
183
|
return false;
|
|
175
184
|
}
|
|
176
185
|
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @typedef {object} LoadedExampleScope
|
|
189
|
+
* @property {boolean} found whether an integration manifest loaded
|
|
190
|
+
* @property {string | null} name
|
|
191
|
+
* @property {string | null} version
|
|
192
|
+
* @property {import('../../authoring/example/type.ts').ExampleScope | null} scope
|
|
193
|
+
* @property {string} [reason] why there is no scope
|
|
194
|
+
* @property {string} [incomplete] why names Core or React give were not read
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The scope a package's component examples are read against: the local
|
|
199
|
+
* package rooted at `cwd` (no `pkg`), or a package installed beside it.
|
|
200
|
+
* Throws when `pkg` is not a bare package name.
|
|
201
|
+
* @param {string | undefined} pkg
|
|
202
|
+
* @param {string} cwd
|
|
203
|
+
* @returns {Promise<LoadedExampleScope>}
|
|
204
|
+
*/
|
|
205
|
+
export async function loadExampleScope(pkg, cwd) {
|
|
206
|
+
const packageDir = pkg
|
|
207
|
+
? resolveInstalledIntegrationDir(pkg, cwd)
|
|
208
|
+
: findPackageRoot(cwd);
|
|
209
|
+
/** @type {any} */
|
|
210
|
+
let integration = null;
|
|
211
|
+
/** @type {string | undefined} */
|
|
212
|
+
let reason;
|
|
213
|
+
if (packageDir) {
|
|
214
|
+
try {
|
|
215
|
+
integration = await loadLocalIntegration(packageDir);
|
|
216
|
+
} catch (err) {
|
|
217
|
+
reason = /** @type {Error} */ (err).message;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
if (integration?.__loadError) reason = integration.__loadError;
|
|
221
|
+
if (!integration || reason) {
|
|
222
|
+
return {
|
|
223
|
+
found: false,
|
|
224
|
+
name: integration?.name ?? null,
|
|
225
|
+
version: integration?.version ?? null,
|
|
226
|
+
scope: null,
|
|
227
|
+
reason:
|
|
228
|
+
reason ??
|
|
229
|
+
(packageDir
|
|
230
|
+
? `No astryx.integration.{ts,mjs,js} next to the package.json in ${packageDir}.`
|
|
231
|
+
: 'No package.json found.'),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
const read = await exampleScopeFor(integration);
|
|
235
|
+
return {
|
|
236
|
+
found: true,
|
|
237
|
+
name: integration.name ?? null,
|
|
238
|
+
version: integration.version ?? null,
|
|
239
|
+
scope: read.scope,
|
|
240
|
+
...(read.reason ? {reason: read.reason} : {}),
|
|
241
|
+
...(read.incomplete ? {incomplete: read.incomplete} : {}),
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Each of the package's component examples that cannot run on its own, as a
|
|
247
|
+
* note with its fix, and the examples that could not be judged.
|
|
248
|
+
* @param {any} integration a loaded integration
|
|
249
|
+
*/
|
|
250
|
+
export function integrationExampleCode(integration) {
|
|
251
|
+
return exampleCodeCheck(integration);
|
|
252
|
+
}
|
|
@@ -18,6 +18,7 @@ import * as path from 'node:path';
|
|
|
18
18
|
import {randomUUID} from 'node:crypto';
|
|
19
19
|
import {AstryxError} from '../error.mjs';
|
|
20
20
|
import {publishNewFile} from '../../foundation/fs/publish-file.mjs';
|
|
21
|
+
import {irregularFileKind} from '../../foundation/fs/regular-file.mjs';
|
|
21
22
|
import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';
|
|
22
23
|
import {findLocalIntegrationManifestOrNull} from '../../foundation/integrations/manifest-writer.mjs';
|
|
23
24
|
import {loadManifestObject} from '../../foundation/integrations/integrations.mjs';
|
|
@@ -342,6 +343,15 @@ export function applyWrites(plans) {
|
|
|
342
343
|
for (const plan of plans) {
|
|
343
344
|
fs.mkdirSync(path.dirname(plan.path), {recursive: true});
|
|
344
345
|
assertNotSymlink(plan.path);
|
|
346
|
+
// A named pipe or a device is never opened: a read of one can wait
|
|
347
|
+
// for good.
|
|
348
|
+
const kind = irregularFileKind(plan.path);
|
|
349
|
+
if (kind && kind !== 'a folder')
|
|
350
|
+
throw new AstryxError(
|
|
351
|
+
`${plan.path} is ${kind}, not a file, so it is not replaced: remove it, then run again.`,
|
|
352
|
+
undefined,
|
|
353
|
+
ERROR_CODES.ERR_FILE_EXISTS,
|
|
354
|
+
);
|
|
345
355
|
const exists = fs.existsSync(plan.path);
|
|
346
356
|
if (plan.createOnly && exists) {
|
|
347
357
|
throw new AstryxError(
|
|
@@ -58,6 +58,7 @@ import {
|
|
|
58
58
|
import {rootProblem} from '../../foundation/integrations/validate-contributions.mjs';
|
|
59
59
|
import {normalizeProviderId} from '../../foundation/identity/provider-identity.mjs';
|
|
60
60
|
import {shellArg} from '../../foundation/text/shell-arg.mjs';
|
|
61
|
+
import {compareText} from '../../foundation/text/compare-text.mjs';
|
|
61
62
|
|
|
62
63
|
/**
|
|
63
64
|
* The provider ID a package without a name is checked under: a valid bare
|
|
@@ -84,9 +85,12 @@ function unnamedShown(message) {
|
|
|
84
85
|
* @param {string} cwd
|
|
85
86
|
*/
|
|
86
87
|
async function resolveIntegration(pkg, cwd) {
|
|
88
|
+
// The checks read the integration and its issues, never the notes the
|
|
89
|
+
// shipped-import check adds, so it is left out: it parses every module the
|
|
90
|
+
// package ships and may ask npm what it packs.
|
|
87
91
|
const resolved = pkg
|
|
88
|
-
? await validateInstalledIntegration(pkg, cwd)
|
|
89
|
-
: await validateLocalIntegration(cwd);
|
|
92
|
+
? await validateInstalledIntegration(pkg, cwd, {shippedImports: false})
|
|
93
|
+
: await validateLocalIntegration(cwd, {shippedImports: false});
|
|
90
94
|
const integration = resolved.found ? resolved.integration : undefined;
|
|
91
95
|
if (!integration) return resolved;
|
|
92
96
|
// A root that is not a readable folder is reported in the issues; the
|
|
@@ -215,7 +219,7 @@ async function templateConflicts(pkg, options) {
|
|
|
215
219
|
}
|
|
216
220
|
for (const matches of coreById.values()) {
|
|
217
221
|
matches.sort((a, b) =>
|
|
218
|
-
`${a.type}:${a.name}
|
|
222
|
+
compareText(`${a.type}:${a.name}`, `${b.type}:${b.name}`),
|
|
219
223
|
);
|
|
220
224
|
}
|
|
221
225
|
|
|
@@ -279,7 +283,8 @@ async function templateConflicts(pkg, options) {
|
|
|
279
283
|
}
|
|
280
284
|
}
|
|
281
285
|
conflicts.sort((a, b) =>
|
|
282
|
-
|
|
286
|
+
compareText(
|
|
287
|
+
`${a.id}:${'relationship' in a ? a.relationship : ''}`,
|
|
283
288
|
`${b.id}:${'relationship' in b ? b.relationship : ''}`,
|
|
284
289
|
),
|
|
285
290
|
);
|
|
@@ -388,7 +393,7 @@ async function componentConflicts(pkg, options) {
|
|
|
388
393
|
'If you keep it, always select it with --package.',
|
|
389
394
|
command: `${run} component ${shellArg(component.name)} --package ${shellArg(name)}`,
|
|
390
395
|
}))
|
|
391
|
-
.sort((a, b) => a.name
|
|
396
|
+
.sort((a, b) => compareText(a.name, b.name));
|
|
392
397
|
|
|
393
398
|
return {
|
|
394
399
|
type: 'integration.component-conflicts',
|
|
@@ -561,9 +566,7 @@ async function docConflicts(pkg, options) {
|
|
|
561
566
|
}
|
|
562
567
|
}
|
|
563
568
|
findings.sort((a, b) =>
|
|
564
|
-
`${a.topic}:${a.relationship}
|
|
565
|
-
`${b.topic}:${b.relationship}`,
|
|
566
|
-
),
|
|
569
|
+
compareText(`${a.topic}:${a.relationship}`, `${b.topic}:${b.relationship}`),
|
|
567
570
|
);
|
|
568
571
|
|
|
569
572
|
// The same graph checks `astryx doctor` runs in a project: the namespaces
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The scope a package's component examples are read against: the components
|
|
6
|
+
* it documents with their imports, the components and hooks Core documents,
|
|
7
|
+
* React's exports, the packages it declares, and its server-only modules and
|
|
8
|
+
* async components. `found` is false when no integration manifest loads.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} [pkg] installed package name; omit for the package at cwd
|
|
11
|
+
* @param {import('./example-scope.type.mjs').IntegrationExampleScopeOptions} [options]
|
|
12
|
+
* @returns {Promise<import('./example-scope.type.mjs').IntegrationExampleScopeResponse>}
|
|
13
|
+
*/
|
|
14
|
+
export function integrationExampleScope(pkg?: string, options?: import("./example-scope.type.mjs").IntegrationExampleScopeOptions): Promise<import("./example-scope.type.mjs").IntegrationExampleScopeResponse>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file `integrationExampleScope()`: the scope Doctor reads a package's
|
|
5
|
+
* component examples against, as JSON a catalog can store.
|
|
6
|
+
* @input A package: the local one rooted at `cwd`, or one installed beside
|
|
7
|
+
* it by name.
|
|
8
|
+
* @output An `integration.example-scope` envelope: the package's identity and
|
|
9
|
+
* its ExampleScope, or why there is none.
|
|
10
|
+
* @position api/integration; the subject's adapter builds the scope with
|
|
11
|
+
* the `exampleScopeFor` that `validateIntegration` runs, so a preview tool
|
|
12
|
+
* that reads examples with it and `previewableExample` judges each one as
|
|
13
|
+
* Doctor does.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import {loadExampleScope} from './_adapter.mjs';
|
|
17
|
+
import {AstryxError} from '../error.mjs';
|
|
18
|
+
import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';
|
|
19
|
+
|
|
20
|
+
const TYPE = /** @type {const} */ ('integration.example-scope');
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The scope a package's component examples are read against: the components
|
|
24
|
+
* it documents with their imports, the components and hooks Core documents,
|
|
25
|
+
* React's exports, the packages it declares, and its server-only modules and
|
|
26
|
+
* async components. `found` is false when no integration manifest loads.
|
|
27
|
+
*
|
|
28
|
+
* @param {string} [pkg] installed package name; omit for the package at cwd
|
|
29
|
+
* @param {import('./example-scope.type.mjs').IntegrationExampleScopeOptions} [options]
|
|
30
|
+
* @returns {Promise<import('./example-scope.type.mjs').IntegrationExampleScopeResponse>}
|
|
31
|
+
*/
|
|
32
|
+
export async function integrationExampleScope(pkg, options = {}) {
|
|
33
|
+
const {cwd = process.cwd()} = options;
|
|
34
|
+
try {
|
|
35
|
+
return {type: TYPE, data: await loadExampleScope(pkg, cwd)};
|
|
36
|
+
} catch (err) {
|
|
37
|
+
if (!pkg) throw err;
|
|
38
|
+
throw new AstryxError(
|
|
39
|
+
/** @type {Error} */ (err).message,
|
|
40
|
+
[],
|
|
41
|
+
ERROR_CODES.ERR_INVALID_ARGUMENT,
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Options for `integrationExampleScope()`.
|
|
6
|
+
*/
|
|
7
|
+
export type IntegrationExampleScopeOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* the folder the local package or `node_modules` is
|
|
10
|
+
* found from
|
|
11
|
+
*/
|
|
12
|
+
cwd?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The scope a package's component examples are read against, as JSON. The
|
|
16
|
+
* shape is a contract: a release may add a field, and never renames, removes
|
|
17
|
+
* or retypes one, so a stored scope stays readable.
|
|
18
|
+
*/
|
|
19
|
+
export type IntegrationExampleScopeResponse = {
|
|
20
|
+
type: "integration.example-scope";
|
|
21
|
+
data: {
|
|
22
|
+
found: boolean;
|
|
23
|
+
name: string | null;
|
|
24
|
+
version: string | null;
|
|
25
|
+
scope: import("../../authoring/example/type.ts").ExampleScope | null;
|
|
26
|
+
reason?: string;
|
|
27
|
+
incomplete?: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file Colocated types for `integrationExampleScope()`, the scope a
|
|
5
|
+
* package's component examples are read against. `ExampleScope` itself is the
|
|
6
|
+
* authoring contract in `authoring/example/type.ts`.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Options for `integrationExampleScope()`.
|
|
11
|
+
* @typedef {object} IntegrationExampleScopeOptions
|
|
12
|
+
* @property {string} [cwd] the folder the local package or `node_modules` is
|
|
13
|
+
* found from
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The scope a package's component examples are read against, as JSON. The
|
|
18
|
+
* shape is a contract: a release may add a field, and never renames, removes
|
|
19
|
+
* or retypes one, so a stored scope stays readable.
|
|
20
|
+
* @typedef {object} IntegrationExampleScopeResponse
|
|
21
|
+
* @property {'integration.example-scope'} type
|
|
22
|
+
* @property {{found: boolean, name: string | null, version: string | null, scope: import('../../authoring/example/type.ts').ExampleScope | null, reason?: string, incomplete?: string}} data
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @file FunctionDoc for `integrationExampleScope()`. Colocated with the API
|
|
6
|
+
* function it documents; the shape source of truth stays in
|
|
7
|
+
* `example-scope.type.mjs` and `authoring/example/type.ts`.
|
|
8
|
+
* @position packages/cli/api/integration — function documentation
|
|
9
|
+
*/
|
|
10
|
+
/** @type {import('@astryxdesign/cli/authoring').FunctionDoc} */
|
|
11
|
+
export const doc: import("@astryxdesign/cli/authoring").FunctionDoc;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file FunctionDoc for `integrationExampleScope()`. Colocated with the API
|
|
5
|
+
* function it documents; the shape source of truth stays in
|
|
6
|
+
* `example-scope.type.mjs` and `authoring/example/type.ts`.
|
|
7
|
+
* @position packages/cli/api/integration — function documentation
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** @type {import('@astryxdesign/cli/authoring').FunctionDoc} */
|
|
11
|
+
export const doc = {
|
|
12
|
+
type: 'function',
|
|
13
|
+
kind: 'api',
|
|
14
|
+
name: 'integrationExampleScope',
|
|
15
|
+
namespace: 'cli/api',
|
|
16
|
+
displayName: 'integrationExampleScope()',
|
|
17
|
+
summary:
|
|
18
|
+
"The scope Doctor reads a package's component examples against, as JSON.",
|
|
19
|
+
description:
|
|
20
|
+
"Builds the ExampleScope `validateIntegration` reads a package's component examples against: the components the package documents, each with the import an app uses for it; the components and hooks the Core installed beside it documents; the exports of the React it resolves; the packages its package.json declares in `dependencies`, `peerDependencies` and `optionalDependencies`; its own import specifiers whose module imports `server-only`; and its async components. The scope is plain JSON, so a catalog can store it beside the package, and a preview tool that reads each example with it and `previewableExample` from `@astryxdesign/cli/authoring` judges each example as Doctor does. It reads the local package rooted at cwd (no `pkg`), or a package installed beside cwd (`pkg` given). It loads the package's doc modules, as Doctor does.",
|
|
21
|
+
importPath: '@astryxdesign/cli/api',
|
|
22
|
+
signature:
|
|
23
|
+
'integrationExampleScope(pkg?: string, options?: IntegrationExampleScopeOptions): Promise<IntegrationExampleScopeResponse>',
|
|
24
|
+
keywords: [
|
|
25
|
+
'integration',
|
|
26
|
+
'example',
|
|
27
|
+
'preview',
|
|
28
|
+
'scope',
|
|
29
|
+
'previewable',
|
|
30
|
+
'catalog',
|
|
31
|
+
],
|
|
32
|
+
params: [
|
|
33
|
+
{
|
|
34
|
+
name: 'pkg',
|
|
35
|
+
type: 'string',
|
|
36
|
+
description:
|
|
37
|
+
'Installed package name; omit for the package rooted at cwd.',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'options.cwd',
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: 'Folder the local package or `node_modules` is found from.',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
returns: [
|
|
46
|
+
{
|
|
47
|
+
type: 'integration.example-scope',
|
|
48
|
+
description:
|
|
49
|
+
'The envelope: `data.found` (false when no integration manifest loads, and then `data.reason` says why), `data.name` and `data.version` of the package, and `data.scope`: the ExampleScope ({packageName, packageNames: [{name, import}], coreNames: [{name, import}], reactNames, dependencies, serverOnlyModules, serverComponents}), or null with `data.reason` when package.json has no name. `data.incomplete` says why the names Core or React give could not be read: the scope then lists none of them, so a reader must not report a name the scope leaves out. This JSON shape is a contract, so a stored scope stays readable: a release may add a field, and never renames, removes or retypes one.',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
examples: [
|
|
53
|
+
{
|
|
54
|
+
label: 'Read examples as Doctor does',
|
|
55
|
+
code: "import {integrationExampleScope} from '@astryxdesign/cli/api';\nimport {previewableExample} from '@astryxdesign/cli/authoring';\n\nconst {data} = await integrationExampleScope('@acme/widgets');\nconst read = previewableExample(example, data.scope);",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
related: ['validateIntegration'],
|
|
59
|
+
};
|
|
@@ -1341,7 +1341,11 @@ export async function integrationPackCheck(options = {}) {
|
|
|
1341
1341
|
const pkgVersion = typeof pkg.version === 'string' ? pkg.version : null;
|
|
1342
1342
|
|
|
1343
1343
|
// ── Phase 1: structure validation ──
|
|
1344
|
-
|
|
1344
|
+
// The relative imports of the shipped modules are checked once, in the
|
|
1345
|
+
// packed tree below, which holds exactly what npm packs: no npm listing.
|
|
1346
|
+
const localResult = await validateLocalIntegration(cwd, {
|
|
1347
|
+
shippedImports: false,
|
|
1348
|
+
});
|
|
1345
1349
|
/** @type {Issue[]} */
|
|
1346
1350
|
const issues = [
|
|
1347
1351
|
...localResult.issues,
|
|
@@ -1665,6 +1669,17 @@ export async function integrationPackCheck(options = {}) {
|
|
|
1665
1669
|
{iconSets: true},
|
|
1666
1670
|
);
|
|
1667
1671
|
|
|
1672
|
+
// Each relative import of a packed module that names no packed file:
|
|
1673
|
+
// validate lists it as a note, and it is a warning here, as the other
|
|
1674
|
+
// listed findings of the local tree are.
|
|
1675
|
+
for (const issue of packedResult.listed ?? []) {
|
|
1676
|
+
if (issue.code !== 'relative_import_not_shipped') continue;
|
|
1677
|
+
issues.push({
|
|
1678
|
+
code: `packed_${issue.code}`,
|
|
1679
|
+
severity: 'warning',
|
|
1680
|
+
message: `Packed: ${issue.message}`,
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1668
1683
|
for (const issue of packedResult.issues) {
|
|
1669
1684
|
issues.push({
|
|
1670
1685
|
code: `packed_${issue.code}`,
|
|
@@ -6,21 +6,27 @@
|
|
|
6
6
|
* + a single sibling astryx.integration.{ts,mjs,js}. A missing manifest yields
|
|
7
7
|
* `found: false` (guidance, not an error) so callers stay exit-0.
|
|
8
8
|
* @param {string} [cwd]
|
|
9
|
+
* @param {{shippedImports?: boolean}} [options] `shippedImports: false`
|
|
10
|
+
* skips the shipped-import check, for a caller that checks the packed tree
|
|
9
11
|
* @returns {Promise<ValidateResult>}
|
|
10
12
|
*/
|
|
11
|
-
export function validateLocalIntegration(cwd?: string
|
|
13
|
+
export function validateLocalIntegration(cwd?: string, { shippedImports }?: {
|
|
14
|
+
shippedImports?: boolean;
|
|
15
|
+
}): Promise<ValidateResult>;
|
|
12
16
|
/**
|
|
13
17
|
* Validate an INSTALLED integration package: the nearest `node_modules/<spec>`
|
|
14
18
|
* at or above `cwd`, resolved the way the project loads it.
|
|
15
19
|
* @param {string} spec package name
|
|
16
20
|
* @param {string} [cwd]
|
|
17
|
-
* @param {{iconSets?: boolean}} [options]
|
|
18
|
-
* experimental icon sets; by default only
|
|
19
|
-
* `experimental.iconSet
|
|
21
|
+
* @param {{iconSets?: boolean, shippedImports?: boolean}} [options]
|
|
22
|
+
* `iconSets`: check the package's experimental icon sets; by default only
|
|
23
|
+
* when the project at `cwd` sets `experimental.iconSet`.
|
|
24
|
+
* `shippedImports: false` skips the shipped-import check.
|
|
20
25
|
* @returns {Promise<ValidateResult>}
|
|
21
26
|
*/
|
|
22
|
-
export function validateInstalledIntegration(spec: string, cwd?: string, { iconSets }?: {
|
|
27
|
+
export function validateInstalledIntegration(spec: string, cwd?: string, { iconSets, shippedImports }?: {
|
|
23
28
|
iconSets?: boolean;
|
|
29
|
+
shippedImports?: boolean;
|
|
24
30
|
}): Promise<ValidateResult>;
|
|
25
31
|
/**
|
|
26
32
|
* Unified entry: validate the LOCAL integration (no `pkg`) or an INSTALLED one
|
|
@@ -93,10 +99,16 @@ export type ValidateResult = {
|
|
|
93
99
|
*/
|
|
94
100
|
iconSets?: import("../../foundation/discovery/icon-set-checks.mjs").IconSetCoverage[] | undefined;
|
|
95
101
|
olderCliNotes?: import("../../foundation/discovery/doc-stability.mjs").OlderCliNote[] | undefined;
|
|
102
|
+
publicImports?: import("./validate-integration.type.mjs").PublicImportsReport | undefined;
|
|
96
103
|
/**
|
|
104
|
+
* the relative imports whose files npm could not be asked about
|
|
97
105
|
* what the public-import check could not judge
|
|
98
106
|
*/
|
|
99
|
-
|
|
107
|
+
shippedImports?: {
|
|
108
|
+
file: string;
|
|
109
|
+
specifier: string;
|
|
110
|
+
reason: string;
|
|
111
|
+
}[] | undefined;
|
|
100
112
|
/**
|
|
101
113
|
* the template icon imports the undeclared-icon check could not judge
|
|
102
114
|
*/
|