@lesliechan721/aw 0.1.0-beta.8 → 0.1.0-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring/assets/aw-config.mjs +100 -501
- package/dist/authoring/assets/aw-config.mjs.map +1 -1
- package/dist/authoring/assets/aw-runtime-config.d.mts +13 -0
- package/dist/authoring/assets/aw-runtime-config.mjs +221 -0
- package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.mjs +17 -40
- package/dist/authoring/scripts/add-skill.mjs.map +1 -1
- package/dist/authoring/scripts/init-plugin.mjs +74 -98
- package/dist/authoring/scripts/init-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-root.mjs +4 -4
- package/dist/authoring/scripts/lib/plugin-root.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-version-check.d.mts +1 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +230 -9
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
- package/dist/authoring/scripts/lib/skill-scaffold.d.mts +79 -92
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +103 -127
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs +2 -2
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-plugin.mjs +490 -2841
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-skill.mjs +1 -1
- package/dist/native-runtime/reader-runtime.mjs +34 -0
- package/dist/native-runtime/reader.d.mts +6 -0
- package/dist/native-runtime/reader.mjs +11 -0
- package/dist/scripts/aw-skill-eval-materializer.d.ts +30 -0
- package/dist/scripts/aw-skill-eval-materializer.js +278 -0
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -0
- package/dist/scripts/bundle-plugins.d.ts +1 -0
- package/dist/scripts/bundle-plugins.js +27 -8
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/plugin-staging.d.ts +7 -8
- package/dist/scripts/plugin-staging.js +16 -15
- package/dist/scripts/plugin-staging.js.map +1 -1
- package/dist/scripts/plugin-test-reporter.d.mts +2 -0
- package/dist/scripts/plugin-test-reporter.mjs +21 -0
- package/dist/scripts/plugin-test-reporter.mjs.map +1 -0
- package/dist/scripts/test-plugin-scripts.d.ts +5 -0
- package/dist/scripts/test-plugin-scripts.js +273 -78
- package/dist/scripts/test-plugin-scripts.js.map +1 -1
- package/dist/scripts/test-workers.d.mts +24 -0
- package/dist/scripts/test-workers.mjs +59 -0
- package/dist/scripts/test-workers.mjs.map +1 -0
- package/dist/src/adapters/helpers.d.ts +7 -0
- package/dist/src/adapters/helpers.js.map +1 -1
- package/dist/src/authoring/workspace-commands.d.ts +5 -1
- package/dist/src/authoring/workspace-commands.js +7 -2
- package/dist/src/authoring/workspace-commands.js.map +1 -1
- package/dist/src/commands/aw-capabilities.d.ts +2 -2
- package/dist/src/commands/aw-capabilities.js +41 -29
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/catalog-dev-source.d.ts +58 -13
- package/dist/src/commands/catalog-dev-source.js +549 -305
- package/dist/src/commands/catalog-dev-source.js.map +1 -1
- package/dist/src/commands/catalog-generation.d.ts +14 -19
- package/dist/src/commands/catalog-generation.js +5 -10
- package/dist/src/commands/catalog-generation.js.map +1 -1
- package/dist/src/commands/catalog-publication-inspection.d.ts +70 -30
- package/dist/src/commands/catalog-publication-inspection.js +511 -91
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -1
- package/dist/src/commands/catalog-publication-journal.d.ts +68 -0
- package/dist/src/commands/catalog-publication-journal.js +292 -0
- package/dist/src/commands/catalog-publication-journal.js.map +1 -0
- package/dist/src/commands/catalog-publication-target.d.ts +2 -1
- package/dist/src/commands/catalog-publication-target.js +37 -2
- package/dist/src/commands/catalog-publication-target.js.map +1 -1
- package/dist/src/commands/catalog-publish.d.ts +82 -15
- package/dist/src/commands/catalog-publish.js +722 -219
- package/dist/src/commands/catalog-publish.js.map +1 -1
- package/dist/src/commands/catalog-source.d.ts +55 -35
- package/dist/src/commands/catalog-source.js +298 -148
- package/dist/src/commands/catalog-source.js.map +1 -1
- package/dist/src/commands/catalog-status.d.ts +6 -26
- package/dist/src/commands/catalog-status.js +9 -147
- package/dist/src/commands/catalog-status.js.map +1 -1
- package/dist/src/commands/catalog-store.d.ts +104 -0
- package/dist/src/commands/catalog-store.js +685 -0
- package/dist/src/commands/catalog-store.js.map +1 -0
- package/dist/src/commands/catalog-workspace-resolution.d.ts +17 -0
- package/dist/src/commands/catalog-workspace-resolution.js +57 -0
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -0
- package/dist/src/commands/console.js +32 -20
- package/dist/src/commands/console.js.map +1 -1
- package/dist/src/commands/dependency-operation-plan.d.ts +52 -15
- package/dist/src/commands/dependency-operation-plan.js +289 -7
- package/dist/src/commands/dependency-operation-plan.js.map +1 -1
- package/dist/src/commands/deployment-confirmation.d.ts +4 -0
- package/dist/src/commands/deployment-confirmation.js +20 -0
- package/dist/src/commands/deployment-confirmation.js.map +1 -0
- package/dist/src/commands/init.d.ts +5 -11
- package/dist/src/commands/init.js +30 -51
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/intent-command.d.ts +32 -0
- package/dist/src/commands/intent-command.js +171 -0
- package/dist/src/commands/intent-command.js.map +1 -0
- package/dist/src/commands/managed-commands.d.ts +35 -0
- package/dist/src/commands/managed-commands.js +361 -0
- package/dist/src/commands/managed-commands.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +46 -0
- package/dist/src/commands/offline-cleanup-evidence.js +158 -10
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
- package/dist/src/commands/operation-plan.d.ts +190 -0
- package/dist/src/commands/operation-plan.js +99 -0
- package/dist/src/commands/operation-plan.js.map +1 -0
- package/dist/src/commands/operation-planner.d.ts +47 -0
- package/dist/src/commands/operation-planner.js +142 -0
- package/dist/src/commands/operation-planner.js.map +1 -0
- package/dist/src/commands/options.d.ts +16 -20
- package/dist/src/commands/options.js +94 -41
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/plugin-capabilities.js +88 -45
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-config-confirmation.d.ts +8 -0
- package/dist/src/commands/public-config-confirmation.js +56 -0
- package/dist/src/commands/public-config-confirmation.js.map +1 -0
- package/dist/src/commands/public-interruption.d.ts +9 -0
- package/dist/src/commands/public-interruption.js +23 -0
- package/dist/src/commands/public-interruption.js.map +1 -0
- package/dist/src/commands/public-lifecycle-result.d.ts +102 -0
- package/dist/src/commands/public-lifecycle-result.js +307 -0
- package/dist/src/commands/public-lifecycle-result.js.map +1 -0
- package/dist/src/commands/public-lifecycle.d.ts +28 -0
- package/dist/src/commands/public-lifecycle.js +492 -0
- package/dist/src/commands/public-lifecycle.js.map +1 -0
- package/dist/src/commands/public-plugin-query.d.ts +16 -0
- package/dist/src/commands/public-plugin-query.js +193 -0
- package/dist/src/commands/public-plugin-query.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +166 -28
- package/dist/src/commands/rebuild-command.js +3745 -813
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +137 -25
- package/dist/src/commands/rebuild-integration.js +1343 -2535
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +73 -22
- package/dist/src/commands/rebuild-operations.js +313 -216
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +62 -0
- package/dist/src/commands/rebuild-platform-integration.js +1317 -0
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -0
- package/dist/src/commands/reconcile-operation-plan.d.ts +28 -0
- package/dist/src/commands/reconcile-operation-plan.js +47 -0
- package/dist/src/commands/reconcile-operation-plan.js.map +1 -0
- package/dist/src/commands/review-inspection.d.ts +60 -0
- package/dist/src/commands/review-inspection.js +436 -0
- package/dist/src/commands/review-inspection.js.map +1 -0
- package/dist/src/commands/review-preparation.d.ts +51 -0
- package/dist/src/commands/review-preparation.js +400 -0
- package/dist/src/commands/review-preparation.js.map +1 -0
- package/dist/src/commands/runtime.d.ts +6 -6
- package/dist/src/commands/runtime.js +44 -24
- package/dist/src/commands/runtime.js.map +1 -1
- package/dist/src/commands/skill-eval.d.ts +41 -0
- package/dist/src/commands/skill-eval.js +407 -0
- package/dist/src/commands/skill-eval.js.map +1 -0
- package/dist/src/commands/status-v6.d.ts +319 -0
- package/dist/src/commands/status-v6.js +2979 -0
- package/dist/src/commands/status-v6.js.map +1 -0
- package/dist/src/commands/targets-command.d.ts +38 -0
- package/dist/src/commands/targets-command.js +182 -0
- package/dist/src/commands/targets-command.js.map +1 -0
- package/dist/src/commands/wizard.d.ts +8 -5
- package/dist/src/commands/wizard.js +7 -4
- package/dist/src/commands/wizard.js.map +1 -1
- package/dist/src/commands/write-commands.d.ts +9 -3
- package/dist/src/commands/write-commands.js +143 -85
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +6 -6
- package/dist/src/constants.js +6 -6
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eval/manifest-v1.d.ts +70 -0
- package/dist/src/eval/manifest-v1.js +358 -0
- package/dist/src/eval/manifest-v1.js.map +1 -0
- package/dist/src/generators/local-plugin.d.ts +7 -2
- package/dist/src/generators/local-plugin.js +313 -389
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/generators/permissions.d.ts +5 -2
- package/dist/src/generators/permissions.js +28 -15
- package/dist/src/generators/permissions.js.map +1 -1
- package/dist/src/index.d.ts +2 -31
- package/dist/src/index.js +1666 -1827
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent/deployment-preferences.d.ts +63 -0
- package/dist/src/intent/deployment-preferences.js +170 -0
- package/dist/src/intent/deployment-preferences.js.map +1 -0
- package/dist/src/intent/diagnostics.d.ts +11 -0
- package/dist/src/intent/diagnostics.js +14 -0
- package/dist/src/intent/diagnostics.js.map +1 -0
- package/dist/src/intent/intent-codec.d.ts +19 -0
- package/dist/src/intent/intent-codec.js +117 -0
- package/dist/src/intent/intent-codec.js.map +1 -0
- package/dist/src/intent/intent-store.d.ts +43 -0
- package/dist/src/intent/intent-store.js +118 -0
- package/dist/src/intent/intent-store.js.map +1 -0
- package/dist/src/intent/scope-context.d.ts +33 -0
- package/dist/src/intent/scope-context.js +149 -0
- package/dist/src/intent/scope-context.js.map +1 -0
- package/dist/src/intent/work-context.d.ts +13 -0
- package/dist/src/intent/work-context.js +22 -0
- package/dist/src/intent/work-context.js.map +1 -0
- package/dist/src/output/command-receipt.d.ts +47 -46
- package/dist/src/output/command-receipt.js +286 -79
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/model.d.ts +3 -11
- package/dist/src/output/native-consent.d.ts +2 -0
- package/dist/src/output/native-consent.js +5 -0
- package/dist/src/output/native-consent.js.map +1 -0
- package/dist/src/output/public-result.d.ts +49 -0
- package/dist/src/output/public-result.js +240 -0
- package/dist/src/output/public-result.js.map +1 -0
- package/dist/src/output/rebuild-progress.js +20 -15
- package/dist/src/output/rebuild-progress.js.map +1 -1
- package/dist/src/output/receipt-projection.d.ts +7 -0
- package/dist/src/output/receipt-projection.js +592 -0
- package/dist/src/output/receipt-projection.js.map +1 -0
- package/dist/src/platforms/capabilities.d.ts +12 -0
- package/dist/src/platforms/capabilities.js +205 -0
- package/dist/src/platforms/capabilities.js.map +1 -0
- package/dist/src/platforms/contracts.d.ts +358 -0
- package/dist/src/platforms/contracts.js +2 -0
- package/dist/src/platforms/contracts.js.map +1 -0
- package/dist/src/platforms/cursor-workspace-hook.d.ts +28 -0
- package/dist/src/platforms/cursor-workspace-hook.js +198 -0
- package/dist/src/platforms/cursor-workspace-hook.js.map +1 -0
- package/dist/src/platforms/discovery.d.ts +91 -0
- package/dist/src/platforms/discovery.js +653 -0
- package/dist/src/platforms/discovery.js.map +1 -0
- package/dist/src/platforms/gemini-activation.d.ts +36 -0
- package/dist/src/platforms/gemini-activation.js +331 -0
- package/dist/src/platforms/gemini-activation.js.map +1 -0
- package/dist/src/platforms/gemini-consent.d.ts +8 -0
- package/dist/src/platforms/gemini-consent.js +81 -0
- package/dist/src/platforms/gemini-consent.js.map +1 -0
- package/dist/src/platforms/identity.d.ts +4 -0
- package/dist/src/platforms/identity.js +22 -0
- package/dist/src/platforms/identity.js.map +1 -0
- package/dist/src/platforms/inspection-grok.d.ts +4 -0
- package/dist/src/platforms/inspection-grok.js +212 -0
- package/dist/src/platforms/inspection-grok.js.map +1 -0
- package/dist/src/platforms/inspection-native.d.ts +6 -0
- package/dist/src/platforms/inspection-native.js +406 -0
- package/dist/src/platforms/inspection-native.js.map +1 -0
- package/dist/src/platforms/inspection-opencode.d.ts +4 -0
- package/dist/src/platforms/inspection-opencode.js +98 -0
- package/dist/src/platforms/inspection-opencode.js.map +1 -0
- package/dist/src/platforms/inspection-pi.d.ts +3 -0
- package/dist/src/platforms/inspection-pi.js +282 -0
- package/dist/src/platforms/inspection-pi.js.map +1 -0
- package/dist/src/platforms/inspection-query.d.ts +12 -0
- package/dist/src/platforms/inspection-query.js +96 -0
- package/dist/src/platforms/inspection-query.js.map +1 -0
- package/dist/src/platforms/inspection.d.ts +17 -0
- package/dist/src/platforms/inspection.js +227 -0
- package/dist/src/platforms/inspection.js.map +1 -0
- package/dist/src/platforms/layout.d.ts +21 -0
- package/dist/src/platforms/layout.js +239 -0
- package/dist/src/platforms/layout.js.map +1 -0
- package/dist/src/platforms/lifecycle-native-services.d.ts +3 -0
- package/dist/src/platforms/lifecycle-native-services.js +147 -0
- package/dist/src/platforms/lifecycle-native-services.js.map +1 -0
- package/dist/src/platforms/lifecycle-native.d.ts +13 -0
- package/dist/src/platforms/lifecycle-native.js +283 -0
- package/dist/src/platforms/lifecycle-native.js.map +1 -0
- package/dist/src/platforms/lifecycle.d.ts +25 -0
- package/dist/src/platforms/lifecycle.js +494 -0
- package/dist/src/platforms/lifecycle.js.map +1 -0
- package/dist/src/platforms/managed-command-placement.d.ts +8 -0
- package/dist/src/platforms/managed-command-placement.js +79 -0
- package/dist/src/platforms/managed-command-placement.js.map +1 -0
- package/dist/src/platforms/projection-code-extension.d.ts +8 -0
- package/dist/src/platforms/projection-code-extension.js +121 -0
- package/dist/src/platforms/projection-code-extension.js.map +1 -0
- package/dist/src/platforms/projection-command-resources.d.ts +7 -0
- package/dist/src/platforms/projection-command-resources.js +74 -0
- package/dist/src/platforms/projection-command-resources.js.map +1 -0
- package/dist/src/platforms/projection-files.d.ts +27 -0
- package/dist/src/platforms/projection-files.js +111 -0
- package/dist/src/platforms/projection-files.js.map +1 -0
- package/dist/src/platforms/projection-marketplace.d.ts +19 -0
- package/dist/src/platforms/projection-marketplace.js +42 -0
- package/dist/src/platforms/projection-marketplace.js.map +1 -0
- package/dist/src/platforms/projection.d.ts +10 -0
- package/dist/src/platforms/projection.js +446 -0
- package/dist/src/platforms/projection.js.map +1 -0
- package/dist/src/platforms/registry.d.ts +4 -0
- package/dist/src/platforms/registry.js +30 -0
- package/dist/src/platforms/registry.js.map +1 -0
- package/dist/src/platforms/supplement-layout.d.ts +16 -0
- package/dist/src/platforms/supplement-layout.js +31 -0
- package/dist/src/platforms/supplement-layout.js.map +1 -0
- package/dist/src/platforms/supplement-state.d.ts +13 -0
- package/dist/src/platforms/supplement-state.js +82 -0
- package/dist/src/platforms/supplement-state.js.map +1 -0
- package/dist/src/portable/commands.d.ts +58 -11
- package/dist/src/portable/commands.js +94 -350
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/historical-materialization.d.ts +22 -0
- package/dist/src/portable/historical-materialization.js +124 -0
- package/dist/src/portable/historical-materialization.js.map +1 -0
- package/dist/src/portable/materializer.d.ts +24 -4
- package/dist/src/portable/materializer.js +189 -259
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery-layout.d.ts +17 -0
- package/dist/src/portable/recovery-layout.js +42 -0
- package/dist/src/portable/recovery-layout.js.map +1 -0
- package/dist/src/portable/recovery.d.ts +153 -0
- package/dist/src/portable/recovery.js +367 -0
- package/dist/src/portable/recovery.js.map +1 -0
- package/dist/src/portable/writer.d.ts +67 -0
- package/dist/src/portable/writer.js +321 -0
- package/dist/src/portable/writer.js.map +1 -0
- package/dist/src/recovery/coordinator.d.ts +141 -0
- package/dist/src/recovery/coordinator.js +1254 -0
- package/dist/src/recovery/coordinator.js.map +1 -0
- package/dist/src/recovery/demand.d.ts +51 -0
- package/dist/src/recovery/demand.js +159 -0
- package/dist/src/recovery/demand.js.map +1 -0
- package/dist/src/recovery/joint-coordinator.d.ts +25 -0
- package/dist/src/recovery/joint-coordinator.js +991 -0
- package/dist/src/recovery/joint-coordinator.js.map +1 -0
- package/dist/src/recovery/joint-demand.d.ts +50 -0
- package/dist/src/recovery/joint-demand.js +197 -0
- package/dist/src/recovery/joint-demand.js.map +1 -0
- package/dist/src/recovery/performance.d.ts +4 -0
- package/dist/src/recovery/performance.js +26 -0
- package/dist/src/recovery/performance.js.map +1 -0
- package/dist/src/recovery/receipt.d.ts +98 -0
- package/dist/src/recovery/receipt.js +2 -0
- package/dist/src/recovery/receipt.js.map +1 -0
- package/dist/src/recovery/retirement.d.ts +47 -0
- package/dist/src/recovery/retirement.js +469 -0
- package/dist/src/recovery/retirement.js.map +1 -0
- package/dist/src/recovery/status.d.ts +126 -0
- package/dist/src/recovery/status.js +1073 -0
- package/dist/src/recovery/status.js.map +1 -0
- package/dist/src/recovery/types.d.ts +85 -0
- package/dist/src/recovery/types.js +2 -0
- package/dist/src/recovery/types.js.map +1 -0
- package/dist/src/review/eval-source-input.d.ts +43 -0
- package/dist/src/review/eval-source-input.js +207 -0
- package/dist/src/review/eval-source-input.js.map +1 -0
- package/dist/src/review/platform-profile.d.ts +3 -0
- package/dist/src/review/platform-profile.js +14 -0
- package/dist/src/review/platform-profile.js.map +1 -0
- package/dist/src/review/review-profile.d.ts +20 -0
- package/dist/src/review/review-profile.js +276 -0
- package/dist/src/review/review-profile.js.map +1 -0
- package/dist/src/review/review-selection.d.ts +20 -0
- package/dist/src/review/review-selection.js +495 -0
- package/dist/src/review/review-selection.js.map +1 -0
- package/dist/src/review/review-types.d.ts +71 -0
- package/dist/src/review/review-types.js +16 -0
- package/dist/src/review/review-types.js.map +1 -0
- package/dist/src/review/skill-materialization.d.ts +62 -0
- package/dist/src/review/skill-materialization.js +205 -0
- package/dist/src/review/skill-materialization.js.map +1 -0
- package/dist/src/review/source-binding.d.ts +201 -0
- package/dist/src/review/source-binding.js +773 -0
- package/dist/src/review/source-binding.js.map +1 -0
- package/dist/src/tui/agent-management.d.ts +23 -0
- package/dist/src/tui/agent-management.js +319 -0
- package/dist/src/tui/agent-management.js.map +1 -0
- package/dist/src/tui/agent-settings.d.ts +47 -0
- package/dist/src/tui/agent-settings.js +97 -0
- package/dist/src/tui/agent-settings.js.map +1 -0
- package/dist/src/tui/catalog-freshness.d.ts +1 -0
- package/dist/src/tui/catalog-freshness.js +2 -0
- package/dist/src/tui/catalog-freshness.js.map +1 -0
- package/dist/src/tui/catalog-generation.d.ts +18 -53
- package/dist/src/tui/catalog-generation.js +136 -224
- package/dist/src/tui/catalog-generation.js.map +1 -1
- package/dist/src/tui/catalog-sources/projection.d.ts +4 -0
- package/dist/src/tui/catalog-sources/projection.js +17 -0
- package/dist/src/tui/catalog-sources/projection.js.map +1 -0
- package/dist/src/tui/catalog-sources/review.d.ts +3 -0
- package/dist/src/tui/catalog-sources/review.js +13 -0
- package/dist/src/tui/catalog-sources/review.js.map +1 -0
- package/dist/src/tui/catalog-sources/screens.d.ts +12 -0
- package/dist/src/tui/catalog-sources/screens.js +40 -0
- package/dist/src/tui/catalog-sources/screens.js.map +1 -0
- package/dist/src/tui/catalog-sources/session.d.ts +32 -0
- package/dist/src/tui/catalog-sources/session.js +300 -0
- package/dist/src/tui/catalog-sources/session.js.map +1 -0
- package/dist/src/tui/catalog-sources/types.d.ts +54 -0
- package/dist/src/tui/catalog-sources/types.js +2 -0
- package/dist/src/tui/catalog-sources/types.js.map +1 -0
- package/dist/src/tui/catalog-store-task.d.ts +16 -0
- package/dist/src/tui/catalog-store-task.js +19 -0
- package/dist/src/tui/catalog-store-task.js.map +1 -0
- package/dist/src/tui/clipboard.d.ts +13 -0
- package/dist/src/tui/clipboard.js +95 -0
- package/dist/src/tui/clipboard.js.map +1 -0
- package/dist/src/tui/components.d.ts +113 -3
- package/dist/src/tui/components.js +201 -36
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/config-array-draft.d.ts +29 -0
- package/dist/src/tui/config-array-draft.js +48 -0
- package/dist/src/tui/config-array-draft.js.map +1 -0
- package/dist/src/tui/config-leaf-editor.d.ts +43 -0
- package/dist/src/tui/config-leaf-editor.js +224 -0
- package/dist/src/tui/config-leaf-editor.js.map +1 -0
- package/dist/src/tui/config-references.d.ts +38 -0
- package/dist/src/tui/config-references.js +82 -0
- package/dist/src/tui/config-references.js.map +1 -0
- package/dist/src/tui/config-value-presentation.d.ts +20 -0
- package/dist/src/tui/config-value-presentation.js +104 -0
- package/dist/src/tui/config-value-presentation.js.map +1 -0
- package/dist/src/tui/console-app-v4.d.ts +13 -4
- package/dist/src/tui/console-app-v4.js +9764 -2210
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/content-item-card.d.ts +13 -0
- package/dist/src/tui/content-item-card.js +51 -0
- package/dist/src/tui/content-item-card.js.map +1 -0
- package/dist/src/tui/controller-runtime.d.ts +7 -4
- package/dist/src/tui/controller-runtime.js +2064 -779
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +669 -106
- package/dist/src/tui/controller.js +3617 -971
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/dependency-graph-view.d.ts +39 -0
- package/dist/src/tui/dependency-graph-view.js +121 -0
- package/dist/src/tui/dependency-graph-view.js.map +1 -0
- package/dist/src/tui/dependency-graph.d.ts +81 -0
- package/dist/src/tui/dependency-graph.js +452 -0
- package/dist/src/tui/dependency-graph.js.map +1 -0
- package/dist/src/tui/deployment-view.d.ts +10 -0
- package/dist/src/tui/deployment-view.js +108 -0
- package/dist/src/tui/deployment-view.js.map +1 -0
- package/dist/src/tui/diagnostic-projection.d.ts +23 -0
- package/dist/src/tui/diagnostic-projection.js +595 -0
- package/dist/src/tui/diagnostic-projection.js.map +1 -0
- package/dist/src/tui/diagnostics.d.ts +6 -3
- package/dist/src/tui/diagnostics.js +14 -2
- package/dist/src/tui/diagnostics.js.map +1 -1
- package/dist/src/tui/entity-cards.d.ts +55 -0
- package/dist/src/tui/entity-cards.js +298 -0
- package/dist/src/tui/entity-cards.js.map +1 -0
- package/dist/src/tui/glossary.d.ts +25 -0
- package/dist/src/tui/glossary.js +72 -0
- package/dist/src/tui/glossary.js.map +1 -0
- package/dist/src/tui/index.d.ts +6 -2
- package/dist/src/tui/index.js +5 -2
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/input-display.d.ts +1 -0
- package/dist/src/tui/input-display.js +23 -1
- package/dist/src/tui/input-display.js.map +1 -1
- package/dist/src/tui/keys.d.ts +44 -0
- package/dist/src/tui/keys.js +43 -15
- package/dist/src/tui/keys.js.map +1 -1
- package/dist/src/tui/lifecycle-action-view.d.ts +6 -0
- package/dist/src/tui/lifecycle-action-view.js +36 -0
- package/dist/src/tui/lifecycle-action-view.js.map +1 -0
- package/dist/src/tui/model.d.ts +243 -45
- package/dist/src/tui/model.js +1402 -415
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/operation-diagnostic-screens.d.ts +8 -0
- package/dist/src/tui/operation-diagnostic-screens.js +72 -0
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -0
- package/dist/src/tui/operation-history.d.ts +82 -0
- package/dist/src/tui/operation-history.js +136 -0
- package/dist/src/tui/operation-history.js.map +1 -0
- package/dist/src/tui/operation-review-planner.d.ts +28 -0
- package/dist/src/tui/operation-review-planner.js +1396 -0
- package/dist/src/tui/operation-review-planner.js.map +1 -0
- package/dist/src/tui/plugin-content.d.ts +33 -0
- package/dist/src/tui/plugin-content.js +245 -0
- package/dist/src/tui/plugin-content.js.map +1 -0
- package/dist/src/tui/plugin-detail.d.ts +72 -0
- package/dist/src/tui/plugin-detail.js +260 -0
- package/dist/src/tui/plugin-detail.js.map +1 -0
- package/dist/src/tui/plugin-write-task.d.ts +69 -0
- package/dist/src/tui/plugin-write-task.js +286 -0
- package/dist/src/tui/plugin-write-task.js.map +1 -0
- package/dist/src/tui/prompt.js +4 -15
- package/dist/src/tui/prompt.js.map +1 -1
- package/dist/src/tui/query-header.d.ts +30 -0
- package/dist/src/tui/query-header.js +40 -0
- package/dist/src/tui/query-header.js.map +1 -0
- package/dist/src/tui/reader.d.ts +38 -0
- package/dist/src/tui/reader.js +49 -0
- package/dist/src/tui/reader.js.map +1 -0
- package/dist/src/tui/router.d.ts +186 -35
- package/dist/src/tui/router.js +338 -50
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/scoped-flow.d.ts +45 -0
- package/dist/src/tui/scoped-flow.js +96 -0
- package/dist/src/tui/scoped-flow.js.map +1 -0
- package/dist/src/tui/scoped-inventory.d.ts +126 -0
- package/dist/src/tui/scoped-inventory.js +258 -0
- package/dist/src/tui/scoped-inventory.js.map +1 -0
- package/dist/src/tui/screen-registry.d.ts +701 -0
- package/dist/src/tui/screen-registry.js +226 -0
- package/dist/src/tui/screen-registry.js.map +1 -0
- package/dist/src/tui/session-console-app.d.ts +6 -0
- package/dist/src/tui/session-console-app.js +13 -0
- package/dist/src/tui/session-console-app.js.map +1 -0
- package/dist/src/tui/session-host.d.ts +45 -0
- package/dist/src/tui/session-host.js +219 -0
- package/dist/src/tui/session-host.js.map +1 -0
- package/dist/src/tui/source-detail-card.d.ts +29 -0
- package/dist/src/tui/source-detail-card.js +45 -0
- package/dist/src/tui/source-detail-card.js.map +1 -0
- package/dist/src/tui/theme.d.ts +12 -0
- package/dist/src/tui/theme.js +12 -0
- package/dist/src/tui/theme.js.map +1 -1
- package/dist/src/tui/viewport.d.ts +1 -0
- package/dist/src/tui/viewport.js +23 -0
- package/dist/src/tui/viewport.js.map +1 -1
- package/dist/src/tui/wizard.js +37 -13
- package/dist/src/tui/wizard.js.map +1 -1
- package/dist/src/types.d.ts +220 -118
- package/dist/src/types.js +1 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/agent-version.d.ts +13 -4
- package/dist/src/utils/agent-version.js +27 -4
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +33 -7
- package/dist/src/utils/artifact-plan.js +115 -430
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +114 -83
- package/dist/src/utils/artifact-renderer.js +213 -364
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +44 -0
- package/dist/src/utils/artifact-request.js +80 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- package/dist/src/utils/artifact-sources.d.ts +6 -2
- package/dist/src/utils/artifact-sources.js +17 -0
- package/dist/src/utils/artifact-sources.js.map +1 -1
- package/dist/src/utils/bundle-layout.js +57 -173
- package/dist/src/utils/bundle-layout.js.map +1 -1
- package/dist/src/utils/catalog-capability-projection.d.ts +8 -0
- package/dist/src/utils/catalog-capability-projection.js +14 -0
- package/dist/src/utils/catalog-capability-projection.js.map +1 -0
- package/dist/src/utils/catalog-digests.d.ts +2 -2
- package/dist/src/utils/catalog-digests.js +7 -18
- package/dist/src/utils/catalog-digests.js.map +1 -1
- package/dist/src/utils/catalog-generation-control-snapshot.d.ts +11 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js +45 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js.map +1 -0
- package/dist/src/utils/catalog-generation-error.d.ts +5 -1
- package/dist/src/utils/catalog-generation-error.js +14 -0
- package/dist/src/utils/catalog-generation-error.js.map +1 -1
- package/dist/src/utils/catalog-generation-resolver.d.ts +36 -5
- package/dist/src/utils/catalog-generation-resolver.js +221 -77
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
- package/dist/src/utils/catalog-generation-service.d.ts +159 -28
- package/dist/src/utils/catalog-generation-service.js +1186 -525
- package/dist/src/utils/catalog-generation-service.js.map +1 -1
- package/dist/src/utils/catalog-generation-state.d.ts +9 -0
- package/dist/src/utils/catalog-generation-state.js +97 -106
- package/dist/src/utils/catalog-generation-state.js.map +1 -1
- package/dist/src/utils/catalog-generation-store.d.ts +38 -24
- package/dist/src/utils/catalog-generation-store.js +337 -272
- package/dist/src/utils/catalog-generation-store.js.map +1 -1
- package/dist/src/utils/catalog-manifest-v7.d.ts +5 -0
- package/dist/src/utils/{catalog-manifest-v5.js → catalog-manifest-v7.js} +23 -35
- package/dist/src/utils/catalog-manifest-v7.js.map +1 -0
- package/dist/src/utils/catalog-operation-context.d.ts +6 -14
- package/dist/src/utils/catalog-operation-context.js +69 -169
- package/dist/src/utils/catalog-operation-context.js.map +1 -1
- package/dist/src/utils/catalog-public-error.js +8 -4
- package/dist/src/utils/catalog-public-error.js.map +1 -1
- package/dist/src/utils/catalog-runtime-projection.d.ts +7 -3
- package/dist/src/utils/catalog-runtime-projection.js +5 -40
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -1
- package/dist/src/utils/catalog-snapshot.d.ts +2 -2
- package/dist/src/utils/catalog-source-impact.d.ts +21 -0
- package/dist/src/utils/catalog-source-impact.js +344 -0
- package/dist/src/utils/catalog-source-impact.js.map +1 -0
- package/dist/src/utils/catalog-source-references.d.ts +23 -2
- package/dist/src/utils/catalog-source-references.js +456 -382
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/catalog-sources.d.ts +14 -1
- package/dist/src/utils/catalog-sources.js +178 -18
- package/dist/src/utils/catalog-sources.js.map +1 -1
- package/dist/src/utils/codex-config.d.ts +2 -0
- package/dist/src/utils/codex-config.js +22 -1
- package/dist/src/utils/codex-config.js.map +1 -1
- package/dist/src/utils/codex-executable-discovery.d.ts +28 -0
- package/dist/src/utils/codex-executable-discovery.js +431 -0
- package/dist/src/utils/codex-executable-discovery.js.map +1 -0
- package/dist/src/utils/codex-manager.d.ts +47 -18
- package/dist/src/utils/codex-manager.js +88 -622
- package/dist/src/utils/codex-manager.js.map +1 -1
- package/dist/src/utils/codex-marketplace-path.d.ts +5 -0
- package/dist/src/utils/codex-marketplace-path.js +45 -0
- package/dist/src/utils/codex-marketplace-path.js.map +1 -0
- package/dist/src/utils/codex-native-observation.d.ts +49 -0
- package/dist/src/utils/codex-native-observation.js +169 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -0
- package/dist/src/utils/codex-reconciler.d.ts +123 -0
- package/dist/src/utils/codex-reconciler.js +322 -0
- package/dist/src/utils/codex-reconciler.js.map +1 -0
- package/dist/src/utils/codex-shared-native.d.ts +45 -0
- package/dist/src/utils/codex-shared-native.js +122 -0
- package/dist/src/utils/codex-shared-native.js.map +1 -0
- package/dist/src/utils/codex-skill-staging.d.ts +4 -3
- package/dist/src/utils/codex-skill-staging.js.map +1 -1
- package/dist/src/utils/codex-skills-root.d.ts +4 -0
- package/dist/src/utils/codex-skills-root.js +25 -0
- package/dist/src/utils/codex-skills-root.js.map +1 -0
- package/dist/src/utils/codex-surface-analysis.d.ts +49 -0
- package/dist/src/utils/codex-surface-analysis.js +220 -0
- package/dist/src/utils/codex-surface-analysis.js.map +1 -0
- package/dist/src/utils/component-command-preparation.d.ts +34 -0
- package/dist/src/utils/component-command-preparation.js +228 -0
- package/dist/src/utils/component-command-preparation.js.map +1 -0
- package/dist/src/utils/component-resources.d.ts +51 -0
- package/dist/src/utils/component-resources.js +322 -0
- package/dist/src/utils/component-resources.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +18 -6
- package/dist/src/utils/dynamic-skill-tree.js +32 -9
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/git-catalog-provider.d.ts +16 -0
- package/dist/src/utils/git-catalog-provider.js +167 -120
- package/dist/src/utils/git-catalog-provider.js.map +1 -1
- package/dist/src/utils/inventory-recovery-diagnostic.d.ts +4 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js +15 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js.map +1 -0
- package/dist/src/utils/local-marketplace.d.ts +17 -12
- package/dist/src/utils/local-marketplace.js +85 -195
- package/dist/src/utils/local-marketplace.js.map +1 -1
- package/dist/src/utils/managed-command-closure.d.ts +3 -0
- package/dist/src/utils/managed-command-closure.js +35 -0
- package/dist/src/utils/managed-command-closure.js.map +1 -0
- package/dist/src/utils/managed-command-evidence.d.ts +7 -0
- package/dist/src/utils/managed-command-evidence.js +10 -0
- package/dist/src/utils/managed-command-evidence.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +124 -0
- package/dist/src/utils/managed-command-materialization.js +369 -0
- package/dist/src/utils/managed-command-materialization.js.map +1 -0
- package/dist/src/utils/managed-command-preparation.d.ts +67 -0
- package/dist/src/utils/managed-command-preparation.js +146 -0
- package/dist/src/utils/managed-command-preparation.js.map +1 -0
- package/dist/src/utils/managed-command-review.d.ts +26 -0
- package/dist/src/utils/managed-command-review.js +68 -0
- package/dist/src/utils/managed-command-review.js.map +1 -0
- package/dist/src/utils/managed-command-runtime.d.ts +33 -0
- package/dist/src/utils/managed-command-runtime.js +121 -0
- package/dist/src/utils/managed-command-runtime.js.map +1 -0
- package/dist/src/utils/managed-command-store.d.ts +143 -0
- package/dist/src/utils/managed-command-store.js +665 -0
- package/dist/src/utils/managed-command-store.js.map +1 -0
- package/dist/src/utils/manifest.d.ts +1 -3
- package/dist/src/utils/manifest.js +1 -3
- package/dist/src/utils/manifest.js.map +1 -1
- package/dist/src/utils/multi-source-catalog.d.ts +1 -10
- package/dist/src/utils/multi-source-catalog.js +9 -175
- package/dist/src/utils/multi-source-catalog.js.map +1 -1
- package/dist/src/utils/native-cli.d.ts +74 -5
- package/dist/src/utils/native-cli.js +479 -31
- package/dist/src/utils/native-cli.js.map +1 -1
- package/dist/src/utils/native-demand.d.ts +29 -0
- package/dist/src/utils/native-demand.js +4 -0
- package/dist/src/utils/native-demand.js.map +1 -0
- package/dist/src/utils/native-tool-context.d.ts +14 -0
- package/dist/src/utils/native-tool-context.js +38 -0
- package/dist/src/utils/native-tool-context.js.map +1 -0
- package/dist/src/utils/native-tool-review.d.ts +18 -0
- package/dist/src/utils/native-tool-review.js +116 -0
- package/dist/src/utils/native-tool-review.js.map +1 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js +0 -1
- package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +103 -21
- package/dist/src/utils/ownership.js +232 -210
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/path-catalog-provider.d.ts +1 -1
- package/dist/src/utils/path-catalog-provider.js +47 -62
- package/dist/src/utils/path-catalog-provider.js.map +1 -1
- package/dist/src/utils/paths.d.ts +1 -2
- package/dist/src/utils/paths.js +5 -3
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/platform-empty-state.d.ts +45 -0
- package/dist/src/utils/platform-empty-state.js +159 -0
- package/dist/src/utils/platform-empty-state.js.map +1 -0
- package/dist/src/utils/platform-support.d.ts +1 -1
- package/dist/src/utils/platform-support.js +1 -1
- package/dist/src/utils/platform-support.js.map +1 -1
- package/dist/src/utils/plugin-config-impact.d.ts +64 -0
- package/dist/src/utils/plugin-config-impact.js +307 -0
- package/dist/src/utils/plugin-config-impact.js.map +1 -0
- package/dist/src/utils/plugin-config-references.d.ts +89 -0
- package/dist/src/utils/plugin-config-references.js +335 -0
- package/dist/src/utils/plugin-config-references.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +109 -27
- package/dist/src/utils/plugin-config-write.js +1242 -348
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +187 -109
- package/dist/src/utils/plugin-config.js +916 -1147
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/dist/src/utils/plugin-dependencies.d.ts +1 -1
- package/dist/src/utils/plugin-dependencies.js.map +1 -1
- package/dist/src/utils/plugin-scripts.d.ts +78 -127
- package/dist/src/utils/plugin-scripts.js +566 -524
- package/dist/src/utils/plugin-scripts.js.map +1 -1
- package/dist/src/utils/process-lock.js +14 -5
- package/dist/src/utils/process-lock.js.map +1 -1
- package/dist/src/utils/process-tree.d.ts +2 -2
- package/dist/src/utils/process-tree.js +1 -1
- package/dist/src/utils/process-tree.js.map +1 -1
- package/dist/src/utils/project-boundary.d.ts +11 -13
- package/dist/src/utils/project-boundary.js +28 -34
- package/dist/src/utils/project-boundary.js.map +1 -1
- package/dist/src/utils/rendered-contract.js +18 -1
- package/dist/src/utils/rendered-contract.js.map +1 -1
- package/dist/src/utils/runtime-config.d.ts +18 -0
- package/dist/src/utils/runtime-config.js +64 -0
- package/dist/src/utils/runtime-config.js.map +1 -0
- package/dist/src/utils/runtime-skill-closure.d.ts +2 -2
- package/dist/src/utils/runtime-skill-closure.js +47 -6
- package/dist/src/utils/runtime-skill-closure.js.map +1 -1
- package/dist/src/utils/safe-fs.d.ts +21 -0
- package/dist/src/utils/safe-fs.js +111 -0
- package/dist/src/utils/safe-fs.js.map +1 -0
- package/dist/src/utils/safe-operation-diagnostic.d.ts +15 -0
- package/dist/src/utils/safe-operation-diagnostic.js +33 -0
- package/dist/src/utils/safe-operation-diagnostic.js.map +1 -0
- package/dist/src/utils/sensitive-content.d.ts +4 -0
- package/dist/src/utils/sensitive-content.js +36 -0
- package/dist/src/utils/sensitive-content.js.map +1 -0
- package/dist/src/utils/state-paths.d.ts +8 -3
- package/dist/src/utils/state-paths.js +53 -16
- package/dist/src/utils/state-paths.js.map +1 -1
- package/dist/src/utils/target-eligibility.d.ts +4 -3
- package/dist/src/utils/target-eligibility.js +12 -6
- package/dist/src/utils/target-eligibility.js.map +1 -1
- package/dist/src/utils/windows-claude-shim.d.ts +7 -0
- package/dist/src/utils/windows-claude-shim.js +10 -0
- package/dist/src/utils/windows-claude-shim.js.map +1 -0
- package/dist/src/utils/windows-npm-shim.d.ts +16 -0
- package/dist/src/utils/windows-npm-shim.js +155 -0
- package/dist/src/utils/windows-npm-shim.js.map +1 -0
- package/dist/vitest.config.js +105 -9
- package/dist/vitest.config.js.map +1 -1
- package/package.json +30 -21
- package/dist/scripts/aw-skill-eval-engine.d.ts +0 -13
- package/dist/scripts/aw-skill-eval-engine.js +0 -31
- package/dist/scripts/aw-skill-eval-engine.js.map +0 -1
- package/dist/scripts/codex-eval-app-server.d.ts +0 -91
- package/dist/scripts/codex-eval-app-server.js +0 -1334
- package/dist/scripts/codex-eval-app-server.js.map +0 -1
- package/dist/scripts/codex-eval-isolation.d.ts +0 -61
- package/dist/scripts/codex-eval-isolation.js +0 -318
- package/dist/scripts/codex-eval-isolation.js.map +0 -1
- package/dist/scripts/codex-eval-process-management.d.ts +0 -8
- package/dist/scripts/codex-eval-process-management.js +0 -69
- package/dist/scripts/codex-eval-process-management.js.map +0 -1
- package/dist/scripts/codex-eval-process-tree.d.ts +0 -38
- package/dist/scripts/codex-eval-process-tree.js +0 -803
- package/dist/scripts/codex-eval-process-tree.js.map +0 -1
- package/dist/scripts/codex-eval-runtime-config.d.ts +0 -62
- package/dist/scripts/codex-eval-runtime-config.js +0 -843
- package/dist/scripts/codex-eval-runtime-config.js.map +0 -1
- package/dist/scripts/codex-trigger-eval.d.ts +0 -84
- package/dist/scripts/codex-trigger-eval.js +0 -968
- package/dist/scripts/codex-trigger-eval.js.map +0 -1
- package/dist/scripts/eval-plugin-skills-audited.d.ts +0 -6
- package/dist/scripts/eval-plugin-skills-audited.js +0 -261
- package/dist/scripts/eval-plugin-skills-audited.js.map +0 -1
- package/dist/scripts/eval-plugin-skills.d.ts +0 -45
- package/dist/scripts/eval-plugin-skills.js +0 -1589
- package/dist/scripts/eval-plugin-skills.js.map +0 -1
- package/dist/scripts/eval-run-layout.d.ts +0 -17
- package/dist/scripts/eval-run-layout.js +0 -26
- package/dist/scripts/eval-run-layout.js.map +0 -1
- package/dist/scripts/plugin-eval-contract.d.ts +0 -189
- package/dist/scripts/plugin-eval-contract.js +0 -745
- package/dist/scripts/plugin-eval-contract.js.map +0 -1
- package/dist/scripts/plugin-eval-materializer.d.ts +0 -13
- package/dist/scripts/plugin-eval-materializer.js +0 -421
- package/dist/scripts/plugin-eval-materializer.js.map +0 -1
- package/dist/scripts/skill-reporting.d.ts +0 -212
- package/dist/scripts/skill-reporting.js +0 -922
- package/dist/scripts/skill-reporting.js.map +0 -1
- package/dist/src/commands/catalog-context.d.ts +0 -52
- package/dist/src/commands/catalog-context.js +0 -156
- package/dist/src/commands/catalog-context.js.map +0 -1
- package/dist/src/commands/review-publication.d.ts +0 -99
- package/dist/src/commands/review-publication.js +0 -904
- package/dist/src/commands/review-publication.js.map +0 -1
- package/dist/src/commands/status-v5.d.ts +0 -169
- package/dist/src/commands/status-v5.js +0 -1135
- package/dist/src/commands/status-v5.js.map +0 -1
- package/dist/src/portable/skills-cli.d.ts +0 -43
- package/dist/src/portable/skills-cli.js +0 -148
- package/dist/src/portable/skills-cli.js.map +0 -1
- package/dist/src/utils/catalog-manifest-v5.d.ts +0 -5
- package/dist/src/utils/catalog-manifest-v5.js.map +0 -1
- package/dist/src/utils/catalog-source-cache.d.ts +0 -62
- package/dist/src/utils/catalog-source-cache.js +0 -321
- package/dist/src/utils/catalog-source-cache.js.map +0 -1
- package/dist/src/utils/codex-project-surface.d.ts +0 -3
- package/dist/src/utils/codex-project-surface.js +0 -49
- package/dist/src/utils/codex-project-surface.js.map +0 -1
- package/dist/src/utils/lifecycle-active-store.d.ts +0 -147
- package/dist/src/utils/lifecycle-active-store.js +0 -1064
- package/dist/src/utils/lifecycle-active-store.js.map +0 -1
- package/dist/src/utils/plugin-release.d.ts +0 -2
- package/dist/src/utils/plugin-release.js +0 -2
- package/dist/src/utils/plugin-release.js.map +0 -1
- package/dist/src/utils/slash-commands.d.ts +0 -1
- package/dist/src/utils/slash-commands.js +0 -2
- package/dist/src/utils/slash-commands.js.map +0 -1
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import crypto from 'node:crypto';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { validatePluginConfigCandidate, selectPluginConfigProfile, PLATFORM_TARGETS, getPluginConfigDependencyFields, formatPluginConfigIssue, } from '@lesliechan721/aw-plugin-core/manifest';
|
|
4
|
+
import { resolveWorkContext } from '../intent/work-context.js';
|
|
5
|
+
import { resolveCatalogOperationContext } from './catalog-operation-context.js';
|
|
6
|
+
import { readCatalogSourcesConfigSnapshot } from './catalog-sources.js';
|
|
7
|
+
import { readPluginManifest } from './manifest.js';
|
|
8
|
+
import { formatPluginId } from './multi-source-catalog.js';
|
|
9
|
+
import { resolvePluginMetaDependencyClosure } from './plugin-dependencies.js';
|
|
10
|
+
import { readPluginConfigStore, resolveAwProjectRoot, resolveEffectivePluginConfigFromStores, } from './plugin-config.js';
|
|
11
|
+
function createReferenceEvidence(plugin, platform) {
|
|
12
|
+
return { plugin: plugin.manifest.name, platform: platform ?? null, sourceId: plugin.sourceId, sourceIdentity: plugin.sourceIdentity,
|
|
13
|
+
logicalIdentity: plugin.catalogLogicalIdentity,
|
|
14
|
+
definitionDigest: `sha256:${crypto.createHash('sha256').update(JSON.stringify({ platform: platform ?? null, config: plugin.manifest.config ? selectPluginConfigProfile(plugin.manifest.config, platform) : null,
|
|
15
|
+
dependencies: plugin.manifest.dependencies ?? [] })).digest('hex')}`,
|
|
16
|
+
stores: {}, sources: {} };
|
|
17
|
+
}
|
|
18
|
+
export function pluginConfigHasExternalReferences(manifest) {
|
|
19
|
+
if (manifest.requires?.aw.capabilities?.includes('aw.plugin-config-cross-plugin-value-ref.v1'))
|
|
20
|
+
return true;
|
|
21
|
+
const visit = (value) => {
|
|
22
|
+
if (!value || typeof value !== 'object')
|
|
23
|
+
return false;
|
|
24
|
+
if (Array.isArray(value))
|
|
25
|
+
return value.some(visit);
|
|
26
|
+
const record = value;
|
|
27
|
+
const reference = record.valueRef;
|
|
28
|
+
return typeof reference?.plugin === 'string' || Object.values(record).some(visit);
|
|
29
|
+
};
|
|
30
|
+
return visit(manifest.config);
|
|
31
|
+
}
|
|
32
|
+
/** Read only the selected Active source. An explicit set is also the offline boundary. */
|
|
33
|
+
export async function resolvePluginConfigReferencePlugins(options) {
|
|
34
|
+
if (options.plugins) {
|
|
35
|
+
const selected = options.plugins.filter((plugin) => plugin.sourceId === options.sourceId);
|
|
36
|
+
if (selected.some((plugin) => (options.sourceIdentity && plugin.sourceIdentity !== options.sourceIdentity)
|
|
37
|
+
|| (options.logicalIdentity && plugin.catalogLogicalIdentity !== options.logicalIdentity))) {
|
|
38
|
+
throw new Error('operationPlanStale: the configuration reference source identity changed.');
|
|
39
|
+
}
|
|
40
|
+
return selected;
|
|
41
|
+
}
|
|
42
|
+
if (!options.sourceId)
|
|
43
|
+
return [];
|
|
44
|
+
let operation = options.operationContext;
|
|
45
|
+
if (!operation) {
|
|
46
|
+
const configured = await readCatalogSourcesConfigSnapshot(options.env);
|
|
47
|
+
if (!configured.config.sources.some((source) => source.id === options.sourceId))
|
|
48
|
+
return [];
|
|
49
|
+
operation = await resolveCatalogOperationContext({ sourceIds: [options.sourceId], env: options.env });
|
|
50
|
+
}
|
|
51
|
+
const source = operation.catalog.sources.find((source) => source.sourceId === options.sourceId)?.resolution;
|
|
52
|
+
if (!source)
|
|
53
|
+
throw new Error('operationPlanStale: the configuration reference source is unavailable.');
|
|
54
|
+
if ((options.sourceIdentity && source.sourceIdentity !== options.sourceIdentity)
|
|
55
|
+
|| (options.logicalIdentity && source.logicalIdentity !== options.logicalIdentity)) {
|
|
56
|
+
throw new Error('operationPlanStale: the configuration reference source identity changed.');
|
|
57
|
+
}
|
|
58
|
+
return Promise.all(source.manifest.entries.map(async (entry) => {
|
|
59
|
+
const plugin = await readPluginManifest(path.join(source.rootDir, 'plugins', entry.name), { mode: 'bundle' });
|
|
60
|
+
return { ...plugin, sourceId: source.sourceId, sourceIdentity: source.sourceIdentity,
|
|
61
|
+
catalogLogicalIdentity: source.logicalIdentity,
|
|
62
|
+
pluginId: formatPluginId({ sourceId: source.sourceId, pluginName: entry.name }) };
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
export async function resolvePluginConfigReferenceContext(options) {
|
|
66
|
+
options = { ...options, scope: options.context ?? options.scope };
|
|
67
|
+
const workContext = options.context ? await resolveWorkContext({ cwd: options.cwd, context: options.context }) : undefined;
|
|
68
|
+
const projectRoot = workContext?.projectRoot ?? (options.scope === 'project' ? resolveAwProjectRoot(options.cwd) : '');
|
|
69
|
+
const context = {
|
|
70
|
+
plugin: options.manifest.name,
|
|
71
|
+
platform: options.platform,
|
|
72
|
+
dependencies: options.manifest.dependencies ?? [],
|
|
73
|
+
plugins: {},
|
|
74
|
+
};
|
|
75
|
+
const evidence = [];
|
|
76
|
+
if (!pluginConfigHasExternalReferences(options.manifest))
|
|
77
|
+
return { context, evidence };
|
|
78
|
+
const plugins = await resolvePluginConfigReferencePlugins(options);
|
|
79
|
+
// The current manifest is authoritative for the operation; never substitute another source.
|
|
80
|
+
const current = plugins.find((plugin) => plugin.manifest.name === options.manifest.name);
|
|
81
|
+
const selected = current ? plugins.map((plugin) => plugin === current ? { ...plugin, manifest: options.manifest } : plugin) : plugins;
|
|
82
|
+
const closure = resolvePluginMetaDependencyClosure(selected, [options.manifest.name]);
|
|
83
|
+
const entries = {};
|
|
84
|
+
for (const plugin of closure) {
|
|
85
|
+
if (!plugin.manifest.config)
|
|
86
|
+
continue;
|
|
87
|
+
entries[plugin.manifest.name] = { definition: selectPluginConfigProfile(plugin.manifest.config, options.platform),
|
|
88
|
+
dependencies: plugin.manifest.dependencies ?? [] };
|
|
89
|
+
}
|
|
90
|
+
const completeContext = { ...context, plugins: entries };
|
|
91
|
+
for (const plugin of closure) {
|
|
92
|
+
if (!plugin.manifest.config || plugin.manifest.name === options.manifest.name)
|
|
93
|
+
continue;
|
|
94
|
+
const identity = { sourceId: plugin.sourceId, sourceIdentity: plugin.sourceIdentity,
|
|
95
|
+
logicalIdentity: plugin.catalogLogicalIdentity, pluginName: plugin.manifest.name,
|
|
96
|
+
cwd: options.cwd, env: options.env };
|
|
97
|
+
const entry = createReferenceEvidence(plugin, options.platform);
|
|
98
|
+
evidence.push(entry);
|
|
99
|
+
try {
|
|
100
|
+
const overrides = options.storeOverrides?.get(plugin.manifest.name);
|
|
101
|
+
const storeEvidence = (store) => ({ exists: store.exists, state: store.state,
|
|
102
|
+
...(store.rawDigest ? { rawDigest: store.rawDigest } : {}) });
|
|
103
|
+
const user = overrides?.user ?? await readPluginConfigStore({ ...identity, scope: 'user', platform: options.platform });
|
|
104
|
+
entry.stores.user = storeEvidence(user);
|
|
105
|
+
const effective = await resolveEffectivePluginConfigFromStores({ manifest: plugin.manifest,
|
|
106
|
+
targetScope: options.scope, platform: options.platform, projectRoot,
|
|
107
|
+
stores: { user },
|
|
108
|
+
referenceContext: { ...completeContext, plugin: plugin.manifest.name, dependencies: plugin.manifest.dependencies ?? [] } });
|
|
109
|
+
entries[plugin.manifest.name] = { ...entries[plugin.manifest.name], values: rawEffectiveValues(effective) };
|
|
110
|
+
entry.sources = effective.sources;
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
// An unavailable optional scope still binds Review to the dependency bytes that were read.
|
|
114
|
+
throw Object.assign(error instanceof Error ? error : new Error(String(error)), { referenceEvidence: evidence });
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return { context: completeContext, evidence };
|
|
118
|
+
}
|
|
119
|
+
/** Bind each reviewed profile to its single owner document and same-profile providers. */
|
|
120
|
+
export async function collectPluginConfigReferenceEvidence(options) {
|
|
121
|
+
const plugins = await resolvePluginConfigReferencePlugins({ sourceId: options.plugin.sourceId,
|
|
122
|
+
sourceIdentity: options.plugin.sourceIdentity, logicalIdentity: options.plugin.catalogLogicalIdentity,
|
|
123
|
+
plugins: options.plugins, env: options.env });
|
|
124
|
+
const byName = new Map([...plugins, options.plugin].map((plugin) => [plugin.manifest.name, plugin]));
|
|
125
|
+
const profiles = new Map(options.profiles.map((profile) => [`${profile.pluginName}\0${profile.scope}\0${profile.platform ?? 'common'}`, profile]));
|
|
126
|
+
const evidence = [];
|
|
127
|
+
for (const [, profile] of [...profiles].sort(([a], [b]) => a.localeCompare(b, 'en'))) {
|
|
128
|
+
const plugin = byName.get(profile.pluginName);
|
|
129
|
+
if (!plugin)
|
|
130
|
+
throw new Error(`operationPlanStale: configuration owner ${profile.pluginName} is no longer in the selected source.`);
|
|
131
|
+
const entry = createReferenceEvidence(plugin, profile.platform);
|
|
132
|
+
const user = await readPluginConfigStore({ sourceId: plugin.sourceId, sourceIdentity: plugin.sourceIdentity,
|
|
133
|
+
logicalIdentity: plugin.catalogLogicalIdentity, pluginName: plugin.manifest.name, scope: 'user',
|
|
134
|
+
platform: profile.platform, cwd: options.cwd, env: options.env });
|
|
135
|
+
entry.stores.user = { exists: user.exists, state: user.state, rawDigest: user.rawDigest };
|
|
136
|
+
evidence.push(entry);
|
|
137
|
+
try {
|
|
138
|
+
const references = await resolvePluginConfigReferenceContext({ sourceId: plugin.sourceId, sourceIdentity: plugin.sourceIdentity,
|
|
139
|
+
logicalIdentity: plugin.catalogLogicalIdentity, manifest: plugin.manifest, scope: profile.scope,
|
|
140
|
+
platform: profile.platform, cwd: options.cwd, env: options.env, plugins: [...byName.values()] });
|
|
141
|
+
evidence.push(...references.evidence);
|
|
142
|
+
const effective = await resolveEffectivePluginConfigFromStores({ manifest: plugin.manifest, targetScope: profile.scope,
|
|
143
|
+
platform: profile.platform, projectRoot: profile.scope === 'project' ? resolveAwProjectRoot(options.cwd) : '', stores: { user }, referenceContext: references.context });
|
|
144
|
+
entry.sources = effective.sources;
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
evidence.push(...(error.referenceEvidence ?? []));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return evidence;
|
|
151
|
+
}
|
|
152
|
+
function providerReferences(consumer, provider, plugins, platform) {
|
|
153
|
+
const definition = consumer.manifest.config ? selectPluginConfigProfile(consumer.manifest.config, platform) : undefined;
|
|
154
|
+
if (!definition)
|
|
155
|
+
return [];
|
|
156
|
+
const context = { plugin: consumer.manifest.name, platform,
|
|
157
|
+
dependencies: consumer.manifest.dependencies ?? [],
|
|
158
|
+
plugins: Object.fromEntries(plugins.filter((plugin) => plugin.manifest.config).map((plugin) => [plugin.manifest.name, {
|
|
159
|
+
definition: selectPluginConfigProfile(plugin.manifest.config, platform), dependencies: plugin.manifest.dependencies ?? [],
|
|
160
|
+
}])) };
|
|
161
|
+
return getPluginConfigDependencyFields(definition, Object.keys(definition.fields), context)
|
|
162
|
+
.filter((entry) => entry.plugin === provider.manifest.name)
|
|
163
|
+
.flatMap(({ field }) => {
|
|
164
|
+
const schema = provider.manifest.config ? selectPluginConfigProfile(provider.manifest.config, platform).fields[field] : undefined;
|
|
165
|
+
return schema?.type === 'array' && schema.items.type === 'object' && schema.validation?.uniqueBy
|
|
166
|
+
? [{ field, key: schema.validation.uniqueBy }] : [];
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
export async function resolvePluginConfigReferenceConsumers(options) {
|
|
170
|
+
const plugins = await resolvePluginConfigReferencePlugins({ sourceId: options.plugin.sourceId,
|
|
171
|
+
sourceIdentity: options.plugin.sourceIdentity, logicalIdentity: options.plugin.catalogLogicalIdentity,
|
|
172
|
+
env: options.env, plugins: options.plugins });
|
|
173
|
+
return [options.plugin, ...plugins.filter((plugin) => plugin.manifest.name !== options.plugin.manifest.name
|
|
174
|
+
&& [undefined, ...PLATFORM_TARGETS].some((platform) => providerReferences(plugin, options.plugin, plugins, platform).length > 0))];
|
|
175
|
+
}
|
|
176
|
+
function rawEffectiveValues(config) {
|
|
177
|
+
const user = config.stores.user;
|
|
178
|
+
return Object.fromEntries(Object.entries(config.sources).flatMap(([key, source]) => source === 'missing' ? [] : [[key,
|
|
179
|
+
source === 'default' ? config.schema[key].default : source === 'common' ? (user.common ?? user.values)[key]
|
|
180
|
+
: user.platforms?.[config.platform]?.[key]]]));
|
|
181
|
+
}
|
|
182
|
+
/** Compare actual reference failures. Existing unrelated errors do not block an incremental repair. */
|
|
183
|
+
export async function analyzePluginConfigReferenceMutation(options) {
|
|
184
|
+
options = { ...options, scope: options.context ?? options.scope };
|
|
185
|
+
const result = { consumers: [], blockedReferences: [],
|
|
186
|
+
unreadableConsumers: [], removesCandidates: false, evidence: [] };
|
|
187
|
+
const profiles = options.platform ? [options.platform] : [undefined, ...PLATFORM_TARGETS];
|
|
188
|
+
const potentialFields = profiles.some((platform) => options.plugin.manifest.config
|
|
189
|
+
&& Object.values(selectPluginConfigProfile(options.plugin.manifest.config, platform).fields).some((field) => field.type === 'array' && field.items.type === 'object'));
|
|
190
|
+
if (!potentialFields)
|
|
191
|
+
return result;
|
|
192
|
+
const identity = { sourceId: options.plugin.sourceId, sourceIdentity: options.plugin.sourceIdentity,
|
|
193
|
+
logicalIdentity: options.plugin.catalogLogicalIdentity };
|
|
194
|
+
const canRemove = profiles.some((platform) => Object.entries(selectPluginConfigProfile(options.plugin.manifest.config, platform).fields).some(([field, schema]) => {
|
|
195
|
+
if (schema.type !== 'array' || schema.items.type !== 'object')
|
|
196
|
+
return false;
|
|
197
|
+
const key = schema.validation?.uniqueBy;
|
|
198
|
+
if (!key)
|
|
199
|
+
return false;
|
|
200
|
+
const value = (stores) => {
|
|
201
|
+
const user = stores.user;
|
|
202
|
+
const common = user.common ?? user.values;
|
|
203
|
+
const values = platform ? user.platforms?.[platform] ?? {} : {};
|
|
204
|
+
return Object.hasOwn(values, field) ? values[field] : Object.hasOwn(common, field) ? common[field] : schema.default;
|
|
205
|
+
};
|
|
206
|
+
const before = value(options.beforeStores), after = value(options.afterStores);
|
|
207
|
+
if (!Array.isArray(before))
|
|
208
|
+
return false;
|
|
209
|
+
const afterKeys = new Set(Array.isArray(after) ? after.map((row) => JSON.stringify(row[key])) : []);
|
|
210
|
+
return before.some((row) => !afterKeys.has(JSON.stringify(row[key])));
|
|
211
|
+
}));
|
|
212
|
+
let plugins;
|
|
213
|
+
try {
|
|
214
|
+
plugins = await resolvePluginConfigReferencePlugins({ ...identity, env: options.env, plugins: options.plugins });
|
|
215
|
+
}
|
|
216
|
+
catch {
|
|
217
|
+
if (canRemove)
|
|
218
|
+
result.unreadableConsumers.push(`Active source ${options.plugin.sourceId ?? '<unbound>'}`);
|
|
219
|
+
result.evidence.push({ sourceId: options.plugin.sourceId, unavailable: true });
|
|
220
|
+
return result;
|
|
221
|
+
}
|
|
222
|
+
const consumers = plugins.filter((plugin) => plugin.manifest.name !== options.plugin.manifest.name
|
|
223
|
+
&& [undefined, ...PLATFORM_TARGETS].some((platform) => providerReferences(plugin, options.plugin, plugins, platform).length > 0));
|
|
224
|
+
for (const platform of profiles) {
|
|
225
|
+
const scope = options.scope;
|
|
226
|
+
const resolveProvider = async (stores) => {
|
|
227
|
+
const references = pluginConfigHasExternalReferences(options.plugin.manifest)
|
|
228
|
+
? await resolvePluginConfigReferenceContext({ ...identity, manifest: options.plugin.manifest,
|
|
229
|
+
scope, platform, cwd: options.cwd, env: options.env, plugins,
|
|
230
|
+
storeOverrides: new Map([[options.plugin.manifest.name, stores]]) }) : undefined;
|
|
231
|
+
return resolveEffectivePluginConfigFromStores({ manifest: options.plugin.manifest,
|
|
232
|
+
targetScope: scope, platform, projectRoot: scope === 'project' ? resolveAwProjectRoot(options.cwd) : '', stores,
|
|
233
|
+
referenceContext: references?.context });
|
|
234
|
+
};
|
|
235
|
+
let providerBefore;
|
|
236
|
+
let providerAfter;
|
|
237
|
+
try {
|
|
238
|
+
[providerBefore, providerAfter] = await Promise.all([
|
|
239
|
+
resolveProvider(options.beforeStores), resolveProvider(options.afterStores),
|
|
240
|
+
]);
|
|
241
|
+
}
|
|
242
|
+
catch {
|
|
243
|
+
if (canRemove)
|
|
244
|
+
result.unreadableConsumers.push(`${options.plugin.manifest.name} (${platform ?? 'common'}, ${scope} context)`);
|
|
245
|
+
result.evidence.push({ plugin: options.plugin.manifest.name, scope, platform, unavailable: true });
|
|
246
|
+
continue;
|
|
247
|
+
}
|
|
248
|
+
for (const consumer of consumers) {
|
|
249
|
+
const refs = providerReferences(consumer, options.plugin, plugins, platform);
|
|
250
|
+
if (!refs.length)
|
|
251
|
+
continue;
|
|
252
|
+
const removes = refs.some((ref) => {
|
|
253
|
+
const keys = (config) => new Set(Array.isArray(config.values[ref.field]) ? config.values[ref.field]
|
|
254
|
+
.map((row) => JSON.stringify(row[ref.key])) : []);
|
|
255
|
+
const afterKeys = keys(providerAfter);
|
|
256
|
+
return [...keys(providerBefore)].some((key) => !afterKeys.has(key));
|
|
257
|
+
});
|
|
258
|
+
result.removesCandidates ||= removes;
|
|
259
|
+
try {
|
|
260
|
+
const consumerIdentity = { sourceId: consumer.sourceId, sourceIdentity: consumer.sourceIdentity,
|
|
261
|
+
logicalIdentity: consumer.catalogLogicalIdentity, pluginName: consumer.manifest.name,
|
|
262
|
+
cwd: options.cwd, env: options.env };
|
|
263
|
+
const user = await readPluginConfigStore({ ...consumerIdentity, scope: 'user', platform });
|
|
264
|
+
const stores = { user };
|
|
265
|
+
const resolveConsumer = async (providerStores) => {
|
|
266
|
+
const references = await resolvePluginConfigReferenceContext({ ...identity, manifest: consumer.manifest,
|
|
267
|
+
scope, platform, cwd: options.cwd, env: options.env, plugins,
|
|
268
|
+
storeOverrides: new Map([[options.plugin.manifest.name, providerStores]]) });
|
|
269
|
+
const effective = await resolveEffectivePluginConfigFromStores({ manifest: consumer.manifest,
|
|
270
|
+
targetScope: scope, platform, projectRoot: scope === 'project' ? resolveAwProjectRoot(options.cwd) : '', stores,
|
|
271
|
+
referenceContext: references.context, referenceEvidence: references.evidence });
|
|
272
|
+
return effective;
|
|
273
|
+
};
|
|
274
|
+
const [before, after] = await Promise.all([
|
|
275
|
+
resolveConsumer(options.beforeStores), resolveConsumer(options.afterStores),
|
|
276
|
+
]);
|
|
277
|
+
const validate = (config) => {
|
|
278
|
+
const candidate = rawEffectiveValues(config);
|
|
279
|
+
const failures = [];
|
|
280
|
+
for (const field of Object.keys(candidate)) {
|
|
281
|
+
const dependencies = getPluginConfigDependencyFields(config.definition, [field], config.referenceContext);
|
|
282
|
+
if (!dependencies.some((entry) => entry.plugin === options.plugin.manifest.name
|
|
283
|
+
&& refs.some((ref) => ref.field === entry.field)))
|
|
284
|
+
continue;
|
|
285
|
+
for (const issue of validatePluginConfigCandidate(config.definition, candidate, [field], config.referenceContext)) {
|
|
286
|
+
if (!issue.code.startsWith('valueRef'))
|
|
287
|
+
continue;
|
|
288
|
+
if (!issue.path.plugin || issue.path.plugin === consumer.manifest.name) {
|
|
289
|
+
failures.push({ issue, field: issue.path.field });
|
|
290
|
+
}
|
|
291
|
+
else if (issue.path.plugin === options.plugin.manifest.name
|
|
292
|
+
&& refs.some((ref) => ref.field === issue.path.field)) {
|
|
293
|
+
// Reserved values are reported on the source path, even when the selection is included.
|
|
294
|
+
failures.push({ issue, field });
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return failures;
|
|
299
|
+
};
|
|
300
|
+
const issueKey = ({ issue, field }) => JSON.stringify([field, issue.code, issue.path]);
|
|
301
|
+
const reported = new Set();
|
|
302
|
+
for (const failure of validate(after)) {
|
|
303
|
+
if (!Object.hasOwn(before.values, failure.field) || reported.has(issueKey(failure)))
|
|
304
|
+
continue;
|
|
305
|
+
reported.add(issueKey(failure));
|
|
306
|
+
const { issue, field } = failure;
|
|
307
|
+
const segments = issue.path.segments ?? [issue.path.field, ...(issue.path.property ? [issue.path.property] : [])];
|
|
308
|
+
const foreign = issue.path.plugin && issue.path.plugin !== consumer.manifest.name;
|
|
309
|
+
let selected = foreign ? after.referenceContext?.plugins[issue.path.plugin]?.values
|
|
310
|
+
: rawEffectiveValues(after);
|
|
311
|
+
for (const segment of segments)
|
|
312
|
+
selected = selected && typeof selected === 'object'
|
|
313
|
+
? selected[segment] : undefined;
|
|
314
|
+
result.blockedReferences.push(`${options.plugin.manifest.name}${foreign ? `/${issue.path.field}` : ''}: key ${JSON.stringify(selected)}; `
|
|
315
|
+
+ `${consumer.manifest.name}/${field} (${platform ?? 'common'}, ${scope} context): ${formatPluginConfigIssue(issue)}`);
|
|
316
|
+
}
|
|
317
|
+
result.consumers.push({ plugin: consumer, scope, platform, before, after });
|
|
318
|
+
result.evidence.push({ plugin: consumer.manifest.name, scope, platform,
|
|
319
|
+
definition: consumer.manifest.config, identity: consumerIdentity,
|
|
320
|
+
stores: Object.fromEntries(Object.entries(stores).map(([layer, store]) => [layer,
|
|
321
|
+
{ exists: store.exists, state: store.state, rawDigest: store.rawDigest }])),
|
|
322
|
+
references: before.referenceEvidence });
|
|
323
|
+
}
|
|
324
|
+
catch {
|
|
325
|
+
const location = `${consumer.manifest.name} (${platform ?? 'common'}, ${scope} context)`;
|
|
326
|
+
result.consumers.push({ plugin: consumer, scope, platform, error: location });
|
|
327
|
+
if (removes)
|
|
328
|
+
result.unreadableConsumers.push(location);
|
|
329
|
+
result.evidence.push({ plugin: consumer.manifest.name, scope, platform, unreadable: true, definition: consumer.manifest.config });
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return result;
|
|
334
|
+
}
|
|
335
|
+
//# sourceMappingURL=plugin-config-references.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-config-references.js","sourceRoot":"","sources":["../../../src/utils/plugin-config-references.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,gBAAgB,EAEhB,+BAA+B,EAC/B,uBAAuB,GAGxB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,8BAA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AAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;oBAC7E,UAAU,EAAE,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC;YAC5C,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,QAAQ,GAAG,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,IAAI,QAAQ,KAAK,KAAK,WAAW,CAAC;gBACzF,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;gBAC9E,IAAI,OAAO;oBAAE,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACvD,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;YACpI,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,54 +1,75 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import type { RecoveryPlan } from '../recovery/coordinator.js';
|
|
2
|
+
import type { PreApplyAuthorizationTarget, RebuildCommandRuntime } from '../commands/rebuild-command.js';
|
|
3
|
+
import { type PlatformTarget } from '@lesliechan721/aw-plugin-core/manifest';
|
|
4
|
+
import { syncWriteCommand } from '../commands/write-commands.js';
|
|
5
|
+
import { type ConfigApplyResult, type ConfigReceiptFieldEntry, type ConfigMutationCommand, type ConfigMutationReceiptBase, type ConfigSchemaEvidence, type PluginMeta, type RebuildReceiptOverallState, type ReceiptTargetIdentity, type ReceiptTargetResult, type Scope } from '../types.js';
|
|
4
6
|
import { type NativeCliRunner } from './native-cli.js';
|
|
5
7
|
import { summarizeEffectivePluginConfig } from './plugin-config.js';
|
|
6
|
-
import { type
|
|
8
|
+
import { type ManagedCommandPackageDiscovery } from './managed-command-materialization.js';
|
|
7
9
|
import { type AwHomeMutationToken } from './aw-home-mutation-lock.js';
|
|
8
10
|
export interface PluginConfigWriteRequest {
|
|
9
11
|
updates?: Record<string, unknown>;
|
|
10
12
|
removeKeys?: string[];
|
|
11
13
|
}
|
|
12
|
-
export
|
|
14
|
+
export declare function buildConfigMutationReceipt<Command extends ConfigMutationCommand, Receipt extends Pick<ConfigMutationReceiptBase, 'ok' | 'overallState' | 'configWrite'>>(command: Command, receipt: Receipt): ConfigMutationReceiptBase<Command> & Receipt;
|
|
13
15
|
export interface PluginConfigWriteReceipt {
|
|
16
|
+
platform?: PlatformTarget;
|
|
17
|
+
context?: Scope;
|
|
14
18
|
plugin: string;
|
|
15
19
|
scope: Scope;
|
|
16
|
-
projectLayer: 'shared' | 'local';
|
|
17
20
|
schema?: ConfigSchemaEvidence;
|
|
18
21
|
updatedKeys: string[];
|
|
19
22
|
removedKeys: string[];
|
|
20
|
-
|
|
23
|
+
staleRemovedKeys: string[];
|
|
24
|
+
effective?: ReturnType<typeof summarizeEffectivePluginConfig>;
|
|
21
25
|
configWrite: 'succeeded';
|
|
22
|
-
overallState:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
warnings: Array<ProjectBoundaryWarning | string>;
|
|
26
|
+
overallState: RebuildReceiptOverallState;
|
|
27
|
+
apply: ConfigApplyResult;
|
|
28
|
+
otherProjectsMayRequireSync: boolean;
|
|
29
|
+
warnings: string[];
|
|
27
30
|
}
|
|
28
31
|
export interface ResetPluginConfigWriteReceipt {
|
|
32
|
+
platform?: PlatformTarget;
|
|
33
|
+
context?: Scope;
|
|
29
34
|
plugin: string;
|
|
30
35
|
scope: Scope;
|
|
31
|
-
projectLayer: 'shared' | 'local';
|
|
32
36
|
schema?: ConfigSchemaEvidence;
|
|
33
37
|
existed: boolean;
|
|
34
38
|
deleted: boolean;
|
|
39
|
+
resetDisposition: 'absent' | 'clearedLayer' | 'deletedFile' | 'unlinkedSymlink' | 'quarantinedDirectory';
|
|
40
|
+
quarantineBasename?: string;
|
|
35
41
|
removedKeys: string[];
|
|
36
42
|
effective?: ReturnType<typeof summarizeEffectivePluginConfig>;
|
|
37
43
|
configWrite: 'succeeded';
|
|
38
|
-
overallState:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
warnings: Array<ProjectBoundaryWarning | string>;
|
|
44
|
+
overallState: RebuildReceiptOverallState;
|
|
45
|
+
apply: ConfigApplyResult;
|
|
46
|
+
otherProjectsMayRequireSync: boolean;
|
|
47
|
+
warnings: string[];
|
|
43
48
|
}
|
|
44
|
-
type ReinstallCommand = typeof
|
|
49
|
+
type ReinstallCommand = typeof syncWriteCommand;
|
|
45
50
|
interface ConfigRuntimeReplayReceipt {
|
|
46
51
|
configWrite: 'succeeded';
|
|
47
|
-
overallState:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
otherProjectsRequireReinstall: boolean;
|
|
52
|
+
overallState: RebuildReceiptOverallState;
|
|
53
|
+
apply: ConfigApplyResult;
|
|
54
|
+
otherProjectsMayRequireSync: false;
|
|
51
55
|
}
|
|
56
|
+
export declare function configWriteStateForError(error: unknown): 'notStarted' | 'failed';
|
|
57
|
+
export declare function resolveConfigPreApplyAuthorization(options: {
|
|
58
|
+
platform?: PlatformTarget;
|
|
59
|
+
context?: Scope;
|
|
60
|
+
plugin: PluginMeta;
|
|
61
|
+
scope: Scope;
|
|
62
|
+
cwd: string;
|
|
63
|
+
env?: NodeJS.ProcessEnv;
|
|
64
|
+
applyTargets: ReceiptTargetIdentity[];
|
|
65
|
+
nativeCliRunner?: NativeCliRunner;
|
|
66
|
+
rebuildRuntime?: RebuildCommandRuntime;
|
|
67
|
+
reinstallCommandImpl?: ReinstallCommand;
|
|
68
|
+
}): Promise<{
|
|
69
|
+
targets: PreApplyAuthorizationTarget[];
|
|
70
|
+
availableApplyTargets: ReceiptTargetIdentity[];
|
|
71
|
+
unavailableTargetResults: ReceiptTargetResult[];
|
|
72
|
+
}>;
|
|
52
73
|
export declare function replayConfigRuntimeWrites(options: {
|
|
53
74
|
plugin: PluginMeta;
|
|
54
75
|
scope: Scope;
|
|
@@ -60,47 +81,108 @@ export declare function replayConfigRuntimeWrites(options: {
|
|
|
60
81
|
reinstallCommandImpl?: ReinstallCommand;
|
|
61
82
|
rebuildRuntime?: RebuildCommandRuntime;
|
|
62
83
|
awHomeMutationToken?: AwHomeMutationToken;
|
|
84
|
+
sharedNativeApplyConfirmed?: boolean;
|
|
85
|
+
preApplyConfirmed?: boolean;
|
|
86
|
+
preApplyAuthorizedTargets?: readonly PreApplyAuthorizationTarget[];
|
|
63
87
|
}): Promise<ConfigRuntimeReplayReceipt>;
|
|
88
|
+
export interface ApplyPluginConfigOptions {
|
|
89
|
+
plugin: PluginMeta;
|
|
90
|
+
scope: Scope;
|
|
91
|
+
context?: Scope;
|
|
92
|
+
platform?: PlatformTarget;
|
|
93
|
+
targets?: readonly PlatformTarget[];
|
|
94
|
+
cwd: string;
|
|
95
|
+
env?: NodeJS.ProcessEnv;
|
|
96
|
+
cliVersion?: string;
|
|
97
|
+
expectedEvidence?: unknown;
|
|
98
|
+
applyTargets?: ReceiptTargetIdentity[];
|
|
99
|
+
applyCommandPackages?: readonly string[];
|
|
100
|
+
nativeCliRunner?: NativeCliRunner;
|
|
101
|
+
reinstallCommandImpl?: ReinstallCommand;
|
|
102
|
+
rebuildRuntime?: RebuildCommandRuntime;
|
|
103
|
+
awHomeMutationToken?: AwHomeMutationToken;
|
|
104
|
+
sharedNativeApplyConfirmed?: boolean;
|
|
105
|
+
preApplyConfirmed?: boolean;
|
|
106
|
+
preApplyAuthorizedTargets?: readonly PreApplyAuthorizationTarget[];
|
|
107
|
+
reviewPreflight?: () => Promise<void> | void;
|
|
108
|
+
}
|
|
109
|
+
export interface PreparedPluginConfigApply {
|
|
110
|
+
plan: RecoveryPlan;
|
|
111
|
+
evidence: unknown;
|
|
112
|
+
retainedLegacyTargets: ReceiptTargetIdentity[];
|
|
113
|
+
preApplyAuthorization: PreApplyAuthorizationTarget[];
|
|
114
|
+
commandPackages: ManagedCommandPackageDiscovery['packages'];
|
|
115
|
+
commandDiscoveryErrors: ManagedCommandPackageDiscovery['errors'];
|
|
116
|
+
}
|
|
117
|
+
/** Prepare the same existing-output plan used by apply, without saving config or output. */
|
|
118
|
+
export declare function preparePluginConfigApply(options: ApplyPluginConfigOptions): Promise<PreparedPluginConfigApply>;
|
|
119
|
+
export declare function disposePluginConfigApply(plan: RecoveryPlan): Promise<void>;
|
|
120
|
+
export declare function applyPluginConfig(options: ApplyPluginConfigOptions): Promise<{
|
|
121
|
+
configWrite: 'notStarted';
|
|
122
|
+
overallState: RebuildReceiptOverallState;
|
|
123
|
+
apply: ConfigApplyResult;
|
|
124
|
+
otherProjectsMayRequireSync: boolean;
|
|
125
|
+
}>;
|
|
64
126
|
type ApplyPluginConfigWriteOptions = {
|
|
127
|
+
platform?: PlatformTarget;
|
|
128
|
+
context?: Scope;
|
|
129
|
+
cliVersion?: string;
|
|
65
130
|
plugin?: PluginMeta | null;
|
|
66
131
|
pluginError?: Error | null;
|
|
67
132
|
pluginName?: string;
|
|
68
133
|
scope: Scope;
|
|
69
|
-
projectLayer?: 'shared' | 'local';
|
|
70
134
|
cwd: string;
|
|
71
135
|
env?: NodeJS.ProcessEnv;
|
|
72
136
|
applyTargets?: ReceiptTargetIdentity[];
|
|
137
|
+
applyCommandPackages?: readonly string[];
|
|
73
138
|
nativeCliRunner?: NativeCliRunner;
|
|
74
139
|
reinstallCommandImpl?: ReinstallCommand;
|
|
75
140
|
rebuildRuntime?: RebuildCommandRuntime;
|
|
76
141
|
awHomeMutationToken?: AwHomeMutationToken;
|
|
77
142
|
request: PluginConfigWriteRequest;
|
|
143
|
+
apply?: boolean;
|
|
144
|
+
sharedNativeApplyConfirmed?: boolean;
|
|
145
|
+
preApplyConfirmed?: boolean;
|
|
146
|
+
preApplyAuthorizedTargets?: readonly PreApplyAuthorizationTarget[];
|
|
78
147
|
reviewPreflight?: () => Promise<void> | void;
|
|
79
148
|
};
|
|
80
149
|
export declare function applyPluginConfigWrite(options: ApplyPluginConfigWriteOptions): Promise<PluginConfigWriteReceipt>;
|
|
81
150
|
type ResetPluginConfigWriteOptions = {
|
|
151
|
+
platform?: PlatformTarget;
|
|
152
|
+
context?: Scope;
|
|
153
|
+
cliVersion?: string;
|
|
82
154
|
pluginName: string;
|
|
155
|
+
sourceId?: string;
|
|
156
|
+
sourceIdentity?: string;
|
|
157
|
+
logicalIdentity?: string;
|
|
83
158
|
scope: Scope;
|
|
84
|
-
projectLayer?: 'shared' | 'local';
|
|
85
159
|
cwd: string;
|
|
86
160
|
env?: NodeJS.ProcessEnv;
|
|
87
|
-
plugin
|
|
161
|
+
plugin?: PluginMeta | null;
|
|
162
|
+
pluginError?: Error | null;
|
|
88
163
|
applyTargets?: ReceiptTargetIdentity[];
|
|
164
|
+
applyCommandPackages?: readonly string[];
|
|
89
165
|
nativeCliRunner?: NativeCliRunner;
|
|
90
166
|
reinstallCommandImpl?: ReinstallCommand;
|
|
91
167
|
rebuildRuntime?: RebuildCommandRuntime;
|
|
92
168
|
awHomeMutationToken?: AwHomeMutationToken;
|
|
93
169
|
reviewPreflight?: () => Promise<void> | void;
|
|
170
|
+
apply?: boolean;
|
|
171
|
+
sharedNativeApplyConfirmed?: boolean;
|
|
172
|
+
preApplyConfirmed?: boolean;
|
|
173
|
+
preApplyAuthorizedTargets?: readonly PreApplyAuthorizationTarget[];
|
|
94
174
|
};
|
|
95
175
|
export declare function resetPluginConfigWithHelper(options: ResetPluginConfigWriteOptions): Promise<ResetPluginConfigWriteReceipt>;
|
|
96
176
|
export declare function describeResetAffectedFields(options: {
|
|
177
|
+
platform?: PlatformTarget;
|
|
178
|
+
context?: Scope;
|
|
97
179
|
sourceId?: string;
|
|
98
180
|
sourceIdentity?: string;
|
|
181
|
+
logicalIdentity?: string;
|
|
99
182
|
pluginName: string;
|
|
100
183
|
plugin?: PluginMeta | null;
|
|
101
184
|
pluginError?: Error | null;
|
|
102
185
|
scope: Scope;
|
|
103
|
-
projectLayer?: 'shared' | 'local';
|
|
104
186
|
cwd: string;
|
|
105
187
|
env?: NodeJS.ProcessEnv;
|
|
106
188
|
}): Promise<ConfigReceiptFieldEntry[]>;
|