@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,142 @@
|
|
|
1
|
+
function recoveryAction(options) {
|
|
2
|
+
const scope = options.recovery.scope ?? options.target.scope;
|
|
3
|
+
const common = {
|
|
4
|
+
pluginId: options.target.pluginId,
|
|
5
|
+
platform: options.target.platform,
|
|
6
|
+
scope,
|
|
7
|
+
reason: 'statusRecovery',
|
|
8
|
+
};
|
|
9
|
+
if (options.recovery.command === 'sync') {
|
|
10
|
+
return { ...common, id: 'sync' };
|
|
11
|
+
}
|
|
12
|
+
if (options.recovery.command === 'reinstall') {
|
|
13
|
+
return { ...common, id: 'reinstall' };
|
|
14
|
+
}
|
|
15
|
+
if (options.recovery.command === 'cleanup') {
|
|
16
|
+
return { ...common, id: 'cleanup' };
|
|
17
|
+
}
|
|
18
|
+
if (options.recovery.command === 'uninstall') {
|
|
19
|
+
return { ...common, id: 'uninstall' };
|
|
20
|
+
}
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
function uniqueActions(actions) {
|
|
24
|
+
const seen = new Set();
|
|
25
|
+
return actions.filter((action) => {
|
|
26
|
+
const key = `${action.id}\0${action.pluginId}\0${action.platform}\0${action.scope}`;
|
|
27
|
+
if (seen.has(key))
|
|
28
|
+
return false;
|
|
29
|
+
seen.add(key);
|
|
30
|
+
return true;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
export function buildAllowedLifecycleActions(target) {
|
|
34
|
+
if (target.state === 'absent') {
|
|
35
|
+
return target.installable === false ? [] : [{
|
|
36
|
+
id: 'install',
|
|
37
|
+
pluginId: target.pluginId,
|
|
38
|
+
platform: target.platform,
|
|
39
|
+
scope: target.scope,
|
|
40
|
+
reason: 'targetAbsent',
|
|
41
|
+
}];
|
|
42
|
+
}
|
|
43
|
+
if (target.state === 'orphaned') {
|
|
44
|
+
const cleanup = target.recoveryActions.find((action) => action.command === 'cleanup');
|
|
45
|
+
return cleanup ? [recoveryAction({ target, recovery: cleanup })]
|
|
46
|
+
: [{
|
|
47
|
+
id: 'cleanup',
|
|
48
|
+
pluginId: target.pluginId,
|
|
49
|
+
platform: target.platform,
|
|
50
|
+
scope: target.scope,
|
|
51
|
+
reason: 'orphanedManagedContent',
|
|
52
|
+
}];
|
|
53
|
+
}
|
|
54
|
+
const recovery = uniqueActions(target.recoveryActions.flatMap((action) => recoveryAction({ target, recovery: action }) ?? []));
|
|
55
|
+
if (target.state === 'blocked') {
|
|
56
|
+
return recovery.filter((action) => action.id === 'cleanup' || action.id === 'uninstall');
|
|
57
|
+
}
|
|
58
|
+
if (target.state === 'needsSync') {
|
|
59
|
+
if (target.recoveryActions.some((action) => action.command === 'manual')) {
|
|
60
|
+
return target.uninstallable === false ? [] : [{
|
|
61
|
+
id: 'uninstall',
|
|
62
|
+
pluginId: target.pluginId,
|
|
63
|
+
platform: target.platform,
|
|
64
|
+
scope: target.scope,
|
|
65
|
+
reason: 'removeManagedContent',
|
|
66
|
+
}];
|
|
67
|
+
}
|
|
68
|
+
return recovery.length > 0 ? recovery : [{
|
|
69
|
+
id: target.platform === 'codex' ? 'sync' : 'reinstall',
|
|
70
|
+
pluginId: target.pluginId,
|
|
71
|
+
platform: target.platform,
|
|
72
|
+
scope: target.scope,
|
|
73
|
+
reason: 'savedSettingsNotApplied',
|
|
74
|
+
}];
|
|
75
|
+
}
|
|
76
|
+
const actions = [];
|
|
77
|
+
if (target.revision?.state === 'upgradeAvailable') {
|
|
78
|
+
actions.push({
|
|
79
|
+
id: 'refreshAndSync',
|
|
80
|
+
pluginId: target.pluginId,
|
|
81
|
+
platform: target.platform,
|
|
82
|
+
scope: target.scope,
|
|
83
|
+
reason: 'newActiveVersion',
|
|
84
|
+
availableVersion: target.revision.availableVersion,
|
|
85
|
+
refreshBeforeReview: true,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
actions.push({
|
|
89
|
+
id: 'reinstall',
|
|
90
|
+
pluginId: target.pluginId,
|
|
91
|
+
platform: target.platform,
|
|
92
|
+
scope: target.scope,
|
|
93
|
+
reason: 'rebuildManagedContent',
|
|
94
|
+
});
|
|
95
|
+
if (target.uninstallable !== false) {
|
|
96
|
+
actions.push({
|
|
97
|
+
id: 'uninstall',
|
|
98
|
+
pluginId: target.pluginId,
|
|
99
|
+
platform: target.platform,
|
|
100
|
+
scope: target.scope,
|
|
101
|
+
reason: 'removeManagedContent',
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
return actions;
|
|
105
|
+
}
|
|
106
|
+
export function selectLifecycleRetryAction(options) {
|
|
107
|
+
if (options.operationKind !== 'pluginWrite'
|
|
108
|
+
&& options.operationKind !== 'configSave'
|
|
109
|
+
&& options.operationKind !== 'configReset')
|
|
110
|
+
return undefined;
|
|
111
|
+
const actions = buildAllowedLifecycleActions(options.target);
|
|
112
|
+
const select = (...ids) => ids.flatMap((id) => actions.filter((action) => action.id === id))[0];
|
|
113
|
+
if (options.operationKind === 'configSave' || options.operationKind === 'configReset') {
|
|
114
|
+
return select('reinstall', 'sync');
|
|
115
|
+
}
|
|
116
|
+
if (options.originalAction === 'uninstall')
|
|
117
|
+
return select('uninstall');
|
|
118
|
+
if (options.originalAction === 'cleanup')
|
|
119
|
+
return select('cleanup');
|
|
120
|
+
if (options.target.state === 'absent')
|
|
121
|
+
return select('install');
|
|
122
|
+
return select('reinstall', 'sync');
|
|
123
|
+
}
|
|
124
|
+
export function buildAllowedConfigActions(hasChanges) {
|
|
125
|
+
return hasChanges ? [
|
|
126
|
+
{ id: 'configSave', label: '保存', apply: false },
|
|
127
|
+
{ id: 'configSaveAndApply', label: '保存并应用', apply: true },
|
|
128
|
+
] : [];
|
|
129
|
+
}
|
|
130
|
+
export function buildOperationResultModel(receipt) {
|
|
131
|
+
return {
|
|
132
|
+
state: receipt.overallState,
|
|
133
|
+
changes: [...receipt.changes],
|
|
134
|
+
warnings: [...receipt.warnings],
|
|
135
|
+
targetResults: structuredClone(receipt.targetResults),
|
|
136
|
+
...(receipt.commandResults ? { commandResults: structuredClone(receipt.commandResults) } : {}),
|
|
137
|
+
recoveryActions: [...receipt.recoveryActions],
|
|
138
|
+
...(receipt.planFingerprint ? { planFingerprint: receipt.planFingerprint } : {}),
|
|
139
|
+
errors: structuredClone(receipt.errors),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=operation-planner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-planner.js","sourceRoot":"","sources":["../../../src/commands/operation-planner.ts"],"names":[],"mappings":"AA8CA,SAAS,cAAc,CAAC,OAGvB;IACC,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;IAC7D,MAAM,MAAM,GAAG;QACb,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ;QACjC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ;QACjC,KAAK;QACL,MAAM,EAAE,gBAAyB;KAClC,CAAC;IACF,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;QACxC,OAAO,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;IACnC,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QAC7C,OAAO,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC;IACxC,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QAC3C,OAAO,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;IACtC,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QAC7C,OAAO,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,CA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AAY;QAC3B,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;QAC7B,QAAQ,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;QAC/B,aAAa,EAAE,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC;QACrD,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,eAAe,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9F,eAAe,EAAE,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;QAC7C,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAChF,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC;KACxC,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommandOptions, InstallCommandOptions, PlatformSelection, Scope, StatusCommandOptions
|
|
1
|
+
import type { CommandOptions, InstallCommandOptions, PlatformSelection, PlatformTarget, Scope, StatusCommandOptions } from '../types.js';
|
|
2
2
|
export interface NormalizeCommandOptionsDefaults {
|
|
3
3
|
cwd?: string;
|
|
4
4
|
defaultScope?: Scope;
|
|
@@ -12,11 +12,11 @@ export type RawCommandOptions = {
|
|
|
12
12
|
platform?: string;
|
|
13
13
|
scriptTimeout?: string | number;
|
|
14
14
|
scriptTimeoutMs?: string | number;
|
|
15
|
-
|
|
15
|
+
yes?: boolean;
|
|
16
16
|
};
|
|
17
|
-
export type RawInstallCommandOptions = RawCommandOptions & {
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
export type RawInstallCommandOptions = RawCommandOptions & {
|
|
18
|
+
dependencyScope?: string | string[];
|
|
19
|
+
dependencyScopeOverrides?: InstallCommandOptions['dependencyScopeOverrides'];
|
|
20
20
|
};
|
|
21
21
|
export type RawStatusCommandOptions = {
|
|
22
22
|
cwd?: string;
|
|
@@ -25,8 +25,12 @@ export type RawStatusCommandOptions = {
|
|
|
25
25
|
verbose?: boolean;
|
|
26
26
|
json?: boolean;
|
|
27
27
|
};
|
|
28
|
-
export type RawUninstallCommandOptions = RawCommandOptions
|
|
29
|
-
|
|
28
|
+
export type RawUninstallCommandOptions = RawCommandOptions & {
|
|
29
|
+
force?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type UninstallCommandOptions = CommandOptions & {
|
|
32
|
+
force?: boolean;
|
|
33
|
+
};
|
|
30
34
|
export type RawCleanupCommandOptions = RawCommandOptions & {
|
|
31
35
|
json?: boolean;
|
|
32
36
|
force?: boolean;
|
|
@@ -41,26 +45,18 @@ export type RawReinstallCommandOptions = RawCommandOptions & {
|
|
|
41
45
|
export interface ReinstallCommandOptions extends InstallCommandOptions {
|
|
42
46
|
json?: boolean;
|
|
43
47
|
}
|
|
44
|
-
export interface RawConfigProjectLayerOptions {
|
|
45
|
-
scope?: string;
|
|
46
|
-
local?: boolean;
|
|
47
|
-
}
|
|
48
48
|
export declare const SCRIPT_TIMEOUT_MIN_MS = 1000;
|
|
49
|
-
export declare const SCRIPT_TIMEOUT_MAX_MS =
|
|
50
|
-
export declare const SCRIPT_TIMEOUT_DEFAULT_MS =
|
|
51
|
-
export declare const CONFIG_WRITE_DEFAULT_SCOPE: Scope;
|
|
52
|
-
export type ConfigReadResolution = Scope | 'effective';
|
|
53
|
-
export declare const CONFIG_READ_DEFAULT_RESOLUTION: ConfigReadResolution;
|
|
49
|
+
export declare const SCRIPT_TIMEOUT_MAX_MS = 1800000;
|
|
50
|
+
export declare const SCRIPT_TIMEOUT_DEFAULT_MS = 300000;
|
|
54
51
|
export declare function parseScopeValue(scope: unknown): Scope;
|
|
52
|
+
export declare function parseContextValue(context: unknown): Scope;
|
|
53
|
+
export declare function parsePlatformTargetValue(platform: unknown): PlatformTarget;
|
|
55
54
|
export declare function parsePlatformValue(platform: unknown): PlatformSelection;
|
|
55
|
+
export declare function parseDependencyScopeOverrides(values: string | readonly string[] | undefined): NonNullable<InstallCommandOptions['dependencyScopeOverrides']>;
|
|
56
56
|
export declare function parseScriptTimeoutMs(value: unknown): number;
|
|
57
57
|
export declare function resolveScriptTimeoutMs(raw: Pick<RawCommandOptions, 'scriptTimeout' | 'scriptTimeoutMs'>): number | undefined;
|
|
58
|
-
export declare function resolveConfigWriteScope(scope: unknown): Scope;
|
|
59
|
-
export declare function resolveConfigReadResolution(scope: unknown): ConfigReadResolution;
|
|
60
|
-
export declare function resolveConfigProjectLayer(raw?: RawConfigProjectLayerOptions): 'shared' | 'local';
|
|
61
58
|
export declare function normalizeCommandOptions(raw?: RawCommandOptions, defaults?: NormalizeCommandOptionsDefaults): CommandOptions;
|
|
62
59
|
export declare function normalizeInstallCommandOptions(raw?: RawInstallCommandOptions, defaults?: NormalizeCommandOptionsDefaults): InstallCommandOptions;
|
|
63
|
-
export declare function normalizeUpgradeCommandOptions(raw?: RawUpgradeCommandOptions, defaults?: NormalizeCommandOptionsDefaults): UpgradeCommandOptions;
|
|
64
60
|
export declare function normalizeStatusCommandOptions(raw?: RawStatusCommandOptions, defaults?: {
|
|
65
61
|
cwd?: string;
|
|
66
62
|
}): StatusCommandOptions;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { parsePluginId } from '../utils/multi-source-catalog.js';
|
|
2
|
+
import { isPlatformTarget, NATIVE_PLATFORM_TARGETS } from '@lesliechan721/aw-plugin-core/manifest';
|
|
1
3
|
export const SCRIPT_TIMEOUT_MIN_MS = 1000;
|
|
2
|
-
export const SCRIPT_TIMEOUT_MAX_MS =
|
|
3
|
-
export const SCRIPT_TIMEOUT_DEFAULT_MS =
|
|
4
|
-
export const CONFIG_WRITE_DEFAULT_SCOPE = 'user';
|
|
5
|
-
export const CONFIG_READ_DEFAULT_RESOLUTION = 'effective';
|
|
4
|
+
export const SCRIPT_TIMEOUT_MAX_MS = 1800000;
|
|
5
|
+
export const SCRIPT_TIMEOUT_DEFAULT_MS = 300000;
|
|
6
6
|
function renderUnsupportedValue(value) {
|
|
7
7
|
return typeof value === 'string' ? value : String(value);
|
|
8
8
|
}
|
|
@@ -12,11 +12,68 @@ export function parseScopeValue(scope) {
|
|
|
12
12
|
}
|
|
13
13
|
throw new Error(`Unsupported scope "${renderUnsupportedValue(scope)}".`);
|
|
14
14
|
}
|
|
15
|
+
export function parseContextValue(context) {
|
|
16
|
+
if (context === 'project' || context === 'user')
|
|
17
|
+
return context;
|
|
18
|
+
throw new Error(`Unsupported context "${renderUnsupportedValue(context)}". Expected user or project.`);
|
|
19
|
+
}
|
|
20
|
+
export function parsePlatformTargetValue(platform) {
|
|
21
|
+
if (isPlatformTarget(platform))
|
|
22
|
+
return platform;
|
|
23
|
+
throw new Error(`Unsupported platform target "${renderUnsupportedValue(platform)}".`);
|
|
24
|
+
}
|
|
15
25
|
export function parsePlatformValue(platform) {
|
|
16
|
-
if (platform === '
|
|
26
|
+
if (platform === 'both' || isPlatformTarget(platform) && platform !== 'generic') {
|
|
17
27
|
return platform;
|
|
18
28
|
}
|
|
19
|
-
throw new Error(`Unsupported platform "${renderUnsupportedValue(platform)}". Expected one of:
|
|
29
|
+
throw new Error(`Unsupported platform "${renderUnsupportedValue(platform)}". Expected one of: ${NATIVE_PLATFORM_TARGETS.join(', ')}, both.`);
|
|
30
|
+
}
|
|
31
|
+
export function parseDependencyScopeOverrides(values) {
|
|
32
|
+
const inputs = values === undefined ? [] : typeof values === 'string' ? [values] : [...values];
|
|
33
|
+
const byKey = new Map();
|
|
34
|
+
for (const input of inputs) {
|
|
35
|
+
if (input !== input.trim() || input.trim() === '') {
|
|
36
|
+
throw new Error('Invalid dependency scope override: expected <pluginId>[#platform]=<project|user>.');
|
|
37
|
+
}
|
|
38
|
+
const separator = input.lastIndexOf('=');
|
|
39
|
+
if (separator <= 0 || separator !== input.indexOf('=')) {
|
|
40
|
+
throw new Error(`Invalid dependency scope override "${input}".`);
|
|
41
|
+
}
|
|
42
|
+
const selector = input.slice(0, separator);
|
|
43
|
+
const scope = parseScopeValue(input.slice(separator + 1));
|
|
44
|
+
const platformSeparator = selector.lastIndexOf('#');
|
|
45
|
+
const pluginId = platformSeparator < 0 ? selector : selector.slice(0, platformSeparator);
|
|
46
|
+
const parsed = parsePluginId(pluginId);
|
|
47
|
+
if (!parsed.sourceId) {
|
|
48
|
+
throw new Error(`Invalid dependency scope plugin ID "${pluginId}": expected source/plugin.`);
|
|
49
|
+
}
|
|
50
|
+
const canonicalPluginId = `${parsed.sourceId}/${parsed.pluginName}`;
|
|
51
|
+
const parsedPlatform = platformSeparator < 0
|
|
52
|
+
? undefined
|
|
53
|
+
: parsePlatformValue(selector.slice(platformSeparator + 1));
|
|
54
|
+
if (parsedPlatform === 'both') {
|
|
55
|
+
throw new Error('Invalid dependency scope platform: expected one concrete Agent platform.');
|
|
56
|
+
}
|
|
57
|
+
const key = `${canonicalPluginId}\0${parsedPlatform ?? '*'}`;
|
|
58
|
+
const current = byKey.get(key);
|
|
59
|
+
if (current && current.scope !== scope) {
|
|
60
|
+
throw new Error(`dependencyScopeOverrideConflict: ${canonicalPluginId}`
|
|
61
|
+
+ `${parsedPlatform ? `#${parsedPlatform}` : ''}`);
|
|
62
|
+
}
|
|
63
|
+
byKey.set(key, {
|
|
64
|
+
pluginId: canonicalPluginId,
|
|
65
|
+
...(parsedPlatform ? { platform: parsedPlatform } : {}),
|
|
66
|
+
scope,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return [...byKey.values()].sort((left, right) => {
|
|
70
|
+
const leftKey = `${left.pluginId}\0${left.platform ?? '*'}`;
|
|
71
|
+
const rightKey = `${right.pluginId}\0${right.platform ?? '*'}`;
|
|
72
|
+
return leftKey < rightKey ? -1 : leftKey > rightKey ? 1 : 0;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function normalizeDependencyScopeOverrides(overrides) {
|
|
76
|
+
return parseDependencyScopeOverrides(overrides.map((override) => `${override.pluginId}${override.platform ? `#${override.platform}` : ''}=${override.scope}`));
|
|
20
77
|
}
|
|
21
78
|
export function parseScriptTimeoutMs(value) {
|
|
22
79
|
const rendered = renderUnsupportedValue(value);
|
|
@@ -37,21 +94,6 @@ export function resolveScriptTimeoutMs(raw) {
|
|
|
37
94
|
const value = raw.scriptTimeoutMs ?? raw.scriptTimeout;
|
|
38
95
|
return value === undefined ? undefined : parseScriptTimeoutMs(value);
|
|
39
96
|
}
|
|
40
|
-
export function resolveConfigWriteScope(scope) {
|
|
41
|
-
return scope === undefined ? CONFIG_WRITE_DEFAULT_SCOPE : parseScopeValue(scope);
|
|
42
|
-
}
|
|
43
|
-
export function resolveConfigReadResolution(scope) {
|
|
44
|
-
return scope === undefined ? CONFIG_READ_DEFAULT_RESOLUTION : parseScopeValue(scope);
|
|
45
|
-
}
|
|
46
|
-
export function resolveConfigProjectLayer(raw = {}) {
|
|
47
|
-
if (!raw.local) {
|
|
48
|
-
return 'shared';
|
|
49
|
-
}
|
|
50
|
-
if (raw.scope !== 'project') {
|
|
51
|
-
throw new Error('`--local` 只能与 `--scope project` 一起使用。');
|
|
52
|
-
}
|
|
53
|
-
return 'local';
|
|
54
|
-
}
|
|
55
97
|
function resolveCwd(rawCwd, defaultCwd) {
|
|
56
98
|
return rawCwd ?? defaultCwd ?? process.cwd();
|
|
57
99
|
}
|
|
@@ -66,28 +108,26 @@ export function normalizeCommandOptions(raw = {}, defaults = {}) {
|
|
|
66
108
|
scope: parseScopeValue(raw.scope ?? defaults.defaultScope ?? 'user'),
|
|
67
109
|
platform: parsePlatformValue(platformInput ?? 'both'),
|
|
68
110
|
...(scriptTimeoutMs === undefined ? {} : { scriptTimeoutMs }),
|
|
69
|
-
...(raw.
|
|
111
|
+
...(raw.yes === true ? { yes: true } : {}),
|
|
70
112
|
};
|
|
71
113
|
}
|
|
72
114
|
export function normalizeInstallCommandOptions(raw = {}, defaults = {}) {
|
|
115
|
+
const normalized = normalizeCommandOptions(raw, {
|
|
116
|
+
defaultScope: 'user',
|
|
117
|
+
requirePlatform: true,
|
|
118
|
+
missingPlatformMessage: 'install 命令需要显式指定 `--platform codex|claude|both`。',
|
|
119
|
+
...defaults,
|
|
120
|
+
});
|
|
121
|
+
const dependencyScopeOverrides = [
|
|
122
|
+
...parseDependencyScopeOverrides(raw.dependencyScope),
|
|
123
|
+
...normalizeDependencyScopeOverrides(raw.dependencyScopeOverrides ?? []),
|
|
124
|
+
];
|
|
125
|
+
const normalizedDependencyScopeOverrides = normalizeDependencyScopeOverrides(dependencyScopeOverrides);
|
|
73
126
|
return {
|
|
74
|
-
...
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
...defaults,
|
|
79
|
-
}),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
export function normalizeUpgradeCommandOptions(raw = {}, defaults = {}) {
|
|
83
|
-
return {
|
|
84
|
-
...normalizeCommandOptions(raw, {
|
|
85
|
-
defaultScope: 'user',
|
|
86
|
-
requirePlatform: true,
|
|
87
|
-
missingPlatformMessage: 'upgrade 命令需要显式指定 `--platform codex|claude|both`。',
|
|
88
|
-
...defaults,
|
|
89
|
-
}),
|
|
90
|
-
all: raw.all,
|
|
127
|
+
...normalized,
|
|
128
|
+
...(normalizedDependencyScopeOverrides.length > 0
|
|
129
|
+
? { dependencyScopeOverrides: normalizedDependencyScopeOverrides }
|
|
130
|
+
: {}),
|
|
91
131
|
};
|
|
92
132
|
}
|
|
93
133
|
function parseStatusPlatformFilter(platform) {
|
|
@@ -108,21 +148,34 @@ export function normalizeStatusCommandOptions(raw = {}, defaults = {}) {
|
|
|
108
148
|
};
|
|
109
149
|
}
|
|
110
150
|
export function normalizeUninstallCommandOptions(raw = {}, defaults = {}) {
|
|
151
|
+
const supported = {
|
|
152
|
+
cwd: raw.cwd,
|
|
153
|
+
scope: raw.scope,
|
|
154
|
+
platform: raw.platform,
|
|
155
|
+
yes: raw.yes,
|
|
156
|
+
};
|
|
111
157
|
return {
|
|
112
|
-
...normalizeCommandOptions(
|
|
158
|
+
...normalizeCommandOptions(supported, {
|
|
113
159
|
defaultScope: 'user',
|
|
114
160
|
requirePlatform: true,
|
|
115
161
|
missingPlatformMessage: 'uninstall 命令需要显式指定 `--platform codex|claude|both`。',
|
|
116
162
|
...defaults,
|
|
117
163
|
}),
|
|
164
|
+
...(raw.force === true ? { force: true } : {}),
|
|
118
165
|
};
|
|
119
166
|
}
|
|
120
167
|
export function normalizeCleanupCommandOptions(raw = {}, defaults = {}) {
|
|
121
168
|
if (raw.scope === undefined) {
|
|
122
169
|
throw new Error('cleanup 命令需要显式指定 `--scope project|user`。');
|
|
123
170
|
}
|
|
171
|
+
const supported = {
|
|
172
|
+
cwd: raw.cwd,
|
|
173
|
+
scope: raw.scope,
|
|
174
|
+
platform: raw.platform,
|
|
175
|
+
yes: raw.yes,
|
|
176
|
+
};
|
|
124
177
|
const normalized = {
|
|
125
|
-
...normalizeCommandOptions(
|
|
178
|
+
...normalizeCommandOptions(supported, {
|
|
126
179
|
defaultScope: 'user',
|
|
127
180
|
requirePlatform: true,
|
|
128
181
|
missingPlatformMessage: 'cleanup 命令需要显式指定 `--platform codex|claude|both`。',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/commands/options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/commands/options.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAqDnG,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC7C,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAEhD,SAAS,sBAAsB,CAAC,KAAc;IAC5C,OAAO,OAAO,K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AAC;QACF,IAAI,EAAE,GAAG,CAAC,IAAI,KAAK,IAAI;QACvB,KAAK,EAAE,GAAG,CAAC,KAAK,KAAK,IAAI;KACM,CAAC;IAElC,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,MAAkC,EAAE,EACpC,WAA4C,EAAE;IAE9C,OAAO;QACL,GAAG,8BAA8B,CAAC,GAAG,EAAE;YACrC,YAAY,EAAE,MAAM;YACpB,eAAe,EAAE,IAAI;YACrB,sBAAsB,EAAE,oDAAoD;YAC5E,GAAG,QAAQ;SACZ,CAAC;QACF,IAAI,EAAE,GAAG,CAAC,IAAI,KAAK,IAAI;KACU,CAAC;AACtC,CAAC"}
|
|
@@ -4,78 +4,121 @@ const CLI_ADAPTER_PROVENANCE = '@lesliechan721/aw CLI authoring adapter';
|
|
|
4
4
|
const adapterFacts = {
|
|
5
5
|
manifest: {
|
|
6
6
|
dependencies: {
|
|
7
|
-
requires: 'Each dependency
|
|
7
|
+
requires: 'Each same-source dependency covers every supported consumer platform, including transitive edges.',
|
|
8
8
|
conflicts: 'The plugin itself, missing providers, and dependency cycles.',
|
|
9
9
|
},
|
|
10
|
-
|
|
11
|
-
profiles: '
|
|
12
|
-
requires: '
|
|
13
|
-
conflicts: '
|
|
14
|
-
provenance: ['CLI source
|
|
10
|
+
platforms: {
|
|
11
|
+
profiles: 'codex, claude, antigravity, cursor, opencode, pi, gemini, copilot, grok, generic',
|
|
12
|
+
requires: 'Omitted or empty platforms support all ten canonical targets; each selected projection must be valid.',
|
|
13
|
+
conflicts: 'Unknown or duplicate target IDs, distributions.agentSkills, and marketplace.policy.products.',
|
|
14
|
+
provenance: ['CLI source and bundle validators'],
|
|
15
15
|
},
|
|
16
|
-
|
|
17
|
-
profiles: '
|
|
18
|
-
requires: 'Each
|
|
19
|
-
|
|
20
|
-
provenance: ['CLI source plugin validator'],
|
|
21
|
-
},
|
|
22
|
-
'marketplace.policy.products': {
|
|
23
|
-
profiles: 'Omitted means CODEX and CLAUDE.',
|
|
24
|
-
provenance: ['CLI author validator'],
|
|
16
|
+
skills: {
|
|
17
|
+
profiles: 'Native platform packages and explicit-profile Agent Skills exports from one ./skills source root',
|
|
18
|
+
requires: 'Each final Skill has a production README.md and valid target metadata and resource closure.',
|
|
19
|
+
provenance: ['CLI target projection and Skill validators'],
|
|
25
20
|
},
|
|
26
21
|
},
|
|
27
22
|
'build-config': {
|
|
28
23
|
'buildConfig.cacheable': { requires: 'A deterministic scripts.node.build.' },
|
|
29
24
|
'buildConfig.runtimeExports': { conflicts: 'Skill, report, eval, generated, and dependency roots.' },
|
|
25
|
+
'buildConfig.runtimeExports[].requires.aw.capabilities': {
|
|
26
|
+
requires: 'The provider-owned complete capability set for this export; an empty set is valid.',
|
|
27
|
+
provenance: ['CLI runtime import resolver'],
|
|
28
|
+
},
|
|
30
29
|
'buildConfig.buildImports': { requires: 'scripts.node.build and a unique AW_PLUGIN_IMPORT_* environment variable.' },
|
|
31
|
-
'buildConfig.manifestOverrides.claude': { profiles: 'CLAUDE', requires: 'CLAUDE product support.' },
|
|
32
30
|
'buildConfig.skillRuntimeFiles': { requires: 'A declared static Skill and a target below references/, assets/, or scripts/.' },
|
|
33
|
-
'buildConfig.skillRuntimeFiles[].
|
|
34
|
-
profiles: '
|
|
35
|
-
requires: '
|
|
36
|
-
conflicts: '
|
|
31
|
+
'buildConfig.skillRuntimeFiles[].platforms': {
|
|
32
|
+
profiles: 'canonical target projection',
|
|
33
|
+
requires: 'A declared static Skill key and targets within plugin platforms.',
|
|
34
|
+
conflicts: 'Overlapping target selections for the same Skill runtime path; omitted or empty selection covers supported targets.',
|
|
37
35
|
},
|
|
38
36
|
'buildConfig.generatedSkillRuntimeFiles': {
|
|
39
|
-
requires: 'scripts.node.build creates each declared final target; omitted
|
|
37
|
+
requires: 'scripts.node.build creates each declared final target; omitted or empty platforms cover supported targets.',
|
|
40
38
|
provenance: ['CLI bundle validator'],
|
|
41
39
|
},
|
|
42
|
-
'buildConfig.generatedSkillRuntimeFiles[].
|
|
43
|
-
profiles: '
|
|
44
|
-
requires: '
|
|
45
|
-
conflicts: 'Omission selects native surfaces; explicit agent-skills selects only the portable surface.',
|
|
40
|
+
'buildConfig.generatedSkillRuntimeFiles[].platforms': {
|
|
41
|
+
profiles: 'canonical target projection',
|
|
42
|
+
requires: 'A declared static Skill key and targets within plugin platforms.',
|
|
46
43
|
provenance: ['CLI bundle validator'],
|
|
47
44
|
},
|
|
48
45
|
},
|
|
49
46
|
extensions: {
|
|
50
|
-
'extensions.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
'
|
|
47
|
+
'extensions.permissions[].agentOverrides.claude.sandbox.excludedCommands': {
|
|
48
|
+
profiles: 'CLAUDE',
|
|
49
|
+
requires: 'aw.claude.sandbox-exclusions.v1; a validated command reference. Independent of allow.',
|
|
50
|
+
conflicts: 'Plain strings, Codex overrides, and widening to all aw commands.',
|
|
51
|
+
provenance: ['CLI managed command reference resolver and Claude permission writer'],
|
|
52
|
+
},
|
|
53
|
+
'extensions.nativeHooks.claude': { profiles: 'CLAUDE', requires: 'claude target support.' },
|
|
54
|
+
'extensions.nativeHooks.codex': { profiles: 'CODEX', requires: 'codex target support.' },
|
|
57
55
|
},
|
|
58
|
-
|
|
56
|
+
mcp: {
|
|
59
57
|
'mcpServers.<key>.command': { conflicts: 'url' },
|
|
60
58
|
'mcpServers.<key>.url': { conflicts: 'command' },
|
|
61
|
-
'apps.<key>.id': {
|
|
62
|
-
profiles: 'CODEX user scope',
|
|
63
|
-
conflicts: 'CLAUDE-only plugins and Codex project scope.',
|
|
64
|
-
},
|
|
65
59
|
},
|
|
66
60
|
config: {
|
|
67
61
|
'config.presentation': { conflicts: 'Schema mutation and sensitive or path values in presets.' },
|
|
68
62
|
},
|
|
69
|
-
|
|
70
|
-
'scripts.
|
|
63
|
+
'pre-apply': {
|
|
64
|
+
'scripts.preApply': { requires: 'A Node entry inside the plugin root.' },
|
|
71
65
|
},
|
|
72
66
|
artifacts: {
|
|
73
|
-
'scripts.artifacts.render': {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
67
|
+
'scripts.artifacts.render': {
|
|
68
|
+
requires: 'artifacts input permissions, dynamic command sets, or render:true command packages.',
|
|
69
|
+
},
|
|
70
|
+
'artifacts.configKeys': {
|
|
71
|
+
requires: 'Fields exist in the selected platform Config v5 profile; Skill batches contain only the non-sensitive dependency closure.',
|
|
72
|
+
},
|
|
73
|
+
'artifacts.sourceDirs': {
|
|
74
|
+
requires: 'Verified bundle-relative input directories; these do not declare final component identities.',
|
|
75
|
+
},
|
|
76
|
+
'artifacts.runtimeImports': {
|
|
77
|
+
requires: 'Provider-owned runtime exports resolved into the consumer bundle and bound by digest.',
|
|
78
|
+
},
|
|
79
|
+
'artifacts.scopes': {
|
|
80
|
+
requires: 'The physical resource render scope; an excluded scope intentionally offers no dynamic components.',
|
|
81
|
+
},
|
|
82
|
+
'rendererContext.platformCapabilities': {
|
|
83
|
+
requires: 'The qualified capability input for the exact render unit; offline preparation uses basis=profile.',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
'platform-components': {
|
|
87
|
+
components: { requires: 'The complete v3 component set for the allowed output kinds; omitted and unmet are explicit arrays.' },
|
|
88
|
+
'components[].runtimeConfig.keys': { requires: 'aw.installed-runtime-config.v2 and a qualified native profile; a non-sensitive artifacts.configKeys subset.' },
|
|
89
|
+
},
|
|
90
|
+
'platform-capabilities': {
|
|
91
|
+
basis: { requires: 'Author preparation uses profile; local is reserved for actual consumer observations.' },
|
|
92
|
+
},
|
|
93
|
+
'native-tools': {
|
|
94
|
+
nativeTools: {
|
|
95
|
+
requires: 'aw.native-tools.v2. Installed protocol requirements and consumer bindings are reviewed before producer publication.',
|
|
96
|
+
provenance: ['CLI installed producer evidence and managed command host'],
|
|
97
|
+
},
|
|
98
|
+
'nativeTools.consumers[].kind': {
|
|
99
|
+
requires: 'Managed command sets prepare the installed host tool before spawn; plugin tests use the installed host tool or an explicit test fixture.',
|
|
100
|
+
conflicts: 'Uncontrolled hooks, MCP entry paths, implicit package discovery, or source sync changing installed command evidence.',
|
|
101
|
+
},
|
|
102
|
+
'nativeTools.consumers[].tools[].fallback': {
|
|
103
|
+
requires: 'Preferred consumers use the same protocol contract for native and portable backends; backend selection remains fixed after launch.',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
'managed-commands': {
|
|
107
|
+
managedCommands: {
|
|
108
|
+
requires: 'aw.managed-commands.v1. Bindings publish only after the producer succeeds.',
|
|
109
|
+
provenance: ['CLI managed command materialization and resolver'],
|
|
110
|
+
},
|
|
111
|
+
'managedCommands.packages[].sourceDir': {
|
|
112
|
+
requires: 'A complete runnable directory in the fixed bundle; only ordinary files and directories.',
|
|
113
|
+
conflicts: 'Links, protected trees, executable entry replacement by generated files.',
|
|
114
|
+
},
|
|
115
|
+
'managedCommands.packages[].scope': {
|
|
116
|
+
requires: 'One fixed effective configuration per producer; project producers bind the canonical project location.',
|
|
117
|
+
conflicts: 'User/shared-user consumers referring to project packages.',
|
|
118
|
+
},
|
|
119
|
+
'Skill Markdown placeholder': {
|
|
120
|
+
requires: 'A validated candidate or healthy installed producer in the same source/plugin and legal scope.',
|
|
121
|
+
conflicts: 'Generic export profiles and unresolved, disabled, foreign, or other-placement commands.',
|
|
79
122
|
},
|
|
80
123
|
},
|
|
81
124
|
};
|