@zortexhq/indra-v2.5 0.2.5 → 0.2.7
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/README.md +129 -109
- package/dist/cli-run.js +1 -1
- package/dist/codex-setup.js +1 -1
- package/dist/connector-worker.js +1 -1
- package/dist/content-find.js +2 -0
- package/dist/ensure-ready.js +1 -0
- package/dist/gateway.js +1 -1
- package/dist/help-launch.js +1 -1
- package/dist/local-cloud-policy.js +1 -1
- package/dist/mcp.js +2 -2
- package/dist/onboarding.js +1 -1
- package/dist/operation-telemetry.js +1 -1
- package/dist/profile-upgrade.js +1 -1
- package/dist/public-tool.js +1 -0
- package/dist/recovery-progress.js +1 -1
- package/dist/recovery-text.js +1 -1
- package/dist/recovery.js +1 -1
- package/dist/resident-ensure-ready.js +1 -0
- package/dist/resident-host.js +2 -2
- package/dist/resident-jobs.js +1 -1
- package/dist/resident-platform.js +1 -1
- package/dist/resident-telemetry.js +1 -1
- package/dist/source-catalog.js +1 -1
- package/dist/startup.js +1 -2
- package/dist/supervised-sync.js +1 -1
- package/dist/tools.js +1 -1
- package/dist/update-cli.js +1 -1
- package/dist/web.js +2 -2
- package/node_modules/@zortexhq/plugin-auth-core/dist/device-admission.js +2 -2
- package/node_modules/@zortexhq/plugin-auth-core/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-auth-core/package.json +1 -8
- package/node_modules/@zortexhq/plugin-auto-connect/dist/api/index.js +1 -1
- package/node_modules/@zortexhq/plugin-auto-connect/package.json +0 -3
- package/node_modules/@zortexhq/plugin-connector-calendar/dist/actions.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/api/index.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/enrollment.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/dist/hub.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-core/package.json +1 -3
- package/node_modules/@zortexhq/plugin-connector-fleet/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-fleet/package.json +1 -4
- package/node_modules/@zortexhq/plugin-connector-framework/dist/api/browser-authorization.js +1 -0
- package/node_modules/@zortexhq/plugin-connector-framework/dist/api/index.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/runner.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-framework/package.json +0 -3
- package/node_modules/@zortexhq/plugin-connector-level1/dist/additional-sources.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/matrix-login.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/provisioning.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/shallow.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/sources.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-level1/package.json +1 -4
- package/node_modules/@zortexhq/plugin-connector-notion/dist/broker.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-notion/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-notion/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-notion/package.json +1 -3
- package/node_modules/@zortexhq/plugin-connector-steam/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-steam/dist/provider.js +1 -1
- package/node_modules/@zortexhq/plugin-connector-steam/package.json +1 -3
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-model.js +1 -1
- package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/connection-panel.js +1 -1
- package/node_modules/@zortexhq/plugin-google-auth/dist/index.js +1 -1
- package/node_modules/@zortexhq/plugin-google-auth/package.json +1 -3
- package/node_modules/@zortexhq/plugin-telemetry/dist/api/telemetry.js +1 -1
- package/node_modules/@zortexhq/plugin-vault-sqlite/dist/index.js +1 -1
- package/package.json +6 -20
- package/profiles/core.yml +0 -18
- package/release-provenance.json +27 -93
- package/update-manifest.json +362 -4744
- package/dist/cloud-action-proof.js +0 -1
- package/dist/cloud-device-host.js +0 -1
- package/dist/cloud-device-identity.js +0 -1
- package/dist/cloud-download-sink.js +0 -1
- package/dist/cloud-gmail-actions.js +0 -1
- package/dist/cloud-gmail-audit.js +0 -1
- package/dist/cloud-gmail-bound-audit-runner.js +0 -1
- package/dist/cloud-gmail-bound-epoch.js +0 -1
- package/dist/cloud-gmail-bound-identity.js +0 -1
- package/dist/cloud-gmail-bound-runner.js +0 -1
- package/dist/cloud-gmail-provider.js +0 -1
- package/dist/cloud-gmail-rpc.js +0 -1
- package/dist/cloud-gmail-sync.js +0 -1
- package/node_modules/@zortexhq/plugin-auth-core/dist/cloud-frame.js +0 -1
- package/node_modules/@zortexhq/plugin-auth-core/dist/cloud-vault-keyring.js +0 -1
- package/node_modules/@zortexhq/plugin-cloud-ai/dist/account.js +0 -1
- package/node_modules/@zortexhq/plugin-cloud-ai/dist/adopt.js +0 -1
- package/node_modules/@zortexhq/plugin-cloud-ai/dist/index.js +0 -1
- package/node_modules/@zortexhq/plugin-cloud-ai/dist/pack.js +0 -1
- package/node_modules/@zortexhq/plugin-cloud-ai/dist/publish.js +0 -1
- package/node_modules/@zortexhq/plugin-cloud-ai/dist/records.js +0 -1
- package/node_modules/@zortexhq/plugin-cloud-ai/package.json +0 -17
- package/node_modules/@zortexhq/plugin-cloud-vault/dist/device-trust.js +0 -1
- package/node_modules/@zortexhq/plugin-cloud-vault/dist/owner-admission.js +0 -1
- package/node_modules/@zortexhq/plugin-cloud-vault/package.json +0 -19
- package/node_modules/@zortexhq/plugin-connector-core/dist/api/browser-authorization.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/api/original-miner.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-codec.js +0 -2
- package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-fs.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-move-worker.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-move.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-posix.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-public.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-replay.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-store.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/chromium-local/chromium-history.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/chromium-local/index.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/chromium-local/normalize-visit.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/connection-health.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/connector.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/failure-type.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/index.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-framework/dist/windows-custody.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/chatgpt.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-level1/dist/signed-in.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-social/dist/full-sync.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-social/dist/index.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-social/dist/provider.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-social/dist/sites.js +0 -1
- package/node_modules/@zortexhq/plugin-connector-social/package.json +0 -22
- package/node_modules/@zortexhq/plugin-connector-steam/dist/browser-session.js +0 -1
- package/node_modules/@zortexhq/plugin-connectors/package.json +0 -17
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/attached.js +0 -11
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/browser.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/decision.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/extension-transport.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/feedback.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/google-oauth-bridge.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/google-oauth-driver.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/google-uia-decision.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/index.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/microsoft-oauth-bridge.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/microsoft-oauth-driver.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/page-inspect.js +0 -6
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/runner.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/slack-oauth-bridge.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/slack-oauth-driver.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/dist/whatsapp-session.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-autopilot/extension/manifest.json +0 -9
- package/node_modules/@zortexhq/plugin-jev-autopilot/package.json +0 -21
- package/node_modules/@zortexhq/plugin-jev-browser-driver/assets/ax-page.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/assets/uia-page.ps1 +0 -545
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/approved-control.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/attached-session.js +0 -8
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/authorization-account-policy.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/authorization-memory.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/authorization-planner.js +0 -8
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/authorization-task.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/browser-actions.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/browser-task.js +0 -7
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/combined.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/decision.js +0 -5
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/driver.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/google-oauth-driver.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/index.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/isolated-display.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/microsoft-oauth-driver.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/native-session.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/notion-oauth-driver.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/observe-log.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/operational-browser.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/page-settle.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/planned-oauth.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/session-routes.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/shared-session.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/site-read.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/slack-oauth-driver.js +0 -1
- package/node_modules/@zortexhq/plugin-jev-browser-driver/package.json +0 -20
- package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-oauth-background.cs +0 -492
- package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-oauth-guard-x64.build.json +0 -30
- package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-oauth-guard-x64.dll +0 -0
- package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-oauth-guard.c +0 -692
- package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-uia-oauth.ps1 +0 -3840
- package/node_modules/@zortexhq/plugin-oauth-browser-driver/dist/api/index.js +0 -1
- package/node_modules/@zortexhq/plugin-oauth-browser-driver/dist/driver.js +0 -3
- package/node_modules/@zortexhq/plugin-oauth-browser-driver/dist/index.js +0 -1
- package/node_modules/@zortexhq/plugin-oauth-browser-driver/package.json +0 -19
- package/node_modules/chatgpt-web-mcp/.env.example +0 -30
- package/node_modules/chatgpt-web-mcp/CONTRIBUTING.md +0 -65
- package/node_modules/chatgpt-web-mcp/LICENSE +0 -21
- package/node_modules/chatgpt-web-mcp/README.en.md +0 -149
- package/node_modules/chatgpt-web-mcp/README.md +0 -194
- package/node_modules/chatgpt-web-mcp/SECURITY.md +0 -37
- package/node_modules/chatgpt-web-mcp/node_modules/zod/LICENSE +0 -21
- package/node_modules/chatgpt-web-mcp/node_modules/zod/README.md +0 -208
- package/node_modules/chatgpt-web-mcp/node_modules/zod/index.cjs +0 -33
- package/node_modules/chatgpt-web-mcp/node_modules/zod/index.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/index.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/index.js +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/package.json +0 -118
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/index.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/function.test.ts +0 -257
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/types.ts +0 -5136
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/checks.ts +0 -30
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/compat.ts +0 -66
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/errors.ts +0 -75
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/external.ts +0 -50
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/parse.ts +0 -33
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/api.ts +0 -1594
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/checks.ts +0 -1283
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/core.ts +0 -134
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/errors.ts +0 -424
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/function.ts +0 -176
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/index.ts +0 -15
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/json-schema.ts +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/parse.ts +0 -94
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/regexes.ts +0 -135
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/registries.ts +0 -96
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/schemas.ts +0 -3842
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/util.ts +0 -775
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ar.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/az.ts +0 -121
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/be.ts +0 -184
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ca.ts +0 -127
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/cs.ts +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/de.ts +0 -124
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/en.ts +0 -127
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/eo.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/es.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/fa.ts +0 -134
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/fi.ts +0 -131
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/fr.ts +0 -124
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/he.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/hu.ts +0 -126
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/id.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/index.ts +0 -39
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/it.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ja.ts +0 -122
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/kh.ts +0 -126
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ko.ts +0 -131
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/mk.ts +0 -127
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ms.ts +0 -124
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/nl.ts +0 -126
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/no.ts +0 -124
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ota.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/pl.ts +0 -126
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ps.ts +0 -133
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/pt.ts +0 -123
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ru.ts +0 -184
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/sl.ts +0 -126
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/sv.ts +0 -127
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ta.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/th.ts +0 -126
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/tr.ts +0 -121
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ua.ts +0 -126
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ur.ts +0 -126
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/vi.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/coerce.ts +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/external.ts +0 -40
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/iso.ts +0 -62
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/parse.ts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
- package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4-mini/index.ts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/external.js +0 -6
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/index.js +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/locales/en.cjs +0 -111
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/types.cjs +0 -3775
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/types.d.cts +0 -1031
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/types.d.ts +0 -1031
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/types.js +0 -3693
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/checks.cjs +0 -32
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/compat.cjs +0 -57
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/compat.d.cts +0 -46
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/compat.d.ts +0 -46
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/compat.js +0 -27
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/errors.cjs +0 -67
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/errors.js +0 -41
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/external.cjs +0 -70
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/external.d.cts +0 -13
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/external.d.ts +0 -13
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/external.js +0 -18
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/parse.cjs +0 -32
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/parse.d.cts +0 -23
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/parse.d.ts +0 -23
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/parse.js +0 -6
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/schemas.cjs +0 -1109
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/schemas.d.cts +0 -630
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/schemas.d.ts +0 -630
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/schemas.js +0 -1006
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/api.cjs +0 -1039
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/api.d.cts +0 -284
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/api.d.ts +0 -284
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/api.js +0 -906
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/checks.cjs +0 -591
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/checks.js +0 -565
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/core.cjs +0 -67
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/core.d.cts +0 -49
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/core.d.ts +0 -49
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/core.js +0 -61
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/errors.cjs +0 -226
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/errors.d.cts +0 -208
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/errors.d.ts +0 -208
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/errors.js +0 -195
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/function.cjs +0 -102
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/function.d.cts +0 -52
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/function.d.ts +0 -52
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/function.js +0 -75
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/index.cjs +0 -44
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/index.d.cts +0 -15
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/index.d.ts +0 -15
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/index.js +0 -15
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/json-schema.d.cts +0 -87
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/json-schema.d.ts +0 -87
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/parse.cjs +0 -87
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/parse.d.cts +0 -25
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/parse.d.ts +0 -25
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/parse.js +0 -57
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/regexes.cjs +0 -103
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/regexes.d.cts +0 -62
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/regexes.d.ts +0 -62
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/regexes.js +0 -95
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/schemas.cjs +0 -1748
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/schemas.d.cts +0 -1041
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/schemas.d.ts +0 -1041
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/schemas.js +0 -1717
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/to-json-schema.js +0 -849
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/util.cjs +0 -539
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/util.d.cts +0 -183
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/util.d.ts +0 -183
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/util.js +0 -493
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/index.js +0 -3
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ar.cjs +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ar.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ar.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/az.cjs +0 -141
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/az.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/az.js +0 -115
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/be.cjs +0 -190
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/be.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/be.js +0 -164
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ca.cjs +0 -144
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ca.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ca.js +0 -118
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/cs.cjs +0 -161
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/cs.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/cs.js +0 -135
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/de.cjs +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/de.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/de.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/en.cjs +0 -145
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/en.d.ts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/en.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/eo.cjs +0 -144
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/eo.d.ts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/eo.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/es.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/es.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/es.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fa.cjs +0 -148
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fa.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fa.js +0 -122
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fi.cjs +0 -148
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fi.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fi.js +0 -122
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr-CA.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr.cjs +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/he.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/he.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/he.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/hu.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/hu.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/hu.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/id.cjs +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/id.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/id.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/index.cjs +0 -84
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/index.d.cts +0 -39
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/index.d.ts +0 -39
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/index.js +0 -39
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/it.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/it.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/it.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ja.cjs +0 -141
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ja.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ja.js +0 -115
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/kh.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/kh.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/kh.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/kh.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ko.cjs +0 -147
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ko.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ko.js +0 -121
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/mk.cjs +0 -144
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/mk.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/mk.js +0 -118
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ms.cjs +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ms.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ms.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/nl.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/nl.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/nl.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/no.cjs +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/no.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/no.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ota.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ota.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ota.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pl.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pl.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pl.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ps.cjs +0 -148
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ps.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ps.js +0 -122
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pt.cjs +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pt.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pt.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ru.cjs +0 -190
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ru.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ru.js +0 -164
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sl.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sl.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sl.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sv.cjs +0 -144
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sv.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sv.js +0 -118
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ta.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ta.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ta.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/th.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/th.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/th.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/tr.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/tr.d.ts +0 -5
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/tr.js +0 -115
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ua.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ua.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ua.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ua.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ur.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ur.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ur.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/vi.cjs +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/vi.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/vi.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-CN.js +0 -116
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-TW.js +0 -117
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/coerce.cjs +0 -47
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/coerce.js +0 -17
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/external.cjs +0 -62
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/external.d.cts +0 -11
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/external.d.ts +0 -11
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/external.js +0 -13
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/iso.cjs +0 -60
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/iso.js +0 -30
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/parse.cjs +0 -8
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/schemas.cjs +0 -839
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/schemas.d.cts +0 -356
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/schemas.d.ts +0 -356
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/schemas.js +0 -732
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4-mini/index.cjs +0 -17
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4-mini/index.d.cts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4-mini/index.d.ts +0 -1
- package/node_modules/chatgpt-web-mcp/node_modules/zod/v4-mini/index.js +0 -1
- package/node_modules/chatgpt-web-mcp/package.json +0 -50
- package/node_modules/chatgpt-web-mcp/scripts/doctor.js +0 -40
- package/node_modules/chatgpt-web-mcp/scripts/inspect.js +0 -16
- package/node_modules/chatgpt-web-mcp/scripts/login.js +0 -32
- package/node_modules/chatgpt-web-mcp/scripts/smoke-mcp.js +0 -26
- package/node_modules/chatgpt-web-mcp/src/browser.js +0 -4670
- package/node_modules/chatgpt-web-mcp/src/cli.js +0 -27
- package/node_modules/chatgpt-web-mcp/src/config.js +0 -210
- package/node_modules/chatgpt-web-mcp/src/errors.js +0 -20
- package/node_modules/chatgpt-web-mcp/src/index.js +0 -381
- package/node_modules/chatgpt-web-mcp/src/login-lifecycle.js +0 -39
- package/node_modules/chatgpt-web-mcp/src/selectors.js +0 -151
- package/profiles/social-worker.yml +0 -18
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{randomBytes,timingSafeEqual}from"node:crypto";import{createServer}from"node:http";import{validateSlackRequest}from"./slack-oauth-driver.js";const PATH="/slack-oauth/v1";const MAX_BODY=16384;function reply(res,status,outcome){res.writeHead(status,{"Content-Type":"application/json","Cache-Control":"no-store","X-Content-Type-Options":"nosniff"});res.end(JSON.stringify(outcome))}function authorized(header,token){if(!header?.startsWith("Bearer "))return false;const value=Buffer.from(header.slice(7));const expected=Buffer.from(token);return value.length===expected.length&&timingSafeEqual(value,expected)}export async function startSlackOAuthBridge(drive,signal){const token=randomBytes(32).toString("hex");const stop=new AbortController;const active=new Set;let closed=false;let busy=false;const serve=async(req,res)=>{if(closed||req.method!=="POST"||req.url!==PATH){reply(res,404,{state:"ui_drift"});return}if(!authorized(req.headers.authorization,token)){reply(res,401,{state:"ui_drift"});return}if(busy){reply(res,429,{state:"ui_drift"});return}busy=true;try{let bytes=0;const chunks=[];for await(const chunk of req){const data=Buffer.isBuffer(chunk)?chunk:Buffer.from(chunk);bytes+=data.length;if(bytes>MAX_BODY){reply(res,413,{state:"ui_drift"});return}chunks.push(data)}let request;try{request=JSON.parse(Buffer.concat(chunks).toString("utf8"));validateSlackRequest(request)}catch{reply(res,400,{state:"ui_drift"});return}const taskSignal=AbortSignal.any([stop.signal,signal??new AbortController().signal]);try{const outcome=await drive(request,taskSignal);reply(res,200,{state:outcome.state})}catch{reply(res,500,{state:"ui_drift"})}}catch{if(!res.writableEnded)reply(res,500,{state:"ui_drift"})}finally{busy=false}};const server=createServer((req,res)=>{const task=serve(req,res);active.add(task);void task.finally(()=>active.delete(task))});server.headersTimeout=5e3;server.requestTimeout=1e4;await new Promise((resolve,reject)=>{server.once("error",reject);server.listen(0,"127.0.0.1",resolve)});const address=server.address();if(!address||typeof address==="string"){server.close();throw new Error("Invalid Slack OAuth bridge address.")}let closing;const close=()=>closing??=(async()=>{closed=true;stop.abort();server.closeAllConnections();await new Promise(resolve=>server.close(()=>resolve()));await Promise.allSettled([...active])})();return{endpoint:`http://127.0.0.1:${address.port}${PATH}`,token,close}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const CONSENT=/^(allow|install|authorize|允許|允许|安裝|安装|授權|授权)$/i;export function validateSlackRequest(request){if(!request||typeof request.authorizationUrl!=="string"||typeof request.clientId!=="string"||!/^[0-9]+\.[0-9]+$/.test(request.clientId)||typeof request.redirectUri!=="string"||typeof request.appName!=="string"||request.appName!=="Zortex"||!Number.isInteger(request.timeoutMs)||request.timeoutMs<1e3||request.timeoutMs>9e5){throw new Error("Invalid Slack OAuth request.")}const url=new URL(request.authorizationUrl);const redirect=new URL(request.redirectUri);if(url.origin!=="https://slack.com"||url.pathname!=="/oauth/v2/authorize"||url.username||url.password||url.hash||url.searchParams.get("client_id")!==request.clientId||!url.searchParams.get("state")||url.searchParams.get("redirect_uri")!==request.redirectUri||!(redirect.protocol==="https:"||redirect.protocol==="http:"&&redirect.hostname==="localhost"&&!!redirect.port&&redirect.pathname==="/"&&!redirect.search)||redirect.username||redirect.password||redirect.hash||redirect.origin==="https://slack.com"||redirect.origin==="https://app.slack.com"){throw new Error("Invalid Slack authorization URL or callback.")}return{url,redirect}}function callbackMatches(current,redirect,state){return current.origin===redirect.origin&¤t.pathname===redirect.pathname&¤t.searchParams.get("state")===state&&!!current.searchParams.get("code")&&!current.searchParams.has("error")}function candidate(snapshot){const heading=snapshot.headings?.filter(text=>/\bZortex\b/i.test(text))??[];if(heading.length===0||!/\bZortex\b/i.test(snapshot.text))return void 0;const controls=snapshot.controls.filter(control=>control.enabled!==false&&control.role==="button"&&CONSENT.test(control.label.trim()));return controls.length===1?controls[0]:void 0}export async function driveSlackOAuth(request,open,jev,signal){const{url,redirect}=validateSlackRequest(request);const state=url.searchParams.get("state");const deadline=Date.now()+request.timeoutMs;let browser;let cleanupFailed=false;let outcome={state:"ui_drift",reason:"step_limit"};try{try{browser=await open(url.href)}catch{return{state:"login_required",reason:"browser_session_unavailable"}}for(let step=0;step<12&&Date.now()<deadline;step++){if(signal?.aborted){outcome={state:"ui_drift",reason:"cancelled"};break}let snapshot;try{snapshot=await browser.observe()}catch{outcome={state:"ui_drift",reason:"observation_failed"};break}let current;try{current=new URL(snapshot.url)}catch{outcome={state:"ui_drift",reason:"invalid_page"};break}if(current.origin===redirect.origin){outcome=callbackMatches(current,redirect,state)?{state:"completed"}:{state:"ui_drift",reason:"callback_mismatch"};break}if(!["https://slack.com","https://app.slack.com"].includes(current.origin)||current.searchParams.has("client_id")&¤t.searchParams.get("client_id")!==request.clientId||current.searchParams.has("state")&¤t.searchParams.get("state")!==state){outcome={state:"ui_drift",reason:"origin_or_transaction_changed"};break}const target=candidate(snapshot);if(!target){outcome={state:"ui_drift",reason:"consent_unavailable"};break}const generic={id:target.id,role:"button",label:"Allow approved Slack connection",enabled:true};let decision;try{decision=await jev.choose("Continue the approved Slack connection",{url:"https://slack.com",title:"Slack authorization",text:"",controls:[generic]},[],signal)}catch{outcome={state:"ui_drift",reason:"jev_unavailable"};break}if(decision.action!=="click"||decision.id!==generic.id||signal?.aborted||Date.now()>=deadline){outcome={state:"ui_drift",reason:"invalid_jev_choice"};break}let fresh;try{fresh=await browser.observe()}catch{outcome={state:"ui_drift",reason:"observation_failed"};break}const exact=candidate(fresh);if(fresh.url!==snapshot.url||!exact||exact.id!==target.id||exact.label!==target.label||exact.role!==target.role||exact.href!==target.href){outcome={state:"ui_drift",reason:"stale_control"};break}try{if(!await browser.act({...exact,pageUrl:fresh.url},"click")){outcome={state:"ui_drift",reason:"click_failed"};break}}catch{outcome={state:"ui_drift",reason:"click_failed"};break}}}finally{if(browser)try{await browser.close()}catch{cleanupFailed=true}}return cleanupFailed?{state:"ui_drift",reason:"browser_cleanup_failed"}:outcome}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function classifyWhatsAppPage(page){let url;try{url=new URL(page.url)}catch{return{state:"unknown"}}if(url.origin!=="https://web.whatsapp.com"||page.linkedMarker===page.pairingMarker)return{state:"unknown"};return{state:page.linkedMarker?"linked":"pairing_required"}}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version": 3,
|
|
3
|
-
"name": "Zortex Jev connector browser",
|
|
4
|
-
"version": "0.1.0",
|
|
5
|
-
"description": "Task-owned background browser transport for reviewed Zortex Actions, connector authorization and session checks.",
|
|
6
|
-
"permissions": ["nativeMessaging", "tabs", "scripting", "alarms", "storage", "declarativeNetRequestWithHostAccess"],
|
|
7
|
-
"host_permissions": ["https://*/*", "http://127.0.0.1/*", "http://localhost/*"],
|
|
8
|
-
"background": { "service_worker": "background.js" }
|
|
9
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@zortexhq/plugin-jev-autopilot",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"exports": {
|
|
6
|
-
".": {
|
|
7
|
-
"default": "./dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"./attached": {
|
|
10
|
-
"default": "./dist/attached.js"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@zortexhq/plugin-connector-framework": "0.1.0",
|
|
15
|
-
"@zortexhq/plugin-connectors": "0.1.0",
|
|
16
|
-
"@zortexhq/plugin-telemetry": "0.1.0"
|
|
17
|
-
},
|
|
18
|
-
"zortex": {
|
|
19
|
-
"role": "plugin"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ObjC.import("Cocoa");ObjC.import("ApplicationServices");ObjC.import("CoreFoundation");ObjC.import("unistd");ObjC.bindFunction("kill",["int",["int","int"]]);const CHROME_ID="com.google.Chrome";let windowRef=null;let windowPid=null;let openingUnresolved=false;let controls={};let via="none";function fail(reason){throw new Error("jev:"+reason)}function sleep(ms){$.NSThread.sleepForTimeInterval(ms/1e3)}const stdout=$.NSFileHandle.fileHandleWithStandardOutput;function answer(value){stdout.writeData($(JSON.stringify(value)+"\n").dataUsingEncoding($.NSUTF8StringEncoding))}function copy(element2,attribute){const out=Ref();if($.AXUIElementCopyAttributeValue(element2,$(attribute),out)!==0)return null;return out[0]}function jsValue(raw){if(raw===null||raw===void 0)return null;let object;try{object=ObjC.castRefToObject(raw)}catch(e){return null}if(!object||object.isNil())return null;if(object.isKindOfClass($.NSString))return object.js;if(object.isKindOfClass($.NSNumber))return object.doubleValue;if(object.isKindOfClass($.NSURL))return object.absoluteString.js;return null}function str(element2,attribute){const v=jsValue(copy(element2,attribute));return typeof v==="string"?v:""}function num(element2,attribute){const v=jsValue(copy(element2,attribute));return typeof v==="number"?v:null}function elements(element2,attribute){const raw=copy(element2,attribute);if(raw===null||raw===void 0)return[];let array;try{array=ObjC.castRefToObject(raw)}catch(e){return[]}if(!array||array.isNil()||!array.isKindOfClass($.NSArray))return[];const result=[];const count=array.count;for(let i=0;i<count;i++)result.push(array.objectAtIndex(i));return result}function element(parent,attribute){const raw=copy(parent,attribute);return raw===null||raw===void 0?null:ObjC.castRefToObject(raw)}function actions(target){const out=Ref();if($.AXUIElementCopyActionNames(target,out)!==0)return[];try{const array=ObjC.castRefToObject(out[0]);const names=[];for(let i=0;i<array.count;i++)names.push(array.objectAtIndex(i).js);return names}catch(e){return[]}}function setBool(target,attribute,value){return $.AXUIElementSetAttributeValue(target,$(attribute),value?$.kCFBooleanTrue:$.kCFBooleanFalse)===0}function same(a,b){try{return $.CFEqual(a,b)}catch(e){return false}}function chromeApp(){const running=$.NSRunningApplication.runningApplicationsWithBundleIdentifier(CHROME_ID);for(let i=0;i<running.count;i++){const app=running.objectAtIndex(i);if(!app.isTerminated)return $.AXUIElementCreateApplication(app.processIdentifier)}return null}function chromeWindows(){const app=chromeApp();return app?elements(app,"AXWindows").filter(w=>str(w,"AXRole")==="AXWindow"&&str(w,"AXSubrole")==="AXStandardWindow"):[]}function windowListForOwnership(app){if(!app)fail("window_cleanup_unconfirmed");try{const out=Ref();if($.AXUIElementCopyAttributeValue(app,$("AXWindows"),out)!==0)fail("window_cleanup_unconfirmed");const array=ObjC.castRefToObject(out[0]);if(!array||array.isNil()||!array.isKindOfClass($.NSArray))fail("window_cleanup_unconfirmed");const count=Number(array.count);if(!Number.isSafeInteger(count)||count<0)fail("window_cleanup_unconfirmed");const result=[];for(let i=0;i<count;i++)result.push(array.objectAtIndex(i));return result}catch(error){fail("window_cleanup_unconfirmed")}}function chromeBinary(){const url=$.NSWorkspace.sharedWorkspace.URLForApplicationWithBundleIdentifier(CHROME_ID);if(!url||url.isNil())return null;const bundle=$.NSBundle.bundleWithURL(url);const path=bundle&&!bundle.isNil()?bundle.executablePath:null;return path&&!path.isNil()?path.js:null}function enableAccessibility(){const app=chromeApp();if(!app)return;setBool(app,"AXManualAccessibility",true)}function launch(binary,url,firstLaunch){const task=$.NSTask.alloc.init;task.launchPath=firstLaunch?"/bin/launchctl":binary;const chromeArguments=["--no-first-run","--no-default-browser-check","--force-renderer-accessibility","--new-window",url];const debug=$.NSProcessInfo.processInfo.environment.objectForKey("ZORTEX_JEV_HELPER_DEBUG");if(debug&&!debug.isNil()&&debug.js==="1"){chromeArguments.unshift("--enable-logging","--v=1","--log-file=/tmp/zortex-jev-chrome.log")}task.arguments=$(firstLaunch?["asuser",String($.getuid()),"/usr/bin/open","-b",CHROME_ID,"--args",...chromeArguments]:chromeArguments);task.standardOutput=$.NSFileHandle.fileHandleWithNullDevice;task.standardError=$.NSFileHandle.fileHandleWithNullDevice;task.launch}function activateChrome(){const running=$.NSRunningApplication.runningApplicationsWithBundleIdentifier(CHROME_ID);for(let i=0;i<running.count;i++){const app=running.objectAtIndex(i);if(!app.isTerminated)return app.activateWithOptions(2)}return false}function continueNewChrome(){const running=$.NSRunningApplication.runningApplicationsWithBundleIdentifier(CHROME_ID);for(let i=0;i<running.count;i++){const app=running.objectAtIndex(i);if(!app.isTerminated)return $.kill(app.processIdentifier,19)===0}return false}function webArea(win){const queue=[win];for(let seen=0;queue.length&&seen<400;seen++){const next=queue.shift();if(str(next,"AXRole")==="AXWebArea")return next;for(const child of elements(next,"AXChildren"))queue.push(child)}return null}function openPage(url){if(windowRef||openingUnresolved)fail("window_cleanup_unconfirmed");if(!/^https?:\/\/[^\s]+$/.test(url))fail("invalid_url");if(!$.AXIsProcessTrustedWithOptions($({AXTrustedCheckOptionPrompt:true})))fail("accessibility_permission_required");const binary=chromeBinary();if(!binary)fail("chrome_not_installed");const appBefore=chromeApp();const before=appBefore?windowListForOwnership(appBefore):[];openingUnresolved=true;launch(binary,url,!appBefore);const until=Date.now()+2e4;let activated=false;let continued=Boolean(appBefore);while(Date.now()<until){sleep(200);const app=chromeApp();if(app&&!continued)continued=continueNewChrome();if(app&&!activated){activated=activateChrome();if(activated)sleep(1e3)}let listed;try{listed=app?windowListForOwnership(app):[]}catch(error){continue}const fresh=listed.filter(w=>{let existed;try{existed=before.some(old=>$.CFEqual(old,w))}catch(error){fail("window_cleanup_unconfirmed")}return!existed&&str(w,"AXRole")==="AXWindow"&&str(w,"AXSubrole")==="AXStandardWindow"});if(fresh.length===1){windowRef=fresh[0];const pid=Ref();if($.AXUIElementGetPid(windowRef,pid)!==0||!Number.isInteger(pid[0])||pid[0]<=0)fail("window_cleanup_unconfirmed");windowPid=pid[0];openingUnresolved=false;enableAccessibility();if(num(windowRef,"AXMinimized"))setBool(windowRef,"AXMinimized",false);return}if(fresh.length>1)fail("window_ambiguous")}fail("window_not_opened")}function ownedWindow(){if(!windowRef||!chromeWindows().some(w=>same(w,windowRef)))fail("window_closed");return windowRef}const BUTTON_ROLES=["AXButton","AXCheckBox","AXRadioButton","AXPopUpButton","AXMenuButton","AXMenuItem","AXDisclosureTriangle","AXTab"];const TEXT_ROLES=["AXTextField","AXTextArea","AXComboBox","AXSearchField"];function roleOf(role){if(role==="AXLink")return"link";if(BUTTON_ROLES.includes(role))return"button";if(TEXT_ROLES.includes(role))return"textbox";return null}function innerText(node,budget){const parts=[];const stack=[node];while(stack.length&&budget-- >0){const next=stack.pop();if(str(next,"AXRole")==="AXStaticText"){const v=str(next,"AXValue").trim();if(v)parts.push(v)}const children=elements(next,"AXChildren");for(let i=children.length-1;i>=0;i--)stack.push(children[i])}return parts.join(" ").replace(/\s+/g," ").trim().slice(0,200)}function observePage(){const win=ownedWindow();enableAccessibility();const title=str(win,"AXTitle");const doc=webArea(win);const page={url:"",title,text:"",headings:[],controls:[]};controls={};if(!doc)return page;page.url=str(doc,"AXURL");const text=[];let textLength=0,lastText="",visited=0;const stack=[{node:doc,id:"0"}];while(stack.length&&visited++<3e3){const{node,id}=stack.pop();const role=str(node,"AXRole");const children=elements(node,"AXChildren");for(let i=children.length-1;i>=0;i--)stack.push({node:children[i],id:id+"."+i});if(role==="AXStaticText"){const value=str(node,"AXValue").replace(/\s+/g," ").trim();if(value&&value!==lastText&&textLength<8e3){text.push(value);textLength+=value.length+1;lastText=value}continue}if(role==="AXHeading"){const name=(str(node,"AXTitle")||str(node,"AXDescription")||innerText(node,60)).trim();if(name)page.headings.push(name);continue}const kind=roleOf(role);if(!kind)continue;const subrole=str(node,"AXSubrole");let label=(str(node,"AXTitle")||str(node,"AXDescription")).trim();if(!label&&kind!=="textbox")label=innerText(node,60);if(!label&&kind==="textbox")label=str(node,"AXPlaceholderValue").trim();const control={id,role:kind,label,enabled:num(node,"AXEnabled")!==0};if(subrole==="AXSecureTextField")control.secure=true;if(role==="AXCheckBox"||role==="AXRadioButton")control.selected=num(node,"AXValue")===1;if(kind==="link"){const href=str(node,"AXURL");if(href)control.href=href}if(kind!=="textbox"&&!actions(node).includes("AXPress"))continue;if(!label&&kind!=="textbox"&&control.selected===void 0)continue;controls[id]=node;page.controls.push(control)}page.text=text.join(" ").slice(0,8e3);return page}function act(id){ownedWindow();const node=controls[id];if(!node)fail("control_unknown");if($.AXUIElementPerformAction(node,$("AXPress"))===0){via="press";return true}return false}function typeInto(id,value){ownedWindow();const node=controls[id];if(!node)fail("control_unknown");if(roleOf(str(node,"AXRole"))!=="textbox"||typeof value!=="string"||!value||value.length>4e3)return false;if($.AXUIElementSetAttributeValue(node,$("AXValue"),$(value))!==0)return false;via="value";return true}function scrollPage(){const doc=webArea(ownedWindow());if(!doc)return false;const area=element(doc,"AXParent");const bar=area?element(area,"AXVerticalScrollBar"):null;const before=bar?num(bar,"AXValue"):null;if(before===null||before>=.999)return false;if($.AXUIElementPerformAction(doc,$("AXScrollDownByPage"))!==0&&$.AXUIElementPerformAction(area,$("AXScrollDownByPage"))!==0)return false;sleep(150);const after=num(bar,"AXValue");return after!==null&&after>before}function linkOf(node){const href=str(node,"AXURL");if(!/^https?:\/\//.test(href))return null;const name=(str(node,"AXTitle")||str(node,"AXDescription")||innerText(node,40)).trim().slice(0,300);return{name,href}}function blockOf(node){const links=[];const stack=[node];for(let seen=0;stack.length&&seen<400&&links.length<20;seen++){const next=stack.pop();if(next!==node&&str(next,"AXRole")==="AXLink"){const link=linkOf(next);if(link)links.push(link)}const children=elements(next,"AXChildren");for(let i=children.length-1;i>=0;i--)stack.push(children[i])}const name=(str(node,"AXTitle")||str(node,"AXDescription")||innerText(node,400)).trim().slice(0,4e3);return{name,links}}function readSite(){const win=ownedWindow();enableAccessibility();const doc=webArea(win);const site={url:doc?str(doc,"AXURL"):"",password:false,articles:[],items:[],links:[]};if(!doc)return site;const stack=[{node:doc,listChild:false}];for(let visited=0;stack.length&&visited<6e3;visited++){const{node,listChild}=stack.pop();const role=str(node,"AXRole");const subrole=str(node,"AXSubrole");if(subrole==="AXSecureTextField")site.password=true;if(role==="AXLink"&&site.links.length<300){const link=linkOf(node);if(link)site.links.push(link)}if(subrole==="AXDocumentArticle"&&site.articles.length<12)site.articles.push(blockOf(node));else if((role==="AXListItem"||role==="AXGroup"&&(listChild&&!subrole||str(node,"AXRoleDescription")==="list item"))&&site.items.length<40)site.items.push(blockOf(node));const children=elements(node,"AXChildren");for(let i=children.length-1;i>=0;i--)stack.push({node:children[i],listChild:role==="AXList"})}return site}function ownedWindowPresentForCleanup(){if(!Number.isInteger(windowPid)||windowPid<=0)fail("window_cleanup_unconfirmed");for(const win of windowListForOwnership($.AXUIElementCreateApplication(windowPid))){let matches;try{matches=$.CFEqual(win,windowRef)}catch(error){fail("window_cleanup_unconfirmed")}if(!matches)continue;const pid=Ref();if($.AXUIElementGetPid(windowRef,pid)!==0)fail("window_cleanup_unconfirmed");if(pid[0]!==windowPid)fail("window_changed");return true}return false}function closePage(){if(openingUnresolved)fail("window_cleanup_unconfirmed");if(!windowRef)return;if(ownedWindowPresentForCleanup()){const button=element(windowRef,"AXCloseButton");if(!button||$.AXUIElementPerformAction(button,$("AXPress"))!==0)fail("window_close_failed");const until=Date.now()+5e3;while(ownedWindowPresentForCleanup()){if(Date.now()>=until)fail("window_cleanup_timeout");sleep(50)}}windowRef=null;windowPid=null;controls={}}function handle(line){let request;try{request=JSON.parse(line)}catch(e){return{ok:false,reason:"invalid_request"}}switch(String(request.cmd)){case"open":openPage(String(request.url));return{ok:true};case"observe":return{ok:true,page:observePage()};case"act":{via="none";const done=act(String(request.id));return{ok:true,done,via}}case"type":{via="none";const done=typeInto(String(request.id),request.value);return{ok:true,done,via}}case"scroll":return{ok:true,moved:scrollPage()};case"readsite":return{ok:true,site:readSite()};case"close":closePage();return{ok:true};case"reveal":{const win=ownedWindow();setBool(win,"AXMinimized",false);$.AXUIElementPerformAction(win,$("AXRaise"));return{ok:true,done:true}}default:return{ok:false,reason:"unknown_command"}}}function run(){const stdin=$.NSFileHandle.fileHandleWithStandardInput;let buffer="";for(;;){const data=stdin.availableData;if(!data||data.length===0)break;buffer+=$.NSString.alloc.initWithDataEncoding(data,$.NSUTF8StringEncoding).js;let newline;while((newline=buffer.indexOf("\n"))>=0){const line=buffer.slice(0,newline).trim();buffer=buffer.slice(newline+1);if(!line)continue;let result;try{result=handle(line)}catch(error){const match=/^jev:([a-z_]{1,64})$/.exec(String(error&&error.message));result={ok:false,reason:match?match[1]:"automation_error"};if(!match&&$.NSProcessInfo.processInfo.environment.objectForKey("ZORTEX_JEV_HELPER_DEBUG").js==="1"){$.NSFileHandle.fileHandleWithStandardError.writeData($(String(error)+"\n").dataUsingEncoding($.NSUTF8StringEncoding));const line2=Number(error.line||error.lineNumber);if(Number.isSafeInteger(line2)&&line2>0&&line2<1e4){$.NSFileHandle.fileHandleWithStandardError.writeData($("JEV_ERROR_LINE:"+line2+"\n").dataUsingEncoding($.NSUTF8StringEncoding))}}}answer(result)}}closePage()}
|
|
@@ -1,545 +0,0 @@
|
|
|
1
|
-
# Jev's eyes and hands on Windows: reads and presses controls of one Chrome window it opened, through UI Automation.
|
|
2
|
-
# No extension, no debugging port: it works on the user's own signed-in Chrome, like a screen reader does.
|
|
3
|
-
# Protocol: one JSON request per stdin line, one JSON answer per stdout line.
|
|
4
|
-
# {"cmd":"open","url":"https://..."} -> {"ok":true}
|
|
5
|
-
# {"cmd":"observe"} -> {"ok":true,"page":{url,title,text,headings,controls}}
|
|
6
|
-
# {"cmd":"act","id":"<id>"} -> {"ok":true,"done":true|false}
|
|
7
|
-
# {"cmd":"scroll"} -> {"ok":true,"moved":true|false}
|
|
8
|
-
# {"cmd":"readsite"} -> {"ok":true,"site":{url,password,articles,items,links}}
|
|
9
|
-
# {"cmd":"close"} -> {"ok":true}
|
|
10
|
-
# Failures answer {"ok":false,"reason":"<code>"}; no page text ever reaches stderr.
|
|
11
|
-
Set-StrictMode -Version Latest
|
|
12
|
-
$ErrorActionPreference = 'Stop'
|
|
13
|
-
[Console]::InputEncoding = [Text.UTF8Encoding]::new($false)
|
|
14
|
-
[Console]::OutputEncoding = [Text.UTF8Encoding]::new($false)
|
|
15
|
-
|
|
16
|
-
Add-Type -AssemblyName UIAutomationClient, UIAutomationTypes, Accessibility
|
|
17
|
-
Add-Type -TypeDefinition @'
|
|
18
|
-
using System;
|
|
19
|
-
using System.Collections.Generic;
|
|
20
|
-
using System.Runtime.InteropServices;
|
|
21
|
-
using System.Text;
|
|
22
|
-
public static class JevNative {
|
|
23
|
-
private delegate bool EnumProc(IntPtr hwnd, IntPtr lParam);
|
|
24
|
-
[DllImport("user32.dll")] private static extern bool EnumWindows(EnumProc callback, IntPtr lParam);
|
|
25
|
-
[DllImport("user32.dll")] private static extern bool EnumChildWindows(IntPtr parent, EnumProc callback, IntPtr lParam);
|
|
26
|
-
[DllImport("user32.dll", CharSet = CharSet.Unicode)] private static extern int GetClassName(IntPtr hwnd, StringBuilder name, int max);
|
|
27
|
-
[DllImport("user32.dll")] private static extern bool IsWindowVisible(IntPtr hwnd);
|
|
28
|
-
[DllImport("user32.dll")] private static extern uint GetWindowThreadProcessId(IntPtr hwnd, out uint pid);
|
|
29
|
-
[DllImport("user32.dll")] public static extern bool IsWindow(IntPtr hwnd);
|
|
30
|
-
[DllImport("user32.dll")] public static extern bool PostMessage(IntPtr hwnd, uint msg, IntPtr w, IntPtr l);
|
|
31
|
-
[DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr hwnd, int cmd);
|
|
32
|
-
[DllImport("user32.dll")] private static extern bool SetForegroundWindow(IntPtr hwnd);
|
|
33
|
-
[DllImport("user32.dll")] private static extern bool BringWindowToTop(IntPtr hwnd);
|
|
34
|
-
[DllImport("user32.dll")] private static extern IntPtr SetActiveWindow(IntPtr hwnd);
|
|
35
|
-
[DllImport("kernel32.dll")] private static extern uint GetCurrentThreadId();
|
|
36
|
-
[DllImport("user32.dll")] private static extern bool AttachThreadInput(uint from, uint to, bool attach);
|
|
37
|
-
[DllImport("dwmapi.dll")] private static extern int DwmGetWindowAttribute(IntPtr hwnd, int attribute, out int value, int size);
|
|
38
|
-
[DllImport("user32.dll")] public static extern bool IsIconic(IntPtr hwnd);
|
|
39
|
-
[DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow();
|
|
40
|
-
[DllImport("user32.dll", SetLastError = true)] private static extern IntPtr OpenInputDesktop(uint flags, bool inherit, uint access);
|
|
41
|
-
[DllImport("user32.dll")] private static extern bool CloseDesktop(IntPtr desktop);
|
|
42
|
-
[DllImport("user32.dll", CharSet = CharSet.Unicode)] private static extern bool GetUserObjectInformation(IntPtr handle, int index, StringBuilder value, int length, out int needed);
|
|
43
|
-
[DllImport("user32.dll")] public static extern int GetWindowTextLength(IntPtr hwnd);
|
|
44
|
-
[DllImport("oleacc.dll")] private static extern int AccessibleObjectFromWindow(IntPtr hwnd, uint id, ref Guid iid, [MarshalAs(UnmanagedType.Interface)] out object root);
|
|
45
|
-
|
|
46
|
-
public static string ClassOf(IntPtr hwnd) { var s = new StringBuilder(256); GetClassName(hwnd, s, s.Capacity); return s.ToString(); }
|
|
47
|
-
public static string IdentityOf(IntPtr hwnd) { uint pid; uint tid = GetWindowThreadProcessId(hwnd, out pid); return pid + ":" + tid; }
|
|
48
|
-
public static bool InputDesktopAvailable() {
|
|
49
|
-
var desktop = OpenInputDesktop(0, false, 1);
|
|
50
|
-
if (desktop == IntPtr.Zero) return false;
|
|
51
|
-
try {
|
|
52
|
-
var name = new StringBuilder(256); int needed;
|
|
53
|
-
return GetUserObjectInformation(desktop, 2, name, name.Capacity * 2, out needed) && name.ToString() == "Default";
|
|
54
|
-
} finally { CloseDesktop(desktop); }
|
|
55
|
-
}
|
|
56
|
-
public static int Cloaked(IntPtr window) { int value; return DwmGetWindowAttribute(window, 14, out value, 4) == 0 ? value : -1; }
|
|
57
|
-
/** Activate one caller-validated window even when this helper is hosted by a background resident process. */
|
|
58
|
-
public static bool ActivateOwnedWindow(IntPtr window) {
|
|
59
|
-
if (!IsWindow(window)) return false;
|
|
60
|
-
ShowWindow(window, IsIconic(window) ? 9 : 5); // SW_RESTORE / SW_SHOW
|
|
61
|
-
var foreground = GetForegroundWindow();
|
|
62
|
-
uint pid;
|
|
63
|
-
var currentThread = GetCurrentThreadId();
|
|
64
|
-
var targetThread = GetWindowThreadProcessId(window, out pid);
|
|
65
|
-
var foregroundThread = foreground == IntPtr.Zero ? 0 : GetWindowThreadProcessId(foreground, out pid);
|
|
66
|
-
var attachedForeground = false;
|
|
67
|
-
var attachedTarget = false;
|
|
68
|
-
try {
|
|
69
|
-
if (foregroundThread != 0 && foregroundThread != currentThread)
|
|
70
|
-
attachedForeground = AttachThreadInput(currentThread, foregroundThread, true);
|
|
71
|
-
if (targetThread != 0 && targetThread != currentThread && targetThread != foregroundThread)
|
|
72
|
-
attachedTarget = AttachThreadInput(currentThread, targetThread, true);
|
|
73
|
-
BringWindowToTop(window);
|
|
74
|
-
SetActiveWindow(window);
|
|
75
|
-
var requested = SetForegroundWindow(window);
|
|
76
|
-
return requested || GetForegroundWindow() == window;
|
|
77
|
-
} finally {
|
|
78
|
-
if (attachedTarget) AttachThreadInput(currentThread, targetThread, false);
|
|
79
|
-
if (attachedForeground) AttachThreadInput(currentThread, foregroundThread, false);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
public static Dictionary<string, int> ChildClasses(IntPtr window) {
|
|
83
|
-
var counts = new Dictionary<string, int>();
|
|
84
|
-
EnumChildWindows(window, (h, _) => { var name = ClassOf(h); if (!counts.ContainsKey(name)) counts[name] = 0; counts[name]++; return true; }, IntPtr.Zero);
|
|
85
|
-
return counts;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
public static long[] RenderWindows(IntPtr window) {
|
|
89
|
-
var handles = new List<long>();
|
|
90
|
-
EnumChildWindows(window, (h, _) => { if (ClassOf(h) == "Chrome_RenderWidgetHostHWND") handles.Add(h.ToInt64()); return true; }, IntPtr.Zero);
|
|
91
|
-
return handles.ToArray();
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Only booleans, counts and HRESULTs from the window this helper owns.
|
|
95
|
-
public static object[] AccessibilityStatus(IntPtr window) {
|
|
96
|
-
var states = new List<object>();
|
|
97
|
-
EnumChildWindows(window, (h, _) => {
|
|
98
|
-
if (ClassOf(h) != "Chrome_RenderWidgetHostHWND") return true;
|
|
99
|
-
var iid = new Guid("618736e0-3c3d-11cf-810c-00aa00389b71");
|
|
100
|
-
object root = null;
|
|
101
|
-
int hr = -1;
|
|
102
|
-
try { hr = AccessibleObjectFromWindow(h, unchecked((uint)-4), ref iid, out root); }
|
|
103
|
-
catch (COMException e) { hr = e.ErrorCode; }
|
|
104
|
-
states.Add(new { visible = IsWindowVisible(h), hresult = hr, root = root != null });
|
|
105
|
-
if (root != null && Marshal.IsComObject(root)) Marshal.ReleaseComObject(root);
|
|
106
|
-
return true;
|
|
107
|
-
}, IntPtr.Zero);
|
|
108
|
-
return states.ToArray();
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/** Visible top-level Chrome browser windows of the given processes. */
|
|
112
|
-
public static long[] ChromeWindows(int[] pids) {
|
|
113
|
-
var set = new HashSet<uint>(); foreach (var p in pids) set.Add((uint)p);
|
|
114
|
-
var found = new List<long>();
|
|
115
|
-
if (!EnumWindows((h, _) => {
|
|
116
|
-
uint pid; GetWindowThreadProcessId(h, out pid);
|
|
117
|
-
if (set.Contains(pid) && IsWindowVisible(h) && ClassOf(h) == "Chrome_WidgetWin_1" && GetWindowTextLength(h) > 0) found.Add(h.ToInt64());
|
|
118
|
-
return true;
|
|
119
|
-
}, IntPtr.Zero)) throw new InvalidOperationException("window_enumeration_failed");
|
|
120
|
-
return found.ToArray();
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/** Asks Chrome to build the page's accessibility tree, as a screen reader's first request does. */
|
|
124
|
-
public static void EnableAccessibility(IntPtr window) {
|
|
125
|
-
EnumChildWindows(window, (h, _) => {
|
|
126
|
-
if (ClassOf(h) == "Chrome_RenderWidgetHostHWND") {
|
|
127
|
-
var iid = new Guid("618736e0-3c3d-11cf-810c-00aa00389b71");
|
|
128
|
-
object root = null;
|
|
129
|
-
try {
|
|
130
|
-
if (AccessibleObjectFromWindow(h, unchecked((uint)-4), ref iid, out root) == 0 && root != null) {
|
|
131
|
-
// Obtaining the proxy alone does not request Chromium's web AX mode.
|
|
132
|
-
// Request screen-reader metadata, discard strings, never perform an MSAA action.
|
|
133
|
-
var accessible = root as Accessibility.IAccessible;
|
|
134
|
-
if (accessible != null) { accessible.get_accName(0); accessible.get_accDefaultAction(0); }
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
catch { }
|
|
138
|
-
finally { if (root != null && Marshal.IsComObject(root)) Marshal.ReleaseComObject(root); }
|
|
139
|
-
}
|
|
140
|
-
return true;
|
|
141
|
-
}, IntPtr.Zero);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
'@ -ReferencedAssemblies 'Accessibility.dll'
|
|
145
|
-
|
|
146
|
-
$AE = [Windows.Automation.AutomationElement]
|
|
147
|
-
$CT = [Windows.Automation.ControlType]
|
|
148
|
-
$Scope = [Windows.Automation.TreeScope]
|
|
149
|
-
$script:Window = [IntPtr]::Zero
|
|
150
|
-
$script:WindowIdentity = ''
|
|
151
|
-
$script:OpeningUnresolved = $false
|
|
152
|
-
$script:Controls = @{}
|
|
153
|
-
$script:EmptyPageAddress = ''
|
|
154
|
-
$script:EmptyPageSince = [DateTime]::MinValue
|
|
155
|
-
$script:RefreshedPages = New-Object 'System.Collections.Generic.HashSet[string]'
|
|
156
|
-
# UIA HeadingLevel (Windows 10 1803+): independent of the Windows display language. 80050 means not a heading.
|
|
157
|
-
$script:HeadingLevel = $null
|
|
158
|
-
try { $script:HeadingLevel = [Windows.Automation.AutomationProperty]::LookupById(30173) } catch {}
|
|
159
|
-
# Chrome reports role=article as a group whose localized type is 'article' in the Windows display language
|
|
160
|
-
# (zh: U+6587 U+7AE0, ja: U+8A18 U+4E8B); the managed UIA client cannot read the AriaRole property itself.
|
|
161
|
-
$script:ArticleCondition = New-Object Windows.Automation.OrCondition(@(
|
|
162
|
-
(New-Object Windows.Automation.PropertyCondition($AE::LocalizedControlTypeProperty, 'article')),
|
|
163
|
-
(New-Object Windows.Automation.PropertyCondition($AE::LocalizedControlTypeProperty, ([string][char]0x6587 + [char]0x7AE0))),
|
|
164
|
-
(New-Object Windows.Automation.PropertyCondition($AE::LocalizedControlTypeProperty, ([string][char]0x8A18 + [char]0x4E8B))),
|
|
165
|
-
(New-Object Windows.Automation.PropertyCondition($AE::LocalizedControlTypeProperty, ('art' + [char]0x00ED + 'culo')))))
|
|
166
|
-
$HeadingType = '^(heading|' + [char]0x6807 + [char]0x9898 + '|' + [char]0x6A19 + [char]0x984C + ')'
|
|
167
|
-
|
|
168
|
-
function Answer($value) { [Console]::Out.WriteLine(($value | ConvertTo-Json -Depth 6 -Compress)); [Console]::Out.Flush() }
|
|
169
|
-
function Fail([string]$reason) { throw "jev:$reason" }
|
|
170
|
-
function Pattern($element, $pattern) { $value = $null; if ($element.TryGetCurrentPattern($pattern, [ref]$value)) { return $value }; return $null }
|
|
171
|
-
|
|
172
|
-
function ChromePath {
|
|
173
|
-
foreach ($p in @(Get-Process -Name chrome -ErrorAction SilentlyContinue)) { try { if ($p.Path) { return $p.Path } } catch {} }
|
|
174
|
-
foreach ($path in @("$env:ProgramFiles\Google\Chrome\Application\chrome.exe", "${env:ProgramFiles(x86)}\Google\Chrome\Application\chrome.exe",
|
|
175
|
-
"$env:LocalAppData\Google\Chrome\Application\chrome.exe")) { if ($path -and (Test-Path -LiteralPath $path)) { return $path } }
|
|
176
|
-
return $null
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
function ChromeWindowSet {
|
|
180
|
-
$session = (Get-Process -Id $PID).SessionId
|
|
181
|
-
$pids = @(Get-Process -Name chrome -ErrorAction SilentlyContinue | Where-Object { $_.SessionId -eq $session } | ForEach-Object { $_.Id })
|
|
182
|
-
if ($pids.Count -eq 0) { return @() }
|
|
183
|
-
return @([JevNative]::ChromeWindows([int[]]$pids))
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function Has-AddressBar([IntPtr]$handle) {
|
|
187
|
-
try { return $null -ne $AE::FromHandle($handle).FindFirst($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::ClassNameProperty, 'OmniboxViewViews'))) } catch { return $false }
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function Open-Page([string]$url) {
|
|
191
|
-
if ($script:Window -ne [IntPtr]::Zero -or $script:OpeningUnresolved) { Fail 'window_cleanup_unconfirmed' }
|
|
192
|
-
$parsed = $null
|
|
193
|
-
if (-not [uri]::TryCreate($url, [UriKind]::Absolute, [ref]$parsed) -or $parsed.UserInfo -or $parsed.Scheme -notin @('https', 'http')) { Fail 'invalid_url' }
|
|
194
|
-
$chrome = ChromePath
|
|
195
|
-
if (-not $chrome) { Fail 'chrome_not_installed' }
|
|
196
|
-
$before = @{}
|
|
197
|
-
foreach ($h in (ChromeWindowSet)) { $before["$h"] = $true }
|
|
198
|
-
# The user's default Chrome receives the new window, with the sessions it already has.
|
|
199
|
-
$script:OpeningUnresolved = $true
|
|
200
|
-
Start-Process -FilePath $chrome -ArgumentList @('--new-window', ('"' + $parsed.AbsoluteUri + '"'))
|
|
201
|
-
$until = [DateTime]::UtcNow.AddSeconds(20)
|
|
202
|
-
while ([DateTime]::UtcNow -lt $until) {
|
|
203
|
-
# Menus and tooltips share the window class; a browser window has a title and an address bar.
|
|
204
|
-
$fresh = @(ChromeWindowSet | Where-Object { -not $before.ContainsKey("$_") -and (Has-AddressBar ([IntPtr]$_)) })
|
|
205
|
-
if ($fresh.Count -eq 1) {
|
|
206
|
-
$script:Window = [IntPtr]$fresh[0]
|
|
207
|
-
$script:WindowIdentity = [JevNative]::IdentityOf($script:Window)
|
|
208
|
-
$script:OpeningUnresolved = $false
|
|
209
|
-
$script:EmptyPageAddress = ''
|
|
210
|
-
$script:EmptyPageSince = [DateTime]::MinValue
|
|
211
|
-
$script:RefreshedPages.Clear()
|
|
212
|
-
# Chrome suppresses page rendering and accessibility in a new window created by a background resident host.
|
|
213
|
-
# Activate only the fresh window whose exact handle and process/thread identity we now own.
|
|
214
|
-
[void][JevNative]::ActivateOwnedWindow($script:Window)
|
|
215
|
-
return
|
|
216
|
-
}
|
|
217
|
-
if ($fresh.Count -gt 1) { Fail 'window_ambiguous' }
|
|
218
|
-
Start-Sleep -Milliseconds 200
|
|
219
|
-
}
|
|
220
|
-
Fail 'window_not_opened'
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
function Owned-Window {
|
|
224
|
-
if ($script:Window -eq [IntPtr]::Zero -or -not [JevNative]::IsWindow($script:Window)) { Fail 'window_closed' }
|
|
225
|
-
if ([JevNative]::ClassOf($script:Window) -cne 'Chrome_WidgetWin_1' -or [JevNative]::IdentityOf($script:Window) -cne $script:WindowIdentity) { Fail 'window_changed' }
|
|
226
|
-
return $AE::FromHandle($script:Window)
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
function Page-Url($window) {
|
|
230
|
-
$edits = $window.FindAll($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::ControlTypeProperty, $CT::Edit)))
|
|
231
|
-
foreach ($edit in $edits) {
|
|
232
|
-
try {
|
|
233
|
-
if ($edit.Current.ClassName -ne 'OmniboxViewViews') { continue }
|
|
234
|
-
$value = (Pattern $edit ([Windows.Automation.ValuePattern]::Pattern)).Current.Value.Trim()
|
|
235
|
-
if ($value -notmatch '^[a-z]+://') { $value = $(if ($value -match '^(127\.0\.0\.1|localhost)(:\d+)?(/|$)') { "http://$value" } else { "https://$value" }) }
|
|
236
|
-
return $value
|
|
237
|
-
} catch {}
|
|
238
|
-
}
|
|
239
|
-
return ''
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
function Test-EmptyPageRefresh([string]$Address, [double]$EmptyMilliseconds, [bool]$AlreadyRefreshed, [int]$RefreshCount) {
|
|
243
|
-
return -not [string]::IsNullOrWhiteSpace($Address) -and $EmptyMilliseconds -ge 3500 -and -not $AlreadyRefreshed -and $RefreshCount -lt 3
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
function Page-Document($window) {
|
|
247
|
-
[JevNative]::EnableAccessibility($script:Window)
|
|
248
|
-
$docs = $window.FindAll($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::ControlTypeProperty, $CT::Document)))
|
|
249
|
-
foreach ($doc in $docs) {
|
|
250
|
-
try {
|
|
251
|
-
if (-not $doc.Current.IsOffscreen -and $doc.FindAll($Scope::Children, [Windows.Automation.Condition]::TrueCondition).Count -gt 0) {
|
|
252
|
-
$script:EmptyPageAddress = ''
|
|
253
|
-
$script:EmptyPageSince = [DateTime]::MinValue
|
|
254
|
-
return $doc
|
|
255
|
-
}
|
|
256
|
-
} catch {}
|
|
257
|
-
}
|
|
258
|
-
# Chrome can retain only hidden renderer views in an otherwise visible new window.
|
|
259
|
-
# After settling, reactivate only our exact owned window once per address (at most 3 addresses).
|
|
260
|
-
$address = Page-Url $window
|
|
261
|
-
if ($address -and $address -cne $script:EmptyPageAddress) {
|
|
262
|
-
$script:EmptyPageAddress = $address
|
|
263
|
-
$script:EmptyPageSince = [DateTime]::UtcNow
|
|
264
|
-
}
|
|
265
|
-
if (Test-EmptyPageRefresh $address ([DateTime]::UtcNow - $script:EmptyPageSince).TotalMilliseconds ($script:RefreshedPages.Contains($address)) $script:RefreshedPages.Count) {
|
|
266
|
-
[void](Owned-Window)
|
|
267
|
-
[void]$script:RefreshedPages.Add($address)
|
|
268
|
-
if ([JevNative]::IsWindow($script:Window) -and [JevNative]::IdentityOf($script:Window) -ceq $script:WindowIdentity) {
|
|
269
|
-
[void][JevNative]::ActivateOwnedWindow($script:Window)
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
return $null
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
# Opt-in development diagnostics for this helper's owned window only; no names, values, URLs or text.
|
|
276
|
-
function Diagnose-Page {
|
|
277
|
-
if ($env:ZORTEX_JEV_HELPER_DEBUG -ne '1') { Fail 'diagnostics_disabled' }
|
|
278
|
-
$window = Owned-Window
|
|
279
|
-
$types = @{}
|
|
280
|
-
$nodes = $window.FindAll($Scope::Descendants, [Windows.Automation.Condition]::TrueCondition)
|
|
281
|
-
foreach ($node in $nodes) {
|
|
282
|
-
try {
|
|
283
|
-
$key = [string]$node.Current.ControlType.ProgrammaticName
|
|
284
|
-
if (-not $types.ContainsKey($key)) { $types[$key] = 0 }
|
|
285
|
-
$types[$key]++
|
|
286
|
-
} catch {}
|
|
287
|
-
}
|
|
288
|
-
$documents = @()
|
|
289
|
-
foreach ($doc in $window.FindAll($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::ControlTypeProperty, $CT::Document)))) {
|
|
290
|
-
try { $documents += @{ offscreen = [bool]$doc.Current.IsOffscreen; descendants = $doc.FindAll($Scope::Descendants, [Windows.Automation.Condition]::TrueCondition).Count } } catch {}
|
|
291
|
-
}
|
|
292
|
-
$renderers = @()
|
|
293
|
-
foreach ($handle in [JevNative]::RenderWindows($script:Window)) {
|
|
294
|
-
try {
|
|
295
|
-
$root = $AE::FromHandle([IntPtr]$handle)
|
|
296
|
-
$renderers += @{ type = $root.Current.ControlType.ProgrammaticName; offscreen = $root.Current.IsOffscreen; nodes = $root.FindAll($Scope::Descendants, [Windows.Automation.Condition]::TrueCondition).Count; documents = $root.FindAll($Scope::Subtree, (New-Object Windows.Automation.PropertyCondition($AE::ControlTypeProperty, $CT::Document))).Count }
|
|
297
|
-
} catch { $renderers += @{ unavailable = $true } }
|
|
298
|
-
}
|
|
299
|
-
return @{ nodes = $nodes.Count; types = $types; documents = $documents; renderers = $renderers; refreshes = $script:RefreshedPages.Count; childClasses = [JevNative]::ChildClasses($script:Window); minimized = [JevNative]::IsIconic($script:Window); cloaked = [JevNative]::Cloaked($script:Window); foreground = ([JevNative]::GetForegroundWindow() -eq $script:Window); foregroundAvailable = ([JevNative]::GetForegroundWindow() -ne [IntPtr]::Zero); inputDesktopAvailable = [JevNative]::InputDesktopAvailable(); accessibility = [JevNative]::AccessibilityStatus($script:Window) }
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
function Role-Of($element) {
|
|
303
|
-
$type = $element.Current.ControlType
|
|
304
|
-
if ($type -eq $CT::Hyperlink) { return 'link' }
|
|
305
|
-
if ($type -eq $CT::Button -or $type -eq $CT::CheckBox -or $type -eq $CT::RadioButton -or $type -eq $CT::ListItem -or $type -eq $CT::MenuItem -or $type -eq $CT::TabItem) { return 'button' }
|
|
306
|
-
if ($type -eq $CT::Edit) { return 'textbox' }
|
|
307
|
-
if ($type -eq $CT::ComboBox) {
|
|
308
|
-
# Chrome exposes both language selectors and editable inputs as ComboBox.
|
|
309
|
-
# ValuePattern.IsReadOnly is false for both; it is not an editability test.
|
|
310
|
-
# Editable ARIA combobox inputs expose TextPattern; native editable combos have an Edit child.
|
|
311
|
-
$textPattern = Pattern $element ([Windows.Automation.TextPattern]::Pattern)
|
|
312
|
-
$edits = $element.FindAll($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::ControlTypeProperty, $CT::Edit)))
|
|
313
|
-
if ($null -ne $textPattern -or $edits.Count -gt 0) { return 'textbox' }
|
|
314
|
-
return 'button'
|
|
315
|
-
}
|
|
316
|
-
return $null
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
function Observe-Page {
|
|
320
|
-
$window = Owned-Window
|
|
321
|
-
$url = Page-Url $window
|
|
322
|
-
$title = ''
|
|
323
|
-
try { $title = [string]$window.Current.Name -replace ' - Google Chrome$', '' } catch {}
|
|
324
|
-
$doc = Page-Document $window
|
|
325
|
-
$controls = New-Object System.Collections.ArrayList
|
|
326
|
-
$headings = New-Object System.Collections.ArrayList
|
|
327
|
-
$text = New-Object System.Text.StringBuilder
|
|
328
|
-
$script:Controls = @{}
|
|
329
|
-
if ($null -ne $doc) {
|
|
330
|
-
$n = 0
|
|
331
|
-
$lastName = ''
|
|
332
|
-
foreach ($element in $doc.FindAll($Scope::Descendants, [Windows.Automation.Condition]::TrueCondition)) {
|
|
333
|
-
if (++$n -gt 3000) { break }
|
|
334
|
-
try {
|
|
335
|
-
$current = $element.Current
|
|
336
|
-
$name = ([string]$current.Name).Trim()
|
|
337
|
-
$heading = $false
|
|
338
|
-
if ($null -ne $script:HeadingLevel) { try { $level = [int]$element.GetCurrentPropertyValue($script:HeadingLevel); $heading = $level -gt 80050 -and $level -le 80059 } catch {} }
|
|
339
|
-
if (-not $heading) { $heading = $current.ControlType -eq $CT::Header -or [string]$current.LocalizedControlType -match $HeadingType }
|
|
340
|
-
if ($heading -and $name) { [void]$headings.Add($name) }
|
|
341
|
-
if ($name -and $text.Length -lt 8000 -and $name -ne $lastName) { [void]$text.Append($name).Append(' '); $lastName = $name }
|
|
342
|
-
$role = Role-Of $element
|
|
343
|
-
if (-not $role -or $current.IsOffscreen) { continue }
|
|
344
|
-
$id = ($element.GetRuntimeId() -join '.')
|
|
345
|
-
$control = [ordered]@{ id = $id; role = $role; label = $name; enabled = [bool]$current.IsEnabled }
|
|
346
|
-
if ($current.IsPassword) { $control.secure = $true }
|
|
347
|
-
$toggle = Pattern $element ([Windows.Automation.TogglePattern]::Pattern)
|
|
348
|
-
if ($null -ne $toggle) { $control.selected = ($toggle.Current.ToggleState -eq [Windows.Automation.ToggleState]::On) }
|
|
349
|
-
# Only what can be pressed is offered: Google's account row is a list item around the real link.
|
|
350
|
-
if ($role -ne 'textbox' -and -not (Actionable $element)) { continue }
|
|
351
|
-
if (-not $name -and $role -ne 'textbox' -and -not $control.Contains('selected')) { continue }
|
|
352
|
-
$script:Controls[$id] = $element
|
|
353
|
-
[void]$controls.Add($control)
|
|
354
|
-
} catch {}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
return [ordered]@{ url = $url; title = $title; text = $text.ToString().Trim(); headings = @($headings); controls = @($controls) }
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
function Actionable($element) {
|
|
361
|
-
foreach ($p in @([Windows.Automation.InvokePattern]::Pattern, [Windows.Automation.TogglePattern]::Pattern,
|
|
362
|
-
[Windows.Automation.SelectionItemPattern]::Pattern, [Windows.Automation.ExpandCollapsePattern]::Pattern)) {
|
|
363
|
-
if ($null -ne (Pattern $element $p)) { return $true }
|
|
364
|
-
}
|
|
365
|
-
return $false
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
function Act([string]$id) {
|
|
369
|
-
[void](Owned-Window)
|
|
370
|
-
$element = $script:Controls[$id]
|
|
371
|
-
if ($null -eq $element) { Fail 'control_unknown' }
|
|
372
|
-
$invoke = Pattern $element ([Windows.Automation.InvokePattern]::Pattern)
|
|
373
|
-
if ($null -ne $invoke) { $invoke.Invoke(); $script:Via = 'invoke'; return $true }
|
|
374
|
-
$toggle = Pattern $element ([Windows.Automation.TogglePattern]::Pattern)
|
|
375
|
-
if ($null -ne $toggle) { $toggle.Toggle(); $script:Via = 'toggle'; return $true }
|
|
376
|
-
$select = Pattern $element ([Windows.Automation.SelectionItemPattern]::Pattern)
|
|
377
|
-
if ($null -ne $select) { $select.Select(); $script:Via = 'select'; return $true }
|
|
378
|
-
$expand = Pattern $element ([Windows.Automation.ExpandCollapsePattern]::Pattern)
|
|
379
|
-
if ($null -ne $expand) { $expand.Expand(); $script:Via = 'expand'; return $true }
|
|
380
|
-
return $false
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
function Type-Into([string]$id, [string]$value) {
|
|
384
|
-
[void](Owned-Window)
|
|
385
|
-
$element = $script:Controls[$id]
|
|
386
|
-
if ($null -eq $element) { Fail 'control_unknown' }
|
|
387
|
-
if ((Role-Of $element) -ne 'textbox' -or -not $element.Current.IsEnabled -or $value.Length -lt 1 -or $value.Length -gt 4000) { return $false }
|
|
388
|
-
$pattern = Pattern $element ([Windows.Automation.ValuePattern]::Pattern)
|
|
389
|
-
if ($null -eq $pattern -or $pattern.Current.IsReadOnly) { return $false }
|
|
390
|
-
$pattern.SetValue($value)
|
|
391
|
-
$script:Via = 'value'
|
|
392
|
-
return $true
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
function Scroll-Page {
|
|
396
|
-
$doc = Page-Document (Owned-Window)
|
|
397
|
-
if ($null -eq $doc) { return $false }
|
|
398
|
-
# OAuth consent sheets commonly put their actions in a nested scrolling region. UIA exposes
|
|
399
|
-
# that region, not the Document, as the ScrollPattern owner. Stay within the owned document,
|
|
400
|
-
# inspect only visible scroll containers, and use ScrollPattern without synthesizing input.
|
|
401
|
-
$candidates = New-Object System.Collections.ArrayList
|
|
402
|
-
[void]$candidates.Add($doc)
|
|
403
|
-
$condition = New-Object Windows.Automation.PropertyCondition($AE::IsScrollPatternAvailableProperty, $true)
|
|
404
|
-
foreach ($element in $doc.FindAll($Scope::Descendants, $condition)) {
|
|
405
|
-
try {
|
|
406
|
-
if (-not $element.Current.IsOffscreen) { [void]$candidates.Add($element) }
|
|
407
|
-
} catch {}
|
|
408
|
-
}
|
|
409
|
-
foreach ($element in $candidates) {
|
|
410
|
-
try {
|
|
411
|
-
$scroll = Pattern $element ([Windows.Automation.ScrollPattern]::Pattern)
|
|
412
|
-
if ($null -eq $scroll -or -not $scroll.Current.VerticallyScrollable) { continue }
|
|
413
|
-
$before = $scroll.Current.VerticalScrollPercent
|
|
414
|
-
if ($before -ge 99.9) { continue }
|
|
415
|
-
$scroll.Scroll([Windows.Automation.ScrollAmount]::NoAmount, [Windows.Automation.ScrollAmount]::LargeIncrement)
|
|
416
|
-
Start-Sleep -Milliseconds 150
|
|
417
|
-
if ($scroll.Current.VerticalScrollPercent -gt $before) { return $true }
|
|
418
|
-
} catch {}
|
|
419
|
-
}
|
|
420
|
-
# Some web accessibility providers expose no ScrollPattern on their CSS viewport. They can
|
|
421
|
-
# still expose ScrollItemPattern on an offscreen child. Ask that child to reveal itself; this
|
|
422
|
-
# changes no selection or authorization state, and the planner must inspect the fresh page.
|
|
423
|
-
$itemCondition = New-Object Windows.Automation.PropertyCondition($AE::IsScrollItemPatternAvailableProperty, $true)
|
|
424
|
-
$inspected = 0
|
|
425
|
-
foreach ($element in $doc.FindAll($Scope::Descendants, $itemCondition)) {
|
|
426
|
-
if (++$inspected -gt 256) { break }
|
|
427
|
-
try {
|
|
428
|
-
if (-not $element.Current.IsOffscreen -or $null -eq (Role-Of $element) -or -not (Actionable $element)) { continue }
|
|
429
|
-
$scrollItem = Pattern $element ([Windows.Automation.ScrollItemPattern]::Pattern)
|
|
430
|
-
if ($null -eq $scrollItem) { continue }
|
|
431
|
-
$scrollItem.ScrollIntoView()
|
|
432
|
-
Start-Sleep -Milliseconds 150
|
|
433
|
-
if (-not $element.Current.IsOffscreen) { return $true }
|
|
434
|
-
} catch {}
|
|
435
|
-
}
|
|
436
|
-
return $false
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
# Signed-in site read (X, Instagram, LinkedIn): posts are ARIA articles, conversations are list items. The caller keeps
|
|
440
|
-
# only links on the requested site; nothing here types or presses anything.
|
|
441
|
-
function Text-Of($element, [int]$max) {
|
|
442
|
-
$name = ([string]$element.Current.Name).Trim()
|
|
443
|
-
if (-not $name) {
|
|
444
|
-
# Instagram leaves its articles unnamed; the visible words are in descendant text elements.
|
|
445
|
-
$parts = New-Object System.Collections.ArrayList
|
|
446
|
-
foreach ($t in $element.FindAll($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::ControlTypeProperty, $CT::Text)))) {
|
|
447
|
-
$part = ([string]$t.Current.Name).Trim()
|
|
448
|
-
if ($part) { [void]$parts.Add($part) }
|
|
449
|
-
if ($parts.Count -ge 200) { break }
|
|
450
|
-
}
|
|
451
|
-
$name = ($parts -join ' ')
|
|
452
|
-
}
|
|
453
|
-
if ($name.Length -gt $max) { $name = $name.Substring(0, $max) }
|
|
454
|
-
return $name
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
function Link-Of($element) {
|
|
458
|
-
$href = ''
|
|
459
|
-
try { $href = [string](Pattern $element ([Windows.Automation.ValuePattern]::Pattern)).Current.Value } catch {}
|
|
460
|
-
if ($href -notmatch '^https?://') { return $null }
|
|
461
|
-
$name = ([string]$element.Current.Name).Trim()
|
|
462
|
-
if ($name.Length -gt 300) { $name = $name.Substring(0, 300) }
|
|
463
|
-
return [ordered]@{ name = $name; href = $href }
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
function Block-Of($element) {
|
|
467
|
-
$links = New-Object System.Collections.ArrayList
|
|
468
|
-
foreach ($a in $element.FindAll($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::ControlTypeProperty, $CT::Hyperlink)))) {
|
|
469
|
-
$link = Link-Of $a
|
|
470
|
-
if ($null -ne $link) { [void]$links.Add($link) }
|
|
471
|
-
if ($links.Count -ge 20) { break }
|
|
472
|
-
}
|
|
473
|
-
return [ordered]@{ name = (Text-Of $element 4000); links = @($links) }
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
function Read-Site {
|
|
477
|
-
$window = Owned-Window
|
|
478
|
-
$url = Page-Url $window
|
|
479
|
-
$doc = Page-Document $window
|
|
480
|
-
$site = [ordered]@{ url = $url; rendered = ($null -ne $doc); password = $false; articles = @(); items = @(); links = @() }
|
|
481
|
-
if ($null -eq $doc) { return $site }
|
|
482
|
-
$password = $doc.FindFirst($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::IsPasswordProperty, $true)))
|
|
483
|
-
$site.password = $null -ne $password
|
|
484
|
-
$articles = New-Object System.Collections.ArrayList
|
|
485
|
-
foreach ($e in $doc.FindAll($Scope::Descendants, $script:ArticleCondition)) {
|
|
486
|
-
try { [void]$articles.Add((Block-Of $e)) } catch {}
|
|
487
|
-
if ($articles.Count -ge 12) { break }
|
|
488
|
-
}
|
|
489
|
-
$items = New-Object System.Collections.ArrayList
|
|
490
|
-
foreach ($e in $doc.FindAll($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::ControlTypeProperty, $CT::ListItem)))) {
|
|
491
|
-
try { [void]$items.Add((Block-Of $e)) } catch {}
|
|
492
|
-
if ($items.Count -ge 40) { break }
|
|
493
|
-
}
|
|
494
|
-
$links = New-Object System.Collections.ArrayList
|
|
495
|
-
foreach ($e in $doc.FindAll($Scope::Descendants, (New-Object Windows.Automation.PropertyCondition($AE::ControlTypeProperty, $CT::Hyperlink)))) {
|
|
496
|
-
try { $link = Link-Of $e; if ($null -ne $link) { [void]$links.Add($link) } } catch {}
|
|
497
|
-
if ($links.Count -ge 300) { break }
|
|
498
|
-
}
|
|
499
|
-
$site.articles = @($articles); $site.items = @($items); $site.links = @($links)
|
|
500
|
-
return $site
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
function Close-Page([int]$TimeoutMs = 5000) {
|
|
504
|
-
if ($script:OpeningUnresolved) { Fail 'window_cleanup_unconfirmed' }
|
|
505
|
-
if ($script:Window -eq [IntPtr]::Zero) { return }
|
|
506
|
-
if ([JevNative]::IsWindow($script:Window)) {
|
|
507
|
-
if ([JevNative]::IdentityOf($script:Window) -cne $script:WindowIdentity -or [JevNative]::ClassOf($script:Window) -cne 'Chrome_WidgetWin_1') { Fail 'window_changed' }
|
|
508
|
-
if (-not [JevNative]::PostMessage($script:Window, 0x0010, [IntPtr]::Zero, [IntPtr]::Zero)) { Fail 'window_close_failed' }
|
|
509
|
-
$until = [DateTime]::UtcNow.AddMilliseconds($TimeoutMs)
|
|
510
|
-
while ([JevNative]::IsWindow($script:Window)) {
|
|
511
|
-
if ([JevNative]::IdentityOf($script:Window) -cne $script:WindowIdentity -or [JevNative]::ClassOf($script:Window) -cne 'Chrome_WidgetWin_1') { Fail 'window_changed' }
|
|
512
|
-
if ([DateTime]::UtcNow -ge $until) { Fail 'window_cleanup_timeout' }
|
|
513
|
-
Start-Sleep -Milliseconds 50
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
# Posting WM_CLOSE is not proof of closure. Release ownership only after IsWindow returns false.
|
|
517
|
-
$script:Window = [IntPtr]::Zero
|
|
518
|
-
$script:WindowIdentity = ''
|
|
519
|
-
$script:Controls = @{}
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
while ($true) {
|
|
523
|
-
$line = [Console]::In.ReadLine()
|
|
524
|
-
if ($null -eq $line) { break }
|
|
525
|
-
try {
|
|
526
|
-
$request = $line | ConvertFrom-Json
|
|
527
|
-
switch ([string]$request.cmd) {
|
|
528
|
-
'open' { Open-Page ([string]$request.url); Answer @{ ok = $true } }
|
|
529
|
-
'observe' { Answer @{ ok = $true; page = (Observe-Page) } }
|
|
530
|
-
'diagnose' { Answer @{ ok = $true; diagnostics = (Diagnose-Page) } }
|
|
531
|
-
'act' { $script:Via = 'none'; $done = Act ([string]$request.id); Answer @{ ok = $true; done = $done; via = $script:Via } }
|
|
532
|
-
'type' { $script:Via = 'none'; $done = Type-Into ([string]$request.id) ([string]$request.value); Answer @{ ok = $true; done = $done; via = $script:Via } }
|
|
533
|
-
'scroll' { Answer @{ ok = $true; moved = (Scroll-Page) } }
|
|
534
|
-
'readsite' { Answer @{ ok = $true; site = (Read-Site) } }
|
|
535
|
-
'close' { Close-Page; Answer @{ ok = $true } }
|
|
536
|
-
'reveal' { [void](Owned-Window); [void][JevNative]::ShowWindow($script:Window, 4); Answer @{ ok = $true; done = $true } }
|
|
537
|
-
default { Answer @{ ok = $false; reason = 'unknown_command' } }
|
|
538
|
-
}
|
|
539
|
-
} catch {
|
|
540
|
-
$message = [string]$_.Exception.Message
|
|
541
|
-
if ($env:ZORTEX_JEV_HELPER_DEBUG -eq '1') { [Console]::Error.WriteLine($message + " @ " + [string]$_.InvocationInfo.ScriptLineNumber) }
|
|
542
|
-
Answer @{ ok = $false; reason = $(if ($message -match '^jev:([a-z_]{1,64})$') { $Matches[1] } else { 'automation_error' }) }
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
Close-Page
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const APPROVED=[["Gmail","https://accounts.google.com","Google authorization",["Use approved account","Continue approved Zortex warning","Continue approved Gmail connection"]],["Slack","https://slack.com","Slack authorization",["Allow approved Slack connection"]],["Microsoft","https://login.microsoftonline.com","Microsoft authorization",["Select first signed-in account","Accept approved Microsoft connection"]],["Notion","https://www.notion.so","Notion authorization",["Continue approved Notion connection"]]];function approvedControl(goal,page,history){if(history.length||page.text!==""||page.inputNames?.length||page.headings?.length||page.controls.length!==1)return;const control=page.controls[0];if(!control.id||control.enabled!==true||!["button","link"].includes(control.role)||control.href!==void 0||control.pageUrl!==void 0||control.selected!==void 0)return;for(const[name,url,title,labels]of APPROVED){if(goal===`Continue the approved ${name} connection`&&page.url===url&&page.title===title&&labels.includes(control.label))return control.id}}export class UIARuleDecider{async choose(goal,page,history,signal){signal?.throwIfAborted();const id=approvedControl(goal,page,history);if(!id)throw new Error("uia_rule_unavailable");return{action:"click",id}}}export class ApprovedControlDecider{model;log;constructor(model,log=()=>{}){this.model=model;this.log=log}get lastCostUsd(){return this.model.lastCostUsd}async choose(goal,page,history,signal){signal?.throwIfAborted();try{return await this.model.choose(goal,page,history,signal)}catch(error){signal?.throwIfAborted();if(!(error instanceof Error)||error.message!=="provider_http_403")throw error;const id=approvedControl(goal,page,history);if(!id)throw error;this.log("indra: jev decision model unavailable: provider_http_403; using the provider-validated single control.");return{action:"click",id}}}}
|