@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommandOptions, InstallCommandOptions, PlatformSelection, Scope, StatusCommandOptions
|
|
1
|
+
import type { CommandOptions, InstallCommandOptions, PlatformSelection, Scope, StatusCommandOptions } from '../types.js';
|
|
2
2
|
export interface NormalizeCommandOptionsDefaults {
|
|
3
3
|
cwd?: string;
|
|
4
4
|
defaultScope?: Scope;
|
|
@@ -12,10 +12,12 @@ export type RawCommandOptions = {
|
|
|
12
12
|
platform?: string;
|
|
13
13
|
scriptTimeout?: string | number;
|
|
14
14
|
scriptTimeoutMs?: string | number;
|
|
15
|
+
allowManagedCodexInstall?: boolean;
|
|
16
|
+
yes?: boolean;
|
|
15
17
|
};
|
|
16
|
-
export type RawInstallCommandOptions = RawCommandOptions & {
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
export type RawInstallCommandOptions = RawCommandOptions & {
|
|
19
|
+
dependencyScope?: string | string[];
|
|
20
|
+
dependencyScopeOverrides?: InstallCommandOptions['dependencyScopeOverrides'];
|
|
19
21
|
};
|
|
20
22
|
export type RawStatusCommandOptions = {
|
|
21
23
|
cwd?: string;
|
|
@@ -45,13 +47,14 @@ export interface RawConfigProjectLayerOptions {
|
|
|
45
47
|
local?: boolean;
|
|
46
48
|
}
|
|
47
49
|
export declare const SCRIPT_TIMEOUT_MIN_MS = 1000;
|
|
48
|
-
export declare const SCRIPT_TIMEOUT_MAX_MS =
|
|
49
|
-
export declare const SCRIPT_TIMEOUT_DEFAULT_MS =
|
|
50
|
+
export declare const SCRIPT_TIMEOUT_MAX_MS = 1800000;
|
|
51
|
+
export declare const SCRIPT_TIMEOUT_DEFAULT_MS = 300000;
|
|
50
52
|
export declare const CONFIG_WRITE_DEFAULT_SCOPE: Scope;
|
|
51
53
|
export type ConfigReadResolution = Scope | 'effective';
|
|
52
54
|
export declare const CONFIG_READ_DEFAULT_RESOLUTION: ConfigReadResolution;
|
|
53
55
|
export declare function parseScopeValue(scope: unknown): Scope;
|
|
54
56
|
export declare function parsePlatformValue(platform: unknown): PlatformSelection;
|
|
57
|
+
export declare function parseDependencyScopeOverrides(values: string | readonly string[] | undefined): NonNullable<InstallCommandOptions['dependencyScopeOverrides']>;
|
|
55
58
|
export declare function parseScriptTimeoutMs(value: unknown): number;
|
|
56
59
|
export declare function resolveScriptTimeoutMs(raw: Pick<RawCommandOptions, 'scriptTimeout' | 'scriptTimeoutMs'>): number | undefined;
|
|
57
60
|
export declare function resolveConfigWriteScope(scope: unknown): Scope;
|
|
@@ -59,7 +62,6 @@ export declare function resolveConfigReadResolution(scope: unknown): ConfigReadR
|
|
|
59
62
|
export declare function resolveConfigProjectLayer(raw?: RawConfigProjectLayerOptions): 'shared' | 'local';
|
|
60
63
|
export declare function normalizeCommandOptions(raw?: RawCommandOptions, defaults?: NormalizeCommandOptionsDefaults): CommandOptions;
|
|
61
64
|
export declare function normalizeInstallCommandOptions(raw?: RawInstallCommandOptions, defaults?: NormalizeCommandOptionsDefaults): InstallCommandOptions;
|
|
62
|
-
export declare function normalizeUpgradeCommandOptions(raw?: RawUpgradeCommandOptions, defaults?: NormalizeCommandOptionsDefaults): UpgradeCommandOptions;
|
|
63
65
|
export declare function normalizeStatusCommandOptions(raw?: RawStatusCommandOptions, defaults?: {
|
|
64
66
|
cwd?: string;
|
|
65
67
|
}): StatusCommandOptions;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { parsePluginId } from '../utils/multi-source-catalog.js';
|
|
1
2
|
export const SCRIPT_TIMEOUT_MIN_MS = 1000;
|
|
2
|
-
export const SCRIPT_TIMEOUT_MAX_MS =
|
|
3
|
-
export const SCRIPT_TIMEOUT_DEFAULT_MS =
|
|
3
|
+
export const SCRIPT_TIMEOUT_MAX_MS = 1800000;
|
|
4
|
+
export const SCRIPT_TIMEOUT_DEFAULT_MS = 300000;
|
|
4
5
|
export const CONFIG_WRITE_DEFAULT_SCOPE = 'user';
|
|
5
6
|
export const CONFIG_READ_DEFAULT_RESOLUTION = 'effective';
|
|
6
7
|
function renderUnsupportedValue(value) {
|
|
@@ -18,6 +19,53 @@ export function parsePlatformValue(platform) {
|
|
|
18
19
|
}
|
|
19
20
|
throw new Error(`Unsupported platform "${renderUnsupportedValue(platform)}". Expected one of: codex, claude, both.`);
|
|
20
21
|
}
|
|
22
|
+
export function parseDependencyScopeOverrides(values) {
|
|
23
|
+
const inputs = values === undefined ? [] : typeof values === 'string' ? [values] : [...values];
|
|
24
|
+
const byKey = new Map();
|
|
25
|
+
for (const input of inputs) {
|
|
26
|
+
if (input !== input.trim() || input.trim() === '') {
|
|
27
|
+
throw new Error('Invalid dependency scope override: expected <pluginId>[#platform]=<project|user>.');
|
|
28
|
+
}
|
|
29
|
+
const separator = input.lastIndexOf('=');
|
|
30
|
+
if (separator <= 0 || separator !== input.indexOf('=')) {
|
|
31
|
+
throw new Error(`Invalid dependency scope override "${input}".`);
|
|
32
|
+
}
|
|
33
|
+
const selector = input.slice(0, separator);
|
|
34
|
+
const scope = parseScopeValue(input.slice(separator + 1));
|
|
35
|
+
const platformSeparator = selector.lastIndexOf('#');
|
|
36
|
+
const pluginId = platformSeparator < 0 ? selector : selector.slice(0, platformSeparator);
|
|
37
|
+
const parsed = parsePluginId(pluginId);
|
|
38
|
+
if (!parsed.sourceId) {
|
|
39
|
+
throw new Error(`Invalid dependency scope plugin ID "${pluginId}": expected source/plugin.`);
|
|
40
|
+
}
|
|
41
|
+
const canonicalPluginId = `${parsed.sourceId}/${parsed.pluginName}`;
|
|
42
|
+
const parsedPlatform = platformSeparator < 0
|
|
43
|
+
? undefined
|
|
44
|
+
: parsePlatformValue(selector.slice(platformSeparator + 1));
|
|
45
|
+
if (parsedPlatform === 'both') {
|
|
46
|
+
throw new Error('Invalid dependency scope platform: expected codex or claude.');
|
|
47
|
+
}
|
|
48
|
+
const key = `${canonicalPluginId}\0${parsedPlatform ?? '*'}`;
|
|
49
|
+
const current = byKey.get(key);
|
|
50
|
+
if (current && current.scope !== scope) {
|
|
51
|
+
throw new Error(`dependencyScopeOverrideConflict: ${canonicalPluginId}`
|
|
52
|
+
+ `${parsedPlatform ? `#${parsedPlatform}` : ''}`);
|
|
53
|
+
}
|
|
54
|
+
byKey.set(key, {
|
|
55
|
+
pluginId: canonicalPluginId,
|
|
56
|
+
...(parsedPlatform ? { platform: parsedPlatform } : {}),
|
|
57
|
+
scope,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return [...byKey.values()].sort((left, right) => {
|
|
61
|
+
const leftKey = `${left.pluginId}\0${left.platform ?? '*'}`;
|
|
62
|
+
const rightKey = `${right.pluginId}\0${right.platform ?? '*'}`;
|
|
63
|
+
return leftKey < rightKey ? -1 : leftKey > rightKey ? 1 : 0;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function normalizeDependencyScopeOverrides(overrides) {
|
|
67
|
+
return parseDependencyScopeOverrides(overrides.map((override) => `${override.pluginId}${override.platform ? `#${override.platform}` : ''}=${override.scope}`));
|
|
68
|
+
}
|
|
21
69
|
export function parseScriptTimeoutMs(value) {
|
|
22
70
|
const rendered = renderUnsupportedValue(value);
|
|
23
71
|
const parsed = typeof value === 'number'
|
|
@@ -66,27 +114,27 @@ export function normalizeCommandOptions(raw = {}, defaults = {}) {
|
|
|
66
114
|
scope: parseScopeValue(raw.scope ?? defaults.defaultScope ?? 'user'),
|
|
67
115
|
platform: parsePlatformValue(platformInput ?? 'both'),
|
|
68
116
|
...(scriptTimeoutMs === undefined ? {} : { scriptTimeoutMs }),
|
|
117
|
+
...(raw.allowManagedCodexInstall === true ? { allowManagedCodexInstall: true } : {}),
|
|
118
|
+
...(raw.yes === true ? { yes: true } : {}),
|
|
69
119
|
};
|
|
70
120
|
}
|
|
71
121
|
export function normalizeInstallCommandOptions(raw = {}, defaults = {}) {
|
|
122
|
+
const normalized = normalizeCommandOptions(raw, {
|
|
123
|
+
defaultScope: 'user',
|
|
124
|
+
requirePlatform: true,
|
|
125
|
+
missingPlatformMessage: 'install 命令需要显式指定 `--platform codex|claude|both`。',
|
|
126
|
+
...defaults,
|
|
127
|
+
});
|
|
128
|
+
const dependencyScopeOverrides = [
|
|
129
|
+
...parseDependencyScopeOverrides(raw.dependencyScope),
|
|
130
|
+
...normalizeDependencyScopeOverrides(raw.dependencyScopeOverrides ?? []),
|
|
131
|
+
];
|
|
132
|
+
const normalizedDependencyScopeOverrides = normalizeDependencyScopeOverrides(dependencyScopeOverrides);
|
|
72
133
|
return {
|
|
73
|
-
...
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
...defaults,
|
|
78
|
-
}),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
export function normalizeUpgradeCommandOptions(raw = {}, defaults = {}) {
|
|
82
|
-
return {
|
|
83
|
-
...normalizeCommandOptions(raw, {
|
|
84
|
-
defaultScope: 'user',
|
|
85
|
-
requirePlatform: true,
|
|
86
|
-
missingPlatformMessage: 'upgrade 命令需要显式指定 `--platform codex|claude|both`。',
|
|
87
|
-
...defaults,
|
|
88
|
-
}),
|
|
89
|
-
all: raw.all,
|
|
134
|
+
...normalized,
|
|
135
|
+
...(normalizedDependencyScopeOverrides.length > 0
|
|
136
|
+
? { dependencyScopeOverrides: normalizedDependencyScopeOverrides }
|
|
137
|
+
: {}),
|
|
90
138
|
};
|
|
91
139
|
}
|
|
92
140
|
function parseStatusPlatformFilter(platform) {
|
|
@@ -107,8 +155,15 @@ export function normalizeStatusCommandOptions(raw = {}, defaults = {}) {
|
|
|
107
155
|
};
|
|
108
156
|
}
|
|
109
157
|
export function normalizeUninstallCommandOptions(raw = {}, defaults = {}) {
|
|
158
|
+
const supported = {
|
|
159
|
+
cwd: raw.cwd,
|
|
160
|
+
scope: raw.scope,
|
|
161
|
+
platform: raw.platform,
|
|
162
|
+
allowManagedCodexInstall: raw.allowManagedCodexInstall,
|
|
163
|
+
yes: raw.yes,
|
|
164
|
+
};
|
|
110
165
|
return {
|
|
111
|
-
...normalizeCommandOptions(
|
|
166
|
+
...normalizeCommandOptions(supported, {
|
|
112
167
|
defaultScope: 'user',
|
|
113
168
|
requirePlatform: true,
|
|
114
169
|
missingPlatformMessage: 'uninstall 命令需要显式指定 `--platform codex|claude|both`。',
|
|
@@ -120,8 +175,15 @@ export function normalizeCleanupCommandOptions(raw = {}, defaults = {}) {
|
|
|
120
175
|
if (raw.scope === undefined) {
|
|
121
176
|
throw new Error('cleanup 命令需要显式指定 `--scope project|user`。');
|
|
122
177
|
}
|
|
178
|
+
const supported = {
|
|
179
|
+
cwd: raw.cwd,
|
|
180
|
+
scope: raw.scope,
|
|
181
|
+
platform: raw.platform,
|
|
182
|
+
allowManagedCodexInstall: raw.allowManagedCodexInstall,
|
|
183
|
+
yes: raw.yes,
|
|
184
|
+
};
|
|
123
185
|
const normalized = {
|
|
124
|
-
...normalizeCommandOptions(
|
|
186
|
+
...normalizeCommandOptions(supported, {
|
|
125
187
|
defaultScope: 'user',
|
|
126
188
|
requirePlatform: true,
|
|
127
189
|
missingPlatformMessage: 'cleanup 命令需要显式指定 `--platform codex|claude|both`。',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/commands/options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/commands/options.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AA4DjE,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAC1C,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAC7C,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAChD,MAAM,CAAC,MAAM,0BAA0B,GAAU,MAAM,CAAC;AAExD,MAAM,CAAC,MAAM,8BAA8B,GAAyB,WAAW,CAAC;AAEhF,SAAS,sBAAsB,CAAC,KAAc;IAC5C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,MAAM,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,sBAAsB,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,QAAiB;IAClD,IAAI,QAAQ,KAAK,OAAO,IAAI,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,MAAM,EAAE,CAAC;QACzE,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,KAAK,CACb,yBAAyB,sBAAsB,CAAC,QAAQ,CAAC,0CAA0C,CACpG,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,MAA8C;IAE9C,MAAM,MAAM,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAA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ions.agentSkills': {
|
|
11
11
|
profiles: 'agent-skills',
|
|
12
|
-
requires: '
|
|
12
|
+
requires: 'At least one non-empty native capability; portable-only plugins are not supported.',
|
|
13
13
|
conflicts: 'Portable-only plugins and implicit promotion of native skills.',
|
|
14
14
|
provenance: ['CLI source plugin validator'],
|
|
15
15
|
},
|
|
@@ -27,6 +27,10 @@ const adapterFacts = {
|
|
|
27
27
|
'build-config': {
|
|
28
28
|
'buildConfig.cacheable': { requires: 'A deterministic scripts.node.build.' },
|
|
29
29
|
'buildConfig.runtimeExports': { conflicts: 'Skill, report, eval, generated, and dependency roots.' },
|
|
30
|
+
'buildConfig.runtimeExports[].requires.aw.capabilities': {
|
|
31
|
+
requires: 'The provider-owned complete capability set for this export; an empty set is valid.',
|
|
32
|
+
provenance: ['CLI runtime import resolver'],
|
|
33
|
+
},
|
|
30
34
|
'buildConfig.buildImports': { requires: 'scripts.node.build and a unique AW_PLUGIN_IMPORT_* environment variable.' },
|
|
31
35
|
'buildConfig.manifestOverrides.claude': { profiles: 'CLAUDE', requires: 'CLAUDE product support.' },
|
|
32
36
|
'buildConfig.skillRuntimeFiles': { requires: 'A declared static Skill and a target below references/, assets/, or scripts/.' },
|
|
@@ -47,6 +51,12 @@ const adapterFacts = {
|
|
|
47
51
|
},
|
|
48
52
|
},
|
|
49
53
|
extensions: {
|
|
54
|
+
'extensions.permissions[].agentOverrides.claude.sandbox.excludedCommands': {
|
|
55
|
+
profiles: 'CLAUDE',
|
|
56
|
+
requires: 'aw.claude.sandbox-exclusions.v1; a validated command reference. Independent of allow.',
|
|
57
|
+
conflicts: 'Plain strings, Codex overrides, and widening to all aw commands.',
|
|
58
|
+
provenance: ['CLI managed command reference resolver and Claude permission writer'],
|
|
59
|
+
},
|
|
50
60
|
'extensions.nativeHooks.claude': { profiles: 'CLAUDE', requires: 'CLAUDE product support.' },
|
|
51
61
|
'extensions.nativeHooks.codex': { profiles: 'CODEX', requires: 'CODEX product support.' },
|
|
52
62
|
},
|
|
@@ -66,18 +76,69 @@ const adapterFacts = {
|
|
|
66
76
|
config: {
|
|
67
77
|
'config.presentation': { conflicts: 'Schema mutation and sensitive or path values in presets.' },
|
|
68
78
|
},
|
|
69
|
-
|
|
70
|
-
'scripts.
|
|
79
|
+
'pre-apply': {
|
|
80
|
+
'scripts.preApply': { requires: 'A Node entry inside the plugin root.' },
|
|
71
81
|
},
|
|
72
82
|
artifacts: {
|
|
73
|
-
'scripts.artifacts.render': { requires: 'artifacts.targets.' },
|
|
83
|
+
'scripts.artifacts.render': { requires: 'artifacts.targets, dynamic command sets, or render:true command packages.' },
|
|
84
|
+
'rendererContext.commandSources': {
|
|
85
|
+
requires: 'Only packages involved in the exact requested command targets; fixed bundle directories are read-only.',
|
|
86
|
+
provenance: ['CLI artifact renderer context'],
|
|
87
|
+
},
|
|
88
|
+
'rendererContext.requestedArtifactIds': {
|
|
89
|
+
requires: 'Return exactly these declared artifacts and no other artifacts.',
|
|
90
|
+
provenance: ['CLI artifact renderer context'],
|
|
91
|
+
},
|
|
74
92
|
'artifacts.targets': { requires: 'scripts.artifacts.render and complete static target identity.' },
|
|
93
|
+
'artifacts.targets[].delivery': {
|
|
94
|
+
profiles: 'CODEX dynamic Skill',
|
|
95
|
+
requires: 'codex.skill target with one supported delivery shape.',
|
|
96
|
+
conflicts: 'Any non-codex.skill target.',
|
|
97
|
+
},
|
|
98
|
+
'artifacts.targets[].refreshKeys': {
|
|
99
|
+
requires: 'Config fields referenced by codex-native targets are writable only in user scope.',
|
|
100
|
+
},
|
|
101
|
+
'artifacts.targets[].runtimeConfig': {
|
|
102
|
+
requires: 'aw.installed-runtime-config.v2 and a native Skill target. AW injects the reader and binding; source and renderer cannot provide reserved files.',
|
|
103
|
+
conflicts: 'Sensitive keys or sensitive dependency closure.',
|
|
104
|
+
},
|
|
75
105
|
'artifacts.targets[].runtimeImports': {
|
|
76
106
|
requires: 'A provider runtimeExports entry resolved into the consumer bundle.',
|
|
77
107
|
conflicts: 'Using the reuse edge as an installation dependency.',
|
|
78
108
|
provenance: ['CLI runtime import resolver'],
|
|
79
109
|
},
|
|
80
110
|
},
|
|
111
|
+
'native-tools': {
|
|
112
|
+
nativeTools: {
|
|
113
|
+
requires: 'aw.native-tools.v2. Installed protocol requirements and consumer bindings are reviewed before producer publication.',
|
|
114
|
+
provenance: ['CLI installed producer evidence and managed command host'],
|
|
115
|
+
},
|
|
116
|
+
'nativeTools.consumers[].kind': {
|
|
117
|
+
requires: 'Managed command sets prepare the installed host tool before spawn; plugin tests use the installed host tool or an explicit test fixture.',
|
|
118
|
+
conflicts: 'Uncontrolled hooks, MCP entry paths, implicit package discovery, or source sync changing installed command evidence.',
|
|
119
|
+
},
|
|
120
|
+
'nativeTools.consumers[].tools[].fallback': {
|
|
121
|
+
requires: 'Preferred consumers use the same protocol contract for native and portable backends; backend selection remains fixed after launch.',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
'managed-commands': {
|
|
125
|
+
managedCommands: {
|
|
126
|
+
requires: 'aw.managed-commands.v1. Bindings publish only after the producer succeeds.',
|
|
127
|
+
provenance: ['CLI managed command materialization and resolver'],
|
|
128
|
+
},
|
|
129
|
+
'managedCommands.packages[].sourceDir': {
|
|
130
|
+
requires: 'A complete runnable directory in the fixed bundle; only ordinary files and directories.',
|
|
131
|
+
conflicts: 'Links, protected trees, executable entry replacement by generated files.',
|
|
132
|
+
},
|
|
133
|
+
'managedCommands.packages[].scope': {
|
|
134
|
+
requires: 'One fixed effective configuration per producer; project producers bind the canonical project location.',
|
|
135
|
+
conflicts: 'User/shared-user consumers referring to project packages.',
|
|
136
|
+
},
|
|
137
|
+
'Skill Markdown placeholder': {
|
|
138
|
+
requires: 'A validated candidate or healthy installed producer in the same source/plugin and legal scope.',
|
|
139
|
+
conflicts: 'Portable distribution and unresolved, disabled, or foreign commands.',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
81
142
|
};
|
|
82
143
|
export function parsePluginCapabilitySurface(value) {
|
|
83
144
|
if (!PLUGIN_AUTHORING_CAPABILITY_SURFACES.includes(value)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-capabilities.js","sourceRoot":"","sources":["../../../src/commands/plugin-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,8BAA8B,EAC9B,oCAAoC,GAGrC,MAAM,wCAAwC,CAAA;AAS/C,MAAM,wBAAwB,GAAG,2DAA2D,CAAA;AAC5F,MAAM,sBAAsB,GAAG,yCAAyC,CAAA;AAExE,MAAM,YAAY,GAGZ;IACJ,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,QAAQ,EAAE,oEAAoE;YAC9E,SAAS,EAAE,8DAA8D;SAC1E;QACD,2BAA2B,EAAE;YAC3B,QAAQ,EAAE,cAAc;YACxB,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"plugin-capabilities.js","sourceRoot":"","sources":["../../../src/commands/plugin-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,8BAA8B,EAC9B,oCAAoC,GAGrC,MAAM,wCAAwC,CAAA;AAS/C,MAAM,wBAAwB,GAAG,2DAA2D,CAAA;AAC5F,MAAM,sBAAsB,GAAG,yCAAyC,CAAA;AAExE,MAAM,YAAY,GAGZ;IACJ,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,QAAQ,EAAE,oEAAoE;YAC9E,SAAS,EAAE,8DAA8D;SAC1E;QACD,2BAA2B,EAAE;YAC3B,QAAQ,EAAE,cAAc;YACxB,QAAQ,EAAE,oFAAoF;YAC9F,SAAS,EAAE,gEAAgE;YAC3E,UAAU,EAAE,CAAC,6BAA6B,CAAC;SAC5C;QACD,kCAAkC,EAAE;YAClC,QAAQ,EAAE,qBAAqB;YAC/B,QAAQ,EAAE,uFAAuF;YACjG,SAAS,EAAE,0DAA0D;YACrE,UAAU,EAAE,CAAC,6BAA6B,CAAC;SAC5C;QACD,6BAA6B,EAAE;YAC7B,QAAQ,EAAE,iCAA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C;IACH,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"}
|
|
@@ -1,41 +1,80 @@
|
|
|
1
|
-
import type { CatalogResolution, CommandOptions,
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
1
|
+
import type { CatalogResolution, CommandOptions, InstallCommandOptions, PlatformName, PluginMeta, RebuildReceiptOverallState, ReceiptTargetResult, CommandProducerResult, Scope } from '../types.js';
|
|
2
|
+
import { previewCodexManager, resolveCodexManager, resolveCodexOperationConsumer, type CodexManagerPreview, type ManagedCodexAuthorizer } from '../utils/codex-manager.js';
|
|
3
|
+
import { type CodexReconcilePlan } from '../utils/codex-reconciler.js';
|
|
4
|
+
import { executeRebuildOperation, type RebuildCommand, type RebuildResult, type RebuildTargetIdentity } from './rebuild-operations.js';
|
|
5
|
+
import { type RebuildExecutionContext } from './rebuild-integration.js';
|
|
4
6
|
import type { AwHomeMutationToken } from '../utils/aw-home-mutation-lock.js';
|
|
5
|
-
import { type
|
|
7
|
+
import { type CatalogOperationContext } from '../utils/catalog-operation-context.js';
|
|
8
|
+
import type { CatalogGenerationServiceRuntime } from '../utils/catalog-generation-service.js';
|
|
9
|
+
import { inventoryCatalogSourceReferences } from '../utils/catalog-source-references.js';
|
|
10
|
+
import { type OwnedComponent } from '../utils/ownership.js';
|
|
11
|
+
import { writePluginIntentState } from '../utils/plugin-intent-state.js';
|
|
12
|
+
import { type OperationPlan } from './operation-plan.js';
|
|
13
|
+
import { type ReconcileOperationPlan } from './reconcile-operation-plan.js';
|
|
14
|
+
import { type OfflineCleanupTargetEvidence } from './offline-cleanup-evidence.js';
|
|
6
15
|
export type RebuildCommandRuntime = Partial<RebuildExecutionContext> & {
|
|
7
16
|
awHomeMutationToken?: AwHomeMutationToken;
|
|
8
17
|
catalogResolution?: CatalogResolution;
|
|
18
|
+
resolvedCatalogPlugins?: PluginMeta[];
|
|
9
19
|
namespacedSource?: {
|
|
10
20
|
sourceId: string;
|
|
11
21
|
sourceIdentity: string;
|
|
22
|
+
logicalIdentity: string;
|
|
12
23
|
marketplaceName: string;
|
|
13
24
|
marketplaceRoot: string;
|
|
14
25
|
};
|
|
15
26
|
expectedCatalogConfigDigest?: string;
|
|
27
|
+
expectedGenerationSetDigest?: string;
|
|
28
|
+
catalogOperationContext?: CatalogOperationContext;
|
|
29
|
+
catalogBootstrapError?: unknown;
|
|
30
|
+
catalogGenerationRuntime?: CatalogGenerationServiceRuntime;
|
|
31
|
+
inventoryCatalogSourceReferences?: typeof inventoryCatalogSourceReferences;
|
|
32
|
+
expectedPlanFingerprint?: string;
|
|
33
|
+
expectedOfflineCleanupEvidence?: OfflineCleanupTargetEvidence;
|
|
16
34
|
reviewPreflight?: (evidence: RebuildReviewPreflightEvidence) => Promise<void> | void;
|
|
17
35
|
resolvedReviewEvidenceByPlugin?: Record<string, Omit<RebuildReviewPreflightEvidence, 'command' | 'identity'>>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
36
|
+
previewOperationPlan?: boolean;
|
|
37
|
+
resolvePreApplyAuthorization?: boolean;
|
|
38
|
+
preApplyConfirmed?: boolean;
|
|
39
|
+
scriptTimeoutMs?: number;
|
|
40
|
+
directCli?: boolean;
|
|
41
|
+
managedCodexAuthorizer?: ManagedCodexAuthorizer;
|
|
42
|
+
codexManagerResolver?: typeof resolveCodexManager;
|
|
43
|
+
codexOperationConsumerResolver?: typeof resolveCodexOperationConsumer;
|
|
44
|
+
codexManagerPreviewer?: typeof previewCodexManager;
|
|
23
45
|
onPreviewStage?: (stage: 'catalog' | 'inventory' | 'dependencyPlan') => Promise<void> | void;
|
|
24
|
-
targetBuiltHookHandled?: boolean;
|
|
25
|
-
preparedTarget?: PreparedRebuildTarget;
|
|
26
|
-
preparedTargetError?: unknown;
|
|
27
46
|
removeObsoleteInstallationContracts?: (directory: string) => Promise<void>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
47
|
+
writePluginIntentState?: typeof writePluginIntentState;
|
|
48
|
+
executeCleanupOperation?: typeof executeRebuildOperation;
|
|
49
|
+
operationDiagnosticSink?: (results: readonly RebuildResult[]) => void;
|
|
50
|
+
};
|
|
51
|
+
export interface RebuildTaskTarget {
|
|
52
|
+
pluginId: string;
|
|
53
|
+
platform: PlatformName;
|
|
54
|
+
scope: Scope;
|
|
55
|
+
method: 'sync' | 'reinstall';
|
|
56
|
+
}
|
|
57
|
+
export type RebuildTaskCommandOptions = Omit<InstallCommandOptions, 'platform' | 'scope'> & {
|
|
58
|
+
repairTargets?: readonly RebuildTaskTarget[];
|
|
59
|
+
};
|
|
60
|
+
type RebuildCommandInvocation = {
|
|
61
|
+
command: RebuildCommand;
|
|
62
|
+
pluginNames: string[];
|
|
63
|
+
commandOptions: CommandOptions;
|
|
64
|
+
runtime?: RebuildCommandRuntime;
|
|
65
|
+
all?: boolean;
|
|
66
|
+
taskTargets?: readonly RebuildTaskTarget[];
|
|
67
|
+
taskRepairTargets?: readonly RebuildTaskTarget[];
|
|
32
68
|
};
|
|
69
|
+
export type CommandPerformanceStageName = 'catalog.load' | 'catalog.validation' | 'inventory' | 'dependency.plan' | 'target.build';
|
|
33
70
|
export interface RebuildReviewPreflightEvidence {
|
|
34
71
|
command: RebuildCommand;
|
|
35
72
|
identity: RebuildTargetIdentity;
|
|
36
73
|
configDigest?: string;
|
|
74
|
+
generationSetDigest?: string;
|
|
37
75
|
sourceId?: string;
|
|
38
76
|
sourceIdentity?: string;
|
|
77
|
+
logicalIdentity?: string;
|
|
39
78
|
resolvedCommit?: string;
|
|
40
79
|
manifestDigest?: string;
|
|
41
80
|
snapshotDigest?: string;
|
|
@@ -47,9 +86,8 @@ export interface RebuildCommandResult {
|
|
|
47
86
|
warnings: string[];
|
|
48
87
|
rebuildResults: RebuildResult[];
|
|
49
88
|
targetResults: ReceiptTargetResult[];
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
repoManagedArtifacts: GeneratedArtifact[];
|
|
89
|
+
commandResults?: CommandProducerResult[];
|
|
90
|
+
overallState: RebuildReceiptOverallState;
|
|
53
91
|
receiptTargets: Array<{
|
|
54
92
|
pluginName: string;
|
|
55
93
|
pluginId?: string;
|
|
@@ -57,23 +95,32 @@ export interface RebuildCommandResult {
|
|
|
57
95
|
platform: PlatformName;
|
|
58
96
|
scope: Scope;
|
|
59
97
|
}>;
|
|
60
|
-
dependencyPlan?:
|
|
98
|
+
dependencyPlan?: ReconcileOperationPlan;
|
|
99
|
+
codexReconcilePlans?: CodexReconcilePlan[];
|
|
100
|
+
operationPlan?: OperationPlan;
|
|
101
|
+
codexManagerPreview?: CodexManagerPreview;
|
|
102
|
+
offlineCleanupPlans?: OfflineCleanupTargetEvidence[];
|
|
103
|
+
removedPluginCleanupIds?: string[];
|
|
104
|
+
preApplyAuthorization?: PreApplyAuthorizationTarget[];
|
|
105
|
+
}
|
|
106
|
+
export interface PreApplyAuthorizationTarget {
|
|
107
|
+
pluginId: string;
|
|
108
|
+
pluginName: string;
|
|
109
|
+
sourceId: string;
|
|
110
|
+
sourceIdentity: string;
|
|
111
|
+
platform: PlatformName;
|
|
112
|
+
scope: Scope;
|
|
113
|
+
relation: 'requested' | 'direct' | 'transitive';
|
|
61
114
|
}
|
|
62
115
|
export interface RebuildCommandTestHooks {
|
|
63
|
-
beforeOperationLockAcquire?: (options: {
|
|
64
|
-
command: RebuildCommand;
|
|
65
|
-
identity: RebuildTargetIdentity;
|
|
66
|
-
}) => Promise<void>;
|
|
67
116
|
afterTargetBuilt?: (options: {
|
|
68
117
|
command: RebuildCommand;
|
|
69
118
|
identity: RebuildTargetIdentity;
|
|
70
119
|
}) => Promise<void>;
|
|
120
|
+
beforeActivationLegacyCleanupMutation?: (component: OwnedComponent) => Promise<void>;
|
|
121
|
+
afterActivationLegacyCleanupQuarantine?: (component: OwnedComponent, quarantinePath: string) => Promise<void>;
|
|
71
122
|
}
|
|
72
123
|
export declare function setRebuildCommandTestHooksForTests(hooks: RebuildCommandTestHooks | undefined): void;
|
|
73
|
-
export declare function runRebuildCommand(options:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
commandOptions: CommandOptions;
|
|
77
|
-
runtime?: RebuildCommandRuntime;
|
|
78
|
-
all?: boolean;
|
|
79
|
-
}): Promise<RebuildCommandResult>;
|
|
124
|
+
export declare function runRebuildCommand(options: RebuildCommandInvocation): Promise<RebuildCommandResult>;
|
|
125
|
+
export declare function runRebuildTaskCommand(targets: readonly RebuildTaskTarget[], options: RebuildTaskCommandOptions, runtime?: RebuildCommandRuntime): Promise<RebuildCommandResult>;
|
|
126
|
+
export {};
|