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.
Files changed (113) hide show
  1. package/dist/apis/ToolsApi.d.ts.map +1 -1
  2. package/dist/apis/ToolsApi.js +26 -2
  3. package/dist/apis/ToolsApi.js.map +1 -1
  4. package/dist/assets/generated/version +1 -1
  5. package/dist/envVars.d.ts +30 -121
  6. package/dist/envVars.d.ts.map +1 -1
  7. package/dist/envVars.js +108 -152
  8. package/dist/envVars.js.map +1 -1
  9. package/dist/esm/apis/ToolsApi.d.ts.map +1 -1
  10. package/dist/esm/apis/ToolsApi.js +26 -2
  11. package/dist/esm/apis/ToolsApi.js.map +1 -1
  12. package/dist/esm/assets/generated/version +1 -1
  13. package/dist/esm/envVars.d.ts +30 -121
  14. package/dist/esm/envVars.d.ts.map +1 -1
  15. package/dist/esm/envVars.js +108 -152
  16. package/dist/esm/envVars.js.map +1 -1
  17. package/dist/esm/lib/PageAi.d.ts.map +1 -1
  18. package/dist/esm/lib/PageAi.js +10 -11
  19. package/dist/esm/lib/PageAi.js.map +1 -1
  20. package/dist/esm/lib/fixtures/gptClients.d.ts +31 -0
  21. package/dist/esm/lib/fixtures/gptClients.d.ts.map +1 -1
  22. package/dist/esm/lib/testExtension.js +1 -1
  23. package/dist/esm/lib/testExtension.js.map +1 -1
  24. package/dist/esm/lib/utils/donobuTestStack.d.ts +18 -0
  25. package/dist/esm/lib/utils/donobuTestStack.d.ts.map +1 -1
  26. package/dist/esm/lib/utils/triageTestFailure.d.ts.map +1 -1
  27. package/dist/esm/lib/utils/triageTestFailure.js +4 -4
  28. package/dist/esm/lib/utils/triageTestFailure.js.map +1 -1
  29. package/dist/esm/managers/DonobuFlowsManager.d.ts +25 -59
  30. package/dist/esm/managers/DonobuFlowsManager.d.ts.map +1 -1
  31. package/dist/esm/managers/DonobuFlowsManager.js +322 -301
  32. package/dist/esm/managers/DonobuFlowsManager.js.map +1 -1
  33. package/dist/esm/managers/DonobuStack.d.ts +18 -0
  34. package/dist/esm/managers/DonobuStack.d.ts.map +1 -1
  35. package/dist/esm/managers/DonobuStack.js +1 -1
  36. package/dist/esm/managers/DonobuStack.js.map +1 -1
  37. package/dist/esm/managers/GptConfigsManager.js +36 -3
  38. package/dist/esm/managers/GptConfigsManager.js.map +1 -1
  39. package/dist/esm/managers/ToolManager.d.ts +2 -0
  40. package/dist/esm/managers/ToolManager.d.ts.map +1 -1
  41. package/dist/esm/managers/ToolManager.js +9 -5
  42. package/dist/esm/managers/ToolManager.js.map +1 -1
  43. package/dist/esm/persistence/DonobuSqliteDb.d.ts +2 -3
  44. package/dist/esm/persistence/DonobuSqliteDb.d.ts.map +1 -1
  45. package/dist/esm/persistence/DonobuSqliteDb.js +55 -25
  46. package/dist/esm/persistence/DonobuSqliteDb.js.map +1 -1
  47. package/dist/esm/persistence/env/EnvPersistenceFactoryImpl.d.ts.map +1 -1
  48. package/dist/esm/persistence/env/EnvPersistenceFactoryImpl.js +1 -1
  49. package/dist/esm/persistence/env/EnvPersistenceFactoryImpl.js.map +1 -1
  50. package/dist/esm/persistence/flows/FlowsPersistenceFactoryImpl.d.ts +0 -5
  51. package/dist/esm/persistence/flows/FlowsPersistenceFactoryImpl.d.ts.map +1 -1
  52. package/dist/esm/persistence/flows/FlowsPersistenceFactoryImpl.js +2 -129
  53. package/dist/esm/persistence/flows/FlowsPersistenceFactoryImpl.js.map +1 -1
  54. package/dist/esm/persistence/flows/FlowsPersistenceSqlite.d.ts.map +1 -1
  55. package/dist/esm/persistence/flows/FlowsPersistenceSqlite.js +25 -17
  56. package/dist/esm/persistence/flows/FlowsPersistenceSqlite.js.map +1 -1
  57. package/dist/esm/tools/AssertPageTextTool.js +1 -1
  58. package/dist/esm/tools/AssertPageTextTool.js.map +1 -1
  59. package/dist/esm/utils/BrowserUtils.d.ts +6 -0
  60. package/dist/esm/utils/BrowserUtils.d.ts.map +1 -1
  61. package/dist/esm/utils/BrowserUtils.js +2 -5
  62. package/dist/esm/utils/BrowserUtils.js.map +1 -1
  63. package/dist/esm/utils/MiscUtils.d.ts +4 -0
  64. package/dist/esm/utils/MiscUtils.d.ts.map +1 -1
  65. package/dist/lib/PageAi.d.ts.map +1 -1
  66. package/dist/lib/PageAi.js +10 -11
  67. package/dist/lib/PageAi.js.map +1 -1
  68. package/dist/lib/fixtures/gptClients.d.ts +31 -0
  69. package/dist/lib/fixtures/gptClients.d.ts.map +1 -1
  70. package/dist/lib/testExtension.js +1 -1
  71. package/dist/lib/testExtension.js.map +1 -1
  72. package/dist/lib/utils/donobuTestStack.d.ts +18 -0
  73. package/dist/lib/utils/donobuTestStack.d.ts.map +1 -1
  74. package/dist/lib/utils/triageTestFailure.d.ts.map +1 -1
  75. package/dist/lib/utils/triageTestFailure.js +4 -4
  76. package/dist/lib/utils/triageTestFailure.js.map +1 -1
  77. package/dist/managers/DonobuFlowsManager.d.ts +25 -59
  78. package/dist/managers/DonobuFlowsManager.d.ts.map +1 -1
  79. package/dist/managers/DonobuFlowsManager.js +322 -301
  80. package/dist/managers/DonobuFlowsManager.js.map +1 -1
  81. package/dist/managers/DonobuStack.d.ts +18 -0
  82. package/dist/managers/DonobuStack.d.ts.map +1 -1
  83. package/dist/managers/DonobuStack.js +1 -1
  84. package/dist/managers/DonobuStack.js.map +1 -1
  85. package/dist/managers/GptConfigsManager.js +36 -3
  86. package/dist/managers/GptConfigsManager.js.map +1 -1
  87. package/dist/managers/ToolManager.d.ts +2 -0
  88. package/dist/managers/ToolManager.d.ts.map +1 -1
  89. package/dist/managers/ToolManager.js +9 -5
  90. package/dist/managers/ToolManager.js.map +1 -1
  91. package/dist/persistence/DonobuSqliteDb.d.ts +2 -3
  92. package/dist/persistence/DonobuSqliteDb.d.ts.map +1 -1
  93. package/dist/persistence/DonobuSqliteDb.js +55 -25
  94. package/dist/persistence/DonobuSqliteDb.js.map +1 -1
  95. package/dist/persistence/env/EnvPersistenceFactoryImpl.d.ts.map +1 -1
  96. package/dist/persistence/env/EnvPersistenceFactoryImpl.js +1 -1
  97. package/dist/persistence/env/EnvPersistenceFactoryImpl.js.map +1 -1
  98. package/dist/persistence/flows/FlowsPersistenceFactoryImpl.d.ts +0 -5
  99. package/dist/persistence/flows/FlowsPersistenceFactoryImpl.d.ts.map +1 -1
  100. package/dist/persistence/flows/FlowsPersistenceFactoryImpl.js +2 -129
  101. package/dist/persistence/flows/FlowsPersistenceFactoryImpl.js.map +1 -1
  102. package/dist/persistence/flows/FlowsPersistenceSqlite.d.ts.map +1 -1
  103. package/dist/persistence/flows/FlowsPersistenceSqlite.js +25 -17
  104. package/dist/persistence/flows/FlowsPersistenceSqlite.js.map +1 -1
  105. package/dist/tools/AssertPageTextTool.js +1 -1
  106. package/dist/tools/AssertPageTextTool.js.map +1 -1
  107. package/dist/utils/BrowserUtils.d.ts +6 -0
  108. package/dist/utils/BrowserUtils.d.ts.map +1 -1
  109. package/dist/utils/BrowserUtils.js +2 -5
  110. package/dist/utils/BrowserUtils.js.map +1 -1
  111. package/dist/utils/MiscUtils.d.ts +4 -0
  112. package/dist/utils/MiscUtils.d.ts.map +1 -1
  113. package/package.json +2 -2
