dp-worker 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builtin-skills/sourcepool.md +228 -0
- package/builtin-skills/x.md +263 -0
- package/config.example.json +37 -0
- package/dist/agent/agent-types.d.ts +44 -0
- package/dist/agent/agent-types.js +23 -0
- package/dist/agent/agent-types.js.map +1 -0
- package/dist/agent/agent.d.ts +162 -0
- package/dist/agent/agent.js +670 -0
- package/dist/agent/agent.js.map +1 -0
- package/dist/agent/browser-lock.d.ts +36 -0
- package/dist/agent/browser-lock.js +46 -0
- package/dist/agent/browser-lock.js.map +1 -0
- package/dist/agent/chat-engine.d.ts +87 -0
- package/dist/agent/chat-engine.js +588 -0
- package/dist/agent/chat-engine.js.map +1 -0
- package/dist/agent/chrome-watchdog.d.ts +74 -0
- package/dist/agent/chrome-watchdog.js +136 -0
- package/dist/agent/chrome-watchdog.js.map +1 -0
- package/dist/agent/context.d.ts +148 -0
- package/dist/agent/context.js +521 -0
- package/dist/agent/context.js.map +1 -0
- package/dist/agent/duration.d.ts +2 -0
- package/dist/agent/duration.js +15 -0
- package/dist/agent/duration.js.map +1 -0
- package/dist/agent/executors/attachment-executor.d.ts +19 -0
- package/dist/agent/executors/attachment-executor.js +136 -0
- package/dist/agent/executors/attachment-executor.js.map +1 -0
- package/dist/agent/executors/memory-executor.d.ts +2 -0
- package/dist/agent/executors/memory-executor.js +13 -0
- package/dist/agent/executors/memory-executor.js.map +1 -0
- package/dist/agent/executors/org-executor.d.ts +8 -0
- package/dist/agent/executors/org-executor.js +47 -0
- package/dist/agent/executors/org-executor.js.map +1 -0
- package/dist/agent/executors/scheduler-executor.d.ts +21 -0
- package/dist/agent/executors/scheduler-executor.js +75 -0
- package/dist/agent/executors/scheduler-executor.js.map +1 -0
- package/dist/agent/executors/skill-executor.d.ts +10 -0
- package/dist/agent/executors/skill-executor.js +178 -0
- package/dist/agent/executors/skill-executor.js.map +1 -0
- package/dist/agent/executors/store-executor.d.ts +2 -0
- package/dist/agent/executors/store-executor.js +42 -0
- package/dist/agent/executors/store-executor.js.map +1 -0
- package/dist/agent/executors/web-fetch-executor.d.ts +17 -0
- package/dist/agent/executors/web-fetch-executor.js +164 -0
- package/dist/agent/executors/web-fetch-executor.js.map +1 -0
- package/dist/agent/frontend-multiplexer.d.ts +38 -0
- package/dist/agent/frontend-multiplexer.js +67 -0
- package/dist/agent/frontend-multiplexer.js.map +1 -0
- package/dist/agent/image-generator.d.ts +35 -0
- package/dist/agent/image-generator.js +266 -0
- package/dist/agent/image-generator.js.map +1 -0
- package/dist/agent/image-postprocess.d.ts +25 -0
- package/dist/agent/image-postprocess.js +82 -0
- package/dist/agent/image-postprocess.js.map +1 -0
- package/dist/agent/memory.d.ts +55 -0
- package/dist/agent/memory.js +401 -0
- package/dist/agent/memory.js.map +1 -0
- package/dist/agent/org-manager.d.ts +70 -0
- package/dist/agent/org-manager.js +280 -0
- package/dist/agent/org-manager.js.map +1 -0
- package/dist/agent/scheduler.d.ts +51 -0
- package/dist/agent/scheduler.js +302 -0
- package/dist/agent/scheduler.js.map +1 -0
- package/dist/agent/skill-generator.d.ts +116 -0
- package/dist/agent/skill-generator.js +704 -0
- package/dist/agent/skill-generator.js.map +1 -0
- package/dist/agent/storage-policy.d.ts +55 -0
- package/dist/agent/storage-policy.js +406 -0
- package/dist/agent/storage-policy.js.map +1 -0
- package/dist/agent/store.d.ts +58 -0
- package/dist/agent/store.js +309 -0
- package/dist/agent/store.js.map +1 -0
- package/dist/agent/task-runner.d.ts +34 -0
- package/dist/agent/task-runner.js +705 -0
- package/dist/agent/task-runner.js.map +1 -0
- package/dist/agent/tool-loop-detection.d.ts +60 -0
- package/dist/agent/tool-loop-detection.js +233 -0
- package/dist/agent/tool-loop-detection.js.map +1 -0
- package/dist/agent/tool-runner.d.ts +37 -0
- package/dist/agent/tool-runner.js +72 -0
- package/dist/agent/tool-runner.js.map +1 -0
- package/dist/browser/actions.d.ts +217 -0
- package/dist/browser/actions.js +3097 -0
- package/dist/browser/actions.js.map +1 -0
- package/dist/browser/builtin-page-cleanups.d.ts +19 -0
- package/dist/browser/builtin-page-cleanups.js +111 -0
- package/dist/browser/builtin-page-cleanups.js.map +1 -0
- package/dist/browser/chrome-process.d.ts +55 -0
- package/dist/browser/chrome-process.js +288 -0
- package/dist/browser/chrome-process.js.map +1 -0
- package/dist/browser/dispatch.d.ts +32 -0
- package/dist/browser/dispatch.js +582 -0
- package/dist/browser/dispatch.js.map +1 -0
- package/dist/browser/dom-helpers.d.ts +68 -0
- package/dist/browser/dom-helpers.js +477 -0
- package/dist/browser/dom-helpers.js.map +1 -0
- package/dist/browser/expect.d.ts +66 -0
- package/dist/browser/expect.js +314 -0
- package/dist/browser/expect.js.map +1 -0
- package/dist/browser/humanize.d.ts +56 -0
- package/dist/browser/humanize.js +216 -0
- package/dist/browser/humanize.js.map +1 -0
- package/dist/browser/locator-resolver.d.ts +88 -0
- package/dist/browser/locator-resolver.js +302 -0
- package/dist/browser/locator-resolver.js.map +1 -0
- package/dist/browser/manager.d.ts +95 -0
- package/dist/browser/manager.js +389 -0
- package/dist/browser/manager.js.map +1 -0
- package/dist/browser/script-runner.d.ts +117 -0
- package/dist/browser/script-runner.js +305 -0
- package/dist/browser/script-runner.js.map +1 -0
- package/dist/browser/selectors.d.ts +41 -0
- package/dist/browser/selectors.js +165 -0
- package/dist/browser/selectors.js.map +1 -0
- package/dist/browser/snapshot.d.ts +129 -0
- package/dist/browser/snapshot.js +504 -0
- package/dist/browser/snapshot.js.map +1 -0
- package/dist/browser/workspace-lock.d.ts +37 -0
- package/dist/browser/workspace-lock.js +286 -0
- package/dist/browser/workspace-lock.js.map +1 -0
- package/dist/center/center-client.d.ts +124 -0
- package/dist/center/center-client.js +316 -0
- package/dist/center/center-client.js.map +1 -0
- package/dist/center/center-frontend.d.ts +92 -0
- package/dist/center/center-frontend.js +459 -0
- package/dist/center/center-frontend.js.map +1 -0
- package/dist/center/session-sync.d.ts +85 -0
- package/dist/center/session-sync.js +345 -0
- package/dist/center/session-sync.js.map +1 -0
- package/dist/config/center-config.d.ts +60 -0
- package/dist/config/center-config.js +92 -0
- package/dist/config/center-config.js.map +1 -0
- package/dist/config/types.d.ts +93 -0
- package/dist/config/types.js +136 -0
- package/dist/config/types.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +395 -0
- package/dist/index.js.map +1 -0
- package/dist/llm/client.d.ts +24 -0
- package/dist/llm/client.js +696 -0
- package/dist/llm/client.js.map +1 -0
- package/dist/llm/message-optimizer.d.ts +50 -0
- package/dist/llm/message-optimizer.js +337 -0
- package/dist/llm/message-optimizer.js.map +1 -0
- package/dist/llm/tools.d.ts +37 -0
- package/dist/llm/tools.js +895 -0
- package/dist/llm/tools.js.map +1 -0
- package/dist/llm/types.d.ts +96 -0
- package/dist/llm/types.js +2 -0
- package/dist/llm/types.js.map +1 -0
- package/dist/logging/logger.d.ts +17 -0
- package/dist/logging/logger.js +54 -0
- package/dist/logging/logger.js.map +1 -0
- package/dist/scripts/migrate-history-to-store.d.ts +2 -0
- package/dist/scripts/migrate-history-to-store.js +250 -0
- package/dist/scripts/migrate-history-to-store.js.map +1 -0
- package/dist/telegram/bot.d.ts +28 -0
- package/dist/telegram/bot.js +546 -0
- package/dist/telegram/bot.js.map +1 -0
- package/dist/tui/tui.d.ts +12 -0
- package/dist/tui/tui.js +177 -0
- package/dist/tui/tui.js.map +1 -0
- package/dist/utils/safe-slice.d.ts +25 -0
- package/dist/utils/safe-slice.js +43 -0
- package/dist/utils/safe-slice.js.map +1 -0
- package/node_modules/dp-shared/dist/admin-broadcast.d.ts +26 -0
- package/node_modules/dp-shared/dist/admin-broadcast.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/admin-broadcast.js +7 -0
- package/node_modules/dp-shared/dist/admin-broadcast.js.map +1 -0
- package/node_modules/dp-shared/dist/audit-contracts.d.ts +41 -0
- package/node_modules/dp-shared/dist/audit-contracts.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/audit-contracts.js +30 -0
- package/node_modules/dp-shared/dist/audit-contracts.js.map +1 -0
- package/node_modules/dp-shared/dist/configs-contracts.d.ts +187 -0
- package/node_modules/dp-shared/dist/configs-contracts.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/configs-contracts.js +165 -0
- package/node_modules/dp-shared/dist/configs-contracts.js.map +1 -0
- package/node_modules/dp-shared/dist/db-rows.d.ts +293 -0
- package/node_modules/dp-shared/dist/db-rows.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/db-rows.js +222 -0
- package/node_modules/dp-shared/dist/db-rows.js.map +1 -0
- package/node_modules/dp-shared/dist/deploy-contracts.d.ts +34 -0
- package/node_modules/dp-shared/dist/deploy-contracts.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/deploy-contracts.js +32 -0
- package/node_modules/dp-shared/dist/deploy-contracts.js.map +1 -0
- package/node_modules/dp-shared/dist/domain.d.ts +144 -0
- package/node_modules/dp-shared/dist/domain.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/domain.js +81 -0
- package/node_modules/dp-shared/dist/domain.js.map +1 -0
- package/node_modules/dp-shared/dist/identities.d.ts +35 -0
- package/node_modules/dp-shared/dist/identities.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/identities.js +27 -0
- package/node_modules/dp-shared/dist/identities.js.map +1 -0
- package/node_modules/dp-shared/dist/index.d.ts +24 -0
- package/node_modules/dp-shared/dist/index.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/index.js +24 -0
- package/node_modules/dp-shared/dist/index.js.map +1 -0
- package/node_modules/dp-shared/dist/rest-contracts.d.ts +459 -0
- package/node_modules/dp-shared/dist/rest-contracts.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/rest-contracts.js +318 -0
- package/node_modules/dp-shared/dist/rest-contracts.js.map +1 -0
- package/node_modules/dp-shared/dist/task-history-contracts.d.ts +210 -0
- package/node_modules/dp-shared/dist/task-history-contracts.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/task-history-contracts.js +99 -0
- package/node_modules/dp-shared/dist/task-history-contracts.js.map +1 -0
- package/node_modules/dp-shared/dist/worker-detail-contracts.d.ts +212 -0
- package/node_modules/dp-shared/dist/worker-detail-contracts.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/worker-detail-contracts.js +193 -0
- package/node_modules/dp-shared/dist/worker-detail-contracts.js.map +1 -0
- package/node_modules/dp-shared/dist/ws-protocol.d.ts +839 -0
- package/node_modules/dp-shared/dist/ws-protocol.d.ts.map +1 -0
- package/node_modules/dp-shared/dist/ws-protocol.js +264 -0
- package/node_modules/dp-shared/dist/ws-protocol.js.map +1 -0
- package/node_modules/dp-shared/package.json +31 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +191 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +135 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +153 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/node_modules/zod/src/v4/core/util.ts +983 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/node_modules/zod/v4/core/api.cjs +1227 -0
- package/node_modules/zod/v4/core/api.d.cts +325 -0
- package/node_modules/zod/v4/core/api.d.ts +325 -0
- package/node_modules/zod/v4/core/api.js +1087 -0
- package/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/zod/v4/core/core.cjs +85 -0
- package/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/zod/v4/core/core.js +78 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +216 -0
- package/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/node_modules/zod/v4/core/errors.js +185 -0
- package/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/node_modules/zod/v4/core/regexes.js +139 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/node_modules/zod/v4/core/schemas.js +2239 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/node_modules/zod/v4/core/util.cjs +734 -0
- package/node_modules/zod/v4/core/util.d.cts +200 -0
- package/node_modules/zod/v4/core/util.d.ts +200 -0
- package/node_modules/zod/v4/core/util.js +674 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +140 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +113 -0
- package/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +125 -0
- package/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/zod/v4/locales/index.cjs +111 -0
- package/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/node_modules/zod/v4/locales/index.js +52 -0
- package/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +110 -0
- package/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/node_modules/zod/v4/mini/schemas.js +961 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +69 -0
|
@@ -0,0 +1,582 @@
|
|
|
1
|
+
import { runExpectation, } from "./expect.js";
|
|
2
|
+
import { extractVisibleText, queryByText, findClickableNearText, extractLinks, extractTweetCards, } from "./dom-helpers.js";
|
|
3
|
+
/**
|
|
4
|
+
* Old interaction action names that should be treated as act kinds
|
|
5
|
+
* for backward compatibility (existing skill scripts, etc.).
|
|
6
|
+
*/
|
|
7
|
+
const LEGACY_ACT_KINDS = new Set([
|
|
8
|
+
"click",
|
|
9
|
+
"hover",
|
|
10
|
+
"type",
|
|
11
|
+
"press",
|
|
12
|
+
"evaluate",
|
|
13
|
+
"select",
|
|
14
|
+
"wait",
|
|
15
|
+
]);
|
|
16
|
+
/**
|
|
17
|
+
* Centralized failure detection. Any prefix added by an action method that
|
|
18
|
+
* means "this didn't work" should appear here. Kept in one place so we
|
|
19
|
+
* don't drift as actions add new error shapes.
|
|
20
|
+
*/
|
|
21
|
+
export function isFailureText(text) {
|
|
22
|
+
if (!text)
|
|
23
|
+
return true;
|
|
24
|
+
const t = text.trimStart();
|
|
25
|
+
return /^(Error[:\s]|Wait timeout:|Wait error:|Unknown browser action:|Unknown act kind:|\[verification failed\])/i.test(t);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Same as `dispatchBrowserAction` but returns the structured result. Use
|
|
29
|
+
* this from internal callers that need to know whether an action succeeded
|
|
30
|
+
* without re-running the failure-prefix regex themselves.
|
|
31
|
+
*/
|
|
32
|
+
export async function dispatchBrowserActionDetailed(actions, action, args) {
|
|
33
|
+
const text = await dispatchBrowserAction(actions, action, args);
|
|
34
|
+
const expectationFailed = /\[verification failed\]/i.test(text);
|
|
35
|
+
// An action that ran cleanly but failed its post-verify is NOT ok — the
|
|
36
|
+
// user-visible task didn't happen. Both signals fold into a single ok bit
|
|
37
|
+
// for downstream callers (script-runner, skill generation).
|
|
38
|
+
const ok = !isFailureText(text) && !expectationFailed;
|
|
39
|
+
return {
|
|
40
|
+
ok,
|
|
41
|
+
text,
|
|
42
|
+
action,
|
|
43
|
+
...(expectationFailed ? { expectationFailed } : {}),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Shared browser action dispatcher.
|
|
48
|
+
* Routes top-level actions and act interaction kinds to BrowserActions methods.
|
|
49
|
+
* Used by agent.ts, task-runner.ts, and script-runner.ts.
|
|
50
|
+
*/
|
|
51
|
+
export async function dispatchBrowserAction(actions, action, args) {
|
|
52
|
+
// Backward compat: if action is an old interaction name, treat as act kind
|
|
53
|
+
if (LEGACY_ACT_KINDS.has(action) && !args.kind) {
|
|
54
|
+
return dispatchActKind(actions, action, args);
|
|
55
|
+
}
|
|
56
|
+
// Deprecated scroll: convert to evaluate
|
|
57
|
+
if (action === "scroll") {
|
|
58
|
+
console.warn(" [deprecated] scroll action is removed. Converting to evaluate window.scrollBy().");
|
|
59
|
+
const direction = args.direction;
|
|
60
|
+
const amount = args.amount || 500;
|
|
61
|
+
const delta = direction === "up" ? -amount : amount;
|
|
62
|
+
return actions.evaluate(`(() => { window.scrollBy(0, ${delta}); return JSON.stringify({ scrollY: Math.round(window.scrollY), scrollHeight: document.documentElement.scrollHeight, viewportHeight: window.innerHeight }); })()`);
|
|
63
|
+
}
|
|
64
|
+
// Backward compat: old close_tab/focus_tab names
|
|
65
|
+
if (action === "close_tab")
|
|
66
|
+
action = "close";
|
|
67
|
+
if (action === "focus_tab")
|
|
68
|
+
action = "focus";
|
|
69
|
+
switch (action) {
|
|
70
|
+
// --- Top-level actions ---
|
|
71
|
+
case "navigate":
|
|
72
|
+
return actions.navigate(args.url);
|
|
73
|
+
case "snapshot": {
|
|
74
|
+
const opts = {};
|
|
75
|
+
if (args.mode)
|
|
76
|
+
opts.mode = args.mode;
|
|
77
|
+
if (args.selector != null)
|
|
78
|
+
opts.selector = args.selector;
|
|
79
|
+
if (args.compact != null)
|
|
80
|
+
opts.compact = args.compact;
|
|
81
|
+
if (args.depth != null)
|
|
82
|
+
opts.depth = args.depth;
|
|
83
|
+
if (args.maxChars != null)
|
|
84
|
+
opts.maxChars = args.maxChars;
|
|
85
|
+
if (args.snapshotFormat != null)
|
|
86
|
+
opts.snapshotFormat = args.snapshotFormat;
|
|
87
|
+
if (args.refs != null)
|
|
88
|
+
opts.refs = args.refs;
|
|
89
|
+
return actions.snapshot(Object.keys(opts).length > 0 ? opts : undefined);
|
|
90
|
+
}
|
|
91
|
+
case "screenshot": {
|
|
92
|
+
// Same ref/selector split as act-kind dispatchers — a CSS selector
|
|
93
|
+
// landing in `ref` should route through `element` instead of failing
|
|
94
|
+
// ref lookup.
|
|
95
|
+
const rawRef = args.ref;
|
|
96
|
+
const refIsSnapshot = rawRef ? isSnapshotRef(rawRef) : false;
|
|
97
|
+
const ss = await actions.screenshot({
|
|
98
|
+
fullPage: args.fullPage,
|
|
99
|
+
ref: refIsSnapshot ? rawRef : undefined,
|
|
100
|
+
element: args.element ??
|
|
101
|
+
(rawRef && !refIsSnapshot ? rawRef : undefined),
|
|
102
|
+
type: args.type,
|
|
103
|
+
save: args.save,
|
|
104
|
+
saveAs: args.saveAs,
|
|
105
|
+
});
|
|
106
|
+
return ss.text;
|
|
107
|
+
}
|
|
108
|
+
case "tabs":
|
|
109
|
+
return actions.listTabs();
|
|
110
|
+
case "open":
|
|
111
|
+
return actions.openTab(args.url);
|
|
112
|
+
case "focus":
|
|
113
|
+
return actions.focusTab(args.index);
|
|
114
|
+
case "close": {
|
|
115
|
+
const index = args.index;
|
|
116
|
+
if (index != null) {
|
|
117
|
+
return actions.closeTab(index);
|
|
118
|
+
}
|
|
119
|
+
// No index: close active page
|
|
120
|
+
return actions.closeActivePage();
|
|
121
|
+
}
|
|
122
|
+
case "console":
|
|
123
|
+
return actions.console(args.level);
|
|
124
|
+
case "dialog":
|
|
125
|
+
return actions.dialog(args.accept, args.promptText, args.timeoutMs);
|
|
126
|
+
case "upload": {
|
|
127
|
+
// Same ref/selector split as the act-kind dispatchers. Skill replay
|
|
128
|
+
// commonly persists a CSS selector (e.g. `input[type="file"]`) in
|
|
129
|
+
// the ref slot for stability — without this split actions.upload
|
|
130
|
+
// would route it through the aria-ref map and fail with "ref not
|
|
131
|
+
// found".
|
|
132
|
+
//
|
|
133
|
+
// Priority when BOTH a snapshot ref and an explicit selector are
|
|
134
|
+
// passed: the explicit selector wins. This honors the documented
|
|
135
|
+
// contract ("explicit selector / inputSelector always win") and
|
|
136
|
+
// protects against the case where a stale eN ref is paired with a
|
|
137
|
+
// freshly-known stable selector — taking the ref path first would
|
|
138
|
+
// fail with stale-ref while the selector would have worked.
|
|
139
|
+
const rawRef = args.ref ??
|
|
140
|
+
args.inputRef;
|
|
141
|
+
const explicitSelector = args.selector ??
|
|
142
|
+
args.inputSelector;
|
|
143
|
+
const refIsSnapshot = rawRef ? isSnapshotRef(rawRef) : false;
|
|
144
|
+
const finalRef = explicitSelector
|
|
145
|
+
? undefined
|
|
146
|
+
: refIsSnapshot
|
|
147
|
+
? rawRef
|
|
148
|
+
: undefined;
|
|
149
|
+
const finalSelector = explicitSelector ?? (rawRef && !refIsSnapshot ? rawRef : undefined);
|
|
150
|
+
return actions.upload(args.paths, finalRef, args.timeoutMs, finalSelector);
|
|
151
|
+
}
|
|
152
|
+
// --- act (interaction) ---
|
|
153
|
+
// expect handling lives inside dispatchActKind itself, so legacy
|
|
154
|
+
// top-level shapes ({ action: "click", ..., expect }) routed through
|
|
155
|
+
// LEGACY_ACT_KINDS at the top of this function get verification too.
|
|
156
|
+
case "act": {
|
|
157
|
+
// Support nested request object (OpenClaw compat)
|
|
158
|
+
const request = args.request;
|
|
159
|
+
const merged = request && typeof request === "object"
|
|
160
|
+
? { ...args, ...request }
|
|
161
|
+
: args;
|
|
162
|
+
const kind = merged.kind;
|
|
163
|
+
if (!kind)
|
|
164
|
+
return "Error: act action requires a 'kind' parameter.";
|
|
165
|
+
return dispatchActKind(actions, kind, merged);
|
|
166
|
+
}
|
|
167
|
+
// --- batch: run a sequence of browser actions in one tool call. ---
|
|
168
|
+
// Stops on first failure. Useful when DOM state changes between
|
|
169
|
+
// steps would otherwise stale refs across separate tool calls.
|
|
170
|
+
//
|
|
171
|
+
// Failure detection routes through `dispatchBrowserActionDetailed.ok`
|
|
172
|
+
// — that bit folds in BOTH text-prefix failures (Error:/Wait timeout/
|
|
173
|
+
// Unknown act kind) AND `[verification failed]` post-action expect
|
|
174
|
+
// mismatches. A local regex would miss the second class, defeating
|
|
175
|
+
// the purpose of running batch + expect together.
|
|
176
|
+
//
|
|
177
|
+
// The aggregate result is a single string. To make the OUTER
|
|
178
|
+
// `dispatchBrowserActionDetailed` see batch failures (so the agent's
|
|
179
|
+
// tool-call log records ok=false and ScriptRunner throws), we prefix
|
|
180
|
+
// the joined output with `Error: batch failed at step N` whenever any
|
|
181
|
+
// step failed. Without that prefix, isFailureText would only inspect
|
|
182
|
+
// the first line ("[step 0/...]") and conclude success.
|
|
183
|
+
case "batch": {
|
|
184
|
+
const steps = args.steps;
|
|
185
|
+
if (!Array.isArray(steps) || steps.length === 0) {
|
|
186
|
+
return "Error: batch requires a non-empty `steps` array of {action, params?}.";
|
|
187
|
+
}
|
|
188
|
+
const stopOnFailure = args.stopOnFailure !== false;
|
|
189
|
+
const lines = [];
|
|
190
|
+
let firstFailure = null;
|
|
191
|
+
let stoppedEarly = false;
|
|
192
|
+
for (let i = 0; i < steps.length; i++) {
|
|
193
|
+
const s = steps[i];
|
|
194
|
+
if (!s || typeof s.action !== "string") {
|
|
195
|
+
lines.push(`[step ${i}] Error: missing action.`);
|
|
196
|
+
if (!firstFailure) {
|
|
197
|
+
firstFailure = { index: i, reason: "missing action" };
|
|
198
|
+
}
|
|
199
|
+
if (stopOnFailure) {
|
|
200
|
+
stoppedEarly = true;
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
const r = await dispatchBrowserActionDetailed(actions, s.action, s.params ?? {});
|
|
206
|
+
lines.push(`[step ${i}/${steps.length - 1} ${s.action}] ${r.text}`);
|
|
207
|
+
if (!r.ok) {
|
|
208
|
+
if (!firstFailure) {
|
|
209
|
+
firstFailure = {
|
|
210
|
+
index: i,
|
|
211
|
+
reason: r.expectationFailed
|
|
212
|
+
? "verification failed"
|
|
213
|
+
: "action failed",
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
if (stopOnFailure) {
|
|
217
|
+
stoppedEarly = true;
|
|
218
|
+
try {
|
|
219
|
+
const snap = await actions.snapshot({
|
|
220
|
+
mode: "interactive",
|
|
221
|
+
maxChars: 4000,
|
|
222
|
+
});
|
|
223
|
+
lines.push(`\n[batch failure snapshot]\n${snap}`);
|
|
224
|
+
}
|
|
225
|
+
catch {
|
|
226
|
+
// best-effort
|
|
227
|
+
}
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
const body = lines.join("\n\n");
|
|
233
|
+
if (firstFailure) {
|
|
234
|
+
// Prefix with a leading "Error:" so isFailureText catches it at the
|
|
235
|
+
// outer Detailed wrapper. Without this, `r.ok` for the batch tool
|
|
236
|
+
// call would be true even though one of its steps failed.
|
|
237
|
+
const stoppedNote = stoppedEarly
|
|
238
|
+
? ` (stopped early)`
|
|
239
|
+
: ` (continued through ${steps.length} steps)`;
|
|
240
|
+
return (`Error: batch failed at step ${firstFailure.index}: ${firstFailure.reason}${stoppedNote}\n` +
|
|
241
|
+
body);
|
|
242
|
+
}
|
|
243
|
+
return body;
|
|
244
|
+
}
|
|
245
|
+
// --- verify: run expect block alone, without any preceding action. ---
|
|
246
|
+
// Lets a caller assert "we should be in state X now" as a free-standing
|
|
247
|
+
// step, e.g. after a multi-tool flow where the caller wants to confirm
|
|
248
|
+
// before declaring success.
|
|
249
|
+
case "verify": {
|
|
250
|
+
const expect = args.expect ?? undefined;
|
|
251
|
+
if (!expect)
|
|
252
|
+
return "Error: verify requires an 'expect' object.";
|
|
253
|
+
const page = await actions.getPage();
|
|
254
|
+
const r = await runExpectation(page, expect);
|
|
255
|
+
return r.ok
|
|
256
|
+
? `[verified] ${r.summary}`
|
|
257
|
+
: `[verification failed] ${r.summary}`;
|
|
258
|
+
}
|
|
259
|
+
default:
|
|
260
|
+
return `Unknown browser action: ${action}`;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Heuristic check that an act-kind dispatch returned a success string.
|
|
265
|
+
* Once P2-3 introduces structured `BrowserActionResult`, this will be
|
|
266
|
+
* replaced with a real `.ok` field — for now we string-match the prefixes
|
|
267
|
+
* the existing methods emit. Keeping all prefixes in one place so the
|
|
268
|
+
* coupling is at least centralized.
|
|
269
|
+
*/
|
|
270
|
+
function actionLooksSuccessful(result) {
|
|
271
|
+
if (!result)
|
|
272
|
+
return false;
|
|
273
|
+
const trimmed = result.trimStart();
|
|
274
|
+
if (trimmed.startsWith("Error"))
|
|
275
|
+
return false;
|
|
276
|
+
if (trimmed.startsWith("Wait timeout"))
|
|
277
|
+
return false;
|
|
278
|
+
if (trimmed.startsWith("Wait error"))
|
|
279
|
+
return false;
|
|
280
|
+
if (trimmed.startsWith("Unknown act kind"))
|
|
281
|
+
return false;
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
284
|
+
async function appendExpectationDetailed(actions, actionResult, expect, opts = {}) {
|
|
285
|
+
if (!actionLooksSuccessful(actionResult)) {
|
|
286
|
+
if (!opts.verifyFailedAction) {
|
|
287
|
+
// Preserve original failure verbatim — running expect on top of most
|
|
288
|
+
// failed actions would just produce noise.
|
|
289
|
+
return { ok: false, text: actionResult };
|
|
290
|
+
}
|
|
291
|
+
const page = await actions.getPage();
|
|
292
|
+
const r = await runExpectation(page, expect);
|
|
293
|
+
if (r.ok) {
|
|
294
|
+
return {
|
|
295
|
+
ok: true,
|
|
296
|
+
text: `[verified after failed action] ${r.summary}\n${actionResult}`,
|
|
297
|
+
summary: r.summary,
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
return {
|
|
301
|
+
ok: false,
|
|
302
|
+
text: `${actionResult}\n[verification failed] ${r.summary}`,
|
|
303
|
+
summary: r.summary,
|
|
304
|
+
expectationFailed: true,
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
const page = await actions.getPage();
|
|
308
|
+
const r = await runExpectation(page, expect);
|
|
309
|
+
if (r.ok) {
|
|
310
|
+
return {
|
|
311
|
+
ok: true,
|
|
312
|
+
text: `${actionResult}\n[verified] ${r.summary}`,
|
|
313
|
+
summary: r.summary,
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
// The action ran but the page didn't end up where the LLM expected.
|
|
317
|
+
// We tell it explicitly so it doesn't move on assuming success.
|
|
318
|
+
return {
|
|
319
|
+
ok: false,
|
|
320
|
+
text: `${actionResult}\n[verification failed] ${r.summary}`,
|
|
321
|
+
summary: r.summary,
|
|
322
|
+
expectationFailed: true,
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
function shouldRetryClickWithDomFallback(kind, args, checked) {
|
|
326
|
+
if (kind !== "click")
|
|
327
|
+
return false;
|
|
328
|
+
if (checked.ok)
|
|
329
|
+
return false;
|
|
330
|
+
if (!checked.expectationFailed && !isClickEventMissFailure(checked.text)) {
|
|
331
|
+
return false;
|
|
332
|
+
}
|
|
333
|
+
if (args.fallbackDispatch !== "dom")
|
|
334
|
+
return false;
|
|
335
|
+
if (args.dispatch != null && args.dispatch !== "mouse")
|
|
336
|
+
return false;
|
|
337
|
+
if (args.doubleClick === true)
|
|
338
|
+
return false;
|
|
339
|
+
if (args.modifiers != null)
|
|
340
|
+
return false;
|
|
341
|
+
if (args.button != null && args.button !== "left")
|
|
342
|
+
return false;
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
345
|
+
function isClickEventMissFailure(text) {
|
|
346
|
+
return /click event did not reach target/i.test(text);
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* True only for actual snapshot refs (e1, e2, ...) and role-refs ("role|name").
|
|
350
|
+
* Anything else looks like a CSS selector and should route through the
|
|
351
|
+
* `selector` parameter — this happens in practice when skill replay
|
|
352
|
+
* persists data-testid in the `ref` field for stability.
|
|
353
|
+
*/
|
|
354
|
+
function isSnapshotRef(s) {
|
|
355
|
+
if (/^e\d+$/.test(s))
|
|
356
|
+
return true;
|
|
357
|
+
// Role-ref: "role|name" — first half must be a plain role keyword,
|
|
358
|
+
// and there must be no CSS-selector specials in the role part.
|
|
359
|
+
if (/^[a-z]+\|/.test(s))
|
|
360
|
+
return true;
|
|
361
|
+
return false;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Look at args and split `ref` into either a snapshot ref or a CSS selector
|
|
365
|
+
* based on its shape. Skill replay (and direct LLM calls that copy stable
|
|
366
|
+
* selectors into the ref slot) commonly emit `[data-testid="..."]` as ref;
|
|
367
|
+
* forwarding that to actions.click(ref) would route through the aria-ref
|
|
368
|
+
* map, find nothing, and report "ref not found". Detecting the shape here
|
|
369
|
+
* fixes the entire act-path replay surface in one place.
|
|
370
|
+
*
|
|
371
|
+
* Returns a tuple [refForActions, selectorForActions]. If the user passed
|
|
372
|
+
* an explicit `selector` already, we never overwrite it.
|
|
373
|
+
*/
|
|
374
|
+
function splitRefOrSelector(args) {
|
|
375
|
+
const rawRef = args.ref;
|
|
376
|
+
const rawSelector = args.selector;
|
|
377
|
+
if (rawRef && !isSnapshotRef(rawRef)) {
|
|
378
|
+
return { ref: undefined, selector: rawSelector ?? rawRef };
|
|
379
|
+
}
|
|
380
|
+
return { ref: rawRef, selector: rawSelector };
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Same trick for drag's startRef/endRef pair.
|
|
384
|
+
*/
|
|
385
|
+
function splitDragRefs(args) {
|
|
386
|
+
const sR = args.startRef;
|
|
387
|
+
const eR = args.endRef;
|
|
388
|
+
const sS = args.startSelector;
|
|
389
|
+
const eS = args.endSelector;
|
|
390
|
+
return {
|
|
391
|
+
startRef: sR && isSnapshotRef(sR) ? sR : undefined,
|
|
392
|
+
endRef: eR && isSnapshotRef(eR) ? eR : undefined,
|
|
393
|
+
startSelector: sS ?? (sR && !isSnapshotRef(sR) ? sR : undefined),
|
|
394
|
+
endSelector: eS ?? (eR && !isSnapshotRef(eR) ? eR : undefined),
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Dispatch an interaction kind to the appropriate BrowserActions method,
|
|
399
|
+
* then run any post-action `expect` block. By keeping the expectation
|
|
400
|
+
* step here (rather than in `case "act"` only), every entry point that
|
|
401
|
+
* routes to dispatchActKind gets verification for free — this covers
|
|
402
|
+
* LEGACY_ACT_KINDS top-level shapes like `{ action: "click", ref:
|
|
403
|
+
* "...", expect: {...} }` that older skills still emit.
|
|
404
|
+
*/
|
|
405
|
+
async function dispatchActKind(actions, kind, args) {
|
|
406
|
+
const actionResult = await runActKindCore(actions, kind, args);
|
|
407
|
+
const expect = args.expect;
|
|
408
|
+
if (!expect)
|
|
409
|
+
return actionResult;
|
|
410
|
+
const checked = await appendExpectationDetailed(actions, actionResult, expect, {
|
|
411
|
+
verifyFailedAction: kind === "click" && isClickEventMissFailure(actionResult),
|
|
412
|
+
});
|
|
413
|
+
if (shouldRetryClickWithDomFallback(kind, args, checked)) {
|
|
414
|
+
const fallbackActionResult = await runActKindCore(actions, kind, {
|
|
415
|
+
...args,
|
|
416
|
+
dispatch: "dom",
|
|
417
|
+
});
|
|
418
|
+
const fallbackChecked = await appendExpectationDetailed(actions, fallbackActionResult, expect);
|
|
419
|
+
if (fallbackChecked.ok) {
|
|
420
|
+
return [
|
|
421
|
+
checked.expectationFailed
|
|
422
|
+
? `[mouse verification failed; retried with dom dispatch] ${checked.summary}`
|
|
423
|
+
: "[mouse event-miss; retried with dom dispatch]",
|
|
424
|
+
actionResult,
|
|
425
|
+
fallbackChecked.text,
|
|
426
|
+
].join("\n");
|
|
427
|
+
}
|
|
428
|
+
return [
|
|
429
|
+
checked.text,
|
|
430
|
+
"[dom fallback attempted]",
|
|
431
|
+
fallbackChecked.text,
|
|
432
|
+
].join("\n");
|
|
433
|
+
}
|
|
434
|
+
return checked.text;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* The pure switch-on-kind: routes each interaction kind to the
|
|
438
|
+
* corresponding BrowserActions method. No expect handling here — that's
|
|
439
|
+
* the wrapper's job.
|
|
440
|
+
*/
|
|
441
|
+
async function runActKindCore(actions, kind, args) {
|
|
442
|
+
switch (kind) {
|
|
443
|
+
case "click": {
|
|
444
|
+
const opts = {};
|
|
445
|
+
if (args.doubleClick != null)
|
|
446
|
+
opts.doubleClick = args.doubleClick;
|
|
447
|
+
if (args.button != null)
|
|
448
|
+
opts.button = args.button;
|
|
449
|
+
if (args.modifiers != null)
|
|
450
|
+
opts.modifiers = args.modifiers;
|
|
451
|
+
if (args.dispatch != null) {
|
|
452
|
+
if (args.dispatch !== "mouse" && args.dispatch !== "dom") {
|
|
453
|
+
return `Error: click dispatch must be "mouse" or "dom", got ${JSON.stringify(args.dispatch)}`;
|
|
454
|
+
}
|
|
455
|
+
opts.dispatch = args.dispatch;
|
|
456
|
+
}
|
|
457
|
+
const { ref, selector } = splitRefOrSelector(args);
|
|
458
|
+
return actions.click(ref, Object.keys(opts).length > 0 ? opts : undefined, selector);
|
|
459
|
+
}
|
|
460
|
+
case "type": {
|
|
461
|
+
const opts = {};
|
|
462
|
+
if (args.clear != null)
|
|
463
|
+
opts.clear = args.clear;
|
|
464
|
+
if (args.submit != null)
|
|
465
|
+
opts.submit = args.submit;
|
|
466
|
+
if (args.method != null)
|
|
467
|
+
opts.method = args.method;
|
|
468
|
+
if (args.fallback != null)
|
|
469
|
+
opts.fallback = args.fallback;
|
|
470
|
+
const { ref, selector } = splitRefOrSelector(args);
|
|
471
|
+
return actions.type(ref, args.text, Object.keys(opts).length > 0 ? opts : undefined, selector);
|
|
472
|
+
}
|
|
473
|
+
case "press":
|
|
474
|
+
return actions.pressKey(args.key, args.delayMs);
|
|
475
|
+
case "hover": {
|
|
476
|
+
const { ref, selector } = splitRefOrSelector(args);
|
|
477
|
+
return actions.hover(ref, selector);
|
|
478
|
+
}
|
|
479
|
+
case "drag": {
|
|
480
|
+
const split = splitDragRefs(args);
|
|
481
|
+
return actions.drag(split.startRef, split.endRef, split.startSelector, split.endSelector);
|
|
482
|
+
}
|
|
483
|
+
case "select": {
|
|
484
|
+
// Backward compat: accept single `value` or array `values`
|
|
485
|
+
const values = args.values ??
|
|
486
|
+
(args.value ? [args.value] : []);
|
|
487
|
+
const { ref, selector } = splitRefOrSelector(args);
|
|
488
|
+
return actions.selectOption(ref, values, selector);
|
|
489
|
+
}
|
|
490
|
+
case "fill":
|
|
491
|
+
return actions.fill(args.fields);
|
|
492
|
+
case "resize":
|
|
493
|
+
return actions.resize(args.width, args.height);
|
|
494
|
+
case "wait": {
|
|
495
|
+
const waitOpts = {};
|
|
496
|
+
if (args.selector != null)
|
|
497
|
+
waitOpts.selector = args.selector;
|
|
498
|
+
if (args.text != null)
|
|
499
|
+
waitOpts.text = args.text;
|
|
500
|
+
if (args.textGone != null)
|
|
501
|
+
waitOpts.textGone = args.textGone;
|
|
502
|
+
if (args.url != null)
|
|
503
|
+
waitOpts.url = args.url;
|
|
504
|
+
if (args.loadState != null)
|
|
505
|
+
waitOpts.loadState = args.loadState;
|
|
506
|
+
if (args.fn != null)
|
|
507
|
+
waitOpts.fn = args.fn;
|
|
508
|
+
if (args.timeMs != null)
|
|
509
|
+
waitOpts.timeMs = args.timeMs;
|
|
510
|
+
if (args.timeoutMs != null)
|
|
511
|
+
waitOpts.timeoutMs = args.timeoutMs;
|
|
512
|
+
// Backward compat: accept old `timeout` name
|
|
513
|
+
if (args.timeout != null && args.timeoutMs == null)
|
|
514
|
+
waitOpts.timeoutMs = args.timeout;
|
|
515
|
+
// P1-2 additions
|
|
516
|
+
if (args.selectorVisible != null)
|
|
517
|
+
waitOpts.selectorVisible = args.selectorVisible;
|
|
518
|
+
if (args.selectorHidden != null)
|
|
519
|
+
waitOpts.selectorHidden = args.selectorHidden;
|
|
520
|
+
if (args.selectorEnabled != null)
|
|
521
|
+
waitOpts.selectorEnabled = args.selectorEnabled;
|
|
522
|
+
if (args.selectorDisabled != null)
|
|
523
|
+
waitOpts.selectorDisabled = args.selectorDisabled;
|
|
524
|
+
if (args.urlMatches != null)
|
|
525
|
+
waitOpts.urlMatches = args.urlMatches;
|
|
526
|
+
if (args.domQuietMs != null)
|
|
527
|
+
waitOpts.domQuietMs = args.domQuietMs;
|
|
528
|
+
if (args.locatorStableMs != null)
|
|
529
|
+
waitOpts.locatorStableMs = args.locatorStableMs;
|
|
530
|
+
if (args.textCountAtLeast != null)
|
|
531
|
+
waitOpts.textCountAtLeast =
|
|
532
|
+
args.textCountAtLeast;
|
|
533
|
+
return actions.wait(waitOpts);
|
|
534
|
+
}
|
|
535
|
+
case "evaluate":
|
|
536
|
+
// Accept both `fn` (OpenClaw) and `script` (legacy dipclaw)
|
|
537
|
+
return actions.evaluate(args.fn ?? args.script);
|
|
538
|
+
// --- High-level DOM helpers (P1-4). Each replaces a recurring evaluate
|
|
539
|
+
// pattern that was costing 1-2 round-trips to a syntax error. ---
|
|
540
|
+
case "extractVisibleText": {
|
|
541
|
+
const page = await actions.getPage();
|
|
542
|
+
return extractVisibleText(page, {
|
|
543
|
+
selector: args.selector,
|
|
544
|
+
maxChars: args.maxChars,
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
case "queryByText": {
|
|
548
|
+
const page = await actions.getPage();
|
|
549
|
+
return queryByText(page, {
|
|
550
|
+
text: args.text,
|
|
551
|
+
fuzzy: args.fuzzy,
|
|
552
|
+
limit: args.limit,
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
case "findClickableNearText": {
|
|
556
|
+
const page = await actions.getPage();
|
|
557
|
+
return findClickableNearText(page, {
|
|
558
|
+
text: args.text,
|
|
559
|
+
maxAncestors: args.maxAncestors,
|
|
560
|
+
limit: args.limit,
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
case "extractLinks": {
|
|
564
|
+
const page = await actions.getPage();
|
|
565
|
+
return extractLinks(page, {
|
|
566
|
+
selector: args.selector,
|
|
567
|
+
limit: args.limit,
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
case "extractTweetCards": {
|
|
571
|
+
const page = await actions.getPage();
|
|
572
|
+
return extractTweetCards(page, {
|
|
573
|
+
limit: args.limit,
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
case "close":
|
|
577
|
+
return actions.closeActivePage();
|
|
578
|
+
default:
|
|
579
|
+
return `Unknown act kind: ${kind}`;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
//# sourceMappingURL=dispatch.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