@lesliechan721/aw 0.1.0-beta.8 → 0.1.0-beta.80
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.mjs +100 -501
- package/dist/authoring/assets/aw-config.mjs.map +1 -1
- package/dist/authoring/assets/aw-runtime-config.d.mts +13 -0
- package/dist/authoring/assets/aw-runtime-config.mjs +221 -0
- package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.mjs +17 -40
- package/dist/authoring/scripts/add-skill.mjs.map +1 -1
- package/dist/authoring/scripts/init-plugin.mjs +74 -98
- package/dist/authoring/scripts/init-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-root.mjs +4 -4
- package/dist/authoring/scripts/lib/plugin-root.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-version-check.d.mts +1 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +230 -9
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
- package/dist/authoring/scripts/lib/skill-scaffold.d.mts +79 -92
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +103 -127
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs +2 -2
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-plugin.mjs +459 -2843
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-skill.mjs +1 -1
- package/dist/native-runtime/reader-runtime.mjs +34 -0
- package/dist/native-runtime/reader.d.mts +6 -0
- package/dist/native-runtime/reader.mjs +11 -0
- package/dist/scripts/aw-skill-eval-materializer.d.ts +30 -0
- package/dist/scripts/aw-skill-eval-materializer.js +278 -0
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -0
- package/dist/scripts/bundle-plugins.d.ts +1 -0
- package/dist/scripts/bundle-plugins.js +27 -8
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/plugin-staging.d.ts +7 -8
- package/dist/scripts/plugin-staging.js +16 -15
- package/dist/scripts/plugin-staging.js.map +1 -1
- package/dist/scripts/plugin-test-reporter.d.mts +2 -0
- package/dist/scripts/plugin-test-reporter.mjs +21 -0
- package/dist/scripts/plugin-test-reporter.mjs.map +1 -0
- package/dist/scripts/test-plugin-scripts.d.ts +5 -0
- package/dist/scripts/test-plugin-scripts.js +273 -78
- package/dist/scripts/test-plugin-scripts.js.map +1 -1
- package/dist/scripts/test-workers.d.mts +24 -0
- package/dist/scripts/test-workers.mjs +59 -0
- package/dist/scripts/test-workers.mjs.map +1 -0
- package/dist/src/adapters/helpers.d.ts +7 -0
- package/dist/src/adapters/helpers.js.map +1 -1
- package/dist/src/authoring/workspace-commands.d.ts +5 -1
- package/dist/src/authoring/workspace-commands.js +7 -2
- package/dist/src/authoring/workspace-commands.js.map +1 -1
- package/dist/src/commands/aw-capabilities.d.ts +2 -2
- package/dist/src/commands/aw-capabilities.js +41 -29
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/catalog-dev-source.d.ts +58 -13
- package/dist/src/commands/catalog-dev-source.js +549 -305
- package/dist/src/commands/catalog-dev-source.js.map +1 -1
- package/dist/src/commands/catalog-generation.d.ts +14 -19
- package/dist/src/commands/catalog-generation.js +5 -10
- package/dist/src/commands/catalog-generation.js.map +1 -1
- package/dist/src/commands/catalog-publication-inspection.d.ts +70 -29
- package/dist/src/commands/catalog-publication-inspection.js +475 -62
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -1
- package/dist/src/commands/catalog-publication-journal.d.ts +68 -0
- package/dist/src/commands/catalog-publication-journal.js +292 -0
- package/dist/src/commands/catalog-publication-journal.js.map +1 -0
- package/dist/src/commands/catalog-publication-target.d.ts +2 -1
- package/dist/src/commands/catalog-publication-target.js +37 -2
- package/dist/src/commands/catalog-publication-target.js.map +1 -1
- package/dist/src/commands/catalog-publish.d.ts +82 -15
- package/dist/src/commands/catalog-publish.js +722 -219
- package/dist/src/commands/catalog-publish.js.map +1 -1
- package/dist/src/commands/catalog-source.d.ts +55 -35
- package/dist/src/commands/catalog-source.js +298 -148
- package/dist/src/commands/catalog-source.js.map +1 -1
- package/dist/src/commands/catalog-status.d.ts +6 -26
- package/dist/src/commands/catalog-status.js +9 -147
- package/dist/src/commands/catalog-status.js.map +1 -1
- package/dist/src/commands/catalog-store.d.ts +104 -0
- package/dist/src/commands/catalog-store.js +685 -0
- package/dist/src/commands/catalog-store.js.map +1 -0
- package/dist/src/commands/catalog-workspace-resolution.d.ts +17 -0
- package/dist/src/commands/catalog-workspace-resolution.js +57 -0
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -0
- package/dist/src/commands/console.js +32 -20
- package/dist/src/commands/console.js.map +1 -1
- package/dist/src/commands/dependency-operation-plan.d.ts +52 -15
- package/dist/src/commands/dependency-operation-plan.js +289 -7
- 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/init.d.ts +5 -11
- package/dist/src/commands/init.js +30 -51
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/intent-command.d.ts +32 -0
- package/dist/src/commands/intent-command.js +171 -0
- package/dist/src/commands/intent-command.js.map +1 -0
- package/dist/src/commands/managed-commands.d.ts +35 -0
- package/dist/src/commands/managed-commands.js +361 -0
- package/dist/src/commands/managed-commands.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +46 -0
- package/dist/src/commands/offline-cleanup-evidence.js +158 -10
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
- package/dist/src/commands/operation-plan.d.ts +190 -0
- package/dist/src/commands/operation-plan.js +99 -0
- package/dist/src/commands/operation-plan.js.map +1 -0
- package/dist/src/commands/operation-planner.d.ts +47 -0
- package/dist/src/commands/operation-planner.js +142 -0
- package/dist/src/commands/operation-planner.js.map +1 -0
- package/dist/src/commands/options.d.ts +16 -20
- package/dist/src/commands/options.js +94 -41
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/plugin-capabilities.js +88 -45
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-config-confirmation.d.ts +8 -0
- package/dist/src/commands/public-config-confirmation.js +56 -0
- package/dist/src/commands/public-config-confirmation.js.map +1 -0
- package/dist/src/commands/public-interruption.d.ts +9 -0
- package/dist/src/commands/public-interruption.js +23 -0
- package/dist/src/commands/public-interruption.js.map +1 -0
- package/dist/src/commands/public-lifecycle-result.d.ts +102 -0
- package/dist/src/commands/public-lifecycle-result.js +307 -0
- package/dist/src/commands/public-lifecycle-result.js.map +1 -0
- package/dist/src/commands/public-lifecycle.d.ts +28 -0
- package/dist/src/commands/public-lifecycle.js +492 -0
- package/dist/src/commands/public-lifecycle.js.map +1 -0
- package/dist/src/commands/public-plugin-query.d.ts +16 -0
- package/dist/src/commands/public-plugin-query.js +193 -0
- package/dist/src/commands/public-plugin-query.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +166 -28
- package/dist/src/commands/rebuild-command.js +3745 -813
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +137 -25
- package/dist/src/commands/rebuild-integration.js +1343 -2535
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +73 -22
- package/dist/src/commands/rebuild-operations.js +313 -216
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +62 -0
- package/dist/src/commands/rebuild-platform-integration.js +1317 -0
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -0
- package/dist/src/commands/reconcile-operation-plan.d.ts +28 -0
- package/dist/src/commands/reconcile-operation-plan.js +47 -0
- package/dist/src/commands/reconcile-operation-plan.js.map +1 -0
- package/dist/src/commands/review-inspection.d.ts +60 -0
- package/dist/src/commands/review-inspection.js +436 -0
- package/dist/src/commands/review-inspection.js.map +1 -0
- package/dist/src/commands/review-preparation.d.ts +51 -0
- package/dist/src/commands/review-preparation.js +400 -0
- package/dist/src/commands/review-preparation.js.map +1 -0
- package/dist/src/commands/runtime.d.ts +6 -6
- package/dist/src/commands/runtime.js +44 -24
- package/dist/src/commands/runtime.js.map +1 -1
- package/dist/src/commands/skill-eval.d.ts +41 -0
- package/dist/src/commands/skill-eval.js +407 -0
- package/dist/src/commands/skill-eval.js.map +1 -0
- package/dist/src/commands/status-v6.d.ts +319 -0
- package/dist/src/commands/status-v6.js +2979 -0
- package/dist/src/commands/status-v6.js.map +1 -0
- package/dist/src/commands/targets-command.d.ts +38 -0
- package/dist/src/commands/targets-command.js +182 -0
- package/dist/src/commands/targets-command.js.map +1 -0
- package/dist/src/commands/wizard.d.ts +8 -5
- package/dist/src/commands/wizard.js +7 -4
- package/dist/src/commands/wizard.js.map +1 -1
- package/dist/src/commands/write-commands.d.ts +9 -3
- package/dist/src/commands/write-commands.js +143 -85
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +6 -6
- package/dist/src/constants.js +6 -6
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eval/manifest-v1.d.ts +70 -0
- package/dist/src/eval/manifest-v1.js +358 -0
- package/dist/src/eval/manifest-v1.js.map +1 -0
- package/dist/src/generators/local-plugin.d.ts +7 -2
- package/dist/src/generators/local-plugin.js +313 -389
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/generators/permissions.d.ts +5 -2
- package/dist/src/generators/permissions.js +28 -15
- package/dist/src/generators/permissions.js.map +1 -1
- package/dist/src/index.d.ts +2 -31
- package/dist/src/index.js +1666 -1827
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent/deployment-preferences.d.ts +63 -0
- package/dist/src/intent/deployment-preferences.js +170 -0
- package/dist/src/intent/deployment-preferences.js.map +1 -0
- package/dist/src/intent/diagnostics.d.ts +11 -0
- package/dist/src/intent/diagnostics.js +14 -0
- package/dist/src/intent/diagnostics.js.map +1 -0
- package/dist/src/intent/intent-codec.d.ts +19 -0
- package/dist/src/intent/intent-codec.js +117 -0
- package/dist/src/intent/intent-codec.js.map +1 -0
- package/dist/src/intent/intent-store.d.ts +43 -0
- package/dist/src/intent/intent-store.js +118 -0
- package/dist/src/intent/intent-store.js.map +1 -0
- package/dist/src/intent/scope-context.d.ts +33 -0
- package/dist/src/intent/scope-context.js +149 -0
- package/dist/src/intent/scope-context.js.map +1 -0
- package/dist/src/intent/work-context.d.ts +13 -0
- package/dist/src/intent/work-context.js +22 -0
- package/dist/src/intent/work-context.js.map +1 -0
- package/dist/src/output/command-receipt.d.ts +47 -46
- package/dist/src/output/command-receipt.js +286 -79
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/model.d.ts +3 -11
- 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.d.ts +49 -0
- package/dist/src/output/public-result.js +240 -0
- package/dist/src/output/public-result.js.map +1 -0
- package/dist/src/output/rebuild-progress.js +20 -15
- package/dist/src/output/rebuild-progress.js.map +1 -1
- package/dist/src/output/receipt-projection.d.ts +7 -0
- package/dist/src/output/receipt-projection.js +592 -0
- package/dist/src/output/receipt-projection.js.map +1 -0
- package/dist/src/platforms/capabilities.d.ts +12 -0
- package/dist/src/platforms/capabilities.js +205 -0
- package/dist/src/platforms/capabilities.js.map +1 -0
- package/dist/src/platforms/contracts.d.ts +358 -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 +28 -0
- package/dist/src/platforms/cursor-workspace-hook.js +198 -0
- package/dist/src/platforms/cursor-workspace-hook.js.map +1 -0
- package/dist/src/platforms/discovery.d.ts +91 -0
- package/dist/src/platforms/discovery.js +653 -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 +81 -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 +212 -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 +406 -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 +98 -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 +282 -0
- package/dist/src/platforms/inspection-pi.js.map +1 -0
- package/dist/src/platforms/inspection-query.d.ts +12 -0
- package/dist/src/platforms/inspection-query.js +96 -0
- package/dist/src/platforms/inspection-query.js.map +1 -0
- package/dist/src/platforms/inspection.d.ts +17 -0
- package/dist/src/platforms/inspection.js +227 -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 +283 -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 +494 -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/platforms/supplement-state.d.ts +13 -0
- package/dist/src/platforms/supplement-state.js +82 -0
- package/dist/src/platforms/supplement-state.js.map +1 -0
- package/dist/src/portable/commands.d.ts +58 -11
- package/dist/src/portable/commands.js +94 -350
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/historical-materialization.d.ts +22 -0
- package/dist/src/portable/historical-materialization.js +124 -0
- package/dist/src/portable/historical-materialization.js.map +1 -0
- package/dist/src/portable/materializer.d.ts +24 -4
- package/dist/src/portable/materializer.js +189 -259
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery-layout.d.ts +17 -0
- package/dist/src/portable/recovery-layout.js +42 -0
- package/dist/src/portable/recovery-layout.js.map +1 -0
- package/dist/src/portable/recovery.d.ts +153 -0
- package/dist/src/portable/recovery.js +367 -0
- package/dist/src/portable/recovery.js.map +1 -0
- package/dist/src/portable/writer.d.ts +67 -0
- package/dist/src/portable/writer.js +321 -0
- package/dist/src/portable/writer.js.map +1 -0
- package/dist/src/recovery/coordinator.d.ts +141 -0
- package/dist/src/recovery/coordinator.js +1254 -0
- package/dist/src/recovery/coordinator.js.map +1 -0
- package/dist/src/recovery/demand.d.ts +51 -0
- package/dist/src/recovery/demand.js +159 -0
- package/dist/src/recovery/demand.js.map +1 -0
- package/dist/src/recovery/joint-coordinator.d.ts +25 -0
- package/dist/src/recovery/joint-coordinator.js +991 -0
- package/dist/src/recovery/joint-coordinator.js.map +1 -0
- package/dist/src/recovery/joint-demand.d.ts +50 -0
- package/dist/src/recovery/joint-demand.js +197 -0
- package/dist/src/recovery/joint-demand.js.map +1 -0
- package/dist/src/recovery/performance.d.ts +4 -0
- package/dist/src/recovery/performance.js +26 -0
- package/dist/src/recovery/performance.js.map +1 -0
- package/dist/src/recovery/receipt.d.ts +98 -0
- package/dist/src/recovery/receipt.js +2 -0
- package/dist/src/recovery/receipt.js.map +1 -0
- package/dist/src/recovery/retirement.d.ts +47 -0
- package/dist/src/recovery/retirement.js +469 -0
- package/dist/src/recovery/retirement.js.map +1 -0
- package/dist/src/recovery/status.d.ts +126 -0
- package/dist/src/recovery/status.js +1073 -0
- package/dist/src/recovery/status.js.map +1 -0
- package/dist/src/recovery/types.d.ts +85 -0
- package/dist/src/recovery/types.js +2 -0
- package/dist/src/recovery/types.js.map +1 -0
- package/dist/src/review/eval-source-input.d.ts +43 -0
- package/dist/src/review/eval-source-input.js +207 -0
- package/dist/src/review/eval-source-input.js.map +1 -0
- package/dist/src/review/platform-profile.d.ts +3 -0
- package/dist/src/review/platform-profile.js +14 -0
- package/dist/src/review/platform-profile.js.map +1 -0
- package/dist/src/review/review-profile.d.ts +20 -0
- package/dist/src/review/review-profile.js +276 -0
- package/dist/src/review/review-profile.js.map +1 -0
- package/dist/src/review/review-selection.d.ts +20 -0
- package/dist/src/review/review-selection.js +495 -0
- package/dist/src/review/review-selection.js.map +1 -0
- package/dist/src/review/review-types.d.ts +71 -0
- package/dist/src/review/review-types.js +16 -0
- package/dist/src/review/review-types.js.map +1 -0
- package/dist/src/review/skill-materialization.d.ts +62 -0
- package/dist/src/review/skill-materialization.js +205 -0
- package/dist/src/review/skill-materialization.js.map +1 -0
- package/dist/src/review/source-binding.d.ts +201 -0
- package/dist/src/review/source-binding.js +773 -0
- package/dist/src/review/source-binding.js.map +1 -0
- package/dist/src/tui/agent-management.d.ts +23 -0
- package/dist/src/tui/agent-management.js +319 -0
- package/dist/src/tui/agent-management.js.map +1 -0
- package/dist/src/tui/agent-settings.d.ts +47 -0
- package/dist/src/tui/agent-settings.js +97 -0
- package/dist/src/tui/agent-settings.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 +18 -53
- package/dist/src/tui/catalog-generation.js +136 -224
- package/dist/src/tui/catalog-generation.js.map +1 -1
- 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 +40 -0
- package/dist/src/tui/catalog-sources/screens.js.map +1 -0
- package/dist/src/tui/catalog-sources/session.d.ts +32 -0
- package/dist/src/tui/catalog-sources/session.js +300 -0
- package/dist/src/tui/catalog-sources/session.js.map +1 -0
- package/dist/src/tui/catalog-sources/types.d.ts +54 -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/catalog-store-task.d.ts +16 -0
- package/dist/src/tui/catalog-store-task.js +19 -0
- package/dist/src/tui/catalog-store-task.js.map +1 -0
- package/dist/src/tui/clipboard.d.ts +13 -0
- package/dist/src/tui/clipboard.js +95 -0
- package/dist/src/tui/clipboard.js.map +1 -0
- package/dist/src/tui/components.d.ts +113 -3
- package/dist/src/tui/components.js +201 -36
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/config-array-draft.d.ts +29 -0
- package/dist/src/tui/config-array-draft.js +48 -0
- package/dist/src/tui/config-array-draft.js.map +1 -0
- package/dist/src/tui/config-leaf-editor.d.ts +43 -0
- package/dist/src/tui/config-leaf-editor.js +224 -0
- package/dist/src/tui/config-leaf-editor.js.map +1 -0
- package/dist/src/tui/config-references.d.ts +38 -0
- package/dist/src/tui/config-references.js +82 -0
- package/dist/src/tui/config-references.js.map +1 -0
- package/dist/src/tui/config-value-presentation.d.ts +20 -0
- package/dist/src/tui/config-value-presentation.js +104 -0
- package/dist/src/tui/config-value-presentation.js.map +1 -0
- package/dist/src/tui/console-app-v4.d.ts +13 -4
- package/dist/src/tui/console-app-v4.js +9764 -2210
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/content-item-card.d.ts +13 -0
- package/dist/src/tui/content-item-card.js +51 -0
- package/dist/src/tui/content-item-card.js.map +1 -0
- package/dist/src/tui/controller-runtime.d.ts +7 -4
- package/dist/src/tui/controller-runtime.js +2064 -779
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +669 -106
- package/dist/src/tui/controller.js +3617 -971
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/dependency-graph-view.d.ts +39 -0
- package/dist/src/tui/dependency-graph-view.js +121 -0
- package/dist/src/tui/dependency-graph-view.js.map +1 -0
- package/dist/src/tui/dependency-graph.d.ts +81 -0
- package/dist/src/tui/dependency-graph.js +452 -0
- package/dist/src/tui/dependency-graph.js.map +1 -0
- package/dist/src/tui/deployment-view.d.ts +10 -0
- package/dist/src/tui/deployment-view.js +108 -0
- package/dist/src/tui/deployment-view.js.map +1 -0
- package/dist/src/tui/diagnostic-projection.d.ts +23 -0
- package/dist/src/tui/diagnostic-projection.js +595 -0
- package/dist/src/tui/diagnostic-projection.js.map +1 -0
- package/dist/src/tui/diagnostics.d.ts +6 -3
- package/dist/src/tui/diagnostics.js +14 -2
- package/dist/src/tui/diagnostics.js.map +1 -1
- package/dist/src/tui/entity-cards.d.ts +55 -0
- package/dist/src/tui/entity-cards.js +298 -0
- package/dist/src/tui/entity-cards.js.map +1 -0
- package/dist/src/tui/glossary.d.ts +25 -0
- package/dist/src/tui/glossary.js +72 -0
- package/dist/src/tui/glossary.js.map +1 -0
- package/dist/src/tui/index.d.ts +6 -2
- package/dist/src/tui/index.js +5 -2
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/input-display.d.ts +1 -0
- package/dist/src/tui/input-display.js +23 -1
- package/dist/src/tui/input-display.js.map +1 -1
- package/dist/src/tui/keys.d.ts +44 -0
- package/dist/src/tui/keys.js +43 -15
- package/dist/src/tui/keys.js.map +1 -1
- package/dist/src/tui/lifecycle-action-view.d.ts +6 -0
- package/dist/src/tui/lifecycle-action-view.js +36 -0
- package/dist/src/tui/lifecycle-action-view.js.map +1 -0
- package/dist/src/tui/model.d.ts +243 -45
- package/dist/src/tui/model.js +1402 -415
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/operation-diagnostic-screens.d.ts +8 -0
- package/dist/src/tui/operation-diagnostic-screens.js +72 -0
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -0
- package/dist/src/tui/operation-history.d.ts +82 -0
- package/dist/src/tui/operation-history.js +136 -0
- package/dist/src/tui/operation-history.js.map +1 -0
- package/dist/src/tui/operation-review-planner.d.ts +28 -0
- package/dist/src/tui/operation-review-planner.js +1396 -0
- package/dist/src/tui/operation-review-planner.js.map +1 -0
- package/dist/src/tui/plugin-content.d.ts +33 -0
- package/dist/src/tui/plugin-content.js +245 -0
- package/dist/src/tui/plugin-content.js.map +1 -0
- package/dist/src/tui/plugin-detail.d.ts +72 -0
- package/dist/src/tui/plugin-detail.js +260 -0
- package/dist/src/tui/plugin-detail.js.map +1 -0
- package/dist/src/tui/plugin-write-task.d.ts +69 -0
- package/dist/src/tui/plugin-write-task.js +286 -0
- package/dist/src/tui/plugin-write-task.js.map +1 -0
- package/dist/src/tui/prompt.js +4 -15
- package/dist/src/tui/prompt.js.map +1 -1
- package/dist/src/tui/query-header.d.ts +30 -0
- package/dist/src/tui/query-header.js +40 -0
- package/dist/src/tui/query-header.js.map +1 -0
- package/dist/src/tui/reader.d.ts +38 -0
- package/dist/src/tui/reader.js +49 -0
- package/dist/src/tui/reader.js.map +1 -0
- package/dist/src/tui/router.d.ts +186 -35
- package/dist/src/tui/router.js +338 -50
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/scoped-flow.d.ts +45 -0
- package/dist/src/tui/scoped-flow.js +96 -0
- package/dist/src/tui/scoped-flow.js.map +1 -0
- package/dist/src/tui/scoped-inventory.d.ts +126 -0
- package/dist/src/tui/scoped-inventory.js +258 -0
- package/dist/src/tui/scoped-inventory.js.map +1 -0
- package/dist/src/tui/screen-registry.d.ts +701 -0
- package/dist/src/tui/screen-registry.js +226 -0
- package/dist/src/tui/screen-registry.js.map +1 -0
- package/dist/src/tui/session-console-app.d.ts +6 -0
- package/dist/src/tui/session-console-app.js +13 -0
- package/dist/src/tui/session-console-app.js.map +1 -0
- package/dist/src/tui/session-host.d.ts +45 -0
- package/dist/src/tui/session-host.js +219 -0
- package/dist/src/tui/session-host.js.map +1 -0
- package/dist/src/tui/source-detail-card.d.ts +29 -0
- package/dist/src/tui/source-detail-card.js +45 -0
- package/dist/src/tui/source-detail-card.js.map +1 -0
- package/dist/src/tui/theme.d.ts +12 -0
- package/dist/src/tui/theme.js +12 -0
- package/dist/src/tui/theme.js.map +1 -1
- package/dist/src/tui/viewport.d.ts +1 -0
- package/dist/src/tui/viewport.js +23 -0
- package/dist/src/tui/viewport.js.map +1 -1
- package/dist/src/tui/wizard.js +37 -13
- package/dist/src/tui/wizard.js.map +1 -1
- package/dist/src/types.d.ts +220 -118
- package/dist/src/types.js +1 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/agent-version.d.ts +13 -4
- package/dist/src/utils/agent-version.js +27 -4
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +33 -7
- package/dist/src/utils/artifact-plan.js +115 -430
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +114 -83
- package/dist/src/utils/artifact-renderer.js +213 -364
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +44 -0
- package/dist/src/utils/artifact-request.js +80 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- package/dist/src/utils/artifact-sources.d.ts +6 -2
- package/dist/src/utils/artifact-sources.js +17 -0
- package/dist/src/utils/artifact-sources.js.map +1 -1
- package/dist/src/utils/bundle-layout.js +57 -173
- package/dist/src/utils/bundle-layout.js.map +1 -1
- package/dist/src/utils/catalog-capability-projection.d.ts +8 -0
- package/dist/src/utils/catalog-capability-projection.js +14 -0
- package/dist/src/utils/catalog-capability-projection.js.map +1 -0
- package/dist/src/utils/catalog-digests.d.ts +2 -2
- package/dist/src/utils/catalog-digests.js +7 -18
- package/dist/src/utils/catalog-digests.js.map +1 -1
- 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 +5 -1
- package/dist/src/utils/catalog-generation-error.js +14 -0
- package/dist/src/utils/catalog-generation-error.js.map +1 -1
- package/dist/src/utils/catalog-generation-resolver.d.ts +36 -5
- package/dist/src/utils/catalog-generation-resolver.js +221 -77
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
- package/dist/src/utils/catalog-generation-service.d.ts +159 -28
- package/dist/src/utils/catalog-generation-service.js +1186 -525
- package/dist/src/utils/catalog-generation-service.js.map +1 -1
- package/dist/src/utils/catalog-generation-state.d.ts +9 -0
- package/dist/src/utils/catalog-generation-state.js +97 -106
- package/dist/src/utils/catalog-generation-state.js.map +1 -1
- package/dist/src/utils/catalog-generation-store.d.ts +38 -24
- package/dist/src/utils/catalog-generation-store.js +337 -272
- package/dist/src/utils/catalog-generation-store.js.map +1 -1
- package/dist/src/utils/catalog-manifest-v7.d.ts +5 -0
- package/dist/src/utils/{catalog-manifest-v5.js → catalog-manifest-v7.js} +23 -35
- package/dist/src/utils/catalog-manifest-v7.js.map +1 -0
- package/dist/src/utils/catalog-operation-context.d.ts +6 -14
- package/dist/src/utils/catalog-operation-context.js +69 -169
- package/dist/src/utils/catalog-operation-context.js.map +1 -1
- package/dist/src/utils/catalog-public-error.js +8 -4
- package/dist/src/utils/catalog-public-error.js.map +1 -1
- package/dist/src/utils/catalog-runtime-projection.d.ts +7 -3
- package/dist/src/utils/catalog-runtime-projection.js +5 -40
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -1
- package/dist/src/utils/catalog-snapshot.d.ts +2 -2
- package/dist/src/utils/catalog-source-impact.d.ts +21 -0
- package/dist/src/utils/catalog-source-impact.js +344 -0
- package/dist/src/utils/catalog-source-impact.js.map +1 -0
- package/dist/src/utils/catalog-source-references.d.ts +23 -2
- package/dist/src/utils/catalog-source-references.js +456 -382
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/catalog-sources.d.ts +14 -1
- package/dist/src/utils/catalog-sources.js +178 -18
- package/dist/src/utils/catalog-sources.js.map +1 -1
- package/dist/src/utils/codex-config.d.ts +2 -0
- package/dist/src/utils/codex-config.js +22 -1
- package/dist/src/utils/codex-config.js.map +1 -1
- package/dist/src/utils/codex-executable-discovery.d.ts +28 -0
- package/dist/src/utils/codex-executable-discovery.js +431 -0
- package/dist/src/utils/codex-executable-discovery.js.map +1 -0
- package/dist/src/utils/codex-manager.d.ts +47 -18
- package/dist/src/utils/codex-manager.js +88 -622
- package/dist/src/utils/codex-manager.js.map +1 -1
- 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 +49 -0
- package/dist/src/utils/codex-native-observation.js +169 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -0
- package/dist/src/utils/codex-reconciler.d.ts +123 -0
- package/dist/src/utils/codex-reconciler.js +322 -0
- package/dist/src/utils/codex-reconciler.js.map +1 -0
- package/dist/src/utils/codex-shared-native.d.ts +45 -0
- package/dist/src/utils/codex-shared-native.js +122 -0
- package/dist/src/utils/codex-shared-native.js.map +1 -0
- 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-skills-root.d.ts +4 -0
- package/dist/src/utils/codex-skills-root.js +25 -0
- package/dist/src/utils/codex-skills-root.js.map +1 -0
- package/dist/src/utils/codex-surface-analysis.d.ts +49 -0
- package/dist/src/utils/codex-surface-analysis.js +220 -0
- package/dist/src/utils/codex-surface-analysis.js.map +1 -0
- 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 +51 -0
- package/dist/src/utils/component-resources.js +322 -0
- package/dist/src/utils/component-resources.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +18 -6
- package/dist/src/utils/dynamic-skill-tree.js +32 -9
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/git-catalog-provider.d.ts +16 -0
- package/dist/src/utils/git-catalog-provider.js +167 -120
- package/dist/src/utils/git-catalog-provider.js.map +1 -1
- package/dist/src/utils/inventory-recovery-diagnostic.d.ts +4 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js +15 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js.map +1 -0
- package/dist/src/utils/local-marketplace.d.ts +17 -12
- package/dist/src/utils/local-marketplace.js +85 -195
- package/dist/src/utils/local-marketplace.js.map +1 -1
- package/dist/src/utils/managed-command-closure.d.ts +3 -0
- package/dist/src/utils/managed-command-closure.js +35 -0
- package/dist/src/utils/managed-command-closure.js.map +1 -0
- package/dist/src/utils/managed-command-evidence.d.ts +7 -0
- package/dist/src/utils/managed-command-evidence.js +10 -0
- package/dist/src/utils/managed-command-evidence.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +124 -0
- package/dist/src/utils/managed-command-materialization.js +369 -0
- package/dist/src/utils/managed-command-materialization.js.map +1 -0
- 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-runtime.d.ts +33 -0
- package/dist/src/utils/managed-command-runtime.js +121 -0
- package/dist/src/utils/managed-command-runtime.js.map +1 -0
- package/dist/src/utils/managed-command-store.d.ts +143 -0
- package/dist/src/utils/managed-command-store.js +665 -0
- package/dist/src/utils/managed-command-store.js.map +1 -0
- package/dist/src/utils/manifest.d.ts +1 -3
- package/dist/src/utils/manifest.js +1 -3
- package/dist/src/utils/manifest.js.map +1 -1
- package/dist/src/utils/multi-source-catalog.d.ts +1 -10
- package/dist/src/utils/multi-source-catalog.js +9 -175
- package/dist/src/utils/multi-source-catalog.js.map +1 -1
- package/dist/src/utils/native-cli.d.ts +74 -5
- package/dist/src/utils/native-cli.js +479 -31
- package/dist/src/utils/native-cli.js.map +1 -1
- package/dist/src/utils/native-demand.d.ts +29 -0
- package/dist/src/utils/native-demand.js +4 -0
- package/dist/src/utils/native-demand.js.map +1 -0
- package/dist/src/utils/native-tool-context.d.ts +14 -0
- package/dist/src/utils/native-tool-context.js +38 -0
- package/dist/src/utils/native-tool-context.js.map +1 -0
- package/dist/src/utils/native-tool-review.d.ts +18 -0
- package/dist/src/utils/native-tool-review.js +116 -0
- package/dist/src/utils/native-tool-review.js.map +1 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js +0 -1
- package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +103 -21
- package/dist/src/utils/ownership.js +232 -210
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/path-catalog-provider.d.ts +1 -1
- package/dist/src/utils/path-catalog-provider.js +47 -62
- package/dist/src/utils/path-catalog-provider.js.map +1 -1
- package/dist/src/utils/paths.d.ts +1 -2
- package/dist/src/utils/paths.js +5 -3
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/platform-empty-state.d.ts +45 -0
- package/dist/src/utils/platform-empty-state.js +159 -0
- package/dist/src/utils/platform-empty-state.js.map +1 -0
- package/dist/src/utils/platform-support.d.ts +1 -1
- package/dist/src/utils/platform-support.js +1 -1
- package/dist/src/utils/platform-support.js.map +1 -1
- package/dist/src/utils/plugin-config-impact.d.ts +64 -0
- package/dist/src/utils/plugin-config-impact.js +307 -0
- package/dist/src/utils/plugin-config-impact.js.map +1 -0
- package/dist/src/utils/plugin-config-references.d.ts +89 -0
- package/dist/src/utils/plugin-config-references.js +335 -0
- package/dist/src/utils/plugin-config-references.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +109 -27
- package/dist/src/utils/plugin-config-write.js +1242 -348
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +187 -109
- package/dist/src/utils/plugin-config.js +916 -1147
- 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 +78 -127
- package/dist/src/utils/plugin-scripts.js +566 -524
- package/dist/src/utils/plugin-scripts.js.map +1 -1
- package/dist/src/utils/process-lock.js +14 -5
- package/dist/src/utils/process-lock.js.map +1 -1
- package/dist/src/utils/process-tree.d.ts +2 -2
- package/dist/src/utils/process-tree.js +1 -1
- package/dist/src/utils/process-tree.js.map +1 -1
- package/dist/src/utils/project-boundary.d.ts +11 -13
- package/dist/src/utils/project-boundary.js +28 -34
- package/dist/src/utils/project-boundary.js.map +1 -1
- package/dist/src/utils/rendered-contract.js +18 -1
- package/dist/src/utils/rendered-contract.js.map +1 -1
- package/dist/src/utils/runtime-config.d.ts +18 -0
- package/dist/src/utils/runtime-config.js +64 -0
- package/dist/src/utils/runtime-config.js.map +1 -0
- package/dist/src/utils/runtime-skill-closure.d.ts +2 -2
- package/dist/src/utils/runtime-skill-closure.js +47 -6
- package/dist/src/utils/runtime-skill-closure.js.map +1 -1
- 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/safe-operation-diagnostic.d.ts +15 -0
- package/dist/src/utils/safe-operation-diagnostic.js +33 -0
- package/dist/src/utils/safe-operation-diagnostic.js.map +1 -0
- package/dist/src/utils/sensitive-content.d.ts +4 -0
- package/dist/src/utils/sensitive-content.js +36 -0
- package/dist/src/utils/sensitive-content.js.map +1 -0
- package/dist/src/utils/state-paths.d.ts +8 -3
- package/dist/src/utils/state-paths.js +53 -16
- package/dist/src/utils/state-paths.js.map +1 -1
- package/dist/src/utils/target-eligibility.d.ts +4 -3
- package/dist/src/utils/target-eligibility.js +12 -6
- package/dist/src/utils/target-eligibility.js.map +1 -1
- package/dist/src/utils/windows-claude-shim.d.ts +7 -0
- package/dist/src/utils/windows-claude-shim.js +10 -0
- package/dist/src/utils/windows-claude-shim.js.map +1 -0
- package/dist/src/utils/windows-npm-shim.d.ts +16 -0
- package/dist/src/utils/windows-npm-shim.js +155 -0
- package/dist/src/utils/windows-npm-shim.js.map +1 -0
- package/dist/vitest.config.js +105 -9
- package/dist/vitest.config.js.map +1 -1
- package/package.json +30 -21
- package/dist/scripts/aw-skill-eval-engine.d.ts +0 -13
- package/dist/scripts/aw-skill-eval-engine.js +0 -31
- package/dist/scripts/aw-skill-eval-engine.js.map +0 -1
- package/dist/scripts/codex-eval-app-server.d.ts +0 -91
- package/dist/scripts/codex-eval-app-server.js +0 -1334
- package/dist/scripts/codex-eval-app-server.js.map +0 -1
- package/dist/scripts/codex-eval-isolation.d.ts +0 -61
- package/dist/scripts/codex-eval-isolation.js +0 -318
- package/dist/scripts/codex-eval-isolation.js.map +0 -1
- package/dist/scripts/codex-eval-process-management.d.ts +0 -8
- package/dist/scripts/codex-eval-process-management.js +0 -69
- package/dist/scripts/codex-eval-process-management.js.map +0 -1
- package/dist/scripts/codex-eval-process-tree.d.ts +0 -38
- package/dist/scripts/codex-eval-process-tree.js +0 -803
- package/dist/scripts/codex-eval-process-tree.js.map +0 -1
- package/dist/scripts/codex-eval-runtime-config.d.ts +0 -62
- package/dist/scripts/codex-eval-runtime-config.js +0 -843
- package/dist/scripts/codex-eval-runtime-config.js.map +0 -1
- package/dist/scripts/codex-trigger-eval.d.ts +0 -84
- package/dist/scripts/codex-trigger-eval.js +0 -968
- package/dist/scripts/codex-trigger-eval.js.map +0 -1
- package/dist/scripts/eval-plugin-skills-audited.d.ts +0 -6
- package/dist/scripts/eval-plugin-skills-audited.js +0 -261
- package/dist/scripts/eval-plugin-skills-audited.js.map +0 -1
- package/dist/scripts/eval-plugin-skills.d.ts +0 -45
- package/dist/scripts/eval-plugin-skills.js +0 -1589
- package/dist/scripts/eval-plugin-skills.js.map +0 -1
- package/dist/scripts/eval-run-layout.d.ts +0 -17
- package/dist/scripts/eval-run-layout.js +0 -26
- package/dist/scripts/eval-run-layout.js.map +0 -1
- package/dist/scripts/plugin-eval-contract.d.ts +0 -189
- package/dist/scripts/plugin-eval-contract.js +0 -745
- package/dist/scripts/plugin-eval-contract.js.map +0 -1
- package/dist/scripts/plugin-eval-materializer.d.ts +0 -13
- package/dist/scripts/plugin-eval-materializer.js +0 -421
- package/dist/scripts/plugin-eval-materializer.js.map +0 -1
- package/dist/scripts/skill-reporting.d.ts +0 -212
- package/dist/scripts/skill-reporting.js +0 -922
- package/dist/scripts/skill-reporting.js.map +0 -1
- package/dist/src/commands/catalog-context.d.ts +0 -52
- package/dist/src/commands/catalog-context.js +0 -156
- package/dist/src/commands/catalog-context.js.map +0 -1
- package/dist/src/commands/review-publication.d.ts +0 -99
- package/dist/src/commands/review-publication.js +0 -904
- package/dist/src/commands/review-publication.js.map +0 -1
- package/dist/src/commands/status-v5.d.ts +0 -169
- package/dist/src/commands/status-v5.js +0 -1135
- package/dist/src/commands/status-v5.js.map +0 -1
- package/dist/src/portable/skills-cli.d.ts +0 -43
- package/dist/src/portable/skills-cli.js +0 -148
- package/dist/src/portable/skills-cli.js.map +0 -1
- package/dist/src/utils/catalog-manifest-v5.d.ts +0 -5
- package/dist/src/utils/catalog-manifest-v5.js.map +0 -1
- package/dist/src/utils/catalog-source-cache.d.ts +0 -62
- package/dist/src/utils/catalog-source-cache.js +0 -321
- package/dist/src/utils/catalog-source-cache.js.map +0 -1
- package/dist/src/utils/codex-project-surface.d.ts +0 -3
- package/dist/src/utils/codex-project-surface.js +0 -49
- package/dist/src/utils/codex-project-surface.js.map +0 -1
- package/dist/src/utils/lifecycle-active-store.d.ts +0 -147
- package/dist/src/utils/lifecycle-active-store.js +0 -1064
- package/dist/src/utils/lifecycle-active-store.js.map +0 -1
- package/dist/src/utils/plugin-release.d.ts +0 -2
- package/dist/src/utils/plugin-release.js +0 -2
- package/dist/src/utils/plugin-release.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
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
import { describeNativeToolClosure } from '../utils/native-tool-review.js';
|
|
2
|
+
import { operationPlanNativeToolChanges } from '../commands/operation-plan.js';
|
|
3
|
+
import { executeRemovedPluginOutputCleanup, inspectRemovedPluginCleanup, } from '../commands/rebuild-command.js';
|
|
4
|
+
import { bindNativeCliRunnerSignal, getDefaultNativeCliRunner } from '../utils/native-cli.js';
|
|
5
|
+
import { inventoryCatalogSourceReferences } from '../utils/catalog-source-references.js';
|
|
6
|
+
import { hasSharedUserPackage } from '../platforms/layout.js';
|
|
7
|
+
import { withAwHomeMutationLock } from '../utils/aw-home-mutation-lock.js';
|
|
8
|
+
import { parsePluginId } from '../utils/multi-source-catalog.js';
|
|
9
|
+
import { deletePluginConfigStore } from '../utils/plugin-config.js';
|
|
10
|
+
import { observeIntent, removeRoot } from '../intent/intent-store.js';
|
|
11
|
+
import { observePreferences, writePreferences, selectAgents } from '../intent/deployment-preferences.js';
|
|
12
|
+
import { assertNeutralAncestorChain, createScopeContext } from '../intent/scope-context.js';
|
|
13
|
+
import { inspectPortableResidue } from '../portable/recovery.js';
|
|
14
|
+
import { disposePreparedPlatformRebuildSession } from '../commands/rebuild-integration.js';
|
|
15
|
+
import { piProjectRemovalConfirmed } from '../platforms/lifecycle-native.js';
|
|
16
|
+
function evidence(value) {
|
|
17
|
+
return `${value.state}:${value.rawDigest ?? ''}`;
|
|
18
|
+
}
|
|
19
|
+
function diagnostic(code, message = `停用受阻:${code}。`) { return { code, message }; }
|
|
20
|
+
function safeRemovedEvidence(entry) {
|
|
21
|
+
return entry && { platform: entry.platform, scope: entry.scope,
|
|
22
|
+
plannedActions: entry.plan.actions.map(({ action, kind }) => ({ action, kind })) };
|
|
23
|
+
}
|
|
24
|
+
function codeOf(error, fallback) {
|
|
25
|
+
const code = error?.code;
|
|
26
|
+
if (typeof code === 'string')
|
|
27
|
+
return code;
|
|
28
|
+
const removedCode = error instanceof Error ? /\bremovedPlugin[A-Za-z0-9-]+/u.exec(error.message)?.[0] : undefined;
|
|
29
|
+
if (removedCode)
|
|
30
|
+
return removedCode;
|
|
31
|
+
const first = error instanceof Error ? error.message.split(':')[0] : '';
|
|
32
|
+
return /^[A-Za-z][A-Za-z0-9-]*$/u.test(first) ? first : fallback;
|
|
33
|
+
}
|
|
34
|
+
function blocksStrongRetirement(code, deleteConfig) {
|
|
35
|
+
return ['pluginIntentStateInvalid', 'deploymentPreferencesInvalid', 'removedPluginActiveUnavailable',
|
|
36
|
+
'removedPluginIntentSourceMismatch',
|
|
37
|
+
'removedPluginOwnershipConflict', 'removedPluginConfigIdentityConflict',
|
|
38
|
+
'removedPluginMarketplaceIdentityConflict'].includes(code)
|
|
39
|
+
|| deleteConfig && (code === 'removedPluginConfigTargetUnsupported' || code === 'removedPluginConfigTargetUnsafe');
|
|
40
|
+
}
|
|
41
|
+
function nativeInventoryErrors(inventory, pluginId, agent, scope) {
|
|
42
|
+
if (agent === 'generic')
|
|
43
|
+
return [];
|
|
44
|
+
const plugin = parsePluginId(pluginId);
|
|
45
|
+
return inventory.errors.filter((error) => {
|
|
46
|
+
const relevance = error.relevance;
|
|
47
|
+
return !relevance.global && relevance.platform === agent && !error.kind.startsWith('config')
|
|
48
|
+
&& (relevance.sourceId === undefined || relevance.sourceId === plugin.sourceId)
|
|
49
|
+
&& (relevance.pluginName === undefined || relevance.pluginName === plugin.pluginName)
|
|
50
|
+
&& (relevance.scope === undefined || relevance.scope === scope
|
|
51
|
+
|| relevance.scope === 'user' && hasSharedUserPackage(agent));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function retainUnobservedNativeTargets(receipt, inventory, removed) {
|
|
55
|
+
for (const target of receipt.targetResults) {
|
|
56
|
+
const verified = removed?.evidence.some((entry) => entry.platform === target.agent && entry.scope === target.scope
|
|
57
|
+
&& entry.plan.actions.some((action) => action.recoveryCandidate?.evidence === 'verified'
|
|
58
|
+
&& action.recoveryCandidate.binding.plugin.sourceIdentity === removed.sourceIdentity
|
|
59
|
+
&& action.recoveryCandidate.binding.plugin.pluginId === target.pluginId
|
|
60
|
+
&& action.recoveryCandidate.binding.platform === target.agent
|
|
61
|
+
&& action.recoveryCandidate.binding.scope.kind === target.scope));
|
|
62
|
+
// Verified candidates retain the normal cleanup path and its exact failure
|
|
63
|
+
// evidence. Inventory errors fill an observation gap only without a candidate.
|
|
64
|
+
if (verified)
|
|
65
|
+
continue;
|
|
66
|
+
const errors = nativeInventoryErrors(inventory, target.pluginId, target.agent, target.scope);
|
|
67
|
+
if (!errors.length)
|
|
68
|
+
continue;
|
|
69
|
+
target.content = 'unknown';
|
|
70
|
+
target.observation = 'unknown';
|
|
71
|
+
target.execution = 'not-run';
|
|
72
|
+
for (const error of errors) {
|
|
73
|
+
const reason = diagnostic(error.kind === 'nativeNamespaceUnsafe'
|
|
74
|
+
? 'removedPluginMarketplaceProjectionUnsafe' : 'stateInventoryResidual', error.message);
|
|
75
|
+
if (!target.blockers.some((entry) => entry.code === reason.code && entry.message === reason.message))
|
|
76
|
+
target.blockers.push(reason);
|
|
77
|
+
if (!receipt.blockers.some((entry) => entry.code === reason.code && entry.message === reason.message))
|
|
78
|
+
receipt.blockers.push(reason);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function finish(receipt, options, portable, configDeletionCompleted = false) {
|
|
83
|
+
receipt.requestedTargets = receipt.targetResults.map(({ pluginId, agent, scope, delivery }) => ({ pluginId, agent, scope, delivery }));
|
|
84
|
+
receipt.remainingTargets = receipt.targetResults.filter((target) => target.blockers.length
|
|
85
|
+
|| !['applied', 'no-op'].includes(target.execution)).map(({ pluginId, agent, scope, delivery }) => ({ pluginId, agent, scope, delivery }));
|
|
86
|
+
const commandFailures = (receipt.commandResults ?? []).filter((result) => result.state !== 'completed');
|
|
87
|
+
receipt.errors = [...receipt.blockers, ...commandFailures.flatMap((result) => result.errors.length ? result.errors.map((error) => ({ ...error,
|
|
88
|
+
pluginId: `${result.producer.sourceId}/${result.producer.pluginName}` }))
|
|
89
|
+
: [diagnostic('managedCommandRecoveryFailed')])];
|
|
90
|
+
receipt.ok = !receipt.blockers.length && !receipt.remainingTargets.length && !commandFailures.length;
|
|
91
|
+
const agents = [...new Set(receipt.remainingTargets.map((target) => target.agent))];
|
|
92
|
+
const retry = agents.length ? `aw plugin remove ${options.selector} --only outputs --scope ${options.scope}`
|
|
93
|
+
+ agents.map((agent) => ` --target ${agent}`).join('') : undefined;
|
|
94
|
+
receipt.recoveryActions = [...new Set([
|
|
95
|
+
...(receipt.commandResults ?? []).flatMap((result) => result.recoveryActions),
|
|
96
|
+
...(!receipt.ok ? [...portable.targets.map((entry) => `请检查并备份 Portable 目录 ${entry.physicalPath};核验共享读取和归属后自行移开,AW 不自动删除。`),
|
|
97
|
+
...(retry ? [retry] : []),
|
|
98
|
+
...(options.deleteConfig && !configDeletionCompleted
|
|
99
|
+
? ['Review the remaining user-wide plugin configuration before requesting a new removal with --delete-config.'] : [])] : []),
|
|
100
|
+
])];
|
|
101
|
+
return receipt;
|
|
102
|
+
}
|
|
103
|
+
export async function prepareRetire(options, runtime = {}) {
|
|
104
|
+
options.signal?.throwIfAborted();
|
|
105
|
+
const ownsPreparedResults = runtime.preparedArtifactRenderResults === undefined;
|
|
106
|
+
const preparedResults = runtime.preparedArtifactRenderResults ?? new Map();
|
|
107
|
+
runtime = { ...runtime, preparedArtifactRenderResults: preparedResults };
|
|
108
|
+
const context = await createScopeContext({ scope: options.scope, cwd: options.cwd, env: options.env });
|
|
109
|
+
if (ownsPreparedResults) {
|
|
110
|
+
const dispose = context.dispose;
|
|
111
|
+
context.dispose = async () => {
|
|
112
|
+
try {
|
|
113
|
+
await disposePreparedPlatformRebuildSession(preparedResults);
|
|
114
|
+
}
|
|
115
|
+
finally {
|
|
116
|
+
await dispose();
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
try {
|
|
121
|
+
options.signal?.throwIfAborted();
|
|
122
|
+
const parsed = parsePluginId(options.selector);
|
|
123
|
+
if (!parsed.sourceId || `${parsed.sourceId}/${parsed.pluginName}` !== options.selector)
|
|
124
|
+
throw new Error('invalidArguments');
|
|
125
|
+
const [intent, preferences] = await Promise.all([
|
|
126
|
+
observeIntent({ ...options, cwd: context.executionCwd, env: context.env }),
|
|
127
|
+
observePreferences({ ...options, cwd: context.executionCwd, env: context.env }),
|
|
128
|
+
]);
|
|
129
|
+
const blockers = [];
|
|
130
|
+
if (intent.state !== 'valid' && intent.state !== 'absent')
|
|
131
|
+
blockers.push(diagnostic('pluginIntentStateInvalid'));
|
|
132
|
+
if (preferences.state === 'invalid' || preferences.state === 'unreadable') {
|
|
133
|
+
blockers.push(diagnostic('deploymentPreferencesInvalid'));
|
|
134
|
+
}
|
|
135
|
+
const inventory = await (runtime.inventoryCatalogSourceReferences ?? inventoryCatalogSourceReferences)({
|
|
136
|
+
cwd: context.executionCwd, env: context.env, scope: options.scope, includeProjectAgentSkills: true,
|
|
137
|
+
});
|
|
138
|
+
options.signal?.throwIfAborted();
|
|
139
|
+
const removed = await inspectRemovedPluginCleanup({ pluginId: options.selector, scope: options.scope,
|
|
140
|
+
inventory, cwd: context.executionCwd, env: context.env,
|
|
141
|
+
nativeCliRunner: bindNativeCliRunnerSignal(runtime.nativeCliRunner ?? getDefaultNativeCliRunner(), options.signal),
|
|
142
|
+
codexManager: runtime.codexManager });
|
|
143
|
+
options.signal?.throwIfAborted();
|
|
144
|
+
if (!removed)
|
|
145
|
+
blockers.push(diagnostic('removedPluginActiveUnavailable', '需要健康的本地 Active 和插件缺席证据,才能停用已移除插件。'));
|
|
146
|
+
else
|
|
147
|
+
blockers.push(...removed.blockers.map((message) => diagnostic(codeOf(new Error(message), 'removedPluginBlocked'))));
|
|
148
|
+
if (removed && intent.state === 'valid'
|
|
149
|
+
&& intent.value.roots.some((root) => root.pluginId === options.selector)
|
|
150
|
+
&& intent.value.sources[parsed.sourceId]?.logicalIdentity !== removed.logicalIdentity) {
|
|
151
|
+
blockers.push(diagnostic('removedPluginIntentSourceMismatch'));
|
|
152
|
+
}
|
|
153
|
+
const requestedAgents = options.targets === undefined ? undefined : selectAgents({ preferences, targets: options.targets }).agents;
|
|
154
|
+
const portable = await inspectPortableResidue({ scope: options.scope, context, selector: options.selector,
|
|
155
|
+
env: context.env, agents: requestedAgents?.filter((agent) => agent === 'generic'), signal: options.signal });
|
|
156
|
+
options.signal?.throwIfAborted();
|
|
157
|
+
const agents = requestedAgents ?? [...new Set([
|
|
158
|
+
...(removed?.evidence.map((entry) => entry.platform) ?? []),
|
|
159
|
+
...(removed && (removed.nativeState === 'installed' || removed.nativeState === 'unknown'
|
|
160
|
+
|| removed.projectionPresent || removed.activationScopes.length > 0) ? ['codex'] : []),
|
|
161
|
+
...portable.targets.map((entry) => entry.agent),
|
|
162
|
+
...(portable.unknownAgents ?? []),
|
|
163
|
+
...inventory.errors.flatMap((error) => !error.relevance.global && error.relevance.platform
|
|
164
|
+
&& nativeInventoryErrors(inventory, options.selector, error.relevance.platform, options.scope).includes(error)
|
|
165
|
+
? [error.relevance.platform] : []),
|
|
166
|
+
])];
|
|
167
|
+
const targetResults = agents.map((agent) => {
|
|
168
|
+
const delivery = agent === 'generic' ? { kind: 'agent-skills', provider: 'aw', agentId: 'generic' }
|
|
169
|
+
: { kind: 'native', platform: agent };
|
|
170
|
+
const portableUnknown = portable.unknownAgents?.some((item) => item === agent) ?? portable.state === 'unknown';
|
|
171
|
+
const hasPortable = agent === 'generic' && (portableUnknown || portable.targets.some((target) => target.agent === agent));
|
|
172
|
+
const hasNative = delivery.kind === 'native' && (removed?.evidence.some((entry) => entry.platform === (delivery.kind === 'native' ? delivery.platform : undefined))
|
|
173
|
+
|| agent === 'codex' && (removed?.nativeState === 'installed' || removed?.nativeState === 'unknown'
|
|
174
|
+
|| removed?.projectionPresent || (removed?.activationScopes.length ?? 0) > 0));
|
|
175
|
+
return { pluginId: options.selector, agent, scope: options.scope, delivery,
|
|
176
|
+
execution: 'not-run', observation: 'unknown', content: hasPortable || hasNative ? 'unknown' : 'absent',
|
|
177
|
+
blockers: hasPortable ? [diagnostic(portableUnknown
|
|
178
|
+
? 'portableObservationFailed' : 'backend-action-unsupported')] : [], requiredBy: [options.selector],
|
|
179
|
+
relation: 'residue', backend: { native: safeRemovedEvidence(removed?.evidence.find((entry) => entry.platform === (delivery.kind === 'native' ? delivery.platform : undefined))),
|
|
180
|
+
portable: portable.targets.filter((entry) => entry.agent === agent) } };
|
|
181
|
+
});
|
|
182
|
+
const roots = intent.state === 'valid' ? intent.value.roots.map((root) => root.pluginId)
|
|
183
|
+
: intent.state === 'absent' ? [] : null;
|
|
184
|
+
const selection = preferences.state === 'valid' || preferences.state === 'absent'
|
|
185
|
+
? selectAgents({ preferences, targets: options.targets })
|
|
186
|
+
: { agents: [], origin: 'none', preferences: preferences.state };
|
|
187
|
+
const receipt = { schemaVersion: 1, kind: 'aw-recovery', scope: options.scope,
|
|
188
|
+
command: 'intent:retire', ok: false, intent: { state: intent.state,
|
|
189
|
+
...('digest' in intent ? { digest: intent.digest } : {}), roots }, requestedRoots: [options.selector],
|
|
190
|
+
requestedTargets: [], selection, blockers, errors: [], targetResults, remainingTargets: [], recoveryActions: [],
|
|
191
|
+
declarationChanged: false, preferencesChanged: false, configChanged: false, outputsMayHaveChanged: false };
|
|
192
|
+
retainUnobservedNativeTargets(receipt, inventory, removed);
|
|
193
|
+
const plannedImpact = {
|
|
194
|
+
declaration: roots?.includes(options.selector) === true,
|
|
195
|
+
preferences: !options.preservePreferences && preferences.state === 'valid' && preferences.value.exclusions.some((entry) => entry.plugin === options.selector),
|
|
196
|
+
config: options.deleteConfig === true && removed?.configTargets.some((entry) => entry.scope === options.scope && entry.kind !== 'absent') === true,
|
|
197
|
+
outputs: removed?.evidence.some((entry) => entry.plan.actions.length > 0
|
|
198
|
+
&& agents.includes(entry.platform)) === true,
|
|
199
|
+
};
|
|
200
|
+
const changes = [
|
|
201
|
+
...(plannedImpact.declaration ? [`删除 ${options.scope} 声明 ${options.selector}。`] : []),
|
|
202
|
+
...(plannedImpact.preferences ? [`删除此插件的本机平台排除。`] : []),
|
|
203
|
+
...(plannedImpact.config ? [`删除 ${options.scope} 已保存配置。`] : []),
|
|
204
|
+
...agents.filter((agent) => agent !== 'generic').map((agent) => `检查并清理 ${options.scope}/${agent} 已验证原生输出。`),
|
|
205
|
+
];
|
|
206
|
+
const preview = removed ? await executeRemovedPluginOutputCleanup({ target: removed,
|
|
207
|
+
selectedTargets: targetResults.flatMap((target) => target.delivery?.kind === 'native' && !target.blockers.length
|
|
208
|
+
? [{ pluginId: target.pluginId, platform: target.delivery.platform, scope: target.scope }] : []),
|
|
209
|
+
context, runtime: { ...runtime, previewOperationPlan: true,
|
|
210
|
+
nativeCliRunner: bindNativeCliRunnerSignal(runtime.nativeCliRunner ?? getDefaultNativeCliRunner(), options.signal) },
|
|
211
|
+
}) : undefined;
|
|
212
|
+
options.signal?.throwIfAborted();
|
|
213
|
+
const nativeToolChanges = preview?.operationPlan ? operationPlanNativeToolChanges(preview.operationPlan) : [];
|
|
214
|
+
if (nativeToolChanges.length)
|
|
215
|
+
receipt.nativeToolChanges = nativeToolChanges;
|
|
216
|
+
for (const change of nativeToolChanges) {
|
|
217
|
+
if (change.before)
|
|
218
|
+
changes.push(...describeNativeToolClosure(change.before).map((description) => `撤销原生工具 · ${change.producer.sourceId}/${change.producer.pluginName} · ${change.producer.key} · ${description}`));
|
|
219
|
+
}
|
|
220
|
+
for (const action of preview?.operationPlan?.actions ?? []) {
|
|
221
|
+
if (action.kind !== 'retainManagedCommandPackage')
|
|
222
|
+
continue;
|
|
223
|
+
changes.push(`保留命令包 ${action.producer.key}:${action.producer.sourceId}/${action.producer.pluginName}`
|
|
224
|
+
+ ` · ${action.producer.scope === 'user' ? '所有项目共用' : '当前项目内共用'}`
|
|
225
|
+
+ ` · ${action.commandIds.length} 个命令 · ${action.availability} · ${action.recoveryAction}`);
|
|
226
|
+
}
|
|
227
|
+
const { signal: _signal, ...executionOptions } = options;
|
|
228
|
+
return { options: executionOptions, context, evidence: removed, portable, receipt: finish(receipt, options, portable),
|
|
229
|
+
intentEvidence: evidence(intent), preferenceEvidence: evidence(preferences), plannedImpact, changes,
|
|
230
|
+
...(preview?.operationPlan ? { operationPlan: preview.operationPlan } : {}),
|
|
231
|
+
warnings: portable.state === 'present' ? ['Portable 输出需人工核验,AW 不自动删除。'] : [], runtime };
|
|
232
|
+
}
|
|
233
|
+
catch (error) {
|
|
234
|
+
await context.dispose();
|
|
235
|
+
throw error;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
export async function executeRetire(plan, execution = {}) {
|
|
239
|
+
const receipt = structuredClone(plan.receipt);
|
|
240
|
+
const runtime = { ...plan.runtime, ...execution.runtime };
|
|
241
|
+
let configDeletionCompleted = false;
|
|
242
|
+
try {
|
|
243
|
+
for (const target of receipt.targetResults) {
|
|
244
|
+
if (target.delivery?.kind === 'agent-skills' && plan.portable.state === 'absent'
|
|
245
|
+
&& target.content === 'absent' && target.blockers.length === 0) {
|
|
246
|
+
target.execution = 'no-op';
|
|
247
|
+
target.observation = 'missing';
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if (plan.changes.length === 0 && plan.portable.state === 'absent'
|
|
251
|
+
&& plan.receipt.blockers.length === 0)
|
|
252
|
+
return finish(receipt, plan.options, plan.portable);
|
|
253
|
+
if (execution.yes !== true && plan.options.yes !== true) {
|
|
254
|
+
receipt.blockers.push(diagnostic('operationReviewRequired'));
|
|
255
|
+
return finish(receipt, plan.options, plan.portable);
|
|
256
|
+
}
|
|
257
|
+
const freshContext = await createScopeContext({ scope: plan.options.scope,
|
|
258
|
+
cwd: plan.context.callerCwd, env: plan.context.env });
|
|
259
|
+
const environmentStable = freshContext.awHome === plan.context.awHome
|
|
260
|
+
&& freshContext.generationRoot === plan.context.generationRoot
|
|
261
|
+
&& freshContext.projectKey === plan.context.projectKey
|
|
262
|
+
&& JSON.stringify(freshContext.targetHomes) === JSON.stringify(plan.context.targetHomes);
|
|
263
|
+
await freshContext.dispose();
|
|
264
|
+
const executionCwdStable = plan.options.scope !== 'user'
|
|
265
|
+
|| await assertNeutralAncestorChain(plan.context.executionCwd)
|
|
266
|
+
.then((value) => value === plan.context.executionCwd, () => false);
|
|
267
|
+
if (!environmentStable || !executionCwdStable) {
|
|
268
|
+
receipt.blockers.push(diagnostic('operationReviewStale'));
|
|
269
|
+
return finish(receipt, plan.options, plan.portable);
|
|
270
|
+
}
|
|
271
|
+
return await withAwHomeMutationLock({ env: plan.context.env, token: runtime.awHomeMutationToken,
|
|
272
|
+
action: async (token) => {
|
|
273
|
+
if (receipt.blockers.some((entry) => blocksStrongRetirement(entry.code, plan.options.deleteConfig === true))) {
|
|
274
|
+
return finish(receipt, plan.options, plan.portable);
|
|
275
|
+
}
|
|
276
|
+
const location = { scope: plan.options.scope, cwd: plan.context.executionCwd, env: plan.context.env, token };
|
|
277
|
+
const [intent, preferences] = await Promise.all([observeIntent(location), observePreferences(location)]);
|
|
278
|
+
if (evidence(intent) !== plan.intentEvidence || evidence(preferences) !== plan.preferenceEvidence) {
|
|
279
|
+
receipt.blockers.push(diagnostic('operationReviewStale'));
|
|
280
|
+
return finish(receipt, plan.options, plan.portable);
|
|
281
|
+
}
|
|
282
|
+
const inventory = await (runtime.inventoryCatalogSourceReferences ?? inventoryCatalogSourceReferences)({
|
|
283
|
+
cwd: plan.context.executionCwd, env: plan.context.env, scope: plan.options.scope,
|
|
284
|
+
includeProjectAgentSkills: true,
|
|
285
|
+
});
|
|
286
|
+
const current = await inspectRemovedPluginCleanup({ pluginId: plan.options.selector, scope: plan.options.scope,
|
|
287
|
+
inventory, cwd: plan.context.executionCwd, env: plan.context.env,
|
|
288
|
+
nativeCliRunner: runtime.nativeCliRunner ?? getDefaultNativeCliRunner(), codexManager: runtime.codexManager });
|
|
289
|
+
retainUnobservedNativeTargets(receipt, inventory, current);
|
|
290
|
+
if (!current || !plan.evidence || current.sourceIdentity !== plan.evidence.sourceIdentity
|
|
291
|
+
|| current.logicalIdentity !== plan.evidence.logicalIdentity
|
|
292
|
+
|| current.snapshotDigest !== plan.evidence.snapshotDigest
|
|
293
|
+
|| current.projectionFingerprint !== plan.evidence.projectionFingerprint
|
|
294
|
+
|| current.marketplaceEvidenceFingerprint !== plan.evidence.marketplaceEvidenceFingerprint
|
|
295
|
+
|| current.nativeObservationFingerprint !== plan.evidence.nativeObservationFingerprint
|
|
296
|
+
|| JSON.stringify(current.configTargets) !== JSON.stringify(plan.evidence.configTargets)
|
|
297
|
+
|| JSON.stringify(current.evidence) !== JSON.stringify(plan.evidence.evidence)) {
|
|
298
|
+
receipt.blockers.push(diagnostic('operationReviewStale'));
|
|
299
|
+
return finish(receipt, plan.options, plan.portable);
|
|
300
|
+
}
|
|
301
|
+
const portable = await inspectPortableResidue({ scope: plan.options.scope, context: plan.context,
|
|
302
|
+
selector: plan.options.selector, env: plan.context.env, agents: plan.options.targets === undefined
|
|
303
|
+
? undefined : plan.receipt.selection.agents.filter((agent) => agent === 'generic') }).catch(() => undefined);
|
|
304
|
+
if (!portable || JSON.stringify(portable) !== JSON.stringify(plan.portable)) {
|
|
305
|
+
receipt.blockers.push(diagnostic('operationReviewStale'));
|
|
306
|
+
return finish(receipt, plan.options, plan.portable);
|
|
307
|
+
}
|
|
308
|
+
if (plan.operationPlan) {
|
|
309
|
+
await executeRemovedPluginOutputCleanup({ target: current,
|
|
310
|
+
selectedTargets: receipt.targetResults.flatMap((target) => target.delivery?.kind === 'native' && !target.blockers.length
|
|
311
|
+
? [{ pluginId: target.pluginId, platform: target.delivery.platform, scope: target.scope }] : []),
|
|
312
|
+
context: plan.context, runtime: { ...runtime, awHomeMutationToken: token,
|
|
313
|
+
previewOperationPlan: true, expectedPlanFingerprint: plan.operationPlan.planFingerprint } });
|
|
314
|
+
}
|
|
315
|
+
const refreshIntent = async () => {
|
|
316
|
+
const refreshed = await observeIntent(location);
|
|
317
|
+
receipt.intent = { state: refreshed.state, ...('digest' in refreshed ? { digest: refreshed.digest } : {}),
|
|
318
|
+
roots: refreshed.state === 'valid' ? refreshed.value.roots.map((root) => root.pluginId)
|
|
319
|
+
: refreshed.state === 'absent' ? [] : null };
|
|
320
|
+
};
|
|
321
|
+
try {
|
|
322
|
+
if (intent.state === 'valid' && intent.value.roots.some((root) => root.pluginId === plan.options.selector)) {
|
|
323
|
+
const result = await removeRoot(location, plan.options.selector);
|
|
324
|
+
receipt.declarationChanged = result.changed;
|
|
325
|
+
}
|
|
326
|
+
if (!plan.options.preservePreferences && preferences.state === 'valid') {
|
|
327
|
+
const next = preferences.value.exclusions.filter((entry) => entry.plugin !== plan.options.selector);
|
|
328
|
+
if (next.length !== preferences.value.exclusions.length) {
|
|
329
|
+
const result = await writePreferences(location, { ...preferences.value, exclusions: next });
|
|
330
|
+
receipt.preferencesChanged = result.changed;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
if (plan.options.deleteConfig && plan.evidence) {
|
|
334
|
+
const result = await deletePluginConfigStore({ sourceId: plan.evidence.sourceId,
|
|
335
|
+
sourceIdentity: plan.evidence.sourceIdentity, pluginName: plan.evidence.pluginName,
|
|
336
|
+
scope: 'user', cwd: plan.context.executionCwd, env: plan.context.env });
|
|
337
|
+
receipt.configChanged = result.deleted;
|
|
338
|
+
configDeletionCompleted = true;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
catch (error) {
|
|
342
|
+
receipt.blockers.push(diagnostic(codeOf(error, 'retireConfigurationFailed')));
|
|
343
|
+
await refreshIntent();
|
|
344
|
+
return finish(receipt, plan.options, plan.portable);
|
|
345
|
+
}
|
|
346
|
+
await refreshIntent();
|
|
347
|
+
if (plan.evidence) {
|
|
348
|
+
const selectedTargets = receipt.targetResults.flatMap((target) => target.delivery?.kind === 'native' && !target.blockers.length
|
|
349
|
+
? [{ pluginId: target.pluginId, platform: target.delivery.platform, scope: target.scope }] : []);
|
|
350
|
+
if (selectedTargets.length || plan.operationPlan?.actions.some((action) => action.kind === 'retainManagedCommandPackage')) {
|
|
351
|
+
try {
|
|
352
|
+
const result = await executeRemovedPluginOutputCleanup({ target: plan.evidence, selectedTargets,
|
|
353
|
+
context: plan.context, runtime: { ...runtime, awHomeMutationToken: token,
|
|
354
|
+
expectedPlanFingerprint: plan.operationPlan?.planFingerprint } });
|
|
355
|
+
if (result.commandResults?.length)
|
|
356
|
+
receipt.commandResults = result.commandResults;
|
|
357
|
+
receipt.outputsMayHaveChanged = result.rebuildResults.some((entry) => entry.actions.length > 0);
|
|
358
|
+
let partialAttributed = result.commandResults?.some((entry) => entry.state !== 'completed') === true;
|
|
359
|
+
for (const target of receipt.targetResults.filter((entry) => entry.delivery?.kind === 'native' && !entry.blockers.length)) {
|
|
360
|
+
const platform = target.delivery?.kind === 'native' ? target.delivery.platform : undefined;
|
|
361
|
+
const backendTargets = result.targetResults.filter((entry) => entry.target.pluginId === target.pluginId
|
|
362
|
+
&& entry.target.scope === target.scope && entry.target.platform === platform);
|
|
363
|
+
const rebuildTargets = result.rebuildResults.filter((entry) => entry.target.pluginId === target.pluginId
|
|
364
|
+
&& entry.target.scope === target.scope && entry.target.platform === platform);
|
|
365
|
+
const deployments = rebuildTargets.flatMap((entry) => entry.deploymentReceipts ?? []);
|
|
366
|
+
const deploymentPlans = (result.operationPlan?.deploymentPlans ?? plan.operationPlan?.deploymentPlans ?? [])
|
|
367
|
+
.filter((entry) => entry.binding.plugin.pluginId === target.pluginId
|
|
368
|
+
&& entry.binding.platform === platform && entry.binding.scope.kind === target.scope);
|
|
369
|
+
if (deployments.length)
|
|
370
|
+
target.deploymentReceipts = deployments.map((entry) => ({ ...entry,
|
|
371
|
+
products: deploymentPlans.find((candidate) => candidate.binding.id === entry.bindingId)?.binding.consumers ?? [] }));
|
|
372
|
+
const nativeIncomplete = deployments.some((entry) => {
|
|
373
|
+
const expected = deploymentPlans.find((candidate) => candidate.binding.id === entry.bindingId);
|
|
374
|
+
const after = entry.after;
|
|
375
|
+
const removedByCommand = expected && piProjectRemovalConfirmed(expected, entry);
|
|
376
|
+
const inactive = removedByCommand || after.registration === 'absent'
|
|
377
|
+
|| after.package === 'absent' && after.registration === 'not-applicable'
|
|
378
|
+
|| after.consumers.every((consumer) => ['disabled', 'not-applicable'].includes(consumer.activation))
|
|
379
|
+
|| expected?.binding.scope.kind === 'project' && (after.scopeRegistration === 'absent'
|
|
380
|
+
|| ['codex', 'gemini', 'copilot'].includes(platform ?? '') && after.configuration?.activation === 'absent');
|
|
381
|
+
const unknown = after.package === 'unknown' || after.registration === 'unknown' && !removedByCommand
|
|
382
|
+
|| after.ownership === 'unknown' || after.ownership === 'foreign';
|
|
383
|
+
const keptForConsumer = !unknown && inactive && expected?.evidence.sharedReferences === 'present';
|
|
384
|
+
return unknown || !inactive || !keptForConsumer
|
|
385
|
+
&& (after.package === 'present' || after.registration === 'present');
|
|
386
|
+
});
|
|
387
|
+
const failed = backendTargets.some((entry) => entry.state === 'failed');
|
|
388
|
+
const commandFailures = (result.commandResults ?? []).filter((entry) => entry.state !== 'completed'
|
|
389
|
+
&& entry.producer.sourceId === plan.evidence.sourceId
|
|
390
|
+
&& entry.producer.sourceIdentity === plan.evidence.sourceIdentity
|
|
391
|
+
&& entry.producer.pluginName === plan.evidence.pluginName
|
|
392
|
+
&& entry.producer.platform === platform);
|
|
393
|
+
const sharedNativePreserved = platform === 'codex'
|
|
394
|
+
&& result.warnings.some((warning) => warning.startsWith('sharedNativePreserved:'));
|
|
395
|
+
const preserved = rebuildTargets.some((entry) => entry.residual.length > 0 || entry.quarantined.length > 0)
|
|
396
|
+
|| (deployments.length ? nativeIncomplete : backendTargets.some((entry) => entry.action === 'keep') || sharedNativePreserved);
|
|
397
|
+
target.execution = failed ? 'failed' : commandFailures.length
|
|
398
|
+
? backendTargets.length ? 'partial' : 'failed' : backendTargets.length ? 'applied' : 'no-op';
|
|
399
|
+
if (!failed && nativeIncomplete)
|
|
400
|
+
target.execution = deployments.some((entry) => entry.effects.some((effect) => effect.mutation !== 'none')) ? 'partial' : 'not-run';
|
|
401
|
+
target.observation = failed || commandFailures.length ? 'unknown'
|
|
402
|
+
: target.content === 'absent' ? 'missing' : 'unknown';
|
|
403
|
+
target.backend = backendTargets.map((entry) => {
|
|
404
|
+
const matching = rebuildTargets.filter((result) => result.target.pluginId === entry.target.pluginId
|
|
405
|
+
&& result.target.platform === entry.target.platform && result.target.scope === entry.target.scope);
|
|
406
|
+
return { target: { pluginId: entry.target.pluginId, platform: entry.target.platform,
|
|
407
|
+
scope: entry.target.scope }, action: entry.action, state: entry.state,
|
|
408
|
+
...(entry.errorCode ? { errorCode: entry.errorCode } : {}),
|
|
409
|
+
residual: [...new Set(matching.flatMap((result) => result.residual))],
|
|
410
|
+
quarantined: [...new Set(matching.flatMap((result) => result.quarantined))] };
|
|
411
|
+
});
|
|
412
|
+
if (failed)
|
|
413
|
+
target.blockers.push(diagnostic('nativeRetireFailed'));
|
|
414
|
+
else if (preserved)
|
|
415
|
+
target.blockers.push(diagnostic('sharedNativePreserved'));
|
|
416
|
+
if (deployments.some((entry) => entry.after.ownership === 'foreign'))
|
|
417
|
+
target.blockers.push(diagnostic('deploymentOwnershipUnconfirmed'));
|
|
418
|
+
if (deployments.some((entry) => {
|
|
419
|
+
const expected = deploymentPlans.find((candidate) => candidate.binding.id === entry.bindingId);
|
|
420
|
+
return entry.after.registration === 'unknown' && !(expected && piProjectRemovalConfirmed(expected, entry))
|
|
421
|
+
|| entry.after.package === 'unknown' || entry.after.ownership === 'unknown';
|
|
422
|
+
}))
|
|
423
|
+
target.blockers.push(diagnostic('nativeObservationUnknown'));
|
|
424
|
+
const observedReasons = deployments.flatMap((entry) => [...entry.diagnostics, ...entry.after.diagnostics]);
|
|
425
|
+
if (observedReasons.length)
|
|
426
|
+
target.reasons = [...new Map(observedReasons.map((entry) => [entry.code, diagnostic(entry.code, entry.message)])).values()];
|
|
427
|
+
for (const producer of commandFailures) {
|
|
428
|
+
target.blockers.push(...(producer.errors.length ? producer.errors.map((error) => diagnostic(error.code, error.message)) : [diagnostic('managedCommandRecoveryFailed')]));
|
|
429
|
+
}
|
|
430
|
+
partialAttributed ||= failed || preserved || commandFailures.length > 0;
|
|
431
|
+
}
|
|
432
|
+
if (result.overallState === 'partial' && !partialAttributed) {
|
|
433
|
+
receipt.blockers.push(diagnostic('nativeRetirePartial'));
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
catch (error) {
|
|
437
|
+
for (const target of receipt.targetResults.filter((entry) => entry.delivery?.kind === 'native')) {
|
|
438
|
+
target.execution = 'failed';
|
|
439
|
+
target.blockers.push(diagnostic(codeOf(error, 'nativeRetireFailed')));
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
if (portable.state === 'unknown' && receipt.targetResults.some((target) => target.agent === 'generic')
|
|
445
|
+
&& !receipt.targetResults.some((target) => target.blockers.some((entry) => entry.code === 'portableObservationFailed'))) {
|
|
446
|
+
receipt.blockers.push(diagnostic('portableObservationFailed'));
|
|
447
|
+
}
|
|
448
|
+
return finish(receipt, plan.options, plan.portable, configDeletionCompleted);
|
|
449
|
+
} });
|
|
450
|
+
}
|
|
451
|
+
finally {
|
|
452
|
+
await plan.context.dispose();
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
export async function runRetire(options, runtime = {}) {
|
|
456
|
+
const plan = await prepareRetire(options, runtime);
|
|
457
|
+
if (options.interactive && options.yes !== true && options.prompt?.confirm && plan.changes.length) {
|
|
458
|
+
const response = await options.prompt.confirm({ defaultValue: false,
|
|
459
|
+
message: [...plan.changes, ...plan.warnings, '是否执行以上停用步骤?'].join('\n') });
|
|
460
|
+
if (response.cancelled || response.value !== true) {
|
|
461
|
+
plan.receipt.blockers.push(diagnostic('operationCancelled'));
|
|
462
|
+
await plan.context.dispose();
|
|
463
|
+
return finish(plan.receipt, plan.options, plan.portable);
|
|
464
|
+
}
|
|
465
|
+
return executeRetire(plan, { yes: true });
|
|
466
|
+
}
|
|
467
|
+
return executeRetire(plan);
|
|
468
|
+
}
|
|
469
|
+
//# sourceMappingURL=retirement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retirement.js","sourceRoot":"","sources":["../../../src/recovery/retirement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAG3E,OAAO,EAAE,8BAA8B,EAAsB,MAAM,+BAA+B,CAAC;AACnG,OAAO,EACL,iCAAiC,EAAE,2BAA2B,GAE/D,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EAAwC,MAAM,uCAAuC,CAAC;AAC/H,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACzG,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAqB,MAAM,4BAA4B,CAAC;AAC/G,OAAO,EAAE,sBAAsB,EAAwB,MAAM,yBAAyB,CAAC;AAEvF,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAgC7E,SAAS,QAAQ,CAAC,KAA4C;IAC5D,OAAO,GAAG,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,SAAS,IAAI,EAAE,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