@lesliechan721/aw 0.1.0-beta.10
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/dist/authoring/assets/aw-config.d.mts +51 -0
- package/dist/authoring/assets/aw-config.mjs +1025 -0
- package/dist/authoring/assets/aw-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.d.mts +2 -0
- package/dist/authoring/scripts/add-skill.mjs +355 -0
- package/dist/authoring/scripts/add-skill.mjs.map +1 -0
- package/dist/authoring/scripts/init-plugin.d.mts +2 -0
- package/dist/authoring/scripts/init-plugin.mjs +487 -0
- package/dist/authoring/scripts/init-plugin.mjs.map +1 -0
- package/dist/authoring/scripts/lib/javascript-import-scanner.d.mts +4 -0
- package/dist/authoring/scripts/lib/javascript-import-scanner.mjs +261 -0
- package/dist/authoring/scripts/lib/javascript-import-scanner.mjs.map +1 -0
- package/dist/authoring/scripts/lib/plugin-root.d.mts +26 -0
- package/dist/authoring/scripts/lib/plugin-root.mjs +125 -0
- package/dist/authoring/scripts/lib/plugin-root.mjs.map +1 -0
- package/dist/authoring/scripts/lib/plugin-version-check.d.mts +69 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +563 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -0
- package/dist/authoring/scripts/lib/semver.d.mts +9 -0
- package/dist/authoring/scripts/lib/semver.mjs +63 -0
- package/dist/authoring/scripts/lib/semver.mjs.map +1 -0
- package/dist/authoring/scripts/lib/skill-scaffold.d.mts +111 -0
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +353 -0
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -0
- package/dist/authoring/scripts/plugin-status.d.mts +2 -0
- package/dist/authoring/scripts/plugin-status.mjs +93 -0
- package/dist/authoring/scripts/plugin-status.mjs.map +1 -0
- package/dist/authoring/scripts/remove-plugin.d.mts +2 -0
- package/dist/authoring/scripts/remove-plugin.mjs +367 -0
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -0
- package/dist/authoring/scripts/validate-plugin.d.mts +2 -0
- package/dist/authoring/scripts/validate-plugin.mjs +3465 -0
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -0
- package/dist/authoring/scripts/validate-skill.d.mts +2 -0
- package/dist/authoring/scripts/validate-skill.mjs +126 -0
- package/dist/authoring/scripts/validate-skill.mjs.map +1 -0
- package/dist/authoring/templates/aw-config-runtime.d.mts +2 -0
- package/dist/authoring/templates/aw-config-runtime.mjs +407 -0
- package/dist/authoring/templates/aw-config-runtime.mjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/scripts/aw-skill-eval-materializer.d.ts +24 -0
- package/dist/scripts/aw-skill-eval-materializer.js +309 -0
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -0
- package/dist/scripts/bundle-plugins.d.ts +17 -0
- package/dist/scripts/bundle-plugins.js +126 -0
- package/dist/scripts/bundle-plugins.js.map +1 -0
- package/dist/scripts/plugin-staging.d.ts +26 -0
- package/dist/scripts/plugin-staging.js +76 -0
- package/dist/scripts/plugin-staging.js.map +1 -0
- package/dist/scripts/test-plugin-scripts.d.ts +7 -0
- package/dist/scripts/test-plugin-scripts.js +610 -0
- package/dist/scripts/test-plugin-scripts.js.map +1 -0
- package/dist/src/adapters/helpers.d.ts +44 -0
- package/dist/src/adapters/helpers.js +95 -0
- package/dist/src/adapters/helpers.js.map +1 -0
- package/dist/src/authoring/workspace-commands.d.ts +70 -0
- package/dist/src/authoring/workspace-commands.js +158 -0
- package/dist/src/authoring/workspace-commands.js.map +1 -0
- package/dist/src/commands/aw-capabilities.d.ts +78 -0
- package/dist/src/commands/aw-capabilities.js +254 -0
- package/dist/src/commands/aw-capabilities.js.map +1 -0
- package/dist/src/commands/catalog-dev-source.d.ts +120 -0
- package/dist/src/commands/catalog-dev-source.js +434 -0
- package/dist/src/commands/catalog-dev-source.js.map +1 -0
- package/dist/src/commands/catalog-generation.d.ts +16 -0
- package/dist/src/commands/catalog-generation.js +9 -0
- package/dist/src/commands/catalog-generation.js.map +1 -0
- package/dist/src/commands/catalog-publication-inspection.d.ts +138 -0
- package/dist/src/commands/catalog-publication-inspection.js +711 -0
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -0
- package/dist/src/commands/catalog-publication-journal.d.ts +56 -0
- package/dist/src/commands/catalog-publication-journal.js +215 -0
- package/dist/src/commands/catalog-publication-journal.js.map +1 -0
- package/dist/src/commands/catalog-publication-target.d.ts +18 -0
- package/dist/src/commands/catalog-publication-target.js +95 -0
- package/dist/src/commands/catalog-publication-target.js.map +1 -0
- package/dist/src/commands/catalog-publish.d.ts +103 -0
- package/dist/src/commands/catalog-publish.js +804 -0
- package/dist/src/commands/catalog-publish.js.map +1 -0
- package/dist/src/commands/catalog-source.d.ts +134 -0
- package/dist/src/commands/catalog-source.js +377 -0
- package/dist/src/commands/catalog-source.js.map +1 -0
- package/dist/src/commands/catalog-status.d.ts +56 -0
- package/dist/src/commands/catalog-status.js +217 -0
- package/dist/src/commands/catalog-status.js.map +1 -0
- package/dist/src/commands/catalog-store.d.ts +80 -0
- package/dist/src/commands/catalog-store.js +348 -0
- package/dist/src/commands/catalog-store.js.map +1 -0
- package/dist/src/commands/catalog-workspace-resolution.d.ts +13 -0
- package/dist/src/commands/catalog-workspace-resolution.js +42 -0
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -0
- package/dist/src/commands/console.d.ts +3 -0
- package/dist/src/commands/console.js +44 -0
- package/dist/src/commands/console.js.map +1 -0
- package/dist/src/commands/dependency-operation-plan.d.ts +58 -0
- package/dist/src/commands/dependency-operation-plan.js +261 -0
- package/dist/src/commands/dependency-operation-plan.js.map +1 -0
- package/dist/src/commands/init.d.ts +25 -0
- package/dist/src/commands/init.js +42 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +59 -0
- package/dist/src/commands/offline-cleanup-evidence.js +163 -0
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -0
- package/dist/src/commands/operation-plan.d.ts +126 -0
- package/dist/src/commands/operation-plan.js +47 -0
- package/dist/src/commands/operation-plan.js.map +1 -0
- package/dist/src/commands/operation-planner.d.ts +46 -0
- package/dist/src/commands/operation-planner.js +139 -0
- package/dist/src/commands/operation-planner.js.map +1 -0
- package/dist/src/commands/options.d.ts +70 -0
- package/dist/src/commands/options.js +194 -0
- package/dist/src/commands/options.js.map +1 -0
- package/dist/src/commands/plugin-capabilities.d.ts +22 -0
- package/dist/src/commands/plugin-capabilities.js +159 -0
- package/dist/src/commands/plugin-capabilities.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +88 -0
- package/dist/src/commands/rebuild-command.js +3626 -0
- package/dist/src/commands/rebuild-command.js.map +1 -0
- package/dist/src/commands/rebuild-integration.d.ts +190 -0
- package/dist/src/commands/rebuild-integration.js +4439 -0
- package/dist/src/commands/rebuild-integration.js.map +1 -0
- package/dist/src/commands/rebuild-operations.d.ts +100 -0
- package/dist/src/commands/rebuild-operations.js +625 -0
- package/dist/src/commands/rebuild-operations.js.map +1 -0
- package/dist/src/commands/reconcile-operation-plan.d.ts +26 -0
- package/dist/src/commands/reconcile-operation-plan.js +28 -0
- package/dist/src/commands/reconcile-operation-plan.js.map +1 -0
- package/dist/src/commands/review-publication.d.ts +99 -0
- package/dist/src/commands/review-publication.js +904 -0
- package/dist/src/commands/review-publication.js.map +1 -0
- package/dist/src/commands/runtime.d.ts +172 -0
- package/dist/src/commands/runtime.js +720 -0
- package/dist/src/commands/runtime.js.map +1 -0
- package/dist/src/commands/skill-eval.d.ts +33 -0
- package/dist/src/commands/skill-eval.js +363 -0
- package/dist/src/commands/skill-eval.js.map +1 -0
- package/dist/src/commands/status-v6.d.ts +206 -0
- package/dist/src/commands/status-v6.js +2175 -0
- package/dist/src/commands/status-v6.js.map +1 -0
- package/dist/src/commands/sync-command.d.ts +23 -0
- package/dist/src/commands/sync-command.js +242 -0
- package/dist/src/commands/sync-command.js.map +1 -0
- package/dist/src/commands/wizard.d.ts +56 -0
- package/dist/src/commands/wizard.js +58 -0
- package/dist/src/commands/wizard.js.map +1 -0
- package/dist/src/commands/write-commands.d.ts +7 -0
- package/dist/src/commands/write-commands.js +190 -0
- package/dist/src/commands/write-commands.js.map +1 -0
- package/dist/src/constants.d.ts +31 -0
- package/dist/src/constants.js +32 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/eval/manifest-v1.d.ts +67 -0
- package/dist/src/eval/manifest-v1.js +347 -0
- package/dist/src/eval/manifest-v1.js.map +1 -0
- package/dist/src/generators/agents.d.ts +3 -0
- package/dist/src/generators/agents.js +46 -0
- package/dist/src/generators/agents.js.map +1 -0
- package/dist/src/generators/hooks.d.ts +15 -0
- package/dist/src/generators/hooks.js +76 -0
- package/dist/src/generators/hooks.js.map +1 -0
- package/dist/src/generators/instructions.d.ts +13 -0
- package/dist/src/generators/instructions.js +66 -0
- package/dist/src/generators/instructions.js.map +1 -0
- package/dist/src/generators/local-plugin.d.ts +56 -0
- package/dist/src/generators/local-plugin.js +1373 -0
- package/dist/src/generators/local-plugin.js.map +1 -0
- package/dist/src/generators/permissions.d.ts +10 -0
- package/dist/src/generators/permissions.js +37 -0
- package/dist/src/generators/permissions.js.map +1 -0
- package/dist/src/generators/shared.d.ts +2 -0
- package/dist/src/generators/shared.js +15 -0
- package/dist/src/generators/shared.js.map +1 -0
- package/dist/src/index.d.ts +41 -0
- package/dist/src/index.js +3327 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/output/command-receipt.d.ts +87 -0
- package/dist/src/output/command-receipt.js +302 -0
- package/dist/src/output/command-receipt.js.map +1 -0
- package/dist/src/output/debug-log.d.ts +4 -0
- package/dist/src/output/debug-log.js +97 -0
- package/dist/src/output/debug-log.js.map +1 -0
- package/dist/src/output/equivalent-command.d.ts +9 -0
- package/dist/src/output/equivalent-command.js +39 -0
- package/dist/src/output/equivalent-command.js.map +1 -0
- package/dist/src/output/model.d.ts +76 -0
- package/dist/src/output/model.js +2 -0
- package/dist/src/output/model.js.map +1 -0
- package/dist/src/output/rebuild-progress.d.ts +21 -0
- package/dist/src/output/rebuild-progress.js +128 -0
- package/dist/src/output/rebuild-progress.js.map +1 -0
- package/dist/src/output/redact.d.ts +3 -0
- package/dist/src/output/redact.js +39 -0
- package/dist/src/output/redact.js.map +1 -0
- package/dist/src/output/reporter.d.ts +9 -0
- package/dist/src/output/reporter.js +133 -0
- package/dist/src/output/reporter.js.map +1 -0
- package/dist/src/portable/commands.d.ts +124 -0
- package/dist/src/portable/commands.js +557 -0
- package/dist/src/portable/commands.js.map +1 -0
- package/dist/src/portable/materializer.d.ts +50 -0
- package/dist/src/portable/materializer.js +462 -0
- package/dist/src/portable/materializer.js.map +1 -0
- package/dist/src/portable/skills-cli.d.ts +43 -0
- package/dist/src/portable/skills-cli.js +148 -0
- package/dist/src/portable/skills-cli.js.map +1 -0
- package/dist/src/tui/catalog-freshness.d.ts +1 -0
- package/dist/src/tui/catalog-freshness.js +2 -0
- package/dist/src/tui/catalog-freshness.js.map +1 -0
- package/dist/src/tui/catalog-generation.d.ts +21 -0
- package/dist/src/tui/catalog-generation.js +116 -0
- package/dist/src/tui/catalog-generation.js.map +1 -0
- package/dist/src/tui/catalog-sources/projection.d.ts +4 -0
- package/dist/src/tui/catalog-sources/projection.js +17 -0
- package/dist/src/tui/catalog-sources/projection.js.map +1 -0
- package/dist/src/tui/catalog-sources/review.d.ts +3 -0
- package/dist/src/tui/catalog-sources/review.js +13 -0
- package/dist/src/tui/catalog-sources/review.js.map +1 -0
- package/dist/src/tui/catalog-sources/screens.d.ts +12 -0
- package/dist/src/tui/catalog-sources/screens.js +33 -0
- package/dist/src/tui/catalog-sources/screens.js.map +1 -0
- package/dist/src/tui/catalog-sources/session.d.ts +22 -0
- package/dist/src/tui/catalog-sources/session.js +225 -0
- package/dist/src/tui/catalog-sources/session.js.map +1 -0
- package/dist/src/tui/catalog-sources/types.d.ts +41 -0
- package/dist/src/tui/catalog-sources/types.js +2 -0
- package/dist/src/tui/catalog-sources/types.js.map +1 -0
- package/dist/src/tui/components.d.ts +102 -0
- package/dist/src/tui/components.js +184 -0
- package/dist/src/tui/components.js.map +1 -0
- package/dist/src/tui/console-app-v4.d.ts +20 -0
- package/dist/src/tui/console-app-v4.js +5066 -0
- package/dist/src/tui/console-app-v4.js.map +1 -0
- package/dist/src/tui/controller-runtime.d.ts +23 -0
- package/dist/src/tui/controller-runtime.js +2011 -0
- package/dist/src/tui/controller-runtime.js.map +1 -0
- package/dist/src/tui/controller.d.ts +557 -0
- package/dist/src/tui/controller.js +2120 -0
- package/dist/src/tui/controller.js.map +1 -0
- package/dist/src/tui/diagnostics.d.ts +30 -0
- package/dist/src/tui/diagnostics.js +71 -0
- package/dist/src/tui/diagnostics.js.map +1 -0
- package/dist/src/tui/index.d.ts +17 -0
- package/dist/src/tui/index.js +17 -0
- package/dist/src/tui/index.js.map +1 -0
- package/dist/src/tui/input-display.d.ts +8 -0
- package/dist/src/tui/input-display.js +36 -0
- package/dist/src/tui/input-display.js.map +1 -0
- package/dist/src/tui/keys.d.ts +12 -0
- package/dist/src/tui/keys.js +22 -0
- package/dist/src/tui/keys.js.map +1 -0
- package/dist/src/tui/layout.d.ts +12 -0
- package/dist/src/tui/layout.js +19 -0
- package/dist/src/tui/layout.js.map +1 -0
- package/dist/src/tui/model.d.ts +424 -0
- package/dist/src/tui/model.js +1493 -0
- package/dist/src/tui/model.js.map +1 -0
- package/dist/src/tui/operation-review-planner.d.ts +21 -0
- package/dist/src/tui/operation-review-planner.js +622 -0
- package/dist/src/tui/operation-review-planner.js.map +1 -0
- package/dist/src/tui/prompt.d.ts +8 -0
- package/dist/src/tui/prompt.js +231 -0
- package/dist/src/tui/prompt.js.map +1 -0
- package/dist/src/tui/router.d.ts +206 -0
- package/dist/src/tui/router.js +137 -0
- package/dist/src/tui/router.js.map +1 -0
- package/dist/src/tui/runner.d.ts +11 -0
- package/dist/src/tui/runner.js +71 -0
- package/dist/src/tui/runner.js.map +1 -0
- package/dist/src/tui/source-ref-presets.d.ts +3 -0
- package/dist/src/tui/source-ref-presets.js +11 -0
- package/dist/src/tui/source-ref-presets.js.map +1 -0
- package/dist/src/tui/theme.d.ts +26 -0
- package/dist/src/tui/theme.js +28 -0
- package/dist/src/tui/theme.js.map +1 -0
- package/dist/src/tui/viewport.d.ts +20 -0
- package/dist/src/tui/viewport.js +29 -0
- package/dist/src/tui/viewport.js.map +1 -0
- package/dist/src/tui/views.d.ts +57 -0
- package/dist/src/tui/views.js +201 -0
- package/dist/src/tui/views.js.map +1 -0
- package/dist/src/tui/wizard.d.ts +11 -0
- package/dist/src/tui/wizard.js +323 -0
- package/dist/src/tui/wizard.js.map +1 -0
- package/dist/src/types.d.ts +474 -0
- package/dist/src/types.js +34 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils/agent-version.d.ts +19 -0
- package/dist/src/utils/agent-version.js +205 -0
- package/dist/src/utils/agent-version.js.map +1 -0
- package/dist/src/utils/artifact-plan.d.ts +27 -0
- package/dist/src/utils/artifact-plan.js +453 -0
- package/dist/src/utils/artifact-plan.js.map +1 -0
- package/dist/src/utils/artifact-renderer.d.ts +129 -0
- package/dist/src/utils/artifact-renderer.js +400 -0
- package/dist/src/utils/artifact-renderer.js.map +1 -0
- package/dist/src/utils/artifact-request.d.ts +16 -0
- package/dist/src/utils/artifact-request.js +42 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- package/dist/src/utils/artifact-sources.d.ts +8 -0
- package/dist/src/utils/artifact-sources.js +10 -0
- package/dist/src/utils/artifact-sources.js.map +1 -0
- package/dist/src/utils/aw-home-mutation-lock.d.ts +11 -0
- package/dist/src/utils/aw-home-mutation-lock.js +83 -0
- package/dist/src/utils/aw-home-mutation-lock.js.map +1 -0
- package/dist/src/utils/bundle-integrity.d.ts +2 -0
- package/dist/src/utils/bundle-integrity.js +63 -0
- package/dist/src/utils/bundle-integrity.js.map +1 -0
- package/dist/src/utils/bundle-layout.d.ts +4 -0
- package/dist/src/utils/bundle-layout.js +531 -0
- package/dist/src/utils/bundle-layout.js.map +1 -0
- package/dist/src/utils/catalog-digests.d.ts +18 -0
- package/dist/src/utils/catalog-digests.js +156 -0
- package/dist/src/utils/catalog-digests.js.map +1 -0
- package/dist/src/utils/catalog-generation-control-snapshot.d.ts +11 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js +45 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js.map +1 -0
- package/dist/src/utils/catalog-generation-error.d.ts +16 -0
- package/dist/src/utils/catalog-generation-error.js +30 -0
- package/dist/src/utils/catalog-generation-error.js.map +1 -0
- package/dist/src/utils/catalog-generation-resolver.d.ts +32 -0
- package/dist/src/utils/catalog-generation-resolver.js +251 -0
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -0
- package/dist/src/utils/catalog-generation-service.d.ts +161 -0
- package/dist/src/utils/catalog-generation-service.js +1237 -0
- package/dist/src/utils/catalog-generation-service.js.map +1 -0
- package/dist/src/utils/catalog-generation-state.d.ts +22 -0
- package/dist/src/utils/catalog-generation-state.js +192 -0
- package/dist/src/utils/catalog-generation-state.js.map +1 -0
- package/dist/src/utils/catalog-generation-store.d.ts +57 -0
- package/dist/src/utils/catalog-generation-store.js +397 -0
- package/dist/src/utils/catalog-generation-store.js.map +1 -0
- package/dist/src/utils/catalog-manifest-v7.d.ts +5 -0
- package/dist/src/utils/catalog-manifest-v7.js +98 -0
- package/dist/src/utils/catalog-manifest-v7.js.map +1 -0
- package/dist/src/utils/catalog-operation-context.d.ts +20 -0
- package/dist/src/utils/catalog-operation-context.js +141 -0
- package/dist/src/utils/catalog-operation-context.js.map +1 -0
- package/dist/src/utils/catalog-public-error.d.ts +19 -0
- package/dist/src/utils/catalog-public-error.js +100 -0
- package/dist/src/utils/catalog-public-error.js.map +1 -0
- package/dist/src/utils/catalog-runtime-projection.d.ts +33 -0
- package/dist/src/utils/catalog-runtime-projection.js +77 -0
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -0
- package/dist/src/utils/catalog-snapshot.d.ts +10 -0
- package/dist/src/utils/catalog-snapshot.js +20 -0
- package/dist/src/utils/catalog-snapshot.js.map +1 -0
- package/dist/src/utils/catalog-source-identity.d.ts +5 -0
- package/dist/src/utils/catalog-source-identity.js +137 -0
- package/dist/src/utils/catalog-source-identity.js.map +1 -0
- package/dist/src/utils/catalog-source-impact.d.ts +20 -0
- package/dist/src/utils/catalog-source-impact.js +222 -0
- package/dist/src/utils/catalog-source-impact.js.map +1 -0
- package/dist/src/utils/catalog-source-presentation.d.ts +1 -0
- package/dist/src/utils/catalog-source-presentation.js +32 -0
- package/dist/src/utils/catalog-source-presentation.js.map +1 -0
- package/dist/src/utils/catalog-source-references.d.ts +66 -0
- package/dist/src/utils/catalog-source-references.js +1180 -0
- package/dist/src/utils/catalog-source-references.js.map +1 -0
- package/dist/src/utils/catalog-sources.d.ts +53 -0
- package/dist/src/utils/catalog-sources.js +456 -0
- package/dist/src/utils/catalog-sources.js.map +1 -0
- package/dist/src/utils/codex-config.d.ts +126 -0
- package/dist/src/utils/codex-config.js +1032 -0
- package/dist/src/utils/codex-config.js.map +1 -0
- package/dist/src/utils/codex-manager.d.ts +81 -0
- package/dist/src/utils/codex-manager.js +810 -0
- package/dist/src/utils/codex-manager.js.map +1 -0
- package/dist/src/utils/codex-marketplace-path.d.ts +5 -0
- package/dist/src/utils/codex-marketplace-path.js +45 -0
- package/dist/src/utils/codex-marketplace-path.js.map +1 -0
- package/dist/src/utils/codex-native-observation.d.ts +16 -0
- package/dist/src/utils/codex-native-observation.js +22 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -0
- package/dist/src/utils/codex-native-render-receipt.d.ts +40 -0
- package/dist/src/utils/codex-native-render-receipt.js +205 -0
- package/dist/src/utils/codex-native-render-receipt.js.map +1 -0
- package/dist/src/utils/codex-reconciler.d.ts +128 -0
- package/dist/src/utils/codex-reconciler.js +294 -0
- package/dist/src/utils/codex-reconciler.js.map +1 -0
- package/dist/src/utils/codex-roles.d.ts +71 -0
- package/dist/src/utils/codex-roles.js +257 -0
- package/dist/src/utils/codex-roles.js.map +1 -0
- package/dist/src/utils/codex-shared-native.d.ts +63 -0
- package/dist/src/utils/codex-shared-native.js +142 -0
- package/dist/src/utils/codex-shared-native.js.map +1 -0
- package/dist/src/utils/codex-skill-staging.d.ts +11 -0
- package/dist/src/utils/codex-skill-staging.js +8 -0
- package/dist/src/utils/codex-skill-staging.js.map +1 -0
- package/dist/src/utils/codex-surface-analysis.d.ts +45 -0
- package/dist/src/utils/codex-surface-analysis.js +245 -0
- package/dist/src/utils/codex-surface-analysis.js.map +1 -0
- package/dist/src/utils/config-value.d.ts +3 -0
- package/dist/src/utils/config-value.js +23 -0
- package/dist/src/utils/config-value.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +36 -0
- package/dist/src/utils/dynamic-skill-tree.js +466 -0
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -0
- package/dist/src/utils/file-rules.d.ts +1 -0
- package/dist/src/utils/file-rules.js +2 -0
- package/dist/src/utils/file-rules.js.map +1 -0
- package/dist/src/utils/git-catalog-provider.d.ts +22 -0
- package/dist/src/utils/git-catalog-provider.js +497 -0
- package/dist/src/utils/git-catalog-provider.js.map +1 -0
- package/dist/src/utils/hooks-contract.d.ts +1 -0
- package/dist/src/utils/hooks-contract.js +2 -0
- package/dist/src/utils/hooks-contract.js.map +1 -0
- package/dist/src/utils/json.d.ts +4 -0
- package/dist/src/utils/json.js +29 -0
- package/dist/src/utils/json.js.map +1 -0
- package/dist/src/utils/local-marketplace.d.ts +41 -0
- package/dist/src/utils/local-marketplace.js +316 -0
- package/dist/src/utils/local-marketplace.js.map +1 -0
- package/dist/src/utils/manifest.d.ts +11 -0
- package/dist/src/utils/manifest.js +33 -0
- package/dist/src/utils/manifest.js.map +1 -0
- package/dist/src/utils/marketplace.d.ts +3 -0
- package/dist/src/utils/marketplace.js +76 -0
- package/dist/src/utils/marketplace.js.map +1 -0
- package/dist/src/utils/multi-source-catalog.d.ts +66 -0
- package/dist/src/utils/multi-source-catalog.js +345 -0
- package/dist/src/utils/multi-source-catalog.js.map +1 -0
- package/dist/src/utils/native-cli.d.ts +118 -0
- package/dist/src/utils/native-cli.js +518 -0
- package/dist/src/utils/native-cli.js.map +1 -0
- package/dist/src/utils/orphan-marketplace-cleanup.d.ts +18 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js +198 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -0
- package/dist/src/utils/ownership.d.ts +194 -0
- package/dist/src/utils/ownership.js +723 -0
- package/dist/src/utils/ownership.js.map +1 -0
- package/dist/src/utils/path-catalog-provider.d.ts +7 -0
- package/dist/src/utils/path-catalog-provider.js +74 -0
- package/dist/src/utils/path-catalog-provider.js.map +1 -0
- package/dist/src/utils/paths.d.ts +40 -0
- package/dist/src/utils/paths.js +137 -0
- package/dist/src/utils/paths.js.map +1 -0
- package/dist/src/utils/platform-entries.d.ts +1 -0
- package/dist/src/utils/platform-entries.js +2 -0
- package/dist/src/utils/platform-entries.js.map +1 -0
- package/dist/src/utils/platform-support.d.ts +1 -0
- package/dist/src/utils/platform-support.js +2 -0
- package/dist/src/utils/platform-support.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +110 -0
- package/dist/src/utils/plugin-config-write.js +773 -0
- package/dist/src/utils/plugin-config-write.js.map +1 -0
- package/dist/src/utils/plugin-config.d.ts +389 -0
- package/dist/src/utils/plugin-config.js +1642 -0
- package/dist/src/utils/plugin-config.js.map +1 -0
- package/dist/src/utils/plugin-dependencies.d.ts +12 -0
- package/dist/src/utils/plugin-dependencies.js +162 -0
- package/dist/src/utils/plugin-dependencies.js.map +1 -0
- package/dist/src/utils/plugin-intent-state.d.ts +34 -0
- package/dist/src/utils/plugin-intent-state.js +289 -0
- package/dist/src/utils/plugin-intent-state.js.map +1 -0
- package/dist/src/utils/plugin-script-contract.d.ts +1 -0
- package/dist/src/utils/plugin-script-contract.js +2 -0
- package/dist/src/utils/plugin-script-contract.js.map +1 -0
- package/dist/src/utils/plugin-scripts.d.ts +101 -0
- package/dist/src/utils/plugin-scripts.js +253 -0
- package/dist/src/utils/plugin-scripts.js.map +1 -0
- package/dist/src/utils/process-lock.d.ts +47 -0
- package/dist/src/utils/process-lock.js +532 -0
- package/dist/src/utils/process-lock.js.map +1 -0
- package/dist/src/utils/process-tree.d.ts +2 -0
- package/dist/src/utils/process-tree.js +2 -0
- package/dist/src/utils/process-tree.js.map +1 -0
- package/dist/src/utils/project-boundary.d.ts +9 -0
- package/dist/src/utils/project-boundary.js +67 -0
- package/dist/src/utils/project-boundary.js.map +1 -0
- package/dist/src/utils/rendered-contract.d.ts +8 -0
- package/dist/src/utils/rendered-contract.js +134 -0
- package/dist/src/utils/rendered-contract.js.map +1 -0
- package/dist/src/utils/runtime-skill-closure.d.ts +13 -0
- package/dist/src/utils/runtime-skill-closure.js +863 -0
- package/dist/src/utils/runtime-skill-closure.js.map +1 -0
- package/dist/src/utils/safe-fs.d.ts +21 -0
- package/dist/src/utils/safe-fs.js +111 -0
- package/dist/src/utils/safe-fs.js.map +1 -0
- package/dist/src/utils/skill-authoring.d.ts +1 -0
- package/dist/src/utils/skill-authoring.js +2 -0
- package/dist/src/utils/skill-authoring.js.map +1 -0
- package/dist/src/utils/skill-validation.d.ts +37 -0
- package/dist/src/utils/skill-validation.js +326 -0
- package/dist/src/utils/skill-validation.js.map +1 -0
- package/dist/src/utils/slash-commands.d.ts +1 -0
- package/dist/src/utils/slash-commands.js +2 -0
- package/dist/src/utils/slash-commands.js.map +1 -0
- package/dist/src/utils/state-paths.d.ts +14 -0
- package/dist/src/utils/state-paths.js +139 -0
- package/dist/src/utils/state-paths.js.map +1 -0
- package/dist/src/utils/target-eligibility.d.ts +13 -0
- package/dist/src/utils/target-eligibility.js +35 -0
- package/dist/src/utils/target-eligibility.js.map +1 -0
- package/dist/src/utils/target-order.d.ts +7 -0
- package/dist/src/utils/target-order.js +10 -0
- package/dist/src/utils/target-order.js.map +1 -0
- package/dist/src/utils/template-engine.d.ts +1 -0
- package/dist/src/utils/template-engine.js +2 -0
- package/dist/src/utils/template-engine.js.map +1 -0
- package/dist/src/utils/test-path-fence.d.ts +12 -0
- package/dist/src/utils/test-path-fence.js +31 -0
- package/dist/src/utils/test-path-fence.js.map +1 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/vitest.config.js +16 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { CatalogProviderCompatibilityError, catalogSourceErrorCode, } from '../../utils/catalog-public-error.js';
|
|
2
|
+
export class CatalogSourcesSession {
|
|
3
|
+
options;
|
|
4
|
+
#sources = new Map();
|
|
5
|
+
#attempted = new Set();
|
|
6
|
+
#queue = [];
|
|
7
|
+
#running = new Map();
|
|
8
|
+
#tokens = new Map();
|
|
9
|
+
#reusableCandidates = new Map();
|
|
10
|
+
#disposed = false;
|
|
11
|
+
#drainScheduled = false;
|
|
12
|
+
constructor(options) {
|
|
13
|
+
this.options = options;
|
|
14
|
+
}
|
|
15
|
+
configure(sources) {
|
|
16
|
+
if (this.#disposed)
|
|
17
|
+
return;
|
|
18
|
+
const nextIds = new Set(sources.map((source) => source.sourceId));
|
|
19
|
+
for (const sourceId of this.#sources.keys()) {
|
|
20
|
+
if (nextIds.has(sourceId))
|
|
21
|
+
continue;
|
|
22
|
+
this.#cancel(sourceId);
|
|
23
|
+
this.#reusableCandidates.delete(sourceId);
|
|
24
|
+
this.#sources.delete(sourceId);
|
|
25
|
+
}
|
|
26
|
+
for (const source of sources) {
|
|
27
|
+
const previous = this.#sources.get(source.sourceId);
|
|
28
|
+
this.#sources.set(source.sourceId, source);
|
|
29
|
+
if (previous && previous.fingerprint !== source.fingerprint) {
|
|
30
|
+
this.#cancel(source.sourceId);
|
|
31
|
+
this.#reusableCandidates.delete(source.sourceId);
|
|
32
|
+
this.options.onChange(source.sourceId, { sourceId: source.sourceId, state: 'notChecked' });
|
|
33
|
+
}
|
|
34
|
+
if (source.fixedCommit) {
|
|
35
|
+
const automaticRunning = this.#running.get(source.sourceId)?.automatic === true;
|
|
36
|
+
this.#removeQueued(source.sourceId);
|
|
37
|
+
this.#cancelAutomatic(source.sourceId);
|
|
38
|
+
this.#attempted.add(source.sourceId);
|
|
39
|
+
if (!previous?.fixedCommit || automaticRunning) {
|
|
40
|
+
this.options.onChange(source.sourceId, { sourceId: source.sourceId, state: 'fixed' });
|
|
41
|
+
}
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (!source.autoCheck) {
|
|
45
|
+
const wasPending = this.#queue.includes(source.sourceId)
|
|
46
|
+
|| this.#running.get(source.sourceId)?.automatic === true;
|
|
47
|
+
this.#removeQueued(source.sourceId);
|
|
48
|
+
this.#cancelAutomatic(source.sourceId);
|
|
49
|
+
if (wasPending) {
|
|
50
|
+
this.options.onChange(source.sourceId, { sourceId: source.sourceId, state: 'notChecked' });
|
|
51
|
+
}
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (!this.#attempted.has(source.sourceId)
|
|
55
|
+
&& !this.#queue.includes(source.sourceId)
|
|
56
|
+
&& !this.#running.has(source.sourceId)) {
|
|
57
|
+
this.#queue.push(source.sourceId);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
this.#scheduleDrain();
|
|
61
|
+
}
|
|
62
|
+
setAutoCheck(sourceId, autoCheck) {
|
|
63
|
+
const source = this.#sources.get(sourceId);
|
|
64
|
+
if (!source || source.autoCheck === autoCheck || this.#disposed)
|
|
65
|
+
return;
|
|
66
|
+
this.#sources.set(sourceId, { ...source, autoCheck });
|
|
67
|
+
if (!autoCheck) {
|
|
68
|
+
const wasPending = this.#queue.includes(sourceId)
|
|
69
|
+
|| this.#running.get(sourceId)?.automatic === true;
|
|
70
|
+
this.#removeQueued(sourceId);
|
|
71
|
+
this.#cancelAutomatic(sourceId);
|
|
72
|
+
if (wasPending)
|
|
73
|
+
this.options.onChange(sourceId, { sourceId, state: 'notChecked' });
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (!source.fixedCommit && !this.#attempted.has(sourceId)
|
|
77
|
+
&& !this.#queue.includes(sourceId) && !this.#running.has(sourceId)) {
|
|
78
|
+
this.#queue.push(sourceId);
|
|
79
|
+
this.#scheduleDrain();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
recheck(sourceId) {
|
|
83
|
+
return this.refresh(sourceId, false);
|
|
84
|
+
}
|
|
85
|
+
fullValidate(sourceId) {
|
|
86
|
+
return this.refresh(sourceId, true);
|
|
87
|
+
}
|
|
88
|
+
reusableCandidate(sourceId) {
|
|
89
|
+
const entry = this.#reusableCandidates.get(sourceId);
|
|
90
|
+
const source = this.#sources.get(sourceId);
|
|
91
|
+
if (!entry || !source
|
|
92
|
+
|| entry.token !== this.#tokens.get(sourceId)
|
|
93
|
+
|| entry.fingerprint !== source.fingerprint)
|
|
94
|
+
return undefined;
|
|
95
|
+
return structuredClone(entry.candidate);
|
|
96
|
+
}
|
|
97
|
+
refresh(sourceId, fullValidation) {
|
|
98
|
+
if (this.#disposed || !this.#sources.has(sourceId))
|
|
99
|
+
return Promise.resolve();
|
|
100
|
+
this.#removeQueued(sourceId);
|
|
101
|
+
this.#cancel(sourceId);
|
|
102
|
+
return this.#start(sourceId, false, fullValidation);
|
|
103
|
+
}
|
|
104
|
+
dispose() {
|
|
105
|
+
if (this.#disposed)
|
|
106
|
+
return;
|
|
107
|
+
this.#disposed = true;
|
|
108
|
+
this.#queue.length = 0;
|
|
109
|
+
this.#reusableCandidates.clear();
|
|
110
|
+
for (const sourceId of this.#running.keys())
|
|
111
|
+
this.#cancel(sourceId);
|
|
112
|
+
}
|
|
113
|
+
#scheduleDrain() {
|
|
114
|
+
if (this.#drainScheduled || this.#disposed)
|
|
115
|
+
return;
|
|
116
|
+
this.#drainScheduled = true;
|
|
117
|
+
queueMicrotask(() => {
|
|
118
|
+
this.#drainScheduled = false;
|
|
119
|
+
this.#drain();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
#drain() {
|
|
123
|
+
if (this.#disposed)
|
|
124
|
+
return;
|
|
125
|
+
const primaryRunning = [...this.#running.values()].some((probe) => probe.automatic && probe.primary);
|
|
126
|
+
const queuedPrimaryIndex = this.#queue.findIndex((sourceId) => this.#sources.get(sourceId)?.primary);
|
|
127
|
+
if (!primaryRunning && queuedPrimaryIndex >= 0) {
|
|
128
|
+
const [sourceId] = this.#queue.splice(queuedPrimaryIndex, 1);
|
|
129
|
+
if (sourceId)
|
|
130
|
+
void this.#start(sourceId, true, false);
|
|
131
|
+
}
|
|
132
|
+
let secondaryRunning = [...this.#running.values()].filter((probe) => probe.automatic && !probe.primary).length;
|
|
133
|
+
while (secondaryRunning < 2) {
|
|
134
|
+
const index = this.#queue.findIndex((sourceId) => !this.#sources.get(sourceId)?.primary);
|
|
135
|
+
if (index < 0)
|
|
136
|
+
break;
|
|
137
|
+
const [sourceId] = this.#queue.splice(index, 1);
|
|
138
|
+
if (!sourceId)
|
|
139
|
+
break;
|
|
140
|
+
secondaryRunning += 1;
|
|
141
|
+
void this.#start(sourceId, true, false);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
async #start(sourceId, automatic, fullValidation) {
|
|
145
|
+
const source = this.#sources.get(sourceId);
|
|
146
|
+
if (!source || this.#disposed || automatic && (!source.autoCheck || this.#attempted.has(sourceId))) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (automatic)
|
|
150
|
+
this.#attempted.add(sourceId);
|
|
151
|
+
const abort = new AbortController();
|
|
152
|
+
const token = (this.#tokens.get(sourceId) ?? 0) + 1;
|
|
153
|
+
this.#tokens.set(sourceId, token);
|
|
154
|
+
this.#running.set(sourceId, { abort, token, automatic, primary: source.primary });
|
|
155
|
+
this.options.onChange(sourceId, { sourceId, state: 'checking' });
|
|
156
|
+
const signal = AbortSignal.any([this.options.parentSignal, abort.signal]);
|
|
157
|
+
try {
|
|
158
|
+
const result = await this.options.probe(sourceId, { fullValidation }, signal);
|
|
159
|
+
if (this.#isCurrent(source, token, signal)) {
|
|
160
|
+
const { reusableCandidate, ...freshness } = result;
|
|
161
|
+
if (reusableCandidate) {
|
|
162
|
+
this.#reusableCandidates.set(sourceId, {
|
|
163
|
+
candidate: { sourceId, ...structuredClone(reusableCandidate) },
|
|
164
|
+
token,
|
|
165
|
+
fingerprint: source.fingerprint,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
this.#reusableCandidates.delete(sourceId);
|
|
170
|
+
}
|
|
171
|
+
this.options.onChange(sourceId, structuredClone(freshness));
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
if (this.#isCurrent(source, token, signal)) {
|
|
176
|
+
const code = catalogSourceErrorCode(error);
|
|
177
|
+
this.#reusableCandidates.delete(sourceId);
|
|
178
|
+
this.options.onChange(sourceId, {
|
|
179
|
+
sourceId,
|
|
180
|
+
state: code === 'awCapabilityUnsupported' ? 'incompatible' : 'checkFailed',
|
|
181
|
+
errorCode: code,
|
|
182
|
+
...(error instanceof CatalogProviderCompatibilityError ? {
|
|
183
|
+
requiredCapabilities: [...error.requiredCapabilities],
|
|
184
|
+
missingCapabilities: [...error.missingCapabilities],
|
|
185
|
+
} : {}),
|
|
186
|
+
});
|
|
187
|
+
this.options.onError?.(error, code);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
finally {
|
|
191
|
+
const running = this.#running.get(sourceId);
|
|
192
|
+
if (running?.token === token)
|
|
193
|
+
this.#running.delete(sourceId);
|
|
194
|
+
this.#scheduleDrain();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
#isCurrent(source, token, signal) {
|
|
198
|
+
const current = this.#sources.get(source.sourceId);
|
|
199
|
+
return !this.#disposed
|
|
200
|
+
&& !signal.aborted
|
|
201
|
+
&& token === this.#tokens.get(source.sourceId)
|
|
202
|
+
&& current?.fingerprint === source.fingerprint;
|
|
203
|
+
}
|
|
204
|
+
#cancel(sourceId) {
|
|
205
|
+
this.#reusableCandidates.delete(sourceId);
|
|
206
|
+
const running = this.#running.get(sourceId);
|
|
207
|
+
if (!running)
|
|
208
|
+
return;
|
|
209
|
+
this.#tokens.set(sourceId, running.token + 1);
|
|
210
|
+
running.abort.abort();
|
|
211
|
+
this.#running.delete(sourceId);
|
|
212
|
+
}
|
|
213
|
+
#cancelAutomatic(sourceId) {
|
|
214
|
+
if (this.#running.get(sourceId)?.automatic)
|
|
215
|
+
this.#cancel(sourceId);
|
|
216
|
+
}
|
|
217
|
+
#removeQueued(sourceId) {
|
|
218
|
+
let index = this.#queue.indexOf(sourceId);
|
|
219
|
+
while (index >= 0) {
|
|
220
|
+
this.#queue.splice(index, 1);
|
|
221
|
+
index = this.#queue.indexOf(sourceId);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../../src/tui/catalog-sources/session.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,sBAAsB,GACvB,MAAM,qCAAqC,CAAC;AAgC7C,MAAM,OAAO,qBAAqB;IAUX;IATZ,QAAQ,GAAG,IAAI,GAAG,EAA0C,CAAC;IAC7D,UAAU,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,MAAM,GAAa,EAAE,CAAC;IACtB,QAAQ,GAAG,IAAI,GAAG,EAAwB,CAAC;IAC3C,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAC;IACpC,mBAAmB,GAAG,IAAI,GAAG,EAAkC,CAAC;IACzE,SAAS,GAAG,KAAK,CAAC;IAClB,eAAe,GAAG,KAAK,CAAC;IAExB,YAAqB,OAAqC;QAArC,YAAO,GAAP,OAAO,CAA8B;IAAG,CAAC;IAE9D,SAAS,CAA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CatalogGenerationReusableCandidate } from '../../utils/catalog-generation-service.js';
|
|
3
|
+
export interface CatalogGenerationViewModel {
|
|
4
|
+
catalogVersion: string;
|
|
5
|
+
channel: 'latest' | 'beta';
|
|
6
|
+
requestedRef: string;
|
|
7
|
+
resolvedCommit: string;
|
|
8
|
+
storeKey: string;
|
|
9
|
+
digestShort: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CatalogSourceGenerationViewModel {
|
|
12
|
+
sourceId: string;
|
|
13
|
+
sourceType: 'git' | 'path';
|
|
14
|
+
active?: CatalogGenerationViewModel;
|
|
15
|
+
errorCode?: string;
|
|
16
|
+
recoveryEntryPath?: string;
|
|
17
|
+
configMismatch?: boolean;
|
|
18
|
+
state?: 'ready' | 'activationRequired' | 'repairRequired' | 'configMismatch' | 'stateInvalid' | 'unavailable';
|
|
19
|
+
technicalCommand?: string;
|
|
20
|
+
}
|
|
21
|
+
export type CatalogSourceFreshnessState = 'notChecked' | 'checking' | 'checkFailed' | CatalogGenerationFreshnessState;
|
|
22
|
+
export interface CatalogSourceFreshnessViewModel {
|
|
23
|
+
sourceId: string;
|
|
24
|
+
state: CatalogSourceFreshnessState;
|
|
25
|
+
activeVersion?: string;
|
|
26
|
+
activeResolvedCommit?: string;
|
|
27
|
+
candidate?: CatalogGenerationCandidateEvidence;
|
|
28
|
+
errorCode?: string;
|
|
29
|
+
requiredCapabilities?: string[];
|
|
30
|
+
missingCapabilities?: string[];
|
|
31
|
+
}
|
|
32
|
+
export interface CatalogSessionReusableCandidate extends CatalogGenerationReusableCandidate {
|
|
33
|
+
sourceId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CatalogSourceSessionDescriptor {
|
|
36
|
+
sourceId: string;
|
|
37
|
+
primary: boolean;
|
|
38
|
+
autoCheck: boolean;
|
|
39
|
+
fingerprint: string;
|
|
40
|
+
fixedCommit: boolean;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tui/catalog-sources/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type DiagnosticSummaryViewModel } from './diagnostics.js';
|
|
3
|
+
import { type TuiStatus } from './theme.js';
|
|
4
|
+
export interface TuiSize {
|
|
5
|
+
columns: number;
|
|
6
|
+
rows: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function HelpBar(props: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
compact?: boolean;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
export declare function ScreenFrame(props: {
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
breadcrumb?: string;
|
|
16
|
+
context?: string;
|
|
17
|
+
help: ReactNode;
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
size?: TuiSize;
|
|
20
|
+
}): React.JSX.Element;
|
|
21
|
+
export declare function Card(props: {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
status?: TuiStatus;
|
|
24
|
+
}): React.JSX.Element;
|
|
25
|
+
export declare function Section(props: {
|
|
26
|
+
title: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}): React.JSX.Element;
|
|
30
|
+
export declare function StatusLabel(props: {
|
|
31
|
+
status: TuiStatus;
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
}): React.JSX.Element;
|
|
34
|
+
export interface SemanticCardProps {
|
|
35
|
+
children?: ReactNode;
|
|
36
|
+
title?: ReactNode;
|
|
37
|
+
description?: ReactNode;
|
|
38
|
+
meta?: ReactNode;
|
|
39
|
+
label?: ReactNode;
|
|
40
|
+
status?: TuiStatus;
|
|
41
|
+
compact?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export declare function SectionCard(props: SemanticCardProps): React.JSX.Element;
|
|
44
|
+
export declare function StatusCard(props: SemanticCardProps & {
|
|
45
|
+
status: TuiStatus;
|
|
46
|
+
}): React.JSX.Element;
|
|
47
|
+
export declare function ReviewCard(props: SemanticCardProps): React.JSX.Element;
|
|
48
|
+
export declare function ResultCard(props: SemanticCardProps): React.JSX.Element;
|
|
49
|
+
export declare function InputCard(props: SemanticCardProps & {
|
|
50
|
+
focused?: boolean;
|
|
51
|
+
}): React.JSX.Element;
|
|
52
|
+
export declare function Callout(props: SemanticCardProps): React.JSX.Element;
|
|
53
|
+
export declare function TechnicalDetails(props: SemanticCardProps): React.JSX.Element;
|
|
54
|
+
export declare function DiagnosticSummary(props: {
|
|
55
|
+
diagnostic: DiagnosticSummaryViewModel;
|
|
56
|
+
technical?: boolean;
|
|
57
|
+
compact?: boolean;
|
|
58
|
+
}): React.JSX.Element;
|
|
59
|
+
export interface InteractiveRowProps {
|
|
60
|
+
title: ReactNode;
|
|
61
|
+
description?: ReactNode;
|
|
62
|
+
meta?: ReactNode;
|
|
63
|
+
focused?: boolean;
|
|
64
|
+
disabled?: boolean | string;
|
|
65
|
+
status?: TuiStatus;
|
|
66
|
+
compact?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface SelectableRowProps extends InteractiveRowProps {
|
|
69
|
+
selected: boolean;
|
|
70
|
+
}
|
|
71
|
+
export declare function TaskRow(props: InteractiveRowProps): React.JSX.Element;
|
|
72
|
+
export declare function PluginRow(props: InteractiveRowProps): React.JSX.Element;
|
|
73
|
+
export interface PluginListRowProps {
|
|
74
|
+
name: ReactNode;
|
|
75
|
+
sourceLabel: ReactNode;
|
|
76
|
+
description: ReactNode;
|
|
77
|
+
placementSummary: ReactNode;
|
|
78
|
+
statusLabel: ReactNode;
|
|
79
|
+
status: TuiStatus;
|
|
80
|
+
focused?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export declare function PluginListRow(props: PluginListRowProps): React.JSX.Element;
|
|
83
|
+
export declare function SectionRow(props: InteractiveRowProps): React.JSX.Element;
|
|
84
|
+
export declare function ToggleRow(props: SelectableRowProps): React.JSX.Element;
|
|
85
|
+
export declare function ChoiceRow(props: SelectableRowProps): React.JSX.Element;
|
|
86
|
+
export declare function ActionRow(props: InteractiveRowProps): React.JSX.Element;
|
|
87
|
+
export interface StaticRowProps {
|
|
88
|
+
title: ReactNode;
|
|
89
|
+
description?: ReactNode;
|
|
90
|
+
meta?: ReactNode;
|
|
91
|
+
status?: TuiStatus;
|
|
92
|
+
compact?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export declare function StaticRow(props: StaticRowProps): React.JSX.Element;
|
|
95
|
+
export declare function ReviewChangeRow(props: StaticRowProps): React.JSX.Element;
|
|
96
|
+
export type ProgressState = 'pending' | 'active' | 'complete' | 'error';
|
|
97
|
+
export declare function ProgressRow(props: Omit<StaticRowProps, 'status'> & {
|
|
98
|
+
state: ProgressState;
|
|
99
|
+
}): React.JSX.Element;
|
|
100
|
+
export declare function ResultRow(props: StaticRowProps & {
|
|
101
|
+
status: TuiStatus;
|
|
102
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text, useWindowSize } from 'ink';
|
|
3
|
+
import { safeDiagnosticCode, sanitizeDiagnosticCause, sanitizeDiagnosticText, } from './diagnostics.js';
|
|
4
|
+
import { resolveTuiSizePolicy } from './layout.js';
|
|
5
|
+
import { getTuiStatusColor, tuiTheme } from './theme.js';
|
|
6
|
+
export function HelpBar(props) {
|
|
7
|
+
return (_jsx(Box, { backgroundColor: tuiTheme.colors.panelBackground, borderStyle: "single", borderColor: tuiTheme.colors.border, borderLeft: false, borderRight: false, borderBottom: false, paddingX: 1, maxHeight: props.compact ? 3 : 2, overflow: "hidden", children: _jsx(Text, { color: tuiTheme.colors.muted, wrap: props.compact ? 'wrap' : 'truncate-end', children: props.children }) }));
|
|
8
|
+
}
|
|
9
|
+
function SizeHint(props) {
|
|
10
|
+
return (_jsxs(Box, { flexDirection: "column", width: props.policy.columns, height: props.policy.rows, overflow: "hidden", paddingX: 1, backgroundColor: tuiTheme.colors.background, children: [_jsxs(Text, { color: tuiTheme.statusColors.warning, children: ["\u2194 ", props.policy.message] }), _jsxs(Text, { color: tuiTheme.colors.muted, children: ["\u5F53\u524D\uFF1A", props.policy.columns, " \u5217 \u00D7 ", props.policy.rows, " \u884C\u3002"] }), _jsx(Text, { color: tuiTheme.colors.muted, children: "q \u9000\u51FA" })] }));
|
|
11
|
+
}
|
|
12
|
+
export function ScreenFrame(props) {
|
|
13
|
+
const windowSize = useWindowSize();
|
|
14
|
+
const size = props.size ?? windowSize;
|
|
15
|
+
const policy = resolveTuiSizePolicy(size.columns, size.rows);
|
|
16
|
+
if (policy.mode === 'too-small') {
|
|
17
|
+
return _jsx(SizeHint, { policy: policy });
|
|
18
|
+
}
|
|
19
|
+
return (_jsxs(Box, { flexDirection: "column", width: policy.columns, height: policy.rows, overflow: "hidden", backgroundColor: tuiTheme.colors.background, children: [_jsxs(Box, { justifyContent: "space-between", backgroundColor: tuiTheme.colors.panelBackground, borderStyle: "single", borderColor: tuiTheme.colors.border, borderTop: false, borderLeft: false, borderRight: false, paddingX: 1, children: [_jsxs(Text, { bold: true, color: tuiTheme.colors.accent, wrap: "truncate-end", children: ["AW", props.breadcrumb ? ` / ${props.breadcrumb}` : ''] }), props.context
|
|
20
|
+
? _jsx(Text, { color: tuiTheme.colors.muted, wrap: "truncate-end", children: props.context })
|
|
21
|
+
: null] }), _jsxs(Box, { flexDirection: "column", flexGrow: 1, overflow: "hidden", paddingX: 1, children: [_jsx(Text, { bold: true, color: tuiTheme.colors.text, children: props.title }), props.description
|
|
22
|
+
? _jsx(Text, { color: tuiTheme.colors.muted, children: props.description })
|
|
23
|
+
: null, _jsx(Box, { flexDirection: "column", flexGrow: 1, overflow: "hidden", children: props.children })] }), _jsx(HelpBar, { compact: policy.mode === 'compact', children: props.help })] }));
|
|
24
|
+
}
|
|
25
|
+
export function Card(props) {
|
|
26
|
+
return (_jsx(Box, { flexDirection: "column", borderStyle: "round", borderColor: props.status ? getTuiStatusColor(props.status) : tuiTheme.colors.border, backgroundColor: tuiTheme.colors.panelBackground, paddingX: 1, children: props.children }));
|
|
27
|
+
}
|
|
28
|
+
export function Section(props) {
|
|
29
|
+
return (_jsxs(Card, { children: [_jsx(Text, { bold: true, children: props.title }), props.description
|
|
30
|
+
? _jsx(Text, { color: tuiTheme.colors.muted, children: props.description })
|
|
31
|
+
: null, _jsx(Box, { flexDirection: "column", children: props.children })] }));
|
|
32
|
+
}
|
|
33
|
+
const statusSymbols = {
|
|
34
|
+
success: '✓',
|
|
35
|
+
warning: '!',
|
|
36
|
+
error: '×',
|
|
37
|
+
info: '●',
|
|
38
|
+
muted: '○',
|
|
39
|
+
};
|
|
40
|
+
export function StatusLabel(props) {
|
|
41
|
+
return (_jsxs(Text, { color: getTuiStatusColor(props.status), children: [statusSymbols[props.status], " ", props.children] }));
|
|
42
|
+
}
|
|
43
|
+
function SemanticCard(props) {
|
|
44
|
+
const borderColor = props.status
|
|
45
|
+
? getTuiStatusColor(props.status)
|
|
46
|
+
: props.borderColor ?? tuiTheme.colors.border;
|
|
47
|
+
return (_jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: borderColor, backgroundColor: props.backgroundColor ?? tuiTheme.colors.panelBackground, paddingX: props.compact ? 0 : 1, children: [props.label
|
|
48
|
+
? _jsxs(Text, { bold: true, color: borderColor, children: ["\u2500 ", props.label] })
|
|
49
|
+
: null, props.title || props.meta
|
|
50
|
+
? (_jsxs(Box, { justifyContent: "space-between", children: [_jsx(Box, { flexGrow: 1, flexShrink: 1, overflow: "hidden", children: _jsx(Text, { bold: true, color: tuiTheme.colors.text, wrap: "truncate-end", children: props.title }) }), props.meta
|
|
51
|
+
? (_jsx(Box, { flexShrink: 1, overflow: "hidden", marginLeft: 1, children: _jsx(Text, { color: tuiTheme.colors.muted, wrap: "truncate-end", children: props.meta }) }))
|
|
52
|
+
: null] }))
|
|
53
|
+
: null, props.description
|
|
54
|
+
? _jsx(Text, { color: tuiTheme.colors.muted, wrap: "truncate-end", children: props.description })
|
|
55
|
+
: null, props.children] }));
|
|
56
|
+
}
|
|
57
|
+
export function SectionCard(props) {
|
|
58
|
+
return _jsx(SemanticCard, { ...props });
|
|
59
|
+
}
|
|
60
|
+
export function StatusCard(props) {
|
|
61
|
+
return _jsx(SemanticCard, { ...props, borderColor: tuiTheme.colors.borderStrong });
|
|
62
|
+
}
|
|
63
|
+
export function ReviewCard(props) {
|
|
64
|
+
return _jsx(SemanticCard, { ...props, borderColor: tuiTheme.colors.borderStrong });
|
|
65
|
+
}
|
|
66
|
+
export function ResultCard(props) {
|
|
67
|
+
return _jsx(SemanticCard, { ...props, borderColor: tuiTheme.colors.borderStrong });
|
|
68
|
+
}
|
|
69
|
+
export function InputCard(props) {
|
|
70
|
+
return (_jsx(SemanticCard, { ...props, backgroundColor: tuiTheme.colors.inputBackground, borderColor: props.focused ? tuiTheme.colors.accent : tuiTheme.colors.border }));
|
|
71
|
+
}
|
|
72
|
+
export function Callout(props) {
|
|
73
|
+
return _jsx(SemanticCard, { ...props, status: props.status ?? 'info', compact: props.compact ?? true });
|
|
74
|
+
}
|
|
75
|
+
export function TechnicalDetails(props) {
|
|
76
|
+
return (_jsx(SemanticCard, { ...props, label: props.label ?? '技术详情', borderColor: tuiTheme.colors.border, compact: props.compact ?? true }));
|
|
77
|
+
}
|
|
78
|
+
const diagnosticContextLabels = {
|
|
79
|
+
platform: '平台',
|
|
80
|
+
scope: '范围',
|
|
81
|
+
pluginId: '插件',
|
|
82
|
+
dependencyPluginId: '依赖插件',
|
|
83
|
+
field: '字段',
|
|
84
|
+
storeEntry: 'Store 条目',
|
|
85
|
+
compatibility: '兼容版本',
|
|
86
|
+
};
|
|
87
|
+
export function DiagnosticSummary(props) {
|
|
88
|
+
const compact = props.compact === true;
|
|
89
|
+
if (!props.technical) {
|
|
90
|
+
if (compact) {
|
|
91
|
+
return _jsxs(SectionCard, { title: sanitizeDiagnosticText(props.diagnostic.title), description: sanitizeDiagnosticText(props.diagnostic.userMessage), status: props.diagnostic.severity, compact: true, children: [props.diagnostic.impact.map((entry, index) => _jsx(ResultRow, { title: sanitizeDiagnosticText(entry.message), status: entry.state === 'blocked' ? 'error' : entry.state === 'preserved' ? 'success' : 'muted', compact: true }, `${entry.state}:${index}`)), _jsx(StaticRow, { title: `下一步:${sanitizeDiagnosticText(props.diagnostic.nextStep)}`, status: "info", compact: true })] });
|
|
92
|
+
}
|
|
93
|
+
return _jsxs(Box, { flexDirection: "column", children: [_jsx(StatusCard, { status: props.diagnostic.severity, title: sanitizeDiagnosticText(props.diagnostic.title), description: sanitizeDiagnosticText(props.diagnostic.userMessage), compact: compact }), _jsx(SectionCard, { title: "\u5F71\u54CD", compact: compact, children: props.diagnostic.impact.map((entry, index) => _jsx(ResultRow, { title: sanitizeDiagnosticText(entry.message), status: entry.state === 'blocked' ? 'error' : entry.state === 'preserved' ? 'success' : 'muted', compact: true }, `${entry.state}:${index}`)) }), _jsx(Callout, { status: "info", title: "\u4E0B\u4E00\u6B65", description: sanitizeDiagnosticText(props.diagnostic.nextStep), compact: true })] });
|
|
94
|
+
}
|
|
95
|
+
const technical = props.diagnostic.technical;
|
|
96
|
+
if (!technical) {
|
|
97
|
+
return _jsx(Callout, { status: "muted", title: "\u6CA1\u6709\u53EF\u516C\u5F00\u7684\u6280\u672F\u5B57\u6BB5", compact: true });
|
|
98
|
+
}
|
|
99
|
+
const cause = sanitizeDiagnosticCause(technical.sanitizedCause);
|
|
100
|
+
const fields = [
|
|
101
|
+
{ label: 'code', value: safeDiagnosticCode(technical.code, 'diagnosticUnavailable') },
|
|
102
|
+
...(technical.stage ? [{ label: 'stage', value: sanitizeDiagnosticText(technical.stage) }] : []),
|
|
103
|
+
...(technical.sourceId ? [{ label: 'sourceId', value: sanitizeDiagnosticText(technical.sourceId) }] : []),
|
|
104
|
+
...(technical.requestedRef ? [{ label: 'requested ref', value: sanitizeDiagnosticText(technical.requestedRef) }] : []),
|
|
105
|
+
...(technical.resolvedCommit ? [{ label: 'resolved commit', value: sanitizeDiagnosticText(technical.resolvedCommit) }] : []),
|
|
106
|
+
...(technical.context ?? []).map((entry) => ({
|
|
107
|
+
label: diagnosticContextLabels[entry.key],
|
|
108
|
+
value: sanitizeDiagnosticText(entry.value),
|
|
109
|
+
})),
|
|
110
|
+
...(cause ? [{ label: 'cause', value: cause }] : []),
|
|
111
|
+
];
|
|
112
|
+
const extendedChecks = (technical.checks?.length ?? 0) > 3;
|
|
113
|
+
const visibleFields = fields.slice(0, extendedChecks ? 1 : compact ? 4 : 8);
|
|
114
|
+
const checks = (technical.checks ?? []).slice(0, extendedChecks ? 5 : compact ? 1 : 3);
|
|
115
|
+
if (compact) {
|
|
116
|
+
return _jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: tuiTheme.colors.muted, children: "\u4E0B\u9762\u7684\u4FE1\u606F\u5DF2\u8131\u654F\uFF0C\u53EF\u7528\u4E8E\u6392\u67E5\u6216\u63D0\u4EA4 issue\u3002" }), _jsxs(TechnicalDetails, { label: "\u8131\u654F\u8BCA\u65AD", compact: true, children: [visibleFields.map((field) => _jsx(StaticRow, { title: `${field.label}: ${field.value}`, compact: true }, field.label)), checks.map((check, index) => _jsx(StaticRow, { title: extendedChecks
|
|
117
|
+
? `${index + 1}. ${sanitizeDiagnosticText(check)}`
|
|
118
|
+
: `建议:${sanitizeDiagnosticText(check)}`, status: "muted", compact: true }, `${index}:${check}`))] })] });
|
|
119
|
+
}
|
|
120
|
+
return _jsxs(Box, { flexDirection: "column", children: [_jsx(Text, { color: tuiTheme.colors.muted, children: "\u4E0B\u9762\u7684\u4FE1\u606F\u5DF2\u8131\u654F\uFF0C\u53EF\u7528\u4E8E\u6392\u67E5\u6216\u63D0\u4EA4 issue\u3002" }), _jsxs(TechnicalDetails, { label: "\u8131\u654F\u8BCA\u65AD", compact: true, children: [visibleFields.map((field) => _jsx(StaticRow, { title: field.label, meta: field.value, compact: true }, field.label)), fields.length > visibleFields.length
|
|
121
|
+
? _jsx(StaticRow, { title: `另有 ${fields.length - visibleFields.length} 个安全字段`, status: "muted", compact: true })
|
|
122
|
+
: null] }), checks.length > 0 ? _jsx(SectionCard, { title: "\u5EFA\u8BAE\u68C0\u67E5", compact: true, children: checks.map((check, index) => _jsx(StaticRow, { title: `${index + 1}. ${sanitizeDiagnosticText(check)}`, compact: true }, `${index}:${check}`)) }) : null] });
|
|
123
|
+
}
|
|
124
|
+
function FocusRow(props) {
|
|
125
|
+
const description = typeof props.disabled === 'string' ? props.disabled : props.description;
|
|
126
|
+
const color = props.disabled
|
|
127
|
+
? tuiTheme.colors.muted
|
|
128
|
+
: props.status ? getTuiStatusColor(props.status) : tuiTheme.colors.text;
|
|
129
|
+
return (_jsxs(Box, { flexDirection: "column", backgroundColor: props.focused ? tuiTheme.colors.selectionBackground : undefined, paddingX: 1, children: [_jsxs(Box, { justifyContent: "space-between", children: [_jsx(Box, { flexGrow: 1, flexShrink: 1, overflow: "hidden", children: _jsxs(Text, { color: color, bold: props.focused && !props.disabled, wrap: "truncate-end", children: [props.focused ? '›' : ' ', " ", props.marker ? `${props.marker} ` : '', props.title] }) }), props.meta
|
|
130
|
+
? (_jsx(Box, { flexShrink: 1, overflow: "hidden", marginLeft: 1, children: _jsx(Text, { color: props.disabled ? tuiTheme.colors.muted : color, wrap: "truncate-end", children: props.meta }) }))
|
|
131
|
+
: null] }), description && !props.compact
|
|
132
|
+
? _jsxs(Text, { color: tuiTheme.colors.muted, wrap: "truncate-end", children: [" ", description] })
|
|
133
|
+
: null] }));
|
|
134
|
+
}
|
|
135
|
+
export function TaskRow(props) {
|
|
136
|
+
return _jsx(FocusRow, { ...props });
|
|
137
|
+
}
|
|
138
|
+
export function PluginRow(props) {
|
|
139
|
+
return _jsx(FocusRow, { ...props });
|
|
140
|
+
}
|
|
141
|
+
export function PluginListRow(props) {
|
|
142
|
+
const color = getTuiStatusColor(props.status);
|
|
143
|
+
return (_jsxs(Box, { flexDirection: "column", backgroundColor: props.focused ? tuiTheme.colors.selectionBackground : undefined, paddingX: 1, children: [_jsxs(Box, { children: [_jsx(Box, { flexGrow: 1, flexShrink: 1, minWidth: 0, overflow: "hidden", children: _jsxs(Text, { bold: props.focused, wrap: "truncate-end", children: [props.focused ? '›' : ' ', " ", props.name] }) }), _jsx(Box, { flexShrink: 0, marginLeft: 1, children: _jsx(Text, { color: tuiTheme.colors.muted, wrap: "truncate-end", children: props.sourceLabel }) }), _jsx(Box, { flexShrink: 0, marginLeft: 1, children: _jsx(Text, { color: color, wrap: "truncate-end", children: props.statusLabel }) })] }), _jsxs(Text, { color: tuiTheme.colors.muted, wrap: "truncate-end", children: [" ", props.description] }), _jsxs(Text, { color: tuiTheme.colors.muted, wrap: "truncate-end", children: [" ", props.placementSummary] })] }));
|
|
144
|
+
}
|
|
145
|
+
export function SectionRow(props) {
|
|
146
|
+
return _jsx(FocusRow, { ...props });
|
|
147
|
+
}
|
|
148
|
+
export function ToggleRow(props) {
|
|
149
|
+
return _jsx(FocusRow, { ...props, marker: props.selected ? '◆' : '◇' });
|
|
150
|
+
}
|
|
151
|
+
export function ChoiceRow(props) {
|
|
152
|
+
return _jsx(FocusRow, { ...props, marker: props.selected ? '●' : '○' });
|
|
153
|
+
}
|
|
154
|
+
export function ActionRow(props) {
|
|
155
|
+
return _jsx(FocusRow, { ...props });
|
|
156
|
+
}
|
|
157
|
+
function StaticRowView(props) {
|
|
158
|
+
const color = props.status ? getTuiStatusColor(props.status) : tuiTheme.colors.text;
|
|
159
|
+
return (_jsxs(Box, { flexDirection: "column", paddingX: 1, children: [_jsxs(Box, { justifyContent: "space-between", children: [_jsx(Box, { flexGrow: 1, flexShrink: 1, overflow: "hidden", children: _jsxs(Text, { color: color, wrap: "truncate-end", children: [props.marker ? `${props.marker} ` : '', props.title] }) }), props.meta
|
|
160
|
+
? (_jsx(Box, { flexShrink: 1, overflow: "hidden", marginLeft: 1, children: _jsx(Text, { color: color, wrap: "truncate-end", children: props.meta }) }))
|
|
161
|
+
: null] }), props.description && !props.compact
|
|
162
|
+
? _jsxs(Text, { color: tuiTheme.colors.muted, wrap: "truncate-end", children: [" ", props.description] })
|
|
163
|
+
: null] }));
|
|
164
|
+
}
|
|
165
|
+
export function StaticRow(props) {
|
|
166
|
+
return _jsx(StaticRowView, { ...props });
|
|
167
|
+
}
|
|
168
|
+
export function ReviewChangeRow(props) {
|
|
169
|
+
return _jsx(StaticRowView, { ...props });
|
|
170
|
+
}
|
|
171
|
+
const progressStateView = {
|
|
172
|
+
pending: { marker: '○', status: 'muted' },
|
|
173
|
+
active: { marker: '●', status: 'info' },
|
|
174
|
+
complete: { marker: '✓', status: 'success' },
|
|
175
|
+
error: { marker: '×', status: 'error' },
|
|
176
|
+
};
|
|
177
|
+
export function ProgressRow(props) {
|
|
178
|
+
const view = progressStateView[props.state];
|
|
179
|
+
return _jsx(StaticRowView, { ...props, marker: view.marker, status: view.status });
|
|
180
|
+
}
|
|
181
|
+
export function ResultRow(props) {
|
|
182
|
+
return _jsx(StaticRowView, { ...props, marker: statusSymbols[props.status] });
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/tui/components.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAG/C,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GAEvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAsB,MAAM,aAAa,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAkB,MAAM,YAAY,CAAC;AAOzE,MAAM,UAAU,OAAO,CAAC,KAGvB;IACC,OAAO,CACL,KAAC,GAAG,IACF,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,eAAe,EAChD,WAAW,EAAC,QAAQ,EACpB,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC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
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TuiController, TuiControllerSnapshot } from './controller.js';
|
|
2
|
+
export declare const CONSOLE_V4_SCREEN_IDS: readonly ["G01", "G02", "G03", "G04", "G05", "P01", "P02", "P03", "P04", "P05", "P06", "P07", "P08", "P09", "P10", "P11", "P12", "P13", "P14", "P15", "P16", "P17", "P18", "P19", "P20", "P21", "C01", "C02", "C03", "C04", "C05", "C06", "C07", "C08", "C09", "C10", "C11", "C12", "C13", "C14", "C15", "C16", "C17", "S01", "S02", "S03", "S04", "S05", "S06", "S07", "S08", "S09", "S10", "S11", "S12", "S13", "S14", "S15", "S16", "S17", "S18", "I01", "I02", "I03", "I04", "I05", "I06", "I07", "I08", "I09", "I10", "I11", "I12", "I13", "D01", "D02", "D03", "D04", "D05", "D06", "D07", "D08", "D09", "D10", "D11", "D12", "D13", "D14", "D15", "D16", "D17", "U01", "U02", "U03", "U04", "U05", "U06", "U07", "U08", "U09", "U10", "U11", "K01", "K02", "K03", "K04", "K05", "K06", "K07"];
|
|
3
|
+
export type ConsoleV4ScreenId = typeof CONSOLE_V4_SCREEN_IDS[number];
|
|
4
|
+
type Overlay = 'help' | 'exit' | 'discard' | undefined;
|
|
5
|
+
export declare function resolveConsoleV4ScreenId(snapshot: TuiControllerSnapshot, controller: TuiController, overlay?: Overlay, tooSmall?: boolean, searchMode?: boolean): ConsoleV4ScreenId;
|
|
6
|
+
export interface ConsoleExitRequest {
|
|
7
|
+
code: number;
|
|
8
|
+
reason: 'user' | 'initialError' | 'completed' | 'partial' | 'blocked' | 'stale';
|
|
9
|
+
}
|
|
10
|
+
export declare function ConsoleAppV4(props: {
|
|
11
|
+
controller: TuiController;
|
|
12
|
+
size?: {
|
|
13
|
+
columns: number;
|
|
14
|
+
rows: number;
|
|
15
|
+
};
|
|
16
|
+
onExit?: (request: ConsoleExitRequest) => void;
|
|
17
|
+
onScreenChange?: (screen: ConsoleV4ScreenId) => void;
|
|
18
|
+
ownsController?: boolean;
|
|
19
|
+
}): React.JSX.Element;
|
|
20
|
+
export {};
|