import type { MossAgent } from '../core/index.js'; import type { ToolFilter } from '../core/index.js'; import type { SkillLearner } from '../core/memory/skill-learner.js'; import { type BackgroundProcSnapshot } from '../tools/background-exec.js'; import { type HeadlessOutputFormat, type HeadlessJsonWriter } from './print.js'; /** Format the oneshot exit warning when background work outlives the wait window. */ export declare function formatOneshotStillRunningBackgroundNotice(running: ReadonlyArray>, options?: { zh?: boolean; now?: number; }): string; export declare function mossVerboseTools(): boolean; export interface RunOneShotOptions { sessionKey?: string; outputFormat?: HeadlessOutputFormat; headless?: boolean; cwd?: string; stdout?: HeadlessJsonWriter; } export interface FocusedInspectionRunOptions { maxTurns: number; maxToolCalls: number; extraContext: string; toolFilter?: ToolFilter; } export interface FastNewsRunPolicy { maxToolCalls: number; maxOutputTokens: number; reasoning: 'off'; toolInputLimits: Record>; toolInputOverrides: Record>; extraContext: string; } export declare function verifiedNewsResearchContext(message: string): string | undefined; export declare function fastNewsRunPolicy(message: string, previousUserMessage?: string): FastNewsRunPolicy | undefined; export declare function focusedInspectionRunOptions(message: string): FocusedInspectionRunOptions | undefined; /** True when the message looks like plain chat with no tool work. */ /** * A prompt is "web-eligible" if it plausibly needs live web information — not * just explicit "search the web" but also: * - time-sensitive / current-events phrasing (今天/最近/最新/发生了什么/news/events) * - coding-adjacent lookup (怎么用/如何实现/查文档/找方案/latest API/SDK docs/how to/ * 报错排查) — coding often needs live docs/examples/solutions, not training memory. * * Used by isPureChatOneShotRequest (to NOT classify these as pure-chat, which * would hide all tools) AND by oneShotToolFilterForMessage (to enable web tools). * Centralized so the two stay consistent. */ export declare const WEB_ELIGIBLE_PROMPT_RE: RegExp; export declare function isWebEligiblePrompt(message: string): boolean; export declare function isPureChatOneShotRequest(message: string): boolean; export declare function oneShotToolFilterForMessage(message: string): ToolFilter; export declare function isBriefOneShotRequest(message: string): boolean; export declare function runOneShot(agent: MossAgent, message: string, learner?: SkillLearner, options?: RunOneShotOptions): Promise; //# sourceMappingURL=oneshot.d.ts.map