@lesliechan721/aw 0.1.0-beta.10 → 0.1.0-beta.100
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.d.mts +1 -50
- package/dist/authoring/assets/aw-config.mjs +58 -928
- package/dist/authoring/assets/aw-config.mjs.map +1 -1
- package/dist/authoring/assets/aw-runtime-config.d.mts +13 -0
- package/dist/authoring/assets/aw-runtime-config.mjs +221 -0
- package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -0
- package/dist/authoring/assets/command-runtime-config.d.mts +9 -0
- package/dist/authoring/assets/command-runtime-config.mjs +134 -0
- package/dist/authoring/assets/command-runtime-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.mjs +16 -39
- package/dist/authoring/scripts/add-skill.mjs.map +1 -1
- package/dist/authoring/scripts/init-plugin.mjs +43 -71
- package/dist/authoring/scripts/init-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-root.mjs +4 -4
- package/dist/authoring/scripts/lib/plugin-root.mjs.map +1 -1
- package/dist/authoring/scripts/lib/plugin-version-check.d.mts +1 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +230 -9
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
- package/dist/authoring/scripts/lib/skill-scaffold.d.mts +3 -3
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +5 -8
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs +1 -1
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-plugin.mjs +408 -1748
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/authoring/scripts/validate-skill.mjs +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.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 +11 -1
- package/dist/scripts/aw-skill-eval-materializer.js +119 -114
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -1
- package/dist/scripts/bundle-plugins.js +32 -7
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/plugin-staging.d.ts +1 -1
- package/dist/scripts/plugin-staging.js +5 -2
- package/dist/scripts/plugin-staging.js.map +1 -1
- package/dist/scripts/plugin-test-context-guard.d.mts +1 -0
- package/dist/scripts/plugin-test-context-guard.mjs +59 -0
- package/dist/scripts/plugin-test-context-guard.mjs.map +1 -0
- 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 +343 -58
- package/dist/scripts/test-plugin-scripts.js.map +1 -1
- package/dist/scripts/test-workers.d.mts +24 -0
- package/dist/scripts/test-workers.mjs +59 -0
- package/dist/scripts/test-workers.mjs.map +1 -0
- package/dist/src/adapters/helpers.d.ts +7 -0
- package/dist/src/adapters/helpers.js.map +1 -1
- package/dist/src/authoring/workspace-commands.d.ts +3 -0
- package/dist/src/authoring/workspace-commands.js +7 -2
- package/dist/src/authoring/workspace-commands.js.map +1 -1
- package/dist/src/commands/aw-capabilities.d.ts +1 -1
- package/dist/src/commands/aw-capabilities.js +48 -19
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/catalog-dev-source.d.ts +40 -3
- package/dist/src/commands/catalog-dev-source.js +333 -42
- package/dist/src/commands/catalog-dev-source.js.map +1 -1
- package/dist/src/commands/catalog-generation.d.ts +5 -0
- package/dist/src/commands/catalog-generation.js.map +1 -1
- package/dist/src/commands/catalog-publication-inspection.d.ts +11 -3
- package/dist/src/commands/catalog-publication-inspection.js +211 -59
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -1
- package/dist/src/commands/catalog-publication-journal.d.ts +12 -0
- package/dist/src/commands/catalog-publication-journal.js +78 -1
- package/dist/src/commands/catalog-publication-journal.js.map +1 -1
- package/dist/src/commands/catalog-publish.d.ts +21 -1
- package/dist/src/commands/catalog-publish.js +133 -92
- package/dist/src/commands/catalog-publish.js.map +1 -1
- package/dist/src/commands/catalog-source.d.ts +25 -5
- package/dist/src/commands/catalog-source.js +153 -27
- package/dist/src/commands/catalog-source.js.map +1 -1
- package/dist/src/commands/catalog-status.js +2 -2
- package/dist/src/commands/catalog-status.js.map +1 -1
- package/dist/src/commands/catalog-store.d.ts +31 -7
- package/dist/src/commands/catalog-store.js +379 -42
- package/dist/src/commands/catalog-store.js.map +1 -1
- package/dist/src/commands/catalog-workspace-resolution.d.ts +4 -0
- package/dist/src/commands/catalog-workspace-resolution.js +18 -3
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -1
- package/dist/src/commands/console.js +33 -20
- package/dist/src/commands/console.js.map +1 -1
- package/dist/src/commands/dependency-operation-plan.d.ts +7 -0
- package/dist/src/commands/dependency-operation-plan.js +66 -30
- package/dist/src/commands/dependency-operation-plan.js.map +1 -1
- package/dist/src/commands/deployment-confirmation.d.ts +11 -0
- package/dist/src/commands/deployment-confirmation.js +101 -0
- package/dist/src/commands/deployment-confirmation.js.map +1 -0
- package/dist/src/commands/init.js +1 -1
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/intent-command.d.ts +34 -0
- package/dist/src/commands/intent-command.js +174 -0
- package/dist/src/commands/intent-command.js.map +1 -0
- package/dist/src/commands/lifecycle-command-package.d.ts +45 -0
- package/dist/src/commands/lifecycle-command-package.js +199 -0
- package/dist/src/commands/lifecycle-command-package.js.map +1 -0
- package/dist/src/commands/managed-commands.d.ts +41 -0
- package/dist/src/commands/managed-commands.js +404 -0
- package/dist/src/commands/managed-commands.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +12 -2
- package/dist/src/commands/offline-cleanup-evidence.js +57 -35
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
- package/dist/src/commands/operation-plan.d.ts +72 -2
- package/dist/src/commands/operation-plan.js +54 -3
- package/dist/src/commands/operation-plan.js.map +1 -1
- package/dist/src/commands/operation-planner.d.ts +6 -5
- package/dist/src/commands/operation-planner.js +23 -20
- package/dist/src/commands/operation-planner.js.map +1 -1
- package/dist/src/commands/options.d.ts +11 -16
- package/dist/src/commands/options.js +31 -25
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/permission-batch.d.ts +5 -0
- package/dist/src/commands/permission-batch.js +83 -0
- package/dist/src/commands/permission-batch.js.map +1 -0
- package/dist/src/commands/plugin-capabilities.js +128 -58
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-config-confirmation.d.ts +14 -0
- package/dist/src/commands/public-config-confirmation.js +73 -0
- package/dist/src/commands/public-config-confirmation.js.map +1 -0
- package/dist/src/commands/public-interruption.d.ts +9 -0
- package/dist/src/commands/public-interruption.js +23 -0
- package/dist/src/commands/public-interruption.js.map +1 -0
- package/dist/src/commands/public-lifecycle-result.d.ts +106 -0
- package/dist/src/commands/public-lifecycle-result.js +536 -0
- package/dist/src/commands/public-lifecycle-result.js.map +1 -0
- package/dist/src/commands/public-lifecycle.d.ts +27 -0
- package/dist/src/commands/public-lifecycle.js +569 -0
- package/dist/src/commands/public-lifecycle.js.map +1 -0
- package/dist/src/commands/public-plugin-query.d.ts +16 -0
- package/dist/src/commands/public-plugin-query.js +231 -0
- package/dist/src/commands/public-plugin-query.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +177 -16
- package/dist/src/commands/rebuild-command.js +3370 -1559
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +100 -55
- package/dist/src/commands/rebuild-integration.js +866 -3275
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +68 -13
- package/dist/src/commands/rebuild-operations.js +309 -120
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +99 -0
- package/dist/src/commands/rebuild-platform-integration.js +2329 -0
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -0
- package/dist/src/commands/reconcile-operation-plan.d.ts +14 -9
- package/dist/src/commands/reconcile-operation-plan.js +26 -6
- package/dist/src/commands/reconcile-operation-plan.js.map +1 -1
- package/dist/src/commands/review-inspection.d.ts +60 -0
- package/dist/src/commands/review-inspection.js +437 -0
- package/dist/src/commands/review-inspection.js.map +1 -0
- package/dist/src/commands/review-preparation.d.ts +51 -0
- package/dist/src/commands/review-preparation.js +400 -0
- package/dist/src/commands/review-preparation.js.map +1 -0
- package/dist/src/commands/runtime.d.ts +5 -1
- package/dist/src/commands/runtime.js +41 -8
- package/dist/src/commands/runtime.js.map +1 -1
- package/dist/src/commands/skill-eval.d.ts +8 -0
- package/dist/src/commands/skill-eval.js +126 -73
- package/dist/src/commands/skill-eval.js.map +1 -1
- package/dist/src/commands/status-v6.d.ts +148 -35
- package/dist/src/commands/status-v6.js +1166 -307
- package/dist/src/commands/status-v6.js.map +1 -1
- package/dist/src/commands/targets-command.d.ts +38 -0
- package/dist/src/commands/targets-command.js +182 -0
- package/dist/src/commands/targets-command.js.map +1 -0
- package/dist/src/commands/wizard.d.ts +7 -3
- package/dist/src/commands/wizard.js +7 -4
- package/dist/src/commands/wizard.js.map +1 -1
- package/dist/src/commands/write-commands.d.ts +7 -1
- package/dist/src/commands/write-commands.js +129 -38
- package/dist/src/commands/write-commands.js.map +1 -1
- package/dist/src/constants.d.ts +2 -3
- package/dist/src/constants.js +2 -3
- package/dist/src/constants.js.map +1 -1
- package/dist/src/eval/manifest-v1.d.ts +6 -3
- package/dist/src/eval/manifest-v1.js +44 -33
- package/dist/src/eval/manifest-v1.js.map +1 -1
- package/dist/src/generators/local-plugin.d.ts +4 -2
- package/dist/src/generators/local-plugin.js +319 -353
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/generators/permissions.d.ts +20 -2
- package/dist/src/generators/permissions.js +82 -15
- package/dist/src/generators/permissions.js.map +1 -1
- package/dist/src/index.d.ts +2 -33
- package/dist/src/index.js +1575 -1919
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent/deployment-preferences.d.ts +63 -0
- package/dist/src/intent/deployment-preferences.js +170 -0
- package/dist/src/intent/deployment-preferences.js.map +1 -0
- package/dist/src/intent/diagnostics.d.ts +11 -0
- package/dist/src/intent/diagnostics.js +14 -0
- package/dist/src/intent/diagnostics.js.map +1 -0
- package/dist/src/intent/intent-codec.d.ts +19 -0
- package/dist/src/intent/intent-codec.js +117 -0
- package/dist/src/intent/intent-codec.js.map +1 -0
- package/dist/src/intent/intent-store.d.ts +43 -0
- package/dist/src/intent/intent-store.js +118 -0
- package/dist/src/intent/intent-store.js.map +1 -0
- package/dist/src/intent/scope-context.d.ts +35 -0
- package/dist/src/intent/scope-context.js +179 -0
- package/dist/src/intent/scope-context.js.map +1 -0
- package/dist/src/intent/work-context.d.ts +13 -0
- package/dist/src/intent/work-context.js +22 -0
- package/dist/src/intent/work-context.js.map +1 -0
- package/dist/src/output/command-receipt.d.ts +6 -2
- package/dist/src/output/command-receipt.js +67 -32
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/component-delivery.d.ts +28 -0
- package/dist/src/output/component-delivery.js +141 -0
- package/dist/src/output/component-delivery.js.map +1 -0
- package/dist/src/output/public-result.d.ts +69 -0
- package/dist/src/output/public-result.js +403 -0
- package/dist/src/output/public-result.js.map +1 -0
- package/dist/src/output/rebuild-progress.d.ts +3 -0
- package/dist/src/output/rebuild-progress.js +34 -9
- package/dist/src/output/rebuild-progress.js.map +1 -1
- package/dist/src/output/receipt-projection.d.ts +7 -0
- package/dist/src/output/receipt-projection.js +664 -0
- package/dist/src/output/receipt-projection.js.map +1 -0
- package/dist/src/output/skill-invocation-notices.d.ts +18 -0
- package/dist/src/output/skill-invocation-notices.js +84 -0
- package/dist/src/output/skill-invocation-notices.js.map +1 -0
- package/dist/src/platforms/antigravity-permissions.d.ts +50 -0
- package/dist/src/platforms/antigravity-permissions.js +388 -0
- package/dist/src/platforms/antigravity-permissions.js.map +1 -0
- package/dist/src/platforms/capabilities.d.ts +9 -0
- package/dist/src/platforms/capabilities.js +125 -0
- package/dist/src/platforms/capabilities.js.map +1 -0
- package/dist/src/platforms/contracts.d.ts +394 -0
- package/dist/src/platforms/contracts.js +2 -0
- package/dist/src/platforms/contracts.js.map +1 -0
- package/dist/src/platforms/cursor-workspace-hook.d.ts +28 -0
- package/dist/src/platforms/cursor-workspace-hook.js +198 -0
- package/dist/src/platforms/cursor-workspace-hook.js.map +1 -0
- package/dist/src/platforms/discovery.d.ts +100 -0
- package/dist/src/platforms/discovery.js +779 -0
- package/dist/src/platforms/discovery.js.map +1 -0
- package/dist/src/platforms/grok-permission-config.d.ts +23 -0
- package/dist/src/platforms/grok-permission-config.js +184 -0
- package/dist/src/platforms/grok-permission-config.js.map +1 -0
- package/dist/src/platforms/grok-permission-document.d.ts +4 -0
- package/dist/src/platforms/grok-permission-document.js +145 -0
- package/dist/src/platforms/grok-permission-document.js.map +1 -0
- package/dist/src/platforms/grok-permissions.d.ts +17 -0
- package/dist/src/platforms/grok-permissions.js +311 -0
- package/dist/src/platforms/grok-permissions.js.map +1 -0
- package/dist/src/platforms/host-permission-policy.d.ts +38 -0
- package/dist/src/platforms/host-permission-policy.js +86 -0
- package/dist/src/platforms/host-permission-policy.js.map +1 -0
- package/dist/src/platforms/identity.d.ts +4 -0
- package/dist/src/platforms/identity.js +22 -0
- package/dist/src/platforms/identity.js.map +1 -0
- package/dist/src/platforms/inspection-grok.d.ts +4 -0
- package/dist/src/platforms/inspection-grok.js +380 -0
- package/dist/src/platforms/inspection-grok.js.map +1 -0
- package/dist/src/platforms/inspection-native.d.ts +8 -0
- package/dist/src/platforms/inspection-native.js +584 -0
- package/dist/src/platforms/inspection-native.js.map +1 -0
- package/dist/src/platforms/inspection-opencode.d.ts +4 -0
- package/dist/src/platforms/inspection-opencode.js +98 -0
- package/dist/src/platforms/inspection-opencode.js.map +1 -0
- package/dist/src/platforms/inspection-pi.d.ts +9 -0
- package/dist/src/platforms/inspection-pi.js +490 -0
- package/dist/src/platforms/inspection-pi.js.map +1 -0
- package/dist/src/platforms/inspection-query.d.ts +26 -0
- package/dist/src/platforms/inspection-query.js +118 -0
- package/dist/src/platforms/inspection-query.js.map +1 -0
- package/dist/src/platforms/inspection.d.ts +20 -0
- package/dist/src/platforms/inspection.js +259 -0
- package/dist/src/platforms/inspection.js.map +1 -0
- package/dist/src/platforms/layout.d.ts +35 -0
- package/dist/src/platforms/layout.js +332 -0
- package/dist/src/platforms/layout.js.map +1 -0
- package/dist/src/platforms/lifecycle-native-services.d.ts +3 -0
- package/dist/src/platforms/lifecycle-native-services.js +213 -0
- package/dist/src/platforms/lifecycle-native-services.js.map +1 -0
- package/dist/src/platforms/lifecycle-native.d.ts +14 -0
- package/dist/src/platforms/lifecycle-native.js +234 -0
- package/dist/src/platforms/lifecycle-native.js.map +1 -0
- package/dist/src/platforms/lifecycle.d.ts +29 -0
- package/dist/src/platforms/lifecycle.js +688 -0
- package/dist/src/platforms/lifecycle.js.map +1 -0
- package/dist/src/platforms/opencode-permission-config.d.ts +13 -0
- package/dist/src/platforms/opencode-permission-config.js +253 -0
- package/dist/src/platforms/opencode-permission-config.js.map +1 -0
- package/dist/src/platforms/opencode-permissions.d.ts +39 -0
- package/dist/src/platforms/opencode-permissions.js +212 -0
- package/dist/src/platforms/opencode-permissions.js.map +1 -0
- package/dist/src/platforms/opencode-related-permissions.d.ts +40 -0
- package/dist/src/platforms/opencode-related-permissions.js +177 -0
- package/dist/src/platforms/opencode-related-permissions.js.map +1 -0
- package/dist/src/platforms/permission-ownership.d.ts +89 -0
- package/dist/src/platforms/permission-ownership.js +543 -0
- package/dist/src/platforms/permission-ownership.js.map +1 -0
- package/dist/src/platforms/permission-sidecar.d.ts +70 -0
- package/dist/src/platforms/permission-sidecar.js +215 -0
- package/dist/src/platforms/permission-sidecar.js.map +1 -0
- package/dist/src/platforms/projection-code-extension.d.ts +8 -0
- package/dist/src/platforms/projection-code-extension.js +126 -0
- package/dist/src/platforms/projection-code-extension.js.map +1 -0
- package/dist/src/platforms/projection-command-resources.d.ts +7 -0
- package/dist/src/platforms/projection-command-resources.js +74 -0
- package/dist/src/platforms/projection-command-resources.js.map +1 -0
- package/dist/src/platforms/projection-files.d.ts +28 -0
- package/dist/src/platforms/projection-files.js +113 -0
- package/dist/src/platforms/projection-files.js.map +1 -0
- package/dist/src/platforms/projection-marketplace.d.ts +19 -0
- package/dist/src/platforms/projection-marketplace.js +42 -0
- package/dist/src/platforms/projection-marketplace.js.map +1 -0
- package/dist/src/platforms/projection.d.ts +13 -0
- package/dist/src/platforms/projection.js +578 -0
- package/dist/src/platforms/projection.js.map +1 -0
- package/dist/src/platforms/read-only-retry-policy.d.ts +34 -0
- package/dist/src/platforms/read-only-retry-policy.js +70 -0
- package/dist/src/platforms/read-only-retry-policy.js.map +1 -0
- package/dist/src/platforms/registry.d.ts +4 -0
- package/dist/src/platforms/registry.js +30 -0
- package/dist/src/platforms/registry.js.map +1 -0
- package/dist/src/platforms/retirement-native.d.ts +6 -0
- package/dist/src/platforms/retirement-native.js +95 -0
- package/dist/src/platforms/retirement-native.js.map +1 -0
- package/dist/src/platforms/supplement-layout.d.ts +20 -0
- package/dist/src/platforms/supplement-layout.js +54 -0
- package/dist/src/platforms/supplement-layout.js.map +1 -0
- package/dist/src/platforms/supplement-state.d.ts +13 -0
- package/dist/src/platforms/supplement-state.js +93 -0
- package/dist/src/platforms/supplement-state.js.map +1 -0
- package/dist/src/portable/commands.d.ts +60 -11
- package/dist/src/portable/commands.js +88 -346
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/historical-materialization.d.ts +25 -0
- package/dist/src/portable/historical-materialization.js +148 -0
- package/dist/src/portable/historical-materialization.js.map +1 -0
- package/dist/src/portable/materializer.d.ts +46 -2
- package/dist/src/portable/materializer.js +262 -259
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery-layout.d.ts +17 -0
- package/dist/src/portable/recovery-layout.js +42 -0
- package/dist/src/portable/recovery-layout.js.map +1 -0
- package/dist/src/portable/recovery.d.ts +177 -0
- package/dist/src/portable/recovery.js +597 -0
- package/dist/src/portable/recovery.js.map +1 -0
- package/dist/src/portable/writer.d.ts +67 -0
- package/dist/src/portable/writer.js +321 -0
- package/dist/src/portable/writer.js.map +1 -0
- package/dist/src/recovery/coordinator.d.ts +175 -0
- package/dist/src/recovery/coordinator.js +1624 -0
- package/dist/src/recovery/coordinator.js.map +1 -0
- package/dist/src/recovery/demand.d.ts +53 -0
- package/dist/src/recovery/demand.js +189 -0
- package/dist/src/recovery/demand.js.map +1 -0
- package/dist/src/recovery/install-concurrency.d.ts +48 -0
- package/dist/src/recovery/install-concurrency.js +196 -0
- package/dist/src/recovery/install-concurrency.js.map +1 -0
- package/dist/src/recovery/interruption.d.ts +19 -0
- package/dist/src/recovery/interruption.js +43 -0
- package/dist/src/recovery/interruption.js.map +1 -0
- package/dist/src/recovery/joint-coordinator.d.ts +46 -0
- package/dist/src/recovery/joint-coordinator.js +1723 -0
- package/dist/src/recovery/joint-coordinator.js.map +1 -0
- package/dist/src/recovery/joint-demand.d.ts +72 -0
- package/dist/src/recovery/joint-demand.js +332 -0
- package/dist/src/recovery/joint-demand.js.map +1 -0
- package/dist/src/recovery/joint-install-execution.d.ts +19 -0
- package/dist/src/recovery/joint-install-execution.js +308 -0
- package/dist/src/recovery/joint-install-execution.js.map +1 -0
- package/dist/src/recovery/joint-install-native-rebase.d.ts +4 -0
- package/dist/src/recovery/joint-install-native-rebase.js +67 -0
- package/dist/src/recovery/joint-install-native-rebase.js.map +1 -0
- package/dist/src/recovery/performance.d.ts +4 -0
- package/dist/src/recovery/performance.js +26 -0
- package/dist/src/recovery/performance.js.map +1 -0
- package/dist/src/recovery/receipt.d.ts +131 -0
- package/dist/src/recovery/receipt.js +91 -0
- package/dist/src/recovery/receipt.js.map +1 -0
- package/dist/src/recovery/retirement.d.ts +47 -0
- package/dist/src/recovery/retirement.js +499 -0
- package/dist/src/recovery/retirement.js.map +1 -0
- package/dist/src/recovery/status.d.ts +143 -0
- package/dist/src/recovery/status.js +1528 -0
- package/dist/src/recovery/status.js.map +1 -0
- package/dist/src/recovery/types.d.ts +85 -0
- package/dist/src/recovery/types.js +2 -0
- package/dist/src/recovery/types.js.map +1 -0
- package/dist/src/review/eval-source-input.d.ts +44 -0
- package/dist/src/review/eval-source-input.js +213 -0
- package/dist/src/review/eval-source-input.js.map +1 -0
- package/dist/src/review/platform-profile.d.ts +5 -0
- package/dist/src/review/platform-profile.js +13 -0
- package/dist/src/review/platform-profile.js.map +1 -0
- package/dist/src/review/review-profile.d.ts +20 -0
- package/dist/src/review/review-profile.js +286 -0
- package/dist/src/review/review-profile.js.map +1 -0
- package/dist/src/review/review-selection.d.ts +20 -0
- package/dist/src/review/review-selection.js +502 -0
- package/dist/src/review/review-selection.js.map +1 -0
- package/dist/src/review/review-types.d.ts +71 -0
- package/dist/src/review/review-types.js +16 -0
- package/dist/src/review/review-types.js.map +1 -0
- package/dist/src/review/skill-materialization.d.ts +67 -0
- package/dist/src/review/skill-materialization.js +235 -0
- package/dist/src/review/skill-materialization.js.map +1 -0
- package/dist/src/review/source-binding.d.ts +203 -0
- package/dist/src/review/source-binding.js +791 -0
- package/dist/src/review/source-binding.js.map +1 -0
- package/dist/src/tui/agent-management.d.ts +23 -0
- package/dist/src/tui/agent-management.js +319 -0
- package/dist/src/tui/agent-management.js.map +1 -0
- package/dist/src/tui/agent-settings.d.ts +47 -0
- package/dist/src/tui/agent-settings.js +97 -0
- package/dist/src/tui/agent-settings.js.map +1 -0
- package/dist/src/tui/catalog-generation.d.ts +9 -0
- package/dist/src/tui/catalog-generation.js +96 -6
- package/dist/src/tui/catalog-generation.js.map +1 -1
- package/dist/src/tui/catalog-sources/projection.d.ts +2 -2
- package/dist/src/tui/catalog-sources/screens.js +19 -12
- package/dist/src/tui/catalog-sources/screens.js.map +1 -1
- package/dist/src/tui/catalog-sources/session.d.ts +11 -1
- package/dist/src/tui/catalog-sources/session.js +80 -5
- package/dist/src/tui/catalog-sources/session.js.map +1 -1
- package/dist/src/tui/catalog-sources/types.d.ts +15 -2
- package/dist/src/tui/catalog-store-task.d.ts +16 -0
- package/dist/src/tui/catalog-store-task.js +19 -0
- package/dist/src/tui/catalog-store-task.js.map +1 -0
- package/dist/src/tui/clipboard.d.ts +13 -0
- package/dist/src/tui/clipboard.js +95 -0
- package/dist/src/tui/clipboard.js.map +1 -0
- package/dist/src/tui/components.d.ts +113 -3
- package/dist/src/tui/components.js +201 -34
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/config-array-draft.d.ts +30 -0
- package/dist/src/tui/config-array-draft.js +51 -0
- package/dist/src/tui/config-array-draft.js.map +1 -0
- package/dist/src/tui/config-leaf-editor.d.ts +44 -0
- package/dist/src/tui/config-leaf-editor.js +227 -0
- package/dist/src/tui/config-leaf-editor.js.map +1 -0
- package/dist/src/tui/config-object-suggestions.d.ts +15 -0
- package/dist/src/tui/config-object-suggestions.js +71 -0
- package/dist/src/tui/config-object-suggestions.js.map +1 -0
- package/dist/src/tui/config-references.d.ts +38 -0
- package/dist/src/tui/config-references.js +82 -0
- package/dist/src/tui/config-references.js.map +1 -0
- package/dist/src/tui/config-suggestions.d.ts +27 -0
- package/dist/src/tui/config-suggestions.js +62 -0
- package/dist/src/tui/config-suggestions.js.map +1 -0
- package/dist/src/tui/config-value-presentation.d.ts +23 -0
- package/dist/src/tui/config-value-presentation.js +151 -0
- package/dist/src/tui/config-value-presentation.js.map +1 -0
- package/dist/src/tui/console-app-v4.d.ts +14 -5
- package/dist/src/tui/console-app-v4.js +9779 -2488
- 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 +4 -3
- package/dist/src/tui/controller-runtime.js +1610 -590
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +583 -80
- package/dist/src/tui/controller.js +3362 -263
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/dependency-graph-view.d.ts +39 -0
- package/dist/src/tui/dependency-graph-view.js +121 -0
- package/dist/src/tui/dependency-graph-view.js.map +1 -0
- package/dist/src/tui/dependency-graph.d.ts +81 -0
- package/dist/src/tui/dependency-graph.js +452 -0
- package/dist/src/tui/dependency-graph.js.map +1 -0
- package/dist/src/tui/deployment-view.d.ts +14 -0
- package/dist/src/tui/deployment-view.js +175 -0
- package/dist/src/tui/deployment-view.js.map +1 -0
- package/dist/src/tui/diagnostic-projection.d.ts +31 -0
- package/dist/src/tui/diagnostic-projection.js +681 -0
- package/dist/src/tui/diagnostic-projection.js.map +1 -0
- package/dist/src/tui/diagnostics.d.ts +6 -2
- 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 +56 -0
- package/dist/src/tui/entity-cards.js +327 -0
- package/dist/src/tui/entity-cards.js.map +1 -0
- package/dist/src/tui/glossary.d.ts +25 -0
- package/dist/src/tui/glossary.js +78 -0
- package/dist/src/tui/glossary.js.map +1 -0
- package/dist/src/tui/guided-setup.d.ts +25 -0
- package/dist/src/tui/guided-setup.js +101 -0
- package/dist/src/tui/guided-setup.js.map +1 -0
- package/dist/src/tui/index.d.ts +4 -1
- package/dist/src/tui/index.js +4 -1
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/input-display.d.ts +1 -0
- package/dist/src/tui/input-display.js +23 -1
- package/dist/src/tui/input-display.js.map +1 -1
- package/dist/src/tui/keys.d.ts +44 -0
- package/dist/src/tui/keys.js +43 -15
- package/dist/src/tui/keys.js.map +1 -1
- package/dist/src/tui/lifecycle-action-view.d.ts +6 -0
- package/dist/src/tui/lifecycle-action-view.js +36 -0
- package/dist/src/tui/lifecycle-action-view.js.map +1 -0
- package/dist/src/tui/model.d.ts +141 -28
- package/dist/src/tui/model.js +968 -285
- 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 +76 -0
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -0
- package/dist/src/tui/operation-history.d.ts +91 -0
- package/dist/src/tui/operation-history.js +167 -0
- package/dist/src/tui/operation-history.js.map +1 -0
- package/dist/src/tui/operation-review-planner.d.ts +7 -0
- package/dist/src/tui/operation-review-planner.js +980 -146
- package/dist/src/tui/operation-review-planner.js.map +1 -1
- package/dist/src/tui/plugin-content.d.ts +33 -0
- package/dist/src/tui/plugin-content.js +245 -0
- package/dist/src/tui/plugin-content.js.map +1 -0
- package/dist/src/tui/plugin-detail.d.ts +75 -0
- package/dist/src/tui/plugin-detail.js +267 -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/query-header.d.ts +30 -0
- package/dist/src/tui/query-header.js +40 -0
- package/dist/src/tui/query-header.js.map +1 -0
- package/dist/src/tui/reader.d.ts +38 -0
- package/dist/src/tui/reader.js +49 -0
- package/dist/src/tui/reader.js.map +1 -0
- package/dist/src/tui/router.d.ts +170 -39
- package/dist/src/tui/router.js +338 -50
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/scoped-flow.d.ts +49 -0
- package/dist/src/tui/scoped-flow.js +212 -0
- package/dist/src/tui/scoped-flow.js.map +1 -0
- package/dist/src/tui/scoped-inventory.d.ts +139 -0
- package/dist/src/tui/scoped-inventory.js +295 -0
- package/dist/src/tui/scoped-inventory.js.map +1 -0
- package/dist/src/tui/screen-registry.d.ts +696 -0
- package/dist/src/tui/screen-registry.js +226 -0
- package/dist/src/tui/screen-registry.js.map +1 -0
- package/dist/src/tui/session-console-app.d.ts +8 -0
- package/dist/src/tui/session-console-app.js +24 -0
- package/dist/src/tui/session-console-app.js.map +1 -0
- package/dist/src/tui/session-host.d.ts +45 -0
- package/dist/src/tui/session-host.js +219 -0
- package/dist/src/tui/session-host.js.map +1 -0
- package/dist/src/tui/source-detail-card.d.ts +29 -0
- package/dist/src/tui/source-detail-card.js +45 -0
- package/dist/src/tui/source-detail-card.js.map +1 -0
- package/dist/src/tui/theme.d.ts +12 -0
- package/dist/src/tui/theme.js +12 -0
- package/dist/src/tui/theme.js.map +1 -1
- package/dist/src/tui/viewport.d.ts +1 -0
- package/dist/src/tui/viewport.js +23 -0
- package/dist/src/tui/viewport.js.map +1 -1
- package/dist/src/tui/wizard.js +26 -4
- package/dist/src/tui/wizard.js.map +1 -1
- package/dist/src/types.d.ts +105 -83
- package/dist/src/types.js +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/agent-version.d.ts +10 -4
- package/dist/src/utils/agent-version.js +6 -8
- package/dist/src/utils/agent-version.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +18 -25
- package/dist/src/utils/artifact-plan.js +59 -445
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +64 -90
- package/dist/src/utils/artifact-renderer.js +202 -303
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +19 -14
- package/dist/src/utils/artifact-request.js +51 -36
- package/dist/src/utils/artifact-request.js.map +1 -1
- package/dist/src/utils/artifact-sources.d.ts +4 -8
- package/dist/src/utils/artifact-sources.js +15 -6
- package/dist/src/utils/artifact-sources.js.map +1 -1
- package/dist/src/utils/aw-home-mutation-lock.js +2 -1
- package/dist/src/utils/aw-home-mutation-lock.js.map +1 -1
- package/dist/src/utils/bundle-layout.d.ts +2 -0
- package/dist/src/utils/bundle-layout.js +88 -158
- package/dist/src/utils/bundle-layout.js.map +1 -1
- package/dist/src/utils/catalog-capability-projection.d.ts +8 -0
- package/dist/src/utils/catalog-capability-projection.js +14 -0
- package/dist/src/utils/catalog-capability-projection.js.map +1 -0
- package/dist/src/utils/catalog-digests.d.ts +2 -12
- package/dist/src/utils/catalog-digests.js +7 -55
- package/dist/src/utils/catalog-digests.js.map +1 -1
- package/dist/src/utils/catalog-generation-resolver.d.ts +28 -4
- package/dist/src/utils/catalog-generation-resolver.js +146 -40
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
- package/dist/src/utils/catalog-generation-service.d.ts +24 -2
- package/dist/src/utils/catalog-generation-service.js +92 -48
- package/dist/src/utils/catalog-generation-service.js.map +1 -1
- package/dist/src/utils/catalog-generation-state.js +1 -1
- package/dist/src/utils/catalog-generation-state.js.map +1 -1
- package/dist/src/utils/catalog-generation-store.d.ts +4 -0
- package/dist/src/utils/catalog-generation-store.js +68 -10
- package/dist/src/utils/catalog-generation-store.js.map +1 -1
- package/dist/src/utils/catalog-operation-context.d.ts +61 -4
- package/dist/src/utils/catalog-operation-context.js +225 -4
- package/dist/src/utils/catalog-operation-context.js.map +1 -1
- package/dist/src/utils/catalog-public-error.js +4 -0
- package/dist/src/utils/catalog-public-error.js.map +1 -1
- package/dist/src/utils/catalog-runtime-projection.d.ts +4 -3
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -1
- package/dist/src/utils/catalog-snapshot.d.ts +3 -0
- package/dist/src/utils/catalog-snapshot.js +4 -1
- package/dist/src/utils/catalog-snapshot.js.map +1 -1
- package/dist/src/utils/catalog-source-impact.d.ts +3 -2
- package/dist/src/utils/catalog-source-impact.js +142 -20
- package/dist/src/utils/catalog-source-impact.js.map +1 -1
- package/dist/src/utils/catalog-source-references.d.ts +57 -1
- package/dist/src/utils/catalog-source-references.js +755 -162
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/catalog-sources.d.ts +1 -1
- package/dist/src/utils/catalog-sources.js +21 -5
- package/dist/src/utils/catalog-sources.js.map +1 -1
- package/dist/src/utils/codex-config.d.ts +3 -0
- package/dist/src/utils/codex-config.js +7 -0
- package/dist/src/utils/codex-config.js.map +1 -1
- package/dist/src/utils/codex-executable-discovery.d.ts +28 -0
- package/dist/src/utils/codex-executable-discovery.js +431 -0
- package/dist/src/utils/codex-executable-discovery.js.map +1 -0
- package/dist/src/utils/codex-manager.d.ts +23 -42
- package/dist/src/utils/codex-manager.js +79 -767
- package/dist/src/utils/codex-manager.js.map +1 -1
- package/dist/src/utils/codex-native-observation.d.ts +40 -1
- package/dist/src/utils/codex-native-observation.js +172 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -1
- package/dist/src/utils/codex-reconciler.d.ts +2 -7
- package/dist/src/utils/codex-reconciler.js +33 -5
- package/dist/src/utils/codex-reconciler.js.map +1 -1
- package/dist/src/utils/codex-shared-native.d.ts +8 -26
- package/dist/src/utils/codex-shared-native.js +63 -83
- package/dist/src/utils/codex-shared-native.js.map +1 -1
- package/dist/src/utils/codex-skill-staging.d.ts +4 -3
- package/dist/src/utils/codex-skill-staging.js.map +1 -1
- package/dist/src/utils/codex-skills-root.d.ts +4 -0
- package/dist/src/utils/codex-skills-root.js +29 -0
- package/dist/src/utils/codex-skills-root.js.map +1 -0
- package/dist/src/utils/codex-surface-analysis.d.ts +6 -2
- package/dist/src/utils/codex-surface-analysis.js +31 -56
- package/dist/src/utils/codex-surface-analysis.js.map +1 -1
- package/dist/src/utils/component-agent-binding.d.ts +17 -0
- package/dist/src/utils/component-agent-binding.js +119 -0
- package/dist/src/utils/component-agent-binding.js.map +1 -0
- package/dist/src/utils/component-command-preparation.d.ts +33 -0
- package/dist/src/utils/component-command-preparation.js +129 -0
- package/dist/src/utils/component-command-preparation.js.map +1 -0
- package/dist/src/utils/component-gap.d.ts +4 -0
- package/dist/src/utils/component-gap.js +16 -0
- package/dist/src/utils/component-gap.js.map +1 -0
- package/dist/src/utils/component-resources.d.ts +53 -0
- package/dist/src/utils/component-resources.js +340 -0
- package/dist/src/utils/component-resources.js.map +1 -0
- package/dist/src/utils/config-platforms.d.ts +21 -0
- package/dist/src/utils/config-platforms.js +51 -0
- package/dist/src/utils/config-platforms.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +18 -6
- package/dist/src/utils/dynamic-skill-tree.js +33 -40
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/git-catalog-provider.d.ts +3 -0
- package/dist/src/utils/git-catalog-provider.js +49 -3
- package/dist/src/utils/git-catalog-provider.js.map +1 -1
- package/dist/src/utils/inventory-recovery-diagnostic.d.ts +4 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js +15 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js.map +1 -0
- package/dist/src/utils/local-marketplace.d.ts +19 -12
- package/dist/src/utils/local-marketplace.js +97 -194
- package/dist/src/utils/local-marketplace.js.map +1 -1
- package/dist/src/utils/managed-command-cli-review.d.ts +53 -0
- package/dist/src/utils/managed-command-cli-review.js +431 -0
- package/dist/src/utils/managed-command-cli-review.js.map +1 -0
- package/dist/src/utils/managed-command-closure.d.ts +14 -0
- package/dist/src/utils/managed-command-closure.js +156 -0
- package/dist/src/utils/managed-command-closure.js.map +1 -0
- package/dist/src/utils/managed-command-errors.d.ts +5 -0
- package/dist/src/utils/managed-command-errors.js +10 -0
- package/dist/src/utils/managed-command-errors.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +90 -0
- package/dist/src/utils/managed-command-materialization.js +375 -0
- package/dist/src/utils/managed-command-materialization.js.map +1 -0
- package/dist/src/utils/managed-command-preparation.d.ts +30 -0
- package/dist/src/utils/managed-command-preparation.js +39 -0
- package/dist/src/utils/managed-command-preparation.js.map +1 -0
- package/dist/src/utils/managed-command-review.d.ts +33 -0
- package/dist/src/utils/managed-command-review.js +80 -0
- package/dist/src/utils/managed-command-review.js.map +1 -0
- package/dist/src/utils/managed-command-runtime.d.ts +36 -0
- package/dist/src/utils/managed-command-runtime.js +126 -0
- package/dist/src/utils/managed-command-runtime.js.map +1 -0
- package/dist/src/utils/managed-command-snapshots.d.ts +24 -0
- package/dist/src/utils/managed-command-snapshots.js +89 -0
- package/dist/src/utils/managed-command-snapshots.js.map +1 -0
- package/dist/src/utils/managed-command-store.d.ts +141 -0
- package/dist/src/utils/managed-command-store.js +839 -0
- package/dist/src/utils/managed-command-store.js.map +1 -0
- package/dist/src/utils/multi-source-catalog.d.ts +6 -1
- package/dist/src/utils/multi-source-catalog.js +9 -4
- package/dist/src/utils/multi-source-catalog.js.map +1 -1
- package/dist/src/utils/native-cli-interruption.d.ts +8 -0
- package/dist/src/utils/native-cli-interruption.js +65 -0
- package/dist/src/utils/native-cli-interruption.js.map +1 -0
- package/dist/src/utils/native-cli.d.ts +37 -6
- package/dist/src/utils/native-cli.js +523 -60
- package/dist/src/utils/native-cli.js.map +1 -1
- package/dist/src/utils/native-demand.d.ts +29 -0
- package/dist/src/utils/native-demand.js +4 -0
- package/dist/src/utils/native-demand.js.map +1 -0
- package/dist/src/utils/native-tool-context.d.ts +17 -0
- package/dist/src/utils/native-tool-context.js +40 -0
- package/dist/src/utils/native-tool-context.js.map +1 -0
- package/dist/src/utils/native-tool-review.d.ts +8 -0
- package/dist/src/utils/native-tool-review.js +14 -0
- package/dist/src/utils/native-tool-review.js.map +1 -0
- package/dist/src/utils/ownership.d.ts +38 -3
- package/dist/src/utils/ownership.js +118 -11
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/package-content.d.ts +7 -0
- package/dist/src/utils/package-content.js +70 -0
- package/dist/src/utils/package-content.js.map +1 -0
- package/dist/src/utils/path-catalog-provider.js +2 -0
- package/dist/src/utils/path-catalog-provider.js.map +1 -1
- package/dist/src/utils/paths.d.ts +1 -1
- package/dist/src/utils/paths.js +5 -2
- package/dist/src/utils/paths.js.map +1 -1
- package/dist/src/utils/platform-empty-state.d.ts +69 -0
- package/dist/src/utils/platform-empty-state.js +249 -0
- package/dist/src/utils/platform-empty-state.js.map +1 -0
- package/dist/src/utils/platform-support.d.ts +1 -1
- package/dist/src/utils/platform-support.js +1 -1
- package/dist/src/utils/platform-support.js.map +1 -1
- package/dist/src/utils/plugin-config-command-apply.d.ts +33 -0
- package/dist/src/utils/plugin-config-command-apply.js +142 -0
- package/dist/src/utils/plugin-config-command-apply.js.map +1 -0
- package/dist/src/utils/plugin-config-diagnostics.d.ts +16 -0
- package/dist/src/utils/plugin-config-diagnostics.js +44 -0
- package/dist/src/utils/plugin-config-diagnostics.js.map +1 -0
- package/dist/src/utils/plugin-config-impact.d.ts +76 -0
- package/dist/src/utils/plugin-config-impact.js +359 -0
- package/dist/src/utils/plugin-config-impact.js.map +1 -0
- package/dist/src/utils/plugin-config-references.d.ts +116 -0
- package/dist/src/utils/plugin-config-references.js +379 -0
- package/dist/src/utils/plugin-config-references.js.map +1 -0
- package/dist/src/utils/plugin-config-suggestion-runner.d.ts +83 -0
- package/dist/src/utils/plugin-config-suggestion-runner.js +308 -0
- package/dist/src/utils/plugin-config-suggestion-runner.js.map +1 -0
- package/dist/src/utils/plugin-config-suggestions.d.ts +50 -0
- package/dist/src/utils/plugin-config-suggestions.js +322 -0
- package/dist/src/utils/plugin-config-suggestions.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +108 -19
- package/dist/src/utils/plugin-config-write.js +781 -568
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +122 -43
- package/dist/src/utils/plugin-config.js +574 -610
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/dist/src/utils/plugin-dependencies.d.ts +1 -1
- package/dist/src/utils/plugin-dependencies.js.map +1 -1
- package/dist/src/utils/plugin-scripts.d.ts +41 -17
- package/dist/src/utils/plugin-scripts.js +586 -123
- 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 -1
- package/dist/src/utils/project-boundary.js +33 -11
- package/dist/src/utils/project-boundary.js.map +1 -1
- package/dist/src/utils/rendered-contract.js +24 -1
- package/dist/src/utils/rendered-contract.js.map +1 -1
- package/dist/src/utils/runtime-config.d.ts +18 -0
- package/dist/src/utils/runtime-config.js +64 -0
- package/dist/src/utils/runtime-config.js.map +1 -0
- package/dist/src/utils/runtime-skill-closure.d.ts +2 -2
- package/dist/src/utils/runtime-skill-closure.js +50 -7
- package/dist/src/utils/runtime-skill-closure.js.map +1 -1
- 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/skill-invocation-warning.d.ts +19 -0
- package/dist/src/utils/skill-invocation-warning.js +43 -0
- package/dist/src/utils/skill-invocation-warning.js.map +1 -0
- package/dist/src/utils/skill-validation.js +0 -5
- package/dist/src/utils/skill-validation.js.map +1 -1
- package/dist/src/utils/state-paths.d.ts +8 -3
- package/dist/src/utils/state-paths.js +53 -16
- package/dist/src/utils/state-paths.js.map +1 -1
- package/dist/src/utils/target-eligibility.d.ts +2 -2
- package/dist/src/utils/target-eligibility.js.map +1 -1
- package/dist/src/utils/windows-claude-shim.d.ts +7 -0
- package/dist/src/utils/windows-claude-shim.js +10 -0
- package/dist/src/utils/windows-claude-shim.js.map +1 -0
- package/dist/src/utils/windows-npm-shim.d.ts +16 -0
- package/dist/src/utils/windows-npm-shim.js +155 -0
- package/dist/src/utils/windows-npm-shim.js.map +1 -0
- package/dist/vitest.config.js +109 -9
- package/dist/vitest.config.js.map +1 -1
- package/package.json +20 -12
- package/dist/authoring/templates/aw-config-runtime.d.mts +0 -2
- package/dist/authoring/templates/aw-config-runtime.mjs +0 -407
- package/dist/authoring/templates/aw-config-runtime.mjs.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/sync-command.d.ts +0 -23
- package/dist/src/commands/sync-command.js +0 -242
- package/dist/src/commands/sync-command.js.map +0 -1
- package/dist/src/portable/skills-cli.d.ts +0 -43
- package/dist/src/portable/skills-cli.js +0 -148
- package/dist/src/portable/skills-cli.js.map +0 -1
- package/dist/src/utils/codex-native-render-receipt.d.ts +0 -40
- package/dist/src/utils/codex-native-render-receipt.js +0 -205
- package/dist/src/utils/codex-native-render-receipt.js.map +0 -1
- package/dist/src/utils/plugin-intent-state.d.ts +0 -34
- package/dist/src/utils/plugin-intent-state.js +0 -289
- package/dist/src/utils/plugin-intent-state.js.map +0 -1
- package/dist/src/utils/slash-commands.d.ts +0 -1
- package/dist/src/utils/slash-commands.js +0 -2
- package/dist/src/utils/slash-commands.js.map +0 -1
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import fs from 'fs-extra';
|
|
3
|
+
import { isCanonicalCodexMarketplaceRegistration } from '../utils/codex-shared-native.js';
|
|
4
|
+
import { readCodexConfigFile, readCodexPluginTable } from '../utils/codex-config.js';
|
|
5
|
+
import { canonicalMarketplaceRegistrationPath } from '../utils/local-marketplace.js';
|
|
6
|
+
import { resolveAwHome, resolveClaudeProjectKey } from '../utils/state-paths.js';
|
|
7
|
+
import { NativeCliError } from '../utils/native-cli.js';
|
|
8
|
+
import { createCodexNativeObservationSession } from '../utils/codex-native-observation.js';
|
|
9
|
+
import { rethrowFatalError } from '../utils/codex-executable-discovery.js';
|
|
10
|
+
import { inspectOwnedComponents, readSkillOwnerMarker } from '../utils/ownership.js';
|
|
11
|
+
import { readPlatformPackageContentDigest } from '../utils/platform-empty-state.js';
|
|
12
|
+
import { installationInvocation, selectNativeProduct } from './discovery.js';
|
|
13
|
+
import { inspectPiDeployment } from './inspection-pi.js';
|
|
14
|
+
import { inspectGrokDeployment } from './inspection-grok.js';
|
|
15
|
+
import { canonicalNamespaceRoot, getPhysicalKey, identityDigest } from './identity.js';
|
|
16
|
+
import { queryNativeDeployment } from './inspection-query.js';
|
|
17
|
+
import { assertSafeFileMutationPath } from '../utils/safe-fs.js';
|
|
18
|
+
import { inspectRetirementMarketplace, sharedMarketplaceRoute } from './retirement-native.js';
|
|
19
|
+
function object(value) {
|
|
20
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
21
|
+
throw new Error('nativeObservationInvalid');
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
async function jsonFile(file) {
|
|
25
|
+
try {
|
|
26
|
+
return object(JSON.parse(await fs.readFile(file, 'utf8')));
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
if (['ENOENT', 'ENOTDIR'].includes(error.code ?? ''))
|
|
30
|
+
return {};
|
|
31
|
+
throw error;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function setActivation(result, activation) {
|
|
35
|
+
for (const consumer of result.consumers)
|
|
36
|
+
consumer.activation = activation;
|
|
37
|
+
}
|
|
38
|
+
function rows(stdout) {
|
|
39
|
+
const value = JSON.parse(stdout);
|
|
40
|
+
if (!Array.isArray(value) || value.length > 4096)
|
|
41
|
+
throw new Error('nativeObservationInvalid');
|
|
42
|
+
return value.map(object);
|
|
43
|
+
}
|
|
44
|
+
function diagnostic(result, binding, code, message) {
|
|
45
|
+
result.diagnostics.push({ code, severity: 'warning', message,
|
|
46
|
+
subject: { target: binding.platform, pluginId: binding.plugin.pluginId, scope: binding.scope.kind } });
|
|
47
|
+
}
|
|
48
|
+
function marketplaceReadDiagnostic(binding, error) {
|
|
49
|
+
// Keep ambiguous identities unconfirmed. A reasonCode identifies a failed command or unreadable response.
|
|
50
|
+
const reasonCode = error instanceof NativeCliError ? error.operationDiagnostic.code
|
|
51
|
+
: error instanceof SyntaxError ? 'nativeObservationInvalid'
|
|
52
|
+
: error instanceof Error && ['nativeObservationInvalid', 'nativeObservationOutputLimit'].includes(error.message) ? error.message : undefined;
|
|
53
|
+
return { code: 'nativeMarketplaceUnconfirmed', severity: 'warning',
|
|
54
|
+
message: 'The native marketplace source could not be confirmed. Keep the shared package.',
|
|
55
|
+
subject: { target: binding.platform, pluginId: binding.plugin.pluginId, scope: binding.scope.kind },
|
|
56
|
+
...(reasonCode ? { detail: { reasonCode } } : {}) };
|
|
57
|
+
}
|
|
58
|
+
async function inspectConfiguration(ctx, binding, result, read) {
|
|
59
|
+
try {
|
|
60
|
+
result.configuration = { scope: binding.scope.kind, ...await read(), reasonCodes: [] };
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
rethrowFatalError(error);
|
|
64
|
+
ctx.signal?.throwIfAborted();
|
|
65
|
+
result.configuration = { scope: binding.scope.kind, activation: 'unknown', reasonCodes: ['nativeConfigurationUnreadable'] };
|
|
66
|
+
if (!['foreign', 'shared'].includes(result.ownership))
|
|
67
|
+
result.ownership = 'unknown';
|
|
68
|
+
diagnostic(result, binding, 'nativeConfigurationUnreadable', 'Local configuration could not be read. Native observations are retained.');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function configuredActivation(value, allowServerList = false) {
|
|
72
|
+
if (value === undefined)
|
|
73
|
+
return 'absent';
|
|
74
|
+
if (typeof value === 'boolean')
|
|
75
|
+
return value ? 'enabled' : 'disabled';
|
|
76
|
+
if (allowServerList && Array.isArray(value) && value.every((item) => typeof item === 'string'))
|
|
77
|
+
return 'enabled';
|
|
78
|
+
throw new Error('nativeActivationInvalid');
|
|
79
|
+
}
|
|
80
|
+
async function copilotConfiguredActivation(file, nativeId) {
|
|
81
|
+
const settings = await jsonFile(file);
|
|
82
|
+
return configuredActivation(settings.enabledPlugins === undefined ? undefined : object(settings.enabledPlugins)[nativeId]);
|
|
83
|
+
}
|
|
84
|
+
function nativeSourceMatches(source, expected) {
|
|
85
|
+
return typeof source === 'string' && path.isAbsolute(source) && path.normalize(source) === path.normalize(expected);
|
|
86
|
+
}
|
|
87
|
+
/** Read both the materialized marketplace and declarations; a conflicting layer is never authority. */
|
|
88
|
+
async function claudeKnownMarketplace(binding, layout, pathMatches) {
|
|
89
|
+
const root = layout.physicalIdentity.namespaceRoot;
|
|
90
|
+
const name = layout.marketplaceName;
|
|
91
|
+
const expected = layout.marketplaceRoot;
|
|
92
|
+
const knownFile = path.join(root, 'plugins', 'known_marketplaces.json');
|
|
93
|
+
await assertSafeFileMutationPath({ filePath: knownFile, allowedRoot: root, label: 'Claude known marketplaces' });
|
|
94
|
+
const known = await jsonFile(knownFile);
|
|
95
|
+
const matches = (value) => {
|
|
96
|
+
if (typeof value === 'string')
|
|
97
|
+
return pathMatches(value, expected);
|
|
98
|
+
const descriptor = object(value);
|
|
99
|
+
if (descriptor.path !== undefined && !pathMatches(descriptor.path, expected)
|
|
100
|
+
|| descriptor.installLocation !== undefined && !pathMatches(descriptor.installLocation, expected))
|
|
101
|
+
return false;
|
|
102
|
+
if (descriptor.source && typeof descriptor.source === 'object')
|
|
103
|
+
return matches(descriptor.source);
|
|
104
|
+
return descriptor.source === 'directory' && pathMatches(descriptor.path, expected);
|
|
105
|
+
};
|
|
106
|
+
const registrations = [known[name], known.marketplaces === undefined ? undefined : object(known.marketplaces)[name]]
|
|
107
|
+
.filter((value) => value !== undefined);
|
|
108
|
+
for (const value of registrations) {
|
|
109
|
+
const entry = object(value);
|
|
110
|
+
if (entry.installLocation === undefined && entry.source === undefined
|
|
111
|
+
|| entry.path !== undefined && !pathMatches(entry.path, expected)
|
|
112
|
+
|| entry.installLocation !== undefined && !pathMatches(entry.installLocation, expected)
|
|
113
|
+
|| entry.source !== undefined && !matches(entry.source))
|
|
114
|
+
return 'foreign';
|
|
115
|
+
}
|
|
116
|
+
const settingsFiles = [{ file: path.join(root, 'settings.json'), allowedRoot: root }];
|
|
117
|
+
if (binding.scope.kind === 'project') {
|
|
118
|
+
for (const file of ['settings.json', 'settings.local.json']) {
|
|
119
|
+
settingsFiles.push({ file: path.join(binding.scope.projectRoot, '.claude', file), allowedRoot: binding.scope.projectRoot });
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
for (const { file, allowedRoot } of settingsFiles) {
|
|
123
|
+
await assertSafeFileMutationPath({ filePath: file, allowedRoot, label: 'Claude retirement settings' });
|
|
124
|
+
const settings = await jsonFile(file);
|
|
125
|
+
const declaration = settings.extraKnownMarketplaces === undefined ? undefined : object(settings.extraKnownMarketplaces)[name];
|
|
126
|
+
if (declaration !== undefined && !matches(declaration))
|
|
127
|
+
return 'foreign';
|
|
128
|
+
}
|
|
129
|
+
return registrations.length ? 'canonical' : 'absent';
|
|
130
|
+
}
|
|
131
|
+
/** Claude's disk list can include managed policy and local registrations hidden in other projects. */
|
|
132
|
+
function claudeInstalledRows(plugins, id, name, marketplace) {
|
|
133
|
+
const matches = [];
|
|
134
|
+
for (const [key, raw] of Object.entries(object(plugins))) {
|
|
135
|
+
for (const value of Array.isArray(raw) ? raw : [raw]) {
|
|
136
|
+
const row = object(value);
|
|
137
|
+
if (key !== id && !(row.marketplace === marketplace && (row.name ?? key) === name))
|
|
138
|
+
continue;
|
|
139
|
+
if (row.name !== undefined && row.name !== name || row.marketplace !== undefined && row.marketplace !== marketplace) {
|
|
140
|
+
throw new Error('nativeObservationInvalid');
|
|
141
|
+
}
|
|
142
|
+
matches.push(row);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return matches;
|
|
146
|
+
}
|
|
147
|
+
async function readRetirementConfiguration(binding, layout) {
|
|
148
|
+
const hostRoot = layout.physicalIdentity.namespaceRoot;
|
|
149
|
+
const scopeRoot = binding.scope.kind === 'project' ? binding.scope.projectRoot : hostRoot;
|
|
150
|
+
const id = layout.nativeIdentity.registrationId;
|
|
151
|
+
const market = layout.marketplaceName;
|
|
152
|
+
const files = binding.platform === 'codex' ? [path.join(hostRoot, 'config.toml'), path.join(layout.activationPath, 'config.toml')]
|
|
153
|
+
: [path.join(hostRoot, 'settings.json'), path.join(layout.activationPath, binding.scope.kind === 'project' ? 'settings.local.json' : 'settings.json'),
|
|
154
|
+
...(binding.platform === 'claude' ? [path.join(hostRoot, 'plugins', 'known_marketplaces.json'), path.join(hostRoot, 'plugins', 'installed_plugins.json')] : []),
|
|
155
|
+
...(binding.scope.kind === 'project' ? [path.join(layout.activationPath, 'settings.json')] : [])];
|
|
156
|
+
let installed;
|
|
157
|
+
const section = (value, key) => value === undefined ? null : object(value)[key] ?? null;
|
|
158
|
+
const contents = await Promise.all([...new Set(files)].map(async (filePath) => {
|
|
159
|
+
await assertSafeFileMutationPath({ filePath, allowedRoot: filePath.startsWith(`${hostRoot}${path.sep}`) ? hostRoot : scopeRoot,
|
|
160
|
+
label: 'Native retirement configuration' });
|
|
161
|
+
if (binding.platform === 'codex') {
|
|
162
|
+
const config = await readCodexConfigFile(filePath);
|
|
163
|
+
const registration = config.snapshot.marketplaces[market];
|
|
164
|
+
return { registration: registration ? [registration.sourceType, registration.source] : null,
|
|
165
|
+
activation: readCodexPluginTable(config.content, id) };
|
|
166
|
+
}
|
|
167
|
+
if (path.basename(filePath) === 'installed_plugins.json') {
|
|
168
|
+
const raw = await fs.readFile(filePath, 'utf8').catch((error) => {
|
|
169
|
+
if (error.code === 'ENOENT')
|
|
170
|
+
return null;
|
|
171
|
+
throw error;
|
|
172
|
+
});
|
|
173
|
+
if (raw !== null) {
|
|
174
|
+
const plugins = object(JSON.parse(raw)).plugins;
|
|
175
|
+
installed = claudeInstalledRows(plugins === undefined ? {} : plugins, id, layout.nativeIdentity.packageId, market);
|
|
176
|
+
}
|
|
177
|
+
return installed ?? [];
|
|
178
|
+
}
|
|
179
|
+
const config = await jsonFile(filePath);
|
|
180
|
+
if (path.basename(filePath) === 'known_marketplaces.json') {
|
|
181
|
+
return [config[market], section(config.marketplaces, market)].map((value) => {
|
|
182
|
+
if (value === null || value === undefined)
|
|
183
|
+
return null;
|
|
184
|
+
const { source, path: sourcePath, installLocation } = object(value);
|
|
185
|
+
return { source, sourcePath, installLocation };
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
return { activation: section(config.enabledPlugins, id), marketplace: section(config.extraKnownMarketplaces, market) };
|
|
189
|
+
}));
|
|
190
|
+
return { fingerprint: identityDigest(contents), installed };
|
|
191
|
+
}
|
|
192
|
+
/** Antigravity lists a source type and a copied package path, not the AW source directory. */
|
|
193
|
+
async function inspectAntigravityCopy(binding, layout, result, rows) {
|
|
194
|
+
const matches = rows.filter((row) => row.name === layout.nativeIdentity.packageId);
|
|
195
|
+
if (matches.length > 1)
|
|
196
|
+
throw new Error('nativeIdentityDuplicate');
|
|
197
|
+
result.registration = matches.length ? 'present' : 'absent';
|
|
198
|
+
const row = matches[0];
|
|
199
|
+
const cli = selectNativeProduct(binding.consumers);
|
|
200
|
+
const consumer = result.consumers.find(({ productId }) => productId === cli?.id);
|
|
201
|
+
if (!row) {
|
|
202
|
+
if (consumer)
|
|
203
|
+
consumer.activation = 'disabled';
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
if (typeof row.enabled !== 'boolean')
|
|
207
|
+
throw new Error('nativeActivationInvalid');
|
|
208
|
+
if (consumer)
|
|
209
|
+
consumer.activation = row.enabled ? 'enabled' : 'disabled';
|
|
210
|
+
const root = layout.physicalIdentity.namespaceRoot;
|
|
211
|
+
const directory = path.join(root, 'plugins', layout.nativeIdentity.packageId);
|
|
212
|
+
if (row.source !== 'antigravity' || row.path !== directory) {
|
|
213
|
+
result.ownership = 'foreign';
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
if (rows.some((other) => other !== row && nativeSourceMatches(other.path, directory))) {
|
|
217
|
+
result.ownership = 'shared';
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
const component = { kind: 'owned-directory', path: directory, allowedRoot: root,
|
|
221
|
+
identity: { owner: 'agent-workflows', plugin: layout.nativeIdentity.packageId,
|
|
222
|
+
sourceId: binding.plugin.sourceId, sourceIdentity: binding.plugin.sourceIdentity, pluginId: binding.plugin.pluginId,
|
|
223
|
+
platform: binding.platform, scope: binding.scope.kind, physicalKey: binding.physicalKey, artifactKey: path.basename(layout.packageRoot) } };
|
|
224
|
+
const inspected = (await inspectOwnedComponents({ components: [component] })).components[0];
|
|
225
|
+
result.nativePackage = inspected.state === 'absent' ? 'absent'
|
|
226
|
+
: inspected.state === 'error' ? 'unknown' : 'present';
|
|
227
|
+
if (inspected.state !== 'present') {
|
|
228
|
+
result.ownership = inspected.state === 'foreign' ? 'foreign' : 'unknown';
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
const marker = await readSkillOwnerMarker({ skillRoot: directory, allowedRoot: root, expectedIdentity: component.identity });
|
|
232
|
+
const digest = await readPlatformPackageContentDigest(directory);
|
|
233
|
+
if (!marker?.nativeProjection || getPhysicalKey(marker.nativeProjection.physicalIdentity) !== binding.physicalKey
|
|
234
|
+
|| !digest || digest !== marker.nativeProjection.contentDigest) {
|
|
235
|
+
result.ownership = 'unknown';
|
|
236
|
+
result.diagnostics.push({ code: 'nativePackageContentUnconfirmed', severity: 'warning',
|
|
237
|
+
message: 'The Antigravity copy has unconfirmed content. Keep local data and check its ownership before retrying.',
|
|
238
|
+
subject: { target: binding.platform, pluginId: binding.plugin.pluginId, scope: binding.scope.kind } });
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
// The copy's own exact owner remains usable for removal if the AW source is missing.
|
|
242
|
+
if (result.ownership === 'absent')
|
|
243
|
+
result.ownership = 'aw';
|
|
244
|
+
if (result.ownership !== 'aw')
|
|
245
|
+
return;
|
|
246
|
+
result.nativePackageContentDigest = digest;
|
|
247
|
+
const sourceDigest = await readPlatformPackageContentDigest(layout.packageRoot);
|
|
248
|
+
const reason = !sourceDigest ? 'nativePackageContentUnconfirmed' : sourceDigest !== digest ? 'nativePackageContentDrift' : null;
|
|
249
|
+
if (reason) {
|
|
250
|
+
result.components = result.components.map((component) => ({ ...component, presence: 'unknown', reasonCodes: [...component.reasonCodes, reason] }));
|
|
251
|
+
result.diagnostics.push({ code: reason, severity: 'warning',
|
|
252
|
+
message: 'The Antigravity copy does not confirm the current AW package bytes. Run sync to refresh the native copy.',
|
|
253
|
+
subject: { target: binding.platform, pluginId: binding.plugin.pluginId, scope: binding.scope.kind } });
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/** Only documented local-directory marketplace sources can establish ownership. */
|
|
257
|
+
export async function inspectClaudeMarketplaceSource(ctx, binding, name, root, pathMatches = nativeSourceMatches) {
|
|
258
|
+
const inventory = rows(await queryNativeDeployment(ctx, binding, ['plugin', 'marketplace', 'list', '--json']));
|
|
259
|
+
if (ctx.confirmedCatalogRetirement && inventory.some((row) => typeof row.name !== 'string' || !row.name))
|
|
260
|
+
throw new Error('nativeObservationInvalid');
|
|
261
|
+
const matching = inventory.filter((row) => row.name === name);
|
|
262
|
+
if (!matching.length)
|
|
263
|
+
return 'absent';
|
|
264
|
+
if (matching.length !== 1)
|
|
265
|
+
throw new Error('nativeIdentityDuplicate');
|
|
266
|
+
const row = matching[0];
|
|
267
|
+
return row.source === 'directory' && pathMatches(row.path, root)
|
|
268
|
+
&& (row.installLocation === undefined || pathMatches(row.installLocation, root)) ? 'canonical' : 'foreign';
|
|
269
|
+
}
|
|
270
|
+
export async function inspectCopilotMarketplaceSource(ctx, binding, name, root, pathMatches = nativeSourceMatches) {
|
|
271
|
+
const value = JSON.parse(await queryNativeDeployment(ctx, binding, ['plugin', 'marketplace', 'list', '--json']));
|
|
272
|
+
if (!Array.isArray(value))
|
|
273
|
+
return 'unknown';
|
|
274
|
+
const rows = value.map(object);
|
|
275
|
+
if (rows.some((row) => typeof row.name !== 'string'))
|
|
276
|
+
return 'unknown';
|
|
277
|
+
const matching = rows.filter((row) => row.name === name);
|
|
278
|
+
if (!matching.length)
|
|
279
|
+
return 'absent';
|
|
280
|
+
if (matching.length !== 1)
|
|
281
|
+
return 'unknown';
|
|
282
|
+
const source = matching[0].source;
|
|
283
|
+
if (typeof source === 'string') {
|
|
284
|
+
// Copilot 1.0.95 renders directory sources with this display prefix.
|
|
285
|
+
const location = source.startsWith('Local: ') ? source.slice('Local: '.length) : source;
|
|
286
|
+
return pathMatches(location, root) ? 'canonical' : 'foreign';
|
|
287
|
+
}
|
|
288
|
+
if (!source || typeof source !== 'object' || Array.isArray(source))
|
|
289
|
+
return 'unknown';
|
|
290
|
+
const descriptor = source;
|
|
291
|
+
if (descriptor.source !== 'directory')
|
|
292
|
+
return typeof descriptor.source === 'string' ? 'foreign' : 'unknown';
|
|
293
|
+
return pathMatches(descriptor.path, root) ? 'canonical' : 'foreign';
|
|
294
|
+
}
|
|
295
|
+
export async function inspectNativeDeployment(ctx, binding, layout, result) {
|
|
296
|
+
const nativeId = layout.nativeIdentity.registrationId ?? layout.nativeIdentity.packageId;
|
|
297
|
+
const retirement = ctx.confirmedCatalogRetirement && sharedMarketplaceRoute(binding)
|
|
298
|
+
? { marketplaceProof: await inspectRetirementMarketplace(ctx, binding, layout) } : undefined;
|
|
299
|
+
let pathMatches = nativeSourceMatches;
|
|
300
|
+
let diskRegistrations;
|
|
301
|
+
if (retirement) {
|
|
302
|
+
result.retirement = retirement;
|
|
303
|
+
try {
|
|
304
|
+
const awHome = resolveAwHome(ctx.env);
|
|
305
|
+
const canonicalAwHome = await canonicalNamespaceRoot(awHome);
|
|
306
|
+
pathMatches = (source, expected) => canonicalMarketplaceRegistrationPath(source, awHome, canonicalAwHome) === expected;
|
|
307
|
+
const config = await readRetirementConfiguration(binding, layout);
|
|
308
|
+
retirement.configurationFingerprint = config.fingerprint;
|
|
309
|
+
diskRegistrations = config.installed;
|
|
310
|
+
if (diskRegistrations?.some(({ scope }) => scope === 'managed')) {
|
|
311
|
+
retirement.claudeRegistrations = { local: false, user: false, managed: true, unsupported: true };
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
catch (error) {
|
|
315
|
+
rethrowFatalError(error);
|
|
316
|
+
ctx.signal?.throwIfAborted();
|
|
317
|
+
if (result.ownership !== 'foreign' && result.ownership !== 'shared')
|
|
318
|
+
result.ownership = 'unknown';
|
|
319
|
+
diagnostic(result, binding, 'nativeConfigurationUnreadable', 'Retirement configuration could not be verified.');
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
switch (binding.route) {
|
|
323
|
+
case 'codex-marketplace': {
|
|
324
|
+
await inspectConfiguration(ctx, binding, result, async () => {
|
|
325
|
+
const config = await readCodexConfigFile(path.join(layout.activationPath, 'config.toml'));
|
|
326
|
+
const host = binding.scope.kind === 'user' ? config : await readCodexConfigFile(path.join(layout.physicalIdentity.namespaceRoot, 'config.toml'));
|
|
327
|
+
const marketplaces = [host.snapshot, config.snapshot].map((snapshot) => snapshot.marketplaces[layout.marketplaceName]).filter((entry) => entry !== undefined);
|
|
328
|
+
const canonical = (entry) => retirement
|
|
329
|
+
? entry.sourceType === 'local' && !entry.sourcePointsToManifest && pathMatches(entry.source, layout.marketplaceRoot)
|
|
330
|
+
: isCanonicalCodexMarketplaceRegistration(entry, layout.marketplaceRoot);
|
|
331
|
+
const marketplace = marketplaces.some((entry) => !canonical(entry))
|
|
332
|
+
? 'foreign' : marketplaces.length ? 'canonical' : 'absent';
|
|
333
|
+
if (marketplace === 'foreign')
|
|
334
|
+
result.ownership = 'foreign';
|
|
335
|
+
if (retirement) {
|
|
336
|
+
const entry = host.snapshot.plugins[nativeId];
|
|
337
|
+
retirement.userActivation = entry && entry.enabled === undefined ? 'unknown' : configuredActivation(entry?.enabled);
|
|
338
|
+
const registration = host.snapshot.marketplaces[layout.marketplaceName];
|
|
339
|
+
retirement.userMarketplace = registration ? canonical(registration)
|
|
340
|
+
? 'canonical' : 'foreign' : 'absent';
|
|
341
|
+
if (config.snapshot.plugins[nativeId] && config.snapshot.plugins[nativeId].enabled === undefined)
|
|
342
|
+
throw new Error('nativeActivationInvalid');
|
|
343
|
+
}
|
|
344
|
+
return { activation: configuredActivation(config.snapshot.plugins[nativeId]?.enabled), marketplace };
|
|
345
|
+
});
|
|
346
|
+
const product = selectNativeProduct(binding.consumers);
|
|
347
|
+
if (!product || product.entry?.kind !== 'cli') {
|
|
348
|
+
result.registration = 'unknown';
|
|
349
|
+
setActivation(result, 'unknown');
|
|
350
|
+
result.diagnostics.push({ code: 'nativeEntryUnavailable', severity: 'warning',
|
|
351
|
+
message: 'The native client is unavailable. Its registration and effective activation are unknown.',
|
|
352
|
+
subject: { target: binding.platform, pluginId: binding.plugin.pluginId, scope: binding.scope.kind } });
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
const invocation = await installationInvocation(product, ctx, []);
|
|
356
|
+
const manager = { kind: product.product === 'app' ? 'app' : 'system',
|
|
357
|
+
version: product.version ?? 'unknown', command: invocation.command, argsPrefix: invocation.args };
|
|
358
|
+
const session = ctx.codexObservationSession ?? await createCodexNativeObservationSession({ exactCwd: binding.scope.kind === 'project' ? binding.scope.projectRoot : ctx.cwd,
|
|
359
|
+
env: ctx.env ?? process.env, manager, runner: ctx.runner, probe: { platform: ctx.platform, signal: ctx.signal } });
|
|
360
|
+
try {
|
|
361
|
+
// inspectPlugin binds both list invocations synchronously before yielding.
|
|
362
|
+
// A concurrent product can invalidate the cache, not change these reads.
|
|
363
|
+
session.setManager(manager);
|
|
364
|
+
const observed = await session.inspectPlugin({ pluginId: nativeId, scope: binding.scope.kind });
|
|
365
|
+
const active = observed.activations[binding.scope.kind];
|
|
366
|
+
setActivation(result, active === true ? 'enabled' : active === false ? 'disabled' : 'unknown');
|
|
367
|
+
if (binding.scope.kind === 'project' && active !== undefined) {
|
|
368
|
+
// Both lists can report enabled from User inheritance alone.
|
|
369
|
+
const independent = active === true && observed.observations.user && observed.activations.user !== true;
|
|
370
|
+
result.scopeActivation = independent ? 'enabled' : active === false ? 'disabled' : 'unknown';
|
|
371
|
+
}
|
|
372
|
+
if (observed.observation.state !== 'observed') {
|
|
373
|
+
result.registration = !retirement && (observed.activations.user !== undefined || observed.activations.project !== undefined) ? 'present' : 'unknown';
|
|
374
|
+
result.diagnostics.push({ code: observed.observation.state === 'failed' ? 'nativeObservationFailed' : 'nativeObservationUnconfirmed',
|
|
375
|
+
severity: 'warning', message: 'The selected native client could not confirm its registration.',
|
|
376
|
+
subject: { target: binding.platform, pluginId: binding.plugin.pluginId, scope: binding.scope.kind } });
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
result.registration = observed.observation.value === 'installed' ? 'present' : 'absent';
|
|
380
|
+
if (binding.scope.kind === 'project' && result.registration === 'present'
|
|
381
|
+
&& (active === undefined || result.scopeActivation === 'unknown')) {
|
|
382
|
+
diagnostic(result, binding, 'codexProjectActivationUnconfirmed', 'The scoped Codex plugin list did not confirm the required Project activation. Check the workspace configuration in Codex.');
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
finally {
|
|
386
|
+
if (!ctx.codexObservationSession)
|
|
387
|
+
await session.dispose();
|
|
388
|
+
}
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
case 'claude-marketplace': {
|
|
392
|
+
result.scopeRegistration = 'unknown';
|
|
393
|
+
await inspectConfiguration(ctx, binding, result, async () => {
|
|
394
|
+
if (retirement) {
|
|
395
|
+
retirement.claudeKnownMarketplace = await claudeKnownMarketplace(binding, layout, pathMatches);
|
|
396
|
+
if (retirement.claudeKnownMarketplace === 'foreign')
|
|
397
|
+
result.ownership = 'foreign';
|
|
398
|
+
}
|
|
399
|
+
const settings = await jsonFile(path.join(layout.activationPath, binding.scope.kind === 'project' ? 'settings.local.json' : 'settings.json'));
|
|
400
|
+
return { activation: configuredActivation(settings.enabledPlugins === undefined ? undefined : object(settings.enabledPlugins)[nativeId], true) };
|
|
401
|
+
});
|
|
402
|
+
const [marketplaceRead, pluginsRead] = await Promise.allSettled([
|
|
403
|
+
inspectClaudeMarketplaceSource(ctx, binding, layout.marketplaceName, layout.marketplaceRoot, pathMatches),
|
|
404
|
+
queryNativeDeployment(ctx, binding, ['plugin', 'list', '--json']),
|
|
405
|
+
]);
|
|
406
|
+
if (marketplaceRead.status === 'rejected') {
|
|
407
|
+
rethrowFatalError(marketplaceRead.reason);
|
|
408
|
+
ctx.signal?.throwIfAborted();
|
|
409
|
+
if (!['foreign', 'shared'].includes(result.ownership))
|
|
410
|
+
result.ownership = 'unknown';
|
|
411
|
+
result.diagnostics.push(marketplaceReadDiagnostic(binding, marketplaceRead.reason));
|
|
412
|
+
}
|
|
413
|
+
else if (marketplaceRead.value === 'foreign')
|
|
414
|
+
result.ownership = 'foreign';
|
|
415
|
+
if (retirement && result.configuration)
|
|
416
|
+
result.configuration.marketplace = marketplaceRead.status === 'fulfilled' ? marketplaceRead.value : 'unknown';
|
|
417
|
+
if (pluginsRead.status === 'rejected')
|
|
418
|
+
throw pluginsRead.reason;
|
|
419
|
+
const inventory = rows(pluginsRead.value);
|
|
420
|
+
if (retirement && inventory.some((row) => typeof row.id !== 'string' || !row.id || typeof row.scope !== 'string')) {
|
|
421
|
+
throw new Error('nativeObservationInvalid');
|
|
422
|
+
}
|
|
423
|
+
if (inventory.some((row) => row.id === layout.nativeIdentity.packageId))
|
|
424
|
+
result.ownership = 'foreign';
|
|
425
|
+
const projectRoot = binding.scope.kind === 'project' ? binding.scope.projectRoot : undefined;
|
|
426
|
+
const projectKey = retirement && projectRoot ? await resolveClaudeProjectKey(projectRoot) : undefined;
|
|
427
|
+
const validProjectPath = (value) => typeof value === 'string' && path.isAbsolute(value)
|
|
428
|
+
&& !value.split(/[\\/]/u).includes('..');
|
|
429
|
+
// Project scope denotes a physical workspace, not an AW marketplace
|
|
430
|
+
// location. Resolve aliases in both inventories without reading other
|
|
431
|
+
// projects' configuration or relaxing the marketplace path matcher.
|
|
432
|
+
const scopedRows = async (records) => {
|
|
433
|
+
const matching = [];
|
|
434
|
+
for (const row of records) {
|
|
435
|
+
if (row.scope === 'user' || row.scope === 'managed')
|
|
436
|
+
matching.push(row);
|
|
437
|
+
else if (projectRoot && ['project', 'local'].includes(String(row.scope))
|
|
438
|
+
&& (retirement ? validProjectPath(row.projectPath) && await resolveClaudeProjectKey(row.projectPath) === projectKey
|
|
439
|
+
: nativeSourceMatches(row.projectPath, projectRoot)))
|
|
440
|
+
matching.push(row);
|
|
441
|
+
}
|
|
442
|
+
return matching;
|
|
443
|
+
};
|
|
444
|
+
const all = inventory.filter((row) => row.id === nativeId);
|
|
445
|
+
const matching = await scopedRows(all);
|
|
446
|
+
result.registration = matching.length ? 'present' : 'absent';
|
|
447
|
+
result.scopeRegistration = matching.some((row) => row.scope === (binding.scope.kind === 'user' ? 'user' : 'local')) ? 'present' : 'absent';
|
|
448
|
+
if (retirement) {
|
|
449
|
+
const disk = diskRegistrations && await scopedRows(diskRegistrations);
|
|
450
|
+
const allRegistrations = [...all, ...(diskRegistrations ?? [])];
|
|
451
|
+
const invalidScope = (row) => !['local', 'project', 'user', 'managed'].includes(String(row.scope))
|
|
452
|
+
|| ['local', 'project'].includes(String(row.scope)) && !validProjectPath(row.projectPath);
|
|
453
|
+
const scopes = (records) => records.map(({ scope }) => String(scope)).sort().join(',');
|
|
454
|
+
retirement.claudeRegistrations = {
|
|
455
|
+
local: matching.some((row) => row.scope === 'local'), user: matching.some((row) => row.scope === 'user'),
|
|
456
|
+
managed: allRegistrations.some((row) => row.scope === 'managed'),
|
|
457
|
+
unsupported: allRegistrations.some(invalidScope) || matching.some((row) => row.scope === 'project')
|
|
458
|
+
|| new Set(matching.map(({ scope }) => scope)).size !== matching.length
|
|
459
|
+
|| disk !== undefined && scopes(disk) !== scopes(matching),
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
const states = matching.map((row) => row.enabled);
|
|
463
|
+
setActivation(result, states.length && states.every((enabled) => enabled === true) ? 'enabled'
|
|
464
|
+
: states.length && states.every((enabled) => enabled === false) ? 'disabled' : 'unknown');
|
|
465
|
+
// The native path identifies the actual folder used for in-place loading.
|
|
466
|
+
if (matching.some((row) => row.readFromFolder !== undefined && !pathMatches(row.readFromFolder, layout.packageRoot)))
|
|
467
|
+
result.ownership = 'foreign';
|
|
468
|
+
if (matching.length && marketplaceRead.status === 'fulfilled' && marketplaceRead.value === 'absent'
|
|
469
|
+
&& matching.some((row) => !pathMatches(row.readFromFolder, layout.packageRoot))
|
|
470
|
+
&& !['foreign', 'shared'].includes(result.ownership))
|
|
471
|
+
result.ownership = 'unknown';
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
case 'antigravity-cli': {
|
|
475
|
+
const value = JSON.parse(await queryNativeDeployment(ctx, binding, ['plugin', 'list', '--json']));
|
|
476
|
+
if (!Array.isArray(value) || value.length > 4096)
|
|
477
|
+
throw new Error('nativeObservationInvalid');
|
|
478
|
+
await inspectAntigravityCopy(binding, layout, result, value.map(object));
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
case 'copilot-marketplace': {
|
|
482
|
+
const settingsPath = path.join(layout.activationPath, binding.scope.kind === 'project' ? 'settings.local.json' : 'settings.json');
|
|
483
|
+
await inspectConfiguration(ctx, binding, result, async () => {
|
|
484
|
+
if (retirement) {
|
|
485
|
+
retirement.userActivation = await copilotConfiguredActivation(path.join(layout.physicalIdentity.namespaceRoot, 'settings.json'), nativeId);
|
|
486
|
+
}
|
|
487
|
+
return { activation: await copilotConfiguredActivation(settingsPath, nativeId) };
|
|
488
|
+
});
|
|
489
|
+
// These inventories are independent. Finish both reads before returning,
|
|
490
|
+
// including when one fails, so no native read outlives this inspection.
|
|
491
|
+
const [marketplaceRead, pluginsRead] = await Promise.allSettled([
|
|
492
|
+
inspectCopilotMarketplaceSource(ctx, binding, layout.marketplaceName, layout.marketplaceRoot, pathMatches),
|
|
493
|
+
queryNativeDeployment(ctx, binding, ['plugin', 'list', '--json']),
|
|
494
|
+
]);
|
|
495
|
+
const marketplace = marketplaceRead.status === 'fulfilled' ? marketplaceRead.value : 'unknown';
|
|
496
|
+
if (retirement && result.configuration)
|
|
497
|
+
result.configuration.marketplace = marketplace;
|
|
498
|
+
if (marketplaceRead.status === 'rejected') {
|
|
499
|
+
const error = marketplaceRead.reason;
|
|
500
|
+
rethrowFatalError(error);
|
|
501
|
+
ctx.signal?.throwIfAborted();
|
|
502
|
+
result.diagnostics.push(marketplaceReadDiagnostic(binding, error));
|
|
503
|
+
}
|
|
504
|
+
if (marketplace === 'foreign')
|
|
505
|
+
result.ownership = 'foreign';
|
|
506
|
+
if (marketplace === 'unknown' && !['foreign', 'shared'].includes(result.ownership))
|
|
507
|
+
result.ownership = 'unknown';
|
|
508
|
+
if (pluginsRead.status === 'rejected')
|
|
509
|
+
throw pluginsRead.reason;
|
|
510
|
+
const inventory = rows(pluginsRead.value);
|
|
511
|
+
if (retirement && inventory.some((row) => typeof row.name !== 'string' || !row.name
|
|
512
|
+
|| row.name === layout.nativeIdentity.packageId && typeof row.marketplace !== 'string')) {
|
|
513
|
+
throw new Error('nativeObservationInvalid');
|
|
514
|
+
}
|
|
515
|
+
const matches = inventory.filter((row) => row.name === layout.nativeIdentity.packageId && row.marketplace === layout.marketplaceName);
|
|
516
|
+
if (matches.length > 1)
|
|
517
|
+
throw new Error('nativeIdentityDuplicate');
|
|
518
|
+
const row = matches[0];
|
|
519
|
+
result.registration = row ? 'present' : 'absent';
|
|
520
|
+
if (!row)
|
|
521
|
+
break;
|
|
522
|
+
const sources = row.source === 'live' ? [row.installedFrom] : [row.source, row.installedFrom].filter((value) => value !== undefined);
|
|
523
|
+
const foreignSource = sources.some((value) => typeof value === 'string' && path.isAbsolute(value) && !pathMatches(value, layout.marketplaceRoot));
|
|
524
|
+
if (retirement && row.source !== 'live' && foreignSource)
|
|
525
|
+
result.ownership = 'foreign';
|
|
526
|
+
if (row.source === 'live') {
|
|
527
|
+
const location = row.installedFrom;
|
|
528
|
+
const exactSource = pathMatches(location, layout.marketplaceRoot);
|
|
529
|
+
if (!exactSource && typeof location === 'string' && path.isAbsolute(location))
|
|
530
|
+
result.ownership = 'foreign';
|
|
531
|
+
else if ((!exactSource || marketplace !== 'canonical') && !['foreign', 'shared'].includes(result.ownership))
|
|
532
|
+
result.ownership = 'unknown';
|
|
533
|
+
if (exactSource && marketplace === 'canonical' && row.enabled === false && result.package === 'absent'
|
|
534
|
+
&& result.ownership === 'absent' && result.configuration?.activation === 'absent') {
|
|
535
|
+
// Registering a local marketplace can list its unpublished siblings.
|
|
536
|
+
// Require the exact source, missing live package and no scope entry.
|
|
537
|
+
if (binding.scope.kind === 'user') {
|
|
538
|
+
result.registration = 'absent';
|
|
539
|
+
break;
|
|
540
|
+
}
|
|
541
|
+
const otherActivations = await Promise.all([
|
|
542
|
+
copilotConfiguredActivation(path.join(layout.physicalIdentity.namespaceRoot, 'settings.json'), nativeId),
|
|
543
|
+
copilotConfiguredActivation(path.join(layout.activationPath, 'settings.json'), nativeId),
|
|
544
|
+
]).catch((error) => {
|
|
545
|
+
rethrowFatalError(error);
|
|
546
|
+
ctx.signal?.throwIfAborted();
|
|
547
|
+
result.registration = 'unknown';
|
|
548
|
+
result.ownership = 'unknown';
|
|
549
|
+
diagnostic(result, binding, 'nativeConfigurationUnreadable', 'The other Copilot settings layers could not be read. Registration is unknown.');
|
|
550
|
+
return null;
|
|
551
|
+
});
|
|
552
|
+
if (!otherActivations)
|
|
553
|
+
break;
|
|
554
|
+
if (otherActivations.every((activation) => activation === 'absent')) {
|
|
555
|
+
result.registration = 'absent';
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
else if (marketplace !== 'canonical' && !pathMatches(row.source, layout.marketplaceRoot)
|
|
561
|
+
&& !pathMatches(row.installedFrom, layout.marketplaceRoot) && !['foreign', 'shared'].includes(result.ownership)) {
|
|
562
|
+
// Unrecognized source shapes remain unknown and cannot authorize mutation.
|
|
563
|
+
result.ownership = 'unknown';
|
|
564
|
+
}
|
|
565
|
+
// An incomplete row can denote the same identity even though the exact-name filter skipped it.
|
|
566
|
+
const ambiguous = inventory.some((other) => other !== row
|
|
567
|
+
&& (typeof other.name !== 'string' || !other.name.trim() || other.name === row.name)
|
|
568
|
+
&& (typeof other.marketplace !== 'string' || !other.marketplace.trim() || other.marketplace === row.marketplace));
|
|
569
|
+
const canonical = !ambiguous && sources.length > 0 && sources.every((value) => pathMatches(value, layout.marketplaceRoot));
|
|
570
|
+
result.copilotRegistration = { marketplace, source: foreignSource ? 'foreign' : canonical ? 'canonical' : 'unknown' };
|
|
571
|
+
setActivation(result, row.enabled === true ? 'enabled' : row.enabled === false ? 'disabled' : 'unknown');
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
case 'pi-package':
|
|
575
|
+
await inspectPiDeployment(ctx, binding, layout, result);
|
|
576
|
+
break;
|
|
577
|
+
case 'grok-cli':
|
|
578
|
+
case 'grok-directory':
|
|
579
|
+
await inspectGrokDeployment(ctx, binding, layout, result);
|
|
580
|
+
break;
|
|
581
|
+
default: break;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
//# sourceMappingURL=inspection-native.js.map
|