@marketrix.ai/widget 4.0.129 → 4.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
* `scrollToText`'s walker only ever yields a Text node from inside `document.body`'s tree, so
|
|
22
22
|
* `node.parentElement` is never null there — the optional-chained read is for TypeScript, not a runtime
|
|
23
23
|
* branch this loop can take.
|
|
24
|
+
*
|
|
25
|
+
* The class itself is exported (only the `browserToolService` singleton is meant for production callers)
|
|
26
|
+
* so `test/fixtures.ts`'s `browserToolServiceMock` can type its stub as
|
|
27
|
+
* `Pick<BrowserToolService, 'executeTool' | 'getFriendlyToolName' | 'isWaitForUserTool'>` against the real
|
|
28
|
+
* public surface instead of a hand-written, driftable shape.
|
|
24
29
|
*/
|
|
25
30
|
import type { InstructionType } from '../types';
|
|
26
31
|
interface TextData {
|
|
@@ -36,7 +41,7 @@ export type ToolExecutionResult<T = TextData> = {
|
|
|
36
41
|
afterResponseAttempt?: () => void;
|
|
37
42
|
} | ToolFailure;
|
|
38
43
|
export declare const FINISH_TOOL = "finish";
|
|
39
|
-
declare class BrowserToolService {
|
|
44
|
+
export declare class BrowserToolService {
|
|
40
45
|
private readonly tools;
|
|
41
46
|
private element;
|
|
42
47
|
private selectElement;
|