donobu 2.48.0 → 2.49.0
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/apis/ToolsApi.d.ts.map +1 -1
- package/dist/apis/ToolsApi.js +26 -2
- package/dist/apis/ToolsApi.js.map +1 -1
- package/dist/assets/generated/version +1 -1
- package/dist/envVars.d.ts +30 -121
- package/dist/envVars.d.ts.map +1 -1
- package/dist/envVars.js +108 -152
- package/dist/envVars.js.map +1 -1
- package/dist/esm/apis/ToolsApi.d.ts.map +1 -1
- package/dist/esm/apis/ToolsApi.js +26 -2
- package/dist/esm/apis/ToolsApi.js.map +1 -1
- package/dist/esm/assets/generated/version +1 -1
- package/dist/esm/envVars.d.ts +30 -121
- package/dist/esm/envVars.d.ts.map +1 -1
- package/dist/esm/envVars.js +108 -152
- package/dist/esm/envVars.js.map +1 -1
- package/dist/esm/lib/PageAi.d.ts.map +1 -1
- package/dist/esm/lib/PageAi.js +10 -11
- package/dist/esm/lib/PageAi.js.map +1 -1
- package/dist/esm/lib/fixtures/gptClients.d.ts +31 -0
- package/dist/esm/lib/fixtures/gptClients.d.ts.map +1 -1
- package/dist/esm/lib/testExtension.js +1 -1
- package/dist/esm/lib/testExtension.js.map +1 -1
- package/dist/esm/lib/utils/donobuTestStack.d.ts +18 -0
- package/dist/esm/lib/utils/donobuTestStack.d.ts.map +1 -1
- package/dist/esm/lib/utils/triageTestFailure.d.ts.map +1 -1
- package/dist/esm/lib/utils/triageTestFailure.js +4 -4
- package/dist/esm/lib/utils/triageTestFailure.js.map +1 -1
- package/dist/esm/managers/DonobuFlowsManager.d.ts +25 -59
- package/dist/esm/managers/DonobuFlowsManager.d.ts.map +1 -1
- package/dist/esm/managers/DonobuFlowsManager.js +322 -301
- package/dist/esm/managers/DonobuFlowsManager.js.map +1 -1
- package/dist/esm/managers/DonobuStack.d.ts +18 -0
- package/dist/esm/managers/DonobuStack.d.ts.map +1 -1
- package/dist/esm/managers/DonobuStack.js +1 -1
- package/dist/esm/managers/DonobuStack.js.map +1 -1
- package/dist/esm/managers/GptConfigsManager.js +36 -3
- package/dist/esm/managers/GptConfigsManager.js.map +1 -1
- package/dist/esm/managers/ToolManager.d.ts +2 -0
- package/dist/esm/managers/ToolManager.d.ts.map +1 -1
- package/dist/esm/managers/ToolManager.js +9 -5
- package/dist/esm/managers/ToolManager.js.map +1 -1
- package/dist/esm/persistence/DonobuSqliteDb.d.ts +2 -3
- package/dist/esm/persistence/DonobuSqliteDb.d.ts.map +1 -1
- package/dist/esm/persistence/DonobuSqliteDb.js +55 -25
- package/dist/esm/persistence/DonobuSqliteDb.js.map +1 -1
- package/dist/esm/persistence/env/EnvPersistenceFactoryImpl.d.ts.map +1 -1
- package/dist/esm/persistence/env/EnvPersistenceFactoryImpl.js +1 -1
- package/dist/esm/persistence/env/EnvPersistenceFactoryImpl.js.map +1 -1
- package/dist/esm/persistence/flows/FlowsPersistenceFactoryImpl.d.ts +0 -5
- package/dist/esm/persistence/flows/FlowsPersistenceFactoryImpl.d.ts.map +1 -1
- package/dist/esm/persistence/flows/FlowsPersistenceFactoryImpl.js +2 -129
- package/dist/esm/persistence/flows/FlowsPersistenceFactoryImpl.js.map +1 -1
- package/dist/esm/persistence/flows/FlowsPersistenceSqlite.d.ts.map +1 -1
- package/dist/esm/persistence/flows/FlowsPersistenceSqlite.js +25 -17
- package/dist/esm/persistence/flows/FlowsPersistenceSqlite.js.map +1 -1
- package/dist/esm/tools/AssertPageTextTool.js +1 -1
- package/dist/esm/tools/AssertPageTextTool.js.map +1 -1
- package/dist/esm/utils/BrowserUtils.d.ts +6 -0
- package/dist/esm/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/esm/utils/BrowserUtils.js +2 -5
- package/dist/esm/utils/BrowserUtils.js.map +1 -1
- package/dist/esm/utils/MiscUtils.d.ts +4 -0
- package/dist/esm/utils/MiscUtils.d.ts.map +1 -1
- package/dist/lib/PageAi.d.ts.map +1 -1
- package/dist/lib/PageAi.js +10 -11
- package/dist/lib/PageAi.js.map +1 -1
- package/dist/lib/fixtures/gptClients.d.ts +31 -0
- package/dist/lib/fixtures/gptClients.d.ts.map +1 -1
- package/dist/lib/testExtension.js +1 -1
- package/dist/lib/testExtension.js.map +1 -1
- package/dist/lib/utils/donobuTestStack.d.ts +18 -0
- package/dist/lib/utils/donobuTestStack.d.ts.map +1 -1
- package/dist/lib/utils/triageTestFailure.d.ts.map +1 -1
- package/dist/lib/utils/triageTestFailure.js +4 -4
- package/dist/lib/utils/triageTestFailure.js.map +1 -1
- package/dist/managers/DonobuFlowsManager.d.ts +25 -59
- package/dist/managers/DonobuFlowsManager.d.ts.map +1 -1
- package/dist/managers/DonobuFlowsManager.js +322 -301
- package/dist/managers/DonobuFlowsManager.js.map +1 -1
- package/dist/managers/DonobuStack.d.ts +18 -0
- package/dist/managers/DonobuStack.d.ts.map +1 -1
- package/dist/managers/DonobuStack.js +1 -1
- package/dist/managers/DonobuStack.js.map +1 -1
- package/dist/managers/GptConfigsManager.js +36 -3
- package/dist/managers/GptConfigsManager.js.map +1 -1
- package/dist/managers/ToolManager.d.ts +2 -0
- package/dist/managers/ToolManager.d.ts.map +1 -1
- package/dist/managers/ToolManager.js +9 -5
- package/dist/managers/ToolManager.js.map +1 -1
- package/dist/persistence/DonobuSqliteDb.d.ts +2 -3
- package/dist/persistence/DonobuSqliteDb.d.ts.map +1 -1
- package/dist/persistence/DonobuSqliteDb.js +55 -25
- package/dist/persistence/DonobuSqliteDb.js.map +1 -1
- package/dist/persistence/env/EnvPersistenceFactoryImpl.d.ts.map +1 -1
- package/dist/persistence/env/EnvPersistenceFactoryImpl.js +1 -1
- package/dist/persistence/env/EnvPersistenceFactoryImpl.js.map +1 -1
- package/dist/persistence/flows/FlowsPersistenceFactoryImpl.d.ts +0 -5
- package/dist/persistence/flows/FlowsPersistenceFactoryImpl.d.ts.map +1 -1
- package/dist/persistence/flows/FlowsPersistenceFactoryImpl.js +2 -129
- package/dist/persistence/flows/FlowsPersistenceFactoryImpl.js.map +1 -1
- package/dist/persistence/flows/FlowsPersistenceSqlite.d.ts.map +1 -1
- package/dist/persistence/flows/FlowsPersistenceSqlite.js +25 -17
- package/dist/persistence/flows/FlowsPersistenceSqlite.js.map +1 -1
- package/dist/tools/AssertPageTextTool.js +1 -1
- package/dist/tools/AssertPageTextTool.js.map +1 -1
- package/dist/utils/BrowserUtils.d.ts +6 -0
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.js +2 -5
- package/dist/utils/BrowserUtils.js.map +1 -1
- package/dist/utils/MiscUtils.d.ts +4 -0
- package/dist/utils/MiscUtils.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsApi.d.ts","sourceRoot":"","sources":["../../src/apis/ToolsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolsApi.d.ts","sourceRoot":"","sources":["../../src/apis/ToolsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAYzC,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,UAAU,CAAC,UAAU,CAAC;IACnC,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAeF;;GAEG;AACH,qBAAa,QAAQ;IACnB;;OAEG;IACU,iBAAiB,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAgB5E"}
|
package/dist/apis/ToolsApi.js
CHANGED
|
@@ -3,6 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ToolsApi = void 0;
|
|
4
4
|
const ToolManager_1 = require("../managers/ToolManager");
|
|
5
5
|
const v4_1 = require("zod/v4");
|
|
6
|
+
const AcknowledgeUserInstruction_1 = require("../tools/AcknowledgeUserInstruction");
|
|
7
|
+
const AssertPageTextTool_1 = require("../tools/AssertPageTextTool");
|
|
8
|
+
const DownloadPdfTool_1 = require("../tools/DownloadPdfTool");
|
|
9
|
+
const DetectBrokenLinksTool_1 = require("../tools/DetectBrokenLinksTool");
|
|
10
|
+
const HandleBrowserDialogTool_1 = require("../tools/HandleBrowserDialogTool");
|
|
11
|
+
const PauseForUserInteractionTool_1 = require("../tools/PauseForUserInteractionTool");
|
|
12
|
+
const SaveWebpageAsPdfTool_1 = require("../tools/SaveWebpageAsPdfTool");
|
|
13
|
+
const SolveCaptcha_1 = require("../tools/SolveCaptcha");
|
|
14
|
+
const SolveMfaChallenge_1 = require("../tools/SolveMfaChallenge");
|
|
15
|
+
const TriggerDonobuFlowTool_1 = require("../tools/TriggerDonobuFlowTool");
|
|
16
|
+
const SUPPRESSED_TOOLS_BY_NAME = new Set([
|
|
17
|
+
AcknowledgeUserInstruction_1.AcknowledgeUserInstructionTool.NAME,
|
|
18
|
+
AssertPageTextTool_1.AssertPageTextTool.NAME,
|
|
19
|
+
DownloadPdfTool_1.DownloadPdfTool.NAME,
|
|
20
|
+
DetectBrokenLinksTool_1.DetectBrokenLinksTool.NAME,
|
|
21
|
+
HandleBrowserDialogTool_1.HandleBrowserDialogTool.NAME,
|
|
22
|
+
PauseForUserInteractionTool_1.PauseForUserInteractionTool.NAME,
|
|
23
|
+
SaveWebpageAsPdfTool_1.SaveWebpageAsPdfTool.NAME,
|
|
24
|
+
SolveCaptcha_1.SolveCaptchaTool.NAME,
|
|
25
|
+
SolveMfaChallenge_1.SolveMfaChallengeTool.NAME,
|
|
26
|
+
TriggerDonobuFlowTool_1.TriggerDonobuFlowTool.NAME,
|
|
27
|
+
]);
|
|
6
28
|
/**
|
|
7
29
|
* This class reports the tools supported by the Donobu runtime.
|
|
8
30
|
*/
|
|
@@ -11,8 +33,10 @@ class ToolsApi {
|
|
|
11
33
|
* GET endpoint handler that returns the supported tools as JSON
|
|
12
34
|
*/
|
|
13
35
|
async getSupportedTools(_req, res) {
|
|
14
|
-
const tools = await ToolManager_1.ToolManager.
|
|
15
|
-
const response = tools
|
|
36
|
+
const tools = await ToolManager_1.ToolManager.allTools();
|
|
37
|
+
const response = tools
|
|
38
|
+
.filter((tool) => !SUPPRESSED_TOOLS_BY_NAME.has(tool.name))
|
|
39
|
+
.map((tool) => ({
|
|
16
40
|
name: tool.name,
|
|
17
41
|
description: tool.description,
|
|
18
42
|
inputSchema: v4_1.z.toJSONSchema(tool.inputSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsApi.js","sourceRoot":"","sources":["../../src/apis/ToolsApi.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AACtD,+BAA2B;
|
|
1
|
+
{"version":3,"file":"ToolsApi.js","sourceRoot":"","sources":["../../src/apis/ToolsApi.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AACtD,+BAA2B;AAE3B,oFAAqF;AACrF,oEAAiE;AACjE,8DAA2D;AAC3D,0EAAuE;AACvE,8EAA2E;AAC3E,sFAAmF;AACnF,wEAAqE;AACrE,wDAAyD;AACzD,kEAAmE;AACnE,0EAAuE;AASvE,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC;IACvC,2DAA8B,CAAC,IAAI;IACnC,uCAAkB,CAAC,IAAI;IACvB,iCAAe,CAAC,IAAI;IACpB,6CAAqB,CAAC,IAAI;IAC1B,iDAAuB,CAAC,IAAI;IAC5B,yDAA2B,CAAC,IAAI;IAChC,2CAAoB,CAAC,IAAI;IACzB,+BAAgB,CAAC,IAAI;IACrB,yCAAqB,CAAC,IAAI;IAC1B,6CAAqB,CAAC,IAAI;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAa,QAAQ;IACnB;;OAEG;IACI,KAAK,CAAC,iBAAiB,CAAC,IAAa,EAAE,GAAa;QACzD,MAAM,KAAK,GAAG,MAAM,yBAAW,CAAC,QAAQ,EAAE,CAAC;QAC3C,MAAM,QAAQ,GAAG,KAAK;aACnB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,wBAAwB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC1D,GAAG,CACF,CAAC,IAAI,EAAE,EAAE,CACP,CAAC;YACC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,MAAC,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC;YAC7C,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAyB,CAC7B,CAAC;QAEJ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC;CACF;AApBD,4BAoBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1420
|
package/dist/envVars.d.ts
CHANGED
|
@@ -6,169 +6,78 @@ import { z } from 'zod/v4';
|
|
|
6
6
|
* that may be used in a flow.
|
|
7
7
|
*/
|
|
8
8
|
export declare const env: Env<{
|
|
9
|
-
/**
|
|
10
|
-
* Windows-specific roaming application data directory. This is typically set
|
|
11
|
-
* by the OS and used to derive platform default storage paths. This is
|
|
12
|
-
* ignored if BASE_WORKING_DIR is explicitly set.
|
|
13
|
-
*/
|
|
14
9
|
APPDATA: z.ZodOptional<z.ZodString>;
|
|
15
|
-
/**
|
|
16
|
-
* Overrides the effective working/persistence directory.
|
|
17
|
-
*/
|
|
18
10
|
BASE_WORKING_DIR: z.ZodOptional<z.ZodString>;
|
|
19
|
-
/**
|
|
20
|
-
* If specified, use this base-64 JSON GPT configuration for running flows.
|
|
21
|
-
* This takes priority over all other GPT configuration options.
|
|
22
|
-
*/
|
|
23
11
|
BASE64_GPT_CONFIG: z.ZodOptional<z.ZodString>;
|
|
24
|
-
/**
|
|
25
|
-
* The API key to use for the BrowserBase API.
|
|
26
|
-
*/
|
|
27
12
|
BROWSERBASE_API_KEY: z.ZodOptional<z.ZodString>;
|
|
28
|
-
/**
|
|
29
|
-
* The project ID to use for the BrowserBase API.
|
|
30
|
-
*/
|
|
31
13
|
BROWSERBASE_PROJECT_ID: z.ZodOptional<z.ZodString>;
|
|
32
|
-
/**
|
|
33
|
-
* The deployment environment for this application.
|
|
34
|
-
*
|
|
35
|
-
* If this is set to "DONOBU_HOSTED_MULTI_TENANT" then the
|
|
36
|
-
* SUPABASE_JWT_SECRET_KEY environment variable must also be set.
|
|
37
|
-
*/
|
|
38
14
|
DONOBU_DEPLOYMENT_ENVIRONMENT: z.ZodOptional<z.ZodEnum<{
|
|
39
15
|
LOCAL: "LOCAL";
|
|
40
16
|
DONOBU_HOSTED_MULTI_TENANT: "DONOBU_HOSTED_MULTI_TENANT";
|
|
41
17
|
DONOBU_HOSTED_SINGLE_TENANT: "DONOBU_HOSTED_SINGLE_TENANT";
|
|
42
18
|
}>>;
|
|
43
|
-
/**
|
|
44
|
-
* Automatically create GPT configurations for Anthropic using this API key.
|
|
45
|
-
* For convenience, the created configuration names will reflect the
|
|
46
|
-
* underlying models they map to (ex: "claude-3-7-sonnet-latest", etc).
|
|
47
|
-
*/
|
|
48
19
|
ANTHROPIC_API_KEY: z.ZodOptional<z.ZodString>;
|
|
49
|
-
/**
|
|
50
|
-
* If specified, this will shade the default flow runner agent when running
|
|
51
|
-
* flows. If specified, ANTHROPIC_API_KEY must also be specified.
|
|
52
|
-
*/
|
|
53
20
|
ANTHROPIC_MODEL_NAME: z.ZodOptional<z.ZodString>;
|
|
54
|
-
/**
|
|
55
|
-
* Internal flag the CLI sets while running an auto-heal retry. Fixtures can use this to
|
|
56
|
-
* annotate healed tests or branch logic without relying on CLI arguments. Treat any non-false
|
|
57
|
-
* value ("1"/"true") as meaning the current Playwright invocation is part of an automated heal.
|
|
58
|
-
*/
|
|
59
21
|
DONOBU_AUTO_HEAL_ACTIVE: z.ZodOptional<z.ZodEnum<{
|
|
60
22
|
0: "0";
|
|
61
23
|
1: "1";
|
|
62
24
|
true: "true";
|
|
63
25
|
false: "false";
|
|
64
26
|
}>>;
|
|
65
|
-
/**
|
|
66
|
-
* When truthy (for example '1' or 'true'), instructs the Playwright fixtures to
|
|
67
|
-
* bypass and invalidate Page.AI cache entries for the current run. The Donobu
|
|
68
|
-
* CLI sets this automatically when invoked with `--clear-ai-cache` so a retry
|
|
69
|
-
* always regenerates selectors from scratch.
|
|
70
|
-
*/
|
|
71
27
|
DONOBU_PAGE_AI_CLEAR_CACHE: z.ZodOptional<z.ZodEnum<{
|
|
72
28
|
0: "0";
|
|
73
29
|
1: "1";
|
|
74
30
|
true: "true";
|
|
75
31
|
false: "false";
|
|
76
32
|
}>>;
|
|
77
|
-
/**
|
|
78
|
-
* Automatically create GPT configurations for Google Gemini using this API key.
|
|
79
|
-
* For convenience, the created configuration names will reflect the
|
|
80
|
-
* underlying models they map to (ex: "gemini-2.0-flash", etc).
|
|
81
|
-
*/
|
|
82
33
|
GOOGLE_GENERATIVE_AI_API_KEY: z.ZodOptional<z.ZodString>;
|
|
83
|
-
/**
|
|
84
|
-
* If specified, this will shade the default flow runner agent when running
|
|
85
|
-
* flows. If specified, GOOGLE_GENERATIVE_AI_API_KEY must also be specified.
|
|
86
|
-
*/
|
|
87
34
|
GOOGLE_GENERATIVE_AI_MODEL_NAME: z.ZodOptional<z.ZodString>;
|
|
88
|
-
/**
|
|
89
|
-
* Automatically create GPT configurations for OpenAI using this API key.
|
|
90
|
-
* For convenience, the created configuration names will reflect the
|
|
91
|
-
* underlying models they map to (ex: "gpt-4o", etc).
|
|
92
|
-
*/
|
|
93
35
|
OPENAI_API_KEY: z.ZodOptional<z.ZodString>;
|
|
94
|
-
/**
|
|
95
|
-
* If specified, this will shade the default flow runner agent when running
|
|
96
|
-
* flows. If specified, OPENAI_API_KEY must also be specified.
|
|
97
|
-
*/
|
|
98
36
|
OPENAI_API_MODEL_NAME: z.ZodOptional<z.ZodString>;
|
|
99
|
-
/**
|
|
100
|
-
* Automatically set the 'flow-runner' agent to use this GPT configuration by name.
|
|
101
|
-
*/
|
|
102
37
|
DEFAULT_FLOW_RUNNER_GPT_CONFIG_NAME: z.ZodOptional<z.ZodString>;
|
|
103
|
-
/**
|
|
104
|
-
* Directs Donobu flows to be persisted using this AWS S3 bucket. Takes
|
|
105
|
-
* priority over GOOGLE_CLOUD_STORAGE_BUCKET being specified.
|
|
106
|
-
*/
|
|
107
38
|
AWS_S3_BUCKET: z.ZodOptional<z.ZodString>;
|
|
108
|
-
/**
|
|
109
|
-
* The AWS S3 region the corresponding AWS_S3_BUCKET lives in. Fails over to
|
|
110
|
-
* the AWS_REGION environment variable if not specified.
|
|
111
|
-
*/
|
|
112
39
|
AWS_S3_REGION: z.ZodOptional<z.ZodString>;
|
|
113
|
-
/**
|
|
114
|
-
* If specified, this will shade the default flow runner agent when running
|
|
115
|
-
* flows. If specified, AWS credentials must also be present.
|
|
116
|
-
*/
|
|
117
40
|
AWS_BEDROCK_MODEL_NAME: z.ZodOptional<z.ZodString>;
|
|
118
|
-
/**
|
|
119
|
-
* The AWS region to use for operations using the AWS SDK.
|
|
120
|
-
*/
|
|
121
41
|
AWS_REGION: z.ZodOptional<z.ZodString>;
|
|
122
|
-
/**
|
|
123
|
-
* The AWS access key ID to use for operations using the AWS SDK.
|
|
124
|
-
*/
|
|
125
42
|
AWS_ACCESS_KEY_ID: z.ZodOptional<z.ZodString>;
|
|
126
|
-
/**
|
|
127
|
-
* The AWS access key to use for operations using the AWS SDK.
|
|
128
|
-
*/
|
|
129
43
|
AWS_SECRET_ACCESS_KEY: z.ZodOptional<z.ZodString>;
|
|
130
|
-
/**
|
|
131
|
-
* Automatically create GPT configurations that use the Donobu API using this API key.
|
|
132
|
-
*/
|
|
133
44
|
DONOBU_API_KEY: z.ZodOptional<z.ZodString>;
|
|
134
|
-
/**
|
|
135
|
-
* Directs Donobu flows to be persisted using this Google Cloud Storage
|
|
136
|
-
* bucket.
|
|
137
|
-
*/
|
|
138
45
|
GOOGLE_CLOUD_STORAGE_BUCKET: z.ZodOptional<z.ZodString>;
|
|
139
|
-
/**
|
|
140
|
-
* Directs Donobu flows to be persisted using Supabase using this key.
|
|
141
|
-
*
|
|
142
|
-
* This environment variable MUST be specified if the
|
|
143
|
-
* DONOBU_DEPLOYMENT_ENVIRONMENT environment variable is set to
|
|
144
|
-
* "DONOBU_HOSTED_MULTI_TENANT".
|
|
145
|
-
*/
|
|
146
46
|
SUPABASE_JWT_SECRET_KEY: z.ZodOptional<z.ZodString>;
|
|
147
|
-
/**
|
|
148
|
-
* If set to 'true', then Donobu will attempt to self-heal tests. This option
|
|
149
|
-
* is only used when using Donobu as a library to run Playwright-based tests.
|
|
150
|
-
*/
|
|
151
47
|
SELF_HEAL_TESTS_ENABLED: z.ZodOptional<z.ZodString>;
|
|
152
|
-
/**
|
|
153
|
-
* Default URL for the browser proxy configuration. Only applies when running
|
|
154
|
-
* flows using the 'device' type and a proxy URL is not otherwise specified.
|
|
155
|
-
*/
|
|
156
48
|
PROXY_SERVER: z.ZodOptional<z.ZodString>;
|
|
157
|
-
/**
|
|
158
|
-
* Default user name for the browser proxy configuration. Only applies when running
|
|
159
|
-
* flows using the 'device' type and a proxy username is not otherwise specified.
|
|
160
|
-
*/
|
|
161
49
|
PROXY_USERNAME: z.ZodOptional<z.ZodString>;
|
|
162
|
-
/**
|
|
163
|
-
* Default password for the browser proxy configuration. Only applies when running
|
|
164
|
-
* flows using the 'device' type and a proxy password is not otherwise specified.
|
|
165
|
-
*/
|
|
166
50
|
PROXY_PASSWORD: z.ZodOptional<z.ZodString>;
|
|
167
|
-
/**
|
|
168
|
-
* Linux-specific configuration directory root following the XDG Base
|
|
169
|
-
* Directory specification. Used to derive platform default storage paths.
|
|
170
|
-
* This is ignored if BASE_WORKING_DIR is explicitly set.
|
|
171
|
-
*/
|
|
172
51
|
XDG_CONFIG_HOME: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, {
|
|
53
|
+
APPDATA?: string | undefined;
|
|
54
|
+
BASE_WORKING_DIR?: string | undefined;
|
|
55
|
+
BASE64_GPT_CONFIG?: string | undefined;
|
|
56
|
+
BROWSERBASE_API_KEY?: string | undefined;
|
|
57
|
+
BROWSERBASE_PROJECT_ID?: string | undefined;
|
|
58
|
+
DONOBU_DEPLOYMENT_ENVIRONMENT?: "LOCAL" | "DONOBU_HOSTED_MULTI_TENANT" | "DONOBU_HOSTED_SINGLE_TENANT" | undefined;
|
|
59
|
+
ANTHROPIC_API_KEY?: string | undefined;
|
|
60
|
+
ANTHROPIC_MODEL_NAME?: string | undefined;
|
|
61
|
+
DONOBU_AUTO_HEAL_ACTIVE?: "0" | "1" | "true" | "false" | undefined;
|
|
62
|
+
DONOBU_PAGE_AI_CLEAR_CACHE?: "0" | "1" | "true" | "false" | undefined;
|
|
63
|
+
GOOGLE_GENERATIVE_AI_API_KEY?: string | undefined;
|
|
64
|
+
GOOGLE_GENERATIVE_AI_MODEL_NAME?: string | undefined;
|
|
65
|
+
OPENAI_API_KEY?: string | undefined;
|
|
66
|
+
OPENAI_API_MODEL_NAME?: string | undefined;
|
|
67
|
+
DEFAULT_FLOW_RUNNER_GPT_CONFIG_NAME?: string | undefined;
|
|
68
|
+
AWS_S3_BUCKET?: string | undefined;
|
|
69
|
+
AWS_S3_REGION?: string | undefined;
|
|
70
|
+
AWS_BEDROCK_MODEL_NAME?: string | undefined;
|
|
71
|
+
AWS_REGION?: string | undefined;
|
|
72
|
+
AWS_ACCESS_KEY_ID?: string | undefined;
|
|
73
|
+
AWS_SECRET_ACCESS_KEY?: string | undefined;
|
|
74
|
+
DONOBU_API_KEY?: string | undefined;
|
|
75
|
+
GOOGLE_CLOUD_STORAGE_BUCKET?: string | undefined;
|
|
76
|
+
SUPABASE_JWT_SECRET_KEY?: string | undefined;
|
|
77
|
+
SELF_HEAL_TESTS_ENABLED?: string | undefined;
|
|
78
|
+
PROXY_SERVER?: string | undefined;
|
|
79
|
+
PROXY_USERNAME?: string | undefined;
|
|
80
|
+
PROXY_PASSWORD?: string | undefined;
|
|
81
|
+
XDG_CONFIG_HOME?: string | undefined;
|
|
173
82
|
}>;
|
|
174
83
|
//# sourceMappingURL=envVars.d.ts.map
|
package/dist/envVars.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envVars.d.ts","sourceRoot":"","sources":["../src/envVars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B;;;;GAIG;AACH,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"envVars.d.ts","sourceRoot":"","sources":["../src/envVars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B;;;;GAIG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmHf,CAAC"}
|
package/dist/envVars.js
CHANGED
|
@@ -9,156 +9,112 @@ const DonobuDeploymentEnvironment_1 = require("./models/DonobuDeploymentEnvironm
|
|
|
9
9
|
* This should not be confused with the user-defined API-based environment variables
|
|
10
10
|
* that may be used in a flow.
|
|
11
11
|
*/
|
|
12
|
-
exports.env = env_struct_1.Env.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Automatically create GPT configurations that use the Donobu API using this API key.
|
|
122
|
-
*/
|
|
123
|
-
DONOBU_API_KEY: v4_1.z.string().optional(),
|
|
124
|
-
/**
|
|
125
|
-
* Directs Donobu flows to be persisted using this Google Cloud Storage
|
|
126
|
-
* bucket.
|
|
127
|
-
*/
|
|
128
|
-
GOOGLE_CLOUD_STORAGE_BUCKET: v4_1.z.string().optional(),
|
|
129
|
-
/**
|
|
130
|
-
* Directs Donobu flows to be persisted using Supabase using this key.
|
|
131
|
-
*
|
|
132
|
-
* This environment variable MUST be specified if the
|
|
133
|
-
* DONOBU_DEPLOYMENT_ENVIRONMENT environment variable is set to
|
|
134
|
-
* "DONOBU_HOSTED_MULTI_TENANT".
|
|
135
|
-
*/
|
|
136
|
-
SUPABASE_JWT_SECRET_KEY: v4_1.z.string().optional(),
|
|
137
|
-
/**
|
|
138
|
-
* If set to 'true', then Donobu will attempt to self-heal tests. This option
|
|
139
|
-
* is only used when using Donobu as a library to run Playwright-based tests.
|
|
140
|
-
*/
|
|
141
|
-
SELF_HEAL_TESTS_ENABLED: v4_1.z.string().optional(),
|
|
142
|
-
/**
|
|
143
|
-
* Default URL for the browser proxy configuration. Only applies when running
|
|
144
|
-
* flows using the 'device' type and a proxy URL is not otherwise specified.
|
|
145
|
-
*/
|
|
146
|
-
PROXY_SERVER: v4_1.z.string().optional(),
|
|
147
|
-
/**
|
|
148
|
-
* Default user name for the browser proxy configuration. Only applies when running
|
|
149
|
-
* flows using the 'device' type and a proxy username is not otherwise specified.
|
|
150
|
-
*/
|
|
151
|
-
PROXY_USERNAME: v4_1.z.string().optional(),
|
|
152
|
-
/**
|
|
153
|
-
* Default password for the browser proxy configuration. Only applies when running
|
|
154
|
-
* flows using the 'device' type and a proxy password is not otherwise specified.
|
|
155
|
-
*/
|
|
156
|
-
PROXY_PASSWORD: v4_1.z.string().optional(),
|
|
157
|
-
/**
|
|
158
|
-
* Linux-specific configuration directory root following the XDG Base
|
|
159
|
-
* Directory specification. Used to derive platform default storage paths.
|
|
160
|
-
* This is ignored if BASE_WORKING_DIR is explicitly set.
|
|
161
|
-
*/
|
|
162
|
-
XDG_CONFIG_HOME: v4_1.z.string().optional(),
|
|
163
|
-
});
|
|
12
|
+
exports.env = env_struct_1.Env.fromZod(v4_1.z.object({
|
|
13
|
+
APPDATA: v4_1.z.string().optional()
|
|
14
|
+
.describe(`Windows-specific roaming application data directory. This is typically set
|
|
15
|
+
by the OS and used to derive platform default storage paths. This is
|
|
16
|
+
ignored if BASE_WORKING_DIR is explicitly set.`),
|
|
17
|
+
BASE_WORKING_DIR: v4_1.z
|
|
18
|
+
.string()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe(`Overrides the effective working/persistence directory.`),
|
|
21
|
+
BASE64_GPT_CONFIG: v4_1.z.string().optional()
|
|
22
|
+
.describe(`If specified, use this base-64 JSON GPT configuration for running flows.
|
|
23
|
+
This takes priority over all other GPT configuration options.`),
|
|
24
|
+
BROWSERBASE_API_KEY: v4_1.z
|
|
25
|
+
.string()
|
|
26
|
+
.optional()
|
|
27
|
+
.describe(`The API key to use for the BrowserBase API.`),
|
|
28
|
+
BROWSERBASE_PROJECT_ID: v4_1.z
|
|
29
|
+
.string()
|
|
30
|
+
.optional()
|
|
31
|
+
.describe(`The project ID to use for the BrowserBase API.`),
|
|
32
|
+
DONOBU_DEPLOYMENT_ENVIRONMENT: DonobuDeploymentEnvironment_1.DonobuDeploymentEnvironmentSchema.optional()
|
|
33
|
+
.describe(`The deployment environment for this application.
|
|
34
|
+
If this is set to "DONOBU_HOSTED_MULTI_TENANT" then the
|
|
35
|
+
SUPABASE_JWT_SECRET_KEY environment variable must also be set.`),
|
|
36
|
+
ANTHROPIC_API_KEY: v4_1.z.string().optional()
|
|
37
|
+
.describe(`Automatically create GPT configurations for Anthropic using this API key.
|
|
38
|
+
For convenience, the created configuration names will reflect the
|
|
39
|
+
underlying models they map to (ex: "claude-3-7-sonnet-latest", etc).`),
|
|
40
|
+
ANTHROPIC_MODEL_NAME: v4_1.z.string().optional()
|
|
41
|
+
.describe(`If specified, this will shade the default flow runner agent when running
|
|
42
|
+
flows. If specified, ANTHROPIC_API_KEY must also be specified.`),
|
|
43
|
+
DONOBU_AUTO_HEAL_ACTIVE: v4_1.z.enum(['0', '1', 'true', 'false']).optional()
|
|
44
|
+
.describe(`Internal flag the CLI sets while running an auto-heal retry. Fixtures can use this to
|
|
45
|
+
annotate healed tests or branch logic without relying on CLI arguments. Treat any non-false
|
|
46
|
+
value ("1"/"true") as meaning the current Playwright invocation is part of an automated heal.`),
|
|
47
|
+
DONOBU_PAGE_AI_CLEAR_CACHE: v4_1.z.enum(['0', '1', 'true', 'false']).optional()
|
|
48
|
+
.describe(`When truthy (for example '1' or 'true'), instructs the Playwright fixtures to
|
|
49
|
+
bypass and invalidate Page.AI cache entries for the current run. The Donobu
|
|
50
|
+
CLI sets this automatically when invoked with \`--clear-ai-cache\` so a retry
|
|
51
|
+
always regenerates selectors from scratch.`),
|
|
52
|
+
GOOGLE_GENERATIVE_AI_API_KEY: v4_1.z.string().optional()
|
|
53
|
+
.describe(`Automatically create GPT configurations for Google Gemini using this API key.
|
|
54
|
+
For convenience, the created configuration names will reflect the
|
|
55
|
+
underlying models they map to (ex: "gemini-2.0-flash", etc).`),
|
|
56
|
+
GOOGLE_GENERATIVE_AI_MODEL_NAME: v4_1.z.string().optional()
|
|
57
|
+
.describe(`If specified, this will shade the default flow runner agent when running
|
|
58
|
+
flows. If specified, GOOGLE_GENERATIVE_AI_API_KEY must also be specified.`),
|
|
59
|
+
OPENAI_API_KEY: v4_1.z.string().optional()
|
|
60
|
+
.describe(`Automatically create GPT configurations for OpenAI using this API key.
|
|
61
|
+
For convenience, the created configuration names will reflect the
|
|
62
|
+
underlying models they map to (ex: "gpt-4o", etc).`),
|
|
63
|
+
OPENAI_API_MODEL_NAME: v4_1.z.string().optional()
|
|
64
|
+
.describe(`If specified, this will shade the default flow runner agent when running
|
|
65
|
+
flows. If specified, OPENAI_API_KEY must also be specified.`),
|
|
66
|
+
DEFAULT_FLOW_RUNNER_GPT_CONFIG_NAME: v4_1.z
|
|
67
|
+
.string()
|
|
68
|
+
.optional()
|
|
69
|
+
.describe(`Automatically set the 'flow-runner' agent to use this GPT configuration by name.`),
|
|
70
|
+
AWS_S3_BUCKET: v4_1.z.string().optional()
|
|
71
|
+
.describe(`Directs Donobu flows to be persisted using this AWS S3 bucket. Takes
|
|
72
|
+
priority over GOOGLE_CLOUD_STORAGE_BUCKET being specified.`),
|
|
73
|
+
AWS_S3_REGION: v4_1.z.string().optional()
|
|
74
|
+
.describe(`The AWS S3 region the corresponding AWS_S3_BUCKET lives in. Fails over to
|
|
75
|
+
the AWS_REGION environment variable if not specified.`),
|
|
76
|
+
AWS_BEDROCK_MODEL_NAME: v4_1.z.string().optional()
|
|
77
|
+
.describe(`If specified, this will shade the default flow runner agent when running
|
|
78
|
+
flows. If specified, AWS credentials must also be present.`),
|
|
79
|
+
AWS_REGION: v4_1.z
|
|
80
|
+
.string()
|
|
81
|
+
.optional()
|
|
82
|
+
.describe(`The AWS region to use for operations using the AWS SDK.`),
|
|
83
|
+
AWS_ACCESS_KEY_ID: v4_1.z
|
|
84
|
+
.string()
|
|
85
|
+
.optional()
|
|
86
|
+
.describe(`The AWS access key ID to use for operations using the AWS SDK.`),
|
|
87
|
+
AWS_SECRET_ACCESS_KEY: v4_1.z
|
|
88
|
+
.string()
|
|
89
|
+
.optional()
|
|
90
|
+
.describe(`The AWS access key to use for operations using the AWS SDK.`),
|
|
91
|
+
DONOBU_API_KEY: v4_1.z
|
|
92
|
+
.string()
|
|
93
|
+
.optional()
|
|
94
|
+
.describe(`Automatically create GPT configurations that use the Donobu API using this API key.`),
|
|
95
|
+
GOOGLE_CLOUD_STORAGE_BUCKET: v4_1.z.string().optional()
|
|
96
|
+
.describe(`Directs Donobu flows to be persisted using this Google Cloud Storage
|
|
97
|
+
bucket.`),
|
|
98
|
+
SUPABASE_JWT_SECRET_KEY: v4_1.z.string().optional()
|
|
99
|
+
.describe(`Directs Donobu flows to be persisted using Supabase using this key.
|
|
100
|
+
This environment variable MUST be specified if the
|
|
101
|
+
DONOBU_DEPLOYMENT_ENVIRONMENT environment variable is set to
|
|
102
|
+
"DONOBU_HOSTED_MULTI_TENANT".`),
|
|
103
|
+
SELF_HEAL_TESTS_ENABLED: v4_1.z.string().optional()
|
|
104
|
+
.describe(`If set to 'true', then Donobu will attempt to self-heal tests. This option
|
|
105
|
+
is only used when using Donobu as a library to run Playwright-based tests.`),
|
|
106
|
+
PROXY_SERVER: v4_1.z.string().optional()
|
|
107
|
+
.describe(`Default URL for the browser proxy configuration. Only applies when running
|
|
108
|
+
flows using the 'device' type and a proxy URL is not otherwise specified.`),
|
|
109
|
+
PROXY_USERNAME: v4_1.z.string().optional()
|
|
110
|
+
.describe(`Default user name for the browser proxy configuration. Only applies when running
|
|
111
|
+
flows using the 'device' type and a proxy username is not otherwise specified.`),
|
|
112
|
+
PROXY_PASSWORD: v4_1.z.string().optional()
|
|
113
|
+
.describe(`Default password for the browser proxy configuration. Only applies when running
|
|
114
|
+
flows using the 'device' type and a proxy password is not otherwise specified.`),
|
|
115
|
+
XDG_CONFIG_HOME: v4_1.z.string().optional()
|
|
116
|
+
.describe(`Linux-specific configuration directory root following the XDG Base
|
|
117
|
+
Directory specification. Used to derive platform default storage paths.
|
|
118
|
+
This is ignored if BASE_WORKING_DIR is explicitly set.`),
|
|
119
|
+
}));
|
|
164
120
|
//# sourceMappingURL=envVars.js.map
|
package/dist/envVars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envVars.js","sourceRoot":"","sources":["../src/envVars.ts"],"names":[],"mappings":";;;AAAA,2CAAiC;AACjC,+BAA2B;AAC3B,sFAAyF;AAEzF;;;;GAIG;AACU,QAAA,GAAG,GAAG,gBAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"envVars.js","sourceRoot":"","sources":["../src/envVars.ts"],"names":[],"mappings":";;;AAAA,2CAAiC;AACjC,+BAA2B;AAC3B,sFAAyF;AAEzF;;;;GAIG;AACU,QAAA,GAAG,GAAG,gBAAG,CAAC,OAAO,CAC5B,MAAC,CAAC,MAAM,CAAC;IACP,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C,QAAQ,EAAE;SAC3C,QAAQ,CAAC;2EAC2D,CAAC;IACxE,YAAY,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAChC,QAAQ,CAAC;0EAC0D,CAAC;IACvE,cAAc,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAClC,QAAQ,CAAC;+EAC+D,CAAC;IAC5E,cAAc,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAClC,QAAQ,CAAC;+EAC+D,CAAC;IAC5E,eAAe,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,QAAQ,CAAC;;uDAEuC,CAAC;CACrD,CAAC,CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/ToolsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolsApi.d.ts","sourceRoot":"","sources":["../../../src/apis/ToolsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAYzC,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,UAAU,CAAC,UAAU,CAAC;IACnC,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAeF;;GAEG;AACH,qBAAa,QAAQ;IACnB;;OAEG;IACU,iBAAiB,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAgB5E"}
|
|
@@ -3,6 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ToolsApi = void 0;
|
|
4
4
|
const ToolManager_1 = require("../managers/ToolManager");
|
|
5
5
|
const v4_1 = require("zod/v4");
|
|
6
|
+
const AcknowledgeUserInstruction_1 = require("../tools/AcknowledgeUserInstruction");
|
|
7
|
+
const AssertPageTextTool_1 = require("../tools/AssertPageTextTool");
|
|
8
|
+
const DownloadPdfTool_1 = require("../tools/DownloadPdfTool");
|
|
9
|
+
const DetectBrokenLinksTool_1 = require("../tools/DetectBrokenLinksTool");
|
|
10
|
+
const HandleBrowserDialogTool_1 = require("../tools/HandleBrowserDialogTool");
|
|
11
|
+
const PauseForUserInteractionTool_1 = require("../tools/PauseForUserInteractionTool");
|
|
12
|
+
const SaveWebpageAsPdfTool_1 = require("../tools/SaveWebpageAsPdfTool");
|
|
13
|
+
const SolveCaptcha_1 = require("../tools/SolveCaptcha");
|
|
14
|
+
const SolveMfaChallenge_1 = require("../tools/SolveMfaChallenge");
|
|
15
|
+
const TriggerDonobuFlowTool_1 = require("../tools/TriggerDonobuFlowTool");
|
|
16
|
+
const SUPPRESSED_TOOLS_BY_NAME = new Set([
|
|
17
|
+
AcknowledgeUserInstruction_1.AcknowledgeUserInstructionTool.NAME,
|
|
18
|
+
AssertPageTextTool_1.AssertPageTextTool.NAME,
|
|
19
|
+
DownloadPdfTool_1.DownloadPdfTool.NAME,
|
|
20
|
+
DetectBrokenLinksTool_1.DetectBrokenLinksTool.NAME,
|
|
21
|
+
HandleBrowserDialogTool_1.HandleBrowserDialogTool.NAME,
|
|
22
|
+
PauseForUserInteractionTool_1.PauseForUserInteractionTool.NAME,
|
|
23
|
+
SaveWebpageAsPdfTool_1.SaveWebpageAsPdfTool.NAME,
|
|
24
|
+
SolveCaptcha_1.SolveCaptchaTool.NAME,
|
|
25
|
+
SolveMfaChallenge_1.SolveMfaChallengeTool.NAME,
|
|
26
|
+
TriggerDonobuFlowTool_1.TriggerDonobuFlowTool.NAME,
|
|
27
|
+
]);
|
|
6
28
|
/**
|
|
7
29
|
* This class reports the tools supported by the Donobu runtime.
|
|
8
30
|
*/
|
|
@@ -11,8 +33,10 @@ class ToolsApi {
|
|
|
11
33
|
* GET endpoint handler that returns the supported tools as JSON
|
|
12
34
|
*/
|
|
13
35
|
async getSupportedTools(_req, res) {
|
|
14
|
-
const tools = await ToolManager_1.ToolManager.
|
|
15
|
-
const response = tools
|
|
36
|
+
const tools = await ToolManager_1.ToolManager.allTools();
|
|
37
|
+
const response = tools
|
|
38
|
+
.filter((tool) => !SUPPRESSED_TOOLS_BY_NAME.has(tool.name))
|
|
39
|
+
.map((tool) => ({
|
|
16
40
|
name: tool.name,
|
|
17
41
|
description: tool.description,
|
|
18
42
|
inputSchema: v4_1.z.toJSONSchema(tool.inputSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolsApi.js","sourceRoot":"","sources":["../../../src/apis/ToolsApi.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AACtD,+BAA2B;
|
|
1
|
+
{"version":3,"file":"ToolsApi.js","sourceRoot":"","sources":["../../../src/apis/ToolsApi.ts"],"names":[],"mappings":";;;AACA,yDAAsD;AACtD,+BAA2B;AAE3B,oFAAqF;AACrF,oEAAiE;AACjE,8DAA2D;AAC3D,0EAAuE;AACvE,8EAA2E;AAC3E,sFAAmF;AACnF,wEAAqE;AACrE,wDAAyD;AACzD,kEAAmE;AACnE,0EAAuE;AASvE,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC;IACvC,2DAA8B,CAAC,IAAI;IACnC,uCAAkB,CAAC,IAAI;IACvB,iCAAe,CAAC,IAAI;IACpB,6CAAqB,CAAC,IAAI;IAC1B,iDAAuB,CAAC,IAAI;IAC5B,yDAA2B,CAAC,IAAI;IAChC,2CAAoB,CAAC,IAAI;IACzB,+BAAgB,CAAC,IAAI;IACrB,yCAAqB,CAAC,IAAI;IAC1B,6CAAqB,CAAC,IAAI;CAC3B,CAAC,CAAC;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