mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
refactor: trim auto reply helper exports
This commit is contained in:
@@ -407,7 +407,3 @@ export async function handleBashChatCommand(params: {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export function resetBashChatCommandForTests() {
|
||||
activeJob = null;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user