@lesliechan721/aw 0.1.0-beta.8 → 0.1.0-beta.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring/assets/aw-config.mjs +100 -501
- package/dist/authoring/assets/aw-config.mjs.map +1 -1
- package/dist/authoring/assets/aw-runtime-config.d.mts +13 -0
- package/dist/authoring/assets/aw-runtime-config.mjs +221 -0
- package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.mjs +17 -40
- package/dist/authoring/scripts/add-skill.mjs.map +1 -1
- package/dist/authoring/scripts/init-plugin.mjs +74 -98
- package/dist/authoring/scripts/init-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-root.mjs +4 -4
- package/dist/authoring/scripts/lib/plugin-root.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-version-check.d.mts +1 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +230 -9
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
- package/dist/authoring/scripts/lib/skill-scaffold.d.mts +79 -92
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +103 -127
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs +2 -2
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-plugin.mjs +459 -2843
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-skill.mjs +1 -1
- package/dist/native-runtime/reader-runtime.mjs +34 -0
- package/dist/native-runtime/reader.d.mts +6 -0
- package/dist/native-runtime/reader.mjs +11 -0
- package/dist/scripts/aw-skill-eval-materializer.d.ts +30 -0
- package/dist/scripts/aw-skill-eval-materializer.js +278 -0
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -0
- package/dist/scripts/bundle-plugins.d.ts +1 -0
- package/dist/scripts/bundle-plugins.js +27 -8
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/plugin-staging.d.ts +7 -8
- package/dist/scripts/plugin-staging.js +16 -15
- package/dist/scripts/plugin-staging.js.map +1 -1
- package/dist/scripts/plugin-test-reporter.d.mts +2 -0
- package/dist/scripts/plugin-test-reporter.mjs +21 -0
- package/dist/scripts/plugin-test-reporter.mjs.map +1 -0
- package/dist/scripts/test-plugin-scripts.d.ts +5 -0
- package/dist/scripts/test-plugin-scripts.js +273 -78
- package/dist/scripts/test-plugin-scripts.js.map +1 -1
- package/dist/scripts/test-workers.d.mts +24 -0
- package/dist/scripts/test-workers.mjs +59 -0
- package/dist/scripts/test-workers.mjs.map +1 -0
- package/dist/src/adapters/helpers.d.ts +7 -0
- package/dist/src/adapters/helpers.js.map +1 -1
- package/dist/src/authoring/workspace-commands.d.ts +5 -1
- package/dist/src/authoring/workspace-commands.js +7 -2
- package/dist/src/authoring/workspace-commands.js.map +1 -1
- package/dist/src/commands/aw-capabilities.d.ts +2 -2
- package/dist/src/commands/aw-capabilities.js +41 -29
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/catalog-dev-source.d.ts +58 -13
- package/dist/src/commands/catalog-dev-source.js +549 -305
- package/dist/src/commands/catalog-dev-source.js.map +1 -1
- package/dist/src/commands/catalog-generation.d.ts +14 -19
- package/dist/src/commands/catalog-generation.js +5 -10
- package/dist/src/commands/catalog-generation.js.map +1 -1
- package/dist/src/commands/catalog-publication-inspection.d.ts +70 -29
- package/dist/src/commands/catalog-publication-inspection.js +475 -62
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -1
- package/dist/src/commands/catalog-publication-journal.d.ts +68 -0
- package/dist/src/commands/catalog-publication-journal.js +292 -0
- package/dist/src/commands/catalog-publication-journal.js.map +1 -0
- package/dist/src/commands/catalog-publication-target.d.ts +2 -1
- package/dist/src/commands/catalog-publication-target.js +37 -2
- package/dist/src/commands/catalog-publication-target.js.map +1 -1
- package/dist/src/commands/catalog-publish.d.ts +82 -15
- package/dist/src/commands/catalog-publish.js +722 -219
- package/dist/src/commands/catalog-publish.js.map +1 -1
- package/dist/src/commands/catalog-source.d.ts +55 -35
- package/dist/src/commands/catalog-source.js +298 -148
- package/dist/src/commands/catalog-source.js.map +1 -1
- package/dist/src/commands/catalog-status.d.ts +6 -26
- package/dist/src/commands/catalog-status.js +9 -147
- package/dist/src/commands/catalog-status.js.map +1 -1
- package/dist/src/commands/catalog-store.d.ts +104 -0
- package/dist/src/commands/catalog-store.js +685 -0
- package/dist/src/commands/catalog-store.js.map +1 -0
- package/dist/src/commands/catalog-workspace-resolution.d.ts +17 -0
- package/dist/src/commands/catalog-workspace-resolution.js +57 -0
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -0
- package/dist/src/commands/console.js +32 -20
- package/dist/src/commands/console.js.map +1 -1
- package/dist/src/commands/dependency-operation-plan.d.ts +52 -15
- package/dist/src/commands/dependency-operation-plan.js +289 -7
- package/dist/src/commands/dependency-operation-plan.js.map +1 -1
- package/dist/src/commands/deployment-confirmation.d.ts +4 -0
- package/dist/src/commands/deployment-confirmation.js +20 -0
- package/dist/src/commands/deployment-confirmation.js.map +1 -0
- package/dist/src/commands/init.d.ts +5 -11
- package/dist/src/commands/init.js +30 -51
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/intent-command.d.ts +32 -0
- package/dist/src/commands/intent-command.js +171 -0
- package/dist/src/commands/intent-command.js.map +1 -0
- package/dist/src/commands/managed-commands.d.ts +35 -0
- package/dist/src/commands/managed-commands.js +361 -0
- package/dist/src/commands/managed-commands.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +46 -0
- package/dist/src/commands/offline-cleanup-evidence.js +158 -10
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
- package/dist/src/commands/operation-plan.d.ts +190 -0
- package/dist/src/commands/operation-plan.js +99 -0
- package/dist/src/commands/operation-plan.js.map +1 -0
- package/dist/src/commands/operation-planner.d.ts +47 -0
- package/dist/src/commands/operation-planner.js +142 -0
- package/dist/src/commands/operation-planner.js.map +1 -0
- package/dist/src/commands/options.d.ts +16 -20
- package/dist/src/commands/options.js +94 -41
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/plugin-capabilities.js +88 -45
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-config-confirmation.d.ts +8 -0
- package/dist/src/commands/public-config-confirmation.js +56 -0
- package/dist/src/commands/public-config-confirmation.js.map +1 -0
- package/dist/src/commands/public-interruption.d.ts +9 -0
- package/dist/src/commands/public-interruption.js +23 -0
- package/dist/src/commands/public-interruption.js.map +1 -0
- package/dist/src/commands/public-lifecycle-result.d.ts +102 -0
- package/dist/src/commands/public-lifecycle-result.js +307 -0
- package/dist/src/commands/public-lifecycle-result.js.map +1 -0
- package/dist/src/commands/public-lifecycle.d.ts +28 -0
- package/dist/src/commands/public-lifecycle.js +492 -0
- package/dist/src/commands/public-lifecycle.js.map +1 -0
- package/dist/src/commands/public-plugin-query.d.ts +16 -0
- package/dist/src/commands/public-plugin-query.js +193 -0
- package/dist/src/commands/public-plugin-query.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +166 -28
- package/dist/src/commands/rebuild-command.js +3745 -813
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +137 -25
- package/dist/src/commands/rebuild-integration.js +1343 -2535
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +73 -22
- package/dist/src/commands/rebuild-operations.js +313 -216
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +62 -0
- package/dist/src/commands/rebuild-platform-integration.js +1317 -0
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -0
- package/dist/src/commands/reconcile-operation-plan.d.ts +28 -0
- package/dist/src/commands/reconcile-operation-plan.js +47 -0
- package/dist/src/commands/reconcile-operation-plan.js.map +1 -0
- package/dist/src/commands/review-inspection.d.ts +60 -0
- package/dist/src/commands/review-inspection.js +436 -0
- package/dist/src/commands/review-inspection.js.map +1 -0
- package/dist/src/commands/review-preparation.d.ts +51 -0
- package/dist/src/commands/review-preparation.js +400 -0
- package/dist/src/commands/review-preparation.js.map +1 -0
- package/dist/src/commands/runtime.d.ts +6 -6
- package/dist/src/commands/runtime.js +44 -24
- package/dist/src/commands/runtime.js.map +1 -1
- package/dist/src/commands/skill-eval.d.ts +41 -0
- package/dist/src/commands/skill-eval.js +407 -0
- package/dist/src/commands/skill-eval.js.map +1 -0
- package/dist/src/commands/status-v6.d.ts +319 -0
- package/dist/src/commands/status-v6.js +2979 -0
- package/dist/src/commands/status-v6.js.map +1 -0
- package/dist/src/commands/targets-command.d.ts +38 -0
- package/dist/src/commands/targets-command.js +182 -0
- package/dist/src/commands/targets-command.js.map +1 -0
- package/dist/src/commands/wizard.d.ts +8 -5
- package/dist/src/commands/wizard.js +7 -4
- package/dist/src/commands/wizard.js.map +1 -1
- package/dist/src/commands/write-commands.d.ts +9 -3
- package/dist/src/commands/write-commands.js +143 -85
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +6 -6
- package/dist/src/constants.js +6 -6
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eval/manifest-v1.d.ts +70 -0
- package/dist/src/eval/manifest-v1.js +358 -0
- package/dist/src/eval/manifest-v1.js.map +1 -0
- package/dist/src/generators/local-plugin.d.ts +7 -2
- package/dist/src/generators/local-plugin.js +313 -389
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/generators/permissions.d.ts +5 -2
- package/dist/src/generators/permissions.js +28 -15
- package/dist/src/generators/permissions.js.map +1 -1
- package/dist/src/index.d.ts +2 -31
- package/dist/src/index.js +1666 -1827
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent/deployment-preferences.d.ts +63 -0
- package/dist/src/intent/deployment-preferences.js +170 -0
- package/dist/src/intent/deployment-preferences.js.map +1 -0
- package/dist/src/intent/diagnostics.d.ts +11 -0
- package/dist/src/intent/diagnostics.js +14 -0
- package/dist/src/intent/diagnostics.js.map +1 -0
- package/dist/src/intent/intent-codec.d.ts +19 -0
- package/dist/src/intent/intent-codec.js +117 -0
- package/dist/src/intent/intent-codec.js.map +1 -0
- package/dist/src/intent/intent-store.d.ts +43 -0
- package/dist/src/intent/intent-store.js +118 -0
- package/dist/src/intent/intent-store.js.map +1 -0
- package/dist/src/intent/scope-context.d.ts +33 -0
- package/dist/src/intent/scope-context.js +149 -0
- package/dist/src/intent/scope-context.js.map +1 -0
- package/dist/src/intent/work-context.d.ts +13 -0
- package/dist/src/intent/work-context.js +22 -0
- package/dist/src/intent/work-context.js.map +1 -0
- package/dist/src/output/command-receipt.d.ts +47 -46
- package/dist/src/output/command-receipt.js +286 -79
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/model.d.ts +3 -11
- package/dist/src/output/native-consent.d.ts +2 -0
- package/dist/src/output/native-consent.js +5 -0
- package/dist/src/output/native-consent.js.map +1 -0
- package/dist/src/output/public-result.d.ts +49 -0
- package/dist/src/output/public-result.js +240 -0
- package/dist/src/output/public-result.js.map +1 -0
- package/dist/src/output/rebuild-progress.js +20 -15
- package/dist/src/output/rebuild-progress.js.map +1 -1
- package/dist/src/output/receipt-projection.d.ts +7 -0
- package/dist/src/output/receipt-projection.js +592 -0
- package/dist/src/output/receipt-projection.js.map +1 -0
- package/dist/src/platforms/capabilities.d.ts +12 -0
- package/dist/src/platforms/capabilities.js +205 -0
- package/dist/src/platforms/capabilities.js.map +1 -0
- package/dist/src/platforms/contracts.d.ts +358 -0
- package/dist/src/platforms/contracts.js +2 -0
- package/dist/src/platforms/contracts.js.map +1 -0
- package/dist/src/platforms/cursor-workspace-hook.d.ts +28 -0
- package/dist/src/platforms/cursor-workspace-hook.js +198 -0
- package/dist/src/platforms/cursor-workspace-hook.js.map +1 -0
- package/dist/src/platforms/discovery.d.ts +91 -0
- package/dist/src/platforms/discovery.js +653 -0
- package/dist/src/platforms/discovery.js.map +1 -0
- package/dist/src/platforms/gemini-activation.d.ts +36 -0
- package/dist/src/platforms/gemini-activation.js +331 -0
- package/dist/src/platforms/gemini-activation.js.map +1 -0
- package/dist/src/platforms/gemini-consent.d.ts +8 -0
- package/dist/src/platforms/gemini-consent.js +81 -0
- package/dist/src/platforms/gemini-consent.js.map +1 -0
- package/dist/src/platforms/identity.d.ts +4 -0
- package/dist/src/platforms/identity.js +22 -0
- package/dist/src/platforms/identity.js.map +1 -0
- package/dist/src/platforms/inspection-grok.d.ts +4 -0
- package/dist/src/platforms/inspection-grok.js +212 -0
- package/dist/src/platforms/inspection-grok.js.map +1 -0
- package/dist/src/platforms/inspection-native.d.ts +6 -0
- package/dist/src/platforms/inspection-native.js +406 -0
- package/dist/src/platforms/inspection-native.js.map +1 -0
- package/dist/src/platforms/inspection-opencode.d.ts +4 -0
- package/dist/src/platforms/inspection-opencode.js +98 -0
- package/dist/src/platforms/inspection-opencode.js.map +1 -0
- package/dist/src/platforms/inspection-pi.d.ts +3 -0
- package/dist/src/platforms/inspection-pi.js +282 -0
- package/dist/src/platforms/inspection-pi.js.map +1 -0
- package/dist/src/platforms/inspection-query.d.ts +12 -0
- package/dist/src/platforms/inspection-query.js +96 -0
- package/dist/src/platforms/inspection-query.js.map +1 -0
- package/dist/src/platforms/inspection.d.ts +17 -0
- package/dist/src/platforms/inspection.js +227 -0
- package/dist/src/platforms/inspection.js.map +1 -0
- package/dist/src/platforms/layout.d.ts +21 -0
- package/dist/src/platforms/layout.js +239 -0
- package/dist/src/platforms/layout.js.map +1 -0
- package/dist/src/platforms/lifecycle-native-services.d.ts +3 -0
- package/dist/src/platforms/lifecycle-native-services.js +147 -0
- package/dist/src/platforms/lifecycle-native-services.js.map +1 -0
- package/dist/src/platforms/lifecycle-native.d.ts +13 -0
- package/dist/src/platforms/lifecycle-native.js +283 -0
- package/dist/src/platforms/lifecycle-native.js.map +1 -0
- package/dist/src/platforms/lifecycle.d.ts +25 -0
- package/dist/src/platforms/lifecycle.js +494 -0
- package/dist/src/platforms/lifecycle.js.map +1 -0
- package/dist/src/platforms/managed-command-placement.d.ts +8 -0
- package/dist/src/platforms/managed-command-placement.js +79 -0
- package/dist/src/platforms/managed-command-placement.js.map +1 -0
- package/dist/src/platforms/projection-code-extension.d.ts +8 -0
- package/dist/src/platforms/projection-code-extension.js +121 -0
- package/dist/src/platforms/projection-code-extension.js.map +1 -0
- package/dist/src/platforms/projection-command-resources.d.ts +7 -0
- package/dist/src/platforms/projection-command-resources.js +74 -0
- package/dist/src/platforms/projection-command-resources.js.map +1 -0
- package/dist/src/platforms/projection-files.d.ts +27 -0
- package/dist/src/platforms/projection-files.js +111 -0
- package/dist/src/platforms/projection-files.js.map +1 -0
- package/dist/src/platforms/projection-marketplace.d.ts +19 -0
- package/dist/src/platforms/projection-marketplace.js +42 -0
- package/dist/src/platforms/projection-marketplace.js.map +1 -0
- package/dist/src/platforms/projection.d.ts +10 -0
- package/dist/src/platforms/projection.js +446 -0
- package/dist/src/platforms/projection.js.map +1 -0
- package/dist/src/platforms/registry.d.ts +4 -0
- package/dist/src/platforms/registry.js +30 -0
- package/dist/src/platforms/registry.js.map +1 -0
- package/dist/src/platforms/supplement-layout.d.ts +16 -0
- package/dist/src/platforms/supplement-layout.js +31 -0
- package/dist/src/platforms/supplement-layout.js.map +1 -0
- package/dist/src/platforms/supplement-state.d.ts +13 -0
- package/dist/src/platforms/supplement-state.js +82 -0
- package/dist/src/platforms/supplement-state.js.map +1 -0
- package/dist/src/portable/commands.d.ts +58 -11
- package/dist/src/portable/commands.js +94 -350
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/historical-materialization.d.ts +22 -0
- package/dist/src/portable/historical-materialization.js +124 -0
- package/dist/src/portable/historical-materialization.js.map +1 -0
- package/dist/src/portable/materializer.d.ts +24 -4
- package/dist/src/portable/materializer.js +189 -259
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery-layout.d.ts +17 -0
- package/dist/src/portable/recovery-layout.js +42 -0
- package/dist/src/portable/recovery-layout.js.map +1 -0
- package/dist/src/portable/recovery.d.ts +153 -0
- package/dist/src/portable/recovery.js +367 -0
- package/dist/src/portable/recovery.js.map +1 -0
- package/dist/src/portable/writer.d.ts +67 -0
- package/dist/src/portable/writer.js +321 -0
- package/dist/src/portable/writer.js.map +1 -0
- package/dist/src/recovery/coordinator.d.ts +141 -0
- package/dist/src/recovery/coordinator.js +1254 -0
- package/dist/src/recovery/coordinator.js.map +1 -0
- package/dist/src/recovery/demand.d.ts +51 -0
- package/dist/src/recovery/demand.js +159 -0
- package/dist/src/recovery/demand.js.map +1 -0
- package/dist/src/recovery/joint-coordinator.d.ts +25 -0
- package/dist/src/recovery/joint-coordinator.js +991 -0
- package/dist/src/recovery/joint-coordinator.js.map +1 -0
- package/dist/src/recovery/joint-demand.d.ts +50 -0
- package/dist/src/recovery/joint-demand.js +197 -0
- package/dist/src/recovery/joint-demand.js.map +1 -0
- package/dist/src/recovery/performance.d.ts +4 -0
- package/dist/src/recovery/performance.js +26 -0
- package/dist/src/recovery/performance.js.map +1 -0
- package/dist/src/recovery/receipt.d.ts +98 -0
- package/dist/src/recovery/receipt.js +2 -0
- package/dist/src/recovery/receipt.js.map +1 -0
- package/dist/src/recovery/retirement.d.ts +47 -0
- package/dist/src/recovery/retirement.js +469 -0
- package/dist/src/recovery/retirement.js.map +1 -0
- package/dist/src/recovery/status.d.ts +126 -0
- package/dist/src/recovery/status.js +1073 -0
- package/dist/src/recovery/status.js.map +1 -0
- package/dist/src/recovery/types.d.ts +85 -0
- package/dist/src/recovery/types.js +2 -0
- package/dist/src/recovery/types.js.map +1 -0
- package/dist/src/review/eval-source-input.d.ts +43 -0
- package/dist/src/review/eval-source-input.js +207 -0
- package/dist/src/review/eval-source-input.js.map +1 -0
- package/dist/src/review/platform-profile.d.ts +3 -0
- package/dist/src/review/platform-profile.js +14 -0
- package/dist/src/review/platform-profile.js.map +1 -0
- package/dist/src/review/review-profile.d.ts +20 -0
- package/dist/src/review/review-profile.js +276 -0
- package/dist/src/review/review-profile.js.map +1 -0
- package/dist/src/review/review-selection.d.ts +20 -0
- package/dist/src/review/review-selection.js +495 -0
- package/dist/src/review/review-selection.js.map +1 -0
- package/dist/src/review/review-types.d.ts +71 -0
- package/dist/src/review/review-types.js +16 -0
- package/dist/src/review/review-types.js.map +1 -0
- package/dist/src/review/skill-materialization.d.ts +62 -0
- package/dist/src/review/skill-materialization.js +205 -0
- package/dist/src/review/skill-materialization.js.map +1 -0
- package/dist/src/review/source-binding.d.ts +201 -0
- package/dist/src/review/source-binding.js +773 -0
- package/dist/src/review/source-binding.js.map +1 -0
- package/dist/src/tui/agent-management.d.ts +23 -0
- package/dist/src/tui/agent-management.js +319 -0
- package/dist/src/tui/agent-management.js.map +1 -0
- package/dist/src/tui/agent-settings.d.ts +47 -0
- package/dist/src/tui/agent-settings.js +97 -0
- package/dist/src/tui/agent-settings.js.map +1 -0
- package/dist/src/tui/catalog-freshness.d.ts +1 -0
- package/dist/src/tui/catalog-freshness.js +2 -0
- package/dist/src/tui/catalog-freshness.js.map +1 -0
- package/dist/src/tui/catalog-generation.d.ts +18 -53
- package/dist/src/tui/catalog-generation.js +136 -224
- package/dist/src/tui/catalog-generation.js.map +1 -1
- package/dist/src/tui/catalog-sources/projection.d.ts +4 -0
- package/dist/src/tui/catalog-sources/projection.js +17 -0
- package/dist/src/tui/catalog-sources/projection.js.map +1 -0
- package/dist/src/tui/catalog-sources/review.d.ts +3 -0
- package/dist/src/tui/catalog-sources/review.js +13 -0
- package/dist/src/tui/catalog-sources/review.js.map +1 -0
- package/dist/src/tui/catalog-sources/screens.d.ts +12 -0
- package/dist/src/tui/catalog-sources/screens.js +40 -0
- package/dist/src/tui/catalog-sources/screens.js.map +1 -0
- package/dist/src/tui/catalog-sources/session.d.ts +32 -0
- package/dist/src/tui/catalog-sources/session.js +300 -0
- package/dist/src/tui/catalog-sources/session.js.map +1 -0
- package/dist/src/tui/catalog-sources/types.d.ts +54 -0
- package/dist/src/tui/catalog-sources/types.js +2 -0
- package/dist/src/tui/catalog-sources/types.js.map +1 -0
- package/dist/src/tui/catalog-store-task.d.ts +16 -0
- package/dist/src/tui/catalog-store-task.js +19 -0
- package/dist/src/tui/catalog-store-task.js.map +1 -0
- package/dist/src/tui/clipboard.d.ts +13 -0
- package/dist/src/tui/clipboard.js +95 -0
- package/dist/src/tui/clipboard.js.map +1 -0
- package/dist/src/tui/components.d.ts +113 -3
- package/dist/src/tui/components.js +201 -36
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/config-array-draft.d.ts +29 -0
- package/dist/src/tui/config-array-draft.js +48 -0
- package/dist/src/tui/config-array-draft.js.map +1 -0
- package/dist/src/tui/config-leaf-editor.d.ts +43 -0
- package/dist/src/tui/config-leaf-editor.js +224 -0
- package/dist/src/tui/config-leaf-editor.js.map +1 -0
- package/dist/src/tui/config-references.d.ts +38 -0
- package/dist/src/tui/config-references.js +82 -0
- package/dist/src/tui/config-references.js.map +1 -0
- package/dist/src/tui/config-value-presentation.d.ts +20 -0
- package/dist/src/tui/config-value-presentation.js +104 -0
- package/dist/src/tui/config-value-presentation.js.map +1 -0
- package/dist/src/tui/console-app-v4.d.ts +13 -4
- package/dist/src/tui/console-app-v4.js +9764 -2210
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/content-item-card.d.ts +13 -0
- package/dist/src/tui/content-item-card.js +51 -0
- package/dist/src/tui/content-item-card.js.map +1 -0
- package/dist/src/tui/controller-runtime.d.ts +7 -4
- package/dist/src/tui/controller-runtime.js +2064 -779
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +669 -106
- package/dist/src/tui/controller.js +3617 -971
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/dependency-graph-view.d.ts +39 -0
- package/dist/src/tui/dependency-graph-view.js +121 -0
- package/dist/src/tui/dependency-graph-view.js.map +1 -0
- package/dist/src/tui/dependency-graph.d.ts +81 -0
- package/dist/src/tui/dependency-graph.js +452 -0
- package/dist/src/tui/dependency-graph.js.map +1 -0
- package/dist/src/tui/deployment-view.d.ts +10 -0
- package/dist/src/tui/deployment-view.js +108 -0
- package/dist/src/tui/deployment-view.js.map +1 -0
- package/dist/src/tui/diagnostic-projection.d.ts +23 -0
- package/dist/src/tui/diagnostic-projection.js +595 -0
- package/dist/src/tui/diagnostic-projection.js.map +1 -0
- package/dist/src/tui/diagnostics.d.ts +6 -3
- package/dist/src/tui/diagnostics.js +14 -2
- package/dist/src/tui/diagnostics.js.map +1 -1
- package/dist/src/tui/entity-cards.d.ts +55 -0
- package/dist/src/tui/entity-cards.js +298 -0
- package/dist/src/tui/entity-cards.js.map +1 -0
- package/dist/src/tui/glossary.d.ts +25 -0
- package/dist/src/tui/glossary.js +72 -0
- package/dist/src/tui/glossary.js.map +1 -0
- package/dist/src/tui/index.d.ts +6 -2
- package/dist/src/tui/index.js +5 -2
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/input-display.d.ts +1 -0
- package/dist/src/tui/input-display.js +23 -1
- package/dist/src/tui/input-display.js.map +1 -1
- package/dist/src/tui/keys.d.ts +44 -0
- package/dist/src/tui/keys.js +43 -15
- package/dist/src/tui/keys.js.map +1 -1
- package/dist/src/tui/lifecycle-action-view.d.ts +6 -0
- package/dist/src/tui/lifecycle-action-view.js +36 -0
- package/dist/src/tui/lifecycle-action-view.js.map +1 -0
- package/dist/src/tui/model.d.ts +243 -45
- package/dist/src/tui/model.js +1402 -415
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/operation-diagnostic-screens.d.ts +8 -0
- package/dist/src/tui/operation-diagnostic-screens.js +72 -0
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -0
- package/dist/src/tui/operation-history.d.ts +82 -0
- package/dist/src/tui/operation-history.js +136 -0
- package/dist/src/tui/operation-history.js.map +1 -0
- package/dist/src/tui/operation-review-planner.d.ts +28 -0
- package/dist/src/tui/operation-review-planner.js +1396 -0
- package/dist/src/tui/operation-review-planner.js.map +1 -0
- package/dist/src/tui/plugin-content.d.ts +33 -0
- package/dist/src/tui/plugin-content.js +245 -0
- package/dist/src/tui/plugin-content.js.map +1 -0
- package/dist/src/tui/plugin-detail.d.ts +72 -0
- package/dist/src/tui/plugin-detail.js +260 -0
- package/dist/src/tui/plugin-detail.js.map +1 -0
- package/dist/src/tui/plugin-write-task.d.ts +69 -0
- package/dist/src/tui/plugin-write-task.js +286 -0
- package/dist/src/tui/plugin-write-task.js.map +1 -0
- package/dist/src/tui/prompt.js +4 -15
- package/dist/src/tui/prompt.js.map +1 -1
- package/dist/src/tui/query-header.d.ts +30 -0
- package/dist/src/tui/query-header.js +40 -0
- package/dist/src/tui/query-header.js.map +1 -0
- package/dist/src/tui/reader.d.ts +38 -0
- package/dist/src/tui/reader.js +49 -0
- package/dist/src/tui/reader.js.map +1 -0
- package/dist/src/tui/router.d.ts +186 -35
- package/dist/src/tui/router.js +338 -50
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/scoped-flow.d.ts +45 -0
- package/dist/src/tui/scoped-flow.js +96 -0
- package/dist/src/tui/scoped-flow.js.map +1 -0
- package/dist/src/tui/scoped-inventory.d.ts +126 -0
- package/dist/src/tui/scoped-inventory.js +258 -0
- package/dist/src/tui/scoped-inventory.js.map +1 -0
- package/dist/src/tui/screen-registry.d.ts +701 -0
- package/dist/src/tui/screen-registry.js +226 -0
- package/dist/src/tui/screen-registry.js.map +1 -0
- package/dist/src/tui/session-console-app.d.ts +6 -0
- package/dist/src/tui/session-console-app.js +13 -0
- package/dist/src/tui/session-console-app.js.map +1 -0
- package/dist/src/tui/session-host.d.ts +45 -0
- package/dist/src/tui/session-host.js +219 -0
- package/dist/src/tui/session-host.js.map +1 -0
- package/dist/src/tui/source-detail-card.d.ts +29 -0
- package/dist/src/tui/source-detail-card.js +45 -0
- package/dist/src/tui/source-detail-card.js.map +1 -0
- package/dist/src/tui/theme.d.ts +12 -0
- package/dist/src/tui/theme.js +12 -0
- package/dist/src/tui/theme.js.map +1 -1
- package/dist/src/tui/viewport.d.ts +1 -0
- package/dist/src/tui/viewport.js +23 -0
- package/dist/src/tui/viewport.js.map +1 -1
- package/dist/src/tui/wizard.js +37 -13
- package/dist/src/tui/wizard.js.map +1 -1
- package/dist/src/types.d.ts +220 -118
- package/dist/src/types.js +1 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/agent-version.d.ts +13 -4
- package/dist/src/utils/agent-version.js +27 -4
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +33 -7
- package/dist/src/utils/artifact-plan.js +115 -430
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +114 -83
- package/dist/src/utils/artifact-renderer.js +213 -364
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +44 -0
- package/dist/src/utils/artifact-request.js +80 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- package/dist/src/utils/artifact-sources.d.ts +6 -2
- package/dist/src/utils/artifact-sources.js +17 -0
- package/dist/src/utils/artifact-sources.js.map +1 -1
- package/dist/src/utils/bundle-layout.js +57 -173
- package/dist/src/utils/bundle-layout.js.map +1 -1
- package/dist/src/utils/catalog-capability-projection.d.ts +8 -0
- package/dist/src/utils/catalog-capability-projection.js +14 -0
- package/dist/src/utils/catalog-capability-projection.js.map +1 -0
- package/dist/src/utils/catalog-digests.d.ts +2 -2
- package/dist/src/utils/catalog-digests.js +7 -18
- package/dist/src/utils/catalog-digests.js.map +1 -1
- package/dist/src/utils/catalog-generation-control-snapshot.d.ts +11 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js +45 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js.map +1 -0
- package/dist/src/utils/catalog-generation-error.d.ts +5 -1
- package/dist/src/utils/catalog-generation-error.js +14 -0
- package/dist/src/utils/catalog-generation-error.js.map +1 -1
- package/dist/src/utils/catalog-generation-resolver.d.ts +36 -5
- package/dist/src/utils/catalog-generation-resolver.js +221 -77
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
- package/dist/src/utils/catalog-generation-service.d.ts +159 -28
- package/dist/src/utils/catalog-generation-service.js +1186 -525
- package/dist/src/utils/catalog-generation-service.js.map +1 -1
- package/dist/src/utils/catalog-generation-state.d.ts +9 -0
- package/dist/src/utils/catalog-generation-state.js +97 -106
- package/dist/src/utils/catalog-generation-state.js.map +1 -1
- package/dist/src/utils/catalog-generation-store.d.ts +38 -24
- package/dist/src/utils/catalog-generation-store.js +337 -272
- package/dist/src/utils/catalog-generation-store.js.map +1 -1
- package/dist/src/utils/catalog-manifest-v7.d.ts +5 -0
- package/dist/src/utils/{catalog-manifest-v5.js → catalog-manifest-v7.js} +23 -35
- package/dist/src/utils/catalog-manifest-v7.js.map +1 -0
- package/dist/src/utils/catalog-operation-context.d.ts +6 -14
- package/dist/src/utils/catalog-operation-context.js +69 -169
- package/dist/src/utils/catalog-operation-context.js.map +1 -1
- package/dist/src/utils/catalog-public-error.js +8 -4
- package/dist/src/utils/catalog-public-error.js.map +1 -1
- package/dist/src/utils/catalog-runtime-projection.d.ts +7 -3
- package/dist/src/utils/catalog-runtime-projection.js +5 -40
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -1
- package/dist/src/utils/catalog-snapshot.d.ts +2 -2
- package/dist/src/utils/catalog-source-impact.d.ts +21 -0
- package/dist/src/utils/catalog-source-impact.js +344 -0
- package/dist/src/utils/catalog-source-impact.js.map +1 -0
- package/dist/src/utils/catalog-source-references.d.ts +23 -2
- package/dist/src/utils/catalog-source-references.js +456 -382
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/catalog-sources.d.ts +14 -1
- package/dist/src/utils/catalog-sources.js +178 -18
- package/dist/src/utils/catalog-sources.js.map +1 -1
- package/dist/src/utils/codex-config.d.ts +2 -0
- package/dist/src/utils/codex-config.js +22 -1
- package/dist/src/utils/codex-config.js.map +1 -1
- package/dist/src/utils/codex-executable-discovery.d.ts +28 -0
- package/dist/src/utils/codex-executable-discovery.js +431 -0
- package/dist/src/utils/codex-executable-discovery.js.map +1 -0
- package/dist/src/utils/codex-manager.d.ts +47 -18
- package/dist/src/utils/codex-manager.js +88 -622
- package/dist/src/utils/codex-manager.js.map +1 -1
- package/dist/src/utils/codex-marketplace-path.d.ts +5 -0
- package/dist/src/utils/codex-marketplace-path.js +45 -0
- package/dist/src/utils/codex-marketplace-path.js.map +1 -0
- package/dist/src/utils/codex-native-observation.d.ts +49 -0
- package/dist/src/utils/codex-native-observation.js +169 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -0
- package/dist/src/utils/codex-reconciler.d.ts +123 -0
- package/dist/src/utils/codex-reconciler.js +322 -0
- package/dist/src/utils/codex-reconciler.js.map +1 -0
- package/dist/src/utils/codex-shared-native.d.ts +45 -0
- package/dist/src/utils/codex-shared-native.js +122 -0
- package/dist/src/utils/codex-shared-native.js.map +1 -0
- package/dist/src/utils/codex-skill-staging.d.ts +4 -3
- package/dist/src/utils/codex-skill-staging.js.map +1 -1
- package/dist/src/utils/codex-skills-root.d.ts +4 -0
- package/dist/src/utils/codex-skills-root.js +25 -0
- package/dist/src/utils/codex-skills-root.js.map +1 -0
- package/dist/src/utils/codex-surface-analysis.d.ts +49 -0
- package/dist/src/utils/codex-surface-analysis.js +220 -0
- package/dist/src/utils/codex-surface-analysis.js.map +1 -0
- package/dist/src/utils/component-command-preparation.d.ts +34 -0
- package/dist/src/utils/component-command-preparation.js +228 -0
- package/dist/src/utils/component-command-preparation.js.map +1 -0
- package/dist/src/utils/component-resources.d.ts +51 -0
- package/dist/src/utils/component-resources.js +322 -0
- package/dist/src/utils/component-resources.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +18 -6
- package/dist/src/utils/dynamic-skill-tree.js +32 -9
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/git-catalog-provider.d.ts +16 -0
- package/dist/src/utils/git-catalog-provider.js +167 -120
- package/dist/src/utils/git-catalog-provider.js.map +1 -1
- package/dist/src/utils/inventory-recovery-diagnostic.d.ts +4 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js +15 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js.map +1 -0
- package/dist/src/utils/local-marketplace.d.ts +17 -12
- package/dist/src/utils/local-marketplace.js +85 -195
- package/dist/src/utils/local-marketplace.js.map +1 -1
- package/dist/src/utils/managed-command-closure.d.ts +3 -0
- package/dist/src/utils/managed-command-closure.js +35 -0
- package/dist/src/utils/managed-command-closure.js.map +1 -0
- package/dist/src/utils/managed-command-evidence.d.ts +7 -0
- package/dist/src/utils/managed-command-evidence.js +10 -0
- package/dist/src/utils/managed-command-evidence.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +124 -0
- package/dist/src/utils/managed-command-materialization.js +369 -0
- package/dist/src/utils/managed-command-materialization.js.map +1 -0
- package/dist/src/utils/managed-command-preparation.d.ts +67 -0
- package/dist/src/utils/managed-command-preparation.js +146 -0
- package/dist/src/utils/managed-command-preparation.js.map +1 -0
- package/dist/src/utils/managed-command-review.d.ts +26 -0
- package/dist/src/utils/managed-command-review.js +68 -0
- package/dist/src/utils/managed-command-review.js.map +1 -0
- package/dist/src/utils/managed-command-runtime.d.ts +33 -0
- package/dist/src/utils/managed-command-runtime.js +121 -0
- package/dist/src/utils/managed-command-runtime.js.map +1 -0
- package/dist/src/utils/managed-command-store.d.ts +143 -0
- package/dist/src/utils/managed-command-store.js +665 -0
- package/dist/src/utils/managed-command-store.js.map +1 -0
- package/dist/src/utils/manifest.d.ts +1 -3
- package/dist/src/utils/manifest.js +1 -3
- package/dist/src/utils/manifest.js.map +1 -1
- package/dist/src/utils/multi-source-catalog.d.ts +1 -10
- package/dist/src/utils/multi-source-catalog.js +9 -175
- package/dist/src/utils/multi-source-catalog.js.map +1 -1
- package/dist/src/utils/native-cli.d.ts +74 -5
- package/dist/src/utils/native-cli.js +479 -31
- package/dist/src/utils/native-cli.js.map +1 -1
- package/dist/src/utils/native-demand.d.ts +29 -0
- package/dist/src/utils/native-demand.js +4 -0
- package/dist/src/utils/native-demand.js.map +1 -0
- package/dist/src/utils/native-tool-context.d.ts +14 -0
- package/dist/src/utils/native-tool-context.js +38 -0
- package/dist/src/utils/native-tool-context.js.map +1 -0
- package/dist/src/utils/native-tool-review.d.ts +18 -0
- package/dist/src/utils/native-tool-review.js +116 -0
- package/dist/src/utils/native-tool-review.js.map +1 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js +0 -1
- package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +103 -21
- package/dist/src/utils/ownership.js +232 -210
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/path-catalog-provider.d.ts +1 -1
- package/dist/src/utils/path-catalog-provider.js +47 -62
- package/dist/src/utils/path-catalog-provider.js.map +1 -1
- package/dist/src/utils/paths.d.ts +1 -2
- package/dist/src/utils/paths.js +5 -3
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/platform-empty-state.d.ts +45 -0
- package/dist/src/utils/platform-empty-state.js +159 -0
- package/dist/src/utils/platform-empty-state.js.map +1 -0
- package/dist/src/utils/platform-support.d.ts +1 -1
- package/dist/src/utils/platform-support.js +1 -1
- package/dist/src/utils/platform-support.js.map +1 -1
- package/dist/src/utils/plugin-config-impact.d.ts +64 -0
- package/dist/src/utils/plugin-config-impact.js +307 -0
- package/dist/src/utils/plugin-config-impact.js.map +1 -0
- package/dist/src/utils/plugin-config-references.d.ts +89 -0
- package/dist/src/utils/plugin-config-references.js +335 -0
- package/dist/src/utils/plugin-config-references.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +109 -27
- package/dist/src/utils/plugin-config-write.js +1242 -348
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +187 -109
- package/dist/src/utils/plugin-config.js +916 -1147
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/dist/src/utils/plugin-dependencies.d.ts +1 -1
- package/dist/src/utils/plugin-dependencies.js.map +1 -1
- package/dist/src/utils/plugin-scripts.d.ts +78 -127
- package/dist/src/utils/plugin-scripts.js +566 -524
- package/dist/src/utils/plugin-scripts.js.map +1 -1
- package/dist/src/utils/process-lock.js +14 -5
- package/dist/src/utils/process-lock.js.map +1 -1
- package/dist/src/utils/process-tree.d.ts +2 -2
- package/dist/src/utils/process-tree.js +1 -1
- package/dist/src/utils/process-tree.js.map +1 -1
- package/dist/src/utils/project-boundary.d.ts +11 -13
- package/dist/src/utils/project-boundary.js +28 -34
- package/dist/src/utils/project-boundary.js.map +1 -1
- package/dist/src/utils/rendered-contract.js +18 -1
- package/dist/src/utils/rendered-contract.js.map +1 -1
- package/dist/src/utils/runtime-config.d.ts +18 -0
- package/dist/src/utils/runtime-config.js +64 -0
- package/dist/src/utils/runtime-config.js.map +1 -0
- package/dist/src/utils/runtime-skill-closure.d.ts +2 -2
- package/dist/src/utils/runtime-skill-closure.js +47 -6
- package/dist/src/utils/runtime-skill-closure.js.map +1 -1
- package/dist/src/utils/safe-fs.d.ts +21 -0
- package/dist/src/utils/safe-fs.js +111 -0
- package/dist/src/utils/safe-fs.js.map +1 -0
- package/dist/src/utils/safe-operation-diagnostic.d.ts +15 -0
- package/dist/src/utils/safe-operation-diagnostic.js +33 -0
- package/dist/src/utils/safe-operation-diagnostic.js.map +1 -0
- package/dist/src/utils/sensitive-content.d.ts +4 -0
- package/dist/src/utils/sensitive-content.js +36 -0
- package/dist/src/utils/sensitive-content.js.map +1 -0
- package/dist/src/utils/state-paths.d.ts +8 -3
- package/dist/src/utils/state-paths.js +53 -16
- package/dist/src/utils/state-paths.js.map +1 -1
- package/dist/src/utils/target-eligibility.d.ts +4 -3
- package/dist/src/utils/target-eligibility.js +12 -6
- package/dist/src/utils/target-eligibility.js.map +1 -1
- package/dist/src/utils/windows-claude-shim.d.ts +7 -0
- package/dist/src/utils/windows-claude-shim.js +10 -0
- package/dist/src/utils/windows-claude-shim.js.map +1 -0
- package/dist/src/utils/windows-npm-shim.d.ts +16 -0
- package/dist/src/utils/windows-npm-shim.js +155 -0
- package/dist/src/utils/windows-npm-shim.js.map +1 -0
- package/dist/vitest.config.js +105 -9
- package/dist/vitest.config.js.map +1 -1
- package/package.json +30 -21
- package/dist/scripts/aw-skill-eval-engine.d.ts +0 -13
- package/dist/scripts/aw-skill-eval-engine.js +0 -31
- package/dist/scripts/aw-skill-eval-engine.js.map +0 -1
- package/dist/scripts/codex-eval-app-server.d.ts +0 -91
- package/dist/scripts/codex-eval-app-server.js +0 -1334
- package/dist/scripts/codex-eval-app-server.js.map +0 -1
- package/dist/scripts/codex-eval-isolation.d.ts +0 -61
- package/dist/scripts/codex-eval-isolation.js +0 -318
- package/dist/scripts/codex-eval-isolation.js.map +0 -1
- package/dist/scripts/codex-eval-process-management.d.ts +0 -8
- package/dist/scripts/codex-eval-process-management.js +0 -69
- package/dist/scripts/codex-eval-process-management.js.map +0 -1
- package/dist/scripts/codex-eval-process-tree.d.ts +0 -38
- package/dist/scripts/codex-eval-process-tree.js +0 -803
- package/dist/scripts/codex-eval-process-tree.js.map +0 -1
- package/dist/scripts/codex-eval-runtime-config.d.ts +0 -62
- package/dist/scripts/codex-eval-runtime-config.js +0 -843
- package/dist/scripts/codex-eval-runtime-config.js.map +0 -1
- package/dist/scripts/codex-trigger-eval.d.ts +0 -84
- package/dist/scripts/codex-trigger-eval.js +0 -968
- package/dist/scripts/codex-trigger-eval.js.map +0 -1
- package/dist/scripts/eval-plugin-skills-audited.d.ts +0 -6
- package/dist/scripts/eval-plugin-skills-audited.js +0 -261
- package/dist/scripts/eval-plugin-skills-audited.js.map +0 -1
- package/dist/scripts/eval-plugin-skills.d.ts +0 -45
- package/dist/scripts/eval-plugin-skills.js +0 -1589
- package/dist/scripts/eval-plugin-skills.js.map +0 -1
- package/dist/scripts/eval-run-layout.d.ts +0 -17
- package/dist/scripts/eval-run-layout.js +0 -26
- package/dist/scripts/eval-run-layout.js.map +0 -1
- package/dist/scripts/plugin-eval-contract.d.ts +0 -189
- package/dist/scripts/plugin-eval-contract.js +0 -745
- package/dist/scripts/plugin-eval-contract.js.map +0 -1
- package/dist/scripts/plugin-eval-materializer.d.ts +0 -13
- package/dist/scripts/plugin-eval-materializer.js +0 -421
- package/dist/scripts/plugin-eval-materializer.js.map +0 -1
- package/dist/scripts/skill-reporting.d.ts +0 -212
- package/dist/scripts/skill-reporting.js +0 -922
- package/dist/scripts/skill-reporting.js.map +0 -1
- package/dist/src/commands/catalog-context.d.ts +0 -52
- package/dist/src/commands/catalog-context.js +0 -156
- package/dist/src/commands/catalog-context.js.map +0 -1
- package/dist/src/commands/review-publication.d.ts +0 -99
- package/dist/src/commands/review-publication.js +0 -904
- package/dist/src/commands/review-publication.js.map +0 -1
- package/dist/src/commands/status-v5.d.ts +0 -169
- package/dist/src/commands/status-v5.js +0 -1135
- package/dist/src/commands/status-v5.js.map +0 -1
- package/dist/src/portable/skills-cli.d.ts +0 -43
- package/dist/src/portable/skills-cli.js +0 -148
- package/dist/src/portable/skills-cli.js.map +0 -1
- package/dist/src/utils/catalog-manifest-v5.d.ts +0 -5
- package/dist/src/utils/catalog-manifest-v5.js.map +0 -1
- package/dist/src/utils/catalog-source-cache.d.ts +0 -62
- package/dist/src/utils/catalog-source-cache.js +0 -321
- package/dist/src/utils/catalog-source-cache.js.map +0 -1
- package/dist/src/utils/codex-project-surface.d.ts +0 -3
- package/dist/src/utils/codex-project-surface.js +0 -49
- package/dist/src/utils/codex-project-surface.js.map +0 -1
- package/dist/src/utils/lifecycle-active-store.d.ts +0 -147
- package/dist/src/utils/lifecycle-active-store.js +0 -1064
- package/dist/src/utils/lifecycle-active-store.js.map +0 -1
- package/dist/src/utils/plugin-release.d.ts +0 -2
- package/dist/src/utils/plugin-release.js +0 -2
- package/dist/src/utils/plugin-release.js.map +0 -1
- package/dist/src/utils/slash-commands.d.ts +0 -1
- package/dist/src/utils/slash-commands.js +0 -2
- package/dist/src/utils/slash-commands.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { normalizeProducerIdentity } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
|
+
import { verifyManagedCommandPlacement } from '../platforms/managed-command-placement.js';
|
|
3
|
+
/** Live source, ownership and fixed platform layout must agree with the full producer identity. */
|
|
4
|
+
export async function verifyManagedCommandArtifactEvidence(options) {
|
|
5
|
+
const producer = normalizeProducerIdentity(options.producer);
|
|
6
|
+
if (producer.kind === 'package')
|
|
7
|
+
throw new Error('commandOwnerMismatch: package evidence must use its external owner marker.');
|
|
8
|
+
await verifyManagedCommandPlacement({ ...options, producer });
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=managed-command-evidence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-command-evidence.js","sourceRoot":"","sources":["../../../src/utils/managed-command-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAyB,MAAM,wCAAwC,CAAC;AAE1G,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAE1F,mGAAmG;AACnG,MAAM,CAAC,KAAK,UAAU,oCAAoC,CAAC,OAE1D;IACC,MAAM,QAAQ,GAAG,yBAAyB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7D,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAC;IAC/H,MAAM,6BAA6B,CAAC,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { type NativeToolClosure, type ManagedCommandProducerRef, type ManagedCommandReference, type ProducerIdentity, type CommandDefinition } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
|
+
import type { CommandProducerResult, PlatformName, PluginMeta, ReceiptTargetIdentity, Scope } from '../types.js';
|
|
3
|
+
import type { RenderUnit } from '../platforms/contracts.js';
|
|
4
|
+
import type { ValidatedArtifactPlanArtifact } from './artifact-plan.js';
|
|
5
|
+
import type { DynamicSkillTree } from './dynamic-skill-tree.js';
|
|
6
|
+
import { type InstalledCommandSet } from './managed-command-store.js';
|
|
7
|
+
export interface ManagedCommandCandidate {
|
|
8
|
+
producer: ProducerIdentity;
|
|
9
|
+
sets: InstalledCommandSet[];
|
|
10
|
+
nativeTools?: NativeToolClosure;
|
|
11
|
+
}
|
|
12
|
+
export interface PreparedManagedCommandPackage extends ManagedCommandCandidate {
|
|
13
|
+
resourceRoot: string;
|
|
14
|
+
cleanup(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export interface ManagedCommandPackageDiscovery {
|
|
17
|
+
packages: Array<{
|
|
18
|
+
producer: ProducerIdentity;
|
|
19
|
+
packageId: string;
|
|
20
|
+
packageKey: string;
|
|
21
|
+
refreshKeys: string[];
|
|
22
|
+
declared: boolean;
|
|
23
|
+
installed: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
errors: Array<{
|
|
26
|
+
code: string;
|
|
27
|
+
message: string;
|
|
28
|
+
subject?: string;
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
export interface RetainedManagedCommandPackage {
|
|
32
|
+
producer: ProducerIdentity;
|
|
33
|
+
packageId: string;
|
|
34
|
+
commandIds: string[];
|
|
35
|
+
availability: 'ready' | 'empty' | 'unavailable';
|
|
36
|
+
errors: CommandProducerResult['errors'];
|
|
37
|
+
recoveryAction: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function discoverRetainedManagedCommandPackages(options: {
|
|
40
|
+
selectors: readonly {
|
|
41
|
+
sourceId?: string;
|
|
42
|
+
pluginName: string;
|
|
43
|
+
}[];
|
|
44
|
+
all?: boolean;
|
|
45
|
+
scope: Scope;
|
|
46
|
+
cwd: string;
|
|
47
|
+
env: NodeJS.ProcessEnv;
|
|
48
|
+
}): Promise<RetainedManagedCommandPackage[]>;
|
|
49
|
+
export declare function retainedManagedCommandPackageResult(entry: RetainedManagedCommandPackage): CommandProducerResult;
|
|
50
|
+
export declare function prepareManagedCommandPackageFiles(options: {
|
|
51
|
+
sourceRoot: string;
|
|
52
|
+
files: Record<string, string>;
|
|
53
|
+
entries: readonly CommandDefinition[];
|
|
54
|
+
}): Promise<{
|
|
55
|
+
resourceRoot: string;
|
|
56
|
+
cleanup(): Promise<void>;
|
|
57
|
+
}>;
|
|
58
|
+
export declare function managedCommandProducerIdentity(options: {
|
|
59
|
+
plugin: PluginMeta;
|
|
60
|
+
producer: ManagedCommandProducerRef;
|
|
61
|
+
scope: Scope;
|
|
62
|
+
cwd: string;
|
|
63
|
+
renderUnit?: Pick<RenderUnit, 'physicalKey' | 'renderScope'>;
|
|
64
|
+
}): Promise<ProducerIdentity>;
|
|
65
|
+
export declare function commandSetsForProducer(options: {
|
|
66
|
+
plugin: PluginMeta;
|
|
67
|
+
producer: ManagedCommandProducerRef;
|
|
68
|
+
artifacts?: readonly ValidatedArtifactPlanArtifact[];
|
|
69
|
+
requestedSetNames?: ReadonlySet<string>;
|
|
70
|
+
previousSets?: readonly InstalledCommandSet[];
|
|
71
|
+
}): InstalledCommandSet[];
|
|
72
|
+
export declare function nativeToolsForCommandSets(plugin: PluginMeta, sets: readonly Pick<InstalledCommandSet, 'set'>[]): Promise<NativeToolClosure | undefined>;
|
|
73
|
+
/** Config refresh cannot adopt native declarations that its config Review did not show. */
|
|
74
|
+
export declare function assertManagedCommandPackageNativeToolsUnchanged(options: {
|
|
75
|
+
plugin: PluginMeta;
|
|
76
|
+
producer: ProducerIdentity;
|
|
77
|
+
env: NodeJS.ProcessEnv;
|
|
78
|
+
}): Promise<void>;
|
|
79
|
+
export declare function injectNativeToolClosureFiles(files: Record<string, Buffer>, closure: NativeToolClosure | undefined): NativeToolClosure | undefined;
|
|
80
|
+
export declare function prepareManagedCommandPackage(options: {
|
|
81
|
+
referencePlugins?: readonly PluginMeta[];
|
|
82
|
+
plugin: PluginMeta;
|
|
83
|
+
packageKey: string;
|
|
84
|
+
scope: Scope;
|
|
85
|
+
cwd: string;
|
|
86
|
+
env: NodeJS.ProcessEnv;
|
|
87
|
+
event?: 'install' | 'refresh' | 'materialize';
|
|
88
|
+
changedConfigKeys?: string[];
|
|
89
|
+
requestedArtifactIds?: readonly string[];
|
|
90
|
+
signal?: AbortSignal;
|
|
91
|
+
scriptTimeoutMs?: number;
|
|
92
|
+
}): Promise<PreparedManagedCommandPackage>;
|
|
93
|
+
export declare function syncPluginManagedCommandPackage(options: {
|
|
94
|
+
referencePlugins?: readonly PluginMeta[];
|
|
95
|
+
plugin: PluginMeta;
|
|
96
|
+
packageKey: string;
|
|
97
|
+
scope: Scope;
|
|
98
|
+
cwd: string;
|
|
99
|
+
env: NodeJS.ProcessEnv;
|
|
100
|
+
event?: 'install' | 'refresh' | 'materialize';
|
|
101
|
+
changedConfigKeys?: string[];
|
|
102
|
+
requestedArtifactIds?: readonly string[];
|
|
103
|
+
signal?: AbortSignal;
|
|
104
|
+
scriptTimeoutMs?: number;
|
|
105
|
+
managedCommandProducerCache?: Map<string, Promise<CommandProducerResult>>;
|
|
106
|
+
}): Promise<CommandProducerResult>;
|
|
107
|
+
export declare function discoverInstalledPluginManagedCommandPackages(options: {
|
|
108
|
+
plugin: PluginMeta;
|
|
109
|
+
scope: Scope;
|
|
110
|
+
cwd: string;
|
|
111
|
+
env: NodeJS.ProcessEnv;
|
|
112
|
+
platformTargets?: readonly Pick<ReceiptTargetIdentity, 'platform' | 'scope'>[];
|
|
113
|
+
}): Promise<ManagedCommandPackageDiscovery>;
|
|
114
|
+
export declare function createManagedCommandReferenceResolver(options: {
|
|
115
|
+
plugin: PluginMeta;
|
|
116
|
+
platform: PlatformName;
|
|
117
|
+
scope: Scope;
|
|
118
|
+
cwd: string;
|
|
119
|
+
env: NodeJS.ProcessEnv;
|
|
120
|
+
renderUnit: Pick<RenderUnit, 'physicalKey' | 'renderScope'>;
|
|
121
|
+
candidates?: readonly ManagedCommandCandidate[];
|
|
122
|
+
unavailableProducers?: readonly ProducerIdentity[];
|
|
123
|
+
}): Promise<(reference: ManagedCommandReference) => string>;
|
|
124
|
+
export declare function resolveSkillManagedCommandReferences(tree: DynamicSkillTree, resolve: (reference: ManagedCommandReference) => string): void;
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import os from 'node:os';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import fs from 'fs-extra';
|
|
4
|
+
import { getCommandPackageId, canonicalizeIdentityValue, getNativeToolConsumerClosure, loadPluginNativeToolClosure, materializeNativeToolClosureFiles, getManagedCommandArtifactTargets, getPluginCommandId, normalizeProducerIdentity, normalizeCommandRelativeFile, replaceManagedCommandPlaceholders, validateCommandEntryFiles, } from '@lesliechan721/aw-plugin-core/manifest';
|
|
5
|
+
import { resolveArtifactRenderConfig, runArtifactRenderer } from './artifact-renderer.js';
|
|
6
|
+
import { resolveCommandSourceDirectory } from './artifact-sources.js';
|
|
7
|
+
import { inspectManagedCommand, listManagedCommandPackages, listManagedCommands, managedCommandDiagnostic, ManagedCommandError, readInstalledCommandProducer, syncManagedCommandPackage, validateManagedCommandResource, } from './managed-command-store.js';
|
|
8
|
+
import { resolveCanonicalRepoProjectKey } from './state-paths.js';
|
|
9
|
+
import { validateManagedCommandPackageClosure } from './managed-command-closure.js';
|
|
10
|
+
import { isSkillAuthorOnlyPath } from './skill-authoring.js';
|
|
11
|
+
import { readSafeOperationError } from './safe-operation-diagnostic.js';
|
|
12
|
+
import { AW_RUNTIME_CONFIG_BINDING_PATH, AW_RUNTIME_CONFIG_READER_PATH, AW_RUNTIME_NATIVE_RECEIPT_PATH } from '@lesliechan721/aw-plugin-core';
|
|
13
|
+
export async function discoverRetainedManagedCommandPackages(options) {
|
|
14
|
+
const listed = await listManagedCommandPackages(options.env).catch(() => ({ packages: [], errors: [] }));
|
|
15
|
+
const selected = listed.packages.filter(({ producer }) => options.all === true || options.selectors.some((selector) => selector.pluginName === producer.pluginName && selector.sourceId === producer.sourceId));
|
|
16
|
+
let projectRoot;
|
|
17
|
+
if (options.scope === 'project' && selected.some(({ producer }) => producer.scope === 'project')) {
|
|
18
|
+
projectRoot = path.normalize(await fs.realpath(await resolveCanonicalRepoProjectKey(options.cwd)));
|
|
19
|
+
if (process.platform === 'win32')
|
|
20
|
+
projectRoot = projectRoot.replace(/^[a-z]:/u, (drive) => drive.toUpperCase());
|
|
21
|
+
}
|
|
22
|
+
return selected.filter(({ producer }) => producer.scope === 'user'
|
|
23
|
+
|| (options.scope === 'project' && producer.projectRoot === projectRoot)).map((entry) => ({
|
|
24
|
+
producer: entry.producer, packageId: entry.id, commandIds: entry.sets.flatMap((set) => set.commandIds),
|
|
25
|
+
availability: entry.availability, errors: entry.errors,
|
|
26
|
+
recoveryAction: `aw command package remove ${entry.id} --yes`,
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
export function retainedManagedCommandPackageResult(entry) {
|
|
30
|
+
return { producer: entry.producer,
|
|
31
|
+
state: entry.availability === 'unavailable' ? 'partial' : 'completed', commandIds: entry.commandIds,
|
|
32
|
+
removedCommandIds: [], errors: entry.errors, recoveryActions: [entry.recoveryAction] };
|
|
33
|
+
}
|
|
34
|
+
export async function prepareManagedCommandPackageFiles(options) {
|
|
35
|
+
await validateManagedCommandResource(options.sourceRoot);
|
|
36
|
+
const tempRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'aw-command-package-'));
|
|
37
|
+
const resourceRoot = path.join(tempRoot, 'resource');
|
|
38
|
+
try {
|
|
39
|
+
await fs.copy(options.sourceRoot, resourceRoot, { dereference: false, errorOnExist: true });
|
|
40
|
+
for (const [relative, content] of Object.entries(options.files)) {
|
|
41
|
+
normalizeCommandRelativeFile(relative, 'command package generated file');
|
|
42
|
+
if (isSkillAuthorOnlyPath(relative) || relative.split('/').some((segment) => ['.git', 'node_modules', '.agents-plugin', '.codex-plugin', '.claude-plugin', '.release', '.tmp', 'evals', 'reports', '.aw-command-producer.json', '.agent-workflows-owner.json', 'owner.json', 'aw-plugin-requirements.json'].includes(segment)) || [AW_RUNTIME_CONFIG_BINDING_PATH, AW_RUNTIME_CONFIG_READER_PATH, AW_RUNTIME_NATIVE_RECEIPT_PATH].includes(relative) || options.entries.some((entry) => entry.entry === relative))
|
|
43
|
+
throw new ManagedCommandError('commandResourceInvalid', 'Generated files cannot replace protected resources or command entries.');
|
|
44
|
+
const destination = path.join(resourceRoot, ...relative.split('/'));
|
|
45
|
+
const existing = await fs.lstat(destination).catch(() => null);
|
|
46
|
+
if (existing && !existing.isFile())
|
|
47
|
+
throw new ManagedCommandError('commandResourceInvalid', 'A generated file conflicts with a directory.');
|
|
48
|
+
if (existing && ((existing.mode & 0o111) !== 0 || /\.(?:[cm]?js|[cm]?ts|sh|bash|zsh|py|rb|exe|com|cmd|bat|ps1)$/iu.test(relative)))
|
|
49
|
+
throw new ManagedCommandError('commandResourceInvalid', 'Generated configuration cannot replace executable code.');
|
|
50
|
+
await fs.ensureDir(path.dirname(destination));
|
|
51
|
+
await fs.writeFile(destination, content, { mode: 0o600 });
|
|
52
|
+
await fs.chmod(destination, 0o600);
|
|
53
|
+
}
|
|
54
|
+
for (const reserved of ['.aw-command-producer.json', '.agent-workflows-owner.json', 'owner.json']) {
|
|
55
|
+
if (await fs.pathExists(path.join(resourceRoot, reserved)))
|
|
56
|
+
throw new ManagedCommandError('commandResourceInvalid', 'The package source contains an AW reserved resource.');
|
|
57
|
+
}
|
|
58
|
+
await validateManagedCommandResource(resourceRoot);
|
|
59
|
+
await validateCommandEntryFiles(resourceRoot, options.entries);
|
|
60
|
+
await validateManagedCommandPackageClosure(resourceRoot, options.entries);
|
|
61
|
+
for (const entry of options.entries)
|
|
62
|
+
await validateManagedCommandResource(resourceRoot, entry);
|
|
63
|
+
return { resourceRoot, cleanup: () => fs.remove(tempRoot) };
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
await fs.remove(tempRoot);
|
|
67
|
+
throw error;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function sameProducer(left, right) {
|
|
71
|
+
return getCommandPackageId(left) === getCommandPackageId(right);
|
|
72
|
+
}
|
|
73
|
+
export async function managedCommandProducerIdentity(options) {
|
|
74
|
+
const { plugin, producer } = options;
|
|
75
|
+
if (!plugin.sourceId || !plugin.sourceIdentity)
|
|
76
|
+
throw new Error('commandReferenceInvalid: managed commands require verified source identity.');
|
|
77
|
+
let scope = options.scope;
|
|
78
|
+
let platform = null;
|
|
79
|
+
let placementKey = null;
|
|
80
|
+
let key;
|
|
81
|
+
if (producer.kind === 'package') {
|
|
82
|
+
const declaration = plugin.manifest.managedCommands?.packages.find((entry) => entry.key === producer.packageKey);
|
|
83
|
+
if (!declaration)
|
|
84
|
+
throw new Error('commandReferenceInvalid: command package is not declared.');
|
|
85
|
+
key = declaration.key;
|
|
86
|
+
scope = declaration.scope;
|
|
87
|
+
platform = null;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
if (!options.renderUnit)
|
|
91
|
+
throw new Error('commandReferenceInvalid: a Skill producer requires its verified render unit.');
|
|
92
|
+
key = producer.kind === 'static-skill' ? producer.skillKey : producer.artifactId;
|
|
93
|
+
platform = producer.platform;
|
|
94
|
+
scope = options.renderUnit.renderScope.kind;
|
|
95
|
+
placementKey = options.renderUnit.physicalKey;
|
|
96
|
+
}
|
|
97
|
+
let projectRoot = null;
|
|
98
|
+
if (scope === 'project') {
|
|
99
|
+
const root = producer.kind === 'package' ? await resolveCanonicalRepoProjectKey(options.cwd)
|
|
100
|
+
: options.renderUnit.renderScope.kind === 'project' ? options.renderUnit.renderScope.projectRoot : undefined;
|
|
101
|
+
if (!root)
|
|
102
|
+
throw new Error('commandReferenceInvalid: a project producer requires its canonical project root.');
|
|
103
|
+
projectRoot = path.normalize(await fs.realpath(root));
|
|
104
|
+
if (process.platform === 'win32')
|
|
105
|
+
projectRoot = projectRoot.replace(/^[a-z]:/u, (drive) => drive.toUpperCase());
|
|
106
|
+
}
|
|
107
|
+
return normalizeProducerIdentity({ sourceId: plugin.sourceId, sourceIdentity: plugin.sourceIdentity, pluginName: plugin.manifest.name, kind: producer.kind, key, platform, scope, projectRoot, placementKey });
|
|
108
|
+
}
|
|
109
|
+
export function commandSetsForProducer(options) {
|
|
110
|
+
const requested = (options.plugin.manifest.managedCommands?.sets ?? []).filter((set) => canonicalizeIdentityValue(set.producer) === canonicalizeIdentityValue(options.producer)
|
|
111
|
+
&& (options.requestedSetNames === undefined || options.requestedSetNames.has(set.set))).map((set) => {
|
|
112
|
+
if (set.mode === 'static')
|
|
113
|
+
return { set: set.set, state: 'present', entries: set.entries };
|
|
114
|
+
const artifact = options.artifacts?.find((entry) => entry.target === 'aw.command-set' && entry.id === `command-set.${set.set}`);
|
|
115
|
+
if (!artifact || artifact.target !== 'aw.command-set')
|
|
116
|
+
throw new Error(`commandReferenceInvalid: dynamic command set ${set.set} was not prepared.`);
|
|
117
|
+
return { set: set.set, state: artifact.state, entries: artifact.entries };
|
|
118
|
+
});
|
|
119
|
+
return options.requestedSetNames === undefined ? requested : [
|
|
120
|
+
...(options.previousSets ?? []).filter((set) => !options.requestedSetNames.has(set.set)),
|
|
121
|
+
...requested,
|
|
122
|
+
];
|
|
123
|
+
}
|
|
124
|
+
export async function nativeToolsForCommandSets(plugin, sets) {
|
|
125
|
+
return getNativeToolConsumerClosure(await loadPluginNativeToolClosure(plugin.rootDir, plugin.manifest), 'managed-command-set', sets.map((set) => set.set));
|
|
126
|
+
}
|
|
127
|
+
function assertUnchangedNativeToolClosure(before, after) {
|
|
128
|
+
if (JSON.stringify(before) !== JSON.stringify(after)) {
|
|
129
|
+
throw new ManagedCommandError('nativeToolSyncRequired', 'Native tool changes require a reviewed producer sync or package sync before configuration apply.');
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/** Config refresh cannot adopt native declarations that its config Review did not show. */
|
|
133
|
+
export async function assertManagedCommandPackageNativeToolsUnchanged(options) {
|
|
134
|
+
const installed = (await listManagedCommandPackages(options.env)).packages.find((entry) => entry.id === getCommandPackageId(options.producer));
|
|
135
|
+
const before = installed ? await readInstalledCommandProducer(installed.resourceRoot) : undefined;
|
|
136
|
+
if (before && !sameProducer(before.producer, options.producer))
|
|
137
|
+
throw new ManagedCommandError('commandIdentityConflict', 'The installed command package belongs to another producer.');
|
|
138
|
+
const declaration = options.plugin.manifest.managedCommands?.packages.find((entry) => entry.key === options.producer.key && entry.scope === options.producer.scope);
|
|
139
|
+
const sets = declaration ? (options.plugin.manifest.managedCommands?.sets ?? []).filter((set) => set.producer.kind === 'package' && set.producer.packageKey === declaration.key) : [];
|
|
140
|
+
const closure = sets.length > 0 ? await nativeToolsForCommandSets(options.plugin, sets) : undefined;
|
|
141
|
+
const after = closure ? materializeNativeToolClosureFiles(closure).closure : undefined;
|
|
142
|
+
assertUnchangedNativeToolClosure(before?.nativeTools, after);
|
|
143
|
+
}
|
|
144
|
+
export function injectNativeToolClosureFiles(files, closure) {
|
|
145
|
+
if (!closure)
|
|
146
|
+
return undefined;
|
|
147
|
+
const generated = materializeNativeToolClosureFiles(closure);
|
|
148
|
+
for (const [relative, content] of Object.entries(generated.files)) {
|
|
149
|
+
if (files[relative] && !files[relative].equals(Buffer.from(content)))
|
|
150
|
+
throw new ManagedCommandError('commandResourceInvalid', 'The producer contains conflicting native tool files.');
|
|
151
|
+
files[relative] = Buffer.from(content);
|
|
152
|
+
}
|
|
153
|
+
return generated.closure;
|
|
154
|
+
}
|
|
155
|
+
export async function prepareManagedCommandPackage(options) {
|
|
156
|
+
options.signal?.throwIfAborted();
|
|
157
|
+
const declaration = options.plugin.manifest.managedCommands?.packages.find((entry) => entry.key === options.packageKey);
|
|
158
|
+
if (!declaration || declaration.scope !== options.scope)
|
|
159
|
+
throw new ManagedCommandError('commandDefinitionInvalid', 'The requested package and scope are not declared.');
|
|
160
|
+
const renderConfig = await resolveArtifactRenderConfig({
|
|
161
|
+
sourceId: options.plugin.sourceId, sourceIdentity: options.plugin.sourceIdentity,
|
|
162
|
+
logicalIdentity: options.plugin.catalogLogicalIdentity, pluginName: options.plugin.manifest.name,
|
|
163
|
+
manifest: options.plugin.manifest, scope: declaration.scope, cwd: options.cwd, env: options.env,
|
|
164
|
+
referencePlugins: options.referencePlugins,
|
|
165
|
+
});
|
|
166
|
+
if (renderConfig.issues.length > 0)
|
|
167
|
+
throw new ManagedCommandError('commandDefinitionInvalid', 'Resolve the plugin configuration issues before refreshing its command package.');
|
|
168
|
+
const producerRef = { kind: 'package', packageKey: declaration.key };
|
|
169
|
+
const producer = await managedCommandProducerIdentity({ ...options, producer: producerRef });
|
|
170
|
+
const allTargets = getManagedCommandArtifactTargets(options.plugin.manifest).filter((target) => target.producer.kind === 'package' && target.producer.packageKey === declaration.key);
|
|
171
|
+
const explicitSubset = options.requestedArtifactIds !== undefined;
|
|
172
|
+
const requestedIds = new Set(options.requestedArtifactIds);
|
|
173
|
+
if (explicitSubset && (requestedIds.size === 0 || requestedIds.size !== options.requestedArtifactIds.length || [...requestedIds].some((id) => !allTargets.some((target) => target.id === id)))) {
|
|
174
|
+
throw new ManagedCommandError('commandDefinitionInvalid', 'A partial package request must contain unique declared targets of this producer.');
|
|
175
|
+
}
|
|
176
|
+
const targets = explicitSubset ? allTargets.filter((target) => requestedIds.has(target.id)) : allTargets;
|
|
177
|
+
const requestedSetNames = explicitSubset ? new Set(targets.flatMap((target) => target.set ? [target.set] : [])) : undefined;
|
|
178
|
+
let previous;
|
|
179
|
+
if (explicitSubset) {
|
|
180
|
+
const installed = (await listManagedCommandPackages(options.env)).packages.find((entry) => entry.id === getCommandPackageId(producer));
|
|
181
|
+
if (installed) {
|
|
182
|
+
if (installed.availability === 'unavailable')
|
|
183
|
+
throw new ManagedCommandError('commandBindingInvalid', 'Partial refresh requires a verified installed command package. Run a complete package sync.');
|
|
184
|
+
const record = await readInstalledCommandProducer(installed.resourceRoot);
|
|
185
|
+
if (!sameProducer(record.producer, producer))
|
|
186
|
+
throw new ManagedCommandError('commandIdentityConflict', 'The installed command package belongs to another producer.');
|
|
187
|
+
previous = { resourceRoot: installed.resourceRoot, sets: record.sets, nativeTools: record.nativeTools };
|
|
188
|
+
}
|
|
189
|
+
const hasUnrequestedSets = (options.plugin.manifest.managedCommands?.sets ?? []).some((set) => set.producer.kind === 'package' && set.producer.packageKey === declaration.key && !requestedSetNames.has(set.set));
|
|
190
|
+
if (!previous && (hasUnrequestedSets || (declaration.render && !targets.some((target) => target.target === 'aw.command-package'))))
|
|
191
|
+
throw new ManagedCommandError('commandBindingInvalid', 'Partial refresh cannot reconstruct unrequested producer content. Run a complete package sync.');
|
|
192
|
+
}
|
|
193
|
+
let artifacts = [];
|
|
194
|
+
let generatedFiles = {};
|
|
195
|
+
if (targets.length > 0) {
|
|
196
|
+
const rendered = await runArtifactRenderer({ plugin: options.plugin, referencePlugins: options.referencePlugins, event: options.event ?? 'install', platform: 'managed-commands', scope: declaration.scope, cwd: options.cwd, commandEnv: options.env, requestedArtifactIds: targets.map((target) => target.id), signal: options.signal, scriptTimeoutMs: options.scriptTimeoutMs, ...(options.event === 'refresh' ? { changedConfigKeys: options.changedConfigKeys ?? [] } : {}) });
|
|
197
|
+
artifacts = rendered.plan.artifacts;
|
|
198
|
+
for (const artifact of artifacts)
|
|
199
|
+
if (artifact.target === 'aw.command-package')
|
|
200
|
+
generatedFiles = artifact.files;
|
|
201
|
+
}
|
|
202
|
+
const sets = commandSetsForProducer({ plugin: options.plugin, producer: producerRef, artifacts, ...(requestedSetNames ? { requestedSetNames, previousSets: previous?.sets } : {}) });
|
|
203
|
+
let source = await resolveCommandSourceDirectory({ bundleRoot: options.plugin.rootDir, pluginRelativePath: declaration.sourceDir });
|
|
204
|
+
let temporarySource;
|
|
205
|
+
try {
|
|
206
|
+
if (previous && !targets.some((target) => target.target === 'aw.command-package')) {
|
|
207
|
+
temporarySource = await fs.mkdtemp(path.join(os.tmpdir(), 'aw-command-previous-'));
|
|
208
|
+
source = path.join(temporarySource, 'resource');
|
|
209
|
+
await fs.copy(previous.resourceRoot, source, { dereference: false, errorOnExist: true });
|
|
210
|
+
await fs.remove(path.join(source, '.aw-command-producer.json'));
|
|
211
|
+
}
|
|
212
|
+
const prepared = await prepareManagedCommandPackageFiles({ sourceRoot: source, files: generatedFiles, entries: sets.flatMap((set) => set.entries) });
|
|
213
|
+
const closure = await nativeToolsForCommandSets(options.plugin, sets);
|
|
214
|
+
const generated = closure ? materializeNativeToolClosureFiles(closure) : undefined;
|
|
215
|
+
try {
|
|
216
|
+
if (explicitSubset && previous)
|
|
217
|
+
assertUnchangedNativeToolClosure(previous.nativeTools, generated?.closure);
|
|
218
|
+
for (const [relative, content] of Object.entries(generated?.files ?? {})) {
|
|
219
|
+
const destination = path.join(prepared.resourceRoot, relative);
|
|
220
|
+
const existing = await fs.readFile(destination).catch((error) => { if (error.code === 'ENOENT')
|
|
221
|
+
return undefined; throw error; });
|
|
222
|
+
if (existing && !existing.equals(Buffer.from(content)))
|
|
223
|
+
throw new ManagedCommandError('commandResourceInvalid', 'The producer contains conflicting native tool files.');
|
|
224
|
+
await fs.outputFile(destination, content);
|
|
225
|
+
}
|
|
226
|
+
return { producer, sets, ...(generated ? { nativeTools: generated.closure } : {}), ...prepared };
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
await prepared.cleanup();
|
|
230
|
+
throw error;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
finally {
|
|
234
|
+
if (temporarySource)
|
|
235
|
+
await fs.remove(temporarySource);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
export async function syncPluginManagedCommandPackage(options) {
|
|
239
|
+
const producer = await managedCommandProducerIdentity({ ...options, producer: { kind: 'package', packageKey: options.packageKey } });
|
|
240
|
+
const key = getCommandPackageId(producer);
|
|
241
|
+
let result = options.managedCommandProducerCache?.get(key);
|
|
242
|
+
if (!result) {
|
|
243
|
+
result = (async () => {
|
|
244
|
+
let candidate;
|
|
245
|
+
try {
|
|
246
|
+
candidate = await prepareManagedCommandPackage(options);
|
|
247
|
+
const old = await listManagedCommandPackages(options.env);
|
|
248
|
+
const previousIds = old.packages.find((entry) => entry.id === key)?.sets.flatMap((set) => set.commandIds) ?? [];
|
|
249
|
+
const synced = await syncManagedCommandPackage({ producer, sourceDirectory: candidate.resourceRoot, sets: candidate.sets, nativeTools: candidate.nativeTools, env: options.env });
|
|
250
|
+
return { producer, state: 'completed', commandIds: synced.commandIds, removedCommandIds: previousIds.filter((id) => !synced.commandIds.includes(id)), errors: [], recoveryActions: [] };
|
|
251
|
+
}
|
|
252
|
+
catch (error) {
|
|
253
|
+
if (options.signal?.aborted || error instanceof Error && error.name === 'AbortError'
|
|
254
|
+
|| readSafeOperationError(error))
|
|
255
|
+
throw error;
|
|
256
|
+
return { producer, state: 'failed', commandIds: [], removedCommandIds: [], errors: [managedCommandDiagnostic(error)], recoveryActions: [`aw command package sync ${producer.sourceId}/${producer.pluginName} ${producer.key} --scope ${producer.scope} --yes`] };
|
|
257
|
+
}
|
|
258
|
+
finally {
|
|
259
|
+
await candidate?.cleanup();
|
|
260
|
+
}
|
|
261
|
+
})();
|
|
262
|
+
options.managedCommandProducerCache?.set(key, result);
|
|
263
|
+
}
|
|
264
|
+
return result;
|
|
265
|
+
}
|
|
266
|
+
export async function discoverInstalledPluginManagedCommandPackages(options) {
|
|
267
|
+
const listed = await listManagedCommandPackages(options.env);
|
|
268
|
+
let currentProject;
|
|
269
|
+
const relevant = listed.packages.filter((entry) => entry.producer.sourceId === options.plugin.sourceId && entry.producer.pluginName === options.plugin.manifest.name);
|
|
270
|
+
const installedPackageIds = new Set(relevant.map((entry) => entry.id));
|
|
271
|
+
const errors = [...listed.errors];
|
|
272
|
+
if (options.scope === 'project' && (relevant.some((entry) => entry.producer.scope === 'project')
|
|
273
|
+
|| (options.platformTargets?.length && options.plugin.manifest.managedCommands?.packages.some((entry) => entry.scope === 'project')))) {
|
|
274
|
+
currentProject = path.normalize(await fs.realpath(await resolveCanonicalRepoProjectKey(options.cwd)));
|
|
275
|
+
}
|
|
276
|
+
const producers = new Map();
|
|
277
|
+
for (const entry of relevant) {
|
|
278
|
+
const identity = entry.producer;
|
|
279
|
+
if (identity.scope !== options.scope || (identity.scope === 'project' && identity.projectRoot !== currentProject))
|
|
280
|
+
continue;
|
|
281
|
+
if (identity.sourceIdentity !== options.plugin.sourceIdentity) {
|
|
282
|
+
errors.push({ code: 'commandSourceIdentityChanged', message: `The retained command package belongs to a previous source identity; remove it with aw command package remove ${entry.id} --yes.`, subject: entry.id });
|
|
283
|
+
continue;
|
|
284
|
+
}
|
|
285
|
+
producers.set(entry.id, identity);
|
|
286
|
+
}
|
|
287
|
+
for (const declaration of options.plugin.manifest.managedCommands?.packages ?? []) {
|
|
288
|
+
if (declaration.scope !== options.scope)
|
|
289
|
+
continue;
|
|
290
|
+
if (!options.platformTargets?.some((target) => declaration.platforms.includes(target.platform)))
|
|
291
|
+
continue;
|
|
292
|
+
const producer = await managedCommandProducerIdentity({ ...options, producer: { kind: 'package', packageKey: declaration.key } });
|
|
293
|
+
producers.set(getCommandPackageId(producer), producer);
|
|
294
|
+
}
|
|
295
|
+
return { packages: [...producers].map(([packageId, producer]) => {
|
|
296
|
+
const declaration = options.plugin.manifest.managedCommands?.packages.find((entry) => entry.key === producer.key && entry.scope === producer.scope);
|
|
297
|
+
const setKeys = (options.plugin.manifest.managedCommands?.sets ?? []).flatMap((set) => set.producer.kind === 'package' && set.producer.packageKey === producer.key && set.mode === 'dynamic' ? set.refreshKeys : []);
|
|
298
|
+
return { producer, packageId, packageKey: producer.key, refreshKeys: [...new Set([...(declaration?.refreshKeys ?? []), ...setKeys])], declared: declaration !== undefined, installed: installedPackageIds.has(packageId) };
|
|
299
|
+
}), errors };
|
|
300
|
+
}
|
|
301
|
+
export async function createManagedCommandReferenceResolver(options) {
|
|
302
|
+
const resolved = new Map();
|
|
303
|
+
for (const set of options.plugin.manifest.managedCommands?.sets ?? []) {
|
|
304
|
+
if (set.producer.kind !== 'package' && set.producer.platform !== options.platform)
|
|
305
|
+
continue;
|
|
306
|
+
if (set.producer.kind === 'package') {
|
|
307
|
+
const declaration = options.plugin.manifest.managedCommands?.packages.find((entry) => set.producer.kind === 'package' && entry.key === set.producer.packageKey);
|
|
308
|
+
if (!declaration?.platforms.includes(options.platform) || (options.scope === 'user' && declaration.scope === 'project'))
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
const producer = await managedCommandProducerIdentity({ ...options, producer: set.producer });
|
|
312
|
+
if (options.unavailableProducers?.some((unavailable) => sameProducer(unavailable, producer)))
|
|
313
|
+
continue;
|
|
314
|
+
if (producer.platform && producer.platform !== options.platform)
|
|
315
|
+
continue;
|
|
316
|
+
if (options.scope === 'user' && producer.scope === 'project')
|
|
317
|
+
continue;
|
|
318
|
+
if (set.producer.kind === 'package') {
|
|
319
|
+
const declaration = options.plugin.manifest.managedCommands?.packages.find((entry) => entry.key === producer.key);
|
|
320
|
+
if (!declaration?.platforms.includes(options.platform))
|
|
321
|
+
continue;
|
|
322
|
+
}
|
|
323
|
+
const candidates = (options.candidates ?? []).filter((entry) => sameProducer(entry.producer, producer));
|
|
324
|
+
const candidateContent = (candidate) => canonicalizeIdentityValue({ producer: candidate.producer, sets: candidate.sets, nativeTools: candidate.nativeTools ?? null });
|
|
325
|
+
if (candidates.some((entry) => candidateContent(entry) !== candidateContent(candidates[0])))
|
|
326
|
+
throw new Error('commandReferenceInvalid: conflicting candidates identify the same command producer.');
|
|
327
|
+
const candidate = candidates[0];
|
|
328
|
+
const entries = candidate?.sets.find((entry) => entry.set === set.set);
|
|
329
|
+
if (candidate) {
|
|
330
|
+
if (entries?.state !== 'present')
|
|
331
|
+
continue;
|
|
332
|
+
for (const entry of entries.entries)
|
|
333
|
+
resolved.set(`${set.set}/${entry.key}/${entry.variant}`, getPluginCommandId({ schemaVersion: 2, producer, set: set.set, key: entry.key, variant: entry.variant }));
|
|
334
|
+
}
|
|
335
|
+
else if (set.mode === 'static') {
|
|
336
|
+
for (const entry of set.entries) {
|
|
337
|
+
const id = getPluginCommandId({ schemaVersion: 2, producer, set: set.set, key: entry.key, variant: entry.variant });
|
|
338
|
+
try {
|
|
339
|
+
if ((await inspectManagedCommand(id, options.env)).availability === 'ready')
|
|
340
|
+
resolved.set(`${set.set}/${entry.key}/${entry.variant}`, id);
|
|
341
|
+
}
|
|
342
|
+
catch (error) {
|
|
343
|
+
if (!(error instanceof ManagedCommandError) || error.code !== 'commandNotFound')
|
|
344
|
+
throw error;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
const installed = await listManagedCommands(options.env);
|
|
350
|
+
for (const command of installed.commands)
|
|
351
|
+
if (command.availability === 'ready' && command.owner.kind === 'plugin' && sameProducer(command.owner.producer, producer) && command.name.startsWith(`${set.set}/`))
|
|
352
|
+
resolved.set(command.name, command.id);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return (reference) => {
|
|
356
|
+
if (!options.plugin.manifest.requires?.aw.capabilities?.includes('aw.managed-commands.v1'))
|
|
357
|
+
throw new Error('commandReferenceInvalid: managed command references require aw.managed-commands.v1.');
|
|
358
|
+
const id = resolved.get(`${reference.set}/${reference.key}/${reference.variant ?? 'default'}`);
|
|
359
|
+
if (!id)
|
|
360
|
+
throw new Error(`commandReferenceInvalid: command ${reference.set}/${reference.key}/${reference.variant ?? 'default'} has no verified producer for this consumer.`);
|
|
361
|
+
return id;
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
export function resolveSkillManagedCommandReferences(tree, resolve) {
|
|
365
|
+
for (const [relative, content] of Object.entries(tree.files))
|
|
366
|
+
if (relative.endsWith('.md'))
|
|
367
|
+
tree.files[relative] = Buffer.from(replaceManagedCommandPlaceholders(content.toString('utf8'), resolve), 'utf8');
|
|
368
|
+
}
|
|
369
|
+
//# sourceMappingURL=managed-command-materialization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-command-materialization.js","sourceRoot":"","sources":["../../../src/utils/managed-command-materialization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,iCAAiC,EAEjC,gCAAgC,EAChC,kBAAkB,EAClB,yBAAyB,EACzB,4BAA4B,EAC5B,iCAAiC,EACjC,yBAAyB,GAK1B,MAAM,wCAAwC,CAAC;AAIhD,OAAO,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAGtE,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,mBAAmB,EACnB,wBAAwB,EACxB,mBAAmB,EACnB,4BAA4B,EAC5B,yBAAyB,EACzB,8BAA8B,GAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,8BAA8B,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AA2B9I,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAAC,OAG5D;IACC,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IACzG,MAAM,QAA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C,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAC,YAAY,EAAE,QAAQ,CAAC,wBAAwB,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,qFAAqF,CAAC,CAAC;QACnM,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,IAAI,SAAS,CAAC,GAAG,IAAI,SAAS,CAAC,OAAO,IAAI,SAAS,EAAE,CAAC,CAAC;QAC/F,IAAI,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,oCAAoC,SAAS,CAAC,GAAG,IAAI,SAAS,CAAC,GAAG,IAAI,SAAS,CAAC,OAAO,IAAI,SAAS,8CAA8C,CAAC,CAAC;QAC7K,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oCAAoC,CAAC,IAAsB,EAAE,OAAuD;IAClI,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAC/M,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type AgentCommandContextV1, type CommandSetArtifact, type ExpectedComponentSet, type InstalledCommandProducer, type ManagedCommandProducerRef, type ManagedCommandSet, type PlatformId, type ProducerIdentity } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
|
+
import type { RenderUnit } from '../platforms/contracts.js';
|
|
3
|
+
import type { PluginMeta } from '../types.js';
|
|
4
|
+
import { type ArtifactRenderEvent } from './artifact-renderer.js';
|
|
5
|
+
import { type ManagedCommandCandidate } from './managed-command-materialization.js';
|
|
6
|
+
type SkillProducerRef = Exclude<ManagedCommandProducerRef, {
|
|
7
|
+
kind: 'package';
|
|
8
|
+
}>;
|
|
9
|
+
type NativePlatform = Exclude<PlatformId, 'generic'>;
|
|
10
|
+
interface SkillProducerBase {
|
|
11
|
+
producer: ProducerIdentity;
|
|
12
|
+
producerRef: SkillProducerRef;
|
|
13
|
+
componentId: string;
|
|
14
|
+
sets: ManagedCommandSet[];
|
|
15
|
+
}
|
|
16
|
+
export interface ReadyManagedCommandSkillProducer extends SkillProducerBase {
|
|
17
|
+
state: 'ready';
|
|
18
|
+
resourceRoot: string;
|
|
19
|
+
}
|
|
20
|
+
export type ManagedCommandSkillProducerResolution = ReadyManagedCommandSkillProducer | (SkillProducerBase & {
|
|
21
|
+
state: 'omitted';
|
|
22
|
+
reason: 'not-offered' | 'config-disabled' | 'scope-excluded';
|
|
23
|
+
}) | (SkillProducerBase & {
|
|
24
|
+
state: 'unmet';
|
|
25
|
+
reasonCode: string;
|
|
26
|
+
}) | (SkillProducerBase & {
|
|
27
|
+
state: 'failed';
|
|
28
|
+
error: Error;
|
|
29
|
+
});
|
|
30
|
+
/** Resolve only the current complete component set and its verified physical candidates. */
|
|
31
|
+
export declare function resolveManagedCommandSkillProducers(options: {
|
|
32
|
+
plugin: PluginMeta;
|
|
33
|
+
platform: NativePlatform;
|
|
34
|
+
renderUnit: Pick<RenderUnit, 'physicalKey' | 'renderScope'>;
|
|
35
|
+
components: ExpectedComponentSet;
|
|
36
|
+
skillResources: readonly {
|
|
37
|
+
componentId: string;
|
|
38
|
+
resourceRoot: string;
|
|
39
|
+
physicalKey: string;
|
|
40
|
+
}[];
|
|
41
|
+
dynamicScopeOffered?: boolean;
|
|
42
|
+
cwd: string;
|
|
43
|
+
}): Promise<ManagedCommandSkillProducerResolution[]>;
|
|
44
|
+
export declare function validateAgentCommandPlan(options: {
|
|
45
|
+
plan: unknown;
|
|
46
|
+
context: AgentCommandContextV1;
|
|
47
|
+
sets: readonly ManagedCommandSet[];
|
|
48
|
+
}): CommandSetArtifact[];
|
|
49
|
+
export declare function prepareAgentCommandSets(options: {
|
|
50
|
+
plugin: PluginMeta;
|
|
51
|
+
resolved: ReadyManagedCommandSkillProducer;
|
|
52
|
+
referencePlugins?: readonly PluginMeta[];
|
|
53
|
+
cwd: string;
|
|
54
|
+
env: NodeJS.ProcessEnv;
|
|
55
|
+
event?: ArtifactRenderEvent;
|
|
56
|
+
changedConfigKeys?: string[];
|
|
57
|
+
previousProducer?: {
|
|
58
|
+
record: InstalledCommandProducer;
|
|
59
|
+
artifacts: readonly CommandSetArtifact[];
|
|
60
|
+
};
|
|
61
|
+
signal?: AbortSignal;
|
|
62
|
+
scriptTimeoutMs?: number;
|
|
63
|
+
}): Promise<ManagedCommandCandidate & {
|
|
64
|
+
resourceRoot: string;
|
|
65
|
+
artifacts: CommandSetArtifact[];
|
|
66
|
+
}>;
|
|
67
|
+
export {};
|