@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.
Files changed (790) hide show
  1. package/README.md +129 -109
  2. package/dist/cli-run.js +1 -1
  3. package/dist/codex-setup.js +1 -1
  4. package/dist/connector-worker.js +1 -1
  5. package/dist/content-find.js +2 -0
  6. package/dist/ensure-ready.js +1 -0
  7. package/dist/gateway.js +1 -1
  8. package/dist/help-launch.js +1 -1
  9. package/dist/local-cloud-policy.js +1 -1
  10. package/dist/mcp.js +2 -2
  11. package/dist/onboarding.js +1 -1
  12. package/dist/operation-telemetry.js +1 -1
  13. package/dist/profile-upgrade.js +1 -1
  14. package/dist/public-tool.js +1 -0
  15. package/dist/recovery-progress.js +1 -1
  16. package/dist/recovery-text.js +1 -1
  17. package/dist/recovery.js +1 -1
  18. package/dist/resident-ensure-ready.js +1 -0
  19. package/dist/resident-host.js +2 -2
  20. package/dist/resident-jobs.js +1 -1
  21. package/dist/resident-platform.js +1 -1
  22. package/dist/resident-telemetry.js +1 -1
  23. package/dist/source-catalog.js +1 -1
  24. package/dist/startup.js +1 -2
  25. package/dist/supervised-sync.js +1 -1
  26. package/dist/tools.js +1 -1
  27. package/dist/update-cli.js +1 -1
  28. package/dist/web.js +2 -2
  29. package/node_modules/@zortexhq/plugin-auth-core/dist/device-admission.js +2 -2
  30. package/node_modules/@zortexhq/plugin-auth-core/dist/index.js +1 -1
  31. package/node_modules/@zortexhq/plugin-auth-core/package.json +1 -8
  32. package/node_modules/@zortexhq/plugin-auto-connect/dist/api/index.js +1 -1
  33. package/node_modules/@zortexhq/plugin-auto-connect/package.json +0 -3
  34. package/node_modules/@zortexhq/plugin-connector-calendar/dist/actions.js +1 -1
  35. package/node_modules/@zortexhq/plugin-connector-core/dist/api/index.js +1 -1
  36. package/node_modules/@zortexhq/plugin-connector-core/dist/enrollment.js +1 -1
  37. package/node_modules/@zortexhq/plugin-connector-core/dist/hub.js +1 -1
  38. package/node_modules/@zortexhq/plugin-connector-core/package.json +1 -3
  39. package/node_modules/@zortexhq/plugin-connector-fleet/dist/index.js +1 -1
  40. package/node_modules/@zortexhq/plugin-connector-fleet/package.json +1 -4
  41. package/node_modules/@zortexhq/plugin-connector-framework/dist/api/browser-authorization.js +1 -0
  42. package/node_modules/@zortexhq/plugin-connector-framework/dist/api/index.js +1 -1
  43. package/node_modules/@zortexhq/plugin-connector-framework/dist/runner.js +1 -1
  44. package/node_modules/@zortexhq/plugin-connector-framework/package.json +0 -3
  45. package/node_modules/@zortexhq/plugin-connector-level1/dist/additional-sources.js +1 -1
  46. package/node_modules/@zortexhq/plugin-connector-level1/dist/index.js +1 -1
  47. package/node_modules/@zortexhq/plugin-connector-level1/dist/matrix-login.js +1 -1
  48. package/node_modules/@zortexhq/plugin-connector-level1/dist/provisioning.js +1 -1
  49. package/node_modules/@zortexhq/plugin-connector-level1/dist/shallow.js +1 -1
  50. package/node_modules/@zortexhq/plugin-connector-level1/dist/sources.js +1 -1
  51. package/node_modules/@zortexhq/plugin-connector-level1/package.json +1 -4
  52. package/node_modules/@zortexhq/plugin-connector-notion/dist/broker.js +1 -1
  53. package/node_modules/@zortexhq/plugin-connector-notion/dist/index.js +1 -1
  54. package/node_modules/@zortexhq/plugin-connector-notion/dist/provider.js +1 -1
  55. package/node_modules/@zortexhq/plugin-connector-notion/package.json +1 -3
  56. package/node_modules/@zortexhq/plugin-connector-steam/dist/index.js +1 -1
  57. package/node_modules/@zortexhq/plugin-connector-steam/dist/provider.js +1 -1
  58. package/node_modules/@zortexhq/plugin-connector-steam/package.json +1 -3
  59. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/app-model.js +1 -1
  60. package/node_modules/@zortexhq/plugin-galaxy-ui/src/integration/connection-panel.js +1 -1
  61. package/node_modules/@zortexhq/plugin-google-auth/dist/index.js +1 -1
  62. package/node_modules/@zortexhq/plugin-google-auth/package.json +1 -3
  63. package/node_modules/@zortexhq/plugin-telemetry/dist/api/telemetry.js +1 -1
  64. package/node_modules/@zortexhq/plugin-vault-sqlite/dist/index.js +1 -1
  65. package/package.json +6 -20
  66. package/profiles/core.yml +0 -18
  67. package/release-provenance.json +27 -93
  68. package/update-manifest.json +362 -4744
  69. package/dist/cloud-action-proof.js +0 -1
  70. package/dist/cloud-device-host.js +0 -1
  71. package/dist/cloud-device-identity.js +0 -1
  72. package/dist/cloud-download-sink.js +0 -1
  73. package/dist/cloud-gmail-actions.js +0 -1
  74. package/dist/cloud-gmail-audit.js +0 -1
  75. package/dist/cloud-gmail-bound-audit-runner.js +0 -1
  76. package/dist/cloud-gmail-bound-epoch.js +0 -1
  77. package/dist/cloud-gmail-bound-identity.js +0 -1
  78. package/dist/cloud-gmail-bound-runner.js +0 -1
  79. package/dist/cloud-gmail-provider.js +0 -1
  80. package/dist/cloud-gmail-rpc.js +0 -1
  81. package/dist/cloud-gmail-sync.js +0 -1
  82. package/node_modules/@zortexhq/plugin-auth-core/dist/cloud-frame.js +0 -1
  83. package/node_modules/@zortexhq/plugin-auth-core/dist/cloud-vault-keyring.js +0 -1
  84. package/node_modules/@zortexhq/plugin-cloud-ai/dist/account.js +0 -1
  85. package/node_modules/@zortexhq/plugin-cloud-ai/dist/adopt.js +0 -1
  86. package/node_modules/@zortexhq/plugin-cloud-ai/dist/index.js +0 -1
  87. package/node_modules/@zortexhq/plugin-cloud-ai/dist/pack.js +0 -1
  88. package/node_modules/@zortexhq/plugin-cloud-ai/dist/publish.js +0 -1
  89. package/node_modules/@zortexhq/plugin-cloud-ai/dist/records.js +0 -1
  90. package/node_modules/@zortexhq/plugin-cloud-ai/package.json +0 -17
  91. package/node_modules/@zortexhq/plugin-cloud-vault/dist/device-trust.js +0 -1
  92. package/node_modules/@zortexhq/plugin-cloud-vault/dist/owner-admission.js +0 -1
  93. package/node_modules/@zortexhq/plugin-cloud-vault/package.json +0 -19
  94. package/node_modules/@zortexhq/plugin-connector-core/dist/api/browser-authorization.js +0 -1
  95. package/node_modules/@zortexhq/plugin-connector-framework/dist/api/original-miner.js +0 -1
  96. package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-codec.js +0 -2
  97. package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-fs.js +0 -1
  98. package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-move-worker.js +0 -1
  99. package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-move.js +0 -1
  100. package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-posix.js +0 -1
  101. package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-public.js +0 -1
  102. package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-replay.js +0 -1
  103. package/node_modules/@zortexhq/plugin-connector-framework/dist/checkpoint-store.js +0 -1
  104. package/node_modules/@zortexhq/plugin-connector-framework/dist/chromium-local/chromium-history.js +0 -1
  105. package/node_modules/@zortexhq/plugin-connector-framework/dist/chromium-local/index.js +0 -1
  106. package/node_modules/@zortexhq/plugin-connector-framework/dist/chromium-local/normalize-visit.js +0 -1
  107. package/node_modules/@zortexhq/plugin-connector-framework/dist/connection-health.js +0 -1
  108. package/node_modules/@zortexhq/plugin-connector-framework/dist/connector.js +0 -1
  109. package/node_modules/@zortexhq/plugin-connector-framework/dist/failure-type.js +0 -1
  110. package/node_modules/@zortexhq/plugin-connector-framework/dist/index.js +0 -1
  111. package/node_modules/@zortexhq/plugin-connector-framework/dist/windows-custody.js +0 -1
  112. package/node_modules/@zortexhq/plugin-connector-level1/dist/chatgpt.js +0 -1
  113. package/node_modules/@zortexhq/plugin-connector-level1/dist/signed-in.js +0 -1
  114. package/node_modules/@zortexhq/plugin-connector-social/dist/full-sync.js +0 -1
  115. package/node_modules/@zortexhq/plugin-connector-social/dist/index.js +0 -1
  116. package/node_modules/@zortexhq/plugin-connector-social/dist/provider.js +0 -1
  117. package/node_modules/@zortexhq/plugin-connector-social/dist/sites.js +0 -1
  118. package/node_modules/@zortexhq/plugin-connector-social/package.json +0 -22
  119. package/node_modules/@zortexhq/plugin-connector-steam/dist/browser-session.js +0 -1
  120. package/node_modules/@zortexhq/plugin-connectors/package.json +0 -17
  121. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/attached.js +0 -11
  122. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/browser.js +0 -1
  123. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/decision.js +0 -1
  124. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/extension-transport.js +0 -1
  125. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/feedback.js +0 -1
  126. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/google-oauth-bridge.js +0 -1
  127. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/google-oauth-driver.js +0 -1
  128. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/google-uia-decision.js +0 -1
  129. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/index.js +0 -1
  130. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/microsoft-oauth-bridge.js +0 -1
  131. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/microsoft-oauth-driver.js +0 -1
  132. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/page-inspect.js +0 -6
  133. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/runner.js +0 -1
  134. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/slack-oauth-bridge.js +0 -1
  135. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/slack-oauth-driver.js +0 -1
  136. package/node_modules/@zortexhq/plugin-jev-autopilot/dist/whatsapp-session.js +0 -1
  137. package/node_modules/@zortexhq/plugin-jev-autopilot/extension/manifest.json +0 -9
  138. package/node_modules/@zortexhq/plugin-jev-autopilot/package.json +0 -21
  139. package/node_modules/@zortexhq/plugin-jev-browser-driver/assets/ax-page.js +0 -1
  140. package/node_modules/@zortexhq/plugin-jev-browser-driver/assets/uia-page.ps1 +0 -545
  141. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/approved-control.js +0 -1
  142. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/attached-session.js +0 -8
  143. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/authorization-account-policy.js +0 -1
  144. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/authorization-memory.js +0 -1
  145. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/authorization-planner.js +0 -8
  146. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/authorization-task.js +0 -1
  147. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/browser-actions.js +0 -1
  148. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/browser-task.js +0 -7
  149. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/combined.js +0 -1
  150. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/decision.js +0 -5
  151. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/driver.js +0 -1
  152. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/google-oauth-driver.js +0 -1
  153. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/index.js +0 -1
  154. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/isolated-display.js +0 -1
  155. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/microsoft-oauth-driver.js +0 -1
  156. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/native-session.js +0 -1
  157. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/notion-oauth-driver.js +0 -1
  158. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/observe-log.js +0 -1
  159. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/operational-browser.js +0 -1
  160. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/page-settle.js +0 -1
  161. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/planned-oauth.js +0 -1
  162. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/session-routes.js +0 -1
  163. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/shared-session.js +0 -1
  164. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/site-read.js +0 -1
  165. package/node_modules/@zortexhq/plugin-jev-browser-driver/dist/slack-oauth-driver.js +0 -1
  166. package/node_modules/@zortexhq/plugin-jev-browser-driver/package.json +0 -20
  167. package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-oauth-background.cs +0 -492
  168. package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-oauth-guard-x64.build.json +0 -30
  169. package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-oauth-guard-x64.dll +0 -0
  170. package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-oauth-guard.c +0 -692
  171. package/node_modules/@zortexhq/plugin-oauth-browser-driver/assets/windows-uia-oauth.ps1 +0 -3840
  172. package/node_modules/@zortexhq/plugin-oauth-browser-driver/dist/api/index.js +0 -1
  173. package/node_modules/@zortexhq/plugin-oauth-browser-driver/dist/driver.js +0 -3
  174. package/node_modules/@zortexhq/plugin-oauth-browser-driver/dist/index.js +0 -1
  175. package/node_modules/@zortexhq/plugin-oauth-browser-driver/package.json +0 -19
  176. package/node_modules/chatgpt-web-mcp/.env.example +0 -30
  177. package/node_modules/chatgpt-web-mcp/CONTRIBUTING.md +0 -65
  178. package/node_modules/chatgpt-web-mcp/LICENSE +0 -21
  179. package/node_modules/chatgpt-web-mcp/README.en.md +0 -149
  180. package/node_modules/chatgpt-web-mcp/README.md +0 -194
  181. package/node_modules/chatgpt-web-mcp/SECURITY.md +0 -37
  182. package/node_modules/chatgpt-web-mcp/node_modules/zod/LICENSE +0 -21
  183. package/node_modules/chatgpt-web-mcp/node_modules/zod/README.md +0 -208
  184. package/node_modules/chatgpt-web-mcp/node_modules/zod/index.cjs +0 -33
  185. package/node_modules/chatgpt-web-mcp/node_modules/zod/index.d.cts +0 -4
  186. package/node_modules/chatgpt-web-mcp/node_modules/zod/index.d.ts +0 -4
  187. package/node_modules/chatgpt-web-mcp/node_modules/zod/index.js +0 -4
  188. package/node_modules/chatgpt-web-mcp/node_modules/zod/package.json +0 -118
  189. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/index.ts +0 -4
  190. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/ZodError.ts +0 -330
  191. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  192. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  193. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  194. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  195. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  196. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  197. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  198. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  199. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  200. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/errors.ts +0 -13
  201. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/external.ts +0 -6
  202. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  203. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  204. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  205. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  206. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  207. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/helpers/util.ts +0 -224
  208. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/index.ts +0 -4
  209. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/locales/en.ts +0 -124
  210. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/standard-schema.ts +0 -113
  211. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  212. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  213. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  214. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  215. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  216. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  217. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  218. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  219. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  220. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  221. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  222. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
  223. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  224. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  225. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  226. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  227. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  228. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  229. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  230. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  231. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  232. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  233. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/function.test.ts +0 -257
  234. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  235. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  236. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  237. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  238. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  239. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  240. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  241. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  242. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  243. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
  244. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  245. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  246. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  247. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  248. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  249. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  250. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  251. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  252. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  253. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  254. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  255. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  256. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  257. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  258. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  259. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  260. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  261. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  262. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  263. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  264. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  265. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  266. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  267. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  268. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  269. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  270. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  271. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  272. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v3/types.ts +0 -5136
  273. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/checks.ts +0 -30
  274. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  275. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/compat.ts +0 -66
  276. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/errors.ts +0 -75
  277. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/external.ts +0 -50
  278. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/index.ts +0 -5
  279. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/iso.ts +0 -90
  280. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/parse.ts +0 -33
  281. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
  282. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  283. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  284. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  285. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  286. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  287. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  288. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  289. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
  290. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
  291. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  292. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  293. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
  294. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  295. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
  296. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
  297. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
  298. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  299. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
  300. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  301. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
  302. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  303. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
  304. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
  305. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
  306. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  307. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
  308. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
  309. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
  310. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
  311. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  312. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
  313. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
  314. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  315. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  316. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
  317. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  318. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
  319. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
  320. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
  321. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
  322. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
  323. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
  324. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
  325. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
  326. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  327. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  328. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  329. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  330. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
  331. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
  332. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
  333. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
  334. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
  335. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
  336. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
  337. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
  338. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
  339. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
  340. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
  341. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
  342. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
  343. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
  344. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  345. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  346. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/api.ts +0 -1594
  347. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/checks.ts +0 -1283
  348. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/config.ts +0 -15
  349. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/core.ts +0 -134
  350. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/doc.ts +0 -44
  351. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/errors.ts +0 -424
  352. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/function.ts +0 -176
  353. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/index.ts +0 -15
  354. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/json-schema.ts +0 -143
  355. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/parse.ts +0 -94
  356. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/regexes.ts +0 -135
  357. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/registries.ts +0 -96
  358. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/schemas.ts +0 -3842
  359. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
  360. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  361. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  362. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  363. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  364. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  365. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
  366. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/util.ts +0 -775
  367. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/versions.ts +0 -5
  368. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/core/zsf.ts +0 -323
  369. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/index.ts +0 -4
  370. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ar.ts +0 -125
  371. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/az.ts +0 -121
  372. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/be.ts +0 -184
  373. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ca.ts +0 -127
  374. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/cs.ts +0 -142
  375. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/de.ts +0 -124
  376. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/en.ts +0 -127
  377. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/eo.ts +0 -125
  378. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/es.ts +0 -125
  379. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/fa.ts +0 -134
  380. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/fi.ts +0 -131
  381. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
  382. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/fr.ts +0 -124
  383. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/he.ts +0 -125
  384. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/hu.ts +0 -126
  385. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/id.ts +0 -125
  386. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/index.ts +0 -39
  387. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/it.ts +0 -125
  388. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ja.ts +0 -122
  389. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/kh.ts +0 -126
  390. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ko.ts +0 -131
  391. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/mk.ts +0 -127
  392. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ms.ts +0 -124
  393. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/nl.ts +0 -126
  394. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/no.ts +0 -124
  395. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ota.ts +0 -125
  396. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/pl.ts +0 -126
  397. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ps.ts +0 -133
  398. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/pt.ts +0 -123
  399. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ru.ts +0 -184
  400. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/sl.ts +0 -126
  401. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/sv.ts +0 -127
  402. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ta.ts +0 -125
  403. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/th.ts +0 -126
  404. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/tr.ts +0 -121
  405. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ua.ts +0 -126
  406. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/ur.ts +0 -126
  407. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/vi.ts +0 -125
  408. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
  409. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
  410. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/checks.ts +0 -32
  411. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/coerce.ts +0 -22
  412. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/external.ts +0 -40
  413. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/index.ts +0 -3
  414. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/iso.ts +0 -62
  415. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/parse.ts +0 -1
  416. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
  417. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  418. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
  419. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  420. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  421. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  422. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
  423. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
  424. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  425. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
  426. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  427. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  428. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
  429. package/node_modules/chatgpt-web-mcp/node_modules/zod/src/v4-mini/index.ts +0 -1
  430. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/ZodError.cjs +0 -138
  431. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/ZodError.d.cts +0 -164
  432. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/ZodError.d.ts +0 -164
  433. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/ZodError.js +0 -133
  434. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/errors.cjs +0 -17
  435. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/errors.d.cts +0 -5
  436. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/errors.d.ts +0 -5
  437. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/errors.js +0 -9
  438. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/external.cjs +0 -22
  439. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/external.d.cts +0 -6
  440. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/external.d.ts +0 -6
  441. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/external.js +0 -6
  442. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  443. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  444. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  445. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  446. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  447. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  448. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  449. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  450. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  451. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  452. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  453. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  454. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  455. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  456. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  457. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  458. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  459. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  460. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  461. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  462. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/util.cjs +0 -137
  463. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/util.d.cts +0 -85
  464. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/util.d.ts +0 -85
  465. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/helpers/util.js +0 -133
  466. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/index.cjs +0 -33
  467. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/index.d.cts +0 -4
  468. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/index.d.ts +0 -4
  469. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/index.js +0 -4
  470. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/locales/en.cjs +0 -111
  471. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/locales/en.d.cts +0 -3
  472. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/locales/en.d.ts +0 -3
  473. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/locales/en.js +0 -109
  474. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/standard-schema.cjs +0 -2
  475. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/standard-schema.d.cts +0 -102
  476. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/standard-schema.d.ts +0 -102
  477. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/standard-schema.js +0 -1
  478. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/types.cjs +0 -3775
  479. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/types.d.cts +0 -1031
  480. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/types.d.ts +0 -1031
  481. package/node_modules/chatgpt-web-mcp/node_modules/zod/v3/types.js +0 -3693
  482. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/checks.cjs +0 -32
  483. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/checks.d.cts +0 -1
  484. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/checks.d.ts +0 -1
  485. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/checks.js +0 -1
  486. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/coerce.cjs +0 -47
  487. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  488. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  489. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/coerce.js +0 -17
  490. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/compat.cjs +0 -57
  491. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/compat.d.cts +0 -46
  492. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/compat.d.ts +0 -46
  493. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/compat.js +0 -27
  494. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/errors.cjs +0 -67
  495. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/errors.d.cts +0 -30
  496. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/errors.d.ts +0 -30
  497. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/errors.js +0 -41
  498. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/external.cjs +0 -70
  499. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/external.d.cts +0 -13
  500. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/external.d.ts +0 -13
  501. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/external.js +0 -18
  502. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/index.cjs +0 -33
  503. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/index.d.cts +0 -4
  504. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/index.d.ts +0 -4
  505. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/index.js +0 -4
  506. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/iso.cjs +0 -60
  507. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/iso.d.cts +0 -22
  508. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/iso.d.ts +0 -22
  509. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/iso.js +0 -30
  510. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/parse.cjs +0 -32
  511. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/parse.d.cts +0 -23
  512. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/parse.d.ts +0 -23
  513. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/parse.js +0 -6
  514. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/schemas.cjs +0 -1109
  515. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/schemas.d.cts +0 -630
  516. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/schemas.d.ts +0 -630
  517. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/classic/schemas.js +0 -1006
  518. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/api.cjs +0 -1039
  519. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/api.d.cts +0 -284
  520. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/api.d.ts +0 -284
  521. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/api.js +0 -906
  522. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/checks.cjs +0 -591
  523. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/checks.d.cts +0 -278
  524. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/checks.d.ts +0 -278
  525. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/checks.js +0 -565
  526. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/core.cjs +0 -67
  527. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/core.d.cts +0 -49
  528. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/core.d.ts +0 -49
  529. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/core.js +0 -61
  530. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/doc.cjs +0 -39
  531. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/doc.d.cts +0 -14
  532. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/doc.d.ts +0 -14
  533. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/doc.js +0 -35
  534. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/errors.cjs +0 -226
  535. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/errors.d.cts +0 -208
  536. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/errors.d.ts +0 -208
  537. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/errors.js +0 -195
  538. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/function.cjs +0 -102
  539. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/function.d.cts +0 -52
  540. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/function.d.ts +0 -52
  541. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/function.js +0 -75
  542. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/index.cjs +0 -44
  543. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/index.d.cts +0 -15
  544. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/index.d.ts +0 -15
  545. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/index.js +0 -15
  546. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/json-schema.cjs +0 -2
  547. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/json-schema.d.cts +0 -87
  548. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/json-schema.d.ts +0 -87
  549. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/json-schema.js +0 -1
  550. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/parse.cjs +0 -87
  551. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/parse.d.cts +0 -25
  552. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/parse.d.ts +0 -25
  553. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/parse.js +0 -57
  554. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/regexes.cjs +0 -103
  555. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/regexes.d.cts +0 -62
  556. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/regexes.d.ts +0 -62
  557. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/regexes.js +0 -95
  558. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/registries.cjs +0 -56
  559. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/registries.d.cts +0 -35
  560. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/registries.d.ts +0 -35
  561. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/registries.js +0 -51
  562. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/schemas.cjs +0 -1748
  563. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/schemas.d.cts +0 -1041
  564. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/schemas.d.ts +0 -1041
  565. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/schemas.js +0 -1717
  566. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  567. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
  568. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
  569. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/standard-schema.js +0 -1
  570. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
  571. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
  572. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
  573. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/to-json-schema.js +0 -849
  574. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/util.cjs +0 -539
  575. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/util.d.cts +0 -183
  576. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/util.d.ts +0 -183
  577. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/util.js +0 -493
  578. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/versions.cjs +0 -8
  579. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/versions.d.cts +0 -5
  580. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/versions.d.ts +0 -5
  581. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/core/versions.js +0 -5
  582. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/index.cjs +0 -22
  583. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/index.d.cts +0 -3
  584. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/index.d.ts +0 -3
  585. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/index.js +0 -3
  586. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ar.cjs +0 -142
  587. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ar.d.cts +0 -4
  588. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ar.d.ts +0 -4
  589. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ar.js +0 -116
  590. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/az.cjs +0 -141
  591. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/az.d.cts +0 -4
  592. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/az.d.ts +0 -4
  593. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/az.js +0 -115
  594. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/be.cjs +0 -190
  595. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/be.d.cts +0 -4
  596. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/be.d.ts +0 -4
  597. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/be.js +0 -164
  598. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ca.cjs +0 -144
  599. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ca.d.cts +0 -4
  600. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ca.d.ts +0 -4
  601. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ca.js +0 -118
  602. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/cs.cjs +0 -161
  603. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/cs.d.cts +0 -4
  604. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/cs.d.ts +0 -4
  605. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/cs.js +0 -135
  606. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/de.cjs +0 -142
  607. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/de.d.cts +0 -4
  608. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/de.d.ts +0 -4
  609. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/de.js +0 -116
  610. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/en.cjs +0 -145
  611. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/en.d.cts +0 -5
  612. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/en.d.ts +0 -5
  613. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/en.js +0 -117
  614. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/eo.cjs +0 -144
  615. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/eo.d.cts +0 -5
  616. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/eo.d.ts +0 -5
  617. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/eo.js +0 -116
  618. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/es.cjs +0 -143
  619. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/es.d.cts +0 -4
  620. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/es.d.ts +0 -4
  621. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/es.js +0 -117
  622. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fa.cjs +0 -148
  623. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fa.d.cts +0 -4
  624. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fa.d.ts +0 -4
  625. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fa.js +0 -122
  626. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fi.cjs +0 -148
  627. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fi.d.cts +0 -4
  628. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fi.d.ts +0 -4
  629. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fi.js +0 -122
  630. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
  631. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  632. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  633. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr-CA.js +0 -117
  634. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr.cjs +0 -142
  635. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr.d.cts +0 -4
  636. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr.d.ts +0 -4
  637. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/fr.js +0 -116
  638. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/he.cjs +0 -143
  639. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/he.d.cts +0 -4
  640. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/he.d.ts +0 -4
  641. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/he.js +0 -117
  642. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/hu.cjs +0 -143
  643. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/hu.d.cts +0 -4
  644. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/hu.d.ts +0 -4
  645. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/hu.js +0 -117
  646. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/id.cjs +0 -142
  647. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/id.d.cts +0 -4
  648. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/id.d.ts +0 -4
  649. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/id.js +0 -116
  650. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/index.cjs +0 -84
  651. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/index.d.cts +0 -39
  652. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/index.d.ts +0 -39
  653. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/index.js +0 -39
  654. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/it.cjs +0 -143
  655. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/it.d.cts +0 -4
  656. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/it.d.ts +0 -4
  657. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/it.js +0 -117
  658. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ja.cjs +0 -141
  659. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ja.d.cts +0 -4
  660. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ja.d.ts +0 -4
  661. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ja.js +0 -115
  662. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/kh.cjs +0 -143
  663. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/kh.d.cts +0 -4
  664. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/kh.d.ts +0 -4
  665. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/kh.js +0 -117
  666. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ko.cjs +0 -147
  667. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ko.d.cts +0 -4
  668. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ko.d.ts +0 -4
  669. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ko.js +0 -121
  670. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/mk.cjs +0 -144
  671. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/mk.d.cts +0 -4
  672. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/mk.d.ts +0 -4
  673. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/mk.js +0 -118
  674. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ms.cjs +0 -142
  675. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ms.d.cts +0 -4
  676. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ms.d.ts +0 -4
  677. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ms.js +0 -116
  678. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/nl.cjs +0 -143
  679. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/nl.d.cts +0 -4
  680. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/nl.d.ts +0 -4
  681. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/nl.js +0 -117
  682. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/no.cjs +0 -142
  683. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/no.d.cts +0 -4
  684. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/no.d.ts +0 -4
  685. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/no.js +0 -116
  686. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ota.cjs +0 -143
  687. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ota.d.cts +0 -4
  688. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ota.d.ts +0 -4
  689. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ota.js +0 -117
  690. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pl.cjs +0 -143
  691. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pl.d.cts +0 -4
  692. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pl.d.ts +0 -4
  693. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pl.js +0 -117
  694. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ps.cjs +0 -148
  695. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ps.d.cts +0 -4
  696. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ps.d.ts +0 -4
  697. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ps.js +0 -122
  698. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pt.cjs +0 -142
  699. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pt.d.cts +0 -4
  700. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pt.d.ts +0 -4
  701. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/pt.js +0 -116
  702. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ru.cjs +0 -190
  703. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ru.d.cts +0 -4
  704. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ru.d.ts +0 -4
  705. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ru.js +0 -164
  706. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sl.cjs +0 -143
  707. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sl.d.cts +0 -4
  708. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sl.d.ts +0 -4
  709. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sl.js +0 -117
  710. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sv.cjs +0 -144
  711. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sv.d.cts +0 -4
  712. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sv.d.ts +0 -4
  713. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/sv.js +0 -118
  714. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ta.cjs +0 -143
  715. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ta.d.cts +0 -4
  716. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ta.d.ts +0 -4
  717. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ta.js +0 -117
  718. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/th.cjs +0 -143
  719. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/th.d.cts +0 -4
  720. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/th.d.ts +0 -4
  721. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/th.js +0 -117
  722. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/tr.cjs +0 -143
  723. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/tr.d.cts +0 -5
  724. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/tr.d.ts +0 -5
  725. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/tr.js +0 -115
  726. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ua.cjs +0 -143
  727. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ua.d.cts +0 -4
  728. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ua.d.ts +0 -4
  729. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ua.js +0 -117
  730. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ur.cjs +0 -143
  731. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ur.d.cts +0 -4
  732. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ur.d.ts +0 -4
  733. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/ur.js +0 -117
  734. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/vi.cjs +0 -142
  735. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/vi.d.cts +0 -4
  736. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/vi.d.ts +0 -4
  737. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/vi.js +0 -116
  738. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
  739. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  740. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  741. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-CN.js +0 -116
  742. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
  743. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  744. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  745. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/locales/zh-TW.js +0 -117
  746. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/checks.cjs +0 -34
  747. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/checks.d.cts +0 -1
  748. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/checks.d.ts +0 -1
  749. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/checks.js +0 -1
  750. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/coerce.cjs +0 -47
  751. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  752. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  753. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/coerce.js +0 -17
  754. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/external.cjs +0 -62
  755. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/external.d.cts +0 -11
  756. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/external.d.ts +0 -11
  757. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/external.js +0 -13
  758. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/index.cjs +0 -32
  759. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/index.d.cts +0 -3
  760. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/index.d.ts +0 -3
  761. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/index.js +0 -3
  762. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/iso.cjs +0 -60
  763. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/iso.d.cts +0 -22
  764. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/iso.d.ts +0 -22
  765. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/iso.js +0 -30
  766. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/parse.cjs +0 -8
  767. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/parse.d.cts +0 -1
  768. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/parse.d.ts +0 -1
  769. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/parse.js +0 -1
  770. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/schemas.cjs +0 -839
  771. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/schemas.d.cts +0 -356
  772. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/schemas.d.ts +0 -356
  773. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4/mini/schemas.js +0 -732
  774. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4-mini/index.cjs +0 -17
  775. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4-mini/index.d.cts +0 -1
  776. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4-mini/index.d.ts +0 -1
  777. package/node_modules/chatgpt-web-mcp/node_modules/zod/v4-mini/index.js +0 -1
  778. package/node_modules/chatgpt-web-mcp/package.json +0 -50
  779. package/node_modules/chatgpt-web-mcp/scripts/doctor.js +0 -40
  780. package/node_modules/chatgpt-web-mcp/scripts/inspect.js +0 -16
  781. package/node_modules/chatgpt-web-mcp/scripts/login.js +0 -32
  782. package/node_modules/chatgpt-web-mcp/scripts/smoke-mcp.js +0 -26
  783. package/node_modules/chatgpt-web-mcp/src/browser.js +0 -4670
  784. package/node_modules/chatgpt-web-mcp/src/cli.js +0 -27
  785. package/node_modules/chatgpt-web-mcp/src/config.js +0 -210
  786. package/node_modules/chatgpt-web-mcp/src/errors.js +0 -20
  787. package/node_modules/chatgpt-web-mcp/src/index.js +0 -381
  788. package/node_modules/chatgpt-web-mcp/src/login-lifecycle.js +0 -39
  789. package/node_modules/chatgpt-web-mcp/src/selectors.js +0 -151
  790. package/profiles/social-worker.yml +0 -18
