@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,556 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { isPortablePlatformTarget, PORTABLE_PLATFORM_TARGETS } from '@lesliechan721/aw-plugin-core';
|
|
3
|
+
import { getPlatformFeatureRegistry, isSkillInvocationFeature } from '@lesliechan721/aw-plugin-core/manifest';
|
|
4
|
+
import { withAwHomeMutationLock } from '../utils/aw-home-mutation-lock.js';
|
|
5
|
+
import { recoveryInterruptionCode } from '../recovery/interruption.js';
|
|
6
|
+
import { PluginConfigDiagnosticError } from '../utils/plugin-config-diagnostics.js';
|
|
7
|
+
import { mapInstallReads } from '../recovery/install-concurrency.js';
|
|
8
|
+
import { parsePortableSkillFrontmatter, validatePortableSkillDirectory, validatePortableSkillName } from '../utils/dynamic-skill-tree.js';
|
|
9
|
+
import { isDeliveryCapabilityGap } from '../utils/component-gap.js';
|
|
10
|
+
import { skillInvocationWarning } from '../utils/skill-invocation-warning.js';
|
|
11
|
+
import { validateRuntimeSkillClosure } from '../utils/runtime-skill-closure.js';
|
|
12
|
+
import { materializePortableSkillsToDirectory } from './commands.js';
|
|
13
|
+
import { resolvePortableCatalogBindingInput } from './materializer.js';
|
|
14
|
+
import { assertPortablePath, portableJsonDigest, readHistoricalPortableMaterialization } from './historical-materialization.js';
|
|
15
|
+
import { portableRecoveryLayout } from './recovery-layout.js';
|
|
16
|
+
import { observePortableSkill, publishPortableSkill, removePortableSkill, scanPortableSkills, } from './writer.js';
|
|
17
|
+
export function normalizePortableSkillName(name) {
|
|
18
|
+
validatePortableSkillName(name);
|
|
19
|
+
return name;
|
|
20
|
+
}
|
|
21
|
+
const SAFE_FILESYSTEM_CODES = new Set([
|
|
22
|
+
'EACCES', 'EBUSY', 'EEXIST', 'EIO', 'EISDIR', 'ELOOP', 'EMFILE', 'ENAMETOOLONG',
|
|
23
|
+
'ENFILE', 'ENOENT', 'ENOSPC', 'ENOTDIR', 'ENOTEMPTY', 'EPERM', 'EROFS', 'EXDEV', 'EINVAL',
|
|
24
|
+
]);
|
|
25
|
+
/** Supplement the existing blocker with fixed stages and known errno names only. */
|
|
26
|
+
export function portablePreparationDiagnostic(prepared, diagnostic, agent) {
|
|
27
|
+
const detail = prepared.diagnostics?.find((entry) => entry.code === diagnostic.code && entry.agent === agent);
|
|
28
|
+
if (!detail)
|
|
29
|
+
return diagnostic;
|
|
30
|
+
if (detail.configDiagnostic)
|
|
31
|
+
return detail.configDiagnostic;
|
|
32
|
+
return { ...diagnostic, message: `${diagnostic.message}准备阶段:${detail.stage}${detail.systemCode ? `;文件系统错误:${detail.systemCode}` : ''}。` };
|
|
33
|
+
}
|
|
34
|
+
/** A rejected Review still identifies the requested Skill, but no longer proves its installed state. */
|
|
35
|
+
export function unobservedPortableTarget(target, code) {
|
|
36
|
+
return {
|
|
37
|
+
skill: target.skill, agent: target.agent, physicalPath: target.physicalPath,
|
|
38
|
+
providerPluginId: target.providerPluginId, expectedDigest: target.expectedDigest,
|
|
39
|
+
disposition: target.disposition, associatedAgents: target.associatedAgents,
|
|
40
|
+
execution: 'not-run', observation: 'unknown', ownership: 'unknown', contentState: 'unknown', blockers: [code],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export class PortableInterruptedError extends Error {
|
|
44
|
+
result;
|
|
45
|
+
constructor(result, cause) {
|
|
46
|
+
super('Portable recovery was interrupted.', { cause });
|
|
47
|
+
this.result = result;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function selectedAgents(agents) {
|
|
51
|
+
if (agents.some((agent) => !isPortablePlatformTarget(agent)) || new Set(agents).size !== agents.length) {
|
|
52
|
+
throw new Error('portableInvalidAgentSelection');
|
|
53
|
+
}
|
|
54
|
+
return [...agents];
|
|
55
|
+
}
|
|
56
|
+
function fromObservation(observed, agent, providerPluginId, expectedDigest) {
|
|
57
|
+
return { skill: observed.skill, agent, physicalPath: observed.physicalPath, providerPluginId, expectedDigest,
|
|
58
|
+
ownership: observed.ownership, observation: observed.observation, contentState: observed.contentState,
|
|
59
|
+
associatedAgents: [agent], ...(observed.installedDigest ? { installedDigest: observed.installedDigest } : {}),
|
|
60
|
+
...(observed.blocker ? { blocker: observed.blocker } : {}),
|
|
61
|
+
...(observed.recoverableIdentity ? { ownerIdentity: observed.recoverableIdentity } : {}),
|
|
62
|
+
observationEvidence: observed };
|
|
63
|
+
}
|
|
64
|
+
function finalizePreparation(base) {
|
|
65
|
+
const blockers = [...new Set([...base.globalBlockers, ...base.targets.flatMap((target) => target.blocker ? [target.blocker] : [])])];
|
|
66
|
+
return { ...base, blockers, evidenceDigest: portableJsonDigest({ mode: base.mode, binding: base.bindingDigest,
|
|
67
|
+
agents: base.options.agents, excludedPluginIds: [...(base.options.excludedPluginIds ?? [])].sort(),
|
|
68
|
+
targets: base.targets, globalBlockers: base.globalBlockers, unmet: base.unmet, intentionalEmpty: base.intentionalEmpty,
|
|
69
|
+
...(base.cleanupOptions ? { force: Boolean(base.cleanupOptions.force), retainedTargets: base.cleanupOptions.retainedTargets } : {}) }) };
|
|
70
|
+
}
|
|
71
|
+
/** Current config can prove owned output stale without producing a new candidate. */
|
|
72
|
+
async function observeUnpreparedOwnedTargets(options) {
|
|
73
|
+
const providers = new Map(options.providerConfigs);
|
|
74
|
+
const installed = await scanPortableSkills({ destinationRoot: options.destinationRoot, platform: options.agent,
|
|
75
|
+
scope: options.scope, signal: options.signal });
|
|
76
|
+
return installed.targets.flatMap((observed) => {
|
|
77
|
+
const owner = observed.owner ?? observed.recoverableIdentity;
|
|
78
|
+
const configDigest = owner && providers.get(owner.pluginId);
|
|
79
|
+
if (!owner || !configDigest || owner.logicalIdentity !== options.logicalIdentity
|
|
80
|
+
|| options.excludedPluginIds?.includes(owner.pluginId))
|
|
81
|
+
return [];
|
|
82
|
+
const stale = observed.owner && observed.owner.configDigest !== configDigest;
|
|
83
|
+
const knownDrift = observed.observation === 'drifted' || observed.observation === 'satisfied' && stale;
|
|
84
|
+
const current = knownDrift ? { ...observed, observation: 'drifted',
|
|
85
|
+
contentState: observed.contentState === 'damaged' ? 'damaged' : 'stale' }
|
|
86
|
+
: { ...observed, observation: 'unknown', contentState: 'unknown' };
|
|
87
|
+
return [{ ...fromObservation(current, options.agent, owner.pluginId, ''), configDigest,
|
|
88
|
+
disposition: 'write', ownerIdentity: owner }];
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
async function collectPreparation(rawOptions, allowMaterialize, catalogReadScope, generations) {
|
|
92
|
+
rawOptions.signal?.throwIfAborted();
|
|
93
|
+
const options = { ...rawOptions, agents: selectedAgents(rawOptions.agents), env: rawOptions.context.env };
|
|
94
|
+
const layout = portableRecoveryLayout(options.context);
|
|
95
|
+
if (options.scope !== layout.scope)
|
|
96
|
+
throw new Error('portableEnvironmentUnsupported');
|
|
97
|
+
const base = { options, root: options.selector, generation: '', generations: {}, logicalIdentity: '',
|
|
98
|
+
targets: [], blockers: [], globalBlockers: [], unmet: [], intentionalEmpty: false, evidenceDigest: '', mode: 'deploy' };
|
|
99
|
+
if (new Set(options.agents.map((agent) => layout.targetRoot(agent))).size !== options.agents.length) {
|
|
100
|
+
return finalizePreparation({ ...base, globalBlockers: ['portableOutputConflict'] });
|
|
101
|
+
}
|
|
102
|
+
const bindings = [];
|
|
103
|
+
let confirmedInputs = 0;
|
|
104
|
+
let expectedSkills = 0;
|
|
105
|
+
for (const agent of options.agents) {
|
|
106
|
+
options.signal?.throwIfAborted();
|
|
107
|
+
let stage = 'catalog-binding';
|
|
108
|
+
try {
|
|
109
|
+
const { providerConfigs = [], policyNotices = [], ...bindingInput } = await resolvePortableCatalogBindingInput({
|
|
110
|
+
...options, platform: agent, cwd: layout.cwd, catalogReadScope
|
|
111
|
+
});
|
|
112
|
+
const generation = path.join(layout.generationRoot, portableJsonDigest(options.selector).slice(7),
|
|
113
|
+
// Previous generations requested only Skills and cannot account for the other component kinds.
|
|
114
|
+
portableJsonDigest({ platform: agent, bindingInput, componentDelivery: 'all-kinds' }).slice(7));
|
|
115
|
+
base.generations[agent] = generation;
|
|
116
|
+
if (!base.generation)
|
|
117
|
+
base.generation = generation;
|
|
118
|
+
stage = 'generation-path';
|
|
119
|
+
if (!await assertPortablePath(path.parse(generation).root, generation)) {
|
|
120
|
+
if (!allowMaterialize) {
|
|
121
|
+
base.logicalIdentity = bindingInput.source.logicalIdentity;
|
|
122
|
+
bindings.push([agent, portableJsonDigest(bindingInput)]);
|
|
123
|
+
stage = 'output-observation';
|
|
124
|
+
base.targets.push(...await observeUnpreparedOwnedTargets({ destinationRoot: layout.targetRoot(agent),
|
|
125
|
+
agent, scope: options.scope, logicalIdentity: base.logicalIdentity, providerConfigs,
|
|
126
|
+
excludedPluginIds: options.excludedPluginIds, signal: options.signal }));
|
|
127
|
+
base.globalBlockers.push('needs-preparation');
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
stage = 'materialize';
|
|
131
|
+
let publication = generations?.get(generation);
|
|
132
|
+
if (!publication) {
|
|
133
|
+
publication = materializePortableSkillsToDirectory({ ...options, platform: agent, cwd: layout.cwd,
|
|
134
|
+
out: generation, allowEmpty: true, allowUnmet: true }, catalogReadScope).then(() => { });
|
|
135
|
+
generations?.set(generation, publication);
|
|
136
|
+
}
|
|
137
|
+
await publication;
|
|
138
|
+
}
|
|
139
|
+
stage = 'materialization-read';
|
|
140
|
+
const materialized = await readHistoricalPortableMaterialization({ generationRoot: layout.generationRoot,
|
|
141
|
+
scope: options.scope, rootDir: generation, pluginId: options.selector,
|
|
142
|
+
logicalIdentity: bindingInput.source.logicalIdentity, platform: agent });
|
|
143
|
+
if (JSON.stringify(materialized.binding.source) !== JSON.stringify(bindingInput.source)
|
|
144
|
+
|| materialized.binding.profile.inputDigest !== bindingInput.profile.inputDigest) {
|
|
145
|
+
base.globalBlockers.push('operationReviewStale');
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
base.logicalIdentity = bindingInput.source.logicalIdentity;
|
|
149
|
+
bindings.push([agent, materialized.binding.finalDigest]);
|
|
150
|
+
const applicableNotices = policyNotices.filter((notice) => !notice.subject?.pluginId || !options.excludedPluginIds?.includes(notice.subject.pluginId));
|
|
151
|
+
if (applicableNotices.length)
|
|
152
|
+
(base.policyNotices ??= []).push(...applicableNotices);
|
|
153
|
+
const candidates = materialized.marker.selectedSkills.filter((candidate) => !options.excludedPluginIds?.includes(candidate.providerPluginId));
|
|
154
|
+
const incompleteProviders = new Set();
|
|
155
|
+
const skillIds = new Map();
|
|
156
|
+
const gaps = materialized.binding.preparation.flatMap((unit) => {
|
|
157
|
+
const providerPluginId = `${materialized.binding.source.kind === 'catalog-snapshot' ? materialized.binding.source.sourceId : ''}/${unit.plugin}`;
|
|
158
|
+
if (options.excludedPluginIds?.includes(providerPluginId))
|
|
159
|
+
return [];
|
|
160
|
+
if (unit.unmet.some((gap) => !isDeliveryCapabilityGap(gap) || !unit.declaredGapIds?.includes(gap.id))) {
|
|
161
|
+
incompleteProviders.add(providerPluginId);
|
|
162
|
+
}
|
|
163
|
+
for (const component of unit.components.filter((entry) => entry.kind === 'skill')) {
|
|
164
|
+
skillIds.set(`${providerPluginId}/${component.name}`, component.id);
|
|
165
|
+
}
|
|
166
|
+
return unit.unmet.map((gap) => ({ ...gap, providerPluginId, agent, renderScope: unit.renderScope }));
|
|
167
|
+
});
|
|
168
|
+
base.unmet.push(...gaps);
|
|
169
|
+
expectedSkills += candidates.length;
|
|
170
|
+
confirmedInputs += 1;
|
|
171
|
+
if (gaps.some((gap) => !isDeliveryCapabilityGap(gap)) && !candidates.length)
|
|
172
|
+
base.globalBlockers.push('portableComponentsUnmet');
|
|
173
|
+
stage = 'skill-validation';
|
|
174
|
+
if (new Set(candidates.map((candidate) => normalizePortableSkillName(candidate.name))).size !== candidates.length) {
|
|
175
|
+
base.globalBlockers.push('portableOutputConflict');
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
const invocationWarnings = new Map();
|
|
179
|
+
for (const candidate of candidates) {
|
|
180
|
+
const source = path.join(generation, 'skills', candidate.name);
|
|
181
|
+
const tree = await validatePortableSkillDirectory(source);
|
|
182
|
+
const { metadata } = parsePortableSkillFrontmatter(tree.files['SKILL.md'].toString('utf8'));
|
|
183
|
+
if (metadata && typeof metadata === 'object') {
|
|
184
|
+
const requested = Object.entries(metadata).flatMap(([feature, value]) => {
|
|
185
|
+
if (!isSkillInvocationFeature(feature) || typeof value !== 'string')
|
|
186
|
+
return [];
|
|
187
|
+
const values = value ? value.split(',') : [];
|
|
188
|
+
if (values.some((entry) => !getPlatformFeatureRegistry()[feature]?.values?.includes(entry)))
|
|
189
|
+
return [];
|
|
190
|
+
return [{ feature, ...(values.length ? { values } : {}) }];
|
|
191
|
+
});
|
|
192
|
+
const warning = skillInvocationWarning(candidate.name, requested, { pluginId: candidate.providerPluginId, target: agent, scope: options.scope });
|
|
193
|
+
if (warning)
|
|
194
|
+
invocationWarnings.set(candidate.name, warning);
|
|
195
|
+
}
|
|
196
|
+
await validateRuntimeSkillClosure(source);
|
|
197
|
+
}
|
|
198
|
+
stage = 'output-observation';
|
|
199
|
+
for (const candidate of candidates) {
|
|
200
|
+
options.signal?.throwIfAborted();
|
|
201
|
+
const identity = { pluginId: candidate.providerPluginId,
|
|
202
|
+
logicalIdentity: base.logicalIdentity, platform: agent, scope: options.scope, skill: candidate.name };
|
|
203
|
+
const configDigest = candidate.configDigest ?? materialized.binding.profile.inputDigest;
|
|
204
|
+
const observed = await observePortableSkill({ destinationRoot: layout.targetRoot(agent),
|
|
205
|
+
skill: candidate.name, identity, expectedDigest: candidate.filesDigest, configDigest });
|
|
206
|
+
base.targets.push({ ...fromObservation(observed, agent, candidate.providerPluginId, candidate.filesDigest),
|
|
207
|
+
...(invocationWarnings.has(candidate.name) ? { invocationWarning: invocationWarnings.get(candidate.name) } : {}),
|
|
208
|
+
componentId: skillIds.get(`${candidate.providerPluginId}/${candidate.name}`),
|
|
209
|
+
configDigest, sourcePath: path.join(generation, 'skills', candidate.name), ownerIdentity: identity, disposition: 'write',
|
|
210
|
+
// A complete matching identity is sufficient to repair damaged weak metadata.
|
|
211
|
+
...(observed.blocker === 'portableOwnerDamaged' ? { blocker: undefined } : {}) });
|
|
212
|
+
}
|
|
213
|
+
const providers = new Set([materialized.marker.plugin.id, ...materialized.marker.dependencies]
|
|
214
|
+
.filter((pluginId) => !options.excludedPluginIds?.includes(pluginId)));
|
|
215
|
+
const installed = await scanPortableSkills({ destinationRoot: layout.targetRoot(agent), platform: agent,
|
|
216
|
+
scope: options.scope, signal: options.signal, checkContent: (owner) => owner.logicalIdentity === base.logicalIdentity
|
|
217
|
+
&& providers.has(owner.pluginId) && !candidates.some((candidate) => candidate.name === owner.skill
|
|
218
|
+
&& candidate.providerPluginId === owner.pluginId) });
|
|
219
|
+
if (gaps.length && !installed.complete)
|
|
220
|
+
base.globalBlockers.push('portableObservationFailed');
|
|
221
|
+
for (const observed of installed.targets) {
|
|
222
|
+
const owner = observed.owner ?? observed.recoverableIdentity;
|
|
223
|
+
if (!owner || !providers.has(owner.pluginId) || owner.logicalIdentity !== base.logicalIdentity
|
|
224
|
+
|| candidates.some((candidate) => candidate.name === owner.skill && candidate.providerPluginId === owner.pluginId))
|
|
225
|
+
continue;
|
|
226
|
+
const unverifiedPreviousContents = gaps.some((gap) => gap.providerPluginId === owner.pluginId)
|
|
227
|
+
&& (!observed.owner || observed.installedDigest !== observed.owner.filesDigest);
|
|
228
|
+
if (incompleteProviders.has(owner.pluginId) || unverifiedPreviousContents) {
|
|
229
|
+
base.targets.push({ ...fromObservation(observed, agent, owner.pluginId, observed.owner?.filesDigest ?? ''),
|
|
230
|
+
ownerIdentity: owner, disposition: 'retain', blocker: 'previousDeploymentRetained' });
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
base.targets.push({ ...fromObservation(observed, agent, owner.pluginId, observed.owner?.filesDigest ?? ''),
|
|
234
|
+
disposition: 'remove', observation: observed.observation === 'satisfied' ? 'drifted' : observed.observation,
|
|
235
|
+
contentState: observed.contentState === 'current' ? 'stale' : observed.contentState });
|
|
236
|
+
}
|
|
237
|
+
// A foreign or damaged marker may be omitted by the owned-output scan.
|
|
238
|
+
// A named, skipped Skill still identifies an exact destination to inspect.
|
|
239
|
+
for (const gap of gaps) {
|
|
240
|
+
if (gap.kind !== 'skill' || !gap.name || base.targets.some((target) => target.agent === agent && target.skill === gap.name))
|
|
241
|
+
continue;
|
|
242
|
+
// A legacy renderer's display name need not be a legal Skill directory.
|
|
243
|
+
try {
|
|
244
|
+
validatePortableSkillName(gap.name);
|
|
245
|
+
}
|
|
246
|
+
catch {
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
const identity = { pluginId: gap.providerPluginId, logicalIdentity: base.logicalIdentity,
|
|
250
|
+
platform: agent, scope: options.scope, skill: gap.name };
|
|
251
|
+
const observed = await observePortableSkill({ destinationRoot: layout.targetRoot(agent), skill: gap.name, identity });
|
|
252
|
+
if (observed.observation === 'absent')
|
|
253
|
+
continue;
|
|
254
|
+
base.targets.push({ ...fromObservation(observed, agent, gap.providerPluginId, ''), ownerIdentity: identity,
|
|
255
|
+
disposition: 'retain', blocker: observed.blocker ?? 'previousDeploymentRetained' });
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
catch (error) {
|
|
259
|
+
if (recoveryInterruptionCode(error, options.signal))
|
|
260
|
+
throw error;
|
|
261
|
+
if (error instanceof PluginConfigDiagnosticError) {
|
|
262
|
+
for (const configDiagnostic of error.diagnostics) {
|
|
263
|
+
base.globalBlockers.push(configDiagnostic.code);
|
|
264
|
+
(base.diagnostics ??= []).push({ code: configDiagnostic.code, agent, stage, configDiagnostic });
|
|
265
|
+
}
|
|
266
|
+
continue;
|
|
267
|
+
}
|
|
268
|
+
const code = error instanceof Error && /^(?:portable|operationReview)/u.test(error.message)
|
|
269
|
+
? error.message.split(':')[0] : 'portablePreparationFailed';
|
|
270
|
+
base.globalBlockers.push(code);
|
|
271
|
+
const systemCode = error && typeof error === 'object' && 'code' in error
|
|
272
|
+
&& typeof error.code === 'string' && SAFE_FILESYSTEM_CODES.has(error.code) ? error.code : undefined;
|
|
273
|
+
(base.diagnostics ??= []).push({ code, agent, stage, ...(systemCode ? { systemCode } : {}) });
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
base.globalBlockers = [...new Set(base.globalBlockers)];
|
|
277
|
+
base.bindingDigest = portableJsonDigest(bindings);
|
|
278
|
+
base.intentionalEmpty = confirmedInputs === options.agents.length && confirmedInputs > 0
|
|
279
|
+
&& expectedSkills === 0 && base.unmet.length === 0 && base.globalBlockers.length === 0;
|
|
280
|
+
return finalizePreparation(base);
|
|
281
|
+
}
|
|
282
|
+
export async function preparePortableRecovery(options, catalogReadScope, generations) {
|
|
283
|
+
return collectPreparation(options, true, catalogReadScope, generations);
|
|
284
|
+
}
|
|
285
|
+
export async function inspectPortableRecovery(options, catalogReadScope) {
|
|
286
|
+
return options.cleanup ? preparePortableCleanup(options.cleanup) : collectPreparation(options, false, catalogReadScope);
|
|
287
|
+
}
|
|
288
|
+
/** Cleanup only reads bounded output markers. Current Catalog, schema and renderer are irrelevant. */
|
|
289
|
+
export async function preparePortableCleanup(options) {
|
|
290
|
+
options.signal?.throwIfAborted();
|
|
291
|
+
const agents = selectedAgents(options.agents ?? [...PORTABLE_PLATFORM_TARGETS]);
|
|
292
|
+
const base = { options: { ...options, cliVersion: '', agents, env: options.context.env, cleanup: options },
|
|
293
|
+
root: options.selector, generation: '', logicalIdentity: '', targets: [], blockers: [], globalBlockers: [],
|
|
294
|
+
unmet: [], intentionalEmpty: false, evidenceDigest: '', mode: 'cleanup', cleanupOptions: { ...options, agents } };
|
|
295
|
+
try {
|
|
296
|
+
const layout = portableRecoveryLayout(options.context);
|
|
297
|
+
if (layout.scope !== options.scope)
|
|
298
|
+
throw new Error('portableEnvironmentUnsupported');
|
|
299
|
+
for (const agent of agents) {
|
|
300
|
+
const scanned = await scanPortableSkills({ destinationRoot: layout.targetRoot(agent), platform: agent,
|
|
301
|
+
scope: options.scope, signal: options.signal });
|
|
302
|
+
if (!scanned.complete)
|
|
303
|
+
base.globalBlockers.push('portableObservationFailed');
|
|
304
|
+
for (const observed of scanned.targets) {
|
|
305
|
+
const owner = observed.owner ?? observed.recoverableIdentity;
|
|
306
|
+
if (!owner || owner.pluginId !== options.selector || options.retainedTargets?.some((retained) => retained.skill === observed.skill && retained.agent === agent && retained.physicalPath === observed.physicalPath))
|
|
307
|
+
continue;
|
|
308
|
+
const target = fromObservation(observed, agent, owner.pluginId, observed.owner?.filesDigest ?? '');
|
|
309
|
+
base.targets.push({ ...target, disposition: 'remove',
|
|
310
|
+
...(options.force && target.blocker === 'portableOwnerDamaged' ? { blocker: undefined } : {}) });
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
catch (error) {
|
|
315
|
+
options.signal?.throwIfAborted();
|
|
316
|
+
if (error instanceof Error && error.name === 'AbortError')
|
|
317
|
+
throw error;
|
|
318
|
+
base.globalBlockers.push('portableObservationFailed');
|
|
319
|
+
}
|
|
320
|
+
base.globalBlockers = [...new Set(base.globalBlockers)];
|
|
321
|
+
return finalizePreparation(base);
|
|
322
|
+
}
|
|
323
|
+
function matchesCompleted(footprint, logicalIdentity, target) {
|
|
324
|
+
return footprint.disposition === target.disposition && footprint.logicalIdentity === logicalIdentity && footprint.physicalPath === target.physicalPath
|
|
325
|
+
&& footprint.providerPluginId === target.providerPluginId && footprint.expectedDigest === target.expectedDigest
|
|
326
|
+
&& footprint.configDigest === target.configDigest;
|
|
327
|
+
}
|
|
328
|
+
export async function portableReviewMatches(prepared, current, completed = []) {
|
|
329
|
+
if (prepared.evidenceDigest === current.evidenceDigest)
|
|
330
|
+
return true;
|
|
331
|
+
const acceptedPaths = new Set(current.targets.filter((target) => target.disposition === 'write'
|
|
332
|
+
&& target.observation === 'satisfied' && target.ownership === 'aw' && completed.some((footprint) => matchesCompleted(footprint, current.logicalIdentity, target) && footprint.evidenceDigest === target.observationEvidence?.evidenceDigest
|
|
333
|
+
&& prepared.targets.some((expected) => matchesCompleted(footprint, prepared.logicalIdentity, expected))))
|
|
334
|
+
.map((target) => target.physicalPath));
|
|
335
|
+
const retired = prepared.targets.filter((target) => target.disposition === 'remove'
|
|
336
|
+
&& !current.targets.some((live) => live.physicalPath === target.physicalPath));
|
|
337
|
+
for (const target of retired) {
|
|
338
|
+
const footprint = completed.find((entry) => matchesCompleted(entry, prepared.logicalIdentity, target));
|
|
339
|
+
if (!footprint)
|
|
340
|
+
continue;
|
|
341
|
+
// A scan omits foreign entries. The exact retired path must still be absent.
|
|
342
|
+
const observed = await observePortableSkill({ destinationRoot: path.dirname(target.physicalPath),
|
|
343
|
+
skill: target.skill, identity: target.ownerIdentity });
|
|
344
|
+
if (observed.observation === 'absent' && observed.evidenceDigest === footprint.evidenceDigest) {
|
|
345
|
+
acceptedPaths.add(target.physicalPath);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if (!acceptedPaths.size)
|
|
349
|
+
return false;
|
|
350
|
+
const unchanged = (value) => portableJsonDigest({
|
|
351
|
+
binding: value.bindingDigest, targets: value.targets.filter((target) => !acceptedPaths.has(target.physicalPath)),
|
|
352
|
+
blockers: value.globalBlockers, unmet: value.unmet, intentionalEmpty: value.intentionalEmpty,
|
|
353
|
+
excludedPluginIds: value.options.excludedPluginIds,
|
|
354
|
+
});
|
|
355
|
+
return unchanged(prepared) === unchanged(current);
|
|
356
|
+
}
|
|
357
|
+
export async function executePortableRecovery(options) {
|
|
358
|
+
const { prepared, admission } = options;
|
|
359
|
+
const selected = prepared.targets.filter((target) => !options.targets || options.targets.some((pair) => pair.skill === target.skill && pair.agent === target.agent));
|
|
360
|
+
const progress = options.progress ?? { completed: [], failed: [] };
|
|
361
|
+
const cleanup = options.action === 'cleanup' || options.action === 'uninstall';
|
|
362
|
+
const signal = options.signal ?? prepared.options.signal;
|
|
363
|
+
let outputsMayHaveChanged = false;
|
|
364
|
+
const finish = (targets, globalBlockers) => {
|
|
365
|
+
const blockers = [...new Set([...globalBlockers, ...targets.flatMap((target) => target.blockers),
|
|
366
|
+
...(prepared.unmet.some((gap) => !isDeliveryCapabilityGap(gap)) ? ['portableComponentsUnmet'] : [])])];
|
|
367
|
+
const succeeded = targets.filter((target) => target.execution === 'applied' || target.execution === 'no-op').length;
|
|
368
|
+
const ok = blockers.length === 0 && succeeded === targets.length;
|
|
369
|
+
return { targets, blockers, globalBlockers, unmet: prepared.unmet, outputsMayHaveChanged,
|
|
370
|
+
execution: ok ? targets.some((target) => target.execution === 'applied') ? 'applied' : 'no-op'
|
|
371
|
+
: succeeded > 0 ? 'partial' : outputsMayHaveChanged ? 'failed' : 'not-run' };
|
|
372
|
+
};
|
|
373
|
+
const stale = (target) => unobservedPortableTarget(target, 'operationReviewStale');
|
|
374
|
+
if (cleanup !== (prepared.mode === 'cleanup') || !prepared.evidenceDigest
|
|
375
|
+
|| options.force && !prepared.cleanupOptions?.force || options.targets?.some((pair) => !selected.some((target) => target.agent === pair.agent && target.skill === pair.skill))) {
|
|
376
|
+
return finish(selected.map(stale), ['operationReviewStale']);
|
|
377
|
+
}
|
|
378
|
+
return withAwHomeMutationLock({ env: prepared.options.context.env, token: options.token, signal, action: async () => {
|
|
379
|
+
const layout = portableRecoveryLayout(prepared.options.context);
|
|
380
|
+
const read = async () => {
|
|
381
|
+
if (options.checkPrewrite)
|
|
382
|
+
return options.checkPrewrite();
|
|
383
|
+
const current = cleanup ? await preparePortableCleanup(prepared.cleanupOptions)
|
|
384
|
+
: await collectPreparation({ ...prepared.options, signal, catalogOperationContext: undefined }, false);
|
|
385
|
+
if (!await portableReviewMatches(prepared, current, progress.completed)) {
|
|
386
|
+
return { code: 'operationReviewStale', message: 'Portable review inputs changed.' };
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
// Bind Catalog, configuration and the complete set of owned outputs for this prewrite window.
|
|
390
|
+
// The check only grants permission to attempt the reviewed work. It supplies no live writer observations.
|
|
391
|
+
let reviewProblem;
|
|
392
|
+
let preflight;
|
|
393
|
+
let checkedEpoch;
|
|
394
|
+
const check = () => {
|
|
395
|
+
const epoch = admission?.exclusiveGeneration ?? 0;
|
|
396
|
+
if (!preflight || checkedEpoch !== epoch) {
|
|
397
|
+
checkedEpoch = epoch;
|
|
398
|
+
const capture = async () => ({ epoch: admission?.exclusiveGeneration ?? 0, problem: await read() });
|
|
399
|
+
const readRoots = [...prepared.options.agents.map((agent) => layout.targetRoot(agent)),
|
|
400
|
+
...(options.readProviders ?? []).flatMap((group) => {
|
|
401
|
+
const provider = portableRecoveryLayout(group.options.context);
|
|
402
|
+
return group.options.agents.map((agent) => provider.targetRoot(agent));
|
|
403
|
+
})];
|
|
404
|
+
preflight = admission ? admission.run([...new Set(readRoots)].map((value) => ({ kind: 'path', value, access: 'read' })), capture, signal) : capture();
|
|
405
|
+
}
|
|
406
|
+
return preflight;
|
|
407
|
+
};
|
|
408
|
+
const initial = await check();
|
|
409
|
+
if (initial.problem)
|
|
410
|
+
return { ...finish(selected.map(stale), [initial.problem.code]), reviewProblem: initial.problem };
|
|
411
|
+
const startedWrites = new Set();
|
|
412
|
+
const verified = new Map();
|
|
413
|
+
const execute = async (target) => {
|
|
414
|
+
options.onStart?.();
|
|
415
|
+
const failed = progress.failed.find(({ logicalIdentity, outcome }) => logicalIdentity === prepared.logicalIdentity
|
|
416
|
+
&& outcome.physicalPath === target.physicalPath && outcome.expectedDigest === target.expectedDigest
|
|
417
|
+
&& outcome.configDigest === target.configDigest && outcome.providerPluginId === target.providerPluginId);
|
|
418
|
+
if (failed)
|
|
419
|
+
return { ...failed.outcome, agent: target.agent };
|
|
420
|
+
const blockers = target.blocker ? [target.blocker] : [];
|
|
421
|
+
if (!cleanup && target.disposition === 'retain')
|
|
422
|
+
blockers.push('previousDeploymentRetained');
|
|
423
|
+
if (!cleanup && (target.observation === 'drifted' || target.disposition === 'remove') && !options.authorizeUpdate) {
|
|
424
|
+
blockers.push('portableUpdateAuthorizationRequired');
|
|
425
|
+
}
|
|
426
|
+
if (blockers.length || !target.observationEvidence || !target.ownerIdentity) {
|
|
427
|
+
return { ...target, execution: 'not-run', blockers: blockers.length ? [...new Set(blockers)] : ['portableObservationFailed'] };
|
|
428
|
+
}
|
|
429
|
+
const removal = cleanup || target.disposition === 'remove';
|
|
430
|
+
const observe = () => observePortableSkill({ destinationRoot: layout.targetRoot(target.agent), skill: target.skill,
|
|
431
|
+
identity: target.ownerIdentity, ...(!removal ? { expectedDigest: target.expectedDigest, configDigest: target.configDigest } : {}) });
|
|
432
|
+
const record = (after, execution, blockers) => {
|
|
433
|
+
const outcome = { ...target, ...fromObservation(after, target.agent, target.providerPluginId, target.expectedDigest),
|
|
434
|
+
execution, blockers };
|
|
435
|
+
if (execution === 'failed')
|
|
436
|
+
progress.failed.push({ logicalIdentity: prepared.logicalIdentity, outcome });
|
|
437
|
+
else if (removal ? after.observation === 'absent' : after.observation === 'satisfied' && after.ownership === 'aw') {
|
|
438
|
+
progress.completed.push({ physicalPath: target.physicalPath, expectedDigest: target.expectedDigest,
|
|
439
|
+
configDigest: target.configDigest, providerPluginId: target.providerPluginId, logicalIdentity: prepared.logicalIdentity,
|
|
440
|
+
evidenceDigest: after.evidenceDigest, disposition: removal ? 'remove' : 'write' });
|
|
441
|
+
}
|
|
442
|
+
return outcome;
|
|
443
|
+
};
|
|
444
|
+
try {
|
|
445
|
+
const completed = progress.completed.find((footprint) => matchesCompleted(footprint, prepared.logicalIdentity, target));
|
|
446
|
+
if (completed || !removal && target.observation === 'satisfied' && options.action !== 'reinstall') {
|
|
447
|
+
const after = await observe();
|
|
448
|
+
if (after.evidenceDigest !== (completed?.evidenceDigest ?? target.observationEvidence.evidenceDigest)
|
|
449
|
+
|| after.observation !== (removal ? 'absent' : 'satisfied'))
|
|
450
|
+
return stale(target);
|
|
451
|
+
return record(after, 'no-op', []);
|
|
452
|
+
}
|
|
453
|
+
outputsMayHaveChanged = true;
|
|
454
|
+
startedWrites.add(target);
|
|
455
|
+
if (removal) {
|
|
456
|
+
await removePortableSkill({ destinationRoot: layout.targetRoot(target.agent), identity: target.ownerIdentity,
|
|
457
|
+
observed: target.observationEvidence, force: prepared.cleanupOptions?.force });
|
|
458
|
+
}
|
|
459
|
+
else {
|
|
460
|
+
await publishPortableSkill({ sourceDir: target.sourcePath, destinationRoot: layout.targetRoot(target.agent),
|
|
461
|
+
identity: target.ownerIdentity, expectedDigest: target.expectedDigest, configDigest: target.configDigest,
|
|
462
|
+
observed: target.observationEvidence });
|
|
463
|
+
}
|
|
464
|
+
const after = await observe();
|
|
465
|
+
const satisfied = removal ? after.observation === 'absent' : after.observation === 'satisfied' && after.ownership === 'aw';
|
|
466
|
+
return record(after, satisfied ? 'applied' : 'failed', satisfied ? [] : [after.blocker ?? 'portableVerificationFailed']);
|
|
467
|
+
}
|
|
468
|
+
catch (error) {
|
|
469
|
+
signal?.throwIfAborted();
|
|
470
|
+
const code = error instanceof Error && /^(?:portable|operationReview)/u.test(error.message)
|
|
471
|
+
? error.message : 'portableWriteFailed';
|
|
472
|
+
return record(await observe(), 'failed', [code]);
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
const apply = async (target) => {
|
|
476
|
+
const outcome = await execute(target);
|
|
477
|
+
verified.set(target, outcome);
|
|
478
|
+
return outcome;
|
|
479
|
+
};
|
|
480
|
+
let results;
|
|
481
|
+
try {
|
|
482
|
+
results = await mapInstallReads(selected, async (target) => {
|
|
483
|
+
if (!admission || cleanup)
|
|
484
|
+
return apply(target);
|
|
485
|
+
for (;;) {
|
|
486
|
+
const prewrite = await check();
|
|
487
|
+
if (prewrite.problem) {
|
|
488
|
+
reviewProblem = prewrite.problem;
|
|
489
|
+
return stale(target);
|
|
490
|
+
}
|
|
491
|
+
const result = await admission.run([{ kind: 'path', value: target.physicalPath }], () => prewrite.epoch === admission.exclusiveGeneration ? apply(target) : Promise.resolve(undefined), signal);
|
|
492
|
+
if (result)
|
|
493
|
+
return result;
|
|
494
|
+
}
|
|
495
|
+
}, { signal, limit: admission && !cleanup ? Math.max(1, selected.length) : 1 });
|
|
496
|
+
}
|
|
497
|
+
catch (error) {
|
|
498
|
+
const code = recoveryInterruptionCode(error, signal);
|
|
499
|
+
if (!code)
|
|
500
|
+
throw error;
|
|
501
|
+
const partial = selected.map((target) => verified.get(target) ?? ({
|
|
502
|
+
...target, execution: startedWrites.has(target) ? 'failed' : 'not-run', observation: 'unknown', blockers: [code],
|
|
503
|
+
}));
|
|
504
|
+
throw new PortableInterruptedError(finish(partial, [code]), error);
|
|
505
|
+
}
|
|
506
|
+
const globalBlockers = [...prepared.globalBlockers];
|
|
507
|
+
if (results.some((target) => target.execution === 'not-run' && target.blockers.includes('operationReviewStale'))) {
|
|
508
|
+
globalBlockers.push('operationReviewStale');
|
|
509
|
+
}
|
|
510
|
+
return { ...finish(results, globalBlockers), ...(reviewProblem ? { reviewProblem } : {}) };
|
|
511
|
+
} });
|
|
512
|
+
}
|
|
513
|
+
export async function inspectPortableExtraInstalled(options) {
|
|
514
|
+
options.signal?.throwIfAborted();
|
|
515
|
+
const targets = [];
|
|
516
|
+
let complete = true;
|
|
517
|
+
try {
|
|
518
|
+
const layout = portableRecoveryLayout(options.context);
|
|
519
|
+
if (layout.scope !== options.scope)
|
|
520
|
+
return { targets, complete: false };
|
|
521
|
+
for (const agent of PORTABLE_PLATFORM_TARGETS) {
|
|
522
|
+
const scanned = await scanPortableSkills({ destinationRoot: layout.targetRoot(agent), platform: agent,
|
|
523
|
+
scope: options.scope, signal: options.signal, ...(options.plugins ? { checkContent: (identity) => options.plugins.has(identity.pluginId) || options.plugins.has(identity.pluginId.split('/')[1]) } : {}) });
|
|
524
|
+
complete &&= scanned.complete;
|
|
525
|
+
for (const target of scanned.targets) {
|
|
526
|
+
const owner = target.owner ?? target.recoverableIdentity;
|
|
527
|
+
if (!owner)
|
|
528
|
+
continue;
|
|
529
|
+
const shallow = target.ownership === 'aw' && target.observation === 'unknown'
|
|
530
|
+
&& target.installedDigest === undefined && target.blocker === undefined;
|
|
531
|
+
targets.push({ pluginId: owner.pluginId, skill: target.skill, agent, physicalPath: target.physicalPath,
|
|
532
|
+
logicalIdentity: owner.logicalIdentity, contentState: target.contentState,
|
|
533
|
+
observation: target.observation === 'satisfied' ? 'verified' : 'unknown',
|
|
534
|
+
content: shallow ? 'unknown' : target.observation === 'satisfied' ? 'satisfied' : 'drifted' });
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
catch (error) {
|
|
539
|
+
options.signal?.throwIfAborted();
|
|
540
|
+
if (error instanceof Error && error.name === 'AbortError')
|
|
541
|
+
throw error;
|
|
542
|
+
complete = false;
|
|
543
|
+
}
|
|
544
|
+
return { targets, complete };
|
|
545
|
+
}
|
|
546
|
+
export async function inspectPortableResidue(options) {
|
|
547
|
+
const prepared = await preparePortableCleanup(options);
|
|
548
|
+
const targets = prepared.targets.map(({ skill, agent, physicalPath }) => ({ skill, agent, physicalPath }));
|
|
549
|
+
const unknownAgents = [...new Set(prepared.targets.filter((target) => target.blocker).map((target) => target.agent))];
|
|
550
|
+
if (prepared.globalBlockers.length)
|
|
551
|
+
unknownAgents.push(...(options.agents ?? PORTABLE_PLATFORM_TARGETS));
|
|
552
|
+
const blockers = prepared.blockers.length ? ['portableObservationFailed'] : [];
|
|
553
|
+
return { state: targets.length ? 'present' : blockers.length ? 'unknown' : 'absent', targets, blockers,
|
|
554
|
+
...(unknownAgents.length ? { unknownAgents: [...new Set(unknownAgents)] } : {}) };
|
|
555
|
+
}
|
|
556
|
+
//# sourceMappingURL=recovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recovery.js","sourceRoot":"","sources":["../../../src/portable/recovery.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAuB,MAAM,+BAA+B,CAAC;AACzH,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAA2B,MAAM,wCAAwC,CAAC;AAEvI,OAAO,EAAE,sBAAsB,EAA4B,MAAM,mCAAmC,CAAC;AAErG,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,eAAe,EAAyB,MAAM,oCAAoC,CAAC;AAE5F,OAAO,EAAE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