@lesliechan721/aw 0.1.0-beta.9 → 0.1.0-beta.90
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 +396 -1997
- 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
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { parsePluginId } from '../utils/multi-source-catalog.js';
|
|
2
|
+
import { isPlatformTarget, NATIVE_PLATFORM_TARGETS } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
3
|
export const SCRIPT_TIMEOUT_MIN_MS = 1000;
|
|
3
|
-
export const SCRIPT_TIMEOUT_MAX_MS =
|
|
4
|
-
export const SCRIPT_TIMEOUT_DEFAULT_MS =
|
|
5
|
-
export const CONFIG_WRITE_DEFAULT_SCOPE = 'user';
|
|
6
|
-
export const CONFIG_READ_DEFAULT_RESOLUTION = 'effective';
|
|
4
|
+
export const SCRIPT_TIMEOUT_MAX_MS = 1800000;
|
|
5
|
+
export const SCRIPT_TIMEOUT_DEFAULT_MS = 300000;
|
|
7
6
|
function renderUnsupportedValue(value) {
|
|
8
7
|
return typeof value === 'string' ? value : String(value);
|
|
9
8
|
}
|
|
@@ -13,11 +12,21 @@ export function parseScopeValue(scope) {
|
|
|
13
12
|
}
|
|
14
13
|
throw new Error(`Unsupported scope "${renderUnsupportedValue(scope)}".`);
|
|
15
14
|
}
|
|
15
|
+
export function parseContextValue(context) {
|
|
16
|
+
if (context === 'project' || context === 'user')
|
|
17
|
+
return context;
|
|
18
|
+
throw new Error(`Unsupported context "${renderUnsupportedValue(context)}". Expected user or project.`);
|
|
19
|
+
}
|
|
20
|
+
export function parsePlatformTargetValue(platform) {
|
|
21
|
+
if (isPlatformTarget(platform))
|
|
22
|
+
return platform;
|
|
23
|
+
throw new Error(`Unsupported platform target "${renderUnsupportedValue(platform)}".`);
|
|
24
|
+
}
|
|
16
25
|
export function parsePlatformValue(platform) {
|
|
17
|
-
if (platform === '
|
|
26
|
+
if (platform === 'both' || isPlatformTarget(platform) && platform !== 'generic') {
|
|
18
27
|
return platform;
|
|
19
28
|
}
|
|
20
|
-
throw new Error(`Unsupported platform "${renderUnsupportedValue(platform)}". Expected one of:
|
|
29
|
+
throw new Error(`Unsupported platform "${renderUnsupportedValue(platform)}". Expected one of: ${NATIVE_PLATFORM_TARGETS.join(', ')}, both.`);
|
|
21
30
|
}
|
|
22
31
|
export function parseDependencyScopeOverrides(values) {
|
|
23
32
|
const inputs = values === undefined ? [] : typeof values === 'string' ? [values] : [...values];
|
|
@@ -43,7 +52,7 @@ export function parseDependencyScopeOverrides(values) {
|
|
|
43
52
|
? undefined
|
|
44
53
|
: parsePlatformValue(selector.slice(platformSeparator + 1));
|
|
45
54
|
if (parsedPlatform === 'both') {
|
|
46
|
-
throw new Error('Invalid dependency scope platform: expected
|
|
55
|
+
throw new Error('Invalid dependency scope platform: expected one concrete Agent platform.');
|
|
47
56
|
}
|
|
48
57
|
const key = `${canonicalPluginId}\0${parsedPlatform ?? '*'}`;
|
|
49
58
|
const current = byKey.get(key);
|
|
@@ -85,21 +94,6 @@ export function resolveScriptTimeoutMs(raw) {
|
|
|
85
94
|
const value = raw.scriptTimeoutMs ?? raw.scriptTimeout;
|
|
86
95
|
return value === undefined ? undefined : parseScriptTimeoutMs(value);
|
|
87
96
|
}
|
|
88
|
-
export function resolveConfigWriteScope(scope) {
|
|
89
|
-
return scope === undefined ? CONFIG_WRITE_DEFAULT_SCOPE : parseScopeValue(scope);
|
|
90
|
-
}
|
|
91
|
-
export function resolveConfigReadResolution(scope) {
|
|
92
|
-
return scope === undefined ? CONFIG_READ_DEFAULT_RESOLUTION : parseScopeValue(scope);
|
|
93
|
-
}
|
|
94
|
-
export function resolveConfigProjectLayer(raw = {}) {
|
|
95
|
-
if (!raw.local) {
|
|
96
|
-
return 'shared';
|
|
97
|
-
}
|
|
98
|
-
if (raw.scope !== 'project') {
|
|
99
|
-
throw new Error('`--local` 只能与 `--scope project` 一起使用。');
|
|
100
|
-
}
|
|
101
|
-
return 'local';
|
|
102
|
-
}
|
|
103
97
|
function resolveCwd(rawCwd, defaultCwd) {
|
|
104
98
|
return rawCwd ?? defaultCwd ?? process.cwd();
|
|
105
99
|
}
|
|
@@ -114,7 +108,6 @@ export function normalizeCommandOptions(raw = {}, defaults = {}) {
|
|
|
114
108
|
scope: parseScopeValue(raw.scope ?? defaults.defaultScope ?? 'user'),
|
|
115
109
|
platform: parsePlatformValue(platformInput ?? 'both'),
|
|
116
110
|
...(scriptTimeoutMs === undefined ? {} : { scriptTimeoutMs }),
|
|
117
|
-
...(raw.allowManagedCodexInstall === true ? { allowManagedCodexInstall: true } : {}),
|
|
118
111
|
...(raw.yes === true ? { yes: true } : {}),
|
|
119
112
|
};
|
|
120
113
|
}
|
|
@@ -137,17 +130,6 @@ export function normalizeInstallCommandOptions(raw = {}, defaults = {}) {
|
|
|
137
130
|
: {}),
|
|
138
131
|
};
|
|
139
132
|
}
|
|
140
|
-
export function normalizeUpgradeCommandOptions(raw = {}, defaults = {}) {
|
|
141
|
-
return {
|
|
142
|
-
...normalizeCommandOptions(raw, {
|
|
143
|
-
defaultScope: 'user',
|
|
144
|
-
requirePlatform: true,
|
|
145
|
-
missingPlatformMessage: 'upgrade 命令需要显式指定 `--platform codex|claude|both`。',
|
|
146
|
-
...defaults,
|
|
147
|
-
}),
|
|
148
|
-
all: raw.all,
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
133
|
function parseStatusPlatformFilter(platform) {
|
|
152
134
|
if (platform === undefined) {
|
|
153
135
|
return 'both';
|
|
@@ -166,21 +148,34 @@ export function normalizeStatusCommandOptions(raw = {}, defaults = {}) {
|
|
|
166
148
|
};
|
|
167
149
|
}
|
|
168
150
|
export function normalizeUninstallCommandOptions(raw = {}, defaults = {}) {
|
|
151
|
+
const supported = {
|
|
152
|
+
cwd: raw.cwd,
|
|
153
|
+
scope: raw.scope,
|
|
154
|
+
platform: raw.platform,
|
|
155
|
+
yes: raw.yes,
|
|
156
|
+
};
|
|
169
157
|
return {
|
|
170
|
-
...normalizeCommandOptions(
|
|
158
|
+
...normalizeCommandOptions(supported, {
|
|
171
159
|
defaultScope: 'user',
|
|
172
160
|
requirePlatform: true,
|
|
173
161
|
missingPlatformMessage: 'uninstall 命令需要显式指定 `--platform codex|claude|both`。',
|
|
174
162
|
...defaults,
|
|
175
163
|
}),
|
|
164
|
+
...(raw.force === true ? { force: true } : {}),
|
|
176
165
|
};
|
|
177
166
|
}
|
|
178
167
|
export function normalizeCleanupCommandOptions(raw = {}, defaults = {}) {
|
|
179
168
|
if (raw.scope === undefined) {
|
|
180
169
|
throw new Error('cleanup 命令需要显式指定 `--scope project|user`。');
|
|
181
170
|
}
|
|
171
|
+
const supported = {
|
|
172
|
+
cwd: raw.cwd,
|
|
173
|
+
scope: raw.scope,
|
|
174
|
+
platform: raw.platform,
|
|
175
|
+
yes: raw.yes,
|
|
176
|
+
};
|
|
182
177
|
const normalized = {
|
|
183
|
-
...normalizeCommandOptions(
|
|
178
|
+
...normalizeCommandOptions(supported, {
|
|
184
179
|
defaultScope: 'user',
|
|
185
180
|
requirePlatform: true,
|
|
186
181
|
missingPlatformMessage: 'cleanup 命令需要显式指定 `--platform codex|claude|both`。',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/commands/options.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/commands/options.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAqDnG,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC7C,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAEhD,SAAS,sBAAsB,CAAC,KAAc;IAC5C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,MAAM,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,sBAAsB,sBAAsB,CAAC,K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Ae,EAAE,IAAI;YACrB,sBAAsB,EAAE,oDAAoD;YAC5E,GAAG,QAAQ;SACZ,CAAC;QACF,IAAI,EAAE,GAAG,CAAC,IAAI,KAAK,IAAI;KACU,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReadContext } from '../platforms/contracts.js';
|
|
2
|
+
import { getAgentPluginAdapter } from '../platforms/registry.js';
|
|
3
|
+
import type { DesiredTarget } from './rebuild-operations.js';
|
|
4
|
+
/** Freeze all declarations for each shared permission file after eligible targets are known. */
|
|
5
|
+
export declare function sealPermissionBatches(targets: readonly DesiredTarget[], context: (target: DesiredTarget) => ReadContext, adapterFor: typeof getAgentPluginAdapter): Promise<void>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import * as fs from 'node:fs/promises';
|
|
3
|
+
import { isHostPermissionMutation, isPermissionHost, hostPermissionDiagnostics } from '../platforms/host-permission-policy.js';
|
|
4
|
+
import { previewPermissionBatch } from '../platforms/permission-ownership.js';
|
|
5
|
+
import { identityDigest } from '../platforms/identity.js';
|
|
6
|
+
import { GROK_WRAPPER_TARGET_NOT_COVERED, HOST_PERMISSION_ADDITIONAL_IMPACT } from '../output/component-delivery.js';
|
|
7
|
+
/** Freeze all declarations for each shared permission file after eligible targets are known. */
|
|
8
|
+
export async function sealPermissionBatches(targets, context, adapterFor) {
|
|
9
|
+
const files = new Map();
|
|
10
|
+
for (const target of targets)
|
|
11
|
+
for (const deployment of target.platformDeployment?.deployments ?? []) {
|
|
12
|
+
const { plan, driverState } = deployment;
|
|
13
|
+
if (!isPermissionHost(plan.binding.platform))
|
|
14
|
+
continue;
|
|
15
|
+
const slot = plan.evidence.ownership.find(({ component }) => component.kind === 'shared-config' && component.locator.kind === 'host-permissions');
|
|
16
|
+
if (!slot || slot.component.kind !== 'shared-config' || slot.component.locator.kind !== 'host-permissions')
|
|
17
|
+
continue;
|
|
18
|
+
const locator = slot.component.locator;
|
|
19
|
+
const contribution = plan.projections.flatMap((entry) => entry.supplements).find((entry) => entry.kind === 'config-entry' && entry.destination === locator.settingsPath);
|
|
20
|
+
const remove = driverState.removals.some(({ component }) => component.identity.artifactKey === slot.component.identity.artifactKey);
|
|
21
|
+
if (!contribution && !remove)
|
|
22
|
+
continue;
|
|
23
|
+
if (contribution && slot.contentDigest !== contribution.contentDigest && !driverState.contributions.some((item) => item.contribution.id === contribution.id))
|
|
24
|
+
continue;
|
|
25
|
+
let claims = [];
|
|
26
|
+
if (contribution) {
|
|
27
|
+
const bytes = await fs.readFile(contribution.stagingPath);
|
|
28
|
+
if ('sha256:' + createHash('sha256').update(bytes).digest('hex') !== contribution.contentDigest)
|
|
29
|
+
throw new Error('operationPlanStale');
|
|
30
|
+
const mutation = JSON.parse(bytes.toString('utf8'));
|
|
31
|
+
if (!isHostPermissionMutation(mutation, locator.platform))
|
|
32
|
+
throw new Error('platformContributionUnsupported');
|
|
33
|
+
claims = mutation.permissions;
|
|
34
|
+
}
|
|
35
|
+
const entries = files.get(locator.settingsPath) ?? [];
|
|
36
|
+
entries.push({ target, deployment, locator, contribution, claims });
|
|
37
|
+
files.set(locator.settingsPath, entries);
|
|
38
|
+
}
|
|
39
|
+
for (const entries of files.values()) {
|
|
40
|
+
const only = entries.length === 1 ? entries[0] : undefined;
|
|
41
|
+
if (only?.contribution && (only.locator.platform !== 'opencode' || only.locator.projectRoot))
|
|
42
|
+
continue;
|
|
43
|
+
const owners = {};
|
|
44
|
+
for (const entry of entries.sort((a, b) => a.locator.ownerKey.localeCompare(b.locator.ownerKey)))
|
|
45
|
+
owners[entry.locator.ownerKey] = entry.claims;
|
|
46
|
+
for (const { target, deployment, locator, contribution, claims } of entries) {
|
|
47
|
+
const { plan } = deployment;
|
|
48
|
+
if (plan.evidence.permissionBatch && identityDigest(plan.evidence.permissionBatch.owners) === identityDigest(owners))
|
|
49
|
+
continue;
|
|
50
|
+
const preview = await previewPermissionBatch(context(target), locator, claims, owners);
|
|
51
|
+
if (only?.contribution && !preview.relatedProjects.length)
|
|
52
|
+
continue;
|
|
53
|
+
const evidence = structuredClone(plan.evidence);
|
|
54
|
+
evidence.permissionBatch = { owners, reviewDigest: preview.reviewDigest, effective: preview.effective, restorations: preview.restorations,
|
|
55
|
+
...(preview.additionalImpacts.length ? { additionalImpacts: preview.additionalImpacts } : {}),
|
|
56
|
+
...(preview.relatedProjects.length ? { relatedProjects: preview.relatedProjects } : {}) };
|
|
57
|
+
if (evidence.managedCommandReview) {
|
|
58
|
+
evidence.managedCommandReview.permissions = evidence.managedCommandReview.permissions.filter((item) => item.kind !== `${locator.platform}-permissions`);
|
|
59
|
+
for (const item of [{ pluginId: plan.binding.plugin.pluginId, permissions: preview.effective }, ...preview.affected]) {
|
|
60
|
+
evidence.managedCommandReview.permissions.push({ kind: `${locator.platform}-permissions`, path: locator.settingsPath, ...item });
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const projections = structuredClone(plan.projections);
|
|
64
|
+
const projection = projections.find((entry) => entry.supplements.some((item) => item.id === contribution?.id));
|
|
65
|
+
if (projection) {
|
|
66
|
+
projection.diagnostics = projection.diagnostics.filter((item) => item.code !== 'permissionOwnershipDegraded' && item.code !== HOST_PERMISSION_ADDITIONAL_IMPACT
|
|
67
|
+
&& !(item.code === 'invocationPolicyNotApplied' && ['permission-prefix-unrepresentable', 'permission-rule-conflict', 'config-disabled', 'opencode-windows-command-syntax', 'grok-shell-pattern-unrepresentable', 'grok-shell-prefix-normalized', GROK_WRAPPER_TARGET_NOT_COVERED, 'antigravity-command-matching-unverified', 'antigravity-strict-mode', 'antigravity-windows-command-syntax']
|
|
68
|
+
.includes(item.detail?.reasonCode ?? '')));
|
|
69
|
+
projection.diagnostics.push(...hostPermissionDiagnostics({ ...preview, adjusted: undefined }, plan.binding, locator.settingsPath));
|
|
70
|
+
}
|
|
71
|
+
const updated = adapterFor(plan.binding.platform).lifecycle.prepare({ ...plan, projections, evidence, observation: deployment.driverState.before });
|
|
72
|
+
if (updated.status !== 'ready')
|
|
73
|
+
throw new Error('operationPlanStale: the shared permission plan could not be frozen.');
|
|
74
|
+
const prepared = target.platformDeployment;
|
|
75
|
+
prepared.deployments.splice(prepared.deployments.indexOf(deployment), 1, updated.prepared);
|
|
76
|
+
prepared.plans.splice(prepared.plans.findIndex((item) => item.binding.id === plan.binding.id), 1, updated.prepared.plan);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=permission-batch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission-batch.js","sourceRoot":"","sources":["../../../src/commands/permission-batch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAGvC,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAC/H,OAAO,EAAE,sBAAsB,EAAsD,MAAM,sCAAsC,CAAC;AAIlI,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,+BAA+B,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAC;AAUrH,gGAAgG;AAChG,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,OAAiC,EAAE,OAA+C,EAC5H,UAAwC;IACxC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAyB,CAAC;IAC/C,KAAK,MAAM,MAAM,IAAI,OAAO;QAAE,KAAK,MAAM,UAAU,IAAI,MAAM,CAAC,kBAAkB,EAAE,WAAW,IAAI,EAAE,EAAE,CAAC;YACpG,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC;YACzC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;gBAAE,SAAS;YACvD,MAAM,IAAI,GAAG,IAAI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N_AUTHORING_CAPABILITY_SURFACES, } from '@lesliechan721/aw-plugin-core/manifest';
|
|
1
|
+
import { getPluginCoreVersion, getPluginAuthoringCapabilities, PLUGIN_AUTHORING_CAPABILITY_SURFACES, PLATFORM_TARGETS, } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
2
|
const CORE_REGISTRY_PROVENANCE = '@lesliechan721/aw-plugin-core manifest structure registry';
|
|
3
3
|
const CLI_ADAPTER_PROVENANCE = '@lesliechan721/aw CLI authoring adapter';
|
|
4
4
|
const adapterFacts = {
|
|
5
5
|
manifest: {
|
|
6
6
|
dependencies: {
|
|
7
|
-
requires: 'Each dependency
|
|
7
|
+
requires: 'Each same-source dependency covers every supported consumer platform, including transitive edges.',
|
|
8
8
|
conflicts: 'The plugin itself, missing providers, and dependency cycles.',
|
|
9
9
|
},
|
|
10
|
-
|
|
11
|
-
profiles: '
|
|
12
|
-
requires: '
|
|
13
|
-
conflicts: '
|
|
14
|
-
provenance: ['CLI source
|
|
10
|
+
platforms: {
|
|
11
|
+
profiles: PLATFORM_TARGETS.join(', '),
|
|
12
|
+
requires: 'Omitted or empty platforms support all canonical targets; each selected projection must be valid.',
|
|
13
|
+
conflicts: 'Unknown or duplicate target IDs, distributions.agentSkills, and marketplace.policy.products.',
|
|
14
|
+
provenance: ['CLI source and bundle validators'],
|
|
15
15
|
},
|
|
16
|
-
|
|
17
|
-
profiles: '
|
|
18
|
-
requires: 'Each
|
|
19
|
-
|
|
20
|
-
provenance: ['CLI source plugin validator'],
|
|
21
|
-
},
|
|
22
|
-
'marketplace.policy.products': {
|
|
23
|
-
profiles: 'Omitted means CODEX and CLAUDE.',
|
|
24
|
-
provenance: ['CLI author validator'],
|
|
16
|
+
skills: {
|
|
17
|
+
profiles: 'Native platform packages and explicit-profile Agent Skills exports from one ./skills source root',
|
|
18
|
+
requires: 'Each final Skill has a production README.md and valid target metadata and resource closure.',
|
|
19
|
+
provenance: ['CLI target projection and Skill validators'],
|
|
25
20
|
},
|
|
26
21
|
},
|
|
27
22
|
'build-config': {
|
|
@@ -32,54 +27,109 @@ const adapterFacts = {
|
|
|
32
27
|
provenance: ['CLI runtime import resolver'],
|
|
33
28
|
},
|
|
34
29
|
'buildConfig.buildImports': { requires: 'scripts.node.build and a unique AW_PLUGIN_IMPORT_* environment variable.' },
|
|
35
|
-
'buildConfig.manifestOverrides.claude': { profiles: 'CLAUDE', requires: 'CLAUDE product support.' },
|
|
36
30
|
'buildConfig.skillRuntimeFiles': { requires: 'A declared static Skill and a target below references/, assets/, or scripts/.' },
|
|
37
|
-
'buildConfig.skillRuntimeFiles[].
|
|
38
|
-
profiles: '
|
|
39
|
-
requires: '
|
|
40
|
-
conflicts: '
|
|
31
|
+
'buildConfig.skillRuntimeFiles[].platforms': {
|
|
32
|
+
profiles: 'canonical target projection',
|
|
33
|
+
requires: 'A declared static Skill key and targets within plugin platforms.',
|
|
34
|
+
conflicts: 'Overlapping target selections for the same Skill runtime path; omitted or empty selection covers supported targets.',
|
|
41
35
|
},
|
|
42
36
|
'buildConfig.generatedSkillRuntimeFiles': {
|
|
43
|
-
requires: 'scripts.node.build creates each declared final target; omitted
|
|
37
|
+
requires: 'scripts.node.build creates each declared final target; omitted or empty platforms cover supported targets.',
|
|
44
38
|
provenance: ['CLI bundle validator'],
|
|
45
39
|
},
|
|
46
|
-
'buildConfig.generatedSkillRuntimeFiles[].
|
|
47
|
-
profiles: '
|
|
48
|
-
requires: '
|
|
49
|
-
conflicts: 'Omission selects native surfaces; explicit agent-skills selects only the portable surface.',
|
|
40
|
+
'buildConfig.generatedSkillRuntimeFiles[].platforms': {
|
|
41
|
+
profiles: 'canonical target projection',
|
|
42
|
+
requires: 'A declared static Skill key and targets within plugin platforms.',
|
|
50
43
|
provenance: ['CLI bundle validator'],
|
|
51
44
|
},
|
|
52
45
|
},
|
|
53
46
|
extensions: {
|
|
54
|
-
'extensions.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
'
|
|
47
|
+
'extensions.permissions[].agentOverrides.claude.sandbox.excludedCommands': {
|
|
48
|
+
profiles: 'CLAUDE',
|
|
49
|
+
requires: 'aw.managed-commands.v2 and aw.claude.sandbox-exclusions.v1. Structured argsPrefix entries apply independently of allow.',
|
|
50
|
+
conflicts: 'Plain strings, Codex overrides, and widening to all aw commands.',
|
|
51
|
+
provenance: ['CLI managed command reference resolver and Claude permission writer'],
|
|
52
|
+
},
|
|
53
|
+
'extensions.nativeHooks.claude': { profiles: 'CLAUDE', requires: 'claude target support.' },
|
|
54
|
+
'extensions.nativeHooks.codex': { profiles: 'CODEX', requires: 'codex target support.' },
|
|
61
55
|
},
|
|
62
|
-
|
|
56
|
+
mcp: {
|
|
63
57
|
'mcpServers.<key>.command': { conflicts: 'url' },
|
|
64
58
|
'mcpServers.<key>.url': { conflicts: 'command' },
|
|
65
|
-
'apps.<key>.id': {
|
|
66
|
-
profiles: 'CODEX user scope',
|
|
67
|
-
conflicts: 'CLAUDE-only plugins and Codex project scope.',
|
|
68
|
-
},
|
|
69
59
|
},
|
|
70
60
|
config: {
|
|
71
61
|
'config.presentation': { conflicts: 'Schema mutation and sensitive or path values in presets.' },
|
|
62
|
+
'config.fields.<key>.platformOnly': { requires: 'Config v5 and aw.plugin-config-platform-only.v1. Set the value on each selected platform.' },
|
|
63
|
+
'config.fields.<key>.properties.<property>.clearsOnChange': { requires: 'Config v5 and aw.plugin-config-clears-on-change.v1. Targets must be writable siblings.' },
|
|
64
|
+
'config.fields.<key>.$ref': { requires: 'Overriding platformOnly or suggestions requires Config v5 and aw.plugin-config-ref-override.v1.' },
|
|
65
|
+
'config.fields.<key>.suggestions': {
|
|
66
|
+
requires: 'aw.plugin-config-suggestions.v2 and a local suggestion script or a same-source direct provider dependency. Fixed objects require 1..8 editable scalar targets.',
|
|
67
|
+
conflicts: 'Sensitive, constant, value reference and preset-only fields.',
|
|
68
|
+
},
|
|
72
69
|
},
|
|
73
|
-
|
|
74
|
-
'scripts.
|
|
70
|
+
'pre-apply': {
|
|
71
|
+
'scripts.preApply': { requires: 'A Node entry inside the plugin root.' },
|
|
75
72
|
},
|
|
76
73
|
artifacts: {
|
|
77
|
-
'scripts.artifacts.render': {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
'scripts.artifacts.render': {
|
|
75
|
+
requires: 'A matching artifact renderer target or a dynamic command declaration.',
|
|
76
|
+
},
|
|
77
|
+
'artifacts.configKeys': {
|
|
78
|
+
requires: 'Fields exist in the selected platform Config v5 profile; Skill batches contain only the non-sensitive dependency closure.',
|
|
79
|
+
},
|
|
80
|
+
'artifacts.sourceDirs': {
|
|
81
|
+
requires: 'Verified bundle-relative input directories; these do not declare final component identities.',
|
|
82
|
+
},
|
|
83
|
+
'artifacts.runtimeImports': {
|
|
84
|
+
requires: 'Provider-owned runtime exports resolved into the consumer bundle and bound by digest.',
|
|
85
|
+
},
|
|
86
|
+
'artifacts.scopes': {
|
|
87
|
+
requires: 'The physical resource render scope; an excluded scope intentionally offers no dynamic components.',
|
|
88
|
+
},
|
|
89
|
+
'rendererContext.platformCapabilities': {
|
|
90
|
+
requires: 'The qualified capability input for the exact render unit; offline preparation uses basis=profile.',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
'platform-components': {
|
|
94
|
+
components: { requires: 'The complete v3 component set for the allowed output kinds; omitted and unmet are explicit arrays.' },
|
|
95
|
+
'components[].runtimeConfig.keys': { requires: 'aw.installed-runtime-config.v2 and a qualified native profile; a non-sensitive artifacts.configKeys subset.' },
|
|
96
|
+
},
|
|
97
|
+
'platform-capabilities': {
|
|
98
|
+
basis: { requires: 'Author preparation uses profile; local is reserved for actual consumer observations.' },
|
|
99
|
+
},
|
|
100
|
+
'native-tools': {
|
|
101
|
+
nativeTools: {
|
|
102
|
+
requires: 'aw.native-tools.v3. Installed protocol requirements and consumer bindings are reviewed before publication.',
|
|
103
|
+
provenance: ['CLI installed producer evidence and managed command host'],
|
|
104
|
+
},
|
|
105
|
+
'nativeTools.consumers[].kind': {
|
|
106
|
+
requires: 'Managed command sets prepare the installed host tool before spawn; plugin tests use the installed host tool or an explicit test fixture.',
|
|
107
|
+
conflicts: 'Uncontrolled hooks, MCP entry paths, implicit package discovery, or source sync changing installed command evidence.',
|
|
108
|
+
},
|
|
109
|
+
'nativeTools.consumers[].tools[].fallback': {
|
|
110
|
+
requires: 'Preferred consumers use the same protocol contract for native and portable backends; backend selection remains fixed after launch.',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
'managed-commands': {
|
|
114
|
+
command: {
|
|
115
|
+
requires: 'aw.managed-commands.v2. AW publishes one shared package per source-qualified plugin.',
|
|
116
|
+
provenance: ['CLI managed command materialization and resolver'],
|
|
117
|
+
},
|
|
118
|
+
'command.sourceDir': {
|
|
119
|
+
requires: 'A complete runnable directory in the bundle containing ordinary files and directories.',
|
|
120
|
+
conflicts: 'Links, protected trees, and the reserved .aw directory.',
|
|
121
|
+
},
|
|
122
|
+
'command.platforms': {
|
|
123
|
+
requires: 'A subset of the plugin’s native platforms. Omission includes all native platforms supported by the plugin.',
|
|
124
|
+
conflicts: 'generic and platforms the plugin does not support.',
|
|
125
|
+
},
|
|
126
|
+
'command.runtimeConfig.keys': {
|
|
127
|
+
requires: 'Non-sensitive fields and validation dependencies available on every command platform.',
|
|
128
|
+
provenance: ['CLI managed command snapshot publication'],
|
|
129
|
+
},
|
|
130
|
+
'Skill Markdown placeholder': {
|
|
131
|
+
requires: 'A reachable route in the plugin’s command package and a supported command platform.',
|
|
132
|
+
conflicts: 'Generic export profiles and unavailable or empty command packages.',
|
|
83
133
|
},
|
|
84
134
|
},
|
|
85
135
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-capabilities.js","sourceRoot":"","sources":["../../../src/commands/plugin-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,8BAA8B,EAC9B,oCAAoC,
|
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,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;YACrE,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;YACrE,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;YACzE,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,KAAK,MAAM,KAAK,CAAC,IAAI,KAAK,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,EAAE,CAAC,CAAA;QACxG,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Confirmation } from '../output/public-result.js';
|
|
2
|
+
import { type PluginConfigImpactMutation } from '../utils/plugin-config-impact.js';
|
|
3
|
+
import { type ApplyPluginConfigOptions } from '../utils/plugin-config-write.js';
|
|
4
|
+
import { type ConfigCommandPackageEvidence } from '../utils/plugin-config-command-apply.js';
|
|
5
|
+
/** The candidate impact is computed in memory while the caller holds the existing mutation lock. */
|
|
6
|
+
export declare function preparePublicConfigConfirmation(options: ApplyPluginConfigOptions & {
|
|
7
|
+
yes?: boolean;
|
|
8
|
+
mutation?: PluginConfigImpactMutation;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
confirmation: Confirmation;
|
|
11
|
+
commandPackageEvidence: ConfigCommandPackageEvidence[];
|
|
12
|
+
evidence: unknown;
|
|
13
|
+
hostPermissionEffects: Confirmation['effects'];
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { inactiveCommandPermissionEffects } from '../output/public-result.js';
|
|
2
|
+
import { analyzePluginConfigMutationImpact, pluginSharedNativeConfigRenderUnits } from '../utils/plugin-config-impact.js';
|
|
3
|
+
import { preparePluginConfigApply, disposePluginConfigApply, resolveConfigPreApplyAuthorization } from '../utils/plugin-config-write.js';
|
|
4
|
+
import { resolvePluginConfigReferencePlugins } from '../utils/plugin-config-references.js';
|
|
5
|
+
import { describeConfigCommandPackageReviews } from '../utils/plugin-config-command-apply.js';
|
|
6
|
+
import { recoveryHostPermissionEffects } from './deployment-confirmation.js';
|
|
7
|
+
/** The candidate impact is computed in memory while the caller holds the existing mutation lock. */
|
|
8
|
+
export async function preparePublicConfigConfirmation(options) {
|
|
9
|
+
const prepared = await preparePluginConfigApply(options);
|
|
10
|
+
try {
|
|
11
|
+
const referencePlugins = await resolvePluginConfigReferencePlugins({ sourceId: options.plugin.sourceId,
|
|
12
|
+
sourceIdentity: options.plugin.sourceIdentity, logicalIdentity: options.plugin.catalogLogicalIdentity,
|
|
13
|
+
env: options.env, plugins: options.rebuildRuntime?.referencePlugins });
|
|
14
|
+
const requested = prepared.plan.receipt.requestedTargets.filter((target) => !prepared.plan.receipt.targetResults.some((result) => result.pluginId === target.pluginId && result.agent === target.agent && result.scope === target.scope
|
|
15
|
+
&& (result.satisfaction === 'unsupported' || result.satisfaction === 'excluded')));
|
|
16
|
+
const native = requested.flatMap((target) => target.agent !== 'generic'
|
|
17
|
+
? [{ pluginName: target.pluginId.split('/').at(-1), pluginId: target.pluginId, platform: target.agent, scope: target.scope }] : []);
|
|
18
|
+
const impact = options.mutation ? await analyzePluginConfigMutationImpact({ plugin: options.plugin,
|
|
19
|
+
scope: options.context ?? options.scope, platform: options.platform, cwd: options.cwd, env: options.env,
|
|
20
|
+
visibleTargets: native, mutation: options.mutation, referencePlugins,
|
|
21
|
+
commandDiscovery: { packages: prepared.commandPackages, errors: prepared.commandDiscoveryErrors } }) : undefined;
|
|
22
|
+
const hostPermissionEffects = recoveryHostPermissionEffects(prepared.plan);
|
|
23
|
+
const effects = [...hostPermissionEffects];
|
|
24
|
+
const affected = impact ? requested.filter((target) => target.agent === 'generic'
|
|
25
|
+
? impact.storeChanged : impact.affectedTargets.some((candidate) => candidate.pluginId === target.pluginId && candidate.platform === target.agent && candidate.scope === target.scope)) : requested;
|
|
26
|
+
const authorization = await resolveConfigPreApplyAuthorization({
|
|
27
|
+
...options,
|
|
28
|
+
applyTargets: impact?.affectedTargets ?? native,
|
|
29
|
+
rebuildRuntime: { ...prepared.plan.runtime, referencePlugins },
|
|
30
|
+
});
|
|
31
|
+
if (authorization.unavailableTargetResults.length > 0) {
|
|
32
|
+
throw Object.assign(new Error('The preApply authorization scope cannot be resolved for the affected outputs.'), { code: 'sourceUnavailable' });
|
|
33
|
+
}
|
|
34
|
+
// Configuration consumers and their dependency scripts have different identities.
|
|
35
|
+
// Use the script closure of the affected consumers, not a same-plugin match.
|
|
36
|
+
for (const target of authorization.targets) {
|
|
37
|
+
effects.push({ code: 'runPreApply', message: 'Run the plugin preApply script before applying configuration.', subject: { pluginId: target.pluginId, target: target.platform, scope: target.scope }, impact: 'unknown' });
|
|
38
|
+
}
|
|
39
|
+
for (const target of affected) {
|
|
40
|
+
const plugin = referencePlugins.find((entry) => entry.pluginId === target.pluginId) ?? options.plugin;
|
|
41
|
+
const scripted = target.agent === 'generic'
|
|
42
|
+
&& (plugin.manifest.scripts?.preApply !== undefined || prepared.preApplyAuthorization.some((entry) => entry.pluginId === target.pluginId && entry.platform === target.agent && entry.scope === target.scope));
|
|
43
|
+
if (scripted)
|
|
44
|
+
effects.push({ code: 'runPreApply', message: 'Run the plugin preApply script before applying configuration.', subject: { pluginId: target.pluginId, target: target.agent, scope: target.scope }, impact: 'unknown' });
|
|
45
|
+
if ((impact?.sharedNativeRenderUnits ?? pluginSharedNativeConfigRenderUnits(plugin)).some((entry) => entry.pluginName === plugin.manifest.name && entry.platform === target.agent)) {
|
|
46
|
+
effects.push({ code: 'replaceSharedOutput', message: 'Refresh the shared native output with the proposed configuration.', subject: { pluginId: target.pluginId, target: target.agent, scope: target.scope }, impact: 'shared' });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
for (const review of prepared.commandPackageReviews) {
|
|
50
|
+
const subject = { pluginId: review.selector, scope: 'user' };
|
|
51
|
+
effects.push({ code: 'replaceSharedOutput', message: 'Refresh the installed command package with the proposed configuration.', subject, impact: 'shared' });
|
|
52
|
+
effects.push(...describeConfigCommandPackageReviews([review]).map((message) => ({
|
|
53
|
+
code: 'reviewCommandPackage', message, subject, impact: 'shared',
|
|
54
|
+
})));
|
|
55
|
+
}
|
|
56
|
+
for (const child of prepared.plan.joint?.children ?? [prepared.plan]) {
|
|
57
|
+
for (const group of child.nativeGroups) {
|
|
58
|
+
for (const deployment of group.preview.operationPlan?.deploymentPlans ?? []) {
|
|
59
|
+
effects.push(...inactiveCommandPermissionEffects(deployment));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const confirmation = { required: effects.length > 0, provided: options.yes === true,
|
|
64
|
+
effects: [...new Map(effects.map((effect) => [JSON.stringify(effect), effect])).values()] };
|
|
65
|
+
if (confirmation.required && !confirmation.provided)
|
|
66
|
+
throw Object.assign(new Error('Repeat the command with --yes to confirm the listed effects.'), { code: 'confirmationRequired', confirmation });
|
|
67
|
+
return { confirmation, commandPackageEvidence: prepared.commandPackageEvidence, evidence: prepared.evidence, hostPermissionEffects };
|
|
68
|
+
}
|
|
69
|
+
finally {
|
|
70
|
+
await disposePluginConfigApply(prepared.plan);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=public-config-confirmation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-config-confirmation.js","sourceRoot":"","sources":["../../../src/commands/public-config-confirmation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAqB,MAAM,4BAA4B,CAAC;AACjG,OAAO,EAAE,iCAAiC,EAAE,mCAAmC,EAAmC,MAAM,kCAAkC,CAAC;AAC3J,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,kCAAkC,EAAiC,MAAM,iCAAiC,CAAC;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Y,EAAE,CAAC,CAAC;QACpM,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,QAAQ,CAAC,sBAAsB,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,EAAE,CAAC;IACvI,CAAC;YAAS,CAAC;QAAC,MAAM,wBAAwB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** One CLI invocation's cancellation state. It never persists across commands. */
|
|
2
|
+
export interface PublicCommandInterruption {
|
|
3
|
+
signal: AbortSignal;
|
|
4
|
+
exitCode?: 130 | 143;
|
|
5
|
+
cleanupFailed: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function createPublicCommandInterruption(): PublicCommandInterruption & {
|
|
8
|
+
listen(): () => void;
|
|
9
|
+
};
|