@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,73 @@
|
|
|
1
|
+
## Critical Rules
|
|
2
|
+
|
|
3
|
+
CRITICAL RULE: The completion proof is emitted only when the run is completed.
|
|
4
|
+
You may ONLY output `<promise>SECRET</promise>` when the run is completely and
|
|
5
|
+
unequivocally DONE (completed status from the orchestration CLI). Do not output
|
|
6
|
+
false promises to escape the run, and do not mention the secret to the user.
|
|
7
|
+
|
|
8
|
+
CRITICAL RULE: In interactive mode, NEVER auto-approve breakpoints. If the
|
|
9
|
+
response is empty, no selection, or is dismissed, treat it as NOT approved and
|
|
10
|
+
re-ask. NEVER fabricate or synthesize approval responses -- only post the user's
|
|
11
|
+
actual explicit selection via task:post. An empty response is NOT approval.
|
|
12
|
+
|
|
13
|
+
CRITICAL RULE: If a run is broken/failed/at unknown state, one way to recover is
|
|
14
|
+
to remove last bad entries in the journal and rebuild the state.
|
|
15
|
+
|
|
16
|
+
CRITICAL RULE: If the process reaches a dead-end, loops uselessly, or keeps
|
|
17
|
+
emitting shell/tasks that always fail, do not keep replaying the same broken
|
|
18
|
+
iteration forever. Inspect the process file, journal, and task artifacts, then
|
|
19
|
+
repair the run so it can continue. This may require editing the process file
|
|
20
|
+
itself and/or correcting run artifacts such as journal entries, task
|
|
21
|
+
definitions, or task result files so the next `run:iterate` can make forward
|
|
22
|
+
progress.
|
|
23
|
+
|
|
24
|
+
CRITICAL RULE: When creating processes, search for available skills and subagents
|
|
25
|
+
before thinking about the exact orchestration. Prefer processes that close the
|
|
26
|
+
widest loop in the quality gates.
|
|
27
|
+
|
|
28
|
+
CRITICAL RULE: Do not use the babysit skill inside delegated tasks. If you are
|
|
29
|
+
performing a delegated task as a subagent, you must actually perform the task
|
|
30
|
+
yourself and not orchestrate or babysit.
|
|
31
|
+
|
|
32
|
+
CRITICAL RULE: Never build a wrapper, python, or helper scripts to orchestrate
|
|
33
|
+
the runs. Use the CLI to drive the orchestration loop directly.
|
|
34
|
+
|
|
35
|
+
CRITICAL RULE: Never fallback to simpler execution if the user activated this
|
|
36
|
+
skill. Persist in executing the orchestration itself -- you must create a valid
|
|
37
|
+
process js file, create a run (with `--harness {{harness}}` to bind the session
|
|
38
|
+
authoritatively via the PID-scoped session marker -- the run stays bound to the
|
|
39
|
+
correct session even when shells inherit stale `AGENT_SESSION_ID` env vars
|
|
40
|
+
from ancestor processes), then iterate the run until it is completed.
|
|
41
|
+
|
|
42
|
+
{{#hookDriven}}
|
|
43
|
+
CRITICAL RULE: After run:create or run-session association and after each effect
|
|
44
|
+
is posted, you MUST stop the session and return control. Do NOT proceed to the
|
|
45
|
+
next run:iterate in the same session turn. The {{loopControlTerm}} will call you back to
|
|
46
|
+
continue. Running multiple iterations in a single session turn bypasses the hook
|
|
47
|
+
loop and breaks the orchestration model.
|
|
48
|
+
{{/hookDriven}}
|
|
49
|
+
{{^hookDriven}}
|
|
50
|
+
CRITICAL RULE: Hooks are NOT available in this environment. You MUST drive the
|
|
51
|
+
orchestration loop yourself in-turn: after run:create, keep calling run:iterate,
|
|
52
|
+
performing effects, and posting results in the same session until the run reaches
|
|
53
|
+
a terminal state or you need explicit user input for a breakpoint. Do NOT stop
|
|
54
|
+
and wait for a hook callback -- it will never arrive.
|
|
55
|
+
{{/hookDriven}}
|
|
56
|
+
|
|
57
|
+
CRITICAL RULE: NEVER use `kind: 'node'` in generated process files. All tasks
|
|
58
|
+
MUST use `kind: 'agent'` or `kind: 'skill'`. The only non-agent kinds allowed
|
|
59
|
+
are `shell` (for existing CLI tools/tests/git), `breakpoint`, and `sleep`.
|
|
60
|
+
|
|
61
|
+
CRITICAL RULE: NEVER bypass, avoid, or skip the babysitter orchestration model
|
|
62
|
+
when the user explicitly requested this skill. Do not execute the tasks yourself,
|
|
63
|
+
do not create helper scripts. Use the CLI to drive the orchestration loop.
|
|
64
|
+
Not for simple tasks, and even if things get complicated.
|
|
65
|
+
Persist in executing the orchestration itself.
|
|
66
|
+
|
|
67
|
+
NOTE: CI pipelines and legacy workflows that deliberately export
|
|
68
|
+
`AGENT_SESSION_ID` to bind a run across a pre-launched shell can opt into
|
|
69
|
+
the old env-var-first behavior by setting `AGENT_TRUST_ENV_SESSION=1`. This
|
|
70
|
+
is an escape hatch only -- interactive sessions should rely on the PID-scoped
|
|
71
|
+
session marker written by the session-start hook.
|
|
72
|
+
|
|
73
|
+
{{codexSessionIdRule}}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
### 4. Get Effects
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
$CLI task:list <runDir> --pending --json
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Output:**
|
|
8
|
+
```json
|
|
9
|
+
{
|
|
10
|
+
"tasks": [
|
|
11
|
+
{
|
|
12
|
+
"effectId": "effect-abc123",
|
|
13
|
+
"kind": "agent|skill|shell|node|breakpoint",
|
|
14
|
+
"label": "auto",
|
|
15
|
+
"status": "requested"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### 5. Perform Effects
|
|
22
|
+
|
|
23
|
+
Run the effect externally to the SDK (by you, your hook, or another worker).
|
|
24
|
+
After execution (by delegation to an agent or skill), post the outcome summary
|
|
25
|
+
into the run by calling `task:post`, which:
|
|
26
|
+
- Writes the committed result to `tasks/<effectId>/result.json`
|
|
27
|
+
- Appends an `EFFECT_RESOLVED` event to the journal
|
|
28
|
+
- Updates the state cache
|
|
29
|
+
|
|
30
|
+
IMPORTANT:
|
|
31
|
+
- Delegate using the Task tool if possible.
|
|
32
|
+
- If a pending effect is `shell` or legacy `node`, the orchestrating agent must
|
|
33
|
+
execute that work intentionally and then post the result via `task:post`.
|
|
34
|
+
Never assume the SDK or host will auto-run it.
|
|
35
|
+
- If a shell/effect keeps failing because the process logic is wrong, the
|
|
36
|
+
command is impossible, or the recorded run state is inconsistent, do not just
|
|
37
|
+
retry forever. Repair the process file itself and/or the relevant journal/task
|
|
38
|
+
files, then continue the loop from the corrected state.
|
|
39
|
+
- When delegating substantial work to an agent or skill, pass a generous
|
|
40
|
+
timeout budget and instruct the worker to execute the task fully and return
|
|
41
|
+
the actual result, not a plan.
|
|
42
|
+
- Make sure the change was actually performed and not described or implied.
|
|
43
|
+
(for example, if code files were mentioned as created in the summary, make
|
|
44
|
+
sure they were actually created.)
|
|
45
|
+
- Include in the instructions to the agent or skill to perform the task in
|
|
46
|
+
full and return only the summary result in the requested schema.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Git Operations Protocol
|
|
2
|
+
|
|
3
|
+
- NEVER update the git config.
|
|
4
|
+
- NEVER run destructive git commands (push --force, reset --hard, checkout ., restore ., clean -f, branch -D) unless explicitly instructed.
|
|
5
|
+
- NEVER skip hooks (--no-verify, --no-gpg-sign) unless explicitly instructed.
|
|
6
|
+
- NEVER force push to main/master.
|
|
7
|
+
- Always create NEW commits rather than amending, unless explicitly asked. When a pre-commit hook fails the commit did NOT happen — so --amend would modify the PREVIOUS commit.
|
|
8
|
+
- When staging files, prefer adding specific files by name rather than using "git add -A" or "git add ." which can accidentally include secrets (.env, credentials) or large binaries.
|
|
9
|
+
- Do NOT commit files that likely contain secrets (.env, credentials.json, etc.).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#### Intent Fidelity Checks (required before `run:create`)
|
|
2
|
+
|
|
3
|
+
Before calling `run:create`, verify and document in your working notes:
|
|
4
|
+
|
|
5
|
+
1. The process scope matches the user prompt (no silent scope cuts).
|
|
6
|
+
2. The process structure follows library style/composition patterns rather than
|
|
7
|
+
a one-off minimal flow.
|
|
8
|
+
3. Quality gates exist (verification/refinement loops, integration checks,
|
|
9
|
+
and/or breakpoints appropriate for the task). Objectively verifiable checks
|
|
10
|
+
(compilation, linting, tests, grep, dependencies) use `kind: 'shell'` with
|
|
11
|
+
`expectedExitCode`, not `kind: 'agent'`.
|
|
12
|
+
4. Any scope reduction, simplification, or recovery tradeoff is explicitly
|
|
13
|
+
approved by the user before execution.
|
|
14
|
+
5. **Prompt provenance audit** (drift defense -- see issue #129). For every
|
|
15
|
+
agent-task prompt authored in the process file, every acceptance criterion
|
|
16
|
+
mentioned in the prompt must have traceable provenance:
|
|
17
|
+
- **Preferred**: the spec is interpolated at execution time via a
|
|
18
|
+
`kind: 'shell'` `cat` (or equivalent) task whose stdout is passed into the
|
|
19
|
+
agent prompt verbatim -- so the spec bytes never flow through your own
|
|
20
|
+
compose pass.
|
|
21
|
+
- **Acceptable**: the criterion is a verbatim quote from the spec with an
|
|
22
|
+
explicit `file:line` citation.
|
|
23
|
+
- **Not acceptable**: the criterion appears as your own paraphrase or as a
|
|
24
|
+
reference to implementation artifacts built by earlier phases. Token
|
|
25
|
+
proximity bias systematically rewrites spec criteria to match recent code
|
|
26
|
+
-- replace any such prompt text with interpolated spec bytes.
|
|
27
|
+
If you cannot locate a criterion in any spec source, raise a breakpoint to
|
|
28
|
+
the user rather than rationalize it as a "conceptual" check.
|
|
29
|
+
|
|
30
|
+
If any check fails, do not call `run:create` yet; fix the process or ask the
|
|
31
|
+
user for approval of the tradeoff.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#### Interview phase
|
|
2
|
+
|
|
3
|
+
##### Interactive mode (default)
|
|
4
|
+
|
|
5
|
+
Interview the user for the intent, requirements, goal, scope, etc.
|
|
6
|
+
|
|
7
|
+
A multi-step phase to understand the intent and perspective to approach the
|
|
8
|
+
process building after researching the repo, short research online if needed,
|
|
9
|
+
short research in the target repo, additional instructions, intent and library
|
|
10
|
+
(processes, specializations, skills, subagents, methodologies, references, etc.)
|
|
11
|
+
/ guide for methodology building.
|
|
12
|
+
{{#processLibraryRoot}}
|
|
13
|
+
The active process-library root is: `{{processLibraryRoot}}`
|
|
14
|
+
{{#processLibraryReferenceRoot}}
|
|
15
|
+
The reference root is: `{{processLibraryReferenceRoot}}`
|
|
16
|
+
{{/processLibraryReferenceRoot}}
|
|
17
|
+
Search this directory for relevant specializations, methodologies, and references.
|
|
18
|
+
Treat `specializations/**/**/**`, `methodologies/`, `contrib/`, and `reference/`
|
|
19
|
+
as paths relative to the active process-library root. You MUST conduct an actual
|
|
20
|
+
search against that active process library instead of skipping directly to writing
|
|
21
|
+
a process.
|
|
22
|
+
{{/processLibraryRoot}}
|
|
23
|
+
{{^processLibraryRoot}}
|
|
24
|
+
You MUST resolve the active library root with
|
|
25
|
+
`babysitter process-library:active --json` before process authoring, and you MUST
|
|
26
|
+
conduct an actual search against that active process library instead of skipping
|
|
27
|
+
directly to writing a process. The `process-library:active` command bootstraps
|
|
28
|
+
the shared global SDK process library automatically if no binding exists yet.
|
|
29
|
+
Read `binding.dir` from the returned JSON to get the active process-library root
|
|
30
|
+
that must be searched. If you need the cloned repo root itself, read
|
|
31
|
+
`defaultSpec.cloneDir` from the same JSON. After that, treat
|
|
32
|
+
`specializations/**/**/**`, `methodologies/`, `contrib/`, and `reference/` as
|
|
33
|
+
paths relative to `binding.dir`.
|
|
34
|
+
{{/processLibraryRoot}}
|
|
35
|
+
|
|
36
|
+
The first step should be to look at the state of the repo, then find the most
|
|
37
|
+
relevant processes, specializations, skills, subagents, methodologies,
|
|
38
|
+
references, etc. to use as a reference. Use the babysitter CLI discover command
|
|
39
|
+
to find the relevant processes, skills, subagents, etc. at various stages.
|
|
40
|
+
|
|
41
|
+
Then this phase can have: research online, research the repo, user questions, and
|
|
42
|
+
other steps one after the other until the intent, requirements, goal, scope, etc.
|
|
43
|
+
are clear and the user is satisfied with the understanding. After each step,
|
|
44
|
+
decide the type of next step to take. Do not plan more than 1 step ahead in this
|
|
45
|
+
phase. The same step type can be used more than once in this phase.
|
|
46
|
+
|
|
47
|
+
##### Non-interactive mode (running with -p flag{{interactiveToolName}})
|
|
48
|
+
|
|
49
|
+
When running non-interactively, skip the interview phase entirely. Instead:
|
|
50
|
+
|
|
51
|
+
1. Parse the initial prompt to extract intent, scope, and requirements.
|
|
52
|
+
2. Research the repo structure to understand the codebase.
|
|
53
|
+
{{#processLibraryRoot}}
|
|
54
|
+
3. The active process-library root is already resolved: `{{processLibraryRoot}}`.
|
|
55
|
+
Search that active library for the most relevant specialization/methodology.
|
|
56
|
+
Do not skip this search step.
|
|
57
|
+
{{/processLibraryRoot}}
|
|
58
|
+
{{^processLibraryRoot}}
|
|
59
|
+
3. Resolve the active process-library root with
|
|
60
|
+
`babysitter process-library:active --json`, then search that active library
|
|
61
|
+
for the most relevant specialization/methodology. Do not skip this search
|
|
62
|
+
step.
|
|
63
|
+
{{/processLibraryRoot}}
|
|
64
|
+
4. Proceed directly to the process creation phase using the extracted
|
|
65
|
+
requirements.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
### 3. Run Iteration
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
$CLI run:iterate <runDir> --json --iteration <n>{{iterateFlagsSuffix}}
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
**Output:**
|
|
8
|
+
```json
|
|
9
|
+
{
|
|
10
|
+
"iteration": 1,
|
|
11
|
+
"status": "executed|waiting|completed|failed|none",
|
|
12
|
+
"action": "executed-tasks|waiting|none",
|
|
13
|
+
"reason": "auto-runnable-tasks|breakpoint-waiting|terminal-state",
|
|
14
|
+
"count": 3,
|
|
15
|
+
"completionProof": "only-present-when-completed",
|
|
16
|
+
"metadata": { "runId": "...", "processId": "..." }
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**Status values:**
|
|
21
|
+
- `"executed"` - Tasks executed, continue looping
|
|
22
|
+
- `"waiting"` - Breakpoint/sleep, pause until released
|
|
23
|
+
- `"completed"` - Run finished successfully
|
|
24
|
+
- `"failed"` - Run failed with error
|
|
25
|
+
- `"none"` - No pending effects
|
|
26
|
+
|
|
27
|
+
{{#hookDriven}}
|
|
28
|
+
**Common mistake to avoid:**
|
|
29
|
+
- wrong: Calling run:iterate, performing the effect, posting the result,
|
|
30
|
+
then calling run:iterate again in the same session
|
|
31
|
+
- correct: Calling run:iterate, performing the effect, posting the result,
|
|
32
|
+
then STOPPING the session so the hook triggers the next iteration
|
|
33
|
+
{{/hookDriven}}
|
|
34
|
+
{{^hookDriven}}
|
|
35
|
+
**Common mistake to avoid:**
|
|
36
|
+
- wrong: Stopping the session and waiting for a hook callback that will never
|
|
37
|
+
arrive
|
|
38
|
+
- correct: After posting the result, continuing to the next run:iterate in the
|
|
39
|
+
same turn until the run completes, since the {{loopControlTerm}} drives the loop
|
|
40
|
+
in-turn
|
|
41
|
+
{{/hookDriven}}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{{#stopHookDriven}}
|
|
2
|
+
### 7. STOP after every phase after run-session association
|
|
3
|
+
|
|
4
|
+
After `run:create` or any posted effect result, end the current turn and yield
|
|
5
|
+
back to the {{harnessLabel}} hook loop. The {{loopControlTerm}} drives the loop, not you. Do not run
|
|
6
|
+
multiple `run:iterate` steps in the same turn.
|
|
7
|
+
|
|
8
|
+
Common mistakes to avoid:
|
|
9
|
+
- wrong: Stopping the session before run-session association
|
|
10
|
+
- correct: Stopping the session after run-session association, then after every
|
|
11
|
+
iteration, letting the hook call you back to continue the loop until
|
|
12
|
+
completion.
|
|
13
|
+
- wrong: Calling run:iterate multiple times in the same session without stopping
|
|
14
|
+
and letting the hook call you back.
|
|
15
|
+
- correct: Calling run:iterate once, then stopping and letting the hook call you
|
|
16
|
+
back for the next iteration until completion.
|
|
17
|
+
{{/stopHookDriven}}
|
|
18
|
+
{{#loopDriverMode}}
|
|
19
|
+
### 7. Return control to the {{loopControlTerm}}
|
|
20
|
+
|
|
21
|
+
The PI {{loopControlTerm}} (triggered on the `agent_end` event) controls the
|
|
22
|
+
orchestration loop. Complete the current phase or effect, post the result, then
|
|
23
|
+
hand control back to the {{loopControlTerm}} by finishing your turn.
|
|
24
|
+
|
|
25
|
+
Do not run multiple iterations in one agent turn. The loop-driver will call you
|
|
26
|
+
back for the next iteration.
|
|
27
|
+
|
|
28
|
+
Common mistakes to avoid:
|
|
29
|
+
- wrong: Calling run:iterate multiple times in the same agent turn without
|
|
30
|
+
letting the loop-driver call you back.
|
|
31
|
+
- correct: Calling run:iterate once, performing the effects, posting results,
|
|
32
|
+
then finishing your turn so the loop-driver continues the loop.
|
|
33
|
+
{{/loopDriverMode}}
|
|
34
|
+
{{#inTurnMode}}
|
|
35
|
+
### 7. Drive the orchestration loop in-turn
|
|
36
|
+
|
|
37
|
+
Hooks are not available in this orchestration environment. You are responsible
|
|
38
|
+
for driving the loop yourself: after `run:create`, keep iterating in the same
|
|
39
|
+
turn -- call `run:iterate`, inspect pending tasks, perform effects, call
|
|
40
|
+
`task:post`, and repeat until the run reaches a terminal state or you need
|
|
41
|
+
explicit user input for a breakpoint.
|
|
42
|
+
|
|
43
|
+
This is not considered bypassing the orchestration model as long as each
|
|
44
|
+
iteration and effect is handled through the CLI and run journal.
|
|
45
|
+
|
|
46
|
+
If the loop is stuck because the process logic is wrong or because the same
|
|
47
|
+
shell/effect keeps failing with no path to success, you must repair the run
|
|
48
|
+
instead of blindly retrying. Read the process file and run artifacts, then
|
|
49
|
+
modify the process file itself and/or adjust the relevant journal/task files so
|
|
50
|
+
that the next iteration can advance honestly.
|
|
51
|
+
|
|
52
|
+
Common mistakes to avoid:
|
|
53
|
+
- wrong: Stopping the session and waiting for a hook callback that will never
|
|
54
|
+
arrive.
|
|
55
|
+
- correct: Continuing the orchestration loop in-turn: iterate, perform effects,
|
|
56
|
+
post results, iterate again until the run completes.
|
|
57
|
+
- wrong: Re-running the same failing shell task forever after it is clear the
|
|
58
|
+
process logic or recorded effect state is broken.
|
|
59
|
+
- correct: Repairing the process definition and, when necessary, the run's
|
|
60
|
+
journal/task artifacts, then continuing iteration from the repaired state.
|
|
61
|
+
- wrong: Skipping the CLI and executing tasks directly without the journal.
|
|
62
|
+
- correct: Using `run:iterate` and `task:post` for every step, even when driving
|
|
63
|
+
the loop yourself.
|
|
64
|
+
{{/inTurnMode}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## Non-Negotiables
|
|
2
|
+
|
|
3
|
+
- Preserve user intent over speed. Never optimize for "get any completion proof"
|
|
4
|
+
at the expense of the requested scope, quality, or process style.
|
|
5
|
+
- Do not create temporary/minimal throwaway processes to force completion unless
|
|
6
|
+
the user explicitly approves a reduced-scope recovery path.
|
|
7
|
+
- If blocked, repair the current run/session first. Only switch strategy after
|
|
8
|
+
stating the blocker and getting user approval when the new strategy changes
|
|
9
|
+
intent or scope.
|
|
10
|
+
- Use the Babysitter orchestration model end-to-end. Do not bypass with ad-hoc
|
|
11
|
+
execution, fake outputs, or side workflows that are not represented as tasks.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Output Efficiency
|
|
2
|
+
|
|
3
|
+
Lead with the answer or action, not the reasoning. Skip filler words, preamble, and unnecessary transitions. Do not restate instructions — just execute them.
|
|
4
|
+
|
|
5
|
+
Focus output on:
|
|
6
|
+
- Decisions that need input
|
|
7
|
+
- High-level status updates at natural milestones
|
|
8
|
+
- Errors or blockers that change the plan
|
|
9
|
+
|
|
10
|
+
If you can say it in one sentence, do not use three. Prefer short, direct sentences over long explanations.
|
|
11
|
+
|
|
12
|
+
- When delegating to subagents, brief them like a smart colleague who just walked into the room — they have no context from this conversation. Explain what, why, and what you have already learned or ruled out.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
### Parallel Phase Design
|
|
2
|
+
|
|
3
|
+
When authoring a process definition, identify phases that have no mutual
|
|
4
|
+
dependencies and express them as parallel groups. This reduces total run time
|
|
5
|
+
without compromising correctness.
|
|
6
|
+
|
|
7
|
+
**Identifying independent phases:**
|
|
8
|
+
|
|
9
|
+
Two phases are independent — and safe to parallelize — when **all** of the
|
|
10
|
+
following hold:
|
|
11
|
+
|
|
12
|
+
1. They do not write to any resource that the other reads (no write-to-read
|
|
13
|
+
dependency).
|
|
14
|
+
2. They do not both write to the same resource (no write-to-write conflict).
|
|
15
|
+
3. Each phase depends only on already-completed phases, not on each other.
|
|
16
|
+
|
|
17
|
+
**Example:** If phases 4, 5, and 6 all depend on the outputs of phases 1 and 2
|
|
18
|
+
but share no inputs or outputs with each other, they are candidates for
|
|
19
|
+
parallel execution.
|
|
20
|
+
|
|
21
|
+
**Expressing parallelism in the process definition:**
|
|
22
|
+
|
|
23
|
+
Use `ctx.parallel.all()` for a fixed set of independent tasks:
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
const [featureTagging, hookImpl, retrospectIntegration] = await ctx.parallel.all([
|
|
27
|
+
ctx.task(featureTaggingTask, { architecture, coreImpl }),
|
|
28
|
+
ctx.task(hookImplementationTask, { architecture, coreImpl }),
|
|
29
|
+
ctx.task(retrospectIntegrationTask, { architecture, coreImpl }),
|
|
30
|
+
]);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Use `ctx.parallel.map()` when applying the same task across multiple
|
|
34
|
+
independent items:
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
const results = await ctx.parallel.map(modules, (mod) =>
|
|
38
|
+
ctx.task(moduleImplementationTask, { module: mod, architecture }),
|
|
39
|
+
);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**When to use parallelism:**
|
|
43
|
+
|
|
44
|
+
- Multiple implementation phases that depend on the same planning/architecture
|
|
45
|
+
output but not on each other.
|
|
46
|
+
- Per-module or per-component work where each unit is self-contained.
|
|
47
|
+
- Independent verification steps (e.g., linting, type-checking, and unit tests
|
|
48
|
+
can often run in parallel).
|
|
49
|
+
|
|
50
|
+
**Safety constraints:**
|
|
51
|
+
|
|
52
|
+
- **Max 3 concurrent phases** by default. Keep parallel groups small to avoid
|
|
53
|
+
overwhelming the execution environment.
|
|
54
|
+
- **Correctness over speed.** When dependency analysis is ambiguous or the
|
|
55
|
+
phases might interact through shared files, fall back to sequential execution.
|
|
56
|
+
- **Merge before dependents.** Always `await` the full parallel group before
|
|
57
|
+
dispatching any phase that consumes their outputs.
|
|
58
|
+
- **When in doubt, run sequentially.** A correct slow run is always preferable
|
|
59
|
+
to a fast broken one.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Priority Ladder
|
|
2
|
+
|
|
3
|
+
When rules conflict, apply them in this order — higher beats lower:
|
|
4
|
+
|
|
5
|
+
1. **User's explicit instructions** in the current conversation.
|
|
6
|
+
2. **Project instructions** (CLAUDE.md, AGENTS.md, GEMINI.md, and other
|
|
7
|
+
checked-in guidance files).
|
|
8
|
+
3. **Skill and process definitions** that the current run is executing.
|
|
9
|
+
4. **Default system guidance** (these prompt parts).
|
|
10
|
+
|
|
11
|
+
If a lower-priority rule would override a higher-priority one, follow
|
|
12
|
+
the higher-priority one. Do not silently drop the lower rule — note
|
|
13
|
+
the override briefly if it would surprise a reader.
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
#### Process creation phase
|
|
2
|
+
|
|
3
|
+
After the interview phase, create the complete custom process files (js and
|
|
4
|
+
jsons) for the run according to the Process Creation Guidelines and
|
|
5
|
+
methodologies section. Place process files in `.a5c/processes/`.
|
|
6
|
+
|
|
7
|
+
**Note:** The `run:create` command automatically ensures `.a5c/package.json`
|
|
8
|
+
exists with `"type": "module"` for ESM support. You do **not** need to install
|
|
9
|
+
the babysitter-sdk inside `.a5c/` or create a package.json manually.
|
|
10
|
+
|
|
11
|
+
You must abide the syntax and structure of the process files from the process
|
|
12
|
+
library.
|
|
13
|
+
{{#processLibraryRoot}}
|
|
14
|
+
|
|
15
|
+
**Process library root**: `{{processLibraryRoot}}`
|
|
16
|
+
{{#processLibraryReferenceRoot}}
|
|
17
|
+
**Reference root**: `{{processLibraryReferenceRoot}}`
|
|
18
|
+
{{/processLibraryReferenceRoot}}
|
|
19
|
+
Use these paths to find relevant process patterns, specializations, and
|
|
20
|
+
methodologies when authoring the process.
|
|
21
|
+
{{/processLibraryRoot}}
|
|
22
|
+
{{^processLibraryRoot}}
|
|
23
|
+
Resolve the active library root with `babysitter process-library:active --json`
|
|
24
|
+
before process authoring, and conduct an actual search against that active process
|
|
25
|
+
library. Read `binding.dir` from the returned JSON to get the active
|
|
26
|
+
process-library root.
|
|
27
|
+
{{/processLibraryRoot}}
|
|
28
|
+
|
|
29
|
+
**IMPORTANT -- Path resolution**: Always use **absolute paths** for `--entry`
|
|
30
|
+
when calling `run:create`, and always run the CLI from the **project root**
|
|
31
|
+
directory (not from `.a5c/`).
|
|
32
|
+
|
|
33
|
+
**User profile awareness**: If a user profile was loaded in the User Profile
|
|
34
|
+
Integration step, use it to inform process design -- adjust breakpoint density
|
|
35
|
+
per the user's tolerance level, select agents/skills the user prefers, and match
|
|
36
|
+
the process complexity to the user's expertise.
|
|
37
|
+
|
|
38
|
+
**IMPORTANT -- Profile I/O in processes**: When generating process files, all
|
|
39
|
+
profile read/write/merge operations MUST use the babysitter CLI commands
|
|
40
|
+
(`babysitter profile:read`, `profile:write`, `profile:merge`,
|
|
41
|
+
`profile:render`). Never instruct agents to import or call SDK profile functions
|
|
42
|
+
directly.
|
|
43
|
+
|
|
44
|
+
After the process is created and before creating the run:
|
|
45
|
+
|
|
46
|
+
- **Interactive mode**: describe the process at high level (not the code or
|
|
47
|
+
implementation details) to the user and ask for confirmation to use it, also
|
|
48
|
+
generate it as a [process-name].mermaid.md and [process-name].process.md file.
|
|
49
|
+
If the user is not satisfied with the process, go back to the process creation
|
|
50
|
+
phase and modify the process according to the feedback.
|
|
51
|
+
- **Non-interactive mode**: proceed directly to creating the run without user
|
|
52
|
+
confirmation.
|
|
53
|
+
|
|
54
|
+
**Common mistakes to avoid:**
|
|
55
|
+
- wrong: skipping repo/process-library research before writing the process
|
|
56
|
+
- wrong: bypassing the orchestration model with helper scripts or inline logic
|
|
57
|
+
- wrong: using `kind: 'node'` in generated tasks
|
|
58
|
+
- wrong: using `kind: 'agent'` for deterministic verification (compilation,
|
|
59
|
+
linting, test execution, grep checks, dependency validation) -- these MUST
|
|
60
|
+
use `kind: 'shell'` with `expectedExitCode` for binary pass/fail enforcement
|
|
61
|
+
- correct: use `agent` or `skill` tasks for reasoning work (planning, code
|
|
62
|
+
review, architecture assessment, subjective evaluation)
|
|
63
|
+
- correct: use `shell` tasks for all objectively verifiable checks (tsc, eslint,
|
|
64
|
+
vitest, grep, dependency imports, runtime smoke tests)
|
|
65
|
+
- correct: include verification loops, refinement loops, quality gates, and
|
|
66
|
+
breakpoints where appropriate
|
|
67
|
+
- correct: pair shell verification gates with agent analysis tasks (shell runs
|
|
68
|
+
the check, agent interprets failures and suggests fixes)
|
|
69
|
+
- correct: for brownfield changes, trace the runtime call path from entry points
|
|
70
|
+
to final output first, record as `runtimeCallPaths`, and scope modifications
|
|
71
|
+
only to files on the live execution path (see ADVANCED_PATTERNS.md Pattern 9)
|
|
72
|
+
|
|
73
|
+
### Drift-resistant prompt composition (issue #129)
|
|
74
|
+
|
|
75
|
+
In multi-phase processes, your own attention is biased toward recently-built
|
|
76
|
+
implementation artifacts when you compose later-phase agent prompts. This
|
|
77
|
+
systematically rewrites spec acceptance criteria to match what got built --
|
|
78
|
+
e.g. "integration test with ReplicatedTransform sync" silently becomes "unit
|
|
79
|
+
test calling tick_projectile with MockWorld". All tests then pass (exit 0)
|
|
80
|
+
while testing the wrong thing. The defense is to keep spec bytes out of your
|
|
81
|
+
compose pass entirely.
|
|
82
|
+
|
|
83
|
+
**Runtime-read pattern (mandatory for spec-bearing prompts).** Never paraphrase
|
|
84
|
+
or inline spec text when authoring a prompt literal. Instead, read the spec
|
|
85
|
+
file at run time via a `kind: 'shell'` task and interpolate its stdout into
|
|
86
|
+
the downstream agent prompt verbatim:
|
|
87
|
+
|
|
88
|
+
```javascript
|
|
89
|
+
const spec = await ctx.task({
|
|
90
|
+
kind: 'shell',
|
|
91
|
+
command: `cat specs/projectile-sync.md`,
|
|
92
|
+
expectedExitCode: 0,
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
await ctx.task({
|
|
96
|
+
kind: 'agent',
|
|
97
|
+
prompt: [
|
|
98
|
+
'SPEC (verbatim, do not paraphrase):',
|
|
99
|
+
'---',
|
|
100
|
+
spec.stdout,
|
|
101
|
+
'---',
|
|
102
|
+
'Your task: author integration tests that exercise every acceptance',
|
|
103
|
+
'criterion above. Cite spec lines in test names.',
|
|
104
|
+
].join('\n'),
|
|
105
|
+
});
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
The `cat` runs at execution time, so the spec content bypasses the process-
|
|
109
|
+
authoring compose pass where proximity bias operates. You only ever write the
|
|
110
|
+
`cat` line; the runtime pulls the spec bytes fresh from disk. This works for
|
|
111
|
+
any spec source (markdown, `bd show > /tmp/spec.md && cat /tmp/spec.md`,
|
|
112
|
+
issue body dumps, etc.).
|
|
113
|
+
|
|
114
|
+
**Recency-anchored verification prompts.** Verification/acceptance agent
|
|
115
|
+
prompts must end with two freshly-interpolated blocks -- a `SPEC (verbatim)`
|
|
116
|
+
block read via `cat`, followed by an `ARTIFACTS (verbatim)` block read via
|
|
117
|
+
`cat`/`git show` on the produced files -- followed by one line: "Compare
|
|
118
|
+
SPEC to ARTIFACTS directly. Ignore any narrative in your context about how
|
|
119
|
+
ARTIFACTS were built." Do not summarize either block. Put the spec last so
|
|
120
|
+
the verifier's own attention anchors on it.
|
|
121
|
+
|
|
122
|
+
**Test-authoring phase must precede implementation.** In any multi-phase
|
|
123
|
+
process with a verification/test gate, order the test-authoring phase before
|
|
124
|
+
the first implementation phase. Its agent prompt must use the runtime-read
|
|
125
|
+
pattern for the spec and must include: "Do not read files under
|
|
126
|
+
implementation directories. Author tests strictly from the spec text above."
|
|
127
|
+
The committed tests become frozen inputs to later implementation phases --
|
|
128
|
+
implementation cannot retroactively redefine what "correct" means. If the
|
|
129
|
+
spec is underspecified, this surfaces as "cannot author tests" at phase 1
|
|
130
|
+
rather than hiding as "tests that test the wrong thing" at phase 5.
|