@ddwang/magnitude-core 0.3.1-ddwang.2 → 0.3.1-ddwang.21

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 (363) hide show
  1. package/dist/cli.cjs +2 -0
  2. package/dist/cli.cjs.map +1 -0
  3. package/dist/cli.d.cts +2 -0
  4. package/dist/cli.d.ts +2 -0
  5. package/dist/cli.mjs +1 -0
  6. package/dist/cli.mjs.map +1 -0
  7. package/dist/index.cjs +2704 -1522
  8. package/dist/index.cjs.map +1 -0
  9. package/dist/index.d.cts +188 -50
  10. package/dist/index.d.ts +1147 -23
  11. package/dist/index.mjs +2527 -1362
  12. package/dist/index.mjs.map +1 -0
  13. package/node_modules/patchright-core/README.md +3 -0
  14. package/node_modules/patchright-core/ThirdPartyNotices.txt +13 -0
  15. package/node_modules/patchright-core/bin/install_media_pack.ps1 +5 -0
  16. package/node_modules/patchright-core/bin/install_webkit_wsl.ps1 +33 -0
  17. package/node_modules/patchright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
  18. package/node_modules/patchright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
  19. package/node_modules/patchright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
  20. package/node_modules/patchright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
  21. package/node_modules/patchright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
  22. package/node_modules/patchright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
  23. package/node_modules/patchright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
  24. package/node_modules/patchright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
  25. package/node_modules/patchright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
  26. package/node_modules/patchright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
  27. package/node_modules/patchright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
  28. package/node_modules/patchright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
  29. package/node_modules/patchright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
  30. package/node_modules/patchright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
  31. package/node_modules/patchright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
  32. package/node_modules/patchright-core/browsers.json +52 -0
  33. package/node_modules/patchright-core/cli.js +22 -0
  34. package/node_modules/patchright-core/index.d.ts +17 -0
  35. package/node_modules/patchright-core/index.js +17 -0
  36. package/node_modules/patchright-core/index.mjs +28 -0
  37. package/node_modules/patchright-core/lib/bootstrap.js +149 -0
  38. package/node_modules/patchright-core/lib/coreBundle.js +80653 -0
  39. package/node_modules/patchright-core/lib/entry/cliDaemon.js +5 -0
  40. package/node_modules/patchright-core/lib/entry/dashboardApp.js +3 -0
  41. package/node_modules/patchright-core/lib/entry/mcp.js +10 -0
  42. package/node_modules/patchright-core/lib/entry/oopBrowserDownload.js +3 -0
  43. package/node_modules/patchright-core/lib/package.js +50 -0
  44. package/node_modules/patchright-core/lib/server/chromium/appIcon.png +0 -0
  45. package/node_modules/patchright-core/lib/server/electron/loader.js +112 -0
  46. package/node_modules/patchright-core/lib/serverRegistry.js +1939 -0
  47. package/node_modules/patchright-core/lib/serverRegistry.js.LICENSE +65 -0
  48. package/node_modules/patchright-core/lib/tools/cli-client/channelSessions.js +141 -0
  49. package/node_modules/patchright-core/lib/tools/cli-client/cli.js +7 -0
  50. package/node_modules/patchright-core/lib/tools/cli-client/help.json +808 -0
  51. package/node_modules/patchright-core/lib/tools/cli-client/minimist.js +128 -0
  52. package/node_modules/patchright-core/lib/tools/cli-client/output.js +352 -0
  53. package/node_modules/patchright-core/lib/tools/cli-client/program.js +422 -0
  54. package/node_modules/patchright-core/lib/tools/cli-client/registry.js +180 -0
  55. package/node_modules/patchright-core/lib/tools/cli-client/session.js +261 -0
  56. package/node_modules/patchright-core/lib/tools/dashboard/appIcon.png +0 -0
  57. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/SKILL.md +493 -0
  58. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/element-attributes.md +23 -0
  59. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/playwright-tests.md +39 -0
  60. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/pr-attachments.md +60 -0
  61. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/request-mocking.md +87 -0
  62. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/running-code.md +245 -0
  63. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/session-management.md +227 -0
  64. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/storage-state.md +275 -0
  65. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/test-generation.md +433 -0
  66. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/tracing.md +139 -0
  67. package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/video-recording.md +216 -0
  68. package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/SKILL.md +136 -0
  69. package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
  70. package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/migration.md +89 -0
  71. package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/react.md +69 -0
  72. package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/typing.md +173 -0
  73. package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/vue.md +77 -0
  74. package/node_modules/patchright-core/lib/tools/skills/playwright-trace/SKILL.md +174 -0
  75. package/node_modules/patchright-core/lib/tools/utils/extension.js +112 -0
  76. package/node_modules/patchright-core/lib/tools/utils/socketConnection.js +108 -0
  77. package/node_modules/patchright-core/lib/utilsBundle.js +86225 -0
  78. package/node_modules/patchright-core/lib/utilsBundle.js.LICENSE +1890 -0
  79. package/node_modules/patchright-core/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +1 -0
  80. package/node_modules/patchright-core/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +32 -0
  81. package/node_modules/patchright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
  82. package/node_modules/patchright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
  83. package/node_modules/patchright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
  84. package/node_modules/patchright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
  85. package/node_modules/patchright-core/lib/vite/dashboard/assets/index-AwgwcYie.css +1 -0
  86. package/node_modules/patchright-core/lib/vite/dashboard/assets/index-hRvO4yU2.js +12 -0
  87. package/node_modules/patchright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
  88. package/node_modules/patchright-core/lib/vite/dashboard/index.html +29 -0
  89. package/node_modules/patchright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
  90. package/node_modules/patchright-core/lib/vite/htmlReport/index.html +16 -0
  91. package/node_modules/patchright-core/lib/vite/htmlReport/report.css +2 -0
  92. package/node_modules/patchright-core/lib/vite/htmlReport/report.js +32 -0
  93. package/node_modules/patchright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
  94. package/node_modules/patchright-core/lib/vite/recorder/assets/codeMirrorModule-GBnsXk4c.js +32 -0
  95. package/node_modules/patchright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  96. package/node_modules/patchright-core/lib/vite/recorder/assets/index-BZpYJZ-P.css +1 -0
  97. package/node_modules/patchright-core/lib/vite/recorder/assets/index-CVDOfo-j.js +129 -0
  98. package/node_modules/patchright-core/lib/vite/recorder/index.html +29 -0
  99. package/node_modules/patchright-core/lib/vite/recorder/playwright-logo.svg +9 -0
  100. package/node_modules/patchright-core/lib/vite/traceViewer/assets/codeMirrorModule-G79327TW.js +32 -0
  101. package/node_modules/patchright-core/lib/vite/traceViewer/assets/defaultSettingsView-D9EV0iaS.js +184 -0
  102. package/node_modules/patchright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
  103. package/node_modules/patchright-core/lib/vite/traceViewer/assets/xtermModule-Al_u-Nk5.js +7 -0
  104. package/node_modules/patchright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
  105. package/node_modules/patchright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  106. package/node_modules/patchright-core/lib/vite/traceViewer/defaultSettingsView.C8BeHuxd.css +1 -0
  107. package/node_modules/patchright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
  108. package/node_modules/patchright-core/lib/vite/traceViewer/index.CMB2-c8e.js +1 -0
  109. package/node_modules/patchright-core/lib/vite/traceViewer/index.html +44 -0
  110. package/node_modules/patchright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
  111. package/node_modules/patchright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
  112. package/node_modules/patchright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
  113. package/node_modules/patchright-core/lib/vite/traceViewer/snapshot.html +10 -0
  114. package/node_modules/patchright-core/lib/vite/traceViewer/sw.bundle.js +4 -0
  115. package/node_modules/patchright-core/lib/vite/traceViewer/uiMode.C3yLoy2G.js +5 -0
  116. package/node_modules/patchright-core/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +1 -0
  117. package/node_modules/patchright-core/lib/vite/traceViewer/uiMode.html +18 -0
  118. package/node_modules/patchright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
  119. package/node_modules/patchright-core/lib/webp_codec.LICENSE +173 -0
  120. package/node_modules/patchright-core/lib/webp_codec.wasm +0 -0
  121. package/node_modules/patchright-core/lib/xdg-open +1267 -0
  122. package/node_modules/patchright-core/package.json +34 -0
  123. package/node_modules/patchright-core/types/protocol.d.ts +24776 -0
  124. package/node_modules/patchright-core/types/structs.d.ts +52 -0
  125. package/node_modules/patchright-core/types/types.d.ts +27167 -0
  126. package/node_modules/playwright/.bun-tag-91d746a6045e143f +0 -0
  127. package/node_modules/playwright/README.md +300 -0
  128. package/node_modules/playwright/ThirdPartyNotices.txt +14 -0
  129. package/node_modules/playwright/cli.js +19 -0
  130. package/node_modules/playwright/index.d.ts +17 -0
  131. package/node_modules/playwright/index.js +17 -0
  132. package/node_modules/playwright/index.mjs +18 -0
  133. package/node_modules/playwright/lib/agents/agentParser.js +89 -0
  134. package/node_modules/playwright/lib/agents/copilot-setup-steps.yml +34 -0
  135. package/node_modules/playwright/lib/agents/generateAgents.js +395 -0
  136. package/node_modules/playwright/lib/agents/playwright-test-coverage.prompt.md +31 -0
  137. package/node_modules/playwright/lib/agents/playwright-test-generate.prompt.md +8 -0
  138. package/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +88 -0
  139. package/node_modules/playwright/lib/agents/playwright-test-heal.prompt.md +6 -0
  140. package/node_modules/playwright/lib/agents/playwright-test-healer.agent.md +56 -0
  141. package/node_modules/playwright/lib/agents/playwright-test-plan.prompt.md +9 -0
  142. package/node_modules/playwright/lib/agents/playwright-test-planner.agent.md +74 -0
  143. package/node_modules/playwright/lib/cli/reportActions.js +78 -0
  144. package/node_modules/playwright/lib/cli/testActions.js +217 -0
  145. package/node_modules/playwright/lib/common/index.js +2937 -0
  146. package/node_modules/playwright/lib/common/index.js.txt +33 -0
  147. package/node_modules/playwright/lib/errorContext.js +129 -0
  148. package/node_modules/playwright/lib/globals.js +58 -0
  149. package/node_modules/playwright/lib/index.js +827 -0
  150. package/node_modules/playwright/lib/isomorphic.js +260 -0
  151. package/node_modules/playwright/lib/isomorphic.js.txt +9 -0
  152. package/node_modules/playwright/lib/loader/loaderProcessEntry.js +34 -0
  153. package/node_modules/playwright/lib/loader/loaderProcessEntry.js.txt +9 -0
  154. package/node_modules/playwright/lib/matchers/expect.js +13496 -0
  155. package/node_modules/playwright/lib/matchers/expect.js.LICENSE +640 -0
  156. package/node_modules/playwright/lib/matchers/expect.js.txt +67 -0
  157. package/node_modules/playwright/lib/mcp/test/browserBackend.js +135 -0
  158. package/node_modules/playwright/lib/mcp/test/generatorTools.js +122 -0
  159. package/node_modules/playwright/lib/mcp/test/plannerTools.js +150 -0
  160. package/node_modules/playwright/lib/mcp/test/seed.js +82 -0
  161. package/node_modules/playwright/lib/mcp/test/streams.js +44 -0
  162. package/node_modules/playwright/lib/mcp/test/testBackend.js +99 -0
  163. package/node_modules/playwright/lib/mcp/test/testContext.js +306 -0
  164. package/node_modules/playwright/lib/mcp/test/testTool.js +30 -0
  165. package/node_modules/playwright/lib/mcp/test/testTools.js +98 -0
  166. package/node_modules/playwright/lib/package.js +47 -0
  167. package/node_modules/playwright/lib/program.js +242 -0
  168. package/node_modules/playwright/lib/runner/index.js +8721 -0
  169. package/node_modules/playwright/lib/runner/index.js.txt +62 -0
  170. package/node_modules/playwright/lib/transform/babelBundle.js +72490 -0
  171. package/node_modules/playwright/lib/transform/babelBundle.js.LICENSE +2384 -0
  172. package/node_modules/playwright/lib/transform/babelBundle.js.txt +328 -0
  173. package/node_modules/playwright/lib/transform/esmLoader.js +8213 -0
  174. package/node_modules/playwright/lib/transform/esmLoader.js.LICENSE +355 -0
  175. package/node_modules/playwright/lib/transform/esmLoader.js.txt +60 -0
  176. package/node_modules/playwright/lib/util.js +373 -0
  177. package/node_modules/playwright/lib/worker/workerProcessEntry.js +1860 -0
  178. package/node_modules/playwright/lib/worker/workerProcessEntry.js.txt +19 -0
  179. package/node_modules/playwright/package.json +50 -0
  180. package/node_modules/playwright/test.d.ts +18 -0
  181. package/node_modules/playwright/test.js +24 -0
  182. package/node_modules/playwright/test.mjs +35 -0
  183. package/node_modules/playwright/types/test.d.ts +11191 -0
  184. package/node_modules/playwright/types/testReporter.d.ts +950 -0
  185. package/package.json +21 -12
  186. package/dist/actions/desktopActions.d.ts +0 -58
  187. package/dist/actions/desktopActions.js +0 -155
  188. package/dist/actions/index.d.ts +0 -27
  189. package/dist/actions/index.js +0 -11
  190. package/dist/actions/memoryActions.d.ts +0 -9
  191. package/dist/actions/memoryActions.js +0 -34
  192. package/dist/actions/taskActions.d.ts +0 -8
  193. package/dist/actions/taskActions.js +0 -27
  194. package/dist/actions/types.d.ts +0 -35
  195. package/dist/actions/types.js +0 -5
  196. package/dist/actions/util.d.ts +0 -21
  197. package/dist/actions/util.js +0 -280
  198. package/dist/actions/webActions.d.ts +0 -87
  199. package/dist/actions/webActions.js +0 -214
  200. package/dist/actions/webActions.test.d.ts +0 -1
  201. package/dist/actions/webActions.test.js +0 -43
  202. package/dist/agent/browserAgent.d.ts +0 -31
  203. package/dist/agent/browserAgent.js +0 -136
  204. package/dist/agent/errors.d.ts +0 -22
  205. package/dist/agent/errors.js +0 -97
  206. package/dist/agent/index.d.ts +0 -64
  207. package/dist/agent/index.js +0 -505
  208. package/dist/agent/narrator.d.ts +0 -4
  209. package/dist/agent/narrator.js +0 -63
  210. package/dist/agent/pause.test.d.ts +0 -1
  211. package/dist/agent/pause.test.js +0 -194
  212. package/dist/ai/baml_client/async_client.d.ts +0 -64
  213. package/dist/ai/baml_client/async_client.js +0 -284
  214. package/dist/ai/baml_client/async_request.d.ts +0 -39
  215. package/dist/ai/baml_client/async_request.js +0 -134
  216. package/dist/ai/baml_client/config.d.ts +0 -11
  217. package/dist/ai/baml_client/config.js +0 -20
  218. package/dist/ai/baml_client/globals.d.ts +0 -16
  219. package/dist/ai/baml_client/globals.js +0 -37
  220. package/dist/ai/baml_client/index.d.ts +0 -17
  221. package/dist/ai/baml_client/index.js +0 -42
  222. package/dist/ai/baml_client/inlinedbaml.d.ts +0 -19
  223. package/dist/ai/baml_client/inlinedbaml.js +0 -31
  224. package/dist/ai/baml_client/parser.d.ts +0 -53
  225. package/dist/ai/baml_client/parser.js +0 -86
  226. package/dist/ai/baml_client/partial_types.d.ts +0 -61
  227. package/dist/ai/baml_client/partial_types.js +0 -10
  228. package/dist/ai/baml_client/sync_client.d.ts +0 -57
  229. package/dist/ai/baml_client/sync_client.js +0 -142
  230. package/dist/ai/baml_client/sync_request.d.ts +0 -37
  231. package/dist/ai/baml_client/sync_request.js +0 -134
  232. package/dist/ai/baml_client/tracing.d.ts +0 -16
  233. package/dist/ai/baml_client/tracing.js +0 -18
  234. package/dist/ai/baml_client/type_builder.d.ts +0 -40
  235. package/dist/ai/baml_client/type_builder.js +0 -120
  236. package/dist/ai/baml_client/types.d.ts +0 -69
  237. package/dist/ai/baml_client/types.js +0 -15
  238. package/dist/ai/baml_client/watchers.d.ts +0 -32
  239. package/dist/ai/baml_client/watchers.js +0 -50
  240. package/dist/ai/baseten.d.ts +0 -4
  241. package/dist/ai/baseten.js +0 -10
  242. package/dist/ai/claudeCode.d.ts +0 -1
  243. package/dist/ai/claudeCode.js +0 -186
  244. package/dist/ai/modelHarness.d.ts +0 -39
  245. package/dist/ai/modelHarness.js +0 -324
  246. package/dist/ai/modelResponseError.d.ts +0 -4
  247. package/dist/ai/modelResponseError.js +0 -8
  248. package/dist/ai/multiModelHarness.d.ts +0 -24
  249. package/dist/ai/multiModelHarness.js +0 -52
  250. package/dist/ai/plannerResponse.d.ts +0 -34
  251. package/dist/ai/plannerResponse.js +0 -96
  252. package/dist/ai/plannerResponse.test.d.ts +0 -1
  253. package/dist/ai/plannerResponse.test.js +0 -112
  254. package/dist/ai/structuredOutput.d.ts +0 -11
  255. package/dist/ai/structuredOutput.js +0 -94
  256. package/dist/ai/structuredOutput.test.d.ts +0 -1
  257. package/dist/ai/structuredOutput.test.js +0 -91
  258. package/dist/ai/types.d.ts +0 -119
  259. package/dist/ai/types.js +0 -5
  260. package/dist/ai/util.d.ts +0 -13
  261. package/dist/ai/util.js +0 -200
  262. package/dist/ai/util.test.d.ts +0 -1
  263. package/dist/ai/util.test.js +0 -95
  264. package/dist/cli.js +0 -3
  265. package/dist/common/actions.js +0 -14
  266. package/dist/common/events.d.ts +0 -17
  267. package/dist/common/events.js +0 -3
  268. package/dist/common/failure.d.ts +0 -68
  269. package/dist/common/failure.js +0 -1
  270. package/dist/common/index.d.ts +0 -3
  271. package/dist/common/index.js +0 -3
  272. package/dist/common/operation.d.ts +0 -31
  273. package/dist/common/operation.js +0 -102
  274. package/dist/common/operation.test.d.ts +0 -1
  275. package/dist/common/operation.test.js +0 -53
  276. package/dist/common/retry.d.ts +0 -16
  277. package/dist/common/retry.js +0 -35
  278. package/dist/common/util.d.ts +0 -23
  279. package/dist/common/util.js +0 -139
  280. package/dist/connectors/browserConnector.d.ts +0 -53
  281. package/dist/connectors/browserConnector.js +0 -290
  282. package/dist/connectors/desktopConnector.d.ts +0 -58
  283. package/dist/connectors/desktopConnector.js +0 -68
  284. package/dist/connectors/index.d.ts +0 -14
  285. package/dist/connectors/index.js +0 -2
  286. package/dist/index.js +0 -28
  287. package/dist/logger.d.ts +0 -3
  288. package/dist/logger.js +0 -15
  289. package/dist/memory/agentMemory.d.ts +0 -47
  290. package/dist/memory/agentMemory.js +0 -167
  291. package/dist/memory/agentMemory.test.d.ts +0 -1
  292. package/dist/memory/agentMemory.test.js +0 -150
  293. package/dist/memory/image.d.ts +0 -28
  294. package/dist/memory/image.js +0 -95
  295. package/dist/memory/image.test.d.ts +0 -1
  296. package/dist/memory/image.test.js +0 -46
  297. package/dist/memory/index.d.ts +0 -3
  298. package/dist/memory/index.js +0 -3
  299. package/dist/memory/masking.d.ts +0 -7
  300. package/dist/memory/masking.js +0 -141
  301. package/dist/memory/masking.test.d.ts +0 -1
  302. package/dist/memory/masking.test.js +0 -117
  303. package/dist/memory/notebook.d.ts +0 -58
  304. package/dist/memory/notebook.js +0 -75
  305. package/dist/memory/notebook.test.d.ts +0 -1
  306. package/dist/memory/notebook.test.js +0 -99
  307. package/dist/memory/observation.d.ts +0 -38
  308. package/dist/memory/observation.js +0 -79
  309. package/dist/memory/rendering/index.d.ts +0 -10
  310. package/dist/memory/rendering/index.js +0 -13
  311. package/dist/memory/rendering/renderJsonParts.d.ts +0 -3
  312. package/dist/memory/rendering/renderJsonParts.js +0 -115
  313. package/dist/memory/rendering/renderJsonParts.test.d.ts +0 -1
  314. package/dist/memory/rendering/renderJsonParts.test.js +0 -217
  315. package/dist/memory/rendering/renderXmlParts.d.ts +0 -7
  316. package/dist/memory/rendering/renderXmlParts.js +0 -127
  317. package/dist/memory/serde.d.ts +0 -20
  318. package/dist/memory/serde.js +0 -67
  319. package/dist/memory/serde.test.d.ts +0 -1
  320. package/dist/memory/serde.test.js +0 -64
  321. package/dist/memory/util.d.ts +0 -2
  322. package/dist/memory/util.js +0 -17
  323. package/dist/telemetry/events.d.ts +0 -9
  324. package/dist/telemetry/events.js +0 -80
  325. package/dist/telemetry/index.d.ts +0 -6
  326. package/dist/telemetry/index.js +0 -91
  327. package/dist/types.d.ts +0 -30
  328. package/dist/types.js +0 -1
  329. package/dist/util.d.ts +0 -1
  330. package/dist/util.js +0 -12
  331. package/dist/version.d.ts +0 -1
  332. package/dist/version.js +0 -3
  333. package/dist/web/browserProvider.d.ts +0 -24
  334. package/dist/web/browserProvider.js +0 -164
  335. package/dist/web/browserProvider.test.d.ts +0 -1
  336. package/dist/web/browserProvider.test.js +0 -44
  337. package/dist/web/harness.d.ts +0 -109
  338. package/dist/web/harness.js +0 -401
  339. package/dist/web/recovery.d.ts +0 -46
  340. package/dist/web/recovery.js +0 -137
  341. package/dist/web/recovery.test.d.ts +0 -1
  342. package/dist/web/recovery.test.js +0 -182
  343. package/dist/web/stability.d.ts +0 -57
  344. package/dist/web/stability.js +0 -323
  345. package/dist/web/tabs.d.ts +0 -58
  346. package/dist/web/tabs.js +0 -293
  347. package/dist/web/transformer.d.ts +0 -7
  348. package/dist/web/transformer.js +0 -41
  349. package/dist/web/types.d.ts +0 -37
  350. package/dist/web/types.js +0 -2
  351. package/dist/web/util.d.ts +0 -3
  352. package/dist/web/util.js +0 -81
  353. package/dist/web/visualizer/cursor.d.ts +0 -16
  354. package/dist/web/visualizer/cursor.js +0 -153
  355. package/dist/web/visualizer/index.d.ts +0 -22
  356. package/dist/web/visualizer/index.js +0 -47
  357. package/dist/web/visualizer/mouseEffects.d.ts +0 -18
  358. package/dist/web/visualizer/mouseEffects.js +0 -287
  359. package/dist/web/visualizer/typeEffects.d.ts +0 -10
  360. package/dist/web/visualizer/typeEffects.js +0 -190
  361. package/dist/web/zodReexport.test.d.ts +0 -1
  362. package/dist/web/zodReexport.test.js +0 -14
  363. /package/{dist/common/actions.d.ts → node_modules/patchright-core/.bun-tag-19f23bd68c84ec1f} +0 -0
