@lesliechan721/aw 0.1.0-beta.8 → 0.1.0-beta.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring/assets/aw-config.mjs +100 -501
- package/dist/authoring/assets/aw-config.mjs.map +1 -1
- package/dist/authoring/assets/aw-runtime-config.d.mts +13 -0
- package/dist/authoring/assets/aw-runtime-config.mjs +221 -0
- package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.mjs +17 -40
- package/dist/authoring/scripts/add-skill.mjs.map +1 -1
- package/dist/authoring/scripts/init-plugin.mjs +74 -98
- package/dist/authoring/scripts/init-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-root.mjs +4 -4
- package/dist/authoring/scripts/lib/plugin-root.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-version-check.d.mts +1 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +230 -9
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
- package/dist/authoring/scripts/lib/skill-scaffold.d.mts +79 -92
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +103 -127
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs +2 -2
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-plugin.mjs +459 -2843
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-skill.mjs +1 -1
- package/dist/native-runtime/reader-runtime.mjs +34 -0
- package/dist/native-runtime/reader.d.mts +6 -0
- package/dist/native-runtime/reader.mjs +11 -0
- package/dist/scripts/aw-skill-eval-materializer.d.ts +30 -0
- package/dist/scripts/aw-skill-eval-materializer.js +278 -0
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -0
- package/dist/scripts/bundle-plugins.d.ts +1 -0
- package/dist/scripts/bundle-plugins.js +27 -8
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/plugin-staging.d.ts +7 -8
- package/dist/scripts/plugin-staging.js +16 -15
- package/dist/scripts/plugin-staging.js.map +1 -1
- package/dist/scripts/plugin-test-reporter.d.mts +2 -0
- package/dist/scripts/plugin-test-reporter.mjs +21 -0
- package/dist/scripts/plugin-test-reporter.mjs.map +1 -0
- package/dist/scripts/test-plugin-scripts.d.ts +5 -0
- package/dist/scripts/test-plugin-scripts.js +273 -78
- package/dist/scripts/test-plugin-scripts.js.map +1 -1
- package/dist/scripts/test-workers.d.mts +24 -0
- package/dist/scripts/test-workers.mjs +59 -0
- package/dist/scripts/test-workers.mjs.map +1 -0
- package/dist/src/adapters/helpers.d.ts +7 -0
- package/dist/src/adapters/helpers.js.map +1 -1
- package/dist/src/authoring/workspace-commands.d.ts +5 -1
- package/dist/src/authoring/workspace-commands.js +7 -2
- package/dist/src/authoring/workspace-commands.js.map +1 -1
- package/dist/src/commands/aw-capabilities.d.ts +2 -2
- package/dist/src/commands/aw-capabilities.js +41 -29
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/catalog-dev-source.d.ts +58 -13
- package/dist/src/commands/catalog-dev-source.js +549 -305
- package/dist/src/commands/catalog-dev-source.js.map +1 -1
- package/dist/src/commands/catalog-generation.d.ts +14 -19
- package/dist/src/commands/catalog-generation.js +5 -10
- package/dist/src/commands/catalog-generation.js.map +1 -1
- package/dist/src/commands/catalog-publication-inspection.d.ts +70 -29
- package/dist/src/commands/catalog-publication-inspection.js +475 -62
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -1
- package/dist/src/commands/catalog-publication-journal.d.ts +68 -0
- package/dist/src/commands/catalog-publication-journal.js +292 -0
- package/dist/src/commands/catalog-publication-journal.js.map +1 -0
- package/dist/src/commands/catalog-publication-target.d.ts +2 -1
- package/dist/src/commands/catalog-publication-target.js +37 -2
- package/dist/src/commands/catalog-publication-target.js.map +1 -1
- package/dist/src/commands/catalog-publish.d.ts +82 -15
- package/dist/src/commands/catalog-publish.js +722 -219
- package/dist/src/commands/catalog-publish.js.map +1 -1
- package/dist/src/commands/catalog-source.d.ts +55 -35
- package/dist/src/commands/catalog-source.js +298 -148
- package/dist/src/commands/catalog-source.js.map +1 -1
- package/dist/src/commands/catalog-status.d.ts +6 -26
- package/dist/src/commands/catalog-status.js +9 -147
- package/dist/src/commands/catalog-status.js.map +1 -1
- package/dist/src/commands/catalog-store.d.ts +104 -0
- package/dist/src/commands/catalog-store.js +685 -0
- package/dist/src/commands/catalog-store.js.map +1 -0
- package/dist/src/commands/catalog-workspace-resolution.d.ts +17 -0
- package/dist/src/commands/catalog-workspace-resolution.js +57 -0
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -0
- package/dist/src/commands/console.js +32 -20
- package/dist/src/commands/console.js.map +1 -1
- package/dist/src/commands/dependency-operation-plan.d.ts +52 -15
- package/dist/src/commands/dependency-operation-plan.js +289 -7
- package/dist/src/commands/dependency-operation-plan.js.map +1 -1
- package/dist/src/commands/deployment-confirmation.d.ts +4 -0
- package/dist/src/commands/deployment-confirmation.js +20 -0
- package/dist/src/commands/deployment-confirmation.js.map +1 -0
- package/dist/src/commands/init.d.ts +5 -11
- package/dist/src/commands/init.js +30 -51
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/intent-command.d.ts +32 -0
- package/dist/src/commands/intent-command.js +171 -0
- package/dist/src/commands/intent-command.js.map +1 -0
- package/dist/src/commands/managed-commands.d.ts +35 -0
- package/dist/src/commands/managed-commands.js +361 -0
- package/dist/src/commands/managed-commands.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +46 -0
- package/dist/src/commands/offline-cleanup-evidence.js +158 -10
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
- package/dist/src/commands/operation-plan.d.ts +190 -0
- package/dist/src/commands/operation-plan.js +99 -0
- package/dist/src/commands/operation-plan.js.map +1 -0
- package/dist/src/commands/operation-planner.d.ts +47 -0
- package/dist/src/commands/operation-planner.js +142 -0
- package/dist/src/commands/operation-planner.js.map +1 -0
- package/dist/src/commands/options.d.ts +16 -20
- package/dist/src/commands/options.js +94 -41
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/plugin-capabilities.js +88 -45
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-config-confirmation.d.ts +8 -0
- package/dist/src/commands/public-config-confirmation.js +56 -0
- package/dist/src/commands/public-config-confirmation.js.map +1 -0
- package/dist/src/commands/public-interruption.d.ts +9 -0
- package/dist/src/commands/public-interruption.js +23 -0
- package/dist/src/commands/public-interruption.js.map +1 -0
- package/dist/src/commands/public-lifecycle-result.d.ts +102 -0
- package/dist/src/commands/public-lifecycle-result.js +307 -0
- package/dist/src/commands/public-lifecycle-result.js.map +1 -0
- package/dist/src/commands/public-lifecycle.d.ts +28 -0
- package/dist/src/commands/public-lifecycle.js +492 -0
- package/dist/src/commands/public-lifecycle.js.map +1 -0
- package/dist/src/commands/public-plugin-query.d.ts +16 -0
- package/dist/src/commands/public-plugin-query.js +193 -0
- package/dist/src/commands/public-plugin-query.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +166 -28
- package/dist/src/commands/rebuild-command.js +3745 -813
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +137 -25
- package/dist/src/commands/rebuild-integration.js +1343 -2535
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +73 -22
- package/dist/src/commands/rebuild-operations.js +313 -216
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +62 -0
- package/dist/src/commands/rebuild-platform-integration.js +1317 -0
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -0
- package/dist/src/commands/reconcile-operation-plan.d.ts +28 -0
- package/dist/src/commands/reconcile-operation-plan.js +47 -0
- package/dist/src/commands/reconcile-operation-plan.js.map +1 -0
- package/dist/src/commands/review-inspection.d.ts +60 -0
- package/dist/src/commands/review-inspection.js +436 -0
- package/dist/src/commands/review-inspection.js.map +1 -0
- package/dist/src/commands/review-preparation.d.ts +51 -0
- package/dist/src/commands/review-preparation.js +400 -0
- package/dist/src/commands/review-preparation.js.map +1 -0
- package/dist/src/commands/runtime.d.ts +6 -6
- package/dist/src/commands/runtime.js +44 -24
- package/dist/src/commands/runtime.js.map +1 -1
- package/dist/src/commands/skill-eval.d.ts +41 -0
- package/dist/src/commands/skill-eval.js +407 -0
- package/dist/src/commands/skill-eval.js.map +1 -0
- package/dist/src/commands/status-v6.d.ts +319 -0
- package/dist/src/commands/status-v6.js +2979 -0
- package/dist/src/commands/status-v6.js.map +1 -0
- package/dist/src/commands/targets-command.d.ts +38 -0
- package/dist/src/commands/targets-command.js +182 -0
- package/dist/src/commands/targets-command.js.map +1 -0
- package/dist/src/commands/wizard.d.ts +8 -5
- package/dist/src/commands/wizard.js +7 -4
- package/dist/src/commands/wizard.js.map +1 -1
- package/dist/src/commands/write-commands.d.ts +9 -3
- package/dist/src/commands/write-commands.js +143 -85
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +6 -6
- package/dist/src/constants.js +6 -6
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eval/manifest-v1.d.ts +70 -0
- package/dist/src/eval/manifest-v1.js +358 -0
- package/dist/src/eval/manifest-v1.js.map +1 -0
- package/dist/src/generators/local-plugin.d.ts +7 -2
- package/dist/src/generators/local-plugin.js +313 -389
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/generators/permissions.d.ts +5 -2
- package/dist/src/generators/permissions.js +28 -15
- package/dist/src/generators/permissions.js.map +1 -1
- package/dist/src/index.d.ts +2 -31
- package/dist/src/index.js +1666 -1827
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent/deployment-preferences.d.ts +63 -0
- package/dist/src/intent/deployment-preferences.js +170 -0
- package/dist/src/intent/deployment-preferences.js.map +1 -0
- package/dist/src/intent/diagnostics.d.ts +11 -0
- package/dist/src/intent/diagnostics.js +14 -0
- package/dist/src/intent/diagnostics.js.map +1 -0
- package/dist/src/intent/intent-codec.d.ts +19 -0
- package/dist/src/intent/intent-codec.js +117 -0
- package/dist/src/intent/intent-codec.js.map +1 -0
- package/dist/src/intent/intent-store.d.ts +43 -0
- package/dist/src/intent/intent-store.js +118 -0
- package/dist/src/intent/intent-store.js.map +1 -0
- package/dist/src/intent/scope-context.d.ts +33 -0
- package/dist/src/intent/scope-context.js +149 -0
- package/dist/src/intent/scope-context.js.map +1 -0
- package/dist/src/intent/work-context.d.ts +13 -0
- package/dist/src/intent/work-context.js +22 -0
- package/dist/src/intent/work-context.js.map +1 -0
- package/dist/src/output/command-receipt.d.ts +47 -46
- package/dist/src/output/command-receipt.js +286 -79
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/model.d.ts +3 -11
- package/dist/src/output/native-consent.d.ts +2 -0
- package/dist/src/output/native-consent.js +5 -0
- package/dist/src/output/native-consent.js.map +1 -0
- package/dist/src/output/public-result.d.ts +49 -0
- package/dist/src/output/public-result.js +240 -0
- package/dist/src/output/public-result.js.map +1 -0
- package/dist/src/output/rebuild-progress.js +20 -15
- package/dist/src/output/rebuild-progress.js.map +1 -1
- package/dist/src/output/receipt-projection.d.ts +7 -0
- package/dist/src/output/receipt-projection.js +592 -0
- package/dist/src/output/receipt-projection.js.map +1 -0
- package/dist/src/platforms/capabilities.d.ts +12 -0
- package/dist/src/platforms/capabilities.js +205 -0
- package/dist/src/platforms/capabilities.js.map +1 -0
- package/dist/src/platforms/contracts.d.ts +358 -0
- package/dist/src/platforms/contracts.js +2 -0
- package/dist/src/platforms/contracts.js.map +1 -0
- package/dist/src/platforms/cursor-workspace-hook.d.ts +28 -0
- package/dist/src/platforms/cursor-workspace-hook.js +198 -0
- package/dist/src/platforms/cursor-workspace-hook.js.map +1 -0
- package/dist/src/platforms/discovery.d.ts +91 -0
- package/dist/src/platforms/discovery.js +653 -0
- package/dist/src/platforms/discovery.js.map +1 -0
- package/dist/src/platforms/gemini-activation.d.ts +36 -0
- package/dist/src/platforms/gemini-activation.js +331 -0
- package/dist/src/platforms/gemini-activation.js.map +1 -0
- package/dist/src/platforms/gemini-consent.d.ts +8 -0
- package/dist/src/platforms/gemini-consent.js +81 -0
- package/dist/src/platforms/gemini-consent.js.map +1 -0
- package/dist/src/platforms/identity.d.ts +4 -0
- package/dist/src/platforms/identity.js +22 -0
- package/dist/src/platforms/identity.js.map +1 -0
- package/dist/src/platforms/inspection-grok.d.ts +4 -0
- package/dist/src/platforms/inspection-grok.js +212 -0
- package/dist/src/platforms/inspection-grok.js.map +1 -0
- package/dist/src/platforms/inspection-native.d.ts +6 -0
- package/dist/src/platforms/inspection-native.js +406 -0
- package/dist/src/platforms/inspection-native.js.map +1 -0
- package/dist/src/platforms/inspection-opencode.d.ts +4 -0
- package/dist/src/platforms/inspection-opencode.js +98 -0
- package/dist/src/platforms/inspection-opencode.js.map +1 -0
- package/dist/src/platforms/inspection-pi.d.ts +3 -0
- package/dist/src/platforms/inspection-pi.js +282 -0
- package/dist/src/platforms/inspection-pi.js.map +1 -0
- package/dist/src/platforms/inspection-query.d.ts +12 -0
- package/dist/src/platforms/inspection-query.js +96 -0
- package/dist/src/platforms/inspection-query.js.map +1 -0
- package/dist/src/platforms/inspection.d.ts +17 -0
- package/dist/src/platforms/inspection.js +227 -0
- package/dist/src/platforms/inspection.js.map +1 -0
- package/dist/src/platforms/layout.d.ts +21 -0
- package/dist/src/platforms/layout.js +239 -0
- package/dist/src/platforms/layout.js.map +1 -0
- package/dist/src/platforms/lifecycle-native-services.d.ts +3 -0
- package/dist/src/platforms/lifecycle-native-services.js +147 -0
- package/dist/src/platforms/lifecycle-native-services.js.map +1 -0
- package/dist/src/platforms/lifecycle-native.d.ts +13 -0
- package/dist/src/platforms/lifecycle-native.js +283 -0
- package/dist/src/platforms/lifecycle-native.js.map +1 -0
- package/dist/src/platforms/lifecycle.d.ts +25 -0
- package/dist/src/platforms/lifecycle.js +494 -0
- package/dist/src/platforms/lifecycle.js.map +1 -0
- package/dist/src/platforms/managed-command-placement.d.ts +8 -0
- package/dist/src/platforms/managed-command-placement.js +79 -0
- package/dist/src/platforms/managed-command-placement.js.map +1 -0
- package/dist/src/platforms/projection-code-extension.d.ts +8 -0
- package/dist/src/platforms/projection-code-extension.js +121 -0
- package/dist/src/platforms/projection-code-extension.js.map +1 -0
- package/dist/src/platforms/projection-command-resources.d.ts +7 -0
- package/dist/src/platforms/projection-command-resources.js +74 -0
- package/dist/src/platforms/projection-command-resources.js.map +1 -0
- package/dist/src/platforms/projection-files.d.ts +27 -0
- package/dist/src/platforms/projection-files.js +111 -0
- package/dist/src/platforms/projection-files.js.map +1 -0
- package/dist/src/platforms/projection-marketplace.d.ts +19 -0
- package/dist/src/platforms/projection-marketplace.js +42 -0
- package/dist/src/platforms/projection-marketplace.js.map +1 -0
- package/dist/src/platforms/projection.d.ts +10 -0
- package/dist/src/platforms/projection.js +446 -0
- package/dist/src/platforms/projection.js.map +1 -0
- package/dist/src/platforms/registry.d.ts +4 -0
- package/dist/src/platforms/registry.js +30 -0
- package/dist/src/platforms/registry.js.map +1 -0
- package/dist/src/platforms/supplement-layout.d.ts +16 -0
- package/dist/src/platforms/supplement-layout.js +31 -0
- package/dist/src/platforms/supplement-layout.js.map +1 -0
- package/dist/src/platforms/supplement-state.d.ts +13 -0
- package/dist/src/platforms/supplement-state.js +82 -0
- package/dist/src/platforms/supplement-state.js.map +1 -0
- package/dist/src/portable/commands.d.ts +58 -11
- package/dist/src/portable/commands.js +94 -350
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/historical-materialization.d.ts +22 -0
- package/dist/src/portable/historical-materialization.js +124 -0
- package/dist/src/portable/historical-materialization.js.map +1 -0
- package/dist/src/portable/materializer.d.ts +24 -4
- package/dist/src/portable/materializer.js +189 -259
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery-layout.d.ts +17 -0
- package/dist/src/portable/recovery-layout.js +42 -0
- package/dist/src/portable/recovery-layout.js.map +1 -0
- package/dist/src/portable/recovery.d.ts +153 -0
- package/dist/src/portable/recovery.js +367 -0
- package/dist/src/portable/recovery.js.map +1 -0
- package/dist/src/portable/writer.d.ts +67 -0
- package/dist/src/portable/writer.js +321 -0
- package/dist/src/portable/writer.js.map +1 -0
- package/dist/src/recovery/coordinator.d.ts +141 -0
- package/dist/src/recovery/coordinator.js +1254 -0
- package/dist/src/recovery/coordinator.js.map +1 -0
- package/dist/src/recovery/demand.d.ts +51 -0
- package/dist/src/recovery/demand.js +159 -0
- package/dist/src/recovery/demand.js.map +1 -0
- package/dist/src/recovery/joint-coordinator.d.ts +25 -0
- package/dist/src/recovery/joint-coordinator.js +991 -0
- package/dist/src/recovery/joint-coordinator.js.map +1 -0
- package/dist/src/recovery/joint-demand.d.ts +50 -0
- package/dist/src/recovery/joint-demand.js +197 -0
- package/dist/src/recovery/joint-demand.js.map +1 -0
- package/dist/src/recovery/performance.d.ts +4 -0
- package/dist/src/recovery/performance.js +26 -0
- package/dist/src/recovery/performance.js.map +1 -0
- package/dist/src/recovery/receipt.d.ts +98 -0
- package/dist/src/recovery/receipt.js +2 -0
- package/dist/src/recovery/receipt.js.map +1 -0
- package/dist/src/recovery/retirement.d.ts +47 -0
- package/dist/src/recovery/retirement.js +469 -0
- package/dist/src/recovery/retirement.js.map +1 -0
- package/dist/src/recovery/status.d.ts +126 -0
- package/dist/src/recovery/status.js +1073 -0
- package/dist/src/recovery/status.js.map +1 -0
- package/dist/src/recovery/types.d.ts +85 -0
- package/dist/src/recovery/types.js +2 -0
- package/dist/src/recovery/types.js.map +1 -0
- package/dist/src/review/eval-source-input.d.ts +43 -0
- package/dist/src/review/eval-source-input.js +207 -0
- package/dist/src/review/eval-source-input.js.map +1 -0
- package/dist/src/review/platform-profile.d.ts +3 -0
- package/dist/src/review/platform-profile.js +14 -0
- package/dist/src/review/platform-profile.js.map +1 -0
- package/dist/src/review/review-profile.d.ts +20 -0
- package/dist/src/review/review-profile.js +276 -0
- package/dist/src/review/review-profile.js.map +1 -0
- package/dist/src/review/review-selection.d.ts +20 -0
- package/dist/src/review/review-selection.js +495 -0
- package/dist/src/review/review-selection.js.map +1 -0
- package/dist/src/review/review-types.d.ts +71 -0
- package/dist/src/review/review-types.js +16 -0
- package/dist/src/review/review-types.js.map +1 -0
- package/dist/src/review/skill-materialization.d.ts +62 -0
- package/dist/src/review/skill-materialization.js +205 -0
- package/dist/src/review/skill-materialization.js.map +1 -0
- package/dist/src/review/source-binding.d.ts +201 -0
- package/dist/src/review/source-binding.js +773 -0
- package/dist/src/review/source-binding.js.map +1 -0
- package/dist/src/tui/agent-management.d.ts +23 -0
- package/dist/src/tui/agent-management.js +319 -0
- package/dist/src/tui/agent-management.js.map +1 -0
- package/dist/src/tui/agent-settings.d.ts +47 -0
- package/dist/src/tui/agent-settings.js +97 -0
- package/dist/src/tui/agent-settings.js.map +1 -0
- package/dist/src/tui/catalog-freshness.d.ts +1 -0
- package/dist/src/tui/catalog-freshness.js +2 -0
- package/dist/src/tui/catalog-freshness.js.map +1 -0
- package/dist/src/tui/catalog-generation.d.ts +18 -53
- package/dist/src/tui/catalog-generation.js +136 -224
- package/dist/src/tui/catalog-generation.js.map +1 -1
- package/dist/src/tui/catalog-sources/projection.d.ts +4 -0
- package/dist/src/tui/catalog-sources/projection.js +17 -0
- package/dist/src/tui/catalog-sources/projection.js.map +1 -0
- package/dist/src/tui/catalog-sources/review.d.ts +3 -0
- package/dist/src/tui/catalog-sources/review.js +13 -0
- package/dist/src/tui/catalog-sources/review.js.map +1 -0
- package/dist/src/tui/catalog-sources/screens.d.ts +12 -0
- package/dist/src/tui/catalog-sources/screens.js +40 -0
- package/dist/src/tui/catalog-sources/screens.js.map +1 -0
- package/dist/src/tui/catalog-sources/session.d.ts +32 -0
- package/dist/src/tui/catalog-sources/session.js +300 -0
- package/dist/src/tui/catalog-sources/session.js.map +1 -0
- package/dist/src/tui/catalog-sources/types.d.ts +54 -0
- package/dist/src/tui/catalog-sources/types.js +2 -0
- package/dist/src/tui/catalog-sources/types.js.map +1 -0
- package/dist/src/tui/catalog-store-task.d.ts +16 -0
- package/dist/src/tui/catalog-store-task.js +19 -0
- package/dist/src/tui/catalog-store-task.js.map +1 -0
- package/dist/src/tui/clipboard.d.ts +13 -0
- package/dist/src/tui/clipboard.js +95 -0
- package/dist/src/tui/clipboard.js.map +1 -0
- package/dist/src/tui/components.d.ts +113 -3
- package/dist/src/tui/components.js +201 -36
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/config-array-draft.d.ts +29 -0
- package/dist/src/tui/config-array-draft.js +48 -0
- package/dist/src/tui/config-array-draft.js.map +1 -0
- package/dist/src/tui/config-leaf-editor.d.ts +43 -0
- package/dist/src/tui/config-leaf-editor.js +224 -0
- package/dist/src/tui/config-leaf-editor.js.map +1 -0
- package/dist/src/tui/config-references.d.ts +38 -0
- package/dist/src/tui/config-references.js +82 -0
- package/dist/src/tui/config-references.js.map +1 -0
- package/dist/src/tui/config-value-presentation.d.ts +20 -0
- package/dist/src/tui/config-value-presentation.js +104 -0
- package/dist/src/tui/config-value-presentation.js.map +1 -0
- package/dist/src/tui/console-app-v4.d.ts +13 -4
- package/dist/src/tui/console-app-v4.js +9764 -2210
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/content-item-card.d.ts +13 -0
- package/dist/src/tui/content-item-card.js +51 -0
- package/dist/src/tui/content-item-card.js.map +1 -0
- package/dist/src/tui/controller-runtime.d.ts +7 -4
- package/dist/src/tui/controller-runtime.js +2064 -779
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +669 -106
- package/dist/src/tui/controller.js +3617 -971
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/dependency-graph-view.d.ts +39 -0
- package/dist/src/tui/dependency-graph-view.js +121 -0
- package/dist/src/tui/dependency-graph-view.js.map +1 -0
- package/dist/src/tui/dependency-graph.d.ts +81 -0
- package/dist/src/tui/dependency-graph.js +452 -0
- package/dist/src/tui/dependency-graph.js.map +1 -0
- package/dist/src/tui/deployment-view.d.ts +10 -0
- package/dist/src/tui/deployment-view.js +108 -0
- package/dist/src/tui/deployment-view.js.map +1 -0
- package/dist/src/tui/diagnostic-projection.d.ts +23 -0
- package/dist/src/tui/diagnostic-projection.js +595 -0
- package/dist/src/tui/diagnostic-projection.js.map +1 -0
- package/dist/src/tui/diagnostics.d.ts +6 -3
- package/dist/src/tui/diagnostics.js +14 -2
- package/dist/src/tui/diagnostics.js.map +1 -1
- package/dist/src/tui/entity-cards.d.ts +55 -0
- package/dist/src/tui/entity-cards.js +298 -0
- package/dist/src/tui/entity-cards.js.map +1 -0
- package/dist/src/tui/glossary.d.ts +25 -0
- package/dist/src/tui/glossary.js +72 -0
- package/dist/src/tui/glossary.js.map +1 -0
- package/dist/src/tui/index.d.ts +6 -2
- package/dist/src/tui/index.js +5 -2
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/input-display.d.ts +1 -0
- package/dist/src/tui/input-display.js +23 -1
- package/dist/src/tui/input-display.js.map +1 -1
- package/dist/src/tui/keys.d.ts +44 -0
- package/dist/src/tui/keys.js +43 -15
- package/dist/src/tui/keys.js.map +1 -1
- package/dist/src/tui/lifecycle-action-view.d.ts +6 -0
- package/dist/src/tui/lifecycle-action-view.js +36 -0
- package/dist/src/tui/lifecycle-action-view.js.map +1 -0
- package/dist/src/tui/model.d.ts +243 -45
- package/dist/src/tui/model.js +1402 -415
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/operation-diagnostic-screens.d.ts +8 -0
- package/dist/src/tui/operation-diagnostic-screens.js +72 -0
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -0
- package/dist/src/tui/operation-history.d.ts +82 -0
- package/dist/src/tui/operation-history.js +136 -0
- package/dist/src/tui/operation-history.js.map +1 -0
- package/dist/src/tui/operation-review-planner.d.ts +28 -0
- package/dist/src/tui/operation-review-planner.js +1396 -0
- package/dist/src/tui/operation-review-planner.js.map +1 -0
- package/dist/src/tui/plugin-content.d.ts +33 -0
- package/dist/src/tui/plugin-content.js +245 -0
- package/dist/src/tui/plugin-content.js.map +1 -0
- package/dist/src/tui/plugin-detail.d.ts +72 -0
- package/dist/src/tui/plugin-detail.js +260 -0
- package/dist/src/tui/plugin-detail.js.map +1 -0
- package/dist/src/tui/plugin-write-task.d.ts +69 -0
- package/dist/src/tui/plugin-write-task.js +286 -0
- package/dist/src/tui/plugin-write-task.js.map +1 -0
- package/dist/src/tui/prompt.js +4 -15
- package/dist/src/tui/prompt.js.map +1 -1
- package/dist/src/tui/query-header.d.ts +30 -0
- package/dist/src/tui/query-header.js +40 -0
- package/dist/src/tui/query-header.js.map +1 -0
- package/dist/src/tui/reader.d.ts +38 -0
- package/dist/src/tui/reader.js +49 -0
- package/dist/src/tui/reader.js.map +1 -0
- package/dist/src/tui/router.d.ts +186 -35
- package/dist/src/tui/router.js +338 -50
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/scoped-flow.d.ts +45 -0
- package/dist/src/tui/scoped-flow.js +96 -0
- package/dist/src/tui/scoped-flow.js.map +1 -0
- package/dist/src/tui/scoped-inventory.d.ts +126 -0
- package/dist/src/tui/scoped-inventory.js +258 -0
- package/dist/src/tui/scoped-inventory.js.map +1 -0
- package/dist/src/tui/screen-registry.d.ts +701 -0
- package/dist/src/tui/screen-registry.js +226 -0
- package/dist/src/tui/screen-registry.js.map +1 -0
- package/dist/src/tui/session-console-app.d.ts +6 -0
- package/dist/src/tui/session-console-app.js +13 -0
- package/dist/src/tui/session-console-app.js.map +1 -0
- package/dist/src/tui/session-host.d.ts +45 -0
- package/dist/src/tui/session-host.js +219 -0
- package/dist/src/tui/session-host.js.map +1 -0
- package/dist/src/tui/source-detail-card.d.ts +29 -0
- package/dist/src/tui/source-detail-card.js +45 -0
- package/dist/src/tui/source-detail-card.js.map +1 -0
- package/dist/src/tui/theme.d.ts +12 -0
- package/dist/src/tui/theme.js +12 -0
- package/dist/src/tui/theme.js.map +1 -1
- package/dist/src/tui/viewport.d.ts +1 -0
- package/dist/src/tui/viewport.js +23 -0
- package/dist/src/tui/viewport.js.map +1 -1
- package/dist/src/tui/wizard.js +37 -13
- package/dist/src/tui/wizard.js.map +1 -1
- package/dist/src/types.d.ts +220 -118
- package/dist/src/types.js +1 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/agent-version.d.ts +13 -4
- package/dist/src/utils/agent-version.js +27 -4
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +33 -7
- package/dist/src/utils/artifact-plan.js +115 -430
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +114 -83
- package/dist/src/utils/artifact-renderer.js +213 -364
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +44 -0
- package/dist/src/utils/artifact-request.js +80 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- package/dist/src/utils/artifact-sources.d.ts +6 -2
- package/dist/src/utils/artifact-sources.js +17 -0
- package/dist/src/utils/artifact-sources.js.map +1 -1
- package/dist/src/utils/bundle-layout.js +57 -173
- package/dist/src/utils/bundle-layout.js.map +1 -1
- package/dist/src/utils/catalog-capability-projection.d.ts +8 -0
- package/dist/src/utils/catalog-capability-projection.js +14 -0
- package/dist/src/utils/catalog-capability-projection.js.map +1 -0
- package/dist/src/utils/catalog-digests.d.ts +2 -2
- package/dist/src/utils/catalog-digests.js +7 -18
- package/dist/src/utils/catalog-digests.js.map +1 -1
- package/dist/src/utils/catalog-generation-control-snapshot.d.ts +11 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js +45 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js.map +1 -0
- package/dist/src/utils/catalog-generation-error.d.ts +5 -1
- package/dist/src/utils/catalog-generation-error.js +14 -0
- package/dist/src/utils/catalog-generation-error.js.map +1 -1
- package/dist/src/utils/catalog-generation-resolver.d.ts +36 -5
- package/dist/src/utils/catalog-generation-resolver.js +221 -77
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
- package/dist/src/utils/catalog-generation-service.d.ts +159 -28
- package/dist/src/utils/catalog-generation-service.js +1186 -525
- package/dist/src/utils/catalog-generation-service.js.map +1 -1
- package/dist/src/utils/catalog-generation-state.d.ts +9 -0
- package/dist/src/utils/catalog-generation-state.js +97 -106
- package/dist/src/utils/catalog-generation-state.js.map +1 -1
- package/dist/src/utils/catalog-generation-store.d.ts +38 -24
- package/dist/src/utils/catalog-generation-store.js +337 -272
- package/dist/src/utils/catalog-generation-store.js.map +1 -1
- package/dist/src/utils/catalog-manifest-v7.d.ts +5 -0
- package/dist/src/utils/{catalog-manifest-v5.js → catalog-manifest-v7.js} +23 -35
- package/dist/src/utils/catalog-manifest-v7.js.map +1 -0
- package/dist/src/utils/catalog-operation-context.d.ts +6 -14
- package/dist/src/utils/catalog-operation-context.js +69 -169
- package/dist/src/utils/catalog-operation-context.js.map +1 -1
- package/dist/src/utils/catalog-public-error.js +8 -4
- package/dist/src/utils/catalog-public-error.js.map +1 -1
- package/dist/src/utils/catalog-runtime-projection.d.ts +7 -3
- package/dist/src/utils/catalog-runtime-projection.js +5 -40
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -1
- package/dist/src/utils/catalog-snapshot.d.ts +2 -2
- package/dist/src/utils/catalog-source-impact.d.ts +21 -0
- package/dist/src/utils/catalog-source-impact.js +344 -0
- package/dist/src/utils/catalog-source-impact.js.map +1 -0
- package/dist/src/utils/catalog-source-references.d.ts +23 -2
- package/dist/src/utils/catalog-source-references.js +456 -382
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/catalog-sources.d.ts +14 -1
- package/dist/src/utils/catalog-sources.js +178 -18
- package/dist/src/utils/catalog-sources.js.map +1 -1
- package/dist/src/utils/codex-config.d.ts +2 -0
- package/dist/src/utils/codex-config.js +22 -1
- package/dist/src/utils/codex-config.js.map +1 -1
- package/dist/src/utils/codex-executable-discovery.d.ts +28 -0
- package/dist/src/utils/codex-executable-discovery.js +431 -0
- package/dist/src/utils/codex-executable-discovery.js.map +1 -0
- package/dist/src/utils/codex-manager.d.ts +47 -18
- package/dist/src/utils/codex-manager.js +88 -622
- package/dist/src/utils/codex-manager.js.map +1 -1
- package/dist/src/utils/codex-marketplace-path.d.ts +5 -0
- package/dist/src/utils/codex-marketplace-path.js +45 -0
- package/dist/src/utils/codex-marketplace-path.js.map +1 -0
- package/dist/src/utils/codex-native-observation.d.ts +49 -0
- package/dist/src/utils/codex-native-observation.js +169 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -0
- package/dist/src/utils/codex-reconciler.d.ts +123 -0
- package/dist/src/utils/codex-reconciler.js +322 -0
- package/dist/src/utils/codex-reconciler.js.map +1 -0
- package/dist/src/utils/codex-shared-native.d.ts +45 -0
- package/dist/src/utils/codex-shared-native.js +122 -0
- package/dist/src/utils/codex-shared-native.js.map +1 -0
- package/dist/src/utils/codex-skill-staging.d.ts +4 -3
- package/dist/src/utils/codex-skill-staging.js.map +1 -1
- package/dist/src/utils/codex-skills-root.d.ts +4 -0
- package/dist/src/utils/codex-skills-root.js +25 -0
- package/dist/src/utils/codex-skills-root.js.map +1 -0
- package/dist/src/utils/codex-surface-analysis.d.ts +49 -0
- package/dist/src/utils/codex-surface-analysis.js +220 -0
- package/dist/src/utils/codex-surface-analysis.js.map +1 -0
- package/dist/src/utils/component-command-preparation.d.ts +34 -0
- package/dist/src/utils/component-command-preparation.js +228 -0
- package/dist/src/utils/component-command-preparation.js.map +1 -0
- package/dist/src/utils/component-resources.d.ts +51 -0
- package/dist/src/utils/component-resources.js +322 -0
- package/dist/src/utils/component-resources.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +18 -6
- package/dist/src/utils/dynamic-skill-tree.js +32 -9
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/git-catalog-provider.d.ts +16 -0
- package/dist/src/utils/git-catalog-provider.js +167 -120
- package/dist/src/utils/git-catalog-provider.js.map +1 -1
- package/dist/src/utils/inventory-recovery-diagnostic.d.ts +4 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js +15 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js.map +1 -0
- package/dist/src/utils/local-marketplace.d.ts +17 -12
- package/dist/src/utils/local-marketplace.js +85 -195
- package/dist/src/utils/local-marketplace.js.map +1 -1
- package/dist/src/utils/managed-command-closure.d.ts +3 -0
- package/dist/src/utils/managed-command-closure.js +35 -0
- package/dist/src/utils/managed-command-closure.js.map +1 -0
- package/dist/src/utils/managed-command-evidence.d.ts +7 -0
- package/dist/src/utils/managed-command-evidence.js +10 -0
- package/dist/src/utils/managed-command-evidence.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +124 -0
- package/dist/src/utils/managed-command-materialization.js +369 -0
- package/dist/src/utils/managed-command-materialization.js.map +1 -0
- package/dist/src/utils/managed-command-preparation.d.ts +67 -0
- package/dist/src/utils/managed-command-preparation.js +146 -0
- package/dist/src/utils/managed-command-preparation.js.map +1 -0
- package/dist/src/utils/managed-command-review.d.ts +26 -0
- package/dist/src/utils/managed-command-review.js +68 -0
- package/dist/src/utils/managed-command-review.js.map +1 -0
- package/dist/src/utils/managed-command-runtime.d.ts +33 -0
- package/dist/src/utils/managed-command-runtime.js +121 -0
- package/dist/src/utils/managed-command-runtime.js.map +1 -0
- package/dist/src/utils/managed-command-store.d.ts +143 -0
- package/dist/src/utils/managed-command-store.js +665 -0
- package/dist/src/utils/managed-command-store.js.map +1 -0
- package/dist/src/utils/manifest.d.ts +1 -3
- package/dist/src/utils/manifest.js +1 -3
- package/dist/src/utils/manifest.js.map +1 -1
- package/dist/src/utils/multi-source-catalog.d.ts +1 -10
- package/dist/src/utils/multi-source-catalog.js +9 -175
- package/dist/src/utils/multi-source-catalog.js.map +1 -1
- package/dist/src/utils/native-cli.d.ts +74 -5
- package/dist/src/utils/native-cli.js +479 -31
- package/dist/src/utils/native-cli.js.map +1 -1
- package/dist/src/utils/native-demand.d.ts +29 -0
- package/dist/src/utils/native-demand.js +4 -0
- package/dist/src/utils/native-demand.js.map +1 -0
- package/dist/src/utils/native-tool-context.d.ts +14 -0
- package/dist/src/utils/native-tool-context.js +38 -0
- package/dist/src/utils/native-tool-context.js.map +1 -0
- package/dist/src/utils/native-tool-review.d.ts +18 -0
- package/dist/src/utils/native-tool-review.js +116 -0
- package/dist/src/utils/native-tool-review.js.map +1 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js +0 -1
- package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +103 -21
- package/dist/src/utils/ownership.js +232 -210
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/path-catalog-provider.d.ts +1 -1
- package/dist/src/utils/path-catalog-provider.js +47 -62
- package/dist/src/utils/path-catalog-provider.js.map +1 -1
- package/dist/src/utils/paths.d.ts +1 -2
- package/dist/src/utils/paths.js +5 -3
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/platform-empty-state.d.ts +45 -0
- package/dist/src/utils/platform-empty-state.js +159 -0
- package/dist/src/utils/platform-empty-state.js.map +1 -0
- package/dist/src/utils/platform-support.d.ts +1 -1
- package/dist/src/utils/platform-support.js +1 -1
- package/dist/src/utils/platform-support.js.map +1 -1
- package/dist/src/utils/plugin-config-impact.d.ts +64 -0
- package/dist/src/utils/plugin-config-impact.js +307 -0
- package/dist/src/utils/plugin-config-impact.js.map +1 -0
- package/dist/src/utils/plugin-config-references.d.ts +89 -0
- package/dist/src/utils/plugin-config-references.js +335 -0
- package/dist/src/utils/plugin-config-references.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +109 -27
- package/dist/src/utils/plugin-config-write.js +1242 -348
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +187 -109
- package/dist/src/utils/plugin-config.js +916 -1147
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/dist/src/utils/plugin-dependencies.d.ts +1 -1
- package/dist/src/utils/plugin-dependencies.js.map +1 -1
- package/dist/src/utils/plugin-scripts.d.ts +78 -127
- package/dist/src/utils/plugin-scripts.js +566 -524
- package/dist/src/utils/plugin-scripts.js.map +1 -1
- package/dist/src/utils/process-lock.js +14 -5
- package/dist/src/utils/process-lock.js.map +1 -1
- package/dist/src/utils/process-tree.d.ts +2 -2
- package/dist/src/utils/process-tree.js +1 -1
- package/dist/src/utils/process-tree.js.map +1 -1
- package/dist/src/utils/project-boundary.d.ts +11 -13
- package/dist/src/utils/project-boundary.js +28 -34
- package/dist/src/utils/project-boundary.js.map +1 -1
- package/dist/src/utils/rendered-contract.js +18 -1
- package/dist/src/utils/rendered-contract.js.map +1 -1
- package/dist/src/utils/runtime-config.d.ts +18 -0
- package/dist/src/utils/runtime-config.js +64 -0
- package/dist/src/utils/runtime-config.js.map +1 -0
- package/dist/src/utils/runtime-skill-closure.d.ts +2 -2
- package/dist/src/utils/runtime-skill-closure.js +47 -6
- package/dist/src/utils/runtime-skill-closure.js.map +1 -1
- package/dist/src/utils/safe-fs.d.ts +21 -0
- package/dist/src/utils/safe-fs.js +111 -0
- package/dist/src/utils/safe-fs.js.map +1 -0
- package/dist/src/utils/safe-operation-diagnostic.d.ts +15 -0
- package/dist/src/utils/safe-operation-diagnostic.js +33 -0
- package/dist/src/utils/safe-operation-diagnostic.js.map +1 -0
- package/dist/src/utils/sensitive-content.d.ts +4 -0
- package/dist/src/utils/sensitive-content.js +36 -0
- package/dist/src/utils/sensitive-content.js.map +1 -0
- package/dist/src/utils/state-paths.d.ts +8 -3
- package/dist/src/utils/state-paths.js +53 -16
- package/dist/src/utils/state-paths.js.map +1 -1
- package/dist/src/utils/target-eligibility.d.ts +4 -3
- package/dist/src/utils/target-eligibility.js +12 -6
- package/dist/src/utils/target-eligibility.js.map +1 -1
- package/dist/src/utils/windows-claude-shim.d.ts +7 -0
- package/dist/src/utils/windows-claude-shim.js +10 -0
- package/dist/src/utils/windows-claude-shim.js.map +1 -0
- package/dist/src/utils/windows-npm-shim.d.ts +16 -0
- package/dist/src/utils/windows-npm-shim.js +155 -0
- package/dist/src/utils/windows-npm-shim.js.map +1 -0
- package/dist/vitest.config.js +105 -9
- package/dist/vitest.config.js.map +1 -1
- package/package.json +30 -21
- package/dist/scripts/aw-skill-eval-engine.d.ts +0 -13
- package/dist/scripts/aw-skill-eval-engine.js +0 -31
- package/dist/scripts/aw-skill-eval-engine.js.map +0 -1
- package/dist/scripts/codex-eval-app-server.d.ts +0 -91
- package/dist/scripts/codex-eval-app-server.js +0 -1334
- package/dist/scripts/codex-eval-app-server.js.map +0 -1
- package/dist/scripts/codex-eval-isolation.d.ts +0 -61
- package/dist/scripts/codex-eval-isolation.js +0 -318
- package/dist/scripts/codex-eval-isolation.js.map +0 -1
- package/dist/scripts/codex-eval-process-management.d.ts +0 -8
- package/dist/scripts/codex-eval-process-management.js +0 -69
- package/dist/scripts/codex-eval-process-management.js.map +0 -1
- package/dist/scripts/codex-eval-process-tree.d.ts +0 -38
- package/dist/scripts/codex-eval-process-tree.js +0 -803
- package/dist/scripts/codex-eval-process-tree.js.map +0 -1
- package/dist/scripts/codex-eval-runtime-config.d.ts +0 -62
- package/dist/scripts/codex-eval-runtime-config.js +0 -843
- package/dist/scripts/codex-eval-runtime-config.js.map +0 -1
- package/dist/scripts/codex-trigger-eval.d.ts +0 -84
- package/dist/scripts/codex-trigger-eval.js +0 -968
- package/dist/scripts/codex-trigger-eval.js.map +0 -1
- package/dist/scripts/eval-plugin-skills-audited.d.ts +0 -6
- package/dist/scripts/eval-plugin-skills-audited.js +0 -261
- package/dist/scripts/eval-plugin-skills-audited.js.map +0 -1
- package/dist/scripts/eval-plugin-skills.d.ts +0 -45
- package/dist/scripts/eval-plugin-skills.js +0 -1589
- package/dist/scripts/eval-plugin-skills.js.map +0 -1
- package/dist/scripts/eval-run-layout.d.ts +0 -17
- package/dist/scripts/eval-run-layout.js +0 -26
- package/dist/scripts/eval-run-layout.js.map +0 -1
- package/dist/scripts/plugin-eval-contract.d.ts +0 -189
- package/dist/scripts/plugin-eval-contract.js +0 -745
- package/dist/scripts/plugin-eval-contract.js.map +0 -1
- package/dist/scripts/plugin-eval-materializer.d.ts +0 -13
- package/dist/scripts/plugin-eval-materializer.js +0 -421
- package/dist/scripts/plugin-eval-materializer.js.map +0 -1
- package/dist/scripts/skill-reporting.d.ts +0 -212
- package/dist/scripts/skill-reporting.js +0 -922
- package/dist/scripts/skill-reporting.js.map +0 -1
- package/dist/src/commands/catalog-context.d.ts +0 -52
- package/dist/src/commands/catalog-context.js +0 -156
- package/dist/src/commands/catalog-context.js.map +0 -1
- package/dist/src/commands/review-publication.d.ts +0 -99
- package/dist/src/commands/review-publication.js +0 -904
- package/dist/src/commands/review-publication.js.map +0 -1
- package/dist/src/commands/status-v5.d.ts +0 -169
- package/dist/src/commands/status-v5.js +0 -1135
- package/dist/src/commands/status-v5.js.map +0 -1
- package/dist/src/portable/skills-cli.d.ts +0 -43
- package/dist/src/portable/skills-cli.js +0 -148
- package/dist/src/portable/skills-cli.js.map +0 -1
- package/dist/src/utils/catalog-manifest-v5.d.ts +0 -5
- package/dist/src/utils/catalog-manifest-v5.js.map +0 -1
- package/dist/src/utils/catalog-source-cache.d.ts +0 -62
- package/dist/src/utils/catalog-source-cache.js +0 -321
- package/dist/src/utils/catalog-source-cache.js.map +0 -1
- package/dist/src/utils/codex-project-surface.d.ts +0 -3
- package/dist/src/utils/codex-project-surface.js +0 -49
- package/dist/src/utils/codex-project-surface.js.map +0 -1
- package/dist/src/utils/lifecycle-active-store.d.ts +0 -147
- package/dist/src/utils/lifecycle-active-store.js +0 -1064
- package/dist/src/utils/lifecycle-active-store.js.map +0 -1
- package/dist/src/utils/plugin-release.d.ts +0 -2
- package/dist/src/utils/plugin-release.js +0 -2
- package/dist/src/utils/plugin-release.js.map +0 -1
- package/dist/src/utils/slash-commands.d.ts +0 -1
- package/dist/src/utils/slash-commands.js +0 -2
- package/dist/src/utils/slash-commands.js.map +0 -1
|
@@ -12,7 +12,7 @@ const FRONTMATTER_PROFILES = new Set([
|
|
|
12
12
|
const CODEX_METADATA_POLICIES = new Set(['required', 'optional', 'ignore']);
|
|
13
13
|
function usage() {
|
|
14
14
|
return `Usage:
|
|
15
|
-
aw skill validate <skill-directory> [options]
|
|
15
|
+
aw dev skill validate <skill-directory> [options]
|
|
16
16
|
|
|
17
17
|
Options:
|
|
18
18
|
--frontmatter-profile <profile>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const NATIVE_TOOL_CONTEXT_ENV = 'AW_NATIVE_TOOL_CONTEXT';
|
|
2
|
+
|
|
3
|
+
// This standalone module is also the canonical text emitted into plugin bundles.
|
|
4
|
+
export function readNativeTool(key, protocol, environment = process.env) {
|
|
5
|
+
function reject() {
|
|
6
|
+
const error = new Error('nativeContextInvalid');
|
|
7
|
+
error.code = 'nativeContextInvalid';
|
|
8
|
+
throw error;
|
|
9
|
+
}
|
|
10
|
+
function record(value) {
|
|
11
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
12
|
+
}
|
|
13
|
+
if (typeof key !== 'string' || !key || typeof protocol !== 'string' || !protocol) reject();
|
|
14
|
+
const names = Object.keys(environment).filter((name) => name.toUpperCase() === 'AW_NATIVE_TOOL_CONTEXT');
|
|
15
|
+
if (names.length !== 1 || typeof environment[names[0]] !== 'string' || environment[names[0]].length > 128 * 1024) reject();
|
|
16
|
+
let context;
|
|
17
|
+
try { context = JSON.parse(environment[names[0]]); } catch { reject(); }
|
|
18
|
+
if (!record(context) || context.schemaVersion !== 1 || Object.keys(context).sort().join(',') !== 'schemaVersion,tools'
|
|
19
|
+
|| !record(context.tools) || Object.keys(context.tools).length > 64) reject();
|
|
20
|
+
for (const [name, value] of Object.entries(context.tools)) {
|
|
21
|
+
if (!name || !record(value) || typeof value.protocol !== 'string' || !value.protocol) reject();
|
|
22
|
+
if (value.state === 'ready') {
|
|
23
|
+
if (Object.keys(value).sort().join(',') !== 'executable,protocol,state'
|
|
24
|
+
|| typeof value.executable !== 'string' || value.executable.length > 32_768
|
|
25
|
+
|| !/^(?:\/[^\x00]*|[A-Za-z]:[\\/][^\x00]*|\\\\[^\x00]+)$/.test(value.executable)
|
|
26
|
+
|| /[\x00-\x1f\x7f]/.test(value.executable)) reject();
|
|
27
|
+
} else if (value.state === 'unavailable') {
|
|
28
|
+
if (Object.keys(value).sort().join(',') !== 'code,protocol,state'
|
|
29
|
+
|| typeof value.code !== 'string' || !/^[a-zA-Z][a-zA-Z0-9]{0,95}$/.test(value.code)) reject();
|
|
30
|
+
} else reject();
|
|
31
|
+
}
|
|
32
|
+
if (!Object.hasOwn(context.tools, key) || context.tools[key].protocol !== protocol) reject();
|
|
33
|
+
return Object.freeze({ ...context.tools[key] });
|
|
34
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface NativeToolReady { state: 'ready'; protocol: string; executable: string }
|
|
2
|
+
export interface NativeToolUnavailable { state: 'unavailable'; protocol: string; code: string }
|
|
3
|
+
export interface NativeToolContext { schemaVersion: 1; tools: Record<string, NativeToolReady | NativeToolUnavailable> }
|
|
4
|
+
export const NATIVE_TOOL_CONTEXT_ENV: 'AW_NATIVE_TOOL_CONTEXT';
|
|
5
|
+
export function readNativeTool(key: string, protocol: string, environment?: Record<string, string | undefined>): NativeToolReady | NativeToolUnavailable;
|
|
6
|
+
export function createNativeToolReaderSource(): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
|
|
3
|
+
export { NATIVE_TOOL_CONTEXT_ENV, readNativeTool } from './reader-runtime.mjs';
|
|
4
|
+
|
|
5
|
+
// Read the standalone source, rather than a function transformed by the caller's
|
|
6
|
+
// test runner or bundler. Normalize checkout line endings for identical bundles.
|
|
7
|
+
const readerSource = readFileSync(new URL('./reader-runtime.mjs', import.meta.url), 'utf8').replace(/\r\n/g, '\n');
|
|
8
|
+
|
|
9
|
+
export function createNativeToolReaderSource() {
|
|
10
|
+
return readerSource;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type PlatformTarget } from '@lesliechan721/aw-plugin-core';
|
|
2
|
+
import { type ComponentPreparationBinding } from '../src/review/skill-materialization.js';
|
|
3
|
+
import type { PluginMeta } from '../src/types.js';
|
|
4
|
+
export interface AwSkillEvalMaterializationProfile {
|
|
5
|
+
id: string;
|
|
6
|
+
platform: PlatformTarget;
|
|
7
|
+
scope: 'project' | 'user';
|
|
8
|
+
plugins: Array<{
|
|
9
|
+
name: string;
|
|
10
|
+
configByScope: Partial<Record<'project' | 'user', Record<string, unknown>>>;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export interface MaterializeAwSkillEvalOptions {
|
|
14
|
+
plugin: PluginMeta;
|
|
15
|
+
plugins: PluginMeta[];
|
|
16
|
+
profile: AwSkillEvalMaterializationProfile;
|
|
17
|
+
requiredSkills: ReadonlySet<string>;
|
|
18
|
+
initializeGitRepository: boolean;
|
|
19
|
+
outputRoot: string;
|
|
20
|
+
workRoot: string;
|
|
21
|
+
sourceIdentity: string;
|
|
22
|
+
workspaceIdentity: string;
|
|
23
|
+
env?: NodeJS.ProcessEnv;
|
|
24
|
+
}
|
|
25
|
+
export interface AwSkillEvalMaterializedSubject {
|
|
26
|
+
root: string;
|
|
27
|
+
preparation: ComponentPreparationBinding[];
|
|
28
|
+
}
|
|
29
|
+
export declare function materializeAwSkillEvalSubject(options: MaterializeAwSkillEvalOptions): Promise<AwSkillEvalMaterializedSubject>;
|
|
30
|
+
export declare function resolveMaterializedSubjectRoot(outputRoot: string, subject: AwSkillEvalMaterializedSubject): string;
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { execFile } from 'node:child_process';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { promisify } from 'node:util';
|
|
4
|
+
import { createRuntimeSkillSnapshot } from '@lesliechan721/agent-skill-eval';
|
|
5
|
+
import fs from 'fs-extra';
|
|
6
|
+
import { PLATFORM_TARGETS } from '@lesliechan721/aw-plugin-core';
|
|
7
|
+
import { createIsolatedSkillEnv, prepareSkillPluginBundle, materializeProfilePluginComponents, } from '../src/review/skill-materialization.js';
|
|
8
|
+
import { writePluginConfigStore } from '../src/utils/plugin-config.js';
|
|
9
|
+
import { validateSkillDirectoriesRoot, validatePortableSkillDirectoriesRoot } from '../src/utils/dynamic-skill-tree.js';
|
|
10
|
+
const execFileAsync = promisify(execFile);
|
|
11
|
+
async function snapshotRuntimeSkills(sourceRoot, targetRoot, platform) {
|
|
12
|
+
if (platform === 'codex' || platform === 'claude') {
|
|
13
|
+
await validateSkillDirectoriesRoot(sourceRoot, `${platform}.skill`);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
await validatePortableSkillDirectoriesRoot(sourceRoot);
|
|
17
|
+
}
|
|
18
|
+
await fs.ensureDir(targetRoot);
|
|
19
|
+
const entries = await fs.readdir(sourceRoot, { withFileTypes: true });
|
|
20
|
+
for (const entry of entries) {
|
|
21
|
+
if (!entry.isDirectory())
|
|
22
|
+
continue;
|
|
23
|
+
const source = path.join(sourceRoot, entry.name);
|
|
24
|
+
const destination = path.join(targetRoot, entry.name);
|
|
25
|
+
await createRuntimeSkillSnapshot(source, destination);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
async function initializeSubjectGitRepository(subjectRoot, baseEnv, excludedRoots) {
|
|
29
|
+
const env = {
|
|
30
|
+
...baseEnv,
|
|
31
|
+
GIT_CONFIG_GLOBAL: path.join(subjectRoot, '.gitconfig-disabled'),
|
|
32
|
+
GIT_CONFIG_NOSYSTEM: '1',
|
|
33
|
+
GIT_AUTHOR_NAME: 'AW Eval Fixture',
|
|
34
|
+
GIT_AUTHOR_EMAIL: 'aw-eval@example.invalid',
|
|
35
|
+
GIT_AUTHOR_DATE: '2000-01-01T00:00:00Z',
|
|
36
|
+
GIT_COMMITTER_NAME: 'AW Eval Fixture',
|
|
37
|
+
GIT_COMMITTER_EMAIL: 'aw-eval@example.invalid',
|
|
38
|
+
GIT_COMMITTER_DATE: '2000-01-01T00:00:00Z',
|
|
39
|
+
};
|
|
40
|
+
for (const key of [
|
|
41
|
+
'GIT_ALTERNATE_OBJECT_DIRECTORIES',
|
|
42
|
+
'GIT_COMMON_DIR',
|
|
43
|
+
'GIT_CONFIG',
|
|
44
|
+
'GIT_CONFIG_COUNT',
|
|
45
|
+
'GIT_CONFIG_PARAMETERS',
|
|
46
|
+
'GIT_DIR',
|
|
47
|
+
'GIT_INDEX_FILE',
|
|
48
|
+
'GIT_NAMESPACE',
|
|
49
|
+
'GIT_OBJECT_DIRECTORY',
|
|
50
|
+
'GIT_WORK_TREE',
|
|
51
|
+
]) {
|
|
52
|
+
delete env[key];
|
|
53
|
+
}
|
|
54
|
+
for (const key of Object.keys(env)) {
|
|
55
|
+
if (key.startsWith('GIT_CONFIG_KEY_') || key.startsWith('GIT_CONFIG_VALUE_')) {
|
|
56
|
+
delete env[key];
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
await execFileAsync('git', ['init', '-q', '--initial-branch=main', '--template='], {
|
|
60
|
+
cwd: subjectRoot,
|
|
61
|
+
env,
|
|
62
|
+
});
|
|
63
|
+
await fs.ensureDir(path.join(subjectRoot, '.git', 'info'));
|
|
64
|
+
await fs.writeFile(path.join(subjectRoot, '.git', 'info', 'exclude'), `${excludedRoots
|
|
65
|
+
.sort((left, right) => left.localeCompare(right))
|
|
66
|
+
.map((root) => `/${root.split(path.sep).join('/')}/`)
|
|
67
|
+
.join('\n')}\n`, 'utf8');
|
|
68
|
+
await execFileAsync('git', ['add', '--all'], { cwd: subjectRoot, env });
|
|
69
|
+
await execFileAsync('git', [
|
|
70
|
+
'-c',
|
|
71
|
+
'user.name=AW Eval Fixture',
|
|
72
|
+
'-c',
|
|
73
|
+
'user.email=aw-eval@example.invalid',
|
|
74
|
+
'-c',
|
|
75
|
+
'commit.gpgSign=false',
|
|
76
|
+
'commit',
|
|
77
|
+
'-q',
|
|
78
|
+
'--no-verify',
|
|
79
|
+
'--allow-empty',
|
|
80
|
+
'-m',
|
|
81
|
+
'Materialize eval subject',
|
|
82
|
+
], { cwd: subjectRoot, env });
|
|
83
|
+
await fs.remove(path.join(subjectRoot, '.git', 'index'));
|
|
84
|
+
await execFileAsync('git', ['read-tree', '--reset', 'HEAD'], { cwd: subjectRoot, env });
|
|
85
|
+
}
|
|
86
|
+
async function copyUserMaterializedArtifacts(options) {
|
|
87
|
+
const materializedRoot = path.join(options.scopeRoot, 'materialized');
|
|
88
|
+
const skillsRoot = path.join(materializedRoot, '.agents', 'skills');
|
|
89
|
+
for (const pluginName of options.pluginNames) {
|
|
90
|
+
const runtimeSkillsRoot = path.join(options.env.AW_HOME, 'plugins', pluginName, options.platform, 'skills');
|
|
91
|
+
if (await fs.pathExists(runtimeSkillsRoot)) {
|
|
92
|
+
await snapshotRuntimeSkills(runtimeSkillsRoot, skillsRoot, options.platform);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
const codexHome = options.platform === 'claude' ? options.env.CLAUDE_CONFIG_DIR : options.env.CODEX_HOME;
|
|
96
|
+
if (await fs.pathExists(codexHome)) {
|
|
97
|
+
const codexSkillsRoot = path.join(codexHome, 'skills');
|
|
98
|
+
if (await fs.pathExists(codexSkillsRoot)) {
|
|
99
|
+
await snapshotRuntimeSkills(codexSkillsRoot, skillsRoot, options.platform);
|
|
100
|
+
}
|
|
101
|
+
await fs.copy(codexHome, path.join(materializedRoot, options.platform === 'claude' ? '.claude' : '.codex'), {
|
|
102
|
+
overwrite: true,
|
|
103
|
+
dereference: false,
|
|
104
|
+
filter: (source) => {
|
|
105
|
+
const relative = path.relative(codexHome, source);
|
|
106
|
+
return (relative !== 'skills' && !relative.startsWith(`skills${path.sep}`))
|
|
107
|
+
&& path.basename(source) !== 'auth.json'
|
|
108
|
+
&& path.basename(source) !== '.credentials.json';
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
return materializedRoot;
|
|
113
|
+
}
|
|
114
|
+
async function materializeProfileSkills(options) {
|
|
115
|
+
const plugin = options.prepared.bundlePlugin;
|
|
116
|
+
const outputRoot = path.join(options.env.TMPDIR, `materialized-${plugin.manifest.name}`);
|
|
117
|
+
const materialized = await materializeProfilePluginComponents({
|
|
118
|
+
plugin, plugins: options.plugins, platform: options.profile.platform, scope: options.profile.scope,
|
|
119
|
+
cwd: options.projectRoot, env: options.env, outputRoot,
|
|
120
|
+
});
|
|
121
|
+
try {
|
|
122
|
+
const targetRoot = options.profile.scope === 'project'
|
|
123
|
+
? path.join(options.projectRoot, '.agents', 'skills')
|
|
124
|
+
: path.join(options.env.AW_HOME, 'plugins', plugin.manifest.name, options.profile.platform, 'skills');
|
|
125
|
+
await snapshotRuntimeSkills(path.join(outputRoot, 'skills'), targetRoot, options.profile.platform);
|
|
126
|
+
return materialized.preparation.map((unit) => ({ ...unit, outputs: [] }));
|
|
127
|
+
}
|
|
128
|
+
finally {
|
|
129
|
+
await fs.remove(outputRoot);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
async function materializeProfile(options) {
|
|
133
|
+
const scopeRoot = path.join(options.outputRoot, 'subjects', options.profile.id);
|
|
134
|
+
await fs.remove(scopeRoot);
|
|
135
|
+
await fs.ensureDir(scopeRoot);
|
|
136
|
+
const env = await createIsolatedSkillEnv(options.baseEnv, scopeRoot);
|
|
137
|
+
const projectRoot = path.join(scopeRoot, 'project');
|
|
138
|
+
await fs.ensureDir(path.join(projectRoot, '.git'));
|
|
139
|
+
const installations = options.profile.plugins.map((installation) => {
|
|
140
|
+
const prepared = options.preparedByName.get(installation.name);
|
|
141
|
+
if (!prepared) {
|
|
142
|
+
throw new Error(`Eval profile "${options.profile.id}" references unresolved plugin "${installation.name}".`);
|
|
143
|
+
}
|
|
144
|
+
return { installation, prepared };
|
|
145
|
+
});
|
|
146
|
+
for (const { installation, prepared } of installations) {
|
|
147
|
+
for (const scope of ['project', 'user']) {
|
|
148
|
+
const config = installation.configByScope[scope];
|
|
149
|
+
if (config === undefined)
|
|
150
|
+
continue;
|
|
151
|
+
await writePluginConfigStore({
|
|
152
|
+
sourceId: prepared.bundlePlugin.sourceId,
|
|
153
|
+
sourceIdentity: prepared.bundlePlugin.sourceIdentity,
|
|
154
|
+
logicalIdentity: prepared.bundlePlugin.catalogLogicalIdentity,
|
|
155
|
+
pluginName: installation.name,
|
|
156
|
+
scope,
|
|
157
|
+
platform: options.profile.platform,
|
|
158
|
+
cwd: projectRoot,
|
|
159
|
+
values: config,
|
|
160
|
+
env,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
const preparation = [];
|
|
165
|
+
for (const { prepared } of installations) {
|
|
166
|
+
preparation.push(...await materializeProfileSkills({
|
|
167
|
+
prepared,
|
|
168
|
+
plugins: installations.map(({ prepared }) => prepared.bundlePlugin),
|
|
169
|
+
profile: options.profile,
|
|
170
|
+
projectRoot,
|
|
171
|
+
env,
|
|
172
|
+
}));
|
|
173
|
+
}
|
|
174
|
+
const subjectRoot = options.profile.scope === 'project'
|
|
175
|
+
? projectRoot
|
|
176
|
+
: await copyUserMaterializedArtifacts({
|
|
177
|
+
scopeRoot,
|
|
178
|
+
env,
|
|
179
|
+
platform: options.profile.platform,
|
|
180
|
+
pluginNames: installations.map(({ installation }) => installation.name),
|
|
181
|
+
});
|
|
182
|
+
const skillsRoot = path.join(subjectRoot, '.agents', 'skills');
|
|
183
|
+
const materializedSkills = new Set((await fs.readdir(skillsRoot, { withFileTypes: true }).catch(() => []))
|
|
184
|
+
.filter((entry) => entry.isDirectory() && !entry.isSymbolicLink())
|
|
185
|
+
.map((entry) => entry.name));
|
|
186
|
+
for (const skill of options.requiredSkills) {
|
|
187
|
+
if (!materializedSkills.has(skill)) {
|
|
188
|
+
throw new Error(`Profile "${options.profile.id}" did not materialize required Skill "${skill}": ${preparation.flatMap((unit) => unit.unmet).filter((entry) => entry.kind === 'skill').map((entry) => `${entry.name ?? entry.id} (${entry.reasonCode})`).join(', ')}.`);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
if (options.initializeGitRepository) {
|
|
192
|
+
await initializeSubjectGitRepository(subjectRoot, env, [
|
|
193
|
+
'.codex',
|
|
194
|
+
...[...materializedSkills].map((skill) => path.join('.agents', 'skills', skill)),
|
|
195
|
+
]);
|
|
196
|
+
}
|
|
197
|
+
const subject = {
|
|
198
|
+
root: path.relative(options.outputRoot, subjectRoot).split(path.sep).join('/'),
|
|
199
|
+
preparation,
|
|
200
|
+
};
|
|
201
|
+
return subject;
|
|
202
|
+
}
|
|
203
|
+
export async function materializeAwSkillEvalSubject(options) {
|
|
204
|
+
if (!PLATFORM_TARGETS.includes(options.profile.platform)) {
|
|
205
|
+
throw new Error('Eval materialization requires an explicit canonical platform.');
|
|
206
|
+
}
|
|
207
|
+
const sourcePlugins = new Map();
|
|
208
|
+
for (const plugin of options.plugins) {
|
|
209
|
+
const name = plugin.manifest.name;
|
|
210
|
+
if (sourcePlugins.has(name)) {
|
|
211
|
+
throw new Error(`Duplicate plugin source for eval materialization: ${name}`);
|
|
212
|
+
}
|
|
213
|
+
sourcePlugins.set(name, plugin);
|
|
214
|
+
}
|
|
215
|
+
if (!sourcePlugins.has(options.plugin.manifest.name)) {
|
|
216
|
+
throw new Error(`Owner plugin source is missing: ${options.plugin.manifest.name}`);
|
|
217
|
+
}
|
|
218
|
+
const requiredPluginNames = [...new Set(options.profile.plugins.map((plugin) => plugin.name))];
|
|
219
|
+
const preparedByName = new Map();
|
|
220
|
+
try {
|
|
221
|
+
const bundleEnv = await createIsolatedSkillEnv(options.env ?? process.env, path.join(options.workRoot, 'environment'));
|
|
222
|
+
for (const pluginName of requiredPluginNames) {
|
|
223
|
+
const plugin = sourcePlugins.get(pluginName);
|
|
224
|
+
if (!plugin) {
|
|
225
|
+
throw new Error(`Eval manifest references repo-local plugin "${pluginName}" but no source was resolved.`);
|
|
226
|
+
}
|
|
227
|
+
const prepared = await prepareSkillPluginBundle({
|
|
228
|
+
plugin,
|
|
229
|
+
plugins: options.plugins,
|
|
230
|
+
workRoot: path.join(options.workRoot, pluginName),
|
|
231
|
+
env: bundleEnv,
|
|
232
|
+
});
|
|
233
|
+
const sourceId = prepared.bundlePlugin.sourceId ?? 'eval-source';
|
|
234
|
+
prepared.bundlePlugin = {
|
|
235
|
+
...prepared.bundlePlugin,
|
|
236
|
+
sourceId,
|
|
237
|
+
sourceIdentity: prepared.bundlePlugin.sourceIdentity ?? options.sourceIdentity,
|
|
238
|
+
catalogLogicalIdentity: prepared.bundlePlugin.catalogLogicalIdentity ?? options.workspaceIdentity,
|
|
239
|
+
pluginId: prepared.bundlePlugin.pluginId ?? `${sourceId}/${pluginName}`,
|
|
240
|
+
};
|
|
241
|
+
preparedByName.set(pluginName, prepared);
|
|
242
|
+
}
|
|
243
|
+
const owners = new Map();
|
|
244
|
+
for (const installation of options.profile.plugins) {
|
|
245
|
+
const prepared = preparedByName.get(installation.name);
|
|
246
|
+
const staticSkillsRoot = path.join(prepared.bundleRoot, options.profile.platform, 'skills');
|
|
247
|
+
const staticSkills = await fs.pathExists(staticSkillsRoot)
|
|
248
|
+
? await fs.readdir(staticSkillsRoot, { withFileTypes: true })
|
|
249
|
+
: [];
|
|
250
|
+
const declaredSkills = [
|
|
251
|
+
...staticSkills.filter((entry) => entry.isDirectory()).map((entry) => entry.name),
|
|
252
|
+
];
|
|
253
|
+
for (const skill of new Set(declaredSkills)) {
|
|
254
|
+
const existing = owners.get(skill);
|
|
255
|
+
if (existing && existing !== installation.name) {
|
|
256
|
+
throw new Error(`Eval profile "${options.profile.id}" installs duplicate Skill key "${skill}" ` +
|
|
257
|
+
`from plugins "${existing}" and "${installation.name}".`);
|
|
258
|
+
}
|
|
259
|
+
owners.set(skill, installation.name);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return await materializeProfile({
|
|
263
|
+
preparedByName,
|
|
264
|
+
requiredSkills: options.requiredSkills,
|
|
265
|
+
profile: options.profile,
|
|
266
|
+
outputRoot: options.outputRoot,
|
|
267
|
+
baseEnv: options.env ?? process.env,
|
|
268
|
+
initializeGitRepository: options.initializeGitRepository,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
finally {
|
|
272
|
+
await Promise.all([...preparedByName.values()].map((prepared) => prepared.cleanup()));
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
export function resolveMaterializedSubjectRoot(outputRoot, subject) {
|
|
276
|
+
return path.resolve(outputRoot, subject.root);
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=aw-skill-eval-materializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aw-skill-eval-materializer.js","sourceRoot":"","sources":["../../scripts/aw-skill-eval-materializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAuB,MAAM,+BAA+B,CAAC;AAEtF,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,kCAAkC,GAGnC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAWxH,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAoB1C,KAAK,UAAU,qBAAqB,CAAC,UAAkB,EAAE,UAAkB,EAAE,QAAwB;IACnG,IAAI,QAAQ,KAAK,OAAO,IAAI,QAAQ,KAAK,QAAQ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AAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACxF,CAAC;AACH,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,UAAkB,EAClB,OAAuC;IAEvC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -5,6 +5,7 @@ export interface BundlePluginsOptions {
|
|
|
5
5
|
buildMode?: PluginBundleBuildMode;
|
|
6
6
|
stagingRunner?: PluginStagingRunner;
|
|
7
7
|
assertPackageVersions?: boolean;
|
|
8
|
+
strictRequirements?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare function bundlePlugins(options?: BundlePluginsOptions): Promise<{
|
|
10
11
|
outputRoot: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
import fs from 'fs-extra';
|
|
4
|
+
import { resolveSupportedPlatforms } from '@lesliechan721/aw-plugin-core/manifest';
|
|
4
5
|
import { stageCatalogArtifacts, bundleLocalPlugin, } from './plugin-staging.js';
|
|
5
6
|
import { writeJsonFile } from '../src/utils/json.js';
|
|
6
7
|
import { resolveCliPackageRoot } from '../src/utils/paths.js';
|
|
@@ -20,6 +21,7 @@ async function assertPackageVersions(repoRoot) {
|
|
|
20
21
|
['package.json', path.join(repoRoot, 'package.json')],
|
|
21
22
|
['release/version-targets.json', path.join(repoRoot, 'release', 'version-targets.json')],
|
|
22
23
|
['packages/agent-skill-eval/package.json', path.join(repoRoot, 'packages', 'agent-skill-eval', 'package.json')],
|
|
24
|
+
['packages/plugin-core/package.json', path.join(repoRoot, 'packages', 'plugin-core', 'package.json')],
|
|
23
25
|
['packages/cli/package.json', path.join(repoRoot, 'packages', 'cli', 'package.json')],
|
|
24
26
|
];
|
|
25
27
|
const existence = await Promise.all(truthFiles.map(([, filePath]) => fs.pathExists(filePath)));
|
|
@@ -29,11 +31,12 @@ async function assertPackageVersions(repoRoot) {
|
|
|
29
31
|
if (missing.length > 0) {
|
|
30
32
|
throw new Error(`Incomplete release version truth set: missing ${missing.join(', ')}.`);
|
|
31
33
|
}
|
|
32
|
-
const [[, rootPackageJsonPath], [, targetsPath], [, evalPackageJsonPath], [, cliPackageJsonPath]] = truthFiles;
|
|
33
|
-
const [rootPackageJson, targets, evalPackageJson, cliPackageJson] = await Promise.all([
|
|
34
|
+
const [[, rootPackageJsonPath], [, targetsPath], [, evalPackageJsonPath], [, corePackageJsonPath], [, cliPackageJsonPath],] = truthFiles;
|
|
35
|
+
const [rootPackageJson, targets, evalPackageJson, corePackageJson, cliPackageJson,] = await Promise.all([
|
|
34
36
|
fs.readJson(rootPackageJsonPath),
|
|
35
37
|
fs.readJson(targetsPath),
|
|
36
38
|
fs.readJson(evalPackageJsonPath),
|
|
39
|
+
fs.readJson(corePackageJsonPath),
|
|
37
40
|
fs.readJson(cliPackageJsonPath),
|
|
38
41
|
]);
|
|
39
42
|
if (Object.hasOwn(rootPackageJson, 'version')) {
|
|
@@ -48,19 +51,26 @@ async function assertPackageVersions(repoRoot) {
|
|
|
48
51
|
throw new Error('Invalid release/version-targets.json cli: expected a stable SemVer 2.0.0 string.');
|
|
49
52
|
}
|
|
50
53
|
const evalVersion = assertStrictSemVer(evalPackageJson.version, 'packages/agent-skill-eval/package.json version');
|
|
54
|
+
const coreVersion = assertStrictSemVer(corePackageJson.version, 'packages/plugin-core/package.json version');
|
|
51
55
|
const cliVersion = assertStrictSemVer(cliPackageJson.version, 'packages/cli/package.json version');
|
|
52
|
-
if (targetVersion !== cliVersion
|
|
56
|
+
if (targetVersion !== cliVersion
|
|
57
|
+
|| targetVersion !== evalVersion
|
|
58
|
+
|| targetVersion !== coreVersion) {
|
|
53
59
|
throw new Error(`Invalid release versions: release/version-targets.json cli ${targetVersion} must match ` +
|
|
54
|
-
`
|
|
60
|
+
`all three public package versions, including Eval ${evalVersion}, Core ${coreVersion}, ` +
|
|
55
61
|
`packages/cli/package.json version ${cliVersion}.`);
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
|
-
async function removeGeneratedEmptyDirectories(currentDir) {
|
|
64
|
+
async function removeGeneratedEmptyDirectories(currentDir, preservedRoots = []) {
|
|
65
|
+
if (preservedRoots.includes(path.resolve(currentDir)))
|
|
66
|
+
return;
|
|
59
67
|
for (const entry of await fs.readdir(currentDir, { withFileTypes: true })) {
|
|
60
68
|
if (!entry.isDirectory())
|
|
61
69
|
continue;
|
|
62
70
|
const entryPath = path.join(currentDir, entry.name);
|
|
63
|
-
|
|
71
|
+
if (preservedRoots.includes(path.resolve(entryPath)))
|
|
72
|
+
continue;
|
|
73
|
+
await removeGeneratedEmptyDirectories(entryPath, preservedRoots);
|
|
64
74
|
if ((await fs.readdir(entryPath)).length === 0) {
|
|
65
75
|
await fs.remove(entryPath);
|
|
66
76
|
}
|
|
@@ -93,8 +103,17 @@ export async function bundlePlugins(options = {}) {
|
|
|
93
103
|
buildMode,
|
|
94
104
|
stagingRunner: options.stagingRunner,
|
|
95
105
|
runtimeResolver,
|
|
106
|
+
strictRequirements: options.strictRequirements,
|
|
96
107
|
});
|
|
97
|
-
|
|
108
|
+
const preservedRoots = [
|
|
109
|
+
...(result.plugin.manifest.managedCommands?.packages ?? []).map((entry) => entry.sourceDir),
|
|
110
|
+
...Object.values(result.platformManifests).flatMap((manifest) => manifest.skills ?? []),
|
|
111
|
+
...[...resolveSupportedPlatforms(result.plugin.manifest)]
|
|
112
|
+
.filter((platform) => platform !== 'codex' && platform !== 'claude' && result.plugin.manifest.skills)
|
|
113
|
+
.map((platform) => `./${platform}/skills`),
|
|
114
|
+
];
|
|
115
|
+
await removeGeneratedEmptyDirectories(bundledPluginRoot, preservedRoots
|
|
116
|
+
.map((relativePath) => path.resolve(bundledPluginRoot, relativePath)));
|
|
98
117
|
bundledPlugins.push(result.plugin);
|
|
99
118
|
runtimeProjection[result.plugin.manifest.name] = result.runtimeProjection;
|
|
100
119
|
for (const platform of ['claude', 'codex']) {
|
|
@@ -116,7 +135,7 @@ export async function bundlePlugins(options = {}) {
|
|
|
116
135
|
};
|
|
117
136
|
}
|
|
118
137
|
if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
|
|
119
|
-
bundlePlugins({ buildMode: 'staging' }).catch((error) => {
|
|
138
|
+
bundlePlugins({ buildMode: 'staging', strictRequirements: true }).catch((error) => {
|
|
120
139
|
const message = error instanceof Error ? error.message : String(error);
|
|
121
140
|
console.error(message);
|
|
122
141
|
process.exitCode = 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-plugins.js","sourceRoot":"","sources":["../../scripts/bundle-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"bundle-plugins.js","sourceRoot":"","sources":["../../scripts/bundle-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,OAAO,EACL,qBAAqB,EACrB,iBAAiB,GAKlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,eAAe,EACf,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,8BAA8B,EAA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AAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACvB,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -2,16 +2,15 @@ export { bundleLocalPlugin, prepareLocalPluginBundleSource, } from '../src/gener
|
|
|
2
2
|
export type { PluginBundleBuildMode, PreparedPluginRuntimeContext, PluginStagingRunner, RuntimeImportProvenance, SkillRuntimeFileProvenance, } from '../src/generators/local-plugin.js';
|
|
3
3
|
export { createCatalogRuntimeImportResolver, } from '../src/utils/catalog-runtime-projection.js';
|
|
4
4
|
export type { CatalogRuntimeImportResolver, } from '../src/utils/catalog-runtime-projection.js';
|
|
5
|
-
export {
|
|
5
|
+
export { buildPluginScriptSpawnEnv, calculateFileDigest, collectSensitivePluginConfigValues, redactPluginScriptOutput, } from '../src/utils/plugin-scripts.js';
|
|
6
6
|
export { coercePluginConfigValue, resolveEffectivePluginConfig, resolvePluginConfigStorePath, } from '../src/utils/plugin-config.js';
|
|
7
7
|
export { compareStrictSemVer, createMarketplaceManifestEntry, discoverPlugins, normalizeManifestDigestInput, readPluginManifest, resolvePluginsFromCatalog, } from '../src/utils/manifest.js';
|
|
8
|
-
export { appendCatalogToPluginReleaseLedger, assertStablePluginVersion, mergePluginReleaseLedgers, PLUGIN_RELEASE_LEDGER_FILENAME, PLUGIN_RELEASE_LEDGER_SCHEMA_VERSION, resolveBetaPluginVersionOverrides, validatePluginReleaseLedgerAgainstManifest, validatePluginReleaseLedger, } from '../src/utils/plugin-release.js';
|
|
9
8
|
export { matchesPluginTestEntryGlob, scanJavaScriptImportSpecifiers, scanNodeImportContract, } from '../src/utils/plugin-script-contract.js';
|
|
10
|
-
export {
|
|
9
|
+
export { formatManifestPlatformsForError, formatSupportedPlatforms, resolveSupportedPlatforms, } from '../src/utils/platform-support.js';
|
|
11
10
|
export { resolveAwHome, resolveCliPackageRoot, } from '../src/utils/paths.js';
|
|
12
11
|
export { CATALOG_MANIFEST_FILENAME, } from '../src/utils/bundle-layout.js';
|
|
13
|
-
import type {
|
|
14
|
-
import {
|
|
12
|
+
import type { CatalogManifestV7 } from '../src/types.js';
|
|
13
|
+
import { CATALOG_SCHEMA_7_CAPABILITY } from '../src/utils/catalog-manifest-v7.js';
|
|
15
14
|
export type { PlatformName, PluginConfigSchemaField, PluginManifestSource, PluginMeta, Scope, } from '../src/types.js';
|
|
16
15
|
export type { PluginConfigValue } from '../src/utils/plugin-config.js';
|
|
17
16
|
export interface CatalogStageOptions {
|
|
@@ -19,9 +18,9 @@ export interface CatalogStageOptions {
|
|
|
19
18
|
outputRoot: string;
|
|
20
19
|
}
|
|
21
20
|
export interface CatalogStageResult {
|
|
22
|
-
manifest:
|
|
21
|
+
manifest: CatalogManifestV7;
|
|
23
22
|
canonicalManifestPath: string;
|
|
24
23
|
}
|
|
25
|
-
export {
|
|
24
|
+
export { CATALOG_SCHEMA_7_CAPABILITY };
|
|
26
25
|
export declare function stageCatalogArtifacts(options: CatalogStageOptions): Promise<CatalogStageResult>;
|
|
27
|
-
export declare function readStagedCatalogManifest(outputRoot: string): Promise<
|
|
26
|
+
export declare function readStagedCatalogManifest(outputRoot: string): Promise<CatalogManifestV7>;
|