@lesliechan721/aw 0.1.0-beta.10
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 +51 -0
- package/dist/authoring/assets/aw-config.mjs +1025 -0
- package/dist/authoring/assets/aw-config.mjs.map +1 -0
- package/dist/authoring/scripts/add-skill.d.mts +2 -0
- package/dist/authoring/scripts/add-skill.mjs +355 -0
- package/dist/authoring/scripts/add-skill.mjs.map +1 -0
- package/dist/authoring/scripts/init-plugin.d.mts +2 -0
- package/dist/authoring/scripts/init-plugin.mjs +487 -0
- package/dist/authoring/scripts/init-plugin.mjs.map +1 -0
- package/dist/authoring/scripts/lib/javascript-import-scanner.d.mts +4 -0
- package/dist/authoring/scripts/lib/javascript-import-scanner.mjs +261 -0
- package/dist/authoring/scripts/lib/javascript-import-scanner.mjs.map +1 -0
- package/dist/authoring/scripts/lib/plugin-root.d.mts +26 -0
- package/dist/authoring/scripts/lib/plugin-root.mjs +125 -0
- package/dist/authoring/scripts/lib/plugin-root.mjs.map +1 -0
- package/dist/authoring/scripts/lib/plugin-version-check.d.mts +69 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +563 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -0
- package/dist/authoring/scripts/lib/semver.d.mts +9 -0
- package/dist/authoring/scripts/lib/semver.mjs +63 -0
- package/dist/authoring/scripts/lib/semver.mjs.map +1 -0
- package/dist/authoring/scripts/lib/skill-scaffold.d.mts +111 -0
- package/dist/authoring/scripts/lib/skill-scaffold.mjs +353 -0
- package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -0
- package/dist/authoring/scripts/plugin-status.d.mts +2 -0
- package/dist/authoring/scripts/plugin-status.mjs +93 -0
- package/dist/authoring/scripts/plugin-status.mjs.map +1 -0
- package/dist/authoring/scripts/remove-plugin.d.mts +2 -0
- package/dist/authoring/scripts/remove-plugin.mjs +367 -0
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -0
- package/dist/authoring/scripts/validate-plugin.d.mts +2 -0
- package/dist/authoring/scripts/validate-plugin.mjs +3465 -0
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -0
- package/dist/authoring/scripts/validate-skill.d.mts +2 -0
- package/dist/authoring/scripts/validate-skill.mjs +126 -0
- package/dist/authoring/scripts/validate-skill.mjs.map +1 -0
- package/dist/authoring/templates/aw-config-runtime.d.mts +2 -0
- package/dist/authoring/templates/aw-config-runtime.mjs +407 -0
- package/dist/authoring/templates/aw-config-runtime.mjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/scripts/aw-skill-eval-materializer.d.ts +24 -0
- package/dist/scripts/aw-skill-eval-materializer.js +309 -0
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -0
- package/dist/scripts/bundle-plugins.d.ts +17 -0
- package/dist/scripts/bundle-plugins.js +126 -0
- package/dist/scripts/bundle-plugins.js.map +1 -0
- package/dist/scripts/plugin-staging.d.ts +26 -0
- package/dist/scripts/plugin-staging.js +76 -0
- package/dist/scripts/plugin-staging.js.map +1 -0
- package/dist/scripts/test-plugin-scripts.d.ts +7 -0
- package/dist/scripts/test-plugin-scripts.js +610 -0
- package/dist/scripts/test-plugin-scripts.js.map +1 -0
- package/dist/src/adapters/helpers.d.ts +44 -0
- package/dist/src/adapters/helpers.js +95 -0
- package/dist/src/adapters/helpers.js.map +1 -0
- package/dist/src/authoring/workspace-commands.d.ts +70 -0
- package/dist/src/authoring/workspace-commands.js +158 -0
- package/dist/src/authoring/workspace-commands.js.map +1 -0
- package/dist/src/commands/aw-capabilities.d.ts +78 -0
- package/dist/src/commands/aw-capabilities.js +254 -0
- package/dist/src/commands/aw-capabilities.js.map +1 -0
- package/dist/src/commands/catalog-dev-source.d.ts +120 -0
- package/dist/src/commands/catalog-dev-source.js +434 -0
- package/dist/src/commands/catalog-dev-source.js.map +1 -0
- package/dist/src/commands/catalog-generation.d.ts +16 -0
- package/dist/src/commands/catalog-generation.js +9 -0
- package/dist/src/commands/catalog-generation.js.map +1 -0
- package/dist/src/commands/catalog-publication-inspection.d.ts +138 -0
- package/dist/src/commands/catalog-publication-inspection.js +711 -0
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -0
- package/dist/src/commands/catalog-publication-journal.d.ts +56 -0
- package/dist/src/commands/catalog-publication-journal.js +215 -0
- package/dist/src/commands/catalog-publication-journal.js.map +1 -0
- package/dist/src/commands/catalog-publication-target.d.ts +18 -0
- package/dist/src/commands/catalog-publication-target.js +95 -0
- package/dist/src/commands/catalog-publication-target.js.map +1 -0
- package/dist/src/commands/catalog-publish.d.ts +103 -0
- package/dist/src/commands/catalog-publish.js +804 -0
- package/dist/src/commands/catalog-publish.js.map +1 -0
- package/dist/src/commands/catalog-source.d.ts +134 -0
- package/dist/src/commands/catalog-source.js +377 -0
- package/dist/src/commands/catalog-source.js.map +1 -0
- package/dist/src/commands/catalog-status.d.ts +56 -0
- package/dist/src/commands/catalog-status.js +217 -0
- package/dist/src/commands/catalog-status.js.map +1 -0
- package/dist/src/commands/catalog-store.d.ts +80 -0
- package/dist/src/commands/catalog-store.js +348 -0
- package/dist/src/commands/catalog-store.js.map +1 -0
- package/dist/src/commands/catalog-workspace-resolution.d.ts +13 -0
- package/dist/src/commands/catalog-workspace-resolution.js +42 -0
- package/dist/src/commands/catalog-workspace-resolution.js.map +1 -0
- package/dist/src/commands/console.d.ts +3 -0
- package/dist/src/commands/console.js +44 -0
- package/dist/src/commands/console.js.map +1 -0
- package/dist/src/commands/dependency-operation-plan.d.ts +58 -0
- package/dist/src/commands/dependency-operation-plan.js +261 -0
- package/dist/src/commands/dependency-operation-plan.js.map +1 -0
- package/dist/src/commands/init.d.ts +25 -0
- package/dist/src/commands/init.js +42 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/offline-cleanup-evidence.d.ts +59 -0
- package/dist/src/commands/offline-cleanup-evidence.js +163 -0
- package/dist/src/commands/offline-cleanup-evidence.js.map +1 -0
- package/dist/src/commands/operation-plan.d.ts +126 -0
- package/dist/src/commands/operation-plan.js +47 -0
- package/dist/src/commands/operation-plan.js.map +1 -0
- package/dist/src/commands/operation-planner.d.ts +46 -0
- package/dist/src/commands/operation-planner.js +139 -0
- package/dist/src/commands/operation-planner.js.map +1 -0
- package/dist/src/commands/options.d.ts +70 -0
- package/dist/src/commands/options.js +194 -0
- package/dist/src/commands/options.js.map +1 -0
- package/dist/src/commands/plugin-capabilities.d.ts +22 -0
- package/dist/src/commands/plugin-capabilities.js +159 -0
- package/dist/src/commands/plugin-capabilities.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +88 -0
- package/dist/src/commands/rebuild-command.js +3626 -0
- package/dist/src/commands/rebuild-command.js.map +1 -0
- package/dist/src/commands/rebuild-integration.d.ts +190 -0
- package/dist/src/commands/rebuild-integration.js +4439 -0
- package/dist/src/commands/rebuild-integration.js.map +1 -0
- package/dist/src/commands/rebuild-operations.d.ts +100 -0
- package/dist/src/commands/rebuild-operations.js +625 -0
- package/dist/src/commands/rebuild-operations.js.map +1 -0
- package/dist/src/commands/reconcile-operation-plan.d.ts +26 -0
- package/dist/src/commands/reconcile-operation-plan.js +28 -0
- package/dist/src/commands/reconcile-operation-plan.js.map +1 -0
- package/dist/src/commands/review-publication.d.ts +99 -0
- package/dist/src/commands/review-publication.js +904 -0
- package/dist/src/commands/review-publication.js.map +1 -0
- package/dist/src/commands/runtime.d.ts +172 -0
- package/dist/src/commands/runtime.js +720 -0
- package/dist/src/commands/runtime.js.map +1 -0
- package/dist/src/commands/skill-eval.d.ts +33 -0
- package/dist/src/commands/skill-eval.js +363 -0
- package/dist/src/commands/skill-eval.js.map +1 -0
- package/dist/src/commands/status-v6.d.ts +206 -0
- package/dist/src/commands/status-v6.js +2175 -0
- package/dist/src/commands/status-v6.js.map +1 -0
- package/dist/src/commands/sync-command.d.ts +23 -0
- package/dist/src/commands/sync-command.js +242 -0
- package/dist/src/commands/sync-command.js.map +1 -0
- package/dist/src/commands/wizard.d.ts +56 -0
- package/dist/src/commands/wizard.js +58 -0
- package/dist/src/commands/wizard.js.map +1 -0
- package/dist/src/commands/write-commands.d.ts +7 -0
- package/dist/src/commands/write-commands.js +190 -0
- package/dist/src/commands/write-commands.js.map +1 -0
- package/dist/src/constants.d.ts +31 -0
- package/dist/src/constants.js +32 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/eval/manifest-v1.d.ts +67 -0
- package/dist/src/eval/manifest-v1.js +347 -0
- package/dist/src/eval/manifest-v1.js.map +1 -0
- package/dist/src/generators/agents.d.ts +3 -0
- package/dist/src/generators/agents.js +46 -0
- package/dist/src/generators/agents.js.map +1 -0
- package/dist/src/generators/hooks.d.ts +15 -0
- package/dist/src/generators/hooks.js +76 -0
- package/dist/src/generators/hooks.js.map +1 -0
- package/dist/src/generators/instructions.d.ts +13 -0
- package/dist/src/generators/instructions.js +66 -0
- package/dist/src/generators/instructions.js.map +1 -0
- package/dist/src/generators/local-plugin.d.ts +56 -0
- package/dist/src/generators/local-plugin.js +1373 -0
- package/dist/src/generators/local-plugin.js.map +1 -0
- package/dist/src/generators/permissions.d.ts +10 -0
- package/dist/src/generators/permissions.js +37 -0
- package/dist/src/generators/permissions.js.map +1 -0
- package/dist/src/generators/shared.d.ts +2 -0
- package/dist/src/generators/shared.js +15 -0
- package/dist/src/generators/shared.js.map +1 -0
- package/dist/src/index.d.ts +41 -0
- package/dist/src/index.js +3327 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/output/command-receipt.d.ts +87 -0
- package/dist/src/output/command-receipt.js +302 -0
- package/dist/src/output/command-receipt.js.map +1 -0
- package/dist/src/output/debug-log.d.ts +4 -0
- package/dist/src/output/debug-log.js +97 -0
- package/dist/src/output/debug-log.js.map +1 -0
- package/dist/src/output/equivalent-command.d.ts +9 -0
- package/dist/src/output/equivalent-command.js +39 -0
- package/dist/src/output/equivalent-command.js.map +1 -0
- package/dist/src/output/model.d.ts +76 -0
- package/dist/src/output/model.js +2 -0
- package/dist/src/output/model.js.map +1 -0
- package/dist/src/output/rebuild-progress.d.ts +21 -0
- package/dist/src/output/rebuild-progress.js +128 -0
- package/dist/src/output/rebuild-progress.js.map +1 -0
- package/dist/src/output/redact.d.ts +3 -0
- package/dist/src/output/redact.js +39 -0
- package/dist/src/output/redact.js.map +1 -0
- package/dist/src/output/reporter.d.ts +9 -0
- package/dist/src/output/reporter.js +133 -0
- package/dist/src/output/reporter.js.map +1 -0
- package/dist/src/portable/commands.d.ts +124 -0
- package/dist/src/portable/commands.js +557 -0
- package/dist/src/portable/commands.js.map +1 -0
- package/dist/src/portable/materializer.d.ts +50 -0
- package/dist/src/portable/materializer.js +462 -0
- package/dist/src/portable/materializer.js.map +1 -0
- package/dist/src/portable/skills-cli.d.ts +43 -0
- package/dist/src/portable/skills-cli.js +148 -0
- package/dist/src/portable/skills-cli.js.map +1 -0
- package/dist/src/tui/catalog-freshness.d.ts +1 -0
- package/dist/src/tui/catalog-freshness.js +2 -0
- package/dist/src/tui/catalog-freshness.js.map +1 -0
- package/dist/src/tui/catalog-generation.d.ts +21 -0
- package/dist/src/tui/catalog-generation.js +116 -0
- package/dist/src/tui/catalog-generation.js.map +1 -0
- package/dist/src/tui/catalog-sources/projection.d.ts +4 -0
- package/dist/src/tui/catalog-sources/projection.js +17 -0
- package/dist/src/tui/catalog-sources/projection.js.map +1 -0
- package/dist/src/tui/catalog-sources/review.d.ts +3 -0
- package/dist/src/tui/catalog-sources/review.js +13 -0
- package/dist/src/tui/catalog-sources/review.js.map +1 -0
- package/dist/src/tui/catalog-sources/screens.d.ts +12 -0
- package/dist/src/tui/catalog-sources/screens.js +33 -0
- package/dist/src/tui/catalog-sources/screens.js.map +1 -0
- package/dist/src/tui/catalog-sources/session.d.ts +22 -0
- package/dist/src/tui/catalog-sources/session.js +225 -0
- package/dist/src/tui/catalog-sources/session.js.map +1 -0
- package/dist/src/tui/catalog-sources/types.d.ts +41 -0
- package/dist/src/tui/catalog-sources/types.js +2 -0
- package/dist/src/tui/catalog-sources/types.js.map +1 -0
- package/dist/src/tui/components.d.ts +102 -0
- package/dist/src/tui/components.js +184 -0
- package/dist/src/tui/components.js.map +1 -0
- package/dist/src/tui/console-app-v4.d.ts +20 -0
- package/dist/src/tui/console-app-v4.js +5066 -0
- package/dist/src/tui/console-app-v4.js.map +1 -0
- package/dist/src/tui/controller-runtime.d.ts +23 -0
- package/dist/src/tui/controller-runtime.js +2011 -0
- package/dist/src/tui/controller-runtime.js.map +1 -0
- package/dist/src/tui/controller.d.ts +557 -0
- package/dist/src/tui/controller.js +2120 -0
- package/dist/src/tui/controller.js.map +1 -0
- package/dist/src/tui/diagnostics.d.ts +30 -0
- package/dist/src/tui/diagnostics.js +71 -0
- package/dist/src/tui/diagnostics.js.map +1 -0
- package/dist/src/tui/index.d.ts +17 -0
- package/dist/src/tui/index.js +17 -0
- package/dist/src/tui/index.js.map +1 -0
- package/dist/src/tui/input-display.d.ts +8 -0
- package/dist/src/tui/input-display.js +36 -0
- package/dist/src/tui/input-display.js.map +1 -0
- package/dist/src/tui/keys.d.ts +12 -0
- package/dist/src/tui/keys.js +22 -0
- package/dist/src/tui/keys.js.map +1 -0
- package/dist/src/tui/layout.d.ts +12 -0
- package/dist/src/tui/layout.js +19 -0
- package/dist/src/tui/layout.js.map +1 -0
- package/dist/src/tui/model.d.ts +424 -0
- package/dist/src/tui/model.js +1493 -0
- package/dist/src/tui/model.js.map +1 -0
- package/dist/src/tui/operation-review-planner.d.ts +21 -0
- package/dist/src/tui/operation-review-planner.js +622 -0
- package/dist/src/tui/operation-review-planner.js.map +1 -0
- package/dist/src/tui/prompt.d.ts +8 -0
- package/dist/src/tui/prompt.js +231 -0
- package/dist/src/tui/prompt.js.map +1 -0
- package/dist/src/tui/router.d.ts +206 -0
- package/dist/src/tui/router.js +137 -0
- package/dist/src/tui/router.js.map +1 -0
- package/dist/src/tui/runner.d.ts +11 -0
- package/dist/src/tui/runner.js +71 -0
- package/dist/src/tui/runner.js.map +1 -0
- package/dist/src/tui/source-ref-presets.d.ts +3 -0
- package/dist/src/tui/source-ref-presets.js +11 -0
- package/dist/src/tui/source-ref-presets.js.map +1 -0
- package/dist/src/tui/theme.d.ts +26 -0
- package/dist/src/tui/theme.js +28 -0
- package/dist/src/tui/theme.js.map +1 -0
- package/dist/src/tui/viewport.d.ts +20 -0
- package/dist/src/tui/viewport.js +29 -0
- package/dist/src/tui/viewport.js.map +1 -0
- package/dist/src/tui/views.d.ts +57 -0
- package/dist/src/tui/views.js +201 -0
- package/dist/src/tui/views.js.map +1 -0
- package/dist/src/tui/wizard.d.ts +11 -0
- package/dist/src/tui/wizard.js +323 -0
- package/dist/src/tui/wizard.js.map +1 -0
- package/dist/src/types.d.ts +474 -0
- package/dist/src/types.js +34 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils/agent-version.d.ts +19 -0
- package/dist/src/utils/agent-version.js +205 -0
- package/dist/src/utils/agent-version.js.map +1 -0
- package/dist/src/utils/artifact-plan.d.ts +27 -0
- package/dist/src/utils/artifact-plan.js +453 -0
- package/dist/src/utils/artifact-plan.js.map +1 -0
- package/dist/src/utils/artifact-renderer.d.ts +129 -0
- package/dist/src/utils/artifact-renderer.js +400 -0
- package/dist/src/utils/artifact-renderer.js.map +1 -0
- package/dist/src/utils/artifact-request.d.ts +16 -0
- package/dist/src/utils/artifact-request.js +42 -0
- package/dist/src/utils/artifact-request.js.map +1 -0
- package/dist/src/utils/artifact-sources.d.ts +8 -0
- package/dist/src/utils/artifact-sources.js +10 -0
- package/dist/src/utils/artifact-sources.js.map +1 -0
- package/dist/src/utils/aw-home-mutation-lock.d.ts +11 -0
- package/dist/src/utils/aw-home-mutation-lock.js +83 -0
- package/dist/src/utils/aw-home-mutation-lock.js.map +1 -0
- package/dist/src/utils/bundle-integrity.d.ts +2 -0
- package/dist/src/utils/bundle-integrity.js +63 -0
- package/dist/src/utils/bundle-integrity.js.map +1 -0
- package/dist/src/utils/bundle-layout.d.ts +4 -0
- package/dist/src/utils/bundle-layout.js +531 -0
- package/dist/src/utils/bundle-layout.js.map +1 -0
- package/dist/src/utils/catalog-digests.d.ts +18 -0
- package/dist/src/utils/catalog-digests.js +156 -0
- package/dist/src/utils/catalog-digests.js.map +1 -0
- package/dist/src/utils/catalog-generation-control-snapshot.d.ts +11 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js +45 -0
- package/dist/src/utils/catalog-generation-control-snapshot.js.map +1 -0
- package/dist/src/utils/catalog-generation-error.d.ts +16 -0
- package/dist/src/utils/catalog-generation-error.js +30 -0
- package/dist/src/utils/catalog-generation-error.js.map +1 -0
- package/dist/src/utils/catalog-generation-resolver.d.ts +32 -0
- package/dist/src/utils/catalog-generation-resolver.js +251 -0
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -0
- package/dist/src/utils/catalog-generation-service.d.ts +161 -0
- package/dist/src/utils/catalog-generation-service.js +1237 -0
- package/dist/src/utils/catalog-generation-service.js.map +1 -0
- package/dist/src/utils/catalog-generation-state.d.ts +22 -0
- package/dist/src/utils/catalog-generation-state.js +192 -0
- package/dist/src/utils/catalog-generation-state.js.map +1 -0
- package/dist/src/utils/catalog-generation-store.d.ts +57 -0
- package/dist/src/utils/catalog-generation-store.js +397 -0
- package/dist/src/utils/catalog-generation-store.js.map +1 -0
- package/dist/src/utils/catalog-manifest-v7.d.ts +5 -0
- package/dist/src/utils/catalog-manifest-v7.js +98 -0
- package/dist/src/utils/catalog-manifest-v7.js.map +1 -0
- package/dist/src/utils/catalog-operation-context.d.ts +20 -0
- package/dist/src/utils/catalog-operation-context.js +141 -0
- package/dist/src/utils/catalog-operation-context.js.map +1 -0
- package/dist/src/utils/catalog-public-error.d.ts +19 -0
- package/dist/src/utils/catalog-public-error.js +100 -0
- package/dist/src/utils/catalog-public-error.js.map +1 -0
- package/dist/src/utils/catalog-runtime-projection.d.ts +33 -0
- package/dist/src/utils/catalog-runtime-projection.js +77 -0
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -0
- package/dist/src/utils/catalog-snapshot.d.ts +10 -0
- package/dist/src/utils/catalog-snapshot.js +20 -0
- package/dist/src/utils/catalog-snapshot.js.map +1 -0
- package/dist/src/utils/catalog-source-identity.d.ts +5 -0
- package/dist/src/utils/catalog-source-identity.js +137 -0
- package/dist/src/utils/catalog-source-identity.js.map +1 -0
- package/dist/src/utils/catalog-source-impact.d.ts +20 -0
- package/dist/src/utils/catalog-source-impact.js +222 -0
- package/dist/src/utils/catalog-source-impact.js.map +1 -0
- package/dist/src/utils/catalog-source-presentation.d.ts +1 -0
- package/dist/src/utils/catalog-source-presentation.js +32 -0
- package/dist/src/utils/catalog-source-presentation.js.map +1 -0
- package/dist/src/utils/catalog-source-references.d.ts +66 -0
- package/dist/src/utils/catalog-source-references.js +1180 -0
- package/dist/src/utils/catalog-source-references.js.map +1 -0
- package/dist/src/utils/catalog-sources.d.ts +53 -0
- package/dist/src/utils/catalog-sources.js +456 -0
- package/dist/src/utils/catalog-sources.js.map +1 -0
- package/dist/src/utils/codex-config.d.ts +126 -0
- package/dist/src/utils/codex-config.js +1032 -0
- package/dist/src/utils/codex-config.js.map +1 -0
- package/dist/src/utils/codex-manager.d.ts +81 -0
- package/dist/src/utils/codex-manager.js +810 -0
- package/dist/src/utils/codex-manager.js.map +1 -0
- package/dist/src/utils/codex-marketplace-path.d.ts +5 -0
- package/dist/src/utils/codex-marketplace-path.js +45 -0
- package/dist/src/utils/codex-marketplace-path.js.map +1 -0
- package/dist/src/utils/codex-native-observation.d.ts +16 -0
- package/dist/src/utils/codex-native-observation.js +22 -0
- package/dist/src/utils/codex-native-observation.js.map +1 -0
- package/dist/src/utils/codex-native-render-receipt.d.ts +40 -0
- package/dist/src/utils/codex-native-render-receipt.js +205 -0
- package/dist/src/utils/codex-native-render-receipt.js.map +1 -0
- package/dist/src/utils/codex-reconciler.d.ts +128 -0
- package/dist/src/utils/codex-reconciler.js +294 -0
- package/dist/src/utils/codex-reconciler.js.map +1 -0
- package/dist/src/utils/codex-roles.d.ts +71 -0
- package/dist/src/utils/codex-roles.js +257 -0
- package/dist/src/utils/codex-roles.js.map +1 -0
- package/dist/src/utils/codex-shared-native.d.ts +63 -0
- package/dist/src/utils/codex-shared-native.js +142 -0
- package/dist/src/utils/codex-shared-native.js.map +1 -0
- package/dist/src/utils/codex-skill-staging.d.ts +11 -0
- package/dist/src/utils/codex-skill-staging.js +8 -0
- package/dist/src/utils/codex-skill-staging.js.map +1 -0
- package/dist/src/utils/codex-surface-analysis.d.ts +45 -0
- package/dist/src/utils/codex-surface-analysis.js +245 -0
- package/dist/src/utils/codex-surface-analysis.js.map +1 -0
- package/dist/src/utils/config-value.d.ts +3 -0
- package/dist/src/utils/config-value.js +23 -0
- package/dist/src/utils/config-value.js.map +1 -0
- package/dist/src/utils/dynamic-skill-tree.d.ts +36 -0
- package/dist/src/utils/dynamic-skill-tree.js +466 -0
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -0
- package/dist/src/utils/file-rules.d.ts +1 -0
- package/dist/src/utils/file-rules.js +2 -0
- package/dist/src/utils/file-rules.js.map +1 -0
- package/dist/src/utils/git-catalog-provider.d.ts +22 -0
- package/dist/src/utils/git-catalog-provider.js +497 -0
- package/dist/src/utils/git-catalog-provider.js.map +1 -0
- package/dist/src/utils/hooks-contract.d.ts +1 -0
- package/dist/src/utils/hooks-contract.js +2 -0
- package/dist/src/utils/hooks-contract.js.map +1 -0
- package/dist/src/utils/json.d.ts +4 -0
- package/dist/src/utils/json.js +29 -0
- package/dist/src/utils/json.js.map +1 -0
- package/dist/src/utils/local-marketplace.d.ts +41 -0
- package/dist/src/utils/local-marketplace.js +316 -0
- package/dist/src/utils/local-marketplace.js.map +1 -0
- package/dist/src/utils/manifest.d.ts +11 -0
- package/dist/src/utils/manifest.js +33 -0
- package/dist/src/utils/manifest.js.map +1 -0
- package/dist/src/utils/marketplace.d.ts +3 -0
- package/dist/src/utils/marketplace.js +76 -0
- package/dist/src/utils/marketplace.js.map +1 -0
- package/dist/src/utils/multi-source-catalog.d.ts +66 -0
- package/dist/src/utils/multi-source-catalog.js +345 -0
- package/dist/src/utils/multi-source-catalog.js.map +1 -0
- package/dist/src/utils/native-cli.d.ts +118 -0
- package/dist/src/utils/native-cli.js +518 -0
- package/dist/src/utils/native-cli.js.map +1 -0
- package/dist/src/utils/orphan-marketplace-cleanup.d.ts +18 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js +198 -0
- package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -0
- package/dist/src/utils/ownership.d.ts +194 -0
- package/dist/src/utils/ownership.js +723 -0
- package/dist/src/utils/ownership.js.map +1 -0
- package/dist/src/utils/path-catalog-provider.d.ts +7 -0
- package/dist/src/utils/path-catalog-provider.js +74 -0
- package/dist/src/utils/path-catalog-provider.js.map +1 -0
- package/dist/src/utils/paths.d.ts +40 -0
- package/dist/src/utils/paths.js +137 -0
- package/dist/src/utils/paths.js.map +1 -0
- package/dist/src/utils/platform-entries.d.ts +1 -0
- package/dist/src/utils/platform-entries.js +2 -0
- package/dist/src/utils/platform-entries.js.map +1 -0
- package/dist/src/utils/platform-support.d.ts +1 -0
- package/dist/src/utils/platform-support.js +2 -0
- package/dist/src/utils/platform-support.js.map +1 -0
- package/dist/src/utils/plugin-config-write.d.ts +110 -0
- package/dist/src/utils/plugin-config-write.js +773 -0
- package/dist/src/utils/plugin-config-write.js.map +1 -0
- package/dist/src/utils/plugin-config.d.ts +389 -0
- package/dist/src/utils/plugin-config.js +1642 -0
- package/dist/src/utils/plugin-config.js.map +1 -0
- package/dist/src/utils/plugin-dependencies.d.ts +12 -0
- package/dist/src/utils/plugin-dependencies.js +162 -0
- package/dist/src/utils/plugin-dependencies.js.map +1 -0
- package/dist/src/utils/plugin-intent-state.d.ts +34 -0
- package/dist/src/utils/plugin-intent-state.js +289 -0
- package/dist/src/utils/plugin-intent-state.js.map +1 -0
- package/dist/src/utils/plugin-script-contract.d.ts +1 -0
- package/dist/src/utils/plugin-script-contract.js +2 -0
- package/dist/src/utils/plugin-script-contract.js.map +1 -0
- package/dist/src/utils/plugin-scripts.d.ts +101 -0
- package/dist/src/utils/plugin-scripts.js +253 -0
- package/dist/src/utils/plugin-scripts.js.map +1 -0
- package/dist/src/utils/process-lock.d.ts +47 -0
- package/dist/src/utils/process-lock.js +532 -0
- package/dist/src/utils/process-lock.js.map +1 -0
- package/dist/src/utils/process-tree.d.ts +2 -0
- package/dist/src/utils/process-tree.js +2 -0
- package/dist/src/utils/process-tree.js.map +1 -0
- package/dist/src/utils/project-boundary.d.ts +9 -0
- package/dist/src/utils/project-boundary.js +67 -0
- package/dist/src/utils/project-boundary.js.map +1 -0
- package/dist/src/utils/rendered-contract.d.ts +8 -0
- package/dist/src/utils/rendered-contract.js +134 -0
- package/dist/src/utils/rendered-contract.js.map +1 -0
- package/dist/src/utils/runtime-skill-closure.d.ts +13 -0
- package/dist/src/utils/runtime-skill-closure.js +863 -0
- package/dist/src/utils/runtime-skill-closure.js.map +1 -0
- package/dist/src/utils/safe-fs.d.ts +21 -0
- package/dist/src/utils/safe-fs.js +111 -0
- package/dist/src/utils/safe-fs.js.map +1 -0
- package/dist/src/utils/skill-authoring.d.ts +1 -0
- package/dist/src/utils/skill-authoring.js +2 -0
- package/dist/src/utils/skill-authoring.js.map +1 -0
- package/dist/src/utils/skill-validation.d.ts +37 -0
- package/dist/src/utils/skill-validation.js +326 -0
- package/dist/src/utils/skill-validation.js.map +1 -0
- package/dist/src/utils/slash-commands.d.ts +1 -0
- package/dist/src/utils/slash-commands.js +2 -0
- package/dist/src/utils/slash-commands.js.map +1 -0
- package/dist/src/utils/state-paths.d.ts +14 -0
- package/dist/src/utils/state-paths.js +139 -0
- package/dist/src/utils/state-paths.js.map +1 -0
- package/dist/src/utils/target-eligibility.d.ts +13 -0
- package/dist/src/utils/target-eligibility.js +35 -0
- package/dist/src/utils/target-eligibility.js.map +1 -0
- package/dist/src/utils/target-order.d.ts +7 -0
- package/dist/src/utils/target-order.js +10 -0
- package/dist/src/utils/target-order.js.map +1 -0
- package/dist/src/utils/template-engine.d.ts +1 -0
- package/dist/src/utils/template-engine.js +2 -0
- package/dist/src/utils/template-engine.js.map +1 -0
- package/dist/src/utils/test-path-fence.d.ts +12 -0
- package/dist/src/utils/test-path-fence.js +31 -0
- package/dist/src/utils/test-path-fence.js.map +1 -0
- package/dist/vitest.config.d.ts +2 -0
- package/dist/vitest.config.js +16 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function getClaudeHome(env?: NodeJS.ProcessEnv): string;
|
|
2
|
+
export declare function getCodexHome(env?: NodeJS.ProcessEnv): string;
|
|
3
|
+
export declare function resolveAwHome(env?: NodeJS.ProcessEnv): string;
|
|
4
|
+
export declare function canonicalizePathThroughExistingAncestorSync(inputPath: string): string;
|
|
5
|
+
export declare function canonicalizePathThroughExistingAncestor(inputPath: string): Promise<string>;
|
|
6
|
+
export declare function ensureRegularDirectoryPath(inputPath: string, label: string): Promise<void>;
|
|
7
|
+
export declare function resolveAwHomeCanonical(env?: NodeJS.ProcessEnv): Promise<string>;
|
|
8
|
+
export declare function resolveRepoRootSync(cwd: string): string;
|
|
9
|
+
export declare function resolveRepoRoot(cwd: string): Promise<string>;
|
|
10
|
+
export declare function createProjectLocationKey(projectKey: string): string;
|
|
11
|
+
export declare function resolveCanonicalRepoProjectKey(cwd: string): Promise<string>;
|
|
12
|
+
export declare function resolveClaudeProjectKey(cwd: string): Promise<string>;
|
|
13
|
+
export declare function resolveCodexProjectKey(cwd: string): Promise<string>;
|
|
14
|
+
export declare function codexProjectConfigAliasesUserHome(cwd: string, env?: NodeJS.ProcessEnv): boolean;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import crypto from 'node:crypto';
|
|
2
|
+
import os from 'node:os';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import fs from 'fs-extra';
|
|
5
|
+
import { assertTestWritablePath } from './test-path-fence.js';
|
|
6
|
+
function assertWritableHomePathForTests(targetPath, source, recommendedFix) {
|
|
7
|
+
return assertTestWritablePath(targetPath, source, recommendedFix);
|
|
8
|
+
}
|
|
9
|
+
export function getClaudeHome(env = process.env) {
|
|
10
|
+
const home = env.AW_CLAUDE_HOME || path.join(os.homedir(), '.claude');
|
|
11
|
+
return assertWritableHomePathForTests(home, env.AW_CLAUDE_HOME ? 'AW_CLAUDE_HOME' : 'AW_CLAUDE_HOME fallback (os.homedir())', '用 createIsolatedTestEnv() 生成默认 AW_CLAUDE_HOME,或通过 registerWritableStateRoot() 登记显式覆盖的 Claude home。');
|
|
12
|
+
}
|
|
13
|
+
export function getCodexHome(env = process.env) {
|
|
14
|
+
const home = env.AW_CODEX_HOME || env.CODEX_HOME || path.join(os.homedir(), '.codex');
|
|
15
|
+
const source = env.AW_CODEX_HOME
|
|
16
|
+
? 'AW_CODEX_HOME'
|
|
17
|
+
: env.CODEX_HOME
|
|
18
|
+
? 'CODEX_HOME'
|
|
19
|
+
: 'CODEX_HOME fallback (os.homedir())';
|
|
20
|
+
return assertWritableHomePathForTests(home, source, '用 createIsolatedTestEnv() 生成默认 AW_CODEX_HOME,或通过 registerWritableStateRoot() 登记显式覆盖的 Codex home。');
|
|
21
|
+
}
|
|
22
|
+
export function resolveAwHome(env = process.env) {
|
|
23
|
+
const home = env.AW_HOME || path.join(os.homedir(), '.aw');
|
|
24
|
+
return assertWritableHomePathForTests(home, env.AW_HOME ? 'AW_HOME' : 'AW_HOME fallback (os.homedir())', '用 createIsolatedTestEnv() 生成默认 AW_HOME,或通过 registerWritableStateRoot() 登记显式覆盖的 AW home。');
|
|
25
|
+
}
|
|
26
|
+
export function canonicalizePathThroughExistingAncestorSync(inputPath) {
|
|
27
|
+
const resolved = path.resolve(inputPath);
|
|
28
|
+
let current = resolved;
|
|
29
|
+
const missingSegments = [];
|
|
30
|
+
while (true) {
|
|
31
|
+
try {
|
|
32
|
+
return path.join(fs.realpathSync(current), ...missingSegments);
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
const code = error.code;
|
|
36
|
+
const parent = path.dirname(current);
|
|
37
|
+
if ((code !== 'ENOENT' && code !== 'ENOTDIR') || parent === current)
|
|
38
|
+
throw error;
|
|
39
|
+
missingSegments.unshift(path.basename(current));
|
|
40
|
+
current = parent;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export async function canonicalizePathThroughExistingAncestor(inputPath) {
|
|
45
|
+
const resolved = path.resolve(inputPath);
|
|
46
|
+
let current = resolved;
|
|
47
|
+
const missingSegments = [];
|
|
48
|
+
while (true) {
|
|
49
|
+
try {
|
|
50
|
+
return path.join(await fs.realpath(current), ...missingSegments);
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
const code = error.code;
|
|
54
|
+
const parent = path.dirname(current);
|
|
55
|
+
if ((code !== 'ENOENT' && code !== 'ENOTDIR') || parent === current)
|
|
56
|
+
throw error;
|
|
57
|
+
missingSegments.unshift(path.basename(current));
|
|
58
|
+
current = parent;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export async function ensureRegularDirectoryPath(inputPath, label) {
|
|
63
|
+
const resolved = path.resolve(inputPath);
|
|
64
|
+
const root = path.parse(resolved).root;
|
|
65
|
+
let current = root;
|
|
66
|
+
for (const segment of path.relative(root, resolved).split(path.sep).filter(Boolean)) {
|
|
67
|
+
current = path.join(current, segment);
|
|
68
|
+
let stat = await fs.lstat(current).catch((error) => {
|
|
69
|
+
if (error.code === 'ENOENT')
|
|
70
|
+
return null;
|
|
71
|
+
throw error;
|
|
72
|
+
});
|
|
73
|
+
if (!stat) {
|
|
74
|
+
try {
|
|
75
|
+
await fs.mkdir(current);
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
if (error.code !== 'EEXIST')
|
|
79
|
+
throw error;
|
|
80
|
+
}
|
|
81
|
+
stat = await fs.lstat(current);
|
|
82
|
+
}
|
|
83
|
+
if (!stat.isDirectory() || stat.isSymbolicLink()) {
|
|
84
|
+
throw new Error(`${label} must be a regular directory path: ${current}`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export async function resolveAwHomeCanonical(env = process.env) {
|
|
89
|
+
return canonicalizePathThroughExistingAncestor(resolveAwHome(env));
|
|
90
|
+
}
|
|
91
|
+
export function resolveRepoRootSync(cwd) {
|
|
92
|
+
let currentDir = path.resolve(cwd);
|
|
93
|
+
while (true) {
|
|
94
|
+
if (fs.pathExistsSync(path.join(currentDir, '.git'))
|
|
95
|
+
|| fs.pathExistsSync(path.join(currentDir, 'pnpm-workspace.yaml'))) {
|
|
96
|
+
return currentDir;
|
|
97
|
+
}
|
|
98
|
+
const parentDir = path.dirname(currentDir);
|
|
99
|
+
if (parentDir === currentDir) {
|
|
100
|
+
return path.resolve(cwd);
|
|
101
|
+
}
|
|
102
|
+
currentDir = parentDir;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export async function resolveRepoRoot(cwd) {
|
|
106
|
+
return resolveRepoRootSync(cwd);
|
|
107
|
+
}
|
|
108
|
+
export function createProjectLocationKey(projectKey) {
|
|
109
|
+
const readable = path.basename(projectKey)
|
|
110
|
+
.replace(/[^A-Za-z0-9._-]+/g, '-')
|
|
111
|
+
.replace(/^-+|-+$/g, '')
|
|
112
|
+
.slice(0, 32);
|
|
113
|
+
const digest = crypto.createHash('sha256').update(projectKey).digest('hex').slice(0, 24);
|
|
114
|
+
return `project-${readable || 'root'}-${digest}`;
|
|
115
|
+
}
|
|
116
|
+
export async function resolveCanonicalRepoProjectKey(cwd) {
|
|
117
|
+
const repoRoot = await resolveRepoRoot(cwd);
|
|
118
|
+
try {
|
|
119
|
+
return await fs.realpath(repoRoot);
|
|
120
|
+
}
|
|
121
|
+
catch (error) {
|
|
122
|
+
const code = error.code;
|
|
123
|
+
if (code !== 'ENOENT' && code !== 'ENOTDIR')
|
|
124
|
+
throw error;
|
|
125
|
+
return path.resolve(repoRoot);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
export async function resolveClaudeProjectKey(cwd) {
|
|
129
|
+
return canonicalizePathThroughExistingAncestor(cwd);
|
|
130
|
+
}
|
|
131
|
+
export async function resolveCodexProjectKey(cwd) {
|
|
132
|
+
return canonicalizePathThroughExistingAncestor(await resolveRepoRoot(cwd));
|
|
133
|
+
}
|
|
134
|
+
export function codexProjectConfigAliasesUserHome(cwd, env = process.env) {
|
|
135
|
+
const projectConfig = canonicalizePathThroughExistingAncestorSync(path.join(resolveRepoRootSync(cwd), '.codex'));
|
|
136
|
+
const userConfig = canonicalizePathThroughExistingAncestorSync(getCodexHome(env));
|
|
137
|
+
return projectConfig === userConfig;
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=state-paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-paths.js","sourceRoot":"","sources":["../../../src/utils/state-paths.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,SAAS,8BAA8B,CACrC,UAAkB,EAClB,MAAc,EACd,cAAsB;IAEtB,OAAO,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,MAAyB,OAAO,CAAC,GAAG;IAChE,MAAM,IAAI,GAAG,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;IACtE,OAAO,8BAA8B,CACnC,IAAI,EACJ,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAA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AAG,MAAM,eAAe,CAAC,GAAG,CAAC,CAAC;IAC5C,IAAI,CAAC;QACH,OAAO,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,GAAI,KAA+B,CAAC,IAAI,CAAC;QACnD,IAAI,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,SAAS;YAAE,MAAM,KAAK,CAAC;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,GAAW;IACvD,OAAO,uCAAuC,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,GAAW;IACtD,OAAO,uCAAuC,CAAC,MAAM,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,GAAW,EACX,MAAyB,OAAO,CAAC,GAAG;IAEpC,MAAM,aAAa,GAAG,2CAA2C,CAC/D,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,CAC9C,CAAC;IACF,MAAM,UAAU,GAAG,2CAA2C,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IAClF,OAAO,aAAa,KAAK,UAAU,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StatusV7Target } from '../commands/status-v6.js';
|
|
2
|
+
import type { CommandWizardCommand, CommandWizardPluginCandidate, CommandWizardSelection } from '../commands/wizard.js';
|
|
3
|
+
export declare function targetCanBeUninstalled(targetOrState: StatusV7Target | StatusV7Target['state']): boolean;
|
|
4
|
+
export declare function targetHasArtifactCollision(target: {
|
|
5
|
+
reasons: ReadonlyArray<{
|
|
6
|
+
code: string;
|
|
7
|
+
severity: 'warning' | 'blocking';
|
|
8
|
+
}>;
|
|
9
|
+
}): boolean;
|
|
10
|
+
export declare function writeCandidateEligibility(command: CommandWizardCommand, candidate: CommandWizardPluginCandidate, selection: CommandWizardSelection): {
|
|
11
|
+
selectable: boolean;
|
|
12
|
+
reason?: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function targetCanBeUninstalled(targetOrState) {
|
|
2
|
+
const state = typeof targetOrState === 'string' ? targetOrState : targetOrState.state;
|
|
3
|
+
if (state === 'ready' || state === 'needsSync' || state === 'orphaned')
|
|
4
|
+
return true;
|
|
5
|
+
return typeof targetOrState !== 'string'
|
|
6
|
+
&& state === 'blocked'
|
|
7
|
+
&& targetOrState.components.some((component) => component.kind === 'ownership'
|
|
8
|
+
&& (component.state === 'present' || component.state === 'partial'));
|
|
9
|
+
}
|
|
10
|
+
export function targetHasArtifactCollision(target) {
|
|
11
|
+
return target.reasons.some((reason) => reason.code === 'artifactCollision' && reason.severity === 'blocking');
|
|
12
|
+
}
|
|
13
|
+
export function writeCandidateEligibility(command, candidate, selection) {
|
|
14
|
+
const targets = candidate.targets.filter((target) => target.scope === (selection.scope ?? 'user')
|
|
15
|
+
&& (selection.platform === 'both' || target.platform === selection.platform));
|
|
16
|
+
if (targets.length === 0) {
|
|
17
|
+
return { selectable: false, reason: 'current bundle 不支持所选平台和范围' };
|
|
18
|
+
}
|
|
19
|
+
const selectable = targets.every((target) => ({
|
|
20
|
+
install: target.state === 'absent' && !targetHasArtifactCollision(target),
|
|
21
|
+
reinstall: target.state === 'needsSync'
|
|
22
|
+
&& !targetHasArtifactCollision(target),
|
|
23
|
+
uninstall: targetCanBeUninstalled(target),
|
|
24
|
+
cleanup: target.state !== 'absent',
|
|
25
|
+
'config:list': false,
|
|
26
|
+
'config:get': false,
|
|
27
|
+
'config:set': false,
|
|
28
|
+
'config:unset': false,
|
|
29
|
+
'config:reset': false,
|
|
30
|
+
})[command]);
|
|
31
|
+
return selectable
|
|
32
|
+
? { selectable: true }
|
|
33
|
+
: { selectable: false, reason: `live status 不允许 ${command}` };
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=target-eligibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target-eligibility.js","sourceRoot":"","sources":["../../../src/utils/target-eligibility.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,sBAAsB,CACpC,aAAuD;IAEvD,MAAM,KAAK,GAAG,OAAO,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC;IACtF,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,WAAW,IAAI,KAAK,KAAK,UAAU;QAAE,OAAO,IAAI,CAAC;IACpF,OAAO,OAAO,aAAa,KAAK,QAAQ;WACnC,KAAK,KAAK,SAAS;WACnB,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAC7C,SAAS,CAAC,IAAI,KAAK,WAAW;eAC3B,CAAC,SAAS,CAAC,KAAK,KAAK,SAAS,IAAI,SAAS,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,MAE1C;IACC,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CACpC,MAAM,CAAC,IAAI,KAAK,mBAAmB,IAAI,MAAM,CAAC,QAAQ,KAAK,UAAU,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,OAA6B,EAC7B,SAAuC,EACvC,SAAiC;IAEjC,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAClD,MAAM,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,KAAK,IAAI,MAAM,CAAC;WACzC,CAAC,SAAS,CAAC,QAAQ,KAAK,MAAM,IAAI,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,2BAA2B,EAAE,CAAC;IACpE,CAAC;IACD,MAAM,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5C,OAAO,EAAE,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC;QACzE,SAAS,EAAE,MAAM,CAAC,KAAK,KAAK,WAAW;eAClC,CAAC,0BAA0B,CAAC,MAAM,CAAC;QACxC,SAAS,EAAE,sBAAsB,CAAC,MAAM,CAAC;QACzC,OAAO,EAAE,MAAM,CAAC,KAAK,KAAK,QAAQ;QAClC,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,KAAK;QACnB,YAAY,EAAE,KAAK;QACnB,cAAc,EAAE,KAAK;QACrB,cAAc,EAAE,KAAK;KACtB,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACb,OAAO,UAAU;QACf,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE;QACtB,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,mBAAmB,OAAO,EAAE,EAAE,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PlatformName, Scope } from '../types.js';
|
|
2
|
+
export interface PlatformScopeTarget {
|
|
3
|
+
platform: PlatformName;
|
|
4
|
+
scope: Scope;
|
|
5
|
+
}
|
|
6
|
+
export declare function comparePlatformScopeTarget(left: PlatformScopeTarget, right: PlatformScopeTarget): number;
|
|
7
|
+
export declare function canonicalPlatformScopeTargets<T extends PlatformScopeTarget>(targets: readonly T[]): T[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const PLATFORM_ORDER = ['claude', 'codex'];
|
|
2
|
+
const SCOPE_ORDER = ['project', 'user'];
|
|
3
|
+
export function comparePlatformScopeTarget(left, right) {
|
|
4
|
+
return PLATFORM_ORDER.indexOf(left.platform) - PLATFORM_ORDER.indexOf(right.platform)
|
|
5
|
+
|| SCOPE_ORDER.indexOf(left.scope) - SCOPE_ORDER.indexOf(right.scope);
|
|
6
|
+
}
|
|
7
|
+
export function canonicalPlatformScopeTargets(targets) {
|
|
8
|
+
return [...targets].sort(comparePlatformScopeTarget);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=target-order.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target-order.js","sourceRoot":"","sources":["../../../src/utils/target-order.ts"],"names":[],"mappings":"AAEA,MAAM,cAAc,GAA4B,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACpE,MAAM,WAAW,GAAqB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAO1D,MAAM,UAAU,0BAA0B,CACxC,IAAyB,EACzB,KAA0B;IAE1B,OAAO,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC;WAChF,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAgC,OAAqB;IAChG,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { renderTemplate } from '@lesliechan721/aw-plugin-core/manifest';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-engine.js","sourceRoot":"","sources":["../../../src/utils/template-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type TestPathFenceAccess = 'read' | 'write';
|
|
2
|
+
export interface TestPathFenceCheck {
|
|
3
|
+
path: string;
|
|
4
|
+
source: string;
|
|
5
|
+
access: TestPathFenceAccess;
|
|
6
|
+
recommendedFix?: string;
|
|
7
|
+
}
|
|
8
|
+
export type TestPathFenceHook = (check: TestPathFenceCheck) => void;
|
|
9
|
+
export declare function setTestPathFenceHookForTests(hook: TestPathFenceHook | null): void;
|
|
10
|
+
export declare function assertTestPathAccess(check: TestPathFenceCheck): string;
|
|
11
|
+
export declare function assertTestReadablePath(path: string, source: string, recommendedFix?: string): string;
|
|
12
|
+
export declare function assertTestWritablePath(path: string, source: string, recommendedFix?: string): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const testPathFenceHookKey = Symbol.for('aw.testPathFenceHookForTests');
|
|
2
|
+
function getTestPathFenceGlobalState() {
|
|
3
|
+
return globalThis;
|
|
4
|
+
}
|
|
5
|
+
export function setTestPathFenceHookForTests(hook) {
|
|
6
|
+
getTestPathFenceGlobalState()[testPathFenceHookKey] = hook;
|
|
7
|
+
}
|
|
8
|
+
function getTestPathFenceHookForTests() {
|
|
9
|
+
return getTestPathFenceGlobalState()[testPathFenceHookKey] ?? null;
|
|
10
|
+
}
|
|
11
|
+
export function assertTestPathAccess(check) {
|
|
12
|
+
getTestPathFenceHookForTests()?.(check);
|
|
13
|
+
return check.path;
|
|
14
|
+
}
|
|
15
|
+
export function assertTestReadablePath(path, source, recommendedFix) {
|
|
16
|
+
return assertTestPathAccess({
|
|
17
|
+
path,
|
|
18
|
+
source,
|
|
19
|
+
access: 'read',
|
|
20
|
+
recommendedFix,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
export function assertTestWritablePath(path, source, recommendedFix) {
|
|
24
|
+
return assertTestPathAccess({
|
|
25
|
+
path,
|
|
26
|
+
source,
|
|
27
|
+
access: 'write',
|
|
28
|
+
recommendedFix,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=test-path-fence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-path-fence.js","sourceRoot":"","sources":["../../../src/utils/test-path-fence.ts"],"names":[],"mappings":"AAWA,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;AAMxE,SAAS,2BAA2B;IAClC,OAAO,UAAsC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,IAA8B;IAE9B,2BAA2B,EAAE,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC;AAC7D,CAAC;AAED,SAAS,4BAA4B;IACnC,OAAO,2BAA2B,EAAE,CAAC,oBAAoB,CAAC,IAAI,IAAI,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,KAAyB;IAEzB,4BAA4B,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,KAAK,CAAC,IAAI,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,IAAY,EACZ,MAAc,EACd,cAAuB;IAEvB,OAAO,oBAAoB,CAAC;QAC1B,IAAI;QACJ,MAAM;QACN,MAAM,EAAE,MAAM;QACd,cAAc;KACf,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,IAAY,EACZ,MAAc,EACd,cAAuB;IAEvB,OAAO,oBAAoB,CAAC;QAC1B,IAAI;QACJ,MAAM;QACN,MAAM,EAAE,OAAO;QACf,cAAc;KACf,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineConfig } from 'vitest/config';
|
|
2
|
+
export default defineConfig({
|
|
3
|
+
test: {
|
|
4
|
+
environment: 'node',
|
|
5
|
+
include: ['tests/unit/**/*.{ts,tsx}', 'tests/integration/**/*.{ts,tsx}'],
|
|
6
|
+
exclude: ['tests/integration/fixtures/**', '**/*.test-helper.ts'],
|
|
7
|
+
setupFiles: ['tests/setup/test-isolation.ts'],
|
|
8
|
+
maxWorkers: 4,
|
|
9
|
+
testTimeout: 15_000,
|
|
10
|
+
hookTimeout: 15_000,
|
|
11
|
+
coverage: {
|
|
12
|
+
reporter: ['text', 'html'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=vitest.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.js","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAe,YAAY,CAAC;IAC1B,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,CAAC,0BAA0B,EAAE,iCAAiC,CAAC;QACxE,OAAO,EAAE,CAAC,+BAA+B,EAAE,qBAAqB,CAAC;QACjE,UAAU,EAAE,CAAC,+BAA+B,CAAC;QAC7C,UAAU,EAAE,CAAC;QACb,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE;YACR,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;SAC3B;KACF;CACF,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lesliechan721/aw",
|
|
3
|
+
"version": "0.1.0-beta.10",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=22"
|
|
7
|
+
},
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
12
|
+
"bin": {
|
|
13
|
+
"aw": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/"
|
|
17
|
+
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@inkjs/ui": "^2.0.0",
|
|
20
|
+
"@lesliechan721/agent-skill-eval": "0.1.0-beta.10",
|
|
21
|
+
"@lesliechan721/aw-plugin-core": "0.1.0-beta.10",
|
|
22
|
+
"commander": "^14.0.1",
|
|
23
|
+
"fs-extra": "^11.3.0",
|
|
24
|
+
"ink": "^7.1.1",
|
|
25
|
+
"minimatch": "^10.2.5",
|
|
26
|
+
"pnpm": "10.33.0",
|
|
27
|
+
"react": "^19.2.8",
|
|
28
|
+
"string-width": "^8.2.2",
|
|
29
|
+
"toml-eslint-parser": "^1.0.3",
|
|
30
|
+
"yaml": "^2.8.3"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/fs-extra": "^11.0.4",
|
|
34
|
+
"@types/node": "^24.0.0",
|
|
35
|
+
"@types/react": "^19.2.18",
|
|
36
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
37
|
+
"ink-testing-library": "^4.0.0",
|
|
38
|
+
"playwright": "^1.62.1",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"vitest": "^3.2.4"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "node scripts/generate-aw-config-helper.mjs --check && node scripts/clean-dist.mjs && tsc -p tsconfig.json && node dist/scripts/bundle-plugins.js",
|
|
44
|
+
"generate:config-helper": "node scripts/generate-aw-config-helper.mjs",
|
|
45
|
+
"generate:config-helper:check": "node scripts/generate-aw-config-helper.mjs --check",
|
|
46
|
+
"test": "node ../../scripts/test/run-vitest.mjs run",
|
|
47
|
+
"test:unit": "node ../../scripts/test/run-vitest.mjs run tests/unit",
|
|
48
|
+
"test:unit:fast": "node ../../scripts/test/run-vitest.mjs run --config vitest.fast.config.ts",
|
|
49
|
+
"test:integration": "node ../../scripts/test/run-vitest.mjs run tests/integration",
|
|
50
|
+
"test:coverage": "node ../../scripts/test/run-vitest.mjs run --coverage",
|
|
51
|
+
"test:perf": "node ../../scripts/test/run-vitest.mjs run --config vitest.perf.config.ts",
|
|
52
|
+
"test:smoke": "node ../../scripts/test/run-vitest.mjs run --config vitest.smoke.config.ts",
|
|
53
|
+
"test:smoke:build": "node ../../scripts/test/run-vitest.mjs run --config vitest.smoke.config.ts tests/smoke/build-smoke.test.ts",
|
|
54
|
+
"test:smoke:pack:cli": "node ../../scripts/test/run-vitest.mjs run --config vitest.smoke.config.ts tests/smoke/pack-smoke.test.ts",
|
|
55
|
+
"test:smoke:authoring:external": "node ../../scripts/test/run-vitest.mjs run --config vitest.smoke.config.ts tests/smoke/pack-smoke.test.ts -t \"external authoring workflow\"",
|
|
56
|
+
"test:smoke:publish:catalog": "node ../../scripts/test/run-vitest.mjs run --config vitest.smoke.config.ts tests/smoke/catalog-publish-smoke.test.ts",
|
|
57
|
+
"test:smoke:publish:release": "node ../../scripts/test/run-vitest.mjs run --config vitest.smoke.config.ts tests/smoke/release-publish-entry-smoke.test.ts",
|
|
58
|
+
"test:smoke:bootstrap:catalog": "node ../../scripts/test/run-vitest.mjs run --config vitest.smoke.config.ts tests/smoke/catalog-bootstrap-smoke.test.ts",
|
|
59
|
+
"test:smoke:fetch": "pnpm run test:smoke:publish:catalog",
|
|
60
|
+
"test:smoke:ask-me-browser": "node ../../scripts/test/run-vitest.mjs run --config vitest.smoke.config.ts tests/smoke/ask-me-prototype-review-browser.test.ts",
|
|
61
|
+
"plugin:test": "tsc -p tsconfig.json && node dist/scripts/test-plugin-scripts.js",
|
|
62
|
+
"test:smoke:plugin-scripts": "node ../../scripts/test/run-vitest.mjs run --config vitest.smoke.config.ts tests/smoke/plugin-scripts-staging-smoke.test.ts"
|
|
63
|
+
}
|
|
64
|
+
}
|