conductor-oss 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1214) hide show
  1. package/README.md +225 -201
  2. package/dist/commands/setup.d.ts.map +1 -1
  3. package/dist/commands/setup.js +28 -3
  4. package/dist/commands/setup.js.map +1 -1
  5. package/dist/commands/start.d.ts +14 -2
  6. package/dist/commands/start.d.ts.map +1 -1
  7. package/dist/commands/start.js +351 -180
  8. package/dist/commands/start.js.map +1 -1
  9. package/node_modules/@conductor-oss/core/dist/board-watcher.d.ts.map +1 -1
  10. package/node_modules/@conductor-oss/core/dist/board-watcher.js +11 -8
  11. package/node_modules/@conductor-oss/core/dist/board-watcher.js.map +1 -1
  12. package/node_modules/@conductor-oss/core/dist/config-sync.d.ts.map +1 -1
  13. package/node_modules/@conductor-oss/core/dist/config-sync.js +23 -2
  14. package/node_modules/@conductor-oss/core/dist/config-sync.js.map +1 -1
  15. package/node_modules/@conductor-oss/core/dist/config.d.ts.map +1 -1
  16. package/node_modules/@conductor-oss/core/dist/config.js +87 -4
  17. package/node_modules/@conductor-oss/core/dist/config.js.map +1 -1
  18. package/node_modules/@conductor-oss/core/dist/metadata.d.ts.map +1 -1
  19. package/node_modules/@conductor-oss/core/dist/metadata.js +4 -0
  20. package/node_modules/@conductor-oss/core/dist/metadata.js.map +1 -1
  21. package/node_modules/@conductor-oss/core/dist/prompt-builder.d.ts +1 -1
  22. package/node_modules/@conductor-oss/core/dist/prompt-builder.d.ts.map +1 -1
  23. package/node_modules/@conductor-oss/core/dist/prompt-builder.js +5 -0
  24. package/node_modules/@conductor-oss/core/dist/prompt-builder.js.map +1 -1
  25. package/node_modules/@conductor-oss/core/dist/scaffold.d.ts +20 -2
  26. package/node_modules/@conductor-oss/core/dist/scaffold.d.ts.map +1 -1
  27. package/node_modules/@conductor-oss/core/dist/scaffold.js +39 -5
  28. package/node_modules/@conductor-oss/core/dist/scaffold.js.map +1 -1
  29. package/node_modules/@conductor-oss/core/dist/session-manager.d.ts.map +1 -1
  30. package/node_modules/@conductor-oss/core/dist/session-manager.js +82 -9
  31. package/node_modules/@conductor-oss/core/dist/session-manager.js.map +1 -1
  32. package/node_modules/@conductor-oss/core/dist/types.d.ts +33 -7
  33. package/node_modules/@conductor-oss/core/dist/types.d.ts.map +1 -1
  34. package/node_modules/@conductor-oss/core/dist/types.js +151 -0
  35. package/node_modules/@conductor-oss/core/dist/types.js.map +1 -1
  36. package/node_modules/@conductor-oss/plugin-agent-amp/package.json +1 -1
  37. package/node_modules/@conductor-oss/plugin-agent-ccr/package.json +1 -1
  38. package/node_modules/@conductor-oss/plugin-agent-claude-code/package.json +1 -1
  39. package/node_modules/@conductor-oss/plugin-agent-codex/package.json +1 -1
  40. package/node_modules/@conductor-oss/plugin-agent-cursor-cli/package.json +1 -1
  41. package/node_modules/@conductor-oss/plugin-agent-droid/package.json +1 -1
  42. package/node_modules/@conductor-oss/plugin-agent-gemini/package.json +1 -1
  43. package/node_modules/@conductor-oss/plugin-agent-github-copilot/package.json +1 -1
  44. package/node_modules/@conductor-oss/plugin-agent-opencode/package.json +1 -1
  45. package/node_modules/@conductor-oss/plugin-agent-qwen-code/package.json +1 -1
  46. package/node_modules/@conductor-oss/plugin-mcp-server/package.json +1 -1
  47. package/node_modules/@conductor-oss/plugin-notifier-desktop/package.json +1 -1
  48. package/node_modules/@conductor-oss/plugin-notifier-discord/package.json +1 -1
  49. package/node_modules/@conductor-oss/plugin-runtime-tmux/package.json +1 -1
  50. package/node_modules/@conductor-oss/plugin-scm-github/package.json +1 -1
  51. package/node_modules/@conductor-oss/plugin-terminal-web/package.json +1 -1
  52. package/node_modules/@conductor-oss/plugin-tracker-github/package.json +1 -1
  53. package/node_modules/@conductor-oss/plugin-workspace-worktree/package.json +1 -1
  54. package/package.json +24 -23
  55. package/web/.next/standalone/node_modules/@babel/code-frame/lib/index.js +217 -0
  56. package/web/.next/standalone/node_modules/@babel/code-frame/package.json +32 -0
  57. package/web/.next/standalone/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
  58. package/web/.next/standalone/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
  59. package/web/.next/standalone/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
  60. package/web/.next/standalone/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  61. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/CLI.js +338 -0
  62. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/Cache.js +208 -0
  63. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/DefaultProvider.js +35 -0
  64. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/DefaultProvider.spec.js +75 -0
  65. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/browser-data/browser-data.js +235 -0
  66. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome-headless-shell.js +47 -0
  67. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/browser-data/chrome.js +296 -0
  68. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/browser-data/chromedriver.js +43 -0
  69. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/browser-data/chromium.js +63 -0
  70. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/browser-data/firefox.js +374 -0
  71. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/browser-data/types.js +63 -0
  72. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/debug.js +8 -0
  73. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/detectPlatform.js +47 -0
  74. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/fileUtil.js +156 -0
  75. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/httpUtil.js +132 -0
  76. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/install.js +351 -0
  77. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/launch.js +426 -0
  78. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/main-cli.js +9 -0
  79. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/main.js +15 -0
  80. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/package.json +1 -0
  81. package/web/.next/standalone/node_modules/@puppeteer/browsers/lib/esm/provider.js +13 -0
  82. package/web/.next/standalone/node_modules/@puppeteer/browsers/package.json +125 -0
  83. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js +53 -0
  84. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js +58 -0
  85. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context.js +691 -0
  86. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js +6 -0
  87. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js +96 -0
  88. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js +58 -0
  89. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js +19 -0
  90. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js +387 -0
  91. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js +71 -0
  92. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/index.js +128 -0
  93. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js +227 -0
  94. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js +41 -0
  95. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js +97 -0
  96. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js +77 -0
  97. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module.js +302 -0
  98. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js +49 -0
  99. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js +300 -0
  100. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js +38 -0
  101. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types.js +58 -0
  102. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js +169 -0
  103. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js +12 -0
  104. package/web/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/package.json +60 -0
  105. package/web/.next/standalone/node_modules/agent-base/dist/helpers.js +66 -0
  106. package/web/.next/standalone/node_modules/agent-base/dist/index.js +178 -0
  107. package/web/.next/standalone/node_modules/agent-base/package.json +46 -0
  108. package/web/.next/standalone/node_modules/ast-types/def/babel-core.js +256 -0
  109. package/web/.next/standalone/node_modules/ast-types/def/babel.js +11 -0
  110. package/web/.next/standalone/node_modules/ast-types/def/core.js +298 -0
  111. package/web/.next/standalone/node_modules/ast-types/def/es-proposals.js +33 -0
  112. package/web/.next/standalone/node_modules/ast-types/def/es2020.js +16 -0
  113. package/web/.next/standalone/node_modules/ast-types/def/es6.js +210 -0
  114. package/web/.next/standalone/node_modules/ast-types/def/es7.js +34 -0
  115. package/web/.next/standalone/node_modules/ast-types/def/esprima.js +49 -0
  116. package/web/.next/standalone/node_modules/ast-types/def/flow.js +292 -0
  117. package/web/.next/standalone/node_modules/ast-types/def/jsx.js +103 -0
  118. package/web/.next/standalone/node_modules/ast-types/def/type-annotations.js +40 -0
  119. package/web/.next/standalone/node_modules/ast-types/def/typescript.js +344 -0
  120. package/web/.next/standalone/node_modules/ast-types/fork.js +52 -0
  121. package/web/.next/standalone/node_modules/ast-types/gen/namedTypes.js +6 -0
  122. package/web/.next/standalone/node_modules/ast-types/lib/equiv.js +154 -0
  123. package/web/.next/standalone/node_modules/ast-types/lib/node-path.js +411 -0
  124. package/web/.next/standalone/node_modules/ast-types/lib/path-visitor.js +343 -0
  125. package/web/.next/standalone/node_modules/ast-types/lib/path.js +331 -0
  126. package/web/.next/standalone/node_modules/ast-types/lib/scope.js +318 -0
  127. package/web/.next/standalone/node_modules/ast-types/lib/shared.js +47 -0
  128. package/web/.next/standalone/node_modules/ast-types/lib/types.js +780 -0
  129. package/web/.next/standalone/node_modules/ast-types/main.js +53 -0
  130. package/web/.next/standalone/node_modules/ast-types/package.json +65 -0
  131. package/web/.next/standalone/node_modules/b4a/index.js +188 -0
  132. package/web/.next/standalone/node_modules/b4a/package.json +49 -0
  133. package/web/.next/standalone/node_modules/basic-ftp/dist/Client.js +782 -0
  134. package/web/.next/standalone/node_modules/basic-ftp/dist/FileInfo.js +92 -0
  135. package/web/.next/standalone/node_modules/basic-ftp/dist/FtpContext.js +365 -0
  136. package/web/.next/standalone/node_modules/basic-ftp/dist/ProgressTracker.js +72 -0
  137. package/web/.next/standalone/node_modules/basic-ftp/dist/StringEncoding.js +2 -0
  138. package/web/.next/standalone/node_modules/basic-ftp/dist/StringWriter.js +23 -0
  139. package/web/.next/standalone/node_modules/basic-ftp/dist/index.js +28 -0
  140. package/web/.next/standalone/node_modules/basic-ftp/dist/netUtils.js +66 -0
  141. package/web/.next/standalone/node_modules/basic-ftp/dist/parseControlResponse.js +66 -0
  142. package/web/.next/standalone/node_modules/basic-ftp/dist/parseList.js +79 -0
  143. package/web/.next/standalone/node_modules/basic-ftp/dist/parseListDOS.js +52 -0
  144. package/web/.next/standalone/node_modules/basic-ftp/dist/parseListMLSD.js +187 -0
  145. package/web/.next/standalone/node_modules/basic-ftp/dist/parseListUnix.js +155 -0
  146. package/web/.next/standalone/node_modules/basic-ftp/dist/transfer.js +318 -0
  147. package/web/.next/standalone/node_modules/basic-ftp/package.json +52 -0
  148. package/web/.next/standalone/node_modules/buffer-crc32/index.js +111 -0
  149. package/web/.next/standalone/node_modules/buffer-crc32/package.json +39 -0
  150. package/web/.next/standalone/node_modules/callsites/index.js +13 -0
  151. package/web/.next/standalone/node_modules/callsites/package.json +39 -0
  152. package/web/.next/standalone/node_modules/cliui/build/lib/index.js +287 -0
  153. package/web/.next/standalone/node_modules/cliui/build/lib/string-utils.js +27 -0
  154. package/web/.next/standalone/node_modules/cliui/index.mjs +13 -0
  155. package/web/.next/standalone/node_modules/cliui/package.json +83 -0
  156. package/web/.next/standalone/node_modules/cosmiconfig/dist/Explorer.js +170 -0
  157. package/web/.next/standalone/node_modules/cosmiconfig/dist/ExplorerBase.js +126 -0
  158. package/web/.next/standalone/node_modules/cosmiconfig/dist/ExplorerSync.js +184 -0
  159. package/web/.next/standalone/node_modules/cosmiconfig/dist/cacheWrapper.js +32 -0
  160. package/web/.next/standalone/node_modules/cosmiconfig/dist/canUseDynamicImport.js +23 -0
  161. package/web/.next/standalone/node_modules/cosmiconfig/dist/defaults.js +105 -0
  162. package/web/.next/standalone/node_modules/cosmiconfig/dist/getDirectory.js +38 -0
  163. package/web/.next/standalone/node_modules/cosmiconfig/dist/getPropertyByPath.js +28 -0
  164. package/web/.next/standalone/node_modules/cosmiconfig/dist/index.js +148 -0
  165. package/web/.next/standalone/node_modules/cosmiconfig/dist/loaders.js +150 -0
  166. package/web/.next/standalone/node_modules/cosmiconfig/dist/merge.js +40 -0
  167. package/web/.next/standalone/node_modules/cosmiconfig/dist/readFile.js +56 -0
  168. package/web/.next/standalone/node_modules/cosmiconfig/dist/types.js +3 -0
  169. package/web/.next/standalone/node_modules/cosmiconfig/dist/util.js +99 -0
  170. package/web/.next/standalone/node_modules/cosmiconfig/package.json +103 -0
  171. package/web/.next/standalone/node_modules/data-uri-to-buffer/dist/common.js +54 -0
  172. package/web/.next/standalone/node_modules/data-uri-to-buffer/dist/node.js +26 -0
  173. package/web/.next/standalone/node_modules/data-uri-to-buffer/package.json +48 -0
  174. package/web/.next/standalone/node_modules/debug/package.json +64 -0
  175. package/web/.next/standalone/node_modules/debug/src/browser.js +272 -0
  176. package/web/.next/standalone/node_modules/debug/src/common.js +292 -0
  177. package/web/.next/standalone/node_modules/debug/src/index.js +10 -0
  178. package/web/.next/standalone/node_modules/debug/src/node.js +263 -0
  179. package/web/.next/standalone/node_modules/degenerator/dist/compile.js +107 -0
  180. package/web/.next/standalone/node_modules/degenerator/dist/degenerator.js +156 -0
  181. package/web/.next/standalone/node_modules/degenerator/dist/index.js +19 -0
  182. package/web/.next/standalone/node_modules/degenerator/package.json +42 -0
  183. package/web/.next/standalone/node_modules/end-of-stream/index.js +96 -0
  184. package/web/.next/standalone/node_modules/end-of-stream/package.json +37 -0
  185. package/web/.next/standalone/node_modules/env-paths/index.js +74 -0
  186. package/web/.next/standalone/node_modules/env-paths/license +9 -0
  187. package/web/.next/standalone/node_modules/env-paths/package.json +45 -0
  188. package/web/.next/standalone/node_modules/env-paths/readme.md +115 -0
  189. package/web/.next/standalone/node_modules/error-ex/index.js +141 -0
  190. package/web/.next/standalone/node_modules/error-ex/package.json +46 -0
  191. package/web/.next/standalone/node_modules/escalade/package.json +74 -0
  192. package/web/.next/standalone/node_modules/escalade/sync/index.d.mts +9 -0
  193. package/web/.next/standalone/node_modules/escalade/sync/index.js +18 -0
  194. package/web/.next/standalone/node_modules/escalade/sync/index.mjs +18 -0
  195. package/web/.next/standalone/node_modules/escodegen/escodegen.js +2667 -0
  196. package/web/.next/standalone/node_modules/escodegen/package.json +63 -0
  197. package/web/.next/standalone/node_modules/esprima/dist/esprima.js +6709 -0
  198. package/web/.next/standalone/node_modules/esprima/package.json +112 -0
  199. package/web/.next/standalone/node_modules/estraverse/estraverse.js +805 -0
  200. package/web/.next/standalone/node_modules/estraverse/package.json +40 -0
  201. package/web/.next/standalone/node_modules/esutils/lib/ast.js +144 -0
  202. package/web/.next/standalone/node_modules/esutils/lib/code.js +135 -0
  203. package/web/.next/standalone/node_modules/esutils/lib/keyword.js +165 -0
  204. package/web/.next/standalone/node_modules/esutils/lib/utils.js +33 -0
  205. package/web/.next/standalone/node_modules/esutils/package.json +44 -0
  206. package/web/.next/standalone/node_modules/events-universal/default.js +1 -0
  207. package/web/.next/standalone/node_modules/events-universal/package.json +39 -0
  208. package/web/.next/standalone/node_modules/extract-zip/LICENSE +23 -0
  209. package/web/.next/standalone/node_modules/extract-zip/cli.js +19 -0
  210. package/web/.next/standalone/node_modules/extract-zip/index.js +173 -0
  211. package/web/.next/standalone/node_modules/extract-zip/package.json +80 -0
  212. package/web/.next/standalone/node_modules/extract-zip/readme.md +57 -0
  213. package/web/.next/standalone/node_modules/fast-fifo/fixed-size.js +39 -0
  214. package/web/.next/standalone/node_modules/fast-fifo/index.js +48 -0
  215. package/web/.next/standalone/node_modules/fast-fifo/package.json +28 -0
  216. package/web/.next/standalone/node_modules/fd-slicer/index.js +296 -0
  217. package/web/.next/standalone/node_modules/fd-slicer/package.json +36 -0
  218. package/web/.next/standalone/node_modules/get-stream/buffer-stream.js +52 -0
  219. package/web/.next/standalone/node_modules/get-stream/index.js +60 -0
  220. package/web/.next/standalone/node_modules/get-stream/package.json +50 -0
  221. package/web/.next/standalone/node_modules/get-uri/dist/data.js +43 -0
  222. package/web/.next/standalone/node_modules/get-uri/dist/file.js +57 -0
  223. package/web/.next/standalone/node_modules/get-uri/dist/ftp.js +93 -0
  224. package/web/.next/standalone/node_modules/get-uri/dist/http-error.js +15 -0
  225. package/web/.next/standalone/node_modules/get-uri/dist/http.js +191 -0
  226. package/web/.next/standalone/node_modules/get-uri/dist/https.js +16 -0
  227. package/web/.next/standalone/node_modules/get-uri/dist/index.js +57 -0
  228. package/web/.next/standalone/node_modules/get-uri/dist/notfound.js +16 -0
  229. package/web/.next/standalone/node_modules/get-uri/dist/notmodified.js +17 -0
  230. package/web/.next/standalone/node_modules/get-uri/package.json +58 -0
  231. package/web/.next/standalone/node_modules/http-proxy-agent/dist/index.js +148 -0
  232. package/web/.next/standalone/node_modules/http-proxy-agent/package.json +47 -0
  233. package/web/.next/standalone/node_modules/https-proxy-agent/dist/index.js +180 -0
  234. package/web/.next/standalone/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  235. package/web/.next/standalone/node_modules/https-proxy-agent/package.json +50 -0
  236. package/web/.next/standalone/node_modules/import-fresh/index.js +34 -0
  237. package/web/.next/standalone/node_modules/import-fresh/node_modules/resolve-from/index.js +47 -0
  238. package/web/.next/standalone/node_modules/import-fresh/node_modules/resolve-from/license +9 -0
  239. package/web/.next/standalone/node_modules/import-fresh/node_modules/resolve-from/package.json +34 -0
  240. package/web/.next/standalone/node_modules/import-fresh/node_modules/resolve-from/readme.md +72 -0
  241. package/web/.next/standalone/node_modules/import-fresh/package.json +48 -0
  242. package/web/.next/standalone/node_modules/ip-address/dist/address-error.js +12 -0
  243. package/web/.next/standalone/node_modules/ip-address/dist/common.js +46 -0
  244. package/web/.next/standalone/node_modules/ip-address/dist/ip-address.js +35 -0
  245. package/web/.next/standalone/node_modules/ip-address/dist/ipv4.js +360 -0
  246. package/web/.next/standalone/node_modules/ip-address/dist/ipv6.js +1003 -0
  247. package/web/.next/standalone/node_modules/ip-address/dist/v4/constants.js +8 -0
  248. package/web/.next/standalone/node_modules/ip-address/dist/v6/constants.js +76 -0
  249. package/web/.next/standalone/node_modules/ip-address/dist/v6/helpers.js +45 -0
  250. package/web/.next/standalone/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
  251. package/web/.next/standalone/node_modules/ip-address/package.json +78 -0
  252. package/web/.next/standalone/node_modules/is-arrayish/index.js +10 -0
  253. package/web/.next/standalone/node_modules/is-arrayish/package.json +34 -0
  254. package/web/.next/standalone/node_modules/js-tokens/index.js +23 -0
  255. package/web/.next/standalone/node_modules/js-tokens/package.json +30 -0
  256. package/web/.next/standalone/node_modules/js-yaml/index.js +47 -0
  257. package/web/.next/standalone/node_modules/js-yaml/lib/common.js +59 -0
  258. package/web/.next/standalone/node_modules/js-yaml/lib/dumper.js +965 -0
  259. package/web/.next/standalone/node_modules/js-yaml/lib/exception.js +55 -0
  260. package/web/.next/standalone/node_modules/js-yaml/lib/loader.js +1733 -0
  261. package/web/.next/standalone/node_modules/js-yaml/lib/schema/core.js +11 -0
  262. package/web/.next/standalone/node_modules/js-yaml/lib/schema/default.js +22 -0
  263. package/web/.next/standalone/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
  264. package/web/.next/standalone/node_modules/js-yaml/lib/schema/json.js +19 -0
  265. package/web/.next/standalone/node_modules/js-yaml/lib/schema.js +121 -0
  266. package/web/.next/standalone/node_modules/js-yaml/lib/snippet.js +101 -0
  267. package/web/.next/standalone/node_modules/js-yaml/lib/type/binary.js +125 -0
  268. package/web/.next/standalone/node_modules/js-yaml/lib/type/bool.js +35 -0
  269. package/web/.next/standalone/node_modules/js-yaml/lib/type/float.js +97 -0
  270. package/web/.next/standalone/node_modules/js-yaml/lib/type/int.js +156 -0
  271. package/web/.next/standalone/node_modules/js-yaml/lib/type/map.js +8 -0
  272. package/web/.next/standalone/node_modules/js-yaml/lib/type/merge.js +12 -0
  273. package/web/.next/standalone/node_modules/js-yaml/lib/type/null.js +35 -0
  274. package/web/.next/standalone/node_modules/js-yaml/lib/type/omap.js +44 -0
  275. package/web/.next/standalone/node_modules/js-yaml/lib/type/pairs.js +53 -0
  276. package/web/.next/standalone/node_modules/js-yaml/lib/type/seq.js +8 -0
  277. package/web/.next/standalone/node_modules/js-yaml/lib/type/set.js +29 -0
  278. package/web/.next/standalone/node_modules/js-yaml/lib/type/str.js +8 -0
  279. package/web/.next/standalone/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  280. package/web/.next/standalone/node_modules/js-yaml/lib/type.js +66 -0
  281. package/web/.next/standalone/node_modules/js-yaml/package.json +66 -0
  282. package/web/.next/standalone/node_modules/json-parse-even-better-errors/index.js +121 -0
  283. package/web/.next/standalone/node_modules/json-parse-even-better-errors/package.json +33 -0
  284. package/web/.next/standalone/node_modules/lines-and-columns/build/index.js +62 -0
  285. package/web/.next/standalone/node_modules/lines-and-columns/package.json +49 -0
  286. package/web/.next/standalone/node_modules/lru-cache/index.js +1227 -0
  287. package/web/.next/standalone/node_modules/lru-cache/package.json +96 -0
  288. package/web/.next/standalone/node_modules/ms/index.js +162 -0
  289. package/web/.next/standalone/node_modules/ms/package.json +38 -0
  290. package/web/.next/standalone/node_modules/netmask/lib/netmask.js +208 -0
  291. package/web/.next/standalone/node_modules/netmask/package.json +36 -0
  292. package/web/.next/standalone/node_modules/once/once.js +42 -0
  293. package/web/.next/standalone/node_modules/once/package.json +33 -0
  294. package/web/.next/standalone/node_modules/pac-proxy-agent/dist/index.js +238 -0
  295. package/web/.next/standalone/node_modules/pac-proxy-agent/package.json +58 -0
  296. package/web/.next/standalone/node_modules/pac-resolver/dist/dateRange.js +73 -0
  297. package/web/.next/standalone/node_modules/pac-resolver/dist/dnsDomainIs.js +30 -0
  298. package/web/.next/standalone/node_modules/pac-resolver/dist/dnsDomainLevels.js +28 -0
  299. package/web/.next/standalone/node_modules/pac-resolver/dist/dnsResolve.js +32 -0
  300. package/web/.next/standalone/node_modules/pac-resolver/dist/index.js +87 -0
  301. package/web/.next/standalone/node_modules/pac-resolver/dist/ip.js +50 -0
  302. package/web/.next/standalone/node_modules/pac-resolver/dist/isInNet.js +42 -0
  303. package/web/.next/standalone/node_modules/pac-resolver/dist/isPlainHostName.js +23 -0
  304. package/web/.next/standalone/node_modules/pac-resolver/dist/isResolvable.js +23 -0
  305. package/web/.next/standalone/node_modules/pac-resolver/dist/localHostOrDomainIs.js +40 -0
  306. package/web/.next/standalone/node_modules/pac-resolver/dist/myIpAddress.js +50 -0
  307. package/web/.next/standalone/node_modules/pac-resolver/dist/shExpMatch.js +41 -0
  308. package/web/.next/standalone/node_modules/pac-resolver/dist/timeRange.js +92 -0
  309. package/web/.next/standalone/node_modules/pac-resolver/dist/util.js +22 -0
  310. package/web/.next/standalone/node_modules/pac-resolver/dist/weekdayRange.js +91 -0
  311. package/web/.next/standalone/node_modules/pac-resolver/package.json +47 -0
  312. package/web/.next/standalone/node_modules/parent-module/index.js +37 -0
  313. package/web/.next/standalone/node_modules/parent-module/package.json +46 -0
  314. package/web/.next/standalone/node_modules/parse-json/index.js +54 -0
  315. package/web/.next/standalone/node_modules/parse-json/package.json +45 -0
  316. package/web/.next/standalone/node_modules/pend/index.js +55 -0
  317. package/web/.next/standalone/node_modules/pend/package.json +18 -0
  318. package/web/.next/standalone/node_modules/picocolors/package.json +25 -0
  319. package/web/.next/standalone/node_modules/picocolors/picocolors.js +75 -0
  320. package/web/.next/standalone/node_modules/progress/index.js +1 -0
  321. package/web/.next/standalone/node_modules/progress/lib/node-progress.js +236 -0
  322. package/web/.next/standalone/node_modules/progress/package.json +26 -0
  323. package/web/.next/standalone/node_modules/proxy-agent/dist/index.js +138 -0
  324. package/web/.next/standalone/node_modules/proxy-agent/package.json +60 -0
  325. package/web/.next/standalone/node_modules/proxy-from-env/index.js +108 -0
  326. package/web/.next/standalone/node_modules/proxy-from-env/package.json +34 -0
  327. package/web/.next/standalone/node_modules/pump/index.js +86 -0
  328. package/web/.next/standalone/node_modules/pump/package.json +30 -0
  329. package/web/.next/standalone/node_modules/puppeteer/lib/esm/package.json +1 -0
  330. package/web/.next/standalone/node_modules/puppeteer/lib/esm/puppeteer/getConfiguration.js +122 -0
  331. package/web/.next/standalone/node_modules/puppeteer/lib/esm/puppeteer/puppeteer.js +40 -0
  332. package/web/.next/standalone/node_modules/puppeteer/package.json +145 -0
  333. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/package.json +1 -0
  334. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +204 -0
  335. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +182 -0
  336. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js +68 -0
  337. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/DeviceRequestPrompt.js +34 -0
  338. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js +90 -0
  339. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +1406 -0
  340. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js +10 -0
  341. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +904 -0
  342. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js +461 -0
  343. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js +56 -0
  344. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js +211 -0
  345. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js +227 -0
  346. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +1511 -0
  347. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js +44 -0
  348. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js +49 -0
  349. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js +106 -0
  350. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js +22 -0
  351. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js +769 -0
  352. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js +83 -0
  353. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js +591 -0
  354. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js +162 -0
  355. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BluetoothEmulation.js +26 -0
  356. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +321 -0
  357. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js +26 -0
  358. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js +192 -0
  359. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js +39 -0
  360. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpSession.js +129 -0
  361. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js +244 -0
  362. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js +372 -0
  363. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +151 -0
  364. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js +23 -0
  365. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js +206 -0
  366. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js +458 -0
  367. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +457 -0
  368. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExtensionTransport.js +175 -0
  369. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js +358 -0
  370. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js +455 -0
  371. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js +24 -0
  372. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js +91 -0
  373. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js +195 -0
  374. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js +126 -0
  375. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js +499 -0
  376. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js +157 -0
  377. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js +20 -0
  378. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +101 -0
  379. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js +174 -0
  380. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js +162 -0
  381. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js +601 -0
  382. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +1006 -0
  383. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +69 -0
  384. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +243 -0
  385. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManageEvents.js +7 -0
  386. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManager.js +320 -0
  387. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js +110 -0
  388. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js +73 -0
  389. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js +43 -0
  390. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js +216 -0
  391. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +54 -0
  392. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +129 -0
  393. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +39 -0
  394. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js +18 -0
  395. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js +133 -0
  396. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +78 -0
  397. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js +114 -0
  398. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +109 -0
  399. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js +1604 -0
  400. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +94 -0
  401. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +128 -0
  402. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +75 -0
  403. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +70 -0
  404. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js +142 -0
  405. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js +23 -0
  406. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js +21 -0
  407. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +58 -0
  408. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js +18 -0
  409. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js +100 -0
  410. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js +18 -0
  411. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +98 -0
  412. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +225 -0
  413. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +51 -0
  414. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +69 -0
  415. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +24 -0
  416. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js +15 -0
  417. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +39 -0
  418. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +394 -0
  419. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js +197 -0
  420. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js +21 -0
  421. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js +35 -0
  422. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +375 -0
  423. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +24 -0
  424. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +9 -0
  425. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index-browser.js +11 -0
  426. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index.js +8 -0
  427. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserLauncher.js +312 -0
  428. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/ChromeLauncher.js +258 -0
  429. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/FirefoxLauncher.js +166 -0
  430. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js +22 -0
  431. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +55 -0
  432. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +72 -0
  433. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/PuppeteerNode.js +281 -0
  434. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/ScreenRecorder.js +279 -0
  435. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/node.js +12 -0
  436. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/node/util/fs.js +24 -0
  437. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js +41 -0
  438. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +14 -0
  439. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js +29 -0
  440. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js +105 -0
  441. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js +41 -0
  442. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js +70 -0
  443. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js +46 -0
  444. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js +18 -0
  445. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js +232 -0
  446. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js +342 -0
  447. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js +63 -0
  448. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js +18 -0
  449. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js +13 -0
  450. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/version.js +10 -0
  451. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js +44 -0
  452. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js +196 -0
  453. package/web/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js +2887 -0
  454. package/web/.next/standalone/node_modules/puppeteer-core/package.json +169 -0
  455. package/web/.next/standalone/node_modules/semver/functions/clean.js +8 -0
  456. package/web/.next/standalone/node_modules/semver/functions/compare-build.js +9 -0
  457. package/web/.next/standalone/node_modules/semver/functions/compare-loose.js +5 -0
  458. package/web/.next/standalone/node_modules/semver/functions/diff.js +60 -0
  459. package/web/.next/standalone/node_modules/semver/functions/inc.js +21 -0
  460. package/web/.next/standalone/node_modules/semver/functions/major.js +5 -0
  461. package/web/.next/standalone/node_modules/semver/functions/minor.js +5 -0
  462. package/web/.next/standalone/node_modules/semver/functions/patch.js +5 -0
  463. package/web/.next/standalone/node_modules/semver/functions/prerelease.js +8 -0
  464. package/web/.next/standalone/node_modules/semver/functions/rcompare.js +5 -0
  465. package/web/.next/standalone/node_modules/semver/functions/rsort.js +5 -0
  466. package/web/.next/standalone/node_modules/semver/functions/sort.js +5 -0
  467. package/web/.next/standalone/node_modules/semver/functions/valid.js +8 -0
  468. package/web/.next/standalone/node_modules/semver/index.js +91 -0
  469. package/web/.next/standalone/node_modules/semver/ranges/gtr.js +6 -0
  470. package/web/.next/standalone/node_modules/semver/ranges/intersects.js +9 -0
  471. package/web/.next/standalone/node_modules/semver/ranges/ltr.js +6 -0
  472. package/web/.next/standalone/node_modules/semver/ranges/max-satisfying.js +27 -0
  473. package/web/.next/standalone/node_modules/semver/ranges/min-satisfying.js +26 -0
  474. package/web/.next/standalone/node_modules/semver/ranges/min-version.js +63 -0
  475. package/web/.next/standalone/node_modules/semver/ranges/outside.js +82 -0
  476. package/web/.next/standalone/node_modules/semver/ranges/simplify.js +49 -0
  477. package/web/.next/standalone/node_modules/semver/ranges/subset.js +249 -0
  478. package/web/.next/standalone/node_modules/semver/ranges/to-comparators.js +10 -0
  479. package/web/.next/standalone/node_modules/semver/ranges/valid.js +13 -0
  480. package/web/.next/standalone/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
  481. package/web/.next/standalone/node_modules/smart-buffer/build/utils.js +108 -0
  482. package/web/.next/standalone/node_modules/smart-buffer/package.json +79 -0
  483. package/web/.next/standalone/node_modules/socks/build/client/socksclient.js +793 -0
  484. package/web/.next/standalone/node_modules/socks/build/common/constants.js +108 -0
  485. package/web/.next/standalone/node_modules/socks/build/common/helpers.js +167 -0
  486. package/web/.next/standalone/node_modules/socks/build/common/receivebuffer.js +43 -0
  487. package/web/.next/standalone/node_modules/socks/build/common/util.js +25 -0
  488. package/web/.next/standalone/node_modules/socks/build/index.js +18 -0
  489. package/web/.next/standalone/node_modules/socks/package.json +58 -0
  490. package/web/.next/standalone/node_modules/socks-proxy-agent/dist/index.js +195 -0
  491. package/web/.next/standalone/node_modules/socks-proxy-agent/package.json +142 -0
  492. package/web/.next/standalone/node_modules/source-map/lib/array-set.js +121 -0
  493. package/web/.next/standalone/node_modules/source-map/lib/base64-vlq.js +140 -0
  494. package/web/.next/standalone/node_modules/source-map/lib/base64.js +67 -0
  495. package/web/.next/standalone/node_modules/source-map/lib/binary-search.js +111 -0
  496. package/web/.next/standalone/node_modules/source-map/lib/mapping-list.js +79 -0
  497. package/web/.next/standalone/node_modules/source-map/lib/quick-sort.js +114 -0
  498. package/web/.next/standalone/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  499. package/web/.next/standalone/node_modules/source-map/lib/source-map-generator.js +425 -0
  500. package/web/.next/standalone/node_modules/source-map/lib/source-node.js +413 -0
  501. package/web/.next/standalone/node_modules/source-map/lib/util.js +488 -0
  502. package/web/.next/standalone/node_modules/source-map/package.json +73 -0
  503. package/web/.next/standalone/node_modules/source-map/source-map.js +8 -0
  504. package/web/.next/standalone/node_modules/streamx/index.js +1184 -0
  505. package/web/.next/standalone/node_modules/streamx/package.json +34 -0
  506. package/web/.next/standalone/node_modules/tar-fs/LICENSE +21 -0
  507. package/web/.next/standalone/node_modules/tar-fs/README.md +154 -0
  508. package/web/.next/standalone/node_modules/tar-fs/index.js +400 -0
  509. package/web/.next/standalone/node_modules/tar-fs/package.json +61 -0
  510. package/web/.next/standalone/node_modules/tar-stream/constants.js +14 -0
  511. package/web/.next/standalone/node_modules/tar-stream/extract.js +406 -0
  512. package/web/.next/standalone/node_modules/tar-stream/headers.js +321 -0
  513. package/web/.next/standalone/node_modules/tar-stream/index.js +2 -0
  514. package/web/.next/standalone/node_modules/tar-stream/pack.js +287 -0
  515. package/web/.next/standalone/node_modules/tar-stream/package.json +42 -0
  516. package/web/.next/standalone/node_modules/text-decoder/index.js +64 -0
  517. package/web/.next/standalone/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
  518. package/web/.next/standalone/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
  519. package/web/.next/standalone/node_modules/text-decoder/package.json +39 -0
  520. package/web/.next/standalone/node_modules/tslib/package.json +47 -0
  521. package/web/.next/standalone/node_modules/tslib/tslib.js +484 -0
  522. package/web/.next/standalone/node_modules/wrappy/package.json +29 -0
  523. package/web/.next/standalone/node_modules/wrappy/wrappy.js +33 -0
  524. package/web/.next/standalone/node_modules/ws/lib/buffer-util.js +131 -0
  525. package/web/.next/standalone/node_modules/ws/lib/constants.js +19 -0
  526. package/web/.next/standalone/node_modules/ws/lib/event-target.js +292 -0
  527. package/web/.next/standalone/node_modules/ws/lib/extension.js +203 -0
  528. package/web/.next/standalone/node_modules/ws/lib/limiter.js +55 -0
  529. package/web/.next/standalone/node_modules/ws/lib/permessage-deflate.js +528 -0
  530. package/web/.next/standalone/node_modules/ws/lib/receiver.js +706 -0
  531. package/web/.next/standalone/node_modules/ws/lib/sender.js +602 -0
  532. package/web/.next/standalone/node_modules/ws/lib/stream.js +161 -0
  533. package/web/.next/standalone/node_modules/ws/lib/subprotocol.js +62 -0
  534. package/web/.next/standalone/node_modules/ws/lib/validation.js +152 -0
  535. package/web/.next/standalone/node_modules/ws/lib/websocket-server.js +554 -0
  536. package/web/.next/standalone/node_modules/ws/lib/websocket.js +1393 -0
  537. package/web/.next/standalone/node_modules/ws/package.json +69 -0
  538. package/web/.next/standalone/node_modules/ws/wrapper.mjs +8 -0
  539. package/web/.next/standalone/node_modules/y18n/build/lib/index.js +174 -0
  540. package/web/.next/standalone/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
  541. package/web/.next/standalone/node_modules/y18n/index.mjs +8 -0
  542. package/web/.next/standalone/node_modules/y18n/package.json +70 -0
  543. package/web/.next/standalone/node_modules/yargs/build/lib/argsert.js +62 -0
  544. package/web/.next/standalone/node_modules/yargs/build/lib/command.js +449 -0
  545. package/web/.next/standalone/node_modules/yargs/build/lib/completion-templates.js +48 -0
  546. package/web/.next/standalone/node_modules/yargs/build/lib/completion.js +243 -0
  547. package/web/.next/standalone/node_modules/yargs/build/lib/middleware.js +88 -0
  548. package/web/.next/standalone/node_modules/yargs/build/lib/parse-command.js +32 -0
  549. package/web/.next/standalone/node_modules/yargs/build/lib/typings/common-types.js +9 -0
  550. package/web/.next/standalone/node_modules/yargs/build/lib/usage.js +584 -0
  551. package/web/.next/standalone/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
  552. package/web/.next/standalone/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
  553. package/web/.next/standalone/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
  554. package/web/.next/standalone/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
  555. package/web/.next/standalone/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
  556. package/web/.next/standalone/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
  557. package/web/.next/standalone/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
  558. package/web/.next/standalone/node_modules/yargs/build/lib/utils/which-module.js +10 -0
  559. package/web/.next/standalone/node_modules/yargs/build/lib/validation.js +305 -0
  560. package/web/.next/standalone/node_modules/yargs/build/lib/yargs-factory.js +1512 -0
  561. package/web/.next/standalone/node_modules/yargs/build/lib/yerror.js +9 -0
  562. package/web/.next/standalone/node_modules/yargs/helpers/helpers.mjs +10 -0
  563. package/web/.next/standalone/node_modules/yargs/index.mjs +8 -0
  564. package/web/.next/standalone/node_modules/yargs/lib/platform-shims/esm.mjs +73 -0
  565. package/web/.next/standalone/node_modules/yargs/package.json +123 -0
  566. package/web/.next/standalone/node_modules/yargs-parser/build/lib/index.js +62 -0
  567. package/web/.next/standalone/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
  568. package/web/.next/standalone/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
  569. package/web/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
  570. package/web/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser.js +1045 -0
  571. package/web/.next/standalone/node_modules/yargs-parser/package.json +92 -0
  572. package/web/.next/standalone/node_modules/yauzl/LICENSE +21 -0
  573. package/web/.next/standalone/node_modules/yauzl/README.md +658 -0
  574. package/web/.next/standalone/node_modules/yauzl/index.js +796 -0
  575. package/web/.next/standalone/node_modules/yauzl/package.json +40 -0
  576. package/web/.next/standalone/packages/web/.next/BUILD_ID +1 -1
  577. package/web/.next/standalone/packages/web/.next/app-path-routes-manifest.json +10 -0
  578. package/web/.next/standalone/packages/web/.next/build-manifest.json +6 -6
  579. package/web/.next/standalone/packages/web/.next/node_modules/puppeteer-582bc9288a971b4a/lib/esm/package.json +1 -0
  580. package/web/.next/standalone/packages/web/.next/node_modules/puppeteer-582bc9288a971b4a/lib/esm/puppeteer/getConfiguration.js +122 -0
  581. package/web/.next/standalone/packages/web/.next/node_modules/puppeteer-582bc9288a971b4a/lib/esm/puppeteer/puppeteer.js +40 -0
  582. package/web/.next/standalone/packages/web/.next/node_modules/puppeteer-582bc9288a971b4a/package.json +145 -0
  583. package/web/.next/standalone/packages/web/.next/prerender-manifest.json +3 -27
  584. package/web/.next/standalone/packages/web/.next/routes-manifest.json +70 -0
  585. package/web/.next/standalone/packages/web/.next/server/app/_global-error/page/build-manifest.json +4 -4
  586. package/web/.next/standalone/packages/web/.next/server/app/_global-error/page.js +1 -1
  587. package/web/.next/standalone/packages/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  588. package/web/.next/standalone/packages/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  589. package/web/.next/standalone/packages/web/.next/server/app/_global-error.html +2 -2
  590. package/web/.next/standalone/packages/web/.next/server/app/_global-error.rsc +1 -1
  591. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  592. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  593. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  594. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  595. package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  596. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page/build-manifest.json +4 -4
  597. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page/server-reference-manifest.json +7 -7
  598. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js +10 -7
  599. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  600. package/web/.next/standalone/packages/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  601. package/web/.next/standalone/packages/web/.next/server/app/_not-found.html +1 -1
  602. package/web/.next/standalone/packages/web/.next/server/app/_not-found.rsc +15 -14
  603. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_full.segment.rsc +15 -14
  604. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  605. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_index.segment.rsc +6 -5
  606. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  607. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  608. package/web/.next/standalone/packages/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  609. package/web/.next/standalone/packages/web/.next/server/app/api/access/route.js +3 -3
  610. package/web/.next/standalone/packages/web/.next/server/app/api/access/route.js.nft.json +1 -1
  611. package/web/.next/standalone/packages/web/.next/server/app/api/agents/route.js +5 -4
  612. package/web/.next/standalone/packages/web/.next/server/app/api/agents/route.js.nft.json +1 -1
  613. package/web/.next/standalone/packages/web/.next/server/app/api/app-update/route/app-paths-manifest.json +3 -0
  614. package/web/.next/standalone/packages/web/.next/server/app/api/app-update/route/build-manifest.json +11 -0
  615. package/web/.next/standalone/packages/web/.next/server/app/api/app-update/route/server-reference-manifest.json +4 -0
  616. package/web/.next/standalone/packages/web/.next/server/app/api/app-update/route.js +10 -0
  617. package/web/.next/standalone/packages/web/.next/server/app/api/app-update/route.js.map +5 -0
  618. package/web/.next/standalone/packages/web/.next/server/app/api/app-update/route.js.nft.json +1 -0
  619. package/web/.next/standalone/packages/web/.next/server/app/api/app-update/route_client-reference-manifest.js +2 -0
  620. package/web/.next/standalone/packages/web/.next/server/app/api/attachments/route.js +3 -3
  621. package/web/.next/standalone/packages/web/.next/server/app/api/attachments/route.js.nft.json +1 -1
  622. package/web/.next/standalone/packages/web/.next/server/app/api/auth/session/route.js +3 -3
  623. package/web/.next/standalone/packages/web/.next/server/app/api/auth/session/route.js.nft.json +1 -1
  624. package/web/.next/standalone/packages/web/.next/server/app/api/boards/comments/route/app-paths-manifest.json +3 -0
  625. package/web/.next/standalone/packages/web/.next/server/app/api/boards/comments/route/build-manifest.json +11 -0
  626. package/web/.next/standalone/packages/web/.next/server/app/api/boards/comments/route/server-reference-manifest.json +4 -0
  627. package/web/.next/standalone/packages/web/.next/server/app/api/boards/comments/route.js +10 -0
  628. package/web/.next/standalone/packages/web/.next/server/app/api/boards/comments/route.js.map +5 -0
  629. package/web/.next/standalone/packages/web/.next/server/app/api/boards/comments/route.js.nft.json +1 -0
  630. package/web/.next/standalone/packages/web/.next/server/app/api/boards/comments/route_client-reference-manifest.js +2 -0
  631. package/web/.next/standalone/packages/web/.next/server/app/api/boards/route.js +3 -3
  632. package/web/.next/standalone/packages/web/.next/server/app/api/boards/route.js.nft.json +1 -1
  633. package/web/.next/standalone/packages/web/.next/server/app/api/config/route.js +3 -3
  634. package/web/.next/standalone/packages/web/.next/server/app/api/config/route.js.nft.json +1 -1
  635. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/open/route/app-paths-manifest.json +3 -0
  636. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/open/route/build-manifest.json +11 -0
  637. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/open/route/server-reference-manifest.json +4 -0
  638. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/open/route.js +10 -0
  639. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/open/route.js.map +5 -0
  640. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/open/route.js.nft.json +1 -0
  641. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/open/route_client-reference-manifest.js +2 -0
  642. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/route.js +3 -3
  643. package/web/.next/standalone/packages/web/.next/server/app/api/context-files/route.js.nft.json +1 -1
  644. package/web/.next/standalone/packages/web/.next/server/app/api/events/route.js +3 -3
  645. package/web/.next/standalone/packages/web/.next/server/app/api/events/route.js.nft.json +1 -1
  646. package/web/.next/standalone/packages/web/.next/server/app/api/executor/health/route.js +3 -3
  647. package/web/.next/standalone/packages/web/.next/server/app/api/executor/health/route.js.nft.json +1 -1
  648. package/web/.next/standalone/packages/web/.next/server/app/api/filesystem/directory/route.js +3 -3
  649. package/web/.next/standalone/packages/web/.next/server/app/api/filesystem/directory/route.js.nft.json +1 -1
  650. package/web/.next/standalone/packages/web/.next/server/app/api/filesystem/pick-directory/route.js +3 -3
  651. package/web/.next/standalone/packages/web/.next/server/app/api/filesystem/pick-directory/route.js.nft.json +1 -1
  652. package/web/.next/standalone/packages/web/.next/server/app/api/github/repos/route.js +3 -3
  653. package/web/.next/standalone/packages/web/.next/server/app/api/github/repos/route.js.nft.json +1 -1
  654. package/web/.next/standalone/packages/web/.next/server/app/api/github/webhook/route/app-paths-manifest.json +3 -0
  655. package/web/.next/standalone/packages/web/.next/server/app/api/github/webhook/route/build-manifest.json +11 -0
  656. package/web/.next/standalone/packages/web/.next/server/app/api/github/webhook/route/server-reference-manifest.json +4 -0
  657. package/web/.next/standalone/packages/web/.next/server/app/api/github/webhook/route.js +10 -0
  658. package/web/.next/standalone/packages/web/.next/server/app/api/github/webhook/route.js.map +5 -0
  659. package/web/.next/standalone/packages/web/.next/server/app/api/github/webhook/route.js.nft.json +1 -0
  660. package/web/.next/standalone/packages/web/.next/server/app/api/github/webhook/route_client-reference-manifest.js +2 -0
  661. package/web/.next/standalone/packages/web/.next/server/app/api/health/boards/route.js +3 -3
  662. package/web/.next/standalone/packages/web/.next/server/app/api/health/boards/route.js.nft.json +1 -1
  663. package/web/.next/standalone/packages/web/.next/server/app/api/health/sessions/route.js +3 -3
  664. package/web/.next/standalone/packages/web/.next/server/app/api/health/sessions/route.js.nft.json +1 -1
  665. package/web/.next/standalone/packages/web/.next/server/app/api/notifications/route.js +3 -3
  666. package/web/.next/standalone/packages/web/.next/server/app/api/notifications/route.js.nft.json +1 -1
  667. package/web/.next/standalone/packages/web/.next/server/app/api/preferences/route.js +3 -3
  668. package/web/.next/standalone/packages/web/.next/server/app/api/preferences/route.js.nft.json +1 -1
  669. package/web/.next/standalone/packages/web/.next/server/app/api/remote-access/route/app-paths-manifest.json +3 -0
  670. package/web/.next/standalone/packages/web/.next/server/app/api/remote-access/route/build-manifest.json +11 -0
  671. package/web/.next/standalone/packages/web/.next/server/app/api/remote-access/route/server-reference-manifest.json +4 -0
  672. package/web/.next/standalone/packages/web/.next/server/app/api/remote-access/route.js +11 -0
  673. package/web/.next/standalone/packages/web/.next/server/app/api/remote-access/route.js.map +5 -0
  674. package/web/.next/standalone/packages/web/.next/server/app/api/remote-access/route.js.nft.json +1 -0
  675. package/web/.next/standalone/packages/web/.next/server/app/api/remote-access/route_client-reference-manifest.js +2 -0
  676. package/web/.next/standalone/packages/web/.next/server/app/api/repositories/[id]/route.js +3 -3
  677. package/web/.next/standalone/packages/web/.next/server/app/api/repositories/[id]/route.js.nft.json +1 -1
  678. package/web/.next/standalone/packages/web/.next/server/app/api/repositories/route.js +3 -3
  679. package/web/.next/standalone/packages/web/.next/server/app/api/repositories/route.js.nft.json +1 -1
  680. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/actions/route.js +3 -3
  681. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/actions/route.js.nft.json +1 -1
  682. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/archive/route.js +3 -3
  683. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/archive/route.js.nft.json +1 -1
  684. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/checks/route.js +3 -3
  685. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/checks/route.js.nft.json +1 -1
  686. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/diff/route.js +3 -3
  687. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/diff/route.js.nft.json +1 -1
  688. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/route.js +3 -3
  689. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/route.js.nft.json +1 -1
  690. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/stream/route/app-paths-manifest.json +3 -0
  691. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/stream/route/build-manifest.json +11 -0
  692. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/stream/route/server-reference-manifest.json +4 -0
  693. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/stream/route.js +10 -0
  694. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/stream/route.js.map +5 -0
  695. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/stream/route.js.nft.json +1 -0
  696. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feed/stream/route_client-reference-manifest.js +2 -0
  697. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feedback/route.js +3 -3
  698. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/feedback/route.js.nft.json +1 -1
  699. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/files/route.js +3 -3
  700. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/files/route.js.nft.json +1 -1
  701. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/interrupt/route/app-paths-manifest.json +3 -0
  702. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/interrupt/route/build-manifest.json +11 -0
  703. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/interrupt/route/server-reference-manifest.json +4 -0
  704. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/interrupt/route.js +10 -0
  705. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/interrupt/route.js.map +5 -0
  706. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/interrupt/route.js.nft.json +1 -0
  707. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/interrupt/route_client-reference-manifest.js +2 -0
  708. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/keys/route.js +3 -3
  709. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/keys/route.js.nft.json +1 -1
  710. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/kill/route.js +3 -3
  711. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/kill/route.js.nft.json +1 -1
  712. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/output/route.js +3 -3
  713. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/output/route.js.nft.json +1 -1
  714. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/output/stream/route.js +3 -3
  715. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/output/stream/route.js.nft.json +1 -1
  716. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/dom/route/app-paths-manifest.json +3 -0
  717. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/dom/route/build-manifest.json +11 -0
  718. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/dom/route/server-reference-manifest.json +4 -0
  719. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/dom/route.js +10 -0
  720. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/dom/route.js.map +5 -0
  721. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/dom/route.js.nft.json +1 -0
  722. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/dom/route_client-reference-manifest.js +2 -0
  723. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/route/app-paths-manifest.json +3 -0
  724. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/route/build-manifest.json +11 -0
  725. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/route/server-reference-manifest.json +4 -0
  726. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/route.js +10 -0
  727. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/route.js.map +5 -0
  728. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/route.js.nft.json +1 -0
  729. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/route_client-reference-manifest.js +2 -0
  730. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/screenshot/route/app-paths-manifest.json +3 -0
  731. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/screenshot/route/build-manifest.json +11 -0
  732. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/screenshot/route/server-reference-manifest.json +4 -0
  733. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/screenshot/route.js +10 -0
  734. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/screenshot/route.js.map +5 -0
  735. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/screenshot/route.js.nft.json +1 -0
  736. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/preview/screenshot/route_client-reference-manifest.js +2 -0
  737. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/restore/route.js +3 -3
  738. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/restore/route.js.nft.json +1 -1
  739. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/route.js +3 -3
  740. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  741. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/send/route.js +3 -3
  742. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/[id]/send/route.js.nft.json +1 -1
  743. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/route.js +3 -3
  744. package/web/.next/standalone/packages/web/.next/server/app/api/sessions/route.js.nft.json +1 -1
  745. package/web/.next/standalone/packages/web/.next/server/app/api/spawn/route.js +3 -3
  746. package/web/.next/standalone/packages/web/.next/server/app/api/spawn/route.js.nft.json +1 -1
  747. package/web/.next/standalone/packages/web/.next/server/app/api/workspaces/branches/route.js +3 -3
  748. package/web/.next/standalone/packages/web/.next/server/app/api/workspaces/branches/route.js.nft.json +1 -1
  749. package/web/.next/standalone/packages/web/.next/server/app/api/workspaces/route.js +3 -3
  750. package/web/.next/standalone/packages/web/.next/server/app/api/workspaces/route.js.nft.json +1 -1
  751. package/web/.next/standalone/packages/web/.next/server/app/auth/grant/route.js +1 -1
  752. package/web/.next/standalone/packages/web/.next/server/app/auth/grant/route.js.nft.json +1 -1
  753. package/web/.next/standalone/packages/web/.next/server/app/icon.svg/route.js +1 -1
  754. package/web/.next/standalone/packages/web/.next/server/app/icon.svg/route.js.nft.json +1 -1
  755. package/web/.next/standalone/packages/web/.next/server/app/page/build-manifest.json +4 -4
  756. package/web/.next/standalone/packages/web/.next/server/app/page/react-loadable-manifest.json +4 -3
  757. package/web/.next/standalone/packages/web/.next/server/app/page/server-reference-manifest.json +7 -7
  758. package/web/.next/standalone/packages/web/.next/server/app/page.js +13 -9
  759. package/web/.next/standalone/packages/web/.next/server/app/page.js.nft.json +1 -1
  760. package/web/.next/standalone/packages/web/.next/server/app/page_client-reference-manifest.js +1 -1
  761. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page/build-manifest.json +4 -4
  762. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page/server-reference-manifest.json +7 -7
  763. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js +13 -9
  764. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
  765. package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
  766. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page/build-manifest.json +4 -4
  767. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page/server-reference-manifest.json +7 -7
  768. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js +10 -7
  769. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js.nft.json +1 -1
  770. package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page_client-reference-manifest.js +1 -1
  771. package/web/.next/standalone/packages/web/.next/server/app/unlock/page/build-manifest.json +4 -4
  772. package/web/.next/standalone/packages/web/.next/server/app/unlock/page/server-reference-manifest.json +7 -7
  773. package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js +11 -8
  774. package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js.nft.json +1 -1
  775. package/web/.next/standalone/packages/web/.next/server/app/unlock/page_client-reference-manifest.js +1 -1
  776. package/web/.next/standalone/packages/web/.next/server/app-paths-manifest.json +10 -0
  777. package/web/.next/standalone/packages/web/.next/server/chunks/26076_server_app_api_sessions_[id]_preview_screenshot_route_actions_dcbbcaf6.js +3 -0
  778. package/web/.next/standalone/packages/web/.next/server/chunks/29f24__next-internal_server_app_api_sessions_[id]_feed_stream_route_actions_1262f517.js +3 -0
  779. package/web/.next/standalone/packages/web/.next/server/chunks/29f24__next-internal_server_app_api_sessions_[id]_interrupt_route_actions_89990829.js +3 -0
  780. package/web/.next/standalone/packages/web/.next/server/chunks/29f24__next-internal_server_app_api_sessions_[id]_preview_dom_route_actions_fb81dadb.js +3 -0
  781. package/web/.next/standalone/packages/web/.next/server/chunks/730ea_web__next-internal_server_app_api_boards_comments_route_actions_7acfa960.js +3 -0
  782. package/web/.next/standalone/packages/web/.next/server/chunks/730ea_web__next-internal_server_app_api_context-files_open_route_actions_ffa7eab4.js +3 -0
  783. package/web/.next/standalone/packages/web/.next/server/chunks/730ea_web__next-internal_server_app_api_sessions_[id]_preview_route_actions_9f632c66.js +3 -0
  784. package/web/.next/standalone/packages/web/.next/server/chunks/[externals]__06cd15c5._.js +3 -0
  785. package/web/.next/standalone/packages/web/.next/server/chunks/{[root-of-the-server]__0c7f79b1._.js → [root-of-the-server]__025155ac._.js} +1 -1
  786. package/web/.next/standalone/packages/web/.next/server/chunks/{[root-of-the-server]__144e8e60._.js → [root-of-the-server]__03277e82._.js} +1 -1
  787. package/web/.next/standalone/packages/web/.next/server/chunks/{[root-of-the-server]__16d4a78f._.js → [root-of-the-server]__03d02e36._.js} +1 -1
  788. package/web/.next/standalone/packages/web/.next/server/chunks/{[root-of-the-server]__095ffdaa._.js → [root-of-the-server]__06d0fa23._.js} +1 -1
  789. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__07d320fc._.js +3 -0
  790. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__09d81126._.js +3 -0
  791. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__0a4bdecd._.js +3 -0
  792. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__0d3270b2._.js +3 -0
  793. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__0f87f848._.js +3 -0
  794. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__120e7cdf._.js +3 -0
  795. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__186317eb._.js +3 -0
  796. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__1888a793._.js +3 -0
  797. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__1ae07be2._.js +3 -0
  798. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__1b995ded._.js +3 -0
  799. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__1c1c0e68._.js +3 -0
  800. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__1ce34a21._.js +3 -0
  801. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__228603ec._.js +3 -0
  802. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__256d4deb._.js +3 -0
  803. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__2a02fc49._.js +3 -0
  804. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__2ce39d51._.js +1 -1
  805. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__2d6ad93c._.js +3 -0
  806. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__31703e2b._.js +3 -0
  807. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__394943dc._.js +3 -0
  808. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__3bab2cf7._.js +3 -0
  809. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__3f48e8a2._.js +3 -0
  810. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__405fc5bc._.js +3 -0
  811. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__412dec17._.js +3 -0
  812. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__428f1837._.js +3 -0
  813. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__446f586e._.js +3 -0
  814. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__46ba5636._.js +3 -0
  815. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__49e358a8._.js +3 -0
  816. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__4a3e9ddd._.js +3 -0
  817. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__4d8a3fa3._.js +3 -0
  818. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__5dc7cf0d._.js +3 -0
  819. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__5fd67791._.js +3 -0
  820. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__61a55b93._.js +3 -0
  821. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__621d9bca._.js +3 -0
  822. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__6313c91e._.js +28 -0
  823. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__65fcccc8._.js +3 -0
  824. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__668ff2cd._.js +3 -0
  825. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__66e8ccce._.js +3 -0
  826. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__6b163dd7._.js +3 -0
  827. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__6c5a5852._.js +3 -0
  828. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__73601621._.js +3 -0
  829. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__747ac51a._.js +3 -0
  830. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__78d6e137._.js +3 -0
  831. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__7dac9015._.js +3 -0
  832. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__7e929085._.js +3 -0
  833. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__7fcfdb86._.js +3 -0
  834. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__80fb443b._.js +3 -0
  835. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__85538066._.js +3 -0
  836. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__85b114a2._.js +3 -0
  837. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__865615a6._.js +3 -0
  838. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__893cfe3c._.js +3 -0
  839. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__90d02df4._.js +3 -0
  840. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__925bed49._.js +3 -0
  841. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__95440fe8._.js +3 -0
  842. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__968aabbd._.js +3 -0
  843. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__97658502._.js +3 -0
  844. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__9b2f424f._.js +3 -0
  845. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__9ca51739._.js +3 -0
  846. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__a45d3a1d._.js +3 -0
  847. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__b5c89bad._.js +3 -0
  848. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__b73a3118._.js +3 -0
  849. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__c06cb06b._.js +3 -0
  850. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__c624410f._.js +3 -0
  851. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__c6ecf2e6._.js +3 -0
  852. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__c9626ece._.js +3 -0
  853. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__c9b787f4._.js +3 -0
  854. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__cb1e2942._.js +3 -0
  855. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__cb29be7d._.js +3 -0
  856. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__cc4964a5._.js +3 -0
  857. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__cdcdbbe3._.js +3 -0
  858. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ce529f57._.js +3 -0
  859. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__cfaae401._.js +3 -0
  860. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__d2afbd4e._.js +3 -0
  861. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__d62bf196._.js +3 -0
  862. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__d8cd86c9._.js +3 -0
  863. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__de098ee1._.js +3 -0
  864. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__e0d759be._.js +3 -0
  865. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__e6181b22._.js +3 -0
  866. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__e633102f._.js +3 -0
  867. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ea845f9f._.js +7 -0
  868. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__eabdec9e._.js +3 -0
  869. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__eb0c88b2._.js +3 -0
  870. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ececfccf._.js +3 -0
  871. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ed83cdf3._.js +3 -0
  872. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__eda7b9ea._.js +3 -0
  873. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ef38eeb2._.js +3 -0
  874. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__efbfac9f._.js +3 -0
  875. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__efd26bfc._.js +3 -0
  876. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__f12a3bd3._.js +3 -0
  877. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__f4786ce9._.js +3 -0
  878. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__f4d63c18._.js +3 -0
  879. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__f8ebc9db._.js +3 -0
  880. package/web/.next/standalone/packages/web/.next/server/chunks/_2c837d66._.js +80 -0
  881. package/web/.next/standalone/packages/web/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_5eb57175.js +6 -0
  882. package/web/.next/standalone/packages/web/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_eaad1f33.js +3 -0
  883. package/web/.next/standalone/packages/web/.next/server/chunks/packages_web__next-internal_server_app_api_app-update_route_actions_67fa9ca7.js +3 -0
  884. package/web/.next/standalone/packages/web/.next/server/chunks/packages_web__next-internal_server_app_api_github_webhook_route_actions_16ed82df.js +3 -0
  885. package/web/.next/standalone/packages/web/.next/server/chunks/packages_web__next-internal_server_app_api_remote-access_route_actions_5ebfaea6.js +3 -0
  886. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[externals]_node:async_hooks_b485b2a4._.js +3 -0
  887. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__000b8c99._.js +4 -0
  888. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__009ce29c._.js +3 -0
  889. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__010700d3._.js +3 -0
  890. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__0aa08967._.js +3 -0
  891. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__11ca851a._.js +3 -0
  892. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__29091976._.js +3 -0
  893. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__29d8d063._.js +4 -0
  894. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__4168e031._.js +3 -0
  895. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__5fccda2c._.js +3 -0
  896. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/{[root-of-the-server]__525ee5d4._.js → [root-of-the-server]__85aece6a._.js} +2 -2
  897. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__8a6b25f0._.js +3 -0
  898. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__8bcf983b._.js +1 -1
  899. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__a3c8291e._.js +3 -0
  900. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__b388693f._.js +1 -1
  901. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__d1efcbf0._.js +3 -0
  902. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__d800fc87._.js +3 -0
  903. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__e6f079d9._.js +3 -0
  904. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_0e1412de._.js +1 -1
  905. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_1f2460d5._.js +3 -0
  906. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_230c0c14._.js +80 -0
  907. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_27fe5f5d._.js +1 -1
  908. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_69e05fca._.js +1 -1
  909. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_6cfd06c2._.js +3 -0
  910. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_7321b77f._.js +1 -1
  911. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_80efe193._.js +1 -1
  912. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_8982bbf3._.js +3 -0
  913. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_9f3d31e1._.js +1 -1
  914. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_b214b154._.js +3 -0
  915. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_b6d31783._.js +1 -1
  916. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_c0f0e227._.js +1 -1
  917. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_c9612a3a._.js +1 -1
  918. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_e1c18705._.js +3 -0
  919. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_f36ddaa9._.js +1 -1
  920. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_270cb834._.js +1 -1
  921. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_8d94411c._.js +3 -0
  922. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_@clerk_3d65ee57._.js +24 -0
  923. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_@clerk_902120fe._.js +31 -0
  924. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/{node_modules_@clerk_nextjs_dist_esm_app-router_57153687._.js → node_modules_@clerk_nextjs_dist_esm_app-router_0a811c5a._.js} +2 -2
  925. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_app-router_2c78c2f3._.js +3 -0
  926. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_server_index_a054612e.js +3 -0
  927. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_@radix-ui_02f0d3f0._.js +3 -0
  928. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_message-square_2e76b8d9.js +3 -0
  929. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_a9871523._.js +14 -0
  930. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_ae5d7b42._.js +3 -0
  931. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/{node_modules_next_2a43e292._.js → node_modules_next_c73d6895._.js} +2 -2
  932. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_dist_08570d7f._.js +1 -1
  933. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_dist_65e60196._.js +1 -1
  934. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_dist_891f7b49._.js +6 -0
  935. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_cd51dad4.js +1 -1
  936. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js +1 -1
  937. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_components_board_WorkspaceKanban_tsx_735b7999._.js +1 -1
  938. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_components_ui_Tooltip_tsx_6becc8ca._.js +3 -0
  939. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_features_dashboard_DashboardClient_tsx_81ae42b0._.js +3 -0
  940. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_lib_cn_ts_d08d265f._.js +3 -0
  941. package/web/.next/standalone/packages/web/.next/server/functions-config-manifest.json +7 -5
  942. package/web/.next/standalone/packages/web/.next/server/middleware-build-manifest.js +4 -4
  943. package/web/.next/standalone/packages/web/.next/server/middleware.js +2 -4
  944. package/web/.next/standalone/packages/web/.next/server/pages/404.html +1 -1
  945. package/web/.next/standalone/packages/web/.next/server/pages/500.html +2 -2
  946. package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.js +1 -1
  947. package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.json +8 -8
  948. package/web/.next/standalone/packages/web/.next/static/{8a_zZln8ezVAo0jAilwbF → E4-NvSai1Ps20r9dtdpps}/_clientMiddlewareManifest.json +0 -4
  949. package/web/.next/standalone/packages/web/.next/static/chunks/006a91a252482204.js +1 -0
  950. package/web/.next/standalone/packages/web/.next/static/chunks/07f3b9a104ce0ff4.js +1 -0
  951. package/web/.next/standalone/packages/web/.next/static/chunks/1004422d31074d62.js +1 -0
  952. package/web/.next/standalone/packages/web/.next/static/chunks/{12d9b4273416fe9b.js → 28eac764d6544827.js} +1 -1
  953. package/web/.next/standalone/packages/web/.next/static/chunks/2e2e8fd2ceca47dc.js +6 -0
  954. package/web/.next/standalone/packages/web/.next/static/chunks/30ababddac1b82dc.js +1 -0
  955. package/web/.next/standalone/packages/web/.next/static/chunks/3349bdab17ed1183.js +1 -0
  956. package/web/.next/standalone/packages/web/.next/static/chunks/3770166bed1577ce.js +4 -0
  957. package/web/.next/standalone/packages/web/.next/static/chunks/4c3afea55dd8bc93.js +1 -0
  958. package/web/.next/standalone/packages/web/.next/static/chunks/57858ac28cbf124d.js +1 -0
  959. package/web/.next/standalone/packages/web/.next/static/chunks/7fd2a83e9e74f215.js +1 -0
  960. package/web/.next/standalone/packages/web/.next/static/chunks/91e9e111a2536f92.js +1 -0
  961. package/web/.next/standalone/packages/web/.next/static/chunks/aabc80195233b4da.js +1 -0
  962. package/web/.next/standalone/packages/web/.next/static/chunks/bf82908a598c6de5.css +3 -0
  963. package/web/.next/standalone/packages/web/.next/static/chunks/d6a81d2f8b98b4be.js +1 -0
  964. package/web/.next/standalone/packages/web/.next/static/chunks/e9d0e95bbaa0f4fb.js +1 -0
  965. package/web/.next/standalone/packages/web/.next/static/chunks/ebaa0c535c4135f1.js +1 -0
  966. package/web/.next/standalone/packages/web/.next/static/chunks/{turbopack-57373a2ee9f56180.js → turbopack-49f4119854e8206e.js} +1 -1
  967. package/web/.next/standalone/packages/web/package.json +2 -1
  968. package/web/.next/standalone/packages/web/src/app/api/agents/route.ts +196 -2
  969. package/web/.next/standalone/packages/web/src/app/api/app-update/route.ts +6 -0
  970. package/web/.next/standalone/packages/web/src/app/api/auth/session/route.ts +38 -3
  971. package/web/.next/standalone/packages/web/src/app/api/boards/comments/route.ts +8 -0
  972. package/web/.next/standalone/packages/web/src/app/api/boards/route.ts +1 -0
  973. package/web/.next/standalone/packages/web/src/app/api/context-files/open/route.ts +8 -0
  974. package/web/.next/standalone/packages/web/src/app/api/github/webhook/route.ts +5 -0
  975. package/web/.next/standalone/packages/web/src/app/api/remote-access/route.ts +115 -0
  976. package/web/.next/standalone/packages/web/src/app/api/sessions/[id]/feed/stream/route.ts +8 -0
  977. package/web/.next/standalone/packages/web/src/app/api/sessions/[id]/interrupt/route.ts +8 -0
  978. package/web/.next/standalone/packages/web/src/app/api/sessions/[id]/preview/dom/route.ts +37 -0
  979. package/web/.next/standalone/packages/web/src/app/api/sessions/[id]/preview/route.test.ts +141 -0
  980. package/web/.next/standalone/packages/web/src/app/api/sessions/[id]/preview/route.ts +90 -0
  981. package/web/.next/standalone/packages/web/src/app/api/sessions/[id]/preview/screenshot/route.ts +43 -0
  982. package/web/.next/standalone/packages/web/src/app/auth/grant/route.ts +3 -28
  983. package/web/.next/standalone/packages/web/src/app/layout.tsx +4 -2
  984. package/web/.next/standalone/packages/web/src/app/page.tsx +32 -3
  985. package/web/.next/standalone/packages/web/src/app/sessions/[id]/page.tsx +36 -3
  986. package/web/.next/standalone/packages/web/src/app/sign-in/[[...sign-in]]/page.tsx +20 -2
  987. package/web/.next/standalone/packages/web/src/app/unlock/page.tsx +29 -7
  988. package/web/.next/standalone/packages/web/src/components/Dashboard.tsx +8 -4
  989. package/web/.next/standalone/packages/web/src/components/board/WorkspaceKanban.tsx +1524 -213
  990. package/web/.next/standalone/packages/web/src/components/layout/AppShell.tsx +30 -14
  991. package/web/.next/standalone/packages/web/src/components/layout/AppUpdateNotice.tsx +345 -0
  992. package/web/.next/standalone/packages/web/src/components/layout/WorkspaceSidebarPanel.tsx +1 -1
  993. package/web/.next/standalone/packages/web/src/components/sessions/ChatPanel.tsx +614 -130
  994. package/web/.next/standalone/packages/web/src/components/sessions/SessionDetail.tsx +33 -6
  995. package/web/.next/standalone/packages/web/src/components/sessions/SessionOverview.tsx +0 -57
  996. package/web/.next/standalone/packages/web/src/components/sessions/SessionPreview.tsx +1143 -0
  997. package/web/.next/standalone/packages/web/src/components/sessions/SessionRuntimeStatusBar.tsx +215 -0
  998. package/web/.next/standalone/packages/web/src/features/dashboard/DashboardClient.tsx +1049 -329
  999. package/web/.next/standalone/packages/web/src/features/sessions/SessionPageClient.tsx +9 -17
  1000. package/web/.next/standalone/packages/web/src/hooks/useAgents.ts +5 -0
  1001. package/web/.next/standalone/packages/web/src/hooks/usePreferences.ts +4 -8
  1002. package/web/.next/standalone/packages/web/src/hooks/useResponsiveSidebarState.ts +46 -0
  1003. package/web/.next/standalone/packages/web/src/hooks/useSessionFeed.ts +57 -3
  1004. package/web/.next/standalone/packages/web/src/lib/auth.test.ts +98 -0
  1005. package/web/.next/standalone/packages/web/src/lib/auth.ts +88 -54
  1006. package/web/.next/standalone/packages/web/src/lib/chatFeed.ts +4 -4
  1007. package/web/.next/standalone/packages/web/src/lib/devPreviewBrowser.ts +608 -0
  1008. package/web/.next/standalone/packages/web/src/lib/edgeAuth.test.ts +14 -25
  1009. package/web/.next/standalone/packages/web/src/lib/edgeAuth.ts +39 -52
  1010. package/web/.next/standalone/packages/web/src/lib/guardedRustProxy.ts +30 -2
  1011. package/web/.next/standalone/packages/web/src/lib/knownAgents.ts +125 -0
  1012. package/web/.next/standalone/packages/web/src/lib/liveEvents.ts +50 -3
  1013. package/web/.next/standalone/packages/web/src/lib/modelAccess.ts +7 -0
  1014. package/web/.next/standalone/packages/web/src/lib/previewSession.test.ts +109 -0
  1015. package/web/.next/standalone/packages/web/src/lib/previewSession.ts +216 -0
  1016. package/web/.next/standalone/packages/web/src/lib/previewTypes.ts +75 -0
  1017. package/web/.next/standalone/packages/web/src/lib/projectConfigSync.ts +13 -2
  1018. package/web/.next/standalone/packages/web/src/lib/proxyRoutes.ts +1 -1
  1019. package/web/.next/standalone/packages/web/src/lib/remoteAccess.test.ts +118 -0
  1020. package/web/.next/standalone/packages/web/src/lib/remoteAccess.ts +245 -0
  1021. package/web/.next/standalone/packages/web/src/lib/remoteAccessManager.ts +513 -0
  1022. package/web/.next/standalone/packages/web/src/lib/remoteAccessRuntime.ts +117 -0
  1023. package/web/.next/standalone/packages/web/src/lib/remoteAuth.test.ts +15 -0
  1024. package/web/.next/standalone/packages/web/src/lib/remoteAuth.ts +8 -65
  1025. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/amp.ts +42 -0
  1026. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/ccr.ts +47 -0
  1027. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/claude.ts +179 -0
  1028. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/codex.ts +211 -0
  1029. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/copilot.ts +136 -0
  1030. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/cursor.ts +39 -0
  1031. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/droid.ts +103 -0
  1032. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/gemini.ts +65 -0
  1033. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/helpers.ts +409 -0
  1034. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/index.ts +127 -0
  1035. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/opencode.ts +138 -0
  1036. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/qwen.ts +50 -0
  1037. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels/types.ts +78 -0
  1038. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModelsShared.ts +9 -0
  1039. package/web/.next/standalone/packages/web/src/lib/rustBackendProxy.ts +29 -3
  1040. package/web/.next/standalone/packages/web/src/lib/sessionModelCatalog.ts +56 -0
  1041. package/web/.next/standalone/packages/web/src/lib/sessionRuntimeStatus.ts +152 -0
  1042. package/web/.next/standalone/packages/web/src/lib/types.ts +32 -0
  1043. package/web/.next/standalone/packages/web/src/proxy.ts +2 -98
  1044. package/web/.next/static/{8a_zZln8ezVAo0jAilwbF → E4-NvSai1Ps20r9dtdpps}/_clientMiddlewareManifest.json +0 -4
  1045. package/web/.next/static/chunks/006a91a252482204.js +1 -0
  1046. package/web/.next/static/chunks/07f3b9a104ce0ff4.js +1 -0
  1047. package/web/.next/static/chunks/1004422d31074d62.js +1 -0
  1048. package/web/.next/static/chunks/{12d9b4273416fe9b.js → 28eac764d6544827.js} +1 -1
  1049. package/web/.next/static/chunks/2e2e8fd2ceca47dc.js +6 -0
  1050. package/web/.next/static/chunks/30ababddac1b82dc.js +1 -0
  1051. package/web/.next/static/chunks/3349bdab17ed1183.js +1 -0
  1052. package/web/.next/static/chunks/3770166bed1577ce.js +4 -0
  1053. package/web/.next/static/chunks/4c3afea55dd8bc93.js +1 -0
  1054. package/web/.next/static/chunks/57858ac28cbf124d.js +1 -0
  1055. package/web/.next/static/chunks/7fd2a83e9e74f215.js +1 -0
  1056. package/web/.next/static/chunks/91e9e111a2536f92.js +1 -0
  1057. package/web/.next/static/chunks/aabc80195233b4da.js +1 -0
  1058. package/web/.next/static/chunks/bf82908a598c6de5.css +3 -0
  1059. package/web/.next/static/chunks/d6a81d2f8b98b4be.js +1 -0
  1060. package/web/.next/static/chunks/e9d0e95bbaa0f4fb.js +1 -0
  1061. package/web/.next/static/chunks/ebaa0c535c4135f1.js +1 -0
  1062. package/web/.next/static/chunks/{turbopack-57373a2ee9f56180.js → turbopack-49f4119854e8206e.js} +1 -1
  1063. package/web/.next/standalone/packages/web/.next/server/app/index.html +0 -1
  1064. package/web/.next/standalone/packages/web/.next/server/app/index.meta +0 -14
  1065. package/web/.next/standalone/packages/web/.next/server/app/index.rsc +0 -24
  1066. package/web/.next/standalone/packages/web/.next/server/app/index.segments/__PAGE__.segment.rsc +0 -9
  1067. package/web/.next/standalone/packages/web/.next/server/app/index.segments/_full.segment.rsc +0 -24
  1068. package/web/.next/standalone/packages/web/.next/server/app/index.segments/_head.segment.rsc +0 -6
  1069. package/web/.next/standalone/packages/web/.next/server/app/index.segments/_index.segment.rsc +0 -6
  1070. package/web/.next/standalone/packages/web/.next/server/app/index.segments/_tree.segment.rsc +0 -7
  1071. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__0074ebac._.js +0 -3
  1072. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__03a6b3e6._.js +0 -3
  1073. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__049daed6._.js +0 -3
  1074. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__09c3bdaf._.js +0 -7
  1075. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__137c9740._.js +0 -3
  1076. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__14949257._.js +0 -80
  1077. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__15594e11._.js +0 -3
  1078. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__159ecc1b._.js +0 -3
  1079. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__171dd44e._.js +0 -3
  1080. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__177505ca._.js +0 -3
  1081. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__18aa1fa3._.js +0 -3
  1082. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__1c3521a3._.js +0 -3
  1083. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__1c793b78._.js +0 -3
  1084. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__22fbbc7b._.js +0 -3
  1085. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__25bbe81a._.js +0 -3
  1086. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__2d10de49._.js +0 -3
  1087. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__30442998._.js +0 -3
  1088. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__31d22800._.js +0 -3
  1089. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__3d6b30a3._.js +0 -14
  1090. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__3d7ad620._.js +0 -3
  1091. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__44892736._.js +0 -3
  1092. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__495221b1._.js +0 -3
  1093. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__4ff9e8b0._.js +0 -3
  1094. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__54eb1ef0._.js +0 -3
  1095. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__5c375e13._.js +0 -3
  1096. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__6362697f._.js +0 -3
  1097. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__69b36e36._.js +0 -3
  1098. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__6badbf4e._.js +0 -3
  1099. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__6c4cd852._.js +0 -3
  1100. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__6f7b329b._.js +0 -3
  1101. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__70b7af90._.js +0 -3
  1102. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__71077192._.js +0 -3
  1103. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__758687ca._.js +0 -3
  1104. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__7604e43b._.js +0 -3
  1105. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__77b23eae._.js +0 -3
  1106. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__78650ac9._.js +0 -3
  1107. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__789107eb._.js +0 -3
  1108. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__78c062a8._.js +0 -3
  1109. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__78c4bb1e._.js +0 -3
  1110. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__790d1d4b._.js +0 -3
  1111. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__8132442f._.js +0 -3
  1112. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__833a2cd9._.js +0 -3
  1113. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__85d6ae4c._.js +0 -3
  1114. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__8d933120._.js +0 -3
  1115. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__90ac5665._.js +0 -3
  1116. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__92a4f9bf._.js +0 -3
  1117. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__93d550e2._.js +0 -3
  1118. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__96e59c1f._.js +0 -3
  1119. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__9c1d09aa._.js +0 -3
  1120. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__9d98fee2._.js +0 -3
  1121. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__9fcf6265._.js +0 -3
  1122. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__a5b78741._.js +0 -3
  1123. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__a8a4b101._.js +0 -3
  1124. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__a8d11727._.js +0 -3
  1125. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__b2e0e81c._.js +0 -3
  1126. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__bf756716._.js +0 -3
  1127. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__c09452b3._.js +0 -3
  1128. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__c3c6a7bf._.js +0 -3
  1129. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__c43dcff1._.js +0 -3
  1130. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__c923cbdc._.js +0 -3
  1131. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ce993e7b._.js +0 -3
  1132. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__cfbdd2bf._.js +0 -3
  1133. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__d1d8bfb5._.js +0 -3
  1134. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__d4d1744d._.js +0 -3
  1135. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__d8852803._.js +0 -3
  1136. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ea1961bd._.js +0 -3
  1137. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ee8a3221._.js +0 -3
  1138. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ef8c815b._.js +0 -3
  1139. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__ef918d06._.js +0 -3
  1140. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__f3693403._.js +0 -3
  1141. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__f62cac3a._.js +0 -3
  1142. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__f73117e9._.js +0 -3
  1143. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__f7651519._.js +0 -3
  1144. package/web/.next/standalone/packages/web/.next/server/chunks/[root-of-the-server]__fc6ffe6c._.js +0 -3
  1145. package/web/.next/standalone/packages/web/.next/server/chunks/node_modules_c59ce641._.js +0 -52
  1146. package/web/.next/standalone/packages/web/.next/server/chunks/node_modules_next_3f8eedde._.js +0 -3
  1147. package/web/.next/standalone/packages/web/.next/server/chunks/node_modules_next_9a15df2c._.js +0 -14
  1148. package/web/.next/standalone/packages/web/.next/server/chunks/node_modules_next_dist_2175c4f5._.js +0 -6
  1149. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__09178ceb._.js +0 -3
  1150. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__404c1aeb._.js +0 -3
  1151. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__4c215c94._.js +0 -3
  1152. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__504277b5._.js +0 -3
  1153. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__6622b514._.js +0 -4
  1154. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__869d9ac0._.js +0 -4
  1155. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__9dc23e5a._.js +0 -3
  1156. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__b3463b25._.js +0 -3
  1157. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__d6c32514._.js +0 -3
  1158. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__dd8d1ff5._.js +0 -3
  1159. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__e93a8bf2._.js +0 -3
  1160. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__f3a0805b._.js +0 -26
  1161. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/[root-of-the-server]__f9e4d8f6._.js +0 -3
  1162. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_3acfb388._.js +0 -3
  1163. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_54e5c07e._.js +0 -3
  1164. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_5edc4d99._.js +0 -3
  1165. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/_668c9201._.js +0 -3
  1166. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_@clerk_5c577fb4._.js +0 -22
  1167. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_@clerk_nextjs_dist_esm_app-router_a719fbda._.js +0 -3
  1168. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_f2ebd7a9._.js +0 -3
  1169. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_06f89723._.js +0 -6
  1170. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/node_modules_next_dist_aa203534._.js +0 -3
  1171. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_79316445._.js +0 -3
  1172. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_a078c137._.js +0 -3
  1173. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_app_page_tsx_cd282e82._.js +0 -3
  1174. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_app_unlock_UnlockForm_tsx_ce3149a7._.js +0 -3
  1175. package/web/.next/standalone/packages/web/.next/server/chunks/ssr/packages_web_src_components_556f498f._.js +0 -3
  1176. package/web/.next/standalone/packages/web/.next/static/chunks/25438e9094804f85.js +0 -1
  1177. package/web/.next/standalone/packages/web/.next/static/chunks/38c2e6a114505dfb.js +0 -1
  1178. package/web/.next/standalone/packages/web/.next/static/chunks/42170782dc03a5a6.js +0 -1
  1179. package/web/.next/standalone/packages/web/.next/static/chunks/4f46b791ea244c81.js +0 -6
  1180. package/web/.next/standalone/packages/web/.next/static/chunks/524a7c2a8e85ea2f.js +0 -1
  1181. package/web/.next/standalone/packages/web/.next/static/chunks/5672ef74a562c5dd.js +0 -1
  1182. package/web/.next/standalone/packages/web/.next/static/chunks/710591a828e2bb9d.js +0 -1
  1183. package/web/.next/standalone/packages/web/.next/static/chunks/72c822cfe5b6f4f2.js +0 -4
  1184. package/web/.next/standalone/packages/web/.next/static/chunks/870a993d28314a90.js +0 -1
  1185. package/web/.next/standalone/packages/web/.next/static/chunks/8c120e4e5b844646.js +0 -1
  1186. package/web/.next/standalone/packages/web/.next/static/chunks/8ec81b945f12169b.js +0 -1
  1187. package/web/.next/standalone/packages/web/.next/static/chunks/aa158726d4a10331.js +0 -1
  1188. package/web/.next/standalone/packages/web/.next/static/chunks/adf48bd54f32b061.js +0 -1
  1189. package/web/.next/standalone/packages/web/.next/static/chunks/c5caacf383990e7b.js +0 -1
  1190. package/web/.next/standalone/packages/web/.next/static/chunks/d3cd3cf58c908ec9.js +0 -1
  1191. package/web/.next/standalone/packages/web/.next/static/chunks/df9658182f4f7d54.css +0 -3
  1192. package/web/.next/standalone/packages/web/src/app/unlock/UnlockForm.tsx +0 -98
  1193. package/web/.next/standalone/packages/web/src/lib/editorLinks.ts +0 -51
  1194. package/web/.next/standalone/packages/web/src/lib/runtimeAgentModels.ts +0 -788
  1195. package/web/.next/static/chunks/25438e9094804f85.js +0 -1
  1196. package/web/.next/static/chunks/38c2e6a114505dfb.js +0 -1
  1197. package/web/.next/static/chunks/42170782dc03a5a6.js +0 -1
  1198. package/web/.next/static/chunks/4f46b791ea244c81.js +0 -6
  1199. package/web/.next/static/chunks/524a7c2a8e85ea2f.js +0 -1
  1200. package/web/.next/static/chunks/5672ef74a562c5dd.js +0 -1
  1201. package/web/.next/static/chunks/710591a828e2bb9d.js +0 -1
  1202. package/web/.next/static/chunks/72c822cfe5b6f4f2.js +0 -4
  1203. package/web/.next/static/chunks/870a993d28314a90.js +0 -1
  1204. package/web/.next/static/chunks/8c120e4e5b844646.js +0 -1
  1205. package/web/.next/static/chunks/8ec81b945f12169b.js +0 -1
  1206. package/web/.next/static/chunks/aa158726d4a10331.js +0 -1
  1207. package/web/.next/static/chunks/adf48bd54f32b061.js +0 -1
  1208. package/web/.next/static/chunks/c5caacf383990e7b.js +0 -1
  1209. package/web/.next/static/chunks/d3cd3cf58c908ec9.js +0 -1
  1210. package/web/.next/static/chunks/df9658182f4f7d54.css +0 -3
  1211. /package/web/.next/standalone/packages/web/.next/static/{8a_zZln8ezVAo0jAilwbF → E4-NvSai1Ps20r9dtdpps}/_buildManifest.js +0 -0
  1212. /package/web/.next/standalone/packages/web/.next/static/{8a_zZln8ezVAo0jAilwbF → E4-NvSai1Ps20r9dtdpps}/_ssgManifest.js +0 -0
  1213. /package/web/.next/static/{8a_zZln8ezVAo0jAilwbF → E4-NvSai1Ps20r9dtdpps}/_buildManifest.js +0 -0
  1214. /package/web/.next/static/{8a_zZln8ezVAo0jAilwbF → E4-NvSai1Ps20r9dtdpps}/_ssgManifest.js +0 -0
