@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.
- package/dist/cli.cjs +2 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +2 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.mjs +1 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/index.cjs +2704 -1522
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +188 -50
- package/dist/index.d.ts +1147 -23
- package/dist/index.mjs +2527 -1362
- package/dist/index.mjs.map +1 -0
- package/node_modules/patchright-core/README.md +3 -0
- package/node_modules/patchright-core/ThirdPartyNotices.txt +13 -0
- package/node_modules/patchright-core/bin/install_media_pack.ps1 +5 -0
- package/node_modules/patchright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/node_modules/patchright-core/browsers.json +52 -0
- package/node_modules/patchright-core/cli.js +22 -0
- package/node_modules/patchright-core/index.d.ts +17 -0
- package/node_modules/patchright-core/index.js +17 -0
- package/node_modules/patchright-core/index.mjs +28 -0
- package/node_modules/patchright-core/lib/bootstrap.js +149 -0
- package/node_modules/patchright-core/lib/coreBundle.js +80653 -0
- package/node_modules/patchright-core/lib/entry/cliDaemon.js +5 -0
- package/node_modules/patchright-core/lib/entry/dashboardApp.js +3 -0
- package/node_modules/patchright-core/lib/entry/mcp.js +10 -0
- package/node_modules/patchright-core/lib/entry/oopBrowserDownload.js +3 -0
- package/node_modules/patchright-core/lib/package.js +50 -0
- package/node_modules/patchright-core/lib/server/chromium/appIcon.png +0 -0
- package/node_modules/patchright-core/lib/server/electron/loader.js +112 -0
- package/node_modules/patchright-core/lib/serverRegistry.js +1939 -0
- package/node_modules/patchright-core/lib/serverRegistry.js.LICENSE +65 -0
- package/node_modules/patchright-core/lib/tools/cli-client/channelSessions.js +141 -0
- package/node_modules/patchright-core/lib/tools/cli-client/cli.js +7 -0
- package/node_modules/patchright-core/lib/tools/cli-client/help.json +808 -0
- package/node_modules/patchright-core/lib/tools/cli-client/minimist.js +128 -0
- package/node_modules/patchright-core/lib/tools/cli-client/output.js +352 -0
- package/node_modules/patchright-core/lib/tools/cli-client/program.js +422 -0
- package/node_modules/patchright-core/lib/tools/cli-client/registry.js +180 -0
- package/node_modules/patchright-core/lib/tools/cli-client/session.js +261 -0
- package/node_modules/patchright-core/lib/tools/dashboard/appIcon.png +0 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/SKILL.md +493 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/element-attributes.md +23 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/pr-attachments.md +60 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/request-mocking.md +87 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/running-code.md +245 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/session-management.md +227 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/storage-state.md +275 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/test-generation.md +433 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/tracing.md +139 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/video-recording.md +216 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/SKILL.md +136 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/migration.md +89 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/react.md +69 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/typing.md +173 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/vue.md +77 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-trace/SKILL.md +174 -0
- package/node_modules/patchright-core/lib/tools/utils/extension.js +112 -0
- package/node_modules/patchright-core/lib/tools/utils/socketConnection.js +108 -0
- package/node_modules/patchright-core/lib/utilsBundle.js +86225 -0
- package/node_modules/patchright-core/lib/utilsBundle.js.LICENSE +1890 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +32 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/index-AwgwcYie.css +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/index-hRvO4yU2.js +12 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/index.html +29 -0
- package/node_modules/patchright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
- package/node_modules/patchright-core/lib/vite/htmlReport/index.html +16 -0
- package/node_modules/patchright-core/lib/vite/htmlReport/report.css +2 -0
- package/node_modules/patchright-core/lib/vite/htmlReport/report.js +32 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/codeMirrorModule-GBnsXk4c.js +32 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/index-BZpYJZ-P.css +1 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/index-CVDOfo-j.js +129 -0
- package/node_modules/patchright-core/lib/vite/recorder/index.html +29 -0
- package/node_modules/patchright-core/lib/vite/recorder/playwright-logo.svg +9 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/assets/codeMirrorModule-G79327TW.js +32 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/assets/defaultSettingsView-D9EV0iaS.js +184 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/assets/xtermModule-Al_u-Nk5.js +7 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/defaultSettingsView.C8BeHuxd.css +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/index.CMB2-c8e.js +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/index.html +44 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/snapshot.html +10 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/sw.bundle.js +4 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/uiMode.C3yLoy2G.js +5 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/uiMode.html +18 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
- package/node_modules/patchright-core/lib/webp_codec.LICENSE +173 -0
- package/node_modules/patchright-core/lib/webp_codec.wasm +0 -0
- package/node_modules/patchright-core/lib/xdg-open +1267 -0
- package/node_modules/patchright-core/package.json +34 -0
- package/node_modules/patchright-core/types/protocol.d.ts +24776 -0
- package/node_modules/patchright-core/types/structs.d.ts +52 -0
- package/node_modules/patchright-core/types/types.d.ts +27167 -0
- package/node_modules/playwright/.bun-tag-91d746a6045e143f +0 -0
- package/node_modules/playwright/README.md +300 -0
- package/node_modules/playwright/ThirdPartyNotices.txt +14 -0
- package/node_modules/playwright/cli.js +19 -0
- package/node_modules/playwright/index.d.ts +17 -0
- package/node_modules/playwright/index.js +17 -0
- package/node_modules/playwright/index.mjs +18 -0
- package/node_modules/playwright/lib/agents/agentParser.js +89 -0
- package/node_modules/playwright/lib/agents/copilot-setup-steps.yml +34 -0
- package/node_modules/playwright/lib/agents/generateAgents.js +395 -0
- package/node_modules/playwright/lib/agents/playwright-test-coverage.prompt.md +31 -0
- package/node_modules/playwright/lib/agents/playwright-test-generate.prompt.md +8 -0
- package/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +88 -0
- package/node_modules/playwright/lib/agents/playwright-test-heal.prompt.md +6 -0
- package/node_modules/playwright/lib/agents/playwright-test-healer.agent.md +56 -0
- package/node_modules/playwright/lib/agents/playwright-test-plan.prompt.md +9 -0
- package/node_modules/playwright/lib/agents/playwright-test-planner.agent.md +74 -0
- package/node_modules/playwright/lib/cli/reportActions.js +78 -0
- package/node_modules/playwright/lib/cli/testActions.js +217 -0
- package/node_modules/playwright/lib/common/index.js +2937 -0
- package/node_modules/playwright/lib/common/index.js.txt +33 -0
- package/node_modules/playwright/lib/errorContext.js +129 -0
- package/node_modules/playwright/lib/globals.js +58 -0
- package/node_modules/playwright/lib/index.js +827 -0
- package/node_modules/playwright/lib/isomorphic.js +260 -0
- package/node_modules/playwright/lib/isomorphic.js.txt +9 -0
- package/node_modules/playwright/lib/loader/loaderProcessEntry.js +34 -0
- package/node_modules/playwright/lib/loader/loaderProcessEntry.js.txt +9 -0
- package/node_modules/playwright/lib/matchers/expect.js +13496 -0
- package/node_modules/playwright/lib/matchers/expect.js.LICENSE +640 -0
- package/node_modules/playwright/lib/matchers/expect.js.txt +67 -0
- package/node_modules/playwright/lib/mcp/test/browserBackend.js +135 -0
- package/node_modules/playwright/lib/mcp/test/generatorTools.js +122 -0
- package/node_modules/playwright/lib/mcp/test/plannerTools.js +150 -0
- package/node_modules/playwright/lib/mcp/test/seed.js +82 -0
- package/node_modules/playwright/lib/mcp/test/streams.js +44 -0
- package/node_modules/playwright/lib/mcp/test/testBackend.js +99 -0
- package/node_modules/playwright/lib/mcp/test/testContext.js +306 -0
- package/node_modules/playwright/lib/mcp/test/testTool.js +30 -0
- package/node_modules/playwright/lib/mcp/test/testTools.js +98 -0
- package/node_modules/playwright/lib/package.js +47 -0
- package/node_modules/playwright/lib/program.js +242 -0
- package/node_modules/playwright/lib/runner/index.js +8721 -0
- package/node_modules/playwright/lib/runner/index.js.txt +62 -0
- package/node_modules/playwright/lib/transform/babelBundle.js +72490 -0
- package/node_modules/playwright/lib/transform/babelBundle.js.LICENSE +2384 -0
- package/node_modules/playwright/lib/transform/babelBundle.js.txt +328 -0
- package/node_modules/playwright/lib/transform/esmLoader.js +8213 -0
- package/node_modules/playwright/lib/transform/esmLoader.js.LICENSE +355 -0
- package/node_modules/playwright/lib/transform/esmLoader.js.txt +60 -0
- package/node_modules/playwright/lib/util.js +373 -0
- package/node_modules/playwright/lib/worker/workerProcessEntry.js +1860 -0
- package/node_modules/playwright/lib/worker/workerProcessEntry.js.txt +19 -0
- package/node_modules/playwright/package.json +50 -0
- package/node_modules/playwright/test.d.ts +18 -0
- package/node_modules/playwright/test.js +24 -0
- package/node_modules/playwright/test.mjs +35 -0
- package/node_modules/playwright/types/test.d.ts +11191 -0
- package/node_modules/playwright/types/testReporter.d.ts +950 -0
- package/package.json +21 -12
- package/dist/actions/desktopActions.d.ts +0 -58
- package/dist/actions/desktopActions.js +0 -155
- package/dist/actions/index.d.ts +0 -27
- package/dist/actions/index.js +0 -11
- package/dist/actions/memoryActions.d.ts +0 -9
- package/dist/actions/memoryActions.js +0 -34
- package/dist/actions/taskActions.d.ts +0 -8
- package/dist/actions/taskActions.js +0 -27
- package/dist/actions/types.d.ts +0 -35
- package/dist/actions/types.js +0 -5
- package/dist/actions/util.d.ts +0 -21
- package/dist/actions/util.js +0 -280
- package/dist/actions/webActions.d.ts +0 -87
- package/dist/actions/webActions.js +0 -214
- package/dist/actions/webActions.test.d.ts +0 -1
- package/dist/actions/webActions.test.js +0 -43
- package/dist/agent/browserAgent.d.ts +0 -31
- package/dist/agent/browserAgent.js +0 -136
- package/dist/agent/errors.d.ts +0 -22
- package/dist/agent/errors.js +0 -97
- package/dist/agent/index.d.ts +0 -64
- package/dist/agent/index.js +0 -505
- package/dist/agent/narrator.d.ts +0 -4
- package/dist/agent/narrator.js +0 -63
- package/dist/agent/pause.test.d.ts +0 -1
- package/dist/agent/pause.test.js +0 -194
- package/dist/ai/baml_client/async_client.d.ts +0 -64
- package/dist/ai/baml_client/async_client.js +0 -284
- package/dist/ai/baml_client/async_request.d.ts +0 -39
- package/dist/ai/baml_client/async_request.js +0 -134
- package/dist/ai/baml_client/config.d.ts +0 -11
- package/dist/ai/baml_client/config.js +0 -20
- package/dist/ai/baml_client/globals.d.ts +0 -16
- package/dist/ai/baml_client/globals.js +0 -37
- package/dist/ai/baml_client/index.d.ts +0 -17
- package/dist/ai/baml_client/index.js +0 -42
- package/dist/ai/baml_client/inlinedbaml.d.ts +0 -19
- package/dist/ai/baml_client/inlinedbaml.js +0 -31
- package/dist/ai/baml_client/parser.d.ts +0 -53
- package/dist/ai/baml_client/parser.js +0 -86
- package/dist/ai/baml_client/partial_types.d.ts +0 -61
- package/dist/ai/baml_client/partial_types.js +0 -10
- package/dist/ai/baml_client/sync_client.d.ts +0 -57
- package/dist/ai/baml_client/sync_client.js +0 -142
- package/dist/ai/baml_client/sync_request.d.ts +0 -37
- package/dist/ai/baml_client/sync_request.js +0 -134
- package/dist/ai/baml_client/tracing.d.ts +0 -16
- package/dist/ai/baml_client/tracing.js +0 -18
- package/dist/ai/baml_client/type_builder.d.ts +0 -40
- package/dist/ai/baml_client/type_builder.js +0 -120
- package/dist/ai/baml_client/types.d.ts +0 -69
- package/dist/ai/baml_client/types.js +0 -15
- package/dist/ai/baml_client/watchers.d.ts +0 -32
- package/dist/ai/baml_client/watchers.js +0 -50
- package/dist/ai/baseten.d.ts +0 -4
- package/dist/ai/baseten.js +0 -10
- package/dist/ai/claudeCode.d.ts +0 -1
- package/dist/ai/claudeCode.js +0 -186
- package/dist/ai/modelHarness.d.ts +0 -39
- package/dist/ai/modelHarness.js +0 -324
- package/dist/ai/modelResponseError.d.ts +0 -4
- package/dist/ai/modelResponseError.js +0 -8
- package/dist/ai/multiModelHarness.d.ts +0 -24
- package/dist/ai/multiModelHarness.js +0 -52
- package/dist/ai/plannerResponse.d.ts +0 -34
- package/dist/ai/plannerResponse.js +0 -96
- package/dist/ai/plannerResponse.test.d.ts +0 -1
- package/dist/ai/plannerResponse.test.js +0 -112
- package/dist/ai/structuredOutput.d.ts +0 -11
- package/dist/ai/structuredOutput.js +0 -94
- package/dist/ai/structuredOutput.test.d.ts +0 -1
- package/dist/ai/structuredOutput.test.js +0 -91
- package/dist/ai/types.d.ts +0 -119
- package/dist/ai/types.js +0 -5
- package/dist/ai/util.d.ts +0 -13
- package/dist/ai/util.js +0 -200
- package/dist/ai/util.test.d.ts +0 -1
- package/dist/ai/util.test.js +0 -95
- package/dist/cli.js +0 -3
- package/dist/common/actions.js +0 -14
- package/dist/common/events.d.ts +0 -17
- package/dist/common/events.js +0 -3
- package/dist/common/failure.d.ts +0 -68
- package/dist/common/failure.js +0 -1
- package/dist/common/index.d.ts +0 -3
- package/dist/common/index.js +0 -3
- package/dist/common/operation.d.ts +0 -31
- package/dist/common/operation.js +0 -102
- package/dist/common/operation.test.d.ts +0 -1
- package/dist/common/operation.test.js +0 -53
- package/dist/common/retry.d.ts +0 -16
- package/dist/common/retry.js +0 -35
- package/dist/common/util.d.ts +0 -23
- package/dist/common/util.js +0 -139
- package/dist/connectors/browserConnector.d.ts +0 -53
- package/dist/connectors/browserConnector.js +0 -290
- package/dist/connectors/desktopConnector.d.ts +0 -58
- package/dist/connectors/desktopConnector.js +0 -68
- package/dist/connectors/index.d.ts +0 -14
- package/dist/connectors/index.js +0 -2
- package/dist/index.js +0 -28
- package/dist/logger.d.ts +0 -3
- package/dist/logger.js +0 -15
- package/dist/memory/agentMemory.d.ts +0 -47
- package/dist/memory/agentMemory.js +0 -167
- package/dist/memory/agentMemory.test.d.ts +0 -1
- package/dist/memory/agentMemory.test.js +0 -150
- package/dist/memory/image.d.ts +0 -28
- package/dist/memory/image.js +0 -95
- package/dist/memory/image.test.d.ts +0 -1
- package/dist/memory/image.test.js +0 -46
- package/dist/memory/index.d.ts +0 -3
- package/dist/memory/index.js +0 -3
- package/dist/memory/masking.d.ts +0 -7
- package/dist/memory/masking.js +0 -141
- package/dist/memory/masking.test.d.ts +0 -1
- package/dist/memory/masking.test.js +0 -117
- package/dist/memory/notebook.d.ts +0 -58
- package/dist/memory/notebook.js +0 -75
- package/dist/memory/notebook.test.d.ts +0 -1
- package/dist/memory/notebook.test.js +0 -99
- package/dist/memory/observation.d.ts +0 -38
- package/dist/memory/observation.js +0 -79
- package/dist/memory/rendering/index.d.ts +0 -10
- package/dist/memory/rendering/index.js +0 -13
- package/dist/memory/rendering/renderJsonParts.d.ts +0 -3
- package/dist/memory/rendering/renderJsonParts.js +0 -115
- package/dist/memory/rendering/renderJsonParts.test.d.ts +0 -1
- package/dist/memory/rendering/renderJsonParts.test.js +0 -217
- package/dist/memory/rendering/renderXmlParts.d.ts +0 -7
- package/dist/memory/rendering/renderXmlParts.js +0 -127
- package/dist/memory/serde.d.ts +0 -20
- package/dist/memory/serde.js +0 -67
- package/dist/memory/serde.test.d.ts +0 -1
- package/dist/memory/serde.test.js +0 -64
- package/dist/memory/util.d.ts +0 -2
- package/dist/memory/util.js +0 -17
- package/dist/telemetry/events.d.ts +0 -9
- package/dist/telemetry/events.js +0 -80
- package/dist/telemetry/index.d.ts +0 -6
- package/dist/telemetry/index.js +0 -91
- package/dist/types.d.ts +0 -30
- package/dist/types.js +0 -1
- package/dist/util.d.ts +0 -1
- package/dist/util.js +0 -12
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -3
- package/dist/web/browserProvider.d.ts +0 -24
- package/dist/web/browserProvider.js +0 -164
- package/dist/web/browserProvider.test.d.ts +0 -1
- package/dist/web/browserProvider.test.js +0 -44
- package/dist/web/harness.d.ts +0 -109
- package/dist/web/harness.js +0 -401
- package/dist/web/recovery.d.ts +0 -46
- package/dist/web/recovery.js +0 -137
- package/dist/web/recovery.test.d.ts +0 -1
- package/dist/web/recovery.test.js +0 -182
- package/dist/web/stability.d.ts +0 -57
- package/dist/web/stability.js +0 -323
- package/dist/web/tabs.d.ts +0 -58
- package/dist/web/tabs.js +0 -293
- package/dist/web/transformer.d.ts +0 -7
- package/dist/web/transformer.js +0 -41
- package/dist/web/types.d.ts +0 -37
- package/dist/web/types.js +0 -2
- package/dist/web/util.d.ts +0 -3
- package/dist/web/util.js +0 -81
- package/dist/web/visualizer/cursor.d.ts +0 -16
- package/dist/web/visualizer/cursor.js +0 -153
- package/dist/web/visualizer/index.d.ts +0 -22
- package/dist/web/visualizer/index.js +0 -47
- package/dist/web/visualizer/mouseEffects.d.ts +0 -18
- package/dist/web/visualizer/mouseEffects.js +0 -287
- package/dist/web/visualizer/typeEffects.d.ts +0 -10
- package/dist/web/visualizer/typeEffects.js +0 -190
- package/dist/web/zodReexport.test.d.ts +0 -1
- package/dist/web/zodReexport.test.js +0 -14
- /package/{dist/common/actions.d.ts → node_modules/patchright-core/.bun-tag-19f23bd68c84ec1f} +0 -0
|
@@ -1,57 +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, Image, Collector, FunctionLog } from "@boundaryml/baml";
|
|
11
|
-
import { ClientRegistry } from "@boundaryml/baml";
|
|
12
|
-
import type { RecursivePartialNull as MovedRecursivePartialNull } from "./types";
|
|
13
|
-
import type * as types from "./types";
|
|
14
|
-
import type TypeBuilder from "./type_builder";
|
|
15
|
-
import { HttpRequest, HttpStreamRequest } from "./sync_request";
|
|
16
|
-
import { LlmResponseParser, LlmStreamParser } from "./parser";
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use RecursivePartialNull from 'baml_client/types' instead.
|
|
19
|
-
* Example:
|
|
20
|
-
* ```ts
|
|
21
|
-
* import { RecursivePartialNull } from './baml_client/types'
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export type RecursivePartialNull<T> = MovedRecursivePartialNull<T>;
|
|
25
|
-
type TickReason = "Unknown";
|
|
26
|
-
type BamlCallOptions<WatchersT = never> = {
|
|
27
|
-
tb?: TypeBuilder;
|
|
28
|
-
clientRegistry?: ClientRegistry;
|
|
29
|
-
client?: string;
|
|
30
|
-
collector?: Collector | Collector[];
|
|
31
|
-
env?: Record<string, string | undefined>;
|
|
32
|
-
tags?: Record<string, string>;
|
|
33
|
-
signal?: AbortSignal;
|
|
34
|
-
onTick?: (reason: TickReason, log: FunctionLog | null) => void;
|
|
35
|
-
watchers?: WatchersT;
|
|
36
|
-
};
|
|
37
|
-
export declare class BamlSyncClient {
|
|
38
|
-
private runtime;
|
|
39
|
-
private ctxManager;
|
|
40
|
-
private httpRequest;
|
|
41
|
-
private httpStreamRequest;
|
|
42
|
-
private llmResponseParser;
|
|
43
|
-
private llmStreamParser;
|
|
44
|
-
private bamlOptions;
|
|
45
|
-
constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager, bamlOptions?: BamlCallOptions);
|
|
46
|
-
withOptions(bamlOptions: BamlCallOptions): BamlSyncClient;
|
|
47
|
-
get stream(): void;
|
|
48
|
-
get request(): HttpRequest;
|
|
49
|
-
get streamRequest(): HttpStreamRequest;
|
|
50
|
-
get parse(): LlmResponseParser;
|
|
51
|
-
get parseStream(): LlmStreamParser;
|
|
52
|
-
CreatePartialRecipe(memory: types.AgentContext, task: string, taskData: (Image | string)[], includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions<never>): types.PartialRecipe;
|
|
53
|
-
ExtractData(instructions: string, screenshot: Image, domContent: string, includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions<never>): types.ExtractedData;
|
|
54
|
-
QueryMemory(memory: types.AgentContext, query: string, includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions<never>): types.QueryResponse;
|
|
55
|
-
}
|
|
56
|
-
export declare const b: BamlSyncClient;
|
|
57
|
-
export {};
|
|
@@ -1,142 +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, BamlAbortError, ClientRegistry } from "@boundaryml/baml";
|
|
11
|
-
import { HttpRequest, HttpStreamRequest } from "./sync_request";
|
|
12
|
-
import { LlmResponseParser, LlmStreamParser } from "./parser";
|
|
13
|
-
import { DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX, DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME } from "./globals";
|
|
14
|
-
export class BamlSyncClient {
|
|
15
|
-
runtime;
|
|
16
|
-
ctxManager;
|
|
17
|
-
httpRequest;
|
|
18
|
-
httpStreamRequest;
|
|
19
|
-
llmResponseParser;
|
|
20
|
-
llmStreamParser;
|
|
21
|
-
bamlOptions;
|
|
22
|
-
constructor(runtime, ctxManager, bamlOptions) {
|
|
23
|
-
this.runtime = runtime;
|
|
24
|
-
this.ctxManager = ctxManager;
|
|
25
|
-
this.httpRequest = new HttpRequest(runtime, ctxManager);
|
|
26
|
-
this.httpStreamRequest = new HttpStreamRequest(runtime, ctxManager);
|
|
27
|
-
this.llmResponseParser = new LlmResponseParser(runtime, ctxManager);
|
|
28
|
-
this.llmStreamParser = new LlmStreamParser(runtime, ctxManager);
|
|
29
|
-
this.bamlOptions = bamlOptions || {};
|
|
30
|
-
}
|
|
31
|
-
withOptions(bamlOptions) {
|
|
32
|
-
return new BamlSyncClient(this.runtime, this.ctxManager, bamlOptions);
|
|
33
|
-
}
|
|
34
|
-
/*
|
|
35
|
-
* @deprecated NOT IMPLEMENTED as streaming must by async. We
|
|
36
|
-
* are not providing an async version as we want to reserve the
|
|
37
|
-
* right to provide a sync version in the future.
|
|
38
|
-
*/
|
|
39
|
-
get stream() {
|
|
40
|
-
throw new Error("stream is not available in BamlSyncClient. Use `import { b } from 'baml_client/async_client");
|
|
41
|
-
}
|
|
42
|
-
get request() {
|
|
43
|
-
return this.httpRequest;
|
|
44
|
-
}
|
|
45
|
-
get streamRequest() {
|
|
46
|
-
return this.httpStreamRequest;
|
|
47
|
-
}
|
|
48
|
-
get parse() {
|
|
49
|
-
return this.llmResponseParser;
|
|
50
|
-
}
|
|
51
|
-
get parseStream() {
|
|
52
|
-
return this.llmStreamParser;
|
|
53
|
-
}
|
|
54
|
-
CreatePartialRecipe(memory, task, taskData, includeClaudeSpoof, __baml_options__) {
|
|
55
|
-
try {
|
|
56
|
-
const __options__ = { ...this.bamlOptions, ...(__baml_options__ || {}), env: { ...(this.bamlOptions.env || {}), ...(__baml_options__?.env || {}) } };
|
|
57
|
-
const __signal__ = __options__.signal;
|
|
58
|
-
if (__signal__?.aborted) {
|
|
59
|
-
throw new BamlAbortError('Operation was aborted', __signal__.reason);
|
|
60
|
-
}
|
|
61
|
-
// Check if onTick is provided and reject for sync operations
|
|
62
|
-
if (__options__.onTick) {
|
|
63
|
-
throw new Error("onTick is not supported for synchronous functions. Please use the async client instead.");
|
|
64
|
-
}
|
|
65
|
-
const __collector__ = __options__.collector ? (Array.isArray(__options__.collector) ? __options__.collector : [__options__.collector]) : [];
|
|
66
|
-
const __rawEnv__ = __options__.env ? { ...process.env, ...__options__.env } : { ...process.env };
|
|
67
|
-
const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
|
|
68
|
-
// Resolve client option to clientRegistry (client takes precedence)
|
|
69
|
-
let __clientRegistry__ = __options__.clientRegistry;
|
|
70
|
-
if (__options__.client) {
|
|
71
|
-
__clientRegistry__ = __clientRegistry__ || new ClientRegistry();
|
|
72
|
-
__clientRegistry__.setPrimary(__options__.client);
|
|
73
|
-
}
|
|
74
|
-
const __raw__ = this.runtime.callFunctionSync("CreatePartialRecipe", {
|
|
75
|
-
"memory": memory, "task": task, "taskData": taskData, "includeClaudeSpoof": includeClaudeSpoof
|
|
76
|
-
}, this.ctxManager.cloneContext(), __options__.tb?.__tb(), __clientRegistry__, __collector__, __options__.tags || {}, __env__, __signal__, __options__.watchers);
|
|
77
|
-
return __raw__.parsed(false);
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
throw toBamlError(error);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
ExtractData(instructions, screenshot, domContent, includeClaudeSpoof, __baml_options__) {
|
|
84
|
-
try {
|
|
85
|
-
const __options__ = { ...this.bamlOptions, ...(__baml_options__ || {}), env: { ...(this.bamlOptions.env || {}), ...(__baml_options__?.env || {}) } };
|
|
86
|
-
const __signal__ = __options__.signal;
|
|
87
|
-
if (__signal__?.aborted) {
|
|
88
|
-
throw new BamlAbortError('Operation was aborted', __signal__.reason);
|
|
89
|
-
}
|
|
90
|
-
// Check if onTick is provided and reject for sync operations
|
|
91
|
-
if (__options__.onTick) {
|
|
92
|
-
throw new Error("onTick is not supported for synchronous functions. Please use the async client instead.");
|
|
93
|
-
}
|
|
94
|
-
const __collector__ = __options__.collector ? (Array.isArray(__options__.collector) ? __options__.collector : [__options__.collector]) : [];
|
|
95
|
-
const __rawEnv__ = __options__.env ? { ...process.env, ...__options__.env } : { ...process.env };
|
|
96
|
-
const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
|
|
97
|
-
// Resolve client option to clientRegistry (client takes precedence)
|
|
98
|
-
let __clientRegistry__ = __options__.clientRegistry;
|
|
99
|
-
if (__options__.client) {
|
|
100
|
-
__clientRegistry__ = __clientRegistry__ || new ClientRegistry();
|
|
101
|
-
__clientRegistry__.setPrimary(__options__.client);
|
|
102
|
-
}
|
|
103
|
-
const __raw__ = this.runtime.callFunctionSync("ExtractData", {
|
|
104
|
-
"instructions": instructions, "screenshot": screenshot, "domContent": domContent, "includeClaudeSpoof": includeClaudeSpoof
|
|
105
|
-
}, this.ctxManager.cloneContext(), __options__.tb?.__tb(), __clientRegistry__, __collector__, __options__.tags || {}, __env__, __signal__, __options__.watchers);
|
|
106
|
-
return __raw__.parsed(false);
|
|
107
|
-
}
|
|
108
|
-
catch (error) {
|
|
109
|
-
throw toBamlError(error);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
QueryMemory(memory, query, includeClaudeSpoof, __baml_options__) {
|
|
113
|
-
try {
|
|
114
|
-
const __options__ = { ...this.bamlOptions, ...(__baml_options__ || {}), env: { ...(this.bamlOptions.env || {}), ...(__baml_options__?.env || {}) } };
|
|
115
|
-
const __signal__ = __options__.signal;
|
|
116
|
-
if (__signal__?.aborted) {
|
|
117
|
-
throw new BamlAbortError('Operation was aborted', __signal__.reason);
|
|
118
|
-
}
|
|
119
|
-
// Check if onTick is provided and reject for sync operations
|
|
120
|
-
if (__options__.onTick) {
|
|
121
|
-
throw new Error("onTick is not supported for synchronous functions. Please use the async client instead.");
|
|
122
|
-
}
|
|
123
|
-
const __collector__ = __options__.collector ? (Array.isArray(__options__.collector) ? __options__.collector : [__options__.collector]) : [];
|
|
124
|
-
const __rawEnv__ = __options__.env ? { ...process.env, ...__options__.env } : { ...process.env };
|
|
125
|
-
const __env__ = Object.fromEntries(Object.entries(__rawEnv__).filter(([_, value]) => value !== undefined));
|
|
126
|
-
// Resolve client option to clientRegistry (client takes precedence)
|
|
127
|
-
let __clientRegistry__ = __options__.clientRegistry;
|
|
128
|
-
if (__options__.client) {
|
|
129
|
-
__clientRegistry__ = __clientRegistry__ || new ClientRegistry();
|
|
130
|
-
__clientRegistry__.setPrimary(__options__.client);
|
|
131
|
-
}
|
|
132
|
-
const __raw__ = this.runtime.callFunctionSync("QueryMemory", {
|
|
133
|
-
"memory": memory, "query": query, "includeClaudeSpoof": includeClaudeSpoof
|
|
134
|
-
}, this.ctxManager.cloneContext(), __options__.tb?.__tb(), __clientRegistry__, __collector__, __options__.tags || {}, __env__, __signal__, __options__.watchers);
|
|
135
|
-
return __raw__.parsed(false);
|
|
136
|
-
}
|
|
137
|
-
catch (error) {
|
|
138
|
-
throw toBamlError(error);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
export const b = new BamlSyncClient(DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME, DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX);
|
|
@@ -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
|
-
import type { BamlRuntime, BamlCtxManager, Image } from "@boundaryml/baml";
|
|
11
|
-
import { HTTPRequest, ClientRegistry } from "@boundaryml/baml";
|
|
12
|
-
import type * as types from "./types";
|
|
13
|
-
import type TypeBuilder from "./type_builder";
|
|
14
|
-
type BamlCallOptions<EventsT = never> = {
|
|
15
|
-
tb?: TypeBuilder;
|
|
16
|
-
clientRegistry?: ClientRegistry;
|
|
17
|
-
client?: string;
|
|
18
|
-
env?: Record<string, string | undefined>;
|
|
19
|
-
events?: EventsT;
|
|
20
|
-
};
|
|
21
|
-
export declare class HttpRequest {
|
|
22
|
-
private runtime;
|
|
23
|
-
private ctxManager;
|
|
24
|
-
constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager);
|
|
25
|
-
CreatePartialRecipe(memory: types.AgentContext, task: string, taskData: (Image | string)[], includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions<never>): HTTPRequest;
|
|
26
|
-
ExtractData(instructions: string, screenshot: Image, domContent: string, includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions<never>): HTTPRequest;
|
|
27
|
-
QueryMemory(memory: types.AgentContext, query: string, includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions<never>): HTTPRequest;
|
|
28
|
-
}
|
|
29
|
-
export declare class HttpStreamRequest {
|
|
30
|
-
private runtime;
|
|
31
|
-
private ctxManager;
|
|
32
|
-
constructor(runtime: BamlRuntime, ctxManager: BamlCtxManager);
|
|
33
|
-
CreatePartialRecipe(memory: types.AgentContext, task: string, taskData: (Image | string)[], includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions<never>): HTTPRequest;
|
|
34
|
-
ExtractData(instructions: string, screenshot: Image, domContent: string, includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions<never>): HTTPRequest;
|
|
35
|
-
QueryMemory(memory: types.AgentContext, query: string, includeClaudeSpoof: boolean, __baml_options__?: BamlCallOptions<never>): HTTPRequest;
|
|
36
|
-
}
|
|
37
|
-
export {};
|
|
@@ -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 HttpRequest {
|
|
12
|
-
runtime;
|
|
13
|
-
ctxManager;
|
|
14
|
-
constructor(runtime, ctxManager) {
|
|
15
|
-
this.runtime = runtime;
|
|
16
|
-
this.ctxManager = ctxManager;
|
|
17
|
-
}
|
|
18
|
-
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 this.runtime.buildRequestSync("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
|
-
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 this.runtime.buildRequestSync("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
|
-
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 this.runtime.buildRequestSync("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 HttpStreamRequest {
|
|
74
|
-
runtime;
|
|
75
|
-
ctxManager;
|
|
76
|
-
constructor(runtime, ctxManager) {
|
|
77
|
-
this.runtime = runtime;
|
|
78
|
-
this.ctxManager = ctxManager;
|
|
79
|
-
}
|
|
80
|
-
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 this.runtime.buildRequestSync("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
|
-
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 this.runtime.buildRequestSync("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
|
-
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 this.runtime.buildRequestSync("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,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 type { BamlLogEvent } from '@boundaryml/baml';
|
|
11
|
-
declare const traceAsync: <ReturnType, F extends (...args: any[]) => Promise<ReturnType>>(name: string, func: F) => F;
|
|
12
|
-
declare const traceSync: <ReturnType, F extends (...args: any[]) => ReturnType>(name: string, func: F) => F;
|
|
13
|
-
declare const setTags: (tags: Record<string, string>) => void;
|
|
14
|
-
declare const flush: () => void;
|
|
15
|
-
declare const onLogEvent: (callback: undefined | ((event: BamlLogEvent) => void)) => void;
|
|
16
|
-
export { traceAsync, traceSync, setTags, flush, onLogEvent };
|
|
@@ -1,18 +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 { DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX } from './globals';
|
|
11
|
-
const traceAsync = DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX.traceFnAsync.bind(DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX);
|
|
12
|
-
const traceSync = DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX.traceFnSync.bind(DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX);
|
|
13
|
-
const setTags = DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX.upsertTags.bind(DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX);
|
|
14
|
-
const flush = () => {
|
|
15
|
-
DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX.flush.bind(DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX)();
|
|
16
|
-
};
|
|
17
|
-
const onLogEvent = (callback) => DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_CTX.onLogEvent(callback);
|
|
18
|
-
export { traceAsync, traceSync, setTags, flush, onLogEvent };
|
|
@@ -1,40 +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 { FieldType } from '@boundaryml/baml/native';
|
|
11
|
-
import { EnumBuilder, ClassBuilder, ClassViewer } from '@boundaryml/baml/type_builder';
|
|
12
|
-
export { FieldType, EnumBuilder, ClassBuilder };
|
|
13
|
-
export default class TypeBuilder {
|
|
14
|
-
private tb;
|
|
15
|
-
AgentContext: ClassViewer<'AgentContext', "instructions" | "observationContent" | "connectorInstructions">;
|
|
16
|
-
BugFailureClassification: ClassViewer<'BugFailureClassification', "reasoning" | "classification" | "title" | "expectedResult" | "actualResult" | "severity">;
|
|
17
|
-
ConnectorInstructions: ClassViewer<'ConnectorInstructions', "connectorId" | "instructions">;
|
|
18
|
-
ExtractedData: ClassBuilder<'ExtractedData'>;
|
|
19
|
-
MisalignmentClassification: ClassViewer<'MisalignmentClassification', "reasoning" | "classification" | "fault" | "message">;
|
|
20
|
-
MultiMediaMessage: ClassViewer<'MultiMediaMessage', "role" | "cacheControl" | "content">;
|
|
21
|
-
PartialRecipe: ClassBuilder<'PartialRecipe', "reasoning">;
|
|
22
|
-
QueryResponse: ClassBuilder<'QueryResponse'>;
|
|
23
|
-
constructor();
|
|
24
|
-
reset(): void;
|
|
25
|
-
__tb(): import("@boundaryml/baml/native").TypeBuilder;
|
|
26
|
-
string(): FieldType;
|
|
27
|
-
literalString(value: string): FieldType;
|
|
28
|
-
literalInt(value: number): FieldType;
|
|
29
|
-
literalBool(value: boolean): FieldType;
|
|
30
|
-
int(): FieldType;
|
|
31
|
-
float(): FieldType;
|
|
32
|
-
bool(): FieldType;
|
|
33
|
-
list(type: FieldType): FieldType;
|
|
34
|
-
null(): FieldType;
|
|
35
|
-
map(key: FieldType, value: FieldType): FieldType;
|
|
36
|
-
union(types: FieldType[]): FieldType;
|
|
37
|
-
addClass<Name extends string>(name: Name): ClassBuilder<Name>;
|
|
38
|
-
addEnum<Name extends string>(name: Name): EnumBuilder<Name>;
|
|
39
|
-
addBaml(baml: string): void;
|
|
40
|
-
}
|
|
@@ -1,120 +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 { FieldType } from '@boundaryml/baml/native';
|
|
20
|
-
import { TypeBuilder as _TypeBuilder, EnumBuilder, ClassBuilder } from '@boundaryml/baml/type_builder';
|
|
21
|
-
import { DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME } from "./globals";
|
|
22
|
-
export { FieldType, EnumBuilder, ClassBuilder };
|
|
23
|
-
export default class TypeBuilder {
|
|
24
|
-
tb;
|
|
25
|
-
AgentContext;
|
|
26
|
-
BugFailureClassification;
|
|
27
|
-
ConnectorInstructions;
|
|
28
|
-
ExtractedData;
|
|
29
|
-
MisalignmentClassification;
|
|
30
|
-
MultiMediaMessage;
|
|
31
|
-
PartialRecipe;
|
|
32
|
-
QueryResponse;
|
|
33
|
-
constructor() {
|
|
34
|
-
this.tb = new _TypeBuilder({
|
|
35
|
-
classes: new Set([
|
|
36
|
-
"AgentContext", "BugFailureClassification", "ConnectorInstructions", "ExtractedData", "MisalignmentClassification", "MultiMediaMessage", "PartialRecipe", "QueryResponse",
|
|
37
|
-
]),
|
|
38
|
-
enums: new Set([]),
|
|
39
|
-
runtime: DO_NOT_USE_DIRECTLY_UNLESS_YOU_KNOW_WHAT_YOURE_DOING_RUNTIME
|
|
40
|
-
});
|
|
41
|
-
this.AgentContext = this.tb.classViewer("AgentContext", [
|
|
42
|
-
"instructions", "observationContent", "connectorInstructions",
|
|
43
|
-
]);
|
|
44
|
-
this.BugFailureClassification = this.tb.classViewer("BugFailureClassification", [
|
|
45
|
-
"reasoning", "classification", "title", "expectedResult", "actualResult", "severity",
|
|
46
|
-
]);
|
|
47
|
-
this.ConnectorInstructions = this.tb.classViewer("ConnectorInstructions", [
|
|
48
|
-
"connectorId", "instructions",
|
|
49
|
-
]);
|
|
50
|
-
this.ExtractedData = this.tb.classBuilder("ExtractedData", []);
|
|
51
|
-
this.MisalignmentClassification = this.tb.classViewer("MisalignmentClassification", [
|
|
52
|
-
"reasoning", "classification", "fault", "message",
|
|
53
|
-
]);
|
|
54
|
-
this.MultiMediaMessage = this.tb.classViewer("MultiMediaMessage", [
|
|
55
|
-
"role", "cacheControl", "content",
|
|
56
|
-
]);
|
|
57
|
-
this.PartialRecipe = this.tb.classBuilder("PartialRecipe", [
|
|
58
|
-
"reasoning",
|
|
59
|
-
]);
|
|
60
|
-
this.QueryResponse = this.tb.classBuilder("QueryResponse", []);
|
|
61
|
-
}
|
|
62
|
-
reset() {
|
|
63
|
-
this.tb.reset();
|
|
64
|
-
// TODO: This should happen in Rust. Problem is, when we construct the
|
|
65
|
-
// typebuilder we instantiate class builders once and it seems to make
|
|
66
|
-
// a JS copy, bypassing the Rust side? In Python however, every time we
|
|
67
|
-
// access a class builder with @property, we get a new instance that
|
|
68
|
-
// wraps over the Rust type builder, so we only need to call tb.reset().
|
|
69
|
-
// In JS it's not possible unless we refactor the way class builders are
|
|
70
|
-
// accessed.
|
|
71
|
-
this.ExtractedData.reset();
|
|
72
|
-
this.PartialRecipe.reset();
|
|
73
|
-
this.QueryResponse.reset();
|
|
74
|
-
}
|
|
75
|
-
__tb() {
|
|
76
|
-
return this.tb._tb();
|
|
77
|
-
}
|
|
78
|
-
string() {
|
|
79
|
-
return this.tb.string();
|
|
80
|
-
}
|
|
81
|
-
literalString(value) {
|
|
82
|
-
return this.tb.literalString(value);
|
|
83
|
-
}
|
|
84
|
-
literalInt(value) {
|
|
85
|
-
return this.tb.literalInt(value);
|
|
86
|
-
}
|
|
87
|
-
literalBool(value) {
|
|
88
|
-
return this.tb.literalBool(value);
|
|
89
|
-
}
|
|
90
|
-
int() {
|
|
91
|
-
return this.tb.int();
|
|
92
|
-
}
|
|
93
|
-
float() {
|
|
94
|
-
return this.tb.float();
|
|
95
|
-
}
|
|
96
|
-
bool() {
|
|
97
|
-
return this.tb.bool();
|
|
98
|
-
}
|
|
99
|
-
list(type) {
|
|
100
|
-
return this.tb.list(type);
|
|
101
|
-
}
|
|
102
|
-
null() {
|
|
103
|
-
return this.tb.null();
|
|
104
|
-
}
|
|
105
|
-
map(key, value) {
|
|
106
|
-
return this.tb.map(key, value);
|
|
107
|
-
}
|
|
108
|
-
union(types) {
|
|
109
|
-
return this.tb.union(types);
|
|
110
|
-
}
|
|
111
|
-
addClass(name) {
|
|
112
|
-
return this.tb.addClass(name);
|
|
113
|
-
}
|
|
114
|
-
addEnum(name) {
|
|
115
|
-
return this.tb.addEnum(name);
|
|
116
|
-
}
|
|
117
|
-
addBaml(baml) {
|
|
118
|
-
this.tb.addBaml(baml);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
@@ -1,69 +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
|
-
* Recursively partial type that can be null.
|
|
13
|
-
*
|
|
14
|
-
* @deprecated Use types from the `partial_types` namespace instead, which provides type-safe partial implementations
|
|
15
|
-
* @template T The type to make recursively partial.
|
|
16
|
-
*/
|
|
17
|
-
export type RecursivePartialNull<T> = T extends object ? {
|
|
18
|
-
[P in keyof T]?: RecursivePartialNull<T[P]>;
|
|
19
|
-
} : T | null;
|
|
20
|
-
export interface Checked<T, CheckName extends string = string> {
|
|
21
|
-
value: T;
|
|
22
|
-
checks: Record<CheckName, Check>;
|
|
23
|
-
}
|
|
24
|
-
export interface Check {
|
|
25
|
-
name: string;
|
|
26
|
-
expr: string;
|
|
27
|
-
status: "succeeded" | "failed";
|
|
28
|
-
}
|
|
29
|
-
export declare function all_succeeded<CheckName extends string>(checks: Record<CheckName, Check>): boolean;
|
|
30
|
-
export declare function get_checks<CheckName extends string>(checks: Record<CheckName, Check>): Check[];
|
|
31
|
-
export interface AgentContext {
|
|
32
|
-
instructions?: string | null;
|
|
33
|
-
observationContent: MultiMediaMessage[];
|
|
34
|
-
connectorInstructions: ConnectorInstructions[];
|
|
35
|
-
}
|
|
36
|
-
export interface BugFailureClassification {
|
|
37
|
-
reasoning: string;
|
|
38
|
-
classification: "bug";
|
|
39
|
-
title: string;
|
|
40
|
-
expectedResult: string;
|
|
41
|
-
actualResult: string;
|
|
42
|
-
severity: "critical" | "high" | "medium" | "low";
|
|
43
|
-
}
|
|
44
|
-
export interface ConnectorInstructions {
|
|
45
|
-
connectorId: string;
|
|
46
|
-
instructions: string;
|
|
47
|
-
}
|
|
48
|
-
export interface ExtractedData {
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
}
|
|
51
|
-
export interface MisalignmentClassification {
|
|
52
|
-
reasoning: string;
|
|
53
|
-
classification: "misalignment";
|
|
54
|
-
fault: "test" | "agent";
|
|
55
|
-
message: string;
|
|
56
|
-
}
|
|
57
|
-
export interface MultiMediaMessage {
|
|
58
|
-
role: "user" | "assistant";
|
|
59
|
-
cacheControl: boolean;
|
|
60
|
-
content: (Image | string)[];
|
|
61
|
-
}
|
|
62
|
-
export interface PartialRecipe {
|
|
63
|
-
reasoning: string;
|
|
64
|
-
[key: string]: any;
|
|
65
|
-
}
|
|
66
|
-
export interface QueryResponse {
|
|
67
|
-
[key: string]: any;
|
|
68
|
-
}
|
|
69
|
-
export type MultiMediaContentPart = Image | string;
|
|
@@ -1,15 +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 function all_succeeded(checks) {
|
|
11
|
-
return get_checks(checks).every(check => check.status === "succeeded");
|
|
12
|
-
}
|
|
13
|
-
export function get_checks(checks) {
|
|
14
|
-
return Object.values(checks);
|
|
15
|
-
}
|