@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 +1 @@
|
|
|
1
|
-
import{accessSync,constants,existsSync}from"node:fs";import{homedir}from"node:os";import{delimiter,join}from"node:path";import{fileURLToPath}from"node:url";import{notebookRecords}from"./notebooklm-read.js";import{redditSignedIn,spotifySignedIn}from"./signed-in.js";import{facebookCompat,facebookSchema,facebookWriteToken}from"./facebook-compat.js";export function onPath(command,env=process.env){const exts=process.platform==="win32"?(env.PATHEXT??".EXE;.CMD").split(";"):[""];return(env.PATH??"").split(delimiter).filter(Boolean).some(dir=>exts.some(ext=>existsSync(join(dir,command+ext.toLowerCase()))||existsSync(join(dir,command+ext))))}const npx=pkg=>({transport:"stdio",command:"npx",args:["-y",pkg]});const needsNpx=()=>onPath("npx")?void 0:"Node.js npx is not on PATH; install Node.js 20+ to start this connector.";export const stripe={source:"stripe",label:"Stripe",group:"Connector / \u6536\u6B3E",server:{transport:"http",url:"https://mcp.stripe.com"},auth:{kind:"mcp-oauth",loopbackPort:8751,reviewed:{issuer:"https://access.stripe.com/mcp",scopes:["mcp"],allowedOrigins:["https://access.stripe.com"]}},origin:{official:true,repo:"stripe/ai",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 4)"}};const calendlyClientId=process.env.ZORTEX_CALENDLY_CLIENT_ID?.trim();export const calendly={source:"calendly",label:"Calendly",group:"Connector / \u65E5\u7A0B",server:{transport:"http",url:"https://mcp.calendly.com"},auth:{kind:"mcp-oauth",loopbackPort:8752,reviewed:{issuer:"https://calendly.com/",scopes:["mcp:scheduling:read","mcp:scheduling:write"],allowedOrigins:["https://calendly.com","https://zortex-calendly-auth.pages.dev","https://zortex-auth-9sl.pages.dev"],redirectUriPolicy:"https-only",registration:calendlyClientId?{kind:"redirect-broker",clientId:calendlyClientId,brokerBase:"https://zortex-auth-9sl.pages.dev",brokerPath:"calendly"}:{kind:"dcr",httpsBroker:"calendly"},identity:{tool:"users-get_current_user",subjectPath:["resource","uri"],labelPath:["resource","email"]}}},origin:{official:true,repo:"developer.calendly.com/calendly-mcp-server",check:"official hosted server; no public repository"}};export const openrouter={source:"openrouter",label:"OpenRouter",group:"Connector / \u6A21\u578B",server:{transport:"http",url:"https://mcp.openrouter.ai/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.openrouter.ai",scopes:[],allowedOrigins:["https://mcp.openrouter.ai","https://openrouter.ai"],identity:{kind:"openrouter-current-key"}}},origin:{official:true,repo:"openrouter.ai/docs/guides/overview/mcp-server",check:"official hosted server; SDK OpenRouterTeam/typescript-sdk \u503C\u5F97\u4E00\u8BD5 (score 5)"}};export const cloudflare={source:"cloudflare",label:"Cloudflare",readOnly:true,group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://mcp.cloudflare.com/mcp"},exposedTools:["whoami","docs","search","execute"],auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.cloudflare.com",scopes:["user:read","account:read","offline_access"],allowedOrigins:["https://mcp.cloudflare.com","https://dash.cloudflare.com"],registration:{kind:"dcr"},identity:{tool:"whoami",subjectPath:["id"],labelPath:["email"]}}},origin:{official:true,repo:"cloudflare/mcp",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 4; tests, CI, Apache-2.0, active upstream) at 550e1be82b2227818e6b98fc32a313a59403ae3f; use the vendor-hosted unified server instead of embedding the deprecated specialist servers."}};export const posthog={source:"posthog",label:"PostHog",group:"Connector / \u5206\u6790",server:{transport:"http",url:"https://mcp.posthog.com/mcp"},exposedTools:["user-get","organizations-get","projects-get","dashboards-get-all","insights-list","execute-sql","annotation-create","annotation-retrieve","annotations-list","annotation-delete"],auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://oauth.posthog.com",scopes:["user:read","organization:read","dashboard:read","insight:read","query:read","annotation:read","annotation:write"],allowedOrigins:["https://oauth.posthog.com","https://us.posthog.com","https://eu.posthog.com"],registration:{kind:"dcr"},identity:{tool:"user-get",subjectPath:["uuid"],labelPath:["email"]}}},origin:{official:true,repo:"PostHog/posthog",check:"official active monorepo with tests and CI reviewed at 531a053f2408a3416536cf942a8378e172308f7e; gh oss-check was unavailable because this host token is invalid, so public upstream source and live OAuth metadata were inspected directly. Use the vendor-hosted MCP."}};export const notionL1={source:"notion-l1",label:"Notion (Actions)",group:"Connector / Documents",server:{transport:"http",url:"https://mcp.notion.com/mcp"},exposedTools:["notion-get-self","notion-get-tool-access","notion-search","notion-fetch","notion-create-pages","notion-update-page","notion-create-comment","notion-get-comments"],auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.notion.com",scopes:["default"],allowedOrigins:["https://mcp.notion.com"],registration:{kind:"dcr"},identity:{kind:"notion-bot-owner"}}},origin:{official:true,repo:"makenotion/notion-cookbook",check:"official hosted MCP and client-integration documentation reviewed 2026-10-26; gh oss-check was unavailable because this host token is invalid, so the public official repository, current provider documentation and live OAuth metadata were inspected directly. The existing Notion L2 provider remains installed separately."}};export const github={source:"github",label:"GitHub",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://api.githubcopilot.com/mcp/"},auth:{kind:"oauth-device",clientId:"Ov23liDjCBTGEwUJvt8f",deviceCodeUrl:"https://github.com/login/device/code",tokenUrl:"https://github.com/login/oauth/access_token",reviewed:{issuer:"https://github.com",allowedOrigins:["https://github.com"],scopes:["repo","read:org","read:user","user:email","read:packages","write:packages","read:project","project","gist","notifications"],identity:{tool:"get_me",subjectPath:["id"],labelPath:["login"]}}},origin:{official:true,repo:"github/github-mcp-server",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 8); official remote endpoint and get_me contract reviewed at current upstream"}};export const gitlab={source:"gitlab",label:"GitLab",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://gitlab.com/api/v4/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://gitlab.com",scopes:["mcp"],allowedOrigins:["https://gitlab.com"],registration:{kind:"dcr",allowUnadvertisedPublicClient:true},identity:{kind:"gitlab-token-info"}}},origin:{official:true,repo:"gitlab-org/gitlab",check:"official hosted MCP; gitlabhq/gitlabhq mirror oss-check \u4E0D\u786E\u5B9A (score 3) and has no usable license signal, so it is not embedded"}};export const jira={source:"jira",label:"Jira",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://mcp.atlassian.com/v2/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://auth.atlassian.com/VCeDsk8ZHncYF1g234fKtc4lNipbBhu3",scopes:["read:me","read:account","offline_access","email","read:jira:agent-interface","write:jira:agent-interface","search:jira:agent-interface","delete:jira:agent-interface","manage:jira:agent-interface"],allowedOrigins:["https://auth.atlassian.com","https://api.atlassian.com"],registration:{kind:"dcr",discardReturnedSecretForPublicClient:true},identity:{kind:"atlassian-current-user-sites"}}},origin:{official:true,repo:"atlassian/atlassian-mcp-server",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 4, Apache-2.0, active upstream); use the vendor-hosted v2 server instead of embedding it"}};export const confluence={source:"confluence",label:"Confluence",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://mcp.atlassian.com/v2/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://auth.atlassian.com/VCeDsk8ZHncYF1g234fKtc4lNipbBhu3",scopes:["read:me","read:account","offline_access","email","read:confluence:agent-interface","write:confluence:agent-interface","search:confluence:agent-interface"],allowedOrigins:["https://auth.atlassian.com","https://api.atlassian.com"],registration:{kind:"dcr",discardReturnedSecretForPublicClient:true},identity:{kind:"atlassian-current-user-sites"}}},origin:{official:true,repo:"atlassian/atlassian-mcp-server",check:"reuses source 027 oss-check: \u503C\u5F97\u4E00\u8BD5 (score 4, Apache-2.0, active upstream); use the vendor-hosted v2 server instead of embedding it"}};export const linear={source:"linear",label:"Linear",group:"Connector / \u534F\u4F5C",server:{transport:"http",url:"https://mcp.linear.app/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.linear.app",scopes:["read","write","openid","email"],allowedOrigins:["https://mcp.linear.app","https://linear.app"],registration:{kind:"dcr"},identity:{kind:"linear-openid-teams"}}},origin:{official:true,repo:"linear/linear",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 8, MIT, active upstream with tests, CI and releases); use Linear's vendor-hosted MCP rather than embedding the application repository"}};export const asana={source:"asana",label:"Asana",group:"Connector / \u534F\u4F5C",server:{transport:"http",url:"https://mcp.asana.com/v2/mcp"},auth:{kind:"mcp-oauth",loopbackPort:8752,reviewed:{issuer:"https://app.asana.com",scopes:[],allowedOrigins:["https://app.asana.com"],registration:{kind:"broker",clientId:"1219875673629405",brokerBase:"https://zortex-auth-9sl.pages.dev",brokerPath:"asana"},identity:{kind:"asana-user-workspaces"}}},origin:{official:true,repo:"Asana/node-asana",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 6, MIT, active upstream); use Asana's vendor-hosted v2 MCP server rather than embedding the REST SDK"}};export const clickup={source:"clickup",label:"ClickUp",group:"Connector / \u534F\u4F5C",server:{transport:"http",url:"https://mcp.clickup.com/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.clickup.com",scopes:["read","write"],allowedOrigins:["https://mcp.clickup.com","https://app.clickup.com"],registration:{kind:"dcr"},identity:{kind:"clickup-current-user-workspaces"}}},origin:{official:true,repo:"clickup/clickup-plugin",check:"oss-check score 2; ten-minute source trial confirmed the official MIT plugin is a thin manifest for the same hosted MCP URL, so Zortex reuses the vendor endpoint rather than embedding untested code"}};export const ticktick={source:"ticktick",label:"TickTick",group:"Connector / Tasks",server:{transport:"http",url:"https://mcp.ticktick.com"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://ticktick.com",scopes:["tasks:read","tasks:write"],allowedOrigins:["https://ticktick.com","https://api.ticktick.com"],registration:{kind:"dcr"},identity:{kind:"ticktick-inbox-self"}}},origin:{official:true,repo:"help.ticktick.com/articles/7438129581631995904",check:"Official hosted MCP documented by help.ticktick.com/articles/7438129581631995904. Real DCR/S256 qualification and 57-tool catalog; readonly Inbox membership returned exactly one self=true username matching consent. Username changes require reauthorization; no immutable numeric user ID is advertised."}};export const todoist={source:"todoist",label:"Todoist",group:"Connector / Tasks",server:{transport:"http",url:"https://ai.todoist.net/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://todoist.com",scopes:["data:read_write"],allowedOrigins:["https://todoist.com","https://app.todoist.com"],registration:{kind:"dcr"},identity:{tool:"user-info",subjectPath:["userId"],labelPath:["email"]}}},origin:{official:true,repo:"Doist/todoist-ai",check:"MIT official hosted MCP; oss-check score 4 with active CI/releases and colocated tests. Live qualification at 4438a5159a3666977550e1488b557bcf1a09b83f verified public DCR, real PKCE grant, 47 tools and readonly user-info; no embedded API key or SDK."}};export const microsoftTodo={source:"microsoft-todo",label:"Microsoft To Do",readOnly:true,group:"Connector / Tasks",server:{transport:"stdio",command:process.execPath,args:[fileURLToPath(new URL("./microsoft-todo-server.js",import.meta.url))],env:(_fields,token)=>({MICROSOFT_TODO_ACCESS_TOKEN:token??""})},auth:{kind:"oauth-device",clientId:"2a0c47ae-6035-459e-a544-f8c2008a9d78",deviceCodeUrl:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",tokenUrl:"https://login.microsoftonline.com/common/oauth2/v2.0/token",reviewed:{issuer:"https://login.microsoftonline.com/common/v2.0",scopes:["openid","profile","email","Tasks.Read","User.Read","offline_access"],allowedOrigins:["https://login.microsoftonline.com"],identity:{tool:"get_profile",subjectPath:["id"]}}},origin:{official:true,repo:"microsoftgraph/microsoft-graph-docs-contrib",artifact:"zortex-microsoft-todo@0.1.0",check:"Official Graph API behind a bounded in-package adapter. pnp/cli-microsoft365-mcp-server at 9b6863daef5bb093c70540479092a8c160a657be was rejected after its ten-minute trial because it delegates auth to a separately installed global CLI and exposes arbitrary command execution instead of a bounded To Do surface."}};export const appleNotes={source:"apple-notes",label:"Apple Notes",group:"Connector / Notes",server:{transport:"stdio",command:"bun",args:[fileURLToPath(new URL("./apple-notes-server.js",import.meta.url))]},auth:{kind:"server-login",login:{tool:"get_identity",ready:{tool:"get_identity",done:structured=>typeof structured?.id==="string"},identity:{tool:"get_identity",subjectPath:["id"],labelPath:["name"]}}},origin:{official:true,repo:"Apple/macOS-Notes-scripting-dictionary",artifact:"zortex-apple-notes@0.1.0",check:"macOS system Notes scripting dictionary; the existing in-repo native adapter has exercised the same JXA boundary on a 2,237-note real store. Local Actions are bounded and do not start the L2 sync connector."},unavailable:()=>process.platform!=="darwin"?"Apple Notes is available only on macOS.":onPath("bun")?void 0:"Bun is required to use the authorized local Notes bridge."};export const appleReminders={source:"apple-reminders",label:"Apple Reminders",group:"Connector / Tasks",server:{transport:"stdio",command:"bun",args:[fileURLToPath(new URL("./apple-reminders-server.js",import.meta.url))]},auth:{kind:"server-login",login:{tool:"get_identity",ready:{tool:"get_identity",done:structured=>typeof structured?.id==="string"},identity:{tool:"get_identity",subjectPath:["id"],labelPath:["name"]}}},origin:{official:true,repo:"Apple/macOS-Reminders-scripting-dictionary",artifact:"zortex-apple-reminders@0.1.0",check:"Native macOS Reminders.sdef provides bounded accounts, lists and reminder CRUD. burghr/reminders-mcp and Don-Works/reminders-mcp were considered; the former has one commit and an extra Python service, while the latter is AGPL and requires an separately shipped Swift binary. The in-package bridge keeps the installed artifact self-contained and uses the already-qualified background launchd Apple Events path."},unavailable:()=>process.platform!=="darwin"?"Apple Reminders is available only on macOS.":onPath("bun")?void 0:"Bun is required to use the authorized local Reminders bridge."};export const appleMusic={source:"apple-music",label:"Apple Music",group:"Connector / \u97F3\u4E50",server:{transport:"stdio",command:"bun",args:[fileURLToPath(new URL("./apple-music-server.js",import.meta.url))]},auth:{kind:"server-login",login:{tool:"get_identity",ready:{tool:"get_identity",done:structured=>typeof structured?.libraryId==="string"},identity:{tool:"get_identity",subjectPath:["libraryId"],labelPath:["libraryName"]}}},origin:{official:true,repo:"Apple/macOS-Music-scripting-dictionary",artifact:"zortex-apple-music@0.1.0",check:"The installed Music.sdef provides stable library and media identifiers, playlist/track reads, native search, playback state and user-playlist CRUD. tomahawk-player/tomahawk was rejected by the repository OSS gate because it has no current tests or release and its last commit was more than six years ago. The self-contained adapter uses the same bounded background launchd Apple Events path as the qualified native connectors."},unavailable:()=>process.platform!=="darwin"?"Apple Music is available only on macOS.":onPath("bun")?void 0:"Bun is required to use the authorized local Music bridge."};export const sentry={source:"sentry",label:"Sentry",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://mcp.sentry.dev/mcp"},exposedTools:["find_organizations","find_projects","update_issue","search_errors","search_logs","search_traces","search_metrics","search_profiles","search_replays","find_dropped_events","analyze_issue_with_seer","search_issues","get_sentry_resource","search_sentry_tools","execute_sentry_tool"],auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.sentry.dev",scopes:["org:read","project:write","team:write","event:write","alerts:write"],allowedOrigins:["https://mcp.sentry.dev","https://sentry.io"],registration:{kind:"dcr"},identity:{kind:"sentry-catalog-whoami"}}},origin:{official:true,repo:"getsentry/toolkit",check:"official remote MCP source and tests reviewed at 3869ac95a3227cc29783939c436252f0cd796aea; oss-check CLI unavailable because GitHub credentials were rejected, so the public repository was inspected directly"}};export const shopify={source:"shopify",label:"Shopify",group:"Connector / \u5E97\u94FA",server:{...npx("mcp-shopify-admin@1.1.0"),env:f=>({SHOPIFY_STORE_DOMAIN:f.store??"",SHOPIFY_CLIENT_ID:f.clientId??"",SHOPIFY_CLIENT_SECRET:f.clientSecret??""})},auth:{kind:"fields",account:f=>String(f.store??"").trim().toLowerCase(),fields:[{key:"store",label:"Store domain (my-store.myshopify.com)"},{key:"clientId",label:"Dev Dashboard app client ID"},{key:"clientSecret",label:"Dev Dashboard app client secret",secret:true}]},origin:{official:false,repo:"A1-x-Tech/mcp-shopify-admin",package:"mcp-shopify-admin@1.1.0",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 5, tests + CI, 0 stars); GeLi2001/shopify-mcp stale 192 days"},unavailable:needsNpx};export const reddit={source:"reddit",label:"Reddit",group:"Connector / \u793E\u533A",server:{...npx("reddit-mcp-server@1.6.3"),env:f=>({REDDIT_AUTH_MODE:"auto",REDDIT_SAFE_MODE:"standard",...Object.fromEntries(Object.entries({REDDIT_CLIENT_ID:f.clientId,REDDIT_CLIENT_SECRET:f.clientSecret,REDDIT_USERNAME:f.username,REDDIT_PASSWORD:f.password}).filter(([,v])=>v))})},publicTools:["browse_subreddit","get_top_posts"],signedIn:redditSignedIn,auth:{kind:"fields",account:f=>"u/"+String(f.username??"").trim(),fields:[{key:"clientId",label:"Reddit app client ID"},{key:"clientSecret",label:"Reddit app client secret",secret:true},{key:"username",label:"Reddit username (for posting)"},{key:"password",label:"Reddit password (for posting)",secret:true}]},origin:{official:false,repo:"jordanburke/reddit-mcp-server",package:"reddit-mcp-server@1.6.3",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 6)"},unavailable:needsNpx};export const spotify={source:"spotify",label:"Spotify",group:"Connector / \u97F3\u4E50",signedIn:spotifySignedIn,server:{...npx("@xavifabregat/spotify-mcp@0.1.2"),env:f=>({SPOTIFY_CLIENT_ID:f.clientId??""})},auth:{kind:"fields",account:f=>"spotify app "+String(f.clientId??"").slice(0,6),login:{tool:"authenticate"},fields:[{key:"clientId",label:"Spotify app client ID (redirect URI http://127.0.0.1:8888/callback)"}]},origin:{official:false,repo:"XavierFabregat/spotify-mcp",package:"@xavifabregat/spotify-mcp@0.1.2",check:"oss-check \u4E0D\u786E\u5B9A (tests + CI, 1 star); marcelmarais/spotify-mcp-server has no license, varunneal/spotify-mcp stale"},unavailable:needsNpx};export const tiktok={source:"tiktok",label:"TikTok",group:"Connector / \u793E\u533A",exposedTools:["list_accounts","get_profile","list_videos","get_videos","top_videos","search_my_videos","stats_summary"],server:{...npx("@thenavidm/tiktok-mcp-cli@2.0.1"),env:f=>({TIKTOK_CLIENT_KEY:f.clientKey??"",TIKTOK_CLIENT_SECRET:f.clientSecret??"",TIKTOK_REFRESH_TOKEN:f.refreshToken??""})},auth:{kind:"fields",account:f=>"@"+String(f.username??"").trim().replace(/^@/,""),fields:[{key:"username",label:"Authorized TikTok username"},{key:"clientKey",label:"TikTok developer app client key",secret:true},{key:"clientSecret",label:"TikTok developer app client secret",secret:true},{key:"refreshToken",label:"TikTok Login Kit refresh token",secret:true}]},origin:{official:false,repo:"thenavidm/tiktok-mcp-cli",package:"@thenavidm/tiktok-mcp-cli@2.0.1",check:"oss-check real-use signals reviewed; exact npm artifact and source pin 2f32934850642d59868f7e6f9c788f9e6672ec8e passed 51/51 upstream tests, build, and live read-only OAuth/API qualification. Full Actions retains the published 14-tool catalog; actual posting still needs its provider scopes/app approval and upstream confirmation. Direct runtime dependencies retain known zod resource-exhaustion and fast-uri advisories; Zortex bounds Action input to 64 KiB, output to 1 MiB and calls to 120 seconds."},unavailable:needsNpx};export const facebook={enrollmentUnavailable:()=>"Facebook account authorization is not yet configured by Zortex. A platform-owned Meta application, authorization service and verified Page selection are required. Do not enter developer credentials. Existing saved credentials are not proof of verified Facebook access.",source:"facebook",label:"Facebook",group:"Connector / \u793E\u533A",exposedTools:["facebook_whoami","facebook_list_pages","facebook_get_page","facebook_list_posts","facebook_get_post","facebook_create_post","facebook_update_post","facebook_list_scheduled_posts","facebook_delete_post"],adaptInvoke:facebookCompat,adaptSchema:facebookSchema,server:{...npx("@ivanbaev/facebook-mcp@0.7.0"),env:f=>({FB_ACCESS_TOKEN:f.accessToken??"",FB_APP_ID:f.appId??"",FB_APP_SECRET:f.appSecret??"",FB_PAGE_ID:f.pageId??"",FB_CONFIRM_TOKEN:facebookWriteToken,FB_TOOL_PACKAGES:"core,reader,posts",FB_PACKAGES_DENY:"insights,moderation,messages,ads",FB_WRITE_MODE:"apply",FB_MAX_RESULT_CHARS:"25000"})},auth:{kind:"fields",account:f=>"facebook-page:"+String(f.pageId??"").trim(),fields:[{key:"pageId",label:"Authorized Facebook Page ID"},{key:"appId",label:"Meta developer app ID"},{key:"appSecret",label:"Meta developer app secret",secret:true},{key:"accessToken",label:"Long-lived Facebook user access token",secret:true}]},origin:{official:false,repo:"IvanBBaev/facebook-mcp",package:"@ivanbaev/facebook-mcp@0.7.0",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 5; tests, CI, release, MIT, active upstream) at 2d8f4687470fbdc205346f1ab5927ee9c43a000b. Exact source passed build, lint and 2,626 fixture tests. Its direct zod dependency retains GHSA-mrhx-c7xc-m3w5; Indra bounds Action input to 64 KiB, output to 1 MiB and calls to 120 seconds while this server further caps results at 25,000 characters."},unavailable:needsNpx};export const notebooklm={source:"notebooklm",label:"NotebookLM",group:"Connector / \u7B14\u8BB0",server:{...npx("@roomi-fields/notebooklm-mcp@3.2.0"),env:()=>{const chrome=process.platform==="win32"&&[process.env.PROGRAMFILES,process.env["PROGRAMFILES(X86)"],process.env.LOCALAPPDATA].some(root=>root&&existsSync(join(root,"Google","Chrome","Application","chrome.exe")));return process.env.BROWSER_CHANNEL?{BROWSER_CHANNEL:process.env.BROWSER_CHANNEL}:chrome?{BROWSER_CHANNEL:"chrome"}:{}}},auth:{kind:"server-login",login:{tool:"auth_setup",args:{show_browser:true},ready:{tool:"server_health",done:s=>s?.data?.authenticated===true},handoff:{openingInstructions:"Complete Google sign-in in the NotebookLM browser window.",instructions:()=>"Complete Google sign-in in the NotebookLM browser window."}}},liveRead:{tool:"notebook_list",args:{show_browser:false},records:notebookRecords},origin:{official:false,repo:"roomi-fields/notebooklm-mcp",package:"@roomi-fields/notebooklm-mcp@3.2.0",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 8); PleasePrompto/notebooklm-mcp archived"},unavailable:needsNpx};const installedCua="/Applications/CuaDriver.app/Contents/MacOS/cua-driver";function canExecute(path){try{accessSync(path,constants.X_OK);return true}catch{return false}}const cuaCommand=process.platform==="darwin"&&canExecute(installedCua)?installedCua:"cua-driver";const cuaSocket=process.platform==="darwin"?join(homedir(),"Library","Caches","cua-driver","cua-driver.sock"):void 0;export const cua={source:"cua",label:"CUA Driver",group:"Connector / \u7535\u8111\u64CD\u4F5C",server:{transport:"stdio",command:cuaCommand,args:cuaSocket?["mcp","--socket",cuaSocket]:["mcp"]},auth:{kind:"none"},origin:{official:true,repo:"trycua/cua",artifact:"cua-driver@0.28.2",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 8)"},unavailable:()=>{if(cuaCommand==="cua-driver"&&!onPath(cuaCommand))return"cua-driver is not installed; install it from trycua/cua (libs/cua-driver/scripts/install.sh).";if(cuaSocket&&!existsSync(cuaSocket))return"The CUA Driver background service socket is unavailable."}};export const firstBatch=[cua,reddit,notebooklm,calendly,spotify,appleMusic,tiktok,facebook,shopify,stripe,openrouter,github,gitlab,jira,confluence,linear,asana,clickup,todoist,ticktick,microsoftTodo,appleNotes,appleReminders,cloudflare,posthog,notionL1];
|
|
1
|
+
import{accessSync,constants,existsSync}from"node:fs";import{homedir}from"node:os";import{delimiter,join}from"node:path";import{fileURLToPath}from"node:url";import{notebookRecords}from"./notebooklm-read.js";import{facebookCompat,facebookSchema,facebookWriteToken}from"./facebook-compat.js";export function onPath(command,env=process.env){const exts=process.platform==="win32"?(env.PATHEXT??".EXE;.CMD").split(";"):[""];return(env.PATH??"").split(delimiter).filter(Boolean).some(dir=>exts.some(ext=>existsSync(join(dir,command+ext.toLowerCase()))||existsSync(join(dir,command+ext))))}const npx=pkg=>({transport:"stdio",command:"npx",args:["-y",pkg]});const needsNpx=()=>onPath("npx")?void 0:"Node.js npx is not on PATH; install Node.js 20+ to start this connector.";export const stripe={source:"stripe",label:"Stripe",group:"Connector / \u6536\u6B3E",server:{transport:"http",url:"https://mcp.stripe.com"},auth:{kind:"mcp-oauth",loopbackPort:8751,reviewed:{issuer:"https://access.stripe.com/mcp",scopes:["mcp"],allowedOrigins:["https://access.stripe.com"]}},origin:{official:true,repo:"stripe/ai",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 4)"}};const calendlyClientId=process.env.ZORTEX_CALENDLY_CLIENT_ID?.trim();export const calendly={source:"calendly",label:"Calendly",group:"Connector / \u65E5\u7A0B",server:{transport:"http",url:"https://mcp.calendly.com"},auth:{kind:"mcp-oauth",loopbackPort:8752,reviewed:{issuer:"https://calendly.com/",scopes:["mcp:scheduling:read","mcp:scheduling:write"],allowedOrigins:["https://calendly.com","https://zortex-calendly-auth.pages.dev","https://zortex-auth-9sl.pages.dev"],redirectUriPolicy:"https-only",registration:calendlyClientId?{kind:"redirect-broker",clientId:calendlyClientId,brokerBase:"https://zortex-auth-9sl.pages.dev",brokerPath:"calendly"}:{kind:"dcr",httpsBroker:"calendly"},identity:{tool:"users-get_current_user",subjectPath:["resource","uri"],labelPath:["resource","email"]}}},origin:{official:true,repo:"developer.calendly.com/calendly-mcp-server",check:"official hosted server; no public repository"}};export const openrouter={source:"openrouter",label:"OpenRouter",group:"Connector / \u6A21\u578B",server:{transport:"http",url:"https://mcp.openrouter.ai/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.openrouter.ai",scopes:[],allowedOrigins:["https://mcp.openrouter.ai","https://openrouter.ai"],identity:{kind:"openrouter-current-key"}}},origin:{official:true,repo:"openrouter.ai/docs/guides/overview/mcp-server",check:"official hosted server; SDK OpenRouterTeam/typescript-sdk \u503C\u5F97\u4E00\u8BD5 (score 5)"}};export const cloudflare={source:"cloudflare",label:"Cloudflare",readOnly:true,group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://mcp.cloudflare.com/mcp"},exposedTools:["whoami","docs","search","execute"],auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.cloudflare.com",scopes:["user:read","account:read","offline_access"],allowedOrigins:["https://mcp.cloudflare.com","https://dash.cloudflare.com"],registration:{kind:"dcr"},identity:{tool:"whoami",subjectPath:["id"],labelPath:["email"]}}},origin:{official:true,repo:"cloudflare/mcp",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 4; tests, CI, Apache-2.0, active upstream) at 550e1be82b2227818e6b98fc32a313a59403ae3f; use the vendor-hosted unified server instead of embedding the deprecated specialist servers."}};export const posthog={source:"posthog",label:"PostHog",group:"Connector / \u5206\u6790",server:{transport:"http",url:"https://mcp.posthog.com/mcp"},exposedTools:["user-get","organizations-get","projects-get","dashboards-get-all","insights-list","execute-sql","annotation-create","annotation-retrieve","annotations-list","annotation-delete"],auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://oauth.posthog.com",scopes:["user:read","organization:read","dashboard:read","insight:read","query:read","annotation:read","annotation:write"],allowedOrigins:["https://oauth.posthog.com","https://us.posthog.com","https://eu.posthog.com"],registration:{kind:"dcr"},identity:{tool:"user-get",subjectPath:["uuid"],labelPath:["email"]}}},origin:{official:true,repo:"PostHog/posthog",check:"official active monorepo with tests and CI reviewed at 531a053f2408a3416536cf942a8378e172308f7e; gh oss-check was unavailable because this host token is invalid, so public upstream source and live OAuth metadata were inspected directly. Use the vendor-hosted MCP."}};export const notionL1={source:"notion-l1",label:"Notion (Actions)",group:"Connector / Documents",server:{transport:"http",url:"https://mcp.notion.com/mcp"},exposedTools:["notion-get-self","notion-get-tool-access","notion-search","notion-fetch","notion-create-pages","notion-update-page","notion-create-comment","notion-get-comments"],auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.notion.com",scopes:["default"],allowedOrigins:["https://mcp.notion.com"],registration:{kind:"dcr"},identity:{kind:"notion-bot-owner"}}},origin:{official:true,repo:"makenotion/notion-cookbook",check:"official hosted MCP and client-integration documentation reviewed 2026-10-26; gh oss-check was unavailable because this host token is invalid, so the public official repository, current provider documentation and live OAuth metadata were inspected directly. The existing Notion L2 provider remains installed separately."}};export const github={source:"github",label:"GitHub",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://api.githubcopilot.com/mcp/"},auth:{kind:"oauth-device",clientId:"Ov23liDjCBTGEwUJvt8f",deviceCodeUrl:"https://github.com/login/device/code",tokenUrl:"https://github.com/login/oauth/access_token",reviewed:{issuer:"https://github.com",allowedOrigins:["https://github.com"],scopes:["repo","read:org","read:user","user:email","read:packages","write:packages","read:project","project","gist","notifications"],identity:{tool:"get_me",subjectPath:["id"],labelPath:["login"]}}},origin:{official:true,repo:"github/github-mcp-server",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 8); official remote endpoint and get_me contract reviewed at current upstream"}};export const gitlab={source:"gitlab",label:"GitLab",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://gitlab.com/api/v4/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://gitlab.com",scopes:["mcp"],allowedOrigins:["https://gitlab.com"],registration:{kind:"dcr",allowUnadvertisedPublicClient:true},identity:{kind:"gitlab-token-info"}}},origin:{official:true,repo:"gitlab-org/gitlab",check:"official hosted MCP; gitlabhq/gitlabhq mirror oss-check \u4E0D\u786E\u5B9A (score 3) and has no usable license signal, so it is not embedded"}};export const jira={source:"jira",label:"Jira",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://mcp.atlassian.com/v2/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://auth.atlassian.com/VCeDsk8ZHncYF1g234fKtc4lNipbBhu3",scopes:["read:me","read:account","offline_access","email","read:jira:agent-interface","write:jira:agent-interface","search:jira:agent-interface","delete:jira:agent-interface","manage:jira:agent-interface"],allowedOrigins:["https://auth.atlassian.com","https://api.atlassian.com"],registration:{kind:"dcr",discardReturnedSecretForPublicClient:true},identity:{kind:"atlassian-current-user-sites"}}},origin:{official:true,repo:"atlassian/atlassian-mcp-server",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 4, Apache-2.0, active upstream); use the vendor-hosted v2 server instead of embedding it"}};export const confluence={source:"confluence",label:"Confluence",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://mcp.atlassian.com/v2/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://auth.atlassian.com/VCeDsk8ZHncYF1g234fKtc4lNipbBhu3",scopes:["read:me","read:account","offline_access","email","read:confluence:agent-interface","write:confluence:agent-interface","search:confluence:agent-interface"],allowedOrigins:["https://auth.atlassian.com","https://api.atlassian.com"],registration:{kind:"dcr",discardReturnedSecretForPublicClient:true},identity:{kind:"atlassian-current-user-sites"}}},origin:{official:true,repo:"atlassian/atlassian-mcp-server",check:"reuses source 027 oss-check: \u503C\u5F97\u4E00\u8BD5 (score 4, Apache-2.0, active upstream); use the vendor-hosted v2 server instead of embedding it"}};export const linear={source:"linear",label:"Linear",group:"Connector / \u534F\u4F5C",server:{transport:"http",url:"https://mcp.linear.app/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.linear.app",scopes:["read","write","openid","email"],allowedOrigins:["https://mcp.linear.app","https://linear.app"],registration:{kind:"dcr"},identity:{kind:"linear-openid-teams"}}},origin:{official:true,repo:"linear/linear",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 8, MIT, active upstream with tests, CI and releases); use Linear's vendor-hosted MCP rather than embedding the application repository"}};export const asana={source:"asana",label:"Asana",group:"Connector / \u534F\u4F5C",server:{transport:"http",url:"https://mcp.asana.com/v2/mcp"},auth:{kind:"mcp-oauth",loopbackPort:8752,reviewed:{issuer:"https://app.asana.com",scopes:[],allowedOrigins:["https://app.asana.com"],registration:{kind:"broker",clientId:"1219875673629405",brokerBase:"https://zortex-auth-9sl.pages.dev",brokerPath:"asana"},identity:{kind:"asana-user-workspaces"}}},origin:{official:true,repo:"Asana/node-asana",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 6, MIT, active upstream); use Asana's vendor-hosted v2 MCP server rather than embedding the REST SDK"}};export const clickup={source:"clickup",label:"ClickUp",group:"Connector / \u534F\u4F5C",server:{transport:"http",url:"https://mcp.clickup.com/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.clickup.com",scopes:["read","write"],allowedOrigins:["https://mcp.clickup.com","https://app.clickup.com"],registration:{kind:"dcr"},identity:{kind:"clickup-current-user-workspaces"}}},origin:{official:true,repo:"clickup/clickup-plugin",check:"oss-check score 2; ten-minute source trial confirmed the official MIT plugin is a thin manifest for the same hosted MCP URL, so Zortex reuses the vendor endpoint rather than embedding untested code"}};export const ticktick={source:"ticktick",label:"TickTick",group:"Connector / Tasks",server:{transport:"http",url:"https://mcp.ticktick.com"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://ticktick.com",scopes:["tasks:read","tasks:write"],allowedOrigins:["https://ticktick.com","https://api.ticktick.com"],registration:{kind:"dcr"},identity:{kind:"ticktick-inbox-self"}}},origin:{official:true,repo:"help.ticktick.com/articles/7438129581631995904",check:"Official hosted MCP documented by help.ticktick.com/articles/7438129581631995904. Real DCR/S256 qualification and 57-tool catalog; readonly Inbox membership returned exactly one self=true username matching consent. Username changes require reauthorization; no immutable numeric user ID is advertised."}};export const todoist={source:"todoist",label:"Todoist",group:"Connector / Tasks",server:{transport:"http",url:"https://ai.todoist.net/mcp"},auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://todoist.com",scopes:["data:read_write"],allowedOrigins:["https://todoist.com","https://app.todoist.com"],registration:{kind:"dcr"},identity:{tool:"user-info",subjectPath:["userId"],labelPath:["email"]}}},origin:{official:true,repo:"Doist/todoist-ai",check:"MIT official hosted MCP; oss-check score 4 with active CI/releases and colocated tests. Live qualification at 4438a5159a3666977550e1488b557bcf1a09b83f verified public DCR, real PKCE grant, 47 tools and readonly user-info; no embedded API key or SDK."}};export const microsoftTodo={source:"microsoft-todo",label:"Microsoft To Do",readOnly:true,group:"Connector / Tasks",server:{transport:"stdio",command:process.execPath,args:[fileURLToPath(new URL("./microsoft-todo-server.js",import.meta.url))],env:(_fields,token)=>({MICROSOFT_TODO_ACCESS_TOKEN:token??""})},auth:{kind:"oauth-device",clientId:"2a0c47ae-6035-459e-a544-f8c2008a9d78",deviceCodeUrl:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",tokenUrl:"https://login.microsoftonline.com/common/oauth2/v2.0/token",reviewed:{issuer:"https://login.microsoftonline.com/common/v2.0",scopes:["openid","profile","email","Tasks.Read","User.Read","offline_access"],allowedOrigins:["https://login.microsoftonline.com"],identity:{tool:"get_profile",subjectPath:["id"]}}},origin:{official:true,repo:"microsoftgraph/microsoft-graph-docs-contrib",artifact:"zortex-microsoft-todo@0.1.0",check:"Official Graph API behind a bounded in-package adapter. pnp/cli-microsoft365-mcp-server at 9b6863daef5bb093c70540479092a8c160a657be was rejected after its ten-minute trial because it delegates auth to a separately installed global CLI and exposes arbitrary command execution instead of a bounded To Do surface."}};export const appleNotes={source:"apple-notes",label:"Apple Notes",group:"Connector / Notes",server:{transport:"stdio",command:"bun",args:[fileURLToPath(new URL("./apple-notes-server.js",import.meta.url))]},auth:{kind:"server-login",login:{tool:"get_identity",ready:{tool:"get_identity",done:structured=>typeof structured?.id==="string"},identity:{tool:"get_identity",subjectPath:["id"],labelPath:["name"]}}},origin:{official:true,repo:"Apple/macOS-Notes-scripting-dictionary",artifact:"zortex-apple-notes@0.1.0",check:"macOS system Notes scripting dictionary; the existing in-repo native adapter has exercised the same JXA boundary on a 2,237-note real store. Local Actions are bounded and do not start the L2 sync connector."},unavailable:()=>process.platform!=="darwin"?"Apple Notes is available only on macOS.":onPath("bun")?void 0:"Bun is required to use the authorized local Notes bridge."};export const appleReminders={source:"apple-reminders",label:"Apple Reminders",group:"Connector / Tasks",server:{transport:"stdio",command:"bun",args:[fileURLToPath(new URL("./apple-reminders-server.js",import.meta.url))]},auth:{kind:"server-login",login:{tool:"get_identity",ready:{tool:"get_identity",done:structured=>typeof structured?.id==="string"},identity:{tool:"get_identity",subjectPath:["id"],labelPath:["name"]}}},origin:{official:true,repo:"Apple/macOS-Reminders-scripting-dictionary",artifact:"zortex-apple-reminders@0.1.0",check:"Native macOS Reminders.sdef provides bounded accounts, lists and reminder CRUD. burghr/reminders-mcp and Don-Works/reminders-mcp were considered; the former has one commit and an extra Python service, while the latter is AGPL and requires an separately shipped Swift binary. The in-package bridge keeps the installed artifact self-contained and uses the already-qualified background launchd Apple Events path."},unavailable:()=>process.platform!=="darwin"?"Apple Reminders is available only on macOS.":onPath("bun")?void 0:"Bun is required to use the authorized local Reminders bridge."};export const appleMusic={source:"apple-music",label:"Apple Music",group:"Connector / \u97F3\u4E50",server:{transport:"stdio",command:"bun",args:[fileURLToPath(new URL("./apple-music-server.js",import.meta.url))]},auth:{kind:"server-login",login:{tool:"get_identity",ready:{tool:"get_identity",done:structured=>typeof structured?.libraryId==="string"},identity:{tool:"get_identity",subjectPath:["libraryId"],labelPath:["libraryName"]}}},origin:{official:true,repo:"Apple/macOS-Music-scripting-dictionary",artifact:"zortex-apple-music@0.1.0",check:"The installed Music.sdef provides stable library and media identifiers, playlist/track reads, native search, playback state and user-playlist CRUD. tomahawk-player/tomahawk was rejected by the repository OSS gate because it has no current tests or release and its last commit was more than six years ago. The self-contained adapter uses the same bounded background launchd Apple Events path as the qualified native connectors."},unavailable:()=>process.platform!=="darwin"?"Apple Music is available only on macOS.":onPath("bun")?void 0:"Bun is required to use the authorized local Music bridge."};export const sentry={source:"sentry",label:"Sentry",group:"Connector / \u5F00\u53D1",server:{transport:"http",url:"https://mcp.sentry.dev/mcp"},exposedTools:["find_organizations","find_projects","update_issue","search_errors","search_logs","search_traces","search_metrics","search_profiles","search_replays","find_dropped_events","analyze_issue_with_seer","search_issues","get_sentry_resource","search_sentry_tools","execute_sentry_tool"],auth:{kind:"mcp-oauth",loopbackPort:0,reviewed:{issuer:"https://mcp.sentry.dev",scopes:["org:read","project:write","team:write","event:write","alerts:write"],allowedOrigins:["https://mcp.sentry.dev","https://sentry.io"],registration:{kind:"dcr"},identity:{kind:"sentry-catalog-whoami"}}},origin:{official:true,repo:"getsentry/toolkit",check:"official remote MCP source and tests reviewed at 3869ac95a3227cc29783939c436252f0cd796aea; oss-check CLI unavailable because GitHub credentials were rejected, so the public repository was inspected directly"}};export const shopify={source:"shopify",label:"Shopify",group:"Connector / \u5E97\u94FA",server:{...npx("mcp-shopify-admin@1.1.0"),env:f=>({SHOPIFY_STORE_DOMAIN:f.store??"",SHOPIFY_CLIENT_ID:f.clientId??"",SHOPIFY_CLIENT_SECRET:f.clientSecret??""})},auth:{kind:"fields",account:f=>String(f.store??"").trim().toLowerCase(),fields:[{key:"store",label:"Store domain (my-store.myshopify.com)"},{key:"clientId",label:"Dev Dashboard app client ID"},{key:"clientSecret",label:"Dev Dashboard app client secret",secret:true}]},origin:{official:false,repo:"A1-x-Tech/mcp-shopify-admin",package:"mcp-shopify-admin@1.1.0",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 5, tests + CI, 0 stars); GeLi2001/shopify-mcp stale 192 days"},unavailable:needsNpx};export const reddit={source:"reddit",label:"Reddit",group:"Connector / \u793E\u533A",server:{...npx("reddit-mcp-server@1.6.3"),env:f=>({REDDIT_AUTH_MODE:"auto",REDDIT_SAFE_MODE:"standard",...Object.fromEntries(Object.entries({REDDIT_CLIENT_ID:f.clientId,REDDIT_CLIENT_SECRET:f.clientSecret,REDDIT_USERNAME:f.username,REDDIT_PASSWORD:f.password}).filter(([,v])=>v))})},publicTools:["browse_subreddit","get_top_posts"],auth:{kind:"fields",account:f=>"u/"+String(f.username??"").trim(),fields:[{key:"clientId",label:"Reddit app client ID"},{key:"clientSecret",label:"Reddit app client secret",secret:true},{key:"username",label:"Reddit username (for posting)"},{key:"password",label:"Reddit password (for posting)",secret:true}]},origin:{official:false,repo:"jordanburke/reddit-mcp-server",package:"reddit-mcp-server@1.6.3",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 6)"},unavailable:needsNpx};export const spotify={source:"spotify",label:"Spotify",group:"Connector / \u97F3\u4E50",server:{...npx("@xavifabregat/spotify-mcp@0.1.2"),env:f=>({SPOTIFY_CLIENT_ID:f.clientId??""})},auth:{kind:"fields",account:f=>"spotify app "+String(f.clientId??"").slice(0,6),login:{tool:"authenticate"},fields:[{key:"clientId",label:"Spotify app client ID (redirect URI http://127.0.0.1:8888/callback)"}]},origin:{official:false,repo:"XavierFabregat/spotify-mcp",package:"@xavifabregat/spotify-mcp@0.1.2",check:"oss-check \u4E0D\u786E\u5B9A (tests + CI, 1 star); marcelmarais/spotify-mcp-server has no license, varunneal/spotify-mcp stale"},unavailable:needsNpx};export const tiktok={source:"tiktok",label:"TikTok",group:"Connector / \u793E\u533A",exposedTools:["list_accounts","get_profile","list_videos","get_videos","top_videos","search_my_videos","stats_summary"],server:{...npx("@thenavidm/tiktok-mcp-cli@2.0.1"),env:f=>({TIKTOK_CLIENT_KEY:f.clientKey??"",TIKTOK_CLIENT_SECRET:f.clientSecret??"",TIKTOK_REFRESH_TOKEN:f.refreshToken??""})},auth:{kind:"fields",account:f=>"@"+String(f.username??"").trim().replace(/^@/,""),fields:[{key:"username",label:"Authorized TikTok username"},{key:"clientKey",label:"TikTok developer app client key",secret:true},{key:"clientSecret",label:"TikTok developer app client secret",secret:true},{key:"refreshToken",label:"TikTok Login Kit refresh token",secret:true}]},origin:{official:false,repo:"thenavidm/tiktok-mcp-cli",package:"@thenavidm/tiktok-mcp-cli@2.0.1",check:"oss-check real-use signals reviewed; exact npm artifact and source pin 2f32934850642d59868f7e6f9c788f9e6672ec8e passed 51/51 upstream tests, build, and live read-only OAuth/API qualification. Full Actions retains the published 14-tool catalog; actual posting still needs its provider scopes/app approval and upstream confirmation. Direct runtime dependencies retain known zod resource-exhaustion and fast-uri advisories; Zortex bounds Action input to 64 KiB, output to 1 MiB and calls to 120 seconds."},unavailable:needsNpx};export const facebook={enrollmentUnavailable:()=>"Facebook account authorization is not yet configured by Zortex. A platform-owned Meta application, authorization service and verified Page selection are required. Do not enter developer credentials. Existing saved credentials are not proof of verified Facebook access.",source:"facebook",label:"Facebook",group:"Connector / \u793E\u533A",exposedTools:["facebook_whoami","facebook_list_pages","facebook_get_page","facebook_list_posts","facebook_get_post","facebook_create_post","facebook_update_post","facebook_list_scheduled_posts","facebook_delete_post"],adaptInvoke:facebookCompat,adaptSchema:facebookSchema,server:{...npx("@ivanbaev/facebook-mcp@0.7.0"),env:f=>({FB_ACCESS_TOKEN:f.accessToken??"",FB_APP_ID:f.appId??"",FB_APP_SECRET:f.appSecret??"",FB_PAGE_ID:f.pageId??"",FB_CONFIRM_TOKEN:facebookWriteToken,FB_TOOL_PACKAGES:"core,reader,posts",FB_PACKAGES_DENY:"insights,moderation,messages,ads",FB_WRITE_MODE:"apply",FB_MAX_RESULT_CHARS:"25000"})},auth:{kind:"fields",account:f=>"facebook-page:"+String(f.pageId??"").trim(),fields:[{key:"pageId",label:"Authorized Facebook Page ID"},{key:"appId",label:"Meta developer app ID"},{key:"appSecret",label:"Meta developer app secret",secret:true},{key:"accessToken",label:"Long-lived Facebook user access token",secret:true}]},origin:{official:false,repo:"IvanBBaev/facebook-mcp",package:"@ivanbaev/facebook-mcp@0.7.0",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 5; tests, CI, release, MIT, active upstream) at 2d8f4687470fbdc205346f1ab5927ee9c43a000b. Exact source passed build, lint and 2,626 fixture tests. Its direct zod dependency retains GHSA-mrhx-c7xc-m3w5; Indra bounds Action input to 64 KiB, output to 1 MiB and calls to 120 seconds while this server further caps results at 25,000 characters."},unavailable:needsNpx};export const notebooklm={source:"notebooklm",label:"NotebookLM",group:"Connector / \u7B14\u8BB0",server:{...npx("@roomi-fields/notebooklm-mcp@3.2.0"),env:()=>{const chrome=process.platform==="win32"&&[process.env.PROGRAMFILES,process.env["PROGRAMFILES(X86)"],process.env.LOCALAPPDATA].some(root=>root&&existsSync(join(root,"Google","Chrome","Application","chrome.exe")));return process.env.BROWSER_CHANNEL?{BROWSER_CHANNEL:process.env.BROWSER_CHANNEL}:chrome?{BROWSER_CHANNEL:"chrome"}:{}}},auth:{kind:"server-login",login:{tool:"auth_setup",args:{show_browser:true},ready:{tool:"server_health",done:s=>s?.data?.authenticated===true},handoff:{openingInstructions:"Complete Google sign-in in the NotebookLM browser window.",instructions:()=>"Complete Google sign-in in the NotebookLM browser window."}}},liveRead:{tool:"notebook_list",args:{show_browser:false},records:notebookRecords},origin:{official:false,repo:"roomi-fields/notebooklm-mcp",package:"@roomi-fields/notebooklm-mcp@3.2.0",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 8); PleasePrompto/notebooklm-mcp archived"},unavailable:needsNpx};const installedCua="/Applications/CuaDriver.app/Contents/MacOS/cua-driver";function canExecute(path){try{accessSync(path,constants.X_OK);return true}catch{return false}}const cuaCommand=process.platform==="darwin"&&canExecute(installedCua)?installedCua:"cua-driver";const cuaSocket=process.platform==="darwin"?join(homedir(),"Library","Caches","cua-driver","cua-driver.sock"):void 0;export const cua={source:"cua",label:"CUA Driver",group:"Connector / \u7535\u8111\u64CD\u4F5C",server:{transport:"stdio",command:cuaCommand,args:cuaSocket?["mcp","--socket",cuaSocket]:["mcp"]},auth:{kind:"none"},origin:{official:true,repo:"trycua/cua",artifact:"cua-driver@0.28.2",check:"oss-check \u503C\u5F97\u4E00\u8BD5 (score 8)"},unavailable:()=>{if(cuaCommand==="cua-driver"&&!onPath(cuaCommand))return"cua-driver is not installed; install it from trycua/cua (libs/cua-driver/scripts/install.sh).";if(cuaSocket&&!existsSync(cuaSocket))return"The CUA Driver background service socket is unavailable."}};export const firstBatch=[cua,reddit,notebooklm,calendly,spotify,appleMusic,tiktok,facebook,shopify,stripe,openrouter,github,gitlab,jira,confluence,linear,asana,clickup,todoist,ticktick,microsoftTodo,appleNotes,appleReminders,cloudflare,posthog,notionL1];
|
|
@@ -8,16 +8,13 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@zortexhq/plugin-auto-connect": "0.1.0",
|
|
12
11
|
"@zortexhq/plugin-connector-core": "0.1.0",
|
|
13
12
|
"@zortexhq/plugin-connector-framework": "0.1.0",
|
|
14
|
-
"@zortexhq/plugin-oauth-browser-driver": "0.1.0",
|
|
15
13
|
"@zortexhq/plugin-process-local": "0.1.0",
|
|
16
14
|
"@zortexhq/plugin-telemetry": "0.1.0",
|
|
17
15
|
"@zortexhq/plugin-vault-sqlite": "0.1.0",
|
|
18
16
|
"@softeria/ms-365-mcp-server": "0.171.0",
|
|
19
|
-
"@abd-enterprises/zendesk-mcp": "0.5.0"
|
|
20
|
-
"chatgpt-web-mcp": "0.2.1-zortex.2"
|
|
17
|
+
"@abd-enterprises/zendesk-mcp": "0.5.0"
|
|
21
18
|
},
|
|
22
19
|
"zortex": {
|
|
23
20
|
"role": "plugin"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createServer}from"node:http";import{createHash,randomBytes,randomUUID,timingSafeEqual}from"node:crypto";import{openConnectionUrl}from"@zortexhq/plugin-connector-core/browser";import{businessError,ok}from"@zortexhq/plugin-connector-framework/api";import{createTraceRecorder}from"@zortexhq/plugin-telemetry/api";import{automaticDeadline,automaticError,awaitAutomaticAuthorization,startDriver}from"@zortexhq/plugin-auto-connect/api";import{json}from"./http.js";import{captureNotionManualSelection}from"./manual-selection.js";export const NOTION_BROKER_BASE="https://zortex-auth.pages.dev";export function createBrokerOAuth({vault,verify,transport=fetch,browserDriver,openUrl=openConnectionUrl,timeoutMs=12e4,callbackGraceMs=5e3,metrics,feedback}){let active,closed=false;const entries=new Map;const bounded=(value,max=4096)=>typeof value==="string"&&value.length>0&&value.length<=max;function finish(entry){if(entry.finished)return;entry.finished=true;clearTimeout(entry.timer);entry.detach?.();entry.settle();entry.server.closeAllConnections();entry.server.close(error=>{entry.serverClosed=!error||error.code==="ERR_SERVER_NOT_RUNNING"});delete entry.job.authorizationUrl;delete entry.job.instructions}async function call(path,signal,body){const result=await json(NOTION_BROKER_BASE+"/notion/"+path,{signal,headers:{Accept:"application/json","Content-Type":"application/json"},...body===void 0?{}:{method:"POST",body:JSON.stringify(body)}},transport);if(result.error!==void 0)throw Error("Broker refused request.");return result}return{async connect(signal,automatic=false,options={}){if(automatic&&options.manualPresentation==="return-url")return businessError("invalid_argument","Returning a Notion authorization link requires manual authorization.","plugin");const deadline=automaticDeadline(timeoutMs,automatic);if(closed)return businessError("unavailable","Notion is inactive.","plugin");if(signal?.aborted)return businessError("aborted","Notion connection cancelled.","plugin");const presentation=options.manualPresentation==="return-url"?"return-url":automatic?"automatic":"default";if(active&&String(active.job.state)==="waiting-user"){if(active.presentation!==presentation)return businessError("failed_precondition","Finish or cancel the current Notion authorization before starting a different connection flow.","plugin");await active.startup;return automatic&&active.driverActive?businessError("failed_precondition",automaticError("authorization_cleanup_pending").message,"plugin"):ok({...active.job})}if(active&&(!active.finished||!active.serverClosed||active.driverActive||active.task||active.startup))return businessError("failed_precondition","Previous source authorization still owns active work. Wait for cleanup.","plugin");if(closed||signal?.aborted)return businessError("aborted","Notion connection cancelled.","plugin");if(active&&String(active.job.state)==="waiting-user"){await active.startup;return automatic&&active.driverActive?businessError("failed_precondition",automaticError("authorization_cleanup_pending").message,"plugin"):ok({...active.job})}const state=randomBytes(32).toString("base64url"),verifier=randomBytes(32).toString("base64url");const codeChallenge=createHash("sha256").update(verifier).digest("base64url");let settle;const settled=new Promise(resolve=>{settle=resolve});const stop=new AbortController,driving=new AbortController;const job={id:randomUUID(),source:"notion",state:"waiting-user",startedAt:new Date().toISOString(),instructions:"Select the Notion workspace and pages, then authorize. Passwords and MFA remain in your browser."};const trace=createTraceRecorder(metrics,"notion");const step=async(...args)=>{try{await trace.step(...args)}catch{}};let redirectUri="",clientId="",claimed=false,selection;const server=createServer((request,response)=>{response.setHeader("Cache-Control","no-store");response.setHeader("Referrer-Policy","no-referrer");response.setHeader("Content-Security-Policy","default-src 'none'; frame-ancestors 'none'");let url;try{url=new URL(request.url??"/",redirectUri)}catch{response.writeHead(400).end("Invalid callback.");return}if(request.method!=="GET"||url.pathname!=="/notion/callback"||request.headers.host!==new URL(redirectUri).host||(request.url?.length??0)>24e3){response.writeHead(404).end();return}const returned=url.searchParams.get("state")??"";if(url.searchParams.getAll("state").length!==1||!/^[A-Za-z0-9_-]{43}$/.test(returned)||!timingSafeEqual(Buffer.from(returned),Buffer.from(state))){response.writeHead(400).end("Invalid state.");return}if(claimed||job.state!=="waiting-user"||stop.signal.aborted){response.writeHead(409).end("Inactive flow.");return}claimed=true;if(url.searchParams.has("error")){job.state="cancelled";response.end("Authorization cancelled.");stop.abort();driving.abort();finish(entry);return}const ticket=url.searchParams.get("ticket");if(url.searchParams.getAll("ticket").length!==1||!bounded(ticket,12e3)){job.state="failed";response.writeHead(400).end("Invalid handoff.");stop.abort();driving.abort();finish(entry);return}entry.task=(async()=>{try{await step("callback_received","completed");await step("token_exchange","started");const token=await call("claim",stop.signal,{ticket,verifier});if(!bounded(token.access_token)||token.token_type?.toLowerCase()!=="bearer"||!bounded(token.bot_id,256)||!bounded(token.workspace_id,256))throw Error("Invalid broker credential.");await step("token_exchange","completed");const verified=await verify(token,stop.signal,clientId);if(verified.accountId!==token.bot_id)throw Error("Identity mismatch.");stop.signal.throwIfAborted();await step("identity_verified","completed");const selected=selection?.(verified.accountId);if(selected&&!("ok"in selected))throw Error("Account selection changed.");const saved=await vault.saveConnection({source:"notion",provider:"notion",account:verified.account,accountId:verified.accountId,scopes:verified.credential.scopes,state:"connected",updatedAt:new Date().toISOString()},verified.credential,{signal:stop.signal,...selected&&"ok"in selected?selected.ok:{}});if(!("ok"in saved))throw Error("Custody failed.");stop.signal.throwIfAborted();clearTimeout(entry.timer);job.state="connected";entry.detach?.();try{await feedback?.()?.bind(saved.ok,trace.flow)}catch{}await step("credentials_saved","completed");response.end("Notion connected. Return to Zortex.")}catch{if(!stop.signal.aborted){job.state="failed";job.error={code:"connection_failed",message:"Notion broker authorization or identity validation failed."}}response.writeHead(400).end("Connection failed.")}finally{delete entry.task;finish(entry)}})()});const entry={job,server,stop,driving,settle,presentation};active=entry;entries.set(job.id,entry);const cancel=()=>{if(job.state==="waiting-user")job.state="cancelled";stop.abort();driving.abort();finish(entry)};if(signal){signal.addEventListener("abort",cancel,{once:true});entry.detach=()=>signal.removeEventListener("abort",cancel)}for(const[id,old]of entries)if(entries.size>20&&old!==entry&&old.job.state!=="waiting-user"&&!old.driverActive&&!old.task)entries.delete(id);entry.startup=(async()=>{try{await step("authorization_started","started");stop.signal.throwIfAborted();if(presentation==="return-url"){const captured=await captureNotionManualSelection(vault,stop.signal);if(!("ok"in captured))throw Error("Manual selection unavailable.");selection=captured.ok}entry.timer=setTimeout(()=>{if(job.state!=="waiting-user")return;job.state="failed";job.error={code:"authorization_timeout",message:"Notion authorization timed out."};stop.abort();driving.abort();finish(entry)},deadline);const config=await call("config",stop.signal);if(!bounded(config.clientId,256)||!/^[A-Za-z0-9_-]+$/.test(config.clientId)||config.redirectUri!==NOTION_BROKER_BASE+"/notion/callback")throw Error("Invalid broker configuration.");clientId=config.clientId;await new Promise((resolve,reject)=>{server.once("error",reject);server.listen(0,"127.0.0.1",resolve)});stop.signal.throwIfAborted();const address=server.address();if(!address||typeof address==="string")throw Error("Listener unavailable.");redirectUri=`http://127.0.0.1:${address.port}/notion/callback`;const started=await call("start",stop.signal,{redirectUri,state,codeChallenge});if(!bounded(started.authorizationUrl,24e3))throw Error("Invalid authorize URL.");const url=new URL(started.authorizationUrl),authorizationState=url.searchParams.get("state");if(url.origin!==NOTION_BROKER_BASE||url.pathname!=="/notion/authorize"||url.username||url.password||url.hash||url.searchParams.getAll("state").length!==1||!bounded(authorizationState,12e3)||[...url.searchParams.keys()].some(k=>k!=="state"))throw Error("Untrusted authorization URL.");stop.signal.throwIfAborted();job.authorizationUrl=url.href;if(options.manualPresentation==="return-url"){await step("manual_required","waiting",{mode:"manual",action:"request_manual"});return}const manual=async(code="automatic_authorization_unavailable")=>{if(job.state!=="waiting-user"||stop.signal.aborted)return;if(automatic){job.state="failed";job.error=automaticError(code);stop.abort();driving.abort();server.closeAllConnections();finish(entry);return}await step("manual_required","waiting",{mode:"manual",action:"request_manual"});await openUrl(url.href)};const driven=startDriver(browserDriver?.(),{provider:"notion",authorizationUrl:url.href,redirectUri,state,clientId,authorizationState,timeoutMs:Math.max(1e3,Math.min(9e5,deadline)),...automatic?{automatic:true}:{},onDriverStarted:driver=>{trace.flow.driver=driver;trace.flow.mode="automatic"}},driving.signal);if(driven?.launched){entry.driverActive=true;void driven.outcome.then(()=>{entry.driverActive=false},()=>{})}if(automatic){let result=await awaitAutomaticAuthorization({driven,settled,pending:()=>entry.task,deadlineMs:deadline,signal:driving.signal,callbackGraceMs});if(result.cleanupPending){driving.abort();result=await awaitAutomaticAuthorization({driven,settled,pending:()=>void 0,deadlineMs:Math.max(1,Math.min(deadline,1e3)),callbackGraceMs:1})}await manual(result.code);return}if(driven?.launched){void driven.outcome.then(async outcome=>{if(job.state!=="waiting-user"||stop.signal.aborted||outcome.state==="completed")return;if(outcome.state==="failed"||outcome.state==="browser_unsupported")await manual();else{job.instructions="\u8ACB\u5728 Notion \u8996\u7A97\u5B8C\u6210\u767B\u5165\u6216\u9801\u9762\u6388\u6B0A\uFF1B\u5B8C\u6210\u5F8C\u6703\u81EA\u52D5\u7E7C\u7E8C\u3002";await step("manual_required","waiting",{mode:"manual",action:"request_manual"})}}).catch(()=>{if(job.state==="waiting-user"){job.state="failed";job.error={code:"browser_open_failed",message:"Notion browser could not be opened."};stop.abort();finish(entry)}})}else await manual()}catch{if(job.state==="waiting-user"){job.state="failed";job.error={code:"authorization_unavailable",message:"Notion public authorization broker or browser is unavailable. No credential was stored."}}stop.abort();driving.abort();finish(entry)}})();const startup=entry.startup;void startup.then(()=>{if(entry.startup===startup)delete entry.startup},()=>{if(entry.startup===startup)delete entry.startup});await startup;return automatic&&entry.driverActive?businessError("failed_precondition",automaticError("authorization_cleanup_pending").message,"plugin"):ok({...job})},job(id){const entry=entries.get(id);return entry?ok({...entry.job}):businessError("not_found","Notion authorization job not found.","plugin")},cancelJob(id){const entry=entries.get(id);if(!entry)return ok({id,cleanup:"confirmed"});if(entry.job.state==="waiting-user")entry.job.state="cancelled";entry.stop.abort();entry.driving.abort();finish(entry);delete entry.job.authorizationUrl;delete entry.job.instructions;return ok({id,cleanup:entry.finished&&entry.serverClosed&&!entry.driverActive&&!entry.task&&!entry.startup?"confirmed":"pending"})},async close(){closed=true;for(const entry of entries.values()){if(entry.job.state==="waiting-user")entry.job.state="cancelled";entry.stop.abort();entry.driving.abort();finish(entry);entry.server.closeAllConnections()}await Promise.all([...entries.values()].flatMap(entry=>[entry.startup,entry.task]))}}}
|
|
1
|
+
import{createServer}from"node:http";import{createHash,randomBytes,randomUUID,timingSafeEqual}from"node:crypto";import{businessError,ok}from"@zortexhq/plugin-connector-framework/api";import{createTraceRecorder}from"@zortexhq/plugin-telemetry/api";import{json}from"./http.js";import{captureNotionManualSelection}from"./manual-selection.js";export const NOTION_BROKER_BASE="https://zortex-auth.pages.dev";export function createBrokerOAuth({vault,verify,transport=fetch,timeoutMs=12e4,metrics,feedback}){let active,closed=false;const entries=new Map;const bounded=(value,max=4096)=>typeof value==="string"&&value.length>0&&value.length<=max;function finish(entry){if(entry.finished)return;entry.finished=true;clearTimeout(entry.timer);entry.detach?.();entry.server.closeAllConnections();entry.server.close(error=>{entry.serverClosed=!error||error.code==="ERR_SERVER_NOT_RUNNING"});delete entry.job.authorizationUrl;delete entry.job.instructions}async function call(path,signal,body){const result=await json(NOTION_BROKER_BASE+"/notion/"+path,{signal,headers:{Accept:"application/json","Content-Type":"application/json"},...body===void 0?{}:{method:"POST",body:JSON.stringify(body)}},transport);if(result.error!==void 0)throw Error("Broker refused request.");return result}return{async connect(signal,_automatic=false,options={}){const deadline=timeoutMs;if(closed)return businessError("unavailable","Notion is inactive.","plugin");if(signal?.aborted)return businessError("aborted","Notion connection cancelled.","plugin");const presentation=options.manualPresentation==="return-url"?"return-url":"default";if(active&&String(active.job.state)==="waiting-user"){if(active.presentation!==presentation)return businessError("failed_precondition","Finish or cancel the current Notion authorization before starting a different connection flow.","plugin");await active.startup;return ok({...active.job})}if(active&&(!active.finished||!active.serverClosed||active.task||active.startup))return businessError("failed_precondition","Previous source authorization still owns active work. Wait for cleanup.","plugin");if(closed||signal?.aborted)return businessError("aborted","Notion connection cancelled.","plugin");if(active&&String(active.job.state)==="waiting-user"){await active.startup;return ok({...active.job})}const state=randomBytes(32).toString("base64url"),verifier=randomBytes(32).toString("base64url");const codeChallenge=createHash("sha256").update(verifier).digest("base64url");const stop=new AbortController;const job={id:randomUUID(),source:"notion",state:"waiting-user",startedAt:new Date().toISOString(),instructions:"Select the Notion workspace and pages, then authorize. Passwords and MFA remain in your browser."};const trace=createTraceRecorder(metrics,"notion");const step=async(...args)=>{try{await trace.step(...args)}catch{}};let redirectUri="",clientId="",claimed=false,selection;const server=createServer((request,response)=>{response.setHeader("Cache-Control","no-store");response.setHeader("Referrer-Policy","no-referrer");response.setHeader("Content-Security-Policy","default-src 'none'; frame-ancestors 'none'");let url;try{url=new URL(request.url??"/",redirectUri)}catch{response.writeHead(400).end("Invalid callback.");return}if(request.method!=="GET"||url.pathname!=="/notion/callback"||request.headers.host!==new URL(redirectUri).host||(request.url?.length??0)>24e3){response.writeHead(404).end();return}const returned=url.searchParams.get("state")??"";if(url.searchParams.getAll("state").length!==1||!/^[A-Za-z0-9_-]{43}$/.test(returned)||!timingSafeEqual(Buffer.from(returned),Buffer.from(state))){response.writeHead(400).end("Invalid state.");return}if(claimed||job.state!=="waiting-user"||stop.signal.aborted){response.writeHead(409).end("Inactive flow.");return}claimed=true;if(url.searchParams.has("error")){job.state="cancelled";response.end("Authorization cancelled.");stop.abort();finish(entry);return}const ticket=url.searchParams.get("ticket");if(url.searchParams.getAll("ticket").length!==1||!bounded(ticket,12e3)){job.state="failed";response.writeHead(400).end("Invalid handoff.");stop.abort();finish(entry);return}entry.task=(async()=>{try{await step("callback_received","completed");await step("token_exchange","started");const token=await call("claim",stop.signal,{ticket,verifier});if(!bounded(token.access_token)||token.token_type?.toLowerCase()!=="bearer"||!bounded(token.bot_id,256)||!bounded(token.workspace_id,256))throw Error("Invalid broker credential.");await step("token_exchange","completed");const verified=await verify(token,stop.signal,clientId);if(verified.accountId!==token.bot_id)throw Error("Identity mismatch.");stop.signal.throwIfAborted();await step("identity_verified","completed");const selected=selection?.(verified.accountId);if(selected&&!("ok"in selected))throw Error("Account selection changed.");const saved=await vault.saveConnection({source:"notion",provider:"notion",account:verified.account,accountId:verified.accountId,scopes:verified.credential.scopes,state:"connected",updatedAt:new Date().toISOString()},verified.credential,{signal:stop.signal,...selected&&"ok"in selected?selected.ok:{}});if(!("ok"in saved))throw Error("Custody failed.");stop.signal.throwIfAborted();clearTimeout(entry.timer);job.state="connected";delete job.error;entry.detach?.();try{await feedback?.()?.bind(saved.ok,trace.flow)}catch{}await step("credentials_saved","completed");response.end("Notion connected. Return to Zortex.")}catch{if(!stop.signal.aborted){job.state="failed";job.error={code:"connection_failed",message:"Notion broker authorization or identity validation failed."}}response.writeHead(400).end("Connection failed.")}finally{delete entry.task;finish(entry)}})()});const entry={job,server,stop,presentation};active=entry;entries.set(job.id,entry);const cancel=()=>{if(job.state==="waiting-user")job.state="cancelled";stop.abort();finish(entry)};if(signal){signal.addEventListener("abort",cancel,{once:true});entry.detach=()=>signal.removeEventListener("abort",cancel)}for(const[id,old]of entries)if(entries.size>20&&old!==entry&&old.job.state!=="waiting-user"&&!old.task)entries.delete(id);entry.startup=(async()=>{try{await step("authorization_started","started");stop.signal.throwIfAborted();if(presentation==="return-url"){const captured=await captureNotionManualSelection(vault,stop.signal);if(!("ok"in captured))throw Error("Manual selection unavailable.");selection=captured.ok}entry.timer=setTimeout(()=>{if(job.state!=="waiting-user")return;job.state="failed";job.error={code:"authorization_timeout",message:"Notion authorization timed out."};stop.abort();finish(entry)},deadline);const config=await call("config",stop.signal);if(!bounded(config.clientId,256)||!/^[A-Za-z0-9_-]+$/.test(config.clientId)||config.redirectUri!==NOTION_BROKER_BASE+"/notion/callback")throw Error("Invalid broker configuration.");clientId=config.clientId;await new Promise((resolve,reject)=>{server.once("error",reject);server.listen(0,"127.0.0.1",resolve)});stop.signal.throwIfAborted();const address=server.address();if(!address||typeof address==="string")throw Error("Listener unavailable.");redirectUri=`http://127.0.0.1:${address.port}/notion/callback`;const started=await call("start",stop.signal,{redirectUri,state,codeChallenge});if(!bounded(started.authorizationUrl,24e3))throw Error("Invalid authorize URL.");const url=new URL(started.authorizationUrl),authorizationState=url.searchParams.get("state");if(url.origin!==NOTION_BROKER_BASE||url.pathname!=="/notion/authorize"||url.username||url.password||url.hash||url.searchParams.getAll("state").length!==1||!bounded(authorizationState,12e3)||[...url.searchParams.keys()].some(k=>k!=="state"))throw Error("Untrusted authorization URL.");stop.signal.throwIfAborted();job.authorizationUrl=url.href;job.error={code:"login_required",message:"Complete the Notion workspace and page authorization at the saved provider URL."};await step("waiting_for_user","waiting")}catch{if(job.state==="waiting-user"){job.state="failed";job.error={code:"authorization_unavailable",message:"Notion public authorization broker is unavailable. No credential was stored."}}stop.abort();finish(entry)}})();const startup=entry.startup;void startup.then(()=>{if(entry.startup===startup)delete entry.startup},()=>{if(entry.startup===startup)delete entry.startup});await startup;return ok({...job})},job(id){const entry=entries.get(id);return entry?ok({...entry.job}):businessError("not_found","Notion authorization job not found.","plugin")},cancelJob(id){const entry=entries.get(id);if(!entry)return ok({id,cleanup:"confirmed"});if(entry.job.state==="waiting-user")entry.job.state="cancelled";entry.stop.abort();finish(entry);delete entry.job.authorizationUrl;delete entry.job.instructions;return ok({id,cleanup:entry.finished&&entry.serverClosed&&!entry.task&&!entry.startup?"confirmed":"pending"})},async close(){closed=true;for(const entry of entries.values()){if(entry.job.state==="waiting-user")entry.job.state="cancelled";entry.stop.abort();finish(entry);entry.server.closeAllConnections()}await Promise.all([...entries.values()].flatMap(entry=>[entry.startup,entry.task]))}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createNotionProvider}from"./provider.js";export{createNotionProvider};export const name="connector-notion",inject=["zortexConnectorHub","zortexConnectorEnrollment","zortexVaultStore","zortexConnectorHttp"];export function apply(ctx){const provider=createNotionProvider({vault:ctx.zortexVaultStore,enrollment:ctx.zortexConnectorEnrollment,transport:ctx.zortexConnectorHttp,
|
|
1
|
+
import{createNotionProvider}from"./provider.js";export{createNotionProvider};export const name="connector-notion",inject=["zortexConnectorHub","zortexConnectorEnrollment","zortexVaultStore","zortexConnectorHttp"];export function apply(ctx){const provider=createNotionProvider({vault:ctx.zortexVaultStore,enrollment:ctx.zortexConnectorEnrollment,transport:ctx.zortexConnectorHttp,metrics:()=>ctx.get("zortexTelemetry"),feedback:()=>ctx.get("zortexConnectionFeedback")});ctx.effect(()=>ctx.zortexConnectorHub.register(provider));ctx.effect(()=>()=>provider.close())}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{businessError}from"@zortexhq/plugin-connector-framework/api";import{validateRead,connectionState,readResult,cache}from"@zortexhq/plugin-connector-core/api";import{json,headers,list,NotionError}from"./http.js";import{createOAuth,envOAuth}from"./oauth.js";import{createBrokerOAuth}from"./broker.js";import{captureNotionRead,NotionCustodyError}from"./read-custody.js";export function createNotionProvider({vault,enrollment,transport=fetch,oauth,openUrl,timeoutMs,metrics,feedback
|
|
1
|
+
import{businessError}from"@zortexhq/plugin-connector-framework/api";import{validateRead,connectionState,readResult,cache}from"@zortexhq/plugin-connector-core/api";import{json,headers,list,NotionError}from"./http.js";import{createOAuth,envOAuth}from"./oauth.js";import{createBrokerOAuth}from"./broker.js";import{captureNotionRead,NotionCustodyError}from"./read-custody.js";export function createNotionProvider({vault,enrollment,transport=fetch,oauth,openUrl,timeoutMs,metrics,feedback}){let configurationError=false,useBroker=oauth===void 0;try{if(oauth===void 0)oauth=envOAuth();useBroker=useBroker&&!oauth}catch{configurationError=true;oauth=null;useBroker=false}const info={source:"notion",label:"Notion",group:"Connector / Documents",auth:oauth||useBroker?"oauth-browser":"api-key",readById:true};let closed=false;const stop=new AbortController;async function verify(token,signal,clientId=oauth?.clientId??"internal"){if(typeof token.access_token!=="string"||!token.access_token||token.access_token.length>4096)throw new NotionError("data_loss");const profile=await json("https://api.notion.com/v1/users/me",{headers:headers(token.access_token),signal},transport);if(profile.object!=="user"||typeof profile.id!=="string"||!profile.id||!["bot","person"].includes(profile.type))throw new NotionError("data_loss");if(token.bot_id&&token.bot_id!==profile.id)throw new NotionError("data_loss");const credential={accessToken:token.access_token,clientId,expiresAt:Number.isFinite(token.expires_in)&&token.expires_in>0?Date.now()+token.expires_in*1e3:0,scopes:[],...typeof token.refresh_token==="string"?{refreshToken:token.refresh_token}:{}};return{account:String(token.workspace_name??profile.bot?.workspace_name??profile.name??profile.id),accountId:profile.id,credential}}let flow=null;const observation={...metrics?{metrics}:{},...feedback?{feedback}:{}};try{if(useBroker)flow=createBrokerOAuth({vault,verify,transport,...observation,...timeoutMs?{timeoutMs}:{}});else if(oauth)flow=createOAuth(oauth,vault,verify,transport,openUrl,timeoutMs,observation)}catch{configurationError=true}return{info,status:()=>connectionState(vault,info),job:id=>flow?flow.job(id):enrollment.job(id),cancelJob:id=>flow?flow.cancelJob(id):enrollment.cancelJob(id),async connect(options={}){if(options.signal?.aborted)return businessError("aborted","Notion connection cancelled.","plugin");if(options.selectAccount)return businessError("failed_precondition","Switching the active Notion account is not supported yet. Your existing connection has not changed.","plugin");if(configurationError)return businessError("failed_precondition","Notion sign-in is unavailable because this Zortex installation has an invalid authorization configuration. Zortex needs to repair it; you do not need developer credentials.","plugin");if(closed)return businessError("unavailable","Notion is inactive.","plugin");return flow?flow.connect(options.signal,options.automatic,options):enrollment.form(info,[{key:"token",label:"Notion internal integration token or personal access token (shared pages only)",secret:true}],(fields,signal)=>verify({access_token:fields.token},signal),options)},async read(request,options={}){if(closed)return businessError("unavailable","Notion is inactive.","plugin");const invalid=validateRead(request,["fileId"]);if(invalid)return invalid;if(request.fileId!==void 0&&(typeof request.fileId!=="string"||!/^[0-9a-f]{32}$|^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/i.test(request.fileId)))return businessError("invalid_argument","Notion page id must be a UUID.","plugin");const signal=AbortSignal.any([stop.signal,AbortSignal.timeout(9e4),...options.signal?[options.signal]:[]]);try{signal.throwIfAborted();const captured=await captureNotionRead(vault,signal);if(!("ok"in captured))return captured;const access=captured.ok;if(access.credential.expiresAt>0&&access.credential.expiresAt<Date.now()+3e4)return businessError("failed_precondition","Notion grant expired; reconnect. Atomic refresh custody is not available.","plugin");const get=async(path,body)=>{const before=await access.check();if(!("ok"in before))throw new NotionCustodyError(before);const result=await json("https://api.notion.com/v1"+path,{headers:headers(access.credential.accessToken),signal,...body===void 0?{}:{method:"POST",body:JSON.stringify(body)}},transport);const after=await access.check();if(!("ok"in after))throw new NotionCustodyError(after);return result};const records=[],warnings=[];let cursor,requests=0,totalBytes=0;const seen=new Set;const text=parts=>Array.isArray(parts)?parts.map(p=>typeof p?.plain_text==="string"?p.plain_text:typeof p?.text?.content==="string"?p.text.content:"").join(""):"";async function content(id){const lines=[],visited=new Set;let bytes=0,truncated=false;async function visit(item){if(visited.has(item.id)||truncated)return;visited.add(item.id);let next;const cursors=new Set;do{signal.throwIfAborted();if(requests>=50){warnings.push("Nested blocks or pagination incomplete at request budget.");return}requests++;const r=await get("/blocks/"+encodeURIComponent(item.id)+"/children?page_size=100"+(next?"&start_cursor="+encodeURIComponent(next):""));for(const block of list(r)){if(typeof block.id!=="string"||typeof block.type!=="string"||typeof block.has_children!=="boolean")throw new NotionError("data_loss");const value=block[block.type],line=text(value?.rich_text)||String(value?.title??"");bytes+=Buffer.byteLength(line);totalBytes+=Buffer.byteLength(line);if(bytes>512*1024||totalBytes>1024*1024){warnings.push("Partial page content: per-page or aggregate text budget reached.");truncated=true;return}if(line)lines.push(line);if(block.has_children){if(item.depth<5)await visit({id:block.id,depth:item.depth+1});else warnings.push("Nested blocks truncated at depth 5.")}if(truncated)return}next=r.has_more?r.next_cursor:void 0;if(next&&cursors.has(next))throw new NotionError("data_loss");if(next)cursors.add(next)}while(next&&requests<50);if(next)warnings.push("Block pagination incomplete at request budget.")}await visit({id,depth:0});return lines.join("\n")}do{signal.throwIfAborted();if(requests++>=50){warnings.push("Search incomplete at request budget.");break}const response=request.fileId?{results:[await get("/pages/"+encodeURIComponent(request.fileId))],has_more:false}:await get("/search",{page_size:Math.min(100,request.limit??1),filter:{property:"object",value:"page"},sort:{direction:"descending",timestamp:"last_edited_time"},...request.query?{query:request.query}:{},...cursor?{start_cursor:cursor}:{}});for(const page of list(response,request.fileId?1:request.limit??1)){if(page.object!=="page"||typeof page.id!=="string"||!/^[0-9a-f-]{32,36}$/i.test(page.id)||!Number.isFinite(Date.parse(page.last_edited_time)))throw new NotionError("data_loss");const ts=Date.parse(page.last_edited_time);if(request.since&&ts<Date.parse(request.since)||request.until&&ts>Date.parse(request.until))continue;const title=Object.values(page.properties??{}).map(p=>p.type==="title"?text(p.title):"").filter(Boolean).join(" ");if(totalBytes+Buffer.byteLength(title)>1024*1024){warnings.push("Partial result: aggregate text budget reached.");break}totalBytes+=Buffer.byteLength(title);const body=[title,await content(page.id)].filter(Boolean).join("\n");const record={source:"notion",sourceId:access.accountId+":"+page.id,kind:"document",ts:page.last_edited_time,body,fields:{pageId:page.id,title,url:page.url??"",lastEditedTime:page.last_edited_time}};if(JSON.stringify(record).length>5e5){let low=0,high=body.length;if(JSON.stringify({...record,body:""}).length>5e5)throw new NotionError("resource_exhausted");while(low<high){const mid=Math.ceil((low+high)/2);if(JSON.stringify({...record,body:body.slice(0,mid)}).length<=5e5)low=mid;else high=mid-1}if(low&&/[\uD800-\uDBFF]/.test(body[low-1]))low--;record.body=body.slice(0,low);warnings.push("Partial page content: serialized Vault record budget reached.")}records.push(record);if(records.length>=(request.limit??1)||totalBytes>=1024*1024)break}cursor=response.has_more?response.next_cursor:void 0;if(cursor&&seen.has(cursor))throw new NotionError("data_loss");if(cursor)seen.add(cursor);if(records.length>=(request.limit??1)||totalBytes>=1024*1024){if(cursor)warnings.push("More matching pages are available.");break}}while(cursor&&requests<50);if(cursor&&requests>=50)warnings.push("Search incomplete at request budget.");signal.throwIfAborted();const beforeCache=await access.check();if(!("ok"in beforeCache))return beforeCache;const saved=await cache(vault,"notion",records,access.guard);if(!("ok"in saved))return saved;const final=await access.check();if(!("ok"in final))return final;return readResult("notion",records,[...new Set(warnings)])}catch(error){if(error instanceof NotionCustodyError&&!signal.aborted)return error.failure;return businessError(signal.aborted?"aborted":error instanceof NotionError?error.code:"unavailable","Notion readonly request failed; no empty result was assumed.","plugin")}},async close(){closed=true;stop.abort();enrollment.cancelSource("notion");await flow?.close()}}}
|
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
"@zortexhq/plugin-connector-core": "0.1.0",
|
|
15
15
|
"@zortexhq/plugin-connector-framework": "0.1.0",
|
|
16
16
|
"@zortexhq/plugin-vault-sqlite": "0.1.0",
|
|
17
|
-
"@zortexhq/plugin-telemetry": "0.1.0"
|
|
18
|
-
"@zortexhq/plugin-oauth-browser-driver": "0.1.0",
|
|
19
|
-
"@zortexhq/plugin-auto-connect": "0.1.0"
|
|
17
|
+
"@zortexhq/plugin-telemetry": "0.1.0"
|
|
20
18
|
},
|
|
21
19
|
"zortex": {
|
|
22
20
|
"role": "plugin"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createSteamProvider}from"./provider.js";export{createSteamProvider};export const name="connector-steam",inject=["zortexConnectorHub","zortexConnectorEnrollment","zortexVaultStore","zortexConnectorHttp"];export function apply(ctx){const provider=createSteamProvider({vault:ctx.zortexVaultStore,transport:ctx.zortexConnectorHttp,enrollment:ctx.zortexConnectorEnrollment
|
|
1
|
+
import{createSteamProvider}from"./provider.js";export{createSteamProvider};export const name="connector-steam",inject=["zortexConnectorHub","zortexConnectorEnrollment","zortexVaultStore","zortexConnectorHttp"];export function apply(ctx){const provider=createSteamProvider({vault:ctx.zortexVaultStore,transport:ctx.zortexConnectorHttp,enrollment:ctx.zortexConnectorEnrollment});ctx.effect(()=>ctx.zortexConnectorHub.register(provider));ctx.effect(()=>()=>provider.close())}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{businessError}from"@zortexhq/plugin-connector-framework/api";import{validateRead,connectionState,readResult,cache}from"@zortexhq/plugin-connector-core/api";import{readJson}from"./http.js";export function createSteamProvider({vault,enrollment,transport=fetch}){const info={source:"steam",label:"Steam",group:"Connector / \u6E38\u620F",auth:"api-key"};let closed=false;const stop=new AbortController;const service={info,status:()=>connectionState(vault,info),job:id=>enrollment.job(id),cancelJob:id=>enrollment.cancelJob(id),async connect(options={}){if(closed)return businessError("unavailable","Steam source is inactive.","plugin");return enrollment.form(info,[{key:"account",label:"SteamID64"},{key:"token",label:"Steam Web API key",secret:true}],async(fields,signal)=>{if(!/^\d{17}$/.test(fields.account??"")||!/^[a-fA-F0-9]{32}$/.test(fields.token??""))throw Error("Invalid Steam credential fields.");const url=new URL("https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/");url.searchParams.set("key",fields.token);url.searchParams.set("steamids",fields.account);const response=await readJson(url.toString(),{signal},transport);if(response.response?.players?.length!==1||response.response.players[0].steamid!==fields.account)throw Error("Steam identity was not confirmed.");return{account:fields.account,credential:{accessToken:fields.token,clientId:"steam-web-api",expiresAt:0,scopes:["profile.read","games.read"]}}},options)},async read(request,options={}){if(closed)return businessError("unavailable","Steam source is inactive.","plugin");const invalid=validateRead(request);if(invalid)return invalid;const signal=options.signal?AbortSignal.any([options.signal,stop.signal]):stop.signal;const grant=await vault.credential("steam");if(!("ok"in grant))return grant;const identity=await vault.connection("steam");if(!("ok"in identity))return identity;if(grant.ok.clientId==="signed-in-browser")return businessError("unauthenticated","Connect Steam with its Web API key before reading.","plugin");if(!/^\d{17}$/.test(identity.ok?.account??""))return businessError("failed_precondition","Steam account identity is missing.","plugin");try{const url=new URL(request.query?"https://api.steampowered.com/IPlayerService/GetOwnedGames/v1/":"https://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v1/");url.searchParams.set("key",grant.ok.accessToken);url.searchParams.set("steamid",identity.ok.account);if(request.query)url.searchParams.set("include_appinfo","true");else url.searchParams.set("count",String(request.limit??1));const response=await readJson(url.toString(),{signal},transport);const payload=response.response;if(!payload||!Number.isInteger(payload.total_count??payload.game_count)||payload.games!==void 0&&!Array.isArray(payload.games))return businessError("data_loss","Steam game listing is malformed.","plugin");const rows=payload.games??[];if(rows.length>1e4||rows.some(row=>!Number.isInteger(row.appid)||typeof row.name!=="string"))return businessError("data_loss","Steam returned invalid or oversized game data.","plugin");const records=rows.filter(row=>(!request.query||row.name.toLowerCase().includes(request.query.toLowerCase()))&&(!request.since||Number(row.rtime_last_played)*1e3>=Date.parse(request.since))&&(!request.until||Number(row.rtime_last_played)*1e3<=Date.parse(request.until))).slice(0,request.limit??1).map(row=>({source:"steam",sourceId:String(row.appid),kind:"game",ts:new Date(Number(row.rtime_last_played??0)*1e3).toISOString(),body:row.name,fields:row}));const saved=await cache(vault,"steam",records);if(!("ok"in saved))return saved;return closed?businessError("unavailable","Steam source was disabled.","plugin"):readResult("steam",records)}catch{return businessError(signal.aborted?"aborted":"unavailable","Steam readonly request failed. No empty result was assumed.","plugin")}},async close(){closed=true;stop.abort();enrollment.cancelSource?.("steam")}};return service}
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@zortexhq/plugin-connector-core": "0.1.0",
|
|
12
12
|
"@zortexhq/plugin-connector-framework": "0.1.0",
|
|
13
|
-
"@zortexhq/plugin-vault-sqlite": "0.1.0"
|
|
14
|
-
"@zortexhq/plugin-auto-connect": "0.1.0",
|
|
15
|
-
"@zortexhq/plugin-oauth-browser-driver": "0.1.0"
|
|
13
|
+
"@zortexhq/plugin-vault-sqlite": "0.1.0"
|
|
16
14
|
},
|
|
17
15
|
"zortex": {
|
|
18
16
|
"role": "plugin"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function connectionView(coverage={},report,now=Date.now()){const source=coverage.source||report?.source||"";const progress=coverage.progress;const state=report?.state;const support=report?.support||coverage.support;const reloadRequired=report?.reloadRequired===true||support?.reasonCode==="configuration_reload_required";const connected=!reloadRequired&&(report?report.connection==="connected":coverage.connectionState==="connected");const failed=state==="failed"||!report&&progress?.stage==="finished"&&!!progress.errorCode;const errorCode=report?.errorCode||progress?.errorCode||"";const expiresAt=typeof report?.authorizationExpiresAt==="string"?Date.parse(report.authorizationExpiresAt):NaN;const expired=state==="waiting-user"&&Number.isFinite(expiresAt)&&expiresAt<=now||failed&&(errorCode==="qr_expired"||["whatsapp","whatsapp-web"].includes(source)&&["authorization_timeout","pairing_timeout"].includes(errorCode));const qr=!!report?.authorizationImage||errorCode==="qr_expired"||expired&&["whatsapp","whatsapp-web"].includes(source);if(expired&&report){report={...report};for(const key of["authorizationImage","authorizationUrl","deviceUserCode","authorizationInstructions"
|
|
1
|
+
export function connectionView(coverage={},report,now=Date.now()){const source=coverage.source||report?.source||"";const progress=coverage.progress;const state=report?.state;const support=report?.support||coverage.support;const reloadRequired=report?.reloadRequired===true||support?.reasonCode==="configuration_reload_required";const connected=!reloadRequired&&(report?report.connection==="connected":coverage.connectionState==="connected");const failed=state==="failed"||!report&&progress?.stage==="finished"&&!!progress.errorCode;const errorCode=report?.errorCode||progress?.errorCode||"";const expiresAt=typeof report?.authorizationExpiresAt==="string"?Date.parse(report.authorizationExpiresAt):NaN;const expired=state==="waiting-user"&&Number.isFinite(expiresAt)&&expiresAt<=now||failed&&(errorCode==="qr_expired"||["whatsapp","whatsapp-web"].includes(source)&&["authorization_timeout","pairing_timeout"].includes(errorCode));const qr=!!report?.authorizationImage||errorCode==="qr_expired"||expired&&["whatsapp","whatsapp-web"].includes(source);if(expired&&report){report={...report};for(const key of["authorizationImage","authorizationUrl","deviceUserCode","authorizationInstructions"])delete report[key]}const base={source,connected,attention:false,tone:"neutral",status:"Not connected",title:"Bring this app into your workspace",description:"Connect your account to make this app available to your AI.",action:"connect",actionLabel:"Connect",kind:"connect",items:Number.isSafeInteger(coverage.items)?coverage.items:null,report};if(expired)return{...base,attention:true,tone:"attention",status:qr?"QR code expired":"Sign-in expired",title:qr?"Your QR code expired":"This sign-in link expired",description:qr?"Get a fresh code, then scan it to continue connecting.":"Start sign-in again to get a fresh authorization link.",action:"restart",actionLabel:qr?"Get a new code":"Restart sign-in",kind:"expired"};if(state==="waiting-user"||!report&&progress?.stage==="waiting-user"){return{...base,attention:true,tone:"attention",status:qr?"Scan QR code":"Finish connecting",title:qr?"Link your WhatsApp account":"One more step to connect",description:qr?"Scan this code from WhatsApp on your phone.":"Finish authorization, then return here. We\u2019ll check the connection automatically.",action:"continue",actionLabel:qr?"Scan QR code":"Continue connection",kind:qr?"qr":"waiting"}}if(["connecting","reading"].includes(state)||!report&&progress&&["configuring","checking","connecting","reading"].includes(progress.stage)){return{...base,tone:"working",status:state==="reading"?"Checking connection":"Connecting",title:state==="reading"?"Checking your connection":"Connecting your app",description:"You can keep browsing. Your connection progress stays here.",action:"open",actionLabel:"View progress",kind:"working"}}if(reloadRequired)return{...base,attention:true,tone:"attention",status:"Restart needed",title:"Settings saved",description:support?.nextStep||"Restart Zortex, then check this app again to finish connecting.",action:"refresh",actionLabel:"Check again",kind:"reload"};if(failed&&source==="joplin"&&!connected&&report?.joplinSetupAvailable&&support?.state!=="unsupported")return{...base,attention:true,tone:"attention",status:"Setup needed",title:"Set up your connection",description:"Add the settings this app needs, then connect your account.",action:"setup",actionLabel:"Set up",kind:"setup"};const authorizationAvailable=report?.authorizationAvailable===true&&!["joplin","google-chrome","microsoft-edge"].includes(source);if(failed&&authorizationAvailable&&/expired|revoked|invalid_grant|reauthoriz|permission_denied/.test(errorCode))return{...base,attention:true,tone:"attention",status:"Reconnect needed",title:"Your app needs you to sign in again",description:"Reconnect to restore access. Previously saved records are kept.",action:"authorize",actionLabel:"Reconnect",kind:"attention"};if(failed)return{...base,attention:true,tone:"attention",status:"Needs attention",title:connected?"Connected, with one thing to check":"Let\u2019s finish connecting this app",description:connected?"Your connection is saved. The latest check did not finish.":"Automatic setup could not finish. You can continue here with a manual connection.",action:connected?"read":"connect",actionLabel:connected?"Try again":"Connect manually",kind:"attention"};if(connected){const empty=report?report.read==="empty"||report.state==="empty":coverage.readEvidence?.returned===0;return{...base,tone:"success",status:"Connected",title:empty?"Connected. Ready when you are.":"You\u2019re connected",description:empty?"The connection check succeeded. There are no items to show yet.":"This app is connected and available in your workspace.",action:"open",actionLabel:"Open app",kind:empty?"empty":"success"}}const setupAvailable=report?.setupAvailable===true||report&&Object.entries(report).some(([key,value])=>key.endsWith("SetupAvailable")&&value===true);if(support?.state!=="unsupported"&&(support?.state==="setup-required"||coverage.registration==="deferred"||report?.registration==="deferred"||setupAvailable)){return{...base,status:"Setup needed",title:"Set up your connection",description:"Add the settings this app needs, then connect your account.",action:"setup",actionLabel:"Set up",kind:"setup"}}if(support?.state==="unsupported"||state==="unavailable"||coverage.connectionState==="unavailable"&&coverage.registration!=="deferred"||coverage.registered===null&&!report){return{...base,attention:coverage.registered===null,tone:"muted",status:coverage.registered===null?"Status unavailable":"Unavailable here",title:coverage.registered===null?"We couldn\u2019t check this app":"This app needs a different setup",description:support?.message||"Connection status is unavailable right now. Try refreshing in a moment.",action:"refresh",actionLabel:"Check again",kind:"unavailable"}}return base}export function mergeApps(snapshot,report,catalog=[]){const coverage=new Map((snapshot?.coverage||[]).map(row=>[row.source,row]));const reports=new Map([...report?.sources||[],...report?.others||[]].map(row=>[row.source,row]));const names=new Map(catalog.map(row=>[row.id,row]));return[...new Set([...coverage.keys(),...reports.keys(),...names.keys()])].map(source=>{const row=coverage.get(source)||{source},view=connectionView(row,reports.get(source));return{...names.get(source)||{},id:source,coverage:row,report:view.report,view}})}export function safeAuthorizationUrl(value,source=""){if(typeof value!=="string"||value.length>24e3||/[\u0000-\u0020\u007f\\]/u.test(value))return null;try{const url=new URL(value);if(url.username||url.password||url.hash)return null;if(url.protocol==="https:")return url.href;if(url.protocol==="http:"&&url.hostname==="127.0.0.1"){if(source==="whatsapp-web"&&!url.search&&/^\/[A-Za-z0-9_-]{32}$/.test(url.pathname))return url.href;const match=/^\/connect\/([A-Za-z0-9_-]{32})$/.exec(url.pathname);if(match&&(!url.search||url.port&&url.searchParams.get("state")===match[1]&&[...url.searchParams.keys()].length===1))return url.href}}catch{}return null}export function safeAuthorizationImage(value){if(value?.mimeType!=="image/png"||typeof value.data!=="string"||value.data.length>65536||!/^iVBORw0KGgo[A-Za-z0-9+/]*={0,2}$/.test(value.data))return null;return"data:image/png;base64,"+value.data}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{connectionView,safeAuthorizationUrl,safeAuthorizationImage}from"./app-model.js";import{createConnectionClient,runConnectionAction}from"./connection-client.js";import{setupFor,setupRequest}from"./connection-forms.js";const esc=value=>String(value??"").replace(/[&<>"']/g,c=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[c]);export function createConnectionPanel({runtime={},token,onChange=()=>{}}={}){const request=createConnectionClient({token}),lifetime=new AbortController;const busy=new Set,errors=new Map,editing=new Set,collapsedSetup=new Set,drafts=new Map,pairings=new Map,notices=new Map;let report=null,refreshing=null,revision=0,mounted=null,disposed=false,expiryTimer;const sourceReport=source=>[...report?.sources||[],...report?.others||[]].find(row=>row.source===source);const view=(source,coverage={})=>connectionView({...coverage,source},sourceReport(source));const accept=result=>{if(Array.isArray(result?.sources)){report=result;return true}return false};const button=(source,label,action)=>'<button type="button" class="p-pill" data-connection-action="'+esc(action)+'"'+(busy.has(source)?' disabled aria-busy="true"':"")+">"+esc(label)+"</button>";const actions=html2=>'<div class="p-actions">'+html2+"</div>";const note=text=>text?'<p class="p-note">'+esc(text)+"</p>":"";async function refresh(){if(disposed||!runtime.canConnect)return report;if(refreshing)return refreshing;const current=revision;refreshing=request({action:"status"},{signal:lifetime.signal}).then(result=>{if(!disposed&¤t===revision)accept(result);return report}).finally(()=>{refreshing=null});return refreshing}async function changed(){if(disposed)return;try{await onChange()}catch{}repaint()}async function perform(source,action,extra={}){if(disposed||busy.has(source)||!runtime.canConnect)return;busy.add(source);errors.delete(source);notices.delete(source);revision++;repaint();let result;try{result=await runConnectionAction(request,{...extra,action,source},{signal:lifetime.signal});if(disposed)return;revision++;accept(result);if(result?.pairing){if(result.pairing.state==="cancelled"){pairings.delete(source);drafts.delete(source)}else pairings.set(source,result.pairing)}if(action.startsWith("configure-")&&!result?.pairing){editing.delete(source);collapsedSetup.delete(source);drafts.delete(source)}if(action==="read"&&pairings.get(source)?.state==="configured"){editing.delete(source);pairings.delete(source);drafts.delete(source)}if(action==="discover-native-vault"){const first=(result.candidates||[]).find(item=>typeof item==="string"||typeof item?.path==="string");if(first){drafts.set(source,{...drafts.get(source)||{},roots:typeof first==="string"?first:first.path});notices.set(source,"Found a notes folder. Review it before saving.")}else notices.set(source,"No folder was found. Enter the folder path to continue.")}const current=revision;try{const latest=await request({action:"status"},{signal:lifetime.signal});if(!disposed&¤t===revision)accept(latest)}catch{if(!disposed)notices.set(source,"The action was sent. Refresh to check its latest status.")}}catch(error){if(!disposed)errors.set(source,error.message||"This step could not finish. Please try again.")}finally{busy.delete(source);if(!disposed)await changed()}return result}async function check(source){errors.delete(source);try{await refresh()}catch(error){if(!disposed)errors.set(source,error.message||"Connection status is unavailable. Try again.")}await changed()}async function primary(source,coverage={}){if(disposed)return;if(!report&&runtime.canConnect){try{await refresh()}catch(error){errors.set(source,error.message||"Connection status is unavailable.");repaint();return}}const current=view(source,coverage);if(current.action==="setup"){editing.add(source);collapsedSetup.delete(source);repaint();return}if(["open","continue"].includes(current.action)||!runtime.canConnect){repaint();return}if(current.action==="refresh"){await check(source);return}await perform(source,current.action)}function fields(source,definition){const values=drafts.get(source)||{};return definition.fields.map(field=>{const value=values[field.name]??field.value??"",id="connection-"+source+"-"+field.name;const attrs=' id="'+esc(id)+'" name="'+esc(field.name)+'"'+(field.required===false?"":" required")+(field.maxLength?' maxlength="'+field.maxLength+'"':"")+(field.pattern?' pattern="'+esc(field.pattern)+'"':"")+(busy.has(source)?" disabled":"");const input=field.type==="select"?"<select"+attrs+">"+field.options.map(([key,label])=>'<option value="'+esc(key)+'"'+(String(value)===key?" selected":"")+">"+esc(label)+"</option>").join("")+"</select>":field.type==="textarea"?"<textarea"+attrs+' placeholder="'+esc(field.placeholder||"")+'">'+esc(value)+"</textarea>":"<input"+attrs+' type="'+esc(field.type)+'" placeholder="'+esc(field.placeholder||"")+'" value="'+esc(value)+'"'+(field.min!=null?' min="'+field.min+'" max="'+field.max+'"':"")+">";return'<label class="p-row" for="'+esc(id)+'"><span class="grow">'+esc(field.label)+(field.help?"<small>"+esc(field.help)+"</small>":"")+"</span>"+input+"</label>"}).join("")}function pairing(source){const pair=pairings.get(source),draft=drafts.get(source)||{};if(!pair)return note("Open the Zortex plugin in Joplin, then start pairing. Both apps will show a fingerprint for you to compare.")+actions(button(source,"Start pairing","pair-start"));if(pair.state==="configured")return note(pair.reloadRequired?"Pairing saved. Restart Zortex before checking note access.":"Joplin is paired. Check note access to verify the connection.")+actions(button(source,pair.reloadRequired?"Check again":"Verify note access",pair.reloadRequired?"refresh":"read"));if(pair.expiresAt&&Date.now()>=pair.expiresAt)return note("This pairing code expired. Start again to get a fresh code.")+actions(button(source,"Start again","pair-start"));if(!["pairing","confirm-required"].includes(pair.state)||!pair.pairingId)return note(pair.next||"Pairing could not finish. Keep Joplin open and try again.")+actions(button(source,"Start again","pair-start"));const key=pair.zortexPublicKey?note("Paste this public key into the Zortex plugin in Joplin.")+'<p class="p-note"><code data-no-translate>'+esc(pair.zortexPublicKey)+"</code></p>":"";const confirm=pair.state==="confirm-required"&&pair.fingerprint;return key+(confirm?note("Compare this fingerprint with Joplin. Continue only when both match.")+'<p class="p-note"><code data-no-translate>'+esc(pair.fingerprint)+"</code></p>":"")+'<form data-connection-form="'+(confirm?"pair-confirm":"pair-inspect")+'"><div class="p-group">'+(confirm?'<label class="p-row"><span class="grow">Joplin port</span><input name="port" type="number" min="1024" max="65535" value="'+esc(draft.port||41184)+'" required></label>':'<label class="p-row"><span class="grow">Public key from Joplin</span><input name="pluginPublicKey" value="'+esc(draft.pluginPublicKey||"")+'" required pattern="[a-fA-F0-9]{88}" maxlength="88" autocomplete="off"></label>')+"</div>"+actions('<button class="p-pill" type="submit"'+(busy.has(source)?" disabled":"")+">"+(confirm?"Fingerprints match \xB7 Pair":"Compare fingerprints")+"</button>"+button(source,"Cancel pairing","pair-cancel"))+"</form>"}function setup(source,definition,current){if(!definition)return note(current.report?.support?.nextStep||"This app has no manual settings available on this computer.")+actions(button(source,"Check again","refresh"));if(definition.pairing)return pairing(source);return'<form data-connection-form="setup"><div class="p-group">'+fields(source,definition)+"</div>"+note("Sign-in details are entered in the app\u2019s authorization page after setup.")+actions('<button class="p-pill" type="submit"'+(busy.has(source)?" disabled":"")+">Save and continue</button>"+button(source,"Cancel","hide-setup")+(source==="obsidian"?button(source,"Find my vaults","discover-native-vault"):""))+"</form>"}function waiting(source,current){const row=current.report||{},url=safeAuthorizationUrl(row.authorizationUrl||row.signInUrl,source),image=safeAuthorizationImage(row.authorizationImage),qr=current.kind==="qr";let html2="";if(qr)html2+=(image?'<p><img src="'+esc(image)+'" width="208" height="208" alt="'+esc("Scan this QR code to connect "+(row.label||source))+'"></p>':note("Preparing your QR code\u2026"))+"<ol><li>Open WhatsApp on your phone.</li><li>Choose Settings \u2192 Linked devices.</li><li>Tap Link a device and scan this code.</li></ol>";if(row.deviceUserCode)html2+='<p class="p-note">Sign-in code: <code data-no-translate>'+esc(row.deviceUserCode)+"</code></p>";const instructions=row.browserContinuation?"Continue sign-in in the browser window that opened, then return here. Your connection will be verified automatically.":row.authorizationInstructions||row.nextStep;if(instructions)html2+=note(instructions);else if(!qr&&!url)html2+=note("Finish sign-in in the window that opened, then return here to check progress.");return html2+actions((url?'<a class="p-pill" href="'+esc(url)+'" target="_blank" rel="noopener noreferrer">Continue sign-in</a>':"")+button(source,"Check connection",runtime.mode==="mock"?"read":"refresh")+button(source,"Cancel connection","cancel")+(qr?button(source,"Get a new code","restart"):""))}function html(source,coverage){const current=view(source,coverage),row=current.report||{},definition=setupFor(source,row);let controls;if(!runtime.canConnect)controls=note("Open Zortex on your connected computer to change this connection. Your saved information remains available here.")+actions(button(source,"Refresh status","refresh"));else if((editing.has(source)||current.kind==="setup"&&!collapsedSetup.has(source))&¤t.kind!=="working")controls=setup(source,definition,current);else if(["qr","waiting"].includes(current.kind))controls=waiting(source,current);else if(current.kind==="working")controls=actions(button(source,"Check progress","refresh")+button(source,"Connect manually instead","manual")+button(source,"Cancel connection","cancel"));else if(current.connected&&!current.attention)controls=actions(button(source,"Check connection","read"));else controls=actions(button(source,current.actionLabel,current.action)+(current.kind==="attention"?button(source,"Refresh status","refresh"):""));const extra=["setup","reload","attention","working","unavailable"].includes(current.kind)?[row.message,row.nextStep||row.support?.nextStep].filter((text,index,all)=>typeof text==="string"&&text.trim()&&text!==current.description&&all.indexOf(text)===index).map(note).join(""):"";let manage="";if(runtime.canConnect){if(row.authorizationAvailable===true)manage+=button(source,"Reconnect or choose an account","authorize");if(definition&&!editing.has(source)&¤t.kind!=="setup")manage+=button(source,"Connection settings","show-setup");if(row.gmailWriteAvailable===true)manage+=button(source,"Enable Gmail write access","authorize-gmail-write");if(row.readwiseMcpWriteAvailable===true)manage+=button(source,"Enable Readwise write access","authorize-readwise-mcp");if(row.reconnectSavedAvailable===true)manage+=button(source,"Reconnect saved account","reconnect-saved")}return'<div class="p-callout" data-connection-state="'+esc(current.kind)+'"'+(busy.has(source)?' aria-busy="true"':"")+"><b>"+esc(current.title)+"</b><p>"+esc(current.description)+"</p>"+extra+controls+(errors.has(source)?'<p class="p-note" role="alert">'+esc(errors.get(source))+"</p>":"")+note(notices.get(source))+"</div>"+(manage?actions(manage):"")}function repaint(){clearTimeout(expiryTimer);if(disposed||!mounted)return;const{container,source,coverage}=mounted,active=container.contains(document.activeElement)?document.activeElement:null;const id=active?.id,action=active?.dataset?.connectionAction;container.innerHTML=html(source,coverage);const next=id?container.querySelector('[id="'+CSS.escape(id)+'"]'):action?container.querySelector('[data-connection-action="'+CSS.escape(action)+'"]'):null;next?.focus({preventScroll:true});const row=sourceReport(source),expiry=row?.state==="waiting-user"?Date.parse(row.authorizationExpiresAt):NaN;const pairExpiry=pairings.get(source)?.state!=="configured"?pairings.get(source)?.expiresAt:NaN;const nextExpiry=Math.min(...[expiry,pairExpiry].filter(value=>Number.isFinite(value)&&value>Date.now()));if(Number.isFinite(nextExpiry))expiryTimer=setTimeout(repaint,Math.min(2147483647,Math.max(1,nextExpiry-Date.now()+10)))}function unmount(){clearTimeout(expiryTimer);if(!mounted)return;const{container,click,submit,input}=mounted;container.removeEventListener("click",click);container.removeEventListener("submit",submit);container.removeEventListener("input",input);container.removeEventListener("change",input);mounted=null}function mount(container,source,coverage={}){unmount();if(disposed||!container)return;container.dataset.connectionPanel=source;const click=event=>{const target=event.target.closest("[data-connection-action]");if(!target||target.disabled||!container.contains(target))return;event.preventDefault();event.stopPropagation();const action=target.dataset.connectionAction;if(action==="show-setup"||action==="setup"){editing.add(source);collapsedSetup.delete(source);repaint();return}if(action==="hide-setup"){editing.delete(source);collapsedSetup.add(source);drafts.delete(source);repaint();return}if(action==="open"||action==="continue"){repaint();return}if(action==="refresh"){void check(source);return}if(action==="pair-start"){void perform(source,"configure-joplin",{selection:{phase:"start"}});return}if(action==="pair-cancel"){const pair=pairings.get(source);if(pair?.pairingId)void perform(source,"configure-joplin",{selection:{phase:"cancel",pairingId:pair.pairingId}});return}void perform(source,action)};const input=event=>{const form=event.target.closest("form[data-connection-form]");if(form&&container.contains(form))drafts.set(source,Object.fromEntries(new FormData(form)))};const submit=event=>{const form=event.target;if(!form.matches("form[data-connection-form]"))return;event.preventDefault();event.stopPropagation();if(busy.has(source)||!runtime.canConnect)return;const values=Object.fromEntries(new FormData(form));drafts.set(source,values);try{if(form.dataset.connectionForm==="setup"){const definition=setupFor(source,sourceReport(source));if(!definition)return;const body=setupRequest(definition,values);void perform(source,body.action,body)}else{const pair=pairings.get(source);if(!pair?.pairingId)return;const selection=form.dataset.connectionForm==="pair-inspect"?{phase:"inspect",pairingId:pair.pairingId,pluginPublicKey:String(values.pluginPublicKey).toLowerCase()}:{phase:"confirm",pairingId:pair.pairingId,port:Number(values.port),fingerprint:pair.fingerprint};void perform(source,"configure-joplin",{selection})}}catch(error){errors.set(source,error.message);repaint()}};mounted={container,source,coverage,click,submit,input};container.addEventListener("click",click);container.addEventListener("submit",submit);container.addEventListener("input",input);container.addEventListener("change",input);repaint()}return{refresh,getReport:()=>report,view,primary,mount,dispose(){if(disposed)return;disposed=true;revision++;lifetime.abort();unmount();busy.clear();errors.clear();editing.clear();collapsedSetup.clear();drafts.clear();pairings.clear();notices.clear();report=null}}}
|
|
1
|
+
import{connectionView,safeAuthorizationUrl,safeAuthorizationImage}from"./app-model.js";import{createConnectionClient,runConnectionAction}from"./connection-client.js";import{setupFor,setupRequest}from"./connection-forms.js";const esc=value=>String(value??"").replace(/[&<>"']/g,c=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[c]);export function createConnectionPanel({runtime={},token,onChange=()=>{}}={}){const request=createConnectionClient({token}),lifetime=new AbortController;const busy=new Set,errors=new Map,editing=new Set,collapsedSetup=new Set,drafts=new Map,pairings=new Map,notices=new Map;let report=null,refreshing=null,revision=0,mounted=null,disposed=false,expiryTimer;const sourceReport=source=>[...report?.sources||[],...report?.others||[]].find(row=>row.source===source);const view=(source,coverage={})=>connectionView({...coverage,source},sourceReport(source));const accept=result=>{if(Array.isArray(result?.sources)){report=result;return true}return false};const button=(source,label,action)=>'<button type="button" class="p-pill" data-connection-action="'+esc(action)+'"'+(busy.has(source)?' disabled aria-busy="true"':"")+">"+esc(label)+"</button>";const actions=html2=>'<div class="p-actions">'+html2+"</div>";const note=text=>text?'<p class="p-note">'+esc(text)+"</p>":"";async function refresh(){if(disposed||!runtime.canConnect)return report;if(refreshing)return refreshing;const current=revision;refreshing=request({action:"status"},{signal:lifetime.signal}).then(result=>{if(!disposed&¤t===revision)accept(result);return report}).finally(()=>{refreshing=null});return refreshing}async function changed(){if(disposed)return;try{await onChange()}catch{}repaint()}async function perform(source,action,extra={}){if(disposed||busy.has(source)||!runtime.canConnect)return;busy.add(source);errors.delete(source);notices.delete(source);revision++;repaint();let result;try{result=await runConnectionAction(request,{...extra,action,source},{signal:lifetime.signal});if(disposed)return;revision++;accept(result);if(result?.pairing){if(result.pairing.state==="cancelled"){pairings.delete(source);drafts.delete(source)}else pairings.set(source,result.pairing)}if(action.startsWith("configure-")&&!result?.pairing){editing.delete(source);collapsedSetup.delete(source);drafts.delete(source)}if(action==="read"&&pairings.get(source)?.state==="configured"){editing.delete(source);pairings.delete(source);drafts.delete(source)}if(action==="discover-native-vault"){const first=(result.candidates||[]).find(item=>typeof item==="string"||typeof item?.path==="string");if(first){drafts.set(source,{...drafts.get(source)||{},roots:typeof first==="string"?first:first.path});notices.set(source,"Found a notes folder. Review it before saving.")}else notices.set(source,"No folder was found. Enter the folder path to continue.")}const current=revision;try{const latest=await request({action:"status"},{signal:lifetime.signal});if(!disposed&¤t===revision)accept(latest)}catch{if(!disposed)notices.set(source,"The action was sent. Refresh to check its latest status.")}}catch(error){if(!disposed)errors.set(source,error.message||"This step could not finish. Please try again.")}finally{busy.delete(source);if(!disposed)await changed()}return result}async function check(source){errors.delete(source);try{await refresh()}catch(error){if(!disposed)errors.set(source,error.message||"Connection status is unavailable. Try again.")}await changed()}async function primary(source,coverage={}){if(disposed)return;if(!report&&runtime.canConnect){try{await refresh()}catch(error){errors.set(source,error.message||"Connection status is unavailable.");repaint();return}}const current=view(source,coverage);if(current.action==="setup"){editing.add(source);collapsedSetup.delete(source);repaint();return}if(["open","continue"].includes(current.action)||!runtime.canConnect){repaint();return}if(current.action==="refresh"){await check(source);return}await perform(source,current.action)}function fields(source,definition){const values=drafts.get(source)||{};return definition.fields.map(field=>{const value=values[field.name]??field.value??"",id="connection-"+source+"-"+field.name;const attrs=' id="'+esc(id)+'" name="'+esc(field.name)+'"'+(field.required===false?"":" required")+(field.maxLength?' maxlength="'+field.maxLength+'"':"")+(field.pattern?' pattern="'+esc(field.pattern)+'"':"")+(busy.has(source)?" disabled":"");const input=field.type==="select"?"<select"+attrs+">"+field.options.map(([key,label])=>'<option value="'+esc(key)+'"'+(String(value)===key?" selected":"")+">"+esc(label)+"</option>").join("")+"</select>":field.type==="textarea"?"<textarea"+attrs+' placeholder="'+esc(field.placeholder||"")+'">'+esc(value)+"</textarea>":"<input"+attrs+' type="'+esc(field.type)+'" placeholder="'+esc(field.placeholder||"")+'" value="'+esc(value)+'"'+(field.min!=null?' min="'+field.min+'" max="'+field.max+'"':"")+">";return'<label class="p-row" for="'+esc(id)+'"><span class="grow">'+esc(field.label)+(field.help?"<small>"+esc(field.help)+"</small>":"")+"</span>"+input+"</label>"}).join("")}function pairing(source){const pair=pairings.get(source),draft=drafts.get(source)||{};if(!pair)return note("Open the Zortex plugin in Joplin, then start pairing. Both apps will show a fingerprint for you to compare.")+actions(button(source,"Start pairing","pair-start"));if(pair.state==="configured")return note(pair.reloadRequired?"Pairing saved. Restart Zortex before checking note access.":"Joplin is paired. Check note access to verify the connection.")+actions(button(source,pair.reloadRequired?"Check again":"Verify note access",pair.reloadRequired?"refresh":"read"));if(pair.expiresAt&&Date.now()>=pair.expiresAt)return note("This pairing code expired. Start again to get a fresh code.")+actions(button(source,"Start again","pair-start"));if(!["pairing","confirm-required"].includes(pair.state)||!pair.pairingId)return note(pair.next||"Pairing could not finish. Keep Joplin open and try again.")+actions(button(source,"Start again","pair-start"));const key=pair.zortexPublicKey?note("Paste this public key into the Zortex plugin in Joplin.")+'<p class="p-note"><code data-no-translate>'+esc(pair.zortexPublicKey)+"</code></p>":"";const confirm=pair.state==="confirm-required"&&pair.fingerprint;return key+(confirm?note("Compare this fingerprint with Joplin. Continue only when both match.")+'<p class="p-note"><code data-no-translate>'+esc(pair.fingerprint)+"</code></p>":"")+'<form data-connection-form="'+(confirm?"pair-confirm":"pair-inspect")+'"><div class="p-group">'+(confirm?'<label class="p-row"><span class="grow">Joplin port</span><input name="port" type="number" min="1024" max="65535" value="'+esc(draft.port||41184)+'" required></label>':'<label class="p-row"><span class="grow">Public key from Joplin</span><input name="pluginPublicKey" value="'+esc(draft.pluginPublicKey||"")+'" required pattern="[a-fA-F0-9]{88}" maxlength="88" autocomplete="off"></label>')+"</div>"+actions('<button class="p-pill" type="submit"'+(busy.has(source)?" disabled":"")+">"+(confirm?"Fingerprints match \xB7 Pair":"Compare fingerprints")+"</button>"+button(source,"Cancel pairing","pair-cancel"))+"</form>"}function setup(source,definition,current){if(!definition)return note(current.report?.support?.nextStep||"This app has no manual settings available on this computer.")+actions(button(source,"Check again","refresh"));if(definition.pairing)return pairing(source);return'<form data-connection-form="setup"><div class="p-group">'+fields(source,definition)+"</div>"+note("Sign-in details are entered in the app\u2019s authorization page after setup.")+actions('<button class="p-pill" type="submit"'+(busy.has(source)?" disabled":"")+">Save and continue</button>"+button(source,"Cancel","hide-setup")+(source==="obsidian"?button(source,"Find my vaults","discover-native-vault"):""))+"</form>"}function waiting(source,current){const row=current.report||{},url=safeAuthorizationUrl(row.authorizationUrl||row.signInUrl,source),image=safeAuthorizationImage(row.authorizationImage),qr=current.kind==="qr";let html2="";if(qr)html2+=(image?'<p><img src="'+esc(image)+'" width="208" height="208" alt="'+esc("Scan this QR code to connect "+(row.label||source))+'"></p>':note("Preparing your QR code\u2026"))+"<ol><li>Open WhatsApp on your phone.</li><li>Choose Settings \u2192 Linked devices.</li><li>Tap Link a device and scan this code.</li></ol>";if(row.deviceUserCode)html2+='<p class="p-note">Sign-in code: <code data-no-translate>'+esc(row.deviceUserCode)+"</code></p>";const instructions=row.authorizationInstructions||row.nextStep;if(instructions)html2+=note(instructions);else if(!qr&&!url)html2+=note("Finish sign-in in the window that opened, then return here to check progress.");return html2+actions((url?'<a class="p-pill" href="'+esc(url)+'" target="_blank" rel="noopener noreferrer">Continue sign-in</a>':"")+button(source,"Check connection",runtime.mode==="mock"?"read":"refresh")+button(source,"Cancel connection","cancel")+(qr?button(source,"Get a new code","restart"):""))}function html(source,coverage){const current=view(source,coverage),row=current.report||{},definition=setupFor(source,row);let controls;if(!runtime.canConnect)controls=note("Open Zortex on your connected computer to change this connection. Your saved information remains available here.")+actions(button(source,"Refresh status","refresh"));else if((editing.has(source)||current.kind==="setup"&&!collapsedSetup.has(source))&¤t.kind!=="working")controls=setup(source,definition,current);else if(["qr","waiting"].includes(current.kind))controls=waiting(source,current);else if(current.kind==="working")controls=actions(button(source,"Check progress","refresh")+button(source,"Connect manually instead","manual")+button(source,"Cancel connection","cancel"));else if(current.connected&&!current.attention)controls=actions(button(source,"Check connection","read"));else controls=actions(button(source,current.actionLabel,current.action)+(current.kind==="attention"?button(source,"Refresh status","refresh"):""));const extra=["setup","reload","attention","working","unavailable"].includes(current.kind)?[row.message,row.nextStep||row.support?.nextStep].filter((text,index,all)=>typeof text==="string"&&text.trim()&&text!==current.description&&all.indexOf(text)===index).map(note).join(""):"";let manage="";if(runtime.canConnect){if(row.authorizationAvailable===true)manage+=button(source,"Reconnect or choose an account","authorize");if(definition&&!editing.has(source)&¤t.kind!=="setup")manage+=button(source,"Connection settings","show-setup");if(row.gmailWriteAvailable===true)manage+=button(source,"Enable Gmail write access","authorize-gmail-write");if(row.readwiseMcpWriteAvailable===true)manage+=button(source,"Enable Readwise write access","authorize-readwise-mcp");if(row.reconnectSavedAvailable===true)manage+=button(source,"Reconnect saved account","reconnect-saved")}return'<div class="p-callout" data-connection-state="'+esc(current.kind)+'"'+(busy.has(source)?' aria-busy="true"':"")+"><b>"+esc(current.title)+"</b><p>"+esc(current.description)+"</p>"+extra+controls+(errors.has(source)?'<p class="p-note" role="alert">'+esc(errors.get(source))+"</p>":"")+note(notices.get(source))+"</div>"+(manage?actions(manage):"")}function repaint(){clearTimeout(expiryTimer);if(disposed||!mounted)return;const{container,source,coverage}=mounted,active=container.contains(document.activeElement)?document.activeElement:null;const id=active?.id,action=active?.dataset?.connectionAction;container.innerHTML=html(source,coverage);const next=id?container.querySelector('[id="'+CSS.escape(id)+'"]'):action?container.querySelector('[data-connection-action="'+CSS.escape(action)+'"]'):null;next?.focus({preventScroll:true});const row=sourceReport(source),expiry=row?.state==="waiting-user"?Date.parse(row.authorizationExpiresAt):NaN;const pairExpiry=pairings.get(source)?.state!=="configured"?pairings.get(source)?.expiresAt:NaN;const nextExpiry=Math.min(...[expiry,pairExpiry].filter(value=>Number.isFinite(value)&&value>Date.now()));if(Number.isFinite(nextExpiry))expiryTimer=setTimeout(repaint,Math.min(2147483647,Math.max(1,nextExpiry-Date.now()+10)))}function unmount(){clearTimeout(expiryTimer);if(!mounted)return;const{container,click,submit,input}=mounted;container.removeEventListener("click",click);container.removeEventListener("submit",submit);container.removeEventListener("input",input);container.removeEventListener("change",input);mounted=null}function mount(container,source,coverage={}){unmount();if(disposed||!container)return;container.dataset.connectionPanel=source;const click=event=>{const target=event.target.closest("[data-connection-action]");if(!target||target.disabled||!container.contains(target))return;event.preventDefault();event.stopPropagation();const action=target.dataset.connectionAction;if(action==="show-setup"||action==="setup"){editing.add(source);collapsedSetup.delete(source);repaint();return}if(action==="hide-setup"){editing.delete(source);collapsedSetup.add(source);drafts.delete(source);repaint();return}if(action==="open"||action==="continue"){repaint();return}if(action==="refresh"){void check(source);return}if(action==="pair-start"){void perform(source,"configure-joplin",{selection:{phase:"start"}});return}if(action==="pair-cancel"){const pair=pairings.get(source);if(pair?.pairingId)void perform(source,"configure-joplin",{selection:{phase:"cancel",pairingId:pair.pairingId}});return}void perform(source,action)};const input=event=>{const form=event.target.closest("form[data-connection-form]");if(form&&container.contains(form))drafts.set(source,Object.fromEntries(new FormData(form)))};const submit=event=>{const form=event.target;if(!form.matches("form[data-connection-form]"))return;event.preventDefault();event.stopPropagation();if(busy.has(source)||!runtime.canConnect)return;const values=Object.fromEntries(new FormData(form));drafts.set(source,values);try{if(form.dataset.connectionForm==="setup"){const definition=setupFor(source,sourceReport(source));if(!definition)return;const body=setupRequest(definition,values);void perform(source,body.action,body)}else{const pair=pairings.get(source);if(!pair?.pairingId)return;const selection=form.dataset.connectionForm==="pair-inspect"?{phase:"inspect",pairingId:pair.pairingId,pluginPublicKey:String(values.pluginPublicKey).toLowerCase()}:{phase:"confirm",pairingId:pair.pairingId,port:Number(values.port),fingerprint:pair.fingerprint};void perform(source,"configure-joplin",{selection})}}catch(error){errors.set(source,error.message);repaint()}};mounted={container,source,coverage,click,submit,input};container.addEventListener("click",click);container.addEventListener("submit",submit);container.addEventListener("input",input);container.addEventListener("change",input);repaint()}return{refresh,getReport:()=>report,view,primary,mount,dispose(){if(disposed)return;disposed=true;revision++;lifetime.abort();unmount();busy.clear();errors.clear();editing.clear();collapsedSetup.clear();drafts.clear();pairings.clear();notices.clear();report=null}}}
|