@lesliechan721/aw 0.1.0-beta.5 → 0.1.0-beta.50
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 -90
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +99 -120
- 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 +346 -1131
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- 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 +20 -5
- 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/test-plugin-scripts.d.ts +2 -0
- package/dist/scripts/test-plugin-scripts.js +47 -76
- 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.js +2 -2
- package/dist/src/adapters/helpers.js.map +1 -1
- package/dist/src/authoring/workspace-commands.d.ts +17 -1
- package/dist/src/authoring/workspace-commands.js +21 -4
- 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 +264 -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/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 +146 -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 +46 -0
- package/dist/src/commands/operation-planner.js +141 -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 +23 -3
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/rebuild-command.d.ts +77 -31
- package/dist/src/commands/rebuild-command.js +4862 -729
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +131 -21
- package/dist/src/commands/rebuild-integration.js +2866 -1339
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +58 -30
- package/dist/src/commands/rebuild-operations.js +260 -319
- 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 +228 -0
- package/dist/src/commands/review-inspection.js +1341 -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 +24 -50
- 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 +2787 -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 +250 -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 +127 -31
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +7 -1
- package/dist/src/constants.js +7 -1
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eval/manifest-v1.d.ts +71 -0
- package/dist/src/eval/manifest-v1.js +370 -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 +236 -109
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/index.d.ts +10 -4
- package/dist/src/index.js +1793 -486
- package/dist/src/index.js.map +1 -1
- package/dist/src/output/command-receipt.d.ts +43 -46
- package/dist/src/output/command-receipt.js +256 -80
- 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 +1 -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 +179 -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 +13 -0
- package/dist/src/review/skill-materialization.js +75 -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 +16 -0
- package/dist/src/tui/config-leaf-editor.js +206 -0
- package/dist/src/tui/config-leaf-editor.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 +8941 -1872
- 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 +3211 -388
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +615 -45
- package/dist/src/tui/controller.js +3558 -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 +567 -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 +223 -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 +1295 -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 +244 -20
- 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 +41 -8
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +5 -4
- package/dist/src/utils/artifact-plan.js +18 -7
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +17 -7
- package/dist/src/utils/artifact-renderer.js +214 -216
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +21 -0
- package/dist/src/utils/artifact-request.js +78 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- 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 +22 -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/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 +747 -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-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 +4 -0
- package/dist/src/utils/dynamic-skill-tree.js +35 -5
- 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 +18 -1
- package/dist/src/utils/local-marketplace.js +354 -84
- package/dist/src/utils/local-marketplace.js.map +1 -1
- 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 +55 -7
- package/dist/src/utils/native-cli.js +400 -58
- package/dist/src/utils/native-cli.js.map +1 -1
- 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 +84 -20
- package/dist/src/utils/ownership.js +179 -222
- 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 +33 -0
- package/dist/src/utils/plugin-config-impact.js +298 -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 +1000 -296
- 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 +65 -125
- package/dist/src/utils/plugin-scripts.js +484 -524
- package/dist/src/utils/plugin-scripts.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/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/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 +92 -10
- package/dist/vitest.config.js.map +1 -1
- package/package.json +27 -18
- 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/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,31 +1,25 @@
|
|
|
1
|
-
import { cleanupLegacyCatalogSourceCache } from '../utils/catalog-source-cache.js';
|
|
2
1
|
export interface InitCatalogSourceResult {
|
|
3
2
|
id: string;
|
|
4
3
|
ok: boolean;
|
|
4
|
+
activeReady: boolean;
|
|
5
5
|
requestedRef?: string;
|
|
6
6
|
resolvedCommit?: string;
|
|
7
7
|
catalogVersion?: string;
|
|
8
8
|
channel?: string;
|
|
9
|
-
freshness?: 'remote' | 'cache' | 'path';
|
|
10
9
|
error?: string;
|
|
11
10
|
errorCode?: string;
|
|
11
|
+
recovery?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface InitCommandResult {
|
|
14
14
|
ok: boolean;
|
|
15
|
-
changed: boolean;
|
|
16
|
-
warnings: string[];
|
|
17
15
|
primarySourceId: string;
|
|
18
16
|
configDigest: string;
|
|
19
17
|
compositeDigest: string;
|
|
20
18
|
sources: InitCatalogSourceResult[];
|
|
19
|
+
recovery: string[];
|
|
21
20
|
}
|
|
22
|
-
interface
|
|
23
|
-
force?: boolean;
|
|
24
|
-
cliVersion: string;
|
|
21
|
+
interface InitCommandOptions {
|
|
25
22
|
env?: NodeJS.ProcessEnv;
|
|
26
|
-
runtime?: {
|
|
27
|
-
cleanupLegacyCache?: typeof cleanupLegacyCatalogSourceCache;
|
|
28
|
-
};
|
|
29
23
|
}
|
|
30
|
-
export declare function initCommand(options:
|
|
24
|
+
export declare function initCommand(options: InitCommandOptions): Promise<InitCommandResult>;
|
|
31
25
|
export {};
|
|
@@ -1,63 +1,42 @@
|
|
|
1
1
|
import { readCatalogSourcesConfigSnapshot } from '../utils/catalog-sources.js';
|
|
2
2
|
import { catalogSourceErrorCode } from '../utils/catalog-public-error.js';
|
|
3
|
-
import {
|
|
4
|
-
import { withAwHomeMutationLock } from '../utils/aw-home-mutation-lock.js';
|
|
5
|
-
import { withResolvedMultiSourceCatalog } from '../utils/multi-source-catalog.js';
|
|
3
|
+
import { resolvePartialCatalogOperationContext } from '../utils/catalog-operation-context.js';
|
|
6
4
|
export async function initCommand(options) {
|
|
7
5
|
const env = options.env ?? process.env;
|
|
8
|
-
if (options.force) {
|
|
9
|
-
return withAwHomeMutationLock({
|
|
10
|
-
env,
|
|
11
|
-
action: async () => {
|
|
12
|
-
const cleanupWarnings = await (options.runtime?.cleanupLegacyCache
|
|
13
|
-
?? cleanupLegacyCatalogSourceCache)(env);
|
|
14
|
-
const result = await resolveInitCatalog({ ...options, env });
|
|
15
|
-
return { ...result, warnings: [...cleanupWarnings, ...result.warnings] };
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return resolveInitCatalog({ ...options, env });
|
|
20
|
-
}
|
|
21
|
-
async function resolveInitCatalog(options) {
|
|
22
|
-
const env = options.env ?? process.env;
|
|
23
|
-
const freshnessPolicy = options.force ? 'forceRemote' : 'requireRemote';
|
|
24
6
|
const configSnapshot = await readCatalogSourcesConfigSnapshot(env);
|
|
25
|
-
|
|
26
|
-
cliVersion: options.cliVersion,
|
|
27
|
-
freshnessPolicy,
|
|
7
|
+
const context = await resolvePartialCatalogOperationContext({
|
|
28
8
|
configSnapshot,
|
|
29
9
|
env,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return {
|
|
34
|
-
id: item.sourceId,
|
|
35
|
-
ok: false,
|
|
36
|
-
error: item.error.message,
|
|
37
|
-
errorCode: catalogSourceErrorCode(item.error),
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
const resolution = item.resolution;
|
|
41
|
-
return {
|
|
42
|
-
id: item.sourceId,
|
|
43
|
-
ok: true,
|
|
44
|
-
requestedRef: resolution.requestedRef,
|
|
45
|
-
resolvedCommit: resolution.resolvedCommit,
|
|
46
|
-
catalogVersion: resolution.manifest.catalogVersion,
|
|
47
|
-
channel: resolution.manifest.channel,
|
|
48
|
-
freshness: resolution.source,
|
|
49
|
-
};
|
|
50
|
-
});
|
|
10
|
+
});
|
|
11
|
+
const sources = context.catalog.sources.map((item) => {
|
|
12
|
+
if (item.error) {
|
|
51
13
|
return {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
sources,
|
|
14
|
+
id: item.sourceId,
|
|
15
|
+
ok: false,
|
|
16
|
+
activeReady: false,
|
|
17
|
+
error: item.error.message,
|
|
18
|
+
errorCode: catalogSourceErrorCode(item.error),
|
|
19
|
+
recovery: `Run aw catalog source sync ${item.sourceId}.`,
|
|
59
20
|
};
|
|
60
|
-
}
|
|
21
|
+
}
|
|
22
|
+
const resolution = item.resolution;
|
|
23
|
+
return {
|
|
24
|
+
id: item.sourceId,
|
|
25
|
+
ok: true,
|
|
26
|
+
activeReady: true,
|
|
27
|
+
requestedRef: resolution.requestedRef,
|
|
28
|
+
resolvedCommit: resolution.resolvedCommit,
|
|
29
|
+
catalogVersion: resolution.manifest.catalogVersion,
|
|
30
|
+
channel: resolution.manifest.channel,
|
|
31
|
+
};
|
|
61
32
|
});
|
|
33
|
+
return {
|
|
34
|
+
ok: sources.every((source) => source.ok),
|
|
35
|
+
primarySourceId: context.catalog.primarySourceId,
|
|
36
|
+
configDigest: context.catalog.configDigest,
|
|
37
|
+
compositeDigest: context.catalog.compositeDigest,
|
|
38
|
+
sources,
|
|
39
|
+
recovery: sources.flatMap((source) => source.recovery ? [source.recovery] : []),
|
|
40
|
+
};
|
|
62
41
|
}
|
|
63
42
|
//# sourceMappingURL=init.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/commands/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OA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O,CAAC,eAAe;QAChD,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY;QAC1C,eAAe,EAAE,OAAO,CAAC,OAAO,CAAC,eAAe;QAChD,OAAO;QACP,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAChF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { PlatformName, Scope } from '../types.js';
|
|
2
|
+
import type { CatalogSourceReferenceInventory } from '../utils/catalog-source-references.js';
|
|
3
|
+
import type { OwnedComponent, OwnerIdentity } from '../utils/ownership.js';
|
|
4
|
+
export interface OfflineCleanupTargetEvidence {
|
|
5
|
+
reason: 'sourceMissing' | 'bundleUnavailable';
|
|
6
|
+
pluginId: string;
|
|
7
|
+
pluginName: string;
|
|
8
|
+
sourceId: string;
|
|
9
|
+
sourceIdentity: string;
|
|
10
|
+
platform: PlatformName;
|
|
11
|
+
scope: Scope;
|
|
12
|
+
plan: OfflineCleanupPlan;
|
|
13
|
+
planDigest: string;
|
|
14
|
+
targetFingerprint: string;
|
|
15
|
+
forceExclusive?: true;
|
|
16
|
+
}
|
|
17
|
+
export interface OfflineCleanupPlanAction {
|
|
18
|
+
action: 'removeOwnedOutput' | 'removeNativeRegistration';
|
|
19
|
+
kind: 'namespacedOwner' | 'namespacedMarketplace' | 'skill-directory' | 'owned-text-file';
|
|
20
|
+
target: string;
|
|
21
|
+
allowedRoot?: string;
|
|
22
|
+
owner?: OwnerIdentity;
|
|
23
|
+
pathEvidence?: string;
|
|
24
|
+
marketplaceName?: string;
|
|
25
|
+
activationScope?: Scope;
|
|
26
|
+
projectKey?: string | null;
|
|
27
|
+
pluginVersion?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function forceOfflineCleanupEvidence(options: {
|
|
30
|
+
reason: OfflineCleanupTargetEvidence['reason'];
|
|
31
|
+
pluginId: string;
|
|
32
|
+
pluginName: string;
|
|
33
|
+
sourceId: string;
|
|
34
|
+
sourceIdentity: string;
|
|
35
|
+
platform: PlatformName;
|
|
36
|
+
scope: Scope;
|
|
37
|
+
components: ReadonlyArray<Extract<OwnedComponent, {
|
|
38
|
+
path: string;
|
|
39
|
+
}>>;
|
|
40
|
+
}): Promise<OfflineCleanupTargetEvidence>;
|
|
41
|
+
export interface OfflineCleanupPlan {
|
|
42
|
+
schemaVersion: 1;
|
|
43
|
+
pluginId: string;
|
|
44
|
+
sourceIdentity: string;
|
|
45
|
+
platform: PlatformName;
|
|
46
|
+
scope: Scope;
|
|
47
|
+
actions: OfflineCleanupPlanAction[];
|
|
48
|
+
}
|
|
49
|
+
export declare function intentOnlyOfflineCleanupEvidence(options: {
|
|
50
|
+
pluginId: string;
|
|
51
|
+
pluginName: string;
|
|
52
|
+
sourceId: string;
|
|
53
|
+
sourceIdentity: string;
|
|
54
|
+
platform: PlatformName;
|
|
55
|
+
scope: Scope;
|
|
56
|
+
}): OfflineCleanupTargetEvidence;
|
|
57
|
+
export declare function offlineCleanupEvidenceFromInventory(options: {
|
|
58
|
+
reason: OfflineCleanupTargetEvidence['reason'];
|
|
59
|
+
pluginId: string;
|
|
60
|
+
pluginName: string;
|
|
61
|
+
sourceId: string;
|
|
62
|
+
sourceIdentity: string;
|
|
63
|
+
platform: PlatformName;
|
|
64
|
+
scope: Scope;
|
|
65
|
+
inventory: CatalogSourceReferenceInventory;
|
|
66
|
+
}): OfflineCleanupTargetEvidence | null;
|
|
67
|
+
export declare function offlineCleanupEvidenceMatches(expected: OfflineCleanupTargetEvidence, actual: OfflineCleanupTargetEvidence): boolean;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import crypto from 'node:crypto';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import fs from 'fs-extra';
|
|
4
|
+
async function pathEvidence(component) {
|
|
5
|
+
const target = await fs.lstat(component.path).then((stats) => ({
|
|
6
|
+
type: stats.isDirectory() ? 'directory' : stats.isFile() ? 'file' : stats.isSymbolicLink() ? 'symlink' : 'other',
|
|
7
|
+
dev: stats.dev,
|
|
8
|
+
ino: stats.ino,
|
|
9
|
+
size: stats.size,
|
|
10
|
+
mtimeMs: stats.mtimeMs,
|
|
11
|
+
})).catch((error) => error.code === 'ENOENT'
|
|
12
|
+
? { type: 'absent' }
|
|
13
|
+
: { type: 'error', code: error.code ?? 'unknown' });
|
|
14
|
+
const ownershipPath = component.kind === 'skill-directory'
|
|
15
|
+
? path.join(component.path, '.agent-workflows-owner.json')
|
|
16
|
+
: component.path;
|
|
17
|
+
const ownership = await fs.readFile(ownershipPath).then((content) => `sha256:${crypto.createHash('sha256').update(content).digest('hex')}`)
|
|
18
|
+
.catch((error) => `unreadable:${error.code ?? 'unknown'}`);
|
|
19
|
+
return `sha256:${crypto.createHash('sha256').update(JSON.stringify({ target, ownership })).digest('hex')}`;
|
|
20
|
+
}
|
|
21
|
+
export async function forceOfflineCleanupEvidence(options) {
|
|
22
|
+
const actions = await Promise.all(options.components.map(async (component) => ({
|
|
23
|
+
action: 'removeOwnedOutput',
|
|
24
|
+
kind: component.kind,
|
|
25
|
+
target: component.path,
|
|
26
|
+
allowedRoot: component.allowedRoot,
|
|
27
|
+
owner: component.identity,
|
|
28
|
+
pathEvidence: await pathEvidence(component),
|
|
29
|
+
})));
|
|
30
|
+
actions.sort((left, right) => left.target.localeCompare(right.target));
|
|
31
|
+
const plan = {
|
|
32
|
+
schemaVersion: 1,
|
|
33
|
+
pluginId: options.pluginId,
|
|
34
|
+
sourceIdentity: options.sourceIdentity,
|
|
35
|
+
platform: options.platform,
|
|
36
|
+
scope: options.scope,
|
|
37
|
+
actions,
|
|
38
|
+
};
|
|
39
|
+
const planDigest = calculateOfflineCleanupPlanDigest(plan);
|
|
40
|
+
return {
|
|
41
|
+
reason: options.reason,
|
|
42
|
+
pluginId: options.pluginId,
|
|
43
|
+
pluginName: options.pluginName,
|
|
44
|
+
sourceId: options.sourceId,
|
|
45
|
+
sourceIdentity: options.sourceIdentity,
|
|
46
|
+
platform: options.platform,
|
|
47
|
+
scope: options.scope,
|
|
48
|
+
plan,
|
|
49
|
+
planDigest,
|
|
50
|
+
targetFingerprint: planDigest,
|
|
51
|
+
forceExclusive: true,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function isPathInside(candidate, root) {
|
|
55
|
+
const relative = path.relative(path.resolve(root), path.resolve(candidate));
|
|
56
|
+
return relative === ''
|
|
57
|
+
|| (relative !== '..' && !relative.startsWith(`..${path.sep}`) && !path.isAbsolute(relative));
|
|
58
|
+
}
|
|
59
|
+
function calculateOfflineCleanupPlanDigest(plan) {
|
|
60
|
+
return `sha256:${crypto.createHash('sha256').update(JSON.stringify(plan)).digest('hex')}`;
|
|
61
|
+
}
|
|
62
|
+
export function intentOnlyOfflineCleanupEvidence(options) {
|
|
63
|
+
const plan = {
|
|
64
|
+
schemaVersion: 1,
|
|
65
|
+
pluginId: options.pluginId,
|
|
66
|
+
sourceIdentity: options.sourceIdentity,
|
|
67
|
+
platform: options.platform,
|
|
68
|
+
scope: options.scope,
|
|
69
|
+
actions: [],
|
|
70
|
+
};
|
|
71
|
+
const planDigest = calculateOfflineCleanupPlanDigest(plan);
|
|
72
|
+
return {
|
|
73
|
+
reason: 'bundleUnavailable',
|
|
74
|
+
...options,
|
|
75
|
+
plan,
|
|
76
|
+
planDigest,
|
|
77
|
+
targetFingerprint: planDigest,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export function offlineCleanupEvidenceFromInventory(options) {
|
|
81
|
+
const references = options.inventory.references.filter((reference) => (reference.kind === 'namespacedOwner'
|
|
82
|
+
|| reference.kind === 'namespacedMarketplace')
|
|
83
|
+
&& reference.pluginName === options.pluginName
|
|
84
|
+
&& reference.sourceId === options.sourceId
|
|
85
|
+
&& (reference.kind === 'namespacedOwner'
|
|
86
|
+
|| reference.sourceIdentity === options.sourceIdentity)
|
|
87
|
+
&& reference.platform === options.platform
|
|
88
|
+
&& reference.scope === options.scope);
|
|
89
|
+
if (references.length === 0)
|
|
90
|
+
return null;
|
|
91
|
+
const marketplaceRoots = options.inventory.references.flatMap((reference) => reference.kind === 'namespacedMarketplace'
|
|
92
|
+
&& reference.sourceId === options.sourceId
|
|
93
|
+
&& reference.sourceIdentity === options.sourceIdentity
|
|
94
|
+
&& reference.pluginName === undefined
|
|
95
|
+
&& path.basename(reference.location) === 'config.json'
|
|
96
|
+
? [path.dirname(reference.location)]
|
|
97
|
+
: []);
|
|
98
|
+
const ownedReferences = references.filter((reference) => reference.kind !== 'namespacedOwner'
|
|
99
|
+
|| !marketplaceRoots.some((root) => isPathInside(reference.location, path.join(root, 'plugins', options.pluginName))));
|
|
100
|
+
const actions = ownedReferences.flatMap((reference) => {
|
|
101
|
+
if (options.platform === 'codex' && reference.kind === 'namespacedMarketplace')
|
|
102
|
+
return [];
|
|
103
|
+
return [{
|
|
104
|
+
action: reference.kind === 'namespacedOwner'
|
|
105
|
+
? 'removeOwnedOutput'
|
|
106
|
+
: 'removeNativeRegistration',
|
|
107
|
+
kind: reference.kind,
|
|
108
|
+
target: reference.location,
|
|
109
|
+
...(reference.marketplaceName ? { marketplaceName: reference.marketplaceName } : {}),
|
|
110
|
+
...(reference.projectKey !== undefined ? { projectKey: reference.projectKey } : {}),
|
|
111
|
+
...(reference.pluginVersion ? { pluginVersion: reference.pluginVersion } : {}),
|
|
112
|
+
}];
|
|
113
|
+
});
|
|
114
|
+
if (options.platform === 'codex') {
|
|
115
|
+
const registeredNames = new Set(options.inventory.references.flatMap((reference) => reference.kind === 'namespacedMarketplace'
|
|
116
|
+
&& reference.sourceId === options.sourceId
|
|
117
|
+
&& reference.sourceIdentity === options.sourceIdentity
|
|
118
|
+
&& reference.pluginName === undefined
|
|
119
|
+
&& reference.marketplaceName
|
|
120
|
+
? [reference.marketplaceName]
|
|
121
|
+
: []));
|
|
122
|
+
const nativeNames = new Set(options.inventory.references.flatMap((reference) => reference.kind === 'namespacedMarketplace'
|
|
123
|
+
&& reference.pluginName === options.pluginName
|
|
124
|
+
&& reference.platform === 'codex'
|
|
125
|
+
&& reference.marketplaceName
|
|
126
|
+
&& ((reference.sourceId === options.sourceId
|
|
127
|
+
&& reference.sourceIdentity === options.sourceIdentity)
|
|
128
|
+
|| (reference.sourceId === undefined && registeredNames.has(reference.marketplaceName)))
|
|
129
|
+
? [reference.marketplaceName]
|
|
130
|
+
: []));
|
|
131
|
+
if (nativeNames.size === 1) {
|
|
132
|
+
const marketplaceName = [...nativeNames][0];
|
|
133
|
+
actions.push({
|
|
134
|
+
action: 'removeNativeRegistration',
|
|
135
|
+
kind: 'namespacedMarketplace',
|
|
136
|
+
target: `${options.pluginName}@${marketplaceName}`,
|
|
137
|
+
marketplaceName,
|
|
138
|
+
activationScope: options.scope,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
actions.sort((left, right) => JSON.stringify(left).localeCompare(JSON.stringify(right), 'en'));
|
|
143
|
+
const plan = {
|
|
144
|
+
schemaVersion: 1,
|
|
145
|
+
pluginId: options.pluginId,
|
|
146
|
+
sourceIdentity: options.sourceIdentity,
|
|
147
|
+
platform: options.platform,
|
|
148
|
+
scope: options.scope,
|
|
149
|
+
actions,
|
|
150
|
+
};
|
|
151
|
+
const planDigest = calculateOfflineCleanupPlanDigest(plan);
|
|
152
|
+
return {
|
|
153
|
+
reason: options.reason,
|
|
154
|
+
pluginId: options.pluginId,
|
|
155
|
+
pluginName: options.pluginName,
|
|
156
|
+
sourceId: options.sourceId,
|
|
157
|
+
sourceIdentity: options.sourceIdentity,
|
|
158
|
+
platform: options.platform,
|
|
159
|
+
scope: options.scope,
|
|
160
|
+
plan,
|
|
161
|
+
planDigest,
|
|
162
|
+
targetFingerprint: planDigest,
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
export function offlineCleanupEvidenceMatches(expected, actual) {
|
|
166
|
+
return expected.reason === actual.reason
|
|
167
|
+
&& expected.forceExclusive === actual.forceExclusive
|
|
168
|
+
&& expected.pluginId === actual.pluginId
|
|
169
|
+
&& expected.pluginName === actual.pluginName
|
|
170
|
+
&& expected.sourceId === actual.sourceId
|
|
171
|
+
&& expected.sourceIdentity === actual.sourceIdentity
|
|
172
|
+
&& expected.platform === actual.platform
|
|
173
|
+
&& expected.scope === actual.scope
|
|
174
|
+
&& expected.planDigest === calculateOfflineCleanupPlanDigest(expected.plan)
|
|
175
|
+
&& actual.planDigest === calculateOfflineCleanupPlanDigest(actual.plan)
|
|
176
|
+
&& expected.planDigest === actual.planDigest
|
|
177
|
+
&& JSON.stringify(expected.plan) === JSON.stringify(actual.plan)
|
|
178
|
+
&& expected.targetFingerprint === expected.planDigest
|
|
179
|
+
&& actual.targetFingerprint === actual.planDigest;
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=offline-cleanup-evidence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offline-cleanup-evidence.js","sourceRoot":"","sources":["../../../src/commands/offline-cleanup-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,UAAU,CAAC;AAiC1B,KAAK,UAAU,YAAY,CAAC,SAAoD;IAC9E,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC7D,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO;QAChH,GAAG,EAAE,K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ClD,MAAM,CAAC,iBAAiB,KAAK,MAAM,CAAC,UAAU,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { PlatformName, PluginConfigValue, Scope } from '../types.js';
|
|
2
|
+
import type { OwnedSharedLocator, OwnerIdentity } from '../utils/ownership.js';
|
|
3
|
+
export interface OperationArtifactFile {
|
|
4
|
+
relativePath: string;
|
|
5
|
+
contentBase64: string;
|
|
6
|
+
contentDigest: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OperationPlanEvidence {
|
|
9
|
+
catalogDigests: Array<{
|
|
10
|
+
sourceId: string;
|
|
11
|
+
digest: string;
|
|
12
|
+
}>;
|
|
13
|
+
intentDigests: Array<{
|
|
14
|
+
scope: Scope;
|
|
15
|
+
digest: string;
|
|
16
|
+
}>;
|
|
17
|
+
configDigests: Array<{
|
|
18
|
+
pluginId: string;
|
|
19
|
+
scope: Scope;
|
|
20
|
+
digest: string;
|
|
21
|
+
}>;
|
|
22
|
+
targetOwnerFingerprints: Array<{
|
|
23
|
+
pluginId: string;
|
|
24
|
+
platform: PlatformName;
|
|
25
|
+
scope: Scope;
|
|
26
|
+
fingerprint: string;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
export type OperationAction = {
|
|
30
|
+
kind: 'ensureNativeRegistration';
|
|
31
|
+
pluginId: string;
|
|
32
|
+
platform: PlatformName;
|
|
33
|
+
scope: Scope;
|
|
34
|
+
registration: string;
|
|
35
|
+
marketplaceName?: string;
|
|
36
|
+
marketplaceRoot?: string;
|
|
37
|
+
} | {
|
|
38
|
+
kind: 'removeNativeRegistration';
|
|
39
|
+
pluginId: string;
|
|
40
|
+
platform: PlatformName;
|
|
41
|
+
scope: Scope;
|
|
42
|
+
registration: string;
|
|
43
|
+
} | {
|
|
44
|
+
kind: 'setActivation';
|
|
45
|
+
pluginId: string;
|
|
46
|
+
platform: PlatformName;
|
|
47
|
+
scope: Scope;
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
configPath?: string;
|
|
50
|
+
registration?: string;
|
|
51
|
+
} | {
|
|
52
|
+
kind: 'writeOwnedArtifact';
|
|
53
|
+
pluginId: string;
|
|
54
|
+
platform: PlatformName;
|
|
55
|
+
scope: Scope;
|
|
56
|
+
path: string;
|
|
57
|
+
contentDigest: string;
|
|
58
|
+
content?: string;
|
|
59
|
+
sourceContent?: string;
|
|
60
|
+
owner?: OwnerIdentity;
|
|
61
|
+
allowedRoot?: string;
|
|
62
|
+
artifactKind?: 'owned-text-file' | 'skill-directory';
|
|
63
|
+
files?: OperationArtifactFile[];
|
|
64
|
+
allowPristineUnowned?: boolean;
|
|
65
|
+
} | {
|
|
66
|
+
kind: 'updateSharedConfig';
|
|
67
|
+
pluginId: string;
|
|
68
|
+
platform: PlatformName;
|
|
69
|
+
scope: Scope;
|
|
70
|
+
owner: OwnerIdentity;
|
|
71
|
+
locator: OwnedSharedLocator;
|
|
72
|
+
contentDigest: string;
|
|
73
|
+
mutation: {
|
|
74
|
+
kind: 'claude-permissions';
|
|
75
|
+
permissions: unknown;
|
|
76
|
+
} | {
|
|
77
|
+
kind: 'codex-instruction';
|
|
78
|
+
block?: {
|
|
79
|
+
pluginName: string;
|
|
80
|
+
value: string;
|
|
81
|
+
};
|
|
82
|
+
} | {
|
|
83
|
+
kind: 'codex-role-registration';
|
|
84
|
+
roleKey: string;
|
|
85
|
+
configFile: string;
|
|
86
|
+
description: string;
|
|
87
|
+
} | {
|
|
88
|
+
kind: 'codex-activation';
|
|
89
|
+
codexPluginId: string;
|
|
90
|
+
enabled: boolean;
|
|
91
|
+
};
|
|
92
|
+
} | {
|
|
93
|
+
kind: 'removeOwnedArtifact';
|
|
94
|
+
pluginId: string;
|
|
95
|
+
platform: PlatformName;
|
|
96
|
+
scope: Scope;
|
|
97
|
+
path: string;
|
|
98
|
+
ownerFingerprint: string;
|
|
99
|
+
} | {
|
|
100
|
+
kind: 'removePluginConfig';
|
|
101
|
+
pluginId: string;
|
|
102
|
+
platform: PlatformName;
|
|
103
|
+
scope: Scope;
|
|
104
|
+
path: string;
|
|
105
|
+
fingerprint: string;
|
|
106
|
+
} | {
|
|
107
|
+
kind: 'removeActivation';
|
|
108
|
+
pluginId: string;
|
|
109
|
+
platform: 'codex';
|
|
110
|
+
scope: Scope;
|
|
111
|
+
registration: string;
|
|
112
|
+
} | {
|
|
113
|
+
kind: 'removeMarketplaceProjection';
|
|
114
|
+
pluginId: string;
|
|
115
|
+
platform: PlatformName;
|
|
116
|
+
scope: Scope;
|
|
117
|
+
marketplaceRoot: string;
|
|
118
|
+
} | {
|
|
119
|
+
kind: 'runPreApply';
|
|
120
|
+
pluginId: string;
|
|
121
|
+
platform: PlatformName;
|
|
122
|
+
scope: Scope;
|
|
123
|
+
script: string;
|
|
124
|
+
scriptDigest?: string;
|
|
125
|
+
};
|
|
126
|
+
export interface OperationPlan {
|
|
127
|
+
intentChanges: Array<{
|
|
128
|
+
scope: Scope;
|
|
129
|
+
beforeDigest: string;
|
|
130
|
+
afterDigest: string;
|
|
131
|
+
}>;
|
|
132
|
+
actions: OperationAction[];
|
|
133
|
+
changes: string[];
|
|
134
|
+
warnings: string[];
|
|
135
|
+
evidence: OperationPlanEvidence;
|
|
136
|
+
planFingerprint: string;
|
|
137
|
+
}
|
|
138
|
+
export type OperationPlanInput = Omit<OperationPlan, 'planFingerprint'>;
|
|
139
|
+
export declare function createOperationPlanConfigDigest(options: {
|
|
140
|
+
pluginId: string;
|
|
141
|
+
scope: Scope;
|
|
142
|
+
effectiveValues: Readonly<Record<string, PluginConfigValue>>;
|
|
143
|
+
}): OperationPlanEvidence['configDigests'][number];
|
|
144
|
+
export declare function createOperationPlan(input: OperationPlanInput): OperationPlan;
|
|
145
|
+
export declare function createBatchIntentCompatiblePlanFingerprint(plan: OperationPlan, ignoredTargetKeys?: ReadonlySet<string>): string;
|
|
146
|
+
export declare function assertOperationPlanFingerprint(expectedFingerprint: string, currentPlan: OperationPlan): void;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import crypto from 'node:crypto';
|
|
2
|
+
import { canonicalizePluginConfigValues } from '@lesliechan721/aw-plugin-core/manifest';
|
|
3
|
+
export function createOperationPlanConfigDigest(options) {
|
|
4
|
+
const digest = crypto
|
|
5
|
+
.createHash('sha256')
|
|
6
|
+
.update(JSON.stringify(canonicalizePluginConfigValues(options.effectiveValues)))
|
|
7
|
+
.digest('hex');
|
|
8
|
+
return {
|
|
9
|
+
pluginId: options.pluginId,
|
|
10
|
+
scope: options.scope,
|
|
11
|
+
digest: `sha256:${digest}`,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function compareText(left, right) {
|
|
15
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
16
|
+
}
|
|
17
|
+
function canonical(values, key) {
|
|
18
|
+
return [...values].sort((left, right) => compareText(key(left), key(right)));
|
|
19
|
+
}
|
|
20
|
+
function canonicalizeOperationPlanInput(input) {
|
|
21
|
+
return {
|
|
22
|
+
intentChanges: canonical(input.intentChanges, (change) => change.scope),
|
|
23
|
+
actions: [...input.actions],
|
|
24
|
+
changes: [...input.changes].sort(compareText),
|
|
25
|
+
warnings: [...input.warnings].sort(compareText),
|
|
26
|
+
evidence: {
|
|
27
|
+
catalogDigests: canonical(input.evidence.catalogDigests, (entry) => entry.sourceId),
|
|
28
|
+
intentDigests: canonical(input.evidence.intentDigests, (entry) => entry.scope),
|
|
29
|
+
configDigests: canonical(input.evidence.configDigests, (entry) => `${entry.pluginId}\0${entry.scope}`),
|
|
30
|
+
targetOwnerFingerprints: canonical(input.evidence.targetOwnerFingerprints, (entry) => `${entry.pluginId}\0${entry.platform}\0${entry.scope}`),
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function createOperationPlan(input) {
|
|
35
|
+
const canonicalInput = canonicalizeOperationPlanInput(input);
|
|
36
|
+
const digest = crypto
|
|
37
|
+
.createHash('sha256')
|
|
38
|
+
.update(JSON.stringify(canonicalInput))
|
|
39
|
+
.digest('hex');
|
|
40
|
+
return { ...canonicalInput, planFingerprint: `sha256:${digest}` };
|
|
41
|
+
}
|
|
42
|
+
export function createBatchIntentCompatiblePlanFingerprint(plan, ignoredTargetKeys = new Set()) {
|
|
43
|
+
const targetKey = (target) => `${target.pluginId}\0${target.platform}\0${target.scope}`;
|
|
44
|
+
return createOperationPlan({
|
|
45
|
+
intentChanges: plan.intentChanges.map(({ scope }) => ({
|
|
46
|
+
scope,
|
|
47
|
+
beforeDigest: 'batch-intent',
|
|
48
|
+
afterDigest: 'batch-intent',
|
|
49
|
+
})),
|
|
50
|
+
actions: plan.actions.filter((action) => !ignoredTargetKeys.has(targetKey(action))),
|
|
51
|
+
changes: plan.changes.filter((change) => ![...ignoredTargetKeys].some((key) => {
|
|
52
|
+
const [pluginId, platform, scope] = key.split('\0');
|
|
53
|
+
return change.startsWith(`${pluginId}:${platform}:${scope}:`);
|
|
54
|
+
})),
|
|
55
|
+
warnings: plan.warnings,
|
|
56
|
+
evidence: {
|
|
57
|
+
...plan.evidence,
|
|
58
|
+
intentDigests: plan.evidence.intentDigests.map(({ scope }) => ({
|
|
59
|
+
scope,
|
|
60
|
+
digest: 'batch-intent',
|
|
61
|
+
})),
|
|
62
|
+
targetOwnerFingerprints: plan.evidence.targetOwnerFingerprints.filter((target) => !ignoredTargetKeys.has(targetKey(target))),
|
|
63
|
+
},
|
|
64
|
+
}).planFingerprint;
|
|
65
|
+
}
|
|
66
|
+
export function assertOperationPlanFingerprint(expectedFingerprint, currentPlan) {
|
|
67
|
+
if (expectedFingerprint !== currentPlan.planFingerprint) {
|
|
68
|
+
throw new Error('operationPlanStale: the reviewed operation plan changed.');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=operation-plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-plan.js","sourceRoot":"","sources":["../../../src/commands/operation-plan.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAA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