@@ -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
@@ -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;IACd;;;;OAIG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;;;OAKG;;;;;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH;;;;OAIG;;;;;;;IAEH;;;;;OAKG;;;;;;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;;;;OAMG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;;;OAIG;;EAEH,CAAC"}
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"}
@@ -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.fromSchema({
13
- /**
14
- * 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
- */
18
- APPDATA: v4_1.z.string().optional(),
19
- /**
20
- * Overrides the effective working/persistence directory.
21
- */
22
- BASE_WORKING_DIR: v4_1.z.string().optional(),
23
- /**
24
- * If specified, use this base-64 JSON GPT configuration for running flows.
25
- * This takes priority over all other GPT configuration options.
26
- */
27
- BASE64_GPT_CONFIG: v4_1.z.string().optional(),
28
- /**
29
- * The API key to use for the BrowserBase API.
30
- */
31
- BROWSERBASE_API_KEY: v4_1.z.string().optional(),
32
- /**
33
- * The project ID to use for the BrowserBase API.
34
- */
35
- BROWSERBASE_PROJECT_ID: v4_1.z.string().optional(),
36
- /**
37
- * The deployment environment for this application.
38
- *
39
- * If this is set to "DONOBU_HOSTED_MULTI_TENANT" then the
40
- * SUPABASE_JWT_SECRET_KEY environment variable must also be set.
41
- */
42
- DONOBU_DEPLOYMENT_ENVIRONMENT: DonobuDeploymentEnvironment_1.DonobuDeploymentEnvironmentSchema.optional(),
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
- ANTHROPIC_API_KEY: v4_1.z.string().optional(),
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
- ANTHROPIC_MODEL_NAME: v4_1.z.string().optional(),
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
- DONOBU_AUTO_HEAL_ACTIVE: v4_1.z.enum(['0', '1', 'true', 'false']).optional(),
60
- /**
61
- * When truthy (for example '1' or 'true'), instructs the Playwright fixtures to
62
- * bypass and invalidate Page.AI cache entries for the current run. The Donobu
63
- * CLI sets this automatically when invoked with `--clear-ai-cache` so a retry
64
- * always regenerates selectors from scratch.
65
- */
66
- DONOBU_PAGE_AI_CLEAR_CACHE: v4_1.z.enum(['0', '1', 'true', 'false']).optional(),
67
- /**
68
- * Automatically create GPT configurations for Google Gemini using this API key.
69
- * For convenience, the created configuration names will reflect the
70
- * underlying models they map to (ex: "gemini-2.0-flash", etc).
71
- */
72
- GOOGLE_GENERATIVE_AI_API_KEY: v4_1.z.string().optional(),
73
- /**
74
- * If specified, this will shade the default flow runner agent when running
75
- * flows. If specified, GOOGLE_GENERATIVE_AI_API_KEY must also be specified.
76
- */
77
- GOOGLE_GENERATIVE_AI_MODEL_NAME: v4_1.z.string().optional(),
78
- /**
79
- * Automatically create GPT configurations for OpenAI using this API key.
80
- * For convenience, the created configuration names will reflect the
81
- * underlying models they map to (ex: "gpt-4o", etc).
82
- */
83
- OPENAI_API_KEY: v4_1.z.string().optional(),
84
- /**
85
- * If specified, this will shade the default flow runner agent when running
86
- * flows. If specified, OPENAI_API_KEY must also be specified.
87
- */
88
- OPENAI_API_MODEL_NAME: v4_1.z.string().optional(),
89
- /**
90
- * Automatically set the 'flow-runner' agent to use this GPT configuration by name.
91
- */
92
- DEFAULT_FLOW_RUNNER_GPT_CONFIG_NAME: v4_1.z.string().optional(),
93
- /**
94
- * Directs Donobu flows to be persisted using this AWS S3 bucket. Takes
95
- * priority over GOOGLE_CLOUD_STORAGE_BUCKET being specified.
96
- */
97
- AWS_S3_BUCKET: v4_1.z.string().optional(),
98
- /**
99
- * The AWS S3 region the corresponding AWS_S3_BUCKET lives in. Fails over to
100
- * the AWS_REGION environment variable if not specified.
101
- */
102
- AWS_S3_REGION: v4_1.z.string().optional(),
103
- /**
104
- * If specified, this will shade the default flow runner agent when running
105
- * flows. If specified, AWS credentials must also be present.
106
- */
107
- AWS_BEDROCK_MODEL_NAME: v4_1.z.string().optional(),
108
- /**
109
- * The AWS region to use for operations using the AWS SDK.
110
- */
111
- AWS_REGION: v4_1.z.string().optional(),
112
- /**
113
- * The AWS access key ID to use for operations using the AWS SDK.
114
- */
115
- AWS_ACCESS_KEY_ID: v4_1.z.string().optional(),
116
- /**
117
- * The AWS access key to use for operations using the AWS SDK.
118
- */
119
- AWS_SECRET_ACCESS_KEY: v4_1.z.string().optional(),
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
@@ -1 +1 @@
1
- {"version":3,"file":"envVars.js","sourceRoot":"","sources":["../../src/envVars.ts"],"names":[],"mappings":";;;AAAA,2CAAiC;AACjC,+BAA2B;AAC3B,sFAAyF;AAEzF;;;;GAIG;AACU,Q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,EAAE,kBAAkB,EACxB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAC9B,OAAO,CAAC,OAAO,CAAC;IAInB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAgCvB;;;;OAIG;IACH,OAAO,CAAC,aAAa;CAetB"}
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PageAi = exports.PageAiRunner = void 0;
4
4
  const v4_1 = require("zod/v4");
5
5
  const ToolManager_1 = require("../managers/ToolManager");
6
- const MarkObjectiveCompleteTool_1 = require("../tools/MarkObjectiveCompleteTool");
7
- const MarkObjectiveNotCompletableTool_1 = require("../tools/MarkObjectiveNotCompletableTool");
8
6
  const DonobuFlow_1 = require("../managers/DonobuFlow");
9
7
  const PageAiException_1 = require("../exceptions/PageAiException");
10
8
  const ControlPanel_1 = require("../models/ControlPanel");
@@ -92,17 +90,18 @@ class PageAiRunner {
92
90
  * We always allow the objective bookkeeping tools even if the caller supplied
93
91
  * a narrower list.
94
92
  */
95
- async buildToolManager(allowedTools) {
96
- if (allowedTools.length === 0) {
93
+ async buildToolManager(allowedToolsByName) {
94
+ if (allowedToolsByName.length === 0) {
97
95
  return new ToolManager_1.ToolManager(await ToolManager_1.ToolManager.defaultTools());
98
96
  }
99
- const whitelistedTools = new Set([
100
- ...allowedTools,
101
- MarkObjectiveCompleteTool_1.MarkObjectiveCompleteTool.NAME,
102
- MarkObjectiveNotCompletableTool_1.MarkObjectiveNotCompletableTool.NAME,
97
+ const allTools = await ToolManager_1.ToolManager.allTools();
98
+ const minimalToolsByName = (await ToolManager_1.ToolManager.minimalTools()).map((t) => t.name);
99
+ const semifinalToolNames = new Set([
100
+ ...allowedToolsByName,
101
+ ...minimalToolsByName,
103
102
  ]);
104
- const filtered = (await ToolManager_1.ToolManager.allTools()).filter((tool) => whitelistedTools.has(tool.name));
105
- return new ToolManager_1.ToolManager(filtered);
103
+ const finalTools = allTools.filter((tool) => semifinalToolNames.has(tool.name));
104
+ return new ToolManager_1.ToolManager(finalTools);
106
105
  }
107
106
  }
108
107
  exports.PageAiRunner = PageAiRunner;
@@ -188,7 +187,7 @@ class PageAi {
188
187
  const jsonSchema = schema ? v4_1.z.toJSONSchema(schema) : null;
189
188
  const maxToolCalls = options?.maxToolCalls ?? 25;
190
189
  const allowedTools = options?.allowedTools ?? [];
191
- const envVarNames = DonobuFlowsManager_1.DonobuFlowsManager.distillAllowedEnvVariableNames(instruction, options?.envVars);
190
+ const envVarNames = (0, DonobuFlowsManager_1.distillAllowedEnvVariableNames)(instruction, options?.envVars);
192
191
  return {
193
192
  key: this.buildCacheKey(page, instruction, jsonSchema, allowedTools, maxToolCalls),
194
193
  schema,
@@ -1 +1 @@
1
- {"version":3,"file":"PageAi.js","sourceRoot":"","sources":["../../../src/lib/PageAi.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAI3B,yDAAsD;AACtD,kFAA+E;AAC/E,8FAA2F;AAC3F,uDAAoD;AACpD,mEAAgE;AAChE,yDAA0D;AAC1D,6EAA0E;AAI1E,4CAA4C;AAC5C,uEAAoE;AACpE,0CAA8E;AAC9E,kEAAqE;AACrE,6DAA0D;AAC1D,iEAAyD;AAsEzD;;;;;;;;;;;;GAYG;AACH,MAAa,YAAY;IACvB,YACmB,MAAmB,EACnB,WAA6B,EAC7B,SAAoB;QAFpB,WAAM,GAAN,MAAM,CAAa;QACnB,gBAAW,GAAX,WAAW,CAAkB;QAC7B,cAAS,GAAT,SAAS,CAAW;IACpC,CAAC;IAEJ;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,MAAsC;QAEtC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,YAAY,CACzD,MAAM,CAAC,WAAW,CACnB,CAAC;QACF,MAAM,oBAAoB,GAAiB;YACzC,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB;SACvC,CAAC;QACF,MAAM,iBA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