(
{
input: rawInput,
helpers,
speculationAccept,
fromKeybinding,
inputMode: rawInputMode,
isLoading,
commands,
isCommandEnabled,
isRemoteMode,
pastedContents,
queryGuardActive,
userType,
willowMode,
idleReturnDismissed,
skipIdleCheck,
lastQueryCompletionTimeMs,
getTotalInputTokens,
tokenThreshold,
idleThresholdMinutes,
expandPastedTextRefs,
parseBackgroundPRShortcutInput,
getInputValue,
mainLoopModel,
stashedPrompt,
getMessageCount,
cwd,
readFileState,
ideSelection,
abortController,
isExternalLoading,
streamMode,
hasInterruptibleToolInProgress,
querySource,
nowProvider = Date.now,
}: DispatchReplSubmitOptions,
{
preludeDeps,
bookkeepingDeps,
postBookkeepingDeps,
resolveReplSubmitStateImpl = resolveReplSubmitState,
resolveReplSubmitPreludePlanImpl = resolveReplSubmitPreludePlan,
dispatchReplSubmitPreludeImpl = dispatchReplSubmitPrelude,
resolveReplSubmitBookkeepingPlanImpl = resolveReplSubmitBookkeepingPlan,
dispatchReplSubmitBookkeepingImpl = dispatchReplSubmitBookkeeping,
dispatchReplPostBookkeepingSubmitImpl = dispatchReplPostBookkeepingSubmit,
}: DispatchReplSubmitDeps,
)
| 131 | } |
| 132 | |
| 133 | export async function dispatchReplSubmit( |
| 134 | { |
| 135 | input: rawInput, |
| 136 | helpers, |
| 137 | speculationAccept, |
| 138 | fromKeybinding, |
| 139 | inputMode: rawInputMode, |
| 140 | isLoading, |
| 141 | commands, |
| 142 | isCommandEnabled, |
| 143 | isRemoteMode, |
| 144 | pastedContents, |
| 145 | queryGuardActive, |
| 146 | userType, |
| 147 | willowMode, |
| 148 | idleReturnDismissed, |
| 149 | skipIdleCheck, |
| 150 | lastQueryCompletionTimeMs, |
| 151 | getTotalInputTokens, |
| 152 | tokenThreshold, |
| 153 | idleThresholdMinutes, |
| 154 | expandPastedTextRefs, |
| 155 | parseBackgroundPRShortcutInput, |
| 156 | getInputValue, |
| 157 | mainLoopModel, |
| 158 | stashedPrompt, |
| 159 | getMessageCount, |
| 160 | cwd, |
| 161 | readFileState, |
| 162 | ideSelection, |
| 163 | abortController, |
| 164 | isExternalLoading, |
| 165 | streamMode, |
| 166 | hasInterruptibleToolInProgress, |
| 167 | querySource, |
| 168 | nowProvider = Date.now, |
| 169 | }: DispatchReplSubmitOptions, |
| 170 | { |
| 171 | preludeDeps, |
| 172 | bookkeepingDeps, |
| 173 | postBookkeepingDeps, |
| 174 | resolveReplSubmitStateImpl = resolveReplSubmitState, |
| 175 | resolveReplSubmitPreludePlanImpl = resolveReplSubmitPreludePlan, |
| 176 | dispatchReplSubmitPreludeImpl = dispatchReplSubmitPrelude, |
| 177 | resolveReplSubmitBookkeepingPlanImpl = resolveReplSubmitBookkeepingPlan, |
| 178 | dispatchReplSubmitBookkeepingImpl = dispatchReplSubmitBookkeeping, |
| 179 | dispatchReplPostBookkeepingSubmitImpl = dispatchReplPostBookkeepingSubmit, |
| 180 | }: DispatchReplSubmitDeps, |
| 181 | ): Promise<void> { |
| 182 | const { input, inputMode } = normalizeReplSubmitIntent({ |
| 183 | input: rawInput, |
| 184 | inputMode: rawInputMode, |
| 185 | hasSpeculationAccept: !!speculationAccept, |
| 186 | }) |
| 187 | |
| 188 | const submitState = resolveReplSubmitStateImpl({ |
| 189 | input, |
| 190 | inputMode, |
no test coverage detected