@astryxdesign/cli 0.7.17-canary.gdaeb596 → 0.7.17-canary.gdcdd9fa
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 +26 -26
- package/api/build/_adapter.mjs +11 -4
- package/api/build/build.doc.mjs +2 -2
- package/api/build/build.type.mjs +1 -1
- package/api/build/help/help.mjs +3 -3
- package/api/build/kit/kit.mjs +1 -1
- package/api/build/kit/start.mjs +1 -1
- package/api/component/_adapter.d.mts +21 -4
- package/api/component/_adapter.mjs +68 -45
- package/api/component/component.mjs +13 -3
- package/api/component/detail/blocks/blocks.mjs +1 -2
- package/api/discover/_adapter.d.mts +13 -2
- package/api/discover/_adapter.mjs +38 -30
- package/api/discover/_catalog-view.d.mts +15 -0
- package/api/discover/_catalog-view.mjs +20 -0
- package/api/discover/_icon-set-coverage.d.mts +22 -0
- package/api/discover/_icon-set-coverage.mjs +32 -0
- package/api/discover/detail/detail.d.mts +3 -1
- package/api/discover/detail/detail.mjs +11 -4
- package/api/discover/detail/item/item.d.mts +11 -1
- package/api/discover/detail/item/item.mjs +29 -8
- package/api/discover/discover.d.mts +12 -0
- package/api/discover/discover.mjs +72 -16
- package/api/discover/discover.type.d.mts +23 -3
- package/api/discover/discover.type.mjs +14 -3
- package/api/discover/search/search.mjs +3 -0
- package/api/docs/_adapter.d.mts +52 -1
- package/api/docs/_adapter.mjs +153 -12
- package/api/doctor/_adapter.d.mts +85 -1
- package/api/doctor/_adapter.mjs +212 -2
- package/api/doctor/built-checks.d.mts +9 -0
- package/api/doctor/built-checks.mjs +37 -6
- package/api/doctor/doctor.d.mts +30 -1
- package/api/doctor/doctor.doc.mjs +1 -1
- package/api/doctor/doctor.mjs +222 -11
- package/api/doctor/theme-checks.mjs +176 -19
- package/api/error.d.mts +12 -1
- package/api/error.mjs +18 -6
- package/api/icon/_adapter.d.mts +10 -1
- package/api/icon/_adapter.mjs +21 -1
- package/api/icon/_authoring.mjs +21 -7
- package/api/icon/add/add.mjs +1 -1
- package/api/icon/definitions/definitions.mjs +2 -0
- package/api/icon/icon.doc.mjs +3 -3
- package/api/icon/icon.type.d.mts +43 -1
- package/api/icon/icon.type.mjs +19 -3
- package/api/icon/iconMap.doc.mjs +2 -2
- package/api/icon/list/list.mjs +4 -5
- package/api/icon/map/map.mjs +13 -4
- package/api/icon/search/icon-index.mjs +4 -1
- package/api/icon/search/search.d.mts +5 -3
- package/api/icon/search/search.mjs +55 -12
- package/api/init/_adapter.d.mts +44 -0
- package/api/init/_adapter.mjs +192 -13
- package/api/init/init.doc.mjs +16 -3
- package/api/init/init.mjs +66 -4
- package/api/init/init.type.d.mts +39 -2
- package/api/init/init.type.mjs +18 -2
- package/api/init/run/run.d.mts +34 -2
- package/api/init/run/run.mjs +335 -32
- package/api/integration/pack-check.d.mts +2 -1
- package/api/integration/pack-check.mjs +10 -18
- package/api/integration/validate-integration.mjs +20 -1
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/render/_adapter.mjs +129 -32
- package/api/render/render.doc.mjs +4 -4
- package/api/render/render.mjs +7 -7
- package/api/render/render.type.d.mts +48 -8
- package/api/render/render.type.mjs +18 -9
- package/api/search/ORDERING.md +1 -1
- package/api/search/_adapter.d.mts +5 -4
- package/api/search/_adapter.mjs +6 -5
- package/api/search/_candidate-score.mjs +1 -2
- package/api/search/_cards.json +4 -1
- package/api/search/_gather-templates.mjs +1 -2
- package/api/search/_lexical.mjs +131 -7
- package/api/search/_order.mjs +7 -3
- package/api/search/_result.d.mts +7 -0
- package/api/search/_result.mjs +8 -0
- package/api/search/_score.mjs +3 -2
- package/api/search/_titles.d.mts +14 -0
- package/api/search/_titles.mjs +16 -3
- package/api/search/_words.mjs +7 -1
- package/api/search/search-index.mjs +18 -10
- package/api/swizzle/_adapter.d.mts +1 -1
- package/api/swizzle/_adapter.mjs +1 -5
- package/api/swizzle/_moduleGraph.d.mts +0 -6
- package/api/swizzle/_moduleGraph.mjs +0 -12
- package/api/swizzle/copy/copy.mjs +1 -1
- package/api/template/_adapter.d.mts +38 -0
- package/api/template/_adapter.mjs +170 -2
- package/api/template/copy/copy.d.mts +9 -2
- package/api/template/copy/copy.mjs +6 -1
- package/api/template/list/list.mjs +1 -2
- package/api/template/show/show.d.mts +10 -3
- package/api/template/show/show.mjs +14 -5
- package/api/template/skeleton/skeleton.mjs +1 -2
- package/api/template/template.doc.mjs +2 -2
- package/api/template/template.mjs +29 -6
- package/api/template/template.type.d.mts +2 -0
- package/api/template/template.type.mjs +3 -1
- package/api/theme/_adapter.mjs +31 -8
- package/api/theme/_shared-source.mjs +3 -1
- package/api/theme/build/build.d.mts +54 -19
- package/api/theme/build/build.mjs +265 -168
- package/api/theme/build/core-interception.d.mts +10 -0
- package/api/theme/build/core-interception.mjs +24 -0
- package/api/theme/build/import-specifier.d.mts +14 -0
- package/api/theme/build/import-specifier.mjs +36 -0
- package/api/theme/build/null-values.d.mts +11 -3
- package/api/theme/build/null-values.mjs +49 -23
- package/api/theme/build/self-contained.mjs +32 -11
- package/api/theme/build/setting-effects.d.mts +55 -0
- package/api/theme/build/setting-effects.mjs +110 -2
- package/api/theme/build/theme-object.d.mts +47 -0
- package/api/theme/build/theme-object.mjs +144 -0
- package/api/theme/theme.d.mts +25 -4
- package/api/theme/theme.mjs +55 -5
- package/api/theme/theme.type.d.mts +15 -5
- package/api/theme/theme.type.mjs +14 -7
- package/api/theme/themeBuild.doc.mjs +2 -2
- package/api/theme-edit/_how-question.mjs +2 -2
- package/api/theme-edit/_settings.mjs +11 -0
- package/api/theme-edit/_tables.mjs +1 -1
- package/api/upgrade/_adapter.d.mts +26 -0
- package/api/upgrade/_adapter.mjs +225 -1
- package/api/upgrade/run/run.mjs +4 -0
- package/api/upgrade/upgrade.mjs +1 -1
- package/api/upgrade/upgrade.type.d.mts +39 -7
- package/api/upgrade/upgrade.type.mjs +23 -9
- package/assets/codemods/transforms/next/index.mjs +8 -0
- package/assets/codemods/transforms/next/preserve-chat-radius.mjs +515 -0
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/author-a-theme.doc.mjs +2 -2
- package/assets/docs/principles.doc.dense.mjs +1 -1
- package/assets/docs/principles.doc.mjs +1 -1
- package/assets/docs/principles.doc.zh.mjs +1 -1
- package/assets/docs/tree/checks.doc.mjs +1 -1
- package/assets/docs/tree/export-pages.doc.mjs +20 -6
- package/assets/docs/tree/fonts-and-assets.doc.mjs +1 -1
- package/assets/docs/tree/icon-sets.doc.mjs +76 -8
- package/assets/docs/tree/layout.doc.mjs +16 -5
- package/assets/docs/tree/responsive.doc.mjs +2 -2
- package/assets/docs/tree/scaffold.doc.mjs +1 -0
- package/assets/docs/tree/share-a-page.doc.mjs +2 -2
- package/assets/docs/tree/tokens-color.doc.mjs +1 -1
- package/assets/docs/tree/tokens-radius.doc.mjs +1 -1
- package/assets/docs/tree/tokens.doc.mjs +32 -0
- package/assets/docs/use-a-theme.doc.mjs +4 -0
- package/assets/docs/working-with-ai.doc.mjs +1 -1
- package/assets/docs-routes.generated.json +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/icons/definitions/alignBottom.doc.mjs +1 -0
- package/assets/icons/definitions/alignCenter.doc.mjs +1 -0
- package/assets/icons/definitions/alignEnd.doc.mjs +1 -0
- package/assets/icons/definitions/alignJustify.doc.mjs +1 -0
- package/assets/icons/definitions/alignMiddle.doc.mjs +1 -0
- package/assets/icons/definitions/alignStart.doc.mjs +1 -0
- package/assets/icons/definitions/alignTop.doc.mjs +1 -0
- package/assets/icons/definitions/arrowDown.doc.mjs +1 -0
- package/assets/icons/definitions/arrowLeft.doc.mjs +1 -0
- package/assets/icons/definitions/arrowRight.doc.mjs +1 -0
- package/assets/icons/definitions/arrowUp.doc.mjs +1 -0
- package/assets/icons/definitions/arrowsUpDown.doc.mjs +1 -0
- package/assets/icons/definitions/bank.doc.mjs +1 -0
- package/assets/icons/definitions/bold.doc.mjs +1 -0
- package/assets/icons/definitions/bookmark.doc.mjs +1 -0
- package/assets/icons/definitions/bookmarkAdd.doc.mjs +1 -0
- package/assets/icons/definitions/cart.doc.mjs +1 -0
- package/assets/icons/definitions/check.doc.mjs +1 -0
- package/assets/icons/definitions/checkDouble.doc.mjs +1 -0
- package/assets/icons/definitions/chevronDown.doc.mjs +1 -0
- package/assets/icons/definitions/chevronLeft.doc.mjs +1 -0
- package/assets/icons/definitions/chevronRight.doc.mjs +1 -0
- package/assets/icons/definitions/chevronUp.doc.mjs +1 -0
- package/assets/icons/definitions/chevronsLeft.doc.mjs +1 -0
- package/assets/icons/definitions/chevronsRight.doc.mjs +1 -0
- package/assets/icons/definitions/clipboard.doc.mjs +1 -0
- package/assets/icons/definitions/cloud.doc.mjs +1 -1
- package/assets/icons/definitions/collapse.doc.mjs +1 -0
- package/assets/icons/definitions/compose.doc.mjs +1 -0
- package/assets/icons/definitions/conversation.doc.mjs +1 -0
- package/assets/icons/definitions/copy.doc.mjs +1 -0
- package/assets/icons/definitions/cornerRadius.doc.mjs +1 -0
- package/assets/icons/definitions/creditCard.doc.mjs +1 -0
- package/assets/icons/definitions/cut.doc.mjs +1 -0
- package/assets/icons/definitions/desktop.doc.mjs +1 -0
- package/assets/icons/definitions/discount.doc.mjs +1 -0
- package/assets/icons/definitions/document.doc.mjs +1 -0
- package/assets/icons/definitions/documentSearch.doc.mjs +1 -0
- package/assets/icons/definitions/download.doc.mjs +1 -0
- package/assets/icons/definitions/error.doc.mjs +1 -0
- package/assets/icons/definitions/exitFullScreen.doc.mjs +16 -0
- package/assets/icons/definitions/expand.doc.mjs +1 -0
- package/assets/icons/definitions/eye.doc.mjs +1 -0
- package/assets/icons/definitions/eyeSlash.doc.mjs +1 -0
- package/assets/icons/definitions/file.doc.mjs +1 -0
- package/assets/icons/definitions/flipHorizontal.doc.mjs +1 -0
- package/assets/icons/definitions/flipVertical.doc.mjs +1 -0
- package/assets/icons/definitions/folder.doc.mjs +1 -0
- package/assets/icons/definitions/folderAdd.doc.mjs +1 -0
- package/assets/icons/definitions/fullScreen.doc.mjs +16 -0
- package/assets/icons/definitions/globe.doc.mjs +1 -1
- package/assets/icons/definitions/info.doc.mjs +1 -0
- package/assets/icons/definitions/italic.doc.mjs +1 -0
- package/assets/icons/definitions/lock.doc.mjs +1 -0
- package/assets/icons/definitions/lowercase.doc.mjs +1 -0
- package/assets/icons/definitions/mail.doc.mjs +1 -1
- package/assets/icons/definitions/message.doc.mjs +2 -1
- package/assets/icons/definitions/mobile.doc.mjs +1 -0
- package/assets/icons/definitions/money.doc.mjs +1 -0
- package/assets/icons/definitions/moon.doc.mjs +1 -0
- package/assets/icons/definitions/notification.doc.mjs +1 -0
- package/assets/icons/definitions/notificationActive.doc.mjs +1 -0
- package/assets/icons/definitions/notificationOff.doc.mjs +1 -0
- package/assets/icons/definitions/paddingHorizontal.doc.mjs +1 -0
- package/assets/icons/definitions/paddingPerSide.doc.mjs +1 -0
- package/assets/icons/definitions/paddingVertical.doc.mjs +1 -0
- package/assets/icons/definitions/panelBottom.doc.mjs +1 -0
- package/assets/icons/definitions/panelLeft.doc.mjs +1 -0
- package/assets/icons/definitions/panelRight.doc.mjs +1 -0
- package/assets/icons/definitions/pause.doc.mjs +1 -0
- package/assets/icons/definitions/play.doc.mjs +1 -0
- package/assets/icons/definitions/radiusPerCorner.doc.mjs +1 -0
- package/assets/icons/definitions/redo.doc.mjs +1 -0
- package/assets/icons/definitions/rotate.doc.mjs +1 -0
- package/assets/icons/definitions/rotateCounterclockwise.doc.mjs +1 -0
- package/assets/icons/definitions/scale.doc.mjs +1 -2
- package/assets/icons/definitions/search.doc.mjs +1 -0
- package/assets/icons/definitions/send.doc.mjs +1 -0
- package/assets/icons/definitions/shoppingBag.doc.mjs +1 -0
- package/assets/icons/definitions/stop.doc.mjs +1 -0
- package/assets/icons/definitions/strikethrough.doc.mjs +1 -0
- package/assets/icons/definitions/success.doc.mjs +1 -0
- package/assets/icons/definitions/sun.doc.mjs +1 -0
- package/assets/icons/definitions/tablet.doc.mjs +1 -0
- package/assets/icons/definitions/textCase.doc.mjs +2 -1
- package/assets/icons/definitions/textRegular.doc.mjs +1 -0
- package/assets/icons/definitions/thumbsDown.doc.mjs +1 -0
- package/assets/icons/definitions/thumbsUp.doc.mjs +1 -0
- package/assets/icons/definitions/transfer.doc.mjs +1 -0
- package/assets/icons/definitions/trendDown.doc.mjs +1 -0
- package/assets/icons/definitions/trendUp.doc.mjs +1 -0
- package/assets/icons/definitions/underline.doc.mjs +1 -0
- package/assets/icons/definitions/undo.doc.mjs +1 -0
- package/assets/icons/definitions/unlock.doc.mjs +1 -0
- package/assets/icons/definitions/upload.doc.mjs +1 -0
- package/assets/icons/definitions/uppercase.doc.mjs +1 -0
- package/assets/icons/definitions/user.doc.mjs +1 -0
- package/assets/icons/definitions/userAdd.doc.mjs +1 -0
- package/assets/icons/definitions/userCircle.doc.mjs +1 -0
- package/assets/icons/definitions/userRemove.doc.mjs +1 -0
- package/assets/icons/definitions/users.doc.mjs +1 -0
- package/assets/icons/definitions/wallet.doc.mjs +1 -0
- package/assets/icons/definitions/warning.doc.mjs +1 -0
- package/assets/icons/definitions/wrench.doc.mjs +1 -1
- package/assets/search-catalog.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/AspectRatio/AspectRatioImageGallery.tsx +1 -1
- package/assets/templates/blocks/components/AspectRatio/AspectRatioWidescreen.tsx +1 -1
- package/assets/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.tsx +1 -1
- package/assets/templates/blocks/components/Avatar/AvatarShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Avatar/AvatarTooltip.tsx +1 -1
- package/assets/templates/blocks/components/Avatar/AvatarWithStatus.tsx +1 -1
- package/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.tsx +1 -1
- package/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.tsx +1 -1
- package/assets/templates/blocks/components/Badge/BadgeShowcase.tsx +2 -2
- package/assets/templates/blocks/components/Grid/GridShowcase.tsx +1 -1
- package/assets/templates/blocks/components/GridSpan/GridSpanColumns.tsx +1 -1
- package/assets/templates/blocks/components/GridSpan/GridSpanShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Heading/HeadingTruncation.tsx +3 -2
- package/assets/templates/blocks/components/Hooks/useClipboardHookUsage.tsx +1 -1
- package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.tsx +1 -1
- package/assets/templates/blocks/components/Hooks/useGridFocusHookUsage.tsx +6 -6
- package/assets/templates/blocks/components/Hooks/useHotkeysHookUsage.tsx +1 -1
- package/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.tsx +1 -1
- package/assets/templates/blocks/components/Markdown/MarkdownShowcase.tsx +1 -1
- package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.tsx +8 -8
- package/assets/templates/blocks/components/OverflowList/OverflowListCappedToolbar.tsx +1 -1
- package/assets/templates/blocks/components/Resizable/ResizableShowcase.tsx +12 -2
- package/assets/templates/blocks/components/Resizable/ResizableSidebar.tsx +1 -1
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaInlineRail.tsx +1 -1
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaOverscrollChaining.tsx +1 -1
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaShowcase.tsx +1 -1
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaStickyGroupHeaders.tsx +1 -1
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaStickyPassthrough.tsx +1 -1
- package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaTwoAxisBoard.tsx +1 -1
- package/assets/templates/blocks/components/Stack/StackDirections.tsx +1 -1
- package/assets/templates/blocks/components/Step/StepContent.tsx +4 -3
- package/assets/templates/blocks/components/Step/StepIndicator.tsx +3 -2
- package/assets/templates/blocks/components/Step/StepShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Step/StepStates.tsx +3 -2
- package/assets/templates/blocks/components/Stepper/StepperCustomContent.tsx +18 -14
- package/assets/templates/blocks/components/Stepper/StepperOnTrackHorizontal.tsx +1 -1
- package/assets/templates/blocks/components/Table/TableInCard.tsx +1 -1
- package/assets/templates/blocks/components/Table/TableShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx +2 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsx +1 -1
- package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx +2 -1
- package/assets/templates/blocks/components/TopNav/TopNavShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TopNavItem/TopNavItemShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.tsx +1 -1
- package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.tsx +1 -1
- package/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.tsx +1 -1
- package/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.tsx +4 -1
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/canvas-editor/page.tsx +17 -7
- package/assets/templates/pages/checkout-wizard/page.tsx +19 -6
- package/assets/templates/pages/contact-form/page.tsx +6 -1
- package/assets/templates/pages/dashboard/page.tsx +3 -1
- package/assets/templates/pages/dashboard-comparison/page.tsx +3 -1
- package/assets/templates/pages/dashboard-composition/page.tsx +21 -13
- package/assets/templates/pages/dashboard-progress/page.tsx +89 -96
- package/assets/templates/pages/dashboard-scorecard/page.tsx +32 -23
- package/assets/templates/pages/detail-page/page.tsx +1 -1
- package/assets/templates/pages/documentation/page.tsx +7 -2
- package/assets/templates/pages/documentation-design/page.tsx +10 -3
- package/assets/templates/pages/documentation-technical/page.tsx +1 -1
- package/assets/templates/pages/editor/page.tsx +4 -1
- package/assets/templates/pages/form-wizard/page.tsx +11 -4
- package/assets/templates/pages/form-wizard-dialog/page.tsx +3 -1
- package/assets/templates/pages/form-wizard-vertical/page.tsx +4 -3
- package/assets/templates/pages/payment-form/page.tsx +27 -4
- package/assets/templates/pages/settings/page.tsx +20 -5
- package/assets/templates/pages/settings-dialog/page.tsx +14 -2
- package/assets/templates/pages/settings-sidebar/page.tsx +13 -1
- package/assets/templates/pages/shell-nav/page.tsx +27 -15
- package/assets/templates/pages/table/page.tsx +1 -1
- package/assets/templates/pages/table-filter/page.tsx +15 -2
- package/assets/templates/pages/table-grouped/page.tsx +2 -1
- package/assets/templates/pages/table-inbox/page.tsx +42 -6
- package/assets/templates/pages/theme-showcase/page.tsx +5 -3
- package/assets/templates/pages/work-item-detail/page.tsx +19 -3
- package/assets/templates/themes/butter/butterTheme.ts +17 -4
- package/assets/templates/themes/chocolate/chocolateTheme.ts +13 -6
- package/assets/templates/themes/gothic/gothicTheme.ts +14 -2
- package/assets/templates/themes/matcha/matchaTheme.ts +10 -2
- package/assets/templates/themes/neutral/neutralTheme.ts +5 -0
- package/assets/templates/themes/stone/stoneTheme.ts +5 -0
- package/assets/templates/themes/y2k/y2kTheme.ts +11 -3
- package/assets/theme.template.ts +1 -0
- package/authoring/config/config.doc.mjs +8 -1
- package/authoring/config/parse.mjs +15 -0
- package/authoring/config/skill-places.d.mts +23 -0
- package/authoring/config/skill-places.mjs +35 -0
- package/authoring/config/type.ts +16 -0
- package/authoring/debug/parse.d.mts +2 -2
- package/authoring/debug/type.ts +4 -0
- package/authoring/discover/parse.d.mts +2 -1
- package/authoring/discover/parse.mjs +24 -3
- package/authoring/discover/type.ts +9 -2
- package/authoring/doctypes/_schema.d.mts +19 -19
- package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +16 -0
- package/authoring/doctypes/icon-definition/parse.mjs +12 -0
- package/authoring/doctypes/icon-definition/type.ts +18 -0
- package/authoring/gap-report/parse.d.mts +1 -1
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/build.doc.mjs +1 -1
- package/clients/cli/commands/build.mjs +8 -8
- package/clients/cli/commands/discover.mjs +91 -6
- package/clients/cli/commands/docs.mjs +22 -16
- package/clients/cli/commands/experimental/export.mjs +4 -145
- package/clients/cli/commands/experimental/icon.mjs +58 -10
- package/clients/cli/commands/experimental/import.mjs +70 -0
- package/clients/cli/commands/experimental/index.mjs +98 -20
- package/clients/cli/commands/experimental/render-output.mjs +242 -0
- package/clients/cli/commands/experimental-export.doc.mjs +4 -4
- package/clients/cli/commands/experimental-import.doc.mjs +53 -0
- package/clients/cli/commands/experimental.doc.mjs +3 -3
- package/clients/cli/commands/init.doc.mjs +13 -3
- package/clients/cli/commands/search.mjs +7 -2
- package/clients/cli/commands/template.mjs +18 -0
- package/clients/cli/commands/theme-add.doc.mjs +1 -1
- package/clients/cli/commands/theme.mjs +2 -2
- package/clients/cli/commands/upgrade.doc.mjs +2 -1
- package/clients/cli/commands.generated.json +1 -1
- package/clients/cli/index.mjs +8 -1
- package/clients/cli/lib/cli-error.mjs +1 -6
- package/clients/cli/lib/component-format.mjs +10 -2
- package/clients/cli/lib/hook-format.mjs +14 -11
- package/clients/cli/lib/root-args.mjs +10 -3
- package/clients/cli/lib/stray-option.mjs +52 -0
- package/clients/cli/lib/unknown-command.mjs +12 -5
- package/clients/cli/manifest.generated.json +1 -1
- package/clients/cli/run.mjs +27 -0
- package/foundation/agent-docs/agent-doc-state.d.mts +20 -2
- package/foundation/agent-docs/agent-doc-state.mjs +70 -3
- package/foundation/agent-docs/agent-docs.mjs +1 -1
- package/foundation/agent-docs/computer-agent-text.d.mts +5 -14
- package/foundation/agent-docs/computer-agent-text.mjs +60 -155
- package/foundation/agent-docs/folder-scope.d.mts +40 -0
- package/foundation/agent-docs/folder-scope.mjs +68 -0
- package/foundation/agent-docs/managed-skill-file.d.mts +103 -0
- package/foundation/agent-docs/managed-skill-file.mjs +193 -0
- package/foundation/agent-docs/skill-place-files.d.mts +88 -0
- package/foundation/agent-docs/skill-place-files.mjs +220 -0
- package/foundation/agent-docs/skill-places.d.mts +115 -0
- package/foundation/agent-docs/skill-places.mjs +286 -0
- package/foundation/config/config-path.d.mts +2 -2
- package/foundation/config/config-path.mjs +5 -6
- package/foundation/config/config-writer.d.mts +5 -1
- package/foundation/config/config-writer.mjs +20 -4
- package/foundation/config/theme-state.d.mts +13 -0
- package/foundation/config/theme-state.mjs +28 -0
- package/foundation/debug/event.d.mts +2 -1
- package/foundation/debug/event.mjs +2 -1
- package/foundation/discovery/cli-self-docs.d.mts +7 -0
- package/foundation/discovery/cli-self-docs.mjs +52 -5
- package/foundation/discovery/component-discovery.d.mts +10 -0
- package/foundation/discovery/component-discovery.mjs +84 -15
- package/foundation/discovery/docs-discovery.mjs +7 -22
- package/foundation/discovery/icon-definition-discovery.d.mts +155 -3
- package/foundation/discovery/icon-definition-discovery.mjs +197 -5
- package/foundation/discovery/icon-ranking.d.mts +84 -0
- package/foundation/discovery/icon-ranking.mjs +214 -61
- package/foundation/discovery/icon-set-checks.d.mts +2 -0
- package/foundation/discovery/icon-set-checks.mjs +14 -1
- package/foundation/discovery/icon-set-discovery.d.mts +20 -2
- package/foundation/discovery/icon-set-discovery.mjs +40 -7
- package/foundation/discovery/icon-set-writer.d.mts +7 -2
- package/foundation/discovery/icon-set-writer.mjs +86 -7
- package/foundation/discovery/package-exports.d.mts +11 -0
- package/foundation/discovery/package-exports.mjs +22 -1
- package/foundation/discovery/replacement-aliases.d.mts +51 -0
- package/foundation/discovery/replacement-aliases.mjs +95 -0
- package/foundation/discovery/template-adapter.d.mts +26 -0
- package/foundation/discovery/template-adapter.mjs +150 -3
- package/foundation/discovery/template-icon-meanings.mjs +15 -5
- package/foundation/discovery/template-icons.mjs +8 -3
- package/foundation/discovery/template-needs.d.mts +6 -5
- package/foundation/discovery/template-needs.mjs +79 -20
- package/foundation/doc-compiler/read.d.mts +1 -1
- package/foundation/doc-compiler/stored-docs.d.mts +14 -3
- package/foundation/doc-compiler/stored-docs.mjs +12 -6
- package/foundation/env/user-settings.d.mts +15 -0
- package/foundation/env/user-settings.mjs +56 -2
- package/foundation/fs/file-protection.d.mts +11 -0
- package/foundation/fs/file-protection.mjs +49 -3
- package/foundation/fs/gather-cache.d.mts +10 -4
- package/foundation/fs/gather-cache.mjs +117 -32
- package/foundation/fs/import-url.d.mts +7 -5
- package/foundation/fs/import-url.mjs +7 -5
- package/foundation/fs/loaded-files.d.mts +15 -1
- package/foundation/fs/loaded-files.mjs +40 -3
- package/foundation/fs/relative-specifier.d.mts +10 -0
- package/foundation/fs/relative-specifier.mjs +28 -0
- package/foundation/integrations/integrations.d.mts +3 -1
- package/foundation/integrations/integrations.mjs +3 -2
- package/foundation/integrations/provider-resolution.mjs +19 -2
- package/foundation/release/agent-text-worker.mjs +32 -1
- package/foundation/release/cache.d.mts +28 -2
- package/foundation/release/cache.mjs +63 -3
- package/foundation/release/choose.d.mts +5 -2
- package/foundation/release/choose.mjs +54 -4
- package/foundation/release/global-state.mjs +10 -2
- package/foundation/release/notices.d.mts +29 -0
- package/foundation/release/notices.mjs +109 -20
- package/foundation/render/assets.d.mts +7 -0
- package/foundation/render/assets.mjs +29 -16
- package/foundation/render/client-bundle.d.mts +25 -1
- package/foundation/render/client-bundle.mjs +334 -3
- package/foundation/render/dropped-text.d.mts +43 -0
- package/foundation/render/dropped-text.mjs +90 -0
- package/foundation/render/embedded-imports.d.mts +28 -7
- package/foundation/render/embedded-imports.mjs +101 -24
- package/foundation/render/file-header.d.mts +2 -2
- package/foundation/render/file-header.mjs +5 -5
- package/foundation/render/html-reader.d.mts +4 -3
- package/foundation/render/html-reader.mjs +5 -4
- package/foundation/render/image-attributes.d.mts +25 -0
- package/foundation/render/image-attributes.mjs +33 -0
- package/foundation/render/package-resolve-hooks.d.mts +54 -0
- package/foundation/render/package-resolve-hooks.mjs +144 -0
- package/foundation/render/page-worker.mjs +573 -16
- package/foundation/render/picture-window.d.mts +11 -5
- package/foundation/render/picture-window.mjs +187 -19
- package/foundation/render/rebuild.mjs +2 -2
- package/foundation/render/remote-images.d.mts +83 -0
- package/foundation/render/remote-images.mjs +384 -0
- package/foundation/render/render-page.d.mts +94 -6
- package/foundation/render/render-page.mjs +546 -96
- package/foundation/render/served-packages.d.mts +12 -0
- package/foundation/render/served-packages.mjs +45 -3
- package/foundation/render/share-checks.d.mts +35 -0
- package/foundation/render/share-checks.mjs +94 -0
- package/foundation/render/source-block.d.mts +10 -3
- package/foundation/render/source-block.mjs +41 -8
- package/foundation/render/srcset.d.mts +32 -0
- package/foundation/render/srcset.mjs +64 -0
- package/foundation/render/ts-paths.d.mts +8 -0
- package/foundation/render/ts-paths.mjs +14 -5
- package/foundation/response/error-codes.doc.mjs +3 -3
- package/foundation/response/json.d.mts +0 -15
- package/foundation/response/json.mjs +1 -51
- package/foundation/response/response-types.doc.mjs +8 -8
- package/foundation/runtime/lazy-dependencies.d.mts +7 -0
- package/foundation/runtime/lazy-dependencies.mjs +25 -3
- package/foundation/text/default-variant.d.mts +20 -0
- package/foundation/text/default-variant.mjs +24 -0
- package/foundation/text/definition-coverage.d.mts +21 -0
- package/foundation/text/definition-coverage.mjs +20 -0
- package/foundation/text/icon-set-next.d.mts +11 -10
- package/foundation/text/icon-set-next.mjs +19 -11
- package/foundation/text/suggest-order.d.mts +10 -4
- package/foundation/text/suggest-order.mjs +20 -13
- package/package.json +6 -6
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
import {
|
|
30
30
|
BUILT_FILE_LIMIT,
|
|
31
31
|
BUILT_FILE_MAX_MB,
|
|
32
|
+
doctorThemeWiring,
|
|
32
33
|
readBuiltPath,
|
|
33
34
|
resolveBuiltPath,
|
|
34
35
|
} from './_adapter.mjs';
|
|
@@ -141,14 +142,40 @@ const CORE_STYLESHEET_HREF =
|
|
|
141
142
|
* @param {string} html
|
|
142
143
|
*/
|
|
143
144
|
export function linksCoreStylesheet(html) {
|
|
144
|
-
|
|
145
|
+
return stylesheetLinkHrefs(html).some(href =>
|
|
146
|
+
CORE_STYLESHEET_HREF.test(href),
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The `href` of every `<link>` in a page whose `rel` is a stylesheet: a
|
|
152
|
+
* page file's HTML, or the JSX of a layout that writes the page head.
|
|
153
|
+
* Comments never count (HTML ones, and a layout's JS block comments), and
|
|
154
|
+
* a link whose `rel` only mentions a stylesheet (`preload`) is none.
|
|
155
|
+
* @param {string} page
|
|
156
|
+
* @returns {string[]}
|
|
157
|
+
*/
|
|
158
|
+
export function stylesheetLinkHrefs(page) {
|
|
159
|
+
const text = page
|
|
160
|
+
.replace(/<!--[\s\S]*?-->/gu, ' ')
|
|
161
|
+
.replace(/\/\*[\s\S]*?\*\//gu, ' ');
|
|
162
|
+
/** @type {string[]} */
|
|
163
|
+
const out = [];
|
|
145
164
|
for (const tag of text.matchAll(/<link\b[^>]*>/giu)) {
|
|
146
165
|
const attributes = tag[0];
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
166
|
+
const relMatch =
|
|
167
|
+
/\brel\s*=\s*(?:\{?\s*(["'`])([^"'`]*)\1|([^\s"'`>]+))/iu.exec(
|
|
168
|
+
attributes,
|
|
169
|
+
);
|
|
170
|
+
const rel = relMatch?.[2] ?? relMatch?.[3];
|
|
171
|
+
if (!rel || !rel.split(/\s+/u).some(word => /^stylesheet$/iu.test(word)))
|
|
172
|
+
continue;
|
|
173
|
+
const href = /\bhref\s*=\s*\{?\s*(["'`])([^"'`]*)\1/iu.exec(
|
|
174
|
+
attributes,
|
|
175
|
+
)?.[2];
|
|
176
|
+
if (href) out.push(href);
|
|
150
177
|
}
|
|
151
|
-
return
|
|
178
|
+
return out;
|
|
152
179
|
}
|
|
153
180
|
|
|
154
181
|
/**
|
|
@@ -634,6 +661,7 @@ function jsxFindings(text, rel, iconNames) {
|
|
|
634
661
|
*/
|
|
635
662
|
export function scanBuilt(target, packages, {fileLimit} = {}) {
|
|
636
663
|
const {files, truncated, missing = 0} = readBuiltPath(target, {fileLimit});
|
|
664
|
+
const wiring = doctorThemeWiring(target);
|
|
637
665
|
/** @type {BuiltScan} */
|
|
638
666
|
const scan = {
|
|
639
667
|
sourceFiles: 0,
|
|
@@ -729,7 +757,10 @@ export function scanBuilt(target, packages, {fileLimit} = {}) {
|
|
|
729
757
|
for (const name of names) astryxNames.add(name);
|
|
730
758
|
} else if (isIconSpecifier(spec)) {
|
|
731
759
|
for (const name of names) iconNames.add(name);
|
|
732
|
-
} else if (
|
|
760
|
+
} else if (
|
|
761
|
+
/\.(?:css|scss|sass|less)$/.test(spec) &&
|
|
762
|
+
!wiring.has(spec, rel)
|
|
763
|
+
) {
|
|
733
764
|
scan.findings.push({
|
|
734
765
|
category: 'Styling',
|
|
735
766
|
file: rel,
|
package/api/doctor/doctor.d.mts
CHANGED
|
@@ -115,6 +115,17 @@ export function checkConfiguredIntegrations(ctx: DoctorContext): DoctorCheck;
|
|
|
115
115
|
* @returns {DoctorCheck}
|
|
116
116
|
*/
|
|
117
117
|
export function checkAgentDocs(ctx: DoctorContext): DoctorCheck;
|
|
118
|
+
/**
|
|
119
|
+
* The project's skill places (astryx.config `skills.to`): each file of a
|
|
120
|
+
* saved `skills` or folder place against this release's project skill, a
|
|
121
|
+
* project that holds both the block and the skill (agents read Astryx twice),
|
|
122
|
+
* and a project skill named `astryx`, the computer-level skill's name, which
|
|
123
|
+
* an agent shows in place of one of the two. Left out of a project that keeps
|
|
124
|
+
* only the AGENTS.md block and has no project skill.
|
|
125
|
+
* @param {DoctorContext} ctx
|
|
126
|
+
* @returns {DoctorCheck | null}
|
|
127
|
+
*/
|
|
128
|
+
export function checkSkillPlaces(ctx: DoctorContext): DoctorCheck | null;
|
|
118
129
|
/**
|
|
119
130
|
* Check 8 — @astryxdesign/core peer dependencies are satisfied by installed packages.
|
|
120
131
|
* @param {DoctorContext} ctx
|
|
@@ -145,7 +156,8 @@ export function checkIntegrationCoreRange(ctx: DoctorContext): DoctorCheck | nul
|
|
|
145
156
|
* names a set, main or backup, that is not installed, that is installed but
|
|
146
157
|
* withdrawn (with why), or that two packages ship under one name; and when
|
|
147
158
|
* more than one set is installed and the list leaves one out. Warns for each
|
|
148
|
-
* other installed set that was withdrawn, with why
|
|
159
|
+
* other installed set that was withdrawn, with why, and for each `map` key
|
|
160
|
+
* of an installed set that names a replaced definition.
|
|
149
161
|
* Icon sets are experimental (spec:AST-017 FR27): only a project where the
|
|
150
162
|
* icon feature gate is on gets the check, so every other report is unchanged.
|
|
151
163
|
* @param {DoctorContext} ctx
|
|
@@ -295,6 +307,8 @@ export function checkInstallGuidance(ctx: DoctorContext): DoctorCheck | null;
|
|
|
295
307
|
* the person's choices about the computer-level agent text
|
|
296
308
|
* @property {string | null} [agentTextCommand] the command the skill file
|
|
297
309
|
* tells agents to run, or null
|
|
310
|
+
* @property {Array<{path: string, state: import('../../foundation/agent-docs/managed-skill-file.mjs').ManagedFileState}>} [agentTextFolders]
|
|
311
|
+
* each folder outside a project that `init --to <folder>` saved
|
|
298
312
|
* @property {string | null} [agentTextInstall] the install step the skill
|
|
299
313
|
* file records for when that command is not found, or null
|
|
300
314
|
* @property {string} [cwd] the folder doctor runs in, for the printed fix
|
|
@@ -518,6 +532,10 @@ export type DoctorContext = {
|
|
|
518
532
|
* - Resolved astryx.config.mjs path, or null.
|
|
519
533
|
*/
|
|
520
534
|
configPath: string | null;
|
|
535
|
+
/**
|
|
536
|
+
* The project's skill places, or null when they could not be read.
|
|
537
|
+
*/
|
|
538
|
+
skillPlaces?: import("./_adapter.mjs").SkillPlacesReport | null | undefined;
|
|
521
539
|
/**
|
|
522
540
|
* Every integration the project loaded, or null when the project could not be
|
|
523
541
|
* read at all.
|
|
@@ -577,6 +595,10 @@ export type DoctorContext = {
|
|
|
577
595
|
sets: Array<{
|
|
578
596
|
name: string;
|
|
579
597
|
package: string;
|
|
598
|
+
replacedKeys?: Array<{
|
|
599
|
+
key: string;
|
|
600
|
+
definition: string;
|
|
601
|
+
}>;
|
|
580
602
|
}>;
|
|
581
603
|
withdrawn: Array<{
|
|
582
604
|
name: string;
|
|
@@ -677,6 +699,13 @@ export type ComputerContext = {
|
|
|
677
699
|
* tells agents to run, or null
|
|
678
700
|
*/
|
|
679
701
|
agentTextCommand?: string | null | undefined;
|
|
702
|
+
/**
|
|
703
|
+
* each folder outside a project that `init --to <folder>` saved
|
|
704
|
+
*/
|
|
705
|
+
agentTextFolders?: {
|
|
706
|
+
path: string;
|
|
707
|
+
state: import("../../foundation/agent-docs/managed-skill-file.mjs").ManagedFileState;
|
|
708
|
+
}[] | undefined;
|
|
680
709
|
/**
|
|
681
710
|
* the install step the skill
|
|
682
711
|
* file records for when that command is not found, or null
|
|
@@ -24,7 +24,7 @@ export const doc = {
|
|
|
24
24
|
'integration provider identity and contribution issues, agent docs, the ' +
|
|
25
25
|
'detected package manager, and the health of the docs the CLI reads (authoring ' +
|
|
26
26
|
'and CLI docs, the docs tree, doc size), and returns a structured ' +
|
|
27
|
-
'report. Theme checks run when the generated app module exists; without one, doctor reports that the CLI manages no themes and names theme add, and the `themes` check counts a theme as wired when package.json `astryx.theme` names one or when the source of the app (JavaScript, TypeScript and CSS files, outside dependencies and build output; type-only imports do not count) imports the built module or stylesheet of a discovered theme, the same imports theme add writes, or passes one to Theme (followed through module-scope variables, defineTheme extends, re-exports and installed packages; only a theme whose package is installed, or a local theme, counts), naming the file; a theme passed to Theme that cannot be traced, such as a prop or a variable declared inside a component, is reported as unconfirmed (info), not as missing. Earlier descriptor-less copies are a non-failing upgrade warning. It never installs, writes, or mutates. It imports astryx.config, executes every added theme source while validating private inputs, and loads every recorded built theme module to prove its runtime imports work, including themes from installed packages. Local theme source also runs during build-freshness checks. Stylesheets are parsed without execution. Config and theme top-level code therefore run, so use doctor only with project code you trust. Outside a project it checks the computer instead: the Node version (`node-version`), the release that answered (`answering-release`), the newest release the computer knows of (`newest-release`), the astryx commands on the search path (`cli-on-path`), the integrations installed for the computer (`computer-integrations`: each one used outside a project, and a warning for one skipped because its peer range excludes the answering release or that fails to load), and the computer-level agent text (`computer-agent-text`): present and matching this release, present but different, edited, absent, or turned off, and where it is linked, with `{@command init --user}` as the fix for the stale and absent cases. The agent-text check is always info. The newest-release check also runs inside a project: it names a newer release when the computer knows of one; inside a project whose release is older it names the install and upgrade commands; outside one, when the CLI installed for the computer is older, it names the command of the package manager that installed it, after the Node the newest release needs when the computer runs an older one. With no update check recorded, it says the newest release is not known, that only a copy installed for the computer checks (once a day), that a project changes its own copy only when it upgrades it, and that a tool that runs its own copy chooses its release. It is always info and installs nothing. The `cli-on-path` check also runs inside a project: it lists every astryx command on the search path in order, passes when the first is a release that hands each project run to the release of that project, and warns when the first is another program or a release that predates the hand-off, naming `{@pm install @astryxdesign/cli@latest --global}`. Inside a project, `computer-integrations` lists, as info, the integrations installed for the computer that the project does not install, with its install command; they are not used there. It never fails a check because the folder has no project, and installs nothing.' +
|
|
27
|
+
'report. Theme checks run when the generated app module exists; without one, doctor reports that the CLI manages no themes and names theme add, and the `themes` check counts a theme as wired when package.json `astryx.theme` names one or when the source of the app (JavaScript, TypeScript and CSS files, outside dependencies and build output; type-only imports do not count) imports the built module or stylesheet of a discovered theme, the same imports theme add writes, or passes one to Theme (followed through module-scope variables, defineTheme extends, re-exports and installed packages; only a theme whose package is installed, or a local theme, counts), naming the file; a theme passed to Theme that cannot be traced, such as a prop or a variable declared inside a component, is reported as unconfirmed (info), not as missing. Earlier descriptor-less copies are a non-failing upgrade warning. It never installs, writes, or mutates. It imports astryx.config, executes every added theme source while validating private inputs, and loads every recorded built theme module to prove its runtime imports work, including themes from installed packages. Local theme source also runs during build-freshness checks. Stylesheets are parsed without execution. Config and theme top-level code therefore run, so use doctor only with project code you trust. Outside a project it checks the computer instead: the Node version (`node-version`), the release that answered (`answering-release`), the newest release the computer knows of (`newest-release`), the astryx commands on the search path (`cli-on-path`), the integrations installed for the computer (`computer-integrations`: each one used outside a project, and a warning for one skipped because its peer range excludes the answering release or that fails to load), and the computer-level agent text (`computer-agent-text`): present and matching this release, present but different, edited, absent, or turned off, and where it is linked, with `{@command init --user}` as the fix for the stale and absent cases, and each folder outside a project that `{@command init} --to` saved. The agent-text check is always info. In a project that saves a skill place in astryx.config `skills.to`, or holds a project skill, the `skill-places` check passes when each saved skill file matches this release and warns when one is missing or stale, when the copies of one place differ (one edited or not written by Astryx, the other written by Astryx or missing), when the block and a project skill copy are both there without both being saved (both saved passes, with a note), when a project skill is named `astryx`, the name of the computer-level skill, when a saved place is linked out of the project (not checked), or when the project skill cannot be rendered; an edited skill file is kept and named. A project that saves no `agents-md` place gets its verdict from this check: `agent-docs` names its skill files and points here. The newest-release check also runs inside a project: it names a newer release when the computer knows of one; inside a project whose release is older it names the install and upgrade commands; outside one, when the CLI installed for the computer is older, it names the command of the package manager that installed it, after the Node the newest release needs when the computer runs an older one. With no update check recorded, it says the newest release is not known, that only a copy installed for the computer checks (once a day), that a project changes its own copy only when it upgrades it, and that a tool that runs its own copy chooses its release. It is always info and installs nothing. The `cli-on-path` check also runs inside a project: it lists every astryx command on the search path in order, passes when the first is a release that hands each project run to the release of that project, and warns when the first is another program or a release that predates the hand-off, naming `{@pm install @astryxdesign/cli@latest --global}`. Inside a project, `computer-integrations` lists, as info, the integrations installed for the computer that the project does not install, with its install command; they are not used there. It never fails a check because the folder has no project, and installs nothing.' +
|
|
28
28
|
' In global mode: with `cwd` outside a project, it checks the computer instead (the Node version, the version that answered, the newest version it knows of, the astryx commands on the search path, the integrations installed globally, and the agent guide for the computer) and never fails a check because the folder has no project. See {@link namespace:global} and {@link generic:who-answers}.',
|
|
29
29
|
importPath: '@astryxdesign/cli/api',
|
|
30
30
|
signature: 'doctor(options?: DoctorOptions): Promise<DoctorResponse>',
|
package/api/doctor/doctor.mjs
CHANGED
|
@@ -84,6 +84,7 @@ import {
|
|
|
84
84
|
guideEntry,
|
|
85
85
|
overlayLanguages,
|
|
86
86
|
projectTree,
|
|
87
|
+
templateLinkProblems,
|
|
87
88
|
} from '../docs/_adapter.mjs';
|
|
88
89
|
import {typedEdges} from '../docs/node/node.mjs';
|
|
89
90
|
import {detailView} from '../../foundation/doc-compiler/lenses.mjs';
|
|
@@ -145,6 +146,7 @@ import {
|
|
|
145
146
|
doctorStylesheetImports,
|
|
146
147
|
doctorStylesheetAtRules,
|
|
147
148
|
builtProjectRoot,
|
|
149
|
+
readSkillPlaces,
|
|
148
150
|
} from './_adapter.mjs';
|
|
149
151
|
import {checkBuilt, linksCoreStylesheet} from './built-checks.mjs';
|
|
150
152
|
import {coreOnlyDocNames} from '../../foundation/bases/core-docs.mjs';
|
|
@@ -184,6 +186,8 @@ import {
|
|
|
184
186
|
* @property {string|null} [projectCore] - The Core release the project names
|
|
185
187
|
* (installed, else locked, else declared), as the daily hint reads it.
|
|
186
188
|
* @property {string|null} configPath - Resolved astryx.config.mjs path, or null.
|
|
189
|
+
* @property {import('./_adapter.mjs').SkillPlacesReport|null} [skillPlaces]
|
|
190
|
+
* The project's skill places, or null when they could not be read.
|
|
187
191
|
* @property {import('../../foundation/integrations/integrations.mjs').LoadedIntegration[]|null} [integrations]
|
|
188
192
|
* Every integration the project loaded, or null when the project could not be
|
|
189
193
|
* read at all.
|
|
@@ -203,7 +207,7 @@ import {
|
|
|
203
207
|
* Combined project-level integration issues, including cross-package template replacement warnings.
|
|
204
208
|
* @property {Error|null} [configError] - Error thrown while resolving the config
|
|
205
209
|
* path (e.g. multiple config files present), surfaced by checkConfig as a FAIL.
|
|
206
|
-
* @property {{sets: Array<{name: string, package: string}>, withdrawn: Array<{name: string, package: string, reason: string}>, choice: {status: 'selected'|'none'|'ambiguous'|'missing'|'withdrawn', reason: string, configured?: string, set?: {name: string, package: string, data: {variants?: string[]}}, variant?: string, backups?: Array<{selector: string, status: 'selected'|'ambiguous'|'missing'|'withdrawn', reason: string}>, order?: Array<{name: string, package: string}>}}|null} [iconSets]
|
|
210
|
+
* @property {{sets: Array<{name: string, package: string, replacedKeys?: Array<{key: string, definition: string}>}>, withdrawn: Array<{name: string, package: string, reason: string}>, choice: {status: 'selected'|'none'|'ambiguous'|'missing'|'withdrawn', reason: string, configured?: string, set?: {name: string, package: string, data: {variants?: string[]}}, variant?: string, backups?: Array<{selector: string, status: 'selected'|'ambiguous'|'missing'|'withdrawn', reason: string}>, order?: Array<{name: string, package: string}>}}|null} [iconSets]
|
|
207
211
|
* The project's icon sets (AST-084 FR17), or null when they could not be
|
|
208
212
|
* read or the icon feature gate is off.
|
|
209
213
|
* Experimental: may change or be removed in a patch release.
|
|
@@ -1152,6 +1156,21 @@ export function checkAgentDocs(ctx) {
|
|
|
1152
1156
|
? `${refusal} Move the project into a folder of its own, or edit the Astryx block in its agent file by hand.`
|
|
1153
1157
|
: initFix;
|
|
1154
1158
|
|
|
1159
|
+
// A project that keeps its Astryx guidance as a skill (astryx.config
|
|
1160
|
+
// `skills.to` without `agents-md`): its agent files are its own text, and
|
|
1161
|
+
// the skill-places check judges its skill files.
|
|
1162
|
+
const places = ctx.skillPlaces?.places ?? ['agents-md'];
|
|
1163
|
+
if (ctx.skillPlaces && !places.includes('agents-md')) {
|
|
1164
|
+
const astryx = ctx.skillPlaces.files.filter(
|
|
1165
|
+
file => file.state === 'current' || file.state === 'differs' || file.state === 'edited',
|
|
1166
|
+
);
|
|
1167
|
+
return {
|
|
1168
|
+
id: 'agent-docs',
|
|
1169
|
+
label: 'AI agent docs',
|
|
1170
|
+
status: astryx.length > 0 ? 'pass' : 'info',
|
|
1171
|
+
message: `The project keeps its Astryx guidance as a skill (astryx.config skills.to: ${places.join(', ')})${astryx.length > 0 ? `, in ${astryx.map(file => file.path).join(', ')}` : ''}; the skill-places check reports whether each file is there and current.`,
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1155
1174
|
if (present.length === 0) {
|
|
1156
1175
|
return {
|
|
1157
1176
|
id: 'agent-docs',
|
|
@@ -1231,6 +1250,120 @@ export function checkAgentDocs(ctx) {
|
|
|
1231
1250
|
};
|
|
1232
1251
|
}
|
|
1233
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* The project's skill places (astryx.config `skills.to`): each file of a
|
|
1255
|
+
* saved `skills` or folder place against this release's project skill, a
|
|
1256
|
+
* project that holds both the block and the skill (agents read Astryx twice),
|
|
1257
|
+
* and a project skill named `astryx`, the computer-level skill's name, which
|
|
1258
|
+
* an agent shows in place of one of the two. Left out of a project that keeps
|
|
1259
|
+
* only the AGENTS.md block and has no project skill.
|
|
1260
|
+
* @param {DoctorContext} ctx
|
|
1261
|
+
* @returns {DoctorCheck | null}
|
|
1262
|
+
*/
|
|
1263
|
+
export function checkSkillPlaces(ctx) {
|
|
1264
|
+
const report = ctx.skillPlaces;
|
|
1265
|
+
if (!report) return null;
|
|
1266
|
+
const blockOnly = report.places.length === 1 && report.places[0] === 'agents-md';
|
|
1267
|
+
if (blockOnly && report.skillFiles.length === 0 && report.plainNamed.length === 0) {
|
|
1268
|
+
return null;
|
|
1269
|
+
}
|
|
1270
|
+
const base = {id: 'skill-places', label: 'Astryx skill places'};
|
|
1271
|
+
const init = (/** @type {string} */ args) => `\`${formatCliCommand(`astryx init ${args}`.trim(), ctx.cwd)}\``;
|
|
1272
|
+
const saved = report.places.join(',');
|
|
1273
|
+
if (report.renderError) {
|
|
1274
|
+
return {
|
|
1275
|
+
...base,
|
|
1276
|
+
status: 'warn',
|
|
1277
|
+
message: `The Astryx skill could not be rendered, so its files were not checked: ${firstLine(report.renderError)}`,
|
|
1278
|
+
fix: `Fix what the message names, then run ${init('')}.`,
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
if (report.plainNamed.length > 0) {
|
|
1282
|
+
return {
|
|
1283
|
+
...base,
|
|
1284
|
+
status: 'warn',
|
|
1285
|
+
message: `${report.plainNamed.join(', ')} ${report.plainNamed.length === 1 ? 'is a project skill' : 'are project skills'} named \`astryx\`, the name of the computer-level skill, so an agent that has both shows only one, and Claude Code shows the computer one.`,
|
|
1286
|
+
fix: `Delete ${report.plainNamed.length === 1 ? 'it' : 'them'}; ${init('--to skills')} writes the project skill as \`astryx-project\`.`,
|
|
1287
|
+
};
|
|
1288
|
+
}
|
|
1289
|
+
const savesBlock = report.places.includes('agents-md');
|
|
1290
|
+
const savesSkill = report.places.some(place => place !== 'agents-md');
|
|
1291
|
+
// Both saved is the person's choice: the note in the pass line says so.
|
|
1292
|
+
const doubled =
|
|
1293
|
+
report.blockFiles.length > 0 && report.skillFiles.length > 0 && !(savesBlock && savesSkill);
|
|
1294
|
+
if (doubled) {
|
|
1295
|
+
return {
|
|
1296
|
+
...base,
|
|
1297
|
+
status: 'warn',
|
|
1298
|
+
message: `The Astryx guidance is here twice: as the block in ${report.blockFiles.join(', ')} and as the skill in ${report.skillFiles.join(', ')}, so agents read it twice.`,
|
|
1299
|
+
fix: savesSkill
|
|
1300
|
+
? `The project saves ${saved}: remove the Astryx block from ${report.blockFiles.join(', ')} by hand, or run ${init('--to agents-md')} to keep only the block (it removes the skill copies).`
|
|
1301
|
+
: `The project saves agents-md: delete ${report.skillFiles.join(', ')}, or run ${init('--to skills')} to keep only the skill (it removes the block).`,
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
// The two copies of a place are one skill: one a person's own and the other
|
|
1305
|
+
// Astryx's means agents read two different texts.
|
|
1306
|
+
const split = [...new Set(report.files.map(file => file.place))].filter(place => {
|
|
1307
|
+
const states = report.files.filter(file => file.place === place).map(file => file.state);
|
|
1308
|
+
return (
|
|
1309
|
+
states.some(state => state === 'edited' || state === 'foreign') &&
|
|
1310
|
+
states.some(state => state === 'current' || state === 'differs' || state === 'absent')
|
|
1311
|
+
);
|
|
1312
|
+
});
|
|
1313
|
+
if (split.length > 0) {
|
|
1314
|
+
const files = report.files.filter(file => split.includes(file.place));
|
|
1315
|
+
return {
|
|
1316
|
+
...base,
|
|
1317
|
+
status: 'warn',
|
|
1318
|
+
message: `The copies of ${split.join(', ')} differ: ${files.map(file => `${file.path} (${file.state === 'edited' ? 'edited' : file.state === 'foreign' ? 'not written by Astryx' : file.state === 'absent' ? 'missing' : 'Astryx\'s'})`).join(', ')}, so agents read different texts.`,
|
|
1319
|
+
fix: 'Make the copies the same: copy your file over the other, or delete both and run ' + init('') + '.',
|
|
1320
|
+
};
|
|
1321
|
+
}
|
|
1322
|
+
if (report.linkedOut.length > 0) {
|
|
1323
|
+
return {
|
|
1324
|
+
...base,
|
|
1325
|
+
status: 'warn',
|
|
1326
|
+
message: `Not checked: ${report.linkedOut.join(' ')}`,
|
|
1327
|
+
fix: `Make each folder a real folder inside the project, or choose another place with ${init('--to <places>')}.`,
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
const missing = report.files.filter(file => file.state === 'absent');
|
|
1331
|
+
const stale = report.files.filter(file => file.state === 'differs');
|
|
1332
|
+
const kept = report.files.filter(file => file.state === 'edited' || file.state === 'foreign');
|
|
1333
|
+
const keptNote =
|
|
1334
|
+
kept.length > 0
|
|
1335
|
+
? ` Kept as they are (edited, or not written by Astryx): ${kept.map(file => file.path).join(', ')}.`
|
|
1336
|
+
: '';
|
|
1337
|
+
const bothNote =
|
|
1338
|
+
report.blockFiles.length > 0 && report.skillFiles.length > 0
|
|
1339
|
+
? ` The project saves both the block and the skill (${saved}), so agents that read both get it twice.`
|
|
1340
|
+
: '';
|
|
1341
|
+
const codexNote = report.computerSkill && report.skillsFolderFiles.length > 0
|
|
1342
|
+
? ' This computer also has the computer-level `astryx` skill, so Codex lists both skills.'
|
|
1343
|
+
: '';
|
|
1344
|
+
if (missing.length > 0 || stale.length > 0) {
|
|
1345
|
+
const missingNote =
|
|
1346
|
+
missing.length > 0 ? ` The Astryx skill is missing from ${missing.map(file => file.path).join(', ')}.` : '';
|
|
1347
|
+
const staleNote =
|
|
1348
|
+
stale.length > 0 ? ` The Astryx skill is from another release in ${stale.map(file => file.path).join(', ')}.` : '';
|
|
1349
|
+
return {
|
|
1350
|
+
...base,
|
|
1351
|
+
status: 'warn',
|
|
1352
|
+
message: `${(missingNote + staleNote).trim()}${keptNote}${codexNote}`,
|
|
1353
|
+
fix: `Run ${init('')} to write the saved places (\`${formatCliCommand('upgrade --from <old version> --apply', ctx.cwd)}\` also refreshes them after an Astryx update).`,
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
const current = report.files.filter(file => file.state === 'current');
|
|
1357
|
+
return {
|
|
1358
|
+
...base,
|
|
1359
|
+
status: kept.length > 0 && current.length === 0 ? 'info' : 'pass',
|
|
1360
|
+
message:
|
|
1361
|
+
current.length > 0
|
|
1362
|
+
? `The Astryx skill matches this release in ${current.map(file => file.path).join(', ')}.${keptNote}${bothNote}${codexNote}`
|
|
1363
|
+
: `Saved places: ${report.places.join(', ')}.${keptNote}${bothNote}${codexNote}`,
|
|
1364
|
+
};
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1234
1367
|
/**
|
|
1235
1368
|
* Check 8 — @astryxdesign/core peer dependencies are satisfied by installed packages.
|
|
1236
1369
|
* @param {DoctorContext} ctx
|
|
@@ -1443,7 +1576,8 @@ export function checkIntegrationCoreRange(ctx) {
|
|
|
1443
1576
|
* names a set, main or backup, that is not installed, that is installed but
|
|
1444
1577
|
* withdrawn (with why), or that two packages ship under one name; and when
|
|
1445
1578
|
* more than one set is installed and the list leaves one out. Warns for each
|
|
1446
|
-
* other installed set that was withdrawn, with why
|
|
1579
|
+
* other installed set that was withdrawn, with why, and for each `map` key
|
|
1580
|
+
* of an installed set that names a replaced definition.
|
|
1447
1581
|
* Icon sets are experimental (spec:AST-017 FR27): only a project where the
|
|
1448
1582
|
* icon feature gate is on gets the check, so every other report is unchanged.
|
|
1449
1583
|
* @param {DoctorContext} ctx
|
|
@@ -1542,6 +1676,23 @@ export function checkIconSets(ctx) {
|
|
|
1542
1676
|
fix: 'Run `astryx integration check` in the package that ships the set, or install its module.',
|
|
1543
1677
|
};
|
|
1544
1678
|
}
|
|
1679
|
+
// A `map` key that names a replaced definition still maps its successor,
|
|
1680
|
+
// so nothing breaks; the set's own package renames the key.
|
|
1681
|
+
const renamed = sets.flatMap(set =>
|
|
1682
|
+
(set.replacedKeys ?? []).map(
|
|
1683
|
+
each =>
|
|
1684
|
+
`${set.package}/${set.name} maps "${each.key}", which "${each.definition}" replaced`,
|
|
1685
|
+
),
|
|
1686
|
+
);
|
|
1687
|
+
if (renamed.length > 0) {
|
|
1688
|
+
return {
|
|
1689
|
+
id,
|
|
1690
|
+
label,
|
|
1691
|
+
status: 'warn',
|
|
1692
|
+
message: `${renamed.join(' | ')}. Each entry maps the definition that replaced it.`,
|
|
1693
|
+
fix: 'In the package that ships the set, rename each map key to the definition that replaced it (any `astryx experimental icon map` run there writes it), or install a release of the package that has.',
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1545
1696
|
return {
|
|
1546
1697
|
id,
|
|
1547
1698
|
label,
|
|
@@ -1789,6 +1940,35 @@ export function checkPackageManager(ctx) {
|
|
|
1789
1940
|
};
|
|
1790
1941
|
}
|
|
1791
1942
|
|
|
1943
|
+
const TWIN_PROVIDER_FIX =
|
|
1944
|
+
'Both manifests declare the same `providerId`. If they are one ' +
|
|
1945
|
+
'integration installed under two names, keep one of the two ' +
|
|
1946
|
+
'dependencies; if they are different integrations, give each its ' +
|
|
1947
|
+
'own `providerId` in astryx.integration.*.';
|
|
1948
|
+
const NAMED_PROVIDER_FIX =
|
|
1949
|
+
'Give each integration its own `providerId` in astryx.integration.*. ' +
|
|
1950
|
+
"A renamed package may keep its predecessor's ID only when the " +
|
|
1951
|
+
'predecessor is no longer installed.';
|
|
1952
|
+
|
|
1953
|
+
/**
|
|
1954
|
+
* The fix for a set of provider conflicts: the two-case advice for conflicts
|
|
1955
|
+
* where both manifests declare the ID, the rename advice for the rest, and
|
|
1956
|
+
* both, each named, when the project has some of each.
|
|
1957
|
+
* @param {ReadonlyArray<import('../../foundation/integrations/integrations.mjs').LoadedIntegration>} conflicts
|
|
1958
|
+
* @returns {string}
|
|
1959
|
+
*/
|
|
1960
|
+
function providerConflictFix(conflicts) {
|
|
1961
|
+
const twins = conflicts.filter(
|
|
1962
|
+
integration => integration.__providerConflict?.bothDeclare,
|
|
1963
|
+
).length;
|
|
1964
|
+
if (twins === conflicts.length) return TWIN_PROVIDER_FIX;
|
|
1965
|
+
if (twins === 0) return NAMED_PROVIDER_FIX;
|
|
1966
|
+
return (
|
|
1967
|
+
`Where both manifests declare the ID: ${TWIN_PROVIDER_FIX} ` +
|
|
1968
|
+
`For the other conflicts: ${NAMED_PROVIDER_FIX}`
|
|
1969
|
+
);
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1792
1972
|
/**
|
|
1793
1973
|
* Check 6b — every contributing integration owns its provider identity.
|
|
1794
1974
|
*
|
|
@@ -1829,10 +2009,7 @@ export function checkProviderIdentity(ctx) {
|
|
|
1829
2009
|
message: conflicts
|
|
1830
2010
|
.map(integration => integration.__providerConflict?.message)
|
|
1831
2011
|
.join(' '),
|
|
1832
|
-
fix:
|
|
1833
|
-
'Give each integration its own `providerId` in astryx.integration.*. ' +
|
|
1834
|
-
"A renamed package may keep its predecessor's ID only when the " +
|
|
1835
|
-
'predecessor is no longer installed.',
|
|
2012
|
+
fix: providerConflictFix(conflicts),
|
|
1836
2013
|
};
|
|
1837
2014
|
}
|
|
1838
2015
|
|
|
@@ -2131,9 +2308,10 @@ export async function checkDocsTree(_ctx, options = {}) {
|
|
|
2131
2308
|
}
|
|
2132
2309
|
}
|
|
2133
2310
|
// Every link between docs names a doc that exists (spec:AST-047 FR9):
|
|
2134
|
-
// typed fields, reference and workflow blocks, and inline links
|
|
2135
|
-
//
|
|
2136
|
-
// Core leaves Core's docs out; a link
|
|
2311
|
+
// typed fields, reference and workflow blocks, and inline links, a
|
|
2312
|
+
// template description's included. A reference block also includes all
|
|
2313
|
+
// it names. A run whose base is not Core leaves Core's docs out; a link
|
|
2314
|
+
// to one of them is not a problem.
|
|
2137
2315
|
for (const node of tree.nodes.values()) {
|
|
2138
2316
|
for (const edge of typedEdges(tree, node).unresolved) {
|
|
2139
2317
|
problems.push(`${node.route}: ${edge}`);
|
|
@@ -2144,6 +2322,7 @@ export async function checkDocsTree(_ctx, options = {}) {
|
|
|
2144
2322
|
const absent = target =>
|
|
2145
2323
|
CORE_DOC_PROVIDERS.has(target.provider) && coreDocs.has(target.name);
|
|
2146
2324
|
problems.push(...(await docsLinkProblems(catalog, tree, {absent})));
|
|
2325
|
+
problems.push(...(await templateLinkProblems(catalog, {absent})));
|
|
2147
2326
|
problems.push(
|
|
2148
2327
|
...(await docsLinkProblems(catalog, tree, {references: true, absent})),
|
|
2149
2328
|
);
|
|
@@ -2359,6 +2538,8 @@ export function checkInstallGuidance(ctx) {
|
|
|
2359
2538
|
* the person's choices about the computer-level agent text
|
|
2360
2539
|
* @property {string | null} [agentTextCommand] the command the skill file
|
|
2361
2540
|
* tells agents to run, or null
|
|
2541
|
+
* @property {Array<{path: string, state: import('../../foundation/agent-docs/managed-skill-file.mjs').ManagedFileState}>} [agentTextFolders]
|
|
2542
|
+
* each folder outside a project that `init --to <folder>` saved
|
|
2362
2543
|
* @property {string | null} [agentTextInstall] the install step the skill
|
|
2363
2544
|
* file records for when that command is not found, or null
|
|
2364
2545
|
* @property {string} [cwd] the folder doctor runs in, for the printed fix
|
|
@@ -2607,11 +2788,30 @@ export function checkComputerAgentText(ctx) {
|
|
|
2607
2788
|
label: 'Computer-level agent text',
|
|
2608
2789
|
status: /** @type {const} */ ('info'),
|
|
2609
2790
|
};
|
|
2791
|
+
const folders =
|
|
2792
|
+
ctx.agentTextFolders ??
|
|
2793
|
+
(state ? state.folders : []);
|
|
2794
|
+
const staleFolders = folders.filter(f => f.state === 'differs');
|
|
2795
|
+
const deletedFolders = folders.filter(f => f.state === 'absent');
|
|
2796
|
+
const keptFolders = folders.filter(f => f.state === 'edited' || f.state === 'foreign');
|
|
2797
|
+
const folderNote =
|
|
2798
|
+
(folders.length > 0
|
|
2799
|
+
? ` Also in the folders \`init --to\` saved: ${folders.map(f => f.path).join(', ')}.`
|
|
2800
|
+
: '') +
|
|
2801
|
+
(staleFolders.length > 0
|
|
2802
|
+
? ` From another release there: ${staleFolders.map(f => f.path).join(', ')}; the CLI installed for the computer refreshes them after its next upgrade, and \`${formatCliCommand('init --to <folder>', ctx.cwd)}\` writes one now.`
|
|
2803
|
+
: '') +
|
|
2804
|
+
(deletedFolders.length > 0
|
|
2805
|
+
? ` Deleted there, so not refreshed: ${deletedFolders.map(f => f.path).join(', ')}; \`${formatCliCommand('init --to <folder>', ctx.cwd)}\` writes one again.`
|
|
2806
|
+
: '') +
|
|
2807
|
+
(keptFolders.length > 0
|
|
2808
|
+
? ` Kept as they are (edited, or not written by Astryx): ${keptFolders.map(f => f.path).join(', ')}.`
|
|
2809
|
+
: '');
|
|
2610
2810
|
if (!settings.install) {
|
|
2611
2811
|
return {
|
|
2612
2812
|
...base,
|
|
2613
2813
|
message:
|
|
2614
|
-
|
|
2814
|
+
`The computer-level agent text is turned off (\`astryx init --user --remove-agents\`), so the CLI installed for the computer does not write it.${folderNote}`,
|
|
2615
2815
|
fix: `To turn it back on, run \`${formatCliCommand('astryx init --user', ctx.cwd)}\`.`,
|
|
2616
2816
|
};
|
|
2617
2817
|
}
|
|
@@ -2637,6 +2837,7 @@ export function checkComputerAgentText(ctx) {
|
|
|
2637
2837
|
.filter(l => l.state === 'absent' || l.state === 'differs')
|
|
2638
2838
|
.map(home);
|
|
2639
2839
|
const linkNote =
|
|
2840
|
+
folderNote +
|
|
2640
2841
|
(linked.length > 0 ? ` Linked into: ${linked.join(', ')}.` : '') +
|
|
2641
2842
|
(copied.length > 0 ? ` Copied into: ${copied.join(', ')}.` : '') +
|
|
2642
2843
|
(skipped.length > 0
|
|
@@ -2849,7 +3050,7 @@ export function checkGatherCache(ctx) {
|
|
|
2849
3050
|
label: 'Kept catalog cache',
|
|
2850
3051
|
status: 'info',
|
|
2851
3052
|
brief: `${entries} (${size}) in ${summary.dir}. \`${formatCliCommand('doctor --json', ctx.cwd)}\` lists every kept item and the size limits. To clear the caches, run: ${removeFolderCommand(kept)}.`,
|
|
2852
|
-
message: `search, build, component, template, theme, discover, docs and doctor keep what they gather (search's catalogs, each integration's check results, template discovery's records, the component list and whether the installed Core still matches the stored one, Core's and integrations' components with the doc parts the component matcher scores, Core hooks' declared keywords, integrations' theme records, what theme build checks a theme against in Core's component docs, the JavaScript theme build compiles from a theme's local TypeScript or JSX modules, what theme build finds when it checks a theme's pseudo-class keys and
|
|
3053
|
+
message: `search, build, component, template, theme, discover, docs and doctor keep what they gather (search's catalogs, each integration's check results, template discovery's records, the component list and whether the installed Core still matches the stored one, Core's and integrations' components with the doc parts the component matcher scores, Core hooks' declared keywords, integrations' theme records, what theme build checks a theme against in Core's component docs, the JavaScript theme build compiles from a theme's local TypeScript or JSX modules, what theme build finds when it checks a theme's pseudo-class keys, token names and settings the browser won't show as written, the lookup commands' not-found hint's name summaries, npm's list of the files an integration package packs, the CLI's own docs tree, what template reads from a template's source to name the components it uses, discover's record of the integrations a project loads and what each adds, and what it searches in its sources' saved copies, which search's discover line reads, and doctor's docs checks and theme-wiring scan) in ${summary.dir} (${entries}, ${size})${summary.pnp ? ", but not in a run under Yarn Plug'n'Play's loader, such as `yarn astryx`, which gathers every time" : ''}; each is used only while nothing it read has changed, the installed CLI's own files judged by its build id and folder (an upgrade, a reinstall or a copy in another folder changes them; in-place edits aren't supported), and deleting the folder clears it. A lookup command's not-found path may also create the folder, for its name index, and so may an integration package's \`integration check\` of itself, for npm's list. On Linux, when a debug handler is set, runs also keep the locale and time zone here. The folder holds at most ${summary.limitBytes / (1024 * 1024)} MB, dropping oldest entries first; the transpile cache in ${summary.transpiledDir} keeps its copies in ${SUBFOLDERS} subfolders, each holding at most 1/${SUBFOLDERS} of that, and drops the copies made longest ago first.`,
|
|
2853
3054
|
};
|
|
2854
3055
|
}
|
|
2855
3056
|
|
|
@@ -2929,6 +3130,7 @@ export const SYNC_CHECKS = [
|
|
|
2929
3130
|
checkIconPlaceholders,
|
|
2930
3131
|
checkIconImports,
|
|
2931
3132
|
checkAgentDocs,
|
|
3133
|
+
checkSkillPlaces,
|
|
2932
3134
|
checkPeerDeps,
|
|
2933
3135
|
checkPackageManager,
|
|
2934
3136
|
checkCliCommand,
|
|
@@ -3122,11 +3324,20 @@ export async function runChecks(options = {}) {
|
|
|
3122
3324
|
}
|
|
3123
3325
|
}
|
|
3124
3326
|
|
|
3327
|
+
/** @type {DoctorContext['skillPlaces']} */
|
|
3328
|
+
let skillPlaces = null;
|
|
3329
|
+
try {
|
|
3330
|
+
skillPlaces = await readSkillPlaces(cwd);
|
|
3331
|
+
} catch {
|
|
3332
|
+
// Unreadable places leave the skill-places check out.
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3125
3335
|
/** @type {DoctorContext} */
|
|
3126
3336
|
const ctx = {
|
|
3127
3337
|
cwd,
|
|
3128
3338
|
nodeVersion: process.versions.node,
|
|
3129
3339
|
coreDir,
|
|
3340
|
+
skillPlaces,
|
|
3130
3341
|
ownCli: projectHasOwnCli(cwd),
|
|
3131
3342
|
projectCore: projectCoreVersion(cwd),
|
|
3132
3343
|
addedThemePackages: addedThemePackages(cwd),
|