@lesliechan721/aw 0.1.0-beta.6 → 0.1.0-beta.61
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 +199 -0
- package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.mjs +4 -4
- package/dist/authoring/scripts/add-skill.mjs.map +1 -1
- package/dist/authoring/scripts/init-plugin.mjs +67 -97
- 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 +229 -8
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
- package/dist/authoring/scripts/lib/skill-scaffold.d.mts +77 -92
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +99 -124
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
- package/dist/authoring/scripts/plugin-status.mjs +8 -11
- package/dist/authoring/scripts/plugin-status.mjs.map +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs +3 -2
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-plugin.mjs +552 -1142
- package/dist/authoring/scripts/validate-plugin.mjs.map +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 +26 -0
- package/dist/scripts/aw-skill-eval-materializer.js +306 -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 +19 -8
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/plugin-staging.d.ts +7 -9
- package/dist/scripts/plugin-staging.js +18 -29
- 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 +208 -89
- 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 +2 -2
- package/dist/src/adapters/helpers.js.map +1 -1
- package/dist/src/authoring/workspace-commands.d.ts +19 -1
- package/dist/src/authoring/workspace-commands.js +24 -5
- package/dist/src/authoring/workspace-commands.js.map +1 -1
- package/dist/src/commands/aw-capabilities.d.ts +78 -0
- package/dist/src/commands/aw-capabilities.js +266 -0
- package/dist/src/commands/aw-capabilities.js.map +1 -0
- package/dist/src/commands/catalog-dev-source.d.ts +154 -0
- package/dist/src/commands/catalog-dev-source.js +655 -0
- package/dist/src/commands/catalog-dev-source.js.map +1 -0
- package/dist/src/commands/catalog-generation.d.ts +21 -0
- package/dist/src/commands/catalog-generation.js +9 -0
- package/dist/src/commands/catalog-generation.js.map +1 -0
- package/dist/src/commands/catalog-publication-inspection.d.ts +71 -30
- package/dist/src/commands/catalog-publication-inspection.js +475 -63
- 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 +18 -0
- package/dist/src/commands/catalog-publication-target.js +95 -0
- package/dist/src/commands/catalog-publication-target.js.map +1 -0
- package/dist/src/commands/catalog-publish.d.ts +73 -15
- package/dist/src/commands/catalog-publish.js +701 -212
- package/dist/src/commands/catalog-publish.js.map +1 -1
- package/dist/src/commands/catalog-source.d.ts +60 -22
- package/dist/src/commands/catalog-source.js +311 -91
- package/dist/src/commands/catalog-source.js.map +1 -1
- package/dist/src/commands/catalog-status.d.ts +18 -22
- package/dist/src/commands/catalog-status.js +81 -115
- 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 +13 -0
- package/dist/src/commands/catalog-workspace-resolution.js +42 -0
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -0
- package/dist/src/commands/console.js +28 -17
- 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/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/managed-commands.d.ts +28 -0
- package/dist/src/commands/managed-commands.js +315 -0
- package/dist/src/commands/managed-commands.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +67 -0
- package/dist/src/commands/offline-cleanup-evidence.js +181 -0
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -0
- package/dist/src/commands/operation-plan.d.ts +182 -0
- package/dist/src/commands/operation-plan.js +71 -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 +9 -7
- package/dist/src/commands/options.js +83 -21
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/plugin-capabilities.js +65 -4
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/rebuild-command.d.ts +78 -31
- package/dist/src/commands/rebuild-command.js +5229 -942
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +143 -21
- package/dist/src/commands/rebuild-integration.js +3384 -1342
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +60 -30
- package/dist/src/commands/rebuild-operations.js +267 -320
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- 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 +422 -0
- package/dist/src/commands/review-inspection.js.map +1 -0
- package/dist/src/commands/review-preparation.d.ts +49 -0
- package/dist/src/commands/review-preparation.js +427 -0
- package/dist/src/commands/review-preparation.js.map +1 -0
- package/dist/src/commands/runtime.d.ts +1 -5
- package/dist/src/commands/runtime.js +27 -53
- package/dist/src/commands/runtime.js.map +1 -1
- package/dist/src/commands/skill-eval.d.ts +39 -0
- package/dist/src/commands/skill-eval.js +400 -0
- package/dist/src/commands/skill-eval.js.map +1 -0
- package/dist/src/commands/status-v6.d.ts +279 -0
- package/dist/src/commands/status-v6.js +2785 -0
- package/dist/src/commands/status-v6.js.map +1 -0
- package/dist/src/commands/sync-command.d.ts +40 -0
- package/dist/src/commands/sync-command.js +254 -0
- package/dist/src/commands/sync-command.js.map +1 -0
- package/dist/src/commands/wizard.d.ts +8 -5
- package/dist/src/commands/wizard.js +6 -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 +136 -31
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +7 -2
- package/dist/src/constants.js +7 -2
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eval/manifest-v1.d.ts +68 -0
- package/dist/src/eval/manifest-v1.js +353 -0
- package/dist/src/eval/manifest-v1.js.map +1 -0
- package/dist/src/generators/local-plugin.d.ts +5 -1
- package/dist/src/generators/local-plugin.js +263 -109
- 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 +10 -4
- package/dist/src/index.js +1774 -609
- package/dist/src/index.js.map +1 -1
- package/dist/src/output/command-receipt.d.ts +47 -46
- package/dist/src/output/command-receipt.js +277 -79
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/model.d.ts +3 -44
- package/dist/src/output/model.js +1 -144
- package/dist/src/output/model.js.map +1 -1
- package/dist/src/output/rebuild-progress.js +15 -13
- package/dist/src/output/rebuild-progress.js.map +1 -1
- package/dist/src/portable/commands.d.ts +46 -7
- package/dist/src/portable/commands.js +349 -37
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/materializer.d.ts +17 -4
- package/dist/src/portable/materializer.js +186 -41
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/skills-cli.d.ts +15 -7
- package/dist/src/portable/skills-cli.js +74 -20
- package/dist/src/portable/skills-cli.js.map +1 -1
- 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/review-profile.d.ts +17 -0
- package/dist/src/review/review-profile.js +234 -0
- package/dist/src/review/review-profile.js.map +1 -0
- package/dist/src/review/review-selection.d.ts +30 -0
- package/dist/src/review/review-selection.js +527 -0
- package/dist/src/review/review-selection.js.map +1 -0
- package/dist/src/review/review-types.d.ts +68 -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 +26 -0
- package/dist/src/review/skill-materialization.js +217 -0
- package/dist/src/review/skill-materialization.js.map +1 -0
- package/dist/src/review/source-binding.d.ts +183 -0
- package/dist/src/review/source-binding.js +708 -0
- package/dist/src/review/source-binding.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 +21 -0
- package/dist/src/tui/catalog-generation.js +156 -0
- package/dist/src/tui/catalog-generation.js.map +1 -0
- 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 +110 -3
- package/dist/src/tui/components.js +183 -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 +19 -0
- package/dist/src/tui/config-leaf-editor.js +212 -0
- package/dist/src/tui/config-leaf-editor.js.map +1 -0
- package/dist/src/tui/config-references.d.ts +34 -0
- package/dist/src/tui/config-references.js +70 -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 +14 -4
- package/dist/src/tui/console-app-v4.js +9205 -1951
- 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 +10 -2
- package/dist/src/tui/controller-runtime.js +3289 -388
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +622 -45
- package/dist/src/tui/controller.js +3589 -768
- 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/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 +3 -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 +220 -0
- package/dist/src/tui/entity-cards.js.map +1 -0
- package/dist/src/tui/glossary.d.ts +23 -0
- package/dist/src/tui/glossary.js +42 -0
- package/dist/src/tui/glossary.js.map +1 -0
- package/dist/src/tui/index.d.ts +6 -1
- package/dist/src/tui/index.js +5 -1
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/input-display.d.ts +9 -0
- package/dist/src/tui/input-display.js +58 -0
- package/dist/src/tui/input-display.js.map +1 -0
- 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 +224 -31
- package/dist/src/tui/model.js +1510 -397
- 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 +71 -0
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -0
- package/dist/src/tui/operation-history.d.ts +81 -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 +21 -0
- package/dist/src/tui/operation-review-planner.js +1392 -0
- package/dist/src/tui/operation-review-planner.js.map +1 -0
- package/dist/src/tui/plugin-content.d.ts +31 -0
- package/dist/src/tui/plugin-content.js +680 -0
- package/dist/src/tui/plugin-content.js.map +1 -0
- package/dist/src/tui/plugin-detail.d.ts +52 -0
- package/dist/src/tui/plugin-detail.js +165 -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/project-inventory.d.ts +68 -0
- package/dist/src/tui/project-inventory.js +203 -0
- package/dist/src/tui/project-inventory.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 +37 -0
- package/dist/src/tui/reader.js +47 -0
- package/dist/src/tui/reader.js.map +1 -0
- package/dist/src/tui/router.d.ts +197 -10
- package/dist/src/tui/router.js +338 -50
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/screen-registry.d.ts +701 -0
- package/dist/src/tui/screen-registry.js +230 -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 +209 -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/source-ref-presets.d.ts +3 -0
- package/dist/src/tui/source-ref-presets.js +11 -0
- package/dist/src/tui/source-ref-presets.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/views.js +31 -3
- package/dist/src/tui/views.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 +264 -21
- package/dist/src/types.js +1 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/agent-version.d.ts +7 -1
- package/dist/src/utils/agent-version.js +36 -7
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +8 -6
- package/dist/src/utils/artifact-plan.js +67 -13
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +24 -10
- package/dist/src/utils/artifact-renderer.js +230 -220
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +32 -0
- package/dist/src/utils/artifact-request.js +90 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- package/dist/src/utils/artifact-sources.d.ts +4 -0
- package/dist/src/utils/artifact-sources.js +17 -0
- package/dist/src/utils/artifact-sources.js.map +1 -1
- package/dist/src/utils/aw-home-mutation-lock.d.ts +1 -0
- package/dist/src/utils/aw-home-mutation-lock.js +32 -4
- package/dist/src/utils/aw-home-mutation-lock.js.map +1 -1
- package/dist/src/utils/bundle-integrity.d.ts +0 -1
- package/dist/src/utils/bundle-integrity.js +0 -25
- package/dist/src/utils/bundle-integrity.js.map +1 -1
- package/dist/src/utils/bundle-layout.js +29 -29
- 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 +10 -0
- package/dist/src/utils/catalog-digests.js +57 -20
- 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 +16 -0
- package/dist/src/utils/catalog-generation-error.js +30 -0
- package/dist/src/utils/catalog-generation-error.js.map +1 -0
- package/dist/src/utils/catalog-generation-resolver.d.ts +44 -0
- package/dist/src/utils/catalog-generation-resolver.js +273 -0
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -0
- package/dist/src/utils/catalog-generation-service.d.ts +172 -0
- package/dist/src/utils/catalog-generation-service.js +1271 -0
- package/dist/src/utils/catalog-generation-service.js.map +1 -0
- package/dist/src/utils/catalog-generation-state.d.ts +22 -0
- package/dist/src/utils/catalog-generation-state.js +192 -0
- package/dist/src/utils/catalog-generation-state.js.map +1 -0
- package/dist/src/utils/catalog-generation-store.d.ts +58 -0
- package/dist/src/utils/catalog-generation-store.js +452 -0
- package/dist/src/utils/catalog-generation-store.js.map +1 -0
- package/dist/src/utils/catalog-manifest-v7.d.ts +5 -0
- package/dist/src/utils/{catalog-manifest-v4.js → catalog-manifest-v7.js} +35 -43
- package/dist/src/utils/catalog-manifest-v7.js.map +1 -0
- package/dist/src/utils/catalog-operation-context.d.ts +20 -0
- package/dist/src/utils/catalog-operation-context.js +142 -0
- package/dist/src/utils/catalog-operation-context.js.map +1 -0
- package/dist/src/utils/catalog-public-error.d.ts +7 -3
- package/dist/src/utils/catalog-public-error.js +28 -8
- package/dist/src/utils/catalog-public-error.js.map +1 -1
- package/dist/src/utils/catalog-runtime-projection.d.ts +3 -0
- 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 +5 -3
- package/dist/src/utils/catalog-snapshot.js +11 -3
- package/dist/src/utils/catalog-snapshot.js.map +1 -1
- package/dist/src/utils/catalog-source-identity.d.ts +1 -0
- package/dist/src/utils/catalog-source-identity.js +21 -2
- package/dist/src/utils/catalog-source-identity.js.map +1 -1
- 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 +3 -2
- package/dist/src/utils/catalog-source-references.js +195 -347
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/catalog-sources.d.ts +15 -1
- package/dist/src/utils/catalog-sources.js +206 -27
- package/dist/src/utils/catalog-sources.js.map +1 -1
- package/dist/src/utils/claude-skills-root.d.ts +8 -0
- package/dist/src/utils/claude-skills-root.js +76 -0
- package/dist/src/utils/claude-skills-root.js.map +1 -0
- package/dist/src/utils/codex-config.d.ts +2 -0
- package/dist/src/utils/codex-config.js +26 -5
- package/dist/src/utils/codex-config.js.map +1 -1
- package/dist/src/utils/codex-manager.d.ts +79 -0
- package/dist/src/utils/codex-manager.js +735 -0
- package/dist/src/utils/codex-manager.js.map +1 -0
- 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 +154 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -0
- package/dist/src/utils/codex-native-render-receipt.d.ts +40 -0
- package/dist/src/utils/codex-native-render-receipt.js +205 -0
- package/dist/src/utils/codex-native-render-receipt.js.map +1 -0
- package/dist/src/utils/codex-reconciler.d.ts +126 -0
- package/dist/src/utils/codex-reconciler.js +298 -0
- package/dist/src/utils/codex-reconciler.js.map +1 -0
- package/dist/src/utils/codex-shared-native.d.ts +43 -0
- package/dist/src/utils/codex-shared-native.js +81 -0
- package/dist/src/utils/codex-shared-native.js.map +1 -0
- package/dist/src/utils/codex-skill-staging.d.ts +2 -0
- 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 +46 -0
- package/dist/src/utils/codex-surface-analysis.js +247 -0
- package/dist/src/utils/codex-surface-analysis.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +5 -0
- package/dist/src/utils/dynamic-skill-tree.js +56 -7
- 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 +177 -145
- package/dist/src/utils/git-catalog-provider.js.map +1 -1
- package/dist/src/utils/local-marketplace.d.ts +27 -1
- package/dist/src/utils/local-marketplace.js +434 -84
- 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 +86 -0
- package/dist/src/utils/managed-command-evidence.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +115 -0
- package/dist/src/utils/managed-command-materialization.js +359 -0
- package/dist/src/utils/managed-command-materialization.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 +128 -0
- package/dist/src/utils/managed-command-store.js +589 -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 +3 -9
- package/dist/src/utils/multi-source-catalog.js +54 -110
- package/dist/src/utils/multi-source-catalog.js.map +1 -1
- package/dist/src/utils/native-cli.d.ts +61 -7
- package/dist/src/utils/native-cli.js +426 -58
- package/dist/src/utils/native-cli.js.map +1 -1
- 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 +21 -0
- package/dist/src/utils/native-tool-review.js +102 -0
- package/dist/src/utils/native-tool-review.js.map +1 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js +0 -4
- package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +88 -20
- package/dist/src/utils/ownership.js +185 -223
- 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 +54 -65
- package/dist/src/utils/path-catalog-provider.js.map +1 -1
- package/dist/src/utils/paths.d.ts +0 -1
- package/dist/src/utils/paths.js +0 -1
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/plugin-config-impact.d.ts +40 -0
- package/dist/src/utils/plugin-config-impact.js +373 -0
- package/dist/src/utils/plugin-config-impact.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +52 -27
- package/dist/src/utils/plugin-config-write.js +1112 -298
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +153 -93
- package/dist/src/utils/plugin-config.js +1116 -968
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/dist/src/utils/plugin-intent-state.d.ts +49 -0
- package/dist/src/utils/plugin-intent-state.js +320 -0
- package/dist/src/utils/plugin-intent-state.js.map +1 -0
- package/dist/src/utils/plugin-scripts.d.ts +66 -125
- package/dist/src/utils/plugin-scripts.js +518 -526
- 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 +20 -0
- package/dist/src/utils/runtime-config.js +75 -0
- package/dist/src/utils/runtime-config.js.map +1 -0
- 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.js +7 -2
- package/dist/src/utils/state-paths.js.map +1 -1
- package/dist/src/utils/target-eligibility.d.ts +8 -2
- package/dist/src/utils/target-eligibility.js +17 -8
- 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 +14 -0
- package/dist/src/utils/windows-npm-shim.js +140 -0
- package/dist/src/utils/windows-npm-shim.js.map +1 -0
- package/dist/vitest.config.js +100 -9
- package/dist/vitest.config.js.map +1 -1
- package/package.json +31 -21
- package/dist/authoring/scripts/check-plugin-versions.d.mts +0 -2
- package/dist/authoring/scripts/check-plugin-versions.mjs +0 -5
- package/dist/authoring/scripts/check-plugin-versions.mjs.map +0 -1
- 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 -89
- package/dist/scripts/codex-eval-app-server.js +0 -1228
- 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 -1586
- 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 -185
- package/dist/scripts/plugin-eval-contract.js +0 -695
- 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/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-v4.d.ts +0 -123
- package/dist/src/commands/status-v4.js +0 -905
- package/dist/src/commands/status-v4.js.map +0 -1
- package/dist/src/commands/status.d.ts +0 -93
- package/dist/src/commands/status.js +0 -442
- package/dist/src/commands/status.js.map +0 -1
- package/dist/src/utils/active-marketplace-runtime-lock.d.ts +0 -12
- package/dist/src/utils/active-marketplace-runtime-lock.js +0 -133
- package/dist/src/utils/active-marketplace-runtime-lock.js.map +0 -1
- package/dist/src/utils/catalog-manifest-v3.d.ts +0 -2
- package/dist/src/utils/catalog-manifest-v3.js +0 -3
- package/dist/src/utils/catalog-manifest-v3.js.map +0 -1
- package/dist/src/utils/catalog-manifest-v4.d.ts +0 -5
- package/dist/src/utils/catalog-manifest-v4.js.map +0 -1
- package/dist/src/utils/catalog-source-cache.d.ts +0 -62
- package/dist/src/utils/catalog-source-cache.js +0 -296
- 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 -175
- package/dist/src/utils/lifecycle-active-store.js +0 -1276
- 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
|
@@ -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,26 @@
|
|
|
1
|
+
import type { PluginMeta } from '../src/types.js';
|
|
2
|
+
export interface AwSkillEvalMaterializationProfile {
|
|
3
|
+
id: string;
|
|
4
|
+
scope: 'project' | 'user';
|
|
5
|
+
plugins: Array<{
|
|
6
|
+
name: string;
|
|
7
|
+
configByScope: Partial<Record<'project' | 'user', Record<string, unknown>>>;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export interface MaterializeAwSkillEvalOptions {
|
|
11
|
+
plugin: PluginMeta;
|
|
12
|
+
plugins: PluginMeta[];
|
|
13
|
+
profile: AwSkillEvalMaterializationProfile;
|
|
14
|
+
requiredSkills: ReadonlySet<string>;
|
|
15
|
+
initializeGitRepository: boolean;
|
|
16
|
+
outputRoot: string;
|
|
17
|
+
workRoot: string;
|
|
18
|
+
sourceIdentity: string;
|
|
19
|
+
workspaceIdentity: string;
|
|
20
|
+
env?: NodeJS.ProcessEnv;
|
|
21
|
+
}
|
|
22
|
+
export interface AwSkillEvalMaterializedSubject {
|
|
23
|
+
root: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function materializeAwSkillEvalSubject(options: MaterializeAwSkillEvalOptions): Promise<AwSkillEvalMaterializedSubject>;
|
|
26
|
+
export declare function resolveMaterializedSubjectRoot(outputRoot: string, subject: AwSkillEvalMaterializedSubject): string;
|
|
@@ -0,0 +1,306 @@
|
|
|
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 { createRebuildIntegration, materializeReviewNativeSkills, } from '../src/commands/rebuild-integration.js';
|
|
7
|
+
import { createNoopDebugLogger } from '../src/output/debug-log.js';
|
|
8
|
+
import { createNoopReporter } from '../src/output/reporter.js';
|
|
9
|
+
import { createIsolatedSkillEnv, prepareSkillPluginBundle, } from '../src/review/skill-materialization.js';
|
|
10
|
+
import { writePluginConfigStore } from '../src/utils/plugin-config.js';
|
|
11
|
+
import { validateSkillDirectoriesRoot } from '../src/utils/dynamic-skill-tree.js';
|
|
12
|
+
const execFileAsync = promisify(execFile);
|
|
13
|
+
async function snapshotRuntimeSkills(sourceRoot, targetRoot) {
|
|
14
|
+
await validateSkillDirectoriesRoot(sourceRoot, 'codex.skill');
|
|
15
|
+
await fs.ensureDir(targetRoot);
|
|
16
|
+
const entries = await fs.readdir(sourceRoot, { withFileTypes: true });
|
|
17
|
+
for (const entry of entries) {
|
|
18
|
+
if (!entry.isDirectory())
|
|
19
|
+
continue;
|
|
20
|
+
const source = path.join(sourceRoot, entry.name);
|
|
21
|
+
const destination = path.join(targetRoot, entry.name);
|
|
22
|
+
await createRuntimeSkillSnapshot(source, destination);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
async function initializeSubjectGitRepository(subjectRoot, baseEnv, excludedRoots) {
|
|
26
|
+
const env = {
|
|
27
|
+
...baseEnv,
|
|
28
|
+
GIT_CONFIG_GLOBAL: path.join(subjectRoot, '.gitconfig-disabled'),
|
|
29
|
+
GIT_CONFIG_NOSYSTEM: '1',
|
|
30
|
+
GIT_AUTHOR_NAME: 'AW Eval Fixture',
|
|
31
|
+
GIT_AUTHOR_EMAIL: 'aw-eval@example.invalid',
|
|
32
|
+
GIT_AUTHOR_DATE: '2000-01-01T00:00:00Z',
|
|
33
|
+
GIT_COMMITTER_NAME: 'AW Eval Fixture',
|
|
34
|
+
GIT_COMMITTER_EMAIL: 'aw-eval@example.invalid',
|
|
35
|
+
GIT_COMMITTER_DATE: '2000-01-01T00:00:00Z',
|
|
36
|
+
};
|
|
37
|
+
for (const key of [
|
|
38
|
+
'GIT_ALTERNATE_OBJECT_DIRECTORIES',
|
|
39
|
+
'GIT_COMMON_DIR',
|
|
40
|
+
'GIT_CONFIG',
|
|
41
|
+
'GIT_CONFIG_COUNT',
|
|
42
|
+
'GIT_CONFIG_PARAMETERS',
|
|
43
|
+
'GIT_DIR',
|
|
44
|
+
'GIT_INDEX_FILE',
|
|
45
|
+
'GIT_NAMESPACE',
|
|
46
|
+
'GIT_OBJECT_DIRECTORY',
|
|
47
|
+
'GIT_WORK_TREE',
|
|
48
|
+
]) {
|
|
49
|
+
delete env[key];
|
|
50
|
+
}
|
|
51
|
+
for (const key of Object.keys(env)) {
|
|
52
|
+
if (key.startsWith('GIT_CONFIG_KEY_') || key.startsWith('GIT_CONFIG_VALUE_')) {
|
|
53
|
+
delete env[key];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
await execFileAsync('git', ['init', '-q', '--initial-branch=main', '--template='], {
|
|
57
|
+
cwd: subjectRoot,
|
|
58
|
+
env,
|
|
59
|
+
});
|
|
60
|
+
await fs.ensureDir(path.join(subjectRoot, '.git', 'info'));
|
|
61
|
+
await fs.writeFile(path.join(subjectRoot, '.git', 'info', 'exclude'), `${excludedRoots
|
|
62
|
+
.sort((left, right) => left.localeCompare(right))
|
|
63
|
+
.map((root) => `/${root.split(path.sep).join('/')}/`)
|
|
64
|
+
.join('\n')}\n`, 'utf8');
|
|
65
|
+
await execFileAsync('git', ['add', '--all'], { cwd: subjectRoot, env });
|
|
66
|
+
await execFileAsync('git', [
|
|
67
|
+
'-c',
|
|
68
|
+
'user.name=AW Eval Fixture',
|
|
69
|
+
'-c',
|
|
70
|
+
'user.email=aw-eval@example.invalid',
|
|
71
|
+
'-c',
|
|
72
|
+
'commit.gpgSign=false',
|
|
73
|
+
'commit',
|
|
74
|
+
'-q',
|
|
75
|
+
'--no-verify',
|
|
76
|
+
'--allow-empty',
|
|
77
|
+
'-m',
|
|
78
|
+
'Materialize eval subject',
|
|
79
|
+
], { cwd: subjectRoot, env });
|
|
80
|
+
await fs.remove(path.join(subjectRoot, '.git', 'index'));
|
|
81
|
+
await execFileAsync('git', ['read-tree', '--reset', 'HEAD'], { cwd: subjectRoot, env });
|
|
82
|
+
}
|
|
83
|
+
async function copyUserMaterializedArtifacts(options) {
|
|
84
|
+
const materializedRoot = path.join(options.scopeRoot, 'materialized');
|
|
85
|
+
const skillsRoot = path.join(materializedRoot, '.agents', 'skills');
|
|
86
|
+
for (const pluginName of options.pluginNames) {
|
|
87
|
+
const runtimeSkillsRoot = path.join(options.env.AW_HOME, 'plugins', pluginName, 'codex', 'skills');
|
|
88
|
+
if (await fs.pathExists(runtimeSkillsRoot)) {
|
|
89
|
+
await snapshotRuntimeSkills(runtimeSkillsRoot, skillsRoot);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const codexHome = options.env.AW_CODEX_HOME;
|
|
93
|
+
if (await fs.pathExists(codexHome)) {
|
|
94
|
+
const codexSkillsRoot = path.join(codexHome, 'skills');
|
|
95
|
+
if (await fs.pathExists(codexSkillsRoot)) {
|
|
96
|
+
await snapshotRuntimeSkills(codexSkillsRoot, skillsRoot);
|
|
97
|
+
}
|
|
98
|
+
await fs.copy(codexHome, path.join(materializedRoot, '.codex'), {
|
|
99
|
+
overwrite: true,
|
|
100
|
+
dereference: false,
|
|
101
|
+
filter: (source) => {
|
|
102
|
+
const relative = path.relative(codexHome, source);
|
|
103
|
+
return (relative !== 'skills' && !relative.startsWith(`skills${path.sep}`))
|
|
104
|
+
&& path.basename(source) !== 'auth.json'
|
|
105
|
+
&& path.basename(source) !== '.credentials.json';
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return materializedRoot;
|
|
110
|
+
}
|
|
111
|
+
async function materializeCodexSkills(options) {
|
|
112
|
+
const declarations = options.prepared.bundlePlugin.manifest.artifacts?.targets ?? [];
|
|
113
|
+
const sourceRoot = path.join(options.prepared.bundleRoot, 'codex', 'skills');
|
|
114
|
+
const targetRoot = options.profile.scope === 'project'
|
|
115
|
+
? path.join(options.projectRoot, '.agents', 'skills')
|
|
116
|
+
: path.join(options.env.AW_HOME, 'plugins', options.prepared.bundlePlugin.manifest.name, 'codex', 'skills');
|
|
117
|
+
if (await fs.pathExists(sourceRoot)) {
|
|
118
|
+
await snapshotRuntimeSkills(sourceRoot, targetRoot);
|
|
119
|
+
}
|
|
120
|
+
const nativeSkills = declarations
|
|
121
|
+
.filter((target) => target.platform === 'codex'
|
|
122
|
+
&& target.target === 'codex.skill'
|
|
123
|
+
&& target.scopes.includes(options.profile.scope)
|
|
124
|
+
&& target.delivery?.mode === 'codex-native'
|
|
125
|
+
&& target.skillKey !== undefined)
|
|
126
|
+
.map((target) => ({ skill: target.skillKey, targetId: target.id }));
|
|
127
|
+
if (nativeSkills.length === 0)
|
|
128
|
+
return;
|
|
129
|
+
const outputRoot = path.join(options.env.TMPDIR, `materialized-${options.prepared.bundlePlugin.manifest.name}`);
|
|
130
|
+
await materializeReviewNativeSkills({
|
|
131
|
+
plugin: options.prepared.bundlePlugin,
|
|
132
|
+
platform: 'codex',
|
|
133
|
+
scope: options.profile.scope,
|
|
134
|
+
cwd: options.projectRoot,
|
|
135
|
+
env: options.env,
|
|
136
|
+
outputRoot,
|
|
137
|
+
skills: nativeSkills,
|
|
138
|
+
allowDisabledNativeSkills: true,
|
|
139
|
+
});
|
|
140
|
+
await snapshotRuntimeSkills(path.join(outputRoot, 'skills'), targetRoot);
|
|
141
|
+
await fs.remove(outputRoot);
|
|
142
|
+
}
|
|
143
|
+
async function materializeProfile(options) {
|
|
144
|
+
const scopeRoot = path.join(options.outputRoot, 'subjects', options.profile.id);
|
|
145
|
+
await fs.remove(scopeRoot);
|
|
146
|
+
await fs.ensureDir(scopeRoot);
|
|
147
|
+
const env = await createIsolatedSkillEnv(options.baseEnv, scopeRoot);
|
|
148
|
+
const projectRoot = path.join(scopeRoot, 'project');
|
|
149
|
+
await fs.ensureDir(path.join(projectRoot, '.git'));
|
|
150
|
+
const installations = options.profile.plugins.map((installation) => {
|
|
151
|
+
const prepared = options.preparedByName.get(installation.name);
|
|
152
|
+
if (!prepared) {
|
|
153
|
+
throw new Error(`Eval profile "${options.profile.id}" references unresolved plugin "${installation.name}".`);
|
|
154
|
+
}
|
|
155
|
+
return { installation, prepared };
|
|
156
|
+
});
|
|
157
|
+
for (const { installation, prepared } of installations) {
|
|
158
|
+
for (const scope of ['project', 'user']) {
|
|
159
|
+
const config = installation.configByScope[scope];
|
|
160
|
+
if (config === undefined)
|
|
161
|
+
continue;
|
|
162
|
+
await writePluginConfigStore({
|
|
163
|
+
sourceId: prepared.bundlePlugin.sourceId,
|
|
164
|
+
sourceIdentity: prepared.bundlePlugin.sourceIdentity,
|
|
165
|
+
logicalIdentity: prepared.bundlePlugin.catalogLogicalIdentity,
|
|
166
|
+
pluginName: installation.name,
|
|
167
|
+
scope,
|
|
168
|
+
cwd: projectRoot,
|
|
169
|
+
values: config,
|
|
170
|
+
env,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
for (const { prepared } of installations) {
|
|
175
|
+
await materializeCodexSkills({
|
|
176
|
+
prepared,
|
|
177
|
+
profile: options.profile,
|
|
178
|
+
projectRoot,
|
|
179
|
+
env,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
const integration = createRebuildIntegration({
|
|
183
|
+
context: {
|
|
184
|
+
env,
|
|
185
|
+
nativeCliRunner: async () => {
|
|
186
|
+
throw new Error('Plugin eval materialization cannot run a native CLI.');
|
|
187
|
+
},
|
|
188
|
+
reporter: createNoopReporter(),
|
|
189
|
+
debugLogger: createNoopDebugLogger(),
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
for (const { prepared } of installations) {
|
|
193
|
+
const target = await integration.buildTarget({
|
|
194
|
+
plugin: prepared.bundlePlugin,
|
|
195
|
+
platform: 'codex',
|
|
196
|
+
scope: options.profile.scope,
|
|
197
|
+
cwd: projectRoot,
|
|
198
|
+
command: 'install',
|
|
199
|
+
catalog: {
|
|
200
|
+
rootDir: prepared.bundleRoot,
|
|
201
|
+
source: 'local',
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
await integration.driver.writeArtifacts(target);
|
|
205
|
+
}
|
|
206
|
+
const subjectRoot = options.profile.scope === 'project'
|
|
207
|
+
? projectRoot
|
|
208
|
+
: await copyUserMaterializedArtifacts({
|
|
209
|
+
scopeRoot,
|
|
210
|
+
env,
|
|
211
|
+
pluginNames: installations.map(({ installation }) => installation.name),
|
|
212
|
+
});
|
|
213
|
+
const skillsRoot = path.join(subjectRoot, '.agents', 'skills');
|
|
214
|
+
const materializedSkills = new Set((await fs.readdir(skillsRoot, { withFileTypes: true }).catch(() => []))
|
|
215
|
+
.filter((entry) => entry.isDirectory() && !entry.isSymbolicLink())
|
|
216
|
+
.map((entry) => entry.name));
|
|
217
|
+
for (const skill of options.requiredSkills) {
|
|
218
|
+
if (!materializedSkills.has(skill)) {
|
|
219
|
+
throw new Error(`Profile "${options.profile.id}" did not materialize required Codex Skill "${skill}".`);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (options.initializeGitRepository) {
|
|
223
|
+
await initializeSubjectGitRepository(subjectRoot, env, [
|
|
224
|
+
'.codex',
|
|
225
|
+
...[...materializedSkills].map((skill) => path.join('.agents', 'skills', skill)),
|
|
226
|
+
]);
|
|
227
|
+
}
|
|
228
|
+
const subject = {
|
|
229
|
+
root: path.relative(options.outputRoot, subjectRoot).split(path.sep).join('/'),
|
|
230
|
+
};
|
|
231
|
+
return subject;
|
|
232
|
+
}
|
|
233
|
+
export async function materializeAwSkillEvalSubject(options) {
|
|
234
|
+
const sourcePlugins = new Map();
|
|
235
|
+
for (const plugin of options.plugins) {
|
|
236
|
+
const name = plugin.manifest.name;
|
|
237
|
+
if (sourcePlugins.has(name)) {
|
|
238
|
+
throw new Error(`Duplicate plugin source for eval materialization: ${name}`);
|
|
239
|
+
}
|
|
240
|
+
sourcePlugins.set(name, plugin);
|
|
241
|
+
}
|
|
242
|
+
if (!sourcePlugins.has(options.plugin.manifest.name)) {
|
|
243
|
+
throw new Error(`Owner plugin source is missing: ${options.plugin.manifest.name}`);
|
|
244
|
+
}
|
|
245
|
+
const requiredPluginNames = [...new Set(options.profile.plugins.map((plugin) => plugin.name))];
|
|
246
|
+
const preparedByName = new Map();
|
|
247
|
+
try {
|
|
248
|
+
const bundleEnv = await createIsolatedSkillEnv(options.env ?? process.env, path.join(options.workRoot, 'environment'));
|
|
249
|
+
for (const pluginName of requiredPluginNames) {
|
|
250
|
+
const plugin = sourcePlugins.get(pluginName);
|
|
251
|
+
if (!plugin) {
|
|
252
|
+
throw new Error(`Eval manifest references repo-local plugin "${pluginName}" but no source was resolved.`);
|
|
253
|
+
}
|
|
254
|
+
const prepared = await prepareSkillPluginBundle({
|
|
255
|
+
plugin,
|
|
256
|
+
plugins: options.plugins,
|
|
257
|
+
workRoot: path.join(options.workRoot, pluginName),
|
|
258
|
+
env: bundleEnv,
|
|
259
|
+
});
|
|
260
|
+
const sourceId = prepared.bundlePlugin.sourceId ?? 'eval-source';
|
|
261
|
+
prepared.bundlePlugin = {
|
|
262
|
+
...prepared.bundlePlugin,
|
|
263
|
+
sourceId,
|
|
264
|
+
sourceIdentity: prepared.bundlePlugin.sourceIdentity ?? options.sourceIdentity,
|
|
265
|
+
catalogLogicalIdentity: prepared.bundlePlugin.catalogLogicalIdentity ?? options.workspaceIdentity,
|
|
266
|
+
pluginId: prepared.bundlePlugin.pluginId ?? `${sourceId}/${pluginName}`,
|
|
267
|
+
};
|
|
268
|
+
preparedByName.set(pluginName, prepared);
|
|
269
|
+
}
|
|
270
|
+
const owners = new Map();
|
|
271
|
+
for (const installation of options.profile.plugins) {
|
|
272
|
+
const prepared = preparedByName.get(installation.name);
|
|
273
|
+
const staticSkillsRoot = path.join(prepared.bundleRoot, 'codex', 'skills');
|
|
274
|
+
const staticSkills = await fs.pathExists(staticSkillsRoot)
|
|
275
|
+
? await fs.readdir(staticSkillsRoot, { withFileTypes: true })
|
|
276
|
+
: [];
|
|
277
|
+
const declaredSkills = [
|
|
278
|
+
...staticSkills.filter((entry) => entry.isDirectory()).map((entry) => entry.name),
|
|
279
|
+
...(prepared.bundlePlugin.manifest.artifacts?.targets ?? []).flatMap((target) => target.target === 'codex.skill' && target.skillKey ? [target.skillKey] : []),
|
|
280
|
+
];
|
|
281
|
+
for (const skill of new Set(declaredSkills)) {
|
|
282
|
+
const existing = owners.get(skill);
|
|
283
|
+
if (existing && existing !== installation.name) {
|
|
284
|
+
throw new Error(`Eval profile "${options.profile.id}" installs duplicate Codex Skill key "${skill}" ` +
|
|
285
|
+
`from plugins "${existing}" and "${installation.name}".`);
|
|
286
|
+
}
|
|
287
|
+
owners.set(skill, installation.name);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return await materializeProfile({
|
|
291
|
+
preparedByName,
|
|
292
|
+
requiredSkills: options.requiredSkills,
|
|
293
|
+
profile: options.profile,
|
|
294
|
+
outputRoot: options.outputRoot,
|
|
295
|
+
baseEnv: options.env ?? process.env,
|
|
296
|
+
initializeGitRepository: options.initializeGitRepository,
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
finally {
|
|
300
|
+
await Promise.all([...preparedByName.values()].map((prepared) => prepared.cleanup()));
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
export function resolveMaterializedSubjectRoot(outputRoot, subject) {
|
|
304
|
+
return path.resolve(outputRoot, subject.root);
|
|
305
|
+
}
|
|
306
|
+
//# sourceMappingURL=aw-skill-eval-materializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aw-skill-eval-materializer.js","sourceRoot":"","sources":["../../scripts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,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;
|
|
@@ -20,6 +20,7 @@ async function assertPackageVersions(repoRoot) {
|
|
|
20
20
|
['package.json', path.join(repoRoot, 'package.json')],
|
|
21
21
|
['release/version-targets.json', path.join(repoRoot, 'release', 'version-targets.json')],
|
|
22
22
|
['packages/agent-skill-eval/package.json', path.join(repoRoot, 'packages', 'agent-skill-eval', 'package.json')],
|
|
23
|
+
['packages/plugin-core/package.json', path.join(repoRoot, 'packages', 'plugin-core', 'package.json')],
|
|
23
24
|
['packages/cli/package.json', path.join(repoRoot, 'packages', 'cli', 'package.json')],
|
|
24
25
|
];
|
|
25
26
|
const existence = await Promise.all(truthFiles.map(([, filePath]) => fs.pathExists(filePath)));
|
|
@@ -29,11 +30,12 @@ async function assertPackageVersions(repoRoot) {
|
|
|
29
30
|
if (missing.length > 0) {
|
|
30
31
|
throw new Error(`Incomplete release version truth set: missing ${missing.join(', ')}.`);
|
|
31
32
|
}
|
|
32
|
-
const [[, rootPackageJsonPath], [, targetsPath], [, evalPackageJsonPath], [, cliPackageJsonPath]] = truthFiles;
|
|
33
|
-
const [rootPackageJson, targets, evalPackageJson, cliPackageJson] = await Promise.all([
|
|
33
|
+
const [[, rootPackageJsonPath], [, targetsPath], [, evalPackageJsonPath], [, corePackageJsonPath], [, cliPackageJsonPath],] = truthFiles;
|
|
34
|
+
const [rootPackageJson, targets, evalPackageJson, corePackageJson, cliPackageJson,] = await Promise.all([
|
|
34
35
|
fs.readJson(rootPackageJsonPath),
|
|
35
36
|
fs.readJson(targetsPath),
|
|
36
37
|
fs.readJson(evalPackageJsonPath),
|
|
38
|
+
fs.readJson(corePackageJsonPath),
|
|
37
39
|
fs.readJson(cliPackageJsonPath),
|
|
38
40
|
]);
|
|
39
41
|
if (Object.hasOwn(rootPackageJson, 'version')) {
|
|
@@ -48,19 +50,26 @@ async function assertPackageVersions(repoRoot) {
|
|
|
48
50
|
throw new Error('Invalid release/version-targets.json cli: expected a stable SemVer 2.0.0 string.');
|
|
49
51
|
}
|
|
50
52
|
const evalVersion = assertStrictSemVer(evalPackageJson.version, 'packages/agent-skill-eval/package.json version');
|
|
53
|
+
const coreVersion = assertStrictSemVer(corePackageJson.version, 'packages/plugin-core/package.json version');
|
|
51
54
|
const cliVersion = assertStrictSemVer(cliPackageJson.version, 'packages/cli/package.json version');
|
|
52
|
-
if (targetVersion !== cliVersion
|
|
55
|
+
if (targetVersion !== cliVersion
|
|
56
|
+
|| targetVersion !== evalVersion
|
|
57
|
+
|| targetVersion !== coreVersion) {
|
|
53
58
|
throw new Error(`Invalid release versions: release/version-targets.json cli ${targetVersion} must match ` +
|
|
54
|
-
`
|
|
59
|
+
`all three public package versions, including Eval ${evalVersion}, Core ${coreVersion}, ` +
|
|
55
60
|
`packages/cli/package.json version ${cliVersion}.`);
|
|
56
61
|
}
|
|
57
62
|
}
|
|
58
|
-
async function removeGeneratedEmptyDirectories(currentDir) {
|
|
63
|
+
async function removeGeneratedEmptyDirectories(currentDir, preservedRoots = []) {
|
|
64
|
+
if (preservedRoots.includes(path.resolve(currentDir)))
|
|
65
|
+
return;
|
|
59
66
|
for (const entry of await fs.readdir(currentDir, { withFileTypes: true })) {
|
|
60
67
|
if (!entry.isDirectory())
|
|
61
68
|
continue;
|
|
62
69
|
const entryPath = path.join(currentDir, entry.name);
|
|
63
|
-
|
|
70
|
+
if (preservedRoots.includes(path.resolve(entryPath)))
|
|
71
|
+
continue;
|
|
72
|
+
await removeGeneratedEmptyDirectories(entryPath, preservedRoots);
|
|
64
73
|
if ((await fs.readdir(entryPath)).length === 0) {
|
|
65
74
|
await fs.remove(entryPath);
|
|
66
75
|
}
|
|
@@ -93,8 +102,10 @@ export async function bundlePlugins(options = {}) {
|
|
|
93
102
|
buildMode,
|
|
94
103
|
stagingRunner: options.stagingRunner,
|
|
95
104
|
runtimeResolver,
|
|
105
|
+
strictRequirements: options.strictRequirements,
|
|
96
106
|
});
|
|
97
|
-
await removeGeneratedEmptyDirectories(bundledPluginRoot)
|
|
107
|
+
await removeGeneratedEmptyDirectories(bundledPluginRoot, (result.plugin.manifest.managedCommands?.packages ?? [])
|
|
108
|
+
.map((entry) => path.resolve(bundledPluginRoot, entry.sourceDir)));
|
|
98
109
|
bundledPlugins.push(result.plugin);
|
|
99
110
|
runtimeProjection[result.plugin.manifest.name] = result.runtimeProjection;
|
|
100
111
|
for (const platform of ['claude', 'codex']) {
|
|
@@ -116,7 +127,7 @@ export async function bundlePlugins(options = {}) {
|
|
|
116
127
|
};
|
|
117
128
|
}
|
|
118
129
|
if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
|
|
119
|
-
bundlePlugins({ buildMode: 'staging' }).catch((error) => {
|
|
130
|
+
bundlePlugins({ buildMode: 'staging', strictRequirements: true }).catch((error) => {
|
|
120
131
|
const message = error instanceof Error ? error.message : String(error);
|
|
121
132
|
console.error(message);
|
|
122
133
|
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,UA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AAC,IAAI,CAAC;QACjE,iBAAiB;KAClB,CAAC;AACJ,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACxF,aAAa,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;QACzF,MAAM,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 {
|
|
9
|
-
export { scanJavaScriptImportSpecifiers, scanNodeImportContract, } from '../src/utils/plugin-script-contract.js';
|
|
8
|
+
export { matchesPluginTestEntryGlob, scanJavaScriptImportSpecifiers, scanNodeImportContract, } from '../src/utils/plugin-script-contract.js';
|
|
10
9
|
export { formatMarketplaceProductsForError, 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,10 +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 {
|
|
26
|
-
export declare const CATALOG_SCHEMA_3_CLI_FLOOR = "0.0.0";
|
|
24
|
+
export { CATALOG_SCHEMA_7_CAPABILITY };
|
|
27
25
|
export declare function stageCatalogArtifacts(options: CatalogStageOptions): Promise<CatalogStageResult>;
|
|
28
|
-
export declare function readStagedCatalogManifest(outputRoot: string): Promise<
|
|
26
|
+
export declare function readStagedCatalogManifest(outputRoot: string): Promise<CatalogManifestV7>;
|