@@ -1,134 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- import { toBamlError, ClientRegistry } from "@boundaryml/baml";
11
- export class AsyncHttpRequest {
12
- runtime;
13
- ctxManager;
14
- constructor(runtime, ctxManager) {
15
- this.runtime = runtime;
16
- this.ctxManager = ctxManager;
17
- }
18
- async CreatePartialRecipe(memory, task, taskData, includeClaudeSpoof, __baml_options__) {
19
- try {
20
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
21
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
22
- // Resolve client option to clientRegistry (client takes precedence)
23
- let __clientRegistry__ = __baml_options__?.clientRegistry;
24
- if (__baml_options__?.client) {
25
- __clientRegistry__ = __clientRegistry__ || new ClientRegistry();
26
- __clientRegistry__.setPrimary(__baml_options__.client);
27
- }
28
- return await this.runtime.buildRequest("CreatePartialRecipe", {
29
- "memory": memory, "task": task, "taskData": taskData, "includeClaudeSpoof": includeClaudeSpoof
30
- }, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __clientRegistry__, false, __env__);
31
- }
32
- catch (error) {
33
- throw toBamlError(error);
34
- }
35
- }
36
- async ExtractData(instructions, screenshot, domContent, includeClaudeSpoof, __baml_options__) {
37
- try {
38
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
39
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
40
- // Resolve client option to clientRegistry (client takes precedence)
41
- let __clientRegistry__ = __baml_options__?.clientRegistry;
42
- if (__baml_options__?.client) {
43
- __clientRegistry__ = __clientRegistry__ || new ClientRegistry();
44
- __clientRegistry__.setPrimary(__baml_options__.client);
45
- }
46
- return await this.runtime.buildRequest("ExtractData", {
47
- "instructions": instructions, "screenshot": screenshot, "domContent": domContent, "includeClaudeSpoof": includeClaudeSpoof
48
- }, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __clientRegistry__, false, __env__);
49
- }
50
- catch (error) {
51
- throw toBamlError(error);
52
- }
53
- }
54
- async QueryMemory(memory, query, includeClaudeSpoof, __baml_options__) {
55
- try {
56
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
57
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
58
- // Resolve client option to clientRegistry (client takes precedence)
59
- let __clientRegistry__ = __baml_options__?.clientRegistry;
60
- if (__baml_options__?.client) {
61
- __clientRegistry__ = __clientRegistry__ || new ClientRegistry();
62
- __clientRegistry__.setPrimary(__baml_options__.client);
63
- }
64
- return await this.runtime.buildRequest("QueryMemory", {
65
- "memory": memory, "query": query, "includeClaudeSpoof": includeClaudeSpoof
66
- }, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __clientRegistry__, false, __env__);
67
- }
68
- catch (error) {
69
- throw toBamlError(error);
70
- }
71
- }
72
- }
73
- export class AsyncHttpStreamRequest {
74
- runtime;
75
- ctxManager;
76
- constructor(runtime, ctxManager) {
77
- this.runtime = runtime;
78
- this.ctxManager = ctxManager;
79
- }
80
- async CreatePartialRecipe(memory, task, taskData, includeClaudeSpoof, __baml_options__) {
81
- try {
82
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
83
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
84
- // Resolve client option to clientRegistry (client takes precedence)
85
- let __clientRegistry__ = __baml_options__?.clientRegistry;
86
- if (__baml_options__?.client) {
87
- __clientRegistry__ = __clientRegistry__ || new ClientRegistry();
88
- __clientRegistry__.setPrimary(__baml_options__.client);
89
- }
90
- return await this.runtime.buildRequest("CreatePartialRecipe", {
91
- "memory": memory, "task": task, "taskData": taskData, "includeClaudeSpoof": includeClaudeSpoof
92
- }, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __clientRegistry__, true, __env__);
93
- }
94
- catch (error) {
95
- throw toBamlError(error);
96
- }
97
- }
98
- async ExtractData(instructions, screenshot, domContent, includeClaudeSpoof, __baml_options__) {
99
- try {
100
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
101
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
102
- // Resolve client option to clientRegistry (client takes precedence)
103
- let __clientRegistry__ = __baml_options__?.clientRegistry;
104
- if (__baml_options__?.client) {
105
- __clientRegistry__ = __clientRegistry__ || new ClientRegistry();
106
- __clientRegistry__.setPrimary(__baml_options__.client);
107
- }
108
- return await this.runtime.buildRequest("ExtractData", {
109
- "instructions": instructions, "screenshot": screenshot, "domContent": domContent, "includeClaudeSpoof": includeClaudeSpoof
110
- }, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __clientRegistry__, true, __env__);
111
- }
112
- catch (error) {
113
- throw toBamlError(error);
114
- }
115
- }
116
- async QueryMemory(memory, query, includeClaudeSpoof, __baml_options__) {
117
- try {
118
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
119
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
120
- // Resolve client option to clientRegistry (client takes precedence)
121
- let __clientRegistry__ = __baml_options__?.clientRegistry;
122
- if (__baml_options__?.client) {
123
- __clientRegistry__ = __clientRegistry__ || new ClientRegistry();
124
- __clientRegistry__.setPrimary(__baml_options__.client);
125
- }
126
- return await this.runtime.buildRequest("QueryMemory", {
127
- "memory": memory, "query": query, "includeClaudeSpoof": includeClaudeSpoof
128
- }, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __clientRegistry__, true, __env__);
129
- }
130
- catch (error) {
131
- throw toBamlError(error);
132
- }
133
- }
134
- }
@@ -1,11 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- export { setLogLevel, getLogLevel, setLogJsonMode } from "@boundaryml/baml/logging";
11
- export { resetBamlEnvVars } from "./globals";
@@ -1,20 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- // This file was generated by BAML: please do not edit it. Instead, edit the
11
- // BAML files and re-generate this code using: baml-cli generate
12
- // You can install baml-cli with:
13
- // $ npm install @boundaryml/baml
14
- //
15
- /* eslint-disable */
16
- // tslint:disable
17
- // @ts-nocheck
18
- // biome-ignore format: autogenerated code
19
- export { setLogLevel, getLogLevel, setLogJsonMode } from "@boundaryml/baml/logging";
20
- export { resetBamlEnvVars } from "./globals";
@@ -1,16 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- import { BamlRuntime, BamlCtxManager } from '@boundaryml/baml';
11
- export declare const DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME: BamlRuntime;
12
- export declare const DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX: BamlCtxManager;
13
- /**
14
- * @deprecated resetBamlEnvVars is deprecated and is safe to remove, since environment variables are now lazily loaded on each function call
15
- */
16
- export declare function resetBamlEnvVars(envVars: Record<string, string | undefined>): void;
@@ -1,37 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- // This file was generated by BAML: please do not edit it. Instead, edit the
11
- // BAML files and re-generate this code using: baml-cli generate
12
- // You can install baml-cli with:
13
- // $ npm install @boundaryml/baml
14
- //
15
- /* eslint-disable */
16
- // tslint:disable
17
- // @ts-nocheck
18
- // biome-ignore format: autogenerated code
19
- import { BamlRuntime, BamlCtxManager } from '@boundaryml/baml';
20
- import { getBamlFiles } from './inlinedbaml';
21
- // Create a copy of process.env to avoid mutations
22
- const env = { ...process.env };
23
- export const DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME = BamlRuntime.fromFiles('baml_src', getBamlFiles(), env);
24
- export const DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX = new BamlCtxManager(DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME);
25
- /**
26
- * @deprecated resetBamlEnvVars is deprecated and is safe to remove, since environment variables are now lazily loaded on each function call
27
- */
28
- export function resetBamlEnvVars(envVars) {
29
- if (DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX.allowResets()) {
30
- const envVarsToReset = Object.fromEntries(Object.entries(envVars).filter((kv) => kv[1] !== undefined));
31
- DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME.reset('baml_src', getBamlFiles(), envVarsToReset);
32
- DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX.reset();
33
- }
34
- else {
35
- throw new Error('BamlError: Cannot reset BAML environment variables while there are active BAML contexts.');
36
- }
37
- }
@@ -1,17 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- export declare const version = "0.226.2";
11
- export { b } from "./async_client";
12
- export * from "./types";
13
- export type { partial_types } from "./partial_types";
14
- export * from "./tracing";
15
- export * as watchers from "./watchers";
16
- export { resetBamlEnvVars } from "./globals";
17
- export { BamlClientHttpError, BamlValidationError, BamlClientFinishReasonError } from "@boundaryml/baml";
@@ -1,42 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- // This file was generated by BAML: please do not edit it. Instead, edit the
11
- // BAML files and re-generate this code using: baml-cli generate
12
- // You can install baml-cli with:
13
- // $ npm install @boundaryml/baml
14
- //
15
- /* eslint-disable */
16
- // tslint:disable
17
- // @ts-nocheck
18
- // biome-ignore format: autogenerated code
19
- /**
20
- * If this import fails, you may need to upgrade @boundaryml/baml.
21
- *
22
- * Please upgrade @boundaryml/baml to 0.226.2.
23
- *
24
- * $ npm install @boundaryml/baml@0.226.2
25
- * $ yarn add @boundaryml/baml@0.226.2
26
- * $ pnpm add @boundaryml/baml@0.226.2
27
- *
28
- * If nothing else works, please ask for help:
29
- *
30
- * https://github.com/boundaryml/baml/issues
31
- * https://boundaryml.com/discord
32
- *
33
- **/
34
- import { ThrowIfVersionMismatch } from "@boundaryml/baml";
35
- export const version = "0.226.2";
36
- ThrowIfVersionMismatch(version);
37
- export { b } from "./async_client";
38
- export * from "./types";
39
- export * from "./tracing";
40
- export * as watchers from "./watchers";
41
- export { resetBamlEnvVars } from "./globals";
42
- export { BamlClientHttpError, BamlValidationError, BamlClientFinishReasonError } from "@boundaryml/baml";
@@ -1,19 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- export declare const getBamlFiles: () => {
11
- "behaviorTests.baml": string;
12
- "clients.baml": string;
13
- "diagnosis.baml": string;
14
- "extract.baml": string;
15
- "generators.baml": string;
16
- "memory.baml": string;
17
- "planner.baml": string;
18
- "types.baml": string;
19
- };
@@ -1,31 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- // This file was generated by BAML: please do not edit it. Instead, edit the
11
- // BAML files and re-generate this code using: baml-cli generate
12
- // You can install baml-cli with:
13
- // $ npm install @boundaryml/baml
14
- //
15
- /* eslint-disable */
16
- // tslint:disable
17
- // @ts-nocheck
18
- // biome-ignore format: autogenerated code
19
- const fileMap = {
20
- "behaviorTests.baml": "\ntest DoNotOverplan1 {\n functions [CreatePartialRecipe]\n args {\n screenshot {\n url \"https://magnitude-test-screenshots.s3.us-east-1.amazonaws.com/do_not_overplan_1.png\"\n }\n step {\n description #\"Create a new company\"#\n checks [\n #\"Company added successfully\"#\n ]\n testData {\n data [\n\n ]\n other #\"Make up the first 2 values and use defaults for the rest\"#\n }\n }\n previousActions [\n\n ]\n }\n @@assert( one_action, {{ this.actions|length == 1 }} )\n @@assert( not_marked_finished, {{ this.finished == false }} )\n}\n\n\ntest DoNotOverplan2 {\n // Especially with the test data, planner might be tempted to click create company and also plan to fill form fields.\n // BUT we do not want it to do that - it should only click the button.\n functions [CreatePartialRecipe]\n args {\n screenshot {\n url \"https://magnitude-test-screenshots.s3.us-east-1.amazonaws.com/do_not_overplan_2.png\"\n }\n step {\n description #\"Create a new company\"#\n checks [\n #\"Company added successfully\"#\n ]\n testData {\n data [\n\n ]\n other #\"Make up the first 2 values and use defaults for the rest\"#\n }\n }\n previousActions [\n #\"\n {\n \"variant\": \"click\",\n \"target\": \"Companies option in the left sidebar menu\"\n }\n \"#\n ]\n }\n @@assert( one_action, {{ this.actions|length == 1 }} )\n @@assert( not_marked_finished, {{ this.finished == false }} )\n}\n\ntest OptimalPlanning1 {\n functions [CreatePartialRecipe]\n args {\n screenshot {\n url \"https://magnitude-test-screenshots.s3.us-east-1.amazonaws.com/do_not_underplan_1.png\"\n }\n step {\n description #\"Create a new company\"#\n checks [\n #\"Company added successfully\"#\n ]\n testData {\n data [\n\n ]\n other #\"Make up the first 2 values and use defaults for the rest\"#\n }\n }\n previousActions [\n #\"\n {\n \"variant\": \"click\",\n \"target\": \"Companies option in the left sidebar menu\"\n }\n \"#,\n #\"\n {\n \"variant\": \"click\",\n \"target\": \"Add Company button in the top right corner\"\n }\n \"#\n ]\n \n }\n // optimal is type name, type domain, click save, mark finished\n @@assert( optimal_actions, {{ this.actions|length == 3 }} )\n // @@assert( not_marked_finished, {{ this.finished == false }} )\n}\n\n\n\n// test CheckContextRemove1 {\n// // Manual for now - ideally we'd want to verify that executor can check the returned description successfully\n// functions [RemoveImplicitCheckContext]\n// args {\n// screenshot {\n// url \"https://magnitude-test-screenshots.s3.us-east-1.amazonaws.com/check_context_remove_1.png\"\n// }\n// check #\"Company added successfully\"#\n// previousActions [\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"Companies option in the left sidebar menu\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"'Add Company' button in the top right corner of the Companies page\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"type\",\n// \"target\": \"Name input field\",\n// \"content\": \"Acme Solutions\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"type\",\n// \"target\": \"Domain input field\",\n// \"content\": \"acmesolutions.com\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"type\",\n// \"target\": \"Logo URL input field\",\n// \"content\": \"https://example.com/image.jpg\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"type\",\n// \"target\": \"Industry input field\",\n// \"content\": \"Technology\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"Size dropdown menu\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"1-10 option in the Size dropdown\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"Revenue dropdown menu\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"<$100K option in the Revenue dropdown\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"ICP Fit dropdown menu\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"Medium option in the ICP Fit dropdown\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"Est. ARR dropdown menu\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"<$10K option in the Est. ARR dropdown\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"Connection Strength dropdown menu\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"Weak option in the Connection Strength dropdown\"\n// }\n// \"#,\n// #\"\n// {\n// \"variant\": \"click\",\n// \"target\": \"Save button\"\n// }\n// \"#\n// ]\n// }\n// }\n\ntest TargetGrounding1 {\n // This test is a screenshot of Magnitude dasboard. Goal is to go to test playground.\n // Originally failed because target was described as \"TC-0 Playground Test Case button\"\n // This aligns more with the card shown rather that the specific button that actually needs to be clicked\n // which has text \"Experiment Now (Free!)\"\n // We want the planner to ground the targets in very specific details when available, such as the text on a button.\n // This test asserts that the generated target includes specific text from the button, at least \"Experiment Now\"\n functions [CreatePartialRecipe]\n args {\n screenshot {\n url \"https://magnitude-test-screenshots.s3.us-east-1.amazonaws.com/target_grounding_1.png\"\n }\n step {\n description #\"Go to test playground\"#\n checks [\n ]\n testData {\n data [\n\n ]\n other \"\"\n }\n }\n previousActions [\n ]\n }\n @@assert( includes_button_text, {{ \"Experiment Now (Free!)\" in this.actions[0].target }} )\n}",
21
- "clients.baml": "// Learn more about clients at https://docs.boundaryml.com/docs/snippets/clients/overview\n\nclient<llm> SonnetBedrock {\n provider aws-bedrock\n retry_policy Exponential\n options {\n inference_configuration {\n temperature 0.0\n }\n model_id \"anthropic.claude-3-5-sonnet-20240620-v1:0\"\n }\n}\n\nclient<llm> SonnetAnthropic {\n provider anthropic\n retry_policy Exponential\n options {\n model \"claude-sonnet-4-20250514\"\n api_key env.ANTHROPIC_API_KEY\n temperature 0.0\n allowed_role_metadata [\"cache_control\"]\n headers {\n \"anthropic-beta\" \"prompt-caching-2024-07-31\"\n }\n }\n}\n\nclient<llm> GeminiPro {\n provider \"google-ai\"\n options {\n api_key env.GOOGLE_API_KEY\n model \"gemini-2.5-pro-preview-05-06\"\n generationConfig {\n temperature 0.0\n }\n }\n}\n\nclient<llm> GeminiProOpenRouter {\n provider \"openai-generic\"\n options {\n base_url \"https://openrouter.ai/api/v1\"\n api_key env.OPENROUTER_API_KEY\n model \"google/gemini-2.5-pro-preview-03-25\"\n temperature 0.0\n }\n}\n\nclient<llm> GeminiFlash {\n provider \"openai-generic\"\n options {\n base_url \"https://openrouter.ai/api/v1\"\n api_key env.OPENROUTER_API_KEY\n model \"google/gemini-2.5-flash-preview\"\n temperature 0.0\n }\n}\n\nclient<llm> GPT {\n provider openai\n options {\n model \"gpt-4.1-2025-04-14\"\n api_key env.OPENAI_API_KEY\n temperature 0.0\n }\n}\n\n// client<llm> Macro {\n// provider openai\n// options {\n// model \"gpt-4o\"\n// api_key env.OPENAI_API_KEY\n// temperature 0.0\n// }\n// }\n\nclient<llm> NovitaLlamaMaverick {\n provider \"openai-generic\"\n retry_policy Exponential\n options {\n base_url \"https://api.novita.ai/v3/openai\"\n api_key env.NOVITA_API_KEY\n model \"meta-llama/llama-4-maverick-17b-128e-instruct-fp8\"\n temperature 0.0\n logprobs true\n }\n}\n\nclient<llm> Molmo {\n provider \"openai-generic\"\n retry_policy Exponential\n options {\n base_url env.MOLMO_VLLM_BASE_URL\n api_key env.MOLMO_VLLM_API_KEY\n model \"Molmo-7B-D-0924\"\n temperature 0.0\n logprobs true\n }\n}\n\nretry_policy Exponential {\n max_retries 5\n strategy {\n type exponential_backoff\n delay_ms 500\n multiplier 2.0\n max_delay_ms 10000\n }\n}\n\n// Default used by macro.ts\nretry_policy DefaultRetryPolicy {\n max_retries 5\n strategy {\n type exponential_backoff\n delay_ms 500\n multiplier 2.0\n max_delay_ms 10000\n }\n}\n",
22
- "diagnosis.baml": "\n// class FailureClassification {\n// classification \"bug\" | \"misalignment\"\n// }\n\nclass BugFailureClassification {\n reasoning string\n classification \"bug\"\n title string\n expectedResult string\n actualResult string\n severity \"critical\" | \"high\" | \"medium\" | \"low\"\n}\n\nclass MisalignmentClassification {\n reasoning string\n classification \"misalignment\"\n\n fault \"test\" | \"agent\" @description(#\"\n Is this likely a problem with the test case or some issue with the agent?\n \"#)\n \n message string @description(#\"\n If fault of test case:\n Message to the developer who wrote the test case to help them understand what may have happened and how they might be able to fix it.\n Be simple, direct, and informative.\n If fault of agent:\n Message to the developer who wrote the test case (not the person who wrote the agent) to help them understand what may have happened, and suggest possible ways to adjust the test case to accommodate the issue.\n \"#)\n}\n\n// class FailureClassification {\n// reasoning\n// classification \"bug\" | \"misalignment\"\n// }\n\ntemplate_string BaseMeta #\"\n You are observing the execution of an LLM agent that runs test cases.\n This agent executes test cases by observing screenshots from the browser, acting out steps, and verifying checks.\n\"#\n\n// should this be given the original or adjusted check?\n// should this be given more ctx of the overall step or test case?\n// this is a tricky prompt, but its not as critical to get right as others\n// it does become more important if we rely on classify as bug/misalign then correct minor misaligns only if not bug\n// ^ if we need this then we should think of a more isolated/logical prompt to detect misalignments\n// function ClassifyCheckFailure (context: BrowserExecutionContext, check: string) -> BugFailureClassification | MisalignmentClassification {\n// client SonnetAnthropic\n// prompt #\"\n// {{ _.role(\"system\") }}\n// {{ BaseMeta() }}\n\n// The agent just marked a check as failed. Your job is to figure out why.\n\n// Either:\n// (1) The web application actually has a bug in it\n// or\n// (2) There's some misalignment between the test case and what is in the interface\n\n// If there is a bug, please break it down in detail.\n// If it is a misalignment, please describe what you think happened.\n\n// Use the provided history of actions the agent took as well as the most recent screenshot to help you identify what happened.\n\n// {{ ctx.output_format }}\n\n// {{ _.role(\"user\") }}\n\n// The \"check\" that was marked as failed:\n// {{ check }}\n\n// {{ DescribeBrowserExecutionContext(context) }}\n// \"#\n// }\n\n// function DiagnoseTargetNotFound (screenshot: image, step: TestStep, target: string, previousActions: string[]) -> BugFailureClassification | MisalignmentClassification {\n// client SonnetAnthropic\n// prompt #\"\n// {{ _.role(\"system\") }}\n// {{ BaseMeta() }}\n\n// The agent had an issue acting out a step because it could not find a target. Your job is to figure out why.\n\n// Either:\n// (1) The web application actually has a bug in it\n// or\n// (2) There's some misalignment between the test case and what is in the interface\n\n// If there is a bug, please break it down in detail.\n// If it is a misalignment, please describe what you think happened.\n\n// Use the provided history of actions the agent took as well as the most recent screenshot to help you identify what happened.\n\n// {{ ctx.output_format }}\n\n// {{ _.role(\"user\") }}\n\n// The history of previous actions:\n// {%if previousActions %}\n// (there are none)\n// {%endif%}\n// {%for action in previousActions%}\n// {{ action }}\n// {%endfor%}\n \n// The step that failed: <step>{{ step.description }}</step>\n// Target that could not be found: <target>{{ target }}</target>\n \n\n// Current screenshot:\n// {{screenshot}}\n// \"#\n// }",
23
- "extract.baml": "// if primitive, populate key \"data\"\n// if array, populate key data with that array\n// else fill with object fields\nclass ExtractedData {\n @@dynamic\n}\n\nfunction ExtractData (instructions: string, screenshot: image, domContent: string, includeClaudeSpoof: bool) -> ExtractedData {\n client GeminiPro\n prompt #\"\n {%if includeClaudeSpoof%}\n {{ _.role(\"system\") }}\n You are Claude Code, Anthropic's official CLI for Claude.\n {%endif%}\n {{ _.role(\"system\") }}\n Based on the browser screenshot and page content, extract data according to these instructions:\n <instructions>{{ instructions }}</instructions>\n \n {{ ctx.output_format }}\n\n {{ _.role(\"user\") }}\n\n {{ domContent }}\n\n {{ screenshot }}\n \"#\n}",
24
- "generators.baml": "// This helps use auto generate libraries you can use in the language of\n// your choice. You can have multiple generators if you use multiple languages.\n// Just ensure that the output_dir is different for each generator.\ngenerator target {\n // Valid values: \"python/pydantic\", \"typescript\", \"ruby/sorbet\", \"rest/openapi\"\n output_type \"typescript\"\n\n // Where the generated code will be saved (relative to baml_src/)\n output_dir \"../src/ai\"\n\n // The version of the BAML package you have installed (e.g. same version as your baml-py or @boundaryml/baml).\n // The BAML VSCode extension version should also match this version.\n version \"0.226.2\"\n\n // Valid values: \"sync\", \"async\"\n // This controls what `b.FunctionName()` will be (sync or async).\n default_client_mode async\n}\n",
25
- "memory.baml": "// BamlImage class is assumed to be defined and available from your BAML setup\n// For example, it might be part of a core BAML library or generated separately.\n// If not, you might need to define it or import it if it's in another baml file.\n// For now, we assume 'Image' is a known type to BAML.\n\n// class BamlThought {\n// variant \"thought\"\n// timestamp string\n// message string\n// }\n\n// class BamlTurn {\n// variant \"turn\"\n// timestamp string\n// action string \n// content (string | image)[] // multimedia content \"chunks\"\n// }\n\n\n// class Observation {\n// source string\n// content (string | image)[] // multimedia content \"chunks\"\n// }\n\nclass ConnectorInstructions {\n connectorId string\n instructions string\n //content (string | image)[]\n}\n\nclass AgentContext {\n instructions string? // additional task-level or agent-level instructions\n //history (BamlThought | BamlTurn)[]\n //observations Observation[]\n //observationContent (string | image)[] // complete rendered observation content as multimedia content \"chunks\"\n observationContent MultiMediaMessage[]\n //currentTimestamp string\n connectorInstructions ConnectorInstructions[]\n}\n",
26
- "planner.baml": "class PartialRecipe {\n // this CoT pipeline is not thoroughly tested against alternatives\n // observations string? @description(#\"Any key observations about past actions or current state\"#)\n // meta_reasoning string @description(#\"Reflect on the current state of task execution with respect to your own abilities as an agent\"#)\n // reasoning string @description(#\"Consider what you can see right now and what actions you can plan without guessing\"#)\n\n // Simplifying CoT - seemed to be causing underplanning on Claude\n //observations string @description(#\"What important clues or key information are worth considering?\"#)\n reasoning string @description(#\"What is the most actions you can safely take at once?\"#)\n\n //actions ActionIntent[]\n @@dynamic\n //finished bool\n}\n\n\n// render \"chunked\" multimedia content of strings or images with no added whitespace between\n// template_string RenderContent(content: (string | image)[]) #\"\n// {% for chunk in content -%}{{chunk}}{%- endfor %}\n// \"#\n\ntemplate_string RenderMultiMediaContentParts(parts: MultiMediaContentPart[]) #\"\n {% for part in parts -%}{{part}}{%- endfor %}\n\"#\n\ntemplate_string RenderMessages(messages: MultiMediaMessage[]) #\"\n {% for message in messages -%}\n {%if message.cacheControl %}\n {{ _.role(message.role, cache_control={\"type\": \"ephemeral\"}) }}\n {{ RenderMultiMediaContentParts(message.content) }}\n {%else%}\n {{ _.role(message.role) }}\n {{ RenderMultiMediaContentParts(message.content) }}\n {%endif%}\n {%- endfor %}\n\"#\n\n\n// template_string DescribeModularMemoryContext(context: ModularMemoryContext) #\"\n// {% for entry in context.history %}\n// {% if entry.variant == \"thought\" %}\n// [{{entry.timestamp}}] {{entry.message}}\n// {% elif entry.variant == \"turn\" %}\n// [{{entry.timestamp}}] {{entry.action}}\n// {{ RenderContent(entry.content) }}\n// {% endif %}\n// {% endfor %}\n// \"#\n\n// unused\ntemplate_string HybridMeta #\"\n <meta>\n You are a web agent powered by (1) a powerful LLM (you) and (2) a small vision model (Moondream).\n You operate by planning out actions over time to try and complete a certain task.\n To do this successfully you may need to consider and adjust for your own limitations as an agent, so here is some information about how you work:\n - You plan several actions ahead of time without trying to guess, which are then executed\n - You are then given a new screenshot of the webpage which is the result of all actions taken\n - This occurs in a loop until you complete your task\n - Mouse movements require a \"target\", which is located by Moondream as a specific coordinate on the page\n - Moondream may sometimes fail to locate the target you expected it to.\n - Therefore, actions may not always be completely successful and you may need to try different variations\n </meta>\n\"#\n\ntemplate_string DescribeConnectorInstructions(memory: AgentContext) #\"\n {% for conn in memory.connectorInstructions %}\n <{{ conn.connectorId }}>\n {{- conn.instructions -}}\n </{{ conn.connectorId }}>\n {% endfor %}\n\"#\n\ntemplate_string InstructionsWithContext(memory: AgentContext, instructions: string) #\"\n {{ _.role(\"system\", cache_control={\"type\": \"ephemeral\"}) }}\n <instructions>\n {{ instructions }}\n {%if memory.instructions %}\n\n {{ memory.instructions }}\n {%endif%}\n </instructions>\n {{ DescribeConnectorInstructions(memory) }}\n {{ ctx.output_format }}\n\n {{ RenderMessages(memory.observationContent) }}\n\"# \n\ntemplate_string TaskInstructions(task: string, taskData: MultiMediaContentPart[]) #\"\n Plan out actions that should be executed in order to complete the task:\n <task>\n {{ task }}\n </task>\n\n Use this data where appropriate during the task:\n <data>\n {{ RenderMultiMediaContentParts(taskData) }}\n </data>\n\n Execute the task serially.\n\n Plan out as many actions as possible, but stopping at the point where you will need to observe to plan further.\n\n Return exactly one complete JSON object matching the output schema, with \"reasoning\", \"memory_updates\", and a non-empty \"actions\" array.\n First review the current observations: in memory_updates, save exact facts and completed checks needed later, with supporting observation numbers. Add each record under a separate key; add never overwrites an existing key. Correct only the same record by naming its key and copying its current text into expected_text; preserve its still-valid facts. Omitted keys remain unchanged. Use [] when nothing new needs retaining; do not invent facts or repeat unchanged notes.\n The host saves memory_updates before executing actions. Record only evidence already observed, never the anticipated results of those actions. Each update consumes one action from the existing budget.\n Keep reasoning concise. Do not include prose outside the JSON, Markdown fences, XML, or simulated tool calls.\n The actions array is executed by the host after you respond. Do not pretend to execute actions or invent their results.\n Base factual comparisons on observed evidence, including retained task notes from earlier observations. You do not need to reopen an unchanged source merely because its screenshot has left context.\n Use the latest screenshot for coordinates and current UI state. Revisit sources when evidence is missing, conflicting, or may have changed. Do not assume future action results; stop and wait for new observations when needed.\n\"#\n\n// TODO: connector system instructions\nfunction CreatePartialRecipe (memory: AgentContext, task: string, taskData: MultiMediaContentPart[], includeClaudeSpoof: bool) -> PartialRecipe {\n client SonnetAnthropic\n prompt #\"\n {%if includeClaudeSpoof%}\n {{ _.role(\"system\") }}\n You are Claude Code, Anthropic's official CLI for Claude.\n {%endif%}\n {{ InstructionsWithContext(memory, TaskInstructions(task, taskData)) }}\n \"# \n}\n\n\ntest Foo {\n functions [CreatePartialRecipe]\n args {\n memory {\n observationContent [{ role \"user\", content [\"test\"] }]\n connectorInstructions []\n }\n task \"foo\"\n includeClaudeSpoof true\n }\n}\n\n// class EvaluatedCheck {\n// reasoning string\n// passes bool\n// }\nclass QueryResponse {\n @@dynamic\n}\n\nfunction QueryMemory(memory: AgentContext, query: string, includeClaudeSpoof: bool) -> QueryResponse {\n client GeminiPro\n prompt #\"\n {%if includeClaudeSpoof%}\n {{ _.role(\"system\") }}\n You are Claude Code, Anthropic's official CLI for Claude.\n {%endif%}\n {{ InstructionsWithContext(memory, query) }}\n \"#\n}\n\n\n// template_string CheckInstructions(check: string) #\"\n// Given the actions of an LLM agent executing a test case, and a screenshot taken afterwards, evaluate whether the provided check \"passes\" i.e. holds true or not.\n\n// Check to evaluate:\n// <check>{{ check }}</check>\n// \"#\n\n// function EvaluateCheck (context: ModularMemoryContext, check: string) -> EvaluatedCheck {\n// client GeminiPro\n// prompt #\"\n// {{ InstructionsWithContext(context, CheckInstructions(check)) }}\n// \"#\n// }\n\n// Moondream struggles to handle converted check, this is a bypass to use big model to evaluate check directly\n// function EvaluateCheck (context: BrowserExecutionContext, check: string) -> EvaluatedCheck {\n// client GeminiPro\n// prompt #\"\n// {{ _.role(\"system\") }}\n// Given the actions of an LLM agent executing a test case, and a screenshot taken afterwards, evaluate whether the provided check \"passes\" i.e. holds true or not.\n// {{ ctx.output_format }}\n\n// {{ _.role(\"user\")}}\n// Check to evaluate:\n// <check>{{ check }}</check>\n\n// {{ DescribeBrowserExecutionContext(context) }}\n// \"# \n// }\n",
27
- "types.baml": "type MultiMediaContentPart = image | string\n\nclass MultiMediaMessage {\n role \"user\" | \"assistant\"\n cacheControl bool\n content MultiMediaContentPart[]\n}\n",
28
- };
29
- export const getBamlFiles = () => {
30
- return fileMap;
31
- };
@@ -1,53 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- import type { BamlRuntime, BamlCtxManager, ClientRegistry } from "@boundaryml/baml";
11
- import type { partial_types } from "./partial_types";
12
- import type * as types from "./types";
13
- import type TypeBuilder from "./type_builder";
14
- export declare class LlmResponseParser {
15
- private runtime;
16
- private ctxManager;
17
- constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager);
18
- CreatePartialRecipe(llmResponse: string, __baml_options__?: {
19
- tb?: TypeBuilder;
20
- clientRegistry?: ClientRegistry;
21
- env?: Record<string, string | undefined>;
22
- }): types.PartialRecipe;
23
- ExtractData(llmResponse: string, __baml_options__?: {
24
- tb?: TypeBuilder;
25
- clientRegistry?: ClientRegistry;
26
- env?: Record<string, string | undefined>;
27
- }): types.ExtractedData;
28
- QueryMemory(llmResponse: string, __baml_options__?: {
29
- tb?: TypeBuilder;
30
- clientRegistry?: ClientRegistry;
31
- env?: Record<string, string | undefined>;
32
- }): types.QueryResponse;
33
- }
34
- export declare class LlmStreamParser {
35
- private runtime;
36
- private ctxManager;
37
- constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager);
38
- CreatePartialRecipe(llmResponse: string, __baml_options__?: {
39
- tb?: TypeBuilder;
40
- clientRegistry?: ClientRegistry;
41
- env?: Record<string, string | undefined>;
42
- }): partial_types.PartialRecipe;
43
- ExtractData(llmResponse: string, __baml_options__?: {
44
- tb?: TypeBuilder;
45
- clientRegistry?: ClientRegistry;
46
- env?: Record<string, string | undefined>;
47
- }): partial_types.ExtractedData;
48
- QueryMemory(llmResponse: string, __baml_options__?: {
49
- tb?: TypeBuilder;
50
- clientRegistry?: ClientRegistry;
51
- env?: Record<string, string | undefined>;
52
- }): partial_types.QueryResponse;
53
- }
@@ -1,86 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- import { toBamlError } from "@boundaryml/baml";
11
- export class LlmResponseParser {
12
- runtime;
13
- ctxManager;
14
- constructor(runtime, ctxManager) {
15
- this.runtime = runtime;
16
- this.ctxManager = ctxManager;
17
- }
18
- CreatePartialRecipe(llmResponse, __baml_options__) {
19
- try {
20
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
21
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
22
- return this.runtime.parseLlmResponse("CreatePartialRecipe", llmResponse, false, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __baml_options__?.clientRegistry, __env__);
23
- }
24
- catch (error) {
25
- throw toBamlError(error);
26
- }
27
- }
28
- ExtractData(llmResponse, __baml_options__) {
29
- try {
30
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
31
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
32
- return this.runtime.parseLlmResponse("ExtractData", llmResponse, false, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __baml_options__?.clientRegistry, __env__);
33
- }
34
- catch (error) {
35
- throw toBamlError(error);
36
- }
37
- }
38
- QueryMemory(llmResponse, __baml_options__) {
39
- try {
40
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
41
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
42
- return this.runtime.parseLlmResponse("QueryMemory", llmResponse, false, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __baml_options__?.clientRegistry, __env__);
43
- }
44
- catch (error) {
45
- throw toBamlError(error);
46
- }
47
- }
48
- }
49
- export class LlmStreamParser {
50
- runtime;
51
- ctxManager;
52
- constructor(runtime, ctxManager) {
53
- this.runtime = runtime;
54
- this.ctxManager = ctxManager;
55
- }
56
- CreatePartialRecipe(llmResponse, __baml_options__) {
57
- try {
58
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
59
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
60
- return this.runtime.parseLlmResponse("CreatePartialRecipe", llmResponse, true, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __baml_options__?.clientRegistry, __env__);
61
- }
62
- catch (error) {
63
- throw toBamlError(error);
64
- }
65
- }
66
- ExtractData(llmResponse, __baml_options__) {
67
- try {
68
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
69
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
70
- return this.runtime.parseLlmResponse("ExtractData", llmResponse, true, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __baml_options__?.clientRegistry, __env__);
71
- }
72
- catch (error) {
73
- throw toBamlError(error);
74
- }
75
- }
76
- QueryMemory(llmResponse, __baml_options__) {
77
- try {
78
- const __rawEnv__ = __baml_options__?.env ? { ...process.env, ...__baml_options__.env } : { ...process.env };
79
- const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
80
- return this.runtime.parseLlmResponse("QueryMemory", llmResponse, true, this.ctxManager.cloneContext(), __baml_options__?.tb?.__tb(), __baml_options__?.clientRegistry, __env__);
81
- }
82
- catch (error) {
83
- throw toBamlError(error);
84
- }
85
- }
86
- }
@@ -1,61 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- import type { Image } from "@boundaryml/baml";
11
- /******************************************************************************
12
- *
13
- * These types are used for streaming, for when an instance of a type
14
- * is still being built up and any of its fields is not yet fully available.
15
- *
16
- ******************************************************************************/
17
- export interface StreamState<T> {
18
- value: T;
19
- state: "Pending" | "Incomplete" | "Complete";
20
- }
21
- export declare namespace partial_types {
22
- interface AgentContext {
23
- instructions?: string | null;
24
- observationContent: MultiMediaMessage[];
25
- connectorInstructions: ConnectorInstructions[];
26
- }
27
- interface BugFailureClassification {
28
- reasoning?: string | null;
29
- classification?: "bug" | null;
30
- title?: string | null;
31
- expectedResult?: string | null;
32
- actualResult?: string | null;
33
- severity?: "critical" | "high" | "medium" | "low" | null;
34
- }
35
- interface ConnectorInstructions {
36
- connectorId?: string | null;
37
- instructions?: string | null;
38
- }
39
- interface ExtractedData {
40
- [key: string]: any;
41
- }
42
- interface MisalignmentClassification {
43
- reasoning?: string | null;
44
- classification?: "misalignment" | null;
45
- fault?: "test" | "agent" | null;
46
- message?: string | null;
47
- }
48
- interface MultiMediaMessage {
49
- role?: "user" | "assistant" | null;
50
- cacheControl?: boolean | null;
51
- content: (Image | string)[];
52
- }
53
- interface PartialRecipe {
54
- reasoning?: string | null;
55
- [key: string]: any;
56
- }
57
- interface QueryResponse {
58
- [key: string]: any;
59
- }
60
- type MultiMediaContentPart = Image | string | null;
61
- }
@@ -1,10 +0,0 @@
1
- /*************************************************************************************************
2
-
3
- Welcome to Baml! To use this generated code, please run one of the following:
4
-
5
- $ npm install @boundaryml/baml
6
- $ yarn add @boundaryml/baml
7
- $ pnpm add @boundaryml/baml
8
-
9
- *************************************************************************************************/
10
- export {};