@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
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import crypto from 'node:crypto';
|
|
2
2
|
import os from 'node:os';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
+
import { stripVTControlCharacters } from 'node:util';
|
|
4
5
|
import fs from 'fs-extra';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { isPlatformTarget, PLATFORM_TARGETS, resolveSupportedPlatforms } from '@lesliechan721/aw-plugin-core';
|
|
7
|
+
import { createIsolatedSkillEnv, materializeProfilePluginComponents, prepareSkillPluginBundle } from '../review/skill-materialization.js';
|
|
8
|
+
import { parsePortableSkillFrontmatter, validatePortableSkillDirectory, } from '../utils/dynamic-skill-tree.js';
|
|
9
|
+
import { writePluginConfigStore } from '../utils/plugin-config.js';
|
|
10
|
+
import { getAuthoringPlatformCapabilities } from '../review/platform-profile.js';
|
|
9
11
|
import { resolvePluginMetaDependencyClosure } from '../utils/plugin-dependencies.js';
|
|
10
|
-
import {
|
|
12
|
+
import { checkAwCapabilitySupport, readPluginManifest, } from '../utils/manifest.js';
|
|
11
13
|
import { withResolvedCatalogPlugin } from '../utils/multi-source-catalog.js';
|
|
12
|
-
import { collectSensitivePluginConfigValues } from '../utils/plugin-scripts.js';
|
|
13
14
|
import { validateRuntimeSkillClosure } from '../utils/runtime-skill-closure.js';
|
|
14
|
-
import { isSkillAuthorOnlyPath } from '../utils/skill-authoring.js';
|
|
15
15
|
import { validateCatalogSnapshotPluginEntriesComplete } from '../utils/catalog-snapshot.js';
|
|
16
16
|
import { AwCapabilityUnsupportedError, IMPLEMENTED_AW_CAPABILITIES, } from '../commands/aw-capabilities.js';
|
|
17
|
+
import { resolveCatalogSnapshotBindingSource, resolvePortablePluginProfileConfig, resolvePortableProfileBindingInputs, } from '../review/source-binding.js';
|
|
18
|
+
export function assertPortablePlatform(platform) {
|
|
19
|
+
if (!isPlatformTarget(platform)) {
|
|
20
|
+
throw new Error(`Skill export requires an explicit canonical platform: ${PLATFORM_TARGETS.join(', ')}.`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
17
23
|
function pluginId(plugin) {
|
|
18
24
|
return plugin.pluginId ?? (plugin.sourceId
|
|
19
25
|
? `${plugin.sourceId}/${plugin.manifest.name}`
|
|
@@ -56,10 +62,25 @@ function stableDigest(entries) {
|
|
|
56
62
|
function treeDigest(tree) {
|
|
57
63
|
return stableDigest(Object.entries(tree.files).sort(([left], [right]) => left.localeCompare(right)));
|
|
58
64
|
}
|
|
59
|
-
function
|
|
65
|
+
function skillDescriptions(tree) {
|
|
60
66
|
const content = tree.files['SKILL.md']?.toString('utf8') ?? '';
|
|
61
67
|
const frontmatter = parsePortableSkillFrontmatter(content);
|
|
62
|
-
|
|
68
|
+
const description = typeof frontmatter.description === 'string' ? frontmatter.description : '';
|
|
69
|
+
const metadata = frontmatter.metadata;
|
|
70
|
+
const short = typeof metadata === 'object' && metadata !== null && !Array.isArray(metadata)
|
|
71
|
+
? metadata['short-description'] : undefined;
|
|
72
|
+
const fromMetadata = typeof short === 'string' && short.trim().length > 0;
|
|
73
|
+
const safe = stripVTControlCharacters(fromMetadata ? short : description)
|
|
74
|
+
.replace(/\s+/gu, ' ')
|
|
75
|
+
.replace(/[\u0000-\u001f\u007f-\u009f\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/gu, '')
|
|
76
|
+
.trim();
|
|
77
|
+
const sentence = fromMetadata ? safe : safe.match(/^.*?(?:[。!?]|[.!?](?=\s|$)|$)/u)?.[0] ?? safe;
|
|
78
|
+
const points = [...sentence];
|
|
79
|
+
return {
|
|
80
|
+
description,
|
|
81
|
+
shortDescription: points.length > 120 ? `${points.slice(0, 119).join('')}…` : sentence,
|
|
82
|
+
shortDescriptionSource: fromMetadata ? 'metadata' : 'fallback',
|
|
83
|
+
};
|
|
63
84
|
}
|
|
64
85
|
async function copyTreeFiles(files, targetRoot) {
|
|
65
86
|
for (const [relativePath, content] of Object.entries(files)) {
|
|
@@ -68,268 +89,119 @@ async function copyTreeFiles(files, targetRoot) {
|
|
|
68
89
|
await fs.writeFile(targetPath, content);
|
|
69
90
|
}
|
|
70
91
|
}
|
|
71
|
-
async function
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
else if (entry.isFile()) {
|
|
89
|
-
files[relativePath] = await fs.readFile(absolutePath);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
throw new Error(`Portable Skill source contains a non-regular file: ${relativePath}.`);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
await visit(sourceRoot);
|
|
97
|
-
}
|
|
98
|
-
function assertNoSensitiveValues(candidate, sensitiveValues) {
|
|
99
|
-
for (const [relativePath, content] of Object.entries(candidate.tree.files)) {
|
|
100
|
-
const text = content.toString('utf8');
|
|
101
|
-
if (/\{\{[^{}]+\}\}/u.test(text)) {
|
|
102
|
-
throw new Error(`Portable Skill "${candidate.tree.skillKey}" contains an unresolved template in "${relativePath}".`);
|
|
103
|
-
}
|
|
104
|
-
const leaked = sensitiveValues.find((value) => value.length > 0 && text.includes(value));
|
|
105
|
-
if (leaked) {
|
|
106
|
-
throw new Error(`Portable Skill "${candidate.tree.skillKey}" exposes sensitive config in "${relativePath}".`);
|
|
92
|
+
async function materializePluginCandidates(options) {
|
|
93
|
+
const profileConfig = options.profileConfig ?? await resolvePortablePluginProfileConfig({ ...options });
|
|
94
|
+
options.recordConfigDigest(pluginId(options.plugin), profileConfig.digest);
|
|
95
|
+
const stagingRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'aw-profile-skills-'));
|
|
96
|
+
try {
|
|
97
|
+
const materialized = await materializeProfilePluginComponents({
|
|
98
|
+
...options, outputRoot: stagingRoot, kinds: ['skill'], config: profileConfig.config,
|
|
99
|
+
selectedSkills: options.selectedSkills ? [...options.selectedSkills] : undefined,
|
|
100
|
+
});
|
|
101
|
+
options.recordPreparation(materialized.preparation.map((unit) => ({ ...unit, outputs: [] })));
|
|
102
|
+
const output = [];
|
|
103
|
+
for (const skill of materialized.skills) {
|
|
104
|
+
const tree = await validatePortableSkillDirectory(skill.path);
|
|
105
|
+
const candidate = { plugin: options.plugin, relation: options.relation, dynamic: skill.dynamic, tree };
|
|
106
|
+
assertNoUnresolvedTemplates(candidate);
|
|
107
|
+
output.push(candidate);
|
|
107
108
|
}
|
|
109
|
+
return output;
|
|
108
110
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
const imports = (plugin.manifest.artifacts?.targets ?? [])
|
|
112
|
-
.filter((target) => target.distribution === 'agent-skills')
|
|
113
|
-
.flatMap((target) => target.runtimeImports ?? []);
|
|
114
|
-
for (const runtimeImport of imports) {
|
|
115
|
-
await assertRuntimeImport(plugin, runtimeImport);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
async function assertRuntimeImport(plugin, runtimeImport) {
|
|
119
|
-
if (!runtimeImport.resolved) {
|
|
120
|
-
throw new Error(`Artifact runtime import "${runtimeImport.name}" is not resolved in the consumer bundle.`);
|
|
121
|
-
}
|
|
122
|
-
const root = await fs.realpath(plugin.rootDir);
|
|
123
|
-
const importPath = path.join(root, runtimeImport.resolved.path.replace(/^\.\//u, ''));
|
|
124
|
-
const stats = await fs.lstat(importPath).catch(() => undefined);
|
|
125
|
-
if (!stats?.isFile() || stats.isSymbolicLink()) {
|
|
126
|
-
throw new Error(`Artifact runtime import "${runtimeImport.name}" is missing from the consumer bundle.`);
|
|
127
|
-
}
|
|
128
|
-
const realImport = await fs.realpath(importPath);
|
|
129
|
-
const relative = path.relative(root, realImport);
|
|
130
|
-
if (relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative)) {
|
|
131
|
-
throw new Error(`Artifact runtime import "${runtimeImport.name}" escapes the consumer bundle.`);
|
|
132
|
-
}
|
|
133
|
-
if (await calculateFileDigest(realImport) !== runtimeImport.resolved.digest) {
|
|
134
|
-
throw new Error(`Artifact runtime import "${runtimeImport.name}" has an invalid digest.`);
|
|
111
|
+
finally {
|
|
112
|
+
await fs.remove(stagingRoot);
|
|
135
113
|
}
|
|
136
114
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return [];
|
|
142
|
-
const dynamicTargets = (options.plugin.manifest.artifacts?.targets ?? [])
|
|
143
|
-
.filter((target) => target.distribution === 'agent-skills'
|
|
144
|
-
&& target.scopes.includes(options.scope));
|
|
145
|
-
const dynamicKeys = new Set((options.plugin.manifest.artifacts?.targets ?? [])
|
|
146
|
-
.filter((target) => target.target === 'agent-skills.skill')
|
|
147
|
-
.map((target) => target.skillKey));
|
|
148
|
-
const output = [];
|
|
149
|
-
const config = await resolveArtifactRenderConfig({
|
|
150
|
-
sourceId: options.plugin.sourceId,
|
|
151
|
-
sourceIdentity: options.plugin.sourceIdentity,
|
|
152
|
-
pluginName: options.plugin.manifest.name,
|
|
153
|
-
manifest: options.plugin.manifest,
|
|
154
|
-
scope: options.scope,
|
|
155
|
-
cwd: options.cwd,
|
|
156
|
-
env: options.env,
|
|
157
|
-
});
|
|
158
|
-
if (config.issues.length > 0) {
|
|
159
|
-
throw new Error(`Portable materialization config is invalid: ${config.issues.map((issue) => issue.message).join('; ')}`);
|
|
160
|
-
}
|
|
161
|
-
options.recordConfigDigest(pluginId(options.plugin), `sha256:${crypto.createHash('sha256').update(JSON.stringify(config.values)).digest('hex')}`);
|
|
162
|
-
const staticRoot = distribution.skills
|
|
163
|
-
? path.join(options.plugin.rootDir, distribution.skills.replace(/^\.\//u, ''))
|
|
164
|
-
: undefined;
|
|
165
|
-
if (staticRoot) {
|
|
166
|
-
const rootStats = await fs.lstat(staticRoot).catch(() => undefined);
|
|
167
|
-
if (!rootStats?.isDirectory() || rootStats.isSymbolicLink()) {
|
|
168
|
-
throw new Error('Portable Skills root must be a regular directory.');
|
|
169
|
-
}
|
|
170
|
-
const entries = await fs.readdir(staticRoot, { withFileTypes: true });
|
|
171
|
-
for (const entry of entries.sort((left, right) => left.name.localeCompare(right.name))) {
|
|
172
|
-
const entryStats = await fs.lstat(path.join(staticRoot, entry.name)).catch(() => undefined);
|
|
173
|
-
if (!entryStats?.isDirectory() || entryStats.isSymbolicLink()) {
|
|
174
|
-
throw new Error(`Portable Skills root direct child must be a regular directory: ${entry.name}.`);
|
|
175
|
-
}
|
|
176
|
-
if (dynamicKeys.has(entry.name))
|
|
177
|
-
continue;
|
|
178
|
-
output.push({
|
|
179
|
-
plugin: options.plugin,
|
|
180
|
-
relation: options.relation,
|
|
181
|
-
dynamic: false,
|
|
182
|
-
tree: await validatePortableSkillDirectory(path.join(staticRoot, entry.name)),
|
|
183
|
-
});
|
|
115
|
+
function assertNoUnresolvedTemplates(candidate) {
|
|
116
|
+
for (const [file, bytes] of Object.entries(candidate.tree.files)) {
|
|
117
|
+
if (/\{\{[^{}]+\}\}/u.test(bytes.toString('utf8'))) {
|
|
118
|
+
throw new Error(`Portable Skill "${candidate.tree.skillKey}" has an unresolved template in ${file}.`);
|
|
184
119
|
}
|
|
185
120
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
if (JSON.stringify(parsedReceipt) !== JSON.stringify(receipt)) {
|
|
204
|
-
throw new Error(`Portable Skill "${candidate.tree.skillKey}" has a mismatched reserved requirements receipt.`);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
candidate.tree.files[AW_PLUGIN_REQUIREMENTS_RECEIPT_PATH] = receiptBytes;
|
|
209
|
-
}
|
|
210
|
-
assertNoSensitiveValues(candidate, sensitiveValues);
|
|
121
|
+
}
|
|
122
|
+
async function resolvePortableCatalogPlugins(options) {
|
|
123
|
+
const entriesByName = new Map(options.source.manifest.entries.map((entry) => [entry.name, entry]));
|
|
124
|
+
const closureNames = [];
|
|
125
|
+
const seen = new Set();
|
|
126
|
+
const visit = (name) => {
|
|
127
|
+
if (seen.has(name))
|
|
128
|
+
return;
|
|
129
|
+
const entry = entriesByName.get(name);
|
|
130
|
+
if (!entry)
|
|
131
|
+
throw new Error(`Portable plugin "${name}" is missing from its catalog source.`);
|
|
132
|
+
seen.add(name);
|
|
133
|
+
for (const dependency of entry.dependencies)
|
|
134
|
+
visit(dependency);
|
|
135
|
+
const support = checkAwCapabilitySupport(entry.requires.aw.capabilities ?? [], IMPLEMENTED_AW_CAPABILITIES);
|
|
136
|
+
if (!support.supported) {
|
|
137
|
+
throw new AwCapabilityUnsupportedError(`${options.source.sourceId}/${name}`, support.missing);
|
|
211
138
|
}
|
|
212
|
-
|
|
139
|
+
closureNames.push(name);
|
|
213
140
|
};
|
|
214
|
-
|
|
215
|
-
|
|
141
|
+
visit(options.requestedPlugin.manifest.name);
|
|
142
|
+
await validateCatalogSnapshotPluginEntriesComplete(options.source.rootDir, closureNames);
|
|
143
|
+
const plugins = await Promise.all(closureNames.map((name) => readPluginManifest(path.join(options.source.rootDir, 'plugins', name), { mode: 'bundle' })));
|
|
144
|
+
for (const plugin of plugins) {
|
|
145
|
+
plugin.sourceId = options.source.sourceId;
|
|
146
|
+
plugin.sourceIdentity = options.source.sourceIdentity;
|
|
147
|
+
plugin.catalogLogicalIdentity = options.source.logicalIdentity;
|
|
148
|
+
plugin.pluginId = `${options.source.sourceId}/${plugin.manifest.name}`;
|
|
216
149
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
signal: options.signal,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
if (artifact.target !== 'agent-skills.skill' || artifact.state === 'disabled')
|
|
243
|
-
continue;
|
|
244
|
-
const files = {};
|
|
245
|
-
for (const sourceDir of sourcesById.get(artifact.id)?.sourceDirs ?? []) {
|
|
246
|
-
await overlayDirectory(sourceDir, files);
|
|
247
|
-
}
|
|
248
|
-
for (const projection of portableRuntimeProjections.filter((entry) => entry.skill === artifact.skillKey)) {
|
|
249
|
-
const expectedPath = `./agent-skills/skills/${artifact.skillKey}/${projection.target}`;
|
|
250
|
-
if (projection.path !== expectedPath
|
|
251
|
-
|| projection.target.includes('\\')
|
|
252
|
-
|| path.posix.normalize(projection.target) !== projection.target
|
|
253
|
-
|| !/^(?:references|assets|scripts)\/.+/u.test(projection.target)) {
|
|
254
|
-
throw new Error(`Portable runtime projection "${artifact.skillKey}/${projection.target}" has an invalid bundle path.`);
|
|
255
|
-
}
|
|
256
|
-
const projectionPath = path.join(options.plugin.rootDir, projection.path.replace(/^\.\//u, ''));
|
|
257
|
-
if (await calculateFileDigest(projectionPath) !== projection.digest) {
|
|
258
|
-
throw new Error(`Portable runtime projection "${artifact.skillKey}/${projection.target}" has an invalid digest.`);
|
|
259
|
-
}
|
|
260
|
-
files[projection.target] = await fs.readFile(projectionPath);
|
|
261
|
-
}
|
|
262
|
-
for (const [relativePath, content] of Object.entries(artifact.content?.files ?? {})) {
|
|
263
|
-
if (isSkillAuthorOnlyPath(relativePath)) {
|
|
264
|
-
throw new Error(`Portable dynamic Skill "${artifact.skillKey}" renderer returned author-only path "${relativePath}".`);
|
|
265
|
-
}
|
|
266
|
-
if (relativePath === AW_PLUGIN_REQUIREMENTS_RECEIPT_PATH) {
|
|
267
|
-
throw new Error(`Portable dynamic Skill renderer cannot declare reserved file "${AW_PLUGIN_REQUIREMENTS_RECEIPT_PATH}".`);
|
|
268
|
-
}
|
|
269
|
-
files[relativePath] = Buffer.from(content, 'utf8');
|
|
270
|
-
}
|
|
271
|
-
const stagingRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'aw-portable-tree-'));
|
|
272
|
-
try {
|
|
273
|
-
const skillRoot = path.join(stagingRoot, artifact.skillKey);
|
|
274
|
-
await copyTreeFiles(files, skillRoot);
|
|
275
|
-
output.push({
|
|
276
|
-
plugin: options.plugin,
|
|
277
|
-
relation: options.relation,
|
|
278
|
-
dynamic: true,
|
|
279
|
-
tree: await validatePortableSkillDirectory(skillRoot),
|
|
150
|
+
return plugins;
|
|
151
|
+
}
|
|
152
|
+
export async function resolvePortableCatalogBindingInput(options) {
|
|
153
|
+
assertPortablePlatform(options.platform);
|
|
154
|
+
return withResolvedCatalogPlugin({
|
|
155
|
+
selector: options.selector,
|
|
156
|
+
cliVersion: options.cliVersion,
|
|
157
|
+
...(options.env ? { env: options.env } : {}),
|
|
158
|
+
...(options.signal ? { signal: options.signal } : {}),
|
|
159
|
+
...(options.configSnapshot ? { configSnapshot: options.configSnapshot } : {}),
|
|
160
|
+
...(options.catalogOperationContext
|
|
161
|
+
? { operationContext: options.catalogOperationContext }
|
|
162
|
+
: {}),
|
|
163
|
+
consume: async ({ source, plugin: requestedPlugin }) => {
|
|
164
|
+
const plugins = await resolvePortableCatalogPlugins({ source, requestedPlugin });
|
|
165
|
+
const inputs = await resolvePortableProfileBindingInputs({
|
|
166
|
+
plugins,
|
|
167
|
+
pluginName: requestedPlugin.manifest.name,
|
|
168
|
+
platform: options.platform,
|
|
169
|
+
scope: options.scope,
|
|
170
|
+
cwd: options.cwd,
|
|
171
|
+
env: options.env,
|
|
172
|
+
sourceId: source.sourceId,
|
|
173
|
+
catalogSourceIdentity: source.sourceIdentity,
|
|
174
|
+
logicalIdentity: source.logicalIdentity,
|
|
280
175
|
});
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
176
|
+
return {
|
|
177
|
+
source: await resolveCatalogSnapshotBindingSource(source),
|
|
178
|
+
subject: { plugin: requestedPlugin.manifest.name },
|
|
179
|
+
profile: inputs.profile,
|
|
180
|
+
providerConfigs: inputs.providerConfigs,
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
});
|
|
287
184
|
}
|
|
288
185
|
export async function materializePortableSkillsFromCatalog(options) {
|
|
186
|
+
assertPortablePlatform(options.platform);
|
|
289
187
|
const operationRoot = await fs.mkdtemp(path.join(os.tmpdir(), 'aw-portable-operation-'));
|
|
290
188
|
const outputRoot = path.join(operationRoot, 'materialized');
|
|
291
189
|
try {
|
|
292
190
|
const metadata = await withResolvedCatalogPlugin({
|
|
293
191
|
selector: options.selector,
|
|
294
192
|
cliVersion: options.cliVersion,
|
|
295
|
-
freshnessPolicy: options.freshnessPolicy ?? 'cacheFirst',
|
|
296
193
|
...(options.env ? { env: options.env } : {}),
|
|
297
194
|
...(options.signal ? { signal: options.signal } : {}),
|
|
298
195
|
...(options.configSnapshot ? { configSnapshot: options.configSnapshot } : {}),
|
|
299
|
-
...(options.providers ? { providers: options.providers } : {}),
|
|
300
196
|
...(options.catalogOperationContext
|
|
301
197
|
? { operationContext: options.catalogOperationContext }
|
|
302
198
|
: {}),
|
|
303
199
|
consume: async ({ pluginId: resolvedPluginId, source, plugin: requestedPlugin }) => {
|
|
304
|
-
const
|
|
305
|
-
const closureNames = [];
|
|
306
|
-
const seen = new Set();
|
|
307
|
-
const visit = (name) => {
|
|
308
|
-
if (seen.has(name))
|
|
309
|
-
return;
|
|
310
|
-
const entry = entriesByName.get(name);
|
|
311
|
-
if (!entry)
|
|
312
|
-
throw new Error(`Portable plugin "${name}" is missing from its catalog source.`);
|
|
313
|
-
seen.add(name);
|
|
314
|
-
for (const dependency of entry.dependencies)
|
|
315
|
-
visit(dependency);
|
|
316
|
-
const support = checkAwCapabilitySupport(entry.requires.aw.capabilities ?? [], IMPLEMENTED_AW_CAPABILITIES);
|
|
317
|
-
if (!support.supported) {
|
|
318
|
-
throw new AwCapabilityUnsupportedError(`${source.sourceId}/${name}`, support.missing);
|
|
319
|
-
}
|
|
320
|
-
closureNames.push(name);
|
|
321
|
-
};
|
|
322
|
-
visit(requestedPlugin.manifest.name);
|
|
323
|
-
await validateCatalogSnapshotPluginEntriesComplete(source.rootDir, closureNames);
|
|
324
|
-
const plugins = await Promise.all(closureNames.map((name) => readPluginManifest(path.join(source.rootDir, 'plugins', name), { mode: 'bundle' })));
|
|
325
|
-
for (const plugin of plugins) {
|
|
326
|
-
plugin.sourceId = source.sourceId;
|
|
327
|
-
plugin.sourceIdentity = source.sourceIdentity;
|
|
328
|
-
plugin.pluginId = `${source.sourceId}/${plugin.manifest.name}`;
|
|
329
|
-
}
|
|
200
|
+
const plugins = await resolvePortableCatalogPlugins({ source, requestedPlugin });
|
|
330
201
|
const materialized = await materializePortableSkills({
|
|
331
202
|
plugins,
|
|
332
203
|
pluginId: resolvedPluginId,
|
|
204
|
+
platform: options.platform,
|
|
333
205
|
scope: options.scope,
|
|
334
206
|
cwd: options.cwd,
|
|
335
207
|
env: options.env,
|
|
@@ -342,11 +214,14 @@ export async function materializePortableSkillsFromCatalog(options) {
|
|
|
342
214
|
sourceId: source.sourceId,
|
|
343
215
|
sourceIdentity: source.sourceIdentity,
|
|
344
216
|
pluginVersion: requestedPlugin.manifest.version,
|
|
217
|
+
platform: materialized.platform,
|
|
345
218
|
scope: materialized.scope,
|
|
219
|
+
preparation: materialized.preparation,
|
|
346
220
|
candidates: materialized.candidates,
|
|
347
221
|
dependencyPluginIds: materialized.dependencyPluginIds,
|
|
348
222
|
configDigest: materialized.configDigest,
|
|
349
223
|
digest: materialized.digest,
|
|
224
|
+
sourceBindingSource: await resolveCatalogSnapshotBindingSource(source),
|
|
350
225
|
};
|
|
351
226
|
},
|
|
352
227
|
});
|
|
@@ -363,12 +238,18 @@ export async function materializePortableSkillsFromCatalog(options) {
|
|
|
363
238
|
}
|
|
364
239
|
}
|
|
365
240
|
export async function materializePortableSkills(options) {
|
|
241
|
+
assertPortablePlatform(options.platform);
|
|
366
242
|
const requested = resolveRequestedPlugin(options.plugins, options.pluginId);
|
|
367
|
-
if (!requested.manifest.
|
|
368
|
-
throw new Error(`Plugin "${pluginId(requested)}" does not
|
|
243
|
+
if (!resolveSupportedPlatforms(requested.manifest).has(options.platform)) {
|
|
244
|
+
throw new Error(`Plugin "${pluginId(requested)}" does not support platform "${options.platform}".`);
|
|
369
245
|
}
|
|
370
246
|
const closure = resolvePluginMetaDependencyClosure(options.plugins, [requested.manifest.name]);
|
|
371
247
|
assertSameSource(requested, closure);
|
|
248
|
+
for (const plugin of closure) {
|
|
249
|
+
if (!resolveSupportedPlatforms(plugin.manifest).has(options.platform)) {
|
|
250
|
+
throw new Error(`Portable dependency "${pluginId(plugin)}" does not support platform "${options.platform}".`);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
372
253
|
const createdRoot = options.outputRoot === undefined;
|
|
373
254
|
const rootDir = options.outputRoot
|
|
374
255
|
? path.resolve(options.outputRoot)
|
|
@@ -380,22 +261,67 @@ export async function materializePortableSkills(options) {
|
|
|
380
261
|
await fs.ensureDir(rootDir);
|
|
381
262
|
}
|
|
382
263
|
const skillsRoot = path.join(rootDir, 'skills');
|
|
383
|
-
const
|
|
264
|
+
const profileConfigs = await Promise.all(closure.map(async (plugin) => ({
|
|
265
|
+
plugin,
|
|
266
|
+
config: await resolvePortablePluginProfileConfig({ ...options, plugin, env: options.env ?? process.env }),
|
|
267
|
+
})));
|
|
268
|
+
const env = await createIsolatedSkillEnv(options.env ?? process.env, path.join(rootDir, '.environment'));
|
|
269
|
+
for (const { plugin, config } of profileConfigs) {
|
|
270
|
+
await writePluginConfigStore({
|
|
271
|
+
sourceId: plugin.sourceId, sourceIdentity: plugin.sourceIdentity, logicalIdentity: plugin.catalogLogicalIdentity,
|
|
272
|
+
pluginName: plugin.manifest.name, platform: options.platform, scope: options.scope,
|
|
273
|
+
cwd: options.cwd, env, values: config.config.values,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
384
276
|
try {
|
|
385
277
|
const trees = [];
|
|
386
278
|
const configDigests = [];
|
|
279
|
+
const preparation = [];
|
|
280
|
+
const selectedSkills = options.selectedSkills
|
|
281
|
+
? new Set(options.selectedSkills)
|
|
282
|
+
: undefined;
|
|
283
|
+
if (selectedSkills?.size !== options.selectedSkills?.length) {
|
|
284
|
+
throw new Error('Portable Skill selection contains duplicate names.');
|
|
285
|
+
}
|
|
387
286
|
for (const plugin of closure) {
|
|
388
287
|
options.signal?.throwIfAborted();
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
288
|
+
if (selectedSkills && plugin.manifest.name !== requested.manifest.name)
|
|
289
|
+
continue;
|
|
290
|
+
const prepared = options.inputMode === 'bundle' ? undefined : await prepareSkillPluginBundle({
|
|
291
|
+
plugin, plugins: options.plugins, workRoot: path.join(rootDir, '.prepare'), env,
|
|
292
|
+
});
|
|
293
|
+
try {
|
|
294
|
+
const candidatePlugin = prepared?.bundlePlugin ?? plugin;
|
|
295
|
+
trees.push(...await materializePluginCandidates({
|
|
296
|
+
plugins: options.plugins.map((entry) => entry === plugin ? candidatePlugin : entry),
|
|
297
|
+
plugin: candidatePlugin,
|
|
298
|
+
relation: relationFor(requested, plugin),
|
|
299
|
+
platform: options.platform,
|
|
300
|
+
scope: options.scope,
|
|
301
|
+
cwd: options.cwd,
|
|
302
|
+
env,
|
|
303
|
+
signal: options.signal,
|
|
304
|
+
inputMode: 'bundle',
|
|
305
|
+
profileConfig: profileConfigs.find((entry) => entry.plugin.manifest.name === plugin.manifest.name).config,
|
|
306
|
+
...(selectedSkills ? { selectedSkills } : {}),
|
|
307
|
+
recordConfigDigest: (id, configDigest) => configDigests.push([id, configDigest]),
|
|
308
|
+
recordPreparation: (entries) => preparation.push(...entries),
|
|
309
|
+
}));
|
|
310
|
+
}
|
|
311
|
+
finally {
|
|
312
|
+
await prepared?.cleanup();
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
await fs.remove(path.join(rootDir, '.prepare'));
|
|
316
|
+
await fs.remove(path.join(rootDir, '.environment'));
|
|
317
|
+
if (selectedSkills) {
|
|
318
|
+
const materializedNames = new Set(trees.map((candidate) => candidate.tree.skillKey));
|
|
319
|
+
const missing = [...selectedSkills]
|
|
320
|
+
.filter((skill) => !materializedNames.has(skill))
|
|
321
|
+
.sort((left, right) => left.localeCompare(right));
|
|
322
|
+
if (missing.length > 0) {
|
|
323
|
+
throw new Error(`Selected portable Skills were not materialized: ${missing.join(', ')}.`);
|
|
324
|
+
}
|
|
399
325
|
}
|
|
400
326
|
const seenNames = new Set();
|
|
401
327
|
for (const candidate of trees) {
|
|
@@ -408,27 +334,29 @@ export async function materializePortableSkills(options) {
|
|
|
408
334
|
}
|
|
409
335
|
const candidates = trees.map((candidate) => ({
|
|
410
336
|
name: candidate.tree.skillKey,
|
|
411
|
-
|
|
337
|
+
...skillDescriptions(candidate.tree),
|
|
412
338
|
providerPluginId: pluginId(candidate.plugin),
|
|
413
339
|
providerDisplayName: candidate.plugin.manifest.interface?.displayName
|
|
414
340
|
?? candidate.plugin.manifest.name,
|
|
415
341
|
relation: candidate.relation,
|
|
416
342
|
dynamic: candidate.dynamic,
|
|
417
343
|
filesDigest: treeDigest(candidate.tree),
|
|
344
|
+
configDigest: new Map(configDigests).get(pluginId(candidate.plugin)),
|
|
418
345
|
})).sort((left, right) => left.name.localeCompare(right.name));
|
|
419
346
|
const dependencyPluginIds = closure
|
|
420
347
|
.filter((plugin) => plugin.manifest.name !== requested.manifest.name)
|
|
421
348
|
.map(pluginId);
|
|
422
349
|
const configDigest = `sha256:${crypto.createHash('sha256')
|
|
423
|
-
.update(JSON.stringify(configDigests))
|
|
350
|
+
.update(JSON.stringify({ platform: options.platform, scope: options.scope, capabilities: getAuthoringPlatformCapabilities(options.platform, options.scope), config: configDigests }))
|
|
424
351
|
.digest('hex')}`;
|
|
425
352
|
const digest = `sha256:${crypto.createHash('sha256')
|
|
426
|
-
.update(JSON.stringify(candidates.map((candidate) => [candidate.name, candidate.filesDigest])))
|
|
353
|
+
.update(JSON.stringify({ platform: options.platform, scope: options.scope, skills: candidates.map((candidate) => [candidate.name, candidate.filesDigest]) }))
|
|
427
354
|
.digest('hex')}`;
|
|
428
355
|
const provenancePath = path.join(rootDir, '.aw-materialization.json');
|
|
429
356
|
const provenance = {
|
|
430
357
|
schemaVersion: 1,
|
|
431
358
|
pluginId: pluginId(requested),
|
|
359
|
+
platform: options.platform,
|
|
432
360
|
scope: options.scope,
|
|
433
361
|
dependencyPluginIds,
|
|
434
362
|
configDigest,
|
|
@@ -439,12 +367,14 @@ export async function materializePortableSkills(options) {
|
|
|
439
367
|
return {
|
|
440
368
|
rootDir,
|
|
441
369
|
pluginId: pluginId(requested),
|
|
370
|
+
platform: options.platform,
|
|
442
371
|
scope: options.scope,
|
|
443
372
|
candidates,
|
|
444
373
|
dependencyPluginIds,
|
|
445
374
|
configDigest,
|
|
446
375
|
digest,
|
|
447
376
|
provenancePath,
|
|
377
|
+
preparation,
|
|
448
378
|
cleanup: async () => {
|
|
449
379
|
if (createdRoot)
|
|
450
380
|
await fs.remove(rootDir);
|