@@ -0,0 +1,1393 @@
1
+ /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Duplex|Readable$", "caughtErrors": "none" }] */
2
+
3
+ 'use strict';
4
+
5
+ const EventEmitter = require('events');
6
+ const https = require('https');
7
+ const http = require('http');
8
+ const net = require('net');
9
+ const tls = require('tls');
10
+ const { randomBytes, createHash } = require('crypto');
11
+ const { Duplex, Readable } = require('stream');
12
+ const { URL } = require('url');
13
+
14
+ const PerMessageDeflate = require('./permessage-deflate');
15
+ const Receiver = require('./receiver');
16
+ const Sender = require('./sender');
17
+ const { isBlob } = require('./validation');
18
+
19
+ const {
20
+ BINARY_TYPES,
21
+ CLOSE_TIMEOUT,
22
+ EMPTY_BUFFER,
23
+ GUID,
24
+ kForOnEventAttribute,
25
+ kListener,
26
+ kStatusCode,
27
+ kWebSocket,
28
+ NOOP
29
+ } = require('./constants');
30
+ const {
31
+ EventTarget: { addEventListener, removeEventListener }
32
+ } = require('./event-target');
33
+ const { format, parse } = require('./extension');
34
+ const { toBuffer } = require('./buffer-util');
35
+
36
+ const kAborted = Symbol('kAborted');
37
+ const protocolVersions = [8, 13];
38
+ const readyStates = ['CONNECTING', 'OPEN', 'CLOSING', 'CLOSED'];
39
+ const subprotocolRegex = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
40
+
41
+ /**
42
+ * Class representing a WebSocket.
43
+ *
44
+ * @extends EventEmitter
45
+ */
46
+ class WebSocket extends EventEmitter {
47
+ /**
48
+ * Create a new `WebSocket`.
49
+ *
50
+ * @param {(String|URL)} address The URL to which to connect
51
+ * @param {(String|String[])} [protocols] The subprotocols
52
+ * @param {Object} [options] Connection options
53
+ */
54
+ constructor(address, protocols, options) {
55
+ super();
56
+
57
+ this._binaryType = BINARY_TYPES[0];
58
+ this._closeCode = 1006;
59
+ this._closeFrameReceived = false;
60
+ this._closeFrameSent = false;
61
+ this._closeMessage = EMPTY_BUFFER;
62
+ this._closeTimer = null;
63
+ this._errorEmitted = false;
64
+ this._extensions = {};
65
+ this._paused = false;
66
+ this._protocol = '';
67
+ this._readyState = WebSocket.CONNECTING;
68
+ this._receiver = null;
69
+ this._sender = null;
70
+ this._socket = null;
71
+
72
+ if (address !== null) {
73
+ this._bufferedAmount = 0;
74
+ this._isServer = false;
75
+ this._redirects = 0;
76
+
77
+ if (protocols === undefined) {
78
+ protocols = [];
79
+ } else if (!Array.isArray(protocols)) {
80
+ if (typeof protocols === 'object' && protocols !== null) {
81
+ options = protocols;
82
+ protocols = [];
83
+ } else {
84
+ protocols = [protocols];
85
+ }
86
+ }
87
+
88
+ initAsClient(this, address, protocols, options);
89
+ } else {
90
+ this._autoPong = options.autoPong;
91
+ this._closeTimeout = options.closeTimeout;
92
+ this._isServer = true;
93
+ }
94
+ }
95
+
96
+ /**
97
+ * For historical reasons, the custom "nodebuffer" type is used by the default
98
+ * instead of "blob".
99
+ *
100
+ * @type {String}
101
+ */
102
+ get binaryType() {
103
+ return this._binaryType;
104
+ }
105
+
106
+ set binaryType(type) {
107
+ if (!BINARY_TYPES.includes(type)) return;
108
+
109
+ this._binaryType = type;
110
+
111
+ //
112
+ // Allow to change `binaryType` on the fly.
113
+ //
114
+ if (this._receiver) this._receiver._binaryType = type;
115
+ }
116
+
117
+ /**
118
+ * @type {Number}
119
+ */
120
+ get bufferedAmount() {
121
+ if (!this._socket) return this._bufferedAmount;
122
+
123
+ return this._socket._writableState.length + this._sender._bufferedBytes;
124
+ }
125
+
126
+ /**
127
+ * @type {String}
128
+ */
129
+ get extensions() {
130
+ return Object.keys(this._extensions).join();
131
+ }
132
+
133
+ /**
134
+ * @type {Boolean}
135
+ */
136
+ get isPaused() {
137
+ return this._paused;
138
+ }
139
+
140
+ /**
141
+ * @type {Function}
142
+ */
143
+ /* istanbul ignore next */
144
+ get onclose() {
145
+ return null;
146
+ }
147
+
148
+ /**
149
+ * @type {Function}
150
+ */
151
+ /* istanbul ignore next */
152
+ get onerror() {
153
+ return null;
154
+ }
155
+
156
+ /**
157
+ * @type {Function}
158
+ */
159
+ /* istanbul ignore next */
160
+ get onopen() {
161
+ return null;
162
+ }
163
+
164
+ /**
165
+ * @type {Function}
166
+ */
167
+ /* istanbul ignore next */
168
+ get onmessage() {
169
+ return null;
170
+ }
171
+
172
+ /**
173
+ * @type {String}
174
+ */
175
+ get protocol() {
176
+ return this._protocol;
177
+ }
178
+
179
+ /**
180
+ * @type {Number}
181
+ */
182
+ get readyState() {
183
+ return this._readyState;
184
+ }
185
+
186
+ /**
187
+ * @type {String}
188
+ */
189
+ get url() {
190
+ return this._url;
191
+ }
192
+
193
+ /**
194
+ * Set up the socket and the internal resources.
195
+ *
196
+ * @param {Duplex} socket The network socket between the server and client
197
+ * @param {Buffer} head The first packet of the upgraded stream
198
+ * @param {Object} options Options object
199
+ * @param {Boolean} [options.allowSynchronousEvents=false] Specifies whether
200
+ * any of the `'message'`, `'ping'`, and `'pong'` events can be emitted
201
+ * multiple times in the same tick
202
+ * @param {Function} [options.generateMask] The function used to generate the
203
+ * masking key
204
+ * @param {Number} [options.maxPayload=0] The maximum allowed message size
205
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
206
+ * not to skip UTF-8 validation for text and close messages
207
+ * @private
208
+ */
209
+ setSocket(socket, head, options) {
210
+ const receiver = new Receiver({
211
+ allowSynchronousEvents: options.allowSynchronousEvents,
212
+ binaryType: this.binaryType,
213
+ extensions: this._extensions,
214
+ isServer: this._isServer,
215
+ maxPayload: options.maxPayload,
216
+ skipUTF8Validation: options.skipUTF8Validation
217
+ });
218
+
219
+ const sender = new Sender(socket, this._extensions, options.generateMask);
220
+
221
+ this._receiver = receiver;
222
+ this._sender = sender;
223
+ this._socket = socket;
224
+
225
+ receiver[kWebSocket] = this;
226
+ sender[kWebSocket] = this;
227
+ socket[kWebSocket] = this;
228
+
229
+ receiver.on('conclude', receiverOnConclude);
230
+ receiver.on('drain', receiverOnDrain);
231
+ receiver.on('error', receiverOnError);
232
+ receiver.on('message', receiverOnMessage);
233
+ receiver.on('ping', receiverOnPing);
234
+ receiver.on('pong', receiverOnPong);
235
+
236
+ sender.onerror = senderOnError;
237
+
238
+ //
239
+ // These methods may not be available if `socket` is just a `Duplex`.
240
+ //
241
+ if (socket.setTimeout) socket.setTimeout(0);
242
+ if (socket.setNoDelay) socket.setNoDelay();
243
+
244
+ if (head.length > 0) socket.unshift(head);
245
+
246
+ socket.on('close', socketOnClose);
247
+ socket.on('data', socketOnData);
248
+ socket.on('end', socketOnEnd);
249
+ socket.on('error', socketOnError);
250
+
251
+ this._readyState = WebSocket.OPEN;
252
+ this.emit('open');
253
+ }
254
+
255
+ /**
256
+ * Emit the `'close'` event.
257
+ *
258
+ * @private
259
+ */
260
+ emitClose() {
261
+ if (!this._socket) {
262
+ this._readyState = WebSocket.CLOSED;
263
+ this.emit('close', this._closeCode, this._closeMessage);
264
+ return;
265
+ }
266
+
267
+ if (this._extensions[PerMessageDeflate.extensionName]) {
268
+ this._extensions[PerMessageDeflate.extensionName].cleanup();
269
+ }
270
+
271
+ this._receiver.removeAllListeners();
272
+ this._readyState = WebSocket.CLOSED;
273
+ this.emit('close', this._closeCode, this._closeMessage);
274
+ }
275
+
276
+ /**
277
+ * Start a closing handshake.
278
+ *
279
+ * +----------+ +-----------+ +----------+
280
+ * - - -|ws.close()|-->|close frame|-->|ws.close()|- - -
281
+ * | +----------+ +-----------+ +----------+ |
282
+ * +----------+ +-----------+ |
283
+ * CLOSING |ws.close()|<--|close frame|<--+-----+ CLOSING
284
+ * +----------+ +-----------+ |
285
+ * | | | +---+ |
286
+ * +------------------------+-->|fin| - - - -
287
+ * | +---+ | +---+
288
+ * - - - - -|fin|<---------------------+
289
+ * +---+
290
+ *
291
+ * @param {Number} [code] Status code explaining why the connection is closing
292
+ * @param {(String|Buffer)} [data] The reason why the connection is
293
+ * closing
294
+ * @public
295
+ */
296
+ close(code, data) {
297
+ if (this.readyState === WebSocket.CLOSED) return;
298
+ if (this.readyState === WebSocket.CONNECTING) {
299
+ const msg = 'WebSocket was closed before the connection was established';
300
+ abortHandshake(this, this._req, msg);
301
+ return;
302
+ }
303
+
304
+ if (this.readyState === WebSocket.CLOSING) {
305
+ if (
306
+ this._closeFrameSent &&
307
+ (this._closeFrameReceived || this._receiver._writableState.errorEmitted)
308
+ ) {
309
+ this._socket.end();
310
+ }
311
+
312
+ return;
313
+ }
314
+
315
+ this._readyState = WebSocket.CLOSING;
316
+ this._sender.close(code, data, !this._isServer, (err) => {
317
+ //
318
+ // This error is handled by the `'error'` listener on the socket. We only
319
+ // want to know if the close frame has been sent here.
320
+ //
321
+ if (err) return;
322
+
323
+ this._closeFrameSent = true;
324
+
325
+ if (
326
+ this._closeFrameReceived ||
327
+ this._receiver._writableState.errorEmitted
328
+ ) {
329
+ this._socket.end();
330
+ }
331
+ });
332
+
333
+ setCloseTimer(this);
334
+ }
335
+
336
+ /**
337
+ * Pause the socket.
338
+ *
339
+ * @public
340
+ */
341
+ pause() {
342
+ if (
343
+ this.readyState === WebSocket.CONNECTING ||
344
+ this.readyState === WebSocket.CLOSED
345
+ ) {
346
+ return;
347
+ }
348
+
349
+ this._paused = true;
350
+ this._socket.pause();
351
+ }
352
+
353
+ /**
354
+ * Send a ping.
355
+ *
356
+ * @param {*} [data] The data to send
357
+ * @param {Boolean} [mask] Indicates whether or not to mask `data`
358
+ * @param {Function} [cb] Callback which is executed when the ping is sent
359
+ * @public
360
+ */
361
+ ping(data, mask, cb) {
362
+ if (this.readyState === WebSocket.CONNECTING) {
363
+ throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
364
+ }
365
+
366
+ if (typeof data === 'function') {
367
+ cb = data;
368
+ data = mask = undefined;
369
+ } else if (typeof mask === 'function') {
370
+ cb = mask;
371
+ mask = undefined;
372
+ }
373
+
374
+ if (typeof data === 'number') data = data.toString();
375
+
376
+ if (this.readyState !== WebSocket.OPEN) {
377
+ sendAfterClose(this, data, cb);
378
+ return;
379
+ }
380
+
381
+ if (mask === undefined) mask = !this._isServer;
382
+ this._sender.ping(data || EMPTY_BUFFER, mask, cb);
383
+ }
384
+
385
+ /**
386
+ * Send a pong.
387
+ *
388
+ * @param {*} [data] The data to send
389
+ * @param {Boolean} [mask] Indicates whether or not to mask `data`
390
+ * @param {Function} [cb] Callback which is executed when the pong is sent
391
+ * @public
392
+ */
393
+ pong(data, mask, cb) {
394
+ if (this.readyState === WebSocket.CONNECTING) {
395
+ throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
396
+ }
397
+
398
+ if (typeof data === 'function') {
399
+ cb = data;
400
+ data = mask = undefined;
401
+ } else if (typeof mask === 'function') {
402
+ cb = mask;
403
+ mask = undefined;
404
+ }
405
+
406
+ if (typeof data === 'number') data = data.toString();
407
+
408
+ if (this.readyState !== WebSocket.OPEN) {
409
+ sendAfterClose(this, data, cb);
410
+ return;
411
+ }
412
+
413
+ if (mask === undefined) mask = !this._isServer;
414
+ this._sender.pong(data || EMPTY_BUFFER, mask, cb);
415
+ }
416
+
417
+ /**
418
+ * Resume the socket.
419
+ *
420
+ * @public
421
+ */
422
+ resume() {
423
+ if (
424
+ this.readyState === WebSocket.CONNECTING ||
425
+ this.readyState === WebSocket.CLOSED
426
+ ) {
427
+ return;
428
+ }
429
+
430
+ this._paused = false;
431
+ if (!this._receiver._writableState.needDrain) this._socket.resume();
432
+ }
433
+
434
+ /**
435
+ * Send a data message.
436
+ *
437
+ * @param {*} data The message to send
438
+ * @param {Object} [options] Options object
439
+ * @param {Boolean} [options.binary] Specifies whether `data` is binary or
440
+ * text
441
+ * @param {Boolean} [options.compress] Specifies whether or not to compress
442
+ * `data`
443
+ * @param {Boolean} [options.fin=true] Specifies whether the fragment is the
444
+ * last one
445
+ * @param {Boolean} [options.mask] Specifies whether or not to mask `data`
446
+ * @param {Function} [cb] Callback which is executed when data is written out
447
+ * @public
448
+ */
449
+ send(data, options, cb) {
450
+ if (this.readyState === WebSocket.CONNECTING) {
451
+ throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
452
+ }
453
+
454
+ if (typeof options === 'function') {
455
+ cb = options;
456
+ options = {};
457
+ }
458
+
459
+ if (typeof data === 'number') data = data.toString();
460
+
461
+ if (this.readyState !== WebSocket.OPEN) {
462
+ sendAfterClose(this, data, cb);
463
+ return;
464
+ }
465
+
466
+ const opts = {
467
+ binary: typeof data !== 'string',
468
+ mask: !this._isServer,
469
+ compress: true,
470
+ fin: true,
471
+ ...options
472
+ };
473
+
474
+ if (!this._extensions[PerMessageDeflate.extensionName]) {
475
+ opts.compress = false;
476
+ }
477
+
478
+ this._sender.send(data || EMPTY_BUFFER, opts, cb);
479
+ }
480
+
481
+ /**
482
+ * Forcibly close the connection.
483
+ *
484
+ * @public
485
+ */
486
+ terminate() {
487
+ if (this.readyState === WebSocket.CLOSED) return;
488
+ if (this.readyState === WebSocket.CONNECTING) {
489
+ const msg = 'WebSocket was closed before the connection was established';
490
+ abortHandshake(this, this._req, msg);
491
+ return;
492
+ }
493
+
494
+ if (this._socket) {
495
+ this._readyState = WebSocket.CLOSING;
496
+ this._socket.destroy();
497
+ }
498
+ }
499
+ }
500
+
501
+ /**
502
+ * @constant {Number} CONNECTING
503
+ * @memberof WebSocket
504
+ */
505
+ Object.defineProperty(WebSocket, 'CONNECTING', {
506
+ enumerable: true,
507
+ value: readyStates.indexOf('CONNECTING')
508
+ });
509
+
510
+ /**
511
+ * @constant {Number} CONNECTING
512
+ * @memberof WebSocket.prototype
513
+ */
514
+ Object.defineProperty(WebSocket.prototype, 'CONNECTING', {
515
+ enumerable: true,
516
+ value: readyStates.indexOf('CONNECTING')
517
+ });
518
+
519
+ /**
520
+ * @constant {Number} OPEN
521
+ * @memberof WebSocket
522
+ */
523
+ Object.defineProperty(WebSocket, 'OPEN', {
524
+ enumerable: true,
525
+ value: readyStates.indexOf('OPEN')
526
+ });
527
+
528
+ /**
529
+ * @constant {Number} OPEN
530
+ * @memberof WebSocket.prototype
531
+ */
532
+ Object.defineProperty(WebSocket.prototype, 'OPEN', {
533
+ enumerable: true,
534
+ value: readyStates.indexOf('OPEN')
535
+ });
536
+
537
+ /**
538
+ * @constant {Number} CLOSING
539
+ * @memberof WebSocket
540
+ */
541
+ Object.defineProperty(WebSocket, 'CLOSING', {
542
+ enumerable: true,
543
+ value: readyStates.indexOf('CLOSING')
544
+ });
545
+
546
+ /**
547
+ * @constant {Number} CLOSING
548
+ * @memberof WebSocket.prototype
549
+ */
550
+ Object.defineProperty(WebSocket.prototype, 'CLOSING', {
551
+ enumerable: true,
552
+ value: readyStates.indexOf('CLOSING')
553
+ });
554
+
555
+ /**
556
+ * @constant {Number} CLOSED
557
+ * @memberof WebSocket
558
+ */
559
+ Object.defineProperty(WebSocket, 'CLOSED', {
560
+ enumerable: true,
561
+ value: readyStates.indexOf('CLOSED')
562
+ });
563
+
564
+ /**
565
+ * @constant {Number} CLOSED
566
+ * @memberof WebSocket.prototype
567
+ */
568
+ Object.defineProperty(WebSocket.prototype, 'CLOSED', {
569
+ enumerable: true,
570
+ value: readyStates.indexOf('CLOSED')
571
+ });
572
+
573
+ [
574
+ 'binaryType',
575
+ 'bufferedAmount',
576
+ 'extensions',
577
+ 'isPaused',
578
+ 'protocol',
579
+ 'readyState',
580
+ 'url'
581
+ ].forEach((property) => {
582
+ Object.defineProperty(WebSocket.prototype, property, { enumerable: true });
583
+ });
584
+
585
+ //
586
+ // Add the `onopen`, `onerror`, `onclose`, and `onmessage` attributes.
587
+ // See https://html.spec.whatwg.org/multipage/comms.html#the-websocket-interface
588
+ //
589
+ ['open', 'error', 'close', 'message'].forEach((method) => {
590
+ Object.defineProperty(WebSocket.prototype, `on${method}`, {
591
+ enumerable: true,
592
+ get() {
593
+ for (const listener of this.listeners(method)) {
594
+ if (listener[kForOnEventAttribute]) return listener[kListener];
595
+ }
596
+
597
+ return null;
598
+ },
599
+ set(handler) {
600
+ for (const listener of this.listeners(method)) {
601
+ if (listener[kForOnEventAttribute]) {
602
+ this.removeListener(method, listener);
603
+ break;
604
+ }
605
+ }
606
+
607
+ if (typeof handler !== 'function') return;
608
+
609
+ this.addEventListener(method, handler, {
610
+ [kForOnEventAttribute]: true
611
+ });
612
+ }
613
+ });
614
+ });
615
+
616
+ WebSocket.prototype.addEventListener = addEventListener;
617
+ WebSocket.prototype.removeEventListener = removeEventListener;
618
+
619
+ module.exports = WebSocket;
620
+
621
+ /**
622
+ * Initialize a WebSocket client.
623
+ *
624
+ * @param {WebSocket} websocket The client to initialize
625
+ * @param {(String|URL)} address The URL to which to connect
626
+ * @param {Array} protocols The subprotocols
627
+ * @param {Object} [options] Connection options
628
+ * @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether any
629
+ * of the `'message'`, `'ping'`, and `'pong'` events can be emitted multiple
630
+ * times in the same tick
631
+ * @param {Boolean} [options.autoPong=true] Specifies whether or not to
632
+ * automatically send a pong in response to a ping
633
+ * @param {Number} [options.closeTimeout=30000] Duration in milliseconds to wait
634
+ * for the closing handshake to finish after `websocket.close()` is called
635
+ * @param {Function} [options.finishRequest] A function which can be used to
636
+ * customize the headers of each http request before it is sent
637
+ * @param {Boolean} [options.followRedirects=false] Whether or not to follow
638
+ * redirects
639
+ * @param {Function} [options.generateMask] The function used to generate the
640
+ * masking key
641
+ * @param {Number} [options.handshakeTimeout] Timeout in milliseconds for the
642
+ * handshake request
643
+ * @param {Number} [options.maxPayload=104857600] The maximum allowed message
644
+ * size
645
+ * @param {Number} [options.maxRedirects=10] The maximum number of redirects
646
+ * allowed
647
+ * @param {String} [options.origin] Value of the `Origin` or
648
+ * `Sec-WebSocket-Origin` header
649
+ * @param {(Boolean|Object)} [options.perMessageDeflate=true] Enable/disable
650
+ * permessage-deflate
651
+ * @param {Number} [options.protocolVersion=13] Value of the
652
+ * `Sec-WebSocket-Version` header
653
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
654
+ * not to skip UTF-8 validation for text and close messages
655
+ * @private
656
+ */
657
+ function initAsClient(websocket, address, protocols, options) {
658
+ const opts = {
659
+ allowSynchronousEvents: true,
660
+ autoPong: true,
661
+ closeTimeout: CLOSE_TIMEOUT,
662
+ protocolVersion: protocolVersions[1],
663
+ maxPayload: 100 * 1024 * 1024,
664
+ skipUTF8Validation: false,
665
+ perMessageDeflate: true,
666
+ followRedirects: false,
667
+ maxRedirects: 10,
668
+ ...options,
669
+ socketPath: undefined,
670
+ hostname: undefined,
671
+ protocol: undefined,
672
+ timeout: undefined,
673
+ method: 'GET',
674
+ host: undefined,
675
+ path: undefined,
676
+ port: undefined
677
+ };
678
+
679
+ websocket._autoPong = opts.autoPong;
680
+ websocket._closeTimeout = opts.closeTimeout;
681
+
682
+ if (!protocolVersions.includes(opts.protocolVersion)) {
683
+ throw new RangeError(
684
+ `Unsupported protocol version: ${opts.protocolVersion} ` +
685
+ `(supported versions: ${protocolVersions.join(', ')})`
686
+ );
687
+ }
688
+
689
+ let parsedUrl;
690
+
691
+ if (address instanceof URL) {
692
+ parsedUrl = address;
693
+ } else {
694
+ try {
695
+ parsedUrl = new URL(address);
696
+ } catch (e) {
697
+ throw new SyntaxError(`Invalid URL: ${address}`);
698
+ }
699
+ }
700
+
701
+ if (parsedUrl.protocol === 'http:') {
702
+ parsedUrl.protocol = 'ws:';
703
+ } else if (parsedUrl.protocol === 'https:') {
704
+ parsedUrl.protocol = 'wss:';
705
+ }
706
+
707
+ websocket._url = parsedUrl.href;
708
+
709
+ const isSecure = parsedUrl.protocol === 'wss:';
710
+ const isIpcUrl = parsedUrl.protocol === 'ws+unix:';
711
+ let invalidUrlMessage;
712
+
713
+ if (parsedUrl.protocol !== 'ws:' && !isSecure && !isIpcUrl) {
714
+ invalidUrlMessage =
715
+ 'The URL\'s protocol must be one of "ws:", "wss:", ' +
716
+ '"http:", "https:", or "ws+unix:"';
717
+ } else if (isIpcUrl && !parsedUrl.pathname) {
718
+ invalidUrlMessage = "The URL's pathname is empty";
719
+ } else if (parsedUrl.hash) {
720
+ invalidUrlMessage = 'The URL contains a fragment identifier';
721
+ }
722
+
723
+ if (invalidUrlMessage) {
724
+ const err = new SyntaxError(invalidUrlMessage);
725
+
726
+ if (websocket._redirects === 0) {
727
+ throw err;
728
+ } else {
729
+ emitErrorAndClose(websocket, err);
730
+ return;
731
+ }
732
+ }
733
+
734
+ const defaultPort = isSecure ? 443 : 80;
735
+ const key = randomBytes(16).toString('base64');
736
+ const request = isSecure ? https.request : http.request;
737
+ const protocolSet = new Set();
738
+ let perMessageDeflate;
739
+
740
+ opts.createConnection =
741
+ opts.createConnection || (isSecure ? tlsConnect : netConnect);
742
+ opts.defaultPort = opts.defaultPort || defaultPort;
743
+ opts.port = parsedUrl.port || defaultPort;
744
+ opts.host = parsedUrl.hostname.startsWith('[')
745
+ ? parsedUrl.hostname.slice(1, -1)
746
+ : parsedUrl.hostname;
747
+ opts.headers = {
748
+ ...opts.headers,
749
+ 'Sec-WebSocket-Version': opts.protocolVersion,
750
+ 'Sec-WebSocket-Key': key,
751
+ Connection: 'Upgrade',
752
+ Upgrade: 'websocket'
753
+ };
754
+ opts.path = parsedUrl.pathname + parsedUrl.search;
755
+ opts.timeout = opts.handshakeTimeout;
756
+
757
+ if (opts.perMessageDeflate) {
758
+ perMessageDeflate = new PerMessageDeflate(
759
+ opts.perMessageDeflate !== true ? opts.perMessageDeflate : {},
760
+ false,
761
+ opts.maxPayload
762
+ );
763
+ opts.headers['Sec-WebSocket-Extensions'] = format({
764
+ [PerMessageDeflate.extensionName]: perMessageDeflate.offer()
765
+ });
766
+ }
767
+ if (protocols.length) {
768
+ for (const protocol of protocols) {
769
+ if (
770
+ typeof protocol !== 'string' ||
771
+ !subprotocolRegex.test(protocol) ||
772
+ protocolSet.has(protocol)
773
+ ) {
774
+ throw new SyntaxError(
775
+ 'An invalid or duplicated subprotocol was specified'
776
+ );
777
+ }
778
+
779
+ protocolSet.add(protocol);
780
+ }
781
+
782
+ opts.headers['Sec-WebSocket-Protocol'] = protocols.join(',');
783
+ }
784
+ if (opts.origin) {
785
+ if (opts.protocolVersion < 13) {
786
+ opts.headers['Sec-WebSocket-Origin'] = opts.origin;
787
+ } else {
788
+ opts.headers.Origin = opts.origin;
789
+ }
790
+ }
791
+ if (parsedUrl.username || parsedUrl.password) {
792
+ opts.auth = `${parsedUrl.username}:${parsedUrl.password}`;
793
+ }
794
+
795
+ if (isIpcUrl) {
796
+ const parts = opts.path.split(':');
797
+
798
+ opts.socketPath = parts[0];
799
+ opts.path = parts[1];
800
+ }
801
+
802
+ let req;
803
+
804
+ if (opts.followRedirects) {
805
+ if (websocket._redirects === 0) {
806
+ websocket._originalIpc = isIpcUrl;
807
+ websocket._originalSecure = isSecure;
808
+ websocket._originalHostOrSocketPath = isIpcUrl
809
+ ? opts.socketPath
810
+ : parsedUrl.host;
811
+
812
+ const headers = options && options.headers;
813
+
814
+ //
815
+ // Shallow copy the user provided options so that headers can be changed
816
+ // without mutating the original object.
817
+ //
818
+ options = { ...options, headers: {} };
819
+
820
+ if (headers) {
821
+ for (const [key, value] of Object.entries(headers)) {
822
+ options.headers[key.toLowerCase()] = value;
823
+ }
824
+ }
825
+ } else if (websocket.listenerCount('redirect') === 0) {
826
+ const isSameHost = isIpcUrl
827
+ ? websocket._originalIpc
828
+ ? opts.socketPath === websocket._originalHostOrSocketPath
829
+ : false
830
+ : websocket._originalIpc
831
+ ? false
832
+ : parsedUrl.host === websocket._originalHostOrSocketPath;
833
+
834
+ if (!isSameHost || (websocket._originalSecure && !isSecure)) {
835
+ //
836
+ // Match curl 7.77.0 behavior and drop the following headers. These
837
+ // headers are also dropped when following a redirect to a subdomain.
838
+ //
839
+ delete opts.headers.authorization;
840
+ delete opts.headers.cookie;
841
+
842
+ if (!isSameHost) delete opts.headers.host;
843
+
844
+ opts.auth = undefined;
845
+ }
846
+ }
847
+
848
+ //
849
+ // Match curl 7.77.0 behavior and make the first `Authorization` header win.
850
+ // If the `Authorization` header is set, then there is nothing to do as it
851
+ // will take precedence.
852
+ //
853
+ if (opts.auth && !options.headers.authorization) {
854
+ options.headers.authorization =
855
+ 'Basic ' + Buffer.from(opts.auth).toString('base64');
856
+ }
857
+
858
+ req = websocket._req = request(opts);
859
+
860
+ if (websocket._redirects) {
861
+ //
862
+ // Unlike what is done for the `'upgrade'` event, no early exit is
863
+ // triggered here if the user calls `websocket.close()` or
864
+ // `websocket.terminate()` from a listener of the `'redirect'` event. This
865
+ // is because the user can also call `request.destroy()` with an error
866
+ // before calling `websocket.close()` or `websocket.terminate()` and this
867
+ // would result in an error being emitted on the `request` object with no
868
+ // `'error'` event listeners attached.
869
+ //
870
+ websocket.emit('redirect', websocket.url, req);
871
+ }
872
+ } else {
873
+ req = websocket._req = request(opts);
874
+ }
875
+
876
+ if (opts.timeout) {
877
+ req.on('timeout', () => {
878
+ abortHandshake(websocket, req, 'Opening handshake has timed out');
879
+ });
880
+ }
881
+
882
+ req.on('error', (err) => {
883
+ if (req === null || req[kAborted]) return;
884
+
885
+ req = websocket._req = null;
886
+ emitErrorAndClose(websocket, err);
887
+ });
888
+
889
+ req.on('response', (res) => {
890
+ const location = res.headers.location;
891
+ const statusCode = res.statusCode;
892
+
893
+ if (
894
+ location &&
895
+ opts.followRedirects &&
896
+ statusCode >= 300 &&
897
+ statusCode < 400
898
+ ) {
899
+ if (++websocket._redirects > opts.maxRedirects) {
900
+ abortHandshake(websocket, req, 'Maximum redirects exceeded');
901
+ return;
902
+ }
903
+
904
+ req.abort();
905
+
906
+ let addr;
907
+
908
+ try {
909
+ addr = new URL(location, address);
910
+ } catch (e) {
911
+ const err = new SyntaxError(`Invalid URL: ${location}`);
912
+ emitErrorAndClose(websocket, err);
913
+ return;
914
+ }
915
+
916
+ initAsClient(websocket, addr, protocols, options);
917
+ } else if (!websocket.emit('unexpected-response', req, res)) {
918
+ abortHandshake(
919
+ websocket,
920
+ req,
921
+ `Unexpected server response: ${res.statusCode}`
922
+ );
923
+ }
924
+ });
925
+
926
+ req.on('upgrade', (res, socket, head) => {
927
+ websocket.emit('upgrade', res);
928
+
929
+ //
930
+ // The user may have closed the connection from a listener of the
931
+ // `'upgrade'` event.
932
+ //
933
+ if (websocket.readyState !== WebSocket.CONNECTING) return;
934
+
935
+ req = websocket._req = null;
936
+
937
+ const upgrade = res.headers.upgrade;
938
+
939
+ if (upgrade === undefined || upgrade.toLowerCase() !== 'websocket') {
940
+ abortHandshake(websocket, socket, 'Invalid Upgrade header');
941
+ return;
942
+ }
943
+
944
+ const digest = createHash('sha1')
945
+ .update(key + GUID)
946
+ .digest('base64');
947
+
948
+ if (res.headers['sec-websocket-accept'] !== digest) {
949
+ abortHandshake(websocket, socket, 'Invalid Sec-WebSocket-Accept header');
950
+ return;
951
+ }
952
+
953
+ const serverProt = res.headers['sec-websocket-protocol'];
954
+ let protError;
955
+
956
+ if (serverProt !== undefined) {
957
+ if (!protocolSet.size) {
958
+ protError = 'Server sent a subprotocol but none was requested';
959
+ } else if (!protocolSet.has(serverProt)) {
960
+ protError = 'Server sent an invalid subprotocol';
961
+ }
962
+ } else if (protocolSet.size) {
963
+ protError = 'Server sent no subprotocol';
964
+ }
965
+
966
+ if (protError) {
967
+ abortHandshake(websocket, socket, protError);
968
+ return;
969
+ }
970
+
971
+ if (serverProt) websocket._protocol = serverProt;
972
+
973
+ const secWebSocketExtensions = res.headers['sec-websocket-extensions'];
974
+
975
+ if (secWebSocketExtensions !== undefined) {
976
+ if (!perMessageDeflate) {
977
+ const message =
978
+ 'Server sent a Sec-WebSocket-Extensions header but no extension ' +
979
+ 'was requested';
980
+ abortHandshake(websocket, socket, message);
981
+ return;
982
+ }
983
+
984
+ let extensions;
985
+
986
+ try {
987
+ extensions = parse(secWebSocketExtensions);
988
+ } catch (err) {
989
+ const message = 'Invalid Sec-WebSocket-Extensions header';
990
+ abortHandshake(websocket, socket, message);
991
+ return;
992
+ }
993
+
994
+ const extensionNames = Object.keys(extensions);
995
+
996
+ if (
997
+ extensionNames.length !== 1 ||
998
+ extensionNames[0] !== PerMessageDeflate.extensionName
999
+ ) {
1000
+ const message = 'Server indicated an extension that was not requested';
1001
+ abortHandshake(websocket, socket, message);
1002
+ return;
1003
+ }
1004
+
1005
+ try {
1006
+ perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName]);
1007
+ } catch (err) {
1008
+ const message = 'Invalid Sec-WebSocket-Extensions header';
1009
+ abortHandshake(websocket, socket, message);
1010
+ return;
1011
+ }
1012
+
1013
+ websocket._extensions[PerMessageDeflate.extensionName] =
1014
+ perMessageDeflate;
1015
+ }
1016
+
1017
+ websocket.setSocket(socket, head, {
1018
+ allowSynchronousEvents: opts.allowSynchronousEvents,
1019
+ generateMask: opts.generateMask,
1020
+ maxPayload: opts.maxPayload,
1021
+ skipUTF8Validation: opts.skipUTF8Validation
1022
+ });
1023
+ });
1024
+
1025
+ if (opts.finishRequest) {
1026
+ opts.finishRequest(req, websocket);
1027
+ } else {
1028
+ req.end();
1029
+ }
1030
+ }
1031
+
1032
+ /**
1033
+ * Emit the `'error'` and `'close'` events.
1034
+ *
1035
+ * @param {WebSocket} websocket The WebSocket instance
1036
+ * @param {Error} The error to emit
1037
+ * @private
1038
+ */
1039
+ function emitErrorAndClose(websocket, err) {
1040
+ websocket._readyState = WebSocket.CLOSING;
1041
+ //
1042
+ // The following assignment is practically useless and is done only for
1043
+ // consistency.
1044
+ //
1045
+ websocket._errorEmitted = true;
1046
+ websocket.emit('error', err);
1047
+ websocket.emitClose();
1048
+ }
1049
+
1050
+ /**
1051
+ * Create a `net.Socket` and initiate a connection.
1052
+ *
1053
+ * @param {Object} options Connection options
1054
+ * @return {net.Socket} The newly created socket used to start the connection
1055
+ * @private
1056
+ */
1057
+ function netConnect(options) {
1058
+ options.path = options.socketPath;
1059
+ return net.connect(options);
1060
+ }
1061
+
1062
+ /**
1063
+ * Create a `tls.TLSSocket` and initiate a connection.
1064
+ *
1065
+ * @param {Object} options Connection options
1066
+ * @return {tls.TLSSocket} The newly created socket used to start the connection
1067
+ * @private
1068
+ */
1069
+ function tlsConnect(options) {
1070
+ options.path = undefined;
1071
+
1072
+ if (!options.servername && options.servername !== '') {
1073
+ options.servername = net.isIP(options.host) ? '' : options.host;
1074
+ }
1075
+
1076
+ return tls.connect(options);
1077
+ }
1078
+
1079
+ /**
1080
+ * Abort the handshake and emit an error.
1081
+ *
1082
+ * @param {WebSocket} websocket The WebSocket instance
1083
+ * @param {(http.ClientRequest|net.Socket|tls.Socket)} stream The request to
1084
+ * abort or the socket to destroy
1085
+ * @param {String} message The error message
1086
+ * @private
1087
+ */
1088
+ function abortHandshake(websocket, stream, message) {
1089
+ websocket._readyState = WebSocket.CLOSING;
1090
+
1091
+ const err = new Error(message);
1092
+ Error.captureStackTrace(err, abortHandshake);
1093
+
1094
+ if (stream.setHeader) {
1095
+ stream[kAborted] = true;
1096
+ stream.abort();
1097
+
1098
+ if (stream.socket && !stream.socket.destroyed) {
1099
+ //
1100
+ // On Node.js >= 14.3.0 `request.abort()` does not destroy the socket if
1101
+ // called after the request completed. See
1102
+ // https://github.com/websockets/ws/issues/1869.
1103
+ //
1104
+ stream.socket.destroy();
1105
+ }
1106
+
1107
+ process.nextTick(emitErrorAndClose, websocket, err);
1108
+ } else {
1109
+ stream.destroy(err);
1110
+ stream.once('error', websocket.emit.bind(websocket, 'error'));
1111
+ stream.once('close', websocket.emitClose.bind(websocket));
1112
+ }
1113
+ }
1114
+
1115
+ /**
1116
+ * Handle cases where the `ping()`, `pong()`, or `send()` methods are called
1117
+ * when the `readyState` attribute is `CLOSING` or `CLOSED`.
1118
+ *
1119
+ * @param {WebSocket} websocket The WebSocket instance
1120
+ * @param {*} [data] The data to send
1121
+ * @param {Function} [cb] Callback
1122
+ * @private
1123
+ */
1124
+ function sendAfterClose(websocket, data, cb) {
1125
+ if (data) {
1126
+ const length = isBlob(data) ? data.size : toBuffer(data).length;
1127
+
1128
+ //
1129
+ // The `_bufferedAmount` property is used only when the peer is a client and
1130
+ // the opening handshake fails. Under these circumstances, in fact, the
1131
+ // `setSocket()` method is not called, so the `_socket` and `_sender`
1132
+ // properties are set to `null`.
1133
+ //
1134
+ if (websocket._socket) websocket._sender._bufferedBytes += length;
1135
+ else websocket._bufferedAmount += length;
1136
+ }
1137
+
1138
+ if (cb) {
1139
+ const err = new Error(
1140
+ `WebSocket is not open: readyState ${websocket.readyState} ` +
1141
+ `(${readyStates[websocket.readyState]})`
1142
+ );
1143
+ process.nextTick(cb, err);
1144
+ }
1145
+ }
1146
+
1147
+ /**
1148
+ * The listener of the `Receiver` `'conclude'` event.
1149
+ *
1150
+ * @param {Number} code The status code
1151
+ * @param {Buffer} reason The reason for closing
1152
+ * @private
1153
+ */
1154
+ function receiverOnConclude(code, reason) {
1155
+ const websocket = this[kWebSocket];
1156
+
1157
+ websocket._closeFrameReceived = true;
1158
+ websocket._closeMessage = reason;
1159
+ websocket._closeCode = code;
1160
+
1161
+ if (websocket._socket[kWebSocket] === undefined) return;
1162
+
1163
+ websocket._socket.removeListener('data', socketOnData);
1164
+ process.nextTick(resume, websocket._socket);
1165
+
1166
+ if (code === 1005) websocket.close();
1167
+ else websocket.close(code, reason);
1168
+ }
1169
+
1170
+ /**
1171
+ * The listener of the `Receiver` `'drain'` event.
1172
+ *
1173
+ * @private
1174
+ */
1175
+ function receiverOnDrain() {
1176
+ const websocket = this[kWebSocket];
1177
+
1178
+ if (!websocket.isPaused) websocket._socket.resume();
1179
+ }
1180
+
1181
+ /**
1182
+ * The listener of the `Receiver` `'error'` event.
1183
+ *
1184
+ * @param {(RangeError|Error)} err The emitted error
1185
+ * @private
1186
+ */
1187
+ function receiverOnError(err) {
1188
+ const websocket = this[kWebSocket];
1189
+
1190
+ if (websocket._socket[kWebSocket] !== undefined) {
1191
+ websocket._socket.removeListener('data', socketOnData);
1192
+
1193
+ //
1194
+ // On Node.js < 14.0.0 the `'error'` event is emitted synchronously. See
1195
+ // https://github.com/websockets/ws/issues/1940.
1196
+ //
1197
+ process.nextTick(resume, websocket._socket);
1198
+
1199
+ websocket.close(err[kStatusCode]);
1200
+ }
1201
+
1202
+ if (!websocket._errorEmitted) {
1203
+ websocket._errorEmitted = true;
1204
+ websocket.emit('error', err);
1205
+ }
1206
+ }
1207
+
1208
+ /**
1209
+ * The listener of the `Receiver` `'finish'` event.
1210
+ *
1211
+ * @private
1212
+ */
1213
+ function receiverOnFinish() {
1214
+ this[kWebSocket].emitClose();
1215
+ }
1216
+
1217
+ /**
1218
+ * The listener of the `Receiver` `'message'` event.
1219
+ *
1220
+ * @param {Buffer|ArrayBuffer|Buffer[])} data The message
1221
+ * @param {Boolean} isBinary Specifies whether the message is binary or not
1222
+ * @private
1223
+ */
1224
+ function receiverOnMessage(data, isBinary) {
1225
+ this[kWebSocket].emit('message', data, isBinary);
1226
+ }
1227
+
1228
+ /**
1229
+ * The listener of the `Receiver` `'ping'` event.
1230
+ *
1231
+ * @param {Buffer} data The data included in the ping frame
1232
+ * @private
1233
+ */
1234
+ function receiverOnPing(data) {
1235
+ const websocket = this[kWebSocket];
1236
+
1237
+ if (websocket._autoPong) websocket.pong(data, !this._isServer, NOOP);
1238
+ websocket.emit('ping', data);
1239
+ }
1240
+
1241
+ /**
1242
+ * The listener of the `Receiver` `'pong'` event.
1243
+ *
1244
+ * @param {Buffer} data The data included in the pong frame
1245
+ * @private
1246
+ */
1247
+ function receiverOnPong(data) {
1248
+ this[kWebSocket].emit('pong', data);
1249
+ }
1250
+
1251
+ /**
1252
+ * Resume a readable stream
1253
+ *
1254
+ * @param {Readable} stream The readable stream
1255
+ * @private
1256
+ */
1257
+ function resume(stream) {
1258
+ stream.resume();
1259
+ }
1260
+
1261
+ /**
1262
+ * The `Sender` error event handler.
1263
+ *
1264
+ * @param {Error} The error
1265
+ * @private
1266
+ */
1267
+ function senderOnError(err) {
1268
+ const websocket = this[kWebSocket];
1269
+
1270
+ if (websocket.readyState === WebSocket.CLOSED) return;
1271
+ if (websocket.readyState === WebSocket.OPEN) {
1272
+ websocket._readyState = WebSocket.CLOSING;
1273
+ setCloseTimer(websocket);
1274
+ }
1275
+
1276
+ //
1277
+ // `socket.end()` is used instead of `socket.destroy()` to allow the other
1278
+ // peer to finish sending queued data. There is no need to set a timer here
1279
+ // because `CLOSING` means that it is already set or not needed.
1280
+ //
1281
+ this._socket.end();
1282
+
1283
+ if (!websocket._errorEmitted) {
1284
+ websocket._errorEmitted = true;
1285
+ websocket.emit('error', err);
1286
+ }
1287
+ }
1288
+
1289
+ /**
1290
+ * Set a timer to destroy the underlying raw socket of a WebSocket.
1291
+ *
1292
+ * @param {WebSocket} websocket The WebSocket instance
1293
+ * @private
1294
+ */
1295
+ function setCloseTimer(websocket) {
1296
+ websocket._closeTimer = setTimeout(
1297
+ websocket._socket.destroy.bind(websocket._socket),
1298
+ websocket._closeTimeout
1299
+ );
1300
+ }
1301
+
1302
+ /**
1303
+ * The listener of the socket `'close'` event.
1304
+ *
1305
+ * @private
1306
+ */
1307
+ function socketOnClose() {
1308
+ const websocket = this[kWebSocket];
1309
+
1310
+ this.removeListener('close', socketOnClose);
1311
+ this.removeListener('data', socketOnData);
1312
+ this.removeListener('end', socketOnEnd);
1313
+
1314
+ websocket._readyState = WebSocket.CLOSING;
1315
+
1316
+ //
1317
+ // The close frame might not have been received or the `'end'` event emitted,
1318
+ // for example, if the socket was destroyed due to an error. Ensure that the
1319
+ // `receiver` stream is closed after writing any remaining buffered data to
1320
+ // it. If the readable side of the socket is in flowing mode then there is no
1321
+ // buffered data as everything has been already written. If instead, the
1322
+ // socket is paused, any possible buffered data will be read as a single
1323
+ // chunk.
1324
+ //
1325
+ if (
1326
+ !this._readableState.endEmitted &&
1327
+ !websocket._closeFrameReceived &&
1328
+ !websocket._receiver._writableState.errorEmitted &&
1329
+ this._readableState.length !== 0
1330
+ ) {
1331
+ const chunk = this.read(this._readableState.length);
1332
+
1333
+ websocket._receiver.write(chunk);
1334
+ }
1335
+
1336
+ websocket._receiver.end();
1337
+
1338
+ this[kWebSocket] = undefined;
1339
+
1340
+ clearTimeout(websocket._closeTimer);
1341
+
1342
+ if (
1343
+ websocket._receiver._writableState.finished ||
1344
+ websocket._receiver._writableState.errorEmitted
1345
+ ) {
1346
+ websocket.emitClose();
1347
+ } else {
1348
+ websocket._receiver.on('error', receiverOnFinish);
1349
+ websocket._receiver.on('finish', receiverOnFinish);
1350
+ }
1351
+ }
1352
+
1353
+ /**
1354
+ * The listener of the socket `'data'` event.
1355
+ *
1356
+ * @param {Buffer} chunk A chunk of data
1357
+ * @private
1358
+ */
1359
+ function socketOnData(chunk) {
1360
+ if (!this[kWebSocket]._receiver.write(chunk)) {
1361
+ this.pause();
1362
+ }
1363
+ }
1364
+
1365
+ /**
1366
+ * The listener of the socket `'end'` event.
1367
+ *
1368
+ * @private
1369
+ */
1370
+ function socketOnEnd() {
1371
+ const websocket = this[kWebSocket];
1372
+
1373
+ websocket._readyState = WebSocket.CLOSING;
1374
+ websocket._receiver.end();
1375
+ this.end();
1376
+ }
1377
+
1378
+ /**
1379
+ * The listener of the socket `'error'` event.
1380
+ *
1381
+ * @private
1382
+ */
1383
+ function socketOnError() {
1384
+ const websocket = this[kWebSocket];
1385
+
1386
+ this.removeListener('error', socketOnError);
1387
+ this.on('error', NOOP);
1388
+
1389
+ if (websocket) {
1390
+ websocket._readyState = WebSocket.CLOSING;
1391
+ this.destroy();
1392
+ }
1393
+ }