@a5c-ai/agent-platform 5.0.1-staging.b436b3b3e611
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 +53 -0
- package/dist/anycli/cache.d.ts +45 -0
- package/dist/anycli/cache.d.ts.map +1 -0
- package/dist/anycli/cache.js +118 -0
- package/dist/anycli/index.d.ts +10 -0
- package/dist/anycli/index.d.ts.map +1 -0
- package/dist/anycli/index.js +25 -0
- package/dist/anycli/types.d.ts +32 -0
- package/dist/anycli/types.d.ts.map +1 -0
- package/dist/anycli/types.js +9 -0
- package/dist/api/breakpoints.d.ts +93 -0
- package/dist/api/breakpoints.d.ts.map +1 -0
- package/dist/api/breakpoints.js +334 -0
- package/dist/api/effects.d.ts +14 -0
- package/dist/api/effects.d.ts.map +1 -0
- package/dist/api/effects.js +306 -0
- package/dist/api/effectsTypes.d.ts +79 -0
- package/dist/api/effectsTypes.d.ts.map +1 -0
- package/dist/api/effectsTypes.js +6 -0
- package/dist/api/eventStream.d.ts +34 -0
- package/dist/api/eventStream.d.ts.map +1 -0
- package/dist/api/eventStream.js +126 -0
- package/dist/api/index.d.ts +10 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +27 -0
- package/dist/api/runs.d.ts +85 -0
- package/dist/api/runs.d.ts.map +1 -0
- package/dist/api/runs.js +247 -0
- package/dist/api/utils.d.ts +28 -0
- package/dist/api/utils.d.ts.map +1 -0
- package/dist/api/utils.js +74 -0
- package/dist/breakpoints/approvalChains.d.ts +68 -0
- package/dist/breakpoints/approvalChains.d.ts.map +1 -0
- package/dist/breakpoints/approvalChains.js +111 -0
- package/dist/breakpoints/delegation.d.ts +42 -0
- package/dist/breakpoints/delegation.d.ts.map +1 -0
- package/dist/breakpoints/delegation.js +199 -0
- package/dist/breakpoints/delegationTypes.d.ts +46 -0
- package/dist/breakpoints/delegationTypes.d.ts.map +1 -0
- package/dist/breakpoints/delegationTypes.js +10 -0
- package/dist/breakpoints/postures.d.ts +28 -0
- package/dist/breakpoints/postures.d.ts.map +1 -0
- package/dist/breakpoints/postures.js +100 -0
- package/dist/cli/amuxEventsFormatter.d.ts +26 -0
- package/dist/cli/amuxEventsFormatter.d.ts.map +1 -0
- package/dist/cli/amuxEventsFormatter.js +86 -0
- package/dist/cli/args/argFlags.d.ts +6 -0
- package/dist/cli/args/argFlags.d.ts.map +1 -0
- package/dist/cli/args/argFlags.js +72 -0
- package/dist/cli/args/argPositionals.d.ts +3 -0
- package/dist/cli/args/argPositionals.d.ts.map +1 -0
- package/dist/cli/args/argPositionals.js +18 -0
- package/dist/cli/args/index.d.ts +4 -0
- package/dist/cli/args/index.d.ts.map +1 -0
- package/dist/cli/args/index.js +75 -0
- package/dist/cli/args/types.d.ts +13 -0
- package/dist/cli/args/types.d.ts.map +1 -0
- package/dist/cli/args/types.js +2 -0
- package/dist/cli/commands/daemon.d.ts +31 -0
- package/dist/cli/commands/daemon.d.ts.map +1 -0
- package/dist/cli/commands/daemon.js +156 -0
- package/dist/cli/commands/harness/createRun.d.ts +3 -0
- package/dist/cli/commands/harness/createRun.d.ts.map +1 -0
- package/dist/cli/commands/harness/createRun.js +8 -0
- package/dist/cli/commands/harness/resumeRun.d.ts +20 -0
- package/dist/cli/commands/harness/resumeRun.d.ts.map +1 -0
- package/dist/cli/commands/harness/resumeRun.js +341 -0
- package/dist/cli/commands/jsonlInteractive.d.ts +35 -0
- package/dist/cli/commands/jsonlInteractive.d.ts.map +1 -0
- package/dist/cli/commands/jsonlInteractive.js +302 -0
- package/dist/cli/commands/mcpServe.d.ts +18 -0
- package/dist/cli/commands/mcpServe.d.ts.map +1 -0
- package/dist/cli/commands/mcpServe.js +59 -0
- package/dist/cli/commands/session/history.d.ts +14 -0
- package/dist/cli/commands/session/history.d.ts.map +1 -0
- package/dist/cli/commands/session/history.js +100 -0
- package/dist/cli/commands/tui.d.ts +23 -0
- package/dist/cli/commands/tui.d.ts.map +1 -0
- package/dist/cli/commands/tui.js +183 -0
- package/dist/cli/dispatch.d.ts +4 -0
- package/dist/cli/dispatch.d.ts.map +1 -0
- package/dist/cli/dispatch.js +332 -0
- package/dist/cli/main.d.ts +7 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +41 -0
- package/dist/cli/program.d.ts +7 -0
- package/dist/cli/program.d.ts.map +1 -0
- package/dist/cli/program.js +8 -0
- package/dist/cli/ui.d.ts +9 -0
- package/dist/cli/ui.d.ts.map +1 -0
- package/dist/cli/ui.js +125 -0
- package/dist/compression/compaction.d.ts +82 -0
- package/dist/compression/compaction.d.ts.map +1 -0
- package/dist/compression/compaction.js +310 -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/effectCost.d.ts +23 -0
- package/dist/cost/effectCost.d.ts.map +1 -0
- package/dist/cost/effectCost.js +26 -0
- package/dist/cost/index.d.ts +7 -0
- package/dist/cost/index.d.ts.map +1 -0
- package/dist/cost/index.js +28 -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/types.d.ts +164 -0
- package/dist/cost/types.d.ts.map +1 -0
- package/dist/cost/types.js +228 -0
- package/dist/daemon/automationExecutor.d.ts +16 -0
- package/dist/daemon/automationExecutor.d.ts.map +1 -0
- package/dist/daemon/automationExecutor.js +222 -0
- package/dist/daemon/config.d.ts +8 -0
- package/dist/daemon/config.d.ts.map +1 -0
- package/dist/daemon/config.js +209 -0
- package/dist/daemon/daemonLog.d.ts +13 -0
- package/dist/daemon/daemonLog.d.ts.map +1 -0
- package/dist/daemon/daemonLog.js +64 -0
- package/dist/daemon/fileWatcher.d.ts +9 -0
- package/dist/daemon/fileWatcher.d.ts.map +1 -0
- package/dist/daemon/fileWatcher.js +141 -0
- package/dist/daemon/index.d.ts +7 -0
- package/dist/daemon/index.d.ts.map +1 -0
- package/dist/daemon/index.js +21 -0
- package/dist/daemon/lifecycle.d.ts +12 -0
- package/dist/daemon/lifecycle.d.ts.map +1 -0
- package/dist/daemon/lifecycle.js +257 -0
- package/dist/daemon/loop.d.ts +21 -0
- package/dist/daemon/loop.d.ts.map +1 -0
- package/dist/daemon/loop.js +196 -0
- package/dist/daemon/timerScheduler.d.ts +13 -0
- package/dist/daemon/timerScheduler.d.ts.map +1 -0
- package/dist/daemon/timerScheduler.js +122 -0
- package/dist/daemon/types.d.ts +93 -0
- package/dist/daemon/types.d.ts.map +1 -0
- package/dist/daemon/types.js +25 -0
- package/dist/daemon/webhookListener.d.ts +6 -0
- package/dist/daemon/webhookListener.d.ts.map +1 -0
- package/dist/daemon/webhookListener.js +110 -0
- package/dist/governance/authority.d.ts +68 -0
- package/dist/governance/authority.d.ts.map +1 -0
- package/dist/governance/authority.js +136 -0
- package/dist/governance/bridge.d.ts +17 -0
- package/dist/governance/bridge.d.ts.map +1 -0
- package/dist/governance/bridge.js +46 -0
- package/dist/governance/builtins.d.ts +25 -0
- package/dist/governance/builtins.d.ts.map +1 -0
- package/dist/governance/builtins.js +67 -0
- package/dist/governance/categories.d.ts +58 -0
- package/dist/governance/categories.d.ts.map +1 -0
- package/dist/governance/categories.js +120 -0
- package/dist/governance/decisionTrail.d.ts +60 -0
- package/dist/governance/decisionTrail.d.ts.map +1 -0
- package/dist/governance/decisionTrail.js +68 -0
- package/dist/governance/engine.d.ts +20 -0
- package/dist/governance/engine.d.ts.map +1 -0
- package/dist/governance/engine.js +124 -0
- package/dist/governance/index.d.ts +20 -0
- package/dist/governance/index.d.ts.map +1 -0
- package/dist/governance/index.js +75 -0
- package/dist/governance/logging.d.ts +18 -0
- package/dist/governance/logging.d.ts.map +1 -0
- package/dist/governance/logging.js +83 -0
- package/dist/governance/mandate.d.ts +83 -0
- package/dist/governance/mandate.d.ts.map +1 -0
- package/dist/governance/mandate.js +180 -0
- package/dist/governance/permissionEvents.d.ts +51 -0
- package/dist/governance/permissionEvents.d.ts.map +1 -0
- package/dist/governance/permissionEvents.js +52 -0
- package/dist/governance/permissionPropagation.d.ts +18 -0
- package/dist/governance/permissionPropagation.d.ts.map +1 -0
- package/dist/governance/permissionPropagation.js +58 -0
- package/dist/governance/postureBridge.d.ts +17 -0
- package/dist/governance/postureBridge.d.ts.map +1 -0
- package/dist/governance/postureBridge.js +117 -0
- package/dist/governance/sandboxBridge.d.ts +49 -0
- package/dist/governance/sandboxBridge.d.ts.map +1 -0
- package/dist/governance/sandboxBridge.js +77 -0
- package/dist/governance/sandboxPolicy.d.ts +51 -0
- package/dist/governance/sandboxPolicy.d.ts.map +1 -0
- package/dist/governance/sandboxPolicy.js +177 -0
- package/dist/governance/types.d.ts +3 -0
- package/dist/governance/types.d.ts.map +1 -0
- package/dist/governance/types.js +5 -0
- package/dist/harness/amux/amuxBridge.d.ts +71 -0
- package/dist/harness/amux/amuxBridge.d.ts.map +1 -0
- package/dist/harness/amux/amuxBridge.js +117 -0
- package/dist/harness/amux/amuxClientFactory.d.ts +29 -0
- package/dist/harness/amux/amuxClientFactory.d.ts.map +1 -0
- package/dist/harness/amux/amuxClientFactory.js +90 -0
- package/dist/harness/amux/amuxEventEmitter.d.ts +51 -0
- package/dist/harness/amux/amuxEventEmitter.d.ts.map +1 -0
- package/dist/harness/amux/amuxEventEmitter.js +143 -0
- package/dist/harness/amux/amuxEventMapper.d.ts +58 -0
- package/dist/harness/amux/amuxEventMapper.d.ts.map +1 -0
- package/dist/harness/amux/amuxEventMapper.js +92 -0
- package/dist/harness/amux/amuxHarnessMap.d.ts +25 -0
- package/dist/harness/amux/amuxHarnessMap.d.ts.map +1 -0
- package/dist/harness/amux/amuxHarnessMap.js +55 -0
- package/dist/harness/amux/amuxStdinReader.d.ts +45 -0
- package/dist/harness/amux/amuxStdinReader.d.ts.map +1 -0
- package/dist/harness/amux/amuxStdinReader.js +106 -0
- package/dist/harness/amux/amuxTypes.d.ts +122 -0
- package/dist/harness/amux/amuxTypes.d.ts.map +1 -0
- package/dist/harness/amux/amuxTypes.js +11 -0
- package/dist/harness/amux/index.d.ts +17 -0
- package/dist/harness/amux/index.d.ts.map +1 -0
- package/dist/harness/amux/index.js +34 -0
- package/dist/harness/backgroundTracker.d.ts +64 -0
- package/dist/harness/backgroundTracker.d.ts.map +1 -0
- package/dist/harness/backgroundTracker.js +107 -0
- package/dist/harness/builtInHarness.d.ts +3 -0
- package/dist/harness/builtInHarness.d.ts.map +1 -0
- package/dist/harness/builtInHarness.js +18 -0
- package/dist/harness/capabilityRouter.d.ts +76 -0
- package/dist/harness/capabilityRouter.d.ts.map +1 -0
- package/dist/harness/capabilityRouter.js +176 -0
- package/dist/harness/fallbackChains.d.ts +42 -0
- package/dist/harness/fallbackChains.d.ts.map +1 -0
- package/dist/harness/fallbackChains.js +69 -0
- package/dist/harness/hostContract.d.ts +63 -0
- package/dist/harness/hostContract.d.ts.map +1 -0
- package/dist/harness/hostContract.js +136 -0
- package/dist/harness/index.d.ts +10 -0
- package/dist/harness/index.d.ts.map +1 -0
- package/dist/harness/index.js +66 -0
- package/dist/harness/internal/createRun/askUserQuestion.d.ts +11 -0
- package/dist/harness/internal/createRun/askUserQuestion.d.ts.map +1 -0
- package/dist/harness/internal/createRun/askUserQuestion.js +162 -0
- package/dist/harness/internal/createRun/index.d.ts +25 -0
- package/dist/harness/internal/createRun/index.d.ts.map +1 -0
- package/dist/harness/internal/createRun/index.js +137 -0
- package/dist/harness/internal/createRun/orchestration/constants.d.ts +7 -0
- package/dist/harness/internal/createRun/orchestration/constants.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/constants.js +13 -0
- package/dist/harness/internal/createRun/orchestration/effects.d.ts +43 -0
- package/dist/harness/internal/createRun/orchestration/effects.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/effects.js +490 -0
- package/dist/harness/internal/createRun/orchestration/effectsHelpers.d.ts +20 -0
- package/dist/harness/internal/createRun/orchestration/effectsHelpers.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/effectsHelpers.js +79 -0
- package/dist/harness/internal/createRun/orchestration/externalPhase.d.ts +3 -0
- package/dist/harness/internal/createRun/orchestration/externalPhase.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/externalPhase.js +319 -0
- package/dist/harness/internal/createRun/orchestration/externalPhaseHelpers.d.ts +16 -0
- package/dist/harness/internal/createRun/orchestration/externalPhaseHelpers.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/externalPhaseHelpers.js +104 -0
- package/dist/harness/internal/createRun/orchestration/index.d.ts +14 -0
- package/dist/harness/internal/createRun/orchestration/index.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/index.js +36 -0
- package/dist/harness/internal/createRun/orchestration/internalPhase.d.ts +3 -0
- package/dist/harness/internal/createRun/orchestration/internalPhase.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/internalPhase.js +464 -0
- package/dist/harness/internal/createRun/orchestration/internalTools.d.ts +26 -0
- package/dist/harness/internal/createRun/orchestration/internalTools.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/internalTools.js +262 -0
- package/dist/harness/internal/createRun/orchestration/internalToolsHelpers.d.ts +17 -0
- package/dist/harness/internal/createRun/orchestration/internalToolsHelpers.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/internalToolsHelpers.js +23 -0
- package/dist/harness/internal/createRun/orchestration/taskResult.d.ts +10 -0
- package/dist/harness/internal/createRun/orchestration/taskResult.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/taskResult.js +67 -0
- package/dist/harness/internal/createRun/orchestration/types.d.ts +46 -0
- package/dist/harness/internal/createRun/orchestration/types.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/types.js +2 -0
- package/dist/harness/internal/createRun/orchestration/verbose.d.ts +7 -0
- package/dist/harness/internal/createRun/orchestration/verbose.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/verbose.js +240 -0
- package/dist/harness/internal/createRun/output.d.ts +38 -0
- package/dist/harness/internal/createRun/output.d.ts.map +1 -0
- package/dist/harness/internal/createRun/output.js +415 -0
- package/dist/harness/internal/createRun/pi.d.ts +34 -0
- package/dist/harness/internal/createRun/pi.d.ts.map +1 -0
- package/dist/harness/internal/createRun/pi.js +216 -0
- package/dist/harness/internal/createRun/planProcess/agentOutput.d.ts +5 -0
- package/dist/harness/internal/createRun/planProcess/agentOutput.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/agentOutput.js +113 -0
- package/dist/harness/internal/createRun/planProcess/delegation.d.ts +23 -0
- package/dist/harness/internal/createRun/planProcess/delegation.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/delegation.js +176 -0
- package/dist/harness/internal/createRun/planProcess/external.d.ts +14 -0
- package/dist/harness/internal/createRun/planProcess/external.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/external.js +139 -0
- package/dist/harness/internal/createRun/planProcess/index.d.ts +12 -0
- package/dist/harness/internal/createRun/planProcess/index.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/index.js +24 -0
- package/dist/harness/internal/createRun/planProcess/paths.d.ts +7 -0
- package/dist/harness/internal/createRun/planProcess/paths.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/paths.js +98 -0
- package/dist/harness/internal/createRun/planProcess/phase.d.ts +6 -0
- package/dist/harness/internal/createRun/planProcess/phase.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/phase.js +361 -0
- package/dist/harness/internal/createRun/planProcess/phaseHelpers.d.ts +37 -0
- package/dist/harness/internal/createRun/planProcess/phaseHelpers.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/phaseHelpers.js +159 -0
- package/dist/harness/internal/createRun/planProcess/phaseTypes.d.ts +25 -0
- package/dist/harness/internal/createRun/planProcess/phaseTypes.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/phaseTypes.js +6 -0
- package/dist/harness/internal/createRun/planProcess/prompts.d.ts +20 -0
- package/dist/harness/internal/createRun/planProcess/prompts.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/prompts.js +208 -0
- package/dist/harness/internal/createRun/planProcess/recovery.d.ts +18 -0
- package/dist/harness/internal/createRun/planProcess/recovery.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/recovery.js +188 -0
- package/dist/harness/internal/createRun/planProcess/recovery.test.d.ts +2 -0
- package/dist/harness/internal/createRun/planProcess/recovery.test.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/recovery.test.js +68 -0
- package/dist/harness/internal/createRun/planProcess/runState.d.ts +40 -0
- package/dist/harness/internal/createRun/planProcess/runState.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/runState.js +179 -0
- package/dist/harness/internal/createRun/planProcess/understandIntent.d.ts +22 -0
- package/dist/harness/internal/createRun/planProcess/understandIntent.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/understandIntent.js +65 -0
- package/dist/harness/internal/createRun/planProcess/validation.d.ts +2 -0
- package/dist/harness/internal/createRun/planProcess/validation.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/validation.js +212 -0
- package/dist/harness/internal/createRun/planProcess/validationSource.d.ts +11 -0
- package/dist/harness/internal/createRun/planProcess/validationSource.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/validationSource.js +328 -0
- package/dist/harness/internal/createRun/planProcess/validationText.d.ts +3 -0
- package/dist/harness/internal/createRun/planProcess/validationText.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/validationText.js +145 -0
- package/dist/harness/internal/createRun/prompts.d.ts +49 -0
- package/dist/harness/internal/createRun/prompts.d.ts.map +1 -0
- package/dist/harness/internal/createRun/prompts.js +307 -0
- package/dist/harness/internal/createRun/resumeState.d.ts +28 -0
- package/dist/harness/internal/createRun/resumeState.d.ts.map +1 -0
- package/dist/harness/internal/createRun/resumeState.js +133 -0
- package/dist/harness/internal/createRun/utils.d.ts +182 -0
- package/dist/harness/internal/createRun/utils.d.ts.map +1 -0
- package/dist/harness/internal/createRun/utils.js +133 -0
- package/dist/harness/internal.d.ts +13 -0
- package/dist/harness/internal.d.ts.map +1 -0
- package/dist/harness/internal.js +149 -0
- package/dist/harness/invoker/launch.d.ts +20 -0
- package/dist/harness/invoker/launch.d.ts.map +1 -0
- package/dist/harness/invoker/launch.js +23 -0
- package/dist/harness/invoker/processControl.d.ts +11 -0
- package/dist/harness/invoker/processControl.d.ts.map +1 -0
- package/dist/harness/invoker/processControl.js +50 -0
- package/dist/harness/invoker.d.ts +43 -0
- package/dist/harness/invoker.d.ts.map +1 -0
- package/dist/harness/invoker.js +210 -0
- package/dist/harness/modeSelector.d.ts +50 -0
- package/dist/harness/modeSelector.d.ts.map +1 -0
- package/dist/harness/modeSelector.js +124 -0
- package/dist/harness/modelSelection.d.ts +37 -0
- package/dist/harness/modelSelection.d.ts.map +1 -0
- package/dist/harness/modelSelection.js +81 -0
- package/dist/harness/operatorCommands.d.ts +38 -0
- package/dist/harness/operatorCommands.d.ts.map +1 -0
- package/dist/harness/operatorCommands.js +118 -0
- package/dist/harness/piSecureSandbox.d.ts +8 -0
- package/dist/harness/piSecureSandbox.d.ts.map +1 -0
- package/dist/harness/piSecureSandbox.js +366 -0
- package/dist/harness/piSecureSandboxTypes.d.ts +51 -0
- package/dist/harness/piSecureSandboxTypes.d.ts.map +1 -0
- package/dist/harness/piSecureSandboxTypes.js +6 -0
- package/dist/harness/piWrapper/compaction.d.ts +13 -0
- package/dist/harness/piWrapper/compaction.d.ts.map +1 -0
- package/dist/harness/piWrapper/compaction.js +38 -0
- package/dist/harness/piWrapper/instructionPrompts.d.ts +2 -0
- package/dist/harness/piWrapper/instructionPrompts.d.ts.map +1 -0
- package/dist/harness/piWrapper/instructionPrompts.js +97 -0
- package/dist/harness/piWrapper/moduleSupport.d.ts +77 -0
- package/dist/harness/piWrapper/moduleSupport.d.ts.map +1 -0
- package/dist/harness/piWrapper/moduleSupport.js +204 -0
- package/dist/harness/piWrapper.d.ts +80 -0
- package/dist/harness/piWrapper.d.ts.map +1 -0
- package/dist/harness/piWrapper.js +389 -0
- package/dist/harness/piWrapper.test.d.ts +2 -0
- package/dist/harness/piWrapper.test.d.ts.map +1 -0
- package/dist/harness/piWrapper.test.js +193 -0
- package/dist/harness/planMode.d.ts +68 -0
- package/dist/harness/planMode.d.ts.map +1 -0
- package/dist/harness/planMode.js +145 -0
- package/dist/harness/selectionPolicies.d.ts +29 -0
- package/dist/harness/selectionPolicies.d.ts.map +1 -0
- package/dist/harness/selectionPolicies.js +165 -0
- package/dist/harness/types.d.ts +266 -0
- package/dist/harness/types.d.ts.map +1 -0
- package/dist/harness/types.js +34 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +52 -0
- package/dist/interaction/askUserQuestion/core.d.ts +8 -0
- package/dist/interaction/askUserQuestion/core.d.ts.map +1 -0
- package/dist/interaction/askUserQuestion/core.js +112 -0
- package/dist/interaction/askUserQuestion/terminal.d.ts +15 -0
- package/dist/interaction/askUserQuestion/terminal.d.ts.map +1 -0
- package/dist/interaction/askUserQuestion/terminal.js +128 -0
- package/dist/interaction/askUserQuestion.d.ts +10 -0
- package/dist/interaction/askUserQuestion.d.ts.map +1 -0
- package/dist/interaction/askUserQuestion.js +295 -0
- package/dist/interaction/askUserQuestionTypes.d.ts +31 -0
- package/dist/interaction/askUserQuestionTypes.d.ts.map +1 -0
- package/dist/interaction/askUserQuestionTypes.js +6 -0
- package/dist/interaction/index.d.ts +4 -0
- package/dist/interaction/index.d.ts.map +1 -0
- package/dist/interaction/index.js +20 -0
- package/dist/interaction/interactionRouter.d.ts +25 -0
- package/dist/interaction/interactionRouter.d.ts.map +1 -0
- package/dist/interaction/interactionRouter.js +55 -0
- package/dist/mcp/channels/allowlist.d.ts +19 -0
- package/dist/mcp/channels/allowlist.d.ts.map +1 -0
- package/dist/mcp/channels/allowlist.js +140 -0
- package/dist/mcp/channels/channelManager.d.ts +64 -0
- package/dist/mcp/channels/channelManager.d.ts.map +1 -0
- package/dist/mcp/channels/channelManager.js +137 -0
- package/dist/mcp/channels/inboundQueue.d.ts +47 -0
- package/dist/mcp/channels/inboundQueue.d.ts.map +1 -0
- package/dist/mcp/channels/inboundQueue.js +96 -0
- package/dist/mcp/channels/index.d.ts +17 -0
- package/dist/mcp/channels/index.d.ts.map +1 -0
- package/dist/mcp/channels/index.js +39 -0
- package/dist/mcp/channels/outbound.d.ts +33 -0
- package/dist/mcp/channels/outbound.d.ts.map +1 -0
- package/dist/mcp/channels/outbound.js +94 -0
- package/dist/mcp/channels/permissionRelay.d.ts +62 -0
- package/dist/mcp/channels/permissionRelay.d.ts.map +1 -0
- package/dist/mcp/channels/permissionRelay.js +159 -0
- package/dist/mcp/channels/types.d.ts +135 -0
- package/dist/mcp/channels/types.d.ts.map +1 -0
- package/dist/mcp/channels/types.js +16 -0
- package/dist/mcp/client/config.d.ts +28 -0
- package/dist/mcp/client/config.d.ts.map +1 -0
- package/dist/mcp/client/config.js +142 -0
- package/dist/mcp/client/executor.d.ts +30 -0
- package/dist/mcp/client/executor.d.ts.map +1 -0
- package/dist/mcp/client/executor.js +60 -0
- package/dist/mcp/client/index.d.ts +12 -0
- package/dist/mcp/client/index.d.ts.map +1 -0
- package/dist/mcp/client/index.js +27 -0
- package/dist/mcp/client/manager.d.ts +74 -0
- package/dist/mcp/client/manager.d.ts.map +1 -0
- package/dist/mcp/client/manager.js +214 -0
- package/dist/mcp/client/toolRegistry.d.ts +50 -0
- package/dist/mcp/client/toolRegistry.d.ts.map +1 -0
- package/dist/mcp/client/toolRegistry.js +118 -0
- package/dist/mcp/client/types.d.ts +96 -0
- package/dist/mcp/client/types.d.ts.map +1 -0
- package/dist/mcp/client/types.js +15 -0
- package/dist/mcp/transport/index.d.ts +9 -0
- package/dist/mcp/transport/index.d.ts.map +1 -0
- package/dist/mcp/transport/index.js +13 -0
- package/dist/mcp/transport/session.d.ts +18 -0
- package/dist/mcp/transport/session.d.ts.map +1 -0
- package/dist/mcp/transport/session.js +78 -0
- package/dist/mcp/transport/types.d.ts +19 -0
- package/dist/mcp/transport/types.d.ts.map +1 -0
- package/dist/mcp/transport/types.js +7 -0
- package/dist/mcp/transport/websocket.d.ts +41 -0
- package/dist/mcp/transport/websocket.d.ts.map +1 -0
- package/dist/mcp/transport/websocket.js +271 -0
- package/dist/observability/health.d.ts +19 -0
- package/dist/observability/health.d.ts.map +1 -0
- package/dist/observability/health.js +129 -0
- package/dist/observability/index.d.ts +7 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +22 -0
- package/dist/observability/runStatus.d.ts +44 -0
- package/dist/observability/runStatus.d.ts.map +1 -0
- package/dist/observability/runStatus.js +169 -0
- package/dist/observability/timeline.d.ts +11 -0
- package/dist/observability/timeline.d.ts.map +1 -0
- package/dist/observability/timeline.js +176 -0
- package/dist/observability/types.d.ts +62 -0
- package/dist/observability/types.d.ts.map +1 -0
- package/dist/observability/types.js +8 -0
- package/dist/observability/webhooks.d.ts +68 -0
- package/dist/observability/webhooks.d.ts.map +1 -0
- package/dist/observability/webhooks.js +132 -0
- package/dist/prompts/commandTemplates.d.ts +3 -0
- package/dist/prompts/commandTemplates.d.ts.map +1 -0
- package/dist/prompts/commandTemplates.js +238 -0
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +28 -0
- package/dist/seams/contract.d.ts +55 -0
- package/dist/seams/contract.d.ts.map +1 -0
- package/dist/seams/contract.js +120 -0
- package/dist/seams/contract.test.d.ts +2 -0
- package/dist/seams/contract.test.d.ts.map +1 -0
- package/dist/seams/contract.test.js +96 -0
- package/dist/seams/index.d.ts +3 -0
- package/dist/seams/index.d.ts.map +1 -0
- package/dist/seams/index.js +8 -0
- package/dist/session/context.d.ts +22 -0
- package/dist/session/context.d.ts.map +1 -0
- package/dist/session/context.js +113 -0
- package/dist/session/continuityState.d.ts +39 -0
- package/dist/session/continuityState.d.ts.map +1 -0
- package/dist/session/continuityState.js +164 -0
- package/dist/session/cost.d.ts +63 -0
- package/dist/session/cost.d.ts.map +1 -0
- package/dist/session/cost.js +194 -0
- package/dist/session/discovery.d.ts +22 -0
- package/dist/session/discovery.d.ts.map +1 -0
- package/dist/session/discovery.js +35 -0
- package/dist/session/history.d.ts +30 -0
- package/dist/session/history.d.ts.map +1 -0
- package/dist/session/history.js +143 -0
- package/dist/session/index.d.ts +7 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +70 -0
- package/dist/session/memoryExtraction.d.ts +65 -0
- package/dist/session/memoryExtraction.d.ts.map +1 -0
- package/dist/session/memoryExtraction.js +201 -0
- package/dist/session/parse.d.ts +45 -0
- package/dist/session/parse.d.ts.map +1 -0
- package/dist/session/parse.js +170 -0
- package/dist/session/persistence.d.ts +46 -0
- package/dist/session/persistence.d.ts.map +1 -0
- package/dist/session/persistence.js +180 -0
- package/dist/session/types.d.ts +267 -0
- package/dist/session/types.d.ts.map +1 -0
- package/dist/session/types.js +45 -0
- package/dist/session/write.d.ts +61 -0
- package/dist/session/write.d.ts.map +1 -0
- package/dist/session/write.js +213 -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/clock.d.ts +2 -0
- package/dist/storage/clock.d.ts.map +1 -0
- package/dist/storage/clock.js +6 -0
- package/dist/storage/index.d.ts +7 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +9 -0
- package/dist/storage/journalWatcher.d.ts +24 -0
- package/dist/storage/journalWatcher.d.ts.map +1 -0
- package/dist/storage/journalWatcher.js +172 -0
- package/dist/storage/paths.d.ts +5 -0
- package/dist/storage/paths.d.ts.map +1 -0
- package/dist/storage/paths.js +26 -0
- package/dist/storage/snapshotState.d.ts +10 -0
- package/dist/storage/snapshotState.d.ts.map +1 -0
- package/dist/storage/snapshotState.js +15 -0
- package/dist/storage/storeTaskArtifacts.d.ts +6 -0
- package/dist/storage/storeTaskArtifacts.d.ts.map +1 -0
- package/dist/storage/storeTaskArtifacts.js +55 -0
- package/dist/storage/types.d.ts +21 -0
- package/dist/storage/types.d.ts.map +1 -0
- package/dist/storage/types.js +2 -0
- package/dist/tasks/crud.d.ts +33 -0
- package/dist/tasks/crud.d.ts.map +1 -0
- package/dist/tasks/crud.js +150 -0
- package/dist/tasks/index.d.ts +2 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/index.js +9 -0
- package/package.json +141 -0
|
@@ -0,0 +1,208 @@
|
|
|
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.buildExternalProcessDefinitionPrompt = buildExternalProcessDefinitionPrompt;
|
|
37
|
+
exports.buildExternalProcessConformancePrompt = buildExternalProcessConformancePrompt;
|
|
38
|
+
exports.buildInternalProcessConformancePrompt = buildInternalProcessConformancePrompt;
|
|
39
|
+
exports.assessWorkspaceForExternalAuthoring = assessWorkspaceForExternalAuthoring;
|
|
40
|
+
const path = __importStar(require("node:path"));
|
|
41
|
+
const node_fs_1 = require("node:fs");
|
|
42
|
+
function buildExternalProcessDefinitionPrompt(args) {
|
|
43
|
+
const workspace = path.resolve(args.workspace ?? process.cwd());
|
|
44
|
+
const installedHarnesses = args.promptContext.discoveredHarnesses
|
|
45
|
+
.filter((h) => h.installed)
|
|
46
|
+
.map((h) => h.name);
|
|
47
|
+
const installedHarnessList = installedHarnesses.length > 0
|
|
48
|
+
? installedHarnesses.join(", ")
|
|
49
|
+
: "(none)";
|
|
50
|
+
const workspaceSummary = args.workspaceAssessment.entries.length > 0
|
|
51
|
+
? args.workspaceAssessment.entries.join(", ")
|
|
52
|
+
: "(no files)";
|
|
53
|
+
const preferAgentOnlyTasks = args.preferAgentOnlyTasks === true;
|
|
54
|
+
const emptyWorkspaceAuthoringGuide = [
|
|
55
|
+
"",
|
|
56
|
+
"Empty-workspace authoring guide:",
|
|
57
|
+
"- Do not perform extra exploration. You already know the workspace is empty.",
|
|
58
|
+
"- Write a concrete greenfield process immediately.",
|
|
59
|
+
"- Prefer a small process with explicit milestones such as: plan the game, scaffold the project, implement the game, verify the result.",
|
|
60
|
+
preferAgentOnlyTasks
|
|
61
|
+
? "- Use `agent` or `skill` tasks for planning, implementation, and verification. Do not generate `shell` tasks for this run shape unless the user explicitly requires an existing CLI command."
|
|
62
|
+
: "- Use `agent` tasks for planning and implementation. Use `shell` tasks only for concrete runnable commands such as dependency install, build, or test commands that the later orchestration can execute.",
|
|
63
|
+
preferAgentOnlyTasks
|
|
64
|
+
? "- Do not generate `breakpoint` tasks for this run shape. Approval gates are process-authoring bugs unless the user explicitly asked for them."
|
|
65
|
+
: "- Add `breakpoint` tasks only when the process genuinely needs user input or sign-off.",
|
|
66
|
+
"- Keep the process practical for a brand-new directory: it should create the project, build the game, and verify that it runs or tests cleanly.",
|
|
67
|
+
].join("\n");
|
|
68
|
+
return [
|
|
69
|
+
"You are running agent-platform create-run PhasePlanProcess on an external CLI harness in non-interactive mode.",
|
|
70
|
+
"Do the real process-authoring work in the workspace and write the actual process file to disk.",
|
|
71
|
+
"",
|
|
72
|
+
"Task:",
|
|
73
|
+
`- User request: ${args.prompt}`,
|
|
74
|
+
`- Workspace: ${workspace}`,
|
|
75
|
+
`- Process output directory: ${path.resolve(args.outputDir)}`,
|
|
76
|
+
`- Workspace assessment: ${args.workspaceAssessment.kind} (${workspaceSummary})`,
|
|
77
|
+
"",
|
|
78
|
+
"Requirements:",
|
|
79
|
+
"- Start with one quick check of the workspace contents only if you need to confirm the assessment above.",
|
|
80
|
+
args.workspaceAssessment.kind === "empty"
|
|
81
|
+
? "- The workspace is empty. Treat this as a greenfield request and move straight to authoring the process."
|
|
82
|
+
: "- Only tailor the process to existing code when the workspace actually contains relevant project files.",
|
|
83
|
+
"- Do not inspect paths outside the workspace unless the workspace itself points to them.",
|
|
84
|
+
"- Do not use web search, browse remote repositories, or fetch external documentation for this task.",
|
|
85
|
+
args.workspaceAssessment.kind === "empty"
|
|
86
|
+
? "- Do not inspect global skill/plugin directories, home-directory config, or unrelated repositories for examples. You already have enough context to write the process."
|
|
87
|
+
: "- Keep research tight and relevant; do not wander through unrelated global skill/plugin directories.",
|
|
88
|
+
"- Do not ask the user questions. Infer missing details from the request and repo state.",
|
|
89
|
+
"- Write a complete ESM JavaScript module that can be imported from the output path.",
|
|
90
|
+
'- Import `defineTask` from `@a5c-ai/babysitter-sdk`.',
|
|
91
|
+
"- The module must export `async function process(inputs, ctx)`.",
|
|
92
|
+
"- The process must orchestrate the work through babysitter tasks instead of doing the main implementation directly in `process(inputs, ctx)`.",
|
|
93
|
+
"- Define at least one task with `defineTask(...)`, and invoke tasks from `process(inputs, ctx)` via `await ctx.task(...)`.",
|
|
94
|
+
"- Use `agent` tasks for planning, implementation, analysis, and verification work.",
|
|
95
|
+
preferAgentOnlyTasks
|
|
96
|
+
? "- Do not generate `shell` tasks for this run shape unless the user explicitly requires an existing CLI command. Prefer wrapped `agent` or `skill` tasks for verification too."
|
|
97
|
+
: "- Use `shell` tasks only for existing CLI tools such as tests, builds, linters, git, or package managers.",
|
|
98
|
+
preferAgentOnlyTasks
|
|
99
|
+
? "- Do not generate `breakpoint` tasks for this run shape. Keep the process fully autonomous unless the user explicitly asked for checkpoints."
|
|
100
|
+
: "- Use `breakpoint` tasks only when the workflow truly requires user input or approval.",
|
|
101
|
+
"- Never use `node` kind effects.",
|
|
102
|
+
"- At least one defined task must be an `agent` task for the main work. Shell tasks are for concrete runnable commands only.",
|
|
103
|
+
"- Any task passed to `ctx.task(...)` must be a DefinedTask created via `defineTask(...)`; never pass plain object task definitions or ad-hoc task objects.",
|
|
104
|
+
"- Include quality gates and verification/refinement steps that fit the request.",
|
|
105
|
+
"- For this request, a good default is a process that plans the game scope, scaffolds the project, implements the game loop and UI, and verifies the result with runnable checks.",
|
|
106
|
+
"- Keep the module syntactically valid ESM. If you embed HTML/CSS/JS asset contents inside the process source, avoid raw nested template literals; prefer arrays joined with \"\\n\", String.raw, or escaped inner backticks and \\${...} sequences.",
|
|
107
|
+
"- Default every task to the internal agent-core worker. If task-level harness routing is needed, only use `task.metadata.harness` for explicit overrides to installed harness names from this list: "
|
|
108
|
+
+ `${installedHarnessList}.`,
|
|
109
|
+
args.promptContext.selectedHarnessName
|
|
110
|
+
? `- The selected orchestration harness for the session will be ${args.promptContext.selectedHarnessName}; keep ` + "`task.metadata.harness`" + " unset for default internal execution and only encode it when a task must explicitly override that default."
|
|
111
|
+
: "- No orchestration harness has been preselected; keep harness routing explicit only where it materially matters.",
|
|
112
|
+
"- Do not set `task.metadata.bashSandbox`, `task.metadata.isolated`, or `task.metadata.enableCompaction` for ordinary internal agent-core work. Leave them unset unless the task truly requires stronger guardrails or long-running compaction.",
|
|
113
|
+
"- External harnesses do not provide agent-core worker guardrails for their own tool execution. Keep security-sensitive shell work on the internal agent-core worker by using shell effects without routing them to an external harness.",
|
|
114
|
+
"",
|
|
115
|
+
"Output rules:",
|
|
116
|
+
`- Choose a descriptive kebab-case filename (e.g. "user-auth-tdd.mjs", "data-pipeline-setup.js") and write the file to the process output directory.`,
|
|
117
|
+
"- Return a short summary that confirms what you wrote and the final path.",
|
|
118
|
+
"- Do not rely on AskUserQuestion or babysitter_report_process_definition. Those tools are not available here.",
|
|
119
|
+
"- Do not return pseudocode, placeholders, or a plan without writing the file.",
|
|
120
|
+
...(args.workspaceAssessment.kind === "empty" ? [emptyWorkspaceAuthoringGuide] : []),
|
|
121
|
+
"",
|
|
122
|
+
"Minimal shape reminder:",
|
|
123
|
+
"```javascript",
|
|
124
|
+
'import { defineTask } from "@a5c-ai/babysitter-sdk";',
|
|
125
|
+
"",
|
|
126
|
+
"export async function process(inputs, ctx) {",
|
|
127
|
+
" // create and run tasks here",
|
|
128
|
+
"}",
|
|
129
|
+
"```",
|
|
130
|
+
].join("\n");
|
|
131
|
+
}
|
|
132
|
+
function buildExternalProcessConformancePrompt(args) {
|
|
133
|
+
return [
|
|
134
|
+
"Edit one existing JavaScript workflow file so it conforms to the SDK API used by this repository.",
|
|
135
|
+
`Target file: ${path.resolve(args.outputPath)}`,
|
|
136
|
+
`Original user request: ${args.prompt}`,
|
|
137
|
+
"",
|
|
138
|
+
"Conformance requirements:",
|
|
139
|
+
"- Preserve the overall task pipeline and intent.",
|
|
140
|
+
"- Do not use web search or remote documentation. Fix the file using only the local file contents and the requirements in this prompt.",
|
|
141
|
+
"- Every task must be defined with `defineTask(\"task-id\", (args, taskCtx) => ({ ... }))`.",
|
|
142
|
+
"- Never use `defineTask({ ... })` or helper factories that hide the required signature.",
|
|
143
|
+
"- The module must orchestrate real work through those tasks; do not perform the main implementation directly in `process(inputs, ctx)`.",
|
|
144
|
+
"- Agent tasks must use `agent: { name, prompt, outputSchema }`.",
|
|
145
|
+
"- Every task returned from `defineTask(...)` must include a top-level `kind` field.",
|
|
146
|
+
"- Define at least one `agent` task for the main work. Use shell tasks only for concrete runnable commands.",
|
|
147
|
+
"- Put instructions inside `agent.prompt.task`, `agent.prompt.instructions`, and related prompt fields rather than top-level `instructions` fields.",
|
|
148
|
+
"- Agent tasks must use `kind: \"agent\"` with `agent: { name, prompt, outputSchema }`.",
|
|
149
|
+
"- Shell tasks must use `kind: \"shell\"` with `shell: { command: \"...\" }`.",
|
|
150
|
+
"- Do not introduce `kind: \"node\"` task definitions in generated or repaired processes. If logic would have been a node task, convert it to an `agent` or `skill` task instead.",
|
|
151
|
+
"- Any task passed to `ctx.task(...)` must be a DefinedTask created via `defineTask(...)`; do not pass plain object task definitions or ad-hoc task objects.",
|
|
152
|
+
"- The exported `process(inputs, ctx)` function must run tasks with `await ctx.task(definedTask, args)`; do not invent alternate task runners.",
|
|
153
|
+
"- Inside the named `process(inputs, ctx)` export, never reference Node's global process object as `process.*`; use `globalThis.process` or an imported alias like `nodeProcess` instead.",
|
|
154
|
+
"- If the process needs the workspace root, do not assume `ctx.workspaceDir` or `ctx.cwd` exists. Resolve it from the module location using `import.meta.url`, for example with `path.dirname(fileURLToPath(import.meta.url))`.",
|
|
155
|
+
"- Keep the file as ESM and preserve the target path.",
|
|
156
|
+
"- After editing, run `node --check` on the file.",
|
|
157
|
+
"",
|
|
158
|
+
"Return only a short summary of the changes and the validation result.",
|
|
159
|
+
].join("\n");
|
|
160
|
+
}
|
|
161
|
+
function buildInternalProcessConformancePrompt(args) {
|
|
162
|
+
return [
|
|
163
|
+
"Repair the generated babysitter process file so it conforms to the SDK API expected by this repository.",
|
|
164
|
+
`Target file: ${path.resolve(args.outputPath)}`,
|
|
165
|
+
`Original user request: ${args.prompt}`,
|
|
166
|
+
`Validation error: ${args.validationError}`,
|
|
167
|
+
"",
|
|
168
|
+
"Repair requirements:",
|
|
169
|
+
"- Preserve the overall task pipeline and user intent.",
|
|
170
|
+
"- The module must export a named `async function process(inputs, ctx)`.",
|
|
171
|
+
'- Import `defineTask` from `@a5c-ai/babysitter-sdk`.',
|
|
172
|
+
"- Use `defineTask(\"task-id\", (args, taskCtx) => ({ ... }))` for task definitions.",
|
|
173
|
+
"- Do not use `defineTask({ ... })` or object-only process exports.",
|
|
174
|
+
"- The module must orchestrate real work through defined tasks instead of doing the main implementation directly in `process(inputs, ctx)`.",
|
|
175
|
+
"- Define at least one `agent` task for the main work. Use shell tasks only for concrete runnable commands.",
|
|
176
|
+
"- Every task returned from `defineTask(...)` must include a top-level `kind` field.",
|
|
177
|
+
"- Any task passed to `ctx.task(...)` must be a DefinedTask created via `defineTask(...)`; do not pass plain object task definitions or ad-hoc task objects.",
|
|
178
|
+
"- The rewritten module must be syntactically valid ESM and pass `node --check`.",
|
|
179
|
+
"- If the process writes HTML/CSS/JS assets, do not embed raw nested template literals inside outer template literals; prefer arrays joined with \"\\n\", String.raw, or escaped inner backticks and \\${...} sequences.",
|
|
180
|
+
"- Inside the named `process(inputs, ctx)` export, do not reference Node's global process object as `process.*`; use `globalThis.process` or an imported alias like `nodeProcess` instead.",
|
|
181
|
+
"- If the process needs the workspace root, do not assume `ctx.workspaceDir` or `ctx.cwd` exists. Resolve it from the module location using `import.meta.url`, for example with `path.dirname(fileURLToPath(import.meta.url))`.",
|
|
182
|
+
"- Agent tasks must use `kind: \"agent\"` with `agent: { name, prompt, outputSchema }`.",
|
|
183
|
+
"- Shell tasks must use `kind: \"shell\"` with `shell: { command: \"...\" }`.",
|
|
184
|
+
"- Do not introduce `kind: \"node\"` task definitions in generated or repaired processes. If logic would have been a node task, convert it to an `agent` or `skill` task instead.",
|
|
185
|
+
"- The exported `process(inputs, ctx)` function must call tasks with `await ctx.task(definedTask, args)`.",
|
|
186
|
+
"- Use the normal file tools to rewrite the process file at the target path in the output directory.",
|
|
187
|
+
"- After rewriting the file, call `babysitter_report_process_definition` exactly once with the same path.",
|
|
188
|
+
"- Do not answer with plain text only.",
|
|
189
|
+
].join("\n");
|
|
190
|
+
}
|
|
191
|
+
async function assessWorkspaceForExternalAuthoring(workspace) {
|
|
192
|
+
const root = path.resolve(workspace ?? process.cwd());
|
|
193
|
+
try {
|
|
194
|
+
const entries = (await node_fs_1.promises.readdir(root))
|
|
195
|
+
.filter((entry) => entry !== "." && entry !== "..")
|
|
196
|
+
.sort();
|
|
197
|
+
return {
|
|
198
|
+
kind: entries.length === 0 ? "empty" : "non-empty",
|
|
199
|
+
entries: entries.slice(0, 12),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
catch {
|
|
203
|
+
return {
|
|
204
|
+
kind: "empty",
|
|
205
|
+
entries: [],
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ProcessDefinitionReport } from "../utils";
|
|
2
|
+
export declare function buildPhaseConversationSummary(outputs: string[]): string;
|
|
3
|
+
export declare function applyRecoveredProcessDefinitionFromOutput(args: {
|
|
4
|
+
output: string;
|
|
5
|
+
processPath: string;
|
|
6
|
+
}): Promise<boolean>;
|
|
7
|
+
export declare function recoverReportedProcessDefinition(args: {
|
|
8
|
+
state: {
|
|
9
|
+
report?: ProcessDefinitionReport;
|
|
10
|
+
};
|
|
11
|
+
outputDir: string;
|
|
12
|
+
workspace?: string;
|
|
13
|
+
outputs: string[];
|
|
14
|
+
verbose: boolean;
|
|
15
|
+
json: boolean;
|
|
16
|
+
}): Promise<ProcessDefinitionReport | undefined>;
|
|
17
|
+
export declare function writeVerboseProcessDefinitionRecovery(json: boolean): void;
|
|
18
|
+
//# sourceMappingURL=recovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recovery.d.ts","sourceRoot":"","sources":["../../../../../src/harness/internal/createRun/planProcess/recovery.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,uBAAuB,EAE7B,MAAM,UAAU,CAAC;AA8FlB,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CASvE;AAyCD,wBAAsB,yCAAyC,CAAC,IAAI,EAAE;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,OAAO,CAAC,CAUnB;AAED,wBAAsB,gCAAgC,CAAC,IAAI,EAAE;IAC3D,KAAK,EAAE;QAAE,MAAM,CAAC,EAAE,uBAAuB,CAAA;KAAE,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf,GAAG,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAe/C;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAIzE"}
|
|
@@ -0,0 +1,188 @@
|
|
|
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.buildPhaseConversationSummary = buildPhaseConversationSummary;
|
|
37
|
+
exports.applyRecoveredProcessDefinitionFromOutput = applyRecoveredProcessDefinitionFromOutput;
|
|
38
|
+
exports.recoverReportedProcessDefinition = recoverReportedProcessDefinition;
|
|
39
|
+
exports.writeVerboseProcessDefinitionRecovery = writeVerboseProcessDefinitionRecovery;
|
|
40
|
+
const path = __importStar(require("node:path"));
|
|
41
|
+
const node_fs_1 = require("node:fs");
|
|
42
|
+
const utils_1 = require("../utils");
|
|
43
|
+
const paths_1 = require("./paths");
|
|
44
|
+
function looksLikeProcessDefinitionSource(source) {
|
|
45
|
+
const normalized = source.trim();
|
|
46
|
+
if (!normalized) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
return (normalized.includes("defineTask(") ||
|
|
50
|
+
/export\s+async\s+function\s+process\s*\(/.test(normalized) ||
|
|
51
|
+
/export\s+default\s+async\s+function/.test(normalized) ||
|
|
52
|
+
/export\s*\{\s*process\s*\}/.test(normalized));
|
|
53
|
+
}
|
|
54
|
+
function extractProcessDefinitionCodeBlock(text) {
|
|
55
|
+
const codeBlockPattern = /```(?:javascript|js|mjs|ts)?\s*([\s\S]*?)```/gi;
|
|
56
|
+
let match;
|
|
57
|
+
let fallback = null;
|
|
58
|
+
while ((match = codeBlockPattern.exec(text)) !== null) {
|
|
59
|
+
const candidate = match[1]?.trim();
|
|
60
|
+
if (!candidate) {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
if (looksLikeProcessDefinitionSource(candidate)) {
|
|
64
|
+
return candidate;
|
|
65
|
+
}
|
|
66
|
+
fallback ??= candidate;
|
|
67
|
+
}
|
|
68
|
+
return fallback;
|
|
69
|
+
}
|
|
70
|
+
function extractProcessDefinitionHeredoc(text) {
|
|
71
|
+
const heredocPattern = /<<-?\s*['"]?([A-Za-z_][A-Za-z0-9_]*)['"]?\r?\n([\s\S]*?)\r?\n\1\b/g;
|
|
72
|
+
let match;
|
|
73
|
+
let fallback = null;
|
|
74
|
+
while ((match = heredocPattern.exec(text)) !== null) {
|
|
75
|
+
const candidate = match[2]?.trim();
|
|
76
|
+
if (!candidate) {
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
if (looksLikeProcessDefinitionSource(candidate)) {
|
|
80
|
+
return candidate;
|
|
81
|
+
}
|
|
82
|
+
fallback ??= candidate;
|
|
83
|
+
}
|
|
84
|
+
return fallback;
|
|
85
|
+
}
|
|
86
|
+
function looksLikeStandaloneProcessDefinitionSource(source) {
|
|
87
|
+
const normalized = source.trim();
|
|
88
|
+
if (!looksLikeProcessDefinitionSource(normalized)) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
const suspiciousTranscriptMarkers = [
|
|
92
|
+
"to=bash",
|
|
93
|
+
"to=read",
|
|
94
|
+
"to=write",
|
|
95
|
+
"to=edit",
|
|
96
|
+
"\"stdout\":",
|
|
97
|
+
"\"stderr\":",
|
|
98
|
+
"\"exitCode\":",
|
|
99
|
+
"[phase",
|
|
100
|
+
];
|
|
101
|
+
if (suspiciousTranscriptMarkers.some((marker) => normalized.includes(marker))) {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
return /^(?:#!.*\r?\n)?(?:\s*\/\*\*[\s\S]*?\*\/\s*)?(?:import\s|const\s+\w+\s*=\s*defineTask\(|export\s+async\s+function\s+process\b|async\s+function\s+process\b)/.test(normalized);
|
|
105
|
+
}
|
|
106
|
+
function extractRecoverableProcessDefinitionSource(output) {
|
|
107
|
+
const codeBlock = extractProcessDefinitionCodeBlock(output);
|
|
108
|
+
if (codeBlock && looksLikeProcessDefinitionSource(codeBlock)) {
|
|
109
|
+
return codeBlock;
|
|
110
|
+
}
|
|
111
|
+
const heredoc = extractProcessDefinitionHeredoc(output);
|
|
112
|
+
if (heredoc && looksLikeProcessDefinitionSource(heredoc)) {
|
|
113
|
+
return heredoc;
|
|
114
|
+
}
|
|
115
|
+
return looksLikeStandaloneProcessDefinitionSource(output) ? output.trim() : null;
|
|
116
|
+
}
|
|
117
|
+
function buildPhaseConversationSummary(outputs) {
|
|
118
|
+
const trimmedOutputs = outputs
|
|
119
|
+
.map((output) => output.replace(/\s+/g, " ").trim())
|
|
120
|
+
.filter((output) => output.length > 0);
|
|
121
|
+
if (trimmedOutputs.length === 0) {
|
|
122
|
+
return "";
|
|
123
|
+
}
|
|
124
|
+
const joined = trimmedOutputs.slice(-3).join("\n\n---\n\n");
|
|
125
|
+
return joined.length > 4_000 ? `${joined.slice(0, 3_997)}...` : joined;
|
|
126
|
+
}
|
|
127
|
+
async function recoverProcessDefinitionFromOutputs(args) {
|
|
128
|
+
const resolvedDir = path.resolve(args.outputDir);
|
|
129
|
+
for (const output of args.outputs) {
|
|
130
|
+
for (const candidatePath of (0, paths_1.extractMentionedProcessPaths)(output, args.workspace)) {
|
|
131
|
+
try {
|
|
132
|
+
await (0, paths_1.waitForProcessFile)(candidatePath, 1_000);
|
|
133
|
+
return {
|
|
134
|
+
processPath: candidatePath,
|
|
135
|
+
summary: "Recovered process-definition output by using a path mentioned by the agent.",
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
catch {
|
|
139
|
+
// keep trying
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
for (const output of args.outputs) {
|
|
144
|
+
const extracted = extractRecoverableProcessDefinitionSource(output);
|
|
145
|
+
if (!extracted) {
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
const recoveredName = `recovered-process-${Date.now()}.mjs`;
|
|
149
|
+
const recoveredPath = path.join(resolvedDir, recoveredName);
|
|
150
|
+
await node_fs_1.promises.mkdir(resolvedDir, { recursive: true });
|
|
151
|
+
await node_fs_1.promises.writeFile(recoveredPath, extracted, "utf8");
|
|
152
|
+
return {
|
|
153
|
+
processPath: recoveredPath,
|
|
154
|
+
summary: "Recovered process-definition output by writing recoverable JavaScript source returned by the agent.",
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
async function applyRecoveredProcessDefinitionFromOutput(args) {
|
|
160
|
+
const extracted = extractRecoverableProcessDefinitionSource(args.output);
|
|
161
|
+
if (!extracted) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
const resolvedPath = path.resolve(args.processPath);
|
|
165
|
+
await node_fs_1.promises.mkdir(path.dirname(resolvedPath), { recursive: true });
|
|
166
|
+
await node_fs_1.promises.writeFile(resolvedPath, extracted, "utf8");
|
|
167
|
+
return true;
|
|
168
|
+
}
|
|
169
|
+
async function recoverReportedProcessDefinition(args) {
|
|
170
|
+
if (args.state.report?.processPath) {
|
|
171
|
+
return args.state.report;
|
|
172
|
+
}
|
|
173
|
+
const recovered = await recoverProcessDefinitionFromOutputs({
|
|
174
|
+
outputDir: args.outputDir,
|
|
175
|
+
workspace: args.workspace,
|
|
176
|
+
outputs: args.outputs,
|
|
177
|
+
});
|
|
178
|
+
if (recovered) {
|
|
179
|
+
args.state.report = recovered;
|
|
180
|
+
(0, utils_1.writeVerboseBlock)(args.verbose, args.json, "phasePlanProcess recovered report", recovered);
|
|
181
|
+
}
|
|
182
|
+
return recovered ?? undefined;
|
|
183
|
+
}
|
|
184
|
+
function writeVerboseProcessDefinitionRecovery(json) {
|
|
185
|
+
if (!json) {
|
|
186
|
+
process.stderr.write(`${utils_1.DIM}PhasePlanProcess recovery: the agent did not report the process file, retrying with an explicit write-and-report instruction...${utils_1.RESET}\n`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recovery.test.d.ts","sourceRoot":"","sources":["../../../../../src/harness/internal/createRun/planProcess/recovery.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
const vitest_1 = require("vitest");
|
|
37
|
+
const node_fs_1 = require("node:fs");
|
|
38
|
+
const os = __importStar(require("node:os"));
|
|
39
|
+
const path = __importStar(require("node:path"));
|
|
40
|
+
const recovery_1 = require("./recovery");
|
|
41
|
+
(0, vitest_1.describe)("recoverReportedProcessDefinition", () => {
|
|
42
|
+
const tempDirs = [];
|
|
43
|
+
(0, vitest_1.afterEach)(async () => {
|
|
44
|
+
await Promise.all(tempDirs.map(async (dir) => {
|
|
45
|
+
await node_fs_1.promises.rm(dir, { recursive: true, force: true });
|
|
46
|
+
}));
|
|
47
|
+
tempDirs.length = 0;
|
|
48
|
+
});
|
|
49
|
+
(0, vitest_1.it)("does not reuse unrelated preexisting process files from the output directory", async () => {
|
|
50
|
+
const workspace = await node_fs_1.promises.mkdtemp(path.join(os.tmpdir(), "plan-process-recovery-"));
|
|
51
|
+
tempDirs.push(workspace);
|
|
52
|
+
const outputDir = path.join(workspace, ".a5c", "processes");
|
|
53
|
+
const staleProcessPath = path.join(outputDir, "add-hook-discovery.js");
|
|
54
|
+
await node_fs_1.promises.mkdir(outputDir, { recursive: true });
|
|
55
|
+
await node_fs_1.promises.writeFile(staleProcessPath, 'export async function process() { return "stale"; }\n', "utf8");
|
|
56
|
+
const state = {};
|
|
57
|
+
const recovered = await (0, recovery_1.recoverReportedProcessDefinition)({
|
|
58
|
+
state,
|
|
59
|
+
outputDir,
|
|
60
|
+
workspace,
|
|
61
|
+
outputs: ["I thought about the process, but I did not write or report one."],
|
|
62
|
+
verbose: false,
|
|
63
|
+
json: false,
|
|
64
|
+
});
|
|
65
|
+
(0, vitest_1.expect)(recovered).toBeUndefined();
|
|
66
|
+
(0, vitest_1.expect)(state.report).toBeUndefined();
|
|
67
|
+
});
|
|
68
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type OrchestrationState, type SessionBindResult, AgentCoreSessionHandle } from "../utils";
|
|
2
|
+
type EnsureRunAndMaybeBindArgs = {
|
|
3
|
+
processPath: string;
|
|
4
|
+
prompt: string;
|
|
5
|
+
workspace?: string;
|
|
6
|
+
runsDir: string;
|
|
7
|
+
selectedHarnessName: string;
|
|
8
|
+
maxIterations: number;
|
|
9
|
+
interactive: boolean;
|
|
10
|
+
verbose: boolean;
|
|
11
|
+
json: boolean;
|
|
12
|
+
phaseSession?: AgentCoreSessionHandle | null;
|
|
13
|
+
state?: OrchestrationState;
|
|
14
|
+
requireBoundSession?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function ensureRunAndMaybeBindFromProcessDefinition(args: EnsureRunAndMaybeBindArgs): Promise<{
|
|
17
|
+
runId: string;
|
|
18
|
+
runDir: string;
|
|
19
|
+
sessionBound?: SessionBindResult;
|
|
20
|
+
createdRun: boolean;
|
|
21
|
+
boundSession: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
export declare function createRunAndMaybeBindFromProcessDefinition(args: {
|
|
24
|
+
processPath: string;
|
|
25
|
+
prompt: string;
|
|
26
|
+
workspace?: string;
|
|
27
|
+
runsDir: string;
|
|
28
|
+
selectedHarnessName: string;
|
|
29
|
+
maxIterations: number;
|
|
30
|
+
interactive: boolean;
|
|
31
|
+
verbose: boolean;
|
|
32
|
+
json: boolean;
|
|
33
|
+
phaseSession: AgentCoreSessionHandle | null;
|
|
34
|
+
}): Promise<{
|
|
35
|
+
runId: string;
|
|
36
|
+
runDir: string;
|
|
37
|
+
sessionBound?: SessionBindResult;
|
|
38
|
+
}>;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=runState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runState.d.ts","sourceRoot":"","sources":["../../../../../src/harness/internal/createRun/planProcess/runState.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAGlB,KAAK,yBAAyB,GAAG;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAoDF,wBAAsB,0CAA0C,CAC9D,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC,CAiGD;AAED,wBAAsB,0CAA0C,CAAC,IAAI,EAAE;IACrE,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,sBAAsB,GAAG,IAAI,CAAC;CAC7C,GAAG,OAAO,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC,CAAC,CAGD"}
|