@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,487 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import * as fs from 'node:fs';
|
|
3
|
+
import * as path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { parseStrictSemVer as parseSemVer, } from './lib/semver.mjs';
|
|
6
|
+
import { MAX_CODEX_SHORT_DESCRIPTION_LEN, MIN_CODEX_SHORT_DESCRIPTION_LEN, SKILL_INVOCATION_MODES, renderBehaviorCases, renderEvalManifest, renderOpenAiYaml, renderPluginReadme, renderSkillMd, renderSkillReadme, renderTriggerCases, titleCaseSlug, } from './lib/skill-scaffold.mjs';
|
|
7
|
+
import { resolveAuthoringPluginRoot } from './lib/plugin-root.mjs';
|
|
8
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
function fail(message) {
|
|
10
|
+
console.error(`[ERROR] ${message}`);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
function requireHyphenName(value, fieldName) {
|
|
14
|
+
if (!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(value)) {
|
|
15
|
+
fail(`${fieldName} must use lowercase hyphen-case. Example: "git-commit", got "${value}".`);
|
|
16
|
+
}
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
function requireCharacterRange(value, fieldName, minLength, maxLength) {
|
|
20
|
+
const count = Array.from(String(value).trim()).length;
|
|
21
|
+
if (count < minLength || count > maxLength) {
|
|
22
|
+
fail(`${fieldName} must be ${minLength}-${maxLength} characters, got ${count}.`);
|
|
23
|
+
}
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
function ensureParentDir(filePath) {
|
|
27
|
+
fs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
28
|
+
}
|
|
29
|
+
function writeText(filePath, content) {
|
|
30
|
+
ensureParentDir(filePath);
|
|
31
|
+
fs.writeFileSync(filePath, content, 'utf8');
|
|
32
|
+
}
|
|
33
|
+
function writeJson(filePath, content) {
|
|
34
|
+
ensureParentDir(filePath);
|
|
35
|
+
fs.writeFileSync(filePath, `${JSON.stringify(content, null, 2)}\n`, 'utf8');
|
|
36
|
+
}
|
|
37
|
+
function parseStrictSemVer(value, fieldName) {
|
|
38
|
+
try {
|
|
39
|
+
return parseSemVer(value, fieldName);
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
fail(error.message);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function buildPluginManifest(pluginName, version, description, displayName, shortDescription, opts) {
|
|
46
|
+
const manifest = {
|
|
47
|
+
schemaVersion: 3,
|
|
48
|
+
name: pluginName,
|
|
49
|
+
version,
|
|
50
|
+
description,
|
|
51
|
+
};
|
|
52
|
+
if (!opts.noSkills) {
|
|
53
|
+
manifest.skills = './skills';
|
|
54
|
+
}
|
|
55
|
+
if (opts.withMcp) {
|
|
56
|
+
manifest.mcpServers = './.mcp.json';
|
|
57
|
+
}
|
|
58
|
+
if (opts.withApps) {
|
|
59
|
+
manifest.apps = './.app.json';
|
|
60
|
+
}
|
|
61
|
+
manifest.marketplace = {
|
|
62
|
+
category: 'workflow',
|
|
63
|
+
strict: true,
|
|
64
|
+
policy: {
|
|
65
|
+
installation: 'AVAILABLE',
|
|
66
|
+
authentication: 'ON_INSTALL',
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
const capabilities = [];
|
|
70
|
+
if (!opts.noSkills)
|
|
71
|
+
capabilities.push('Skills');
|
|
72
|
+
if (opts.withMcp)
|
|
73
|
+
capabilities.push('MCP Servers');
|
|
74
|
+
if (opts.withApps)
|
|
75
|
+
capabilities.push('Apps');
|
|
76
|
+
manifest.interface = {
|
|
77
|
+
displayName,
|
|
78
|
+
shortDescription,
|
|
79
|
+
...(capabilities.length > 0 ? { capabilities } : {}),
|
|
80
|
+
};
|
|
81
|
+
manifest.extensions = {
|
|
82
|
+
instructions: [],
|
|
83
|
+
permissions: [],
|
|
84
|
+
hooks: [],
|
|
85
|
+
agents: [],
|
|
86
|
+
};
|
|
87
|
+
if (opts.withConfigApi) {
|
|
88
|
+
manifest.config = {
|
|
89
|
+
fields: {
|
|
90
|
+
apiKey: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
required: true,
|
|
93
|
+
sensitive: true,
|
|
94
|
+
},
|
|
95
|
+
mode: {
|
|
96
|
+
type: 'string',
|
|
97
|
+
choices: {
|
|
98
|
+
allowCustom: false,
|
|
99
|
+
presets: [
|
|
100
|
+
{ id: 'standard', title: 'Standard', value: 'standard', recommended: true },
|
|
101
|
+
{ id: 'strict', title: 'Strict', value: 'strict' },
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
default: 'standard',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
if (opts.withConfigApi || opts.withPostApply) {
|
|
110
|
+
manifest.scripts = {
|
|
111
|
+
...(opts.withPostApply
|
|
112
|
+
? {
|
|
113
|
+
postApply: { path: './scripts/postApply.mjs' },
|
|
114
|
+
}
|
|
115
|
+
: {}),
|
|
116
|
+
...(opts.withConfigApi
|
|
117
|
+
? {
|
|
118
|
+
helpers: {
|
|
119
|
+
config: './scripts/aw-config.mjs',
|
|
120
|
+
},
|
|
121
|
+
}
|
|
122
|
+
: {}),
|
|
123
|
+
tests: {
|
|
124
|
+
node: ['./scripts/**/*.test.mjs'],
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
return manifest;
|
|
129
|
+
}
|
|
130
|
+
function renderMcpJson() {
|
|
131
|
+
return `{
|
|
132
|
+
"mcpServers": {}
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
135
|
+
}
|
|
136
|
+
function renderAppJson() {
|
|
137
|
+
return `{
|
|
138
|
+
"apps": {
|
|
139
|
+
"example": {
|
|
140
|
+
"id": "replace-with-real-connector-id"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`;
|
|
145
|
+
}
|
|
146
|
+
function renderPostApplyMjs() {
|
|
147
|
+
return `let input = '';
|
|
148
|
+
for await (const chunk of process.stdin) input += chunk;
|
|
149
|
+
const context = JSON.parse(input);
|
|
150
|
+
const pluginName = context.plugin?.name ?? context.pluginName ?? 'plugin';
|
|
151
|
+
console.log(\`[\${pluginName}] postApply completed.\`);
|
|
152
|
+
`;
|
|
153
|
+
}
|
|
154
|
+
function renderGeneratedScriptTest(pluginName, opts) {
|
|
155
|
+
const configTest = opts.withConfigApi
|
|
156
|
+
? `
|
|
157
|
+
test('aw config helper reads AW_PLUGIN_CONTEXT without fallback discovery', async () => {
|
|
158
|
+
const tempDir = await mkdtemp(join(tmpdir(), '${pluginName}-config-'));
|
|
159
|
+
const contextPath = join(tempDir, 'context.json');
|
|
160
|
+
await writeFile(contextPath, JSON.stringify({
|
|
161
|
+
plugin: { name: '${pluginName}' },
|
|
162
|
+
config: {
|
|
163
|
+
values: { apiKey: 'test-key', mode: 'strict' },
|
|
164
|
+
sources: { apiKey: 'user', mode: 'project' },
|
|
165
|
+
schema: {
|
|
166
|
+
apiKey: { type: 'string', sensitive: true, required: true },
|
|
167
|
+
mode: {
|
|
168
|
+
type: 'string',
|
|
169
|
+
choices: {
|
|
170
|
+
allowCustom: false,
|
|
171
|
+
presets: [
|
|
172
|
+
{ id: 'standard', title: 'Standard', value: 'standard', recommended: true },
|
|
173
|
+
{ id: 'strict', title: 'Strict', value: 'strict' }
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
default: 'standard'
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
paths: {
|
|
181
|
+
configStores: {
|
|
182
|
+
user: join(tempDir, 'missing-user.json'),
|
|
183
|
+
project: join(tempDir, 'missing-project.json')
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}), 'utf8');
|
|
187
|
+
|
|
188
|
+
const helperPath = join(dirname(fileURLToPath(import.meta.url)), 'aw-config.mjs');
|
|
189
|
+
const { stdout } = await execFileAsync(process.execPath, [helperPath, 'get', 'apiKey'], {
|
|
190
|
+
cwd: tempDir,
|
|
191
|
+
env: { ...process.env, AW_PLUGIN_CONTEXT: contextPath, AW_HOME: join(tempDir, 'unused-aw-home') }
|
|
192
|
+
});
|
|
193
|
+
assert.equal(stdout.trim(), '[redacted]');
|
|
194
|
+
});
|
|
195
|
+
`
|
|
196
|
+
: '';
|
|
197
|
+
const postApplyTest = opts.withPostApply
|
|
198
|
+
? `
|
|
199
|
+
test('postApply script accepts JSON context from stdin', async () => {
|
|
200
|
+
const tempDir = await mkdtemp(join(tmpdir(), '${pluginName}-postApply-'));
|
|
201
|
+
const contextPath = join(tempDir, 'context.json');
|
|
202
|
+
await writeFile(contextPath, JSON.stringify({
|
|
203
|
+
schemaVersion: 1,
|
|
204
|
+
plugin: { pluginId: 'official/${pluginName}', name: '${pluginName}', version: '0.1.0', rootDir: tempDir },
|
|
205
|
+
target: { platform: 'codex', scope: 'project', projectRoot: tempDir },
|
|
206
|
+
config: { values: {} },
|
|
207
|
+
components: []
|
|
208
|
+
}), 'utf8');
|
|
209
|
+
|
|
210
|
+
const postApplyPath = join(dirname(fileURLToPath(import.meta.url)), 'postApply.mjs');
|
|
211
|
+
const postApply = spawnSync(process.execPath, [postApplyPath], {
|
|
212
|
+
cwd: tempDir,
|
|
213
|
+
input: await readFile(contextPath, 'utf8'),
|
|
214
|
+
encoding: 'utf8',
|
|
215
|
+
});
|
|
216
|
+
assert.equal(postApply.status, 0, postApply.stderr);
|
|
217
|
+
assert.match(postApply.stdout, /postApply completed/);
|
|
218
|
+
});
|
|
219
|
+
`
|
|
220
|
+
: '';
|
|
221
|
+
return `import { execFile, spawnSync } from 'node:child_process';
|
|
222
|
+
import { mkdtemp, readFile, writeFile } from 'node:fs/promises';
|
|
223
|
+
import { tmpdir } from 'node:os';
|
|
224
|
+
import { dirname, join } from 'node:path';
|
|
225
|
+
import { fileURLToPath } from 'node:url';
|
|
226
|
+
import { promisify } from 'node:util';
|
|
227
|
+
import assert from 'node:assert/strict';
|
|
228
|
+
import { test } from 'node:test';
|
|
229
|
+
|
|
230
|
+
const execFileAsync = promisify(execFile);
|
|
231
|
+
${configTest}${postApplyTest}`;
|
|
232
|
+
}
|
|
233
|
+
function printUsage() {
|
|
234
|
+
console.log(`Usage:
|
|
235
|
+
aw plugin init <plugin-name> --description "..."
|
|
236
|
+
|
|
237
|
+
Options:
|
|
238
|
+
--description <text> Plugin description. Required.
|
|
239
|
+
--display-name <text> Human-facing plugin display name.
|
|
240
|
+
--short-description <text> Short UI description.
|
|
241
|
+
--skill-name <name> Initial skill directory name.
|
|
242
|
+
--skill-description <text> What the initial skill does and when to use it.
|
|
243
|
+
--skill-short-description <text>
|
|
244
|
+
Initial skill UI summary (25-64 characters). Default: --skill-description.
|
|
245
|
+
--skill-invocation <mode> model | manual | claude-model-only. Default: model.
|
|
246
|
+
--version <semver> Plugin version. Default: 0.1.0
|
|
247
|
+
--workspace-root <path> Workspace root. Default: current directory.
|
|
248
|
+
--no-skills Create plugin without skills directory.
|
|
249
|
+
--with-mcp Create .mcp.json stub and add mcpServers to manifest.
|
|
250
|
+
--with-apps Create minimal .app.json with an example connector id and add apps to manifest.
|
|
251
|
+
--with-config-api Add AW config schema, standard config helper, and Node script test.
|
|
252
|
+
--with-post-apply Add Node postApply script sample and Node script test.
|
|
253
|
+
-h, --help Show this help message.
|
|
254
|
+
|
|
255
|
+
Note:
|
|
256
|
+
During development, keep the current stable target when production content changes.
|
|
257
|
+
Next, run aw plugin validate, aw plugin test, aw plugin build, and aw catalog build.
|
|
258
|
+
Publish only as an explicit later step; inspect aw catalog publish plan --help first.
|
|
259
|
+
New skill scaffolds default to model invocation and generate an eval starter.
|
|
260
|
+
`);
|
|
261
|
+
}
|
|
262
|
+
function readOptionValue(args, index, flag) {
|
|
263
|
+
const current = args[index];
|
|
264
|
+
const eqIndex = current.indexOf('=');
|
|
265
|
+
if (eqIndex >= 0) {
|
|
266
|
+
return { value: current.slice(eqIndex + 1), nextIndex: index };
|
|
267
|
+
}
|
|
268
|
+
const nextValue = args[index + 1];
|
|
269
|
+
if (!nextValue || nextValue.startsWith('--')) {
|
|
270
|
+
fail(`${flag} requires a value.`);
|
|
271
|
+
}
|
|
272
|
+
return { value: nextValue, nextIndex: index + 1 };
|
|
273
|
+
}
|
|
274
|
+
function parseArgs(argv) {
|
|
275
|
+
const args = argv.slice(2);
|
|
276
|
+
const options = {
|
|
277
|
+
version: '0.1.0',
|
|
278
|
+
repoRoot: '.',
|
|
279
|
+
withMcp: false,
|
|
280
|
+
withApps: false,
|
|
281
|
+
withConfigApi: false,
|
|
282
|
+
withPostApply: false,
|
|
283
|
+
noSkills: false,
|
|
284
|
+
skillInvocation: 'model',
|
|
285
|
+
};
|
|
286
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
287
|
+
const arg = args[index];
|
|
288
|
+
if (arg === '-h' || arg === '--help') {
|
|
289
|
+
printUsage();
|
|
290
|
+
process.exit(0);
|
|
291
|
+
}
|
|
292
|
+
if (arg === '--with-mcp') {
|
|
293
|
+
options.withMcp = true;
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
if (arg === '--with-apps') {
|
|
297
|
+
options.withApps = true;
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
if (arg === '--with-config-api') {
|
|
301
|
+
options.withConfigApi = true;
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
if (arg === '--with-post-apply') {
|
|
305
|
+
options.withPostApply = true;
|
|
306
|
+
continue;
|
|
307
|
+
}
|
|
308
|
+
if (arg === '--no-skills') {
|
|
309
|
+
options.noSkills = true;
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
if (!arg.startsWith('--')) {
|
|
313
|
+
if (!options.pluginName) {
|
|
314
|
+
options.pluginName = arg;
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
fail(`Unexpected positional argument: ${arg}`);
|
|
318
|
+
}
|
|
319
|
+
const normalizedFlag = arg.includes('=') ? arg.slice(0, arg.indexOf('=')) : arg;
|
|
320
|
+
const { value, nextIndex } = readOptionValue(args, index, normalizedFlag);
|
|
321
|
+
index = nextIndex;
|
|
322
|
+
switch (normalizedFlag) {
|
|
323
|
+
case '--description':
|
|
324
|
+
options.description = value;
|
|
325
|
+
break;
|
|
326
|
+
case '--display-name':
|
|
327
|
+
options.displayName = value;
|
|
328
|
+
break;
|
|
329
|
+
case '--short-description':
|
|
330
|
+
options.shortDescription = value;
|
|
331
|
+
break;
|
|
332
|
+
case '--skill-name':
|
|
333
|
+
options.skillName = value;
|
|
334
|
+
break;
|
|
335
|
+
case '--skill-description':
|
|
336
|
+
options.skillDescription = value;
|
|
337
|
+
break;
|
|
338
|
+
case '--skill-short-description':
|
|
339
|
+
options.skillShortDescription = value;
|
|
340
|
+
break;
|
|
341
|
+
case '--skill-invocation':
|
|
342
|
+
if (!SKILL_INVOCATION_MODES.has(value)) {
|
|
343
|
+
fail('--skill-invocation must be one of "model", "manual", or "claude-model-only".');
|
|
344
|
+
}
|
|
345
|
+
options.skillInvocation = value;
|
|
346
|
+
break;
|
|
347
|
+
case '--version':
|
|
348
|
+
options.version = value;
|
|
349
|
+
break;
|
|
350
|
+
case '--workspace-root':
|
|
351
|
+
options.repoRoot = value;
|
|
352
|
+
break;
|
|
353
|
+
default:
|
|
354
|
+
fail(`Unknown option: ${normalizedFlag}`);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
if (!options.pluginName) {
|
|
358
|
+
fail('plugin_name is required.');
|
|
359
|
+
}
|
|
360
|
+
if (!options.description) {
|
|
361
|
+
fail('--description is required.');
|
|
362
|
+
}
|
|
363
|
+
if (!options.noSkills && !options.skillDescription) {
|
|
364
|
+
fail('--skill-description is required unless --no-skills is used.');
|
|
365
|
+
}
|
|
366
|
+
return options;
|
|
367
|
+
}
|
|
368
|
+
function main() {
|
|
369
|
+
const args = parseArgs(process.argv);
|
|
370
|
+
const pluginName = requireHyphenName(args.pluginName, 'plugin_name');
|
|
371
|
+
const parsedVersion = parseStrictSemVer(args.version, '--version');
|
|
372
|
+
if (parsedVersion.prerelease.length > 0 || parsedVersion.build.length > 0) {
|
|
373
|
+
fail('--version must be a stable SemVer without prerelease or build metadata.');
|
|
374
|
+
}
|
|
375
|
+
const version = parsedVersion.raw;
|
|
376
|
+
const displayName = args.displayName || titleCaseSlug(pluginName);
|
|
377
|
+
const shortDescription = args.shortDescription || args.description;
|
|
378
|
+
const initialSkillName = args.noSkills
|
|
379
|
+
? undefined
|
|
380
|
+
: requireHyphenName(args.skillName || pluginName, 'skill_name');
|
|
381
|
+
const initialSkillShortDescription = args.noSkills
|
|
382
|
+
? undefined
|
|
383
|
+
: requireCharacterRange(args.skillShortDescription || args.skillDescription, '--skill-short-description', MIN_CODEX_SHORT_DESCRIPTION_LEN, MAX_CODEX_SHORT_DESCRIPTION_LEN);
|
|
384
|
+
const resolvedRoot = resolveAuthoringPluginRoot({
|
|
385
|
+
repoRoot: args.repoRoot,
|
|
386
|
+
pluginName,
|
|
387
|
+
});
|
|
388
|
+
const { repoRoot, pluginRoot } = resolvedRoot;
|
|
389
|
+
const pluginsRoot = path.join(repoRoot, 'plugins');
|
|
390
|
+
const marketplaceSourcePath = path.join(pluginsRoot, 'marketplace-source.json');
|
|
391
|
+
if (!fs.existsSync(pluginsRoot)) {
|
|
392
|
+
fail(`plugins directory not found: ${pluginsRoot}`);
|
|
393
|
+
}
|
|
394
|
+
if (!fs.existsSync(marketplaceSourcePath)) {
|
|
395
|
+
fail(`marketplace metadata file not found: ${marketplaceSourcePath}`);
|
|
396
|
+
}
|
|
397
|
+
if (fs.existsSync(pluginRoot)) {
|
|
398
|
+
fail(`plugin already exists: ${pluginRoot}`);
|
|
399
|
+
}
|
|
400
|
+
const pluginManifest = buildPluginManifest(pluginName, version, args.description, displayName, shortDescription, {
|
|
401
|
+
withMcp: args.withMcp,
|
|
402
|
+
withApps: args.withApps,
|
|
403
|
+
withConfigApi: args.withConfigApi,
|
|
404
|
+
withPostApply: args.withPostApply,
|
|
405
|
+
noSkills: args.noSkills,
|
|
406
|
+
initialSkillName,
|
|
407
|
+
});
|
|
408
|
+
const manifestPath = path.join(pluginRoot, '.agents-plugin', 'plugin.json');
|
|
409
|
+
const pluginReadmePath = path.join(pluginRoot, 'README.md');
|
|
410
|
+
const createdPaths = [manifestPath, pluginReadmePath];
|
|
411
|
+
writeJson(manifestPath, pluginManifest);
|
|
412
|
+
writeText(pluginReadmePath, renderPluginReadme(pluginName, args.description, initialSkillName, {
|
|
413
|
+
withMcp: args.withMcp,
|
|
414
|
+
withApps: args.withApps,
|
|
415
|
+
withConfigApi: args.withConfigApi,
|
|
416
|
+
}));
|
|
417
|
+
if (!args.noSkills) {
|
|
418
|
+
const skillName = initialSkillName;
|
|
419
|
+
const skillDescription = args.skillDescription;
|
|
420
|
+
const skillDisplayName = titleCaseSlug(skillName);
|
|
421
|
+
const skillShortDescription = initialSkillShortDescription;
|
|
422
|
+
const skillMdPath = path.join(pluginRoot, 'skills', skillName, 'SKILL.md');
|
|
423
|
+
const skillReadmePath = path.join(pluginRoot, 'skills', skillName, 'README.md');
|
|
424
|
+
const openaiYamlPath = path.join(pluginRoot, 'skills', skillName, 'agents', 'openai.yaml');
|
|
425
|
+
const evalManifestPath = path.join(pluginRoot, 'skills', skillName, 'evals', 'manifest.json');
|
|
426
|
+
const triggerCasesPath = path.join(pluginRoot, 'skills', skillName, 'evals', 'trigger-cases.json');
|
|
427
|
+
const behaviorCasesPath = path.join(pluginRoot, 'skills', skillName, 'evals', 'behavior-cases.json');
|
|
428
|
+
writeText(skillMdPath, renderSkillMd(skillName, skillDescription, skillShortDescription, args.skillInvocation));
|
|
429
|
+
writeText(skillReadmePath, renderSkillReadme(skillName, skillDescription, {
|
|
430
|
+
invocation: args.skillInvocation,
|
|
431
|
+
}));
|
|
432
|
+
writeText(openaiYamlPath, renderOpenAiYaml(skillDisplayName, skillShortDescription, skillName, args.skillInvocation));
|
|
433
|
+
writeJson(evalManifestPath, renderEvalManifest(pluginName));
|
|
434
|
+
writeJson(triggerCasesPath, renderTriggerCases(skillName, skillDescription, args.skillInvocation));
|
|
435
|
+
writeJson(behaviorCasesPath, renderBehaviorCases(skillName, skillDescription));
|
|
436
|
+
createdPaths.push(skillMdPath, skillReadmePath, openaiYamlPath, evalManifestPath, triggerCasesPath, behaviorCasesPath);
|
|
437
|
+
}
|
|
438
|
+
if (args.withMcp) {
|
|
439
|
+
const mcpPath = path.join(pluginRoot, '.mcp.json');
|
|
440
|
+
writeText(mcpPath, renderMcpJson());
|
|
441
|
+
createdPaths.push(mcpPath);
|
|
442
|
+
}
|
|
443
|
+
if (args.withApps) {
|
|
444
|
+
const appPath = path.join(pluginRoot, '.app.json');
|
|
445
|
+
writeText(appPath, renderAppJson());
|
|
446
|
+
createdPaths.push(appPath);
|
|
447
|
+
}
|
|
448
|
+
if (args.withConfigApi) {
|
|
449
|
+
const helperTemplatePath = path.join(__dirname, '..', 'assets', 'aw-config.mjs');
|
|
450
|
+
const helperPath = path.join(pluginRoot, 'scripts', 'aw-config.mjs');
|
|
451
|
+
writeText(helperPath, fs.readFileSync(helperTemplatePath, 'utf8'));
|
|
452
|
+
createdPaths.push(helperPath);
|
|
453
|
+
}
|
|
454
|
+
if (args.withPostApply) {
|
|
455
|
+
const postApplyPath = path.join(pluginRoot, 'scripts', 'postApply.mjs');
|
|
456
|
+
writeText(postApplyPath, renderPostApplyMjs());
|
|
457
|
+
createdPaths.push(postApplyPath);
|
|
458
|
+
}
|
|
459
|
+
if (args.withConfigApi || args.withPostApply) {
|
|
460
|
+
const testPath = path.join(pluginRoot, 'scripts', 'generated-script.test.mjs');
|
|
461
|
+
writeText(testPath, renderGeneratedScriptTest(pluginName, {
|
|
462
|
+
withConfigApi: args.withConfigApi,
|
|
463
|
+
withPostApply: args.withPostApply,
|
|
464
|
+
}));
|
|
465
|
+
createdPaths.push(testPath);
|
|
466
|
+
}
|
|
467
|
+
console.log('[OK] Created plugin scaffold:');
|
|
468
|
+
for (const createdPath of createdPaths) {
|
|
469
|
+
console.log(` - ${createdPath}`);
|
|
470
|
+
}
|
|
471
|
+
if (!resolvedRoot.explicit) {
|
|
472
|
+
console.log(`[OK] Left marketplace metadata unchanged: ${marketplaceSourcePath}`);
|
|
473
|
+
}
|
|
474
|
+
if (args.skillInvocation === 'claude-model-only') {
|
|
475
|
+
console.log('[WARN] Codex has no hidden-user-entry equivalent; Codex remains model-invocable and explicitly invocable.');
|
|
476
|
+
}
|
|
477
|
+
const printablePluginRoot = JSON.stringify(pluginRoot);
|
|
478
|
+
const printableRepoRoot = JSON.stringify(repoRoot);
|
|
479
|
+
console.log('[OK] Keep the current stable target during development.');
|
|
480
|
+
console.log(`[NEXT] aw plugin validate ${printablePluginRoot} --workspace-root ${printableRepoRoot}`);
|
|
481
|
+
console.log(`[NEXT] aw plugin test ${printablePluginRoot} --workspace-root ${printableRepoRoot}`);
|
|
482
|
+
console.log(`[NEXT] aw plugin build ${printablePluginRoot} --workspace-root ${printableRepoRoot}`);
|
|
483
|
+
console.log(`[NEXT] aw catalog build --workspace-root ${printableRepoRoot}`);
|
|
484
|
+
console.log(`[LATER] Publish only when explicitly requested: aw catalog publish plan --workspace-root ${printableRepoRoot}`);
|
|
485
|
+
}
|
|
486
|
+
main();
|
|
487
|
+
//# sourceMappingURL=init-plugin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-plugin.mjs","sourceRoot":"","sources":["../../../autho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