@lesliechan721/aw 0.1.0-beta.10 → 0.1.0-beta.101
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 +26 -5
- package/dist/src/commands/catalog-source.js +154 -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 +35 -7
- package/dist/src/commands/catalog-store.js +469 -79
- 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 +35 -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 +408 -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 +107 -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 +28 -0
- package/dist/src/commands/public-lifecycle.js +633 -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 +235 -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 +3374 -1558
- 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 +7 -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 +210 -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 +3 -34
- package/dist/src/index.js +1711 -1935
- 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/cli-progress.d.ts +30 -0
- package/dist/src/output/cli-progress.js +424 -0
- package/dist/src/output/cli-progress.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/model.d.ts +123 -1
- package/dist/src/output/model.js +45 -1
- package/dist/src/output/model.js.map +1 -1
- package/dist/src/output/public-command-ids.d.ts +8 -0
- package/dist/src/output/public-command-ids.js +38 -0
- package/dist/src/output/public-command-ids.js.map +1 -0
- package/dist/src/output/public-result.d.ts +71 -0
- package/dist/src/output/public-result.js +40 -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 +670 -0
- package/dist/src/output/receipt-projection.js.map +1 -0
- package/dist/src/output/render/document.d.ts +55 -0
- package/dist/src/output/render/document.js +176 -0
- package/dist/src/output/render/document.js.map +1 -0
- package/dist/src/output/render/shared.d.ts +18 -0
- package/dist/src/output/render/shared.js +245 -0
- package/dist/src/output/render/shared.js.map +1 -0
- package/dist/src/output/render/style.d.ts +45 -0
- package/dist/src/output/render/style.js +155 -0
- package/dist/src/output/render/style.js.map +1 -0
- package/dist/src/output/render/views/commands-self.d.ts +6 -0
- package/dist/src/output/render/views/commands-self.js +210 -0
- package/dist/src/output/render/views/commands-self.js.map +1 -0
- package/dist/src/output/render/views/config.d.ts +2 -0
- package/dist/src/output/render/views/config.js +203 -0
- package/dist/src/output/render/views/config.js.map +1 -0
- package/dist/src/output/render/views/dev.d.ts +2 -0
- package/dist/src/output/render/views/dev.js +278 -0
- package/dist/src/output/render/views/dev.js.map +1 -0
- package/dist/src/output/render/views/fallback.d.ts +2 -0
- package/dist/src/output/render/views/fallback.js +6 -0
- package/dist/src/output/render/views/fallback.js.map +1 -0
- package/dist/src/output/render/views/index.d.ts +3 -0
- package/dist/src/output/render/views/index.js +79 -0
- package/dist/src/output/render/views/index.js.map +1 -0
- package/dist/src/output/render/views/lifecycle.d.ts +5 -0
- package/dist/src/output/render/views/lifecycle.js +170 -0
- package/dist/src/output/render/views/lifecycle.js.map +1 -0
- package/dist/src/output/render/views/sources-cache.d.ts +3 -0
- package/dist/src/output/render/views/sources-cache.js +322 -0
- package/dist/src/output/render/views/sources-cache.js.map +1 -0
- package/dist/src/output/render/views/targets.d.ts +2 -0
- package/dist/src/output/render/views/targets.js +82 -0
- package/dist/src/output/render/views/targets.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 +796 -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 +1629 -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 +1728 -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 +312 -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 +504 -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.d.ts +1 -0
- package/dist/src/utils/aw-home-mutation-lock.js +28 -6
- 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 +25 -2
- package/dist/src/utils/catalog-generation-service.js +99 -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 +5 -0
- package/dist/src/utils/catalog-generation-store.js +69 -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 +11 -0
- package/dist/src/utils/native-cli-interruption.js +106 -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.d.ts +1 -0
- package/dist/src/utils/process-lock.js +22 -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
|
@@ -1,17 +1,54 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { tryParseStrictSemVer } from './manifest.js';
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
3
|
+
/** Lexical local-directory identity only; this never resolves filesystem aliases. */
|
|
4
|
+
export function codexMarketplacePathKey(value, platform = process.platform) {
|
|
5
|
+
if (typeof value !== 'string' || value.includes('\0'))
|
|
6
|
+
return undefined;
|
|
7
|
+
if (platform !== 'win32')
|
|
8
|
+
return path.posix.isAbsolute(value) ? path.posix.resolve(value) : undefined;
|
|
9
|
+
let local = value;
|
|
10
|
+
if (local.startsWith('\\\\?\\')) {
|
|
11
|
+
local = local.slice(4);
|
|
12
|
+
if (local.startsWith('UNC\\'))
|
|
13
|
+
local = `\\\\${local.slice(4)}`;
|
|
14
|
+
// Verbatim paths do not interpret slash or dot components as DOS paths do.
|
|
15
|
+
if (local.includes('/'))
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
else
|
|
19
|
+
local = local.replaceAll('/', '\\');
|
|
20
|
+
let root;
|
|
21
|
+
let components;
|
|
22
|
+
if (/^[A-Za-z]:\\/u.test(local)) {
|
|
23
|
+
root = `${local[0].toUpperCase()}:\\`;
|
|
24
|
+
components = local.slice(3).split('\\');
|
|
25
|
+
}
|
|
26
|
+
else if (local.startsWith('\\\\')) {
|
|
27
|
+
const parts = local.slice(2).split('\\');
|
|
28
|
+
if (parts.length < 2)
|
|
29
|
+
return undefined;
|
|
30
|
+
root = `\\\\${parts[0]}\\${parts[1]}`;
|
|
31
|
+
components = parts.slice(2);
|
|
32
|
+
if (parts.slice(0, 2).some((part) => !part || /[\u0000-\u001f<>:"/\\|?*]/u.test(part)
|
|
33
|
+
|| part === '.' || part === '..' || /[. ]$/u.test(part)))
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
else
|
|
37
|
+
return undefined;
|
|
38
|
+
if (components.at(-1) === '')
|
|
39
|
+
components.pop();
|
|
40
|
+
if (components.some((part) => !part || part === '.' || part === '..'
|
|
41
|
+
|| /[\u0000-\u001f<>:"/\\|?*]/u.test(part) || /[. ]$/u.test(part)
|
|
42
|
+
|| /^(?:con|prn|aux|nul|com[1-9¹²³]|lpt[1-9¹²³])(?:\.|$)/iu.test(part)))
|
|
43
|
+
return undefined;
|
|
44
|
+
return components.length ? `${root}${root.endsWith('\\') ? '' : '\\'}${components.join('\\')}` : root;
|
|
6
45
|
}
|
|
7
|
-
export function isCanonicalCodexMarketplaceRegistration(registration, canonicalMarketplaceRoot) {
|
|
46
|
+
export function isCanonicalCodexMarketplaceRegistration(registration, canonicalMarketplaceRoot, platform = process.platform) {
|
|
47
|
+
const expected = codexMarketplacePathKey(canonicalMarketplaceRoot, platform);
|
|
8
48
|
return registration?.sourceType === 'local'
|
|
9
49
|
&& registration.sourcePointsToManifest === false
|
|
10
|
-
&&
|
|
11
|
-
&&
|
|
12
|
-
}
|
|
13
|
-
function damaged(diagnostic) {
|
|
14
|
-
return { state: 'replaceable', reason: 'damaged', diagnostic };
|
|
50
|
+
&& expected !== undefined
|
|
51
|
+
&& codexMarketplacePathKey(registration.source, platform) === expected;
|
|
15
52
|
}
|
|
16
53
|
function blocked(reason, diagnostic) {
|
|
17
54
|
return { state: 'blocked', reason, diagnostic };
|
|
@@ -31,58 +68,26 @@ export function inspectCodexSharedNative(evidence) {
|
|
|
31
68
|
if (!evidence.marketplacePathSafe)
|
|
32
69
|
return blocked('foreign', 'marketplacePathUnsafe');
|
|
33
70
|
if (evidence.observation.state === 'unobserved') {
|
|
34
|
-
return
|
|
35
|
-
? { state: 'unobserved' }
|
|
36
|
-
: { state: 'unobserved', staleCacheObserved: true };
|
|
71
|
+
return { state: 'unobserved' };
|
|
37
72
|
}
|
|
38
73
|
if (evidence.observation.state === 'failed') {
|
|
39
74
|
return blocked('unreadable', evidence.observation.reason === 'duplicate' ? 'pluginListDuplicate' : 'pluginListUnavailable');
|
|
40
75
|
}
|
|
41
76
|
if (evidence.observation.value === 'absent') {
|
|
42
|
-
return
|
|
43
|
-
? { state: 'missing' }
|
|
44
|
-
: { state: 'missing', staleCacheObserved: true };
|
|
77
|
+
return { state: 'missing' };
|
|
45
78
|
}
|
|
46
79
|
const listEntry = evidence.observation.entry;
|
|
47
80
|
if (evidence.marketplaceRegistration && !isCanonicalCodexMarketplaceRegistration(evidence.marketplaceRegistration, evidence.canonicalMarketplaceRoot)) {
|
|
48
81
|
return blocked('foreign', 'marketplaceRegistrationForeign');
|
|
49
82
|
}
|
|
50
|
-
if (evidence.manifest.state === 'unreadable')
|
|
51
|
-
return blocked('unreadable', 'manifestUnreadable');
|
|
52
|
-
if (evidence.manifest.state === 'absent') {
|
|
53
|
-
return damaged('manifestMissing');
|
|
54
|
-
}
|
|
55
83
|
if (!evidence.marketplaceRegistration) {
|
|
56
84
|
return blocked('foreign', 'marketplaceRegistrationForeign');
|
|
57
85
|
}
|
|
58
|
-
if (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
&& evidence.manifest.identity !== evidence.pluginName) {
|
|
62
|
-
return blocked('foreign', 'manifestIdentityMismatch');
|
|
63
|
-
}
|
|
64
|
-
const projectionExpected = evidence.expectedProjectionRequired
|
|
65
|
-
|| evidence.expectedProjection !== undefined;
|
|
66
|
-
let projectionReceipt;
|
|
67
|
-
if (projectionExpected) {
|
|
68
|
-
if (evidence.projectionReceipt === undefined || evidence.projectionReceipt.state === 'absent') {
|
|
69
|
-
return damaged('projectionReceiptMissing');
|
|
70
|
-
}
|
|
71
|
-
if (evidence.projectionReceipt.state === 'unreadable') {
|
|
72
|
-
return blocked('unreadable', 'projectionReceiptUnreadable');
|
|
73
|
-
}
|
|
74
|
-
projectionReceipt = evidence.projectionReceipt.receipt;
|
|
75
|
-
const expectedIdentity = evidence.expectedProjectionIdentity ?? evidence.expectedProjection;
|
|
76
|
-
if (expectedIdentity
|
|
77
|
-
&& (projectionReceipt.logicalPluginId !== expectedIdentity.logicalPluginId
|
|
78
|
-
|| projectionReceipt.strategy !== expectedIdentity.strategy)) {
|
|
79
|
-
return blocked('foreign', 'projectionReceiptIdentityMismatch');
|
|
80
|
-
}
|
|
86
|
+
if (evidence.sourceProjectionIssue
|
|
87
|
+
&& evidence.sourceProjectionIssue.reason !== 'damaged') {
|
|
88
|
+
return blocked(evidence.sourceProjectionIssue.reason, evidence.sourceProjectionIssue.diagnostic);
|
|
81
89
|
}
|
|
82
|
-
if (
|
|
83
|
-
return damaged('manifestVersionInvalid');
|
|
84
|
-
}
|
|
85
|
-
if (listEntry.version !== undefined && listEntry.version !== evidence.manifest.version) {
|
|
90
|
+
if (listEntry.version !== undefined && listEntry.version !== evidence.desiredVersion) {
|
|
86
91
|
return {
|
|
87
92
|
state: 'replaceable',
|
|
88
93
|
reason: 'outdated',
|
|
@@ -90,52 +95,27 @@ export function inspectCodexSharedNative(evidence) {
|
|
|
90
95
|
desiredVersion: evidence.desiredVersion,
|
|
91
96
|
};
|
|
92
97
|
}
|
|
93
|
-
if (evidence.
|
|
98
|
+
if (evidence.sourceProjectionIssue?.reason === 'damaged') {
|
|
94
99
|
return {
|
|
95
100
|
state: 'replaceable',
|
|
96
|
-
reason: '
|
|
97
|
-
version:
|
|
101
|
+
reason: 'damaged',
|
|
102
|
+
...(listEntry.version ? { version: listEntry.version } : {}),
|
|
98
103
|
desiredVersion: evidence.desiredVersion,
|
|
104
|
+
diagnostic: evidence.sourceProjectionIssue.diagnostic,
|
|
99
105
|
};
|
|
100
106
|
}
|
|
101
|
-
if (
|
|
102
|
-
const receipt = projectionReceipt;
|
|
103
|
-
if (evidence.expectedProjection === undefined) {
|
|
104
|
-
return damaged('projectionExpectedPayloadDigestMissing');
|
|
105
|
-
}
|
|
106
|
-
if (evidence.expectedPayloadDigest === undefined) {
|
|
107
|
-
return damaged('projectionExpectedPayloadDigestMissing');
|
|
108
|
-
}
|
|
109
|
-
if (receipt.logicalPluginId !== evidence.expectedProjection.logicalPluginId
|
|
110
|
-
|| receipt.strategy !== evidence.expectedProjection.strategy) {
|
|
111
|
-
return blocked('foreign', 'projectionReceiptIdentityMismatch');
|
|
112
|
-
}
|
|
113
|
-
if (evidence.manifest.payloadDigest !== evidence.expectedPayloadDigest
|
|
114
|
-
|| evidence.manifest.payloadDigest !== receipt.payloadDigest
|
|
115
|
-
|| receipt.payloadDigest !== evidence.expectedPayloadDigest) {
|
|
116
|
-
return damaged('projectionPayloadDigestMismatch');
|
|
117
|
-
}
|
|
118
|
-
if (!codexNativeRenderProjectionsEqual(receipt, evidence.expectedProjection)) {
|
|
119
|
-
return {
|
|
120
|
-
state: 'replaceable',
|
|
121
|
-
reason: 'renderDrift',
|
|
122
|
-
version: evidence.manifest.version,
|
|
123
|
-
desiredVersion: evidence.desiredVersion,
|
|
124
|
-
diagnostic: 'projectionRenderDrift',
|
|
125
|
-
};
|
|
126
|
-
}
|
|
107
|
+
if (evidence.sourceProjection === 'drifted') {
|
|
127
108
|
return {
|
|
128
|
-
state: '
|
|
129
|
-
|
|
109
|
+
state: 'replaceable',
|
|
110
|
+
reason: 'renderDrift',
|
|
111
|
+
...(listEntry.version ? { version: listEntry.version } : {}),
|
|
112
|
+
desiredVersion: evidence.desiredVersion,
|
|
113
|
+
diagnostic: 'projectionRenderDrift',
|
|
130
114
|
};
|
|
131
115
|
}
|
|
132
|
-
if (evidence.expectedPayloadDigest !== undefined
|
|
133
|
-
&& evidence.manifest.payloadDigest !== evidence.expectedPayloadDigest) {
|
|
134
|
-
return damaged('payloadDigestMismatch');
|
|
135
|
-
}
|
|
136
116
|
return {
|
|
137
117
|
state: 'usable',
|
|
138
|
-
version:
|
|
118
|
+
...(listEntry.version ? { version: listEntry.version } : {}),
|
|
139
119
|
};
|
|
140
120
|
}
|
|
141
121
|
export const classifyCodexSharedNativeEvidence = inspectCodexSharedNative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-shared-native.js","sourceRoot":"","sources":["../../../src/utils/codex-shared-native.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"codex-shared-native.js","sourceRoot":"","sources":["../../../src/utils/codex-shared-native.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAqErD,qFAAqF;AACrF,MAAM,UAAU,uBAAuB,CAAC,KAAc,EAAE,WAA4B,OAAO,CAAC,QAAQ;IAClG,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,SAAS,CA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AAE,SAAS;YACjB,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5D,cAAc,EAAE,QAAQ,CAAC,cAAc;YACvC,UAAU,EAAE,QAAQ,CAAC,qBAAqB,CAAC,UAAU;SACtD,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;QAC5C,OAAO;YACL,KAAK,EAAE,aAAa;YACpB,MAAM,EAAE,aAAa;YACrB,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5D,cAAc,EAAE,QAAQ,CAAC,cAAc;YACvC,UAAU,EAAE,uBAAuB;SACpC,CAAC;IACJ,CAAC;IACD,OAAO;QACL,KAAK,EAAE,QAAQ;QACf,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7D,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,iCAAiC,GAAG,wBAAwB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type DynamicSkillTree } from './dynamic-skill-tree.js';
|
|
1
|
+
import { createDynamicSkillExpectedTree, type DynamicSkillTree } from './dynamic-skill-tree.js';
|
|
3
2
|
export type CodexSkillStagingTree = DynamicSkillTree;
|
|
4
3
|
export declare function createCodexSkillExpectedTree(options: {
|
|
5
|
-
artifact:
|
|
4
|
+
artifact: Parameters<typeof createDynamicSkillExpectedTree>[0]['artifact'] & {
|
|
5
|
+
target: 'codex.skill';
|
|
6
|
+
};
|
|
6
7
|
sourceDirs?: string[];
|
|
7
8
|
requireReadme?: boolean;
|
|
8
9
|
requirementsReceipt?: Buffer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-skill-staging.js","sourceRoot":"","sources":["../../../src/utils/codex-skill-staging.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codex-skill-staging.js","sourceRoot":"","sources":["../../../src/utils/codex-skill-staging.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,GAEpC,MAAM,yBAAyB,CAAC;AAIjC,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,OAMlD;IACC,OAAO,8BAA8B,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,IAA2B;IAE3B,OAAO,mCAAmC,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import fs from 'fs-extra';
|
|
3
|
+
import { hasBundlePlatformOverride } from '@lesliechan721/aw-plugin-core/manifest';
|
|
4
|
+
export async function resolveCodexSkillsRelativeRoot(plugin, marketplaceFallbackRoot) {
|
|
5
|
+
const manifestPaths = [
|
|
6
|
+
path.join(plugin.rootDir, '.codex-plugin', 'plugin.json'),
|
|
7
|
+
...(marketplaceFallbackRoot
|
|
8
|
+
? [path.join(marketplaceFallbackRoot, '.codex-plugin', 'plugin.json')]
|
|
9
|
+
: []),
|
|
10
|
+
];
|
|
11
|
+
let manifest = null;
|
|
12
|
+
for (const manifestPath of manifestPaths) {
|
|
13
|
+
manifest = await fs.readJson(manifestPath).catch(() => null);
|
|
14
|
+
if (manifest)
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
const hasOverride = await hasBundlePlatformOverride(plugin.rootDir, 'codex').catch(() => false);
|
|
18
|
+
const raw = typeof manifest?.skills === 'string' && manifest.skills.trim() !== ''
|
|
19
|
+
? manifest.skills
|
|
20
|
+
: hasOverride
|
|
21
|
+
? './codex/skills'
|
|
22
|
+
: (plugin.manifest.skills ?? './skills');
|
|
23
|
+
const normalized = path.posix.normalize(raw.replace(/^\.\//u, ''));
|
|
24
|
+
if (normalized === '..' || normalized.startsWith('../') || path.isAbsolute(normalized)) {
|
|
25
|
+
throw new Error(`Codex plugin skills root 越界:${raw}`);
|
|
26
|
+
}
|
|
27
|
+
return normalized;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=codex-skills-root.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-skills-root.js","sourceRoot":"","sources":["../../../src/utils/codex-skills-root.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAGnF,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,MAA0F,EAC1F,uBAAgC;IAEhC,MAAM,aAAa,GAAG;QACpB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,eAAe,EAAE,aAAa,CAAC;QACzD,GAAG,CAAC,uBAAuB;YACzB,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,eAAe,EAAE,aAAa,CAAC,CAAC;YACtE,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;IACF,IAAI,QAAQ,GAAmC,IAAI,CAAC;IACpD,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;QACzC,QAAQ,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAmC,CAAC;QAC/F,IAAI,QAAQ;YAAE,MAAM;IACtB,CAAC;IACD,MAAM,WAAW,GAAG,MAAM,yBAAyB,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;IAChG,MAAM,GAAG,GAAG,OAAO,QAAQ,EAAE,MAAM,KAAK,QAAQ,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE;QAC/E,CAAC,CAAC,QAAQ,CAAC,MAAM;QACjB,CAAC,CAAC,WAAW;YACX,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,IAAI,UAAU,CAAC,CAAC;IAC7C,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IACnE,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QACvF,MAAM,IAAI,KAAK,CAAC,+BAA+B,GAAG,EAAE,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type ExpectedComponentSet } from '@lesliechan721/aw-plugin-core/manifest';
|
|
1
2
|
import type { NormalizedPluginManifest, Scope } from '../types.js';
|
|
2
|
-
export declare const QUALIFIED_CODEX_NATIVE_KINDS: readonly ["skill", "mcp", "hook", "
|
|
3
|
+
export declare const QUALIFIED_CODEX_NATIVE_KINDS: readonly ["skill", "mcp", "hook", "instruction"];
|
|
3
4
|
export type CodexNativeKind = typeof QUALIFIED_CODEX_NATIVE_KINDS[number];
|
|
4
|
-
export type CodexUnsupportedNativeKind =
|
|
5
|
+
export type CodexUnsupportedNativeKind = never;
|
|
5
6
|
export type CodexExtensionKind = 'skill' | 'instruction' | 'permission' | 'agent';
|
|
6
7
|
export type CodexSurfaceClassification = 'empty' | 'native' | 'aw-extension' | 'mixed' | 'unsupported';
|
|
7
8
|
export type CodexSurfaceDeliveryOwner = 'none' | 'codex-native' | 'aw' | 'split' | 'unsupported';
|
|
@@ -12,6 +13,7 @@ export interface CodexSurfaceComponent {
|
|
|
12
13
|
owner: 'codex-native' | 'aw';
|
|
13
14
|
scopes: Scope[];
|
|
14
15
|
dynamic: boolean;
|
|
16
|
+
refreshKeys?: string[];
|
|
15
17
|
name?: string;
|
|
16
18
|
}
|
|
17
19
|
export interface CodexSurfaceOwnerCollision {
|
|
@@ -21,10 +23,12 @@ export interface CodexSurfaceOwnerCollision {
|
|
|
21
23
|
}
|
|
22
24
|
export interface CodexSurfaceAnalysisOptions {
|
|
23
25
|
nativeArtifactNames?: Partial<Record<CodexNativeKind, readonly string[]>>;
|
|
26
|
+
preparedComponents?: ExpectedComponentSet;
|
|
24
27
|
}
|
|
25
28
|
export interface CodexSurfaceAnalysis {
|
|
26
29
|
ok: boolean;
|
|
27
30
|
configInputs: string[];
|
|
31
|
+
dynamicComponents: 'prepared' | 'unprepared' | 'not-declared';
|
|
28
32
|
nativeKinds: CodexNativeKind[];
|
|
29
33
|
extensionKinds: CodexExtensionKind[];
|
|
30
34
|
unsupportedKinds: CodexUnsupportedNativeKind[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { selectPluginConfigProfile } from '@lesliechan721/aw-plugin-core/manifest';
|
|
1
2
|
import { resolvePlatformHookDefinitions } from './hooks-contract.js';
|
|
2
3
|
import { resolvePlatformEntries } from './platform-entries.js';
|
|
3
4
|
import { supportsPlatform } from './platform-support.js';
|
|
@@ -5,7 +6,7 @@ export const QUALIFIED_CODEX_NATIVE_KINDS = [
|
|
|
5
6
|
'skill',
|
|
6
7
|
'mcp',
|
|
7
8
|
'hook',
|
|
8
|
-
'
|
|
9
|
+
'instruction',
|
|
9
10
|
];
|
|
10
11
|
export class CodexSurfaceAnalysisError extends Error {
|
|
11
12
|
code;
|
|
@@ -23,8 +24,7 @@ const NATIVE_KIND_ORDER = [
|
|
|
23
24
|
'skill',
|
|
24
25
|
'mcp',
|
|
25
26
|
'hook',
|
|
26
|
-
'
|
|
27
|
-
'slashCommand',
|
|
27
|
+
'instruction',
|
|
28
28
|
];
|
|
29
29
|
const EXTENSION_KIND_ORDER = [
|
|
30
30
|
'skill',
|
|
@@ -88,6 +88,7 @@ export function analyzeCodexSurface(manifest, options = {}) {
|
|
|
88
88
|
return {
|
|
89
89
|
ok: true,
|
|
90
90
|
configInputs: [],
|
|
91
|
+
dynamicComponents: 'not-declared',
|
|
91
92
|
nativeKinds: [],
|
|
92
93
|
extensionKinds: [],
|
|
93
94
|
unsupportedKinds: [],
|
|
@@ -102,32 +103,35 @@ export function analyzeCodexSurface(manifest, options = {}) {
|
|
|
102
103
|
const components = [];
|
|
103
104
|
const nativeKinds = new Set();
|
|
104
105
|
const extensionKinds = new Set();
|
|
105
|
-
const unsupportedKinds = new Set();
|
|
106
106
|
const declareNative = (kind, key) => {
|
|
107
107
|
nativeKinds.add(kind);
|
|
108
108
|
addNativeComponents(components, kind, key, options.nativeArtifactNames?.[kind]);
|
|
109
109
|
};
|
|
110
|
-
if (manifest.skills)
|
|
110
|
+
if (!options.preparedComponents && manifest.skills)
|
|
111
111
|
declareNative('skill', 'manifest.skills');
|
|
112
|
-
if (manifest.mcpServers)
|
|
112
|
+
if (!options.preparedComponents && manifest.mcpServers)
|
|
113
113
|
declareNative('mcp', 'manifest.mcpServers');
|
|
114
|
-
if (resolvePlatformHookDefinitions(manifest, 'codex').length > 0) {
|
|
114
|
+
if (!options.preparedComponents && resolvePlatformHookDefinitions(manifest, 'codex').length > 0) {
|
|
115
115
|
declareNative('hook', 'manifest.hooks');
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
kind:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
117
|
+
const configInputs = Object.keys(manifest.config === undefined
|
|
118
|
+
? {} : selectPluginConfigProfile(manifest.config, 'codex').fields).sort(compareText);
|
|
119
|
+
if (options.preparedComponents) {
|
|
120
|
+
for (const component of options.preparedComponents.components) {
|
|
121
|
+
const owner = component.kind === 'agent' ? 'aw' : 'codex-native';
|
|
122
|
+
if (owner === 'aw')
|
|
123
|
+
extensionKinds.add('agent');
|
|
124
|
+
else
|
|
125
|
+
nativeKinds.add(component.kind);
|
|
126
|
+
components.push({ key: component.id, kind: component.kind, owner,
|
|
127
|
+
scopes: [...BOTH_SCOPES], dynamic: options.preparedComponents.sources[component.id] === 'dynamic', name: component.name });
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
for (const instruction of resolvePlatformEntries(manifest.extensions?.instructions, 'codex')) {
|
|
132
|
+
nativeKinds.add('instruction');
|
|
133
|
+
addNativeComponents(components, 'instruction', `extensions.instructions:${instruction.name}`, [instruction.name]);
|
|
134
|
+
}
|
|
131
135
|
}
|
|
132
136
|
for (const permission of resolvePlatformEntries(manifest.extensions?.permissions, 'codex')) {
|
|
133
137
|
extensionKinds.add('permission');
|
|
@@ -139,7 +143,7 @@ export function analyzeCodexSurface(manifest, options = {}) {
|
|
|
139
143
|
name: permission.name,
|
|
140
144
|
});
|
|
141
145
|
}
|
|
142
|
-
for (const agent of resolvePlatformEntries(manifest.extensions?.agents, 'codex')) {
|
|
146
|
+
for (const agent of options.preparedComponents ? [] : resolvePlatformEntries(manifest.extensions?.agents, 'codex')) {
|
|
143
147
|
extensionKinds.add('agent');
|
|
144
148
|
addAwComponent(components, {
|
|
145
149
|
key: `extensions.agents:${agent.name}`,
|
|
@@ -149,41 +153,11 @@ export function analyzeCodexSurface(manifest, options = {}) {
|
|
|
149
153
|
name: agent.name,
|
|
150
154
|
});
|
|
151
155
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const kind = target.target === 'codex.skill'
|
|
156
|
-
? 'skill'
|
|
157
|
-
: target.target === 'codex.agentRole'
|
|
158
|
-
? 'agent'
|
|
159
|
-
: 'instruction';
|
|
160
|
-
if (target.target === 'codex.skill' && target.delivery?.mode === 'codex-native') {
|
|
161
|
-
nativeKinds.add('skill');
|
|
162
|
-
components.push({
|
|
163
|
-
key: `artifacts.targets:${target.id}`,
|
|
164
|
-
kind: 'skill',
|
|
165
|
-
owner: 'codex-native',
|
|
166
|
-
scopes: [...target.scopes],
|
|
167
|
-
dynamic: true,
|
|
168
|
-
name: target.skillKey,
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
extensionKinds.add(kind);
|
|
173
|
-
addAwComponent(components, {
|
|
174
|
-
key: `artifacts.targets:${target.id}`,
|
|
175
|
-
kind,
|
|
176
|
-
scopes: [...target.scopes],
|
|
177
|
-
dynamic: true,
|
|
178
|
-
name: target.skillKey ?? target.roleKey ?? target.id,
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
const orderedNativeKinds = NATIVE_KIND_ORDER
|
|
183
|
-
.filter((kind) => kind !== 'slashCommand' && nativeKinds.has(kind));
|
|
156
|
+
// Dynamic component identities exist only after preparation. Static inspection
|
|
157
|
+
// reports the declarations it can read and leaves that collection unobserved.
|
|
158
|
+
const orderedNativeKinds = NATIVE_KIND_ORDER.filter((kind) => nativeKinds.has(kind));
|
|
184
159
|
const orderedExtensionKinds = EXTENSION_KIND_ORDER.filter((kind) => extensionKinds.has(kind));
|
|
185
|
-
const orderedUnsupportedKinds =
|
|
186
|
-
.filter((kind) => kind === 'slashCommand' && unsupportedKinds.has(kind));
|
|
160
|
+
const orderedUnsupportedKinds = [];
|
|
187
161
|
const collisions = collectOwnerCollisions(components);
|
|
188
162
|
const missingNativeIdentityKinds = orderedNativeKinds.filter((kind) => components.some((component) => component.owner === 'aw'
|
|
189
163
|
&& component.dynamic
|
|
@@ -219,6 +193,7 @@ export function analyzeCodexSurface(manifest, options = {}) {
|
|
|
219
193
|
return {
|
|
220
194
|
ok: errorCode === undefined,
|
|
221
195
|
configInputs,
|
|
196
|
+
dynamicComponents: options.preparedComponents ? 'prepared' : manifest.artifacts ? 'unprepared' : 'not-declared',
|
|
222
197
|
nativeKinds: orderedNativeKinds,
|
|
223
198
|
extensionKinds: orderedExtensionKinds,
|
|
224
199
|
unsupportedKinds: orderedUnsupportedKinds,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-surface-analysis.js","sourceRoot":"","sources":["../../../src/utils/codex-surface-analysis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codex-surface-analysis.js","sourceRoot":"","sources":["../../../src/utils/codex-surface-analysis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAA6B,MAAM,wCAAwC,CAAC;AAM9G,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,OAAO;IACP,KAAK;IACL,MAAM;IACN,aAAa;CACL,CAAC;AA0DX,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IACzC,IAAI,CAGoB;IACxB,QAAQ,CAAuB;IAExC,YAAY,QAA8B;QACxC,MAAM,IAAI,GAAG,QAAQ,CAAC,SAAS,IAAI,4BAA4B,CAAC;QAChE,KAAK,CAAC,GAAG,IAAI,uDAAuD,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,WAAW,GAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACjD,MAAM,iBAAiB,GAAwD;IAC7E,OAAO;IACP,KAAK;IACL,MAAM;IACN,aAAa;CACd,CAAC;AACF,MAAM,oBAAoB,GAAyB;IACjD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,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc;QAC/G,WAAW,EAAE,kBAAkB;QAC/B,cAAc,EAAE,qBAAqB;QACrC,gBAAgB,EAAE,uBAAuB;QACzC,cAAc;QACd,aAAa;QACb,YAAY,EAAE,SAAS;YACrB,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,qBAAqB,CAAC,MAAM,GAAG,CAAC;gBAChC,CAAC,CAAC,mBAAmB;gBACrB,CAAC,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC;oBAC7B,CAAC,CAAC,mBAAmB;oBACrB,CAAC,CAAC,MAAM;QACd,UAAU;QACV,UAAU;QACV,0BAA0B;QAC1B,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,QAA8B;IAE9B,IAAI,CAAC,QAAQ,CAAC,EAAE;QAAE,MAAM,IAAI,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAChE,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ExpectedComponentSet, type PlatformCapabilitiesV3 } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
|
+
import type { RenderUnit } from '../platforms/contracts.js';
|
|
3
|
+
import type { PlatformTarget, PluginMeta } from '../types.js';
|
|
4
|
+
import { preparePlatformComponents, type PreparedPlatformComponents } from './artifact-renderer.js';
|
|
5
|
+
export interface RawPlatformUnit {
|
|
6
|
+
unit: RenderUnit;
|
|
7
|
+
request: Parameters<typeof preparePlatformComponents>[0];
|
|
8
|
+
prepared: PreparedPlatformComponents;
|
|
9
|
+
}
|
|
10
|
+
export interface SkillAgentBinding {
|
|
11
|
+
capabilities: PlatformCapabilitiesV3;
|
|
12
|
+
hasApplicableRenderer: boolean;
|
|
13
|
+
dynamicAgents(): Promise<ExpectedComponentSet[]>;
|
|
14
|
+
}
|
|
15
|
+
/** Resolve roles only when a deliverable Skill actually references one. */
|
|
16
|
+
export declare function skillAgentBinding(raw: RawPlatformUnit, deploymentUnits: readonly RawPlatformUnit[], prepareExtraAgents?: () => Promise<PreparedPlatformComponents>): SkillAgentBinding;
|
|
17
|
+
export declare function bindPlatformSkillAgents(plugin: PluginMeta, platform: PlatformTarget, prepared: PreparedPlatformComponents, binding?: SkillAgentBinding): Promise<PreparedPlatformComponents>;
|