/** * HOW TO NAME AND CAPTION AN ARTIFACT — the platform's ONE statement of it. * * Same reason as the pair above: the prompt fragment and the tool schemas must * quote the SAME words, or the model reads two different rules depending on * which surface it happened to look at. * * ⚠️ THESE TWO ARE ALSO QUOTED OUTSIDE THIS REPO. The browser sidecar creates * artifacts on an agent's behalf (a screenshot, a recording) and declares * `artifactTitle` / `artifactDescription` on the tools that make them — before * that, it invented the captions itself and produced eight rows in one run * reading `Browser screenshot — page-.png`, each page saying * `Screenshot of viewport`. It is a separate container in a separate repo and * cannot import this module, so `sidecars/browser/src/artifact-caption.js` * holds a copy and `sidecars/browser/src/__tests__/caption-guidance-parity.test.js` * READS THIS FILE and fails when the two stop matching. Reword here, run that * test, carry the new words across in the same change. */ export declare const ARTIFACT_TITLE_RULE: string; export declare const ARTIFACT_DESCRIPTION_RULE: string; /** Test hook — the budget is process-lifetime state, so a suite must clear it. */ export declare function __resetPublishBudget(): void; /** * Compare the source we sent with the source read back. Returns null when they * are identical, otherwise a descriptor naming WHAT differs — length delta, the * first differing character offset, and a short excerpt of each side, in the same * "name the defect and where" spirit as the validation gate's defects. * * `kind` discriminates the three shapes a real failure takes, because the fix * differs: `truncated` (stored is a strict prefix — a cut-off write/transfer), * `longer` (stored has extra content appended), `diverged` (they differ mid-way — * a mangled encoding, or a stale/overwritten object). * Exported for direct unit testing; not part of the tool surface. */ export declare function __compareStoredSource(sent: any, stored: any): { kind: string; sentChars: any; storedChars: any; delta: number; firstDiffAt: number; sentExcerpt: string; storedExcerpt: string; }; export declare const artifactSkill: any;