@a5c-ai/babysitter-sdk 5.0.0 → 5.0.1-staging.04a3db697
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/breakpoints/evaluator.d.ts +33 -0
- package/dist/breakpoints/evaluator.d.ts.map +1 -0
- package/dist/breakpoints/evaluator.js +156 -0
- package/dist/breakpoints/index.d.ts +9 -0
- package/dist/breakpoints/index.d.ts.map +1 -0
- package/dist/breakpoints/index.js +19 -0
- package/dist/breakpoints/patterns.d.ts +24 -0
- package/dist/breakpoints/patterns.d.ts.map +1 -0
- package/dist/breakpoints/patterns.js +88 -0
- package/dist/breakpoints/proven-verification.d.ts +51 -0
- package/dist/breakpoints/proven-verification.d.ts.map +1 -0
- package/dist/breakpoints/proven-verification.js +120 -0
- package/dist/breakpoints/rules.d.ts +26 -0
- package/dist/breakpoints/rules.d.ts.map +1 -0
- package/dist/breakpoints/rules.js +110 -0
- package/dist/breakpoints/types.d.ts +78 -0
- package/dist/breakpoints/types.d.ts.map +1 -0
- package/dist/breakpoints/types.js +7 -0
- package/dist/cli/commands/breakpointRules.d.ts +26 -0
- package/dist/cli/commands/breakpointRules.d.ts.map +1 -0
- package/dist/cli/commands/breakpointRules.js +222 -0
- package/dist/cli/commands/compressOutput.d.ts +24 -0
- package/dist/cli/commands/compressOutput.d.ts.map +1 -0
- package/dist/cli/commands/compressOutput.js +85 -0
- package/dist/cli/commands/compressOutputHelpers.d.ts +15 -0
- package/dist/cli/commands/compressOutputHelpers.d.ts.map +1 -0
- package/dist/cli/commands/compressOutputHelpers.js +367 -0
- package/dist/cli/commands/compression/reset.d.ts +15 -0
- package/dist/cli/commands/compression/reset.d.ts.map +1 -0
- package/dist/cli/commands/compression/reset.js +87 -0
- package/dist/cli/commands/compression/set.d.ts +26 -0
- package/dist/cli/commands/compression/set.d.ts.map +1 -0
- package/dist/cli/commands/compression/set.js +179 -0
- package/dist/cli/commands/compression/status.d.ts +12 -0
- package/dist/cli/commands/compression/status.d.ts.map +1 -0
- package/dist/cli/commands/compression/status.js +133 -0
- package/dist/cli/commands/compression/toggle.d.ts +17 -0
- package/dist/cli/commands/compression/toggle.d.ts.map +1 -0
- package/dist/cli/commands/compression/toggle.js +115 -0
- package/dist/cli/commands/configure/output.d.ts +6 -0
- package/dist/cli/commands/configure/output.d.ts.map +1 -0
- package/dist/cli/commands/configure/output.js +164 -0
- package/dist/cli/commands/configure.d.ts +124 -0
- package/dist/cli/commands/configure.d.ts.map +1 -0
- package/dist/cli/commands/configure.js +300 -0
- package/dist/cli/commands/costStats.d.ts +13 -0
- package/dist/cli/commands/costStats.d.ts.map +1 -0
- package/dist/cli/commands/costStats.js +327 -0
- package/dist/cli/commands/detectExistingRun.d.ts +14 -0
- package/dist/cli/commands/detectExistingRun.d.ts.map +1 -0
- package/dist/cli/commands/detectExistingRun.js +89 -0
- package/dist/cli/commands/harness/install.d.ts +17 -0
- package/dist/cli/commands/harness/install.d.ts.map +1 -0
- package/dist/cli/commands/harness/install.js +83 -0
- package/dist/cli/commands/health/checks.d.ts +10 -0
- package/dist/cli/commands/health/checks.d.ts.map +1 -0
- package/dist/cli/commands/health/checks.js +268 -0
- package/dist/cli/commands/health/environment.d.ts +3 -0
- package/dist/cli/commands/health/environment.d.ts.map +1 -0
- package/dist/cli/commands/health/environment.js +89 -0
- package/dist/cli/commands/health/output.d.ts +5 -0
- package/dist/cli/commands/health/output.d.ts.map +1 -0
- package/dist/cli/commands/health/output.js +92 -0
- package/dist/cli/commands/health.d.ts +74 -0
- package/dist/cli/commands/health.d.ts.map +1 -0
- package/dist/cli/commands/health.js +92 -0
- package/dist/cli/commands/hooks/log.d.ts +15 -0
- package/dist/cli/commands/hooks/log.d.ts.map +1 -0
- package/dist/cli/commands/hooks/log.js +298 -0
- package/dist/cli/commands/hooks/run.d.ts +25 -0
- package/dist/cli/commands/hooks/run.d.ts.map +1 -0
- package/dist/cli/commands/hooks/run.js +234 -0
- package/dist/cli/commands/instructions.d.ts +20 -0
- package/dist/cli/commands/instructions.d.ts.map +1 -0
- package/dist/cli/commands/instructions.js +292 -0
- package/dist/cli/commands/log.d.ts +22 -0
- package/dist/cli/commands/log.d.ts.map +1 -0
- package/dist/cli/commands/log.js +99 -0
- package/dist/cli/commands/mcpServe.d.ts +11 -0
- package/dist/cli/commands/mcpServe.d.ts.map +1 -0
- package/dist/cli/commands/mcpServe.js +35 -0
- package/dist/cli/commands/plugin/marketplaceCommands.d.ts +5 -0
- package/dist/cli/commands/plugin/marketplaceCommands.d.ts.map +1 -0
- package/dist/cli/commands/plugin/marketplaceCommands.js +114 -0
- package/dist/cli/commands/plugin/packageCommands.d.ts +6 -0
- package/dist/cli/commands/plugin/packageCommands.d.ts.map +1 -0
- package/dist/cli/commands/plugin/packageCommands.js +270 -0
- package/dist/cli/commands/plugin/registryCommands.d.ts +5 -0
- package/dist/cli/commands/plugin/registryCommands.d.ts.map +1 -0
- package/dist/cli/commands/plugin/registryCommands.js +128 -0
- package/dist/cli/commands/plugin/shared.d.ts +20 -0
- package/dist/cli/commands/plugin/shared.d.ts.map +1 -0
- package/dist/cli/commands/plugin/shared.js +44 -0
- package/dist/cli/commands/plugin.d.ts +9 -0
- package/dist/cli/commands/plugin.d.ts.map +1 -0
- package/dist/cli/commands/plugin.js +22 -0
- package/dist/cli/commands/processLibrary.d.ts +16 -0
- package/dist/cli/commands/processLibrary.d.ts.map +1 -0
- package/dist/cli/commands/processLibrary.js +156 -0
- package/dist/cli/commands/profile.d.ts +26 -0
- package/dist/cli/commands/profile.d.ts.map +1 -0
- package/dist/cli/commands/profile.js +213 -0
- package/dist/cli/commands/runIterate.d.ts +49 -0
- package/dist/cli/commands/runIterate.d.ts.map +1 -0
- package/dist/cli/commands/runIterate.js +156 -0
- package/dist/cli/commands/runIterateHelpers.d.ts +29 -0
- package/dist/cli/commands/runIterateHelpers.d.ts.map +1 -0
- package/dist/cli/commands/runIterateHelpers.js +134 -0
- package/dist/cli/commands/session/associate.d.ts +10 -0
- package/dist/cli/commands/session/associate.d.ts.map +1 -0
- package/dist/cli/commands/session/associate.js +77 -0
- package/dist/cli/commands/session/checkIteration.d.ts +7 -0
- package/dist/cli/commands/session/checkIteration.d.ts.map +1 -0
- package/dist/cli/commands/session/checkIteration.js +76 -0
- package/dist/cli/commands/session/cleanup.d.ts +5 -0
- package/dist/cli/commands/session/cleanup.d.ts.map +1 -0
- package/dist/cli/commands/session/cleanup.js +20 -0
- package/dist/cli/commands/session/common.d.ts +16 -0
- package/dist/cli/commands/session/common.d.ts.map +1 -0
- package/dist/cli/commands/session/common.js +33 -0
- package/dist/cli/commands/session/init.d.ts +10 -0
- package/dist/cli/commands/session/init.d.ts.map +1 -0
- package/dist/cli/commands/session/init.js +76 -0
- package/dist/cli/commands/session/iterationMessage.d.ts +17 -0
- package/dist/cli/commands/session/iterationMessage.d.ts.map +1 -0
- package/dist/cli/commands/session/iterationMessage.js +106 -0
- package/dist/cli/commands/session/lastMessage.d.ts +13 -0
- package/dist/cli/commands/session/lastMessage.d.ts.map +1 -0
- package/dist/cli/commands/session/lastMessage.js +45 -0
- package/dist/cli/commands/session/resume.d.ts +10 -0
- package/dist/cli/commands/session/resume.d.ts.map +1 -0
- package/dist/cli/commands/session/resume.js +129 -0
- package/dist/cli/commands/session/state.d.ts +7 -0
- package/dist/cli/commands/session/state.d.ts.map +1 -0
- package/dist/cli/commands/session/state.js +49 -0
- package/dist/cli/commands/session/update.d.ts +10 -0
- package/dist/cli/commands/session/update.d.ts.map +1 -0
- package/dist/cli/commands/session/update.js +54 -0
- package/dist/cli/commands/session/whoami.d.ts +5 -0
- package/dist/cli/commands/session/whoami.d.ts.map +1 -0
- package/dist/cli/commands/session/whoami.js +22 -0
- package/dist/cli/commands/skill/discoveryLocal.d.ts +32 -0
- package/dist/cli/commands/skill/discoveryLocal.d.ts.map +1 -0
- package/dist/cli/commands/skill/discoveryLocal.js +383 -0
- package/dist/cli/commands/skill/processMarkers.d.ts +9 -0
- package/dist/cli/commands/skill/processMarkers.d.ts.map +1 -0
- package/dist/cli/commands/skill/processMarkers.js +104 -0
- package/dist/cli/commands/skill/remoteDiscovery.d.ts +4 -0
- package/dist/cli/commands/skill/remoteDiscovery.d.ts.map +1 -0
- package/dist/cli/commands/skill/remoteDiscovery.js +164 -0
- package/dist/cli/commands/skill/types.d.ts +69 -0
- package/dist/cli/commands/skill/types.d.ts.map +1 -0
- package/dist/cli/commands/skill/types.js +2 -0
- package/dist/cli/commands/skill.d.ts +20 -0
- package/dist/cli/commands/skill.d.ts.map +1 -0
- package/dist/cli/commands/skill.js +292 -0
- package/dist/cli/commands/tokensStats.d.ts +70 -0
- package/dist/cli/commands/tokensStats.d.ts.map +1 -0
- package/dist/cli/commands/tokensStats.js +238 -0
- package/dist/cli/commands/tokensStatsFormatting.d.ts +9 -0
- package/dist/cli/commands/tokensStatsFormatting.d.ts.map +1 -0
- package/dist/cli/commands/tokensStatsFormatting.js +137 -0
- package/dist/cli/completionProof.d.ts +4 -0
- package/dist/cli/completionProof.d.ts.map +1 -0
- package/dist/cli/completionProof.js +45 -0
- package/dist/cli/main/argFlagParsers.d.ts +9 -0
- package/dist/cli/main/argFlagParsers.d.ts.map +1 -0
- package/dist/cli/main/argFlagParsers.js +346 -0
- package/dist/cli/main/argFlags.d.ts +4 -0
- package/dist/cli/main/argFlags.d.ts.map +1 -0
- package/dist/cli/main/argFlags.js +77 -0
- package/dist/cli/main/argPositionals.d.ts +3 -0
- package/dist/cli/main/argPositionals.d.ts.map +1 -0
- package/dist/cli/main/argPositionals.js +87 -0
- package/dist/cli/main/args.d.ts +7 -0
- package/dist/cli/main/args.d.ts.map +1 -0
- package/dist/cli/main/args.js +120 -0
- package/dist/cli/main/dispatch.d.ts +5 -0
- package/dist/cli/main/dispatch.d.ts.map +1 -0
- package/dist/cli/main/dispatch.js +44 -0
- package/dist/cli/main/dispatchHarness.d.ts +3 -0
- package/dist/cli/main/dispatchHarness.d.ts.map +1 -0
- package/dist/cli/main/dispatchHarness.js +73 -0
- package/dist/cli/main/dispatchRunSession.d.ts +3 -0
- package/dist/cli/main/dispatchRunSession.d.ts.map +1 -0
- package/dist/cli/main/dispatchRunSession.js +316 -0
- package/dist/cli/main/program.d.ts +17 -0
- package/dist/cli/main/program.d.ts.map +1 -0
- package/dist/cli/main/program.js +94 -0
- package/dist/cli/main/runAssignProcess.d.ts +3 -0
- package/dist/cli/main/runAssignProcess.d.ts.map +1 -0
- package/dist/cli/main/runAssignProcess.js +169 -0
- package/dist/cli/main/runCommands.d.ts +4 -0
- package/dist/cli/main/runCommands.d.ts.map +1 -0
- package/dist/cli/main/runCommands.js +13 -0
- package/dist/cli/main/runCreate.d.ts +5 -0
- package/dist/cli/main/runCreate.d.ts.map +1 -0
- package/dist/cli/main/runCreate.js +382 -0
- package/dist/cli/main/runInspection.d.ts +5 -0
- package/dist/cli/main/runInspection.d.ts.map +1 -0
- package/dist/cli/main/runInspection.js +139 -0
- package/dist/cli/main/runState.d.ts +55 -0
- package/dist/cli/main/runState.d.ts.map +1 -0
- package/dist/cli/main/runState.js +226 -0
- package/dist/cli/main/runSupport.d.ts +49 -0
- package/dist/cli/main/runSupport.d.ts.map +1 -0
- package/dist/cli/main/runSupport.js +364 -0
- package/dist/cli/main/taskCommands.d.ts +6 -0
- package/dist/cli/main/taskCommands.d.ts.map +1 -0
- package/dist/cli/main/taskCommands.js +356 -0
- package/dist/cli/main/types.d.ts +120 -0
- package/dist/cli/main/types.d.ts.map +1 -0
- package/dist/cli/main/types.js +2 -0
- package/dist/cli/main/ui.d.ts +12 -0
- package/dist/cli/main/ui.d.ts.map +1 -0
- package/dist/cli/main/ui.js +177 -0
- package/dist/cli/main/usage.d.ts +7 -0
- package/dist/cli/main/usage.d.ts.map +1 -0
- package/dist/cli/main/usage.js +154 -0
- package/dist/cli/main.d.ts +13 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +50 -0
- package/dist/cli/mcpServeEntry.d.ts +3 -0
- package/dist/cli/mcpServeEntry.d.ts.map +1 -0
- package/dist/cli/mcpServeEntry.js +8 -0
- package/dist/cli/render/ansi.d.ts +12 -0
- package/dist/cli/render/ansi.d.ts.map +1 -0
- package/dist/cli/render/ansi.js +24 -0
- package/dist/cli/render/effectTree.d.ts +17 -0
- package/dist/cli/render/effectTree.d.ts.map +1 -0
- package/dist/cli/render/effectTree.js +46 -0
- package/dist/cli/render/events/effectRequested.d.ts +3 -0
- package/dist/cli/render/events/effectRequested.d.ts.map +1 -0
- package/dist/cli/render/events/effectRequested.js +22 -0
- package/dist/cli/render/events/effectResolved.d.ts +3 -0
- package/dist/cli/render/events/effectResolved.d.ts.map +1 -0
- package/dist/cli/render/events/effectResolved.js +20 -0
- package/dist/cli/render/events/index.d.ts +4 -0
- package/dist/cli/render/events/index.d.ts.map +1 -0
- package/dist/cli/render/events/index.js +25 -0
- package/dist/cli/render/events/processAssigned.d.ts +3 -0
- package/dist/cli/render/events/processAssigned.d.ts.map +1 -0
- package/dist/cli/render/events/processAssigned.js +22 -0
- package/dist/cli/render/events/runCompleted.d.ts +3 -0
- package/dist/cli/render/events/runCompleted.d.ts.map +1 -0
- package/dist/cli/render/events/runCompleted.js +18 -0
- package/dist/cli/render/events/runCreated.d.ts +3 -0
- package/dist/cli/render/events/runCreated.d.ts.map +1 -0
- package/dist/cli/render/events/runCreated.js +19 -0
- package/dist/cli/render/events/runFailed.d.ts +3 -0
- package/dist/cli/render/events/runFailed.d.ts.map +1 -0
- package/dist/cli/render/events/runFailed.js +23 -0
- package/dist/cli/render/events/types.d.ts +6 -0
- package/dist/cli/render/events/types.d.ts.map +1 -0
- package/dist/cli/render/events/types.js +2 -0
- package/dist/cli/render/index.d.ts +5 -0
- package/dist/cli/render/index.d.ts.map +1 -0
- package/dist/cli/render/index.js +14 -0
- package/dist/cli/render/statusBadge.d.ts +4 -0
- package/dist/cli/render/statusBadge.d.ts.map +1 -0
- package/dist/cli/render/statusBadge.js +25 -0
- package/dist/cli/resolveInputPath.d.ts +61 -0
- package/dist/cli/resolveInputPath.d.ts.map +1 -0
- package/dist/cli/resolveInputPath.js +193 -0
- package/dist/compression/config-loader.d.ts +24 -0
- package/dist/compression/config-loader.d.ts.map +1 -0
- package/dist/compression/config-loader.js +179 -0
- package/dist/compression/config.d.ts +49 -0
- package/dist/compression/config.d.ts.map +1 -0
- package/dist/compression/config.js +41 -0
- package/dist/compression/density-filter.d.ts +20 -0
- package/dist/compression/density-filter.d.ts.map +1 -0
- package/dist/compression/density-filter.js +91 -0
- package/dist/compression/library-cache.d.ts +19 -0
- package/dist/compression/library-cache.d.ts.map +1 -0
- package/dist/compression/library-cache.js +149 -0
- package/dist/config/configValidation.d.ts +22 -0
- package/dist/config/configValidation.d.ts.map +1 -0
- package/dist/config/configValidation.js +140 -0
- package/dist/config/defaults.d.ts +67 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +132 -0
- package/dist/config/index.d.ts +26 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +51 -0
- package/dist/config/runs.d.ts +22 -0
- package/dist/config/runs.d.ts.map +1 -0
- package/dist/config/runs.js +192 -0
- package/dist/cost/claudeCodeParser.d.ts +81 -0
- package/dist/cost/claudeCodeParser.d.ts.map +1 -0
- package/dist/cost/claudeCodeParser.js +232 -0
- package/dist/cost/collector.d.ts +42 -0
- package/dist/cost/collector.d.ts.map +1 -0
- package/dist/cost/collector.js +105 -0
- package/dist/cost/index.d.ts +18 -0
- package/dist/cost/index.d.ts.map +1 -0
- package/dist/cost/index.js +38 -0
- package/dist/cost/journal.d.ts +40 -0
- package/dist/cost/journal.d.ts.map +1 -0
- package/dist/cost/journal.js +137 -0
- package/dist/cost/pricing.d.ts +19 -0
- package/dist/cost/pricing.d.ts.map +1 -0
- package/dist/cost/pricing.js +135 -0
- package/dist/cost/types.d.ts +87 -0
- package/dist/cost/types.d.ts.map +1 -0
- package/dist/cost/types.js +19 -0
- package/dist/harness/BaseAdapter.d.ts +93 -0
- package/dist/harness/BaseAdapter.d.ts.map +1 -0
- package/dist/harness/BaseAdapter.js +236 -0
- package/dist/harness/adapters/claude-code.d.ts +24 -0
- package/dist/harness/adapters/claude-code.d.ts.map +1 -0
- package/dist/harness/adapters/claude-code.js +64 -0
- package/dist/harness/adapters/codex.d.ts +12 -0
- package/dist/harness/adapters/codex.d.ts.map +1 -0
- package/dist/harness/adapters/codex.js +37 -0
- package/dist/harness/adapters/cursor.d.ts +13 -0
- package/dist/harness/adapters/cursor.d.ts.map +1 -0
- package/dist/harness/adapters/cursor.js +85 -0
- package/dist/harness/adapters/gemini-cli.d.ts +12 -0
- package/dist/harness/adapters/gemini-cli.d.ts.map +1 -0
- package/dist/harness/adapters/gemini-cli.js +34 -0
- package/dist/harness/adapters/github-copilot.d.ts +13 -0
- package/dist/harness/adapters/github-copilot.d.ts.map +1 -0
- package/dist/harness/adapters/github-copilot.js +59 -0
- package/dist/harness/adapters/index.d.ts +12 -0
- package/dist/harness/adapters/index.d.ts.map +1 -0
- package/dist/harness/adapters/index.js +26 -0
- package/dist/harness/adapters/oh-my-pi.d.ts +12 -0
- package/dist/harness/adapters/oh-my-pi.d.ts.map +1 -0
- package/dist/harness/adapters/oh-my-pi.js +41 -0
- package/dist/harness/adapters/openclaw.d.ts +12 -0
- package/dist/harness/adapters/openclaw.d.ts.map +1 -0
- package/dist/harness/adapters/openclaw.js +49 -0
- package/dist/harness/adapters/opencode.d.ts +12 -0
- package/dist/harness/adapters/opencode.d.ts.map +1 -0
- package/dist/harness/adapters/opencode.js +51 -0
- package/dist/harness/adapters/pi.d.ts +12 -0
- package/dist/harness/adapters/pi.d.ts.map +1 -0
- package/dist/harness/adapters/pi.js +41 -0
- package/dist/harness/amuxFallbackMetadata.d.ts +3 -0
- package/dist/harness/amuxFallbackMetadata.d.ts.map +1 -0
- package/dist/harness/amuxFallbackMetadata.js +201 -0
- package/dist/harness/amuxMetadata.d.ts +51 -0
- package/dist/harness/amuxMetadata.d.ts.map +1 -0
- package/dist/harness/amuxMetadata.js +176 -0
- package/dist/harness/customAdapter.d.ts +14 -0
- package/dist/harness/customAdapter.d.ts.map +1 -0
- package/dist/harness/customAdapter.js +124 -0
- package/dist/harness/derivePromptContext.d.ts +75 -0
- package/dist/harness/derivePromptContext.d.ts.map +1 -0
- package/dist/harness/derivePromptContext.js +120 -0
- package/dist/harness/discovery.d.ts +80 -0
- package/dist/harness/discovery.d.ts.map +1 -0
- package/dist/harness/discovery.js +313 -0
- package/dist/harness/hooks/babysitterHooks.d.ts +23 -0
- package/dist/harness/hooks/babysitterHooks.d.ts.map +1 -0
- package/dist/harness/hooks/babysitterHooks.js +162 -0
- package/dist/harness/hooks/promptContexts.d.ts +24 -0
- package/dist/harness/hooks/promptContexts.d.ts.map +1 -0
- package/dist/harness/hooks/promptContexts.js +106 -0
- package/dist/harness/hooks/runState.d.ts +14 -0
- package/dist/harness/hooks/runState.d.ts.map +1 -0
- package/dist/harness/hooks/runState.js +103 -0
- package/dist/harness/hooks/sessionBinding.d.ts +28 -0
- package/dist/harness/hooks/sessionBinding.d.ts.map +1 -0
- package/dist/harness/hooks/sessionBinding.js +153 -0
- package/dist/harness/hooks/stopHookContinuation.d.ts +44 -0
- package/dist/harness/hooks/stopHookContinuation.d.ts.map +1 -0
- package/dist/harness/hooks/stopHookContinuation.js +280 -0
- package/dist/harness/hooks/stopHookHandler.d.ts +35 -0
- package/dist/harness/hooks/stopHookHandler.d.ts.map +1 -0
- package/dist/harness/hooks/stopHookHandler.js +354 -0
- package/dist/harness/hooks/utils.d.ts +43 -0
- package/dist/harness/hooks/utils.d.ts.map +1 -0
- package/dist/harness/hooks/utils.js +215 -0
- package/dist/harness/index.d.ts +20 -0
- package/dist/harness/index.d.ts.map +1 -0
- package/dist/harness/index.js +51 -0
- package/dist/harness/install.d.ts +71 -0
- package/dist/harness/install.d.ts.map +1 -0
- package/dist/harness/install.js +267 -0
- package/dist/harness/installSupport.d.ts +37 -0
- package/dist/harness/installSupport.d.ts.map +1 -0
- package/dist/harness/installSupport.js +203 -0
- package/dist/harness/internal/promptContext.d.ts +3 -0
- package/dist/harness/internal/promptContext.d.ts.map +1 -0
- package/dist/harness/internal/promptContext.js +29 -0
- package/dist/harness/nullAdapter.d.ts +9 -0
- package/dist/harness/nullAdapter.d.ts.map +1 -0
- package/dist/harness/nullAdapter.js +46 -0
- package/dist/harness/registry.d.ts +51 -0
- package/dist/harness/registry.d.ts.map +1 -0
- package/dist/harness/registry.js +235 -0
- package/dist/harness/types.d.ts +200 -0
- package/dist/harness/types.d.ts.map +1 -0
- package/dist/harness/types.js +34 -0
- package/dist/harness/unified/adapter.d.ts +21 -0
- package/dist/harness/unified/adapter.d.ts.map +1 -0
- package/dist/harness/unified/adapter.js +239 -0
- package/dist/harness/unified/capabilities.d.ts +37 -0
- package/dist/harness/unified/capabilities.d.ts.map +1 -0
- package/dist/harness/unified/capabilities.js +79 -0
- package/dist/harness/unified/discovery.d.ts +11 -0
- package/dist/harness/unified/discovery.d.ts.map +1 -0
- package/dist/harness/unified/discovery.js +23 -0
- package/dist/harness/unified/index.d.ts +6 -0
- package/dist/harness/unified/index.d.ts.map +1 -0
- package/dist/harness/unified/index.js +16 -0
- package/dist/harness/unified/promptContext.d.ts +16 -0
- package/dist/harness/unified/promptContext.d.ts.map +1 -0
- package/dist/harness/unified/promptContext.js +56 -0
- package/dist/harness/unified/subprocess.d.ts +57 -0
- package/dist/harness/unified/subprocess.d.ts.map +1 -0
- package/dist/harness/unified/subprocess.js +121 -0
- package/dist/hooks/dispatcher.d.ts +29 -0
- package/dist/hooks/dispatcher.d.ts.map +1 -0
- package/dist/hooks/dispatcher.js +337 -0
- package/dist/hooks/index.d.ts +16 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +20 -0
- package/dist/hooks/types.d.ts +170 -0
- package/dist/hooks/types.d.ts.map +1 -0
- package/dist/hooks/types.js +6 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +76 -0
- package/dist/logging/index.d.ts +3 -0
- package/dist/logging/index.d.ts.map +1 -0
- package/dist/logging/index.js +11 -0
- package/dist/logging/runLogger.d.ts +85 -0
- package/dist/logging/runLogger.d.ts.map +1 -0
- package/dist/logging/runLogger.js +182 -0
- package/dist/mcp/index.d.ts +7 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +53 -0
- package/dist/mcp/server.d.ts +3 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +21 -0
- package/dist/mcp/tools/discovery.d.ts +3 -0
- package/dist/mcp/tools/discovery.d.ts.map +1 -0
- package/dist/mcp/tools/discovery.js +117 -0
- package/dist/mcp/tools/runs.d.ts +3 -0
- package/dist/mcp/tools/runs.d.ts.map +1 -0
- package/dist/mcp/tools/runs.js +289 -0
- package/dist/mcp/tools/sessions.d.ts +3 -0
- package/dist/mcp/tools/sessions.d.ts.map +1 -0
- package/dist/mcp/tools/sessions.js +216 -0
- package/dist/mcp/tools/tasks.d.ts +3 -0
- package/dist/mcp/tools/tasks.d.ts.map +1 -0
- package/dist/mcp/tools/tasks.js +230 -0
- package/dist/mcp/transport/index.d.ts +1 -0
- package/dist/mcp/transport/index.d.ts.map +1 -0
- package/dist/mcp/transport/index.js +2 -0
- package/dist/mcp/util/errors.d.ts +14 -0
- package/dist/mcp/util/errors.d.ts.map +1 -0
- package/dist/mcp/util/errors.js +10 -0
- package/dist/mcp/util/resolve-run-dir.d.ts +6 -0
- package/dist/mcp/util/resolve-run-dir.d.ts.map +1 -0
- package/dist/mcp/util/resolve-run-dir.js +11 -0
- package/dist/plugins/index.d.ts +14 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +51 -0
- package/dist/plugins/marketplace.d.ts +36 -0
- package/dist/plugins/marketplace.d.ts.map +1 -0
- package/dist/plugins/marketplace.js +162 -0
- package/dist/plugins/marketplaceHelpers.d.ts +15 -0
- package/dist/plugins/marketplaceHelpers.d.ts.map +1 -0
- package/dist/plugins/marketplaceHelpers.js +114 -0
- package/dist/plugins/migrations.d.ts +52 -0
- package/dist/plugins/migrations.d.ts.map +1 -0
- package/dist/plugins/migrations.js +151 -0
- package/dist/plugins/packageReader.d.ts +47 -0
- package/dist/plugins/packageReader.d.ts.map +1 -0
- package/dist/plugins/packageReader.js +153 -0
- package/dist/plugins/paths.d.ts +30 -0
- package/dist/plugins/paths.d.ts.map +1 -0
- package/dist/plugins/paths.js +69 -0
- package/dist/plugins/registry.d.ts +54 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +116 -0
- package/dist/plugins/types.d.ts +133 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +35 -0
- package/dist/processLibrary/active.d.ts +17 -0
- package/dist/processLibrary/active.d.ts.map +1 -0
- package/dist/processLibrary/active.js +216 -0
- package/dist/processLibrary/activeTypes.d.ts +82 -0
- package/dist/processLibrary/activeTypes.d.ts.map +1 -0
- package/dist/processLibrary/activeTypes.js +6 -0
- package/dist/profiles/index.d.ts +25 -0
- package/dist/profiles/index.d.ts.map +1 -0
- package/dist/profiles/index.js +40 -0
- package/dist/profiles/projectProfile.d.ts +67 -0
- package/dist/profiles/projectProfile.d.ts.map +1 -0
- package/dist/profiles/projectProfile.js +169 -0
- package/dist/profiles/projectProfileMerge.d.ts +3 -0
- package/dist/profiles/projectProfileMerge.d.ts.map +1 -0
- package/dist/profiles/projectProfileMerge.js +175 -0
- package/dist/profiles/projectProfileRender.d.ts +3 -0
- package/dist/profiles/projectProfileRender.d.ts.map +1 -0
- package/dist/profiles/projectProfileRender.js +275 -0
- package/dist/profiles/projectTypes.d.ts +149 -0
- package/dist/profiles/projectTypes.d.ts.map +1 -0
- package/dist/profiles/projectTypes.js +6 -0
- package/dist/profiles/types.d.ts +5 -0
- package/dist/profiles/types.d.ts.map +1 -0
- package/dist/profiles/types.js +11 -0
- package/dist/profiles/userProfile.d.ts +67 -0
- package/dist/profiles/userProfile.d.ts.map +1 -0
- package/dist/profiles/userProfile.js +351 -0
- package/dist/profiles/userProfileRender.d.ts +3 -0
- package/dist/profiles/userProfileRender.d.ts.map +1 -0
- package/dist/profiles/userProfileRender.js +188 -0
- package/dist/profiles/userTypes.d.ts +119 -0
- package/dist/profiles/userTypes.d.ts.map +1 -0
- package/dist/profiles/userTypes.js +6 -0
- package/dist/prompts/babysitterMdDiscovery.d.ts +38 -0
- package/dist/prompts/babysitterMdDiscovery.d.ts.map +1 -0
- package/dist/prompts/babysitterMdDiscovery.js +150 -0
- package/dist/prompts/capabilityCollector.d.ts +48 -0
- package/dist/prompts/capabilityCollector.d.ts.map +1 -0
- package/dist/prompts/capabilityCollector.js +126 -0
- package/dist/prompts/capabilityProcessMap.d.ts +33 -0
- package/dist/prompts/capabilityProcessMap.d.ts.map +1 -0
- package/dist/prompts/capabilityProcessMap.js +105 -0
- package/dist/prompts/commandTemplates.d.ts +4 -0
- package/dist/prompts/commandTemplates.d.ts.map +1 -0
- package/dist/prompts/commandTemplates.js +32 -0
- package/dist/prompts/compose.d.ts +28 -0
- package/dist/prompts/compose.d.ts.map +1 -0
- package/dist/prompts/compose.js +197 -0
- package/dist/prompts/context.d.ts +8 -0
- package/dist/prompts/context.d.ts.map +1 -0
- package/dist/prompts/context.js +13 -0
- package/dist/prompts/contextDetect.d.ts +64 -0
- package/dist/prompts/contextDetect.d.ts.map +1 -0
- package/dist/prompts/contextDetect.js +122 -0
- package/dist/prompts/contextShared.d.ts +6 -0
- package/dist/prompts/contextShared.d.ts.map +1 -0
- package/dist/prompts/contextShared.js +63 -0
- package/dist/prompts/continuityOverlay.d.ts +35 -0
- package/dist/prompts/continuityOverlay.d.ts.map +1 -0
- package/dist/prompts/continuityOverlay.js +210 -0
- package/dist/prompts/index.d.ts +23 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +88 -0
- package/dist/prompts/parts/breakpointHandling.d.ts +8 -0
- package/dist/prompts/parts/breakpointHandling.d.ts.map +1 -0
- package/dist/prompts/parts/breakpointHandling.js +12 -0
- package/dist/prompts/parts/codingPhilosophy.d.ts +7 -0
- package/dist/prompts/parts/codingPhilosophy.d.ts.map +1 -0
- package/dist/prompts/parts/codingPhilosophy.js +11 -0
- package/dist/prompts/parts/completionProof.d.ts +6 -0
- package/dist/prompts/parts/completionProof.d.ts.map +1 -0
- package/dist/prompts/parts/completionProof.js +10 -0
- package/dist/prompts/parts/continuityOverlay.d.ts +2 -0
- package/dist/prompts/parts/continuityOverlay.d.ts.map +1 -0
- package/dist/prompts/parts/continuityOverlay.js +5 -0
- package/dist/prompts/parts/criticalRules.d.ts +7 -0
- package/dist/prompts/parts/criticalRules.d.ts.map +1 -0
- package/dist/prompts/parts/criticalRules.js +29 -0
- package/dist/prompts/parts/dependencies.d.ts +6 -0
- package/dist/prompts/parts/dependencies.d.ts.map +1 -0
- package/dist/prompts/parts/dependencies.js +10 -0
- package/dist/prompts/parts/effects.d.ts +6 -0
- package/dist/prompts/parts/effects.d.ts.map +1 -0
- package/dist/prompts/parts/effects.js +10 -0
- package/dist/prompts/parts/gitSafety.d.ts +7 -0
- package/dist/prompts/parts/gitSafety.d.ts.map +1 -0
- package/dist/prompts/parts/gitSafety.js +11 -0
- package/dist/prompts/parts/index.d.ts +37 -0
- package/dist/prompts/parts/index.d.ts.map +1 -0
- package/dist/prompts/parts/index.js +70 -0
- package/dist/prompts/parts/intentFidelityChecks.d.ts +7 -0
- package/dist/prompts/parts/intentFidelityChecks.d.ts.map +1 -0
- package/dist/prompts/parts/intentFidelityChecks.js +14 -0
- package/dist/prompts/parts/interview.d.ts +6 -0
- package/dist/prompts/parts/interview.d.ts.map +1 -0
- package/dist/prompts/parts/interview.js +18 -0
- package/dist/prompts/parts/iteration.d.ts +6 -0
- package/dist/prompts/parts/iteration.d.ts.map +1 -0
- package/dist/prompts/parts/iteration.js +15 -0
- package/dist/prompts/parts/loopControl.d.ts +11 -0
- package/dist/prompts/parts/loopControl.d.ts.map +1 -0
- package/dist/prompts/parts/loopControl.js +22 -0
- package/dist/prompts/parts/nonNegotiables.d.ts +7 -0
- package/dist/prompts/parts/nonNegotiables.d.ts.map +1 -0
- package/dist/prompts/parts/nonNegotiables.js +14 -0
- package/dist/prompts/parts/outputEfficiency.d.ts +7 -0
- package/dist/prompts/parts/outputEfficiency.d.ts.map +1 -0
- package/dist/prompts/parts/outputEfficiency.js +11 -0
- package/dist/prompts/parts/parallelDispatch.d.ts +15 -0
- package/dist/prompts/parts/parallelDispatch.d.ts.map +1 -0
- package/dist/prompts/parts/parallelDispatch.js +46 -0
- package/dist/prompts/parts/parallelPhaseDetection.d.ts +6 -0
- package/dist/prompts/parts/parallelPhaseDetection.d.ts.map +1 -0
- package/dist/prompts/parts/parallelPhaseDetection.js +10 -0
- package/dist/prompts/parts/priorityLadder.d.ts +7 -0
- package/dist/prompts/parts/priorityLadder.d.ts.map +1 -0
- package/dist/prompts/parts/priorityLadder.js +13 -0
- package/dist/prompts/parts/processCreation.d.ts +6 -0
- package/dist/prompts/parts/processCreation.d.ts.map +1 -0
- package/dist/prompts/parts/processCreation.js +10 -0
- package/dist/prompts/parts/processGuidelines.d.ts +7 -0
- package/dist/prompts/parts/processGuidelines.d.ts.map +1 -0
- package/dist/prompts/parts/processGuidelines.js +11 -0
- package/dist/prompts/parts/projectInstructions.d.ts +8 -0
- package/dist/prompts/parts/projectInstructions.d.ts.map +1 -0
- package/dist/prompts/parts/projectInstructions.js +28 -0
- package/dist/prompts/parts/quickReference.d.ts +6 -0
- package/dist/prompts/parts/quickReference.d.ts.map +1 -0
- package/dist/prompts/parts/quickReference.js +17 -0
- package/dist/prompts/parts/recovery.d.ts +7 -0
- package/dist/prompts/parts/recovery.d.ts.map +1 -0
- package/dist/prompts/parts/recovery.js +11 -0
- package/dist/prompts/parts/resultsPosting.d.ts +7 -0
- package/dist/prompts/parts/resultsPosting.d.ts.map +1 -0
- package/dist/prompts/parts/resultsPosting.js +11 -0
- package/dist/prompts/parts/rootCauseGuardrail.d.ts +7 -0
- package/dist/prompts/parts/rootCauseGuardrail.d.ts.map +1 -0
- package/dist/prompts/parts/rootCauseGuardrail.js +13 -0
- package/dist/prompts/parts/runCreation.d.ts +7 -0
- package/dist/prompts/parts/runCreation.d.ts.map +1 -0
- package/dist/prompts/parts/runCreation.js +61 -0
- package/dist/prompts/parts/runOverlapDetection.d.ts +6 -0
- package/dist/prompts/parts/runOverlapDetection.d.ts.map +1 -0
- package/dist/prompts/parts/runOverlapDetection.js +10 -0
- package/dist/prompts/parts/seeAlso.d.ts +7 -0
- package/dist/prompts/parts/seeAlso.d.ts.map +1 -0
- package/dist/prompts/parts/seeAlso.js +11 -0
- package/dist/prompts/parts/taskExamples.d.ts +7 -0
- package/dist/prompts/parts/taskExamples.d.ts.map +1 -0
- package/dist/prompts/parts/taskExamples.js +11 -0
- package/dist/prompts/parts/taskKinds.d.ts +6 -0
- package/dist/prompts/parts/taskKinds.d.ts.map +1 -0
- package/dist/prompts/parts/taskKinds.js +25 -0
- package/dist/prompts/parts/toolPreferences.d.ts +7 -0
- package/dist/prompts/parts/toolPreferences.d.ts.map +1 -0
- package/dist/prompts/parts/toolPreferences.js +11 -0
- package/dist/prompts/parts/userProfile.d.ts +7 -0
- package/dist/prompts/parts/userProfile.d.ts.map +1 -0
- package/dist/prompts/parts/userProfile.js +11 -0
- package/dist/prompts/runtimeContext.d.ts +30 -0
- package/dist/prompts/runtimeContext.d.ts.map +1 -0
- package/dist/prompts/runtimeContext.js +38 -0
- package/dist/prompts/strata.d.ts +60 -0
- package/dist/prompts/strata.d.ts.map +1 -0
- package/dist/prompts/strata.js +243 -0
- package/dist/prompts/templateRenderer.d.ts +18 -0
- package/dist/prompts/templateRenderer.d.ts.map +1 -0
- package/dist/prompts/templateRenderer.js +131 -0
- package/dist/prompts/templates/breakpoint-handling.md +137 -0
- package/dist/prompts/templates/coding-philosophy.md +12 -0
- package/dist/prompts/templates/commands/assimilate.md +47 -0
- package/dist/prompts/templates/commands/cleanup.md +54 -0
- package/dist/prompts/templates/commands/contrib.md +40 -0
- package/dist/prompts/templates/commands/doctor.md +511 -0
- package/dist/prompts/templates/commands/forever.md +11 -0
- package/dist/prompts/templates/commands/project-install.md +25 -0
- package/dist/prompts/templates/commands/retrospect.md +68 -0
- package/dist/prompts/templates/commands/user-install.md +24 -0
- package/dist/prompts/templates/completion-proof.md +21 -0
- package/dist/prompts/templates/critical-rules.md +73 -0
- package/dist/prompts/templates/dependencies.md +9 -0
- package/dist/prompts/templates/effects.md +46 -0
- package/dist/prompts/templates/git-safety.md +9 -0
- package/dist/prompts/templates/intent-fidelity-checks.md +31 -0
- package/dist/prompts/templates/interview.md +65 -0
- package/dist/prompts/templates/iteration.md +41 -0
- package/dist/prompts/templates/loop-control.md +64 -0
- package/dist/prompts/templates/non-negotiables.md +11 -0
- package/dist/prompts/templates/output-efficiency.md +12 -0
- package/dist/prompts/templates/parallel-phase-detection.md +59 -0
- package/dist/prompts/templates/priority-ladder.md +13 -0
- package/dist/prompts/templates/process-creation.md +130 -0
- package/dist/prompts/templates/process-guidelines.md +106 -0
- package/dist/prompts/templates/quick-reference.md +46 -0
- package/dist/prompts/templates/recovery.md +30 -0
- package/dist/prompts/templates/results-posting.md +69 -0
- package/dist/prompts/templates/root-cause-guardrail.md +14 -0
- package/dist/prompts/templates/run-creation.md +80 -0
- package/dist/prompts/templates/run-overlap-detection.md +65 -0
- package/dist/prompts/templates/see-also.md +4 -0
- package/dist/prompts/templates/task-examples.md +229 -0
- package/dist/prompts/templates/task-kinds.md +106 -0
- package/dist/prompts/templates/tool-preferences.md +8 -0
- package/dist/prompts/templates/user-profile.md +48 -0
- package/dist/prompts/types.d.ts +191 -0
- package/dist/prompts/types.d.ts.map +1 -0
- package/dist/prompts/types.js +7 -0
- package/dist/runtime/asyncEffects.d.ts +22 -0
- package/dist/runtime/asyncEffects.d.ts.map +1 -0
- package/dist/runtime/asyncEffects.js +86 -0
- package/dist/runtime/commitEffectResult.d.ts +12 -0
- package/dist/runtime/commitEffectResult.d.ts.map +1 -0
- package/dist/runtime/commitEffectResult.js +240 -0
- package/dist/runtime/constants.d.ts +2 -0
- package/dist/runtime/constants.d.ts.map +1 -0
- package/dist/runtime/constants.js +5 -0
- package/dist/runtime/createRun.d.ts +3 -0
- package/dist/runtime/createRun.d.ts.map +1 -0
- package/dist/runtime/createRun.js +142 -0
- package/dist/runtime/effectGroupRegistry.d.ts +57 -0
- package/dist/runtime/effectGroupRegistry.d.ts.map +1 -0
- package/dist/runtime/effectGroupRegistry.js +107 -0
- package/dist/runtime/errorSuggestions.d.ts +4 -0
- package/dist/runtime/errorSuggestions.d.ts.map +1 -0
- package/dist/runtime/errorSuggestions.js +98 -0
- package/dist/runtime/errorTemplates.d.ts +101 -0
- package/dist/runtime/errorTemplates.d.ts.map +1 -0
- package/dist/runtime/errorTemplates.js +173 -0
- package/dist/runtime/errorUtils.d.ts +10 -0
- package/dist/runtime/errorUtils.d.ts.map +1 -0
- package/dist/runtime/errorUtils.js +42 -0
- package/dist/runtime/exceptions.d.ts +73 -0
- package/dist/runtime/exceptions.d.ts.map +1 -0
- package/dist/runtime/exceptions.js +197 -0
- package/dist/runtime/hooks/runtime.d.ts +31 -0
- package/dist/runtime/hooks/runtime.d.ts.map +1 -0
- package/dist/runtime/hooks/runtime.js +67 -0
- package/dist/runtime/index.d.ts +18 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +61 -0
- package/dist/runtime/instrumentation.d.ts +6 -0
- package/dist/runtime/instrumentation.d.ts.map +1 -0
- package/dist/runtime/instrumentation.js +14 -0
- package/dist/runtime/intrinsics/breakpoint.d.ts +9 -0
- package/dist/runtime/intrinsics/breakpoint.d.ts.map +1 -0
- package/dist/runtime/intrinsics/breakpoint.js +108 -0
- package/dist/runtime/intrinsics/hook.d.ts +26 -0
- package/dist/runtime/intrinsics/hook.d.ts.map +1 -0
- package/dist/runtime/intrinsics/hook.js +45 -0
- package/dist/runtime/intrinsics/index.d.ts +7 -0
- package/dist/runtime/intrinsics/index.d.ts.map +1 -0
- package/dist/runtime/intrinsics/index.js +15 -0
- package/dist/runtime/intrinsics/orchestratorTask.d.ts +4 -0
- package/dist/runtime/intrinsics/orchestratorTask.d.ts.map +1 -0
- package/dist/runtime/intrinsics/orchestratorTask.js +28 -0
- package/dist/runtime/intrinsics/parallel.d.ts +9 -0
- package/dist/runtime/intrinsics/parallel.d.ts.map +1 -0
- package/dist/runtime/intrinsics/parallel.js +160 -0
- package/dist/runtime/intrinsics/parallelGroup.d.ts +16 -0
- package/dist/runtime/intrinsics/parallelGroup.d.ts.map +1 -0
- package/dist/runtime/intrinsics/parallelGroup.js +105 -0
- package/dist/runtime/intrinsics/sleep.d.ts +4 -0
- package/dist/runtime/intrinsics/sleep.d.ts.map +1 -0
- package/dist/runtime/intrinsics/sleep.js +70 -0
- package/dist/runtime/intrinsics/subprocess.d.ts +5 -0
- package/dist/runtime/intrinsics/subprocess.d.ts.map +1 -0
- package/dist/runtime/intrinsics/subprocess.js +56 -0
- package/dist/runtime/intrinsics/task.d.ts +26 -0
- package/dist/runtime/intrinsics/task.d.ts.map +1 -0
- package/dist/runtime/intrinsics/task.js +132 -0
- package/dist/runtime/intrinsics/taskHelpers.d.ts +20 -0
- package/dist/runtime/intrinsics/taskHelpers.d.ts.map +1 -0
- package/dist/runtime/intrinsics/taskHelpers.js +148 -0
- package/dist/runtime/invocation/hashInvocationKey.d.ts +12 -0
- package/dist/runtime/invocation/hashInvocationKey.d.ts.map +1 -0
- package/dist/runtime/invocation/hashInvocationKey.js +12 -0
- package/dist/runtime/invocation/index.d.ts +3 -0
- package/dist/runtime/invocation/index.d.ts.map +1 -0
- package/dist/runtime/invocation/index.js +5 -0
- package/dist/runtime/orchestrateHelpers.d.ts +16 -0
- package/dist/runtime/orchestrateHelpers.d.ts.map +1 -0
- package/dist/runtime/orchestrateHelpers.js +103 -0
- package/dist/runtime/orchestrateIteration.d.ts +4 -0
- package/dist/runtime/orchestrateIteration.d.ts.map +1 -0
- package/dist/runtime/orchestrateIteration.js +213 -0
- package/dist/runtime/parallelStrategies.d.ts +23 -0
- package/dist/runtime/parallelStrategies.d.ts.map +1 -0
- package/dist/runtime/parallelStrategies.js +79 -0
- package/dist/runtime/policy/engine.d.ts +4 -0
- package/dist/runtime/policy/engine.d.ts.map +1 -0
- package/dist/runtime/policy/engine.js +97 -0
- package/dist/runtime/policy/index.d.ts +5 -0
- package/dist/runtime/policy/index.d.ts.map +1 -0
- package/dist/runtime/policy/index.js +13 -0
- package/dist/runtime/policy/logging.d.ts +6 -0
- package/dist/runtime/policy/logging.d.ts.map +1 -0
- package/dist/runtime/policy/logging.js +43 -0
- package/dist/runtime/policy/types.d.ts +55 -0
- package/dist/runtime/policy/types.d.ts.map +1 -0
- package/dist/runtime/policy/types.js +10 -0
- package/dist/runtime/processContext.d.ts +36 -0
- package/dist/runtime/processContext.d.ts.map +1 -0
- package/dist/runtime/processContext.js +161 -0
- package/dist/runtime/replay/createReplayEngine.d.ts +32 -0
- package/dist/runtime/replay/createReplayEngine.d.ts.map +1 -0
- package/dist/runtime/replay/createReplayEngine.js +189 -0
- package/dist/runtime/replay/effectIndex.d.ts +39 -0
- package/dist/runtime/replay/effectIndex.d.ts.map +1 -0
- package/dist/runtime/replay/effectIndex.js +322 -0
- package/dist/runtime/replay/index.d.ts +7 -0
- package/dist/runtime/replay/index.d.ts.map +1 -0
- package/dist/runtime/replay/index.js +19 -0
- package/dist/runtime/replay/replayCursor.d.ts +7 -0
- package/dist/runtime/replay/replayCursor.d.ts.map +1 -0
- package/dist/runtime/replay/replayCursor.js +22 -0
- package/dist/runtime/replay/stateCache.d.ts +50 -0
- package/dist/runtime/replay/stateCache.d.ts.map +1 -0
- package/dist/runtime/replay/stateCache.js +222 -0
- package/dist/runtime/runLifecycleState.d.ts +7 -0
- package/dist/runtime/runLifecycleState.d.ts.map +1 -0
- package/dist/runtime/runLifecycleState.js +54 -0
- package/dist/runtime/schemaValidator.d.ts +16 -0
- package/dist/runtime/schemaValidator.d.ts.map +1 -0
- package/dist/runtime/schemaValidator.js +92 -0
- package/dist/runtime/types.d.ts +240 -0
- package/dist/runtime/types.d.ts.map +1 -0
- package/dist/runtime/types.js +2 -0
- package/dist/sdkVersion.d.ts +5 -0
- package/dist/sdkVersion.d.ts.map +1 -0
- package/dist/sdkVersion.js +49 -0
- package/dist/session/cleanup.d.ts +17 -0
- package/dist/session/cleanup.d.ts.map +1 -0
- package/dist/session/cleanup.js +212 -0
- package/dist/session/discovery.d.ts +25 -0
- package/dist/session/discovery.d.ts.map +1 -0
- package/dist/session/discovery.js +44 -0
- package/dist/session/index.d.ts +15 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +42 -0
- package/dist/session/parse.d.ts +45 -0
- package/dist/session/parse.d.ts.map +1 -0
- package/dist/session/parse.js +176 -0
- package/dist/session/transcript.d.ts +7 -0
- package/dist/session/transcript.d.ts.map +1 -0
- package/dist/session/transcript.js +51 -0
- package/dist/session/types.d.ts +196 -0
- package/dist/session/types.d.ts.map +1 -0
- package/dist/session/types.js +45 -0
- package/dist/session/whoami.d.ts +16 -0
- package/dist/session/whoami.d.ts.map +1 -0
- package/dist/session/whoami.js +108 -0
- package/dist/session/write.d.ts +61 -0
- package/dist/session/write.d.ts.map +1 -0
- package/dist/session/write.js +217 -0
- package/dist/storage/atomic.d.ts +2 -0
- package/dist/storage/atomic.d.ts.map +1 -0
- package/dist/storage/atomic.js +54 -0
- package/dist/storage/cleanup.d.ts +4 -0
- package/dist/storage/cleanup.d.ts.map +1 -0
- package/dist/storage/cleanup.js +96 -0
- package/dist/storage/clock.d.ts +6 -0
- package/dist/storage/clock.d.ts.map +1 -0
- package/dist/storage/clock.js +29 -0
- package/dist/storage/createRunDir.d.ts +6 -0
- package/dist/storage/createRunDir.d.ts.map +1 -0
- package/dist/storage/createRunDir.js +87 -0
- package/dist/storage/icloudWarning.d.ts +6 -0
- package/dist/storage/icloudWarning.d.ts.map +1 -0
- package/dist/storage/icloudWarning.js +84 -0
- package/dist/storage/index.d.ts +9 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +36 -0
- package/dist/storage/journal.d.ts +4 -0
- package/dist/storage/journal.d.ts.map +1 -0
- package/dist/storage/journal.js +133 -0
- package/dist/storage/lock.d.ts +10 -0
- package/dist/storage/lock.d.ts.map +1 -0
- package/dist/storage/lock.js +82 -0
- package/dist/storage/paths.d.ts +23 -0
- package/dist/storage/paths.d.ts.map +1 -0
- package/dist/storage/paths.js +51 -0
- package/dist/storage/runFiles.d.ts +6 -0
- package/dist/storage/runFiles.d.ts.map +1 -0
- package/dist/storage/runFiles.js +44 -0
- package/dist/storage/tasks.d.ts +17 -0
- package/dist/storage/tasks.d.ts.map +1 -0
- package/dist/storage/tasks.js +83 -0
- package/dist/storage/types.d.ts +121 -0
- package/dist/storage/types.d.ts.map +1 -0
- package/dist/storage/types.js +2 -0
- package/dist/storage/ulids.d.ts +11 -0
- package/dist/storage/ulids.d.ts.map +1 -0
- package/dist/storage/ulids.js +25 -0
- package/dist/tasks/batching.d.ts +34 -0
- package/dist/tasks/batching.d.ts.map +1 -0
- package/dist/tasks/batching.js +91 -0
- package/dist/tasks/context.d.ts +11 -0
- package/dist/tasks/context.d.ts.map +1 -0
- package/dist/tasks/context.js +181 -0
- package/dist/tasks/defineTask.d.ts +37 -0
- package/dist/tasks/defineTask.d.ts.map +1 -0
- package/dist/tasks/defineTask.js +99 -0
- package/dist/tasks/effectGroup.d.ts +19 -0
- package/dist/tasks/effectGroup.d.ts.map +1 -0
- package/dist/tasks/effectGroup.js +58 -0
- package/dist/tasks/grouping.d.ts +19 -0
- package/dist/tasks/grouping.d.ts.map +1 -0
- package/dist/tasks/grouping.js +54 -0
- package/dist/tasks/index.d.ts +9 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/index.js +24 -0
- package/dist/tasks/kinds/index.d.ts +7 -0
- package/dist/tasks/kinds/index.d.ts.map +1 -0
- package/dist/tasks/kinds/index.js +162 -0
- package/dist/tasks/kinds/resolvers.d.ts +21 -0
- package/dist/tasks/kinds/resolvers.d.ts.map +1 -0
- package/dist/tasks/kinds/resolvers.js +124 -0
- package/dist/tasks/partitioning.d.ts +11 -0
- package/dist/tasks/partitioning.d.ts.map +1 -0
- package/dist/tasks/partitioning.js +20 -0
- package/dist/tasks/registry.d.ts +53 -0
- package/dist/tasks/registry.d.ts.map +1 -0
- package/dist/tasks/registry.js +147 -0
- package/dist/tasks/serializer.d.ts +62 -0
- package/dist/tasks/serializer.d.ts.map +1 -0
- package/dist/tasks/serializer.js +197 -0
- package/dist/tasks/types.d.ts +180 -0
- package/dist/tasks/types.d.ts.map +1 -0
- package/dist/tasks/types.js +2 -0
- package/dist/test-fixtures/kinds/index.d.ts +56 -0
- package/dist/test-fixtures/kinds/index.d.ts.map +1 -0
- package/dist/test-fixtures/kinds/index.js +44 -0
- package/dist/testing/deterministic.d.ts +62 -0
- package/dist/testing/deterministic.d.ts.map +1 -0
- package/dist/testing/deterministic.js +193 -0
- package/dist/testing/deterministicProviders.d.ts +32 -0
- package/dist/testing/deterministicProviders.d.ts.map +1 -0
- package/dist/testing/deterministicProviders.js +263 -0
- package/dist/testing/index.d.ts +4 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +23 -0
- package/dist/testing/runHarness.d.ts +64 -0
- package/dist/testing/runHarness.d.ts.map +1 -0
- package/dist/testing/runHarness.js +165 -0
- package/dist/testing/snapshots.d.ts +17 -0
- package/dist/testing/snapshots.d.ts.map +1 -0
- package/dist/testing/snapshots.js +24 -0
- package/dist/utils/ancestorWalk.d.ts +14 -0
- package/dist/utils/ancestorWalk.d.ts.map +1 -0
- package/dist/utils/ancestorWalk.js +203 -0
- package/dist/utils/compressContext.d.ts +50 -0
- package/dist/utils/compressContext.d.ts.map +1 -0
- package/dist/utils/compressContext.js +180 -0
- package/dist/utils/processLiveness.d.ts +9 -0
- package/dist/utils/processLiveness.d.ts.map +1 -0
- package/dist/utils/processLiveness.js +36 -0
- package/dist/utils/sessionMarker.d.ts +17 -0
- package/dist/utils/sessionMarker.d.ts.map +1 -0
- package/dist/utils/sessionMarker.js +218 -0
- package/package.json +4 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* mcp:serve command - Launch the babysitter MCP server on stdio transport.
|
|
3
|
+
*
|
|
4
|
+
* stdout is reserved for MCP protocol messages; all logging goes to stderr.
|
|
5
|
+
* WebSocket transport is available via @a5c-ai/babysitter-agent.
|
|
6
|
+
*/
|
|
7
|
+
export declare function handleMcpServe(args: {
|
|
8
|
+
json: boolean;
|
|
9
|
+
transport?: string;
|
|
10
|
+
}): Promise<number>;
|
|
11
|
+
//# sourceMappingURL=mcpServe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpServe.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/mcpServe.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,wBAAsB,cAAc,CAAC,IAAI,EAAE;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,MAAM,CAAC,CA4BlB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* mcp:serve command - Launch the babysitter MCP server on stdio transport.
|
|
4
|
+
*
|
|
5
|
+
* stdout is reserved for MCP protocol messages; all logging goes to stderr.
|
|
6
|
+
* WebSocket transport is available via @a5c-ai/babysitter-agent.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.handleMcpServe = handleMcpServe;
|
|
10
|
+
const mcp_1 = require("../../mcp");
|
|
11
|
+
const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
12
|
+
function installShutdownHandlers(shutdownFn) {
|
|
13
|
+
process.on("SIGINT", () => void shutdownFn());
|
|
14
|
+
process.on("SIGTERM", () => void shutdownFn());
|
|
15
|
+
}
|
|
16
|
+
async function handleMcpServe(args) {
|
|
17
|
+
const transportType = args.transport ?? "stdio";
|
|
18
|
+
if (transportType === "ws" || transportType === "websocket") {
|
|
19
|
+
process.stderr.write("WebSocket transport has moved to @a5c-ai/babysitter-agent.\n" +
|
|
20
|
+
"Use babysitter-agent mcp:serve --transport websocket instead.\n");
|
|
21
|
+
return 1;
|
|
22
|
+
}
|
|
23
|
+
const server = (0, mcp_1.createBabysitterMcpServer)();
|
|
24
|
+
const transport = new stdio_js_1.StdioServerTransport();
|
|
25
|
+
await server.connect(transport);
|
|
26
|
+
process.stderr.write(args.json
|
|
27
|
+
? JSON.stringify({ status: "running", transport: "stdio" }) + "\n"
|
|
28
|
+
: "Babysitter MCP server running on stdio\n");
|
|
29
|
+
installShutdownHandlers(async () => {
|
|
30
|
+
process.stderr.write("Shutting down MCP server...\n");
|
|
31
|
+
await server.close();
|
|
32
|
+
process.exit(0);
|
|
33
|
+
});
|
|
34
|
+
return await new Promise(() => { });
|
|
35
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type PluginCommandArgs } from './shared';
|
|
2
|
+
export declare function handlePluginAddMarketplace(args: PluginCommandArgs): Promise<number>;
|
|
3
|
+
export declare function handlePluginUpdateMarketplace(args: PluginCommandArgs): Promise<number>;
|
|
4
|
+
export declare function handlePluginListPlugins(args: PluginCommandArgs): Promise<number>;
|
|
5
|
+
//# sourceMappingURL=marketplaceCommands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplaceCommands.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/plugin/marketplaceCommands.ts"],"names":[],"mappings":"AAMA,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAgClB,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA6BzF;AAED,wBAAsB,6BAA6B,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA4B5F;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA6BtF"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handlePluginAddMarketplace = handlePluginAddMarketplace;
|
|
4
|
+
exports.handlePluginUpdateMarketplace = handlePluginUpdateMarketplace;
|
|
5
|
+
exports.handlePluginListPlugins = handlePluginListPlugins;
|
|
6
|
+
const marketplace_1 = require("../../../plugins/marketplace");
|
|
7
|
+
const shared_1 = require("./shared");
|
|
8
|
+
function emitError(command, json, error, message) {
|
|
9
|
+
if (json) {
|
|
10
|
+
console.log(JSON.stringify({ error, message }));
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
console.error(`[${command}] ${message}`);
|
|
14
|
+
}
|
|
15
|
+
return 1;
|
|
16
|
+
}
|
|
17
|
+
function printPluginTable(scope, marketplaceName, plugins) {
|
|
18
|
+
if (plugins.length === 0) {
|
|
19
|
+
console.log(`No plugins found in marketplace "${marketplaceName}" (scope: ${scope}).`);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
console.log(`Plugins in marketplace "${marketplaceName}" (scope: ${scope}):\n`);
|
|
23
|
+
const nameWidth = Math.max(...plugins.map((plugin) => plugin.name.length), 4);
|
|
24
|
+
const versionWidth = Math.max(...plugins.map((plugin) => plugin.latestVersion.length), 7);
|
|
25
|
+
console.log(` ${'NAME'.padEnd(nameWidth)} ${'VERSION'.padEnd(versionWidth)} DESCRIPTION`);
|
|
26
|
+
console.log(` ${'─'.repeat(nameWidth)} ${'─'.repeat(versionWidth)} ${'─'.repeat(40)}`);
|
|
27
|
+
for (const plugin of plugins) {
|
|
28
|
+
console.log(` ${plugin.name.padEnd(nameWidth)} ${plugin.latestVersion.padEnd(versionWidth)} ${plugin.description}`);
|
|
29
|
+
}
|
|
30
|
+
console.log(`\n ${plugins.length} plugin(s) available.`);
|
|
31
|
+
}
|
|
32
|
+
async function handlePluginAddMarketplace(args) {
|
|
33
|
+
const { marketplaceUrl, marketplacePath, marketplaceBranch, scope, json, force } = args;
|
|
34
|
+
const url = (0, shared_1.requireArg)(marketplaceUrl, '--marketplace-url', 'plugin:add-marketplace', json);
|
|
35
|
+
if (!url) {
|
|
36
|
+
return 1;
|
|
37
|
+
}
|
|
38
|
+
if (!(0, shared_1.requireScope)(scope, 'plugin:add-marketplace', json)) {
|
|
39
|
+
return 1;
|
|
40
|
+
}
|
|
41
|
+
try {
|
|
42
|
+
const directory = await (0, marketplace_1.cloneMarketplace)(marketplaceUrl, scope, (0, shared_1.getProjectDir)(scope), marketplacePath, marketplaceBranch, force);
|
|
43
|
+
if (json) {
|
|
44
|
+
console.log(JSON.stringify({ success: true, url: marketplaceUrl, scope, directory }, null, 2));
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
console.log(`Marketplace cloned successfully.\n URL: ${marketplaceUrl}\n Scope: ${scope}\n Directory: ${directory}`);
|
|
48
|
+
}
|
|
49
|
+
return 0;
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
53
|
+
return emitError('plugin:add-marketplace', json, 'clone_failed', message);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async function handlePluginUpdateMarketplace(args) {
|
|
57
|
+
const { marketplaceName, marketplaceBranch, scope, json } = args;
|
|
58
|
+
const name = (0, shared_1.requireArg)(marketplaceName, '--marketplace-name', 'plugin:update-marketplace', json);
|
|
59
|
+
if (!name) {
|
|
60
|
+
return 1;
|
|
61
|
+
}
|
|
62
|
+
if (!(0, shared_1.requireScope)(scope, 'plugin:update-marketplace', json)) {
|
|
63
|
+
return 1;
|
|
64
|
+
}
|
|
65
|
+
try {
|
|
66
|
+
await (0, marketplace_1.updateMarketplace)(marketplaceName, scope, (0, shared_1.getProjectDir)(scope), marketplaceBranch);
|
|
67
|
+
if (json) {
|
|
68
|
+
console.log(JSON.stringify({
|
|
69
|
+
success: true,
|
|
70
|
+
marketplace: marketplaceName,
|
|
71
|
+
scope,
|
|
72
|
+
...(marketplaceBranch ? { branch: marketplaceBranch } : {}),
|
|
73
|
+
}, null, 2));
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
const branchInfo = marketplaceBranch ? ` (branch: ${marketplaceBranch})` : '';
|
|
77
|
+
console.log(`Marketplace "${marketplaceName}" updated successfully${branchInfo} (scope: ${scope}).`);
|
|
78
|
+
}
|
|
79
|
+
return 0;
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
83
|
+
return emitError('plugin:update-marketplace', json, 'update_failed', message);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async function handlePluginListPlugins(args) {
|
|
87
|
+
const { scope, json } = args;
|
|
88
|
+
let { marketplaceName } = args;
|
|
89
|
+
if (!(0, shared_1.requireScope)(scope, 'plugin:list-plugins', json)) {
|
|
90
|
+
return 1;
|
|
91
|
+
}
|
|
92
|
+
const projectDir = (0, shared_1.getProjectDir)(scope);
|
|
93
|
+
if (!marketplaceName) {
|
|
94
|
+
marketplaceName = await (0, shared_1.autoResolveMarketplace)(scope, projectDir) ?? undefined;
|
|
95
|
+
}
|
|
96
|
+
const name = (0, shared_1.requireArg)(marketplaceName, '--marketplace-name', 'plugin:list-plugins', json);
|
|
97
|
+
if (!name) {
|
|
98
|
+
return 1;
|
|
99
|
+
}
|
|
100
|
+
try {
|
|
101
|
+
const plugins = await (0, marketplace_1.listMarketplacePlugins)(marketplaceName, scope, projectDir);
|
|
102
|
+
if (json) {
|
|
103
|
+
console.log(JSON.stringify({ marketplace: marketplaceName, scope, count: plugins.length, plugins }, null, 2));
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
printPluginTable(scope, marketplaceName, plugins);
|
|
107
|
+
}
|
|
108
|
+
return 0;
|
|
109
|
+
}
|
|
110
|
+
catch (error) {
|
|
111
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
112
|
+
return emitError('plugin:list-plugins', json, 'list_failed', message);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type PluginCommandArgs } from './shared';
|
|
2
|
+
export declare function handlePluginInstall(args: PluginCommandArgs): Promise<number>;
|
|
3
|
+
export declare function handlePluginUninstall(args: PluginCommandArgs): Promise<number>;
|
|
4
|
+
export declare function handlePluginUpdate(args: PluginCommandArgs): Promise<number>;
|
|
5
|
+
export declare function handlePluginConfigure(args: PluginCommandArgs): Promise<number>;
|
|
6
|
+
//# sourceMappingURL=packageCommands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"packageCommands.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/plugin/packageCommands.ts"],"names":[],"mappings":"AAcA,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAiClB,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqDlF;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA8CpF;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyFjF;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyCpF"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.handlePluginInstall = handlePluginInstall;
|
|
7
|
+
exports.handlePluginUninstall = handlePluginUninstall;
|
|
8
|
+
exports.handlePluginUpdate = handlePluginUpdate;
|
|
9
|
+
exports.handlePluginConfigure = handlePluginConfigure;
|
|
10
|
+
const node_fs_1 = require("node:fs");
|
|
11
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
12
|
+
const migrations_1 = require("../../../plugins/migrations");
|
|
13
|
+
const packageReader_1 = require("../../../plugins/packageReader");
|
|
14
|
+
const marketplace_1 = require("../../../plugins/marketplace");
|
|
15
|
+
const registry_1 = require("../../../plugins/registry");
|
|
16
|
+
const shared_1 = require("./shared");
|
|
17
|
+
function emitError(command, json, error, message) {
|
|
18
|
+
if (json) {
|
|
19
|
+
console.log(JSON.stringify({ error, message }));
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
console.error(`[${command}] ${message}`);
|
|
23
|
+
}
|
|
24
|
+
return 1;
|
|
25
|
+
}
|
|
26
|
+
async function findOptionalProcessFile(packagePath, filename) {
|
|
27
|
+
const processFilePath = node_path_1.default.join(packagePath, filename);
|
|
28
|
+
try {
|
|
29
|
+
await node_fs_1.promises.access(processFilePath);
|
|
30
|
+
return processFilePath;
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async function resolveMarketplaceName(args, command) {
|
|
37
|
+
const { scope, json } = args;
|
|
38
|
+
let { marketplaceName } = args;
|
|
39
|
+
if (!(0, shared_1.requireScope)(scope, command, json)) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
if (!marketplaceName) {
|
|
43
|
+
marketplaceName = await (0, shared_1.autoResolveMarketplace)(scope, (0, shared_1.getProjectDir)(scope)) ?? undefined;
|
|
44
|
+
}
|
|
45
|
+
return (0, shared_1.requireArg)(marketplaceName, '--marketplace-name', command, json);
|
|
46
|
+
}
|
|
47
|
+
async function handlePluginInstall(args) {
|
|
48
|
+
const { pluginName, marketplaceBranch, scope, pluginVersion, json } = args;
|
|
49
|
+
const plugin = (0, shared_1.requireArg)(pluginName, '--plugin-name', 'plugin:install', json);
|
|
50
|
+
if (!plugin) {
|
|
51
|
+
return 1;
|
|
52
|
+
}
|
|
53
|
+
const marketplace = await resolveMarketplaceName(args, 'plugin:install');
|
|
54
|
+
if (!marketplace || !scope) {
|
|
55
|
+
return 1;
|
|
56
|
+
}
|
|
57
|
+
const projectDir = (0, shared_1.getProjectDir)(scope);
|
|
58
|
+
try {
|
|
59
|
+
await (0, marketplace_1.updateMarketplace)(marketplace, scope, projectDir, marketplaceBranch);
|
|
60
|
+
let version = pluginVersion;
|
|
61
|
+
if (!version) {
|
|
62
|
+
const manifest = await (0, marketplace_1.readMarketplaceManifest)(marketplace, scope, projectDir);
|
|
63
|
+
const entry = manifest.plugins[pluginName];
|
|
64
|
+
if (!entry) {
|
|
65
|
+
throw new Error(`Plugin "${pluginName}" not found in marketplace "${marketplace}"`);
|
|
66
|
+
}
|
|
67
|
+
version = entry.latestVersion;
|
|
68
|
+
}
|
|
69
|
+
const packagePath = await (0, marketplace_1.resolvePluginPackagePath)(marketplace, pluginName, scope, projectDir);
|
|
70
|
+
const instructions = await (0, packageReader_1.readInstallInstructions)(packagePath);
|
|
71
|
+
const processFile = await findOptionalProcessFile(packagePath, 'install-process.js');
|
|
72
|
+
const result = {
|
|
73
|
+
plugin: pluginName,
|
|
74
|
+
version,
|
|
75
|
+
marketplace,
|
|
76
|
+
scope,
|
|
77
|
+
instructions: instructions ?? null,
|
|
78
|
+
processFile,
|
|
79
|
+
};
|
|
80
|
+
if (json) {
|
|
81
|
+
console.log(JSON.stringify(result, null, 2));
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
console.log(`Plugin: ${pluginName} v${version}`);
|
|
85
|
+
console.log(`Marketplace: ${marketplace}`);
|
|
86
|
+
console.log(`Scope: ${scope}`);
|
|
87
|
+
console.log(instructions ? `\nInstall Instructions:\n${instructions}` : '\nNo install instructions found.');
|
|
88
|
+
if (processFile) {
|
|
89
|
+
console.log(`\nInstall process file: ${processFile}`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return 0;
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
96
|
+
return emitError('plugin:install', json, 'install_failed', message);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
async function handlePluginUninstall(args) {
|
|
100
|
+
const { pluginName, scope, json } = args;
|
|
101
|
+
const plugin = (0, shared_1.requireArg)(pluginName, '--plugin-name', 'plugin:uninstall', json);
|
|
102
|
+
if (!plugin) {
|
|
103
|
+
return 1;
|
|
104
|
+
}
|
|
105
|
+
if (!(0, shared_1.requireScope)(scope, 'plugin:uninstall', json)) {
|
|
106
|
+
return 1;
|
|
107
|
+
}
|
|
108
|
+
const projectDir = (0, shared_1.getProjectDir)(scope);
|
|
109
|
+
try {
|
|
110
|
+
const registry = await (0, registry_1.readPluginRegistry)(scope, projectDir);
|
|
111
|
+
const entry = (0, registry_1.getPluginEntry)(registry, pluginName);
|
|
112
|
+
if (!entry) {
|
|
113
|
+
throw new Error(`Plugin "${pluginName}" is not installed in the ${scope} registry`);
|
|
114
|
+
}
|
|
115
|
+
const packagePath = await (0, marketplace_1.resolvePluginPackagePath)(entry.marketplace, pluginName, scope, projectDir);
|
|
116
|
+
const instructions = await (0, packageReader_1.readUninstallInstructions)(packagePath);
|
|
117
|
+
const processFile = await findOptionalProcessFile(packagePath, 'uninstall-process.js');
|
|
118
|
+
const result = {
|
|
119
|
+
plugin: pluginName,
|
|
120
|
+
version: entry.version,
|
|
121
|
+
marketplace: entry.marketplace,
|
|
122
|
+
scope,
|
|
123
|
+
instructions: instructions ?? null,
|
|
124
|
+
processFile,
|
|
125
|
+
};
|
|
126
|
+
if (json) {
|
|
127
|
+
console.log(JSON.stringify(result, null, 2));
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
console.log(`Plugin: ${pluginName} v${entry.version}`);
|
|
131
|
+
console.log(`Marketplace: ${entry.marketplace}`);
|
|
132
|
+
console.log(`Scope: ${scope}`);
|
|
133
|
+
console.log(instructions ? `\nUninstall Instructions:\n${instructions}` : '\nNo uninstall instructions found.');
|
|
134
|
+
if (processFile) {
|
|
135
|
+
console.log(`\nUninstall process file: ${processFile}`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return 0;
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
142
|
+
return emitError('plugin:uninstall', json, 'uninstall_failed', message);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
async function handlePluginUpdate(args) {
|
|
146
|
+
const { pluginName, marketplaceBranch, scope, pluginVersion, json } = args;
|
|
147
|
+
const plugin = (0, shared_1.requireArg)(pluginName, '--plugin-name', 'plugin:update', json);
|
|
148
|
+
if (!plugin) {
|
|
149
|
+
return 1;
|
|
150
|
+
}
|
|
151
|
+
const marketplace = await resolveMarketplaceName(args, 'plugin:update');
|
|
152
|
+
if (!marketplace || !scope) {
|
|
153
|
+
return 1;
|
|
154
|
+
}
|
|
155
|
+
const projectDir = (0, shared_1.getProjectDir)(scope);
|
|
156
|
+
try {
|
|
157
|
+
const registry = await (0, registry_1.readPluginRegistry)(scope, projectDir);
|
|
158
|
+
const entry = (0, registry_1.getPluginEntry)(registry, pluginName);
|
|
159
|
+
if (!entry) {
|
|
160
|
+
throw new Error(`Plugin "${pluginName}" is not installed in the ${scope} registry`);
|
|
161
|
+
}
|
|
162
|
+
await (0, marketplace_1.updateMarketplace)(marketplace, scope, projectDir, marketplaceBranch);
|
|
163
|
+
let targetVersion = pluginVersion;
|
|
164
|
+
if (!targetVersion) {
|
|
165
|
+
const manifest = await (0, marketplace_1.readMarketplaceManifest)(marketplace, scope, projectDir);
|
|
166
|
+
const manifestEntry = manifest.plugins[pluginName];
|
|
167
|
+
if (!manifestEntry) {
|
|
168
|
+
throw new Error(`Plugin "${pluginName}" not found in marketplace "${marketplace}"`);
|
|
169
|
+
}
|
|
170
|
+
targetVersion = manifestEntry.latestVersion;
|
|
171
|
+
}
|
|
172
|
+
if (entry.version === targetVersion) {
|
|
173
|
+
const result = {
|
|
174
|
+
plugin: pluginName,
|
|
175
|
+
fromVersion: entry.version,
|
|
176
|
+
toVersion: targetVersion,
|
|
177
|
+
migrations: [],
|
|
178
|
+
message: 'Already at target version',
|
|
179
|
+
};
|
|
180
|
+
if (json) {
|
|
181
|
+
console.log(JSON.stringify(result, null, 2));
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
console.log(`Plugin "${pluginName}" is already at version ${targetVersion}.`);
|
|
185
|
+
}
|
|
186
|
+
return 0;
|
|
187
|
+
}
|
|
188
|
+
const packagePath = await (0, marketplace_1.resolvePluginPackagePath)(marketplace, pluginName, scope, projectDir);
|
|
189
|
+
const chain = await (0, migrations_1.resolveMigrationChain)(packagePath, entry.version, targetVersion);
|
|
190
|
+
if (!chain) {
|
|
191
|
+
throw new Error(`No migration path found from version "${entry.version}" to "${targetVersion}" for plugin "${pluginName}"`);
|
|
192
|
+
}
|
|
193
|
+
const migrations = chain.map(({ descriptor, content }) => ({
|
|
194
|
+
from: descriptor.from,
|
|
195
|
+
to: descriptor.to,
|
|
196
|
+
file: descriptor.file,
|
|
197
|
+
type: descriptor.type,
|
|
198
|
+
instructions: content,
|
|
199
|
+
processFile: descriptor.type === 'js' ? node_path_1.default.join(packagePath, 'migrations', descriptor.file) : null,
|
|
200
|
+
}));
|
|
201
|
+
const result = {
|
|
202
|
+
plugin: pluginName,
|
|
203
|
+
fromVersion: entry.version,
|
|
204
|
+
toVersion: targetVersion,
|
|
205
|
+
marketplace,
|
|
206
|
+
scope,
|
|
207
|
+
migrations,
|
|
208
|
+
};
|
|
209
|
+
if (json) {
|
|
210
|
+
console.log(JSON.stringify(result, null, 2));
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
console.log(`Plugin: ${pluginName}\nFrom: ${entry.version} → To: ${targetVersion}`);
|
|
214
|
+
console.log(`Migration steps: ${migrations.length}`);
|
|
215
|
+
for (const migration of migrations) {
|
|
216
|
+
console.log(`\n--- ${migration.from} → ${migration.to} (${migration.file}) ---`);
|
|
217
|
+
console.log(migration.instructions);
|
|
218
|
+
if (migration.processFile) {
|
|
219
|
+
console.log(`Process file: ${migration.processFile}`);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
return 0;
|
|
224
|
+
}
|
|
225
|
+
catch (error) {
|
|
226
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
227
|
+
return emitError('plugin:update', json, 'update_failed', message);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
async function handlePluginConfigure(args) {
|
|
231
|
+
const { pluginName, scope, json } = args;
|
|
232
|
+
const plugin = (0, shared_1.requireArg)(pluginName, '--plugin-name', 'plugin:configure', json);
|
|
233
|
+
if (!plugin) {
|
|
234
|
+
return 1;
|
|
235
|
+
}
|
|
236
|
+
const marketplace = await resolveMarketplaceName(args, 'plugin:configure');
|
|
237
|
+
if (!marketplace || !scope) {
|
|
238
|
+
return 1;
|
|
239
|
+
}
|
|
240
|
+
const projectDir = (0, shared_1.getProjectDir)(scope);
|
|
241
|
+
try {
|
|
242
|
+
const packagePath = await (0, marketplace_1.resolvePluginPackagePath)(marketplace, pluginName, scope, projectDir);
|
|
243
|
+
const instructions = await (0, packageReader_1.readConfigureInstructions)(packagePath);
|
|
244
|
+
const processFile = await findOptionalProcessFile(packagePath, 'configure-process.js');
|
|
245
|
+
const result = {
|
|
246
|
+
plugin: pluginName,
|
|
247
|
+
marketplace,
|
|
248
|
+
scope,
|
|
249
|
+
instructions: instructions ?? null,
|
|
250
|
+
processFile,
|
|
251
|
+
};
|
|
252
|
+
if (json) {
|
|
253
|
+
console.log(JSON.stringify(result, null, 2));
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
console.log(`Plugin: ${pluginName}`);
|
|
257
|
+
console.log(`Marketplace: ${marketplace}`);
|
|
258
|
+
console.log(`Scope: ${scope}`);
|
|
259
|
+
console.log(instructions ? `\nConfigure Instructions:\n${instructions}` : '\nNo configure instructions found.');
|
|
260
|
+
if (processFile) {
|
|
261
|
+
console.log(`\nConfigure process file: ${processFile}`);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return 0;
|
|
265
|
+
}
|
|
266
|
+
catch (error) {
|
|
267
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
268
|
+
return emitError('plugin:configure', json, 'configure_failed', message);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type PluginCommandArgs } from './shared';
|
|
2
|
+
export declare function handlePluginListInstalled(args: PluginCommandArgs): Promise<number>;
|
|
3
|
+
export declare function handlePluginUpdateRegistry(args: PluginCommandArgs): Promise<number>;
|
|
4
|
+
export declare function handlePluginRemoveFromRegistry(args: PluginCommandArgs): Promise<number>;
|
|
5
|
+
//# sourceMappingURL=registryCommands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registryCommands.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/plugin/registryCommands.ts"],"names":[],"mappings":"AAUA,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAWlB,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAmCxF;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA8CzF;AAED,wBAAsB,8BAA8B,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAwB7F"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handlePluginListInstalled = handlePluginListInstalled;
|
|
4
|
+
exports.handlePluginUpdateRegistry = handlePluginUpdateRegistry;
|
|
5
|
+
exports.handlePluginRemoveFromRegistry = handlePluginRemoveFromRegistry;
|
|
6
|
+
const marketplace_1 = require("../../../plugins/marketplace");
|
|
7
|
+
const registry_1 = require("../../../plugins/registry");
|
|
8
|
+
const shared_1 = require("./shared");
|
|
9
|
+
function emitError(command, json, error, message) {
|
|
10
|
+
if (json) {
|
|
11
|
+
console.log(JSON.stringify({ error, message }));
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
console.error(`[${command}] ${message}`);
|
|
15
|
+
}
|
|
16
|
+
return 1;
|
|
17
|
+
}
|
|
18
|
+
async function handlePluginListInstalled(args) {
|
|
19
|
+
const { scope, json } = args;
|
|
20
|
+
if (!(0, shared_1.requireScope)(scope, 'plugin:list-installed', json)) {
|
|
21
|
+
return 1;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
const entries = (0, registry_1.listPluginEntries)(await (0, registry_1.readPluginRegistry)(scope, (0, shared_1.getProjectDir)(scope)));
|
|
25
|
+
if (json) {
|
|
26
|
+
console.log(JSON.stringify(entries.map((entry) => ({
|
|
27
|
+
name: entry.name,
|
|
28
|
+
version: entry.version,
|
|
29
|
+
marketplace: entry.marketplace,
|
|
30
|
+
installedAt: entry.installedAt,
|
|
31
|
+
updatedAt: entry.updatedAt,
|
|
32
|
+
})), null, 2));
|
|
33
|
+
}
|
|
34
|
+
else if (entries.length === 0) {
|
|
35
|
+
console.log(`No plugins installed (scope: ${scope}).`);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
console.log(`Installed plugins (scope: ${scope}):\n`);
|
|
39
|
+
const nameWidth = Math.max(...entries.map((entry) => entry.name.length), 4);
|
|
40
|
+
const versionWidth = Math.max(...entries.map((entry) => entry.version.length), 7);
|
|
41
|
+
const marketplaceWidth = Math.max(...entries.map((entry) => entry.marketplace.length), 11);
|
|
42
|
+
console.log(` ${'NAME'.padEnd(nameWidth)} ${'VERSION'.padEnd(versionWidth)} ${'MARKETPLACE'.padEnd(marketplaceWidth)} INSTALLED`);
|
|
43
|
+
console.log(` ${'─'.repeat(nameWidth)} ${'─'.repeat(versionWidth)} ${'─'.repeat(marketplaceWidth)} ${'─'.repeat(20)}`);
|
|
44
|
+
for (const entry of entries) {
|
|
45
|
+
console.log(` ${entry.name.padEnd(nameWidth)} ${entry.version.padEnd(versionWidth)} ${entry.marketplace.padEnd(marketplaceWidth)} ${entry.installedAt}`);
|
|
46
|
+
}
|
|
47
|
+
console.log(`\n ${entries.length} plugin(s) installed.`);
|
|
48
|
+
}
|
|
49
|
+
return 0;
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
53
|
+
return emitError('plugin:list-installed', json, 'list_failed', message);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async function handlePluginUpdateRegistry(args) {
|
|
57
|
+
const { pluginName, pluginVersion, marketplaceName, scope, json } = args;
|
|
58
|
+
const plugin = (0, shared_1.requireArg)(pluginName, '--plugin-name', 'plugin:update-registry', json);
|
|
59
|
+
const version = (0, shared_1.requireArg)(pluginVersion, '--plugin-version', 'plugin:update-registry', json);
|
|
60
|
+
const marketplace = (0, shared_1.requireArg)(marketplaceName, '--marketplace-name', 'plugin:update-registry', json);
|
|
61
|
+
if (!plugin || !version || !marketplace) {
|
|
62
|
+
return 1;
|
|
63
|
+
}
|
|
64
|
+
if (!(0, shared_1.requireScope)(scope, 'plugin:update-registry', json)) {
|
|
65
|
+
return 1;
|
|
66
|
+
}
|
|
67
|
+
const projectDir = (0, shared_1.getProjectDir)(scope);
|
|
68
|
+
try {
|
|
69
|
+
const registry = await (0, registry_1.readPluginRegistry)(scope, projectDir);
|
|
70
|
+
let packagePath = '';
|
|
71
|
+
try {
|
|
72
|
+
packagePath = await (0, marketplace_1.resolvePluginPackagePath)(marketplaceName, pluginName, scope, projectDir);
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
// Registry updates can precede marketplace availability.
|
|
76
|
+
}
|
|
77
|
+
const now = new Date().toISOString();
|
|
78
|
+
const existingEntry = (0, registry_1.getPluginEntry)(registry, pluginName);
|
|
79
|
+
const entry = {
|
|
80
|
+
name: pluginName,
|
|
81
|
+
version: pluginVersion,
|
|
82
|
+
marketplace: marketplaceName,
|
|
83
|
+
scope,
|
|
84
|
+
installedAt: existingEntry?.installedAt ?? now,
|
|
85
|
+
updatedAt: now,
|
|
86
|
+
packagePath,
|
|
87
|
+
metadata: existingEntry?.metadata ?? {},
|
|
88
|
+
};
|
|
89
|
+
await (0, registry_1.writePluginRegistry)((0, registry_1.upsertPluginEntry)(registry, entry), scope, projectDir);
|
|
90
|
+
if (json) {
|
|
91
|
+
console.log(JSON.stringify(entry, null, 2));
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
console.log(`Plugin ${pluginName}@${pluginVersion} registered (marketplace: ${marketplaceName})`);
|
|
95
|
+
}
|
|
96
|
+
return 0;
|
|
97
|
+
}
|
|
98
|
+
catch (error) {
|
|
99
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
100
|
+
return emitError('plugin:update-registry', json, 'update_registry_failed', message);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
async function handlePluginRemoveFromRegistry(args) {
|
|
104
|
+
const { pluginName, scope, json } = args;
|
|
105
|
+
const plugin = (0, shared_1.requireArg)(pluginName, '--plugin-name', 'plugin:remove-from-registry', json);
|
|
106
|
+
if (!plugin) {
|
|
107
|
+
return 1;
|
|
108
|
+
}
|
|
109
|
+
if (!(0, shared_1.requireScope)(scope, 'plugin:remove-from-registry', json)) {
|
|
110
|
+
return 1;
|
|
111
|
+
}
|
|
112
|
+
try {
|
|
113
|
+
const projectDir = (0, shared_1.getProjectDir)(scope);
|
|
114
|
+
const registry = await (0, registry_1.readPluginRegistry)(scope, projectDir);
|
|
115
|
+
await (0, registry_1.writePluginRegistry)((0, registry_1.removePluginEntry)(registry, pluginName), scope, projectDir);
|
|
116
|
+
if (json) {
|
|
117
|
+
console.log(JSON.stringify({ removed: true, plugin: pluginName }, null, 2));
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
console.log(`Plugin ${pluginName} removed from registry`);
|
|
121
|
+
}
|
|
122
|
+
return 0;
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
126
|
+
return emitError('plugin:remove-from-registry', json, 'remove_failed', message);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PluginScope } from '../../../plugins/types';
|
|
2
|
+
export interface PluginCommandArgs {
|
|
3
|
+
pluginName?: string;
|
|
4
|
+
marketplaceName?: string;
|
|
5
|
+
marketplaceUrl?: string;
|
|
6
|
+
marketplacePath?: string;
|
|
7
|
+
marketplaceBranch?: string;
|
|
8
|
+
pluginVersion?: string;
|
|
9
|
+
scope?: 'global' | 'project';
|
|
10
|
+
json: boolean;
|
|
11
|
+
verbose?: boolean;
|
|
12
|
+
runsDir?: string;
|
|
13
|
+
force?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function validateScope(scope: string | undefined): scope is PluginScope;
|
|
16
|
+
export declare function requireArg(value: string | undefined, name: string, command: string, json: boolean): string | null;
|
|
17
|
+
export declare function requireScope(scope: string | undefined, command: string, json: boolean): scope is PluginScope;
|
|
18
|
+
export declare function getProjectDir(scope: PluginScope): string | undefined;
|
|
19
|
+
export declare function autoResolveMarketplace(scope: PluginScope, projectDir?: string): Promise<string | null>;
|
|
20
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/plugin/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,KAAK,IAAI,WAAW,CAE7E;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,OAAO,GACZ,MAAM,GAAG,IAAI,CAWf;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,OAAO,GACZ,KAAK,IAAI,WAAW,CAWtB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAEpE;AAED,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,WAAW,EAClB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAGxB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateScope = validateScope;
|
|
4
|
+
exports.requireArg = requireArg;
|
|
5
|
+
exports.requireScope = requireScope;
|
|
6
|
+
exports.getProjectDir = getProjectDir;
|
|
7
|
+
exports.autoResolveMarketplace = autoResolveMarketplace;
|
|
8
|
+
const marketplace_1 = require("../../../plugins/marketplace");
|
|
9
|
+
function validateScope(scope) {
|
|
10
|
+
return scope === 'global' || scope === 'project';
|
|
11
|
+
}
|
|
12
|
+
function requireArg(value, name, command, json) {
|
|
13
|
+
if (!value) {
|
|
14
|
+
const message = `[${command}] ${name} is required`;
|
|
15
|
+
if (json) {
|
|
16
|
+
console.log(JSON.stringify({ error: 'missing_argument', message }));
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
console.error(message);
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
function requireScope(scope, command, json) {
|
|
26
|
+
if (!validateScope(scope)) {
|
|
27
|
+
const message = `[${command}] --global or --project is required`;
|
|
28
|
+
if (json) {
|
|
29
|
+
console.log(JSON.stringify({ error: 'missing_argument', message }));
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
console.error(message);
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function getProjectDir(scope) {
|
|
39
|
+
return scope === 'project' ? process.cwd() : undefined;
|
|
40
|
+
}
|
|
41
|
+
async function autoResolveMarketplace(scope, projectDir) {
|
|
42
|
+
const marketplaces = await (0, marketplace_1.listMarketplaces)(scope, projectDir);
|
|
43
|
+
return marketplaces.length === 1 ? marketplaces[0] : null;
|
|
44
|
+
}
|