/** * Weavetab — tools/burst.ts * Executes multiple tool calls serially in one round-trip, with per-step delta checking. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; import type { Config } from "../config/loader.js"; import { type TrailEntry } from "../intelligence/trail.js"; export interface BurstStep { tool: string; args: Record; } export interface BurstMacroStep { tool: "type_and_send" | "navigate_and_read" | "click_and_wait" | "scroll_and_read" | "fill_form" | "drag_and_drop" | "hover_and_read" | string; args: Record; } export type AnyBurstStep = BurstStep | BurstMacroStep; export interface BurstOptions { steps?: AnyBurstStep[]; actions?: AnyBurstStep[]; compile_from_history?: boolean; history_limit?: number; dry_run?: boolean; stop_on_error?: boolean; batch?: boolean; app?: string; } export interface BurstStepResult { step: number; tool: string; success: boolean; result?: unknown; error?: string; } export interface BurstResult { success: boolean; steps_completed: number; results: BurstStepResult[]; aborted: boolean; abort_reason?: string; compiled_steps?: AnyBurstStep[]; message?: string; } export declare function compileTraceToMacro(steps: TrailEntry[]): AnyBurstStep[]; export declare function browserBurst(session: CDP.Client, args: BurstOptions, config: Config): Promise;