@tangle-network/browser-agent-driver 0.6.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 (208) hide show
  1. package/LICENSE +196 -0
  2. package/README.md +149 -0
  3. package/dist/artifacts/composite-sink.d.ts +15 -0
  4. package/dist/artifacts/composite-sink.d.ts.map +1 -0
  5. package/dist/artifacts/composite-sink.js +27 -0
  6. package/dist/artifacts/composite-sink.js.map +1 -0
  7. package/dist/artifacts/filesystem-sink.d.ts +26 -0
  8. package/dist/artifacts/filesystem-sink.d.ts.map +1 -0
  9. package/dist/artifacts/filesystem-sink.js +81 -0
  10. package/dist/artifacts/filesystem-sink.js.map +1 -0
  11. package/dist/artifacts/types.d.ts +97 -0
  12. package/dist/artifacts/types.d.ts.map +1 -0
  13. package/dist/artifacts/types.js +9 -0
  14. package/dist/artifacts/types.js.map +1 -0
  15. package/dist/artifacts/webhook-sink.d.ts +71 -0
  16. package/dist/artifacts/webhook-sink.d.ts.map +1 -0
  17. package/dist/artifacts/webhook-sink.js +117 -0
  18. package/dist/artifacts/webhook-sink.js.map +1 -0
  19. package/dist/brain/index.d.ts +149 -0
  20. package/dist/brain/index.d.ts.map +1 -0
  21. package/dist/brain/index.js +1030 -0
  22. package/dist/brain/index.js.map +1 -0
  23. package/dist/browser-launch.d.ts +27 -0
  24. package/dist/browser-launch.d.ts.map +1 -0
  25. package/dist/browser-launch.js +92 -0
  26. package/dist/browser-launch.js.map +1 -0
  27. package/dist/cli.d.ts +14 -0
  28. package/dist/cli.d.ts.map +1 -0
  29. package/dist/cli.js +1035 -0
  30. package/dist/cli.js.map +1 -0
  31. package/dist/config.d.ts +143 -0
  32. package/dist/config.d.ts.map +1 -0
  33. package/dist/config.js +205 -0
  34. package/dist/config.js.map +1 -0
  35. package/dist/context-budget.d.ts +14 -0
  36. package/dist/context-budget.d.ts.map +1 -0
  37. package/dist/context-budget.js +39 -0
  38. package/dist/context-budget.js.map +1 -0
  39. package/dist/design-audit.d.ts +48 -0
  40. package/dist/design-audit.d.ts.map +1 -0
  41. package/dist/design-audit.js +172 -0
  42. package/dist/design-audit.js.map +1 -0
  43. package/dist/domain-policy.d.ts +4 -0
  44. package/dist/domain-policy.d.ts.map +1 -0
  45. package/dist/domain-policy.js +69 -0
  46. package/dist/domain-policy.js.map +1 -0
  47. package/dist/drivers/block-patterns.d.ts +11 -0
  48. package/dist/drivers/block-patterns.d.ts.map +1 -0
  49. package/dist/drivers/block-patterns.js +123 -0
  50. package/dist/drivers/block-patterns.js.map +1 -0
  51. package/dist/drivers/cdp-page-state.d.ts +22 -0
  52. package/dist/drivers/cdp-page-state.d.ts.map +1 -0
  53. package/dist/drivers/cdp-page-state.js +38 -0
  54. package/dist/drivers/cdp-page-state.js.map +1 -0
  55. package/dist/drivers/cdp-snapshot.d.ts +32 -0
  56. package/dist/drivers/cdp-snapshot.d.ts.map +1 -0
  57. package/dist/drivers/cdp-snapshot.js +120 -0
  58. package/dist/drivers/cdp-snapshot.js.map +1 -0
  59. package/dist/drivers/playwright.d.ts +84 -0
  60. package/dist/drivers/playwright.d.ts.map +1 -0
  61. package/dist/drivers/playwright.js +385 -0
  62. package/dist/drivers/playwright.js.map +1 -0
  63. package/dist/drivers/snapshot.d.ts +134 -0
  64. package/dist/drivers/snapshot.d.ts.map +1 -0
  65. package/dist/drivers/snapshot.js +354 -0
  66. package/dist/drivers/snapshot.js.map +1 -0
  67. package/dist/drivers/types.d.ts +37 -0
  68. package/dist/drivers/types.d.ts.map +1 -0
  69. package/dist/drivers/types.js +5 -0
  70. package/dist/drivers/types.js.map +1 -0
  71. package/dist/env-loader.d.ts +2 -0
  72. package/dist/env-loader.d.ts.map +1 -0
  73. package/dist/env-loader.js +35 -0
  74. package/dist/env-loader.js.map +1 -0
  75. package/dist/formatters/slack.d.ts +37 -0
  76. package/dist/formatters/slack.d.ts.map +1 -0
  77. package/dist/formatters/slack.js +97 -0
  78. package/dist/formatters/slack.js.map +1 -0
  79. package/dist/index.d.ts +60 -0
  80. package/dist/index.d.ts.map +1 -0
  81. package/dist/index.js +53 -0
  82. package/dist/index.js.map +1 -0
  83. package/dist/memory/analyzer.d.ts +67 -0
  84. package/dist/memory/analyzer.d.ts.map +1 -0
  85. package/dist/memory/analyzer.js +265 -0
  86. package/dist/memory/analyzer.js.map +1 -0
  87. package/dist/memory/knowledge.d.ts +55 -0
  88. package/dist/memory/knowledge.d.ts.map +1 -0
  89. package/dist/memory/knowledge.js +115 -0
  90. package/dist/memory/knowledge.js.map +1 -0
  91. package/dist/memory/project-store.d.ts +43 -0
  92. package/dist/memory/project-store.d.ts.map +1 -0
  93. package/dist/memory/project-store.js +119 -0
  94. package/dist/memory/project-store.js.map +1 -0
  95. package/dist/memory/selectors.d.ts +46 -0
  96. package/dist/memory/selectors.d.ts.map +1 -0
  97. package/dist/memory/selectors.js +89 -0
  98. package/dist/memory/selectors.js.map +1 -0
  99. package/dist/memory/store.d.ts +39 -0
  100. package/dist/memory/store.d.ts.map +1 -0
  101. package/dist/memory/store.js +193 -0
  102. package/dist/memory/store.js.map +1 -0
  103. package/dist/model-pricing.d.ts +41 -0
  104. package/dist/model-pricing.d.ts.map +1 -0
  105. package/dist/model-pricing.js +197 -0
  106. package/dist/model-pricing.js.map +1 -0
  107. package/dist/multi-actor.d.ts +108 -0
  108. package/dist/multi-actor.d.ts.map +1 -0
  109. package/dist/multi-actor.js +192 -0
  110. package/dist/multi-actor.js.map +1 -0
  111. package/dist/override-pipeline.d.ts +57 -0
  112. package/dist/override-pipeline.d.ts.map +1 -0
  113. package/dist/override-pipeline.js +26 -0
  114. package/dist/override-pipeline.js.map +1 -0
  115. package/dist/personas.d.ts +19 -0
  116. package/dist/personas.d.ts.map +1 -0
  117. package/dist/personas.js +86 -0
  118. package/dist/personas.js.map +1 -0
  119. package/dist/preview.d.ts +32 -0
  120. package/dist/preview.d.ts.map +1 -0
  121. package/dist/preview.js +138 -0
  122. package/dist/preview.js.map +1 -0
  123. package/dist/provider-defaults.d.ts +6 -0
  124. package/dist/provider-defaults.d.ts.map +1 -0
  125. package/dist/provider-defaults.js +40 -0
  126. package/dist/provider-defaults.js.map +1 -0
  127. package/dist/providers/sandbox-backend.d.ts +22 -0
  128. package/dist/providers/sandbox-backend.d.ts.map +1 -0
  129. package/dist/providers/sandbox-backend.js +259 -0
  130. package/dist/providers/sandbox-backend.js.map +1 -0
  131. package/dist/recovery.d.ts +91 -0
  132. package/dist/recovery.d.ts.map +1 -0
  133. package/dist/recovery.js +500 -0
  134. package/dist/recovery.js.map +1 -0
  135. package/dist/reporters/junit.d.ts +8 -0
  136. package/dist/reporters/junit.d.ts.map +1 -0
  137. package/dist/reporters/junit.js +99 -0
  138. package/dist/reporters/junit.js.map +1 -0
  139. package/dist/run-metrics.d.ts +4 -0
  140. package/dist/run-metrics.d.ts.map +1 -0
  141. package/dist/run-metrics.js +48 -0
  142. package/dist/run-metrics.js.map +1 -0
  143. package/dist/run-state.d.ts +22 -0
  144. package/dist/run-state.d.ts.map +1 -0
  145. package/dist/run-state.js +33 -0
  146. package/dist/run-state.js.map +1 -0
  147. package/dist/runner/goal-verification.d.ts +13 -0
  148. package/dist/runner/goal-verification.d.ts.map +1 -0
  149. package/dist/runner/goal-verification.js +152 -0
  150. package/dist/runner/goal-verification.js.map +1 -0
  151. package/dist/runner/index.d.ts +12 -0
  152. package/dist/runner/index.d.ts.map +1 -0
  153. package/dist/runner/index.js +18 -0
  154. package/dist/runner/index.js.map +1 -0
  155. package/dist/runner/overrides.d.ts +75 -0
  156. package/dist/runner/overrides.d.ts.map +1 -0
  157. package/dist/runner/overrides.js +385 -0
  158. package/dist/runner/overrides.js.map +1 -0
  159. package/dist/runner/page-analysis.d.ts +23 -0
  160. package/dist/runner/page-analysis.d.ts.map +1 -0
  161. package/dist/runner/page-analysis.js +91 -0
  162. package/dist/runner/page-analysis.js.map +1 -0
  163. package/dist/runner/runner.d.ts +66 -0
  164. package/dist/runner/runner.d.ts.map +1 -0
  165. package/dist/runner/runner.js +1314 -0
  166. package/dist/runner/runner.js.map +1 -0
  167. package/dist/runner/scout.d.ts +29 -0
  168. package/dist/runner/scout.d.ts.map +1 -0
  169. package/dist/runner/scout.js +81 -0
  170. package/dist/runner/scout.js.map +1 -0
  171. package/dist/runner/search-guidance.d.ts +31 -0
  172. package/dist/runner/search-guidance.d.ts.map +1 -0
  173. package/dist/runner/search-guidance.js +210 -0
  174. package/dist/runner/search-guidance.js.map +1 -0
  175. package/dist/runner/utils.d.ts +28 -0
  176. package/dist/runner/utils.d.ts.map +1 -0
  177. package/dist/runner/utils.js +119 -0
  178. package/dist/runner/utils.js.map +1 -0
  179. package/dist/runner.d.ts +8 -0
  180. package/dist/runner.d.ts.map +1 -0
  181. package/dist/runner.js +21 -0
  182. package/dist/runner.js.map +1 -0
  183. package/dist/supervisor/critic.d.ts +29 -0
  184. package/dist/supervisor/critic.d.ts.map +1 -0
  185. package/dist/supervisor/critic.js +320 -0
  186. package/dist/supervisor/critic.js.map +1 -0
  187. package/dist/supervisor/policy.d.ts +11 -0
  188. package/dist/supervisor/policy.d.ts.map +1 -0
  189. package/dist/supervisor/policy.js +118 -0
  190. package/dist/supervisor/policy.js.map +1 -0
  191. package/dist/test-report.d.ts +15 -0
  192. package/dist/test-report.d.ts.map +1 -0
  193. package/dist/test-report.js +241 -0
  194. package/dist/test-report.js.map +1 -0
  195. package/dist/test-runner.d.ts +99 -0
  196. package/dist/test-runner.d.ts.map +1 -0
  197. package/dist/test-runner.js +1075 -0
  198. package/dist/test-runner.js.map +1 -0
  199. package/dist/types.d.ts +493 -0
  200. package/dist/types.d.ts.map +1 -0
  201. package/dist/types.js +5 -0
  202. package/dist/types.js.map +1 -0
  203. package/dist/wallet/automation.d.ts +52 -0
  204. package/dist/wallet/automation.d.ts.map +1 -0
  205. package/dist/wallet/automation.js +507 -0
  206. package/dist/wallet/automation.js.map +1 -0
  207. package/package.json +101 -0
  208. package/scripts/postinstall-provider-patches.mjs +52 -0
