refactor: trim auto reply helper exports

This commit is contained in:
Peter Steinberger
2026-05-02 07:39:45 +01:00
parent 33a26cd807
commit 73a1db480b
3 changed files with 4 additions and 8 deletions

View File

@@ -407,7 +407,3 @@ export async function handleBashChatCommand(params: {
};
}
}
export function resetBashChatCommandForTests() {
activeJob = null;
}

View File

@@ -81,11 +81,11 @@ export function stopWithText(text: string): CommandHandlerResult {
return { shouldContinue: false, reply: { text } };
}
export function stopWithUnknownTargetError(error?: string): CommandHandlerResult {
function stopWithUnknownTargetError(error?: string): CommandHandlerResult {
return stopWithText(`⚠️ ${error ?? "Unknown subagent."}`);
}
export function resolveSubagentTarget(
function resolveSubagentTarget(
runs: SubagentRunRecord[],
token: string | undefined,
): SubagentTargetResolution {

View File

@@ -27,7 +27,7 @@ function loadSessionForkRuntime(): Promise<typeof import("./session-fork.runtime
return sessionForkRuntimePromise;
}
export function formatParentForkTooLargeMessage(params: {
function formatParentForkTooLargeMessage(params: {
parentTokens: number;
maxTokens: number;
}): string {
@@ -71,7 +71,7 @@ export async function forkSessionFromParent(params: {
return runtime.forkSessionFromParentRuntime(params);
}
export async function resolveParentForkTokenCount(params: {
async function resolveParentForkTokenCount(params: {
parentEntry: SessionEntry;
storePath: string;
}): Promise<number | undefined> {