@@ -1 +0,0 @@
1
- import{awaitPageChange,observeWithRetry,reasonCode}from"./page-settle.js";const CONSENT=/^(allow|install|authorize|允許|允许|安裝|安装|授權|授权)$/i;export function validateSlackRequest(request){if(!request||typeof request.authorizationUrl!=="string"||typeof request.clientId!=="string"||!/^[0-9]+\.[0-9]+$/.test(request.clientId)||typeof request.redirectUri!=="string"||typeof request.appName!=="string"||request.appName!=="Zortex"||!Number.isInteger(request.timeoutMs)||request.timeoutMs<1e3||request.timeoutMs>9e5){throw new Error("Invalid Slack OAuth request.")}const url=new URL(request.authorizationUrl);const redirect=new URL(request.redirectUri);if(url.origin!=="https://slack.com"||url.pathname!=="/oauth/v2/authorize"||url.username||url.password||url.hash||url.searchParams.get("client_id")!==request.clientId||!url.searchParams.get("state")||url.searchParams.get("redirect_uri")!==request.redirectUri||!(redirect.protocol==="https:"||redirect.protocol==="http:"&&redirect.hostname==="localhost"&&!!redirect.port&&!redirect.search)||redirect.username||redirect.password||redirect.hash||redirect.origin==="https://slack.com"||redirect.origin==="https://app.slack.com"){throw new Error("Invalid Slack authorization URL or callback.")}return{url,redirect}}function slackPage(current){return current.protocol==="https:"&&!current.port&&!current.username&&!current.password&&(current.hostname==="slack.com"||/^[a-z0-9][a-z0-9-]*\.slack\.com$/.test(current.hostname))}function callbackMatches(current,redirect,state){return current.origin===redirect.origin&&current.pathname===redirect.pathname&&current.searchParams.get("state")===state&&!!current.searchParams.get("code")&&!current.searchParams.has("error")}function candidate(snapshot){const heading=snapshot.headings?.filter(text=>/\bZortex\b/i.test(text))??[];if(heading.length===0||!/\bZortex\b/i.test(snapshot.text))return void 0;const controls=snapshot.controls.filter(control=>control.enabled!==false&&control.role==="button"&&CONSENT.test(control.label.trim()));return controls.length===1?controls[0]:void 0}export async function driveSlackOAuth(request,open,jev,signal){const{url,redirect}=validateSlackRequest(request);const state=url.searchParams.get("state");const deadline=Date.now()+request.timeoutMs;let browser;let cleanupFailed=false;let outcome={state:"ui_drift",reason:"step_limit"};try{try{browser=await open(url.href)}catch(error){return{state:"login_required",reason:reasonCode(error,"browser_session_unavailable")}}let pressed=false,submitting=0;for(let step=0;step<12&&Date.now()<deadline;step++){if(signal?.aborted){outcome={state:"ui_drift",reason:"cancelled"};break}let snapshot;try{snapshot=await observeWithRetry(browser,deadline,signal)}catch{outcome={state:"ui_drift",reason:"observation_failed"};break}let current;try{current=new URL(snapshot.url)}catch{outcome={state:"ui_drift",reason:"invalid_page"};break}if(current.origin===redirect.origin){outcome=callbackMatches(current,redirect,state)?{state:"completed"}:{state:"ui_drift",reason:"callback_mismatch"};break}if(!slackPage(current)||current.searchParams.has("client_id")&&current.searchParams.get("client_id")!==request.clientId||current.searchParams.has("state")&&current.searchParams.get("state")!==state){outcome={state:"ui_drift",reason:"origin_or_transaction_changed"};break}const target=candidate(snapshot);if(!target&&submitting++<(pressed?60:32)&&Date.now()+250<deadline){await new Promise(resolve=>setTimeout(resolve,250));step--;continue}if(!target){outcome={state:"ui_drift",reason:pressed?"consent_submit_stalled":"consent_unavailable"};break}const generic={id:target.id,role:"button",label:"Allow approved Slack connection",enabled:true};let decision;try{decision=await jev.choose("Continue the approved Slack connection",{url:"https://slack.com",title:"Slack authorization",text:"",controls:[generic]},[],signal)}catch{outcome={state:"ui_drift",reason:"jev_unavailable"};break}if(decision.action!=="click"||decision.id!==generic.id||signal?.aborted||Date.now()>=deadline){outcome={state:"ui_drift",reason:"invalid_jev_choice"};break}let fresh;try{fresh=await observeWithRetry(browser,deadline,signal)}catch{outcome={state:"ui_drift",reason:"observation_failed"};break}const exact=candidate(fresh);if(fresh.url!==snapshot.url||!exact||exact.id!==target.id||exact.label!==target.label||exact.role!==target.role||exact.href!==target.href){outcome={state:"ui_drift",reason:"stale_control"};break}try{if(!await browser.act({...exact,pageUrl:fresh.url},"click")){outcome={state:"ui_drift",reason:"click_failed"};break}}catch{outcome={state:"ui_drift",reason:"click_failed"};break}pressed=true;submitting=0;await awaitPageChange(browser,fresh,exact,deadline,signal)}}finally{if(browser)try{await browser.close()}catch{cleanupFailed=true}}return cleanupFailed?{state:"ui_drift",reason:"browser_cleanup_failed"}:outcome}
@@ -1,20 +0,0 @@
1
- {
2
- "name": "@zortexhq/plugin-jev-browser-driver",
3
- "version": "0.1.0",
4
- "type": "module",
5
- "exports": {
6
- ".": {
7
- "default": "./dist/index.js"
8
- }
9
- },
10
- "dependencies": {
11
- "@zortexhq/plugin-jev-autopilot": "0.1.0",
12
- "@zortexhq/plugin-connector-core": "0.1.0",
13
- "@zortexhq/plugin-connector-framework": "0.1.0",
14
- "@zortexhq/plugin-oauth-browser-driver": "0.1.0",
15
- "@zortexhq/plugin-telemetry": "0.1.0"
16
- },
17
- "zortex": {
18
- "role": "plugin"
19
- }
20
- }
@@ -1,492 +0,0 @@
1
- using System;
2
- using System.Collections.Generic;
3
- using System.Runtime.InteropServices;
4
- using System.Text;
5
- using Accessibility;
6
- using System.Windows.Automation;
7
-
8
- [ComImport, Guid("56FDF342-FD6D-11d0-958A-006097C9A090"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
9
- interface ITaskbarList { void HrInit(); void AddTab(IntPtr hwnd); void DeleteTab(IntPtr hwnd); void ActivateTab(IntPtr hwnd); void SetActiveAlt(IntPtr hwnd); }
10
- [ComImport, Guid("56FDF344-FD6D-11d0-958A-006097C9A090")] class TaskbarList {}
11
-
12
- // No browser content is read until the controller has proved the OAuth tab.
13
- // Native parent associations and destroy generations identify the one renderer.
14
- public static class OAuthBackground {
15
- [StructLayout(LayoutKind.Sequential)] public struct Stats {
16
- public int Created,Activated,Blocked,Passed,Overflow,Expired;
17
- public ulong Bound,Renderer;
18
- public int Generation,RendererSeen,RendererCaptured,RendererDestroyed,RendererAmbiguous;
19
- public int RendererShowMessages,RendererPositionMessages,RendererAssociations;
20
- public int RootAmbiguous,RootMessageBindings;
21
- public int AbiVersion,ControllerAlive,LeaseActive,Stopped,HeartbeatCount,StopReason;
22
- public ulong LeaseRemainingMs,AbsoluteRemainingMs;
23
- }
24
- public sealed class WindowId { public long Hwnd; public uint Pid,Tid; }
25
- delegate bool EnumProc(IntPtr hwnd,IntPtr ignored);
26
- [UnmanagedFunctionPointer(CallingConvention.Winapi,CharSet=CharSet.Unicode)] delegate uint StartFn(uint tid,uint pid,string nonce);
27
- [UnmanagedFunctionPointer(CallingConvention.Winapi)] delegate uint ReadFn(out Stats stats,uint bytes);
28
- [UnmanagedFunctionPointer(CallingConvention.Winapi)] delegate uint HistoryFn(IntPtr buffer,uint bytes);
29
- [UnmanagedFunctionPointer(CallingConvention.Winapi)] delegate uint SimpleFn();
30
- [UnmanagedFunctionPointer(CallingConvention.Winapi)] delegate uint RaisedFn(uint raised);
31
- static IntPtr module;
32
- static StartFn start;
33
- static ReadFn read;
34
- static HistoryFn history;
35
- static SimpleFn heartbeat,stop,rejectReason;
36
- static RaisedFn raised;
37
- public static bool Raised;
38
- static System.Threading.Thread keeper;
39
- static volatile bool keeperStop;
40
- static volatile bool actionStop;
41
- static System.Threading.Tasks.Task<string> cancellationSignal;
42
- sealed class PageContext {
43
- public IntPtr Root; public uint Pid,Tid; public string Nonce,Tab,Url; public int Generation;
44
- }
45
- static PageContext pageContext;
46
- public enum PageFailure { None=0,ContextMissing=1,ContextRoot=2,Cancelled=3,ContextInvalid=4,NativeRead=5,EpochBefore=6,RendererBefore=7,SnapshotMismatch=8,ContextChanged=9,CancelledAfter=10,EpochAfter=11,ActionMetadata=12 }
47
- static PageFailure pageFailure;
48
- static long snapshotMs=-1;
49
- static int snapshotComplete=-1,snapshotTabs=-1,snapshotSameTab=-1,snapshotSameUrl=-1;
50
- public static int KeepAliveError;
51
- [DllImport("kernel32.dll",CharSet=CharSet.Unicode,SetLastError=true)] static extern IntPtr LoadLibraryExW(string path,IntPtr reserved,uint flags);
52
- [DllImport("kernel32.dll",CharSet=CharSet.Ansi,ExactSpelling=true)] static extern IntPtr GetProcAddress(IntPtr module,string name);
53
- [DllImport("kernel32.dll")] static extern bool FreeLibrary(IntPtr module);
54
- [DllImport("kernel32.dll",SetLastError=true)] static extern IntPtr OpenProcess(uint access,bool inherit,uint pid);
55
- [DllImport("kernel32.dll")] static extern bool CloseHandle(IntPtr handle);
56
- [DllImport("kernel32.dll",SetLastError=true)] static extern bool IsWow64Process2(IntPtr process,out ushort processMachine,out ushort nativeMachine);
57
- [DllImport("user32.dll")] static extern bool EnumWindows(EnumProc callback,IntPtr ignored);
58
- [DllImport("user32.dll")] static extern uint GetWindowThreadProcessId(IntPtr hwnd,out uint pid);
59
- [DllImport("user32.dll")] public static extern bool IsWindow(IntPtr hwnd);
60
- [DllImport("user32.dll")] static extern bool IsWindowVisible(IntPtr hwnd);
61
- [DllImport("user32.dll")] public static extern bool IsIconic(IntPtr hwnd);
62
- [DllImport("user32.dll")] static extern IntPtr GetForegroundWindow();
63
- [DllImport("user32.dll")] static extern bool SetForegroundWindow(IntPtr hwnd);
64
- public static int ForegroundReturned;
65
- [DllImport("user32.dll")] static extern IntPtr GetAncestor(IntPtr hwnd,uint flags);
66
- [DllImport("user32.dll")] static extern bool IsChild(IntPtr parent,IntPtr child);
67
- [DllImport("user32.dll",CharSet=CharSet.Unicode)] static extern int GetClassNameW(IntPtr hwnd,StringBuilder text,int max);
68
- [DllImport("user32.dll",CharSet=CharSet.Unicode)] static extern int GetWindowTextW(IntPtr hwnd,StringBuilder text,int max);
69
- [DllImport("user32.dll")] static extern int GetWindowTextLengthW(IntPtr hwnd);
70
- [DllImport("user32.dll",SetLastError=true)] static extern bool ShowWindowAsync(IntPtr hwnd,int command);
71
- [DllImport("user32.dll",SetLastError=true)] static extern bool SetWindowPos(IntPtr hwnd,IntPtr after,int x,int y,int cx,int cy,uint flags);
72
- [DllImport("user32.dll",EntryPoint="GetWindowLongPtrW")] static extern IntPtr GetWindowLongPtr(IntPtr hwnd,int index);
73
- [DllImport("user32.dll",EntryPoint="SetWindowLongPtrW",SetLastError=true)] static extern IntPtr SetWindowLongPtr(IntPtr hwnd,int index,IntPtr value);
74
- [DllImport("user32.dll",SetLastError=true)] static extern bool PostMessageW(IntPtr hwnd,uint message,IntPtr wp,IntPtr lp);
75
- [DllImport("user32.dll",SetLastError=true)] static extern IntPtr SendMessageTimeoutW(IntPtr hwnd,uint msg,IntPtr wp,IntPtr lp,uint flags,uint timeout,out IntPtr result);
76
- [StructLayout(LayoutKind.Sequential,CharSet=CharSet.Unicode)] struct StartupInfo {
77
- public int cb; public string reserved,desktop,title; public int x,y,width,height,columns,rows,fill,flags;
78
- public short show,reserved2; public IntPtr reserved3,input,output,error; }
79
- [StructLayout(LayoutKind.Sequential)] struct ProcessInfo { public IntPtr process,thread; public int pid,tid; }
80
- [DllImport("kernel32.dll",CharSet=CharSet.Unicode,SetLastError=true)] static extern bool CreateProcessW(string application,StringBuilder command,IntPtr processAttributes,IntPtr threadAttributes,bool inherit,uint flags,IntPtr environment,string directory,ref StartupInfo startup,out ProcessInfo info);
81
- [DllImport("oleacc.dll")] static extern int AccessibleObjectFromWindow(IntPtr hwnd,uint objectId,ref Guid iid,[MarshalAs(UnmanagedType.Interface)] out IAccessible accessible);
82
-
83
- static T Export<T>(string name) where T:class {
84
- IntPtr address=GetProcAddress(module,name);
85
- if(address==IntPtr.Zero) throw new InvalidOperationException("guard-export-missing");
86
- return (T)(object)Marshal.GetDelegateForFunctionPointer(address,typeof(T));
87
- }
88
- // Starts the browser the way a "Run: Minimized" shortcut does: SW_SHOWMINNOACTIVE (7) through STARTF_USESHOWWINDOW,
89
- // so its first window opens minimized and the person's foreground window keeps focus. Returns the pid, or 0.
90
- public static int StartMinimizedNoActivate(string application,string command) {
91
- var startup=new StartupInfo(); startup.cb=Marshal.SizeOf(typeof(StartupInfo)); startup.flags=1; startup.show=7;
92
- ProcessInfo info;
93
- if(!CreateProcessW(application,new StringBuilder(command),IntPtr.Zero,IntPtr.Zero,false,0,IntPtr.Zero,null,ref startup,out info)) return 0;
94
- CloseHandle(info.process); CloseHandle(info.thread); return info.pid;
95
- }
96
- public static void Load(string absolutePath) {
97
- if(module!=IntPtr.Zero) return;
98
- if(!Environment.Is64BitProcess || !System.IO.Path.IsPathRooted(absolutePath) || Marshal.SizeOf(typeof(Stats))!=120)
99
- throw new InvalidOperationException("guard-architecture-unsupported");
100
- // An absolute packaged asset, with dependencies resolved from system/default
101
- // directories; never accept a page-supplied path or change the DLL directory.
102
- module=LoadLibraryExW(absolutePath,IntPtr.Zero,0x00000100|0x00001000);
103
- if(module==IntPtr.Zero) throw new InvalidOperationException("guard-load-failed");
104
- try { start=Export<StartFn>("StartGuard");read=Export<ReadFn>("ReadGuardStats");history=Export<HistoryFn>("ReadAcceptedRendererHistory");heartbeat=Export<SimpleFn>("HeartbeatGuard");stop=Export<SimpleFn>("StopGuard");rejectReason=Export<SimpleFn>("ReadRendererRejectReason");raised=Export<RaisedFn>("SetGuardRaised"); }
105
- catch { FreeLibrary(module);module=IntPtr.Zero;throw; }
106
- }
107
- public static uint Start(uint tid,uint pid,string nonce) { return start(tid,pid,nonce); }
108
- public static uint Heartbeat() { return heartbeat(); }
109
- public sealed class RendererHistoryEntry {
110
- public long Hwnd;
111
- public int Lifetime,AcceptedGeneration,Destroyed,ActivationSeen,ActivationBlocked,FocusSeen;
112
- }
113
- public sealed class RendererHistoryDiagnostic {
114
- public uint ReadError;
115
- public int Version,Count,Dropped;
116
- public RendererHistoryEntry[] Records=new RendererHistoryEntry[0];
117
- }
118
- public static RendererHistoryDiagnostic AcceptedRendererHistory() {
119
- const int bytes=2064;
120
- var result=new RendererHistoryDiagnostic();
121
- IntPtr buffer=Marshal.AllocHGlobal(bytes);
122
- try {
123
- result.ReadError=history(buffer,bytes);
124
- if(result.ReadError!=0)return result;
125
- result.Version=Marshal.ReadInt32(buffer,0);result.Count=Marshal.ReadInt32(buffer,4);result.Dropped=Marshal.ReadInt32(buffer,8);
126
- if(result.Version!=1 || result.Count<0 || result.Count>64 || result.Dropped<0 || Marshal.ReadInt32(buffer,12)!=0) { result.ReadError=13;result.Records=new RendererHistoryEntry[0];return result; }
127
- var rows=new RendererHistoryEntry[result.Count];
128
- for(int i=0;i<rows.Length;i++) {
129
- int offset=16+i*32;
130
- rows[i]=new RendererHistoryEntry { Hwnd=Marshal.ReadInt64(buffer,offset),Lifetime=Marshal.ReadInt32(buffer,offset+8),AcceptedGeneration=Marshal.ReadInt32(buffer,offset+12),Destroyed=Marshal.ReadInt32(buffer,offset+16),ActivationSeen=Marshal.ReadInt32(buffer,offset+20),ActivationBlocked=Marshal.ReadInt32(buffer,offset+24),FocusSeen=Marshal.ReadInt32(buffer,offset+28) };
131
- }
132
- result.Records=rows;return result;
133
- } finally { Marshal.FreeHGlobal(buffer); }
134
- }
135
- public static void BeginKeepAlive(int timeoutMs,System.Threading.Tasks.Task<string> cancellation) {
136
- if(keeper!=null || timeoutMs<1000 || timeoutMs>900000) throw new InvalidOperationException("guard-lifecycle-invalid");
137
- keeperStop=false;actionStop=false;KeepAliveError=0;cancellationSignal=cancellation;
138
- keeper=new System.Threading.Thread(delegate() {
139
- var clock=System.Diagnostics.Stopwatch.StartNew();
140
- IntPtr lastForeground=GetForegroundWindow();int emptyTicks=0;
141
- while(!keeperStop && clock.ElapsedMilliseconds<timeoutMs) {
142
- if(cancellation.IsCanceled || cancellation.IsFaulted ||
143
- (cancellation.IsCompleted && (cancellation.Result==null || cancellation.Result=="cancel"))) break;
144
- uint error=Heartbeat();
145
- if(error!=0) { KeepAliveError=(int)error;break; }
146
- ReturnEmptyForeground(ref lastForeground,ref emptyTicks);
147
- System.Threading.Thread.Sleep(250);
148
- }
149
- actionStop=true;
150
- });
151
- keeper.IsBackground=true;keeper.Start();
152
- }
153
- // The native veto stops Chrome activating the guarded window, but Windows has already taken the foreground from
154
- // the person's window, leaving none: their typing goes nowhere. With no foreground window any process may set one,
155
- // so the window they were using gets it back. Only then, only that window, and never the guarded one.
156
- static void ReturnEmptyForeground(ref IntPtr lastForeground,ref int emptyTicks) {
157
- IntPtr foreground=GetForegroundWindow();
158
- Stats stats;
159
- IntPtr bound=Read(out stats)==0 ? new IntPtr((long)stats.Bound) : IntPtr.Zero;
160
- if(foreground!=IntPtr.Zero) { if(foreground!=bound) lastForeground=foreground;emptyTicks=0;return; }
161
- if(lastForeground==IntPtr.Zero || lastForeground==bound || !IsWindow(lastForeground) || !IsWindowVisible(lastForeground) || IsIconic(lastForeground)) return;
162
- if(++emptyTicks<2) return;
163
- emptyTicks=0;
164
- if(GetForegroundWindow()==IntPtr.Zero && SetForegroundWindow(lastForeground)) ForegroundReturned++;
165
- }
166
- public static bool EndKeepAlive() { keeperStop=true;return keeper==null || keeper.Join(500); }
167
- public static bool CanAct() {
168
- var signal=cancellationSignal;
169
- return !actionStop && signal!=null && !signal.IsCanceled && !signal.IsFaulted &&
170
- !(signal.IsCompleted && (signal.Result==null || signal.Result=="cancel"));
171
- }
172
- public static uint Read(out Stats stats) {
173
- stats=new Stats();
174
- if(read==null) return 6;
175
- uint error=read(out stats,120);
176
- return error==0 && stats.AbiVersion!=1 ? 87 : error;
177
- }
178
- public static uint Stop() { return stop==null ? 6 : stop(); }
179
- public static uint RendererRejectReason() { return rejectReason==null ? UInt32.MaxValue : rejectReason(); }
180
- public static bool X64(uint pid) {
181
- IntPtr process=OpenProcess(0x1000,false,pid);
182
- if(process==IntPtr.Zero) return false;
183
- try { ushort machine,native;return IsWow64Process2(process,out machine,out native) && (machine==0 ? native : machine)==0x8664; }
184
- finally { CloseHandle(process); }
185
- }
186
- public static WindowId[] BrowserWindows(uint pid) {
187
- var result=new List<WindowId>();
188
- EnumWindows(delegate(IntPtr h,IntPtr ignored) {
189
- uint owner;uint tid=GetWindowThreadProcessId(h,out owner);
190
- var cls=new StringBuilder(128);GetClassNameW(h,cls,128);
191
- if(owner==pid && IsWindowVisible(h) && cls.ToString()=="Chrome_WidgetWin_1") result.Add(new WindowId {Hwnd=h.ToInt64(),Pid=owner,Tid=tid});
192
- return true;
193
- },IntPtr.Zero);
194
- return result.ToArray();
195
- }
196
- // A browser kept running without a window (background apps) still owns one hidden power window on its UI
197
- // thread; the new authorization window is created on that same thread.
198
- public static WindowId[] HiddenBrowserThreads(uint pid) {
199
- var result=new List<WindowId>();
200
- EnumWindows(delegate(IntPtr h,IntPtr ignored) {
201
- uint owner;uint tid=GetWindowThreadProcessId(h,out owner);
202
- var cls=new StringBuilder(128);GetClassNameW(h,cls,128);
203
- if(owner==pid && !IsWindowVisible(h) && cls.ToString()=="Base_PowerMessageWindow") result.Add(new WindowId {Hwnd=h.ToInt64(),Pid=owner,Tid=tid});
204
- return true;
205
- },IntPtr.Zero);
206
- return result.ToArray();
207
- }
208
- public static bool Owned(IntPtr root,uint pid,uint tid,string nonce) {
209
- uint owner;
210
- if(!IsWindow(root) || GetWindowThreadProcessId(root,out owner)!=tid || owner!=pid || nonce==null || nonce.Length!=32) return false;
211
- var cls=new StringBuilder(128);GetClassNameW(root,cls,128);
212
- if(cls.ToString()!="Chrome_WidgetWin_1" || GetWindowTextLengthW(root)!=32) return false;
213
- var text=new StringBuilder(33);
214
- return GetWindowTextW(root,text,33)==32 && text.ToString()==nonce;
215
- }
216
- static bool BoundIdentity(IntPtr root,uint pid,uint tid) {
217
- uint owner;
218
- if(!IsWindow(root) || GetWindowThreadProcessId(root,out owner)!=tid || owner!=pid) return false;
219
- var cls=new StringBuilder(128);GetClassNameW(root,cls,128);
220
- return cls.ToString()=="Chrome_WidgetWin_1";
221
- }
222
- public static bool Valid(IntPtr root,uint pid,uint tid,string nonce) {
223
- Stats stats;
224
- return RootValid(root,pid,tid,nonce) && Read(out stats)==0 && stats.RendererAmbiguous==0;
225
- }
226
- public static bool RootValid(IntPtr root,uint pid,uint tid,string nonce) {
227
- Stats stats;
228
- return nonce!=null && nonce.Length==32 && BoundIdentity(root,pid,tid) && Read(out stats)==0 && stats.Bound==(ulong)root.ToInt64() &&
229
- stats.LeaseActive==1 && stats.ControllerAlive==1 && stats.Stopped==0 && stats.RootAmbiguous==0 &&
230
- stats.Overflow==0;
231
- }
232
- public static bool RendererValid(IntPtr root,uint pid,uint tid,string nonce,Stats previous) {
233
- if(!Valid(root,pid,tid,nonce) || previous.Renderer==0 || previous.Generation<=0 || (previous.Generation&1)!=0) return false;
234
- Stats current;
235
- if(Read(out current)!=0 || current.Renderer!=previous.Renderer || current.Generation!=previous.Generation) return false;
236
- var renderer=new IntPtr((long)previous.Renderer);uint owner;
237
- var cls=new StringBuilder(128);GetClassNameW(renderer,cls,128);
238
- if(!IsWindow(renderer) || GetWindowThreadProcessId(renderer,out owner)!=tid || owner!=pid || cls.ToString()!="Chrome_RenderWidgetHostHWND") return false;
239
- if(IsChild(root,renderer)) return true;
240
- IntPtr parent=GetAncestor(renderer,2);
241
- // Reparenting to the browser's hidden window is allowed only because the
242
- // native hook already proved this child's relationship and destroy epoch.
243
- return parent!=IntPtr.Zero && !IsWindowVisible(parent);
244
- }
245
- public static bool RequestAccessibility(IntPtr root,uint pid,uint tid,string nonce) {
246
- if(!CanAct()) return false;
247
- Stats snapshot;
248
- if(Read(out snapshot)!=0 || !RendererValid(root,pid,tid,nonce,snapshot)) return false;
249
- IntPtr renderer=new IntPtr((long)snapshot.Renderer),ignored;
250
- SendMessageTimeoutW(renderer,0x003D,IntPtr.Zero,new IntPtr(1),0x0003,100,out ignored);
251
- if(!RendererValid(root,pid,tid,nonce,snapshot)) return false;
252
- IAccessible accessible=null;
253
- try {
254
- Guid iid=new Guid("618736E0-3C3D-11CF-810C-00AA00389B71");
255
- if(AccessibleObjectFromWindow(renderer,0xFFFFFFFC,ref iid,out accessible)!=0 || accessible==null || !RendererValid(root,pid,tid,nonce,snapshot)) return false;
256
- accessible.get_accName(0); // Activate web AX; discard all page strings.
257
- if(!RendererValid(root,pid,tid,nonce,snapshot)) return false;
258
- accessible.get_accDefaultAction(0); // Metadata only, never invoke.
259
- return RendererValid(root,pid,tid,nonce,snapshot);
260
- } catch { return false; }
261
- finally { if(accessible!=null && Marshal.IsComObject(accessible)) Marshal.ReleaseComObject(accessible); }
262
- }
263
- // The guard is waiting for Chrome to show one of several hidden views of the page (Chrome 155.0.8059.41):
264
- // it publishes none, and showing our own window once is what lets Chrome show the current one.
265
- public static bool RendererPending(IntPtr root,uint pid,uint tid,string nonce) {
266
- Stats stats;
267
- return Valid(root,pid,tid,nonce) && Read(out stats)==0 && stats.Renderer==0;
268
- }
269
- public static bool InactiveShow(IntPtr root,uint pid,uint tid,string nonce,int command) {
270
- if(command!=7 && command!=4) return false;
271
- if(!CanAct() || !Valid(root,pid,tid,nonce) || GetForegroundWindow()==root) return false;
272
- return ShowWindowAsync(root,command);
273
- }
274
- public sealed class ChromeSnapshot {
275
- public int Tabs; public string Tab,Url; public bool Complete;
276
- public bool LoadingObserved,Loading;
277
- public long DurationMs;
278
- }
279
- static Uri BrowserUri(string value) {
280
- if(String.IsNullOrWhiteSpace(value)) return null;
281
- string candidate=value.Trim();
282
- // Chrome omits the leading scheme. A redirect/scope in the query can still
283
- // contain ://; only an actual leading scheme counts as the address scheme.
284
- if(!System.Text.RegularExpressions.Regex.IsMatch(candidate,"^https?://",System.Text.RegularExpressions.RegexOptions.IgnoreCase))
285
- candidate=(candidate.StartsWith("127.0.0.1") || candidate.StartsWith("localhost") ? "http://" : "https://")+candidate;
286
- Uri uri;
287
- return Uri.TryCreate(candidate,UriKind.Absolute,out uri) && (uri.Scheme=="http" || uri.Scheme=="https") ? uri : null;
288
- }
289
- // Inspect browser chrome, never descend into a page Document. URL and tab
290
- // are read again before each window transition, rather than cached for actions.
291
- public static ChromeSnapshot Snapshot(IntPtr root,uint pid,uint tid,string nonce) {
292
- var result=new ChromeSnapshot();var clock=System.Diagnostics.Stopwatch.StartNew();
293
- try {
294
- if(!RootValid(root,pid,tid,nonce)) return result;
295
- var pending=new Queue<AutomationElement>();pending.Enqueue(AutomationElement.FromHandle(root));
296
- int nodes=0;var walker=TreeWalker.ControlViewWalker;
297
- while(pending.Count>0) {
298
- if(++nodes>512 || clock.ElapsedMilliseconds>1000 || !RootValid(root,pid,tid,nonce)) return result;
299
- var item=pending.Dequeue();var current=item.Current;
300
- if(current.ControlType==ControlType.Document) continue;
301
- if(current.ControlType==ControlType.Button) {
302
- // Browser chrome only. Observe the navigation button's loading state;
303
- // discard names and never descend into provider Documents here.
304
- string name=current.Name ?? "";
305
- if(System.Text.RegularExpressions.Regex.IsMatch(name,"^(Stop loading(?: this page)?|停止(?:載入|加载)(?:這個網頁|此页面|此頁面)?)(?:$|[ ((])")) {
306
- result.LoadingObserved=true;result.Loading=true;
307
- } else if(System.Text.RegularExpressions.Regex.IsMatch(name,"^(Reload(?: this page)?|重新(?:載入|加载)(?:這個網頁|此页面|此頁面)?)(?:$|[ ((])")) result.LoadingObserved=true;
308
- }
309
- if(current.ControlType==ControlType.TabItem && current.ClassName=="Tab") {
310
- result.Tabs++;object pattern;
311
- if(item.TryGetCurrentPattern(SelectionItemPattern.Pattern,out pattern) && ((SelectionItemPattern)pattern).Current.IsSelected)
312
- result.Tab=String.Join(".",item.GetRuntimeId());
313
- }
314
- if(current.ControlType==ControlType.Edit && result.Url==null) {
315
- object pattern;
316
- if(item.TryGetCurrentPattern(ValuePattern.Pattern,out pattern)) {
317
- Uri uri=BrowserUri(((ValuePattern)pattern).Current.Value);
318
- if(uri!=null) result.Url=uri.AbsoluteUri;
319
- }
320
- }
321
- for(var child=walker.GetFirstChild(item);child!=null;child=walker.GetNextSibling(child)) pending.Enqueue(child);
322
- }
323
- result.Complete=RootValid(root,pid,tid,nonce) && result.Tabs==1 && !String.IsNullOrEmpty(result.Tab) && result.Url!=null;
324
- } catch { result.Complete=false; }
325
- finally { result.DurationMs=clock.ElapsedMilliseconds; }
326
- return result;
327
- }
328
- public static bool SameSnapshot(ChromeSnapshot value,string tab,string url) {
329
- return value!=null && value.Complete && value.DurationMs<=300 && value.Tabs==1 &&
330
- !String.IsNullOrEmpty(tab) && value.Tab==tab && value.Url==url;
331
- }
332
- public static void ConfigurePage(IntPtr root,uint pid,uint tid,string nonce,string tab,string url,int generation) {
333
- pageContext=new PageContext { Root=root,Pid=pid,Tid=tid,Nonce=nonce,Tab=tab,Url=url,Generation=generation };
334
- }
335
- static long[] RejectPage(PageFailure reason) { pageFailure=reason;return null; }
336
- public static long[] PagePolicyDiagnostics() {
337
- return new long[] {(long)pageFailure,snapshotComplete,snapshotTabs,snapshotMs,snapshotSameTab,snapshotSameUrl};
338
- }
339
- static long[] PageRenderer(IntPtr root,PageContext page) {
340
- snapshotMs=-1;snapshotComplete=snapshotTabs=snapshotSameTab=snapshotSameUrl=-1;
341
- if(page==null) return RejectPage(PageFailure.ContextMissing);
342
- if(root==IntPtr.Zero || root!=page.Root) return RejectPage(PageFailure.ContextRoot);
343
- if(!CanAct()) return RejectPage(PageFailure.Cancelled);
344
- if(String.IsNullOrEmpty(page.Tab) || String.IsNullOrEmpty(page.Url) || page.Generation<=0 || (page.Generation&1)!=0) return RejectPage(PageFailure.ContextInvalid);
345
- Stats before;
346
- if(Read(out before)!=0) return RejectPage(PageFailure.NativeRead);
347
- if(before.Generation!=page.Generation) return RejectPage(PageFailure.EpochBefore);
348
- if(!RendererValid(root,page.Pid,page.Tid,page.Nonce,before)) return RejectPage(PageFailure.RendererBefore);
349
- var snapshot=Snapshot(root,page.Pid,page.Tid,page.Nonce);
350
- snapshotMs=snapshot.DurationMs;snapshotComplete=snapshot.Complete ? 1 : 0;snapshotTabs=snapshot.Tabs;
351
- snapshotSameTab=snapshot.Tab==page.Tab ? 1 : 0;snapshotSameUrl=snapshot.Url==page.Url ? 1 : 0;
352
- if(!SameSnapshot(snapshot,page.Tab,page.Url)) return RejectPage(PageFailure.SnapshotMismatch);
353
- // The UIA chrome snapshot can run across navigation. Verify the same native
354
- // renderer epoch after it completes, as well as cancellation and context.
355
- if(pageContext!=page) return RejectPage(PageFailure.ContextChanged);
356
- if(!CanAct()) return RejectPage(PageFailure.CancelledAfter);
357
- if(!RendererValid(root,page.Pid,page.Tid,page.Nonce,before)) return RejectPage(PageFailure.EpochAfter);
358
- pageFailure=PageFailure.None;
359
- return new long[] {(long)before.Renderer,before.Generation};
360
- }
361
- public static long[] PageRenderer(IntPtr root) { return PageRenderer(root,pageContext); }
362
- public static bool PageActionAllowed(IntPtr root,IntPtr renderer,long generation) {
363
- var current=PageRenderer(root,pageContext);
364
- if(current==null) return false;
365
- if(renderer==IntPtr.Zero || current[0]!=renderer.ToInt64() || current[1]!=generation) { pageFailure=PageFailure.ActionMetadata;return false; }
366
- return true;
367
- }
368
- public static string Reveal(IntPtr root,uint pid,uint tid,string nonce,string tab,string url) {
369
- // Once per independently verified page, scheduled by the controller. 7 is
370
- // SW_SHOWMINNOACTIVE; 4 is SW_SHOWNOACTIVATE. Native CBT veto stays armed.
371
- if(!CanAct()) return "cancelled";
372
- if(!SameSnapshot(Snapshot(root,pid,tid,nonce),tab,url)) return "stale";
373
- if(!KeepBehind(root,pid,tid,nonce)) return "position_refused";
374
- if(!RequestAccessibility(root,pid,tid,nonce) && !RendererPending(root,pid,tid,nonce)) return "renderer_unavailable";
375
- if(!SameSnapshot(Snapshot(root,pid,tid,nonce),tab,url)) return "stale";
376
- // A window that opened minimized (from a Chrome started minimized) never renders: the reveal is then just the
377
- // restore half, still behind other windows and never activated.
378
- if(IsIconic(root)) {
379
- string restoredOnly=RestoreOwnedAfterMinimize(root,pid,tid,nonce);
380
- if(restoredOnly!="restored") return restoredOnly;
381
- if(!CanAct()) return "cancelled";
382
- if(!SameSnapshot(Snapshot(root,pid,tid,nonce),tab,url)) return "changed_after_restore";
383
- return Valid(root,pid,tid,nonce) && !IsIconic(root) && IsWindowVisible(root) ? "revealed" : "restore_unobserved";
384
- }
385
- bool minimizeQueued=false,minimized=false;
386
- string restored="restore_refused";
387
- try {
388
- if(!InactiveShow(root,pid,tid,nonce,7)) return "minimize_refused";
389
- minimizeQueued=true;
390
- var wait=System.Diagnostics.Stopwatch.StartNew();
391
- while(!IsIconic(root) && wait.ElapsedMilliseconds<1000 && RootValid(root,pid,tid,nonce))
392
- System.Threading.Thread.Sleep(20);
393
- minimized=IsIconic(root);
394
- } finally {
395
- // A minimized Chrome window can omit its address bar from UIA. Never
396
- // require a page snapshot to undo our own transition, including after
397
- // cancellation. Pair even an unobserved queued 7 with 4: the asynchronous
398
- // minimize may execute after our observation deadline.
399
- if(minimizeQueued) restored=RestoreOwnedAfterMinimize(root,pid,tid,nonce);
400
- }
401
- if(restored!="restored") return restored;
402
- if(!CanAct()) return "cancelled";
403
- if(!minimized) return "minimize_unobserved";
404
- if(!SameSnapshot(Snapshot(root,pid,tid,nonce),tab,url)) return "changed_after_restore";
405
- return Valid(root,pid,tid,nonce) && !IsIconic(root) && IsWindowVisible(root) ? "revealed" : "restore_unobserved";
406
- }
407
- static bool KeepOwnedBehindForRestore(IntPtr root,uint pid,uint tid,string nonce) {
408
- // Cleanup reverses only our window-state change; it performs no provider
409
- // action. Cancellation must not disable it while the native veto is live.
410
- // A raised window is restored where it was raised: above, still never activated.
411
- return RootValid(root,pid,tid,nonce) && GetForegroundWindow()!=root &&
412
- SetWindowPos(root,Raised ? IntPtr.Zero : new IntPtr(1),0,0,0,0,0x0001|0x0002|0x0010|0x0200);
413
- }
414
- static string RestoreOwnedAfterMinimize(IntPtr root,uint pid,uint tid,string nonce) {
415
- if(!KeepOwnedBehindForRestore(root,pid,tid,nonce)) return "restore_position_refused";
416
- if(!RootValid(root,pid,tid,nonce) || GetForegroundWindow()==root || !ShowWindowAsync(root,4)) return "restore_refused";
417
- if(!KeepOwnedBehindForRestore(root,pid,tid,nonce)) return "restore_position_refused";
418
- var wait=System.Diagnostics.Stopwatch.StartNew();
419
- while(IsIconic(root) && wait.ElapsedMilliseconds<1000) {
420
- if(!KeepOwnedBehindForRestore(root,pid,tid,nonce)) return "restore_position_refused";
421
- System.Threading.Thread.Sleep(20);
422
- }
423
- if(!KeepOwnedBehindForRestore(root,pid,tid,nonce)) return "restore_position_refused";
424
- return RootValid(root,pid,tid,nonce) && !IsIconic(root) && IsWindowVisible(root) ? "restored" : "restore_unobserved";
425
- }
426
- // Chrome stops rendering a window that other windows fully cover (native occlusion), and the person's own Chrome
427
- // cannot be told otherwise. Once per transaction the controller may then raise the nonce-bound window above the
428
- // other windows without activating it: the person sees it, but keyboard focus stays in their window and the native
429
- // activation veto stays armed. It stays raised until the transaction closes the window.
430
- public static bool RaiseWithoutActivation(IntPtr root,uint pid,uint tid,string nonce) {
431
- if(!CanAct() || !RootValid(root,pid,tid,nonce) || GetForegroundWindow()==root || raised==null) return false;
432
- if(raised(1)!=0) return false;
433
- Raised=true;
434
- if(IsIconic(root) && !ShowWindowAsync(root,4)) return false;
435
- // HWND_TOP (0) with SWP_NOSIZE|SWP_NOMOVE|SWP_NOACTIVATE|SWP_NOOWNERZORDER.
436
- return RootValid(root,pid,tid,nonce) && GetForegroundWindow()!=root &&
437
- SetWindowPos(root,IntPtr.Zero,0,0,0,0,0x0001|0x0002|0x0010|0x0200);
438
- }
439
- public static bool KeepBehind(IntPtr root,uint pid,uint tid,string nonce) {
440
- if(Raised) return CanAct() && RootValid(root,pid,tid,nonce) && GetForegroundWindow()!=root;
441
- // ShowWindow's no-activate modes do not preserve Z-order. Move only the
442
- // nonce-bound OAuth window, without resizing, moving or activating it.
443
- // This corrects ordering; it does not establish absence of a show-time flash.
444
- return CanAct() && RootValid(root,pid,tid,nonce) && GetForegroundWindow()!=root &&
445
- SetWindowPos(root,new IntPtr(1),0,0,0,0,0x0001|0x0002|0x0010|0x0200);
446
- }
447
- // Extended style of each window before it left the switcher, so a window handed to the person gets it back.
448
- static readonly Dictionary<long,long> unlisted=new Dictionary<long,long>();
449
- public static bool HideFromSwitcher(IntPtr root,uint pid,uint tid,string nonce) {
450
- // A window kept behind is still listed in the taskbar and Alt+Tab, where the person sees it for the whole run.
451
- // Only the nonce-bound window becomes a tool window (never in Alt+Tab or the taskbar) and loses the taskbar
452
- // button it got when shown. No size, position, activation or page change; Chrome keeps rendering it.
453
- if(!CanAct() || !RootValid(root,pid,tid,nonce)) return false;
454
- if(unlisted.ContainsKey(root.ToInt64())) return true;
455
- long style=GetWindowLongPtr(root,-20).ToInt64();
456
- if((style&0x80)==0 || (style&0x40000)!=0) {
457
- SetWindowLongPtr(root,-20,new IntPtr((style|0x80)&~0x40000L));
458
- if(!RootValid(root,pid,tid,nonce)) return false;
459
- SetWindowPos(root,IntPtr.Zero,0,0,0,0,0x0001|0x0002|0x0004|0x0010|0x0020|0x0200);
460
- }
461
- ITaskbarList taskbar=null;
462
- try { taskbar=(ITaskbarList)new TaskbarList();taskbar.HrInit();taskbar.DeleteTab(root); }
463
- catch { return false; }
464
- finally { if(taskbar!=null && Marshal.IsComObject(taskbar)) Marshal.ReleaseComObject(taskbar); }
465
- unlisted[root.ToInt64()]=style;
466
- return true;
467
- }
468
- public static bool ShowInSwitcher(IntPtr root,uint pid,uint tid,string nonce) {
469
- // The run ended on a page the person finishes (sign-in, an account choice): the window they are told about must
470
- // be findable again. Restores only the style HideFromSwitcher changed and the taskbar button; never activates,
471
- // moves or raises it. Like the other cleanup steps it runs after cancellation while the native veto is live.
472
- long original;
473
- if(!unlisted.TryGetValue(root.ToInt64(),out original)) return true;
474
- if(!RootValid(root,pid,tid,nonce)) return false;
475
- long style=GetWindowLongPtr(root,-20).ToInt64();
476
- SetWindowLongPtr(root,-20,new IntPtr((style&~0x80L&~0x40000L)|(original&(0x80|0x40000))));
477
- if(!RootValid(root,pid,tid,nonce)) return false;
478
- SetWindowPos(root,IntPtr.Zero,0,0,0,0,0x0001|0x0002|0x0004|0x0010|0x0020|0x0200);
479
- ITaskbarList taskbar=null;
480
- try { taskbar=(ITaskbarList)new TaskbarList();taskbar.HrInit();if((original&0x80)==0)taskbar.AddTab(root); }
481
- catch { return false; }
482
- finally { if(taskbar!=null && Marshal.IsComObject(taskbar)) Marshal.ReleaseComObject(taskbar); }
483
- unlisted.Remove(root.ToInt64());
484
- return true;
485
- }
486
- public static bool CloseVerified(IntPtr root,uint pid,uint tid,string nonce,string tab,string url) {
487
- // Cancellation stops provider actions, but owned-window cleanup keeps the
488
- // activation veto armed until this final, fresh browser-chrome check.
489
- return SameSnapshot(Snapshot(root,pid,tid,nonce),tab,url) && RootValid(root,pid,tid,nonce) &&
490
- PostMessageW(root,0x0010,IntPtr.Zero,IntPtr.Zero);
491
- }
492
- }
@@ -1,30 +0,0 @@
1
- {
2
- "abiVersion": 1,
3
- "statsBytes": 120,
4
- "target": "x86_64-windows-gnu",
5
- "compilerVersion": "gcc.exe (Rev5, Built by MSYS2 project) 15.1.0",
6
- "compilerSha256": "bbb5709e7c43c7f79e8af9c2e980f0de49344b56078664757fedf16a617beeb3",
7
- "sourceSha256": "84d3134fa96a54f4b6cacf4163479c98aeecea722f069b99d5b30ea65b7ad54e",
8
- "outputSha256": "82dba2590d738f10d87843c63688b34a66cca4663cb89f02bb546f32c6a8912f",
9
- "previousSha256": "788eb6e2f87b8cb280cc43cf417b49ec8a6bef0f9e4f097ed42226781e30966e",
10
- "normalizedMetadata": [
11
- "coff.TimeDateStamp=0",
12
- "optionalHeader.CheckSum=0"
13
- ],
14
- "flags": [
15
- "-std=c11",
16
- "-Wall",
17
- "-Wextra",
18
- "-Werror",
19
- "-shared",
20
- "-O2",
21
- "-s",
22
- "-Wl,--no-insert-timestamp,--build-id=none,--image-base,0x180000000",
23
- "<source>",
24
- "-o",
25
- "<output>",
26
- "-luser32"
27
- ],
28
- "reproducibility": "Two independent build output directories produced identical DLL SHA256",
29
- "acceptedRendererHistoryBytes": 2064
30
- }