@lesliechan721/aw 0.1.0-beta.73 → 0.1.0-beta.75
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-runtime-config.mjs +65 -43
- package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -1
- package/dist/authoring/scripts/add-skill.mjs +5 -14
- package/dist/authoring/scripts/add-skill.mjs.map +1 -1
- package/dist/authoring/scripts/init-plugin.mjs +4 -28
- package/dist/authoring/scripts/init-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +2 -2
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +0 -1
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
- package/dist/authoring/scripts/validate-plugin.mjs +234 -1422
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/scripts/aw-skill-eval-materializer.d.ts +2 -0
- package/dist/scripts/aw-skill-eval-materializer.js +19 -80
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -1
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/test-plugin-scripts.js +6 -8
- package/dist/scripts/test-plugin-scripts.js.map +1 -1
- package/dist/src/commands/aw-capabilities.d.ts +1 -1
- package/dist/src/commands/aw-capabilities.js +2 -2
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/dependency-operation-plan.js +3 -3
- package/dist/src/commands/dependency-operation-plan.js.map +1 -1
- package/dist/src/commands/deployment-confirmation.d.ts +4 -0
- package/dist/src/commands/deployment-confirmation.js +20 -0
- package/dist/src/commands/deployment-confirmation.js.map +1 -0
- package/dist/src/commands/managed-commands.js +4 -2
- package/dist/src/commands/managed-commands.js.map +1 -1
- package/dist/src/commands/offline-cleanup-evidence.d.ts +3 -1
- package/dist/src/commands/offline-cleanup-evidence.js +9 -4
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
- package/dist/src/commands/operation-plan.d.ts +6 -0
- package/dist/src/commands/operation-plan.js +29 -2
- package/dist/src/commands/operation-plan.js.map +1 -1
- package/dist/src/commands/options.d.ts +6 -2
- package/dist/src/commands/options.js +5 -4
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/plugin-capabilities.js +29 -41
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-config-confirmation.js +5 -5
- package/dist/src/commands/public-config-confirmation.js.map +1 -1
- package/dist/src/commands/public-lifecycle-result.d.ts +47 -0
- package/dist/src/commands/public-lifecycle-result.js +125 -4
- package/dist/src/commands/public-lifecycle-result.js.map +1 -1
- package/dist/src/commands/public-lifecycle.d.ts +1 -0
- package/dist/src/commands/public-lifecycle.js +15 -2
- package/dist/src/commands/public-lifecycle.js.map +1 -1
- package/dist/src/commands/public-plugin-query.d.ts +1 -0
- package/dist/src/commands/public-plugin-query.js +27 -8
- package/dist/src/commands/public-plugin-query.js.map +1 -1
- package/dist/src/commands/rebuild-command.d.ts +12 -11
- package/dist/src/commands/rebuild-command.js +531 -769
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +21 -43
- package/dist/src/commands/rebuild-integration.js +306 -3600
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +13 -0
- package/dist/src/commands/rebuild-operations.js +60 -15
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +60 -0
- package/dist/src/commands/rebuild-platform-integration.js +1264 -0
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -0
- package/dist/src/commands/review-inspection.js +41 -4
- package/dist/src/commands/review-inspection.js.map +1 -1
- package/dist/src/commands/review-preparation.d.ts +2 -0
- package/dist/src/commands/review-preparation.js +23 -60
- package/dist/src/commands/review-preparation.js.map +1 -1
- package/dist/src/commands/skill-eval.js +1 -0
- package/dist/src/commands/skill-eval.js.map +1 -1
- package/dist/src/commands/status-v6.d.ts +3 -1
- package/dist/src/commands/status-v6.js +24 -15
- package/dist/src/commands/status-v6.js.map +1 -1
- package/dist/src/commands/targets-command.d.ts +9 -0
- package/dist/src/commands/targets-command.js +57 -6
- package/dist/src/commands/targets-command.js.map +1 -1
- package/dist/src/commands/write-commands.js +43 -28
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +2 -2
- package/dist/src/constants.js +2 -2
- package/dist/src/constants.js.map +1 -1
- package/dist/src/generators/local-plugin.js +59 -248
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/index.js +40 -14
- package/dist/src/index.js.map +1 -1
- package/dist/src/output/command-receipt.d.ts +1 -1
- package/dist/src/output/command-receipt.js +3 -1
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/native-consent.d.ts +2 -0
- package/dist/src/output/native-consent.js +5 -0
- package/dist/src/output/native-consent.js.map +1 -0
- package/dist/src/output/public-result.js +72 -0
- package/dist/src/output/public-result.js.map +1 -1
- package/dist/src/output/rebuild-progress.js +5 -5
- package/dist/src/output/rebuild-progress.js.map +1 -1
- package/dist/src/output/receipt-projection.js +19 -2
- package/dist/src/output/receipt-projection.js.map +1 -1
- package/dist/src/platforms/capabilities.d.ts +10 -0
- package/dist/src/platforms/capabilities.js +158 -0
- package/dist/src/platforms/capabilities.js.map +1 -0
- package/dist/src/platforms/contracts.d.ts +351 -0
- package/dist/src/platforms/contracts.js +2 -0
- package/dist/src/platforms/contracts.js.map +1 -0
- package/dist/src/platforms/cursor-workspace-hook.d.ts +22 -0
- package/dist/src/platforms/cursor-workspace-hook.js +185 -0
- package/dist/src/platforms/cursor-workspace-hook.js.map +1 -0
- package/dist/src/platforms/discovery.d.ts +80 -0
- package/dist/src/platforms/discovery.js +604 -0
- package/dist/src/platforms/discovery.js.map +1 -0
- package/dist/src/platforms/gemini-activation.d.ts +36 -0
- package/dist/src/platforms/gemini-activation.js +331 -0
- package/dist/src/platforms/gemini-activation.js.map +1 -0
- package/dist/src/platforms/gemini-consent.d.ts +8 -0
- package/dist/src/platforms/gemini-consent.js +79 -0
- package/dist/src/platforms/gemini-consent.js.map +1 -0
- package/dist/src/platforms/identity.d.ts +4 -0
- package/dist/src/platforms/identity.js +22 -0
- package/dist/src/platforms/identity.js.map +1 -0
- package/dist/src/platforms/inspection-grok.d.ts +4 -0
- package/dist/src/platforms/inspection-grok.js +204 -0
- package/dist/src/platforms/inspection-grok.js.map +1 -0
- package/dist/src/platforms/inspection-native.d.ts +6 -0
- package/dist/src/platforms/inspection-native.js +401 -0
- package/dist/src/platforms/inspection-native.js.map +1 -0
- package/dist/src/platforms/inspection-opencode.d.ts +4 -0
- package/dist/src/platforms/inspection-opencode.js +97 -0
- package/dist/src/platforms/inspection-opencode.js.map +1 -0
- package/dist/src/platforms/inspection-pi.d.ts +3 -0
- package/dist/src/platforms/inspection-pi.js +287 -0
- package/dist/src/platforms/inspection-pi.js.map +1 -0
- package/dist/src/platforms/inspection-query.d.ts +5 -0
- package/dist/src/platforms/inspection-query.js +36 -0
- package/dist/src/platforms/inspection-query.js.map +1 -0
- package/dist/src/platforms/inspection.d.ts +13 -0
- package/dist/src/platforms/inspection.js +180 -0
- package/dist/src/platforms/inspection.js.map +1 -0
- package/dist/src/platforms/layout.d.ts +21 -0
- package/dist/src/platforms/layout.js +239 -0
- package/dist/src/platforms/layout.js.map +1 -0
- package/dist/src/platforms/lifecycle-native-services.d.ts +3 -0
- package/dist/src/platforms/lifecycle-native-services.js +147 -0
- package/dist/src/platforms/lifecycle-native-services.js.map +1 -0
- package/dist/src/platforms/lifecycle-native.d.ts +13 -0
- package/dist/src/platforms/lifecycle-native.js +276 -0
- package/dist/src/platforms/lifecycle-native.js.map +1 -0
- package/dist/src/platforms/lifecycle.d.ts +25 -0
- package/dist/src/platforms/lifecycle.js +470 -0
- package/dist/src/platforms/lifecycle.js.map +1 -0
- package/dist/src/platforms/managed-command-placement.d.ts +8 -0
- package/dist/src/platforms/managed-command-placement.js +79 -0
- package/dist/src/platforms/managed-command-placement.js.map +1 -0
- package/dist/src/platforms/projection-code-extension.d.ts +8 -0
- package/dist/src/platforms/projection-code-extension.js +121 -0
- package/dist/src/platforms/projection-code-extension.js.map +1 -0
- package/dist/src/platforms/projection-command-resources.d.ts +7 -0
- package/dist/src/platforms/projection-command-resources.js +74 -0
- package/dist/src/platforms/projection-command-resources.js.map +1 -0
- package/dist/src/platforms/projection-files.d.ts +27 -0
- package/dist/src/platforms/projection-files.js +111 -0
- package/dist/src/platforms/projection-files.js.map +1 -0
- package/dist/src/platforms/projection-marketplace.d.ts +19 -0
- package/dist/src/platforms/projection-marketplace.js +42 -0
- package/dist/src/platforms/projection-marketplace.js.map +1 -0
- package/dist/src/platforms/projection.d.ts +10 -0
- package/dist/src/platforms/projection.js +446 -0
- package/dist/src/platforms/projection.js.map +1 -0
- package/dist/src/platforms/registry.d.ts +4 -0
- package/dist/src/platforms/registry.js +30 -0
- package/dist/src/platforms/registry.js.map +1 -0
- package/dist/src/platforms/supplement-layout.d.ts +16 -0
- package/dist/src/platforms/supplement-layout.js +31 -0
- package/dist/src/platforms/supplement-layout.js.map +1 -0
- package/dist/src/portable/commands.d.ts +7 -5
- package/dist/src/portable/commands.js +6 -1
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/materializer.d.ts +8 -6
- package/dist/src/portable/materializer.js +47 -245
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery-layout.js +2 -15
- package/dist/src/portable/recovery-layout.js.map +1 -1
- package/dist/src/portable/recovery.d.ts +10 -1
- package/dist/src/portable/recovery.js +34 -8
- package/dist/src/portable/recovery.js.map +1 -1
- package/dist/src/recovery/coordinator.d.ts +4 -7
- package/dist/src/recovery/coordinator.js +151 -119
- package/dist/src/recovery/coordinator.js.map +1 -1
- package/dist/src/recovery/demand.d.ts +1 -1
- package/dist/src/recovery/demand.js +10 -42
- package/dist/src/recovery/demand.js.map +1 -1
- package/dist/src/recovery/joint-coordinator.js +112 -52
- package/dist/src/recovery/joint-coordinator.js.map +1 -1
- package/dist/src/recovery/joint-demand.d.ts +4 -22
- package/dist/src/recovery/joint-demand.js +51 -40
- package/dist/src/recovery/joint-demand.js.map +1 -1
- package/dist/src/recovery/receipt.d.ts +23 -8
- package/dist/src/recovery/retirement.d.ts +1 -1
- package/dist/src/recovery/retirement.js +131 -29
- package/dist/src/recovery/retirement.js.map +1 -1
- package/dist/src/recovery/status.d.ts +13 -6
- package/dist/src/recovery/status.js +483 -79
- package/dist/src/recovery/status.js.map +1 -1
- package/dist/src/recovery/types.d.ts +3 -3
- package/dist/src/review/platform-profile.d.ts +3 -0
- package/dist/src/review/platform-profile.js +16 -0
- package/dist/src/review/platform-profile.js.map +1 -0
- package/dist/src/review/review-profile.d.ts +1 -0
- package/dist/src/review/review-profile.js +8 -2
- package/dist/src/review/review-profile.js.map +1 -1
- package/dist/src/review/review-selection.d.ts +2 -11
- package/dist/src/review/review-selection.js +97 -71
- package/dist/src/review/review-selection.js.map +1 -1
- package/dist/src/review/review-types.d.ts +3 -0
- package/dist/src/review/review-types.js.map +1 -1
- package/dist/src/review/skill-materialization.d.ts +44 -9
- package/dist/src/review/skill-materialization.js +112 -136
- package/dist/src/review/skill-materialization.js.map +1 -1
- package/dist/src/review/source-binding.d.ts +8 -5
- package/dist/src/review/source-binding.js +99 -41
- package/dist/src/review/source-binding.js.map +1 -1
- package/dist/src/tui/agent-management.js +112 -10
- package/dist/src/tui/agent-management.js.map +1 -1
- package/dist/src/tui/agent-settings.d.ts +3 -0
- package/dist/src/tui/agent-settings.js +10 -11
- package/dist/src/tui/agent-settings.js.map +1 -1
- package/dist/src/tui/console-app-v4.js +58 -20
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/content-item-card.js +2 -2
- package/dist/src/tui/content-item-card.js.map +1 -1
- package/dist/src/tui/controller-runtime.js +198 -152
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +5 -9
- package/dist/src/tui/controller.js +40 -18
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/deployment-view.d.ts +10 -0
- package/dist/src/tui/deployment-view.js +103 -0
- package/dist/src/tui/deployment-view.js.map +1 -0
- package/dist/src/tui/glossary.js +4 -4
- package/dist/src/tui/glossary.js.map +1 -1
- package/dist/src/tui/model.d.ts +5 -0
- package/dist/src/tui/model.js +73 -12
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/operation-diagnostic-screens.js +2 -1
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -1
- package/dist/src/tui/operation-history.d.ts +5 -4
- package/dist/src/tui/operation-history.js.map +1 -1
- package/dist/src/tui/operation-review-planner.d.ts +7 -2
- package/dist/src/tui/operation-review-planner.js +97 -42
- package/dist/src/tui/operation-review-planner.js.map +1 -1
- package/dist/src/tui/plugin-content.d.ts +5 -3
- package/dist/src/tui/plugin-content.js +70 -508
- package/dist/src/tui/plugin-content.js.map +1 -1
- package/dist/src/tui/plugin-detail.d.ts +3 -2
- package/dist/src/tui/plugin-detail.js +33 -25
- package/dist/src/tui/plugin-detail.js.map +1 -1
- package/dist/src/tui/scoped-inventory.d.ts +10 -6
- package/dist/src/tui/scoped-inventory.js +34 -1
- package/dist/src/tui/scoped-inventory.js.map +1 -1
- package/dist/src/types.d.ts +4 -63
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/agent-version.d.ts +10 -4
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +26 -2
- package/dist/src/utils/artifact-plan.js +113 -489
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +100 -93
- package/dist/src/utils/artifact-renderer.js +173 -346
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +21 -11
- package/dist/src/utils/artifact-request.js +56 -80
- package/dist/src/utils/artifact-request.js.map +1 -1
- package/dist/src/utils/bundle-layout.js +30 -146
- package/dist/src/utils/bundle-layout.js.map +1 -1
- package/dist/src/utils/catalog-digests.d.ts +2 -12
- package/dist/src/utils/catalog-digests.js +0 -39
- package/dist/src/utils/catalog-digests.js.map +1 -1
- package/dist/src/utils/catalog-source-references.d.ts +7 -0
- package/dist/src/utils/catalog-source-references.js +234 -19
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/codex-config-observation.d.ts +19 -0
- package/dist/src/utils/codex-config-observation.js +145 -0
- package/dist/src/utils/codex-config-observation.js.map +1 -0
- package/dist/src/utils/codex-executable-discovery.d.ts +2 -0
- package/dist/src/utils/codex-executable-discovery.js +47 -13
- package/dist/src/utils/codex-executable-discovery.js.map +1 -1
- package/dist/src/utils/codex-manager.js +1 -1
- package/dist/src/utils/codex-manager.js.map +1 -1
- package/dist/src/utils/codex-native-observation.d.ts +3 -0
- package/dist/src/utils/codex-native-observation.js +53 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -1
- package/dist/src/utils/codex-shared-native.d.ts +3 -1
- package/dist/src/utils/codex-shared-native.js +46 -5
- package/dist/src/utils/codex-shared-native.js.map +1 -1
- package/dist/src/utils/codex-skill-staging.d.ts +4 -3
- package/dist/src/utils/codex-skill-staging.js.map +1 -1
- package/dist/src/utils/codex-surface-analysis.d.ts +5 -2
- package/dist/src/utils/codex-surface-analysis.js +28 -57
- package/dist/src/utils/codex-surface-analysis.js.map +1 -1
- package/dist/src/utils/component-command-preparation.d.ts +34 -0
- package/dist/src/utils/component-command-preparation.js +228 -0
- package/dist/src/utils/component-command-preparation.js.map +1 -0
- package/dist/src/utils/component-resources.d.ts +43 -0
- package/dist/src/utils/component-resources.js +304 -0
- package/dist/src/utils/component-resources.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +17 -6
- package/dist/src/utils/dynamic-skill-tree.js +7 -3
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/local-marketplace.d.ts +11 -44
- package/dist/src/utils/local-marketplace.js +11 -638
- package/dist/src/utils/local-marketplace.js.map +1 -1
- package/dist/src/utils/managed-command-evidence.d.ts +2 -2
- package/dist/src/utils/managed-command-evidence.js +5 -81
- package/dist/src/utils/managed-command-evidence.js.map +1 -1
- package/dist/src/utils/managed-command-materialization.d.ts +5 -2
- package/dist/src/utils/managed-command-materialization.js +35 -35
- package/dist/src/utils/managed-command-materialization.js.map +1 -1
- package/dist/src/utils/managed-command-preparation.d.ts +67 -0
- package/dist/src/utils/managed-command-preparation.js +146 -0
- package/dist/src/utils/managed-command-preparation.js.map +1 -0
- package/dist/src/utils/managed-command-review.d.ts +26 -0
- package/dist/src/utils/managed-command-review.js +68 -0
- package/dist/src/utils/managed-command-review.js.map +1 -0
- package/dist/src/utils/managed-command-store.js +26 -15
- package/dist/src/utils/managed-command-store.js.map +1 -1
- package/dist/src/utils/native-cli.d.ts +23 -0
- package/dist/src/utils/native-cli.js +51 -2
- package/dist/src/utils/native-cli.js.map +1 -1
- package/dist/src/utils/native-demand.d.ts +20 -1
- package/dist/src/utils/native-demand.js.map +1 -1
- package/dist/src/utils/native-tool-review.d.ts +3 -6
- package/dist/src/utils/native-tool-review.js +25 -11
- package/dist/src/utils/native-tool-review.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +26 -3
- package/dist/src/utils/ownership.js +95 -9
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/paths.d.ts +1 -1
- package/dist/src/utils/paths.js +2 -0
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/platform-empty-state.d.ts +46 -0
- package/dist/src/utils/platform-empty-state.js +123 -0
- package/dist/src/utils/platform-empty-state.js.map +1 -0
- package/dist/src/utils/plugin-config-impact.d.ts +17 -11
- package/dist/src/utils/plugin-config-impact.js +46 -62
- package/dist/src/utils/plugin-config-impact.js.map +1 -1
- package/dist/src/utils/plugin-config-write.js +52 -53
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +0 -2
- package/dist/src/utils/plugin-config.js +0 -6
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/dist/src/utils/plugin-dependencies.d.ts +1 -1
- package/dist/src/utils/plugin-dependencies.js.map +1 -1
- package/dist/src/utils/plugin-scripts.d.ts +4 -0
- package/dist/src/utils/plugin-scripts.js +11 -0
- package/dist/src/utils/plugin-scripts.js.map +1 -1
- package/dist/src/utils/runtime-config.d.ts +5 -7
- package/dist/src/utils/runtime-config.js +12 -25
- package/dist/src/utils/runtime-config.js.map +1 -1
- package/dist/src/utils/windows-npm-shim.js +19 -2
- package/dist/src/utils/windows-npm-shim.js.map +1 -1
- package/package.json +3 -3
- package/dist/src/utils/claude-native-render-receipt.d.ts +0 -14
- package/dist/src/utils/claude-native-render-receipt.js +0 -26
- package/dist/src/utils/claude-native-render-receipt.js.map +0 -1
- package/dist/src/utils/claude-skills-root.d.ts +0 -8
- package/dist/src/utils/claude-skills-root.js +0 -87
- package/dist/src/utils/claude-skills-root.js.map +0 -1
- package/dist/src/utils/codex-native-render-receipt.d.ts +0 -40
- package/dist/src/utils/codex-native-render-receipt.js +0 -205
- package/dist/src/utils/codex-native-render-receipt.js.map +0 -1
- package/dist/src/utils/slash-commands.d.ts +0 -1
- package/dist/src/utils/slash-commands.js +0 -2
- package/dist/src/utils/slash-commands.js.map +0 -1
|
@@ -27,6 +27,8 @@ import { resolveTuiSizePolicy } from './layout.js';
|
|
|
27
27
|
import { buildDependencyGraphProjection, buildUnifiedDependencyGraphProjection, } from './dependency-graph.js';
|
|
28
28
|
import { DependencyGraphView, projectDependencyGraphView } from './dependency-graph-view.js';
|
|
29
29
|
import { agentLabel, platformLabel, scopeLabel, recoveryReason } from './glossary.js';
|
|
30
|
+
import { deploymentPlanLines, deploymentResultLines, deploymentObservationLines, deploymentExclusionLines, componentGapLines } from './deployment-view.js';
|
|
31
|
+
import { projectDeploymentReceipt, projectDeploymentObservation } from '../commands/public-lifecycle-result.js';
|
|
30
32
|
import { InputDisplay, removeLastGrapheme } from './input-display.js';
|
|
31
33
|
import { QueryHeader, querySearchWidth } from './query-header.js';
|
|
32
34
|
import { Pager, Reader, paginateWrappedRows, readerPage } from './reader.js';
|
|
@@ -35,7 +37,7 @@ import { ContentItemCard, contentItemCardLayout, contentItemCardWindowHeight, co
|
|
|
35
37
|
import { SourceDetailCard, sourceDetailCardLayout } from './source-detail-card.js';
|
|
36
38
|
import { catalogRefPolicyForPreset } from './source-ref-presets.js';
|
|
37
39
|
import { buildPlatformActions, configObjectHasSensitiveChild, hasInstalledPlacement, configValuesEqual, } from './model.js';
|
|
38
|
-
import {
|
|
40
|
+
import { managedCommandRecoveryPlanChanges } from './operation-review-planner.js';
|
|
39
41
|
import { resolveTuiGlobalKeyAction, resolveTuiSessionNavigationKey } from './keys.js';
|
|
40
42
|
import { tuiTheme } from './theme.js';
|
|
41
43
|
import { contentRowBudget, rowViewport, wrapDisplayText } from './viewport.js';
|
|
@@ -82,6 +84,13 @@ function scopedRiskReasons(plan) {
|
|
|
82
84
|
? ['本次会清理个人原生输出,可能影响其他项目。'] : []),
|
|
83
85
|
];
|
|
84
86
|
const reasons = [];
|
|
87
|
+
for (const deployment of scopedDeploymentPlans(plan)) {
|
|
88
|
+
if (deployment.effects.length && (deployment.binding.consumers.length > 1 || deployment.evidence.sharedReferences !== 'none')) {
|
|
89
|
+
reasons.push(`${agentLabel(deployment.binding.platform)} 的原生包变更会影响所列产品面或其他共享引用,请检查具体动作。`);
|
|
90
|
+
}
|
|
91
|
+
if (deployment.effects.some((effect) => effect.destructive))
|
|
92
|
+
reasons.push(`${agentLabel(deployment.binding.platform)} 将撤销或移除所列内容。`);
|
|
93
|
+
}
|
|
85
94
|
const dependencyCleanup = scopedDependencyCleanupTargets(plan);
|
|
86
95
|
if (dependencyCleanup.length > 0) {
|
|
87
96
|
reasons.push(`本次还会清理 ${dependencyCleanup.length} 个不再需要的依赖位置;请确认所列依赖。`);
|
|
@@ -110,6 +119,23 @@ function scopedRiskReasons(plan) {
|
|
|
110
119
|
}
|
|
111
120
|
return [...new Set(reasons)];
|
|
112
121
|
}
|
|
122
|
+
function scopedDeploymentPlans(plan) {
|
|
123
|
+
if (plan.kind === 'targets' || plan.kind === 'intent')
|
|
124
|
+
return [];
|
|
125
|
+
if (plan.kind === 'retire')
|
|
126
|
+
return plan.plan.operationPlan?.deploymentPlans ?? [];
|
|
127
|
+
const deployments = new Map();
|
|
128
|
+
const visit = (entry) => {
|
|
129
|
+
for (const group of entry.nativeGroups)
|
|
130
|
+
for (const deployment of group.preview.operationPlan?.deploymentPlans ?? [])
|
|
131
|
+
deployments.set(deployment.binding.id, deployment);
|
|
132
|
+
if ('joint' in entry)
|
|
133
|
+
for (const child of entry.joint?.children ?? [])
|
|
134
|
+
visit(child);
|
|
135
|
+
};
|
|
136
|
+
visit(plan.plan);
|
|
137
|
+
return [...deployments.values()];
|
|
138
|
+
}
|
|
113
139
|
function recoveryPluginLabel(id) {
|
|
114
140
|
const [source, ...name] = id.split('/');
|
|
115
141
|
return name.length ? `${name.join('/')}(${source})` : id;
|
|
@@ -122,7 +148,7 @@ function recoveryTargetLines(receipt, result) {
|
|
|
122
148
|
if (result) {
|
|
123
149
|
action = target.satisfaction === 'unsupported' || target.satisfaction === 'excluded' ? '! 已跳过'
|
|
124
150
|
: target.execution === 'applied' || target.execution === 'no-op' ? '✓ 完成'
|
|
125
|
-
: target.execution === '
|
|
151
|
+
: target.execution === 'partial' ? '! 部分完成' : target.execution === 'failed' ? '× 执行失败'
|
|
126
152
|
: target.blockers.length ? '! 已跳过' : '? 尚未确认';
|
|
127
153
|
}
|
|
128
154
|
else if (target.blockers.length || target.satisfaction === 'excluded' || target.satisfaction === 'unsupported') {
|
|
@@ -132,8 +158,11 @@ function recoveryTargetLines(receipt, result) {
|
|
|
132
158
|
action = '− 移除';
|
|
133
159
|
}
|
|
134
160
|
else if ((target.content === 'satisfied' || target.observation === 'verified') && receipt.command !== 'reinstall') {
|
|
135
|
-
|
|
136
|
-
|
|
161
|
+
if (!target.deploymentExclusions?.length && !target.componentGaps?.length) {
|
|
162
|
+
unchanged += 1;
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
action = '✓ 当前输出已满足';
|
|
137
166
|
}
|
|
138
167
|
else
|
|
139
168
|
action = target.content === 'absent' || target.observation === 'missing' ? '+ 新增安装' : '↻ 同步并修复';
|
|
@@ -141,14 +170,17 @@ function recoveryTargetLines(receipt, result) {
|
|
|
141
170
|
: target.satisfaction === 'excluded' ? '已关闭此 Agent'
|
|
142
171
|
: target.satisfaction === 'unsupported' ? '插件不支持此 Agent' : undefined;
|
|
143
172
|
const label = `${action} ${recoveryPluginLabel(target.pluginId)} ${scopeLabel(target.scope)}`;
|
|
144
|
-
const key =
|
|
145
|
-
const group = groups.get(key) ?? { label:
|
|
146
|
-
|
|
147
|
-
if (
|
|
148
|
-
group.targets.push(
|
|
173
|
+
const key = target.agent;
|
|
174
|
+
const group = groups.get(key) ?? { label: `→ ${agentLabel(target.agent)}`, targets: [] };
|
|
175
|
+
group.targets.push(`${label}${reason ? ` · ${reason}` : ''}`);
|
|
176
|
+
if (result && target.deploymentReceipts)
|
|
177
|
+
group.targets.push(...deploymentResultLines(target.deploymentReceipts.map(projectDeploymentReceipt)));
|
|
178
|
+
else if (result && target.deploymentObservations)
|
|
179
|
+
group.targets.push(...deploymentObservationLines(target.deploymentObservations.map(projectDeploymentObservation)));
|
|
180
|
+
group.targets.push(...deploymentExclusionLines(target.deploymentExclusions ?? []), ...componentGapLines(target.componentGaps ?? []));
|
|
149
181
|
groups.set(key, group);
|
|
150
182
|
}
|
|
151
|
-
return [...groups.values()].flatMap((group) => [group.label,
|
|
183
|
+
return [...groups.values()].flatMap((group) => [group.label, ...group.targets])
|
|
152
184
|
.concat(unchanged ? [`✓ 另有 ${unchanged} 项已是最新`] : []);
|
|
153
185
|
}
|
|
154
186
|
function scopedPlanSummary(plan) {
|
|
@@ -162,7 +194,7 @@ function scopedPlanSummary(plan) {
|
|
|
162
194
|
].join('\n');
|
|
163
195
|
const receipt = plan.plan.receipt;
|
|
164
196
|
const lines = [receipt.coverage?.scopes.length === 2 ? '所有项目 + 当前项目' : scopeLabel(plan.scope),
|
|
165
|
-
...recoveryTargetLines(receipt, false), ...scopedDependencyCleanupLines(plan)];
|
|
197
|
+
...recoveryTargetLines(receipt, false), ...deploymentPlanLines(scopedDeploymentPlans(plan)), ...scopedDependencyCleanupLines(plan)];
|
|
166
198
|
if (plan.kind === 'recovery' && plan.plan.sourceRefreshes?.length) {
|
|
167
199
|
lines.unshift(...plan.plan.sourceRefreshes.map((refresh) => `↻ 启用来源 ${refresh.sourceId} 的候选版本`), '来源启用后,将重新准备插件操作汇总;本次不会直接更新插件。');
|
|
168
200
|
}
|
|
@@ -248,13 +280,14 @@ function scopedPlanText(plan, technical = false) {
|
|
|
248
280
|
...receipt.targetResults.flatMap((target) => target.reasons?.map((reason) => `${reason.code} · ${reason.message}`) ?? []),
|
|
249
281
|
...plan.plan.changes.map((change) => `影响:${change}`),
|
|
250
282
|
...plan.plan.warnings.map((warning) => `注意:${warning}`),
|
|
283
|
+
...deploymentPlanLines(scopedDeploymentPlans(plan), true),
|
|
251
284
|
...(plan.kind === 'recovery' ? scopedCommandPlanText(plan) : []),
|
|
252
285
|
...(plan.kind === 'retire' ? [`配置删除选项:${plan.plan.options.deleteConfig
|
|
253
286
|
? impact.config ? '已选择' : '已选择;当前没有可删除配置' : '关闭(默认)'}`] : []),
|
|
254
287
|
].join('\n');
|
|
255
288
|
}
|
|
256
289
|
function scopedCommandPlanText(plan) {
|
|
257
|
-
return
|
|
290
|
+
return managedCommandRecoveryPlanChanges(plan.plan)
|
|
258
291
|
.map((change) => `${change.title}${change.description ? `:${change.description}` : ''}`);
|
|
259
292
|
}
|
|
260
293
|
function scopedResultText(receipt, technical = false) {
|
|
@@ -277,6 +310,8 @@ function scopedResultText(receipt, technical = false) {
|
|
|
277
310
|
...receipt.targetResults.flatMap((target) => target.reasons?.map((reason) => `${reason.code} · ${reason.message}`) ?? []),
|
|
278
311
|
...(reviewStale ? ['本次未执行,需要重新准备。'] : []),
|
|
279
312
|
...receipt.targetResults.map((target) => `${target.pluginId} · ${agentLabel(target.agent)} [${target.scope === 'user' ? '个人' : '当前项目'}] · ${target.delivery?.kind === 'native' ? '原生' : target.delivery?.kind === 'agent-skills' ? 'Skills' : '无交付'} · ${target.execution} · ${target.observation}${target.blockers.length ? ` · 受阻 ${target.blockers.map((blocker) => blocker.code).join('、')}` : ''}`),
|
|
313
|
+
...receipt.targetResults.flatMap((target) => target.deploymentReceipts ? deploymentResultLines(target.deploymentReceipts.map(projectDeploymentReceipt), true)
|
|
314
|
+
: target.deploymentObservations ? deploymentObservationLines(target.deploymentObservations.map(projectDeploymentObservation), true) : []),
|
|
280
315
|
...receipt.targetResults.flatMap((target) => target.recoveryActions?.map((action) => `${target.pluginId} · ${target.agent}:${action}`) ?? []),
|
|
281
316
|
...(receipt.commandResults ?? []).flatMap((result) => [
|
|
282
317
|
`命令${result.producer.kind === 'package' ? '包' : '生产者'} ${result.producer.key} · ${result.producer.sourceId}/${result.producer.pluginName} · ${scopeLabel(result.producer.scope)}${result.producer.platform ? ` · ${platformLabel(result.producer.platform)}` : ''} · ${result.state}`,
|
|
@@ -2747,7 +2782,7 @@ export function ConsoleAppV4(props) {
|
|
|
2747
2782
|
};
|
|
2748
2783
|
const beginReview = (intent, returnRoute) => {
|
|
2749
2784
|
setSplitTaskReview(undefined);
|
|
2750
|
-
const agentForPlatform = (platform) => platform
|
|
2785
|
+
const agentForPlatform = (platform) => platform;
|
|
2751
2786
|
if (intent.kind === 'pluginWrite') {
|
|
2752
2787
|
const agents = intent.platform === 'both' ? ['codex', 'claude']
|
|
2753
2788
|
: [agentForPlatform(intent.platform)];
|
|
@@ -3208,7 +3243,7 @@ export function ConsoleAppV4(props) {
|
|
|
3208
3243
|
return;
|
|
3209
3244
|
}
|
|
3210
3245
|
try {
|
|
3211
|
-
const agent = platform
|
|
3246
|
+
const agent = platform;
|
|
3212
3247
|
beginScopedTask({ kind: 'recovery', command: 'cleanup', scope: selectedScope,
|
|
3213
3248
|
selectors: [pluginId], targets: [agent], exactTargets: [{ pluginId, agent }], force: true }, () => props.controller.startForceCleanupReview(candidate));
|
|
3214
3249
|
setFocus(0);
|
|
@@ -4121,10 +4156,12 @@ export function ConsoleAppV4(props) {
|
|
|
4121
4156
|
.map((target) => `${agentSummaries()[target]?.symbol ?? '?'} ${agentLabel(target)}`).join(' · ') || '请选择本机使用的 Agent'),
|
|
4122
4157
|
run: () => openAgentManagement() },
|
|
4123
4158
|
];
|
|
4159
|
+
if (size.rows <= 18 && snapshot.projectRoot)
|
|
4160
|
+
actions[1].description = `当前项目 ${path.basename(snapshot.projectRoot)}`;
|
|
4124
4161
|
if (size.rows <= 18 && wrapConsoleText(actions[3].description ?? '', size.columns - 4).length > 1)
|
|
4125
4162
|
title = '';
|
|
4126
4163
|
content = _jsxs(Box, { flexDirection: "column", children: [actions.map((action, index) => _jsx(Box, { flexShrink: 0, marginBottom: size.rows >= 24 ? 1 : 0, children: _jsx(HomeNavTile, { width: size.columns - 2, title: action.label, focused: focus === index, children: index === 3 ? _jsx(AgentStatusText, { text: action.description ?? '' }) : _jsx(Text, { wrap: "wrap", children: action.description?.split(' · ').map((state, stateIndex) => _jsxs(Text, { color: state.startsWith('↑') ? tuiTheme.roles.change : state.startsWith('!') || state.startsWith('↻') ? tuiTheme.roles.warning
|
|
4127
|
-
: state.startsWith('?') ? tuiTheme.roles.unknown : state.startsWith('✓') ? tuiTheme.roles.success : tuiTheme.roles.secondary, children: [stateIndex > 0 ? ' ' : '', "[", state, "]"] }, stateIndex)) }) }) }, action.label)), snapshot.projectRoot ? _jsx(Box, { flexShrink: 0, children: _jsxs(Text, { color: tuiTheme.roles.secondary, children: ["\u5F53\u524D\u9879\u76EE ", path.basename(snapshot.projectRoot)] }) }) : null] });
|
|
4164
|
+
: state.startsWith('?') ? tuiTheme.roles.unknown : state.startsWith('✓') ? tuiTheme.roles.success : tuiTheme.roles.secondary, children: [stateIndex > 0 ? ' ' : '', "[", state, "]"] }, stateIndex)) }) }) }, action.label)), snapshot.projectRoot && size.rows > 18 ? _jsx(Box, { flexShrink: 0, children: _jsxs(Text, { color: tuiTheme.roles.secondary, children: ["\u5F53\u524D\u9879\u76EE ", path.basename(snapshot.projectRoot)] }) }) : null] });
|
|
4128
4165
|
}
|
|
4129
4166
|
else if (route.name === 'intentScopes') {
|
|
4130
4167
|
breadcrumb = '插件清单';
|
|
@@ -4164,7 +4201,7 @@ export function ConsoleAppV4(props) {
|
|
|
4164
4201
|
breadcrumb = flow.pluginId ? '插件 / Agent 管理' : '首页 / Agent 管理';
|
|
4165
4202
|
content = _jsx(AgentManagement, { controller: props.controller, settings: flow.settings, pluginId: flow.pluginId, columns: size.columns, rows: size.rows, summaries: agentSummaries(flow.pluginId), active: !overlay, onBack: closeScopedFlow, onExit: requestConfirmedExit, onSaved: setAgentSettings, onHome: () => { closeScopedFlow(); requestSessionNavigation('home'); }, onReload: () => { closeScopedFlow(); requestSessionNavigation('reload'); }, onHelp: () => { setOverlayFocus(0); setHelpPage(1); setOverlay('help'); }, onSync: () => beginScopedTask({ kind: 'recovery', command: 'sync', scope: flow.scope,
|
|
4166
4203
|
selectors: flow.pluginId ? [flow.pluginId] : [], retireUnselectedTargets: true }) });
|
|
4167
|
-
help = '↑↓ 移动 · Enter/Space 勾选 · s 保存 · Esc 返回';
|
|
4204
|
+
help = '↑↓ 移动 · Enter/Space 勾选 · s 保存 · r 重新检查 · Esc 返回';
|
|
4168
4205
|
}
|
|
4169
4206
|
else if (flow.stage === 'recoveryScope') {
|
|
4170
4207
|
title = flow.command === 'uninstall' ? '选择卸载范围' : '选择清理范围';
|
|
@@ -4187,7 +4224,7 @@ export function ConsoleAppV4(props) {
|
|
|
4187
4224
|
else if (flow.stage === 'targets') {
|
|
4188
4225
|
title = flow.scope === 'user' ? '个人插件使用的工具' : '此项目在本机使用的工具';
|
|
4189
4226
|
description = '保存后可单独准备同步任务。';
|
|
4190
|
-
actions =
|
|
4227
|
+
actions = PLATFORM_TARGETS.map((agent) => ({
|
|
4191
4228
|
actionId: `agent:${agent}`, label: `${flow.agents.includes(agent) ? '✓' : '○'} ${agent}`,
|
|
4192
4229
|
run: () => setScopedFlow({ ...flow,
|
|
4193
4230
|
agents: flow.agents.includes(agent) ? flow.agents.filter((value) => value !== agent)
|
|
@@ -4208,6 +4245,7 @@ export function ConsoleAppV4(props) {
|
|
|
4208
4245
|
? [`${snapshot.progress.current.target} · ${snapshot.progress.current.phase}`] : []),
|
|
4209
4246
|
...snapshot.progress.messages,
|
|
4210
4247
|
...(flow.plan.kind === 'recovery' ? scopedCommandPlanText(flow.plan) : []),
|
|
4248
|
+
...deploymentPlanLines(scopedDeploymentPlans(flow.plan)),
|
|
4211
4249
|
].join('\n') : undefined;
|
|
4212
4250
|
content = _jsxs(Box, { flexDirection: "column", children: [_jsx(ProgressRow, { title: title, state: "active" }), readingText ? readingPage(readingText, size.columns - 6, Math.max(1, pageActionBudget(4))) : null] });
|
|
4213
4251
|
}
|
|
@@ -4272,9 +4310,9 @@ export function ConsoleAppV4(props) {
|
|
|
4272
4310
|
: (flow.errorCode ? showTechnical ? flow.errorCode : recoveryReason(flow.errorCode) : undefined) ?? (flow.changed ? '本机工具已保存。' : '本机工具没有变化。');
|
|
4273
4311
|
const retryTargets = flow.receipt?.targetResults.filter((target) => (target.execution === 'failed' || target.execution === 'partial')
|
|
4274
4312
|
&& (target.observation === 'missing' || target.content === 'absent')) ?? [];
|
|
4275
|
-
const retryKeys = new Set(retryTargets.map((target) => `${target.pluginId}\0${target.agent}`));
|
|
4313
|
+
const retryKeys = new Set(retryTargets.map((target) => `${target.pluginId}\0${target.agent}\0${target.scope}`));
|
|
4276
4314
|
const unknownTargets = flow.receipt?.targetResults.filter((target) => target.observation === 'unknown'
|
|
4277
|
-
&& !retryKeys.has(`${target.pluginId}\0${target.agent}`)) ?? [];
|
|
4315
|
+
&& !retryKeys.has(`${target.pluginId}\0${target.agent}\0${target.scope}`)) ?? [];
|
|
4278
4316
|
const reviewStale = flow.receipt
|
|
4279
4317
|
? [...flow.receipt.blockers, ...flow.receipt.errors]
|
|
4280
4318
|
.some((entry) => entry.code === 'operationReviewStale')
|
|
@@ -4298,7 +4336,7 @@ export function ConsoleAppV4(props) {
|
|
|
4298
4336
|
kind: 'recovery', scope: flow.scope, command: flow.receipt.command,
|
|
4299
4337
|
selectors: [...new Set(retryTargets.map((target) => target.pluginId))],
|
|
4300
4338
|
targets: [...new Set(retryTargets.map((target) => target.agent))],
|
|
4301
|
-
exactTargets: retryTargets.map((target) => ({ pluginId: target.pluginId, agent: target.agent })),
|
|
4339
|
+
exactTargets: retryTargets.map((target) => ({ pluginId: target.pluginId, agent: target.agent, scope: target.scope })),
|
|
4302
4340
|
}) }] : []),
|
|
4303
4341
|
];
|
|
4304
4342
|
content = _jsxs(ResultSurface, { status: flow.errorCode || flow.receipt && !flow.receipt.ok ? 'warning' : 'success', title: description, children: [readingPage(readingText, size.columns - 6, Math.max(1, pageActionBudget(actions.length + (showTechnical ? 5 : 4)))), _jsx(SemanticRows, { actions: actions, focus: flow.focus, kind: "action", compact: true })] });
|