@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
|
@@ -48,11 +48,16 @@ import {
|
|
|
48
48
|
} from '../../../foundation/response/json.mjs';
|
|
49
49
|
import {answeredBy} from '../../../foundation/release/run-context.mjs';
|
|
50
50
|
import {unknownSubcommandSuggestions} from './cli-error.mjs';
|
|
51
|
+
import {
|
|
52
|
+
answerBareSubcommand,
|
|
53
|
+
answersBareSubcommands,
|
|
54
|
+
} from './define-command.mjs';
|
|
51
55
|
import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';
|
|
52
56
|
import {
|
|
53
57
|
setCommand,
|
|
54
58
|
setOutcome,
|
|
55
59
|
recordHelp,
|
|
60
|
+
recordCommandResult,
|
|
56
61
|
} from '../../../foundation/debug/index.mjs';
|
|
57
62
|
import {
|
|
58
63
|
formatCliCommand,
|
|
@@ -1117,6 +1122,14 @@ export function handleCommanderError(err) {
|
|
|
1117
1122
|
if (code === 'commander.unknownOption' && rejected)
|
|
1118
1123
|
return answerStrayOption(err, rejected, message, exitCode);
|
|
1119
1124
|
|
|
1125
|
+
// A subcommand called bare without the argument it needs: its group may
|
|
1126
|
+
// answer in its place, or add a suggestion to the error.
|
|
1127
|
+
if (
|
|
1128
|
+
code === 'commander.missingArgument' &&
|
|
1129
|
+
answersBareSubcommands(rejected?.parent)
|
|
1130
|
+
)
|
|
1131
|
+
return answerBareMissingArgument(err, rejected, message, exitCode);
|
|
1132
|
+
|
|
1120
1133
|
// Real error paths. Strip Commander's "error: " prefix once: in the envelope
|
|
1121
1134
|
// the key is already `error`, and in text mode the Astryx prefix replaces it.
|
|
1122
1135
|
// The editor's reader also reads an option given without its value and
|
|
@@ -1164,9 +1177,15 @@ async function answerStrayOption(err, rejected, message, exitCode) {
|
|
|
1164
1177
|
first &&
|
|
1165
1178
|
!rejected.commands.some((/** @type {any} */ c) => c.name() === first.word)
|
|
1166
1179
|
) {
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1180
|
+
/** @param {Awaited<ReturnType<typeof unknownCommandAnswer>>} a */
|
|
1181
|
+
const withRun = a =>
|
|
1182
|
+
a?.suggestions.some(s => s.name.startsWith('astryx ')) ? a : null;
|
|
1183
|
+
// The whole run first: a command the words point at can take the
|
|
1184
|
+
// option (`migrate --from 0.6.0` is `upgrade --from 0.6.0`). Without a
|
|
1185
|
+
// run, the run without the option.
|
|
1186
|
+
const answer =
|
|
1187
|
+
withRun(await unknownCommandAnswer(rejected, words, {findEntry})) ??
|
|
1188
|
+
(await unknownCommandAnswer(rejected, cleaned, {findEntry}));
|
|
1170
1189
|
setOutcome('parse-error', {
|
|
1171
1190
|
exitCode: exitCode || 1,
|
|
1172
1191
|
error: new Error(answer?.message ?? message),
|
|
@@ -1206,6 +1225,44 @@ async function answerStrayOption(err, rejected, message, exitCode) {
|
|
|
1206
1225
|
);
|
|
1207
1226
|
}
|
|
1208
1227
|
|
|
1228
|
+
/**
|
|
1229
|
+
* The answer to a missing argument. When the subcommand was called bare and
|
|
1230
|
+
* its group answers in its place, that answer is the run's result and the
|
|
1231
|
+
* run succeeds. Otherwise the error is Commander's, with the group's
|
|
1232
|
+
* suggestion after the usage when it gives one.
|
|
1233
|
+
* @param {unknown} err
|
|
1234
|
+
* @param {any} rejected the command that is missing its argument
|
|
1235
|
+
* @param {string} message Commander's message
|
|
1236
|
+
* @param {number} exitCode
|
|
1237
|
+
* @returns {Promise<boolean>}
|
|
1238
|
+
*/
|
|
1239
|
+
async function answerBareMissingArgument(err, rejected, message, exitCode) {
|
|
1240
|
+
const code = 'commander.missingArgument';
|
|
1241
|
+
const bare = await answerBareSubcommand(rejected);
|
|
1242
|
+
if (bare && 'result' in bare) {
|
|
1243
|
+
recordCommandResult(bare.result);
|
|
1244
|
+
setOutcome('ok', {exitCode: 0});
|
|
1245
|
+
process.exit(0);
|
|
1246
|
+
return true;
|
|
1247
|
+
}
|
|
1248
|
+
return finishParseError(
|
|
1249
|
+
err,
|
|
1250
|
+
code,
|
|
1251
|
+
message,
|
|
1252
|
+
exitCode,
|
|
1253
|
+
bare && {
|
|
1254
|
+
message: message.replace(/^error:\s*/i, ''),
|
|
1255
|
+
// Text prints a suggestion's name as the run to type.
|
|
1256
|
+
suggestions: [
|
|
1257
|
+
...(usageSuggestion(err, code) ?? []),
|
|
1258
|
+
jsonActive()
|
|
1259
|
+
? bare.suggestion
|
|
1260
|
+
: {...bare.suggestion, name: formatCliCommand(bare.suggestion.name)},
|
|
1261
|
+
],
|
|
1262
|
+
},
|
|
1263
|
+
);
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1209
1266
|
/**
|
|
1210
1267
|
* The rest of {@link handleCommanderError} for a parse failure: the message
|
|
1211
1268
|
* and suggestions written (the theme reader's answer when it read the
|
|
@@ -1214,7 +1271,7 @@ async function answerStrayOption(err, rejected, message, exitCode) {
|
|
|
1214
1271
|
* @param {string} code
|
|
1215
1272
|
* @param {string} message
|
|
1216
1273
|
* @param {number} exitCode
|
|
1217
|
-
* @param {{message: string, suggestions:
|
|
1274
|
+
* @param {{message: string, suggestions: import('../../../foundation/response/base').Suggestion[]} | undefined | null} read
|
|
1218
1275
|
* @param {string} [errorCode] the code the answer reports, when it is not
|
|
1219
1276
|
* the one Commander's code maps to
|
|
1220
1277
|
* @returns {boolean}
|
|
@@ -66,7 +66,9 @@ export const GLOBAL_MODE = Object.freeze({
|
|
|
66
66
|
* Envelopes the CLI layer builds itself, so the wrapped FunctionDoc cannot
|
|
67
67
|
* declare them: `manifest` wraps no API function, `theme build` batches several
|
|
68
68
|
* `themeBuild()` receipts, and `theme add` with no slug (or `--list`) answers
|
|
69
|
-
* with `themeListAvailable()`'s `theme.list` instead of calling `themeAdd()
|
|
69
|
+
* with `themeListAvailable()`'s `theme.list` instead of calling `themeAdd()`,
|
|
70
|
+
* and an `experimental icon` subcommand typed alone may answer the search's
|
|
71
|
+
* `icon.search` instead of calling its own function.
|
|
70
72
|
* manifest.test.mjs fails once the wrapped FunctionDoc declares one of these, so
|
|
71
73
|
* the list only shrinks.
|
|
72
74
|
* @type {Record<string, string[]>}
|
|
@@ -79,6 +81,12 @@ const CLI_LAYER_RESPONSE_TYPES = {
|
|
|
79
81
|
'experimental theme': ['help'],
|
|
80
82
|
'experimental theme editor': ['help'],
|
|
81
83
|
'experimental theme preview': ['help'],
|
|
84
|
+
// An icon subcommand typed alone answers the icon search for its name.
|
|
85
|
+
'experimental icon add': ['icon.search'],
|
|
86
|
+
'experimental icon map': ['icon.search'],
|
|
87
|
+
'experimental icon use': ['icon.search'],
|
|
88
|
+
'experimental icon new-set': ['icon.search'],
|
|
89
|
+
'experimental icon new-definition': ['icon.search'],
|
|
82
90
|
};
|
|
83
91
|
|
|
84
92
|
/**
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file The Model Context Protocol server behind `astryx mcp`.
|
|
5
|
+
*
|
|
6
|
+
* It speaks MCP over standard input and output: one JSON-RPC message per line.
|
|
7
|
+
* It lists the CLI's commands as tools (lib/mcp-tools.mjs), and it answers a
|
|
8
|
+
* tool call by running that command with this CLI's own bin, as a child
|
|
9
|
+
* process in the folder the call names, with --json. The answer is the
|
|
10
|
+
* command's output, unchanged, and `isError` is true when the command exits
|
|
11
|
+
* non-zero. The server writes nothing but protocol messages to stdout.
|
|
12
|
+
*
|
|
13
|
+
* @input MCP requests on stdin; the tools, version and instructions to serve
|
|
14
|
+
* @output MCP responses on stdout; one child process per tool call
|
|
15
|
+
* @position clients/cli/lib — started by the `mcp` command handler
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import {spawn} from 'node:child_process';
|
|
19
|
+
import * as readline from 'node:readline';
|
|
20
|
+
import {fileURLToPath} from 'node:url';
|
|
21
|
+
import {commandLine, McpInputError} from './mcp-tools.mjs';
|
|
22
|
+
|
|
23
|
+
/** The bin of this copy of the CLI: every tool call runs it. */
|
|
24
|
+
export const CLI_BIN = fileURLToPath(new URL('../bin/astryx.mjs', import.meta.url));
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The protocol versions this server speaks, newest first. The methods it
|
|
28
|
+
* serves are the same in each.
|
|
29
|
+
*/
|
|
30
|
+
export const PROTOCOL_VERSIONS = Object.freeze([
|
|
31
|
+
'2025-11-25',
|
|
32
|
+
'2025-06-18',
|
|
33
|
+
'2025-03-26',
|
|
34
|
+
'2024-11-05',
|
|
35
|
+
]);
|
|
36
|
+
|
|
37
|
+
/** JSON-RPC error codes. */
|
|
38
|
+
const PARSE_ERROR = -32700;
|
|
39
|
+
const INVALID_REQUEST = -32600;
|
|
40
|
+
const METHOD_NOT_FOUND = -32601;
|
|
41
|
+
const INVALID_PARAMS = -32602;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @typedef {object} CommandRun
|
|
45
|
+
* @property {string} stdout
|
|
46
|
+
* @property {string} stderr
|
|
47
|
+
* @property {number | null} exitCode
|
|
48
|
+
* @property {NodeJS.Signals | null} signal
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Run this CLI once, with `argv`, in `cwd`.
|
|
53
|
+
* @param {string[]} argv
|
|
54
|
+
* @param {{cwd: string, signal: AbortSignal}} options
|
|
55
|
+
* @returns {Promise<CommandRun>}
|
|
56
|
+
*/
|
|
57
|
+
export function runCommand(argv, {cwd, signal}) {
|
|
58
|
+
return new Promise((resolve, reject) => {
|
|
59
|
+
const child = spawn(process.execPath, [CLI_BIN, ...argv], {
|
|
60
|
+
cwd,
|
|
61
|
+
env: process.env,
|
|
62
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
63
|
+
windowsHide: true,
|
|
64
|
+
signal,
|
|
65
|
+
});
|
|
66
|
+
/** @type {Buffer[]} */
|
|
67
|
+
const out = [];
|
|
68
|
+
/** @type {Buffer[]} */
|
|
69
|
+
const err = [];
|
|
70
|
+
child.stdout.on('data', chunk => out.push(chunk));
|
|
71
|
+
child.stderr.on('data', chunk => err.push(chunk));
|
|
72
|
+
child.on('error', error => {
|
|
73
|
+
if (/** @type {any} */ (error).name === 'AbortError') return;
|
|
74
|
+
reject(error);
|
|
75
|
+
});
|
|
76
|
+
child.on('close', (exitCode, exitSignal) => {
|
|
77
|
+
resolve({
|
|
78
|
+
stdout: Buffer.concat(out).toString('utf8'),
|
|
79
|
+
stderr: Buffer.concat(err).toString('utf8'),
|
|
80
|
+
exitCode,
|
|
81
|
+
signal: exitSignal,
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The tool result for one finished run: stdout, then stderr when the run
|
|
89
|
+
* wrote any, each as it was written.
|
|
90
|
+
* @param {CommandRun} run
|
|
91
|
+
*/
|
|
92
|
+
function toolResult(run) {
|
|
93
|
+
const texts = [run.stdout, run.stderr].filter(text => text.length > 0);
|
|
94
|
+
const content = (texts.length > 0 ? texts : ['']).map(text => ({type: 'text', text}));
|
|
95
|
+
return {content, isError: run.exitCode !== 0};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Serve MCP until the client closes standard input.
|
|
100
|
+
*
|
|
101
|
+
* @param {{
|
|
102
|
+
* tools: import('./mcp-tools.mjs').McpTool[],
|
|
103
|
+
* version: string,
|
|
104
|
+
* instructions: string,
|
|
105
|
+
* root?: string,
|
|
106
|
+
* input?: NodeJS.ReadableStream,
|
|
107
|
+
* output?: NodeJS.WritableStream,
|
|
108
|
+
* run?: typeof runCommand,
|
|
109
|
+
* batches?: boolean,
|
|
110
|
+
* }} options `root` is the folder served (default: the working folder);
|
|
111
|
+
* `batches: false` answers a batch as an invalid request, so the server
|
|
112
|
+
* takes one message at a time
|
|
113
|
+
* @returns {Promise<void>} resolves when the client has gone and every call
|
|
114
|
+
* it started has stopped
|
|
115
|
+
*/
|
|
116
|
+
export function serveMcp({
|
|
117
|
+
tools,
|
|
118
|
+
version,
|
|
119
|
+
instructions,
|
|
120
|
+
root = process.cwd(),
|
|
121
|
+
input = process.stdin,
|
|
122
|
+
output = process.stdout,
|
|
123
|
+
run = runCommand,
|
|
124
|
+
batches = true,
|
|
125
|
+
}) {
|
|
126
|
+
const byName = new Map(tools.map(tool => [tool.name, tool]));
|
|
127
|
+
/** @type {Map<string | number, AbortController>} */
|
|
128
|
+
const running = new Map();
|
|
129
|
+
/** @type {Set<Promise<void>>} */
|
|
130
|
+
const pending = new Set();
|
|
131
|
+
|
|
132
|
+
/** @param {unknown} message */
|
|
133
|
+
const send = message => {
|
|
134
|
+
output.write(`${JSON.stringify(message)}\n`);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @param {string | number | null} id
|
|
139
|
+
* @param {number} code
|
|
140
|
+
* @param {string} message
|
|
141
|
+
*/
|
|
142
|
+
const errorReply = (id, code, message) => ({
|
|
143
|
+
jsonrpc: '2.0',
|
|
144
|
+
id,
|
|
145
|
+
error: {code, message},
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Answer one tool call.
|
|
150
|
+
* @param {string | number} id
|
|
151
|
+
* @param {any} params
|
|
152
|
+
* @returns {Promise<unknown | null>} the reply, or null when the client
|
|
153
|
+
* cancelled the call
|
|
154
|
+
*/
|
|
155
|
+
const callTool = async (id, params) => {
|
|
156
|
+
const tool = byName.get(params?.name);
|
|
157
|
+
if (!tool) {
|
|
158
|
+
return errorReply(id, INVALID_PARAMS, `Unknown tool: ${String(params?.name)}`);
|
|
159
|
+
}
|
|
160
|
+
let line;
|
|
161
|
+
try {
|
|
162
|
+
line = commandLine(tool, params.arguments ?? {}, {root});
|
|
163
|
+
} catch (error) {
|
|
164
|
+
if (!(error instanceof McpInputError)) throw error;
|
|
165
|
+
const content = [{type: 'text', text: error.message}];
|
|
166
|
+
return {jsonrpc: '2.0', id, result: {content, isError: true}};
|
|
167
|
+
}
|
|
168
|
+
const controller = new AbortController();
|
|
169
|
+
running.set(id, controller);
|
|
170
|
+
try {
|
|
171
|
+
const result = await run(line.argv, {cwd: line.cwd, signal: controller.signal});
|
|
172
|
+
if (controller.signal.aborted) return null;
|
|
173
|
+
return {jsonrpc: '2.0', id, result: toolResult(result)};
|
|
174
|
+
} finally {
|
|
175
|
+
running.delete(id);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The reply to one request, or null for a notification.
|
|
181
|
+
* @param {any} message
|
|
182
|
+
* @returns {Promise<unknown | null>}
|
|
183
|
+
*/
|
|
184
|
+
const handle = async message => {
|
|
185
|
+
if (message === null || typeof message !== 'object' || Array.isArray(message)) {
|
|
186
|
+
return errorReply(null, INVALID_REQUEST, 'Invalid request');
|
|
187
|
+
}
|
|
188
|
+
const {id, method, params} = message;
|
|
189
|
+
const isRequest = id !== undefined && id !== null;
|
|
190
|
+
if (typeof method !== 'string') {
|
|
191
|
+
// A response is never answered: this server sends no request. Any other
|
|
192
|
+
// message without a method is an invalid request.
|
|
193
|
+
if ('result' in message || 'error' in message) return null;
|
|
194
|
+
return errorReply(isRequest ? id : null, INVALID_REQUEST, 'Invalid request');
|
|
195
|
+
}
|
|
196
|
+
if (!isRequest) {
|
|
197
|
+
if (method === 'notifications/cancelled') {
|
|
198
|
+
running.get(params?.requestId)?.abort();
|
|
199
|
+
}
|
|
200
|
+
return null;
|
|
201
|
+
}
|
|
202
|
+
switch (method) {
|
|
203
|
+
case 'initialize': {
|
|
204
|
+
const asked = params?.protocolVersion;
|
|
205
|
+
return {
|
|
206
|
+
jsonrpc: '2.0',
|
|
207
|
+
id,
|
|
208
|
+
result: {
|
|
209
|
+
protocolVersion: PROTOCOL_VERSIONS.includes(asked) ? asked : PROTOCOL_VERSIONS[0],
|
|
210
|
+
capabilities: {tools: {listChanged: false}},
|
|
211
|
+
serverInfo: {name: 'astryx', title: 'Astryx CLI', version},
|
|
212
|
+
instructions,
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
case 'ping':
|
|
217
|
+
return {jsonrpc: '2.0', id, result: {}};
|
|
218
|
+
case 'tools/list':
|
|
219
|
+
return {
|
|
220
|
+
jsonrpc: '2.0',
|
|
221
|
+
id,
|
|
222
|
+
result: {
|
|
223
|
+
tools: tools.map(({name, title, description, inputSchema}) => ({
|
|
224
|
+
name,
|
|
225
|
+
title,
|
|
226
|
+
description,
|
|
227
|
+
inputSchema,
|
|
228
|
+
})),
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
case 'tools/call':
|
|
232
|
+
return callTool(id, params);
|
|
233
|
+
default:
|
|
234
|
+
return errorReply(id, METHOD_NOT_FOUND, `Method not found: ${method}`);
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/** @param {string} line */
|
|
239
|
+
const receive = line => {
|
|
240
|
+
if (line.trim() === '') return;
|
|
241
|
+
/** @type {any} */
|
|
242
|
+
let message;
|
|
243
|
+
try {
|
|
244
|
+
message = JSON.parse(line);
|
|
245
|
+
} catch {
|
|
246
|
+
send(errorReply(null, PARSE_ERROR, 'Parse error'));
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
const work = (async () => {
|
|
250
|
+
if (Array.isArray(message)) {
|
|
251
|
+
if (message.length === 0 || !batches) {
|
|
252
|
+
send(
|
|
253
|
+
errorReply(
|
|
254
|
+
null,
|
|
255
|
+
INVALID_REQUEST,
|
|
256
|
+
batches ? 'Invalid request' : 'This server takes one message at a time, not a batch',
|
|
257
|
+
),
|
|
258
|
+
);
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
const replies = (await Promise.all(message.map(handle))).filter(
|
|
262
|
+
reply => reply != null,
|
|
263
|
+
);
|
|
264
|
+
if (replies.length > 0) send(replies);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
const reply = await handle(message);
|
|
268
|
+
if (reply != null) send(reply);
|
|
269
|
+
})().catch(error => {
|
|
270
|
+
const id = Array.isArray(message) ? null : (message?.id ?? null);
|
|
271
|
+
send(errorReply(id, -32603, `Internal error: ${error?.message ?? String(error)}`));
|
|
272
|
+
});
|
|
273
|
+
pending.add(work);
|
|
274
|
+
work.finally(() => pending.delete(work));
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
return new Promise(resolve => {
|
|
278
|
+
const lines = readline.createInterface({input, crlfDelay: Infinity});
|
|
279
|
+
lines.on('line', receive);
|
|
280
|
+
lines.on('close', () => {
|
|
281
|
+
// The client has gone: stop every command it started.
|
|
282
|
+
for (const controller of running.values()) controller.abort();
|
|
283
|
+
Promise.allSettled([...pending]).then(() => resolve());
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
}
|