@lesliechan721/aw 0.1.0-beta.8 → 0.1.0-beta.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring/assets/aw-config.mjs +100 -501
- package/dist/authoring/assets/aw-config.mjs.map +1 -1
- package/dist/authoring/assets/aw-runtime-config.d.mts +13 -0
- package/dist/authoring/assets/aw-runtime-config.mjs +221 -0
- package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.mjs +17 -40
- package/dist/authoring/scripts/add-skill.mjs.map +1 -1
- package/dist/authoring/scripts/init-plugin.mjs +74 -98
- package/dist/authoring/scripts/init-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-root.mjs +4 -4
- package/dist/authoring/scripts/lib/plugin-root.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-version-check.d.mts +1 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +230 -9
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
- package/dist/authoring/scripts/lib/skill-scaffold.d.mts +79 -92
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +103 -127
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs +2 -2
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-plugin.mjs +459 -2843
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-skill.mjs +1 -1
- package/dist/native-runtime/reader-runtime.mjs +34 -0
- package/dist/native-runtime/reader.d.mts +6 -0
- package/dist/native-runtime/reader.mjs +11 -0
- package/dist/scripts/aw-skill-eval-materializer.d.ts +30 -0
- package/dist/scripts/aw-skill-eval-materializer.js +278 -0
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -0
- package/dist/scripts/bundle-plugins.d.ts +1 -0
- package/dist/scripts/bundle-plugins.js +27 -8
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/plugin-staging.d.ts +7 -8
- package/dist/scripts/plugin-staging.js +16 -15
- package/dist/scripts/plugin-staging.js.map +1 -1
- package/dist/scripts/plugin-test-reporter.d.mts +2 -0
- package/dist/scripts/plugin-test-reporter.mjs +21 -0
- package/dist/scripts/plugin-test-reporter.mjs.map +1 -0
- package/dist/scripts/test-plugin-scripts.d.ts +5 -0
- package/dist/scripts/test-plugin-scripts.js +273 -78
- package/dist/scripts/test-plugin-scripts.js.map +1 -1
- package/dist/scripts/test-workers.d.mts +24 -0
- package/dist/scripts/test-workers.mjs +59 -0
- package/dist/scripts/test-workers.mjs.map +1 -0
- package/dist/src/adapters/helpers.d.ts +7 -0
- package/dist/src/adapters/helpers.js.map +1 -1
- package/dist/src/authoring/workspace-commands.d.ts +5 -1
- package/dist/src/authoring/workspace-commands.js +7 -2
- package/dist/src/authoring/workspace-commands.js.map +1 -1
- package/dist/src/commands/aw-capabilities.d.ts +2 -2
- package/dist/src/commands/aw-capabilities.js +41 -29
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/catalog-dev-source.d.ts +58 -13
- package/dist/src/commands/catalog-dev-source.js +549 -305
- package/dist/src/commands/catalog-dev-source.js.map +1 -1
- package/dist/src/commands/catalog-generation.d.ts +14 -19
- package/dist/src/commands/catalog-generation.js +5 -10
- package/dist/src/commands/catalog-generation.js.map +1 -1
- package/dist/src/commands/catalog-publication-inspection.d.ts +70 -29
- package/dist/src/commands/catalog-publication-inspection.js +475 -62
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -1
- package/dist/src/commands/catalog-publication-journal.d.ts +68 -0
- package/dist/src/commands/catalog-publication-journal.js +292 -0
- package/dist/src/commands/catalog-publication-journal.js.map +1 -0
- package/dist/src/commands/catalog-publication-target.d.ts +2 -1
- package/dist/src/commands/catalog-publication-target.js +37 -2
- package/dist/src/commands/catalog-publication-target.js.map +1 -1
- package/dist/src/commands/catalog-publish.d.ts +82 -15
- package/dist/src/commands/catalog-publish.js +722 -219
- package/dist/src/commands/catalog-publish.js.map +1 -1
- package/dist/src/commands/catalog-source.d.ts +55 -35
- package/dist/src/commands/catalog-source.js +298 -148
- package/dist/src/commands/catalog-source.js.map +1 -1
- package/dist/src/commands/catalog-status.d.ts +6 -26
- package/dist/src/commands/catalog-status.js +9 -147
- package/dist/src/commands/catalog-status.js.map +1 -1
- package/dist/src/commands/catalog-store.d.ts +104 -0
- package/dist/src/commands/catalog-store.js +685 -0
- package/dist/src/commands/catalog-store.js.map +1 -0
- package/dist/src/commands/catalog-workspace-resolution.d.ts +17 -0
- package/dist/src/commands/catalog-workspace-resolution.js +57 -0
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -0
- package/dist/src/commands/console.js +32 -20
- package/dist/src/commands/console.js.map +1 -1
- package/dist/src/commands/dependency-operation-plan.d.ts +52 -15
- package/dist/src/commands/dependency-operation-plan.js +289 -7
- package/dist/src/commands/dependency-operation-plan.js.map +1 -1
- package/dist/src/commands/deployment-confirmation.d.ts +4 -0
- package/dist/src/commands/deployment-confirmation.js +20 -0
- package/dist/src/commands/deployment-confirmation.js.map +1 -0
- package/dist/src/commands/init.d.ts +5 -11
- package/dist/src/commands/init.js +30 -51
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/intent-command.d.ts +32 -0
- package/dist/src/commands/intent-command.js +171 -0
- package/dist/src/commands/intent-command.js.map +1 -0
- package/dist/src/commands/managed-commands.d.ts +35 -0
- package/dist/src/commands/managed-commands.js +361 -0
- package/dist/src/commands/managed-commands.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +46 -0
- package/dist/src/commands/offline-cleanup-evidence.js +158 -10
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
- package/dist/src/commands/operation-plan.d.ts +190 -0
- package/dist/src/commands/operation-plan.js +99 -0
- package/dist/src/commands/operation-plan.js.map +1 -0
- package/dist/src/commands/operation-planner.d.ts +47 -0
- package/dist/src/commands/operation-planner.js +142 -0
- package/dist/src/commands/operation-planner.js.map +1 -0
- package/dist/src/commands/options.d.ts +16 -20
- package/dist/src/commands/options.js +94 -41
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/plugin-capabilities.js +88 -45
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-config-confirmation.d.ts +8 -0
- package/dist/src/commands/public-config-confirmation.js +56 -0
- package/dist/src/commands/public-config-confirmation.js.map +1 -0
- package/dist/src/commands/public-interruption.d.ts +9 -0
- package/dist/src/commands/public-interruption.js +23 -0
- package/dist/src/commands/public-interruption.js.map +1 -0
- package/dist/src/commands/public-lifecycle-result.d.ts +102 -0
- package/dist/src/commands/public-lifecycle-result.js +307 -0
- package/dist/src/commands/public-lifecycle-result.js.map +1 -0
- package/dist/src/commands/public-lifecycle.d.ts +28 -0
- package/dist/src/commands/public-lifecycle.js +492 -0
- package/dist/src/commands/public-lifecycle.js.map +1 -0
- package/dist/src/commands/public-plugin-query.d.ts +16 -0
- package/dist/src/commands/public-plugin-query.js +193 -0
- package/dist/src/commands/public-plugin-query.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +166 -28
- package/dist/src/commands/rebuild-command.js +3745 -813
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +137 -25
- package/dist/src/commands/rebuild-integration.js +1343 -2535
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +73 -22
- package/dist/src/commands/rebuild-operations.js +313 -216
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +62 -0
- package/dist/src/commands/rebuild-platform-integration.js +1317 -0
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -0
- package/dist/src/commands/reconcile-operation-plan.d.ts +28 -0
- package/dist/src/commands/reconcile-operation-plan.js +47 -0
- package/dist/src/commands/reconcile-operation-plan.js.map +1 -0
- package/dist/src/commands/review-inspection.d.ts +60 -0
- package/dist/src/commands/review-inspection.js +436 -0
- package/dist/src/commands/review-inspection.js.map +1 -0
- package/dist/src/commands/review-preparation.d.ts +51 -0
- package/dist/src/commands/review-preparation.js +400 -0
- package/dist/src/commands/review-preparation.js.map +1 -0
- package/dist/src/commands/runtime.d.ts +6 -6
- package/dist/src/commands/runtime.js +44 -24
- package/dist/src/commands/runtime.js.map +1 -1
- package/dist/src/commands/skill-eval.d.ts +41 -0
- package/dist/src/commands/skill-eval.js +407 -0
- package/dist/src/commands/skill-eval.js.map +1 -0
- package/dist/src/commands/status-v6.d.ts +319 -0
- package/dist/src/commands/status-v6.js +2979 -0
- package/dist/src/commands/status-v6.js.map +1 -0
- package/dist/src/commands/targets-command.d.ts +38 -0
- package/dist/src/commands/targets-command.js +182 -0
- package/dist/src/commands/targets-command.js.map +1 -0
- package/dist/src/commands/wizard.d.ts +8 -5
- package/dist/src/commands/wizard.js +7 -4
- package/dist/src/commands/wizard.js.map +1 -1
- package/dist/src/commands/write-commands.d.ts +9 -3
- package/dist/src/commands/write-commands.js +143 -85
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +6 -6
- package/dist/src/constants.js +6 -6
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eval/manifest-v1.d.ts +70 -0
- package/dist/src/eval/manifest-v1.js +358 -0
- package/dist/src/eval/manifest-v1.js.map +1 -0
- package/dist/src/generators/local-plugin.d.ts +7 -2
- package/dist/src/generators/local-plugin.js +313 -389
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/generators/permissions.d.ts +5 -2
- package/dist/src/generators/permissions.js +28 -15
- package/dist/src/generators/permissions.js.map +1 -1
- package/dist/src/index.d.ts +2 -31
- package/dist/src/index.js +1666 -1827
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent/deployment-preferences.d.ts +63 -0
- package/dist/src/intent/deployment-preferences.js +170 -0
- package/dist/src/intent/deployment-preferences.js.map +1 -0
- package/dist/src/intent/diagnostics.d.ts +11 -0
- package/dist/src/intent/diagnostics.js +14 -0
- package/dist/src/intent/diagnostics.js.map +1 -0
- package/dist/src/intent/intent-codec.d.ts +19 -0
- package/dist/src/intent/intent-codec.js +117 -0
- package/dist/src/intent/intent-codec.js.map +1 -0
- package/dist/src/intent/intent-store.d.ts +43 -0
- package/dist/src/intent/intent-store.js +118 -0
- package/dist/src/intent/intent-store.js.map +1 -0
- package/dist/src/intent/scope-context.d.ts +33 -0
- package/dist/src/intent/scope-context.js +149 -0
- package/dist/src/intent/scope-context.js.map +1 -0
- package/dist/src/intent/work-context.d.ts +13 -0
- package/dist/src/intent/work-context.js +22 -0
- package/dist/src/intent/work-context.js.map +1 -0
- package/dist/src/output/command-receipt.d.ts +47 -46
- package/dist/src/output/command-receipt.js +286 -79
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/model.d.ts +3 -11
- package/dist/src/output/native-consent.d.ts +2 -0
- package/dist/src/output/native-consent.js +5 -0
- package/dist/src/output/native-consent.js.map +1 -0
- package/dist/src/output/public-result.d.ts +49 -0
- package/dist/src/output/public-result.js +240 -0
- package/dist/src/output/public-result.js.map +1 -0
- package/dist/src/output/rebuild-progress.js +20 -15
- package/dist/src/output/rebuild-progress.js.map +1 -1
- package/dist/src/output/receipt-projection.d.ts +7 -0
- package/dist/src/output/receipt-projection.js +592 -0
- package/dist/src/output/receipt-projection.js.map +1 -0
- package/dist/src/platforms/capabilities.d.ts +12 -0
- package/dist/src/platforms/capabilities.js +205 -0
- package/dist/src/platforms/capabilities.js.map +1 -0
- package/dist/src/platforms/contracts.d.ts +358 -0
- package/dist/src/platforms/contracts.js +2 -0
- package/dist/src/platforms/contracts.js.map +1 -0
- package/dist/src/platforms/cursor-workspace-hook.d.ts +28 -0
- package/dist/src/platforms/cursor-workspace-hook.js +198 -0
- package/dist/src/platforms/cursor-workspace-hook.js.map +1 -0
- package/dist/src/platforms/discovery.d.ts +91 -0
- package/dist/src/platforms/discovery.js +653 -0
- package/dist/src/platforms/discovery.js.map +1 -0
- package/dist/src/platforms/gemini-activation.d.ts +36 -0
- package/dist/src/platforms/gemini-activation.js +331 -0
- package/dist/src/platforms/gemini-activation.js.map +1 -0
- package/dist/src/platforms/gemini-consent.d.ts +8 -0
- package/dist/src/platforms/gemini-consent.js +81 -0
- package/dist/src/platforms/gemini-consent.js.map +1 -0
- package/dist/src/platforms/identity.d.ts +4 -0
- package/dist/src/platforms/identity.js +22 -0
- package/dist/src/platforms/identity.js.map +1 -0
- package/dist/src/platforms/inspection-grok.d.ts +4 -0
- package/dist/src/platforms/inspection-grok.js +212 -0
- package/dist/src/platforms/inspection-grok.js.map +1 -0
- package/dist/src/platforms/inspection-native.d.ts +6 -0
- package/dist/src/platforms/inspection-native.js +406 -0
- package/dist/src/platforms/inspection-native.js.map +1 -0
- package/dist/src/platforms/inspection-opencode.d.ts +4 -0
- package/dist/src/platforms/inspection-opencode.js +98 -0
- package/dist/src/platforms/inspection-opencode.js.map +1 -0
- package/dist/src/platforms/inspection-pi.d.ts +3 -0
- package/dist/src/platforms/inspection-pi.js +282 -0
- package/dist/src/platforms/inspection-pi.js.map +1 -0
- package/dist/src/platforms/inspection-query.d.ts +12 -0
- package/dist/src/platforms/inspection-query.js +96 -0
- package/dist/src/platforms/inspection-query.js.map +1 -0
- package/dist/src/platforms/inspection.d.ts +17 -0
- package/dist/src/platforms/inspection.js +227 -0
- package/dist/src/platforms/inspection.js.map +1 -0
- package/dist/src/platforms/layout.d.ts +21 -0
- package/dist/src/platforms/layout.js +239 -0
- package/dist/src/platforms/layout.js.map +1 -0
- package/dist/src/platforms/lifecycle-native-services.d.ts +3 -0
- package/dist/src/platforms/lifecycle-native-services.js +147 -0
- package/dist/src/platforms/lifecycle-native-services.js.map +1 -0
- package/dist/src/platforms/lifecycle-native.d.ts +13 -0
- package/dist/src/platforms/lifecycle-native.js +283 -0
- package/dist/src/platforms/lifecycle-native.js.map +1 -0
- package/dist/src/platforms/lifecycle.d.ts +25 -0
- package/dist/src/platforms/lifecycle.js +494 -0
- package/dist/src/platforms/lifecycle.js.map +1 -0
- package/dist/src/platforms/managed-command-placement.d.ts +8 -0
- package/dist/src/platforms/managed-command-placement.js +79 -0
- package/dist/src/platforms/managed-command-placement.js.map +1 -0
- package/dist/src/platforms/projection-code-extension.d.ts +8 -0
- package/dist/src/platforms/projection-code-extension.js +121 -0
- package/dist/src/platforms/projection-code-extension.js.map +1 -0
- package/dist/src/platforms/projection-command-resources.d.ts +7 -0
- package/dist/src/platforms/projection-command-resources.js +74 -0
- package/dist/src/platforms/projection-command-resources.js.map +1 -0
- package/dist/src/platforms/projection-files.d.ts +27 -0
- package/dist/src/platforms/projection-files.js +111 -0
- package/dist/src/platforms/projection-files.js.map +1 -0
- package/dist/src/platforms/projection-marketplace.d.ts +19 -0
- package/dist/src/platforms/projection-marketplace.js +42 -0
- package/dist/src/platforms/projection-marketplace.js.map +1 -0
- package/dist/src/platforms/projection.d.ts +10 -0
- package/dist/src/platforms/projection.js +446 -0
- package/dist/src/platforms/projection.js.map +1 -0
- package/dist/src/platforms/registry.d.ts +4 -0
- package/dist/src/platforms/registry.js +30 -0
- package/dist/src/platforms/registry.js.map +1 -0
- package/dist/src/platforms/supplement-layout.d.ts +16 -0
- package/dist/src/platforms/supplement-layout.js +31 -0
- package/dist/src/platforms/supplement-layout.js.map +1 -0
- package/dist/src/platforms/supplement-state.d.ts +13 -0
- package/dist/src/platforms/supplement-state.js +82 -0
- package/dist/src/platforms/supplement-state.js.map +1 -0
- package/dist/src/portable/commands.d.ts +58 -11
- package/dist/src/portable/commands.js +94 -350
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/historical-materialization.d.ts +22 -0
- package/dist/src/portable/historical-materialization.js +124 -0
- package/dist/src/portable/historical-materialization.js.map +1 -0
- package/dist/src/portable/materializer.d.ts +24 -4
- package/dist/src/portable/materializer.js +189 -259
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery-layout.d.ts +17 -0
- package/dist/src/portable/recovery-layout.js +42 -0
- package/dist/src/portable/recovery-layout.js.map +1 -0
- package/dist/src/portable/recovery.d.ts +153 -0
- package/dist/src/portable/recovery.js +367 -0
- package/dist/src/portable/recovery.js.map +1 -0
- package/dist/src/portable/writer.d.ts +67 -0
- package/dist/src/portable/writer.js +321 -0
- package/dist/src/portable/writer.js.map +1 -0
- package/dist/src/recovery/coordinator.d.ts +141 -0
- package/dist/src/recovery/coordinator.js +1254 -0
- package/dist/src/recovery/coordinator.js.map +1 -0
- package/dist/src/recovery/demand.d.ts +51 -0
- package/dist/src/recovery/demand.js +159 -0
- package/dist/src/recovery/demand.js.map +1 -0
- package/dist/src/recovery/joint-coordinator.d.ts +25 -0
- package/dist/src/recovery/joint-coordinator.js +991 -0
- package/dist/src/recovery/joint-coordinator.js.map +1 -0
- package/dist/src/recovery/joint-demand.d.ts +50 -0
- package/dist/src/recovery/joint-demand.js +197 -0
- package/dist/src/recovery/joint-demand.js.map +1 -0
- package/dist/src/recovery/performance.d.ts +4 -0
- package/dist/src/recovery/performance.js +26 -0
- package/dist/src/recovery/performance.js.map +1 -0
- package/dist/src/recovery/receipt.d.ts +98 -0
- package/dist/src/recovery/receipt.js +2 -0
- package/dist/src/recovery/receipt.js.map +1 -0
- package/dist/src/recovery/retirement.d.ts +47 -0
- package/dist/src/recovery/retirement.js +469 -0
- package/dist/src/recovery/retirement.js.map +1 -0
- package/dist/src/recovery/status.d.ts +126 -0
- package/dist/src/recovery/status.js +1073 -0
- package/dist/src/recovery/status.js.map +1 -0
- package/dist/src/recovery/types.d.ts +85 -0
- package/dist/src/recovery/types.js +2 -0
- package/dist/src/recovery/types.js.map +1 -0
- package/dist/src/review/eval-source-input.d.ts +43 -0
- package/dist/src/review/eval-source-input.js +207 -0
- package/dist/src/review/eval-source-input.js.map +1 -0
- package/dist/src/review/platform-profile.d.ts +3 -0
- package/dist/src/review/platform-profile.js +14 -0
- package/dist/src/review/platform-profile.js.map +1 -0
- package/dist/src/review/review-profile.d.ts +20 -0
- package/dist/src/review/review-profile.js +276 -0
- package/dist/src/review/review-profile.js.map +1 -0
- package/dist/src/review/review-selection.d.ts +20 -0
- package/dist/src/review/review-selection.js +495 -0
- package/dist/src/review/review-selection.js.map +1 -0
- package/dist/src/review/review-types.d.ts +71 -0
- package/dist/src/review/review-types.js +16 -0
- package/dist/src/review/review-types.js.map +1 -0
- package/dist/src/review/skill-materialization.d.ts +62 -0
- package/dist/src/review/skill-materialization.js +205 -0
- package/dist/src/review/skill-materialization.js.map +1 -0
- package/dist/src/review/source-binding.d.ts +201 -0
- package/dist/src/review/source-binding.js +773 -0
- package/dist/src/review/source-binding.js.map +1 -0
- package/dist/src/tui/agent-management.d.ts +23 -0
- package/dist/src/tui/agent-management.js +319 -0
- package/dist/src/tui/agent-management.js.map +1 -0
- package/dist/src/tui/agent-settings.d.ts +47 -0
- package/dist/src/tui/agent-settings.js +97 -0
- package/dist/src/tui/agent-settings.js.map +1 -0
- package/dist/src/tui/catalog-freshness.d.ts +1 -0
- package/dist/src/tui/catalog-freshness.js +2 -0
- package/dist/src/tui/catalog-freshness.js.map +1 -0
- package/dist/src/tui/catalog-generation.d.ts +18 -53
- package/dist/src/tui/catalog-generation.js +136 -224
- package/dist/src/tui/catalog-generation.js.map +1 -1
- package/dist/src/tui/catalog-sources/projection.d.ts +4 -0
- package/dist/src/tui/catalog-sources/projection.js +17 -0
- package/dist/src/tui/catalog-sources/projection.js.map +1 -0
- package/dist/src/tui/catalog-sources/review.d.ts +3 -0
- package/dist/src/tui/catalog-sources/review.js +13 -0
- package/dist/src/tui/catalog-sources/review.js.map +1 -0
- package/dist/src/tui/catalog-sources/screens.d.ts +12 -0
- package/dist/src/tui/catalog-sources/screens.js +40 -0
- package/dist/src/tui/catalog-sources/screens.js.map +1 -0
- package/dist/src/tui/catalog-sources/session.d.ts +32 -0
- package/dist/src/tui/catalog-sources/session.js +300 -0
- package/dist/src/tui/catalog-sources/session.js.map +1 -0
- package/dist/src/tui/catalog-sources/types.d.ts +54 -0
- package/dist/src/tui/catalog-sources/types.js +2 -0
- package/dist/src/tui/catalog-sources/types.js.map +1 -0
- package/dist/src/tui/catalog-store-task.d.ts +16 -0
- package/dist/src/tui/catalog-store-task.js +19 -0
- package/dist/src/tui/catalog-store-task.js.map +1 -0
- package/dist/src/tui/clipboard.d.ts +13 -0
- package/dist/src/tui/clipboard.js +95 -0
- package/dist/src/tui/clipboard.js.map +1 -0
- package/dist/src/tui/components.d.ts +113 -3
- package/dist/src/tui/components.js +201 -36
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/config-array-draft.d.ts +29 -0
- package/dist/src/tui/config-array-draft.js +48 -0
- package/dist/src/tui/config-array-draft.js.map +1 -0
- package/dist/src/tui/config-leaf-editor.d.ts +43 -0
- package/dist/src/tui/config-leaf-editor.js +224 -0
- package/dist/src/tui/config-leaf-editor.js.map +1 -0
- package/dist/src/tui/config-references.d.ts +38 -0
- package/dist/src/tui/config-references.js +82 -0
- package/dist/src/tui/config-references.js.map +1 -0
- package/dist/src/tui/config-value-presentation.d.ts +20 -0
- package/dist/src/tui/config-value-presentation.js +104 -0
- package/dist/src/tui/config-value-presentation.js.map +1 -0
- package/dist/src/tui/console-app-v4.d.ts +13 -4
- package/dist/src/tui/console-app-v4.js +9764 -2210
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/content-item-card.d.ts +13 -0
- package/dist/src/tui/content-item-card.js +51 -0
- package/dist/src/tui/content-item-card.js.map +1 -0
- package/dist/src/tui/controller-runtime.d.ts +7 -4
- package/dist/src/tui/controller-runtime.js +2064 -779
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +669 -106
- package/dist/src/tui/controller.js +3617 -971
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/dependency-graph-view.d.ts +39 -0
- package/dist/src/tui/dependency-graph-view.js +121 -0
- package/dist/src/tui/dependency-graph-view.js.map +1 -0
- package/dist/src/tui/dependency-graph.d.ts +81 -0
- package/dist/src/tui/dependency-graph.js +452 -0
- package/dist/src/tui/dependency-graph.js.map +1 -0
- package/dist/src/tui/deployment-view.d.ts +10 -0
- package/dist/src/tui/deployment-view.js +108 -0
- package/dist/src/tui/deployment-view.js.map +1 -0
- package/dist/src/tui/diagnostic-projection.d.ts +23 -0
- package/dist/src/tui/diagnostic-projection.js +595 -0
- package/dist/src/tui/diagnostic-projection.js.map +1 -0
- package/dist/src/tui/diagnostics.d.ts +6 -3
- package/dist/src/tui/diagnostics.js +14 -2
- package/dist/src/tui/diagnostics.js.map +1 -1
- package/dist/src/tui/entity-cards.d.ts +55 -0
- package/dist/src/tui/entity-cards.js +298 -0
- package/dist/src/tui/entity-cards.js.map +1 -0
- package/dist/src/tui/glossary.d.ts +25 -0
- package/dist/src/tui/glossary.js +72 -0
- package/dist/src/tui/glossary.js.map +1 -0
- package/dist/src/tui/index.d.ts +6 -2
- package/dist/src/tui/index.js +5 -2
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/input-display.d.ts +1 -0
- package/dist/src/tui/input-display.js +23 -1
- package/dist/src/tui/input-display.js.map +1 -1
- package/dist/src/tui/keys.d.ts +44 -0
- package/dist/src/tui/keys.js +43 -15
- package/dist/src/tui/keys.js.map +1 -1
- package/dist/src/tui/lifecycle-action-view.d.ts +6 -0
- package/dist/src/tui/lifecycle-action-view.js +36 -0
- package/dist/src/tui/lifecycle-action-view.js.map +1 -0
- package/dist/src/tui/model.d.ts +243 -45
- package/dist/src/tui/model.js +1402 -415
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/operation-diagnostic-screens.d.ts +8 -0
- package/dist/src/tui/operation-diagnostic-screens.js +72 -0
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -0
- package/dist/src/tui/operation-history.d.ts +82 -0
- package/dist/src/tui/operation-history.js +136 -0
- package/dist/src/tui/operation-history.js.map +1 -0
- package/dist/src/tui/operation-review-planner.d.ts +28 -0
- package/dist/src/tui/operation-review-planner.js +1396 -0
- package/dist/src/tui/operation-review-planner.js.map +1 -0
- package/dist/src/tui/plugin-content.d.ts +33 -0
- package/dist/src/tui/plugin-content.js +245 -0
- package/dist/src/tui/plugin-content.js.map +1 -0
- package/dist/src/tui/plugin-detail.d.ts +72 -0
- package/dist/src/tui/plugin-detail.js +260 -0
- package/dist/src/tui/plugin-detail.js.map +1 -0
- package/dist/src/tui/plugin-write-task.d.ts +69 -0
- package/dist/src/tui/plugin-write-task.js +286 -0
- package/dist/src/tui/plugin-write-task.js.map +1 -0
- package/dist/src/tui/prompt.js +4 -15
- package/dist/src/tui/prompt.js.map +1 -1
- package/dist/src/tui/query-header.d.ts +30 -0
- package/dist/src/tui/query-header.js +40 -0
- package/dist/src/tui/query-header.js.map +1 -0
- package/dist/src/tui/reader.d.ts +38 -0
- package/dist/src/tui/reader.js +49 -0
- package/dist/src/tui/reader.js.map +1 -0
- package/dist/src/tui/router.d.ts +186 -35
- package/dist/src/tui/router.js +338 -50
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/scoped-flow.d.ts +45 -0
- package/dist/src/tui/scoped-flow.js +96 -0
- package/dist/src/tui/scoped-flow.js.map +1 -0
- package/dist/src/tui/scoped-inventory.d.ts +126 -0
- package/dist/src/tui/scoped-inventory.js +258 -0
- package/dist/src/tui/scoped-inventory.js.map +1 -0
- package/dist/src/tui/screen-registry.d.ts +701 -0
- package/dist/src/tui/screen-registry.js +226 -0
- package/dist/src/tui/screen-registry.js.map +1 -0
- package/dist/src/tui/session-console-app.d.ts +6 -0
- package/dist/src/tui/session-console-app.js +13 -0
- package/dist/src/tui/session-console-app.js.map +1 -0
- package/dist/src/tui/session-host.d.ts +45 -0
- package/dist/src/tui/session-host.js +219 -0
- package/dist/src/tui/session-host.js.map +1 -0
- package/dist/src/tui/source-detail-card.d.ts +29 -0
- package/dist/src/tui/source-detail-card.js +45 -0
- package/dist/src/tui/source-detail-card.js.map +1 -0
- package/dist/src/tui/theme.d.ts +12 -0
- package/dist/src/tui/theme.js +12 -0
- package/dist/src/tui/theme.js.map +1 -1
- package/dist/src/tui/viewport.d.ts +1 -0
- package/dist/src/tui/viewport.js +23 -0
- package/dist/src/tui/viewport.js.map +1 -1
- package/dist/src/tui/wizard.js +37 -13
- package/dist/src/tui/wizard.js.map +1 -1
- package/dist/src/types.d.ts +220 -118
- package/dist/src/types.js +1 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/agent-version.d.ts +13 -4
- package/dist/src/utils/agent-version.js +27 -4
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +33 -7
- package/dist/src/utils/artifact-plan.js +115 -430
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +114 -83
- package/dist/src/utils/artifact-renderer.js +213 -364
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +44 -0
- package/dist/src/utils/artifact-request.js +80 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- package/dist/src/utils/artifact-sources.d.ts +6 -2
- package/dist/src/utils/artifact-sources.js +17 -0
- package/dist/src/utils/artifact-sources.js.map +1 -1
- package/dist/src/utils/bundle-layout.js +57 -173
- package/dist/src/utils/bundle-layout.js.map +1 -1
- package/dist/src/utils/catalog-capability-projection.d.ts +8 -0
- package/dist/src/utils/catalog-capability-projection.js +14 -0
- package/dist/src/utils/catalog-capability-projection.js.map +1 -0
- package/dist/src/utils/catalog-digests.d.ts +2 -2
- package/dist/src/utils/catalog-digests.js +7 -18
- package/dist/src/utils/catalog-digests.js.map +1 -1
- package/dist/src/utils/catalog-generation-control-snapshot.d.ts +11 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js +45 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js.map +1 -0
- package/dist/src/utils/catalog-generation-error.d.ts +5 -1
- package/dist/src/utils/catalog-generation-error.js +14 -0
- package/dist/src/utils/catalog-generation-error.js.map +1 -1
- package/dist/src/utils/catalog-generation-resolver.d.ts +36 -5
- package/dist/src/utils/catalog-generation-resolver.js +221 -77
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
- package/dist/src/utils/catalog-generation-service.d.ts +159 -28
- package/dist/src/utils/catalog-generation-service.js +1186 -525
- package/dist/src/utils/catalog-generation-service.js.map +1 -1
- package/dist/src/utils/catalog-generation-state.d.ts +9 -0
- package/dist/src/utils/catalog-generation-state.js +97 -106
- package/dist/src/utils/catalog-generation-state.js.map +1 -1
- package/dist/src/utils/catalog-generation-store.d.ts +38 -24
- package/dist/src/utils/catalog-generation-store.js +337 -272
- package/dist/src/utils/catalog-generation-store.js.map +1 -1
- package/dist/src/utils/catalog-manifest-v7.d.ts +5 -0
- package/dist/src/utils/{catalog-manifest-v5.js → catalog-manifest-v7.js} +23 -35
- package/dist/src/utils/catalog-manifest-v7.js.map +1 -0
- package/dist/src/utils/catalog-operation-context.d.ts +6 -14
- package/dist/src/utils/catalog-operation-context.js +69 -169
- package/dist/src/utils/catalog-operation-context.js.map +1 -1
- package/dist/src/utils/catalog-public-error.js +8 -4
- package/dist/src/utils/catalog-public-error.js.map +1 -1
- package/dist/src/utils/catalog-runtime-projection.d.ts +7 -3
- package/dist/src/utils/catalog-runtime-projection.js +5 -40
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -1
- package/dist/src/utils/catalog-snapshot.d.ts +2 -2
- package/dist/src/utils/catalog-source-impact.d.ts +21 -0
- package/dist/src/utils/catalog-source-impact.js +344 -0
- package/dist/src/utils/catalog-source-impact.js.map +1 -0
- package/dist/src/utils/catalog-source-references.d.ts +23 -2
- package/dist/src/utils/catalog-source-references.js +456 -382
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/catalog-sources.d.ts +14 -1
- package/dist/src/utils/catalog-sources.js +178 -18
- package/dist/src/utils/catalog-sources.js.map +1 -1
- package/dist/src/utils/codex-config.d.ts +2 -0
- package/dist/src/utils/codex-config.js +22 -1
- package/dist/src/utils/codex-config.js.map +1 -1
- package/dist/src/utils/codex-executable-discovery.d.ts +28 -0
- package/dist/src/utils/codex-executable-discovery.js +431 -0
- package/dist/src/utils/codex-executable-discovery.js.map +1 -0
- package/dist/src/utils/codex-manager.d.ts +47 -18
- package/dist/src/utils/codex-manager.js +88 -622
- package/dist/src/utils/codex-manager.js.map +1 -1
- package/dist/src/utils/codex-marketplace-path.d.ts +5 -0
- package/dist/src/utils/codex-marketplace-path.js +45 -0
- package/dist/src/utils/codex-marketplace-path.js.map +1 -0
- package/dist/src/utils/codex-native-observation.d.ts +49 -0
- package/dist/src/utils/codex-native-observation.js +169 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -0
- package/dist/src/utils/codex-reconciler.d.ts +123 -0
- package/dist/src/utils/codex-reconciler.js +322 -0
- package/dist/src/utils/codex-reconciler.js.map +1 -0
- package/dist/src/utils/codex-shared-native.d.ts +45 -0
- package/dist/src/utils/codex-shared-native.js +122 -0
- package/dist/src/utils/codex-shared-native.js.map +1 -0
- package/dist/src/utils/codex-skill-staging.d.ts +4 -3
- package/dist/src/utils/codex-skill-staging.js.map +1 -1
- package/dist/src/utils/codex-skills-root.d.ts +4 -0
- package/dist/src/utils/codex-skills-root.js +25 -0
- package/dist/src/utils/codex-skills-root.js.map +1 -0
- package/dist/src/utils/codex-surface-analysis.d.ts +49 -0
- package/dist/src/utils/codex-surface-analysis.js +220 -0
- package/dist/src/utils/codex-surface-analysis.js.map +1 -0
- package/dist/src/utils/component-command-preparation.d.ts +34 -0
- package/dist/src/utils/component-command-preparation.js +228 -0
- package/dist/src/utils/component-command-preparation.js.map +1 -0
- package/dist/src/utils/component-resources.d.ts +51 -0
- package/dist/src/utils/component-resources.js +322 -0
- package/dist/src/utils/component-resources.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +18 -6
- package/dist/src/utils/dynamic-skill-tree.js +32 -9
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/git-catalog-provider.d.ts +16 -0
- package/dist/src/utils/git-catalog-provider.js +167 -120
- package/dist/src/utils/git-catalog-provider.js.map +1 -1
- package/dist/src/utils/inventory-recovery-diagnostic.d.ts +4 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js +15 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js.map +1 -0
- package/dist/src/utils/local-marketplace.d.ts +17 -12
- package/dist/src/utils/local-marketplace.js +85 -195
- package/dist/src/utils/local-marketplace.js.map +1 -1
- package/dist/src/utils/managed-command-closure.d.ts +3 -0
- package/dist/src/utils/managed-command-closure.js +35 -0
- package/dist/src/utils/managed-command-closure.js.map +1 -0
- package/dist/src/utils/managed-command-evidence.d.ts +7 -0
- package/dist/src/utils/managed-command-evidence.js +10 -0
- package/dist/src/utils/managed-command-evidence.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +124 -0
- package/dist/src/utils/managed-command-materialization.js +369 -0
- package/dist/src/utils/managed-command-materialization.js.map +1 -0
- package/dist/src/utils/managed-command-preparation.d.ts +67 -0
- package/dist/src/utils/managed-command-preparation.js +146 -0
- package/dist/src/utils/managed-command-preparation.js.map +1 -0
- package/dist/src/utils/managed-command-review.d.ts +26 -0
- package/dist/src/utils/managed-command-review.js +68 -0
- package/dist/src/utils/managed-command-review.js.map +1 -0
- package/dist/src/utils/managed-command-runtime.d.ts +33 -0
- package/dist/src/utils/managed-command-runtime.js +121 -0
- package/dist/src/utils/managed-command-runtime.js.map +1 -0
- package/dist/src/utils/managed-command-store.d.ts +143 -0
- package/dist/src/utils/managed-command-store.js +665 -0
- package/dist/src/utils/managed-command-store.js.map +1 -0
- package/dist/src/utils/manifest.d.ts +1 -3
- package/dist/src/utils/manifest.js +1 -3
- package/dist/src/utils/manifest.js.map +1 -1
- package/dist/src/utils/multi-source-catalog.d.ts +1 -10
- package/dist/src/utils/multi-source-catalog.js +9 -175
- package/dist/src/utils/multi-source-catalog.js.map +1 -1
- package/dist/src/utils/native-cli.d.ts +74 -5
- package/dist/src/utils/native-cli.js +479 -31
- package/dist/src/utils/native-cli.js.map +1 -1
- package/dist/src/utils/native-demand.d.ts +29 -0
- package/dist/src/utils/native-demand.js +4 -0
- package/dist/src/utils/native-demand.js.map +1 -0
- package/dist/src/utils/native-tool-context.d.ts +14 -0
- package/dist/src/utils/native-tool-context.js +38 -0
- package/dist/src/utils/native-tool-context.js.map +1 -0
- package/dist/src/utils/native-tool-review.d.ts +18 -0
- package/dist/src/utils/native-tool-review.js +116 -0
- package/dist/src/utils/native-tool-review.js.map +1 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js +0 -1
- package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +103 -21
- package/dist/src/utils/ownership.js +232 -210
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/path-catalog-provider.d.ts +1 -1
- package/dist/src/utils/path-catalog-provider.js +47 -62
- package/dist/src/utils/path-catalog-provider.js.map +1 -1
- package/dist/src/utils/paths.d.ts +1 -2
- package/dist/src/utils/paths.js +5 -3
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/platform-empty-state.d.ts +45 -0
- package/dist/src/utils/platform-empty-state.js +159 -0
- package/dist/src/utils/platform-empty-state.js.map +1 -0
- package/dist/src/utils/platform-support.d.ts +1 -1
- package/dist/src/utils/platform-support.js +1 -1
- package/dist/src/utils/platform-support.js.map +1 -1
- package/dist/src/utils/plugin-config-impact.d.ts +64 -0
- package/dist/src/utils/plugin-config-impact.js +307 -0
- package/dist/src/utils/plugin-config-impact.js.map +1 -0
- package/dist/src/utils/plugin-config-references.d.ts +89 -0
- package/dist/src/utils/plugin-config-references.js +335 -0
- package/dist/src/utils/plugin-config-references.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +109 -27
- package/dist/src/utils/plugin-config-write.js +1242 -348
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +187 -109
- package/dist/src/utils/plugin-config.js +916 -1147
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/dist/src/utils/plugin-dependencies.d.ts +1 -1
- package/dist/src/utils/plugin-dependencies.js.map +1 -1
- package/dist/src/utils/plugin-scripts.d.ts +78 -127
- package/dist/src/utils/plugin-scripts.js +566 -524
- package/dist/src/utils/plugin-scripts.js.map +1 -1
- package/dist/src/utils/process-lock.js +14 -5
- package/dist/src/utils/process-lock.js.map +1 -1
- package/dist/src/utils/process-tree.d.ts +2 -2
- package/dist/src/utils/process-tree.js +1 -1
- package/dist/src/utils/process-tree.js.map +1 -1
- package/dist/src/utils/project-boundary.d.ts +11 -13
- package/dist/src/utils/project-boundary.js +28 -34
- package/dist/src/utils/project-boundary.js.map +1 -1
- package/dist/src/utils/rendered-contract.js +18 -1
- package/dist/src/utils/rendered-contract.js.map +1 -1
- package/dist/src/utils/runtime-config.d.ts +18 -0
- package/dist/src/utils/runtime-config.js +64 -0
- package/dist/src/utils/runtime-config.js.map +1 -0
- package/dist/src/utils/runtime-skill-closure.d.ts +2 -2
- package/dist/src/utils/runtime-skill-closure.js +47 -6
- package/dist/src/utils/runtime-skill-closure.js.map +1 -1
- package/dist/src/utils/safe-fs.d.ts +21 -0
- package/dist/src/utils/safe-fs.js +111 -0
- package/dist/src/utils/safe-fs.js.map +1 -0
- package/dist/src/utils/safe-operation-diagnostic.d.ts +15 -0
- package/dist/src/utils/safe-operation-diagnostic.js +33 -0
- package/dist/src/utils/safe-operation-diagnostic.js.map +1 -0
- package/dist/src/utils/sensitive-content.d.ts +4 -0
- package/dist/src/utils/sensitive-content.js +36 -0
- package/dist/src/utils/sensitive-content.js.map +1 -0
- package/dist/src/utils/state-paths.d.ts +8 -3
- package/dist/src/utils/state-paths.js +53 -16
- package/dist/src/utils/state-paths.js.map +1 -1
- package/dist/src/utils/target-eligibility.d.ts +4 -3
- package/dist/src/utils/target-eligibility.js +12 -6
- package/dist/src/utils/target-eligibility.js.map +1 -1
- package/dist/src/utils/windows-claude-shim.d.ts +7 -0
- package/dist/src/utils/windows-claude-shim.js +10 -0
- package/dist/src/utils/windows-claude-shim.js.map +1 -0
- package/dist/src/utils/windows-npm-shim.d.ts +16 -0
- package/dist/src/utils/windows-npm-shim.js +155 -0
- package/dist/src/utils/windows-npm-shim.js.map +1 -0
- package/dist/vitest.config.js +105 -9
- package/dist/vitest.config.js.map +1 -1
- package/package.json +30 -21
- package/dist/scripts/aw-skill-eval-engine.d.ts +0 -13
- package/dist/scripts/aw-skill-eval-engine.js +0 -31
- package/dist/scripts/aw-skill-eval-engine.js.map +0 -1
- package/dist/scripts/codex-eval-app-server.d.ts +0 -91
- package/dist/scripts/codex-eval-app-server.js +0 -1334
- package/dist/scripts/codex-eval-app-server.js.map +0 -1
- package/dist/scripts/codex-eval-isolation.d.ts +0 -61
- package/dist/scripts/codex-eval-isolation.js +0 -318
- package/dist/scripts/codex-eval-isolation.js.map +0 -1
- package/dist/scripts/codex-eval-process-management.d.ts +0 -8
- package/dist/scripts/codex-eval-process-management.js +0 -69
- package/dist/scripts/codex-eval-process-management.js.map +0 -1
- package/dist/scripts/codex-eval-process-tree.d.ts +0 -38
- package/dist/scripts/codex-eval-process-tree.js +0 -803
- package/dist/scripts/codex-eval-process-tree.js.map +0 -1
- package/dist/scripts/codex-eval-runtime-config.d.ts +0 -62
- package/dist/scripts/codex-eval-runtime-config.js +0 -843
- package/dist/scripts/codex-eval-runtime-config.js.map +0 -1
- package/dist/scripts/codex-trigger-eval.d.ts +0 -84
- package/dist/scripts/codex-trigger-eval.js +0 -968
- package/dist/scripts/codex-trigger-eval.js.map +0 -1
- package/dist/scripts/eval-plugin-skills-audited.d.ts +0 -6
- package/dist/scripts/eval-plugin-skills-audited.js +0 -261
- package/dist/scripts/eval-plugin-skills-audited.js.map +0 -1
- package/dist/scripts/eval-plugin-skills.d.ts +0 -45
- package/dist/scripts/eval-plugin-skills.js +0 -1589
- package/dist/scripts/eval-plugin-skills.js.map +0 -1
- package/dist/scripts/eval-run-layout.d.ts +0 -17
- package/dist/scripts/eval-run-layout.js +0 -26
- package/dist/scripts/eval-run-layout.js.map +0 -1
- package/dist/scripts/plugin-eval-contract.d.ts +0 -189
- package/dist/scripts/plugin-eval-contract.js +0 -745
- package/dist/scripts/plugin-eval-contract.js.map +0 -1
- package/dist/scripts/plugin-eval-materializer.d.ts +0 -13
- package/dist/scripts/plugin-eval-materializer.js +0 -421
- package/dist/scripts/plugin-eval-materializer.js.map +0 -1
- package/dist/scripts/skill-reporting.d.ts +0 -212
- package/dist/scripts/skill-reporting.js +0 -922
- package/dist/scripts/skill-reporting.js.map +0 -1
- package/dist/src/commands/catalog-context.d.ts +0 -52
- package/dist/src/commands/catalog-context.js +0 -156
- package/dist/src/commands/catalog-context.js.map +0 -1
- package/dist/src/commands/review-publication.d.ts +0 -99
- package/dist/src/commands/review-publication.js +0 -904
- package/dist/src/commands/review-publication.js.map +0 -1
- package/dist/src/commands/status-v5.d.ts +0 -169
- package/dist/src/commands/status-v5.js +0 -1135
- package/dist/src/commands/status-v5.js.map +0 -1
- package/dist/src/portable/skills-cli.d.ts +0 -43
- package/dist/src/portable/skills-cli.js +0 -148
- package/dist/src/portable/skills-cli.js.map +0 -1
- package/dist/src/utils/catalog-manifest-v5.d.ts +0 -5
- package/dist/src/utils/catalog-manifest-v5.js.map +0 -1
- package/dist/src/utils/catalog-source-cache.d.ts +0 -62
- package/dist/src/utils/catalog-source-cache.js +0 -321
- package/dist/src/utils/catalog-source-cache.js.map +0 -1
- package/dist/src/utils/codex-project-surface.d.ts +0 -3
- package/dist/src/utils/codex-project-surface.js +0 -49
- package/dist/src/utils/codex-project-surface.js.map +0 -1
- package/dist/src/utils/lifecycle-active-store.d.ts +0 -147
- package/dist/src/utils/lifecycle-active-store.js +0 -1064
- package/dist/src/utils/lifecycle-active-store.js.map +0 -1
- package/dist/src/utils/plugin-release.d.ts +0 -2
- package/dist/src/utils/plugin-release.js +0 -2
- package/dist/src/utils/plugin-release.js.map +0 -1
- package/dist/src/utils/slash-commands.d.ts +0 -1
- package/dist/src/utils/slash-commands.js +0 -2
- package/dist/src/utils/slash-commands.js.map +0 -1
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import fs from 'fs-extra';
|
|
3
|
+
import YAML from 'yaml';
|
|
4
|
+
import { assertPlatformCapabilities, assertPluginComponent, getComponentFeatureRequirements, getUnmetFeatureRequirements, validatePortableSkillName, getHookHandlerContract, renderHookDefinitionGroup, } from '@lesliechan721/aw-plugin-core/manifest';
|
|
5
|
+
import { getDeploymentLayout, getDeploymentResourceKey, getNativePackageName } from './layout.js';
|
|
6
|
+
import { ProjectionFiles, nativeComponentName, prepareProjectionRoot, resourceBytes, safeProjectionPath } from './projection-files.js';
|
|
7
|
+
import { projectCodeExtension } from './projection-code-extension.js';
|
|
8
|
+
import { bindPlatformCommandResources } from './projection-command-resources.js';
|
|
9
|
+
import { generateCodexPermissionArtifacts, mergeClaudePermissions } from '../generators/permissions.js';
|
|
10
|
+
import { supplementRelativePath } from './supplement-layout.js';
|
|
11
|
+
function quoteHostArgument(value, platform) {
|
|
12
|
+
if (platform === 'win32') {
|
|
13
|
+
if (/[%!"\r\n]/u.test(value))
|
|
14
|
+
throw new Error('platformProjectionShellArgumentUnsupported');
|
|
15
|
+
return `"${value}"`;
|
|
16
|
+
}
|
|
17
|
+
return `'${value.replace(/'/gu, `'"'"'`)}'`;
|
|
18
|
+
}
|
|
19
|
+
export function cursorWorkspaceOpenCommand(binding, platform = process.platform) {
|
|
20
|
+
const scope = binding.scope;
|
|
21
|
+
const quote = (value) => quoteHostArgument(value, platform);
|
|
22
|
+
return `aw internal cursor-workspace-open --scope ${scope.kind}${scope.kind === 'project' ? ` --project-root ${quote(scope.projectRoot)}` : ''} --plugin-id ${quote(binding.plugin.pluginId)}`;
|
|
23
|
+
}
|
|
24
|
+
function markdown(metadata, body) {
|
|
25
|
+
return `---\n${Object.entries(metadata).filter(([, value]) => value !== undefined).map(([key, value]) => `${key}: ${JSON.stringify(value)}`).join('\n')}\n---\n\n${body}\n`;
|
|
26
|
+
}
|
|
27
|
+
function nameFor(input, component) {
|
|
28
|
+
const name = nativeComponentName(component.name);
|
|
29
|
+
if (input.binding.platform === 'pi' && component.kind === 'mcp')
|
|
30
|
+
return name.replace(/-/gu, '_');
|
|
31
|
+
return (input.binding.platform === 'pi' && component.kind === 'agent') || (input.binding.platform === 'generic' && component.kind === 'skill')
|
|
32
|
+
? `${getDeploymentResourceKey(input.binding.plugin)}-${name}` : name;
|
|
33
|
+
}
|
|
34
|
+
function composedAgentPrompt(agent, instructions) {
|
|
35
|
+
const context = instructions.filter((instruction) => instruction.content.coverage.includes('plugin-agents'));
|
|
36
|
+
// Path rules require a runtime match. Embedding them as unconditional text
|
|
37
|
+
// would silently widen their effect in an Agent definition.
|
|
38
|
+
if (context.some((instruction) => instruction.content.paths?.length))
|
|
39
|
+
throw new Error('platformProjectionConditionalAgentInstructionUnsupported');
|
|
40
|
+
return [agent.content.prompt, ...context.map((instruction) => instruction.content.content)].join('\n\n');
|
|
41
|
+
}
|
|
42
|
+
function agentMarkdown(input, agent, instructions) {
|
|
43
|
+
const platform = input.binding.platform;
|
|
44
|
+
const content = agent.content;
|
|
45
|
+
if (content.promptMode && content.promptMode !== 'host-default')
|
|
46
|
+
throw new Error('platformProjectionPromptModeUnsupported');
|
|
47
|
+
const metadata = { name: nameFor(input, agent), description: content.description,
|
|
48
|
+
model: content.model, tools: content.tools };
|
|
49
|
+
if (platform === 'antigravity')
|
|
50
|
+
metadata.inheritCustomizations = true;
|
|
51
|
+
const prompt = ['gemini', 'copilot', 'grok'].includes(platform) ? composedAgentPrompt(agent, instructions) : content.prompt;
|
|
52
|
+
return markdown(metadata, prompt);
|
|
53
|
+
}
|
|
54
|
+
function projectSkills(input, files, components) {
|
|
55
|
+
for (const component of components) {
|
|
56
|
+
if (component.kind !== 'skill')
|
|
57
|
+
continue;
|
|
58
|
+
const name = nameFor(input, component);
|
|
59
|
+
validatePortableSkillName(name, 'projected Skill name');
|
|
60
|
+
const root = input.renderUnit.output === 'generic' ? name : `skills/${name}`;
|
|
61
|
+
const skillFiles = new Map(Object.entries(component.content.files).map(([relative, resource]) => [relative, resourceBytes(input, component.id, relative, resource)]));
|
|
62
|
+
const skillFile = skillFiles.get('SKILL.md');
|
|
63
|
+
const original = skillFile.bytes.toString('utf8');
|
|
64
|
+
const match = /^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/u.exec(original);
|
|
65
|
+
const metadata = YAML.parse(match[1]);
|
|
66
|
+
let changed = metadata.name !== name;
|
|
67
|
+
metadata.name = name;
|
|
68
|
+
if (input.binding.platform === 'codex') {
|
|
69
|
+
if (Object.keys(metadata).some((field) => !['name', 'description', 'license', 'compatibility', 'metadata', 'user-invocable', 'disable-model-invocation'].includes(field)))
|
|
70
|
+
throw new Error('platformProjectionSkillMetadataUnsupported');
|
|
71
|
+
const invocation = getComponentFeatureRequirements({ ...component, requires: [] }, { skillText: original });
|
|
72
|
+
if (Object.hasOwn(metadata, 'user-invocable')) {
|
|
73
|
+
if (!invocation.find((requirement) => requirement.feature === 'skill.invocation.manual')?.values?.includes('true'))
|
|
74
|
+
throw new Error('platformProjectionSkillVisibilityUnsupported');
|
|
75
|
+
delete metadata['user-invocable'];
|
|
76
|
+
changed = true;
|
|
77
|
+
}
|
|
78
|
+
if (Object.hasOwn(metadata, 'disable-model-invocation')) {
|
|
79
|
+
const implicit = invocation.find((requirement) => requirement.feature === 'skill.invocation.model')?.values?.includes('true') ?? false;
|
|
80
|
+
const yamlFile = skillFiles.get('agents/openai.yaml');
|
|
81
|
+
const definition = yamlFile ? YAML.parse(yamlFile.bytes.toString('utf8')) : {};
|
|
82
|
+
if (!definition || typeof definition !== 'object' || Array.isArray(definition))
|
|
83
|
+
throw new Error('platformProjectionSkillPolicyInvalid');
|
|
84
|
+
const policy = (definition.policy ?? {});
|
|
85
|
+
if (!policy || typeof policy !== 'object' || Array.isArray(policy))
|
|
86
|
+
throw new Error('platformProjectionSkillPolicyInvalid');
|
|
87
|
+
if (Object.hasOwn(policy, 'allow_implicit_invocation') && policy.allow_implicit_invocation !== implicit)
|
|
88
|
+
throw new Error('platformProjectionSkillPolicyConflict');
|
|
89
|
+
definition.policy = { ...policy, allow_implicit_invocation: implicit };
|
|
90
|
+
skillFiles.set('agents/openai.yaml', { bytes: Buffer.from(YAML.stringify(definition)), mode: 0o644 });
|
|
91
|
+
delete metadata['disable-model-invocation'];
|
|
92
|
+
changed = true;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (changed)
|
|
96
|
+
skillFiles.set('SKILL.md', { ...skillFile, bytes: Buffer.from(`---\n${YAML.stringify(metadata)}---\n${original.slice(match[0].length)}`) });
|
|
97
|
+
for (const [relative, file] of [...skillFiles].sort(([a], [b]) => a.localeCompare(b, 'en'))) {
|
|
98
|
+
files.add(`${root}/${relative}`, file.bytes, [component.id], file.mode);
|
|
99
|
+
}
|
|
100
|
+
// The public preparation pipeline can add verified runtime files after
|
|
101
|
+
// parsing the component, before the native package is frozen.
|
|
102
|
+
for (const file of input.resources.files.filter((entry) => entry.componentId === component.id)) {
|
|
103
|
+
safeProjectionPath(file.path);
|
|
104
|
+
if (skillFiles.has(file.path))
|
|
105
|
+
continue;
|
|
106
|
+
files.add(`${root}/${file.path}`, file.bytes, [component.id], file.mode);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function commonHookEvent(platform, hook) {
|
|
111
|
+
const contract = getHookHandlerContract(platform, hook.content.dialect, hook.content.event);
|
|
112
|
+
if (!contract.nativeEvent || contract.api !== 'command')
|
|
113
|
+
throw new Error('platformProjectionHookEventUnsupported');
|
|
114
|
+
if (hook.content.matcher && contract.matcherAllowed !== true)
|
|
115
|
+
throw new Error('platformProjectionHookMatcherUnsupported');
|
|
116
|
+
if (hook.content.feedback !== 'notify' && !contract.protocol?.responses[hook.content.feedback])
|
|
117
|
+
throw new Error('platformProjectionHookFeedbackUnsupported');
|
|
118
|
+
return contract.nativeEvent;
|
|
119
|
+
}
|
|
120
|
+
function projectHooks(input, files, hooks, instructions) {
|
|
121
|
+
const platform = input.binding.platform;
|
|
122
|
+
if (platform === 'antigravity') {
|
|
123
|
+
if (!hooks.length)
|
|
124
|
+
return;
|
|
125
|
+
const groups = Object.fromEntries(hooks.map((hook) => {
|
|
126
|
+
const event = commonHookEvent(platform, hook);
|
|
127
|
+
const command = { type: 'command', command: hook.content.command };
|
|
128
|
+
const handlers = ['PreToolUse', 'PostToolUse'].includes(event)
|
|
129
|
+
? [{ matcher: hook.content.matcher ?? '.*', hooks: [command] }]
|
|
130
|
+
: [command];
|
|
131
|
+
if (hook.content.matcher && !['PreToolUse', 'PostToolUse'].includes(event))
|
|
132
|
+
throw new Error('platformProjectionHookMatcherUnsupported');
|
|
133
|
+
return [nameFor(input, hook), { enabled: true, [event]: handlers }];
|
|
134
|
+
}));
|
|
135
|
+
files.json('hooks.json', groups, hooks.map((hook) => hook.id));
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const eventMap = {};
|
|
139
|
+
const add = (event, handler) => { (eventMap[event] ??= []).push(handler); };
|
|
140
|
+
for (const hook of hooks) {
|
|
141
|
+
const event = commonHookEvent(platform, hook);
|
|
142
|
+
if (platform === 'codex' || platform === 'claude') {
|
|
143
|
+
const { event: mappedEvent, ...handler } = renderHookDefinitionGroup(hook.content.dialect === 'common'
|
|
144
|
+
? { kind: 'public', event: hook.content.event, matcher: hook.content.matcher, command: hook.content.command }
|
|
145
|
+
: { kind: 'native', event: hook.content.event, matcher: hook.content.matcher, command: hook.content.command }, platform);
|
|
146
|
+
add(mappedEvent, handler);
|
|
147
|
+
}
|
|
148
|
+
else if (platform === 'copilot') {
|
|
149
|
+
add(event, { type: 'command', bash: hook.content.command, powershell: hook.content.command });
|
|
150
|
+
}
|
|
151
|
+
else if (platform === 'cursor') {
|
|
152
|
+
add(event, { command: hook.content.command, ...(hook.content.matcher ? { matcher: hook.content.matcher } : {}) });
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
add(event, { ...(hook.content.matcher ? { matcher: hook.content.matcher } : {}), hooks: [{ type: 'command', command: hook.content.command }] });
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const ids = hooks.map((hook) => hook.id);
|
|
159
|
+
if (['codex', 'claude'].includes(platform) && instructions.length) {
|
|
160
|
+
for (const instruction of instructions)
|
|
161
|
+
if (instruction.content.paths?.length)
|
|
162
|
+
throw new Error('platformProjectionInstructionPathsUnsupported');
|
|
163
|
+
const rootVariable = platform === 'codex' ? '${CODEX_PLUGIN_ROOT}' : '${CLAUDE_PLUGIN_ROOT}';
|
|
164
|
+
const contexts = {};
|
|
165
|
+
const main = instructions.filter((instruction) => instruction.content.coverage.includes('main'));
|
|
166
|
+
const children = instructions.filter((instruction) => instruction.content.coverage.some((audience) => audience !== 'main'));
|
|
167
|
+
for (const [event, selected] of [['SessionStart', main], ['SubagentStart', children]]) {
|
|
168
|
+
if (!selected.length)
|
|
169
|
+
continue;
|
|
170
|
+
const text = selected.map((instruction) => instruction.content.content).join('\n\n');
|
|
171
|
+
const maxBytes = input.capabilities.features['instruction.coverage']?.maxBytes;
|
|
172
|
+
if (maxBytes !== undefined && Buffer.byteLength(text) > maxBytes)
|
|
173
|
+
throw new Error('platformProjectionInstructionTooLarge');
|
|
174
|
+
contexts[event] = text;
|
|
175
|
+
add(event, { hooks: [{ type: 'command', command: `node "${rootVariable}/scripts/aw-instructions.mjs" ${event}` }] });
|
|
176
|
+
}
|
|
177
|
+
files.add('scripts/aw-instructions.mjs', `const contexts = ${JSON.stringify(contexts)};\nconst event = process.argv[2];\nif (!Object.hasOwn(contexts, event)) throw new Error('Unsupported instruction event');\nprocess.stdout.write(JSON.stringify({hookSpecificOutput:{hookEventName:event,additionalContext:contexts[event]}}));\n`, instructions.map((instruction) => instruction.id));
|
|
178
|
+
ids.push(...instructions.map((instruction) => instruction.id));
|
|
179
|
+
}
|
|
180
|
+
if (!Object.keys(eventMap).length)
|
|
181
|
+
return;
|
|
182
|
+
const relative = platform === 'copilot' ? 'com.github.copilot/hooks/hooks.json' : 'hooks/hooks.json';
|
|
183
|
+
files.json(relative, { ...(platform === 'cursor' || platform === 'copilot' ? { version: 1 } : {}), hooks: eventMap }, ids);
|
|
184
|
+
}
|
|
185
|
+
function projectRules(input, files, instructions) {
|
|
186
|
+
const platform = input.binding.platform;
|
|
187
|
+
if (platform === 'codex' || platform === 'claude' || platform === 'grok')
|
|
188
|
+
return;
|
|
189
|
+
if (platform === 'gemini') {
|
|
190
|
+
if (instructions.some((instruction) => instruction.content.paths?.length))
|
|
191
|
+
throw new Error('platformProjectionInstructionPathsUnsupported');
|
|
192
|
+
const main = instructions.filter((instruction) => instruction.content.coverage.includes('main'));
|
|
193
|
+
if (main.length)
|
|
194
|
+
files.add('AW_CONTEXT.md', main.map((instruction) => instruction.content.content).join('\n\n'), main.map((instruction) => instruction.id));
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
for (const instruction of instructions) {
|
|
198
|
+
const name = nameFor(input, instruction);
|
|
199
|
+
if (platform === 'cursor') {
|
|
200
|
+
files.add(`rules/${name}.mdc`, markdown({ description: instruction.content.title,
|
|
201
|
+
...(instruction.content.paths?.length ? { globs: instruction.content.paths, alwaysApply: false } : { alwaysApply: true }) }, instruction.content.content), [instruction.id]);
|
|
202
|
+
}
|
|
203
|
+
else if (platform === 'antigravity') {
|
|
204
|
+
if (instruction.content.paths?.length)
|
|
205
|
+
files.add(`rules/${name}.md`, markdown({ trigger: 'glob', globs: instruction.content.paths.join(', ') }, instruction.content.content), [instruction.id]);
|
|
206
|
+
}
|
|
207
|
+
else if (platform === 'copilot') {
|
|
208
|
+
if (instruction.content.paths?.length)
|
|
209
|
+
throw new Error('platformProjectionInstructionPathsUnsupported');
|
|
210
|
+
files.add(`com.github.copilot/rules/${name}.md`, instruction.content.content, [instruction.id]);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
const alwaysOn = instructions.filter((instruction) => !instruction.content.paths?.length);
|
|
214
|
+
if (platform === 'antigravity' && alwaysOn.length)
|
|
215
|
+
files.add('rules/AGENTS.md', alwaysOn.map((instruction) => instruction.content.content).join('\n\n'), alwaysOn.map((instruction) => instruction.id));
|
|
216
|
+
}
|
|
217
|
+
function projectMcp(input, files, mcps) {
|
|
218
|
+
const platform = input.binding.platform;
|
|
219
|
+
const servers = Object.fromEntries(mcps.map((component) => {
|
|
220
|
+
const content = component.content;
|
|
221
|
+
if ((platform === 'antigravity' || platform === 'pi') && content.type === 'sse')
|
|
222
|
+
throw new Error('platformProjectionMcpTransportUnsupported');
|
|
223
|
+
let server = structuredClone(content);
|
|
224
|
+
if (platform === 'gemini' || platform === 'antigravity') {
|
|
225
|
+
server = content.type === 'stdio'
|
|
226
|
+
? { command: content.command, ...(content.args ? { args: [...content.args] } : {}), ...(content.env ? { env: { ...content.env } } : {}) }
|
|
227
|
+
: { [platform === 'antigravity' ? 'serverUrl' : content.type === 'http' ? 'httpUrl' : 'url']: content.url,
|
|
228
|
+
...(content.headers ? { headers: { ...content.headers } } : {}) };
|
|
229
|
+
}
|
|
230
|
+
return [nameFor(input, component), server];
|
|
231
|
+
}));
|
|
232
|
+
if (!mcps.length || ['pi', 'opencode', 'gemini'].includes(platform))
|
|
233
|
+
return servers;
|
|
234
|
+
const relative = platform === 'cursor' || platform === 'copilot' ? 'mcp.json'
|
|
235
|
+
: platform === 'antigravity' ? 'mcp_config.json' : '.mcp.json';
|
|
236
|
+
files.json(relative, { mcpServers: servers }, mcps.map((component) => component.id));
|
|
237
|
+
return servers;
|
|
238
|
+
}
|
|
239
|
+
function projectManifest(input, files, selected, servers) {
|
|
240
|
+
const platform = input.binding.platform;
|
|
241
|
+
const metadata = { name: getNativePackageName(input.binding.plugin), version: input.binding.plugin.version };
|
|
242
|
+
if (platform === 'generic')
|
|
243
|
+
return;
|
|
244
|
+
if (platform === 'pi' || platform === 'opencode') {
|
|
245
|
+
projectCodeExtension(input, files, selected, metadata, servers);
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
const has = (kind) => selected.some((component) => component.kind === kind);
|
|
249
|
+
if (platform === 'gemini') {
|
|
250
|
+
files.json('gemini-extension.json', { ...metadata, ...(has('mcp') ? { mcpServers: servers } : {}),
|
|
251
|
+
...(files.files.has('AW_CONTEXT.md') ? { contextFileName: 'AW_CONTEXT.md' } : {}) });
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
if (platform === 'copilot') {
|
|
255
|
+
files.json('plugin.json', { $schema: 'https://agent-plugins.org/schemas/1.0.0/plugin.schema.json', ...metadata });
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
if (platform === 'antigravity') {
|
|
259
|
+
files.json('.antigravity-plugin/plugin.json', { $schema: 'https://antigravity.google/schemas/v1/plugin.json', ...metadata });
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
const manifest = { ...metadata };
|
|
263
|
+
if (has('skill'))
|
|
264
|
+
manifest.skills = './skills/';
|
|
265
|
+
if (has('agent'))
|
|
266
|
+
manifest.agents = './agents/';
|
|
267
|
+
if (has('mcp'))
|
|
268
|
+
manifest.mcpServers = platform === 'cursor' ? './mcp.json' : './.mcp.json';
|
|
269
|
+
if (files.files.has('hooks/hooks.json'))
|
|
270
|
+
manifest.hooks = './hooks/hooks.json';
|
|
271
|
+
if (has('instruction') && platform === 'cursor')
|
|
272
|
+
manifest.rules = './rules/';
|
|
273
|
+
files.json(`.${platform}-plugin/plugin.json`, manifest);
|
|
274
|
+
}
|
|
275
|
+
/** The writer and read-only static inspection use the same host file format. */
|
|
276
|
+
export function projectSupplementFile(binding, component) {
|
|
277
|
+
const relativePath = supplementRelativePath(binding, component);
|
|
278
|
+
const name = path.basename(relativePath, path.extname(relativePath));
|
|
279
|
+
if (binding.platform === 'codex' && component.kind === 'agent') {
|
|
280
|
+
if (component.content.tools !== undefined || (component.content.promptMode && component.content.promptMode !== 'host-default'))
|
|
281
|
+
throw new Error('platformProjectionAgentFieldsUnsupported');
|
|
282
|
+
const values = { name, description: component.content.description, developer_instructions: component.content.prompt, model: component.content.model };
|
|
283
|
+
return { relativePath, content: Object.entries(values).filter(([, value]) => value !== undefined)
|
|
284
|
+
.map(([key, value]) => `${key} = ${JSON.stringify(value)}`).join('\n') + '\n' };
|
|
285
|
+
}
|
|
286
|
+
if (binding.platform === 'grok' && component.kind === 'instruction') {
|
|
287
|
+
if (component.content.paths?.length)
|
|
288
|
+
throw new Error('platformProjectionInstructionPathsUnsupported');
|
|
289
|
+
return { relativePath, content: component.content.content.replace(/\r\n/gu, '\n') };
|
|
290
|
+
}
|
|
291
|
+
throw new Error('platformProjectionSupplementKindUnsupported');
|
|
292
|
+
}
|
|
293
|
+
async function supplementContributions(ctx, input, files, selected) {
|
|
294
|
+
const layout = await getDeploymentLayout(ctx, input.binding);
|
|
295
|
+
if (input.renderUnit.output === 'generic')
|
|
296
|
+
return selected.map((component) => {
|
|
297
|
+
if (component.kind !== 'skill')
|
|
298
|
+
throw new Error('platformProjectionGenericKindUnsupported');
|
|
299
|
+
const name = nameFor(input, component);
|
|
300
|
+
return { id: component.id, componentIds: [component.id], kind: 'owned-directory',
|
|
301
|
+
destination: path.join(layout.packageRoot, name),
|
|
302
|
+
contentDigest: files.digest(name), stagingPath: name };
|
|
303
|
+
});
|
|
304
|
+
if (!layout.supplementRoot)
|
|
305
|
+
throw new Error('platformProjectionSupplementUnsupported');
|
|
306
|
+
return selected.map((component) => {
|
|
307
|
+
const { relativePath: relative, content } = projectSupplementFile(input.binding, component);
|
|
308
|
+
files.add(relative, content, [component.id]);
|
|
309
|
+
return { id: component.id, componentIds: [component.id], kind: 'owned-file', destination: path.join(layout.supplementRoot, relative),
|
|
310
|
+
contentDigest: files.digest(relative), stagingPath: relative };
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
async function policyContributions(ctx, input, files, componentIds) {
|
|
314
|
+
if (!input.policy.permissions.length || input.renderUnit.output !== 'package')
|
|
315
|
+
return [];
|
|
316
|
+
const platform = input.binding.platform;
|
|
317
|
+
const layout = await getDeploymentLayout(ctx, input.binding);
|
|
318
|
+
const resourceKey = getDeploymentResourceKey(input.binding.plugin);
|
|
319
|
+
if (platform === 'codex') {
|
|
320
|
+
if (input.policy.permissions.some((permission) => permission.sandbox?.excludedCommands.length))
|
|
321
|
+
throw new Error('platformProjectionInvocationPolicyUnsupported');
|
|
322
|
+
return generateCodexPermissionArtifacts(`${input.binding.plugin.sourceId}-${getNativePackageName(input.binding.plugin)}`, input.policy.permissions, ctx.commandResolver).map((artifact) => {
|
|
323
|
+
const relative = `permissions/${path.posix.basename(artifact.relativePath)}`;
|
|
324
|
+
files.add(relative, artifact.content);
|
|
325
|
+
return { id: `policy:${artifact.artifactKey}`, componentIds, kind: 'owned-file', destination: path.join(layout.activationPath, artifact.relativePath),
|
|
326
|
+
stagingPath: `host/${relative}`, contentDigest: files.digest(relative) };
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
if (platform === 'claude') {
|
|
330
|
+
const mutation = { kind: 'claude-permissions', permissions: mergeClaudePermissions(input.policy.permissions, ctx.commandResolver) };
|
|
331
|
+
const relative = 'claude-permissions.json';
|
|
332
|
+
files.json(relative, mutation);
|
|
333
|
+
return [{ id: 'policy:claude-permissions', componentIds, kind: 'config-entry', destination: path.join(layout.activationPath, input.binding.scope.kind === 'project' ? 'settings.local.json' : 'settings.json'),
|
|
334
|
+
stagingPath: `host/${relative}`, contentDigest: files.digest(relative), mergeKey: `claude-permissions:${resourceKey}` }];
|
|
335
|
+
}
|
|
336
|
+
throw new Error('platformProjectionInvocationPolicyUnsupported');
|
|
337
|
+
}
|
|
338
|
+
/** Builds only private staging artifacts. Native registration belongs to execute. */
|
|
339
|
+
export async function projectPlatform(ctx, input) {
|
|
340
|
+
ctx.signal?.throwIfAborted();
|
|
341
|
+
assertPlatformCapabilities(input.capabilities);
|
|
342
|
+
if (input.capabilities.platform !== input.binding.platform || input.capabilities.scope !== input.renderUnit.renderScope.kind
|
|
343
|
+
|| input.policy.platform !== input.binding.platform)
|
|
344
|
+
throw new Error('platformProjectionInputMismatch');
|
|
345
|
+
if (input.policy.permissions.length && !['codex', 'claude'].includes(input.binding.platform))
|
|
346
|
+
throw new Error('platformProjectionInvocationPolicyUnsupported');
|
|
347
|
+
const platform = input.binding.platform;
|
|
348
|
+
const unit = input.renderUnit;
|
|
349
|
+
if ((platform === 'generic') !== (unit.output === 'generic')
|
|
350
|
+
|| (unit.output === 'supplement' && !['codex', 'grok'].includes(platform))
|
|
351
|
+
|| (platform === 'codex' && unit.kinds.some((kind) => unit.output === 'supplement' ? kind !== 'agent' : kind === 'agent'))
|
|
352
|
+
|| (platform === 'grok' && unit.kinds.some((kind) => unit.output === 'supplement' ? kind !== 'instruction' : kind === 'instruction'))
|
|
353
|
+
|| (platform === 'generic' && unit.kinds.some((kind) => kind !== 'skill')))
|
|
354
|
+
throw new Error('platformProjectionRenderUnitInvalid');
|
|
355
|
+
const ids = new Set();
|
|
356
|
+
const files = new ProjectionFiles();
|
|
357
|
+
const hostFiles = new ProjectionFiles();
|
|
358
|
+
let selected = input.components.filter((component) => input.renderUnit.kinds.includes(component.kind));
|
|
359
|
+
for (const component of input.components) {
|
|
360
|
+
assertPluginComponent(component, { platform: input.binding.platform });
|
|
361
|
+
if (ids.has(component.id))
|
|
362
|
+
throw new Error('platformProjectionIdentityConflict');
|
|
363
|
+
ids.add(component.id);
|
|
364
|
+
let skillText;
|
|
365
|
+
if (component.kind === 'skill')
|
|
366
|
+
skillText = resourceBytes(input, component.id, 'SKILL.md', component.content.files['SKILL.md']).bytes.toString('utf8');
|
|
367
|
+
const requirements = getComponentFeatureRequirements(component, { skillText });
|
|
368
|
+
if (input.capabilities.kinds[component.kind].status !== 'supported' || getUnmetFeatureRequirements(requirements, input.capabilities).length) {
|
|
369
|
+
throw new Error('platformProjectionCapabilityUnsupported');
|
|
370
|
+
}
|
|
371
|
+
// Validate native names for the whole same-scope set, even when the current
|
|
372
|
+
// unit only consumes another component's text.
|
|
373
|
+
if (selected.includes(component))
|
|
374
|
+
files.component(component, nameFor(input, component));
|
|
375
|
+
}
|
|
376
|
+
if (platform !== 'pi' && platform !== 'opencode') {
|
|
377
|
+
const packageRoot = input.resources.commandResources?.length ? (await getDeploymentLayout(ctx, input.binding)).packageRoot : '';
|
|
378
|
+
input = { ...input, components: bindPlatformCommandResources(input, packageRoot, ctx.platform ?? process.platform) };
|
|
379
|
+
selected = input.components.filter((component) => input.renderUnit.kinds.includes(component.kind));
|
|
380
|
+
}
|
|
381
|
+
if (!selected.length && (!input.policy.permissions.length || input.renderUnit.output !== 'package')) {
|
|
382
|
+
return { renderUnitId: input.renderUnit.id, bundle: null, supplements: [], components: [], diagnostics: [] };
|
|
383
|
+
}
|
|
384
|
+
if (input.binding.platform === 'generic' && selected.some((component) => component.kind !== 'skill'))
|
|
385
|
+
throw new Error('platformProjectionGenericKindUnsupported');
|
|
386
|
+
const instructions = input.components.filter((component) => component.kind === 'instruction');
|
|
387
|
+
let supplements = [];
|
|
388
|
+
if (input.renderUnit.output === 'supplement') {
|
|
389
|
+
supplements = await supplementContributions(ctx, input, files, selected);
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
projectSkills(input, files, selected);
|
|
393
|
+
if (input.renderUnit.output === 'generic')
|
|
394
|
+
supplements = await supplementContributions(ctx, input, files, selected);
|
|
395
|
+
else {
|
|
396
|
+
for (const file of input.resources.bundleFiles)
|
|
397
|
+
files.add(file.path, file.bytes, file.componentIds ?? [], file.mode);
|
|
398
|
+
for (const agent of selected.filter((component) => component.kind === 'agent')) {
|
|
399
|
+
if (input.binding.platform === 'codex')
|
|
400
|
+
throw new Error('platformProjectionAgentRequiresSupplement');
|
|
401
|
+
if (input.binding.platform === 'opencode')
|
|
402
|
+
continue;
|
|
403
|
+
const name = nameFor(input, agent);
|
|
404
|
+
const relative = input.binding.platform === 'copilot' ? `com.github.copilot/agents/${name}.agent.md` : `agents/${name}.md`;
|
|
405
|
+
files.add(relative, agentMarkdown(input, agent, instructions), [agent.id,
|
|
406
|
+
...(['gemini', 'copilot'].includes(input.binding.platform) ? instructions.filter((instruction) => instruction.content.coverage.includes('plugin-agents')).map((instruction) => instruction.id) : [])]);
|
|
407
|
+
}
|
|
408
|
+
const servers = projectMcp(input, files, selected.filter((component) => component.kind === 'mcp'));
|
|
409
|
+
if (!['pi', 'opencode'].includes(input.binding.platform)) {
|
|
410
|
+
projectRules(input, files, selected.filter((component) => component.kind === 'instruction'));
|
|
411
|
+
projectHooks(input, files, selected.filter((component) => component.kind === 'hook'), selected.filter((component) => component.kind === 'instruction'));
|
|
412
|
+
}
|
|
413
|
+
if (selected.length)
|
|
414
|
+
projectManifest(input, files, selected, servers);
|
|
415
|
+
supplements.push(...await policyContributions(ctx, input, hostFiles, input.components.map((component) => component.id)));
|
|
416
|
+
if (input.binding.platform === 'cursor') {
|
|
417
|
+
const layout = await getDeploymentLayout(ctx, input.binding);
|
|
418
|
+
const command = cursorWorkspaceOpenCommand(input.binding, ctx.platform);
|
|
419
|
+
hostFiles.json('cursor-workspace-open.json', { version: 1, hooks: { workspaceOpen: [{ command }] } });
|
|
420
|
+
supplements.push({ id: 'cursor-workspace-open', componentIds: selected.map((component) => component.id), kind: 'config-entry',
|
|
421
|
+
destination: layout.activationPath, contentDigest: hostFiles.digest('cursor-workspace-open.json'), stagingPath: 'host/cursor-workspace-open.json',
|
|
422
|
+
mergeKey: `workspaceOpen:${getDeploymentResourceKey(input.binding.plugin)}` });
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
ctx.signal?.throwIfAborted();
|
|
427
|
+
const stagingRoot = await prepareProjectionRoot(ctx.stagingRoot);
|
|
428
|
+
try {
|
|
429
|
+
const outputRoot = path.join(stagingRoot, 'output');
|
|
430
|
+
await files.write(outputRoot, ctx.signal);
|
|
431
|
+
if (hostFiles.files.size)
|
|
432
|
+
await hostFiles.write(path.join(stagingRoot, 'host'), ctx.signal);
|
|
433
|
+
supplements = supplements.map((contribution) => ({ ...contribution, stagingPath: contribution.stagingPath.startsWith('host/')
|
|
434
|
+
? path.join(stagingRoot, contribution.stagingPath) : path.join(outputRoot, contribution.stagingPath) }));
|
|
435
|
+
for (const component of files.components)
|
|
436
|
+
component.relativeOutputs.sort();
|
|
437
|
+
return { renderUnitId: input.renderUnit.id,
|
|
438
|
+
bundle: input.renderUnit.output === 'package' && files.files.size > 0 ? { stagingRoot: outputRoot, contentDigest: files.digest() } : null,
|
|
439
|
+
supplements, components: files.components, diagnostics: [] };
|
|
440
|
+
}
|
|
441
|
+
catch (error) {
|
|
442
|
+
await fs.remove(stagingRoot);
|
|
443
|
+
throw error;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
//# sourceMappingURL=projection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projection.js","sourceRoot":"","sources":["../../../src/platforms/projection.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACL,0BAA0B,EAAE,qBAAqB,EAAE,+BAA+B,EAAE,2BAA2B,EAC/G,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,GAE1B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACvI,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,gCAAgC,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACxG,OAA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AAI,CAAC,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC;QAC3G,KAAK,MAAM,SAAS,IAAI,KAAK,CAAC,UAAU;YAAE,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC;QAC3E,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE;YACxC,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,KAAK,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI;YACzI,WAAW,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;IACjE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC7B,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AgentPluginAdapter, PlatformId } from './contracts.js';
|
|
2
|
+
import { type PlatformDriverState } from './lifecycle.js';
|
|
3
|
+
export declare function getAgentPluginAdapter(platform: PlatformId): AgentPluginAdapter<PlatformDriverState>;
|
|
4
|
+
export declare function getAgentPluginAdapters(): readonly AgentPluginAdapter<PlatformDriverState>[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PLATFORM_TARGETS } from '@lesliechan721/aw-plugin-core';
|
|
2
|
+
import { discoverPlatform } from './discovery.js';
|
|
3
|
+
import { resolveDeployments } from './layout.js';
|
|
4
|
+
import { getPlatformCapabilities } from './capabilities.js';
|
|
5
|
+
import { inspectDeployment } from './inspection.js';
|
|
6
|
+
import { projectPlatform } from './projection.js';
|
|
7
|
+
import { preparePlatformLifecycle, executePlatformLifecycle } from './lifecycle.js';
|
|
8
|
+
const adapters = new Map(PLATFORM_TARGETS.map((platform) => [platform, {
|
|
9
|
+
platform,
|
|
10
|
+
discover: (ctx) => discoverPlatform(platform, ctx),
|
|
11
|
+
resolve: (ctx, request) => {
|
|
12
|
+
if (request.discovery.platform !== platform)
|
|
13
|
+
throw new Error('platformResolutionMismatch');
|
|
14
|
+
return resolveDeployments(ctx, request);
|
|
15
|
+
},
|
|
16
|
+
inspect: inspectDeployment,
|
|
17
|
+
capabilities: getPlatformCapabilities,
|
|
18
|
+
project: projectPlatform,
|
|
19
|
+
lifecycle: { prepare: preparePlatformLifecycle, execute: executePlatformLifecycle },
|
|
20
|
+
}]));
|
|
21
|
+
export function getAgentPluginAdapter(platform) {
|
|
22
|
+
const adapter = adapters.get(platform);
|
|
23
|
+
if (!adapter)
|
|
24
|
+
throw new Error('platformAdapterUnsupported');
|
|
25
|
+
return adapter;
|
|
26
|
+
}
|
|
27
|
+
export function getAgentPluginAdapters() {
|
|
28
|
+
return [...adapters.values()];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/platforms/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAA4B,MAAM,gBAAgB,CAAC;AAE9G,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAsD,gBAAgB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC1H,QAAQ;QACR,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,CAAC;QAClD,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;YACxB,IAAI,OAAO,CAAC,SAAS,CAAC,QAAQ,KAAK,QAAQ;gBAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;YAC3F,OAAO,kBAAkB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,OAAO,EAAE,iBAAiB;QAC1B,YAAY,EAAE,uBAAuB;QACrC,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE,OAAO,EAAE,wBAAwB,EAAE;KACpF,CAAC,CAAC,CAAC,CAAC;AACL,MAAM,UAAU,qBAAqB,CAAC,QAAoB;IACxD,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACvC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAC5D,OAAO,OAAO,CAAC;AACjB,CAAC;AACD,MAAM,UAAU,sBAAsB;IACpC,OAAO,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type PluginComponent } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
|
+
import type { PluginMeta } from '../types.js';
|
|
3
|
+
import type { OwnedComponent } from '../utils/ownership.js';
|
|
4
|
+
import type { DeploymentBinding } from './contracts.js';
|
|
5
|
+
import { type DeploymentLayout } from './layout.js';
|
|
6
|
+
type SupplementIdentity = Pick<PluginComponent, 'kind' | 'name'>;
|
|
7
|
+
/** Fixed host locations depend on declared identity, never on component content. */
|
|
8
|
+
export declare function supplementRelativePath(binding: DeploymentBinding, component: SupplementIdentity): string;
|
|
9
|
+
export declare function ownedSupplementFile(binding: DeploymentBinding, physicalKey: string, destination: string): Extract<OwnedComponent, {
|
|
10
|
+
kind: 'owned-text-file';
|
|
11
|
+
}>;
|
|
12
|
+
/** Active Manifest metadata is sufficient to bound recovery of declared static files. */
|
|
13
|
+
export declare function staticSupplementFiles(binding: DeploymentBinding, layout: DeploymentLayout, manifest: Pick<PluginMeta['manifest'], 'extensions'>): Array<Extract<OwnedComponent, {
|
|
14
|
+
kind: 'owned-text-file';
|
|
15
|
+
}>>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { resolvePlatformEntries } from '@lesliechan721/aw-plugin-core/manifest';
|
|
3
|
+
import { getDeploymentResourceKey, getNativePackageName } from './layout.js';
|
|
4
|
+
import { nativeComponentName } from './projection-files.js';
|
|
5
|
+
/** Fixed host locations depend on declared identity, never on component content. */
|
|
6
|
+
export function supplementRelativePath(binding, component) {
|
|
7
|
+
const name = `${getDeploymentResourceKey(binding.plugin)}-${nativeComponentName(component.name)}`;
|
|
8
|
+
if (binding.platform === 'codex' && component.kind === 'agent')
|
|
9
|
+
return `${name}.toml`;
|
|
10
|
+
if (binding.platform === 'grok' && component.kind === 'instruction')
|
|
11
|
+
return `${name}.md`;
|
|
12
|
+
throw new Error('platformProjectionSupplementKindUnsupported');
|
|
13
|
+
}
|
|
14
|
+
export function ownedSupplementFile(binding, physicalKey, destination) {
|
|
15
|
+
return { kind: 'owned-text-file', path: destination, allowedRoot: path.dirname(destination),
|
|
16
|
+
identity: { owner: 'agent-workflows', sourceId: binding.plugin.sourceId, sourceIdentity: binding.plugin.sourceIdentity,
|
|
17
|
+
pluginId: binding.plugin.pluginId, plugin: getNativePackageName(binding.plugin), platform: binding.platform,
|
|
18
|
+
scope: binding.scope.kind, physicalKey, artifactKey: path.basename(destination) } };
|
|
19
|
+
}
|
|
20
|
+
/** Active Manifest metadata is sufficient to bound recovery of declared static files. */
|
|
21
|
+
export function staticSupplementFiles(binding, layout, manifest) {
|
|
22
|
+
const unit = layout.renderUnits.find((candidate) => candidate.output === 'supplement');
|
|
23
|
+
if (!layout.supplementRoot || !unit)
|
|
24
|
+
return [];
|
|
25
|
+
const entries = binding.platform === 'codex'
|
|
26
|
+
? resolvePlatformEntries(manifest.extensions?.agents, binding.platform).map((entry) => ({ kind: 'agent', name: entry.name }))
|
|
27
|
+
: binding.platform === 'grok'
|
|
28
|
+
? resolvePlatformEntries(manifest.extensions?.instructions, binding.platform).map((entry) => ({ kind: 'instruction', name: entry.name })) : [];
|
|
29
|
+
return entries.map((entry) => ownedSupplementFile(binding, unit.physicalKey, path.join(layout.supplementRoot, supplementRelativePath(binding, entry))));
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=supplement-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supplement-layout.js","sourceRoot":"","sources":["../../../src/platforms/supplement-layout.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAwB,MAAM,wCAAwC,CAAC;AAKtG,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAyB,MAAM,aAAa,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAI5D,oFAAoF;AACpF,MAAM,UAAU,sBAAsB,CAAC,OAA0B,EAAE,SAA6B;IAC9F,MAAM,IAAI,GAAG,GAAG,wBAAwB,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,mBAAmB,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;IAClG,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,SAAS,CAAC,IAAI,KAAK,OAAO;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,EAAE,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QAC7H,CAAC,CAAC,OAAO,CAAC,QAAQ,KAAK,MAAM;YAC3B,CAAC,CAAC,sBAAsB,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnJ,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EACzE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,cAAe,EAAE,sBAAsB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAChF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DeploymentBinding, DeploymentObservation, ReadContext } from './contracts.js';
|
|
2
|
+
interface PlatformSupplementOutput {
|
|
3
|
+
id: string;
|
|
4
|
+
fileName: string;
|
|
5
|
+
contentDigest: string;
|
|
6
|
+
}
|
|
7
|
+
/** Expected output evidence is rebuildable and never used to authorize cleanup. */
|
|
8
|
+
export declare function writePlatformSupplementState(ctx: ReadContext, binding: DeploymentBinding, inputDigest: string, outputs: PlatformSupplementOutput[]): Promise<void>;
|
|
9
|
+
export declare function inspectPlatformSupplementState(ctx: ReadContext, binding: DeploymentBinding, inputDigest: string): Promise<{
|
|
10
|
+
inputMatches: boolean;
|
|
11
|
+
components: DeploymentObservation['components'];
|
|
12
|
+
} | null>;
|
|
13
|
+
export {};
|