package/LICENSE ADDED
@@ -0,0 +1,196 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Tangle Network
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ Apache License
26
+ Version 2.0, January 2004
27
+ http://www.apache.org/licenses/
28
+
29
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
30
+
31
+ 1. Definitions.
32
+
33
+ "License" shall mean the terms and conditions for use, reproduction, and
34
+ distribution as defined by Sections 1 through 9 of this document.
35
+
36
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
37
+ owner that is granting the License.
38
+
39
+ "Legal Entity" shall mean the union of the acting entity and all other entities
40
+ that control, are controlled by, or are under common control with that entity.
41
+ For the purposes of this definition, "control" means (i) the power, direct or
42
+ indirect, to cause the direction or management of such entity, whether by
43
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
44
+ outstanding shares, or (iii) beneficial ownership of such entity.
45
+
46
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
47
+ permissions granted by this License.
48
+
49
+ "Source" form shall mean the preferred form for making modifications, including
50
+ but not limited to software source code, documentation source, and configuration
51
+ files.
52
+
53
+ "Object" form shall mean any form resulting from mechanical transformation or
54
+ translation of a Source form, including but not limited to compiled object code,
55
+ generated documentation, and conversions to other media types.
56
+
57
+ "Work" shall mean the work of authorship, whether in Source or Object form, made
58
+ available under the License, as indicated by a copyright notice that is included
59
+ in or attached to the work.
60
+
61
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
62
+ is based on (or derived from) the Work and for which the editorial revisions,
63
+ annotations, elaborations, or other modifications represent, as a whole, an
64
+ original work of authorship. For the purposes of this License, Derivative Works
65
+ shall not include works that remain separable from, or merely link (or bind by
66
+ name) to the interfaces of, the Work and Derivative Works thereof.
67
+
68
+ "Contribution" shall mean any work of authorship, including the original version
69
+ of the Work and any modifications or additions to that Work or Derivative Works
70
+ thereof, that is intentionally submitted to the Licensor for inclusion in the
71
+ Work by the copyright owner or by an individual or Legal Entity authorized to
72
+ submit on behalf of the copyright owner. For the purposes of this definition,
73
+ "submitted" means any form of electronic, verbal, or written communication sent
74
+ to the Licensor or its representatives, including but not limited to
75
+ communication on electronic mailing lists, source code control systems, and
76
+ issue tracking systems that are managed by, or on behalf of, the Licensor for
77
+ the purpose of discussing and improving the Work, but excluding communication
78
+ that is conspicuously marked or otherwise designated in writing by the copyright
79
+ owner as "Not a Contribution."
80
+
81
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of
82
+ whom a Contribution has been received by the Licensor and subsequently
83
+ incorporated within the Work.
84
+
85
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
86
+ License, each Contributor hereby grants to You a perpetual, worldwide,
87
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
88
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
89
+ sublicense, and distribute the Work and such Derivative Works in Source or Object
90
+ form.
91
+
92
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
93
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
94
+ no-charge, royalty-free, irrevocable (except as stated in this section) patent
95
+ license to make, have made, use, offer to sell, sell, import, and otherwise
96
+ transfer the Work, where such license applies only to those patent claims
97
+ licensable by such Contributor that are necessarily infringed by their
98
+ Contribution(s) alone or by combination of their Contribution(s) with the Work
99
+ to which such Contribution(s) was submitted. If You institute patent litigation
100
+ against any entity (including a cross-claim or counterclaim in a lawsuit)
101
+ alleging that the Work or a Contribution incorporated within the Work constitutes
102
+ direct or contributory patent infringement, then any patent licenses granted to
103
+ You under this License for that Work shall terminate as of the date such
104
+ litigation is filed.
105
+
106
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
107
+ Derivative Works thereof in any medium, with or without modifications, and in
108
+ Source or Object form, provided that You meet the following conditions:
109
+
110
+ (a) You must give any other recipients of the Work or Derivative Works a copy of
111
+ this License; and
112
+
113
+ (b) You must cause any modified files to carry prominent notices stating that You
114
+ changed the files; and
115
+
116
+ (c) You must retain, in the Source form of any Derivative Works that You
117
+ distribute, all copyright, patent, trademark, and attribution notices from the
118
+ Source form of the Work, excluding those notices that do not pertain to any part
119
+ of the Derivative Works; and
120
+
121
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
122
+ any Derivative Works that You distribute must include a readable copy of the
123
+ attribution notices contained within such NOTICE file, excluding any notices that
124
+ do not pertain to any part of the Derivative Works, in at least one of the
125
+ following places: within a NOTICE text file distributed as part of the Derivative
126
+ Works; within the Source form or documentation, if provided along with the
127
+ Derivative Works; or, within a display generated by the Derivative Works, if and
128
+ wherever such third-party notices normally appear. The contents of the NOTICE
129
+ file are for informational purposes only and do not modify the License. You may
130
+ add Your own attribution notices within Derivative Works that You distribute,
131
+ alongside or as an addendum to the NOTICE text from the Work, provided that such
132
+ additional attribution notices cannot be construed as modifying the License.
133
+
134
+ You may add Your own copyright statement to Your modifications and may provide
135
+ additional or different license terms and conditions for use, reproduction, or
136
+ distribution of Your modifications, or for any such Derivative Works as a whole,
137
+ provided Your use, reproduction, and distribution of the Work otherwise complies
138
+ with the conditions stated in this License.
139
+
140
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
141
+ Contribution intentionally submitted for inclusion in the Work by You to the
142
+ Licensor shall be under the terms and conditions of this License, without any
143
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
144
+ supersede or modify the terms of any separate license agreement you may have
145
+ executed with Licensor regarding such Contributions.
146
+
147
+ 6. Trademarks. This License does not grant permission to use the trade names,
148
+ trademarks, service marks, or product names of the Licensor, except as required
149
+ for reasonable and customary use in describing the origin of the Work and
150
+ reproducing the content of the NOTICE file.
151
+
152
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
153
+ writing, Licensor provides the Work (and each Contributor provides its
154
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
155
+ KIND, either express or implied, including, without limitation, any warranties or
156
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
157
+ PARTICULAR PURPOSE. You are solely responsible for determining the
158
+ appropriateness of using or redistributing the Work and assume any risks
159
+ associated with Your exercise of permissions under this License.
160
+
161
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
162
+ tort (including negligence), contract, or otherwise, unless required by
163
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
164
+ writing, shall any Contributor be liable to You for damages, including any
165
+ direct, indirect, special, incidental, or consequential damages of any character
166
+ arising as a result of this License or out of the use or inability to use the
167
+ Work (including but not limited to damages for loss of goodwill, work stoppage,
168
+ computer failure or malfunction, or any and all other commercial damages or
169
+ losses), even if such Contributor has been advised of the possibility of such
170
+ damages.
171
+
172
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
173
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
174
+ acceptance of support, warranty, indemnity, or other liability obligations and/or
175
+ rights consistent with this License. However, in accepting such obligations, You
176
+ may act only on Your own behalf and on Your sole responsibility, not on behalf of
177
+ any other Contributor, and only if You agree to indemnify, defend, and hold each
178
+ Contributor harmless for any liability incurred by, or claims asserted against,
179
+ such Contributor by reason of your accepting any such warranty or additional
180
+ liability.
181
+
182
+ END OF TERMS AND CONDITIONS
183
+
184
+ Copyright (c) 2024 Tangle Network
185
+
186
+ Licensed under the Apache License, Version 2.0 (the "License");
187
+ you may not use this file except in compliance with the License.
188
+ You may obtain a copy of the License at
189
+
190
+ http://www.apache.org/licenses/LICENSE-2.0
191
+
192
+ Unless required by applicable law or agreed to in writing, software
193
+ distributed under the License is distributed on an "AS IS" BASIS,
194
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
195
+ See the License for the specific language governing permissions and
196
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,149 @@
1
+ # @tangle-network/browser-agent-driver
2
+
3
+ LLM-driven browser automation. Reads page state via accessibility tree, decides actions via LLM, executes in a loop until the goal is done.
4
+
5
+ 96% pass rate on WebBench-50. Default model: `gpt-5.4`.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pnpm add @tangle-network/browser-agent-driver
11
+ pnpm add -D playwright
12
+ ```
13
+
14
+ ## Quick Start
15
+
16
+ ### Programmatic
17
+
18
+ ```typescript
19
+ import { chromium } from 'playwright'
20
+ import { PlaywrightDriver, AgentRunner } from '@tangle-network/browser-agent-driver'
21
+
22
+ const browser = await chromium.launch()
23
+ const page = await browser.newPage()
24
+ const driver = new PlaywrightDriver(page)
25
+
26
+ const runner = new AgentRunner({
27
+ driver,
28
+ config: { model: 'gpt-5.4' },
29
+ })
30
+
31
+ const result = await runner.run({
32
+ goal: 'Sign in and navigate to settings',
33
+ startUrl: 'https://app.example.com',
34
+ maxTurns: 30,
35
+ })
36
+
37
+ console.log(result.success, `${result.turns.length} turns`)
38
+ await browser.close()
39
+ ```
40
+
41
+ ### CLI
42
+
43
+ ```bash
44
+ # single task
45
+ bad run --goal "Sign up for account" --url http://localhost:3000
46
+
47
+ # test suite from case file
48
+ bad run --cases ./cases.json
49
+
50
+ # authenticated session
51
+ bad run --goal "Open settings" --url https://app.example.com \
52
+ --storage-state ./.auth/session.json
53
+
54
+ # speed-optimized mode
55
+ bad run --cases ./cases.json --mode fast-explore
56
+
57
+ # evidence-rich mode for signoff
58
+ bad run --cases ./cases.json --mode full-evidence
59
+ ```
60
+
61
+ ## Config File
62
+
63
+ Create `browser-agent-driver.config.ts` in your project root:
64
+
65
+ ```typescript
66
+ import { defineConfig } from '@tangle-network/browser-agent-driver'
67
+
68
+ export default defineConfig({
69
+ model: 'gpt-5.4',
70
+ headless: true,
71
+ concurrency: 4,
72
+ maxTurns: 30,
73
+ timeoutMs: 300_000,
74
+ outputDir: './test-results',
75
+ reporters: ['junit', 'html'],
76
+ })
77
+ ```
78
+
79
+ Auto-detected by CLI and programmatic API. CLI flags override config values. Supports `.ts`, `.js`, `.mjs`.
80
+
81
+ ## Test Suites
82
+
83
+ ```typescript
84
+ import { TestRunner } from '@tangle-network/browser-agent-driver'
85
+
86
+ const suite = await runner.runSuite([
87
+ {
88
+ id: 'login',
89
+ name: 'User login flow',
90
+ startUrl: 'https://app.example.com/login',
91
+ goal: 'Log in with test credentials',
92
+ successCriteria: [
93
+ { type: 'url-contains', value: '/dashboard' },
94
+ { type: 'element-visible', selector: '[data-testid="user-menu"]' },
95
+ ],
96
+ },
97
+ ])
98
+ ```
99
+
100
+ ## Actions
101
+
102
+ The LLM can perform: `click`, `type`, `press`, `hover`, `select`, `scroll`, `navigate`, `wait`, `evaluate`, `verifyPreview`, `complete`, `abort`.
103
+
104
+ ## How It Works
105
+
106
+ Each turn: observe page (a11y tree + optional screenshot) → LLM decides action → execute → verify effect → repeat.
107
+
108
+ Recovery is automatic: cookie consent, modal blockers, stuck loops (A-B-A-B oscillation), and selector failures are handled before the agent continues.
109
+
110
+ ## Guides
111
+
112
+ - [Configuration Reference](./docs/guides/configuration.md) — all config options
113
+ - [CLI Reference](./docs/guides/cli.md) — commands, modes, profiles, auth
114
+ - [Benchmarks & Experiments](./docs/guides/benchmarks.md) — tiered gates, AB specs, research cycles
115
+ - [Wallet Automation](./docs/guides/wallet.md) — MetaMask, Rabby, extension flows
116
+ - [Providers](./docs/guides/providers.md) — OpenAI, Anthropic, Codex CLI, Claude Code, sandbox backend
117
+ - [Reporters & Sinks](./docs/guides/reporters.md) — JUnit, HTML, webhooks, custom sinks
118
+ - [Custom Drivers](./docs/guides/custom-drivers.md) — implement the `Driver` interface
119
+
120
+ ## Research
121
+
122
+ - [Operating Roadmap](./docs/roadmap/browser-agent-ops.md)
123
+ - [Competitive Analysis](./docs/research/competitor-analysis-2026-03.md)
124
+ - [Reliability Runbook](./RELIABILITY.md)
125
+
126
+ ## Skills
127
+
128
+ Ships Codex skills under `skills/` for test execution discipline and agent-friendly UX conventions.
129
+
130
+ ```bash
131
+ npm run skills:install
132
+ ```
133
+
134
+ ## Publishing
135
+
136
+ Tag-triggered via `.github/workflows/publish-npm.yml`. Push `browser-agent-driver-vX.Y.Z` to publish.
137
+
138
+ ## Development
139
+
140
+ ```bash
141
+ pnpm build # TypeScript → dist/
142
+ pnpm test # vitest
143
+ pnpm lint # type-check
144
+ pnpm check:boundaries
145
+ ```
146
+
147
+ ## License
148
+
149
+ Dual-licensed under MIT and Apache 2.0. See [LICENSE](./LICENSE).
@@ -0,0 +1,15 @@
1
+ /**
2
+ * CompositeSink — chains multiple sinks together.
3
+ *
4
+ * Useful for writing to both filesystem (local debugging) and S3 (cloud storage)
5
+ * simultaneously. The primary sink's URI is returned from put().
6
+ */
7
+ import type { Artifact, ArtifactSink, ArtifactManifestEntry } from './types.js';
8
+ export declare class CompositeSink implements ArtifactSink {
9
+ private sinks;
10
+ constructor(sinks: ArtifactSink[]);
11
+ put(artifact: Artifact): Promise<string>;
12
+ getManifest(): ArtifactManifestEntry[];
13
+ close(): Promise<void>;
14
+ }
15
+ //# sourceMappingURL=composite-sink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-sink.d.ts","sourceRoot":"","sources":["../../src/artifacts/composite-sink.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,qBAAa,aAAc,YAAW,YAAY;IACpC,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,YAAY,EAAE;IAMnC,GAAG,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAK9C,WAAW,IAAI,qBAAqB,EAAE;IAKhC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * CompositeSink — chains multiple sinks together.
3
+ *
4
+ * Useful for writing to both filesystem (local debugging) and S3 (cloud storage)
5
+ * simultaneously. The primary sink's URI is returned from put().
6
+ */
7
+ export class CompositeSink {
8
+ sinks;
9
+ constructor(sinks) {
10
+ this.sinks = sinks;
11
+ if (sinks.length === 0) {
12
+ throw new Error('CompositeSink requires at least one sink');
13
+ }
14
+ }
15
+ async put(artifact) {
16
+ const uris = await Promise.all(this.sinks.map(s => s.put(artifact)));
17
+ return uris[0]; // Primary sink's URI
18
+ }
19
+ getManifest() {
20
+ // Return manifest from primary sink
21
+ return this.sinks[0].getManifest();
22
+ }
23
+ async close() {
24
+ await Promise.all(this.sinks.map(s => s.close?.()));
25
+ }
26
+ }
27
+ //# sourceMappingURL=composite-sink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composite-sink.js","sourceRoot":"","sources":["../../src/artifacts/composite-sink.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,OAAO,aAAa;IACJ;IAApB,YAAoB,KAAqB;QAArB,UAAK,GAAL,KAAK,CAAgB;QACvC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,QAAkB;QAC1B,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAqB;IACvC,CAAC;IAED,WAAW;QACT,oCAAoC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC;CACF"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * FilesystemSink — writes artifacts to local disk.
3
+ *
4
+ * Directory layout:
5
+ * {baseDir}/
6
+ * ├── {testId}/
7
+ * │ ├── turn-05.jpg
8
+ * │ ├── recording.webm
9
+ * │ └── trajectory.json
10
+ * ├── suite/
11
+ * │ ├── report.json
12
+ * │ └── report.md
13
+ * └── manifest.json
14
+ */
15
+ import type { Artifact, ArtifactSink, ArtifactManifestEntry } from './types.js';
16
+ export declare class FilesystemSink implements ArtifactSink {
17
+ private baseDir;
18
+ private manifest;
19
+ constructor(baseDir: string);
20
+ put(artifact: Artifact): Promise<string>;
21
+ getManifest(): ArtifactManifestEntry[];
22
+ close(): Promise<void>;
23
+ private resolveArtifactData;
24
+ private findLatestNonEmptyVideo;
25
+ }
26
+ //# sourceMappingURL=filesystem-sink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem-sink.d.ts","sourceRoot":"","sources":["../../src/artifacts/filesystem-sink.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEhF,qBAAa,cAAe,YAAW,YAAY;IAGrC,OAAO,CAAC,OAAO;IAF3B,OAAO,CAAC,QAAQ,CAA+B;gBAE3B,OAAO,EAAE,MAAM;IAI7B,GAAG,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAuB9C,WAAW,IAAI,qBAAqB,EAAE;IAIhC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAM5B,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,uBAAuB;CAqBhC"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * FilesystemSink — writes artifacts to local disk.
3
+ *
4
+ * Directory layout:
5
+ * {baseDir}/
6
+ * ├── {testId}/
7
+ * │ ├── turn-05.jpg
8
+ * │ ├── recording.webm
9
+ * │ └── trajectory.json
10
+ * ├── suite/
11
+ * │ ├── report.json
12
+ * │ └── report.md
13
+ * └── manifest.json
14
+ */
15
+ import * as fs from 'node:fs';
16
+ import * as path from 'node:path';
17
+ export class FilesystemSink {
18
+ baseDir;
19
+ manifest = [];
20
+ constructor(baseDir) {
21
+ this.baseDir = baseDir;
22
+ fs.mkdirSync(baseDir, { recursive: true });
23
+ }
24
+ async put(artifact) {
25
+ const dir = path.join(this.baseDir, artifact.testId);
26
+ fs.mkdirSync(dir, { recursive: true });
27
+ const filePath = path.join(dir, artifact.name);
28
+ const data = this.resolveArtifactData(artifact, filePath);
29
+ fs.writeFileSync(filePath, data);
30
+ const uri = `file://${path.resolve(filePath)}`;
31
+ this.manifest.push({
32
+ testId: artifact.testId,
33
+ type: artifact.type,
34
+ name: artifact.name,
35
+ uri,
36
+ contentType: artifact.contentType,
37
+ sizeBytes: data.length,
38
+ metadata: artifact.metadata,
39
+ });
40
+ return uri;
41
+ }
42
+ getManifest() {
43
+ return [...this.manifest];
44
+ }
45
+ async close() {
46
+ // Write manifest as final artifact
47
+ const manifestPath = path.join(this.baseDir, 'manifest.json');
48
+ fs.writeFileSync(manifestPath, JSON.stringify(this.manifest, null, 2));
49
+ }
50
+ resolveArtifactData(artifact, filePath) {
51
+ if (artifact.type !== 'video' || artifact.data.length > 0) {
52
+ return artifact.data;
53
+ }
54
+ // Playwright can report the video file before bytes are fully flushed.
55
+ // Fall back to the non-empty capture under {sink}/_videos when available.
56
+ const fallback = this.findLatestNonEmptyVideo(path.dirname(path.dirname(filePath)));
57
+ return fallback ?? artifact.data;
58
+ }
59
+ findLatestNonEmptyVideo(rootDir) {
60
+ const videosDir = path.join(rootDir, '_videos');
61
+ if (!fs.existsSync(videosDir))
62
+ return null;
63
+ const candidates = fs.readdirSync(videosDir)
64
+ .filter((entry) => entry.endsWith('.webm'))
65
+ .map((entry) => {
66
+ const p = path.join(videosDir, entry);
67
+ const stat = fs.statSync(p);
68
+ return {
69
+ path: p,
70
+ size: stat.size,
71
+ mtimeMs: stat.mtimeMs,
72
+ };
73
+ })
74
+ .filter((entry) => entry.size > 0)
75
+ .sort((a, b) => b.mtimeMs - a.mtimeMs);
76
+ if (candidates.length === 0)
77
+ return null;
78
+ return fs.readFileSync(candidates[0].path);
79
+ }
80
+ }
81
+ //# sourceMappingURL=filesystem-sink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem-sink.js","sourceRoot":"","sources":["../../src/artifacts/filesystem-sink.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAGlC,MAAM,OAAO,cAAc;IAGL;IAFZ,QAAQ,GAA4B,EAAE,CAAC;IAE/C,YAAoB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;QACjC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,QAAkB;QAC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AC;QAEzC,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QACzC,OAAO,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CACF"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Artifact pipeline types — pluggable storage for test artifacts.
3
+ *
4
+ * Artifacts flow through an ArtifactSink interface that can be backed by
5
+ * filesystem, S3, R2, or any custom storage. The bad package
6
+ * ships FilesystemSink; cloud sinks live in consumer repos.
7
+ */
8
+ /** Categories of artifacts produced during test execution */
9
+ export type ArtifactType = 'screenshot' | 'video' | 'runtime-log' | 'trace' | 'report-json' | 'report-md' | 'report-html' | 'report-junit' | 'trajectory' | 'knowledge' | 'checkpoint';
10
+ /** A single artifact produced during a test run */
11
+ export interface Artifact {
12
+ /** Artifact category */
13
+ type: ArtifactType;
14
+ /** Test case ID that produced this (or 'suite' for aggregate artifacts) */
15
+ testId: string;
16
+ /** Filename (e.g., 'turn-15.jpg', 'report.json') */
17
+ name: string;
18
+ /** Binary content */
19
+ data: Buffer;
20
+ /** MIME type (e.g., 'image/jpeg', 'application/json') */
21
+ contentType: string;
22
+ /** Arbitrary metadata (turn number, model, timestamp, etc.) */
23
+ metadata?: Record<string, string>;
24
+ }
25
+ /**
26
+ * Pluggable storage backend for artifacts.
27
+ *
28
+ * Implement this interface to route artifacts to S3, R2, GCS, or
29
+ * any custom storage. The built-in FilesystemSink writes to local disk.
30
+ */
31
+ export interface ArtifactSink {
32
+ /**
33
+ * Store an artifact. Returns a URI for retrieval.
34
+ * - Filesystem: file:///path/to/artifact
35
+ * - S3: s3://bucket/key
36
+ * - HTTP: https://cdn.example.com/path
37
+ */
38
+ put(artifact: Artifact): Promise<string>;
39
+ /**
40
+ * Return a manifest of all artifacts stored so far.
41
+ * Each entry maps artifact name → URI.
42
+ */
43
+ getManifest(): ArtifactManifestEntry[];
44
+ /** Finalize — flush buffers, close connections, emit manifest. */
45
+ close?(): Promise<void>;
46
+ }
47
+ export interface ArtifactManifestEntry {
48
+ testId: string;
49
+ type: ArtifactType;
50
+ name: string;
51
+ uri: string;
52
+ contentType: string;
53
+ sizeBytes: number;
54
+ metadata?: Record<string, string>;
55
+ }
56
+ /** Real-time progress events emitted during suite execution */
57
+ export type ProgressEvent = {
58
+ type: 'suite:start';
59
+ totalTests: number;
60
+ concurrency: number;
61
+ } | {
62
+ type: 'test:start';
63
+ testId: string;
64
+ testName: string;
65
+ workerId: number;
66
+ } | {
67
+ type: 'test:turn';
68
+ testId: string;
69
+ turn: number;
70
+ action: string;
71
+ durationMs: number;
72
+ tokensUsed?: number;
73
+ modelUsed?: string;
74
+ } | {
75
+ type: 'test:artifact';
76
+ testId: string;
77
+ artifactType: ArtifactType;
78
+ uri: string;
79
+ } | {
80
+ type: 'test:complete';
81
+ testId: string;
82
+ passed: boolean;
83
+ verdict: string;
84
+ durationMs: number;
85
+ turnsUsed: number;
86
+ tokensUsed: number;
87
+ estimatedCostUsd?: number;
88
+ } | {
89
+ type: 'suite:complete';
90
+ passed: number;
91
+ failed: number;
92
+ skipped: number;
93
+ totalMs: number;
94
+ totalCostUsd?: number;
95
+ manifestUri?: string;
96
+ };
97
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/artifacts/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,6DAA6D;AAC7D,MAAM,MAAM,YAAY,GACpB,YAAY,GACZ,OAAO,GACP,aAAa,GACb,OAAO,GACP,aAAa,GACb,WAAW,GACX,aAAa,GACb,cAAc,GACd,YAAY,GACZ,WAAW,GACX,YAAY,CAAC;AAEjB,mDAAmD;AACnD,MAAM,WAAW,QAAQ;IACvB,wBAAwB;IACxB,IAAI,EAAE,YAAY,CAAC;IACnB,2EAA2E;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,IAAI,E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;CAAE,GAChI;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAClF;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,GACjK;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Artifact pipeline types — pluggable storage for test artifacts.
3
+ *
4
+ * Artifacts flow through an ArtifactSink interface that can be backed by
5
+ * filesystem, S3, R2, or any custom storage. The bad package
6
+ * ships FilesystemSink; cloud sinks live in consumer repos.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/artifacts/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}