@a5c-ai/babysitter-sdk 5.0.1-staging.71bb37a4 → 5.0.1-staging.75c8fb21
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/README.md +68 -0
- package/dist/breakpoints/evaluator.d.ts.map +1 -1
- package/dist/breakpoints/evaluator.js +31 -3
- package/dist/breakpoints/index.d.ts +2 -5
- package/dist/breakpoints/index.d.ts.map +1 -1
- package/dist/breakpoints/index.js +4 -20
- 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/cli/commands/breakpointRules.d.ts.map +1 -1
- package/dist/cli/commands/breakpointRules.js +30 -27
- package/dist/cli/commands/compressOutput.d.ts.map +1 -1
- package/dist/cli/commands/compressOutput.js +9 -345
- 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/costStats.d.ts.map +1 -1
- package/dist/cli/commands/costStats.js +35 -27
- package/dist/cli/commands/harness/install.d.ts +9 -0
- package/dist/cli/commands/harness/install.d.ts.map +1 -1
- package/dist/cli/commands/harness/install.js +20 -31
- 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.map +1 -1
- package/dist/cli/commands/health/environment.js +11 -1
- package/dist/cli/commands/health.d.ts +0 -15
- package/dist/cli/commands/health.d.ts.map +1 -1
- package/dist/cli/commands/health.js +5 -300
- package/dist/cli/commands/hooks/run.d.ts.map +1 -1
- package/dist/cli/commands/hooks/run.js +3 -2
- package/dist/cli/commands/instructions.d.ts +1 -1
- package/dist/cli/commands/instructions.d.ts.map +1 -1
- package/dist/cli/commands/instructions.js +72 -6
- package/dist/cli/commands/mcpServe.d.ts +2 -9
- package/dist/cli/commands/mcpServe.d.ts.map +1 -1
- package/dist/cli/commands/mcpServe.js +5 -29
- package/dist/cli/commands/runIterate.d.ts.map +1 -1
- package/dist/cli/commands/runIterate.js +7 -214
- 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.map +1 -1
- package/dist/cli/commands/session/associate.js +4 -36
- package/dist/cli/commands/session/iterationMessage.d.ts.map +1 -1
- package/dist/cli/commands/session/iterationMessage.js +9 -54
- package/dist/cli/commands/session/resume.d.ts.map +1 -1
- package/dist/cli/commands/session/resume.js +6 -16
- package/dist/cli/commands/skill/discoveryLocal.d.ts +1 -1
- package/dist/cli/commands/skill/discoveryLocal.d.ts.map +1 -1
- package/dist/cli/commands/skill.d.ts +1 -1
- package/dist/cli/commands/skill.d.ts.map +1 -1
- package/dist/cli/commands/skill.js +13 -12
- package/dist/cli/commands/tokensStats.d.ts.map +1 -1
- package/dist/cli/commands/tokensStats.js +40 -157
- 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/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 +1 -3
- package/dist/cli/main/argFlags.d.ts.map +1 -1
- package/dist/cli/main/argFlags.js +3 -343
- package/dist/cli/main/args.d.ts.map +1 -1
- package/dist/cli/main/args.js +4 -27
- package/dist/cli/main/dispatchRunSession.js +0 -10
- package/dist/cli/main/program.js +1 -1
- package/dist/cli/main/runCreate.js +2 -2
- package/dist/cli/main/runSupport.d.ts +9 -1
- package/dist/cli/main/runSupport.d.ts.map +1 -1
- package/dist/cli/main/runSupport.js +71 -1
- package/dist/cli/main/usage.d.ts.map +1 -1
- package/dist/cli/main/usage.js +43 -42
- 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 +3 -126
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +10 -258
- package/dist/config/index.d.ts +3 -2
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +15 -2
- 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/index.d.ts +0 -1
- package/dist/cost/index.d.ts.map +1 -1
- package/dist/cost/index.js +2 -3
- 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 +2 -79
- package/dist/cost/types.d.ts.map +1 -1
- package/dist/cost/types.js +8 -220
- 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 +63 -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 +193 -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.js +1 -1
- 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 +21 -1
- package/dist/harness/discovery.d.ts.map +1 -1
- package/dist/harness/discovery.js +70 -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 +19 -0
- package/dist/harness/hooks/promptContexts.d.ts.map +1 -0
- package/dist/harness/hooks/promptContexts.js +183 -0
- package/dist/harness/hooks/runState.d.ts.map +1 -1
- package/dist/harness/hooks/runState.js +13 -28
- 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 +145 -0
- package/dist/harness/{claudeCode/stopHookState.d.ts → hooks/stopHookContinuation.d.ts} +8 -2
- package/dist/harness/hooks/stopHookContinuation.d.ts.map +1 -0
- package/dist/harness/{claudeCode/stopHookState.js → hooks/stopHookContinuation.js} +22 -21
- 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 +371 -0
- package/dist/harness/hooks/utils.d.ts +29 -0
- package/dist/harness/hooks/utils.d.ts.map +1 -1
- package/dist/harness/hooks/utils.js +90 -0
- package/dist/harness/index.d.ts +12 -9
- package/dist/harness/index.d.ts.map +1 -1
- package/dist/harness/index.js +20 -14
- package/dist/harness/install.d.ts +75 -0
- package/dist/harness/install.d.ts.map +1 -0
- package/dist/harness/install.js +199 -0
- package/dist/harness/installSupport.d.ts.map +1 -1
- package/dist/harness/installSupport.js +19 -0
- package/dist/harness/internal/promptContext.js +1 -1
- package/dist/harness/registry.d.ts +11 -2
- package/dist/harness/registry.d.ts.map +1 -1
- package/dist/harness/registry.js +110 -53
- package/dist/harness/types.d.ts +19 -2
- package/dist/harness/types.d.ts.map +1 -1
- package/dist/harness/unified/adapter.d.ts +5 -5
- package/dist/harness/unified/adapter.d.ts.map +1 -1
- package/dist/harness/unified/adapter.js +57 -26
- package/dist/harness/unified/capabilities.d.ts +5 -5
- package/dist/harness/unified/capabilities.js +7 -7
- package/dist/harness/unified/discovery.d.ts +1 -1
- package/dist/harness/unified/discovery.js +2 -2
- package/dist/harness/unified/promptContext.d.ts +1 -1
- package/dist/harness/unified/promptContext.js +2 -2
- package/dist/harness/unified/subprocess.d.ts +5 -5
- package/dist/harness/unified/subprocess.d.ts.map +1 -1
- package/dist/harness/unified/subprocess.js +10 -7
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/mcp/index.d.ts +0 -4
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +4 -9
- package/dist/mcp/tools/discovery.d.ts.map +1 -1
- package/dist/mcp/tools/discovery.js +3 -2
- package/dist/mcp/tools/sessions.d.ts.map +1 -1
- package/dist/mcp/tools/sessions.js +2 -8
- package/dist/mcp/transport/index.d.ts +0 -4
- package/dist/mcp/transport/index.d.ts.map +1 -1
- package/dist/mcp/transport/index.js +1 -8
- package/dist/mcp/util/resolve-run-dir.d.ts +1 -1
- package/dist/mcp/util/resolve-run-dir.d.ts.map +1 -1
- package/dist/mcp/util/resolve-run-dir.js +3 -39
- package/dist/plugins/marketplace.d.ts +1 -47
- package/dist/plugins/marketplace.d.ts.map +1 -1
- package/dist/plugins/marketplace.js +6 -186
- 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/processLibrary/active.d.ts +2 -83
- package/dist/processLibrary/active.d.ts.map +1 -1
- package/dist/processLibrary/active.js +65 -167
- 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/prompts/compose.js +1 -1
- package/dist/prompts/context.d.ts +1 -9
- package/dist/prompts/context.d.ts.map +1 -1
- package/dist/prompts/context.js +12 -20
- package/dist/prompts/parts/criticalRules.js +1 -1
- package/dist/prompts/parts/runCreation.d.ts.map +1 -1
- package/dist/prompts/parts/runCreation.js +2 -12
- package/dist/prompts/templates/commands/doctor.md +5 -5
- package/dist/prompts/templates/critical-rules.md +2 -2
- package/dist/prompts/templates/effects.md +1 -1
- package/dist/prompts/templates/iteration.md +1 -1
- package/dist/prompts/templates/process-guidelines.md +1 -1
- package/dist/prompts/templates/quick-reference.md +1 -1
- package/dist/prompts/templates/results-posting.md +2 -2
- package/dist/prompts/templates/run-creation.md +2 -2
- package/dist/prompts/templates/run-overlap-detection.md +6 -4
- package/dist/prompts/templates/task-examples.md +7 -7
- package/dist/prompts/templates/task-kinds.md +7 -3
- package/dist/prompts/types.d.ts +1 -1
- package/dist/runtime/commitEffectResult.d.ts.map +1 -1
- package/dist/runtime/commitEffectResult.js +5 -2
- package/dist/runtime/createRun.d.ts.map +1 -1
- package/dist/runtime/createRun.js +28 -14
- 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/exceptions.d.ts +3 -152
- package/dist/runtime/exceptions.d.ts.map +1 -1
- package/dist/runtime/exceptions.js +22 -220
- package/dist/runtime/index.d.ts +2 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +8 -1
- 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 +4 -3
- package/dist/runtime/intrinsics/task.d.ts.map +1 -1
- package/dist/runtime/intrinsics/task.js +31 -260
- 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/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 +2 -7
- package/dist/runtime/orchestrateIteration.d.ts.map +1 -1
- package/dist/runtime/orchestrateIteration.js +46 -267
- 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 +3 -1
- package/dist/runtime/policy/index.d.ts.map +1 -1
- package/dist/runtime/policy/index.js +9 -1
- 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 +4 -0
- package/dist/runtime/policy/types.d.ts.map +1 -1
- package/dist/runtime/processContext.d.ts +3 -0
- package/dist/runtime/processContext.d.ts.map +1 -1
- package/dist/runtime/processContext.js +3 -0
- package/dist/runtime/replay/createReplayEngine.d.ts +1 -0
- package/dist/runtime/replay/createReplayEngine.d.ts.map +1 -1
- package/dist/runtime/replay/createReplayEngine.js +26 -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/types.d.ts +33 -1
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/session/cleanup.d.ts.map +1 -1
- package/dist/session/cleanup.js +26 -21
- package/dist/session/discovery.d.ts +4 -1
- package/dist/session/discovery.d.ts.map +1 -1
- package/dist/session/discovery.js +13 -18
- package/dist/session/types.d.ts +1 -1
- package/dist/session/types.d.ts.map +1 -1
- package/dist/session/whoami.js +2 -2
- package/dist/storage/createRunDir.d.ts.map +1 -1
- package/dist/storage/createRunDir.js +1 -0
- package/dist/storage/types.d.ts +14 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/tasks/kinds/index.d.ts +1 -1
- package/dist/tasks/kinds/index.d.ts.map +1 -1
- package/dist/tasks/kinds/index.js +58 -237
- 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/types.d.ts +18 -3
- package/dist/tasks/types.d.ts.map +1 -1
- 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/sessionMarker.d.ts +3 -7
- package/dist/utils/sessionMarker.d.ts.map +1 -1
- package/dist/utils/sessionMarker.js +32 -216
- package/package.json +28 -5
- package/dist/breakpoints/approvalChains.d.ts +0 -66
- package/dist/breakpoints/approvalChains.d.ts.map +0 -1
- package/dist/breakpoints/approvalChains.js +0 -109
- package/dist/breakpoints/delegation.d.ts +0 -40
- package/dist/breakpoints/delegation.d.ts.map +0 -1
- package/dist/breakpoints/delegation.js +0 -197
- package/dist/breakpoints/delegationTypes.d.ts +0 -44
- package/dist/breakpoints/delegationTypes.d.ts.map +0 -1
- package/dist/breakpoints/delegationTypes.js +0 -8
- package/dist/breakpoints/postures.d.ts +0 -26
- package/dist/breakpoints/postures.d.ts.map +0 -1
- package/dist/breakpoints/postures.js +0 -98
- package/dist/cli/commandRegistry.d.ts +0 -27
- package/dist/cli/commandRegistry.d.ts.map +0 -1
- package/dist/cli/commandRegistry.js +0 -121
- package/dist/compression/compaction.d.ts +0 -80
- package/dist/compression/compaction.d.ts.map +0 -1
- package/dist/compression/compaction.js +0 -308
- package/dist/cost/effectCost.d.ts +0 -21
- package/dist/cost/effectCost.d.ts.map +0 -1
- package/dist/cost/effectCost.js +0 -26
- package/dist/harness/claudeCode/adapter.d.ts +0 -5
- package/dist/harness/claudeCode/adapter.d.ts.map +0 -1
- package/dist/harness/claudeCode/adapter.js +0 -101
- package/dist/harness/claudeCode/discovery.d.ts +0 -3
- package/dist/harness/claudeCode/discovery.d.ts.map +0 -1
- package/dist/harness/claudeCode/discovery.js +0 -11
- package/dist/harness/claudeCode/index.d.ts +0 -3
- package/dist/harness/claudeCode/index.d.ts.map +0 -1
- package/dist/harness/claudeCode/index.js +0 -9
- package/dist/harness/claudeCode/lifecycle.d.ts +0 -5
- package/dist/harness/claudeCode/lifecycle.d.ts.map +0 -1
- package/dist/harness/claudeCode/lifecycle.js +0 -204
- package/dist/harness/claudeCode/promptContext.d.ts +0 -3
- package/dist/harness/claudeCode/promptContext.d.ts.map +0 -1
- package/dist/harness/claudeCode/promptContext.js +0 -23
- package/dist/harness/claudeCode/sessionStart.d.ts +0 -3
- package/dist/harness/claudeCode/sessionStart.d.ts.map +0 -1
- package/dist/harness/claudeCode/sessionStart.js +0 -179
- package/dist/harness/claudeCode/shared.d.ts +0 -43
- package/dist/harness/claudeCode/shared.d.ts.map +0 -1
- package/dist/harness/claudeCode/shared.js +0 -268
- package/dist/harness/claudeCode/stopHook.d.ts +0 -3
- package/dist/harness/claudeCode/stopHook.d.ts.map +0 -1
- package/dist/harness/claudeCode/stopHook.js +0 -303
- package/dist/harness/claudeCode/stopHookState.d.ts.map +0 -1
- package/dist/harness/codex/adapter.d.ts +0 -3
- package/dist/harness/codex/adapter.d.ts.map +0 -1
- package/dist/harness/codex/adapter.js +0 -73
- package/dist/harness/codex/discovery.d.ts +0 -3
- package/dist/harness/codex/discovery.d.ts.map +0 -1
- package/dist/harness/codex/discovery.js +0 -11
- package/dist/harness/codex/hooks.d.ts +0 -4
- package/dist/harness/codex/hooks.d.ts.map +0 -1
- package/dist/harness/codex/hooks.js +0 -85
- package/dist/harness/codex/index.d.ts +0 -2
- package/dist/harness/codex/index.d.ts.map +0 -1
- package/dist/harness/codex/index.js +0 -5
- package/dist/harness/codex/install.d.ts +0 -4
- package/dist/harness/codex/install.d.ts.map +0 -1
- package/dist/harness/codex/install.js +0 -103
- package/dist/harness/codex/promptContext.d.ts +0 -3
- package/dist/harness/codex/promptContext.d.ts.map +0 -1
- package/dist/harness/codex/promptContext.js +0 -22
- package/dist/harness/codex/shared.d.ts +0 -15
- package/dist/harness/codex/shared.d.ts.map +0 -1
- package/dist/harness/codex/shared.js +0 -149
- package/dist/harness/cursor/adapter.d.ts +0 -3
- package/dist/harness/cursor/adapter.d.ts.map +0 -1
- package/dist/harness/cursor/adapter.js +0 -233
- package/dist/harness/cursor/discovery.d.ts +0 -3
- package/dist/harness/cursor/discovery.d.ts.map +0 -1
- package/dist/harness/cursor/discovery.js +0 -11
- package/dist/harness/cursor/hooks.d.ts +0 -8
- package/dist/harness/cursor/hooks.d.ts.map +0 -1
- package/dist/harness/cursor/hooks.js +0 -362
- package/dist/harness/cursor/index.d.ts +0 -2
- package/dist/harness/cursor/index.d.ts.map +0 -1
- package/dist/harness/cursor/index.js +0 -5
- package/dist/harness/cursor/promptContext.d.ts +0 -3
- package/dist/harness/cursor/promptContext.d.ts.map +0 -1
- package/dist/harness/cursor/promptContext.js +0 -22
- package/dist/harness/geminiCli/adapter.d.ts +0 -3
- package/dist/harness/geminiCli/adapter.d.ts.map +0 -1
- package/dist/harness/geminiCli/adapter.js +0 -190
- package/dist/harness/geminiCli/discovery.d.ts +0 -3
- package/dist/harness/geminiCli/discovery.d.ts.map +0 -1
- package/dist/harness/geminiCli/discovery.js +0 -11
- package/dist/harness/geminiCli/hooks.d.ts +0 -9
- package/dist/harness/geminiCli/hooks.d.ts.map +0 -1
- package/dist/harness/geminiCli/hooks.js +0 -401
- package/dist/harness/geminiCli/index.d.ts +0 -2
- package/dist/harness/geminiCli/index.d.ts.map +0 -1
- package/dist/harness/geminiCli/index.js +0 -5
- package/dist/harness/geminiCli/promptContext.d.ts +0 -3
- package/dist/harness/geminiCli/promptContext.d.ts.map +0 -1
- package/dist/harness/geminiCli/promptContext.js +0 -22
- package/dist/harness/githubCopilot/adapter.d.ts +0 -4
- package/dist/harness/githubCopilot/adapter.d.ts.map +0 -1
- package/dist/harness/githubCopilot/adapter.js +0 -215
- package/dist/harness/githubCopilot/discovery.d.ts +0 -3
- package/dist/harness/githubCopilot/discovery.d.ts.map +0 -1
- package/dist/harness/githubCopilot/discovery.js +0 -11
- package/dist/harness/githubCopilot/hooks.d.ts +0 -12
- package/dist/harness/githubCopilot/hooks.d.ts.map +0 -1
- package/dist/harness/githubCopilot/hooks.js +0 -305
- package/dist/harness/githubCopilot/index.d.ts +0 -3
- package/dist/harness/githubCopilot/index.d.ts.map +0 -1
- package/dist/harness/githubCopilot/index.js +0 -7
- package/dist/harness/githubCopilot/promptContext.d.ts +0 -3
- package/dist/harness/githubCopilot/promptContext.d.ts.map +0 -1
- package/dist/harness/githubCopilot/promptContext.js +0 -22
- package/dist/harness/ohMyPi/adapter.d.ts +0 -3
- package/dist/harness/ohMyPi/adapter.d.ts.map +0 -1
- package/dist/harness/ohMyPi/adapter.js +0 -190
- package/dist/harness/ohMyPi/discovery.d.ts +0 -3
- package/dist/harness/ohMyPi/discovery.d.ts.map +0 -1
- package/dist/harness/ohMyPi/discovery.js +0 -11
- package/dist/harness/ohMyPi/index.d.ts +0 -2
- package/dist/harness/ohMyPi/index.d.ts.map +0 -1
- package/dist/harness/ohMyPi/index.js +0 -5
- package/dist/harness/ohMyPi/promptContext.d.ts +0 -3
- package/dist/harness/ohMyPi/promptContext.d.ts.map +0 -1
- package/dist/harness/ohMyPi/promptContext.js +0 -22
- package/dist/harness/openclaw/adapter.d.ts +0 -3
- package/dist/harness/openclaw/adapter.d.ts.map +0 -1
- package/dist/harness/openclaw/adapter.js +0 -288
- package/dist/harness/openclaw/discovery.d.ts +0 -3
- package/dist/harness/openclaw/discovery.d.ts.map +0 -1
- package/dist/harness/openclaw/discovery.js +0 -11
- package/dist/harness/openclaw/index.d.ts +0 -2
- package/dist/harness/openclaw/index.d.ts.map +0 -1
- package/dist/harness/openclaw/index.js +0 -5
- package/dist/harness/openclaw/promptContext.d.ts +0 -3
- package/dist/harness/openclaw/promptContext.d.ts.map +0 -1
- package/dist/harness/openclaw/promptContext.js +0 -22
- package/dist/harness/opencode/adapter.d.ts +0 -3
- package/dist/harness/opencode/adapter.d.ts.map +0 -1
- package/dist/harness/opencode/adapter.js +0 -235
- package/dist/harness/opencode/discovery.d.ts +0 -3
- package/dist/harness/opencode/discovery.d.ts.map +0 -1
- package/dist/harness/opencode/discovery.js +0 -11
- package/dist/harness/opencode/hooks.d.ts +0 -11
- package/dist/harness/opencode/hooks.d.ts.map +0 -1
- package/dist/harness/opencode/hooks.js +0 -264
- package/dist/harness/opencode/index.d.ts +0 -2
- package/dist/harness/opencode/index.d.ts.map +0 -1
- package/dist/harness/opencode/index.js +0 -5
- package/dist/harness/opencode/promptContext.d.ts +0 -3
- package/dist/harness/opencode/promptContext.d.ts.map +0 -1
- package/dist/harness/opencode/promptContext.js +0 -22
- package/dist/harness/pi/adapter.d.ts +0 -4
- package/dist/harness/pi/adapter.d.ts.map +0 -1
- package/dist/harness/pi/adapter.js +0 -198
- package/dist/harness/pi/discovery.d.ts +0 -3
- package/dist/harness/pi/discovery.d.ts.map +0 -1
- package/dist/harness/pi/discovery.js +0 -11
- package/dist/harness/pi/index.d.ts +0 -2
- package/dist/harness/pi/index.d.ts.map +0 -1
- package/dist/harness/pi/index.js +0 -6
- package/dist/harness/pi/promptContext.d.ts +0 -3
- package/dist/harness/pi/promptContext.d.ts.map +0 -1
- package/dist/harness/pi/promptContext.js +0 -22
- package/dist/mcp/channels/allowlist.d.ts +0 -19
- package/dist/mcp/channels/allowlist.d.ts.map +0 -1
- package/dist/mcp/channels/allowlist.js +0 -140
- package/dist/mcp/channels/channelManager.d.ts +0 -64
- package/dist/mcp/channels/channelManager.d.ts.map +0 -1
- package/dist/mcp/channels/channelManager.js +0 -137
- package/dist/mcp/channels/inboundQueue.d.ts +0 -47
- package/dist/mcp/channels/inboundQueue.d.ts.map +0 -1
- package/dist/mcp/channels/inboundQueue.js +0 -96
- package/dist/mcp/channels/index.d.ts +0 -11
- package/dist/mcp/channels/index.d.ts.map +0 -1
- package/dist/mcp/channels/index.js +0 -33
- package/dist/mcp/channels/outbound.d.ts +0 -33
- package/dist/mcp/channels/outbound.d.ts.map +0 -1
- package/dist/mcp/channels/outbound.js +0 -94
- package/dist/mcp/channels/permissionRelay.d.ts +0 -62
- package/dist/mcp/channels/permissionRelay.d.ts.map +0 -1
- package/dist/mcp/channels/permissionRelay.js +0 -159
- package/dist/mcp/channels/types.d.ts +0 -135
- package/dist/mcp/channels/types.d.ts.map +0 -1
- package/dist/mcp/channels/types.js +0 -16
- package/dist/mcp/client/config.d.ts +0 -26
- package/dist/mcp/client/config.d.ts.map +0 -1
- package/dist/mcp/client/config.js +0 -140
- package/dist/mcp/client/executor.d.ts +0 -28
- package/dist/mcp/client/executor.d.ts.map +0 -1
- package/dist/mcp/client/executor.js +0 -58
- package/dist/mcp/client/index.d.ts +0 -10
- package/dist/mcp/client/index.d.ts.map +0 -1
- package/dist/mcp/client/index.js +0 -25
- package/dist/mcp/client/manager.d.ts +0 -72
- package/dist/mcp/client/manager.d.ts.map +0 -1
- package/dist/mcp/client/manager.js +0 -212
- package/dist/mcp/client/toolRegistry.d.ts +0 -48
- package/dist/mcp/client/toolRegistry.d.ts.map +0 -1
- package/dist/mcp/client/toolRegistry.js +0 -116
- package/dist/mcp/client/types.d.ts +0 -94
- package/dist/mcp/client/types.d.ts.map +0 -1
- package/dist/mcp/client/types.js +0 -13
- package/dist/mcp/transport/session.d.ts +0 -16
- package/dist/mcp/transport/session.d.ts.map +0 -1
- package/dist/mcp/transport/session.js +0 -76
- package/dist/mcp/transport/types.d.ts +0 -17
- package/dist/mcp/transport/types.d.ts.map +0 -1
- package/dist/mcp/transport/types.js +0 -5
- package/dist/mcp/transport/websocket.d.ts +0 -39
- package/dist/mcp/transport/websocket.d.ts.map +0 -1
- package/dist/mcp/transport/websocket.js +0 -269
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.setBabysitterSessionIdInEnvFile = exports.resolveSessionIdDetailed = exports.__resolveCurrentSessionIdFromEnvForTests = void 0;
|
|
37
|
-
exports.createClaudeCodeAdapter = createClaudeCodeAdapter;
|
|
38
|
-
const path = __importStar(require("node:path"));
|
|
39
|
-
const node_fs_1 = require("node:fs");
|
|
40
|
-
const promptContext_1 = require("./promptContext");
|
|
41
|
-
const config_1 = require("../../config");
|
|
42
|
-
const shared_1 = require("./shared");
|
|
43
|
-
Object.defineProperty(exports, "__resolveCurrentSessionIdFromEnvForTests", { enumerable: true, get: function () { return shared_1.__resolveCurrentSessionIdFromEnvForTests; } });
|
|
44
|
-
Object.defineProperty(exports, "resolveSessionIdDetailed", { enumerable: true, get: function () { return shared_1.resolveSessionIdDetailed; } });
|
|
45
|
-
Object.defineProperty(exports, "setBabysitterSessionIdInEnvFile", { enumerable: true, get: function () { return shared_1.setBabysitterSessionIdInEnvFile; } });
|
|
46
|
-
const lifecycle_1 = require("./lifecycle");
|
|
47
|
-
const stopHook_1 = require("./stopHook");
|
|
48
|
-
const sessionStart_1 = require("./sessionStart");
|
|
49
|
-
function createClaudeCodeAdapter() {
|
|
50
|
-
return {
|
|
51
|
-
name: "claude-code",
|
|
52
|
-
isActive() {
|
|
53
|
-
if (process.env.AGENT_SESSION_ID || process.env.BABYSITTER_SESSION_ID || process.env.CLAUDE_ENV_FILE)
|
|
54
|
-
return true;
|
|
55
|
-
const markerPath = (0, shared_1.getCurrentSessionIdFilePath)();
|
|
56
|
-
return !!(markerPath && (0, node_fs_1.existsSync)(markerPath));
|
|
57
|
-
},
|
|
58
|
-
autoResolvesSessionId() {
|
|
59
|
-
return true;
|
|
60
|
-
},
|
|
61
|
-
resolveSessionId(parsed) {
|
|
62
|
-
if (parsed.sessionId)
|
|
63
|
-
return parsed.sessionId;
|
|
64
|
-
return (0, shared_1.resolveCurrentSessionIdFromEnv)();
|
|
65
|
-
},
|
|
66
|
-
resolveStateDir(args) {
|
|
67
|
-
return (0, config_1.normalizeSessionStateDir)(args.stateDir ?? process.env.BABYSITTER_STATE_DIR);
|
|
68
|
-
},
|
|
69
|
-
resolvePluginRoot(args) {
|
|
70
|
-
const root = args.pluginRoot || process.env.CLAUDE_PLUGIN_ROOT;
|
|
71
|
-
return root ? path.resolve(root) : undefined;
|
|
72
|
-
},
|
|
73
|
-
bindSession(opts) {
|
|
74
|
-
return (0, lifecycle_1.bindClaudeCodeSession)(opts);
|
|
75
|
-
},
|
|
76
|
-
handleStopHook(args) {
|
|
77
|
-
return (0, stopHook_1.handleClaudeCodeStopHook)(args);
|
|
78
|
-
},
|
|
79
|
-
handleSessionStartHook(args) {
|
|
80
|
-
return (0, sessionStart_1.handleClaudeCodeSessionStartHook)(args);
|
|
81
|
-
},
|
|
82
|
-
findHookDispatcherPath(_startCwd) {
|
|
83
|
-
const claudePluginRoot = process.env.CLAUDE_PLUGIN_ROOT;
|
|
84
|
-
if (claudePluginRoot) {
|
|
85
|
-
const candidate = path.join(path.resolve(claudePluginRoot), "hooks", "hook-dispatcher.sh");
|
|
86
|
-
if ((0, node_fs_1.existsSync)(candidate))
|
|
87
|
-
return candidate;
|
|
88
|
-
}
|
|
89
|
-
return null;
|
|
90
|
-
},
|
|
91
|
-
installHarness(options) {
|
|
92
|
-
return (0, lifecycle_1.installClaudeCodeHarness)(options);
|
|
93
|
-
},
|
|
94
|
-
installPlugin(options) {
|
|
95
|
-
return (0, lifecycle_1.installClaudeCodePlugin)(options);
|
|
96
|
-
},
|
|
97
|
-
getPromptContext(opts) {
|
|
98
|
-
return (0, promptContext_1.createClaudeCodeContext)(opts);
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../../src/harness/claudeCode/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,0BAA0B,EAAE,WAMxC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CLAUDE_CODE_DISCOVERY_SPEC = void 0;
|
|
4
|
-
const types_1 = require("../types");
|
|
5
|
-
exports.CLAUDE_CODE_DISCOVERY_SPEC = {
|
|
6
|
-
name: "claude-code",
|
|
7
|
-
cli: "claude",
|
|
8
|
-
callerEnvVars: ["CLAUDE_ENV_FILE"],
|
|
9
|
-
capabilities: [types_1.HarnessCapability.SessionBinding, types_1.HarnessCapability.StopHook, types_1.HarnessCapability.Mcp, types_1.HarnessCapability.HeadlessPrompt],
|
|
10
|
-
configPaths: [".claude"],
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/harness/claudeCode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EACL,wCAAwC,EACxC,KAAK,wBAAwB,EAC7B,wBAAwB,EACxB,+BAA+B,GAChC,MAAM,WAAW,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setBabysitterSessionIdInEnvFile = exports.resolveSessionIdDetailed = exports.__resolveCurrentSessionIdFromEnvForTests = exports.createClaudeCodeAdapter = void 0;
|
|
4
|
-
var adapter_1 = require("./adapter");
|
|
5
|
-
Object.defineProperty(exports, "createClaudeCodeAdapter", { enumerable: true, get: function () { return adapter_1.createClaudeCodeAdapter; } });
|
|
6
|
-
var adapter_2 = require("./adapter");
|
|
7
|
-
Object.defineProperty(exports, "__resolveCurrentSessionIdFromEnvForTests", { enumerable: true, get: function () { return adapter_2.__resolveCurrentSessionIdFromEnvForTests; } });
|
|
8
|
-
Object.defineProperty(exports, "resolveSessionIdDetailed", { enumerable: true, get: function () { return adapter_2.resolveSessionIdDetailed; } });
|
|
9
|
-
Object.defineProperty(exports, "setBabysitterSessionIdInEnvFile", { enumerable: true, get: function () { return adapter_2.setBabysitterSessionIdInEnvFile; } });
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { HarnessInstallOptions, HarnessInstallResult, SessionBindOptions, SessionBindResult } from "../types";
|
|
2
|
-
export declare function bindClaudeCodeSession(opts: SessionBindOptions): Promise<SessionBindResult>;
|
|
3
|
-
export declare function installClaudeCodeHarness(options: HarnessInstallOptions): Promise<HarnessInstallResult>;
|
|
4
|
-
export declare function installClaudeCodePlugin(options: HarnessInstallOptions): Promise<HarnessInstallResult>;
|
|
5
|
-
//# sourceMappingURL=lifecycle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/harness/claudeCode/lifecycle.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAIlB,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,iBAAiB,CAAC,CA8F5B;AAED,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,oBAAoB,CAAC,CAQ/B;AAED,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,oBAAoB,CAAC,CAqE/B"}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.bindClaudeCodeSession = bindClaudeCodeSession;
|
|
37
|
-
exports.installClaudeCodeHarness = installClaudeCodeHarness;
|
|
38
|
-
exports.installClaudeCodePlugin = installClaudeCodePlugin;
|
|
39
|
-
const path = __importStar(require("node:path"));
|
|
40
|
-
const journal_1 = require("../../storage/journal");
|
|
41
|
-
const parse_1 = require("../../session/parse");
|
|
42
|
-
const write_1 = require("../../session/write");
|
|
43
|
-
const installSupport_1 = require("../installSupport");
|
|
44
|
-
const config_1 = require("../../config");
|
|
45
|
-
const exceptions_1 = require("../../runtime/exceptions");
|
|
46
|
-
async function bindClaudeCodeSession(opts) {
|
|
47
|
-
const { sessionId, runId, runsDir, maxIterations = 256, prompt, verbose } = opts;
|
|
48
|
-
const resolvedRunDir = path.resolve(opts.runDir);
|
|
49
|
-
const stateDir = (0, config_1.normalizeSessionStateDir)(opts.stateDir ?? process.env.BABYSITTER_STATE_DIR);
|
|
50
|
-
const filePath = (0, parse_1.getSessionFilePath)(stateDir, sessionId);
|
|
51
|
-
if (await (0, parse_1.sessionFileExists)(filePath)) {
|
|
52
|
-
try {
|
|
53
|
-
const existing = await (0, parse_1.readSessionFile)(filePath);
|
|
54
|
-
if (existing.state.runId && existing.state.runId !== runId) {
|
|
55
|
-
const oldRunId = existing.state.runId;
|
|
56
|
-
let isTerminal = false;
|
|
57
|
-
if (existing.state.runDir) {
|
|
58
|
-
try {
|
|
59
|
-
const journal = await (0, journal_1.loadJournal)(existing.state.runDir);
|
|
60
|
-
const hasCompleted = journal.some((e) => e.type === "RUN_COMPLETED");
|
|
61
|
-
const hasFailed = journal.some((e) => e.type === "RUN_FAILED");
|
|
62
|
-
isTerminal = hasCompleted || hasFailed;
|
|
63
|
-
}
|
|
64
|
-
catch {
|
|
65
|
-
// Safe default
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
else if (runsDir) {
|
|
69
|
-
try {
|
|
70
|
-
const oldRunDir = path.join(runsDir, oldRunId);
|
|
71
|
-
const journal = await (0, journal_1.loadJournal)(oldRunDir);
|
|
72
|
-
const hasCompleted = journal.some((e) => e.type === "RUN_COMPLETED");
|
|
73
|
-
const hasFailed = journal.some((e) => e.type === "RUN_FAILED");
|
|
74
|
-
isTerminal = hasCompleted || hasFailed;
|
|
75
|
-
}
|
|
76
|
-
catch {
|
|
77
|
-
// Safe default
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (isTerminal) {
|
|
81
|
-
if (verbose) {
|
|
82
|
-
process.stderr.write(`[run:create] Auto-releasing stale session ${sessionId} from terminal run ${oldRunId}\n`);
|
|
83
|
-
}
|
|
84
|
-
await (0, write_1.deleteSessionFile)(filePath);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
return {
|
|
88
|
-
harness: "claude-code",
|
|
89
|
-
sessionId,
|
|
90
|
-
stateFile: filePath,
|
|
91
|
-
error: `Session bound to active run: ${oldRunId}. Complete or fail that run first, or manually remove the session state file at ${filePath}`,
|
|
92
|
-
fatal: true,
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
await (0, write_1.updateSessionState)(filePath, { runId, runDir: resolvedRunDir, active: true }, {
|
|
98
|
-
state: existing.state,
|
|
99
|
-
prompt: existing.prompt,
|
|
100
|
-
});
|
|
101
|
-
if (verbose) {
|
|
102
|
-
process.stderr.write(`[run:create] Updated existing session ${sessionId} with run ${runId}\n`);
|
|
103
|
-
}
|
|
104
|
-
return { harness: "claude-code", sessionId, stateFile: filePath };
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
catch {
|
|
108
|
-
// Overwrite corrupted state file
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const nowTs = (0, write_1.getCurrentTimestamp)();
|
|
112
|
-
const state = {
|
|
113
|
-
active: true,
|
|
114
|
-
iteration: 1,
|
|
115
|
-
maxIterations,
|
|
116
|
-
runId,
|
|
117
|
-
runDir: resolvedRunDir,
|
|
118
|
-
runIds: [],
|
|
119
|
-
startedAt: nowTs,
|
|
120
|
-
lastIterationAt: nowTs,
|
|
121
|
-
iterationTimes: [],
|
|
122
|
-
};
|
|
123
|
-
try {
|
|
124
|
-
await (0, write_1.writeSessionFile)(filePath, state, prompt);
|
|
125
|
-
}
|
|
126
|
-
catch (e) {
|
|
127
|
-
return {
|
|
128
|
-
harness: "claude-code",
|
|
129
|
-
sessionId,
|
|
130
|
-
error: `Failed to write session state: ${e instanceof Error ? e.message : String(e)}`,
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
if (verbose) {
|
|
134
|
-
process.stderr.write(`[run:create] Session ${sessionId} initialized and bound to run ${runId}\n`);
|
|
135
|
-
}
|
|
136
|
-
return { harness: "claude-code", sessionId, stateFile: filePath };
|
|
137
|
-
}
|
|
138
|
-
async function installClaudeCodeHarness(options) {
|
|
139
|
-
return (0, installSupport_1.installCliViaNpm)({
|
|
140
|
-
harness: "claude-code",
|
|
141
|
-
cliCommand: "claude",
|
|
142
|
-
packageName: "@anthropic-ai/claude-code",
|
|
143
|
-
summary: "Install the Claude Code CLI globally via npm.",
|
|
144
|
-
options,
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
async function installClaudeCodePlugin(options) {
|
|
148
|
-
if ((0, installSupport_1.isClaudePluginInstalled)()) {
|
|
149
|
-
return {
|
|
150
|
-
harness: "claude-code",
|
|
151
|
-
warning: "The Claude Code Babysitter plugin already appears in installed_plugins.json; skipping reinstall.",
|
|
152
|
-
location: (0, installSupport_1.getClaudeInstalledPluginsPath)(),
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
if (options.dryRun) {
|
|
156
|
-
return {
|
|
157
|
-
harness: "claude-code",
|
|
158
|
-
dryRun: true,
|
|
159
|
-
summary: "Add the published Babysitter Claude Code plugin to the marketplace and install it at user scope.",
|
|
160
|
-
command: [
|
|
161
|
-
(0, installSupport_1.renderCommand)("claude", ["plugin", "marketplace", "add", "a5c-ai/babysitter"]),
|
|
162
|
-
(0, installSupport_1.renderCommand)("claude", ["plugin", "install", "--scope", "user", "babysitter@a5c.ai"]),
|
|
163
|
-
].join(" && "),
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
const marketplaceArgs = ["plugin", "marketplace", "add", "a5c-ai/babysitter"];
|
|
167
|
-
const marketplaceResult = await (0, installSupport_1.execFilePromise)("claude", marketplaceArgs);
|
|
168
|
-
if (marketplaceResult.exitCode !== 0) {
|
|
169
|
-
throw new exceptions_1.BabysitterRuntimeError("ClaudePluginMarketplaceAddFailed", "claude plugin marketplace add a5c-ai/babysitter failed", {
|
|
170
|
-
category: exceptions_1.ErrorCategory.External,
|
|
171
|
-
details: {
|
|
172
|
-
stdout: marketplaceResult.stdout,
|
|
173
|
-
stderr: marketplaceResult.stderr,
|
|
174
|
-
exitCode: marketplaceResult.exitCode,
|
|
175
|
-
},
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
const installArgs = ["plugin", "install", "--scope", "user", "babysitter@a5c.ai"];
|
|
179
|
-
const installResult = await (0, installSupport_1.execFilePromise)("claude", installArgs);
|
|
180
|
-
if (installResult.exitCode !== 0) {
|
|
181
|
-
throw new exceptions_1.BabysitterRuntimeError("ClaudePluginInstallFailed", `${(0, installSupport_1.renderCommand)("claude", installArgs)} failed`, {
|
|
182
|
-
category: exceptions_1.ErrorCategory.External,
|
|
183
|
-
details: {
|
|
184
|
-
stdout: installResult.stdout,
|
|
185
|
-
stderr: installResult.stderr,
|
|
186
|
-
exitCode: installResult.exitCode,
|
|
187
|
-
},
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
return {
|
|
191
|
-
harness: "claude-code",
|
|
192
|
-
summary: "Added the published Babysitter Claude Code plugin to the marketplace and installed it at user scope.",
|
|
193
|
-
command: [
|
|
194
|
-
(0, installSupport_1.renderCommand)("claude", marketplaceArgs),
|
|
195
|
-
(0, installSupport_1.renderCommand)("claude", installArgs),
|
|
196
|
-
].join(" && "),
|
|
197
|
-
output: [
|
|
198
|
-
marketplaceResult.stdout.trim(),
|
|
199
|
-
marketplaceResult.stderr.trim(),
|
|
200
|
-
installResult.stdout.trim(),
|
|
201
|
-
installResult.stderr.trim(),
|
|
202
|
-
].filter(Boolean).join("\n"),
|
|
203
|
-
};
|
|
204
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"promptContext.d.ts","sourceRoot":"","sources":["../../../src/harness/claudeCode/promptContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMzD,wBAAgB,uBAAuB,CACrC,SAAS,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GACjC,aAAa,CAkBf"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createClaudeCodeContext = createClaudeCodeContext;
|
|
4
|
-
const contextShared_1 = require("../../prompts/contextShared");
|
|
5
|
-
function createClaudeCodeContext(overrides) {
|
|
6
|
-
return (0, contextShared_1.createPromptContext)({
|
|
7
|
-
harness: 'claude-code',
|
|
8
|
-
harnessLabel: 'Claude Code',
|
|
9
|
-
capabilities: ['hooks', 'stop-hook', 'ask-user-question', 'task-tool', 'breakpoint-routing'],
|
|
10
|
-
pluginRootVar: '${CLAUDE_PLUGIN_ROOT}',
|
|
11
|
-
loopControlTerm: 'stop-hook',
|
|
12
|
-
sessionBindingFlags: '',
|
|
13
|
-
hookDriven: true,
|
|
14
|
-
interactiveToolName: 'AskUserQuestion tool',
|
|
15
|
-
sessionEnvVars: 'PID-scoped session marker (authoritative); CLAUDE_ENV_FILE and AGENT_SESSION_ID/BABYSITTER_SESSION_ID are fallbacks',
|
|
16
|
-
resumeFlags: '',
|
|
17
|
-
cliSetupSnippet: (0, contextShared_1.createClaudeCodeCliSetupSnippet)(),
|
|
18
|
-
sdkVersionExpr: '$SDK_VERSION',
|
|
19
|
-
iterateFlags: '',
|
|
20
|
-
hasIntentFidelityChecks: false,
|
|
21
|
-
hasNonNegotiables: false,
|
|
22
|
-
}, overrides);
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sessionStart.d.ts","sourceRoot":"","sources":["../../../src/harness/claudeCode/sessionStart.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAUhD,wBAAsB,gCAAgC,CACpD,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,MAAM,CAAC,CAiJjB"}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.handleClaudeCodeSessionStartHook = handleClaudeCodeSessionStartHook;
|
|
37
|
-
const path = __importStar(require("node:path"));
|
|
38
|
-
const node_fs_1 = require("node:fs");
|
|
39
|
-
const parse_1 = require("../../session/parse");
|
|
40
|
-
const write_1 = require("../../session/write");
|
|
41
|
-
const config_1 = require("../../config");
|
|
42
|
-
const config_loader_1 = require("../../compression/config-loader");
|
|
43
|
-
const library_cache_1 = require("../../compression/library-cache");
|
|
44
|
-
const active_1 = require("../../processLibrary/active");
|
|
45
|
-
const shared_1 = require("./shared");
|
|
46
|
-
async function handleClaudeCodeSessionStartHook(args) {
|
|
47
|
-
const { verbose } = args;
|
|
48
|
-
if (args.pluginRoot && !process.env.CLAUDE_PLUGIN_ROOT) {
|
|
49
|
-
process.env.CLAUDE_PLUGIN_ROOT = path.resolve(args.pluginRoot);
|
|
50
|
-
}
|
|
51
|
-
if (args.stateDir && !process.env.BABYSITTER_STATE_DIR) {
|
|
52
|
-
process.env.BABYSITTER_STATE_DIR = (0, config_1.normalizeSessionStateDir)(args.stateDir);
|
|
53
|
-
}
|
|
54
|
-
let rawInput;
|
|
55
|
-
try {
|
|
56
|
-
rawInput = await (0, shared_1.readStdin)();
|
|
57
|
-
}
|
|
58
|
-
catch {
|
|
59
|
-
process.stdout.write("{}\n");
|
|
60
|
-
return 0;
|
|
61
|
-
}
|
|
62
|
-
finally {
|
|
63
|
-
if (typeof process.stdin.unref === "function") {
|
|
64
|
-
process.stdin.unref();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
const hookInput = (0, shared_1.parseHookInput)(rawInput);
|
|
68
|
-
const sessionId = (0, shared_1.safeStr)(hookInput, "session_id");
|
|
69
|
-
if (!sessionId) {
|
|
70
|
-
process.stdout.write("{}\n");
|
|
71
|
-
return 0;
|
|
72
|
-
}
|
|
73
|
-
let markerPersisted = false;
|
|
74
|
-
let envFilePersisted = false;
|
|
75
|
-
const sessionIdFile = (0, shared_1.getCurrentSessionIdFilePath)();
|
|
76
|
-
if (sessionIdFile) {
|
|
77
|
-
try {
|
|
78
|
-
(0, node_fs_1.mkdirSync)(path.dirname(sessionIdFile), { recursive: true });
|
|
79
|
-
(0, node_fs_1.writeFileSync)(sessionIdFile, sessionId + "\n");
|
|
80
|
-
markerPersisted = true;
|
|
81
|
-
}
|
|
82
|
-
catch {
|
|
83
|
-
process.stderr.write("[hook:run session-start] Failed to write session ID marker file\n");
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const envFile = process.env.CLAUDE_ENV_FILE;
|
|
87
|
-
if (envFile) {
|
|
88
|
-
try {
|
|
89
|
-
(0, shared_1.setBabysitterSessionIdInEnvFile)(envFile, sessionId);
|
|
90
|
-
envFilePersisted = true;
|
|
91
|
-
}
|
|
92
|
-
catch {
|
|
93
|
-
// Non-fatal
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
const pluginRoot = args.pluginRoot
|
|
97
|
-
|| process.env.CLAUDE_PLUGIN_ROOT
|
|
98
|
-
|| process.env.AGENT_PLUGIN_ROOT
|
|
99
|
-
|| "";
|
|
100
|
-
const _resolvedPluginRoot = pluginRoot ? path.resolve(pluginRoot) : "";
|
|
101
|
-
const stateDir = (0, config_1.normalizeSessionStateDir)(args.stateDir ?? process.env.BABYSITTER_STATE_DIR);
|
|
102
|
-
let stateFilePersisted = false;
|
|
103
|
-
if (stateDir) {
|
|
104
|
-
const filePath = (0, parse_1.getSessionFilePath)(stateDir, sessionId);
|
|
105
|
-
try {
|
|
106
|
-
if (!(await (0, parse_1.sessionFileExists)(filePath))) {
|
|
107
|
-
const nowTs = (0, write_1.getCurrentTimestamp)();
|
|
108
|
-
const state = {
|
|
109
|
-
active: true,
|
|
110
|
-
iteration: 1,
|
|
111
|
-
maxIterations: 256,
|
|
112
|
-
runId: "",
|
|
113
|
-
runIds: [],
|
|
114
|
-
startedAt: nowTs,
|
|
115
|
-
lastIterationAt: nowTs,
|
|
116
|
-
iterationTimes: [],
|
|
117
|
-
};
|
|
118
|
-
await (0, write_1.writeSessionFile)(filePath, state, "");
|
|
119
|
-
stateFilePersisted = true;
|
|
120
|
-
if (verbose) {
|
|
121
|
-
process.stderr.write(`[hook:run session-start] Created session state: ${filePath}\n`);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
stateFilePersisted = true;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
catch {
|
|
129
|
-
process.stderr.write(`[hook:run session-start] Failed to create session state in ${stateDir}\n`);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
process.stderr.write("[hook:run session-start] Cannot resolve state directory — session state will not be persisted\n");
|
|
134
|
-
}
|
|
135
|
-
try {
|
|
136
|
-
const compressionCfg = (0, config_loader_1.loadCompressionConfig)(process.cwd());
|
|
137
|
-
const cacheLayer = compressionCfg.layers.processLibraryCache;
|
|
138
|
-
if (compressionCfg.enabled && cacheLayer.enabled) {
|
|
139
|
-
const libraryRoot = await (0, active_1.getActiveProcessLibraryPath)();
|
|
140
|
-
if (libraryRoot) {
|
|
141
|
-
const cacheDir = path.join(process.cwd(), ".a5c", "cache", "compression");
|
|
142
|
-
const libraryFiles = (0, library_cache_1.findLibraryFiles)(libraryRoot);
|
|
143
|
-
for (const file of libraryFiles) {
|
|
144
|
-
(0, library_cache_1.getOrCompressFile)(file, cacheLayer.targetReduction, cacheLayer.ttlHours, cacheDir);
|
|
145
|
-
}
|
|
146
|
-
if (verbose) {
|
|
147
|
-
process.stderr.write(`[hook:run session-start] Pre-warmed processLibraryCache for ${libraryFiles.length} file(s)\n`);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
catch {
|
|
153
|
-
// Best-effort
|
|
154
|
-
}
|
|
155
|
-
if (verbose) {
|
|
156
|
-
process.stderr.write(`Babysitter session started: ${sessionId}\n`);
|
|
157
|
-
}
|
|
158
|
-
if (!markerPersisted && !envFilePersisted && !stateFilePersisted) {
|
|
159
|
-
process.stderr.write("[hook:run session-start] Session persistence failed — no marker, env file, or state file was written\n");
|
|
160
|
-
process.stdout.write("{}\n");
|
|
161
|
-
return 1;
|
|
162
|
-
}
|
|
163
|
-
try {
|
|
164
|
-
const { runSessionCleanup } = await Promise.resolve().then(() => __importStar(require("../../session/cleanup")));
|
|
165
|
-
void runSessionCleanup({ harness: "claude-code", dryRun: false }).catch(() => {
|
|
166
|
-
// non-fatal
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
catch {
|
|
170
|
-
// non-fatal
|
|
171
|
-
}
|
|
172
|
-
process.stdout.write(JSON.stringify({
|
|
173
|
-
hookSpecificOutput: {
|
|
174
|
-
hookEventName: "SessionStart",
|
|
175
|
-
additionalContext: `Your Claude Code session ID is: ${sessionId}`,
|
|
176
|
-
},
|
|
177
|
-
}) + "\n");
|
|
178
|
-
return 0;
|
|
179
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { EffectRecord } from "../../runtime/types";
|
|
2
|
-
export interface HookLogger {
|
|
3
|
-
info(message: string): void;
|
|
4
|
-
warn(message: string): void;
|
|
5
|
-
error(message: string): void;
|
|
6
|
-
setContext(key: string, value: string): void;
|
|
7
|
-
}
|
|
8
|
-
export declare function createHookLogger(hookName: string): HookLogger;
|
|
9
|
-
export declare function appendStopHookEvent(runDir: string, data: {
|
|
10
|
-
sessionId: string;
|
|
11
|
-
iteration: number;
|
|
12
|
-
decision: "approve" | "block";
|
|
13
|
-
reason: string;
|
|
14
|
-
runState: string;
|
|
15
|
-
pendingKinds: string;
|
|
16
|
-
hasPromise: boolean;
|
|
17
|
-
}): Promise<void>;
|
|
18
|
-
export declare function readStdin(): Promise<string>;
|
|
19
|
-
export interface ClaudeCodeStopHookInput {
|
|
20
|
-
session_id?: string;
|
|
21
|
-
transcript_path?: string;
|
|
22
|
-
last_assistant_message?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ClaudeCodeSessionStartHookInput {
|
|
25
|
-
session_id?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare function parseHookInput(raw: string): Record<string, unknown>;
|
|
28
|
-
export declare function safeStr(obj: Record<string, unknown>, key: string): string;
|
|
29
|
-
export declare function countPendingByKind(records: EffectRecord[]): Record<string, number>;
|
|
30
|
-
export declare function isOnlyBreakpoints(pendingByKind: Record<string, number>): boolean;
|
|
31
|
-
export declare function cleanupSession(filePath: string, deleteSessionFile: (filePath: string) => Promise<unknown>): Promise<void>;
|
|
32
|
-
export declare function getCurrentSessionIdFilePath(): string | undefined;
|
|
33
|
-
export declare function resolveCurrentSessionIdFromEnv(): string | undefined;
|
|
34
|
-
export interface SessionResolutionDetails {
|
|
35
|
-
sessionId?: string;
|
|
36
|
-
resolvedFrom: "pid-marker" | "env-file" | "env-var" | "explicit" | "none";
|
|
37
|
-
ancestorPid: number | null;
|
|
38
|
-
ancestorAlive: boolean | null;
|
|
39
|
-
}
|
|
40
|
-
export declare function resolveSessionIdDetailed(explicit?: string): SessionResolutionDetails;
|
|
41
|
-
export declare const __resolveCurrentSessionIdFromEnvForTests: typeof resolveCurrentSessionIdFromEnv;
|
|
42
|
-
export declare function setBabysitterSessionIdInEnvFile(envFile: string, sessionId: string): void;
|
|
43
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/harness/claudeCode/shared.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAWxD,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9C;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAiC7D;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE;IACJ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB,GACA,OAAO,CAAC,IAAI,CAAC,CAaf;AAED,wBAAgB,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAU3C;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,+BAA+B;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAYnE;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGzE;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASlF;AAED,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAGhF;AAED,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,GACxD,OAAO,CAAC,IAAI,CAAC,CAMf;AAOD,wBAAgB,2BAA2B,IAAI,MAAM,GAAG,SAAS,CAOhE;AAED,wBAAgB,8BAA8B,IAAI,MAAM,GAAG,SAAS,CAEnE;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;IAC1E,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;CAC/B;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,wBAAwB,CA8GpF;AAED,eAAO,MAAM,wCAAwC,uCAAiC,CAAC;AAEvF,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,IAAI,CAEN"}
|