@lesliechan721/aw 0.1.0-beta.9 → 0.1.0-beta.91
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/assets/command-runtime-config.d.mts +9 -0
- package/dist/authoring/assets/command-runtime-config.mjs +134 -0
- package/dist/authoring/assets/command-runtime-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.mjs +15 -38
- package/dist/authoring/scripts/add-skill.mjs.map +1 -1
- package/dist/authoring/scripts/init-plugin.mjs +72 -96
- 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 +2 -2
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +4 -7
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-plugin.mjs +416 -1995
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-skill.mjs +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +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 +11 -1
- package/dist/scripts/aw-skill-eval-materializer.js +118 -115
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -1
- package/dist/scripts/bundle-plugins.js +25 -7
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/plugin-staging.d.ts +7 -7
- package/dist/scripts/plugin-staging.js +10 -8
- 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 +284 -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 +3 -0
- 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 +1 -1
- package/dist/src/commands/aw-capabilities.js +42 -21
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/catalog-dev-source.d.ts +42 -3
- package/dist/src/commands/catalog-dev-source.js +351 -43
- package/dist/src/commands/catalog-dev-source.js.map +1 -1
- package/dist/src/commands/catalog-generation.d.ts +8 -0
- package/dist/src/commands/catalog-generation.js +1 -5
- package/dist/src/commands/catalog-generation.js.map +1 -1
- package/dist/src/commands/catalog-publication-inspection.d.ts +42 -3
- package/dist/src/commands/catalog-publication-inspection.js +379 -48
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -1
- package/dist/src/commands/catalog-publication-journal.d.ts +23 -4
- package/dist/src/commands/catalog-publication-journal.js +165 -20
- package/dist/src/commands/catalog-publication-journal.js.map +1 -1
- package/dist/src/commands/catalog-publish.d.ts +34 -3
- package/dist/src/commands/catalog-publish.js +311 -165
- package/dist/src/commands/catalog-publish.js.map +1 -1
- package/dist/src/commands/catalog-source.d.ts +54 -8
- package/dist/src/commands/catalog-source.js +277 -15
- package/dist/src/commands/catalog-source.js.map +1 -1
- package/dist/src/commands/catalog-status.js +2 -2
- 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 +4 -0
- package/dist/src/commands/catalog-workspace-resolution.js +18 -3
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -1
- package/dist/src/commands/console.js +33 -20
- package/dist/src/commands/console.js.map +1 -1
- package/dist/src/commands/dependency-operation-plan.d.ts +14 -56
- package/dist/src/commands/dependency-operation-plan.js +90 -133
- package/dist/src/commands/dependency-operation-plan.js.map +1 -1
- package/dist/src/commands/deployment-confirmation.d.ts +11 -0
- package/dist/src/commands/deployment-confirmation.js +88 -0
- package/dist/src/commands/deployment-confirmation.js.map +1 -0
- package/dist/src/commands/init.js +1 -1
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/intent-command.d.ts +34 -0
- package/dist/src/commands/intent-command.js +174 -0
- package/dist/src/commands/intent-command.js.map +1 -0
- package/dist/src/commands/lifecycle-command-package.d.ts +45 -0
- package/dist/src/commands/lifecycle-command-package.js +199 -0
- package/dist/src/commands/lifecycle-command-package.js.map +1 -0
- package/dist/src/commands/managed-commands.d.ts +41 -0
- package/dist/src/commands/managed-commands.js +404 -0
- package/dist/src/commands/managed-commands.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +29 -3
- package/dist/src/commands/offline-cleanup-evidence.js +80 -10
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
- package/dist/src/commands/operation-plan.d.ts +191 -0
- package/dist/src/commands/operation-plan.js +96 -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 +11 -20
- package/dist/src/commands/options.js +31 -36
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/permission-batch.d.ts +5 -0
- package/dist/src/commands/permission-batch.js +80 -0
- package/dist/src/commands/permission-batch.js.map +1 -0
- package/dist/src/commands/plugin-capabilities.js +96 -46
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-config-confirmation.d.ts +14 -0
- package/dist/src/commands/public-config-confirmation.js +73 -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 +106 -0
- package/dist/src/commands/public-lifecycle-result.js +518 -0
- package/dist/src/commands/public-lifecycle-result.js.map +1 -0
- package/dist/src/commands/public-lifecycle.d.ts +27 -0
- package/dist/src/commands/public-lifecycle.js +563 -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 +230 -0
- package/dist/src/commands/public-plugin-query.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +176 -25
- package/dist/src/commands/rebuild-command.js +3989 -1392
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +133 -52
- package/dist/src/commands/rebuild-integration.js +1097 -2692
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +74 -23
- package/dist/src/commands/rebuild-operations.js +334 -227
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +81 -0
- package/dist/src/commands/rebuild-platform-integration.js +1992 -0
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -0
- package/dist/src/commands/reconcile-operation-plan.d.ts +31 -0
- package/dist/src/commands/reconcile-operation-plan.js +48 -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 +8 -0
- package/dist/src/commands/skill-eval.js +126 -73
- package/dist/src/commands/skill-eval.js.map +1 -1
- package/dist/src/commands/status-v6.d.ts +185 -68
- package/dist/src/commands/status-v6.js +1592 -499
- package/dist/src/commands/status-v6.js.map +1 -1
- 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 +144 -44
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +2 -3
- package/dist/src/constants.js +2 -3
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eval/manifest-v1.d.ts +6 -2
- package/dist/src/eval/manifest-v1.js +58 -26
- package/dist/src/eval/manifest-v1.js.map +1 -1
- package/dist/src/generators/local-plugin.d.ts +4 -2
- package/dist/src/generators/local-plugin.js +207 -346
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/generators/permissions.d.ts +20 -2
- package/dist/src/generators/permissions.js +82 -15
- package/dist/src/generators/permissions.js.map +1 -1
- package/dist/src/index.d.ts +3 -33
- package/dist/src/index.js +1786 -1945
- 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 +35 -0
- package/dist/src/intent/scope-context.js +179 -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 +37 -86
- package/dist/src/output/command-receipt.js +257 -179
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/component-delivery.d.ts +28 -0
- package/dist/src/output/component-delivery.js +138 -0
- package/dist/src/output/component-delivery.js.map +1 -0
- package/dist/src/output/public-result.d.ts +69 -0
- package/dist/src/output/public-result.js +403 -0
- package/dist/src/output/public-result.js.map +1 -0
- package/dist/src/output/rebuild-progress.d.ts +3 -0
- package/dist/src/output/rebuild-progress.js +34 -16
- 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 +664 -0
- package/dist/src/output/receipt-projection.js.map +1 -0
- package/dist/src/output/skill-invocation-notices.d.ts +18 -0
- package/dist/src/output/skill-invocation-notices.js +84 -0
- package/dist/src/output/skill-invocation-notices.js.map +1 -0
- package/dist/src/platforms/antigravity-permissions.d.ts +50 -0
- package/dist/src/platforms/antigravity-permissions.js +388 -0
- package/dist/src/platforms/antigravity-permissions.js.map +1 -0
- package/dist/src/platforms/capabilities.d.ts +17 -0
- package/dist/src/platforms/capabilities.js +328 -0
- package/dist/src/platforms/capabilities.js.map +1 -0
- package/dist/src/platforms/contracts.d.ts +402 -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 +98 -0
- package/dist/src/platforms/discovery.js +777 -0
- package/dist/src/platforms/discovery.js.map +1 -0
- package/dist/src/platforms/grok-permission-config.d.ts +23 -0
- package/dist/src/platforms/grok-permission-config.js +184 -0
- package/dist/src/platforms/grok-permission-config.js.map +1 -0
- package/dist/src/platforms/grok-permission-document.d.ts +4 -0
- package/dist/src/platforms/grok-permission-document.js +145 -0
- package/dist/src/platforms/grok-permission-document.js.map +1 -0
- package/dist/src/platforms/grok-permissions.d.ts +17 -0
- package/dist/src/platforms/grok-permissions.js +311 -0
- package/dist/src/platforms/grok-permissions.js.map +1 -0
- package/dist/src/platforms/host-permission-policy.d.ts +38 -0
- package/dist/src/platforms/host-permission-policy.js +86 -0
- package/dist/src/platforms/host-permission-policy.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 +366 -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 +373 -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 +9 -0
- package/dist/src/platforms/inspection-pi.js +482 -0
- package/dist/src/platforms/inspection-pi.js.map +1 -0
- package/dist/src/platforms/inspection-query.d.ts +24 -0
- package/dist/src/platforms/inspection-query.js +119 -0
- package/dist/src/platforms/inspection-query.js.map +1 -0
- package/dist/src/platforms/inspection.d.ts +20 -0
- package/dist/src/platforms/inspection.js +259 -0
- package/dist/src/platforms/inspection.js.map +1 -0
- package/dist/src/platforms/layout.d.ts +35 -0
- package/dist/src/platforms/layout.js +317 -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 +14 -0
- package/dist/src/platforms/lifecycle-native.js +223 -0
- package/dist/src/platforms/lifecycle-native.js.map +1 -0
- package/dist/src/platforms/lifecycle.d.ts +27 -0
- package/dist/src/platforms/lifecycle.js +567 -0
- package/dist/src/platforms/lifecycle.js.map +1 -0
- package/dist/src/platforms/opencode-permission-config.d.ts +13 -0
- package/dist/src/platforms/opencode-permission-config.js +253 -0
- package/dist/src/platforms/opencode-permission-config.js.map +1 -0
- package/dist/src/platforms/opencode-permissions.d.ts +39 -0
- package/dist/src/platforms/opencode-permissions.js +212 -0
- package/dist/src/platforms/opencode-permissions.js.map +1 -0
- package/dist/src/platforms/opencode-related-permissions.d.ts +40 -0
- package/dist/src/platforms/opencode-related-permissions.js +177 -0
- package/dist/src/platforms/opencode-related-permissions.js.map +1 -0
- package/dist/src/platforms/permission-ownership.d.ts +89 -0
- package/dist/src/platforms/permission-ownership.js +543 -0
- package/dist/src/platforms/permission-ownership.js.map +1 -0
- package/dist/src/platforms/permission-sidecar.d.ts +70 -0
- package/dist/src/platforms/permission-sidecar.js +215 -0
- package/dist/src/platforms/permission-sidecar.js.map +1 -0
- package/dist/src/platforms/projection-code-extension.d.ts +8 -0
- package/dist/src/platforms/projection-code-extension.js +126 -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 +13 -0
- package/dist/src/platforms/projection.js +576 -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 +20 -0
- package/dist/src/platforms/supplement-layout.js +53 -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 +93 -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 +99 -345
- 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 +29 -1
- package/dist/src/portable/materializer.js +197 -258
- 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 +176 -0
- package/dist/src/portable/recovery.js +556 -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 +168 -0
- package/dist/src/recovery/coordinator.js +1558 -0
- package/dist/src/recovery/coordinator.js.map +1 -0
- package/dist/src/recovery/demand.d.ts +53 -0
- package/dist/src/recovery/demand.js +189 -0
- package/dist/src/recovery/demand.js.map +1 -0
- package/dist/src/recovery/install-concurrency.d.ts +48 -0
- package/dist/src/recovery/install-concurrency.js +196 -0
- package/dist/src/recovery/install-concurrency.js.map +1 -0
- package/dist/src/recovery/interruption.d.ts +19 -0
- package/dist/src/recovery/interruption.js +43 -0
- package/dist/src/recovery/interruption.js.map +1 -0
- package/dist/src/recovery/joint-coordinator.d.ts +46 -0
- package/dist/src/recovery/joint-coordinator.js +1641 -0
- package/dist/src/recovery/joint-coordinator.js.map +1 -0
- package/dist/src/recovery/joint-demand.d.ts +72 -0
- package/dist/src/recovery/joint-demand.js +332 -0
- package/dist/src/recovery/joint-demand.js.map +1 -0
- package/dist/src/recovery/joint-install-execution.d.ts +19 -0
- package/dist/src/recovery/joint-install-execution.js +308 -0
- package/dist/src/recovery/joint-install-execution.js.map +1 -0
- package/dist/src/recovery/joint-install-native-rebase.d.ts +4 -0
- package/dist/src/recovery/joint-install-native-rebase.js +67 -0
- package/dist/src/recovery/joint-install-native-rebase.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 +129 -0
- package/dist/src/recovery/receipt.js +91 -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 +463 -0
- package/dist/src/recovery/retirement.js.map +1 -0
- package/dist/src/recovery/status.d.ts +143 -0
- package/dist/src/recovery/status.js +1517 -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 +44 -0
- package/dist/src/review/eval-source-input.js +213 -0
- package/dist/src/review/eval-source-input.js.map +1 -0
- package/dist/src/review/platform-profile.d.ts +6 -0
- package/dist/src/review/platform-profile.js +24 -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 +502 -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 +65 -0
- package/dist/src/review/skill-materialization.js +228 -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 +782 -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 +8 -16
- package/dist/src/tui/catalog-generation.js +97 -10
- 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 -34
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/config-array-draft.d.ts +30 -0
- package/dist/src/tui/config-array-draft.js +51 -0
- package/dist/src/tui/config-array-draft.js.map +1 -0
- package/dist/src/tui/config-leaf-editor.d.ts +44 -0
- package/dist/src/tui/config-leaf-editor.js +227 -0
- package/dist/src/tui/config-leaf-editor.js.map +1 -0
- package/dist/src/tui/config-object-suggestions.d.ts +15 -0
- package/dist/src/tui/config-object-suggestions.js +71 -0
- package/dist/src/tui/config-object-suggestions.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-suggestions.d.ts +27 -0
- package/dist/src/tui/config-suggestions.js +62 -0
- package/dist/src/tui/config-suggestions.js.map +1 -0
- package/dist/src/tui/config-value-presentation.d.ts +21 -0
- package/dist/src/tui/config-value-presentation.js +129 -0
- package/dist/src/tui/config-value-presentation.js.map +1 -0
- package/dist/src/tui/console-app-v4.d.ts +14 -5
- package/dist/src/tui/console-app-v4.js +10344 -2133
- 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 +8 -3
- package/dist/src/tui/controller-runtime.js +2301 -842
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +664 -79
- package/dist/src/tui/controller.js +3670 -830
- 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 +13 -0
- package/dist/src/tui/deployment-view.js +155 -0
- package/dist/src/tui/deployment-view.js.map +1 -0
- package/dist/src/tui/diagnostic-projection.d.ts +31 -0
- package/dist/src/tui/diagnostic-projection.js +681 -0
- package/dist/src/tui/diagnostic-projection.js.map +1 -0
- package/dist/src/tui/diagnostics.d.ts +6 -2
- 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 +56 -0
- package/dist/src/tui/entity-cards.js +321 -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 +78 -0
- package/dist/src/tui/glossary.js.map +1 -0
- package/dist/src/tui/guided-setup.d.ts +25 -0
- package/dist/src/tui/guided-setup.js +101 -0
- package/dist/src/tui/guided-setup.js.map +1 -0
- package/dist/src/tui/index.d.ts +5 -1
- package/dist/src/tui/index.js +4 -1
- 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 +187 -52
- package/dist/src/tui/model.js +1202 -426
- 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 +76 -0
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -0
- package/dist/src/tui/operation-history.d.ts +91 -0
- package/dist/src/tui/operation-history.js +167 -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 +1456 -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 +75 -0
- package/dist/src/tui/plugin-detail.js +267 -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 +182 -39
- 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 +49 -0
- package/dist/src/tui/scoped-flow.js +212 -0
- package/dist/src/tui/scoped-flow.js.map +1 -0
- package/dist/src/tui/scoped-inventory.d.ts +131 -0
- package/dist/src/tui/scoped-inventory.js +280 -0
- package/dist/src/tui/scoped-inventory.js.map +1 -0
- package/dist/src/tui/screen-registry.d.ts +696 -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 +8 -0
- package/dist/src/tui/session-console-app.js +24 -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 +177 -85
- package/dist/src/types.js +1 -0
- 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 +6 -8
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +17 -24
- package/dist/src/utils/artifact-plan.js +59 -436
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +61 -89
- package/dist/src/utils/artifact-renderer.js +187 -364
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +21 -0
- package/dist/src/utils/artifact-request.js +57 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- package/dist/src/utils/artifact-sources.d.ts +4 -8
- package/dist/src/utils/artifact-sources.js +15 -6
- package/dist/src/utils/artifact-sources.js.map +1 -1
- package/dist/src/utils/aw-home-mutation-lock.js +2 -1
- package/dist/src/utils/aw-home-mutation-lock.js.map +1 -1
- package/dist/src/utils/bundle-layout.js +59 -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 -9
- package/dist/src/utils/catalog-digests.js +7 -45
- package/dist/src/utils/catalog-digests.js.map +1 -1
- package/dist/src/utils/catalog-generation-error.d.ts +4 -1
- package/dist/src/utils/catalog-generation-error.js +2 -0
- package/dist/src/utils/catalog-generation-error.js.map +1 -1
- package/dist/src/utils/catalog-generation-resolver.d.ts +32 -3
- package/dist/src/utils/catalog-generation-resolver.js +182 -40
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
- package/dist/src/utils/catalog-generation-service.d.ts +142 -2
- package/dist/src/utils/catalog-generation-service.js +1146 -171
- package/dist/src/utils/catalog-generation-service.js.map +1 -1
- package/dist/src/utils/catalog-generation-state.d.ts +5 -0
- package/dist/src/utils/catalog-generation-state.js +25 -1
- package/dist/src/utils/catalog-generation-state.js.map +1 -1
- package/dist/src/utils/catalog-generation-store.d.ts +29 -2
- package/dist/src/utils/catalog-generation-store.js +240 -36
- 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-v6.js → catalog-manifest-v7.js} +23 -23
- package/dist/src/utils/{catalog-manifest-v6.js.map → catalog-manifest-v7.js.map} +1 -1
- package/dist/src/utils/catalog-operation-context.d.ts +27 -3
- package/dist/src/utils/catalog-operation-context.js +75 -4
- package/dist/src/utils/catalog-operation-context.js.map +1 -1
- package/dist/src/utils/catalog-public-error.js +7 -0
- package/dist/src/utils/catalog-public-error.js.map +1 -1
- package/dist/src/utils/catalog-runtime-projection.d.ts +4 -3
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -1
- package/dist/src/utils/catalog-snapshot.d.ts +5 -2
- package/dist/src/utils/catalog-snapshot.js +4 -1
- package/dist/src/utils/catalog-snapshot.js.map +1 -1
- 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 +22 -8
- package/dist/src/utils/catalog-source-references.js +457 -365
- 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 +155 -11
- package/dist/src/utils/catalog-sources.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 +23 -42
- package/dist/src/utils/codex-manager.js +79 -767
- 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 +55 -0
- package/dist/src/utils/codex-native-observation.js +198 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -0
- package/dist/src/utils/codex-reconciler.d.ts +6 -14
- package/dist/src/utils/codex-reconciler.js +45 -50
- package/dist/src/utils/codex-reconciler.js.map +1 -1
- package/dist/src/utils/codex-shared-native.d.ts +28 -39
- package/dist/src/utils/codex-shared-native.js +92 -57
- 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-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 +8 -3
- package/dist/src/utils/codex-surface-analysis.js +35 -62
- package/dist/src/utils/codex-surface-analysis.js.map +1 -1
- package/dist/src/utils/component-command-preparation.d.ts +31 -0
- package/dist/src/utils/component-command-preparation.js +127 -0
- package/dist/src/utils/component-command-preparation.js.map +1 -0
- package/dist/src/utils/component-gap.d.ts +4 -0
- package/dist/src/utils/component-gap.js +20 -0
- package/dist/src/utils/component-gap.js.map +1 -0
- package/dist/src/utils/component-resources.d.ts +51 -0
- package/dist/src/utils/component-resources.js +320 -0
- package/dist/src/utils/component-resources.js.map +1 -0
- package/dist/src/utils/config-platforms.d.ts +21 -0
- package/dist/src/utils/config-platforms.js +51 -0
- package/dist/src/utils/config-platforms.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +18 -6
- package/dist/src/utils/dynamic-skill-tree.js +33 -40
- 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 +112 -6
- 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-cli-review.d.ts +53 -0
- package/dist/src/utils/managed-command-cli-review.js +431 -0
- package/dist/src/utils/managed-command-cli-review.js.map +1 -0
- package/dist/src/utils/managed-command-closure.d.ts +14 -0
- package/dist/src/utils/managed-command-closure.js +156 -0
- package/dist/src/utils/managed-command-closure.js.map +1 -0
- package/dist/src/utils/managed-command-errors.d.ts +5 -0
- package/dist/src/utils/managed-command-errors.js +10 -0
- package/dist/src/utils/managed-command-errors.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +90 -0
- package/dist/src/utils/managed-command-materialization.js +375 -0
- package/dist/src/utils/managed-command-materialization.js.map +1 -0
- package/dist/src/utils/managed-command-preparation.d.ts +30 -0
- package/dist/src/utils/managed-command-preparation.js +39 -0
- package/dist/src/utils/managed-command-preparation.js.map +1 -0
- package/dist/src/utils/managed-command-review.d.ts +33 -0
- package/dist/src/utils/managed-command-review.js +80 -0
- package/dist/src/utils/managed-command-review.js.map +1 -0
- package/dist/src/utils/managed-command-runtime.d.ts +36 -0
- package/dist/src/utils/managed-command-runtime.js +126 -0
- package/dist/src/utils/managed-command-runtime.js.map +1 -0
- package/dist/src/utils/managed-command-snapshots.d.ts +24 -0
- package/dist/src/utils/managed-command-snapshots.js +89 -0
- package/dist/src/utils/managed-command-snapshots.js.map +1 -0
- package/dist/src/utils/managed-command-store.d.ts +141 -0
- package/dist/src/utils/managed-command-store.js +839 -0
- package/dist/src/utils/managed-command-store.js.map +1 -0
- package/dist/src/utils/multi-source-catalog.d.ts +4 -0
- package/dist/src/utils/multi-source-catalog.js +7 -3
- package/dist/src/utils/multi-source-catalog.js.map +1 -1
- package/dist/src/utils/native-cli-interruption.d.ts +8 -0
- package/dist/src/utils/native-cli-interruption.js +65 -0
- package/dist/src/utils/native-cli-interruption.js.map +1 -0
- package/dist/src/utils/native-cli.d.ts +37 -6
- package/dist/src/utils/native-cli.js +523 -60
- 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 +17 -0
- package/dist/src/utils/native-tool-context.js +40 -0
- package/dist/src/utils/native-tool-context.js.map +1 -0
- package/dist/src/utils/native-tool-review.d.ts +8 -0
- package/dist/src/utils/native-tool-review.js +14 -0
- package/dist/src/utils/native-tool-review.js.map +1 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js +0 -2
- package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +111 -11
- package/dist/src/utils/ownership.js +247 -126
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/package-content.d.ts +7 -0
- package/dist/src/utils/package-content.js +70 -0
- package/dist/src/utils/package-content.js.map +1 -0
- package/dist/src/utils/path-catalog-provider.js +2 -0
- package/dist/src/utils/path-catalog-provider.js.map +1 -1
- package/dist/src/utils/paths.d.ts +1 -1
- package/dist/src/utils/paths.js +5 -2
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/platform-empty-state.d.ts +69 -0
- package/dist/src/utils/platform-empty-state.js +226 -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-command-apply.d.ts +33 -0
- package/dist/src/utils/plugin-config-command-apply.js +142 -0
- package/dist/src/utils/plugin-config-command-apply.js.map +1 -0
- package/dist/src/utils/plugin-config-diagnostics.d.ts +16 -0
- package/dist/src/utils/plugin-config-diagnostics.js +44 -0
- package/dist/src/utils/plugin-config-diagnostics.js.map +1 -0
- package/dist/src/utils/plugin-config-impact.d.ts +75 -0
- package/dist/src/utils/plugin-config-impact.js +355 -0
- package/dist/src/utils/plugin-config-impact.js.map +1 -0
- package/dist/src/utils/plugin-config-references.d.ts +96 -0
- package/dist/src/utils/plugin-config-references.js +357 -0
- package/dist/src/utils/plugin-config-references.js.map +1 -0
- package/dist/src/utils/plugin-config-suggestion-runner.d.ts +83 -0
- package/dist/src/utils/plugin-config-suggestion-runner.js +308 -0
- package/dist/src/utils/plugin-config-suggestion-runner.js.map +1 -0
- package/dist/src/utils/plugin-config-suggestions.d.ts +50 -0
- package/dist/src/utils/plugin-config-suggestions.js +302 -0
- package/dist/src/utils/plugin-config-suggestions.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +123 -31
- package/dist/src/utils/plugin-config-write.js +828 -399
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +192 -109
- package/dist/src/utils/plugin-config.js +970 -1150
- 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 +80 -127
- package/dist/src/utils/plugin-scripts.js +655 -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 +24 -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/skill-invocation-warning.d.ts +20 -0
- package/dist/src/utils/skill-invocation-warning.js +68 -0
- package/dist/src/utils/skill-invocation-warning.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 +3 -3
- package/dist/src/utils/target-eligibility.js +11 -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 +106 -9
- package/dist/vitest.config.js.map +1 -1
- package/package.json +30 -21
- 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/sync-command.d.ts +0 -21
- package/dist/src/commands/sync-command.js +0 -206
- package/dist/src/commands/sync-command.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-v6.d.ts +0 -5
- 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-intent-state.d.ts +0 -39
- package/dist/src/utils/plugin-intent-state.js +0 -325
- package/dist/src/utils/plugin-intent-state.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,518 @@
|
|
|
1
|
+
import { isRecoveryReviewStaleBeforeExecution, recoveryRetryDispositions, recoveryStatusContext, recoverySummaryErrors, userSkillProviderRepairs } from '../recovery/receipt.js';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { commandPackageRecoveryActions, commandResult, safePublicMessage } from '../output/public-result.js';
|
|
4
|
+
import { isOpenCodePermission } from '../platforms/opencode-permissions.js';
|
|
5
|
+
import { redactString } from '../output/redact.js';
|
|
6
|
+
import { isConfigDiagnostic, isInstallConfigBlocked } from '../utils/plugin-config-diagnostics.js';
|
|
7
|
+
import { skillInvocationDiagnostics } from '../output/skill-invocation-notices.js';
|
|
8
|
+
import { deliveryNoticeMessage, HOST_PERMISSION_ADDITIONAL_IMPACT, hostPermissionImpactMessage, INVOCATION_POLICY_NOT_APPLIED, isDeliveryNoticeCode, isSkippedPermissionReason, projectComponentDelivery, projectComponentGap, PREVIOUS_DEPLOYMENT_RETAINED, publicHostPermissionResource, safeComponentIdentity, safeSkippedPermissionActions } from '../output/component-delivery.js';
|
|
9
|
+
import { SKILL_INVOCATION_NOTICE } from '../utils/skill-invocation-warning.js';
|
|
10
|
+
import { getCommandPackageId } from '@lesliechan721/aw-plugin-core/manifest';
|
|
11
|
+
import { identityDigest } from '../platforms/identity.js';
|
|
12
|
+
const messages = {
|
|
13
|
+
dependencyExcluded: 'A required plugin is excluded from this target by the local deployment policy.',
|
|
14
|
+
confirmationRequired: 'Repeat this request with --yes to confirm the listed effects.',
|
|
15
|
+
noTargetsEnabled: 'No effective deployment targets are enabled. Set targets or choose --only requirements.',
|
|
16
|
+
projectRootUnavailable: 'A valid project root is required for this request.',
|
|
17
|
+
sourceActiveUnavailable: 'The selected source has no usable Active Catalog.',
|
|
18
|
+
catalogSnapshotInvalid: 'The complete Active snapshot could not be verified. Requirements and outputs were retained.',
|
|
19
|
+
pluginIntentStateInvalid: 'The requirements document is invalid or cannot be read.',
|
|
20
|
+
operationInterrupted: 'The command was interrupted. Completed changes are retained in the result.',
|
|
21
|
+
processCleanupUnconfirmed: 'Process cleanup could not be confirmed. Check status before retrying.',
|
|
22
|
+
operationReviewStale: 'The operation evidence changed. Review the current state and repeat the request.',
|
|
23
|
+
pluginSelectorAmbiguous: 'The plugin name is ambiguous. Use a source-qualified plugin ID.',
|
|
24
|
+
pluginUnavailable: 'The plugin is not available in the selected Active Catalog.',
|
|
25
|
+
nativeActivationDisabled: 'The selected scope is disabled in the native client.',
|
|
26
|
+
nativeActivationUnconfirmed: 'The native client did not confirm effective activation for the selected scope.',
|
|
27
|
+
nativeActivationBlocked: 'The native client blocked activation in the selected scope.',
|
|
28
|
+
grokProjectAuthorizationDenied: 'Grok denied authorization for the selected project. Review it in Grok before syncing.',
|
|
29
|
+
deploymentOwnershipConflict: 'The native deployment conflicts with another owner or registration.',
|
|
30
|
+
platformPackageMissing: 'The required AW source package is missing.',
|
|
31
|
+
nativeRegistrationMissing: 'The native client reports no required registration.',
|
|
32
|
+
nativeRegistrationUnconfirmed: 'The native client did not confirm registration for the selected deployment.',
|
|
33
|
+
nativePackageMissing: 'The registered native client copy is missing.',
|
|
34
|
+
nativePackageContentDrift: 'The native client copy is out of date.',
|
|
35
|
+
nativePackageContentUnconfirmed: 'The native client copy could not be verified.',
|
|
36
|
+
platformInputDrift: 'The plugin inputs changed and its deployment needs to be synced.',
|
|
37
|
+
userSkillProviderNotReady: 'Sync the declared User plugin to repair its Skill dependency, then retry the Project plugin.',
|
|
38
|
+
projectSkillProviderConflict: 'Check the existing Project package, permissions and activation before reusing the User Skill dependency.',
|
|
39
|
+
providerSwitchVerificationFailed: 'The replacement could not be verified. The previous copy was retained.',
|
|
40
|
+
platformContentDrift: 'The deployed plugin content changed and needs to be synced.',
|
|
41
|
+
platformExpectationUnconfirmed: 'The package projection could not be verified.',
|
|
42
|
+
platformPreparationPartial: 'The package has only a partial projection.',
|
|
43
|
+
componentOutputMissing: 'A required deployed component is missing.',
|
|
44
|
+
componentOutputUnconfirmed: 'The deployed component output could not be verified.',
|
|
45
|
+
dynamicExpectationUnconfirmed: 'The required dynamic output could not be verified.',
|
|
46
|
+
cursorWorkspaceOpenMissing: 'The selected scope is missing the managed Cursor workspaceOpen entry.',
|
|
47
|
+
cursorWorkspaceOpenUnconfirmed: 'The managed Cursor workspaceOpen entry could not be verified.',
|
|
48
|
+
outputsRetainedRequirements: 'Requirements were retained. A later sync can deploy these outputs again.',
|
|
49
|
+
stateInventoryFailed: 'The local output inventory is incomplete. Inspect the detected location before recovery.',
|
|
50
|
+
};
|
|
51
|
+
export function safeRecoveryDetail(detail) {
|
|
52
|
+
if (!detail || typeof detail.reasonCode !== 'string' || !/^[A-Za-z][A-Za-z0-9._-]*$/u.test(detail.reasonCode))
|
|
53
|
+
return undefined;
|
|
54
|
+
const safe = (value) => typeof value === 'string' && !/[\u0000-\u001f\u007f-\u009f]/u.test(value) && redactString(value) === value;
|
|
55
|
+
const fieldKeys = Array.isArray(detail.fieldKeys) ? [...new Set(detail.fieldKeys.filter((key) => typeof key === 'string' && key.length > 0 && safe(key)))].sort() : [];
|
|
56
|
+
return { reasonCode: detail.reasonCode,
|
|
57
|
+
...(fieldKeys.length ? { fieldKeys } : {}),
|
|
58
|
+
...(detail.path && safe(detail.path) && (path.isAbsolute(detail.path) || path.win32.isAbsolute(detail.path))
|
|
59
|
+
? { path: detail.path } : {}),
|
|
60
|
+
...(detail.configKey && safe(detail.configKey) ? { configKey: detail.configKey } : {}),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function publicDiagnostic(value, subject, severity = 'error') {
|
|
64
|
+
const code = typeof value === 'string' ? value : value.code;
|
|
65
|
+
const sourceMessage = typeof value === 'string' ? undefined : value.message;
|
|
66
|
+
const publicMessage = sourceMessage && !/[\u3400-\u9fff]/u.test(sourceMessage)
|
|
67
|
+
&& !/(?:\/(?:Users|home|tmp|private|var)\/|[A-Za-z]:[\\/])/u.test(sourceMessage)
|
|
68
|
+
? safePublicMessage(sourceMessage, code) : undefined;
|
|
69
|
+
let detail = typeof value === 'string' ? undefined : safeRecoveryDetail(value.detail);
|
|
70
|
+
const combinedSubject = { ...(typeof value !== 'string' && value.pluginId ? { pluginId: value.pluginId } : {}),
|
|
71
|
+
...(typeof value !== 'string' ? value.subject : {}), ...subject };
|
|
72
|
+
if (code === 'permissionRelatedProjectUpdated' && typeof value !== 'string') {
|
|
73
|
+
const permissionChanges = (value.detail?.permissionChanges ?? []).flatMap(({ change, effect, resource }) => (change === 'add' || change === 'remove') && isOpenCodePermission({ action: 'shell', effect, resource })
|
|
74
|
+
? [{ change, effect, resource: publicHostPermissionResource(resource)
|
|
75
|
+
.replace(/(?:^|(?<=[ =]))(?:\/(?:Users|home|tmp|private|var)\/|[A-Za-z]:[\\/])[^ ]*/gu, '[local path]') }]
|
|
76
|
+
: []);
|
|
77
|
+
const message = ['Updated OpenCode Project permissions.', ...permissionChanges.map(({ change, effect, resource }) => `${change === 'add' ? 'Add' : 'Remove'} ${effect} shell ${resource}`)].join('\n');
|
|
78
|
+
return { code, severity: 'info', message, subject: combinedSubject,
|
|
79
|
+
...(detail ? { detail: { ...detail, permissionChanges } } : {}) };
|
|
80
|
+
}
|
|
81
|
+
if (code === HOST_PERMISSION_ADDITIONAL_IMPACT && typeof value !== 'string') {
|
|
82
|
+
const action = value.detail?.permissionAction;
|
|
83
|
+
const resource = value.detail?.permissionResource;
|
|
84
|
+
if (detail && (action === 'allow' || action === 'ask' || action === 'deny'))
|
|
85
|
+
detail.permissionAction = action;
|
|
86
|
+
if (detail && resource)
|
|
87
|
+
detail.permissionResource = publicHostPermissionResource(resource);
|
|
88
|
+
if (combinedSubject.field && safeComponentIdentity(combinedSubject.field) !== combinedSubject.field)
|
|
89
|
+
delete combinedSubject.field;
|
|
90
|
+
const configured = detail?.permissionAction && detail.permissionResource ? detail.permissionAction + ' ' + detail.permissionResource : undefined;
|
|
91
|
+
const message = [configured, hostPermissionImpactMessage(sourceMessage)].filter(Boolean).join(' · ');
|
|
92
|
+
return { code, severity: 'warning', message, subject: combinedSubject, ...(detail ? { detail } : {}) };
|
|
93
|
+
}
|
|
94
|
+
if (isDeliveryNoticeCode(code) && code !== PREVIOUS_DEPLOYMENT_RETAINED) {
|
|
95
|
+
if (detail) {
|
|
96
|
+
const actions = code === INVOCATION_POLICY_NOT_APPLIED && typeof value !== 'string'
|
|
97
|
+
? safeSkippedPermissionActions(value.detail?.skippedPermissionActions) : [];
|
|
98
|
+
const relatedProjectPath = code === INVOCATION_POLICY_NOT_APPLIED && detail.reasonCode === 'permission-rule-conflict'
|
|
99
|
+
&& combinedSubject.target === 'opencode' ? detail.path : undefined;
|
|
100
|
+
detail = code === INVOCATION_POLICY_NOT_APPLIED && !isSkippedPermissionReason(detail.reasonCode) ? undefined
|
|
101
|
+
: { reasonCode: detail.reasonCode, ...(actions.length ? { skippedPermissionActions: actions } : {}),
|
|
102
|
+
...(relatedProjectPath ? { path: relatedProjectPath } : {}) };
|
|
103
|
+
}
|
|
104
|
+
if (combinedSubject.field && safeComponentIdentity(combinedSubject.field) !== combinedSubject.field)
|
|
105
|
+
delete combinedSubject.field;
|
|
106
|
+
}
|
|
107
|
+
return { code, severity, message: isDeliveryNoticeCode(code) ? deliveryNoticeMessage(code, detail, combinedSubject.field)
|
|
108
|
+
: messages[code] ?? publicMessage ?? `The operation could not complete (${code}).`,
|
|
109
|
+
...(Object.keys(combinedSubject).length ? { subject: combinedSubject } : {}), ...(detail ? { detail } : {}) };
|
|
110
|
+
}
|
|
111
|
+
/** Configuration fixes must name the affected provider and target, not its consumer. */
|
|
112
|
+
export function configRecoveryActions(diagnostics) {
|
|
113
|
+
const actions = new Map();
|
|
114
|
+
const shellWord = (value) => /^[A-Za-z0-9_./-]+$/u.test(value) ? value : `'${value.replaceAll("'", "'\\''")}'`;
|
|
115
|
+
for (const diagnostic of diagnostics.filter(isConfigDiagnostic)) {
|
|
116
|
+
const { pluginId, target } = diagnostic.subject ?? {};
|
|
117
|
+
if (!pluginId || !target)
|
|
118
|
+
continue;
|
|
119
|
+
const key = `${pluginId}\0${target}`;
|
|
120
|
+
if (diagnostic.detail?.fieldKeys?.length)
|
|
121
|
+
for (const field of diagnostic.detail.fieldKeys) {
|
|
122
|
+
const command = `aw plugin config set ${shellWord(pluginId)} ${shellWord(field)} --platform ${shellWord(target)} --value-json '...'`;
|
|
123
|
+
actions.set(`${key}\0${field}`, { kind: 'manual', message: `Set the field using ${command} (replace '...' with valid JSON), or open aw to configure the target.` });
|
|
124
|
+
}
|
|
125
|
+
else
|
|
126
|
+
actions.set(key, { kind: 'manual', message: `Open aw to inspect or repair the configuration for ${pluginId} (${target}).` });
|
|
127
|
+
}
|
|
128
|
+
return [...actions.values()];
|
|
129
|
+
}
|
|
130
|
+
export function projectDeploymentNotices(targets) {
|
|
131
|
+
const diagnostics = [...skillInvocationDiagnostics(targets)];
|
|
132
|
+
for (const target of targets) {
|
|
133
|
+
const subject = { pluginId: target.pluginId, target: target.agent, scope: target.scope };
|
|
134
|
+
const deployment = (target.deploymentReceipts ?? []).flatMap(({ diagnostics, effects }) => [...diagnostics, ...effects.flatMap((effect) => effect.diagnostics)]);
|
|
135
|
+
for (const blocker of target.blockers) {
|
|
136
|
+
if (isDeliveryNoticeCode(blocker.code))
|
|
137
|
+
diagnostics.push(publicDiagnostic(blocker, blocker.subject ?? subject));
|
|
138
|
+
}
|
|
139
|
+
for (const notice of deployment) {
|
|
140
|
+
if (isDeliveryNoticeCode(notice.code))
|
|
141
|
+
diagnostics.push(publicDiagnostic(notice, notice.subject ?? subject, notice.severity));
|
|
142
|
+
}
|
|
143
|
+
for (const notice of target.reasons ?? []) {
|
|
144
|
+
if (isDeliveryNoticeCode(notice.code) && !deployment.some((entry) => entry.code === notice.code
|
|
145
|
+
&& JSON.stringify(entry.subject ?? subject) === JSON.stringify(notice.subject ?? subject)
|
|
146
|
+
&& entry.detail?.reasonCode === notice.detail?.reasonCode
|
|
147
|
+
&& (notice.code !== HOST_PERMISSION_ADDITIONAL_IMPACT
|
|
148
|
+
|| entry.message === notice.message && JSON.stringify(entry.detail) === JSON.stringify(notice.detail))
|
|
149
|
+
&& JSON.stringify(entry.detail?.skippedPermissionActions) === JSON.stringify(notice.detail?.skippedPermissionActions))) {
|
|
150
|
+
diagnostics.push(publicDiagnostic(notice, notice.subject ?? subject, 'warning'));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return [...new Map(diagnostics.map((entry) => [JSON.stringify(entry), entry])).values()];
|
|
155
|
+
}
|
|
156
|
+
export function projectRelatedProjectPermissionFailures(targets) {
|
|
157
|
+
const failures = targets.flatMap(({ blockers }) => blockers.filter(({ code, detail }) => code === 'permissionRelatedProjectUpdateIncomplete' && detail?.path).map((entry) => publicDiagnostic(entry)));
|
|
158
|
+
return [...new Map(failures.map((entry) => [JSON.stringify(entry), entry])).values()];
|
|
159
|
+
}
|
|
160
|
+
function matchesRecoveryPosition(subject, target) {
|
|
161
|
+
return subject?.pluginId === target.pluginId && subject.target === target.agent && subject.scope === target.scope;
|
|
162
|
+
}
|
|
163
|
+
function retryCommand(root) {
|
|
164
|
+
return ['aw', 'plugin', 'sync', root.pluginId, '--context', root.scope, '--target', root.agent];
|
|
165
|
+
}
|
|
166
|
+
function exactProjectRetry(root) {
|
|
167
|
+
return `In the TUI, review only the Project location for ${root.pluginId} on ${root.agent}.`;
|
|
168
|
+
}
|
|
169
|
+
export function recoverySyncAction(root, reason) {
|
|
170
|
+
return root.kind === 'exact-project' ? { kind: 'manual', message: exactProjectRetry(root) }
|
|
171
|
+
: { kind: 'command', argv: retryCommand(root), reason, requiresConfirmation: true };
|
|
172
|
+
}
|
|
173
|
+
/** Native permissions belong to the physical provider. Only pending declared roots can authorize an AW retry. */
|
|
174
|
+
function nativeSourceRecovery(diagnostic, diagnostics, context) {
|
|
175
|
+
const { subject, detail } = diagnostic;
|
|
176
|
+
if (subject?.field !== 'nativeSource' || !detail)
|
|
177
|
+
return;
|
|
178
|
+
if (subject.target !== 'grok' || diagnostic.code !== 'grokNativeInstallRecovery')
|
|
179
|
+
return;
|
|
180
|
+
if (context && (context.receipt.unconfirmedSavedState || isRecoveryReviewStaleBeforeExecution(context.receipt)
|
|
181
|
+
|| !matchesRecoveryPosition(subject, context.target)
|
|
182
|
+
|| !context.receipt.remainingTargets.some((target) => matchesRecoveryPosition(subject, target))))
|
|
183
|
+
return;
|
|
184
|
+
const roots = context ? recoveryRetryDispositions(context.receipt, [context.target]) : [];
|
|
185
|
+
const location = (field) => diagnostics.find((entry) => entry.subject?.field === field
|
|
186
|
+
&& entry.subject.target === subject.target && entry.subject.pluginId === subject.pluginId && entry.subject.scope === subject.scope)?.detail;
|
|
187
|
+
const workspace = location('workspace')?.path;
|
|
188
|
+
const configRoot = location('nativeConfigRoot')?.path;
|
|
189
|
+
const source = detail.path;
|
|
190
|
+
const clientContext = `With the same Grok client and configuration root${configRoot ? ` ${JSON.stringify(configRoot)}` : ''}${workspace ? ` in workspace ${JSON.stringify(workspace)}` : ''}`;
|
|
191
|
+
let nativeStep;
|
|
192
|
+
if (detail.reasonCode === 'grokNativeRefreshWorkspaceTrust') {
|
|
193
|
+
nativeStep = workspace
|
|
194
|
+
? `${clientContext}, keep the existing registered copy. If you approve this exact folder, grant folder trust in Grok. For Grok 1.0.77, review [folders.${JSON.stringify(workspace)}] in trusted_folders.toml, set trusted = true and decided_at to the current Unix timestamp in seconds, and preserve the other entries. From this workspace run grok inspect --json and verify projectRoot is null and projectTrusted is true. AW checks both your saved folder decision and the runtime result.`
|
|
195
|
+
: 'Keep the existing registered copy. Check $AW_HOME/runtime/user and its ancestors for links or project configuration. Restore a safe User workspace, then review the same target again for its exact Grok folder trust step.';
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
nativeStep = `${clientContext}, ${source
|
|
199
|
+
? `check the current registration. If it is absent and you approve this source, run Grok with arguments ${JSON.stringify(['plugin', 'install', source, '--trust'])}. This grants Grok trust for the source. Keep any existing foreign or unverified registration and inspect it in Grok before retrying.`
|
|
200
|
+
: 'identify the exact retained AW source and check its registration in a fresh Review before making changes.'}`;
|
|
201
|
+
}
|
|
202
|
+
const retries = roots.map((root) => root.kind === 'exact-project' ? exactProjectRetry(root)
|
|
203
|
+
: `Then run ${retryCommand(root).join(' ')}.`);
|
|
204
|
+
const message = [nativeStep, 'Continue after verifying the native registration.',
|
|
205
|
+
...(retries.length ? retries : ['Recheck the original location in AW before retrying.'])].join(' ');
|
|
206
|
+
return { message, roots };
|
|
207
|
+
}
|
|
208
|
+
export function inventoryRecoveryActions(values, receipt) {
|
|
209
|
+
return inventoryRecovery(values, receipt).actions;
|
|
210
|
+
}
|
|
211
|
+
function inventoryRecovery(values, receipt) {
|
|
212
|
+
const exactProjects = new Set();
|
|
213
|
+
const diagnostics = values.map((value) => publicDiagnostic({ ...value, message: '' }));
|
|
214
|
+
const actions = new Map();
|
|
215
|
+
for (const diagnostic of diagnostics) {
|
|
216
|
+
const detail = diagnostic.detail;
|
|
217
|
+
if (!detail)
|
|
218
|
+
continue;
|
|
219
|
+
const subject = diagnostic.subject;
|
|
220
|
+
const identity = [subject?.pluginId, subject?.target, subject?.scope].filter(Boolean).join(' / ') || 'The affected inventory scope';
|
|
221
|
+
let message;
|
|
222
|
+
const target = receipt?.targetResults.find((item) => matchesRecoveryPosition(subject, item));
|
|
223
|
+
const native = nativeSourceRecovery(diagnostic, diagnostics, receipt && target ? { receipt, target } : undefined);
|
|
224
|
+
if (native) {
|
|
225
|
+
for (const root of native.roots)
|
|
226
|
+
if (root.kind === 'exact-project')
|
|
227
|
+
exactProjects.add(JSON.stringify([root.pluginId, root.agent]));
|
|
228
|
+
message = `${identity}: ${native.message}`;
|
|
229
|
+
}
|
|
230
|
+
else if (['workspace', 'nativeConfigRoot'].includes(subject?.field ?? ''))
|
|
231
|
+
continue;
|
|
232
|
+
else if (diagnostic.code === 'nativeStateUnreadable' || detail.reasonCode.startsWith('config')) {
|
|
233
|
+
message = `${identity}: Back up ${detail.path ? JSON.stringify(detail.path) : 'the affected configuration'} and inspect its format and permissions (${detail.reasonCode}). Repair only the invalid entries after review; retain unrelated configuration. Then run status for the same context and target.`;
|
|
234
|
+
}
|
|
235
|
+
else if (diagnostic.code === 'permissionRelatedProjectUpdateIncomplete' && detail.path) {
|
|
236
|
+
const retryUserFirst = receipt?.targetResults.some((target) => target.scope === 'user' && target.agent === 'opencode'
|
|
237
|
+
&& (target.execution === 'failed' || target.blockers.some(({ code }) => code === 'preApplyFailed')));
|
|
238
|
+
message = receipt?.command === 'cleanup'
|
|
239
|
+
? `OpenCode: Review ${JSON.stringify(detail.path)}. Open the TUI from that project and select only the Project OpenCode location to keep the User outputs removed.`
|
|
240
|
+
: `OpenCode: ${retryUserFirst ? 'Retry the failed User OpenCode targets first. ' : ''}Review ${JSON.stringify(detail.path)} and run \`aw plugin sync --context project --target opencode\` from that project.`;
|
|
241
|
+
}
|
|
242
|
+
else if (diagnostic.code === PREVIOUS_DEPLOYMENT_RETAINED) {
|
|
243
|
+
message = `${identity}: Check ${detail.path ? `the previous output at ${JSON.stringify(detail.path)}` : 'the previous output'} in the affected scope before preparing the retry.`;
|
|
244
|
+
}
|
|
245
|
+
else if (detail.path && ['antigravityLegacyPackageUnconfirmed', 'antigravityProjectPackageConflict'].includes(diagnostic.code)) {
|
|
246
|
+
message = `${identity}: Back up and inspect ${JSON.stringify(detail.path)}. If this copy should no longer load in the project, move that directory or link outside .agents/plugins. Run status again for the same project and plugin.`;
|
|
247
|
+
}
|
|
248
|
+
else if (diagnostic.code === 'stateInventoryFailed' || diagnostic.code === 'forceCleanupPathUnavailable') {
|
|
249
|
+
message = `${identity}: Automatic cleanup cannot prove exclusive ownership (${detail.reasonCode}). Back up ${detail.path
|
|
250
|
+
? `the detected item ${JSON.stringify(detail.path)}` : 'the affected host output identified by the inventory scan'} and the related host configuration. ${detail.configKey
|
|
251
|
+
? `Check ${JSON.stringify(detail.configKey)} and remove that reference only if it still points to this exact item and you confirm it is no longer needed.`
|
|
252
|
+
: 'Check configuration references to this exact item; do not assume the owner header proves ownership.'} After your confirmation, move only this item outside the host scan directories. Keep shared directories and stores. Run status again for the same plugin, target, and context; sync only after this inventory error is gone.`;
|
|
253
|
+
}
|
|
254
|
+
else
|
|
255
|
+
continue;
|
|
256
|
+
actions.set(message, { kind: 'manual', message });
|
|
257
|
+
}
|
|
258
|
+
return { actions: [...actions.values()], exactProjects };
|
|
259
|
+
}
|
|
260
|
+
export function projectTarget(value, receipt) {
|
|
261
|
+
return { pluginId: value.pluginId, target: value.agent, scope: value.scope, delivery: value.delivery,
|
|
262
|
+
execution: value.execution, observation: value.observation, content: value.content ?? 'unknown',
|
|
263
|
+
requiredBy: [...value.requiredBy], blockerCodes: [...new Set(value.blockers.map((entry) => entry.code))],
|
|
264
|
+
...(value.relation ? { relation: value.relation } : {}),
|
|
265
|
+
...(value.requirementScope ? { requirementScope: value.requirementScope } : {}),
|
|
266
|
+
...(value.providerScope ? { providerScope: value.providerScope } : {}),
|
|
267
|
+
...projectComponentDelivery(value),
|
|
268
|
+
...(value.deploymentExclusions ? { deploymentExclusions: value.deploymentExclusions.map(projectDeploymentExclusion) } : {}),
|
|
269
|
+
...(value.deploymentPlans ? { deploymentPlans: value.deploymentPlans.map(projectDeploymentPlan) } : {}),
|
|
270
|
+
...(value.deploymentObservations ? { deploymentObservations: value.deploymentObservations.map(projectDeploymentObservation) } : {}),
|
|
271
|
+
...(value.deploymentReceipts ? { deploymentReceipts: value.deploymentReceipts.map((entry) => projectDeploymentReceipt(entry, receipt ? { receipt, target: value } : undefined)) } : {}) };
|
|
272
|
+
}
|
|
273
|
+
export function projectDeploymentExclusion(value) {
|
|
274
|
+
const productId = identityDigest({ productId: value.productId });
|
|
275
|
+
return { platform: value.platform, pluginId: value.pluginId, scope: value.scope.kind, productId,
|
|
276
|
+
product: value.product ? { id: productId, product: value.product.product, version: value.product.version,
|
|
277
|
+
availability: value.product.availability, reasonCodes: [...value.product.reasonCodes] } : null,
|
|
278
|
+
reasonCode: value.reasonCode, execution: 'not-run', recoveryActions: value.recoveryActions.map((action) => safePublicMessage(action, 'productRecovery')) };
|
|
279
|
+
}
|
|
280
|
+
export function projectDeploymentPlan(value) {
|
|
281
|
+
return { bindingId: value.binding.id, physicalKey: value.binding.physicalKey,
|
|
282
|
+
products: value.binding.consumers.map((product) => ({ id: product.id, product: product.product,
|
|
283
|
+
version: product.version, availability: product.availability, reasonCodes: [...product.reasonCodes],
|
|
284
|
+
entry: product.entry ? { ...product.entry } : null })),
|
|
285
|
+
expected: { components: value.expected.components.map((component) => ({ id: component.id, kind: component.kind, name: component.name })),
|
|
286
|
+
omitted: value.expected.omitted.map((component) => ({ id: component.id, kind: component.kind, reason: component.reason })),
|
|
287
|
+
unmet: value.expected.unmet.map(projectComponentGap) },
|
|
288
|
+
effects: value.effects.map((effect) => ({ id: effect.id, kind: effect.kind, physicalKey: effect.physicalKey,
|
|
289
|
+
...(effect.activationKey ? { activationKey: effect.activationKey } : {}), componentIds: [...effect.componentIds], destination: effect.destination, destructive: effect.destructive })),
|
|
290
|
+
sharedReferences: value.evidence.sharedReferences };
|
|
291
|
+
}
|
|
292
|
+
export function projectDeploymentObservation(value) {
|
|
293
|
+
return {
|
|
294
|
+
bindingId: value.bindingId,
|
|
295
|
+
products: value.products.map((product) => ({ id: product.id, product: product.product, version: product.version,
|
|
296
|
+
availability: product.availability, reasonCodes: [...product.reasonCodes], entry: product.entry
|
|
297
|
+
? product.entry.kind === 'cli' ? { kind: 'cli', executable: product.entry.executable, configRoot: product.entry.configRoot }
|
|
298
|
+
: product.entry.kind === 'directory' ? { kind: 'directory', configRoot: product.entry.configRoot }
|
|
299
|
+
: { kind: 'generic', root: product.entry.root } : null })),
|
|
300
|
+
after: { physicalKey: value.after.physicalKey, package: value.after.package, registration: value.after.registration,
|
|
301
|
+
...(value.after.nativePackage ? { nativePackage: value.after.nativePackage } : {}),
|
|
302
|
+
...(value.after.workspaceOpen ? { workspaceOpen: value.after.workspaceOpen } : {}),
|
|
303
|
+
...(value.after.scopeRegistration ? { scopeRegistration: value.after.scopeRegistration } : {}),
|
|
304
|
+
...(value.after.scopeActivation ? { scopeActivation: value.after.scopeActivation } : {}),
|
|
305
|
+
ownership: value.after.ownership, consumers: value.after.consumers.map((consumer) => ({ productId: consumer.productId,
|
|
306
|
+
activationKey: consumer.activationKey, activation: consumer.activation, load: consumer.load })),
|
|
307
|
+
...(value.after.configuration ? { configuration: { scope: value.after.configuration.scope,
|
|
308
|
+
activation: value.after.configuration.activation,
|
|
309
|
+
...(value.after.configuration.marketplace ? { marketplace: value.after.configuration.marketplace } : {}),
|
|
310
|
+
reasonCodes: [...value.after.configuration.reasonCodes] } } : {}),
|
|
311
|
+
components: value.after.components.map((component) => ({ id: component.id, presence: component.presence, reasonCodes: [...component.reasonCodes] })),
|
|
312
|
+
...(value.after.prerequisites.nativeSources ? { prerequisites: { nativeSources: {
|
|
313
|
+
observation: value.after.prerequisites.nativeSources.observation,
|
|
314
|
+
configurationEvidence: value.after.prerequisites.nativeSources.configurationEvidence,
|
|
315
|
+
sources: value.after.prerequisites.nativeSources.sources.map(({ name, version, scope, origin, enabled, effectiveComponents }) => ({ name, version, scope, origin, enabled, effectiveComponents: [...effectiveComponents] })),
|
|
316
|
+
overlaps: [...value.after.prerequisites.nativeSources.overlaps],
|
|
317
|
+
} } } : {}),
|
|
318
|
+
nativeIdentity: value.after.nativeIdentity ? { route: value.after.nativeIdentity.route, packageId: value.after.nativeIdentity.packageId,
|
|
319
|
+
...(value.after.nativeIdentity.registrationId ? { registrationId: value.after.nativeIdentity.registrationId } : {}), sourceLocation: value.after.nativeIdentity.sourceLocation } : null },
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
export function projectDeploymentReceipt(value, context) {
|
|
323
|
+
const all = [...value.diagnostics, ...value.effects.flatMap((effect) => effect.diagnostics)]
|
|
324
|
+
.map((entry) => publicDiagnostic(entry, entry.subject, entry.severity));
|
|
325
|
+
const project = (entry) => {
|
|
326
|
+
const diagnostic = publicDiagnostic(entry, entry.subject, entry.severity);
|
|
327
|
+
const native = nativeSourceRecovery(diagnostic, all, context);
|
|
328
|
+
return native ? { ...diagnostic, message: `${diagnostic.message} ${native.message}` } : diagnostic;
|
|
329
|
+
};
|
|
330
|
+
return {
|
|
331
|
+
...projectDeploymentObservation(value),
|
|
332
|
+
effects: value.effects.map((effect) => ({ id: effect.id, status: effect.status, mutation: effect.mutation,
|
|
333
|
+
diagnostics: effect.diagnostics.filter(({ code }) => code !== SKILL_INVOCATION_NOTICE).map(project) })),
|
|
334
|
+
unmet: value.unmet.map((gap) => ({ ...projectComponentGap(gap), productIds: [...gap.productIds] })),
|
|
335
|
+
reload: value.reload,
|
|
336
|
+
diagnostics: value.diagnostics.filter(({ code }) => code !== SKILL_INVOCATION_NOTICE).map(project),
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
export function mergeProducerResults(previous, data) {
|
|
340
|
+
const commands = new Map((previous.commandResults ?? []).map((entry) => [entry.packageId, entry]));
|
|
341
|
+
for (const entry of data.commandResults ?? []) {
|
|
342
|
+
const key = entry.packageId;
|
|
343
|
+
const before = commands.get(key);
|
|
344
|
+
commands.set(key, before ? { ...entry,
|
|
345
|
+
state: before.state === 'completed' && entry.state === 'completed' ? 'completed'
|
|
346
|
+
: before.state === 'failed' && entry.state === 'failed' ? 'failed' : 'partial',
|
|
347
|
+
action: entry.action === 'unchanged' ? before.action : entry.action,
|
|
348
|
+
blockerCodes: [...new Set([...before.blockerCodes, ...entry.blockerCodes])],
|
|
349
|
+
} : entry);
|
|
350
|
+
}
|
|
351
|
+
const tools = new Map((previous.nativeToolChanges ?? []).map((entry) => [getCommandPackageId(entry.producer), entry]));
|
|
352
|
+
for (const entry of data.nativeToolChanges ?? []) {
|
|
353
|
+
const key = getCommandPackageId(entry.producer);
|
|
354
|
+
const before = tools.get(key);
|
|
355
|
+
tools.set(key, before ? { ...entry, before: before.before } : entry);
|
|
356
|
+
}
|
|
357
|
+
if (previous.commandResults || data.commandResults)
|
|
358
|
+
data.commandResults = [...commands.values()];
|
|
359
|
+
if (previous.nativeToolChanges || data.nativeToolChanges)
|
|
360
|
+
data.nativeToolChanges = [...tools.values()];
|
|
361
|
+
}
|
|
362
|
+
/** Keep exact cleanup recovery locations attached to their actual target. */
|
|
363
|
+
function cleanupRecoveryActions(receipt) {
|
|
364
|
+
const actions = new Map();
|
|
365
|
+
for (const target of receipt.targetResults) {
|
|
366
|
+
const backend = target.backend && typeof target.backend === 'object'
|
|
367
|
+
? target.backend : undefined;
|
|
368
|
+
const entries = Array.isArray(target.backend) ? target.backend.filter((entry) => entry && typeof entry === 'object'
|
|
369
|
+
&& Array.isArray(entry.quarantined) && Array.isArray(entry.residual)) : backend?.targetResults;
|
|
370
|
+
if (!Array.isArray(entries))
|
|
371
|
+
continue;
|
|
372
|
+
for (const value of entries) {
|
|
373
|
+
if (!value || typeof value !== 'object')
|
|
374
|
+
continue;
|
|
375
|
+
const entry = value;
|
|
376
|
+
if (entry.target?.pluginId !== target.pluginId || entry.target.platform !== target.agent
|
|
377
|
+
|| entry.target.scope !== target.scope)
|
|
378
|
+
continue;
|
|
379
|
+
for (const [kind, locations] of [['quarantined', entry.quarantined], ['residual', entry.residual]]) {
|
|
380
|
+
if (!Array.isArray(locations))
|
|
381
|
+
continue;
|
|
382
|
+
for (const location of locations) {
|
|
383
|
+
if (typeof location !== 'string' || !location)
|
|
384
|
+
continue;
|
|
385
|
+
const key = `${target.pluginId}\0${target.agent}\0${target.scope}\0${kind}\0${location}`;
|
|
386
|
+
actions.set(key, { kind: 'manual', message: kind === 'quarantined'
|
|
387
|
+
? `${target.pluginId} (${target.agent}/${target.scope}): Inspect quarantined output at ${JSON.stringify(location)}. Restore any needed files manually before retrying; they were not restored.`
|
|
388
|
+
: `${target.pluginId} (${target.agent}/${target.scope}): Inspect retained output or recovery item ${JSON.stringify(location)}. Resolve it before retrying; it was not removed.` });
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
return [...actions.values()];
|
|
394
|
+
}
|
|
395
|
+
export function receiptResult(command, data, receipt) {
|
|
396
|
+
data.requirements = { ...receipt.intent, roots: receipt.intent.roots ? [...receipt.intent.roots] : null };
|
|
397
|
+
data.request.plugins = [...receipt.requestedRoots];
|
|
398
|
+
data.targetResults = receipt.targetResults.map((target) => projectTarget(target, receipt));
|
|
399
|
+
data.remainingTargets = receipt.remainingTargets.map(({ pluginId, agent, scope }) => ({ pluginId, target: agent, scope }));
|
|
400
|
+
if (receipt.coverage)
|
|
401
|
+
data.coverage = { scopes: [...receipt.coverage.scopes], currentProject: receipt.coverage.scopes.includes('project'), otherProjects: 'unobserved' };
|
|
402
|
+
data.changes.requirements = receipt.declarationChanged ? 'changed' : data.changes.requirements;
|
|
403
|
+
data.changes.preferences = receipt.preferencesChanged ? 'changed' : data.changes.preferences;
|
|
404
|
+
data.changes.config = receipt.configChanged ? 'changed' : data.changes.config;
|
|
405
|
+
const commandPackageChanged = receipt.commandResults?.some(({ action, state }) => action !== 'unchanged' && state === 'completed');
|
|
406
|
+
if (data.changes.outputs !== 'changed' && (commandPackageChanged || receipt.outputsMayHaveChanged))
|
|
407
|
+
data.changes.outputs = commandPackageChanged
|
|
408
|
+
|| receipt.targetResults.some((target) => target.execution === 'applied' && target.observation !== 'unknown') ? 'changed' : 'unknown';
|
|
409
|
+
// A started backend or script may have changed external state before it failed.
|
|
410
|
+
if (data.changes.outputs === 'none' && receipt.targetResults.some((target) => ['failed', 'partial'].includes(target.execution)))
|
|
411
|
+
data.changes.outputs = 'unknown';
|
|
412
|
+
if (receipt.allSatisfied !== undefined)
|
|
413
|
+
data.allSatisfied = receipt.allSatisfied;
|
|
414
|
+
if (receipt.inSync !== undefined)
|
|
415
|
+
data.inSync = receipt.inSync;
|
|
416
|
+
if (receipt.commandResults)
|
|
417
|
+
data.commandResults = receipt.commandResults.map(({ producer, packageId, selector, action, availability, subcommands, hasFallback, invocationSelectors, state, errors, }) => ({ producer, packageId, selector, action, availability, subcommands, hasFallback, state,
|
|
418
|
+
...(invocationSelectors === undefined ? {} : { invocationSelectors }),
|
|
419
|
+
blockerCodes: errors.map((entry) => entry.code) }));
|
|
420
|
+
if (receipt.nativeToolChanges)
|
|
421
|
+
data.nativeToolChanges = receipt.nativeToolChanges.map(({ producer, before, after }) => ({ producer, before, after }));
|
|
422
|
+
const diagnostics = [...receipt.blockers, ...recoverySummaryErrors(receipt)].map((entry) => publicDiagnostic(entry));
|
|
423
|
+
const excludedProviders = new Map();
|
|
424
|
+
for (const target of receipt.targetResults) {
|
|
425
|
+
const subject = { pluginId: target.pluginId, target: target.agent, scope: target.scope };
|
|
426
|
+
diagnostics.push(...target.blockers.filter(({ code }) => !isDeliveryNoticeCode(code)).map((entry) => publicDiagnostic(entry, isConfigDiagnostic(entry) || ['userSkillProviderNotReady', 'permissionRelatedProjectUpdateIncomplete'].includes(entry.code) ? entry.subject ?? subject : subject)));
|
|
427
|
+
diagnostics.push(...(target.reasons ?? []).filter(({ code }) => code !== SKILL_INVOCATION_NOTICE && !isDeliveryNoticeCode(code))
|
|
428
|
+
.map((entry) => publicDiagnostic(entry, entry.subject ?? subject, entry.code === 'hostPermissionRestored' ? 'info' : 'warning')));
|
|
429
|
+
for (const blocker of target.blockers)
|
|
430
|
+
if (blocker.code === 'dependencyExcluded' && blocker.pluginId) {
|
|
431
|
+
excludedProviders.set(`${blocker.pluginId}\0${target.agent}`, { kind: 'command',
|
|
432
|
+
argv: ['aw', 'target', 'include', blocker.pluginId, '--target', target.agent],
|
|
433
|
+
reason: 'If you want this dependency on this target, remove its local exclusion before retrying.',
|
|
434
|
+
requiresConfirmation: true });
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
diagnostics.push(...projectDeploymentNotices(receipt.targetResults));
|
|
438
|
+
for (const result of receipt.commandResults ?? [])
|
|
439
|
+
diagnostics.push(...result.errors.map((entry) => publicDiagnostic({ code: entry.code, message: entry.message }, { pluginId: result.selector, scope: 'user' })));
|
|
440
|
+
const changed = Object.values(data.changes).some((value) => value !== 'none');
|
|
441
|
+
const completedOutput = receipt.targetResults.some((target) => ['applied', 'partial'].includes(target.execution)
|
|
442
|
+
|| (receipt.command === 'sync' || receipt.command === 'install') && target.execution === 'no-op'
|
|
443
|
+
&& target.observation === 'verified' && !target.blockers.length && target.satisfaction !== 'excluded' && target.satisfaction !== 'unsupported'
|
|
444
|
+
&& target.satisfaction !== 'not-applicable');
|
|
445
|
+
const status = receipt.ok ? 'success' : changed || completedOutput ? 'partial' : 'blocked';
|
|
446
|
+
const result = commandResult(command, data, { status, diagnostics: [...new Map(diagnostics.map((entry) => [JSON.stringify(entry), entry])).values()] });
|
|
447
|
+
if (data.request.mode === 'outputs-only')
|
|
448
|
+
result.diagnostics.push(publicDiagnostic('outputsRetainedRequirements', undefined, 'info'));
|
|
449
|
+
const inventory = inventoryRecovery(result.diagnostics, receipt);
|
|
450
|
+
result.nextActions.push(...inventory.actions, ...configRecoveryActions(result.diagnostics));
|
|
451
|
+
if (!receipt.ok) {
|
|
452
|
+
const statusContext = recoveryStatusContext(receipt);
|
|
453
|
+
result.nextActions.push(...excludedProviders.values());
|
|
454
|
+
if (receipt.errors.some((error) => error.code === 'statusUnavailable')) {
|
|
455
|
+
result.nextActions.push({ kind: 'command', argv: ['aw', 'plugin', 'status', '--context', statusContext, '--json'],
|
|
456
|
+
reason: 'Recheck the current status after the completed writes.', requiresConfirmation: false });
|
|
457
|
+
}
|
|
458
|
+
if (receipt.unconfirmedSavedState) {
|
|
459
|
+
result.nextActions.push({ kind: 'command', argv: ['aw', 'plugin', 'status', '--context', statusContext, '--json'],
|
|
460
|
+
reason: 'Inspect the current requirements and local target policy.', requiresConfirmation: false }, { kind: 'manual', message: `Check the current ${receipt.unconfirmedSavedState === 'intent' ? 'requirements' : 'target policy'} before preparing the original request again.` });
|
|
461
|
+
}
|
|
462
|
+
else if (isInstallConfigBlocked(receipt)) {
|
|
463
|
+
result.nextActions.push({ kind: 'manual', message: 'Retry the original plugin install request after resolving the configuration diagnostics.' });
|
|
464
|
+
}
|
|
465
|
+
else if ((receipt.command === 'sync' || receipt.command === 'install') && isRecoveryReviewStaleBeforeExecution(receipt)) {
|
|
466
|
+
result.nextActions.push({ kind: 'manual',
|
|
467
|
+
message: `Review the original plugin ${receipt.command} request again with the same plugins, context, scope, targets and options.` });
|
|
468
|
+
}
|
|
469
|
+
else if (command === 'plugin.remove') {
|
|
470
|
+
result.nextActions.push({ kind: 'manual', message: 'Review the remaining output ownership. Use --only requirements to cancel requirements or --only outputs with explicit targets to clean proven owned outputs.' });
|
|
471
|
+
for (const target of receipt.targetResults) {
|
|
472
|
+
if (target.scope !== 'user' || !target.blockers.some(({ code }) => code === 'providerSwitchVerificationFailed'))
|
|
473
|
+
continue;
|
|
474
|
+
result.nextActions.push({ kind: 'manual', message: `Restore the Project dependency and verify it with aw plugin status --context project. If the User copy is no longer needed, review aw plugin remove ${target.pluginId} --only outputs --scope user --target ${target.agent}.` });
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
const prerequisites = new Map();
|
|
479
|
+
const retries = new Map();
|
|
480
|
+
let checkRoot = false;
|
|
481
|
+
for (const target of receipt.targetResults) {
|
|
482
|
+
if (!receipt.remainingTargets.some((entry) => entry.pluginId === target.pluginId && entry.agent === target.agent && entry.scope === target.scope))
|
|
483
|
+
continue;
|
|
484
|
+
const local = result.diagnostics.filter((entry) => matchesRecoveryPosition(entry.subject, target));
|
|
485
|
+
if (local.some((entry) => entry.code === 'stateInventoryFailed' && entry.detail))
|
|
486
|
+
continue;
|
|
487
|
+
for (const root of userSkillProviderRepairs(target))
|
|
488
|
+
prerequisites.set(JSON.stringify([root.pluginId, root.agent, root.scope]), root);
|
|
489
|
+
const nativeManual = target.agent === 'grok' && local.some((entry) => entry.code === 'grokNativeInstallRecovery');
|
|
490
|
+
const roots = recoveryRetryDispositions(receipt, [target]);
|
|
491
|
+
if (!roots.length)
|
|
492
|
+
checkRoot = true;
|
|
493
|
+
for (const root of roots) {
|
|
494
|
+
const key = JSON.stringify([root.pluginId, root.agent, root.scope]);
|
|
495
|
+
const previous = retries.get(key);
|
|
496
|
+
retries.set(key, { root, nativeManual: nativeManual || previous?.nativeManual === true });
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
if (checkRoot)
|
|
500
|
+
result.nextActions.push({ kind: 'command',
|
|
501
|
+
argv: ['aw', 'plugin', 'status', '--context', statusContext, '--json'],
|
|
502
|
+
reason: 'Identify the current declared root for this dependency before retrying.', requiresConfirmation: false });
|
|
503
|
+
for (const [key, root] of prerequisites) {
|
|
504
|
+
result.nextActions.push(recoverySyncAction(root, messages.userSkillProviderNotReady));
|
|
505
|
+
retries.delete(key);
|
|
506
|
+
}
|
|
507
|
+
for (const { root, nativeManual } of retries.values()) {
|
|
508
|
+
if (root.kind === 'exact-project' && inventory.exactProjects.has(JSON.stringify([root.pluginId, root.agent])))
|
|
509
|
+
continue;
|
|
510
|
+
result.nextActions.push(recoverySyncAction(root, nativeManual ? 'Complete the host recovery and verify its effects before reviewing this retry.'
|
|
511
|
+
: 'Retry the selected incomplete target after resolving its diagnostics.'));
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
result.nextActions.push(...commandPackageRecoveryActions(receipt.commandResults), ...cleanupRecoveryActions(receipt));
|
|
516
|
+
return result;
|
|
517
|
+
}
|
|
518
|
+
//# sourceMappingURL=public-lifecycle-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-lifecycle-result.js","sourceRoot":"","sources":["../../../src/commands/public-lifecycle-result.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oCAAoC,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,wBAAwB,EAC3C,MAAM,wBAAwB,CAAC;AAEpI,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,6BAA6B,EAAE,aAAa,EAAE,iBAAiB,EAAoC,MAAM,4BAA4B,CAAC;AAC/I,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CA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