@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,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* plugin:* commands — Manage plugins and marketplaces.
|
|
3
|
+
*/
|
|
4
|
+
export type { PluginCommandArgs } from './plugin/shared';
|
|
5
|
+
export { validateScope, requireArg } from './plugin/shared';
|
|
6
|
+
export { handlePluginAddMarketplace, handlePluginUpdateMarketplace, handlePluginListPlugins, } from './plugin/marketplaceCommands';
|
|
7
|
+
export { handlePluginInstall, handlePluginUninstall, handlePluginUpdate, handlePluginConfigure, } from './plugin/packageCommands';
|
|
8
|
+
export { handlePluginListInstalled, handlePluginUpdateRegistry, handlePluginRemoveFromRegistry, } from './plugin/registryCommands';
|
|
9
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/plugin.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* plugin:* commands — Manage plugins and marketplaces.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.handlePluginRemoveFromRegistry = exports.handlePluginUpdateRegistry = exports.handlePluginListInstalled = exports.handlePluginConfigure = exports.handlePluginUpdate = exports.handlePluginUninstall = exports.handlePluginInstall = exports.handlePluginListPlugins = exports.handlePluginUpdateMarketplace = exports.handlePluginAddMarketplace = exports.requireArg = exports.validateScope = void 0;
|
|
7
|
+
var shared_1 = require("./plugin/shared");
|
|
8
|
+
Object.defineProperty(exports, "validateScope", { enumerable: true, get: function () { return shared_1.validateScope; } });
|
|
9
|
+
Object.defineProperty(exports, "requireArg", { enumerable: true, get: function () { return shared_1.requireArg; } });
|
|
10
|
+
var marketplaceCommands_1 = require("./plugin/marketplaceCommands");
|
|
11
|
+
Object.defineProperty(exports, "handlePluginAddMarketplace", { enumerable: true, get: function () { return marketplaceCommands_1.handlePluginAddMarketplace; } });
|
|
12
|
+
Object.defineProperty(exports, "handlePluginUpdateMarketplace", { enumerable: true, get: function () { return marketplaceCommands_1.handlePluginUpdateMarketplace; } });
|
|
13
|
+
Object.defineProperty(exports, "handlePluginListPlugins", { enumerable: true, get: function () { return marketplaceCommands_1.handlePluginListPlugins; } });
|
|
14
|
+
var packageCommands_1 = require("./plugin/packageCommands");
|
|
15
|
+
Object.defineProperty(exports, "handlePluginInstall", { enumerable: true, get: function () { return packageCommands_1.handlePluginInstall; } });
|
|
16
|
+
Object.defineProperty(exports, "handlePluginUninstall", { enumerable: true, get: function () { return packageCommands_1.handlePluginUninstall; } });
|
|
17
|
+
Object.defineProperty(exports, "handlePluginUpdate", { enumerable: true, get: function () { return packageCommands_1.handlePluginUpdate; } });
|
|
18
|
+
Object.defineProperty(exports, "handlePluginConfigure", { enumerable: true, get: function () { return packageCommands_1.handlePluginConfigure; } });
|
|
19
|
+
var registryCommands_1 = require("./plugin/registryCommands");
|
|
20
|
+
Object.defineProperty(exports, "handlePluginListInstalled", { enumerable: true, get: function () { return registryCommands_1.handlePluginListInstalled; } });
|
|
21
|
+
Object.defineProperty(exports, "handlePluginUpdateRegistry", { enumerable: true, get: function () { return registryCommands_1.handlePluginUpdateRegistry; } });
|
|
22
|
+
Object.defineProperty(exports, "handlePluginRemoveFromRegistry", { enumerable: true, get: function () { return registryCommands_1.handlePluginRemoveFromRegistry; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ProcessLibraryCommandArgs {
|
|
2
|
+
subcommand: "clone" | "update" | "use" | "active";
|
|
3
|
+
repo?: string;
|
|
4
|
+
dir?: string;
|
|
5
|
+
ref?: string;
|
|
6
|
+
runId?: string;
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
stateDir?: string;
|
|
9
|
+
json: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function handleProcessLibraryClone(args: ProcessLibraryCommandArgs): Promise<number>;
|
|
12
|
+
export declare function handleProcessLibraryUpdate(args: ProcessLibraryCommandArgs): Promise<number>;
|
|
13
|
+
export declare function handleProcessLibraryUse(args: ProcessLibraryCommandArgs): Promise<number>;
|
|
14
|
+
export declare function handleProcessLibraryActive(args: ProcessLibraryCommandArgs): Promise<number>;
|
|
15
|
+
export declare function handleProcessLibraryCommand(args: ProcessLibraryCommandArgs): Promise<number>;
|
|
16
|
+
//# sourceMappingURL=processLibrary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processLibrary.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/processLibrary.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,MAAM,CAAC,CA6BjB;AAED,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,MAAM,CAAC,CA2BjB;AAED,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,MAAM,CAAC,CAkCjB;AAED,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,MAAM,CAAC,CAgCjB;AAED,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,MAAM,CAAC,CAiBjB"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleProcessLibraryClone = handleProcessLibraryClone;
|
|
4
|
+
exports.handleProcessLibraryUpdate = handleProcessLibraryUpdate;
|
|
5
|
+
exports.handleProcessLibraryUse = handleProcessLibraryUse;
|
|
6
|
+
exports.handleProcessLibraryActive = handleProcessLibraryActive;
|
|
7
|
+
exports.handleProcessLibraryCommand = handleProcessLibraryCommand;
|
|
8
|
+
const active_1 = require("../../processLibrary/active");
|
|
9
|
+
async function handleProcessLibraryClone(args) {
|
|
10
|
+
const defaults = (0, active_1.getDefaultProcessLibrarySpec)({
|
|
11
|
+
stateDir: args.stateDir,
|
|
12
|
+
repo: args.repo,
|
|
13
|
+
cloneDir: args.dir,
|
|
14
|
+
ref: args.ref,
|
|
15
|
+
});
|
|
16
|
+
const repo = args.repo ?? defaults.repo;
|
|
17
|
+
const dir = args.dir ?? defaults.cloneDir;
|
|
18
|
+
try {
|
|
19
|
+
const result = await (0, active_1.cloneProcessLibrary)({ repo, dir, ref: args.ref });
|
|
20
|
+
if (args.json) {
|
|
21
|
+
console.log(JSON.stringify({ success: true, ...result }, null, 2));
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
console.log(`Process library cloned.\n Repo: ${result.repo}\n Dir: ${result.dir}\n Revision: ${result.revision}`);
|
|
25
|
+
}
|
|
26
|
+
return 0;
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
30
|
+
if (args.json) {
|
|
31
|
+
console.log(JSON.stringify({ error: "clone_failed", message }));
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
console.error(`[process-library:clone] ${message}`);
|
|
35
|
+
}
|
|
36
|
+
return 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async function handleProcessLibraryUpdate(args) {
|
|
40
|
+
const defaults = (0, active_1.getDefaultProcessLibrarySpec)({
|
|
41
|
+
stateDir: args.stateDir,
|
|
42
|
+
cloneDir: args.dir,
|
|
43
|
+
ref: args.ref,
|
|
44
|
+
});
|
|
45
|
+
const dir = args.dir ?? defaults.cloneDir;
|
|
46
|
+
try {
|
|
47
|
+
const result = await (0, active_1.updateProcessLibrary)({ dir, ref: args.ref });
|
|
48
|
+
if (args.json) {
|
|
49
|
+
console.log(JSON.stringify({ success: true, ...result }, null, 2));
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
console.log(`Process library updated.\n Dir: ${result.dir}\n Revision: ${result.revision}`);
|
|
53
|
+
}
|
|
54
|
+
return 0;
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
58
|
+
if (args.json) {
|
|
59
|
+
console.log(JSON.stringify({ error: "update_failed", message }));
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
console.error(`[process-library:update] ${message}`);
|
|
63
|
+
}
|
|
64
|
+
return 1;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async function handleProcessLibraryUse(args) {
|
|
68
|
+
try {
|
|
69
|
+
const result = args.dir
|
|
70
|
+
? await (0, active_1.bindActiveProcessLibrary)({
|
|
71
|
+
dir: args.dir,
|
|
72
|
+
stateDir: args.stateDir,
|
|
73
|
+
runId: args.runId,
|
|
74
|
+
sessionId: args.sessionId,
|
|
75
|
+
ref: args.ref,
|
|
76
|
+
})
|
|
77
|
+
: await (0, active_1.ensureActiveProcessLibrary)({
|
|
78
|
+
stateDir: args.stateDir,
|
|
79
|
+
runId: args.runId,
|
|
80
|
+
sessionId: args.sessionId,
|
|
81
|
+
ref: args.ref,
|
|
82
|
+
});
|
|
83
|
+
if (args.json) {
|
|
84
|
+
console.log(JSON.stringify({ success: true, ...result }, null, 2));
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
const boundDir = result.binding?.dir ?? "(missing)";
|
|
88
|
+
console.log(`Active process library updated.\n Scope: ${result.bindingScope}\n Dir: ${boundDir}\n State: ${result.stateFile}`);
|
|
89
|
+
}
|
|
90
|
+
return 0;
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
94
|
+
if (args.json) {
|
|
95
|
+
console.log(JSON.stringify({ error: "bind_failed", message }));
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
console.error(`[process-library:use] ${message}`);
|
|
99
|
+
}
|
|
100
|
+
return 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
async function handleProcessLibraryActive(args) {
|
|
104
|
+
try {
|
|
105
|
+
const result = await (0, active_1.ensureActiveProcessLibrary)({
|
|
106
|
+
stateDir: args.stateDir,
|
|
107
|
+
runId: args.runId,
|
|
108
|
+
sessionId: args.sessionId,
|
|
109
|
+
});
|
|
110
|
+
if (args.json) {
|
|
111
|
+
console.log(JSON.stringify(result, null, 2));
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
const lines = [
|
|
115
|
+
"Active process library.",
|
|
116
|
+
` Scope: ${result.bindingScope}`,
|
|
117
|
+
` Dir: ${result.binding?.dir ?? "(missing)"}`,
|
|
118
|
+
` Revision: ${result.binding?.revision ?? "unknown"}`,
|
|
119
|
+
` State: ${result.stateFile}`,
|
|
120
|
+
];
|
|
121
|
+
if (result.bootstrapped) {
|
|
122
|
+
lines.push(` Bootstrapped: yes (${result.defaultSpec.cloneDir})`);
|
|
123
|
+
}
|
|
124
|
+
console.log(lines.join("\n"));
|
|
125
|
+
}
|
|
126
|
+
return 0;
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
130
|
+
if (args.json) {
|
|
131
|
+
console.log(JSON.stringify({ error: "active_failed", message }));
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
console.error(`[process-library:active] ${message}`);
|
|
135
|
+
}
|
|
136
|
+
return 1;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
async function handleProcessLibraryCommand(args) {
|
|
140
|
+
switch (args.subcommand) {
|
|
141
|
+
case "clone":
|
|
142
|
+
return handleProcessLibraryClone(args);
|
|
143
|
+
case "update":
|
|
144
|
+
return handleProcessLibraryUpdate(args);
|
|
145
|
+
case "use":
|
|
146
|
+
return handleProcessLibraryUse(args);
|
|
147
|
+
case "active":
|
|
148
|
+
return handleProcessLibraryActive(args);
|
|
149
|
+
default: {
|
|
150
|
+
const _exhaustive = args.subcommand;
|
|
151
|
+
void _exhaustive;
|
|
152
|
+
console.error("[process-library] Unknown subcommand");
|
|
153
|
+
return 1;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* profile:* commands — Read, write, merge, and render user/project profiles.
|
|
3
|
+
*
|
|
4
|
+
* Commands:
|
|
5
|
+
* profile:read --user|--project [--dir <dir>] [--json]
|
|
6
|
+
* profile:write --user|--project --input <file> [--dir <dir>] [--json]
|
|
7
|
+
* profile:merge --user|--project --input <file> [--dir <dir>] [--json]
|
|
8
|
+
* profile:render --user|--project [--dir <dir>] [--json]
|
|
9
|
+
*/
|
|
10
|
+
export interface ProfileCommandArgs {
|
|
11
|
+
subcommand: "read" | "write" | "merge" | "render";
|
|
12
|
+
user: boolean;
|
|
13
|
+
project: boolean;
|
|
14
|
+
inputPath?: string;
|
|
15
|
+
dir?: string;
|
|
16
|
+
json: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function handleProfileRead(args: ProfileCommandArgs): number;
|
|
19
|
+
export declare function handleProfileWrite(args: ProfileCommandArgs): Promise<number>;
|
|
20
|
+
export declare function handleProfileMerge(args: ProfileCommandArgs): Promise<number>;
|
|
21
|
+
export declare function handleProfileRender(args: ProfileCommandArgs): number;
|
|
22
|
+
/**
|
|
23
|
+
* Route a profile:* command to the appropriate handler.
|
|
24
|
+
*/
|
|
25
|
+
export declare function handleProfileCommand(subcommand: string, args: ProfileCommandArgs): Promise<number>;
|
|
26
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA4BH,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;IAClD,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;CACf;AAMD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAyClE;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAwClF;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAkDlF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAmCpE;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,MAAM,CAAC,CAcjB"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* profile:* commands — Read, write, merge, and render user/project profiles.
|
|
4
|
+
*
|
|
5
|
+
* Commands:
|
|
6
|
+
* profile:read --user|--project [--dir <dir>] [--json]
|
|
7
|
+
* profile:write --user|--project --input <file> [--dir <dir>] [--json]
|
|
8
|
+
* profile:merge --user|--project --input <file> [--dir <dir>] [--json]
|
|
9
|
+
* profile:render --user|--project [--dir <dir>] [--json]
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.handleProfileRead = handleProfileRead;
|
|
13
|
+
exports.handleProfileWrite = handleProfileWrite;
|
|
14
|
+
exports.handleProfileMerge = handleProfileMerge;
|
|
15
|
+
exports.handleProfileRender = handleProfileRender;
|
|
16
|
+
exports.handleProfileCommand = handleProfileCommand;
|
|
17
|
+
const node_fs_1 = require("node:fs");
|
|
18
|
+
const resolveInputPath_1 = require("../resolveInputPath");
|
|
19
|
+
const userProfile_1 = require("../../profiles/userProfile");
|
|
20
|
+
const projectProfile_1 = require("../../profiles/projectProfile");
|
|
21
|
+
// ============================================================================
|
|
22
|
+
// Handlers
|
|
23
|
+
// ============================================================================
|
|
24
|
+
function handleProfileRead(args) {
|
|
25
|
+
const { user, project, dir, json } = args;
|
|
26
|
+
if (!user && !project) {
|
|
27
|
+
console.error("[profile:read] Specify --user or --project");
|
|
28
|
+
return 1;
|
|
29
|
+
}
|
|
30
|
+
if (user) {
|
|
31
|
+
const profile = (0, userProfile_1.readUserProfile)(dir);
|
|
32
|
+
if (!profile) {
|
|
33
|
+
if (json) {
|
|
34
|
+
console.log(JSON.stringify({ error: "no_profile", profileDir: dir ?? (0, userProfile_1.getUserProfileDir)() }));
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
console.error(`[profile:read] No user profile found at ${dir ?? (0, userProfile_1.getUserProfileDir)()}`);
|
|
38
|
+
}
|
|
39
|
+
return 1;
|
|
40
|
+
}
|
|
41
|
+
if (json) {
|
|
42
|
+
console.log(JSON.stringify(profile, null, 2));
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
console.log((0, userProfile_1.renderUserProfileMarkdown)(profile));
|
|
46
|
+
}
|
|
47
|
+
return 0;
|
|
48
|
+
}
|
|
49
|
+
// project
|
|
50
|
+
const profile = (0, projectProfile_1.readProjectProfile)(dir);
|
|
51
|
+
if (!profile) {
|
|
52
|
+
if (json) {
|
|
53
|
+
console.log(JSON.stringify({ error: "no_profile", profileDir: dir ?? (0, projectProfile_1.getProjectProfileDir)() }));
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
console.error(`[profile:read] No project profile found at ${dir ?? (0, projectProfile_1.getProjectProfileDir)()}`);
|
|
57
|
+
}
|
|
58
|
+
return 1;
|
|
59
|
+
}
|
|
60
|
+
if (json) {
|
|
61
|
+
console.log(JSON.stringify(profile, null, 2));
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
console.log((0, projectProfile_1.renderProjectProfileMarkdown)(profile));
|
|
65
|
+
}
|
|
66
|
+
return 0;
|
|
67
|
+
}
|
|
68
|
+
async function handleProfileWrite(args) {
|
|
69
|
+
const { user, project, inputPath, dir, json } = args;
|
|
70
|
+
if (!user && !project) {
|
|
71
|
+
console.error("[profile:write] Specify --user or --project");
|
|
72
|
+
return 1;
|
|
73
|
+
}
|
|
74
|
+
if (!inputPath) {
|
|
75
|
+
console.error("[profile:write] --input <file> is required");
|
|
76
|
+
return 1;
|
|
77
|
+
}
|
|
78
|
+
let profileData;
|
|
79
|
+
try {
|
|
80
|
+
const raw = await node_fs_1.promises.readFile((0, resolveInputPath_1.resolveInputPath)(inputPath), "utf8");
|
|
81
|
+
profileData = JSON.parse(raw);
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
console.error(`[profile:write] Failed to read input file: ${error instanceof Error ? error.message : String(error)}`);
|
|
85
|
+
return 1;
|
|
86
|
+
}
|
|
87
|
+
if (user) {
|
|
88
|
+
(0, userProfile_1.writeUserProfile)(profileData, dir);
|
|
89
|
+
const profileDir = dir ?? (0, userProfile_1.getUserProfileDir)();
|
|
90
|
+
if (json) {
|
|
91
|
+
console.log(JSON.stringify({ status: "ok", profileDir, type: "user" }));
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
console.log(`[profile:write] User profile written to ${profileDir}`);
|
|
95
|
+
}
|
|
96
|
+
return 0;
|
|
97
|
+
}
|
|
98
|
+
// project
|
|
99
|
+
(0, projectProfile_1.writeProjectProfile)(profileData, dir);
|
|
100
|
+
const profileDir = dir ?? (0, projectProfile_1.getProjectProfileDir)();
|
|
101
|
+
if (json) {
|
|
102
|
+
console.log(JSON.stringify({ status: "ok", profileDir, type: "project" }));
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
console.log(`[profile:write] Project profile written to ${profileDir}`);
|
|
106
|
+
}
|
|
107
|
+
return 0;
|
|
108
|
+
}
|
|
109
|
+
async function handleProfileMerge(args) {
|
|
110
|
+
const { user, project, inputPath, dir, json } = args;
|
|
111
|
+
if (!user && !project) {
|
|
112
|
+
console.error("[profile:merge] Specify --user or --project");
|
|
113
|
+
return 1;
|
|
114
|
+
}
|
|
115
|
+
if (!inputPath) {
|
|
116
|
+
console.error("[profile:merge] --input <file> is required");
|
|
117
|
+
return 1;
|
|
118
|
+
}
|
|
119
|
+
let updates;
|
|
120
|
+
try {
|
|
121
|
+
const raw = await node_fs_1.promises.readFile((0, resolveInputPath_1.resolveInputPath)(inputPath), "utf8");
|
|
122
|
+
updates = JSON.parse(raw);
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
console.error(`[profile:merge] Failed to read input file: ${error instanceof Error ? error.message : String(error)}`);
|
|
126
|
+
return 1;
|
|
127
|
+
}
|
|
128
|
+
if (user) {
|
|
129
|
+
const existing = (0, userProfile_1.readUserProfile)(dir);
|
|
130
|
+
if (!existing) {
|
|
131
|
+
console.error(`[profile:merge] No existing user profile to merge into at ${dir ?? (0, userProfile_1.getUserProfileDir)()}`);
|
|
132
|
+
return 1;
|
|
133
|
+
}
|
|
134
|
+
const merged = (0, userProfile_1.mergeUserProfile)(existing, updates);
|
|
135
|
+
(0, userProfile_1.writeUserProfile)(merged, dir);
|
|
136
|
+
if (json) {
|
|
137
|
+
console.log(JSON.stringify({ status: "ok", type: "user", version: merged.version }));
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
console.log(`[profile:merge] User profile merged (version ${merged.version})`);
|
|
141
|
+
}
|
|
142
|
+
return 0;
|
|
143
|
+
}
|
|
144
|
+
// project
|
|
145
|
+
const existing = (0, projectProfile_1.readProjectProfile)(dir);
|
|
146
|
+
if (!existing) {
|
|
147
|
+
console.error(`[profile:merge] No existing project profile to merge into at ${dir ?? (0, projectProfile_1.getProjectProfileDir)()}`);
|
|
148
|
+
return 1;
|
|
149
|
+
}
|
|
150
|
+
const merged = (0, projectProfile_1.mergeProjectProfile)(existing, updates);
|
|
151
|
+
(0, projectProfile_1.writeProjectProfile)(merged, dir);
|
|
152
|
+
if (json) {
|
|
153
|
+
console.log(JSON.stringify({ status: "ok", type: "project", version: merged.version }));
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
console.log(`[profile:merge] Project profile merged (version ${merged.version})`);
|
|
157
|
+
}
|
|
158
|
+
return 0;
|
|
159
|
+
}
|
|
160
|
+
function handleProfileRender(args) {
|
|
161
|
+
const { user, project, dir, json } = args;
|
|
162
|
+
if (!user && !project) {
|
|
163
|
+
console.error("[profile:render] Specify --user or --project");
|
|
164
|
+
return 1;
|
|
165
|
+
}
|
|
166
|
+
if (user) {
|
|
167
|
+
const profile = (0, userProfile_1.readUserProfile)(dir);
|
|
168
|
+
if (!profile) {
|
|
169
|
+
console.error(`[profile:render] No user profile found at ${dir ?? (0, userProfile_1.getUserProfileDir)()}`);
|
|
170
|
+
return 1;
|
|
171
|
+
}
|
|
172
|
+
const markdown = (0, userProfile_1.renderUserProfileMarkdown)(profile);
|
|
173
|
+
if (json) {
|
|
174
|
+
console.log(JSON.stringify({ markdown, type: "user" }));
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
console.log(markdown);
|
|
178
|
+
}
|
|
179
|
+
return 0;
|
|
180
|
+
}
|
|
181
|
+
// project
|
|
182
|
+
const profile = (0, projectProfile_1.readProjectProfile)(dir);
|
|
183
|
+
if (!profile) {
|
|
184
|
+
console.error(`[profile:render] No project profile found at ${dir ?? (0, projectProfile_1.getProjectProfileDir)()}`);
|
|
185
|
+
return 1;
|
|
186
|
+
}
|
|
187
|
+
const markdown = (0, projectProfile_1.renderProjectProfileMarkdown)(profile);
|
|
188
|
+
if (json) {
|
|
189
|
+
console.log(JSON.stringify({ markdown, type: "project" }));
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
console.log(markdown);
|
|
193
|
+
}
|
|
194
|
+
return 0;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Route a profile:* command to the appropriate handler.
|
|
198
|
+
*/
|
|
199
|
+
async function handleProfileCommand(subcommand, args) {
|
|
200
|
+
switch (subcommand) {
|
|
201
|
+
case "read":
|
|
202
|
+
return handleProfileRead(args);
|
|
203
|
+
case "write":
|
|
204
|
+
return handleProfileWrite(args);
|
|
205
|
+
case "merge":
|
|
206
|
+
return handleProfileMerge(args);
|
|
207
|
+
case "render":
|
|
208
|
+
return handleProfileRender(args);
|
|
209
|
+
default:
|
|
210
|
+
console.error(`[profile] Unknown subcommand: ${subcommand}. Use read, write, merge, or render.`);
|
|
211
|
+
return 1;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* run:iterate command - Execute one orchestration iteration
|
|
3
|
+
*
|
|
4
|
+
* This command:
|
|
5
|
+
* 1. Calls on-iteration-start hooks to get orchestration decisions
|
|
6
|
+
* 2. Returns effects to stdout as JSON
|
|
7
|
+
* 3. External orchestrator (skill) performs the effects
|
|
8
|
+
* 4. Calls on-iteration-end hooks for finalization
|
|
9
|
+
*
|
|
10
|
+
* The command does NOT loop - it handles exactly one iteration.
|
|
11
|
+
*/
|
|
12
|
+
import type { EffectAction } from "../../runtime/types";
|
|
13
|
+
export interface RunIterateOptions {
|
|
14
|
+
runDir: string;
|
|
15
|
+
iteration?: number;
|
|
16
|
+
verbose?: boolean;
|
|
17
|
+
json?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Capabilities declared by the active harness adapter.
|
|
20
|
+
* Used to gate parallel-group and background-classification enrichment.
|
|
21
|
+
* When absent, no enrichment is applied (backward-compatible).
|
|
22
|
+
*/
|
|
23
|
+
harnessCapabilities?: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface RunIterateResult {
|
|
26
|
+
iteration: number;
|
|
27
|
+
iterationCount: number;
|
|
28
|
+
status: "executed" | "waiting" | "completed" | "failed" | "none";
|
|
29
|
+
action?: string;
|
|
30
|
+
reason?: string;
|
|
31
|
+
count?: number;
|
|
32
|
+
until?: number;
|
|
33
|
+
nextActions?: EffectAction[];
|
|
34
|
+
completionProof?: string;
|
|
35
|
+
/** Parallel groups keyed by parallelGroupId. Only when harness declares concurrent-effects. */
|
|
36
|
+
parallelGroups?: Record<string, EffectAction[]>;
|
|
37
|
+
/** Background vs foreground classification. Only when harness declares background-effects. */
|
|
38
|
+
backgroundClassification?: {
|
|
39
|
+
blocking: EffectAction[];
|
|
40
|
+
background: EffectAction[];
|
|
41
|
+
};
|
|
42
|
+
metadata?: {
|
|
43
|
+
runId: string;
|
|
44
|
+
processId: string;
|
|
45
|
+
hookStatus?: string;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export declare function runIterate(options: RunIterateOptions): Promise<RunIterateResult>;
|
|
49
|
+
//# sourceMappingURL=runIterate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runIterate.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/runIterate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAaxD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+FAA+F;IAC/F,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAChD,8FAA8F;IAC9F,wBAAwB,CAAC,EAAE;QACzB,QAAQ,EAAE,YAAY,EAAE,CAAC;QACzB,UAAU,EAAE,YAAY,EAAE,CAAC;KAC5B,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAgKtF"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* run:iterate command - Execute one orchestration iteration
|
|
4
|
+
*
|
|
5
|
+
* This command:
|
|
6
|
+
* 1. Calls on-iteration-start hooks to get orchestration decisions
|
|
7
|
+
* 2. Returns effects to stdout as JSON
|
|
8
|
+
* 3. External orchestrator (skill) performs the effects
|
|
9
|
+
* 4. Calls on-iteration-end hooks for finalization
|
|
10
|
+
*
|
|
11
|
+
* The command does NOT loop - it handles exactly one iteration.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.runIterate = runIterate;
|
|
15
|
+
const runFiles_1 = require("../../storage/runFiles");
|
|
16
|
+
const runtime_1 = require("../../runtime/hooks/runtime");
|
|
17
|
+
const orchestrateIteration_1 = require("../../runtime/orchestrateIteration");
|
|
18
|
+
const completionProof_1 = require("../completionProof");
|
|
19
|
+
const grouping_1 = require("../../tasks/grouping");
|
|
20
|
+
const asyncEffects_1 = require("../../runtime/asyncEffects");
|
|
21
|
+
const config_1 = require("../../config");
|
|
22
|
+
const runIterateHelpers_1 = require("./runIterateHelpers");
|
|
23
|
+
async function runIterate(options) {
|
|
24
|
+
const { runDir, verbose } = options;
|
|
25
|
+
// Read run metadata
|
|
26
|
+
const metadata = await (0, runFiles_1.readRunMetadata)(runDir);
|
|
27
|
+
const runId = metadata.runId;
|
|
28
|
+
// Determine iteration number from state cache or journal
|
|
29
|
+
const iterationCount = await (0, runIterateHelpers_1.detectIterationCount)(runDir);
|
|
30
|
+
const iteration = options.iteration ?? (iterationCount + 1);
|
|
31
|
+
const projectRoot = (0, config_1.resolveProjectRootForRun)(runDir, metadata.entrypoint?.importPath);
|
|
32
|
+
if (verbose) {
|
|
33
|
+
console.error(`[run:iterate] Starting iteration ${iteration} for run ${runId}`);
|
|
34
|
+
}
|
|
35
|
+
const iterationResult = await (0, orchestrateIteration_1.orchestrateIteration)({ runDir });
|
|
36
|
+
if (iterationResult.status === "completed") {
|
|
37
|
+
const completionProof = (0, completionProof_1.resolveCompletionProof)(metadata);
|
|
38
|
+
await (0, runtime_1.callRuntimeHook)("on-iteration-end", {
|
|
39
|
+
runId,
|
|
40
|
+
iteration,
|
|
41
|
+
action: "none",
|
|
42
|
+
status: "completed",
|
|
43
|
+
reason: "completed",
|
|
44
|
+
timestamp: new Date().toISOString(),
|
|
45
|
+
}, { cwd: projectRoot, logger: verbose ? ((msg) => console.error(msg)) : undefined });
|
|
46
|
+
return {
|
|
47
|
+
iteration,
|
|
48
|
+
iterationCount,
|
|
49
|
+
status: "completed",
|
|
50
|
+
action: "none",
|
|
51
|
+
reason: "completed",
|
|
52
|
+
completionProof,
|
|
53
|
+
metadata: { runId, processId: metadata.processId, hookStatus: "executed" },
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
if (iterationResult.status === "failed") {
|
|
57
|
+
await (0, runtime_1.callRuntimeHook)("on-iteration-end", {
|
|
58
|
+
runId,
|
|
59
|
+
iteration,
|
|
60
|
+
action: "none",
|
|
61
|
+
status: "failed",
|
|
62
|
+
reason: "failed",
|
|
63
|
+
timestamp: new Date().toISOString(),
|
|
64
|
+
}, { cwd: projectRoot, logger: verbose ? ((msg) => console.error(msg)) : undefined });
|
|
65
|
+
return {
|
|
66
|
+
iteration,
|
|
67
|
+
iterationCount,
|
|
68
|
+
status: "failed",
|
|
69
|
+
action: "none",
|
|
70
|
+
reason: "failed",
|
|
71
|
+
metadata: { runId, processId: metadata.processId, hookStatus: "executed" },
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
// === Call on-iteration-start hook ===
|
|
75
|
+
const iterationStartPayload = {
|
|
76
|
+
runId,
|
|
77
|
+
iteration,
|
|
78
|
+
status: iterationResult.status,
|
|
79
|
+
pending: iterationResult.status === "waiting" ? iterationResult.nextActions : [],
|
|
80
|
+
timestamp: new Date().toISOString(),
|
|
81
|
+
};
|
|
82
|
+
const hookResult = await (0, runtime_1.callRuntimeHook)("on-iteration-start", iterationStartPayload, {
|
|
83
|
+
cwd: projectRoot,
|
|
84
|
+
logger: verbose ? ((msg) => console.error(msg)) : undefined,
|
|
85
|
+
});
|
|
86
|
+
const hookDecision = (0, runIterateHelpers_1.parseHookDecision)(hookResult.output);
|
|
87
|
+
const action = hookDecision.action ?? "none";
|
|
88
|
+
const reason = (0, runIterateHelpers_1.deriveIterationReason)(iterationResult, hookDecision, hookResult.executedHooks?.length > 0);
|
|
89
|
+
const count = hookDecision.count;
|
|
90
|
+
const until = hookDecision.until;
|
|
91
|
+
if (verbose) {
|
|
92
|
+
console.error(`[run:iterate] Hook action: ${action}, reason: ${reason}${count ? `, count: ${count}` : ""}`);
|
|
93
|
+
}
|
|
94
|
+
let status;
|
|
95
|
+
if (action === "executed-tasks") {
|
|
96
|
+
status = "executed";
|
|
97
|
+
}
|
|
98
|
+
else if (action === "waiting") {
|
|
99
|
+
status = "waiting";
|
|
100
|
+
}
|
|
101
|
+
else if (iterationResult.status === "waiting") {
|
|
102
|
+
status = "waiting";
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
status = "none";
|
|
106
|
+
}
|
|
107
|
+
// === Call on-iteration-end hook ===
|
|
108
|
+
const iterationEndPayload = {
|
|
109
|
+
runId,
|
|
110
|
+
iteration,
|
|
111
|
+
action,
|
|
112
|
+
status,
|
|
113
|
+
reason,
|
|
114
|
+
count,
|
|
115
|
+
timestamp: new Date().toISOString(),
|
|
116
|
+
};
|
|
117
|
+
await (0, runtime_1.callRuntimeHook)("on-iteration-end", iterationEndPayload, {
|
|
118
|
+
cwd: projectRoot,
|
|
119
|
+
logger: verbose ? ((msg) => console.error(msg)) : undefined,
|
|
120
|
+
});
|
|
121
|
+
const result = {
|
|
122
|
+
iteration,
|
|
123
|
+
iterationCount,
|
|
124
|
+
status,
|
|
125
|
+
action,
|
|
126
|
+
reason,
|
|
127
|
+
count,
|
|
128
|
+
until,
|
|
129
|
+
nextActions: iterationResult.status === "waiting" ? iterationResult.nextActions : undefined,
|
|
130
|
+
metadata: {
|
|
131
|
+
runId,
|
|
132
|
+
processId: metadata.processId,
|
|
133
|
+
hookStatus: (0, runIterateHelpers_1.deriveHookStatus)(hookResult),
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
// GAP-PAR enrichment (capability-gated, zero impact on external harnesses)
|
|
137
|
+
if (result.status === "waiting" && result.nextActions && options.harnessCapabilities) {
|
|
138
|
+
const caps = options.harnessCapabilities;
|
|
139
|
+
if (caps.includes("concurrent-effects")) {
|
|
140
|
+
const groupMap = (0, grouping_1.groupActionsByParallelGroup)(result.nextActions);
|
|
141
|
+
const serializable = {};
|
|
142
|
+
for (const [k, v] of groupMap.entries()) {
|
|
143
|
+
serializable[k] = v;
|
|
144
|
+
}
|
|
145
|
+
result.parallelGroups = serializable;
|
|
146
|
+
}
|
|
147
|
+
if (caps.includes("background-effects")) {
|
|
148
|
+
const classified = (0, asyncEffects_1.classifyWaitingActions)(result.nextActions);
|
|
149
|
+
result.backgroundClassification = {
|
|
150
|
+
blocking: classified.blocking,
|
|
151
|
+
background: classified.background,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return result;
|
|
156
|
+
}
|