@wingman-ai/gateway 0.5.3 → 0.5.4
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.
- package/dist/agent/config/agentConfig.cjs +4 -0
- package/dist/agent/config/agentConfig.d.ts +12 -0
- package/dist/agent/config/agentConfig.js +4 -0
- package/dist/agent/config/toolRegistry.cjs +75 -1
- package/dist/agent/config/toolRegistry.d.ts +3 -0
- package/dist/agent/config/toolRegistry.js +75 -1
- package/dist/agent/middleware/large-tool-results.cjs +207 -0
- package/dist/agent/middleware/large-tool-results.d.ts +16 -0
- package/dist/agent/middleware/large-tool-results.js +173 -0
- package/dist/agent/tools/browser_control.cjs +9 -1231
- package/dist/agent/tools/browser_control.d.ts +126 -234
- package/dist/agent/tools/browser_control.js +7 -1226
- package/dist/agent/tools/browser_runtime.cjs +1189 -0
- package/dist/agent/tools/browser_runtime.d.ts +560 -0
- package/dist/agent/tools/browser_runtime.js +1122 -0
- package/dist/agent/tools/browser_session.cjs +153 -0
- package/dist/agent/tools/browser_session.d.ts +741 -0
- package/dist/agent/tools/browser_session.js +110 -0
- package/dist/agent/tools/browser_session_manager.cjs +202 -0
- package/dist/agent/tools/browser_session_manager.d.ts +64 -0
- package/dist/agent/tools/browser_session_manager.js +165 -0
- package/dist/cli/commands/init.cjs +5 -1
- package/dist/cli/commands/init.js +5 -1
- package/dist/cli/config/loader.cjs +0 -5
- package/dist/cli/config/loader.js +0 -5
- package/dist/cli/config/schema.cjs +3 -7
- package/dist/cli/config/schema.d.ts +6 -6
- package/dist/cli/config/schema.js +3 -7
- package/dist/cli/core/agentInvoker.cjs +86 -22
- package/dist/cli/core/agentInvoker.d.ts +10 -3
- package/dist/cli/core/agentInvoker.js +86 -25
- package/dist/cli/core/outputManager.cjs +7 -2
- package/dist/cli/core/outputManager.d.ts +2 -2
- package/dist/cli/core/outputManager.js +7 -2
- package/dist/cli/types.d.ts +2 -1
- package/dist/webui/assets/index-XrEnkZiq.css +11 -0
- package/dist/webui/assets/index-mDs6HbKM.js +215 -0
- package/dist/webui/index.html +2 -2
- package/package.json +10 -10
- package/templates/agents/README.md +2 -1
- package/templates/agents/coding/agent.md +6 -13
- package/templates/agents/coding-v2/agent.md +6 -1
- package/templates/agents/game-dev/agent.md +8 -2
- package/templates/agents/game-dev/game-designer.md +4 -0
- package/templates/agents/game-dev/scene-engineer.md +4 -0
- package/templates/agents/main/agent.md +5 -0
- package/templates/agents/researcher/agent.md +11 -0
- package/templates/agents/stock-trader/agent.md +4 -0
- package/dist/agent/tests/agentConfig.test.cjs +0 -224
- package/dist/agent/tests/agentConfig.test.d.ts +0 -1
- package/dist/agent/tests/agentConfig.test.js +0 -218
- package/dist/agent/tests/agentLoader.test.cjs +0 -335
- package/dist/agent/tests/agentLoader.test.d.ts +0 -1
- package/dist/agent/tests/agentLoader.test.js +0 -329
- package/dist/agent/tests/backgroundTerminal.test.cjs +0 -70
- package/dist/agent/tests/backgroundTerminal.test.d.ts +0 -1
- package/dist/agent/tests/backgroundTerminal.test.js +0 -64
- package/dist/agent/tests/browserControlHelpers.test.cjs +0 -35
- package/dist/agent/tests/browserControlHelpers.test.d.ts +0 -1
- package/dist/agent/tests/browserControlHelpers.test.js +0 -29
- package/dist/agent/tests/browserControlTool.test.cjs +0 -2117
- package/dist/agent/tests/browserControlTool.test.d.ts +0 -1
- package/dist/agent/tests/browserControlTool.test.js +0 -2111
- package/dist/agent/tests/commandExecuteTool.test.cjs +0 -29
- package/dist/agent/tests/commandExecuteTool.test.d.ts +0 -1
- package/dist/agent/tests/commandExecuteTool.test.js +0 -23
- package/dist/agent/tests/internet_search.test.cjs +0 -107
- package/dist/agent/tests/internet_search.test.d.ts +0 -1
- package/dist/agent/tests/internet_search.test.js +0 -101
- package/dist/agent/tests/mcpClientManager.test.cjs +0 -290
- package/dist/agent/tests/mcpClientManager.test.d.ts +0 -1
- package/dist/agent/tests/mcpClientManager.test.js +0 -284
- package/dist/agent/tests/mcpResourceTools.test.cjs +0 -101
- package/dist/agent/tests/mcpResourceTools.test.d.ts +0 -1
- package/dist/agent/tests/mcpResourceTools.test.js +0 -95
- package/dist/agent/tests/modelFactory.test.cjs +0 -190
- package/dist/agent/tests/modelFactory.test.d.ts +0 -1
- package/dist/agent/tests/modelFactory.test.js +0 -184
- package/dist/agent/tests/terminalSessionManager.test.cjs +0 -121
- package/dist/agent/tests/terminalSessionManager.test.d.ts +0 -1
- package/dist/agent/tests/terminalSessionManager.test.js +0 -115
- package/dist/agent/tests/test-agent-loader.cjs +0 -33
- package/dist/agent/tests/test-agent-loader.d.ts +0 -1
- package/dist/agent/tests/test-agent-loader.js +0 -27
- package/dist/agent/tests/test-subagent-loading.cjs +0 -99
- package/dist/agent/tests/test-subagent-loading.d.ts +0 -1
- package/dist/agent/tests/test-subagent-loading.js +0 -93
- package/dist/agent/tests/toolRegistry.test.cjs +0 -147
- package/dist/agent/tests/toolRegistry.test.d.ts +0 -1
- package/dist/agent/tests/toolRegistry.test.js +0 -141
- package/dist/agent/tests/uiRegistryTools.test.cjs +0 -114
- package/dist/agent/tests/uiRegistryTools.test.d.ts +0 -1
- package/dist/agent/tests/uiRegistryTools.test.js +0 -105
- package/dist/agent/tests/xaiImageModel.test.cjs +0 -194
- package/dist/agent/tests/xaiImageModel.test.d.ts +0 -1
- package/dist/agent/tests/xaiImageModel.test.js +0 -188
- package/dist/tests/additionalMessageMiddleware.test.cjs +0 -216
- package/dist/tests/additionalMessageMiddleware.test.d.ts +0 -1
- package/dist/tests/additionalMessageMiddleware.test.js +0 -188
- package/dist/tests/agent-config-voice.test.cjs +0 -25
- package/dist/tests/agent-config-voice.test.d.ts +0 -1
- package/dist/tests/agent-config-voice.test.js +0 -19
- package/dist/tests/agentInvokerAttachments.test.cjs +0 -190
- package/dist/tests/agentInvokerAttachments.test.d.ts +0 -1
- package/dist/tests/agentInvokerAttachments.test.js +0 -184
- package/dist/tests/agentInvokerSummarization.test.cjs +0 -613
- package/dist/tests/agentInvokerSummarization.test.d.ts +0 -1
- package/dist/tests/agentInvokerSummarization.test.js +0 -607
- package/dist/tests/agentInvokerTokenUsage.test.cjs +0 -124
- package/dist/tests/agentInvokerTokenUsage.test.d.ts +0 -1
- package/dist/tests/agentInvokerTokenUsage.test.js +0 -118
- package/dist/tests/agentInvokerWorkdir.test.cjs +0 -150
- package/dist/tests/agentInvokerWorkdir.test.d.ts +0 -1
- package/dist/tests/agentInvokerWorkdir.test.js +0 -122
- package/dist/tests/agents-api.test.cjs +0 -324
- package/dist/tests/agents-api.test.d.ts +0 -1
- package/dist/tests/agents-api.test.js +0 -318
- package/dist/tests/attachments-utils.test.cjs +0 -46
- package/dist/tests/attachments-utils.test.d.ts +0 -1
- package/dist/tests/attachments-utils.test.js +0 -40
- package/dist/tests/browser-command.test.cjs +0 -264
- package/dist/tests/browser-command.test.d.ts +0 -1
- package/dist/tests/browser-command.test.js +0 -258
- package/dist/tests/browser-relay-server.test.cjs +0 -20
- package/dist/tests/browser-relay-server.test.d.ts +0 -1
- package/dist/tests/browser-relay-server.test.js +0 -14
- package/dist/tests/bunSqliteAdapter.test.cjs +0 -265
- package/dist/tests/bunSqliteAdapter.test.d.ts +0 -1
- package/dist/tests/bunSqliteAdapter.test.js +0 -259
- package/dist/tests/candleRange.test.cjs +0 -48
- package/dist/tests/candleRange.test.d.ts +0 -1
- package/dist/tests/candleRange.test.js +0 -42
- package/dist/tests/cli-config-loader.test.cjs +0 -532
- package/dist/tests/cli-config-loader.test.d.ts +0 -1
- package/dist/tests/cli-config-loader.test.js +0 -526
- package/dist/tests/cli-config-warnings.test.cjs +0 -94
- package/dist/tests/cli-config-warnings.test.d.ts +0 -1
- package/dist/tests/cli-config-warnings.test.js +0 -88
- package/dist/tests/cli-init.test.cjs +0 -225
- package/dist/tests/cli-init.test.d.ts +0 -1
- package/dist/tests/cli-init.test.js +0 -219
- package/dist/tests/cli-workspace-root.test.cjs +0 -114
- package/dist/tests/cli-workspace-root.test.d.ts +0 -1
- package/dist/tests/cli-workspace-root.test.js +0 -108
- package/dist/tests/codex-credentials-precedence.test.cjs +0 -94
- package/dist/tests/codex-credentials-precedence.test.d.ts +0 -1
- package/dist/tests/codex-credentials-precedence.test.js +0 -88
- package/dist/tests/codex-provider.test.cjs +0 -383
- package/dist/tests/codex-provider.test.d.ts +0 -1
- package/dist/tests/codex-provider.test.js +0 -377
- package/dist/tests/config-json-schema.test.cjs +0 -37
- package/dist/tests/config-json-schema.test.d.ts +0 -1
- package/dist/tests/config-json-schema.test.js +0 -31
- package/dist/tests/discord-adapter.test.cjs +0 -89
- package/dist/tests/discord-adapter.test.d.ts +0 -1
- package/dist/tests/discord-adapter.test.js +0 -83
- package/dist/tests/falRuntime.test.cjs +0 -78
- package/dist/tests/falRuntime.test.d.ts +0 -1
- package/dist/tests/falRuntime.test.js +0 -72
- package/dist/tests/falSummary.test.cjs +0 -51
- package/dist/tests/falSummary.test.d.ts +0 -1
- package/dist/tests/falSummary.test.js +0 -45
- package/dist/tests/fs-api.test.cjs +0 -138
- package/dist/tests/fs-api.test.d.ts +0 -1
- package/dist/tests/fs-api.test.js +0 -132
- package/dist/tests/gateway-command-workspace.test.cjs +0 -150
- package/dist/tests/gateway-command-workspace.test.d.ts +0 -1
- package/dist/tests/gateway-command-workspace.test.js +0 -144
- package/dist/tests/gateway-http-security.test.cjs +0 -318
- package/dist/tests/gateway-http-security.test.d.ts +0 -1
- package/dist/tests/gateway-http-security.test.js +0 -312
- package/dist/tests/gateway-node-mode.test.cjs +0 -174
- package/dist/tests/gateway-node-mode.test.d.ts +0 -1
- package/dist/tests/gateway-node-mode.test.js +0 -168
- package/dist/tests/gateway-origin-policy.test.cjs +0 -82
- package/dist/tests/gateway-origin-policy.test.d.ts +0 -1
- package/dist/tests/gateway-origin-policy.test.js +0 -76
- package/dist/tests/gateway-request-execution-overrides.test.cjs +0 -42
- package/dist/tests/gateway-request-execution-overrides.test.d.ts +0 -1
- package/dist/tests/gateway-request-execution-overrides.test.js +0 -36
- package/dist/tests/gateway.test.cjs +0 -700
- package/dist/tests/gateway.test.d.ts +0 -1
- package/dist/tests/gateway.test.js +0 -694
- package/dist/tests/hooks-matcher.test.cjs +0 -309
- package/dist/tests/hooks-matcher.test.d.ts +0 -1
- package/dist/tests/hooks-matcher.test.js +0 -303
- package/dist/tests/hooks-merger.test.cjs +0 -528
- package/dist/tests/hooks-merger.test.d.ts +0 -1
- package/dist/tests/hooks-merger.test.js +0 -522
- package/dist/tests/imagePersistence.test.cjs +0 -169
- package/dist/tests/imagePersistence.test.d.ts +0 -1
- package/dist/tests/imagePersistence.test.js +0 -163
- package/dist/tests/integration/agent-invocation.integration.test.cjs +0 -264
- package/dist/tests/integration/agent-invocation.integration.test.d.ts +0 -1
- package/dist/tests/integration/agent-invocation.integration.test.js +0 -258
- package/dist/tests/integration/finnhub-candles.integration.test.cjs +0 -98
- package/dist/tests/integration/finnhub-candles.integration.test.d.ts +0 -1
- package/dist/tests/integration/finnhub-candles.integration.test.js +0 -92
- package/dist/tests/integration/summarization-e2e.integration.test.cjs +0 -127
- package/dist/tests/integration/summarization-e2e.integration.test.d.ts +0 -1
- package/dist/tests/integration/summarization-e2e.integration.test.js +0 -121
- package/dist/tests/logger.test.cjs +0 -353
- package/dist/tests/logger.test.d.ts +0 -1
- package/dist/tests/logger.test.js +0 -347
- package/dist/tests/mediaCompatibilityMiddleware.test.cjs +0 -106
- package/dist/tests/mediaCompatibilityMiddleware.test.d.ts +0 -1
- package/dist/tests/mediaCompatibilityMiddleware.test.js +0 -100
- package/dist/tests/node-tools.test.cjs +0 -77
- package/dist/tests/node-tools.test.d.ts +0 -1
- package/dist/tests/node-tools.test.js +0 -71
- package/dist/tests/nodes-api.test.cjs +0 -86
- package/dist/tests/nodes-api.test.d.ts +0 -1
- package/dist/tests/nodes-api.test.js +0 -80
- package/dist/tests/outputManagerContextSummarized.test.cjs +0 -43
- package/dist/tests/outputManagerContextSummarized.test.d.ts +0 -1
- package/dist/tests/outputManagerContextSummarized.test.js +0 -37
- package/dist/tests/provider-command-codex.test.cjs +0 -57
- package/dist/tests/provider-command-codex.test.d.ts +0 -1
- package/dist/tests/provider-command-codex.test.js +0 -51
- package/dist/tests/routines-api.test.cjs +0 -107
- package/dist/tests/routines-api.test.d.ts +0 -1
- package/dist/tests/routines-api.test.js +0 -101
- package/dist/tests/run-terminal-bench-official-script.test.cjs +0 -61
- package/dist/tests/run-terminal-bench-official-script.test.d.ts +0 -1
- package/dist/tests/run-terminal-bench-official-script.test.js +0 -55
- package/dist/tests/sessionManager-uionly.test.cjs +0 -50
- package/dist/tests/sessionManager-uionly.test.d.ts +0 -1
- package/dist/tests/sessionManager-uionly.test.js +0 -44
- package/dist/tests/sessionMessageAttachments.test.cjs +0 -197
- package/dist/tests/sessionMessageAttachments.test.d.ts +0 -1
- package/dist/tests/sessionMessageAttachments.test.js +0 -191
- package/dist/tests/sessionMessageRole.test.cjs +0 -44
- package/dist/tests/sessionMessageRole.test.d.ts +0 -1
- package/dist/tests/sessionMessageRole.test.js +0 -38
- package/dist/tests/sessionStateMessages.test.cjs +0 -236
- package/dist/tests/sessionStateMessages.test.d.ts +0 -1
- package/dist/tests/sessionStateMessages.test.js +0 -230
- package/dist/tests/sessions-api.test.cjs +0 -250
- package/dist/tests/sessions-api.test.d.ts +0 -1
- package/dist/tests/sessions-api.test.js +0 -244
- package/dist/tests/skill-activation.test.cjs +0 -86
- package/dist/tests/skill-activation.test.d.ts +0 -1
- package/dist/tests/skill-activation.test.js +0 -80
- package/dist/tests/skill-metadata.test.cjs +0 -119
- package/dist/tests/skill-metadata.test.d.ts +0 -1
- package/dist/tests/skill-metadata.test.js +0 -113
- package/dist/tests/skill-repository.test.cjs +0 -469
- package/dist/tests/skill-repository.test.d.ts +0 -1
- package/dist/tests/skill-repository.test.js +0 -463
- package/dist/tests/skill-security-scanner.test.cjs +0 -126
- package/dist/tests/skill-security-scanner.test.d.ts +0 -1
- package/dist/tests/skill-security-scanner.test.js +0 -120
- package/dist/tests/sms-api.test.cjs +0 -183
- package/dist/tests/sms-api.test.d.ts +0 -1
- package/dist/tests/sms-api.test.js +0 -177
- package/dist/tests/sms-commands.test.cjs +0 -90
- package/dist/tests/sms-commands.test.d.ts +0 -1
- package/dist/tests/sms-commands.test.js +0 -84
- package/dist/tests/sms-policy-store.test.cjs +0 -69
- package/dist/tests/sms-policy-store.test.d.ts +0 -1
- package/dist/tests/sms-policy-store.test.js +0 -63
- package/dist/tests/teams-adapter.test.cjs +0 -58
- package/dist/tests/teams-adapter.test.d.ts +0 -1
- package/dist/tests/teams-adapter.test.js +0 -52
- package/dist/tests/technicalIndicators.test.cjs +0 -82
- package/dist/tests/technicalIndicators.test.d.ts +0 -1
- package/dist/tests/technicalIndicators.test.js +0 -76
- package/dist/tests/terminal-bench-adapters-helpers.test.cjs +0 -64
- package/dist/tests/terminal-bench-adapters-helpers.test.d.ts +0 -1
- package/dist/tests/terminal-bench-adapters-helpers.test.js +0 -58
- package/dist/tests/terminal-bench-cleanup.test.cjs +0 -93
- package/dist/tests/terminal-bench-cleanup.test.d.ts +0 -1
- package/dist/tests/terminal-bench-cleanup.test.js +0 -87
- package/dist/tests/terminal-bench-config.test.cjs +0 -62
- package/dist/tests/terminal-bench-config.test.d.ts +0 -1
- package/dist/tests/terminal-bench-config.test.js +0 -56
- package/dist/tests/terminal-bench-official.test.cjs +0 -194
- package/dist/tests/terminal-bench-official.test.d.ts +0 -1
- package/dist/tests/terminal-bench-official.test.js +0 -188
- package/dist/tests/terminal-bench-runner.test.cjs +0 -82
- package/dist/tests/terminal-bench-runner.test.d.ts +0 -1
- package/dist/tests/terminal-bench-runner.test.js +0 -76
- package/dist/tests/terminal-bench-scoring.test.cjs +0 -128
- package/dist/tests/terminal-bench-scoring.test.d.ts +0 -1
- package/dist/tests/terminal-bench-scoring.test.js +0 -122
- package/dist/tests/terminalProbe.test.cjs +0 -45
- package/dist/tests/terminalProbe.test.d.ts +0 -1
- package/dist/tests/terminalProbe.test.js +0 -39
- package/dist/tests/terminalProbeAuth.test.cjs +0 -85
- package/dist/tests/terminalProbeAuth.test.d.ts +0 -1
- package/dist/tests/terminalProbeAuth.test.js +0 -79
- package/dist/tests/toolDisplayHelpers.test.cjs +0 -46
- package/dist/tests/toolDisplayHelpers.test.d.ts +0 -1
- package/dist/tests/toolDisplayHelpers.test.js +0 -40
- package/dist/tests/uv.test.cjs +0 -47
- package/dist/tests/uv.test.d.ts +0 -1
- package/dist/tests/uv.test.js +0 -41
- package/dist/tests/voice-config.test.cjs +0 -35
- package/dist/tests/voice-config.test.d.ts +0 -1
- package/dist/tests/voice-config.test.js +0 -29
- package/dist/tests/websocket-transport.test.cjs +0 -31
- package/dist/tests/websocket-transport.test.d.ts +0 -1
- package/dist/tests/websocket-transport.test.js +0 -25
- package/dist/tests/yahooCandles.test.cjs +0 -111
- package/dist/tests/yahooCandles.test.d.ts +0 -1
- package/dist/tests/yahooCandles.test.js +0 -105
- package/dist/tools/finance/optionsAnalytics.test.cjs +0 -128
- package/dist/tools/finance/optionsAnalytics.test.d.ts +0 -1
- package/dist/tools/finance/optionsAnalytics.test.js +0 -122
- package/dist/webui/assets/index-BMf95nv5.js +0 -215
- package/dist/webui/assets/index-DhJQ8Mbn.css +0 -11
|
@@ -1,248 +1,139 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}) => Promise<string | null>;
|
|
35
|
-
evaluate: (expression: string) => Promise<unknown>;
|
|
36
|
-
screenshot: (options: {
|
|
37
|
-
path: string;
|
|
38
|
-
fullPage?: boolean;
|
|
39
|
-
}) => Promise<unknown>;
|
|
40
|
-
title: () => Promise<string>;
|
|
41
|
-
url: () => string;
|
|
42
|
-
};
|
|
43
|
-
type BrowserContextLike = {
|
|
44
|
-
pages: () => BrowserPageLike[];
|
|
45
|
-
newPage: () => Promise<BrowserPageLike>;
|
|
46
|
-
close?: () => Promise<unknown>;
|
|
47
|
-
};
|
|
48
|
-
type BrowserLike = {
|
|
49
|
-
contexts: () => BrowserContextLike[];
|
|
50
|
-
close: () => Promise<unknown>;
|
|
51
|
-
};
|
|
52
|
-
type LaunchPersistentContextOptions = {
|
|
53
|
-
executablePath?: string;
|
|
54
|
-
headless?: boolean;
|
|
55
|
-
timeout?: number;
|
|
56
|
-
args?: string[];
|
|
57
|
-
ignoreDefaultArgs?: string[];
|
|
58
|
-
};
|
|
59
|
-
type PlaywrightLike = {
|
|
60
|
-
chromium: {
|
|
61
|
-
connectOverCDP: (wsEndpoint: string, options?: {
|
|
62
|
-
timeout?: number;
|
|
63
|
-
}) => Promise<BrowserLike>;
|
|
64
|
-
launchPersistentContext?: (userDataDir: string, options?: LaunchPersistentContextOptions) => Promise<BrowserContextLike>;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
interface StartChromeInput {
|
|
68
|
-
executablePath?: string;
|
|
69
|
-
headless: boolean;
|
|
70
|
-
launchTimeoutMs: number;
|
|
71
|
-
userDataDir: string;
|
|
72
|
-
chromeArgs?: string[];
|
|
73
|
-
}
|
|
74
|
-
interface StartedChromeSession {
|
|
75
|
-
wsEndpoint: string;
|
|
76
|
-
close: () => Promise<void>;
|
|
77
|
-
}
|
|
78
|
-
type BrowserTransportPreference = "auto" | "playwright" | "relay";
|
|
79
|
-
type BrowserRelayRuntimeConfig = {
|
|
80
|
-
enabled?: boolean;
|
|
81
|
-
host?: string;
|
|
82
|
-
port?: number;
|
|
83
|
-
requireAuth?: boolean;
|
|
84
|
-
authToken?: string;
|
|
85
|
-
};
|
|
86
|
-
type ResolvedBrowserRelayConfig = {
|
|
87
|
-
host: string;
|
|
88
|
-
port: number;
|
|
89
|
-
requireAuth: boolean;
|
|
90
|
-
authToken?: string;
|
|
91
|
-
};
|
|
92
|
-
interface BrowserControlDependencies {
|
|
93
|
-
importPlaywright: () => Promise<PlaywrightLike>;
|
|
94
|
-
startChrome: (input: StartChromeInput) => Promise<StartedChromeSession>;
|
|
95
|
-
resolveRelayWsEndpoint: (config: ResolvedBrowserRelayConfig, timeoutMs: number) => Promise<string>;
|
|
96
|
-
mkTempDir: () => string;
|
|
97
|
-
removeDir: (target: string) => void;
|
|
98
|
-
now: () => number;
|
|
99
|
-
}
|
|
100
|
-
export interface BrowserControlToolOptions {
|
|
101
|
-
workspace?: string;
|
|
102
|
-
configWorkspace?: string;
|
|
103
|
-
launchTimeoutMs?: number;
|
|
104
|
-
defaultExecutablePath?: string;
|
|
105
|
-
browserProfile?: string;
|
|
106
|
-
browserTransport?: BrowserTransportPreference;
|
|
107
|
-
relayConfig?: BrowserRelayRuntimeConfig;
|
|
108
|
-
profilesRootDir?: string;
|
|
109
|
-
profilePaths?: Record<string, string>;
|
|
110
|
-
browserExtensions?: string[];
|
|
111
|
-
extensionsRootDir?: string;
|
|
112
|
-
extensionPaths?: Record<string, string>;
|
|
113
|
-
defaultExtensions?: string[];
|
|
114
|
-
preferPersistentLaunch?: boolean;
|
|
115
|
-
}
|
|
116
|
-
export declare function clearStaleDevtoolsArtifacts(userDataDir: string): void;
|
|
117
|
-
export declare const createBrowserControlTool: (options?: BrowserControlToolOptions, dependencies?: Partial<BrowserControlDependencies>) => import("langchain").DynamicStructuredTool<z.ZodObject<{
|
|
118
|
-
url: z.ZodOptional<z.ZodString>;
|
|
119
|
-
actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
120
|
-
type: z.ZodLiteral<"navigate">;
|
|
121
|
-
url: z.ZodString;
|
|
122
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
-
type: z.ZodLiteral<"url">;
|
|
124
|
-
url: z.ZodString;
|
|
125
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
-
type: z.ZodLiteral<"open">;
|
|
127
|
-
url: z.ZodString;
|
|
128
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
-
type: z.ZodLiteral<"goto">;
|
|
130
|
-
url: z.ZodString;
|
|
131
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
-
type: z.ZodLiteral<"click">;
|
|
133
|
-
selector: z.ZodString;
|
|
134
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
-
type: z.ZodLiteral<"type">;
|
|
136
|
-
selector: z.ZodString;
|
|
137
|
-
text: z.ZodString;
|
|
138
|
-
submit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
139
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
-
type: z.ZodLiteral<"press">;
|
|
141
|
-
key: z.ZodString;
|
|
142
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
143
|
-
type: z.ZodLiteral<"wait">;
|
|
144
|
-
ms: z.ZodOptional<z.ZodNumber>;
|
|
145
|
-
selector: z.ZodOptional<z.ZodString>;
|
|
146
|
-
url: z.ZodOptional<z.ZodString>;
|
|
147
|
-
load: z.ZodOptional<z.ZodEnum<{
|
|
1
|
+
import { type BrowserControlDependencies, type BrowserControlToolOptions, clearStaleDevtoolsArtifacts } from "./browser_runtime.js";
|
|
2
|
+
export { clearStaleDevtoolsArtifacts };
|
|
3
|
+
export declare const createBrowserControlTool: (options?: BrowserControlToolOptions, dependencies?: Partial<BrowserControlDependencies>) => import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
actions: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
6
|
+
type: import("zod").ZodLiteral<"navigate">;
|
|
7
|
+
url: import("zod").ZodString;
|
|
8
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
9
|
+
type: import("zod").ZodLiteral<"url">;
|
|
10
|
+
url: import("zod").ZodString;
|
|
11
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
12
|
+
type: import("zod").ZodLiteral<"open">;
|
|
13
|
+
url: import("zod").ZodString;
|
|
14
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
15
|
+
type: import("zod").ZodLiteral<"goto">;
|
|
16
|
+
url: import("zod").ZodString;
|
|
17
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
18
|
+
type: import("zod").ZodLiteral<"click">;
|
|
19
|
+
selector: import("zod").ZodString;
|
|
20
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
21
|
+
type: import("zod").ZodLiteral<"type">;
|
|
22
|
+
selector: import("zod").ZodString;
|
|
23
|
+
text: import("zod").ZodString;
|
|
24
|
+
submit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
25
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
26
|
+
type: import("zod").ZodLiteral<"press">;
|
|
27
|
+
key: import("zod").ZodString;
|
|
28
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
29
|
+
type: import("zod").ZodLiteral<"wait">;
|
|
30
|
+
ms: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
31
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
load: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
148
34
|
load: "load";
|
|
149
35
|
domcontentloaded: "domcontentloaded";
|
|
150
36
|
networkidle: "networkidle";
|
|
151
37
|
}>>;
|
|
152
|
-
fn:
|
|
153
|
-
timeoutMs:
|
|
154
|
-
},
|
|
155
|
-
type:
|
|
156
|
-
ms:
|
|
157
|
-
},
|
|
158
|
-
type:
|
|
159
|
-
ms:
|
|
160
|
-
},
|
|
161
|
-
type:
|
|
162
|
-
ms:
|
|
163
|
-
},
|
|
164
|
-
selector:
|
|
165
|
-
url:
|
|
166
|
-
load:
|
|
38
|
+
fn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
39
|
+
timeoutMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
40
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
41
|
+
type: import("zod").ZodLiteral<"ms">;
|
|
42
|
+
ms: import("zod").ZodNumber;
|
|
43
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
44
|
+
type: import("zod").ZodLiteral<"sleep">;
|
|
45
|
+
ms: import("zod").ZodNumber;
|
|
46
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
47
|
+
type: import("zod").ZodLiteral<"pause">;
|
|
48
|
+
ms: import("zod").ZodNumber;
|
|
49
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
50
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
+
load: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
167
53
|
load: "load";
|
|
168
54
|
domcontentloaded: "domcontentloaded";
|
|
169
55
|
networkidle: "networkidle";
|
|
170
56
|
}>>;
|
|
171
|
-
fn:
|
|
172
|
-
timeoutMs:
|
|
173
|
-
type:
|
|
174
|
-
},
|
|
175
|
-
selector:
|
|
176
|
-
url:
|
|
177
|
-
load:
|
|
57
|
+
fn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
58
|
+
timeoutMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
59
|
+
type: import("zod").ZodLiteral<"wait_for">;
|
|
60
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
61
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
62
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
load: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
178
64
|
load: "load";
|
|
179
65
|
domcontentloaded: "domcontentloaded";
|
|
180
66
|
networkidle: "networkidle";
|
|
181
67
|
}>>;
|
|
182
|
-
fn:
|
|
183
|
-
timeoutMs:
|
|
184
|
-
type:
|
|
185
|
-
},
|
|
186
|
-
type:
|
|
187
|
-
selector:
|
|
188
|
-
maxChars:
|
|
189
|
-
},
|
|
190
|
-
type:
|
|
191
|
-
selector:
|
|
192
|
-
maxChars:
|
|
193
|
-
},
|
|
194
|
-
type:
|
|
195
|
-
selector:
|
|
196
|
-
maxChars:
|
|
197
|
-
},
|
|
198
|
-
type:
|
|
199
|
-
selector:
|
|
200
|
-
maxChars:
|
|
201
|
-
},
|
|
202
|
-
type:
|
|
203
|
-
selector:
|
|
204
|
-
maxChars:
|
|
205
|
-
},
|
|
206
|
-
type:
|
|
207
|
-
selector:
|
|
208
|
-
maxChars:
|
|
209
|
-
},
|
|
210
|
-
type:
|
|
211
|
-
selector:
|
|
212
|
-
maxChars:
|
|
213
|
-
},
|
|
214
|
-
type:
|
|
215
|
-
path:
|
|
216
|
-
fullPage:
|
|
217
|
-
},
|
|
218
|
-
type:
|
|
219
|
-
path:
|
|
220
|
-
fullPage:
|
|
221
|
-
},
|
|
222
|
-
type:
|
|
223
|
-
path:
|
|
224
|
-
fullPage:
|
|
225
|
-
},
|
|
226
|
-
type:
|
|
227
|
-
path:
|
|
228
|
-
fullPage:
|
|
229
|
-
},
|
|
230
|
-
type:
|
|
231
|
-
expression:
|
|
232
|
-
},
|
|
233
|
-
type:
|
|
234
|
-
expression:
|
|
235
|
-
},
|
|
236
|
-
type:
|
|
237
|
-
expression:
|
|
238
|
-
},
|
|
239
|
-
type:
|
|
240
|
-
expression:
|
|
241
|
-
},
|
|
242
|
-
headless:
|
|
243
|
-
timeoutMs:
|
|
244
|
-
executablePath:
|
|
245
|
-
|
|
68
|
+
fn: import("zod").ZodOptional<import("zod").ZodString>;
|
|
69
|
+
timeoutMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
70
|
+
type: import("zod").ZodLiteral<"wait_until">;
|
|
71
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
72
|
+
type: import("zod").ZodLiteral<"extract_text">;
|
|
73
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
74
|
+
maxChars: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
75
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
76
|
+
type: import("zod").ZodLiteral<"selector">;
|
|
77
|
+
selector: import("zod").ZodString;
|
|
78
|
+
maxChars: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
79
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
80
|
+
type: import("zod").ZodLiteral<"extract">;
|
|
81
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
+
maxChars: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
83
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
84
|
+
type: import("zod").ZodLiteral<"getContent">;
|
|
85
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
+
maxChars: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
87
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
88
|
+
type: import("zod").ZodLiteral<"get_content">;
|
|
89
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
90
|
+
maxChars: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
91
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
92
|
+
type: import("zod").ZodLiteral<"querySelector">;
|
|
93
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
+
maxChars: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
95
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
96
|
+
type: import("zod").ZodLiteral<"query_selector">;
|
|
97
|
+
selector: import("zod").ZodOptional<import("zod").ZodString>;
|
|
98
|
+
maxChars: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
99
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
100
|
+
type: import("zod").ZodLiteral<"screenshot">;
|
|
101
|
+
path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
|
+
fullPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
103
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
104
|
+
type: import("zod").ZodLiteral<"path">;
|
|
105
|
+
path: import("zod").ZodString;
|
|
106
|
+
fullPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
107
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
108
|
+
type: import("zod").ZodLiteral<"snapshot">;
|
|
109
|
+
path: import("zod").ZodString;
|
|
110
|
+
fullPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
111
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
112
|
+
type: import("zod").ZodLiteral<"capture">;
|
|
113
|
+
path: import("zod").ZodString;
|
|
114
|
+
fullPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
115
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
116
|
+
type: import("zod").ZodLiteral<"evaluate">;
|
|
117
|
+
expression: import("zod").ZodString;
|
|
118
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
119
|
+
type: import("zod").ZodLiteral<"expression">;
|
|
120
|
+
expression: import("zod").ZodString;
|
|
121
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
122
|
+
type: import("zod").ZodLiteral<"js">;
|
|
123
|
+
expression: import("zod").ZodString;
|
|
124
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
125
|
+
type: import("zod").ZodLiteral<"script">;
|
|
126
|
+
expression: import("zod").ZodString;
|
|
127
|
+
}, import("zod/v4/core").$strip>], "type">>>>;
|
|
128
|
+
headless: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
129
|
+
timeoutMs: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
130
|
+
executablePath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
131
|
+
transport: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
132
|
+
auto: "auto";
|
|
133
|
+
playwright: "playwright";
|
|
134
|
+
relay: "relay";
|
|
135
|
+
}>>;
|
|
136
|
+
}, import("zod/v4/core").$strip>, {
|
|
246
137
|
actions: ({
|
|
247
138
|
type: "wait";
|
|
248
139
|
ms?: number | undefined;
|
|
@@ -358,6 +249,7 @@ export declare const createBrowserControlTool: (options?: BrowserControlToolOpti
|
|
|
358
249
|
url?: string | undefined;
|
|
359
250
|
headless?: boolean | undefined;
|
|
360
251
|
executablePath?: string | undefined;
|
|
252
|
+
transport?: "auto" | "playwright" | "relay" | undefined;
|
|
361
253
|
}, {
|
|
362
254
|
url?: string | undefined;
|
|
363
255
|
actions?: ({
|
|
@@ -474,5 +366,5 @@ export declare const createBrowserControlTool: (options?: BrowserControlToolOpti
|
|
|
474
366
|
headless?: boolean | undefined;
|
|
475
367
|
timeoutMs?: number | undefined;
|
|
476
368
|
executablePath?: string | undefined;
|
|
369
|
+
transport?: "auto" | "playwright" | "relay" | undefined;
|
|
477
370
|
}, string, "browser_control">;
|
|
478
|
-
export {};
|