@astryxdesign/cli 0.7.17-canary.g5a3fd39 → 0.7.17-canary.g5cf5d69
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 +64 -63
- package/api/build/_adapter.d.mts +51 -0
- package/api/build/_adapter.mjs +122 -6
- package/api/build/build.doc.mjs +1 -1
- package/api/build/build.mjs +23 -14
- package/api/build/build.type.d.mts +1 -1
- package/api/build/build.type.mjs +3 -3
- package/api/build/help/help.d.mts +15 -14
- package/api/build/help/help.mjs +62 -3
- package/api/build/kit/answer.mjs +2 -3
- package/api/build/kit/signals.d.mts +10 -0
- package/api/build/kit/signals.mjs +15 -2
- package/api/component/detail/blocks/blocks.mjs +2 -1
- package/api/discover/_adapter.d.mts +57 -6
- package/api/discover/_adapter.mjs +278 -49
- package/api/discover/_catalog-view.d.mts +7 -0
- package/api/discover/_catalog-view.mjs +10 -1
- package/api/discover/detail/detail.d.mts +3 -2
- package/api/discover/detail/detail.mjs +3 -2
- package/api/discover/detail/doc/doc.mjs +1 -1
- package/api/discover/discover.d.mts +24 -0
- package/api/discover/discover.doc.mjs +1 -1
- package/api/discover/discover.mjs +146 -25
- package/api/discover/discover.type.d.mts +6 -4
- package/api/discover/discover.type.mjs +6 -4
- package/api/discover/search/search.d.mts +22 -0
- package/api/discover/search/search.mjs +290 -70
- package/api/docs/_entry-names.mjs +4 -3
- package/api/doctor/_adapter.d.mts +43 -3
- package/api/doctor/_adapter.mjs +142 -18
- package/api/doctor/built-checks.d.mts +30 -3
- package/api/doctor/built-checks.mjs +132 -5
- package/api/doctor/doctor.d.mts +93 -6
- package/api/doctor/doctor.doc.mjs +2 -2
- package/api/doctor/doctor.mjs +524 -33
- package/api/doctor/doctor.type.d.mts +2 -1
- package/api/doctor/doctor.type.mjs +2 -1
- package/api/doctor/theme-checks.d.mts +19 -0
- package/api/doctor/theme-checks.mjs +74 -6
- package/api/hook/hook.type.d.mts +1 -1
- package/api/hook/hook.type.mjs +1 -1
- package/api/hook/list/list.mjs +11 -7
- package/api/icon/_adapter.d.mts +2 -1
- package/api/icon/_adapter.mjs +10 -15
- package/api/icon/_records.d.mts +3 -1
- package/api/icon/_records.mjs +30 -3
- package/api/icon/exportIconIndex.doc.mjs +1 -1
- package/api/icon/icon.doc.mjs +3 -3
- package/api/icon/icon.type.d.mts +32 -1
- package/api/icon/icon.type.mjs +19 -3
- package/api/icon/list/list.mjs +4 -1
- package/api/icon/rankIconIndex.doc.mjs +1 -1
- package/api/icon/search/icon-index.mjs +18 -8
- package/api/icon/search/search.d.mts +26 -3
- package/api/icon/search/search.mjs +155 -9
- package/api/init/_adapter.d.mts +14 -0
- package/api/init/_adapter.mjs +26 -4
- package/api/init/init.d.mts +1 -1
- package/api/init/init.doc.mjs +2 -2
- package/api/init/init.mjs +1 -1
- package/api/init/init.type.d.mts +29 -1
- package/api/init/init.type.mjs +14 -1
- package/api/init/run/run.d.mts +11 -1
- package/api/init/run/run.mjs +84 -5
- package/api/integration/_adapter.d.mts +5 -4
- package/api/integration/_adapter.mjs +7 -5
- package/api/integration/integrationCheck.doc.mjs +1 -1
- package/api/integration/pack-check.mjs +8 -9
- package/api/integration/validate-integration.d.mts +1 -1
- package/api/integration/validate-integration.mjs +26 -24
- package/api/integration/validate-integration.type.d.mts +5 -2
- package/api/integration/validate-integration.type.mjs +5 -2
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/render/_adapter.d.mts +4 -2
- package/api/render/_adapter.mjs +62 -21
- package/api/render/render.doc.mjs +8 -5
- package/api/render/render.mjs +1 -1
- package/api/render/render.type.d.mts +2 -0
- package/api/render/render.type.mjs +2 -0
- package/api/search/ORDERING.md +2 -2
- package/api/search/_candidate-score.d.mts +3 -0
- package/api/search/_candidate-score.mjs +36 -3
- package/api/search/_gather-docs.mjs +29 -2
- package/api/search/_gather-templates.mjs +2 -1
- package/api/search/_main-searcher.mjs +13 -0
- package/api/search/_named-keywords.d.mts +2 -1
- package/api/search/_named-keywords.mjs +48 -6
- package/api/search/_order.d.mts +36 -1
- package/api/search/_order.mjs +141 -3
- package/api/swizzle/list/list.mjs +8 -1
- package/api/swizzle/swizzle.type.d.mts +1 -1
- package/api/swizzle/swizzle.type.mjs +1 -1
- package/api/template/copy/copy.mjs +3 -4
- package/api/template/list/list.mjs +2 -1
- package/api/template/show/show.mjs +2 -1
- package/api/template/skeleton/skeleton.mjs +2 -1
- package/api/template/template.doc.mjs +1 -1
- package/api/template/template.mjs +19 -1
- package/api/template/template.type.d.mts +1 -0
- package/api/template/template.type.mjs +2 -1
- package/api/theme/_adapter.d.mts +1 -0
- package/api/theme/_adapter.mjs +3 -5
- package/api/theme/_app-provider.d.mts +42 -0
- package/api/theme/_app-provider.mjs +61 -27
- package/api/theme/build/build.d.mts +4 -10
- package/api/theme/build/build.mjs +165 -116
- package/api/theme/build/input-fields.d.mts +9 -0
- package/api/theme/build/input-fields.mjs +155 -16
- package/api/theme/build/radius-values.d.mts +18 -0
- package/api/theme/build/radius-values.mjs +76 -0
- package/api/theme/build/typography-values.mjs +7 -23
- package/api/theme/build/written-values.d.mts +18 -0
- package/api/theme/build/written-values.mjs +107 -31
- package/api/theme/eject/eject.mjs +6 -1
- package/api/theme/palette/generate/generator.mjs +24 -0
- package/api/theme/theme.type.d.mts +4 -2
- package/api/theme/theme.type.mjs +3 -2
- package/api/theme/themeBuild.doc.mjs +2 -2
- package/api/theme/themeEject.doc.mjs +1 -1
- package/api/theme-edit/_catalog.d.mts +40 -0
- package/api/theme-edit/_catalog.mjs +100 -22
- package/api/theme-edit/_check.mjs +213 -43
- package/api/theme-edit/_color.d.mts +14 -0
- package/api/theme-edit/_color.mjs +22 -0
- package/api/theme-edit/_compiler.mjs +52 -0
- package/api/theme-edit/_context.d.mts +20 -2
- package/api/theme-edit/_context.mjs +157 -29
- package/api/theme-edit/_edit.mjs +426 -58
- package/api/theme-edit/_how-question.d.mts +14 -0
- package/api/theme-edit/_how-question.mjs +1541 -127
- package/api/theme-edit/_how.mjs +43 -0
- package/api/theme-edit/_missed.mjs +107 -27
- package/api/theme-edit/_normal.d.mts +18 -4
- package/api/theme-edit/_normal.mjs +84 -3
- package/api/theme-edit/_palette.d.mts +9 -0
- package/api/theme-edit/_palette.mjs +158 -33
- package/api/theme-edit/_part-words.mjs +16 -3
- package/api/theme-edit/_parts.d.mts +8 -0
- package/api/theme-edit/_parts.mjs +120 -36
- package/api/theme-edit/_png.d.mts +24 -0
- package/api/theme-edit/_png.mjs +99 -0
- package/api/theme-edit/_preview-app.d.mts +16 -0
- package/api/theme-edit/_preview-app.mjs +52 -18
- package/api/theme-edit/_preview.d.mts +44 -26
- package/api/theme-edit/_preview.mjs +255 -67
- package/api/theme-edit/_project.d.mts +12 -1
- package/api/theme-edit/_project.mjs +16 -1
- package/api/theme-edit/_settings.d.mts +116 -0
- package/api/theme-edit/_settings.mjs +1197 -58
- package/api/theme-edit/_tables.d.mts +16 -0
- package/api/theme-edit/_tables.mjs +34 -4
- package/api/theme-edit/theme-edit.type.d.mts +15 -2
- package/api/theme-edit/theme-edit.type.mjs +8 -6
- package/api/upgrade/_adapter.d.mts +46 -7
- package/api/upgrade/_adapter.mjs +110 -15
- package/api/upgrade/registry/registry.d.mts +6 -3
- package/api/upgrade/registry/registry.mjs +21 -6
- package/api/upgrade/run/run.mjs +23 -11
- package/api/upgrade/upgrade.doc.mjs +4 -3
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/tree/agent-guidance.doc.mjs +3 -2
- package/assets/docs/tree/checks.doc.mjs +2 -2
- package/assets/docs/tree/host-entry.doc.mjs +4 -0
- package/assets/docs/tree/icon-definitions.doc.mjs +3 -3
- package/assets/docs/tree/icon-sets.doc.mjs +6 -6
- package/assets/docs/tree/problems.doc.mjs +3 -3
- package/assets/docs/tree/render-pages.doc.mjs +17 -3
- package/assets/docs/tree/share-a-page.doc.mjs +5 -5
- package/assets/docs/tree/short-and-findable.doc.mjs +3 -3
- package/assets/docs/tree/troubleshooting.doc.mjs +8 -0
- package/assets/docs/tree/updates.doc.mjs +1 -1
- package/assets/docs/tree/versioning.doc.mjs +1 -1
- package/assets/docs/working-with-ai.doc.mjs +40 -5
- package/assets/docs-routes.generated.json +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/icons/installed-icon-set.doc.mjs +30 -0
- package/assets/search-catalog.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/Avatar/AvatarInteractive.tsx +6 -1
- package/assets/templates/blocks/components/CodeBlock/CodeBlockTerminal.tsx +1 -1
- package/assets/templates/blocks/components/LinkProvider/LinkProviderCustomLink.tsx +3 -1
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat/page.tsx +6 -2
- package/assets/templates/pages/ai-chat-landing/page.tsx +1 -1
- package/assets/templates/pages/blank/page.tsx +4 -2
- package/assets/templates/pages/canvas-editor/page.tsx +3 -1
- package/assets/templates/pages/centered-hero/page.tsx +1 -1
- package/assets/templates/pages/checkout-wizard/page.tsx +1 -1
- package/assets/templates/pages/classic-gallery/page.tsx +1 -1
- package/assets/templates/pages/contact-form/page.tsx +2 -2
- package/assets/templates/pages/course-detail/page.tsx +1 -1
- package/assets/templates/pages/dashboard/page.tsx +24 -8
- package/assets/templates/pages/dashboard-alert-rail/page.tsx +4 -2
- package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +7 -3
- package/assets/templates/pages/dashboard-comparison/page.tsx +5 -2
- package/assets/templates/pages/dashboard-composition/page.tsx +10 -4
- package/assets/templates/pages/dashboard-progress/page.tsx +6 -3
- package/assets/templates/pages/dashboard-scorecard/page.tsx +17 -8
- package/assets/templates/pages/detail-page/page.tsx +22 -5
- package/assets/templates/pages/documentation/page.tsx +4 -2
- package/assets/templates/pages/documentation-design/page.tsx +5 -2
- package/assets/templates/pages/documentation-technical/page.tsx +4 -2
- package/assets/templates/pages/editor/page.tsx +28 -9
- package/assets/templates/pages/file-explorer/page.tsx +3 -1
- package/assets/templates/pages/form-two-column/page.tsx +1 -1
- package/assets/templates/pages/form-wizard/page.tsx +1 -1
- package/assets/templates/pages/form-wizard-dialog/page.tsx +3 -1
- package/assets/templates/pages/form-wizard-inline/page.tsx +1 -1
- package/assets/templates/pages/form-wizard-vertical/page.tsx +1 -1
- package/assets/templates/pages/gallery-hero/page.tsx +1 -1
- package/assets/templates/pages/ide/page.tsx +7 -2
- package/assets/templates/pages/kanban-board/page.tsx +10 -4
- package/assets/templates/pages/library/page.tsx +31 -61
- package/assets/templates/pages/login/page.tsx +4 -2
- package/assets/templates/pages/login-card/page.tsx +4 -2
- package/assets/templates/pages/login-split/page.tsx +3 -2
- package/assets/templates/pages/login-sso/page.tsx +4 -4
- package/assets/templates/pages/mixed-gallery/page.tsx +1 -1
- package/assets/templates/pages/payment-form/page.tsx +1 -1
- package/assets/templates/pages/product-detail/page.tsx +16 -4
- package/assets/templates/pages/product-gallery/page.tsx +1 -1
- package/assets/templates/pages/settings/page.tsx +10 -4
- package/assets/templates/pages/settings-dialog/page.tsx +5 -6
- package/assets/templates/pages/settings-sidebar/page.tsx +39 -13
- package/assets/templates/pages/side-gallery/page.tsx +1 -1
- package/assets/templates/pages/table/page.tsx +2 -2
- package/assets/templates/pages/table-filter/page.tsx +21 -6
- package/assets/templates/pages/table-grouped/page.tsx +23 -2
- package/assets/templates/pages/table-inbox/page.tsx +82 -32
- package/assets/templates/pages/theme-showcase/page.tsx +3 -2
- package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +12 -12
- package/assets/templates/themes/butter/butterTheme.ts +197 -4
- package/assets/templates/themes/chocolate/chocolateTheme.ts +72 -8
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +3 -3
- package/assets/templates/themes/gothic/gothicTheme.ts +114 -4
- package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +8 -8
- package/assets/templates/themes/matcha/matchaTheme.ts +48 -12
- package/assets/templates/themes/neutral/neutralTheme.ts +29 -0
- package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +2 -2
- package/assets/templates/themes/stone/stoneTheme.ts +69 -0
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +9 -9
- package/assets/templates/themes/y2k/y2kTheme.ts +249 -14
- package/authoring/codemod/parse.d.mts +0 -36
- package/authoring/codemod/parse.mjs +62 -41
- package/authoring/config/config.doc.mjs +1 -1
- package/authoring/config/parse.d.mts +0 -47
- package/authoring/config/parse.mjs +128 -103
- package/authoring/config/type.ts +4 -3
- package/authoring/debug/parse.d.mts +2 -2
- package/authoring/discover/parse.d.mts +2 -2
- package/authoring/discover/parse.mjs +52 -38
- package/authoring/discover/type.ts +2 -1
- package/authoring/doctypes/_schema.d.mts +834 -950
- package/authoring/doctypes/_schema.mjs +863 -825
- package/authoring/doctypes/command/parse.mjs +2 -2
- package/authoring/doctypes/component/parse.mjs +2 -2
- package/authoring/doctypes/enum/parse.mjs +2 -2
- package/authoring/doctypes/hook/parse.mjs +2 -2
- package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +1 -1
- package/authoring/doctypes/icon-definition/parse.d.mts +0 -24
- package/authoring/doctypes/icon-definition/parse.mjs +59 -43
- package/authoring/doctypes/icon-set/parse.d.mts +0 -75
- package/authoring/doctypes/icon-set/parse.mjs +239 -210
- package/authoring/doctypes/legacy.mjs +3 -3
- package/authoring/doctypes/namespace/parse.mjs +2 -2
- package/authoring/doctypes/reference/parse.mjs +2 -2
- package/authoring/doctypes/schema/parse.mjs +2 -2
- package/authoring/doctypes/template/parse.d.mts +0 -101
- package/authoring/doctypes/template/parse.mjs +131 -106
- package/authoring/doctypes/theme/parse.d.mts +0 -23
- package/authoring/doctypes/theme/parse.mjs +52 -36
- package/authoring/gap-report/parse.d.mts +1 -1
- package/authoring/integration/integration.doc.mjs +8 -0
- package/authoring/integration/schema.d.mts +14 -3
- package/authoring/integration/schema.mjs +20 -2
- package/authoring/integration/type.ts +14 -0
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/build.mjs +27 -13
- package/clients/cli/commands/component.mjs +14 -3
- package/clients/cli/commands/discover.doc.mjs +2 -2
- package/clients/cli/commands/discover.mjs +20 -3
- package/clients/cli/commands/docs.doc.mjs +11 -9
- package/clients/cli/commands/docs.mjs +50 -21
- package/clients/cli/commands/experimental/icon.mjs +330 -227
- package/clients/cli/commands/experimental/render.mjs +16 -1
- package/clients/cli/commands/experimental/theme.mjs +42 -17
- package/clients/cli/commands/experimental-icon-add.doc.mjs +1 -1
- package/clients/cli/commands/experimental-icon-map.doc.mjs +4 -1
- package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +4 -1
- package/clients/cli/commands/experimental-icon-new-set.doc.mjs +4 -1
- package/clients/cli/commands/experimental-icon-use.doc.mjs +1 -1
- package/clients/cli/commands/experimental-icon.doc.mjs +1 -1
- package/clients/cli/commands/experimental-render.doc.mjs +3 -3
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +1 -1
- package/clients/cli/commands/init.doc.mjs +36 -24
- package/clients/cli/commands/integration-check.doc.mjs +1 -1
- package/clients/cli/commands/mcp.doc.mjs +53 -0
- package/clients/cli/commands/mcp.mjs +51 -0
- package/clients/cli/commands/search.mjs +46 -9
- package/clients/cli/commands/template.mjs +3 -2
- package/clients/cli/commands/theme-build.doc.mjs +1 -1
- package/clients/cli/commands/theme.mjs +12 -2
- package/clients/cli/commands/upgrade.doc.mjs +3 -2
- package/clients/cli/commands.generated.json +1 -1
- package/clients/cli/formatters/index.mjs +52 -6
- package/clients/cli/index.mjs +23 -17
- package/clients/cli/lib/base-gate.mjs +37 -5
- package/clients/cli/lib/define-command.mjs +82 -4
- package/clients/cli/lib/json-shim.mjs +61 -4
- package/clients/cli/lib/manifest.mjs +9 -1
- package/clients/cli/lib/mcp-server.mjs +286 -0
- package/clients/cli/lib/mcp-tools.mjs +405 -0
- package/clients/cli/lib/other-cli-words.mjs +99 -0
- package/clients/cli/lib/stray-option.mjs +27 -1
- package/clients/cli/lib/unknown-command.mjs +326 -11
- package/clients/cli/manifest.generated.json +1 -1
- package/clients/cli/run.mjs +1 -1
- package/foundation/agent-docs/agent-docs.d.mts +49 -1
- package/foundation/agent-docs/agent-docs.mjs +108 -7
- package/foundation/agent-docs/computer-agent-text.mjs +1 -1
- package/foundation/bases/core.d.mts +1 -1
- package/foundation/bases/core.mjs +3 -3
- package/foundation/bases/resolve.d.mts +4 -8
- package/foundation/bases/resolve.mjs +15 -21
- package/foundation/bases/state.d.mts +15 -9
- package/foundation/bases/state.mjs +33 -6
- package/foundation/config/project.d.mts +5 -4
- package/foundation/config/project.mjs +33 -17
- package/foundation/discovery/component-discovery.mjs +15 -28
- package/foundation/discovery/icon-imports.d.mts +66 -0
- package/foundation/discovery/icon-imports.mjs +225 -0
- package/foundation/discovery/icon-ranking.d.mts +12 -2
- package/foundation/discovery/icon-ranking.mjs +197 -10
- package/foundation/discovery/icon-set-checks.mjs +2 -1
- package/foundation/discovery/icon-set-discovery.d.mts +28 -0
- package/foundation/discovery/icon-set-discovery.mjs +42 -0
- package/foundation/discovery/icon-set-writer.d.mts +2 -11
- package/foundation/discovery/icon-set-writer.mjs +3 -29
- package/foundation/discovery/module-exports.d.mts +1 -1
- package/foundation/discovery/module-exports.mjs +136 -33
- package/foundation/discovery/name-roots.d.mts +5 -0
- package/foundation/discovery/name-roots.mjs +11 -0
- package/foundation/discovery/runner-allowlist.d.mts +1 -0
- package/foundation/discovery/runner-allowlist.mjs +2 -0
- package/foundation/discovery/runner-commands.mjs +1 -0
- package/foundation/discovery/template-adapter.d.mts +1 -1
- package/foundation/discovery/template-destination.d.mts +14 -6
- package/foundation/discovery/template-destination.mjs +42 -8
- package/foundation/discovery/template-icons.d.mts +45 -2
- package/foundation/discovery/template-icons.mjs +26 -54
- package/foundation/discovery/template-needs.d.mts +28 -2
- package/foundation/discovery/template-needs.mjs +92 -11
- package/foundation/discovery/theme-discovery.d.mts +8 -0
- package/foundation/discovery/theme-discovery.mjs +23 -6
- package/foundation/discovery/theme-imports.mjs +2 -4
- package/foundation/doc-compiler/parse-readable.mjs +4 -3
- package/foundation/doc-compiler/stored-docs.d.mts +13 -0
- package/foundation/doc-compiler/stored-docs.mjs +74 -3
- package/foundation/env/cli-command.d.mts +68 -10
- package/foundation/env/cli-command.mjs +116 -22
- package/foundation/env/project-scope.d.mts +9 -0
- package/foundation/env/project-scope.mjs +28 -2
- package/foundation/fs/gather-cache.d.mts +23 -0
- package/foundation/fs/gather-cache.mjs +94 -2
- package/foundation/fs/module-loader.d.mts +3 -1
- package/foundation/fs/module-loader.mjs +85 -5
- package/foundation/fs/read-record.mjs +9 -5
- package/foundation/identity/package-names.d.mts +18 -0
- package/foundation/identity/package-names.mjs +19 -0
- package/foundation/identity/providers.mjs +3 -2
- package/foundation/integrations/icon-features.d.mts +63 -0
- package/foundation/integrations/icon-features.mjs +54 -0
- package/foundation/integrations/integrations.d.mts +13 -1
- package/foundation/integrations/integrations.mjs +47 -6
- package/foundation/integrations/pack-state.d.mts +21 -0
- package/foundation/integrations/pack-state.mjs +42 -19
- package/foundation/integrations/validate-contributions.d.mts +11 -3
- package/foundation/integrations/validate-contributions.mjs +51 -13
- package/foundation/release/cache.d.mts +13 -1
- package/foundation/release/cache.mjs +94 -14
- package/foundation/release/notices.d.mts +15 -0
- package/foundation/release/notices.mjs +111 -7
- package/foundation/release/project.d.mts +3 -4
- package/foundation/release/project.mjs +5 -6
- package/foundation/render/client-bundle.d.mts +126 -0
- package/foundation/render/client-bundle.mjs +565 -0
- package/foundation/render/cut-short.d.mts +7 -1
- package/foundation/render/cut-short.mjs +46 -6
- package/foundation/render/embedded-imports.d.mts +4 -3
- package/foundation/render/embedded-imports.mjs +13 -8
- package/foundation/render/esbuild-dependency.d.mts +14 -0
- package/foundation/render/esbuild-dependency.mjs +41 -0
- package/foundation/render/file-header.mjs +5 -4
- package/foundation/render/page-worker.mjs +562 -86
- package/foundation/render/picture-chrome.mjs +54 -29
- package/foundation/render/picture-playwright.mjs +78 -42
- package/foundation/render/picture-window.d.mts +33 -0
- package/foundation/render/picture-window.mjs +78 -0
- package/foundation/render/render-page.d.mts +55 -4
- package/foundation/render/render-page.mjs +199 -28
- package/foundation/render/restore-folder.d.mts +13 -0
- package/foundation/render/restore-folder.mjs +30 -0
- package/foundation/render/served-packages.d.mts +2 -1
- package/foundation/render/served-packages.mjs +5 -3
- package/foundation/render/ts-paths.d.mts +11 -0
- package/foundation/render/ts-paths.mjs +27 -2
- package/foundation/render/value-uses.d.mts +43 -0
- package/foundation/render/value-uses.mjs +110 -0
- package/foundation/response/error-codes.d.mts +2 -1
- package/foundation/response/error-codes.doc.mjs +7 -1
- package/foundation/response/error-codes.mjs +10 -2
- package/foundation/response/response-types.doc.mjs +12 -12
- package/foundation/runtime/package-root.d.mts +8 -0
- package/foundation/runtime/package-root.mjs +20 -0
- package/foundation/suggest/other-command.d.mts +11 -0
- package/foundation/suggest/other-command.mjs +1 -1
- package/foundation/text/icon-id.d.mts +20 -0
- package/foundation/text/icon-id.mjs +40 -0
- package/foundation/text/icon-set-next.d.mts +25 -0
- package/foundation/text/icon-set-next.mjs +29 -0
- package/foundation/xle/browser.d.mts +2 -2
- package/package.json +7 -6
|
@@ -17,8 +17,9 @@ import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';
|
|
|
17
17
|
/**
|
|
18
18
|
* Build the discover.detail response for one package. The project's installed
|
|
19
19
|
* copy describes itself; any other version is described by its source. For a
|
|
20
|
-
* package the project does not have, `install`
|
|
21
|
-
*
|
|
20
|
+
* package the project does not have, `install` says how to add it (the
|
|
21
|
+
* project's integration install guidance, else the package-manager command)
|
|
22
|
+
* — printed, never run.
|
|
22
23
|
*
|
|
23
24
|
* @param {import('../_adapter.mjs').InstalledPackage[]} packages
|
|
24
25
|
* @param {string} name package name, e.g. `@scope/name`
|
|
@@ -63,7 +63,7 @@ export async function doc(packages, pkgName, compName, {lang, zh}) {
|
|
|
63
63
|
ERROR_CODES.ERR_UNKNOWN_PACKAGE,
|
|
64
64
|
);
|
|
65
65
|
|
|
66
|
-
const result = findComponent([pkg], compName);
|
|
66
|
+
const result = await findComponent([pkg], compName);
|
|
67
67
|
if (!result) {
|
|
68
68
|
const lower = compName.toLowerCase();
|
|
69
69
|
const hits = pkg.components.filter(c => c.toLowerCase().includes(lower));
|
|
@@ -11,6 +11,21 @@
|
|
|
11
11
|
* @returns {boolean}
|
|
12
12
|
*/
|
|
13
13
|
export function answersQueries(project: import("../../foundation/config/project.mjs").Project | undefined): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether `astryx discover <query>` would list a match, read from the saved
|
|
16
|
+
* copies of the discover sources' full catalogs instead of calling the
|
|
17
|
+
* sources: the same installed packages and catalog items, ranked and cut by
|
|
18
|
+
* discover's own search (see answersAny), with no rule of its own. Null when
|
|
19
|
+
* no source has a saved copy, or when discover answers every query in the
|
|
20
|
+
* project with the list (FR1), so nothing is known. The search command reads
|
|
21
|
+
* it to point at `discover` only when discover has an answer.
|
|
22
|
+
* @param {string} query free text, as search takes it
|
|
23
|
+
* @param {{type?: string}} [options] an item kind, when the search keeps one
|
|
24
|
+
* @returns {Promise<boolean | null>}
|
|
25
|
+
*/
|
|
26
|
+
export function wouldAnswer(query: string, { type }?: {
|
|
27
|
+
type?: string;
|
|
28
|
+
}): Promise<boolean | null>;
|
|
14
29
|
/**
|
|
15
30
|
* @param {string} [query]
|
|
16
31
|
* @param {import('./discover.type.mjs').DiscoverOptions} [options]
|
|
@@ -24,3 +39,12 @@ export function answersQueries(project: import("../../foundation/config/project.
|
|
|
24
39
|
*/
|
|
25
40
|
export function discover(query?: string, options?: import("./discover.type.mjs").DiscoverOptions): Promise<import("./discover.type.mjs").DiscoverListResponse | import("./discover.type.mjs").DiscoverDetailResponse | import("./discover.type.mjs").DiscoverDetailDocResponse | import("./discover.type.mjs").DiscoverItemResponse | import("./discover.type.mjs").DiscoverSearchResponse>;
|
|
26
41
|
export { OFFICIAL_SOURCE_NAME } from "./_adapter.mjs";
|
|
42
|
+
export type SavedSearchInput = {
|
|
43
|
+
packages: Array<{
|
|
44
|
+
name: string;
|
|
45
|
+
components: string[];
|
|
46
|
+
}>;
|
|
47
|
+
items: Array<Pick<import("./_catalog-view.mjs").SearchItem, "kind" | "name" | "title" | "summary" | "description" | "keywords" | "packageDescription">>;
|
|
48
|
+
} | {
|
|
49
|
+
packages: null;
|
|
50
|
+
};
|
|
@@ -91,7 +91,7 @@ export const doc = {
|
|
|
91
91
|
{
|
|
92
92
|
type: 'discover.list',
|
|
93
93
|
description:
|
|
94
|
-
'What the project has: the integrations it loads and the official packages it declares (package, the npm package and always equal to name; name, category, components, version, and a list per other kind they add), official packages first. meta.available lists what the project could add, official packages first, each with its package and the
|
|
94
|
+
'What the project has: the integrations it loads and the official packages it declares (package, the npm package and always equal to name; name, category, components, version, and a list per other kind they add), official packages first. meta.available lists what the project could add, official packages first, each with its package and how to add it: the install guidance an integration of the project gives, else the package-manager command; inside a project, an integration installed for the computer that the project does not install is listed there too, with source `installed for this computer` and how to add it in `install`. meta.sources reports each source, the official list last. When it lists no integration it carries meta.configured.',
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
type: 'discover.detail',
|
|
@@ -33,30 +33,33 @@ import {
|
|
|
33
33
|
discoverPackages,
|
|
34
34
|
findComponent,
|
|
35
35
|
hasSources,
|
|
36
|
+
keptSavedSearch,
|
|
36
37
|
loadReadKinds,
|
|
37
38
|
officialDeclarations,
|
|
38
39
|
STABLE_KINDS,
|
|
39
40
|
officialFirst,
|
|
40
41
|
officialList,
|
|
42
|
+
savedCatalog,
|
|
43
|
+
withCoreMatch,
|
|
41
44
|
withDeclaredOfficial,
|
|
42
45
|
} from './_adapter.mjs';
|
|
43
|
-
import {
|
|
44
|
-
|
|
45
|
-
catalogState,
|
|
46
|
-
searchItems,
|
|
47
|
-
withLatest,
|
|
48
|
-
} from './_catalog-view.mjs';
|
|
49
|
-
import {list} from './list/list.mjs';
|
|
50
|
-
import {detail} from './detail/detail.mjs';
|
|
51
|
-
import {doc, docFromResult} from './detail/doc/doc.mjs';
|
|
52
|
-
import {item} from './detail/item/item.mjs';
|
|
53
|
-
import {search} from './search/search.mjs';
|
|
46
|
+
import {DISCOVER_KINDS} from '../../authoring/discover/parse.mjs';
|
|
47
|
+
import {answersAny, search} from './search/search.mjs';
|
|
54
48
|
import {AstryxError} from '../error.mjs';
|
|
55
49
|
import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';
|
|
56
50
|
import {levenshteinDistance} from '../../foundation/text/string-utils.mjs';
|
|
57
51
|
|
|
58
52
|
const DEFAULT_LIMIT = 20;
|
|
59
53
|
|
|
54
|
+
// The catalog view and the list, detail, doc and item leaves load only for
|
|
55
|
+
// an answer that needs them: search's discover line imports this module on
|
|
56
|
+
// every search and, with a kept record, needs none of them.
|
|
57
|
+
const catalogView = () => import('./_catalog-view.mjs');
|
|
58
|
+
const listLeaf = () => import('./list/list.mjs');
|
|
59
|
+
const detailLeaf = () => import('./detail/detail.mjs');
|
|
60
|
+
const docLeaf = () => import('./detail/doc/doc.mjs');
|
|
61
|
+
const itemLeaf = () => import('./detail/item/item.mjs');
|
|
62
|
+
|
|
60
63
|
/**
|
|
61
64
|
* Split a package-shaped query: `name`, `name@version`, or `name/item`, with an
|
|
62
65
|
* optional `@scope/` prefix on the name.
|
|
@@ -164,6 +167,100 @@ export function answersQueries(project) {
|
|
|
164
167
|
);
|
|
165
168
|
}
|
|
166
169
|
|
|
170
|
+
/**
|
|
171
|
+
* Whether `astryx discover <query>` would list a match, read from the saved
|
|
172
|
+
* copies of the discover sources' full catalogs instead of calling the
|
|
173
|
+
* sources: the same installed packages and catalog items, ranked and cut by
|
|
174
|
+
* discover's own search (see answersAny), with no rule of its own. Null when
|
|
175
|
+
* no source has a saved copy, or when discover answers every query in the
|
|
176
|
+
* project with the list (FR1), so nothing is known. The search command reads
|
|
177
|
+
* it to point at `discover` only when discover has an answer.
|
|
178
|
+
* @param {string} query free text, as search takes it
|
|
179
|
+
* @param {{type?: string}} [options] an item kind, when the search keeps one
|
|
180
|
+
* @returns {Promise<boolean | null>}
|
|
181
|
+
*/
|
|
182
|
+
export async function wouldAnswer(query, {type} = {}) {
|
|
183
|
+
const input = await keptSavedSearch(savedSearchInput, isSavedSearchInput);
|
|
184
|
+
if (input == null || input.packages == null) return null;
|
|
185
|
+
const kind = /** @type {readonly string[]} */ (DISCOVER_KINDS).includes(
|
|
186
|
+
type ?? '',
|
|
187
|
+
)
|
|
188
|
+
? /** @type {import('../../authoring/discover/type').DiscoverKind} */ (type)
|
|
189
|
+
: undefined;
|
|
190
|
+
return answersAny(input.packages, query, {items: input.items, type: kind});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @typedef {{packages: Array<{name: string, components: string[]}>, items: Array<Pick<import('./_catalog-view.mjs').SearchItem, 'kind' | 'name' | 'title' | 'summary' | 'description' | 'keywords' | 'packageDescription'>>} | {packages: null}} SavedSearchInput
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* What discover searches over the saved copies: the packages the project
|
|
199
|
+
* has, with the official packages declared in it, and every item those and
|
|
200
|
+
* the copies list. `packages: null` when nothing is known: no copy reads
|
|
201
|
+
* back, or discover answers every query with the list (FR1).
|
|
202
|
+
* @param {import('../../foundation/config/project.mjs').Project} project
|
|
203
|
+
* @returns {Promise<SavedSearchInput>}
|
|
204
|
+
*/
|
|
205
|
+
async function savedSearchInput(project) {
|
|
206
|
+
const {packages: scanned} = await discoverPackages(project);
|
|
207
|
+
const official = officialList({project});
|
|
208
|
+
const saved = savedCatalog(project, {official});
|
|
209
|
+
if (saved == null) return {packages: null};
|
|
210
|
+
const catalog = {sources: [], packages: saved};
|
|
211
|
+
const declarations = officialDeclarations(project, official.packages);
|
|
212
|
+
const integrations = await describeInstalled(project, scanned);
|
|
213
|
+
if (integrations.length === 0 && !hasSources(project)) {
|
|
214
|
+
return {packages: null};
|
|
215
|
+
}
|
|
216
|
+
const packages = withDeclaredOfficial(
|
|
217
|
+
project,
|
|
218
|
+
integrations,
|
|
219
|
+
catalog,
|
|
220
|
+
declarations,
|
|
221
|
+
official.packages,
|
|
222
|
+
);
|
|
223
|
+
const {searchItems} = await catalogView();
|
|
224
|
+
const items = searchItems(
|
|
225
|
+
packages,
|
|
226
|
+
catalog,
|
|
227
|
+
declaredDependencies(project),
|
|
228
|
+
declarations.any,
|
|
229
|
+
);
|
|
230
|
+
// Only what the ranking reads is kept: the smaller the record, the less a
|
|
231
|
+
// search spends reading it back.
|
|
232
|
+
return {
|
|
233
|
+
packages: packages.map(pkg => ({
|
|
234
|
+
name: pkg.name,
|
|
235
|
+
components: pkg.components,
|
|
236
|
+
})),
|
|
237
|
+
items: items.map(item => ({
|
|
238
|
+
kind: item.kind,
|
|
239
|
+
name: item.name,
|
|
240
|
+
...(item.title ? {title: item.title} : {}),
|
|
241
|
+
...(item.summary ? {summary: item.summary} : {}),
|
|
242
|
+
...(item.description ? {description: item.description} : {}),
|
|
243
|
+
...(item.keywords?.length ? {keywords: item.keywords} : {}),
|
|
244
|
+
...(item.packageDescription
|
|
245
|
+
? {packageDescription: item.packageDescription}
|
|
246
|
+
: {}),
|
|
247
|
+
})),
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The shape a kept {@link savedSearchInput} needs.
|
|
253
|
+
* @param {any} value
|
|
254
|
+
* @returns {boolean}
|
|
255
|
+
*/
|
|
256
|
+
function isSavedSearchInput(value) {
|
|
257
|
+
return (
|
|
258
|
+
value != null &&
|
|
259
|
+
(value.packages === null ||
|
|
260
|
+
(Array.isArray(value.packages) && Array.isArray(value.items)))
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
|
|
167
264
|
/**
|
|
168
265
|
* @param {string} [query]
|
|
169
266
|
* @param {import('./discover.type.mjs').DiscoverOptions} [options]
|
|
@@ -177,7 +274,9 @@ export function answersQueries(project) {
|
|
|
177
274
|
*/
|
|
178
275
|
export async function discover(query, options = {}) {
|
|
179
276
|
const {lang = null, zh = false, type, limit} = options;
|
|
180
|
-
|
|
277
|
+
const {availableEntries, catalogState, searchItems, withLatest} =
|
|
278
|
+
await catalogView();
|
|
279
|
+
// An experimental kind is read only in a project where it is on (spec:AST-017
|
|
181
280
|
// FR27); only then does `--type` take it, or an error name it.
|
|
182
281
|
const kinds =
|
|
183
282
|
options.type != null &&
|
|
@@ -248,6 +347,7 @@ export async function discover(query, options = {}) {
|
|
|
248
347
|
entry => entry.name,
|
|
249
348
|
);
|
|
250
349
|
const named = new Set(fromSources.map(entry => entry.name));
|
|
350
|
+
const {list} = await listLeaf();
|
|
251
351
|
return list(withLatest(packages, catalog), {
|
|
252
352
|
configured,
|
|
253
353
|
type,
|
|
@@ -272,6 +372,9 @@ export async function discover(query, options = {}) {
|
|
|
272
372
|
}
|
|
273
373
|
|
|
274
374
|
const target = splitTarget(query);
|
|
375
|
+
// A query of several words is free text, even when it starts with a
|
|
376
|
+
// scoped name (FR4): no package or item has a space in its name.
|
|
377
|
+
const packageShaped = !/\s/.test(query);
|
|
275
378
|
|
|
276
379
|
/**
|
|
277
380
|
* One package, one version, or one item, once `target.name` is known to be
|
|
@@ -320,7 +423,11 @@ export async function discover(query, options = {}) {
|
|
|
320
423
|
add: entry?.official ? addOfficial : add,
|
|
321
424
|
installedAs,
|
|
322
425
|
};
|
|
323
|
-
if (!target.item)
|
|
426
|
+
if (!target.item) {
|
|
427
|
+
const {detail} = await detailLeaf();
|
|
428
|
+
return detail(packages, target.name, context);
|
|
429
|
+
}
|
|
430
|
+
const {item} = await itemLeaf();
|
|
324
431
|
const found = item(packages, target.name, target.item, context);
|
|
325
432
|
if (found) return found;
|
|
326
433
|
// An installed icon set that was withdrawn answers nothing; say why
|
|
@@ -351,18 +458,24 @@ export async function discover(query, options = {}) {
|
|
|
351
458
|
ERROR_CODES.ERR_UNKNOWN_COMPONENT,
|
|
352
459
|
);
|
|
353
460
|
}
|
|
461
|
+
const {doc} = await docLeaf();
|
|
354
462
|
return await doc(integrations, target.name, target.item, {lang, zh});
|
|
355
463
|
};
|
|
356
464
|
|
|
357
465
|
// An installed component keeps resolving to its full doc, before any source
|
|
358
466
|
// is asked anything.
|
|
359
|
-
const installedPkg =
|
|
467
|
+
const installedPkg = packageShaped
|
|
468
|
+
? integrations.find(p => p.name === target.name)
|
|
469
|
+
: undefined;
|
|
360
470
|
if (installedPkg && target.item && !target.version) {
|
|
361
|
-
const resolved = findComponent([installedPkg], target.item);
|
|
362
|
-
if (resolved)
|
|
471
|
+
const resolved = await findComponent([installedPkg], target.item);
|
|
472
|
+
if (resolved) {
|
|
473
|
+
const {docFromResult} = await docLeaf();
|
|
474
|
+
return await docFromResult(resolved, {lang, zh});
|
|
475
|
+
}
|
|
363
476
|
}
|
|
364
477
|
|
|
365
|
-
if (target.scoped) {
|
|
478
|
+
if (target.scoped && packageShaped) {
|
|
366
479
|
return await packageView(
|
|
367
480
|
await catalogFor({package: target.name, version: target.version}),
|
|
368
481
|
);
|
|
@@ -370,8 +483,9 @@ export async function discover(query, options = {}) {
|
|
|
370
483
|
|
|
371
484
|
const listing = await catalogFor();
|
|
372
485
|
const isPackage =
|
|
373
|
-
|
|
374
|
-
|
|
486
|
+
packageShaped &&
|
|
487
|
+
(installedPkg != null ||
|
|
488
|
+
listing.packages.some(p => p.package === target.name));
|
|
375
489
|
if (isPackage && (target.version || target.item || target.name === query)) {
|
|
376
490
|
return await packageView(
|
|
377
491
|
await catalogFor({package: target.name, version: target.version}),
|
|
@@ -379,10 +493,17 @@ export async function discover(query, options = {}) {
|
|
|
379
493
|
}
|
|
380
494
|
|
|
381
495
|
const packages = installedFor(listing);
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
496
|
+
try {
|
|
497
|
+
return await search(packages, query, {
|
|
498
|
+
items: searchItems(packages, listing, declared, declarations.any),
|
|
499
|
+
type,
|
|
500
|
+
only,
|
|
501
|
+
limit: limit ?? DEFAULT_LIMIT,
|
|
502
|
+
});
|
|
503
|
+
} catch (err) {
|
|
504
|
+
if (err instanceof AstryxError && err.code === ERROR_CODES.ERR_NOT_FOUND) {
|
|
505
|
+
throw await withCoreMatch(err, query, project?.cwd ?? process.cwd());
|
|
506
|
+
}
|
|
507
|
+
throw err;
|
|
508
|
+
}
|
|
388
509
|
}
|
|
@@ -126,8 +126,9 @@ export type DiscoverAvailableEntry = {
|
|
|
126
126
|
*/
|
|
127
127
|
source: string;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
129
|
+
* How to add it to this project: the
|
|
130
|
+
* project's integration install guidance when one gives it, else the
|
|
131
|
+
* package-manager command; discover prints it and never runs it.
|
|
131
132
|
*/
|
|
132
133
|
install?: string | undefined;
|
|
133
134
|
};
|
|
@@ -160,8 +161,9 @@ export type DiscoverDetailResponse = {
|
|
|
160
161
|
/**
|
|
161
162
|
* `installed` says whether the project has the package;
|
|
162
163
|
* `installedVersion` is set when it has another version than the one shown.
|
|
163
|
-
* `install`
|
|
164
|
-
*
|
|
164
|
+
* `install` says how to add a package the project does not have: the
|
|
165
|
+
* project's integration install guidance when one gives it, else the
|
|
166
|
+
* package-manager command; discover prints it and never runs it. `installedAs` names
|
|
165
167
|
* the package the project has instead, when this one is an alias of it.
|
|
166
168
|
* `versions` (newest first) comes from a discover source.
|
|
167
169
|
*/
|
|
@@ -85,8 +85,9 @@
|
|
|
85
85
|
* the official list; `installed for this computer` for an integration
|
|
86
86
|
* installed beside the CLI that the project does not install (spec AST-081
|
|
87
87
|
* FR12).
|
|
88
|
-
* @property {string} [install]
|
|
89
|
-
*
|
|
88
|
+
* @property {string} [install] How to add it to this project: the
|
|
89
|
+
* project's integration install guidance when one gives it, else the
|
|
90
|
+
* package-manager command; discover prints it and never runs it.
|
|
90
91
|
*/
|
|
91
92
|
|
|
92
93
|
/**
|
|
@@ -117,8 +118,9 @@
|
|
|
117
118
|
* versions?: import('../../authoring/discover/type').DiscoverVersion[],
|
|
118
119
|
* }} data `installed` says whether the project has the package;
|
|
119
120
|
* `installedVersion` is set when it has another version than the one shown.
|
|
120
|
-
* `install`
|
|
121
|
-
*
|
|
121
|
+
* `install` says how to add a package the project does not have: the
|
|
122
|
+
* project's integration install guidance when one gives it, else the
|
|
123
|
+
* package-manager command; discover prints it and never runs it. `installedAs` names
|
|
122
124
|
* the package the project has instead, when this one is an alias of it.
|
|
123
125
|
* `versions` (newest first) comes from a discover source.
|
|
124
126
|
*/
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
2
|
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Whether search() would list any match for `query`: the same installed
|
|
6
|
+
* components and items, ranked and cut the same way, with no rule of its
|
|
7
|
+
* own. Search's discover line reads it.
|
|
8
|
+
* @param {Array<{name: string, components: string[]}>} packages installed
|
|
9
|
+
* packages, as far as their names and components
|
|
10
|
+
* @param {string} query
|
|
11
|
+
* @param {{items?: RankItem[], type?: string}} opts
|
|
12
|
+
* the items, as far as the ranking reads them
|
|
13
|
+
* @returns {boolean}
|
|
14
|
+
*/
|
|
15
|
+
export function answersAny(packages: Array<{
|
|
16
|
+
name: string;
|
|
17
|
+
components: string[];
|
|
18
|
+
}>, query: string, { items, type }: {
|
|
19
|
+
items?: RankItem[];
|
|
20
|
+
type?: string;
|
|
21
|
+
}): boolean;
|
|
4
22
|
/**
|
|
5
23
|
* Search all packages for `query` (a free-text term that never starts with
|
|
6
24
|
* `@`). Resolves to a search response when anything matches, even a single
|
|
@@ -26,3 +44,7 @@ export function search(packages: ScannedPackage[], query: string, opts: {
|
|
|
26
44
|
}): Promise<import("../discover.type.mjs").DiscoverSearchResponse>;
|
|
27
45
|
export type ScannedPackage = import("../_package-scanner.mjs").ScannedPackage;
|
|
28
46
|
export type SearchItem = import("../_catalog-view.mjs").SearchItem;
|
|
47
|
+
/**
|
|
48
|
+
* what the ranking reads of an item
|
|
49
|
+
*/
|
|
50
|
+
export type RankItem = Pick<SearchItem, "kind" | "name" | "title" | "summary" | "description" | "keywords" | "packageDescription">;
|