@xfey/tenso 0.1.130

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 (2048) hide show
  1. package/README.md +85 -0
  2. package/desktop-assets/README.md +18 -0
  3. package/desktop-assets/Tenso-app.png +0 -0
  4. package/desktop-assets/Tenso.icns +0 -0
  5. package/desktop-assets/macos-handler.applescript +24 -0
  6. package/dist/approvals/decision-command.d.ts +124 -0
  7. package/dist/approvals/decision-command.js +20 -0
  8. package/dist/approvals/index.d.ts +4 -0
  9. package/dist/approvals/index.js +4 -0
  10. package/dist/approvals/manager.d.ts +49 -0
  11. package/dist/approvals/manager.js +189 -0
  12. package/dist/approvals/projections.d.ts +33 -0
  13. package/dist/approvals/projections.js +443 -0
  14. package/dist/artifact-feedback/index.d.ts +17 -0
  15. package/dist/artifact-feedback/index.js +182 -0
  16. package/dist/artifacts/candidate-validator.d.ts +38 -0
  17. package/dist/artifacts/candidate-validator.js +472 -0
  18. package/dist/artifacts/index.d.ts +6 -0
  19. package/dist/artifacts/index.js +6 -0
  20. package/dist/artifacts/live-manifest.d.ts +23 -0
  21. package/dist/artifacts/live-manifest.js +115 -0
  22. package/dist/artifacts/manifest-contract.d.ts +30 -0
  23. package/dist/artifacts/manifest-contract.js +214 -0
  24. package/dist/artifacts/preview-runtime.d.ts +114 -0
  25. package/dist/artifacts/preview-runtime.js +773 -0
  26. package/dist/artifacts/process-boundary.d.ts +33 -0
  27. package/dist/artifacts/process-boundary.js +134 -0
  28. package/dist/artifacts/static-preview.d.ts +18 -0
  29. package/dist/artifacts/static-preview.js +178 -0
  30. package/dist/chat-assistant/diagnostics.d.ts +35 -0
  31. package/dist/chat-assistant/diagnostics.js +30 -0
  32. package/dist/chat-assistant/failure-messages.d.ts +4 -0
  33. package/dist/chat-assistant/failure-messages.js +57 -0
  34. package/dist/chat-assistant/failures.d.ts +27 -0
  35. package/dist/chat-assistant/failures.js +46 -0
  36. package/dist/chat-assistant/index.d.ts +99 -0
  37. package/dist/chat-assistant/index.js +589 -0
  38. package/dist/chat-assistant/language-context.d.ts +10 -0
  39. package/dist/chat-assistant/language-context.js +44 -0
  40. package/dist/chat-assistant/reference-freshness-smoke-cli.d.ts +2 -0
  41. package/dist/chat-assistant/reference-freshness-smoke-cli.js +40 -0
  42. package/dist/chat-assistant/reference-freshness-smoke.d.ts +23 -0
  43. package/dist/chat-assistant/reference-freshness-smoke.js +274 -0
  44. package/dist/chat-assistant/requests.d.ts +34 -0
  45. package/dist/chat-assistant/requests.js +64 -0
  46. package/dist/checks/index.d.ts +69 -0
  47. package/dist/checks/index.js +275 -0
  48. package/dist/collaboration-ingestion/clarification.d.ts +25 -0
  49. package/dist/collaboration-ingestion/clarification.js +65 -0
  50. package/dist/collaboration-ingestion/external-source.d.ts +20 -0
  51. package/dist/collaboration-ingestion/external-source.js +192 -0
  52. package/dist/collaboration-ingestion/index.d.ts +10 -0
  53. package/dist/collaboration-ingestion/index.js +9 -0
  54. package/dist/collaboration-ingestion/invalidations.d.ts +4 -0
  55. package/dist/collaboration-ingestion/invalidations.js +15 -0
  56. package/dist/collaboration-ingestion/main-chat.d.ts +33 -0
  57. package/dist/collaboration-ingestion/main-chat.js +75 -0
  58. package/dist/collaboration-ingestion/managed-reference-snapshots.d.ts +27 -0
  59. package/dist/collaboration-ingestion/managed-reference-snapshots.js +45 -0
  60. package/dist/collaboration-ingestion/managed-reference-sources.d.ts +22 -0
  61. package/dist/collaboration-ingestion/managed-reference-sources.js +257 -0
  62. package/dist/collaboration-ingestion/platform-clarification.d.ts +10 -0
  63. package/dist/collaboration-ingestion/platform-clarification.js +42 -0
  64. package/dist/collaboration-ingestion/reference-attachments.d.ts +22 -0
  65. package/dist/collaboration-ingestion/reference-attachments.js +132 -0
  66. package/dist/collaboration-ingestion/reference-files.d.ts +30 -0
  67. package/dist/collaboration-ingestion/reference-files.js +159 -0
  68. package/dist/collaboration-ingestion/reply-context.d.ts +10 -0
  69. package/dist/collaboration-ingestion/reply-context.js +43 -0
  70. package/dist/collaboration-ingestion/types.d.ts +22 -0
  71. package/dist/collaboration-ingestion/types.js +2 -0
  72. package/dist/collaboration-state/clarification-messages.d.ts +8 -0
  73. package/dist/collaboration-state/clarification-messages.js +181 -0
  74. package/dist/collaboration-state/clarification-records.d.ts +19 -0
  75. package/dist/collaboration-state/clarification-records.js +229 -0
  76. package/dist/collaboration-state/clarification-round-writes.d.ts +14 -0
  77. package/dist/collaboration-state/clarification-round-writes.js +58 -0
  78. package/dist/collaboration-state/clarification-rounds.d.ts +19 -0
  79. package/dist/collaboration-state/clarification-rounds.js +347 -0
  80. package/dist/collaboration-state/clarification-snapshot.d.ts +239 -0
  81. package/dist/collaboration-state/clarification-snapshot.js +29 -0
  82. package/dist/collaboration-state/clarification-successors.d.ts +8 -0
  83. package/dist/collaboration-state/clarification-successors.js +318 -0
  84. package/dist/collaboration-state/communication-language.d.ts +31 -0
  85. package/dist/collaboration-state/communication-language.js +36 -0
  86. package/dist/collaboration-state/context-sync-attempts.d.ts +9 -0
  87. package/dist/collaboration-state/context-sync-attempts.js +13 -0
  88. package/dist/collaboration-state/execution-status.d.ts +3 -0
  89. package/dist/collaboration-state/execution-status.js +8 -0
  90. package/dist/collaboration-state/index.d.ts +21 -0
  91. package/dist/collaboration-state/index.js +19 -0
  92. package/dist/collaboration-state/message-context.d.ts +5 -0
  93. package/dist/collaboration-state/message-context.js +33 -0
  94. package/dist/collaboration-state/messages.d.ts +35 -0
  95. package/dist/collaboration-state/messages.js +503 -0
  96. package/dist/collaboration-state/read-state.d.ts +7 -0
  97. package/dist/collaboration-state/read-state.js +136 -0
  98. package/dist/collaboration-state/recovery.d.ts +7 -0
  99. package/dist/collaboration-state/recovery.js +141 -0
  100. package/dist/collaboration-state/run-recording.d.ts +5 -0
  101. package/dist/collaboration-state/run-recording.js +236 -0
  102. package/dist/collaboration-state/run-results.d.ts +12 -0
  103. package/dist/collaboration-state/run-results.js +211 -0
  104. package/dist/collaboration-state/scratchpad-source-state.d.ts +43 -0
  105. package/dist/collaboration-state/scratchpad-source-state.js +204 -0
  106. package/dist/collaboration-state/scratchpad.d.ts +9 -0
  107. package/dist/collaboration-state/scratchpad.js +180 -0
  108. package/dist/collaboration-state/serialization.d.ts +16 -0
  109. package/dist/collaboration-state/serialization.js +71 -0
  110. package/dist/collaboration-state/storage-types.d.ts +185 -0
  111. package/dist/collaboration-state/storage-types.js +2 -0
  112. package/dist/collaboration-state/task-compile-context.d.ts +46 -0
  113. package/dist/collaboration-state/task-compile-context.js +398 -0
  114. package/dist/collaboration-state/task-compile-requests.d.ts +6 -0
  115. package/dist/collaboration-state/task-compile-requests.js +16 -0
  116. package/dist/collaboration-state/task-details.d.ts +5 -0
  117. package/dist/collaboration-state/task-details.js +25 -0
  118. package/dist/collaboration-state/task-retry.d.ts +16 -0
  119. package/dist/collaboration-state/task-retry.js +136 -0
  120. package/dist/collaboration-state/types.d.ts +353 -0
  121. package/dist/collaboration-state/types.js +2 -0
  122. package/dist/collaboration-state/worklist.d.ts +13 -0
  123. package/dist/collaboration-state/worklist.js +316 -0
  124. package/dist/communication-language/index.d.ts +75 -0
  125. package/dist/communication-language/index.js +122 -0
  126. package/dist/communication-language/live-smoke-cli.d.ts +2 -0
  127. package/dist/communication-language/live-smoke-cli.js +368 -0
  128. package/dist/communication-language/notice-locale.d.ts +4 -0
  129. package/dist/communication-language/notice-locale.js +14 -0
  130. package/dist/communication-language/prompt.d.ts +22 -0
  131. package/dist/communication-language/prompt.js +73 -0
  132. package/dist/control-plane/clarification-commands.d.ts +38 -0
  133. package/dist/control-plane/clarification-commands.js +133 -0
  134. package/dist/control-plane/command-recovery.d.ts +3 -0
  135. package/dist/control-plane/command-recovery.js +87 -0
  136. package/dist/control-plane/communication-language.d.ts +33 -0
  137. package/dist/control-plane/communication-language.js +72 -0
  138. package/dist/control-plane/context-sync-completion.d.ts +7 -0
  139. package/dist/control-plane/context-sync-completion.js +27 -0
  140. package/dist/control-plane/context-sync.d.ts +48 -0
  141. package/dist/control-plane/context-sync.js +238 -0
  142. package/dist/control-plane/dispatch-intents.d.ts +104 -0
  143. package/dist/control-plane/dispatch-intents.js +276 -0
  144. package/dist/control-plane/event-publishers.d.ts +24 -0
  145. package/dist/control-plane/event-publishers.js +201 -0
  146. package/dist/control-plane/execution-status.d.ts +13 -0
  147. package/dist/control-plane/execution-status.js +134 -0
  148. package/dist/control-plane/follow-up-context.d.ts +27 -0
  149. package/dist/control-plane/follow-up-context.js +87 -0
  150. package/dist/control-plane/follow-up-output.d.ts +53 -0
  151. package/dist/control-plane/follow-up-output.js +162 -0
  152. package/dist/control-plane/follow-up-run.d.ts +22 -0
  153. package/dist/control-plane/follow-up-run.js +95 -0
  154. package/dist/control-plane/follow-up-start.d.ts +29 -0
  155. package/dist/control-plane/follow-up-start.js +125 -0
  156. package/dist/control-plane/formatters.d.ts +12 -0
  157. package/dist/control-plane/formatters.js +47 -0
  158. package/dist/control-plane/index.d.ts +98 -0
  159. package/dist/control-plane/index.js +941 -0
  160. package/dist/control-plane/intent-dispatcher.d.ts +52 -0
  161. package/dist/control-plane/intent-dispatcher.js +184 -0
  162. package/dist/control-plane/invalidations.d.ts +13 -0
  163. package/dist/control-plane/invalidations.js +92 -0
  164. package/dist/control-plane/procedure-logging.d.ts +12 -0
  165. package/dist/control-plane/procedure-logging.js +63 -0
  166. package/dist/control-plane/project-brief-refresh.d.ts +31 -0
  167. package/dist/control-plane/project-brief-refresh.js +114 -0
  168. package/dist/control-plane/project-context-bootstrap.d.ts +43 -0
  169. package/dist/control-plane/project-context-bootstrap.js +117 -0
  170. package/dist/control-plane/recent-references.d.ts +26 -0
  171. package/dist/control-plane/recent-references.js +94 -0
  172. package/dist/control-plane/reference-context-types.d.ts +12 -0
  173. package/dist/control-plane/reference-context-types.js +2 -0
  174. package/dist/control-plane/reference-summary-refresh.d.ts +31 -0
  175. package/dist/control-plane/reference-summary-refresh.js +462 -0
  176. package/dist/control-plane/run-dispatch-intents.d.ts +15 -0
  177. package/dist/control-plane/run-dispatch-intents.js +40 -0
  178. package/dist/control-plane/run-lineage.d.ts +8 -0
  179. package/dist/control-plane/run-lineage.js +13 -0
  180. package/dist/control-plane/run-result-recording.d.ts +39 -0
  181. package/dist/control-plane/run-result-recording.js +64 -0
  182. package/dist/control-plane/run-retry.d.ts +19 -0
  183. package/dist/control-plane/run-retry.js +111 -0
  184. package/dist/control-plane/run-scheduler.d.ts +35 -0
  185. package/dist/control-plane/run-scheduler.js +115 -0
  186. package/dist/control-plane/run-start.d.ts +31 -0
  187. package/dist/control-plane/run-start.js +198 -0
  188. package/dist/control-plane/scratchpad-auto-refresh.d.ts +32 -0
  189. package/dist/control-plane/scratchpad-auto-refresh.js +161 -0
  190. package/dist/control-plane/scratchpad-refresh-start.d.ts +71 -0
  191. package/dist/control-plane/scratchpad-refresh-start.js +295 -0
  192. package/dist/control-plane/scratchpad-refresh.d.ts +33 -0
  193. package/dist/control-plane/scratchpad-refresh.js +71 -0
  194. package/dist/control-plane/scratchpad-source-messages.d.ts +18 -0
  195. package/dist/control-plane/scratchpad-source-messages.js +122 -0
  196. package/dist/control-plane/startup-recovery.d.ts +19 -0
  197. package/dist/control-plane/startup-recovery.js +250 -0
  198. package/dist/control-plane/task-compile-clarification-context.d.ts +13 -0
  199. package/dist/control-plane/task-compile-clarification-context.js +62 -0
  200. package/dist/control-plane/task-compile-continuation.d.ts +29 -0
  201. package/dist/control-plane/task-compile-continuation.js +133 -0
  202. package/dist/control-plane/task-compile-output.d.ts +29 -0
  203. package/dist/control-plane/task-compile-output.js +186 -0
  204. package/dist/control-plane/task-compile-request-status.d.ts +6 -0
  205. package/dist/control-plane/task-compile-request-status.js +70 -0
  206. package/dist/control-plane/task-compile-start.d.ts +83 -0
  207. package/dist/control-plane/task-compile-start.js +771 -0
  208. package/dist/control-plane/task-proposal.d.ts +3 -0
  209. package/dist/control-plane/task-proposal.js +37 -0
  210. package/dist/control-plane/task-source-context-types.d.ts +12 -0
  211. package/dist/control-plane/task-source-context-types.js +2 -0
  212. package/dist/control-plane/task-source-context.d.ts +7 -0
  213. package/dist/control-plane/task-source-context.js +41 -0
  214. package/dist/control-plane/types.d.ts +177 -0
  215. package/dist/control-plane/types.js +2 -0
  216. package/dist/control-plane/workflows/index.d.ts +4 -0
  217. package/dist/control-plane/workflows/index.js +4 -0
  218. package/dist/control-plane/workflows/openai.d.ts +42 -0
  219. package/dist/control-plane/workflows/openai.js +536 -0
  220. package/dist/control-plane/workflows/structured-output-schemas.d.ts +9 -0
  221. package/dist/control-plane/workflows/structured-output-schemas.js +289 -0
  222. package/dist/control-plane/workflows/structured-output-validators.d.ts +15 -0
  223. package/dist/control-plane/workflows/structured-output-validators.js +295 -0
  224. package/dist/control-plane/workflows/structured-output.d.ts +3 -0
  225. package/dist/control-plane/workflows/structured-output.js +3 -0
  226. package/dist/control-plane/workflows/types.d.ts +289 -0
  227. package/dist/control-plane/workflows/types.js +2 -0
  228. package/dist/control-plane/worklist-terminal-feedback.d.ts +24 -0
  229. package/dist/control-plane/worklist-terminal-feedback.js +345 -0
  230. package/dist/index.d.ts +2 -0
  231. package/dist/index.js +32 -0
  232. package/dist/platform-outbound/coordinator.d.ts +20 -0
  233. package/dist/platform-outbound/coordinator.js +141 -0
  234. package/dist/platform-outbound/index.d.ts +5 -0
  235. package/dist/platform-outbound/index.js +5 -0
  236. package/dist/platform-outbound/repository.d.ts +47 -0
  237. package/dist/platform-outbound/repository.js +377 -0
  238. package/dist/platform-outbound/task-result-text.d.ts +3 -0
  239. package/dist/platform-outbound/task-result-text.js +26 -0
  240. package/dist/platform-outbound/types.d.ts +48 -0
  241. package/dist/platform-outbound/types.js +2 -0
  242. package/dist/platform-outbound/worker.d.ts +36 -0
  243. package/dist/platform-outbound/worker.js +180 -0
  244. package/dist/procedure-engine/index.d.ts +66 -0
  245. package/dist/procedure-engine/index.js +199 -0
  246. package/dist/process-tree.d.ts +25 -0
  247. package/dist/process-tree.js +121 -0
  248. package/dist/project-brief/index.d.ts +4 -0
  249. package/dist/project-brief/index.js +3 -0
  250. package/dist/project-brief/repository.d.ts +5 -0
  251. package/dist/project-brief/repository.js +97 -0
  252. package/dist/project-brief/source.d.ts +8 -0
  253. package/dist/project-brief/source.js +75 -0
  254. package/dist/project-brief/types.d.ts +40 -0
  255. package/dist/project-brief/types.js +2 -0
  256. package/dist/project-docs/context.d.ts +34 -0
  257. package/dist/project-docs/context.js +86 -0
  258. package/dist/project-timeline/index.d.ts +34 -0
  259. package/dist/project-timeline/index.js +100 -0
  260. package/dist/prompt-templates/index.d.ts +13 -0
  261. package/dist/prompt-templates/index.js +90 -0
  262. package/dist/provider-usage/index.d.ts +37 -0
  263. package/dist/provider-usage/index.js +228 -0
  264. package/dist/providers/failure-classification.d.ts +23 -0
  265. package/dist/providers/failure-classification.js +43 -0
  266. package/dist/providers/index.d.ts +2 -0
  267. package/dist/providers/index.js +2 -0
  268. package/dist/providers/invocation-progress.d.ts +16 -0
  269. package/dist/providers/invocation-progress.js +33 -0
  270. package/dist/providers/openai/app-server/durable-session-smoke-cli.d.ts +2 -0
  271. package/dist/providers/openai/app-server/durable-session-smoke-cli.js +229 -0
  272. package/dist/providers/openai/app-server/invocation-coordinator.d.ts +29 -0
  273. package/dist/providers/openai/app-server/invocation-coordinator.js +107 -0
  274. package/dist/providers/openai/app-server/invocation-deadline.d.ts +3 -0
  275. package/dist/providers/openai/app-server/invocation-deadline.js +15 -0
  276. package/dist/providers/openai/app-server/invocation-lifecycle.d.ts +45 -0
  277. package/dist/providers/openai/app-server/invocation-lifecycle.js +104 -0
  278. package/dist/providers/openai/app-server/json-rpc.d.ts +76 -0
  279. package/dist/providers/openai/app-server/json-rpc.js +317 -0
  280. package/dist/providers/openai/app-server/linux-sandbox-readiness.d.ts +36 -0
  281. package/dist/providers/openai/app-server/linux-sandbox-readiness.js +92 -0
  282. package/dist/providers/openai/app-server/provider-config.d.ts +10 -0
  283. package/dist/providers/openai/app-server/provider-config.js +39 -0
  284. package/dist/providers/openai/app-server/read-only-procedure.d.ts +99 -0
  285. package/dist/providers/openai/app-server/read-only-procedure.js +485 -0
  286. package/dist/providers/openai/app-server/runtime-helpers.d.ts +20 -0
  287. package/dist/providers/openai/app-server/runtime-helpers.js +151 -0
  288. package/dist/providers/openai/app-server/runtime-telemetry.d.ts +19 -0
  289. package/dist/providers/openai/app-server/runtime-telemetry.js +470 -0
  290. package/dist/providers/openai/app-server/sandbox-policy.d.ts +18 -0
  291. package/dist/providers/openai/app-server/sandbox-policy.js +16 -0
  292. package/dist/providers/openai/app-server/session-store.d.ts +74 -0
  293. package/dist/providers/openai/app-server/session-store.js +303 -0
  294. package/dist/providers/openai/app-server/skill-discovery.d.ts +10 -0
  295. package/dist/providers/openai/app-server/skill-discovery.js +29 -0
  296. package/dist/providers/openai/app-server/skills.d.ts +73 -0
  297. package/dist/providers/openai/app-server/skills.js +208 -0
  298. package/dist/providers/openai/app-server/smoke-cli.d.ts +2 -0
  299. package/dist/providers/openai/app-server/smoke-cli.js +42 -0
  300. package/dist/providers/openai/app-server/smoke-helpers.d.ts +19 -0
  301. package/dist/providers/openai/app-server/smoke-helpers.js +125 -0
  302. package/dist/providers/openai/app-server/smoke-provider-input.d.ts +6 -0
  303. package/dist/providers/openai/app-server/smoke-provider-input.js +20 -0
  304. package/dist/providers/openai/app-server/smoke-types.d.ts +51 -0
  305. package/dist/providers/openai/app-server/smoke-types.js +20 -0
  306. package/dist/providers/openai/app-server/smoke.d.ts +9 -0
  307. package/dist/providers/openai/app-server/smoke.js +186 -0
  308. package/dist/providers/openai/app-server/stale-temp-cleanup.d.ts +17 -0
  309. package/dist/providers/openai/app-server/stale-temp-cleanup.js +130 -0
  310. package/dist/providers/openai/app-server/workspace-write-run.d.ts +109 -0
  311. package/dist/providers/openai/app-server/workspace-write-run.js +520 -0
  312. package/dist/providers/openai/chat-assistant.d.ts +40 -0
  313. package/dist/providers/openai/chat-assistant.js +99 -0
  314. package/dist/providers/openai/codex-app-server.d.ts +128 -0
  315. package/dist/providers/openai/codex-app-server.js +161 -0
  316. package/dist/providers/openai/credential-store.d.ts +31 -0
  317. package/dist/providers/openai/credential-store.js +147 -0
  318. package/dist/providers/openai/credential-validation.d.ts +69 -0
  319. package/dist/providers/openai/credential-validation.js +255 -0
  320. package/dist/providers/openai/execution-access.d.ts +17 -0
  321. package/dist/providers/openai/execution-access.js +13 -0
  322. package/dist/providers/openai/index.d.ts +15 -0
  323. package/dist/providers/openai/index.js +15 -0
  324. package/dist/providers/openai/machine-local-files.d.ts +19 -0
  325. package/dist/providers/openai/machine-local-files.js +78 -0
  326. package/dist/providers/openai/model-config.d.ts +4 -0
  327. package/dist/providers/openai/model-config.js +4 -0
  328. package/dist/providers/openai/provider-config-errors.d.ts +6 -0
  329. package/dist/providers/openai/provider-config-errors.js +13 -0
  330. package/dist/providers/openai/provider-config-shape.d.ts +3 -0
  331. package/dist/providers/openai/provider-config-shape.js +108 -0
  332. package/dist/providers/openai/provider-config-toml.d.ts +13 -0
  333. package/dist/providers/openai/provider-config-toml.js +113 -0
  334. package/dist/providers/openai/provider-config.d.ts +77 -0
  335. package/dist/providers/openai/provider-config.js +138 -0
  336. package/dist/providers/openai/provider-models.d.ts +41 -0
  337. package/dist/providers/openai/provider-models.js +82 -0
  338. package/dist/providers/openai/provider-setup.d.ts +31 -0
  339. package/dist/providers/openai/provider-setup.js +91 -0
  340. package/dist/providers/openai/sdk-procedure-runner.d.ts +70 -0
  341. package/dist/providers/openai/sdk-procedure-runner.js +140 -0
  342. package/dist/providers/openai/token-usage.d.ts +11 -0
  343. package/dist/providers/openai/token-usage.js +90 -0
  344. package/dist/reference-access/cache.d.ts +50 -0
  345. package/dist/reference-access/cache.js +268 -0
  346. package/dist/reference-access/message-context.d.ts +6 -0
  347. package/dist/reference-access/message-context.js +14 -0
  348. package/dist/reference-access/message-links.d.ts +4 -0
  349. package/dist/reference-access/message-links.js +13 -0
  350. package/dist/reference-access/read-evidence.d.ts +10 -0
  351. package/dist/reference-access/read-evidence.js +28 -0
  352. package/dist/reference-access/service.d.ts +35 -0
  353. package/dist/reference-access/service.js +91 -0
  354. package/dist/run-engine/index.d.ts +62 -0
  355. package/dist/run-engine/index.js +154 -0
  356. package/dist/run-pipeline/artifact-applicability.d.ts +48 -0
  357. package/dist/run-pipeline/artifact-applicability.js +282 -0
  358. package/dist/run-pipeline/openai.d.ts +55 -0
  359. package/dist/run-pipeline/openai.js +511 -0
  360. package/dist/run-pipeline/result-projections.d.ts +40 -0
  361. package/dist/run-pipeline/result-projections.js +118 -0
  362. package/dist/run-pipeline/task-run-invocation.d.ts +5 -0
  363. package/dist/run-pipeline/task-run-invocation.js +423 -0
  364. package/dist/run-pipeline/task-run-output.d.ts +44 -0
  365. package/dist/run-pipeline/task-run-output.js +166 -0
  366. package/dist/runtime-failures.d.ts +3 -0
  367. package/dist/runtime-failures.js +36 -0
  368. package/dist/server-shell/cli/args.d.ts +75 -0
  369. package/dist/server-shell/cli/args.js +330 -0
  370. package/dist/server-shell/cli/cli.d.ts +3 -0
  371. package/dist/server-shell/cli/cli.js +469 -0
  372. package/dist/server-shell/cli/errors.d.ts +11 -0
  373. package/dist/server-shell/cli/errors.js +129 -0
  374. package/dist/server-shell/cli/external-reference-runtime.d.ts +12 -0
  375. package/dist/server-shell/cli/external-reference-runtime.js +89 -0
  376. package/dist/server-shell/cli/git-bootstrap.d.ts +26 -0
  377. package/dist/server-shell/cli/git-bootstrap.js +260 -0
  378. package/dist/server-shell/cli/host-lifecycle.d.ts +51 -0
  379. package/dist/server-shell/cli/host-lifecycle.js +446 -0
  380. package/dist/server-shell/cli/host-project-runtime-lifecycle.d.ts +43 -0
  381. package/dist/server-shell/cli/host-project-runtime-lifecycle.js +54 -0
  382. package/dist/server-shell/cli/host-relay-connection-manager.d.ts +50 -0
  383. package/dist/server-shell/cli/host-relay-connection-manager.js +458 -0
  384. package/dist/server-shell/cli/host-relay-status.d.ts +10 -0
  385. package/dist/server-shell/cli/host-relay-status.js +103 -0
  386. package/dist/server-shell/cli/host-runtime-endpoint.d.ts +31 -0
  387. package/dist/server-shell/cli/host-runtime-endpoint.js +184 -0
  388. package/dist/server-shell/cli/host-server-runtime.d.ts +40 -0
  389. package/dist/server-shell/cli/host-server-runtime.js +863 -0
  390. package/dist/server-shell/cli/index.d.ts +8 -0
  391. package/dist/server-shell/cli/index.js +8 -0
  392. package/dist/server-shell/cli/join-url.d.ts +7 -0
  393. package/dist/server-shell/cli/join-url.js +15 -0
  394. package/dist/server-shell/cli/launch-command.d.ts +32 -0
  395. package/dist/server-shell/cli/launch-command.js +199 -0
  396. package/dist/server-shell/cli/launch.d.ts +54 -0
  397. package/dist/server-shell/cli/launch.js +148 -0
  398. package/dist/server-shell/cli/local-control-client.d.ts +43 -0
  399. package/dist/server-shell/cli/local-control-client.js +123 -0
  400. package/dist/server-shell/cli/machine-local.d.ts +116 -0
  401. package/dist/server-shell/cli/machine-local.js +414 -0
  402. package/dist/server-shell/cli/machine-project-inspector.d.ts +93 -0
  403. package/dist/server-shell/cli/machine-project-inspector.js +226 -0
  404. package/dist/server-shell/cli/managed-host.d.ts +38 -0
  405. package/dist/server-shell/cli/managed-host.js +267 -0
  406. package/dist/server-shell/cli/project-identity.d.ts +23 -0
  407. package/dist/server-shell/cli/project-identity.js +111 -0
  408. package/dist/server-shell/cli/project-resolver.d.ts +33 -0
  409. package/dist/server-shell/cli/project-resolver.js +212 -0
  410. package/dist/server-shell/cli/provider-tui.d.ts +49 -0
  411. package/dist/server-shell/cli/provider-tui.js +429 -0
  412. package/dist/server-shell/cli/relay-registration.d.ts +38 -0
  413. package/dist/server-shell/cli/relay-registration.js +140 -0
  414. package/dist/server-shell/cli/runtime-commands.d.ts +75 -0
  415. package/dist/server-shell/cli/runtime-commands.js +571 -0
  416. package/dist/server-shell/cli/terminal-logo.d.ts +5 -0
  417. package/dist/server-shell/cli/terminal-logo.js +16 -0
  418. package/dist/server-shell/cli/terminal-qr.d.ts +11 -0
  419. package/dist/server-shell/cli/terminal-qr.js +48 -0
  420. package/dist/server-shell/cli/version.d.ts +8 -0
  421. package/dist/server-shell/cli/version.js +16 -0
  422. package/dist/server-shell/command-idempotency/index.d.ts +44 -0
  423. package/dist/server-shell/command-idempotency/index.js +155 -0
  424. package/dist/server-shell/desktop-integration/entry-continuation.d.ts +31 -0
  425. package/dist/server-shell/desktop-integration/entry-continuation.js +81 -0
  426. package/dist/server-shell/desktop-integration/index.d.ts +6 -0
  427. package/dist/server-shell/desktop-integration/index.js +6 -0
  428. package/dist/server-shell/desktop-integration/linux.d.ts +12 -0
  429. package/dist/server-shell/desktop-integration/linux.js +186 -0
  430. package/dist/server-shell/desktop-integration/macos.d.ts +9 -0
  431. package/dist/server-shell/desktop-integration/macos.js +138 -0
  432. package/dist/server-shell/desktop-integration/manager.d.ts +42 -0
  433. package/dist/server-shell/desktop-integration/manager.js +211 -0
  434. package/dist/server-shell/desktop-integration/platform.d.ts +23 -0
  435. package/dist/server-shell/desktop-integration/platform.js +21 -0
  436. package/dist/server-shell/desktop-integration/protocol.d.ts +15 -0
  437. package/dist/server-shell/desktop-integration/protocol.js +53 -0
  438. package/dist/server-shell/desktop-integration/record.d.ts +17 -0
  439. package/dist/server-shell/desktop-integration/record.js +74 -0
  440. package/dist/server-shell/dev-runner/cli.d.ts +2 -0
  441. package/dist/server-shell/dev-runner/cli.js +10 -0
  442. package/dist/server-shell/dev-runner/config.d.ts +38 -0
  443. package/dist/server-shell/dev-runner/config.js +277 -0
  444. package/dist/server-shell/dev-runner/host-cli.d.ts +2 -0
  445. package/dist/server-shell/dev-runner/host-cli.js +22 -0
  446. package/dist/server-shell/dev-runner/index.d.ts +3 -0
  447. package/dist/server-shell/dev-runner/index.js +3 -0
  448. package/dist/server-shell/dev-runner/runner.d.ts +30 -0
  449. package/dist/server-shell/dev-runner/runner.js +236 -0
  450. package/dist/server-shell/http/create-server.d.ts +31 -0
  451. package/dist/server-shell/http/create-server.js +61 -0
  452. package/dist/server-shell/http/host-tunnel.d.ts +24 -0
  453. package/dist/server-shell/http/host-tunnel.js +437 -0
  454. package/dist/server-shell/http/integration-clarification-dispatch.d.ts +6 -0
  455. package/dist/server-shell/http/integration-clarification-dispatch.js +43 -0
  456. package/dist/server-shell/http/logger.d.ts +9 -0
  457. package/dist/server-shell/http/logger.js +20 -0
  458. package/dist/server-shell/http/routes/agent-context-auth.d.ts +42 -0
  459. package/dist/server-shell/http/routes/agent-context-auth.js +75 -0
  460. package/dist/server-shell/http/routes/agent-context-errors.d.ts +6 -0
  461. package/dist/server-shell/http/routes/agent-context-errors.js +9 -0
  462. package/dist/server-shell/http/routes/agent-context-external-reference-routes.d.ts +4 -0
  463. package/dist/server-shell/http/routes/agent-context-external-reference-routes.js +185 -0
  464. package/dist/server-shell/http/routes/agent-context-messages-routes.d.ts +4 -0
  465. package/dist/server-shell/http/routes/agent-context-messages-routes.js +77 -0
  466. package/dist/server-shell/http/routes/agent-context-project-doc-routes.d.ts +4 -0
  467. package/dist/server-shell/http/routes/agent-context-project-doc-routes.js +86 -0
  468. package/dist/server-shell/http/routes/agent-context-project-docs.d.ts +40 -0
  469. package/dist/server-shell/http/routes/agent-context-project-docs.js +98 -0
  470. package/dist/server-shell/http/routes/agent-context-query.d.ts +31 -0
  471. package/dist/server-shell/http/routes/agent-context-query.js +72 -0
  472. package/dist/server-shell/http/routes/agent-context-reference-routes.d.ts +4 -0
  473. package/dist/server-shell/http/routes/agent-context-reference-routes.js +116 -0
  474. package/dist/server-shell/http/routes/agent-context-references.d.ts +32 -0
  475. package/dist/server-shell/http/routes/agent-context-references.js +93 -0
  476. package/dist/server-shell/http/routes/agent-context-shared.d.ts +37 -0
  477. package/dist/server-shell/http/routes/agent-context-shared.js +48 -0
  478. package/dist/server-shell/http/routes/agent-context-skills-routes.d.ts +4 -0
  479. package/dist/server-shell/http/routes/agent-context-skills-routes.js +86 -0
  480. package/dist/server-shell/http/routes/agent-context-workspace-routes.d.ts +4 -0
  481. package/dist/server-shell/http/routes/agent-context-workspace-routes.js +130 -0
  482. package/dist/server-shell/http/routes/agent-context.d.ts +8 -0
  483. package/dist/server-shell/http/routes/agent-context.js +18 -0
  484. package/dist/server-shell/http/routes/health.d.ts +11 -0
  485. package/dist/server-shell/http/routes/health.js +41 -0
  486. package/dist/server-shell/http/routes/local-control.d.ts +57 -0
  487. package/dist/server-shell/http/routes/local-control.js +361 -0
  488. package/dist/server-shell/http/routes/project-api/approval-routes.d.ts +4 -0
  489. package/dist/server-shell/http/routes/project-api/approval-routes.js +57 -0
  490. package/dist/server-shell/http/routes/project-api/artifacts-routes.d.ts +9 -0
  491. package/dist/server-shell/http/routes/project-api/artifacts-routes.js +149 -0
  492. package/dist/server-shell/http/routes/project-api/clarification-routes.d.ts +4 -0
  493. package/dist/server-shell/http/routes/project-api/clarification-routes.js +124 -0
  494. package/dist/server-shell/http/routes/project-api/constants.d.ts +3 -0
  495. package/dist/server-shell/http/routes/project-api/constants.js +3 -0
  496. package/dist/server-shell/http/routes/project-api/errors.d.ts +26 -0
  497. package/dist/server-shell/http/routes/project-api/errors.js +41 -0
  498. package/dist/server-shell/http/routes/project-api/events-stream.d.ts +11 -0
  499. package/dist/server-shell/http/routes/project-api/events-stream.js +55 -0
  500. package/dist/server-shell/http/routes/project-api/execution-routes.d.ts +4 -0
  501. package/dist/server-shell/http/routes/project-api/execution-routes.js +122 -0
  502. package/dist/server-shell/http/routes/project-api/headers.d.ts +2 -0
  503. package/dist/server-shell/http/routes/project-api/headers.js +7 -0
  504. package/dist/server-shell/http/routes/project-api/invalidations.d.ts +12 -0
  505. package/dist/server-shell/http/routes/project-api/invalidations.js +69 -0
  506. package/dist/server-shell/http/routes/project-api/messages-routes.d.ts +10 -0
  507. package/dist/server-shell/http/routes/project-api/messages-routes.js +102 -0
  508. package/dist/server-shell/http/routes/project-api/openapi-approval-routes.d.ts +128 -0
  509. package/dist/server-shell/http/routes/project-api/openapi-approval-routes.js +32 -0
  510. package/dist/server-shell/http/routes/project-api/openapi-artifacts-routes.d.ts +48 -0
  511. package/dist/server-shell/http/routes/project-api/openapi-artifacts-routes.js +28 -0
  512. package/dist/server-shell/http/routes/project-api/openapi-collaboration-routes.d.ts +625 -0
  513. package/dist/server-shell/http/routes/project-api/openapi-collaboration-routes.js +192 -0
  514. package/dist/server-shell/http/routes/project-api/openapi-diagnostic-routes.d.ts +16 -0
  515. package/dist/server-shell/http/routes/project-api/openapi-diagnostic-routes.js +17 -0
  516. package/dist/server-shell/http/routes/project-api/openapi-execution-routes.d.ts +253 -0
  517. package/dist/server-shell/http/routes/project-api/openapi-execution-routes.js +86 -0
  518. package/dist/server-shell/http/routes/project-api/openapi-path-parameters.d.ts +9 -0
  519. package/dist/server-shell/http/routes/project-api/openapi-path-parameters.js +18 -0
  520. package/dist/server-shell/http/routes/project-api/openapi-skills-routes.d.ts +85 -0
  521. package/dist/server-shell/http/routes/project-api/openapi-skills-routes.js +59 -0
  522. package/dist/server-shell/http/routes/project-api/openapi-timeline-routes.d.ts +204 -0
  523. package/dist/server-shell/http/routes/project-api/openapi-timeline-routes.js +17 -0
  524. package/dist/server-shell/http/routes/project-api/openapi-viewer-routes.d.ts +323 -0
  525. package/dist/server-shell/http/routes/project-api/openapi-viewer-routes.js +120 -0
  526. package/dist/server-shell/http/routes/project-api/openapi-workspace-routes.d.ts +1311 -0
  527. package/dist/server-shell/http/routes/project-api/openapi-workspace-routes.js +133 -0
  528. package/dist/server-shell/http/routes/project-api/openapi.d.ts +2756 -0
  529. package/dist/server-shell/http/routes/project-api/openapi.js +30 -0
  530. package/dist/server-shell/http/routes/project-api/payload-validation.d.ts +11 -0
  531. package/dist/server-shell/http/routes/project-api/payload-validation.js +58 -0
  532. package/dist/server-shell/http/routes/project-api/project-docs-helpers.d.ts +9 -0
  533. package/dist/server-shell/http/routes/project-api/project-docs-helpers.js +17 -0
  534. package/dist/server-shell/http/routes/project-api/project-docs-routes.d.ts +8 -0
  535. package/dist/server-shell/http/routes/project-api/project-docs-routes.js +151 -0
  536. package/dist/server-shell/http/routes/project-api/project-timeline-projection.d.ts +8 -0
  537. package/dist/server-shell/http/routes/project-api/project-timeline-projection.js +844 -0
  538. package/dist/server-shell/http/routes/project-api/project-timeline-routes.d.ts +4 -0
  539. package/dist/server-shell/http/routes/project-api/project-timeline-routes.js +23 -0
  540. package/dist/server-shell/http/routes/project-api/read-state-routes.d.ts +8 -0
  541. package/dist/server-shell/http/routes/project-api/read-state-routes.js +82 -0
  542. package/dist/server-shell/http/routes/project-api/reference-files-routes.d.ts +8 -0
  543. package/dist/server-shell/http/routes/project-api/reference-files-routes.js +132 -0
  544. package/dist/server-shell/http/routes/project-api/reference-files.d.ts +7 -0
  545. package/dist/server-shell/http/routes/project-api/reference-files.js +122 -0
  546. package/dist/server-shell/http/routes/project-api/repo-projection.d.ts +3 -0
  547. package/dist/server-shell/http/routes/project-api/repo-projection.js +58 -0
  548. package/dist/server-shell/http/routes/project-api/schemas.d.ts +1307 -0
  549. package/dist/server-shell/http/routes/project-api/schemas.js +398 -0
  550. package/dist/server-shell/http/routes/project-api/session-requirements.d.ts +11 -0
  551. package/dist/server-shell/http/routes/project-api/session-requirements.js +99 -0
  552. package/dist/server-shell/http/routes/project-api/skills-helpers.d.ts +8 -0
  553. package/dist/server-shell/http/routes/project-api/skills-helpers.js +60 -0
  554. package/dist/server-shell/http/routes/project-api/skills-routes.d.ts +8 -0
  555. package/dist/server-shell/http/routes/project-api/skills-routes.js +189 -0
  556. package/dist/server-shell/http/routes/project-api/staged-uploads.d.ts +20 -0
  557. package/dist/server-shell/http/routes/project-api/staged-uploads.js +156 -0
  558. package/dist/server-shell/http/routes/project-api/system-routes.d.ts +8 -0
  559. package/dist/server-shell/http/routes/project-api/system-routes.js +294 -0
  560. package/dist/server-shell/http/routes/project-api/types.d.ts +158 -0
  561. package/dist/server-shell/http/routes/project-api/types.js +2 -0
  562. package/dist/server-shell/http/routes/project-api/viewer-projections.d.ts +17 -0
  563. package/dist/server-shell/http/routes/project-api/viewer-projections.js +102 -0
  564. package/dist/server-shell/http/routes/project-api/viewer-routes.d.ts +4 -0
  565. package/dist/server-shell/http/routes/project-api/viewer-routes.js +100 -0
  566. package/dist/server-shell/http/routes/project-api/workflow-routes.d.ts +4 -0
  567. package/dist/server-shell/http/routes/project-api/workflow-routes.js +121 -0
  568. package/dist/server-shell/http/routes/project-api/workspace-projections.d.ts +5 -0
  569. package/dist/server-shell/http/routes/project-api/workspace-projections.js +100 -0
  570. package/dist/server-shell/http/routes/project-api.d.ts +8 -0
  571. package/dist/server-shell/http/routes/project-api.js +34 -0
  572. package/dist/server-shell/http/sse-replay-buffer.d.ts +54 -0
  573. package/dist/server-shell/http/sse-replay-buffer.js +110 -0
  574. package/dist/server-shell/http/sse.d.ts +12 -0
  575. package/dist/server-shell/http/sse.js +22 -0
  576. package/dist/server-shell/http/static-web.d.ts +7 -0
  577. package/dist/server-shell/http/static-web.js +69 -0
  578. package/dist/server-shell/http/validation.d.ts +13 -0
  579. package/dist/server-shell/http/validation.js +144 -0
  580. package/dist/server-shell/http/workspace-events.d.ts +38 -0
  581. package/dist/server-shell/http/workspace-events.js +98 -0
  582. package/dist/server-shell/local-console/browser-bridge.d.ts +10 -0
  583. package/dist/server-shell/local-console/browser-bridge.js +286 -0
  584. package/dist/server-shell/local-console/browser-open.d.ts +5 -0
  585. package/dist/server-shell/local-console/browser-open.js +40 -0
  586. package/dist/server-shell/local-console/folder-picker.d.ts +20 -0
  587. package/dist/server-shell/local-console/folder-picker.js +78 -0
  588. package/dist/server-shell/local-console/index.d.ts +4 -0
  589. package/dist/server-shell/local-console/index.js +4 -0
  590. package/dist/server-shell/local-console/invocation-context.d.ts +30 -0
  591. package/dist/server-shell/local-console/invocation-context.js +73 -0
  592. package/dist/server-shell/local-console/lifecycle-lock.d.ts +13 -0
  593. package/dist/server-shell/local-console/lifecycle-lock.js +135 -0
  594. package/dist/server-shell/local-console/managed-console.d.ts +48 -0
  595. package/dist/server-shell/local-console/managed-console.js +317 -0
  596. package/dist/server-shell/local-console/managed-project-routes.d.ts +9 -0
  597. package/dist/server-shell/local-console/managed-project-routes.js +146 -0
  598. package/dist/server-shell/local-console/managed-project-service.d.ts +177 -0
  599. package/dist/server-shell/local-console/managed-project-service.js +189 -0
  600. package/dist/server-shell/local-console/operation-coordinator.d.ts +16 -0
  601. package/dist/server-shell/local-console/operation-coordinator.js +50 -0
  602. package/dist/server-shell/local-console/package-update-completion.d.ts +25 -0
  603. package/dist/server-shell/local-console/package-update-completion.js +91 -0
  604. package/dist/server-shell/local-console/package-update-hosts.d.ts +17 -0
  605. package/dist/server-shell/local-console/package-update-hosts.js +96 -0
  606. package/dist/server-shell/local-console/package-update-lock.d.ts +46 -0
  607. package/dist/server-shell/local-console/package-update-lock.js +223 -0
  608. package/dist/server-shell/local-console/package-update-log.d.ts +20 -0
  609. package/dist/server-shell/local-console/package-update-log.js +75 -0
  610. package/dist/server-shell/local-console/package-update-process.d.ts +22 -0
  611. package/dist/server-shell/local-console/package-update-process.js +252 -0
  612. package/dist/server-shell/local-console/package-update-record.d.ts +53 -0
  613. package/dist/server-shell/local-console/package-update-record.js +180 -0
  614. package/dist/server-shell/local-console/package-update-recovery.d.ts +34 -0
  615. package/dist/server-shell/local-console/package-update-recovery.js +140 -0
  616. package/dist/server-shell/local-console/package-update-service.d.ts +72 -0
  617. package/dist/server-shell/local-console/package-update-service.js +398 -0
  618. package/dist/server-shell/local-console/package-update-worker.d.ts +55 -0
  619. package/dist/server-shell/local-console/package-update-worker.js +297 -0
  620. package/dist/server-shell/local-console/project-service.d.ts +108 -0
  621. package/dist/server-shell/local-console/project-service.js +716 -0
  622. package/dist/server-shell/local-console/runtime-endpoint.d.ts +35 -0
  623. package/dist/server-shell/local-console/runtime-endpoint.js +90 -0
  624. package/dist/server-shell/local-console/server.d.ts +38 -0
  625. package/dist/server-shell/local-console/server.js +592 -0
  626. package/dist/server-shell/local-console/session.d.ts +39 -0
  627. package/dist/server-shell/local-console/session.js +234 -0
  628. package/dist/server-shell/managed-access/execution-binding.d.ts +9 -0
  629. package/dist/server-shell/managed-access/execution-binding.js +22 -0
  630. package/dist/server-shell/managed-access/existing-project.d.ts +15 -0
  631. package/dist/server-shell/managed-access/existing-project.js +41 -0
  632. package/dist/server-shell/managed-access/legacy-records.d.ts +2 -0
  633. package/dist/server-shell/managed-access/legacy-records.js +24 -0
  634. package/dist/server-shell/managed-access/model-control-client.d.ts +65 -0
  635. package/dist/server-shell/managed-access/model-control-client.js +112 -0
  636. package/dist/server-shell/managed-access/private-store.d.ts +19 -0
  637. package/dist/server-shell/managed-access/private-store.js +275 -0
  638. package/dist/server-shell/managed-access/project-provider.d.ts +18 -0
  639. package/dist/server-shell/managed-access/project-provider.js +30 -0
  640. package/dist/server-shell/managed-access/records.d.ts +103 -0
  641. package/dist/server-shell/managed-access/records.js +74 -0
  642. package/dist/server-shell/managed-access/runners.d.ts +11 -0
  643. package/dist/server-shell/managed-access/runners.js +103 -0
  644. package/dist/server-shell/managed-access/runtime-records.d.ts +106 -0
  645. package/dist/server-shell/managed-access/runtime-records.js +65 -0
  646. package/dist/server-shell/managed-access/runtime.d.ts +48 -0
  647. package/dist/server-shell/managed-access/runtime.js +300 -0
  648. package/dist/server-shell/managed-access/state.d.ts +53 -0
  649. package/dist/server-shell/managed-access/state.js +292 -0
  650. package/dist/server-shell/managed-access/transport.d.ts +45 -0
  651. package/dist/server-shell/managed-access/transport.js +39 -0
  652. package/dist/server-shell/managed-access/workspace.d.ts +10 -0
  653. package/dist/server-shell/managed-access/workspace.js +69 -0
  654. package/dist/server-shell/package-installation/command.d.ts +36 -0
  655. package/dist/server-shell/package-installation/command.js +162 -0
  656. package/dist/server-shell/package-installation/discovery.d.ts +51 -0
  657. package/dist/server-shell/package-installation/discovery.js +137 -0
  658. package/dist/server-shell/package-installation/index.d.ts +5 -0
  659. package/dist/server-shell/package-installation/index.js +5 -0
  660. package/dist/server-shell/package-installation/installation.d.ts +34 -0
  661. package/dist/server-shell/package-installation/installation.js +123 -0
  662. package/dist/server-shell/package-installation/semver.d.ts +9 -0
  663. package/dist/server-shell/package-installation/semver.js +84 -0
  664. package/dist/server-shell/session/relay-session-context.d.ts +36 -0
  665. package/dist/server-shell/session/relay-session-context.js +67 -0
  666. package/dist/server-shell/smoke/e2e-client.d.ts +64 -0
  667. package/dist/server-shell/smoke/e2e-client.js +304 -0
  668. package/dist/server-shell/smoke/index.d.ts +2 -0
  669. package/dist/server-shell/smoke/index.js +2 -0
  670. package/dist/skills/constants.d.ts +13 -0
  671. package/dist/skills/constants.js +15 -0
  672. package/dist/skills/errors.d.ts +6 -0
  673. package/dist/skills/errors.js +9 -0
  674. package/dist/skills/file-reader.d.ts +14 -0
  675. package/dist/skills/file-reader.js +123 -0
  676. package/dist/skills/index.d.ts +45 -0
  677. package/dist/skills/index.js +163 -0
  678. package/dist/skills/metadata.d.ts +10 -0
  679. package/dist/skills/metadata.js +89 -0
  680. package/dist/skills/zip-import.d.ts +18 -0
  681. package/dist/skills/zip-import.js +241 -0
  682. package/dist/store/command-recovery.d.ts +26 -0
  683. package/dist/store/command-recovery.js +71 -0
  684. package/dist/store/index.d.ts +6 -0
  685. package/dist/store/index.js +6 -0
  686. package/dist/store/lifecycle.d.ts +24 -0
  687. package/dist/store/lifecycle.js +55 -0
  688. package/dist/store/metadata.d.ts +18 -0
  689. package/dist/store/metadata.js +30 -0
  690. package/dist/store/migrations.d.ts +20 -0
  691. package/dist/store/migrations.js +76 -0
  692. package/dist/store/sqlite.d.ts +11 -0
  693. package/dist/store/sqlite.js +21 -0
  694. package/dist/workspace-ops/constants.d.ts +15 -0
  695. package/dist/workspace-ops/constants.js +20 -0
  696. package/dist/workspace-ops/errors.d.ts +8 -0
  697. package/dist/workspace-ops/errors.js +33 -0
  698. package/dist/workspace-ops/git.d.ts +13 -0
  699. package/dist/workspace-ops/git.js +53 -0
  700. package/dist/workspace-ops/index.d.ts +13 -0
  701. package/dist/workspace-ops/index.js +11 -0
  702. package/dist/workspace-ops/mainline.d.ts +2 -0
  703. package/dist/workspace-ops/mainline.js +12 -0
  704. package/dist/workspace-ops/project-doc-templates.d.ts +12 -0
  705. package/dist/workspace-ops/project-doc-templates.js +180 -0
  706. package/dist/workspace-ops/project-docs.d.ts +7 -0
  707. package/dist/workspace-ops/project-docs.js +167 -0
  708. package/dist/workspace-ops/project-workspace.d.ts +11 -0
  709. package/dist/workspace-ops/project-workspace.js +237 -0
  710. package/dist/workspace-ops/reference-cache-policy.d.ts +6 -0
  711. package/dist/workspace-ops/reference-cache-policy.js +79 -0
  712. package/dist/workspace-ops/reference-files.d.ts +16 -0
  713. package/dist/workspace-ops/reference-files.js +367 -0
  714. package/dist/workspace-ops/reference-metadata.d.ts +15 -0
  715. package/dist/workspace-ops/reference-metadata.js +97 -0
  716. package/dist/workspace-ops/reference-summaries.d.ts +22 -0
  717. package/dist/workspace-ops/reference-summaries.js +295 -0
  718. package/dist/workspace-ops/reference-tree.d.ts +11 -0
  719. package/dist/workspace-ops/reference-tree.js +34 -0
  720. package/dist/workspace-ops/system-commits.d.ts +7 -0
  721. package/dist/workspace-ops/system-commits.js +43 -0
  722. package/dist/workspace-ops/types.d.ts +222 -0
  723. package/dist/workspace-ops/types.js +2 -0
  724. package/dist/workspace-ops/viewer-file.d.ts +4 -0
  725. package/dist/workspace-ops/viewer-file.js +207 -0
  726. package/dist/workspace-ops/viewer-git.d.ts +21 -0
  727. package/dist/workspace-ops/viewer-git.js +122 -0
  728. package/dist/workspace-ops/viewer-paths.d.ts +3 -0
  729. package/dist/workspace-ops/viewer-paths.js +13 -0
  730. package/dist/workspace-ops/viewer-tree.d.ts +9 -0
  731. package/dist/workspace-ops/viewer-tree.js +144 -0
  732. package/dist/workspace-ops/viewer.d.ts +5 -0
  733. package/dist/workspace-ops/viewer.js +5 -0
  734. package/migrations/0001_init.sql +674 -0
  735. package/migrations/0002_allow_sealed_round_successor_note.sql +14 -0
  736. package/migrations/0003_drop_scratchpad_source_message_refs.sql +1 -0
  737. package/migrations/0004_read_state.sql +109 -0
  738. package/migrations/0005_provider_usage.sql +15 -0
  739. package/migrations/0006_scratchpad_source_state.sql +29 -0
  740. package/migrations/0007_workspace_signal_read_state_scopes.sql +74 -0
  741. package/migrations/0008_provider_usage_anchors.sql +32 -0
  742. package/migrations/0009_project_timeline_events.sql +33 -0
  743. package/migrations/0010_project_brief.sql +13 -0
  744. package/migrations/0011_message_author_avatar.sql +5 -0
  745. package/migrations/0012_scratchpad_receipts.sql +31 -0
  746. package/migrations/0013_scratchpad_receipt_sources.sql +24 -0
  747. package/migrations/0014_scratchpad_task_compile_context.sql +147 -0
  748. package/migrations/0015_control_plane_intents.sql +115 -0
  749. package/migrations/0016_external_source_mappings.sql +141 -0
  750. package/migrations/0017_platform_outbound_intents.sql +31 -0
  751. package/migrations/0018_platform_outbound_events.sql +111 -0
  752. package/migrations/0019_platform_outbound_card_content.sql +76 -0
  753. package/migrations/0020_managed_reference_sources.sql +34 -0
  754. package/migrations/0021_external_reference_reads.sql +11 -0
  755. package/migrations/0022_clarification_projection_cursors.sql +7 -0
  756. package/migrations/0023_communication_language.sql +14 -0
  757. package/migrations/0024_chat_requests.sql +19 -0
  758. package/migrations/0025_task_compile_requests.sql +50 -0
  759. package/migrations/0026_context_sync_and_chat_locale.sql +12 -0
  760. package/migrations/README.md +55 -0
  761. package/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.d.ts +55 -0
  762. package/node_modules/@sinclair/typebox/build/cjs/compiler/compiler.js +670 -0
  763. package/node_modules/@sinclair/typebox/build/cjs/compiler/index.d.ts +2 -0
  764. package/node_modules/@sinclair/typebox/build/cjs/compiler/index.js +22 -0
  765. package/node_modules/@sinclair/typebox/build/cjs/errors/errors.d.ts +91 -0
  766. package/node_modules/@sinclair/typebox/build/cjs/errors/errors.js +599 -0
  767. package/node_modules/@sinclair/typebox/build/cjs/errors/function.d.ts +21 -0
  768. package/node_modules/@sinclair/typebox/build/cjs/errors/function.js +153 -0
  769. package/node_modules/@sinclair/typebox/build/cjs/errors/index.d.ts +2 -0
  770. package/node_modules/@sinclair/typebox/build/cjs/errors/index.js +19 -0
  771. package/node_modules/@sinclair/typebox/build/cjs/index.d.ts +71 -0
  772. package/node_modules/@sinclair/typebox/build/cjs/index.js +97 -0
  773. package/node_modules/@sinclair/typebox/build/cjs/parser/index.d.ts +2 -0
  774. package/node_modules/@sinclair/typebox/build/cjs/parser/index.js +39 -0
  775. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.d.ts +23 -0
  776. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/guard.js +86 -0
  777. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.d.ts +5 -0
  778. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/index.js +45 -0
  779. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.d.ts +9 -0
  780. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/module.js +22 -0
  781. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.d.ts +9 -0
  782. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/parse.js +160 -0
  783. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.d.ts +8 -0
  784. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/token.js +230 -0
  785. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.d.ts +98 -0
  786. package/node_modules/@sinclair/typebox/build/cjs/parser/runtime/types.js +71 -0
  787. package/node_modules/@sinclair/typebox/build/cjs/parser/static/index.d.ts +3 -0
  788. package/node_modules/@sinclair/typebox/build/cjs/parser/static/index.js +43 -0
  789. package/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.d.ts +20 -0
  790. package/node_modules/@sinclair/typebox/build/cjs/parser/static/parse.js +3 -0
  791. package/node_modules/@sinclair/typebox/build/cjs/parser/static/token.d.ts +108 -0
  792. package/node_modules/@sinclair/typebox/build/cjs/parser/static/token.js +3 -0
  793. package/node_modules/@sinclair/typebox/build/cjs/parser/static/types.d.ts +69 -0
  794. package/node_modules/@sinclair/typebox/build/cjs/parser/static/types.js +3 -0
  795. package/node_modules/@sinclair/typebox/build/cjs/syntax/index.d.ts +1 -0
  796. package/node_modules/@sinclair/typebox/build/cjs/syntax/index.js +18 -0
  797. package/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.d.ts +167 -0
  798. package/node_modules/@sinclair/typebox/build/cjs/syntax/mapping.js +491 -0
  799. package/node_modules/@sinclair/typebox/build/cjs/syntax/parser.d.ts +162 -0
  800. package/node_modules/@sinclair/typebox/build/cjs/syntax/parser.js +191 -0
  801. package/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.d.ts +12 -0
  802. package/node_modules/@sinclair/typebox/build/cjs/syntax/syntax.js +54 -0
  803. package/node_modules/@sinclair/typebox/build/cjs/system/index.d.ts +2 -0
  804. package/node_modules/@sinclair/typebox/build/cjs/system/index.js +19 -0
  805. package/node_modules/@sinclair/typebox/build/cjs/system/policy.d.ts +29 -0
  806. package/node_modules/@sinclair/typebox/build/cjs/system/policy.js +58 -0
  807. package/node_modules/@sinclair/typebox/build/cjs/system/system.d.ts +16 -0
  808. package/node_modules/@sinclair/typebox/build/cjs/system/system.js +43 -0
  809. package/node_modules/@sinclair/typebox/build/cjs/type/any/any.d.ts +8 -0
  810. package/node_modules/@sinclair/typebox/build/cjs/type/any/any.js +10 -0
  811. package/node_modules/@sinclair/typebox/build/cjs/type/any/index.d.ts +1 -0
  812. package/node_modules/@sinclair/typebox/build/cjs/type/any/index.js +18 -0
  813. package/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.d.ts +9 -0
  814. package/node_modules/@sinclair/typebox/build/cjs/type/argument/argument.js +10 -0
  815. package/node_modules/@sinclair/typebox/build/cjs/type/argument/index.d.ts +1 -0
  816. package/node_modules/@sinclair/typebox/build/cjs/type/argument/index.js +18 -0
  817. package/node_modules/@sinclair/typebox/build/cjs/type/array/array.d.ts +28 -0
  818. package/node_modules/@sinclair/typebox/build/cjs/type/array/array.js +10 -0
  819. package/node_modules/@sinclair/typebox/build/cjs/type/array/index.d.ts +1 -0
  820. package/node_modules/@sinclair/typebox/build/cjs/type/array/index.js +18 -0
  821. package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.d.ts +11 -0
  822. package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/async-iterator.js +10 -0
  823. package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.d.ts +1 -0
  824. package/node_modules/@sinclair/typebox/build/cjs/type/async-iterator/index.js +18 -0
  825. package/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.d.ts +14 -0
  826. package/node_modules/@sinclair/typebox/build/cjs/type/awaited/awaited.js +41 -0
  827. package/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.d.ts +1 -0
  828. package/node_modules/@sinclair/typebox/build/cjs/type/awaited/index.js +18 -0
  829. package/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.d.ts +16 -0
  830. package/node_modules/@sinclair/typebox/build/cjs/type/bigint/bigint.js +10 -0
  831. package/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.d.ts +1 -0
  832. package/node_modules/@sinclair/typebox/build/cjs/type/bigint/index.js +18 -0
  833. package/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.d.ts +9 -0
  834. package/node_modules/@sinclair/typebox/build/cjs/type/boolean/boolean.js +10 -0
  835. package/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.d.ts +1 -0
  836. package/node_modules/@sinclair/typebox/build/cjs/type/boolean/index.js +18 -0
  837. package/node_modules/@sinclair/typebox/build/cjs/type/clone/index.d.ts +2 -0
  838. package/node_modules/@sinclair/typebox/build/cjs/type/clone/index.js +19 -0
  839. package/node_modules/@sinclair/typebox/build/cjs/type/clone/type.d.ts +5 -0
  840. package/node_modules/@sinclair/typebox/build/cjs/type/clone/type.js +14 -0
  841. package/node_modules/@sinclair/typebox/build/cjs/type/clone/value.d.ts +2 -0
  842. package/node_modules/@sinclair/typebox/build/cjs/type/clone/value.js +73 -0
  843. package/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.d.ts +18 -0
  844. package/node_modules/@sinclair/typebox/build/cjs/type/composite/composite.js +46 -0
  845. package/node_modules/@sinclair/typebox/build/cjs/type/composite/index.d.ts +1 -0
  846. package/node_modules/@sinclair/typebox/build/cjs/type/composite/index.js +18 -0
  847. package/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.d.ts +9 -0
  848. package/node_modules/@sinclair/typebox/build/cjs/type/computed/computed.js +10 -0
  849. package/node_modules/@sinclair/typebox/build/cjs/type/computed/index.d.ts +1 -0
  850. package/node_modules/@sinclair/typebox/build/cjs/type/computed/index.js +18 -0
  851. package/node_modules/@sinclair/typebox/build/cjs/type/const/const.d.ts +27 -0
  852. package/node_modules/@sinclair/typebox/build/cjs/type/const/const.js +58 -0
  853. package/node_modules/@sinclair/typebox/build/cjs/type/const/index.d.ts +1 -0
  854. package/node_modules/@sinclair/typebox/build/cjs/type/const/index.js +18 -0
  855. package/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.d.ts +23 -0
  856. package/node_modules/@sinclair/typebox/build/cjs/type/constructor/constructor.js +10 -0
  857. package/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.d.ts +1 -0
  858. package/node_modules/@sinclair/typebox/build/cjs/type/constructor/index.js +18 -0
  859. package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.d.ts +7 -0
  860. package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/constructor-parameters.js +44 -0
  861. package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.d.ts +1 -0
  862. package/node_modules/@sinclair/typebox/build/cjs/type/constructor-parameters/index.js +18 -0
  863. package/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.d.ts +2 -0
  864. package/node_modules/@sinclair/typebox/build/cjs/type/create/immutable.js +70 -0
  865. package/node_modules/@sinclair/typebox/build/cjs/type/create/index.d.ts +1 -0
  866. package/node_modules/@sinclair/typebox/build/cjs/type/create/index.js +18 -0
  867. package/node_modules/@sinclair/typebox/build/cjs/type/create/type.d.ts +3 -0
  868. package/node_modules/@sinclair/typebox/build/cjs/type/create/type.js +19 -0
  869. package/node_modules/@sinclair/typebox/build/cjs/type/date/date.d.ts +21 -0
  870. package/node_modules/@sinclair/typebox/build/cjs/type/date/date.js +10 -0
  871. package/node_modules/@sinclair/typebox/build/cjs/type/date/index.d.ts +1 -0
  872. package/node_modules/@sinclair/typebox/build/cjs/type/date/index.js +18 -0
  873. package/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.d.ts +2 -0
  874. package/node_modules/@sinclair/typebox/build/cjs/type/discard/discard.js +12 -0
  875. package/node_modules/@sinclair/typebox/build/cjs/type/discard/index.d.ts +1 -0
  876. package/node_modules/@sinclair/typebox/build/cjs/type/discard/index.js +18 -0
  877. package/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.d.ts +14 -0
  878. package/node_modules/@sinclair/typebox/build/cjs/type/enum/enum.js +22 -0
  879. package/node_modules/@sinclair/typebox/build/cjs/type/enum/index.d.ts +1 -0
  880. package/node_modules/@sinclair/typebox/build/cjs/type/enum/index.js +18 -0
  881. package/node_modules/@sinclair/typebox/build/cjs/type/error/error.d.ts +4 -0
  882. package/node_modules/@sinclair/typebox/build/cjs/type/error/error.js +11 -0
  883. package/node_modules/@sinclair/typebox/build/cjs/type/error/index.d.ts +1 -0
  884. package/node_modules/@sinclair/typebox/build/cjs/type/error/index.js +18 -0
  885. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.d.ts +11 -0
  886. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-mapped-result.js +22 -0
  887. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.d.ts +5 -0
  888. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude-from-template-literal.js +9 -0
  889. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.d.ts +21 -0
  890. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/exclude.js +29 -0
  891. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.d.ts +3 -0
  892. package/node_modules/@sinclair/typebox/build/cjs/type/exclude/index.js +20 -0
  893. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.d.ts +10 -0
  894. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-check.js +641 -0
  895. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.d.ts +14 -0
  896. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-key.js +29 -0
  897. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.d.ts +11 -0
  898. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-from-mapped-result.js +23 -0
  899. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.d.ts +3 -0
  900. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends-undefined.js +24 -0
  901. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.d.ts +16 -0
  902. package/node_modules/@sinclair/typebox/build/cjs/type/extends/extends.js +27 -0
  903. package/node_modules/@sinclair/typebox/build/cjs/type/extends/index.d.ts +5 -0
  904. package/node_modules/@sinclair/typebox/build/cjs/type/extends/index.js +22 -0
  905. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.d.ts +11 -0
  906. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-mapped-result.js +22 -0
  907. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.d.ts +5 -0
  908. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract-from-template-literal.js +9 -0
  909. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.d.ts +21 -0
  910. package/node_modules/@sinclair/typebox/build/cjs/type/extract/extract.js +29 -0
  911. package/node_modules/@sinclair/typebox/build/cjs/type/extract/index.d.ts +3 -0
  912. package/node_modules/@sinclair/typebox/build/cjs/type/extract/index.js +20 -0
  913. package/node_modules/@sinclair/typebox/build/cjs/type/function/function.d.ts +23 -0
  914. package/node_modules/@sinclair/typebox/build/cjs/type/function/function.js +10 -0
  915. package/node_modules/@sinclair/typebox/build/cjs/type/function/index.d.ts +1 -0
  916. package/node_modules/@sinclair/typebox/build/cjs/type/function/index.js +18 -0
  917. package/node_modules/@sinclair/typebox/build/cjs/type/guard/index.d.ts +3 -0
  918. package/node_modules/@sinclair/typebox/build/cjs/type/guard/index.js +40 -0
  919. package/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.d.ts +147 -0
  920. package/node_modules/@sinclair/typebox/build/cjs/type/guard/kind.js +320 -0
  921. package/node_modules/@sinclair/typebox/build/cjs/type/guard/type.d.ts +152 -0
  922. package/node_modules/@sinclair/typebox/build/cjs/type/guard/type.js +597 -0
  923. package/node_modules/@sinclair/typebox/build/cjs/type/guard/value.d.ts +34 -0
  924. package/node_modules/@sinclair/typebox/build/cjs/type/guard/value.js +89 -0
  925. package/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.d.ts +42 -0
  926. package/node_modules/@sinclair/typebox/build/cjs/type/helpers/helpers.js +8 -0
  927. package/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.d.ts +1 -0
  928. package/node_modules/@sinclair/typebox/build/cjs/type/helpers/index.js +18 -0
  929. package/node_modules/@sinclair/typebox/build/cjs/type/index.d.ts +71 -0
  930. package/node_modules/@sinclair/typebox/build/cjs/type/index.js +88 -0
  931. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.d.ts +4 -0
  932. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/index.js +21 -0
  933. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.d.ts +13 -0
  934. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-key.js +26 -0
  935. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.d.ts +12 -0
  936. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-from-mapped-result.js +24 -0
  937. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.d.ts +14 -0
  938. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed-property-keys.js +36 -0
  939. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.d.ts +52 -0
  940. package/node_modules/@sinclair/typebox/build/cjs/type/indexed/indexed.js +98 -0
  941. package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.d.ts +1 -0
  942. package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/index.js +18 -0
  943. package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.d.ts +6 -0
  944. package/node_modules/@sinclair/typebox/build/cjs/type/instance-type/instance-type.js +44 -0
  945. package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.d.ts +1 -0
  946. package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/index.js +18 -0
  947. package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.d.ts +50 -0
  948. package/node_modules/@sinclair/typebox/build/cjs/type/instantiate/instantiate.js +153 -0
  949. package/node_modules/@sinclair/typebox/build/cjs/type/integer/index.d.ts +1 -0
  950. package/node_modules/@sinclair/typebox/build/cjs/type/integer/index.js +18 -0
  951. package/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.d.ts +16 -0
  952. package/node_modules/@sinclair/typebox/build/cjs/type/integer/integer.js +10 -0
  953. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.d.ts +3 -0
  954. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/index.js +20 -0
  955. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.d.ts +3 -0
  956. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-create.js +23 -0
  957. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.d.ts +13 -0
  958. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-evaluated.js +42 -0
  959. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.d.ts +15 -0
  960. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect-type.js +4 -0
  961. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.d.ts +6 -0
  962. package/node_modules/@sinclair/typebox/build/cjs/type/intersect/intersect.js +21 -0
  963. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.d.ts +5 -0
  964. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/capitalize.js +9 -0
  965. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.d.ts +6 -0
  966. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/index.js +23 -0
  967. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.d.ts +14 -0
  968. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic-from-mapped-key.js +30 -0
  969. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.d.ts +16 -0
  970. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/intrinsic.js +68 -0
  971. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.d.ts +5 -0
  972. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/lowercase.js +9 -0
  973. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.d.ts +5 -0
  974. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uncapitalize.js +9 -0
  975. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.d.ts +5 -0
  976. package/node_modules/@sinclair/typebox/build/cjs/type/intrinsic/uppercase.js +9 -0
  977. package/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.d.ts +1 -0
  978. package/node_modules/@sinclair/typebox/build/cjs/type/iterator/index.js +18 -0
  979. package/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.d.ts +11 -0
  980. package/node_modules/@sinclair/typebox/build/cjs/type/iterator/iterator.js +10 -0
  981. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.d.ts +4 -0
  982. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/index.js +21 -0
  983. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.d.ts +12 -0
  984. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-from-mapped-result.js +23 -0
  985. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.d.ts +7 -0
  986. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-entries.js +16 -0
  987. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.d.ts +24 -0
  988. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof-property-keys.js +78 -0
  989. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.d.ts +21 -0
  990. package/node_modules/@sinclair/typebox/build/cjs/type/keyof/keyof.js +40 -0
  991. package/node_modules/@sinclair/typebox/build/cjs/type/literal/index.d.ts +1 -0
  992. package/node_modules/@sinclair/typebox/build/cjs/type/literal/index.js +18 -0
  993. package/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.d.ts +10 -0
  994. package/node_modules/@sinclair/typebox/build/cjs/type/literal/literal.js +14 -0
  995. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.d.ts +3 -0
  996. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/index.js +20 -0
  997. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.d.ts +8 -0
  998. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-key.js +13 -0
  999. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.d.ts +9 -0
  1000. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped-result.js +13 -0
  1001. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.d.ts +47 -0
  1002. package/node_modules/@sinclair/typebox/build/cjs/type/mapped/mapped.js +107 -0
  1003. package/node_modules/@sinclair/typebox/build/cjs/type/module/compute.d.ts +59 -0
  1004. package/node_modules/@sinclair/typebox/build/cjs/type/module/compute.js +205 -0
  1005. package/node_modules/@sinclair/typebox/build/cjs/type/module/index.d.ts +1 -0
  1006. package/node_modules/@sinclair/typebox/build/cjs/type/module/index.js +18 -0
  1007. package/node_modules/@sinclair/typebox/build/cjs/type/module/infer.d.ts +49 -0
  1008. package/node_modules/@sinclair/typebox/build/cjs/type/module/infer.js +3 -0
  1009. package/node_modules/@sinclair/typebox/build/cjs/type/module/module.d.ts +27 -0
  1010. package/node_modules/@sinclair/typebox/build/cjs/type/module/module.js +38 -0
  1011. package/node_modules/@sinclair/typebox/build/cjs/type/never/index.d.ts +1 -0
  1012. package/node_modules/@sinclair/typebox/build/cjs/type/never/index.js +18 -0
  1013. package/node_modules/@sinclair/typebox/build/cjs/type/never/never.d.ts +9 -0
  1014. package/node_modules/@sinclair/typebox/build/cjs/type/never/never.js +10 -0
  1015. package/node_modules/@sinclair/typebox/build/cjs/type/not/index.d.ts +1 -0
  1016. package/node_modules/@sinclair/typebox/build/cjs/type/not/index.js +18 -0
  1017. package/node_modules/@sinclair/typebox/build/cjs/type/not/not.d.ts +10 -0
  1018. package/node_modules/@sinclair/typebox/build/cjs/type/not/not.js +10 -0
  1019. package/node_modules/@sinclair/typebox/build/cjs/type/null/index.d.ts +1 -0
  1020. package/node_modules/@sinclair/typebox/build/cjs/type/null/index.js +18 -0
  1021. package/node_modules/@sinclair/typebox/build/cjs/type/null/null.d.ts +9 -0
  1022. package/node_modules/@sinclair/typebox/build/cjs/type/null/null.js +10 -0
  1023. package/node_modules/@sinclair/typebox/build/cjs/type/number/index.d.ts +1 -0
  1024. package/node_modules/@sinclair/typebox/build/cjs/type/number/index.js +18 -0
  1025. package/node_modules/@sinclair/typebox/build/cjs/type/number/number.d.ts +16 -0
  1026. package/node_modules/@sinclair/typebox/build/cjs/type/number/number.js +10 -0
  1027. package/node_modules/@sinclair/typebox/build/cjs/type/object/index.d.ts +1 -0
  1028. package/node_modules/@sinclair/typebox/build/cjs/type/object/index.js +18 -0
  1029. package/node_modules/@sinclair/typebox/build/cjs/type/object/object.d.ts +51 -0
  1030. package/node_modules/@sinclair/typebox/build/cjs/type/object/object.js +22 -0
  1031. package/node_modules/@sinclair/typebox/build/cjs/type/omit/index.d.ts +3 -0
  1032. package/node_modules/@sinclair/typebox/build/cjs/type/omit/index.js +20 -0
  1033. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.d.ts +12 -0
  1034. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-key.js +26 -0
  1035. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.d.ts +12 -0
  1036. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit-from-mapped-result.js +23 -0
  1037. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.d.ts +36 -0
  1038. package/node_modules/@sinclair/typebox/build/cjs/type/omit/omit.js +75 -0
  1039. package/node_modules/@sinclair/typebox/build/cjs/type/optional/index.d.ts +2 -0
  1040. package/node_modules/@sinclair/typebox/build/cjs/type/optional/index.js +19 -0
  1041. package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.d.ts +10 -0
  1042. package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional-from-mapped-result.js +22 -0
  1043. package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.d.ts +20 -0
  1044. package/node_modules/@sinclair/typebox/build/cjs/type/optional/optional.js +26 -0
  1045. package/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.d.ts +1 -0
  1046. package/node_modules/@sinclair/typebox/build/cjs/type/parameters/index.js +18 -0
  1047. package/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.d.ts +7 -0
  1048. package/node_modules/@sinclair/typebox/build/cjs/type/parameters/parameters.js +44 -0
  1049. package/node_modules/@sinclair/typebox/build/cjs/type/partial/index.d.ts +2 -0
  1050. package/node_modules/@sinclair/typebox/build/cjs/type/partial/index.js +19 -0
  1051. package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.d.ts +12 -0
  1052. package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial-from-mapped-result.js +23 -0
  1053. package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.d.ts +35 -0
  1054. package/node_modules/@sinclair/typebox/build/cjs/type/partial/partial.js +111 -0
  1055. package/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.d.ts +1 -0
  1056. package/node_modules/@sinclair/typebox/build/cjs/type/patterns/index.js +18 -0
  1057. package/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.d.ts +8 -0
  1058. package/node_modules/@sinclair/typebox/build/cjs/type/patterns/patterns.js +12 -0
  1059. package/node_modules/@sinclair/typebox/build/cjs/type/pick/index.d.ts +3 -0
  1060. package/node_modules/@sinclair/typebox/build/cjs/type/pick/index.js +20 -0
  1061. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.d.ts +12 -0
  1062. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-key.js +28 -0
  1063. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.d.ts +12 -0
  1064. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick-from-mapped-result.js +23 -0
  1065. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.d.ts +36 -0
  1066. package/node_modules/@sinclair/typebox/build/cjs/type/pick/pick.js +70 -0
  1067. package/node_modules/@sinclair/typebox/build/cjs/type/promise/index.d.ts +1 -0
  1068. package/node_modules/@sinclair/typebox/build/cjs/type/promise/index.js +18 -0
  1069. package/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.d.ts +11 -0
  1070. package/node_modules/@sinclair/typebox/build/cjs/type/promise/promise.js +10 -0
  1071. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.d.ts +2 -0
  1072. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/index.js +19 -0
  1073. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.d.ts +10 -0
  1074. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly-from-mapped-result.js +22 -0
  1075. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.d.ts +20 -0
  1076. package/node_modules/@sinclair/typebox/build/cjs/type/readonly/readonly.js +26 -0
  1077. package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.d.ts +1 -0
  1078. package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/index.js +18 -0
  1079. package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.d.ts +6 -0
  1080. package/node_modules/@sinclair/typebox/build/cjs/type/readonly-optional/readonly-optional.js +10 -0
  1081. package/node_modules/@sinclair/typebox/build/cjs/type/record/index.d.ts +1 -0
  1082. package/node_modules/@sinclair/typebox/build/cjs/type/record/index.js +18 -0
  1083. package/node_modules/@sinclair/typebox/build/cjs/type/record/record.d.ts +71 -0
  1084. package/node_modules/@sinclair/typebox/build/cjs/type/record/record.js +123 -0
  1085. package/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.d.ts +1 -0
  1086. package/node_modules/@sinclair/typebox/build/cjs/type/recursive/index.js +18 -0
  1087. package/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.d.ts +16 -0
  1088. package/node_modules/@sinclair/typebox/build/cjs/type/recursive/recursive.js +19 -0
  1089. package/node_modules/@sinclair/typebox/build/cjs/type/ref/index.d.ts +1 -0
  1090. package/node_modules/@sinclair/typebox/build/cjs/type/ref/index.js +18 -0
  1091. package/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.d.ts +41 -0
  1092. package/node_modules/@sinclair/typebox/build/cjs/type/ref/ref.js +14 -0
  1093. package/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.d.ts +1 -0
  1094. package/node_modules/@sinclair/typebox/build/cjs/type/regexp/index.js +18 -0
  1095. package/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.d.ts +20 -0
  1096. package/node_modules/@sinclair/typebox/build/cjs/type/regexp/regexp.js +12 -0
  1097. package/node_modules/@sinclair/typebox/build/cjs/type/registry/format.d.ts +13 -0
  1098. package/node_modules/@sinclair/typebox/build/cjs/type/registry/format.js +35 -0
  1099. package/node_modules/@sinclair/typebox/build/cjs/type/registry/index.d.ts +2 -0
  1100. package/node_modules/@sinclair/typebox/build/cjs/type/registry/index.js +39 -0
  1101. package/node_modules/@sinclair/typebox/build/cjs/type/registry/type.d.ts +13 -0
  1102. package/node_modules/@sinclair/typebox/build/cjs/type/registry/type.js +35 -0
  1103. package/node_modules/@sinclair/typebox/build/cjs/type/required/index.d.ts +2 -0
  1104. package/node_modules/@sinclair/typebox/build/cjs/type/required/index.js +19 -0
  1105. package/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.d.ts +12 -0
  1106. package/node_modules/@sinclair/typebox/build/cjs/type/required/required-from-mapped-result.js +22 -0
  1107. package/node_modules/@sinclair/typebox/build/cjs/type/required/required.d.ts +35 -0
  1108. package/node_modules/@sinclair/typebox/build/cjs/type/required/required.js +110 -0
  1109. package/node_modules/@sinclair/typebox/build/cjs/type/rest/index.d.ts +1 -0
  1110. package/node_modules/@sinclair/typebox/build/cjs/type/rest/index.js +18 -0
  1111. package/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.d.ts +10 -0
  1112. package/node_modules/@sinclair/typebox/build/cjs/type/rest/rest.js +19 -0
  1113. package/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.d.ts +1 -0
  1114. package/node_modules/@sinclair/typebox/build/cjs/type/return-type/index.js +18 -0
  1115. package/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.d.ts +6 -0
  1116. package/node_modules/@sinclair/typebox/build/cjs/type/return-type/return-type.js +44 -0
  1117. package/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.d.ts +33 -0
  1118. package/node_modules/@sinclair/typebox/build/cjs/type/schema/anyschema.js +3 -0
  1119. package/node_modules/@sinclair/typebox/build/cjs/type/schema/index.d.ts +2 -0
  1120. package/node_modules/@sinclair/typebox/build/cjs/type/schema/index.js +19 -0
  1121. package/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.d.ts +29 -0
  1122. package/node_modules/@sinclair/typebox/build/cjs/type/schema/schema.js +4 -0
  1123. package/node_modules/@sinclair/typebox/build/cjs/type/sets/index.d.ts +1 -0
  1124. package/node_modules/@sinclair/typebox/build/cjs/type/sets/index.js +18 -0
  1125. package/node_modules/@sinclair/typebox/build/cjs/type/sets/set.d.ts +28 -0
  1126. package/node_modules/@sinclair/typebox/build/cjs/type/sets/set.js +59 -0
  1127. package/node_modules/@sinclair/typebox/build/cjs/type/static/index.d.ts +1 -0
  1128. package/node_modules/@sinclair/typebox/build/cjs/type/static/index.js +18 -0
  1129. package/node_modules/@sinclair/typebox/build/cjs/type/static/static.d.ts +39 -0
  1130. package/node_modules/@sinclair/typebox/build/cjs/type/static/static.js +3 -0
  1131. package/node_modules/@sinclair/typebox/build/cjs/type/string/index.d.ts +1 -0
  1132. package/node_modules/@sinclair/typebox/build/cjs/type/string/index.js +18 -0
  1133. package/node_modules/@sinclair/typebox/build/cjs/type/string/string.d.ts +25 -0
  1134. package/node_modules/@sinclair/typebox/build/cjs/type/string/string.js +10 -0
  1135. package/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.d.ts +1 -0
  1136. package/node_modules/@sinclair/typebox/build/cjs/type/symbol/index.js +18 -0
  1137. package/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.d.ts +10 -0
  1138. package/node_modules/@sinclair/typebox/build/cjs/type/symbol/symbol.js +10 -0
  1139. package/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.d.ts +1 -0
  1140. package/node_modules/@sinclair/typebox/build/cjs/type/symbols/index.js +18 -0
  1141. package/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.d.ts +10 -0
  1142. package/node_modules/@sinclair/typebox/build/cjs/type/symbols/symbols.js +14 -0
  1143. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.d.ts +19 -0
  1144. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/finite.js +56 -0
  1145. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.d.ts +21 -0
  1146. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/generate.js +60 -0
  1147. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.d.ts +7 -0
  1148. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/index.js +24 -0
  1149. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.d.ts +20 -0
  1150. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/parse.js +174 -0
  1151. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.d.ts +5 -0
  1152. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/pattern.js +39 -0
  1153. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.d.ts +20 -0
  1154. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/syntax.js +59 -0
  1155. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.d.ts +30 -0
  1156. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/template-literal.js +17 -0
  1157. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.d.ts +9 -0
  1158. package/node_modules/@sinclair/typebox/build/cjs/type/template-literal/union.js +13 -0
  1159. package/node_modules/@sinclair/typebox/build/cjs/type/transform/index.d.ts +1 -0
  1160. package/node_modules/@sinclair/typebox/build/cjs/type/transform/index.js +18 -0
  1161. package/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.d.ts +30 -0
  1162. package/node_modules/@sinclair/typebox/build/cjs/type/transform/transform.js +47 -0
  1163. package/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.d.ts +1 -0
  1164. package/node_modules/@sinclair/typebox/build/cjs/type/tuple/index.js +18 -0
  1165. package/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.d.ts +16 -0
  1166. package/node_modules/@sinclair/typebox/build/cjs/type/tuple/tuple.js +13 -0
  1167. package/node_modules/@sinclair/typebox/build/cjs/type/type/index.d.ts +6 -0
  1168. package/node_modules/@sinclair/typebox/build/cjs/type/type/index.js +51 -0
  1169. package/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.d.ts +64 -0
  1170. package/node_modules/@sinclair/typebox/build/cjs/type/type/javascript.js +104 -0
  1171. package/node_modules/@sinclair/typebox/build/cjs/type/type/json.d.ts +208 -0
  1172. package/node_modules/@sinclair/typebox/build/cjs/type/type/json.js +226 -0
  1173. package/node_modules/@sinclair/typebox/build/cjs/type/type/type.d.ts +59 -0
  1174. package/node_modules/@sinclair/typebox/build/cjs/type/type/type.js +129 -0
  1175. package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.d.ts +1 -0
  1176. package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/index.js +18 -0
  1177. package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.d.ts +13 -0
  1178. package/node_modules/@sinclair/typebox/build/cjs/type/uint8array/uint8array.js +10 -0
  1179. package/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.d.ts +1 -0
  1180. package/node_modules/@sinclair/typebox/build/cjs/type/undefined/index.js +18 -0
  1181. package/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.d.ts +9 -0
  1182. package/node_modules/@sinclair/typebox/build/cjs/type/undefined/undefined.js +10 -0
  1183. package/node_modules/@sinclair/typebox/build/cjs/type/union/index.d.ts +3 -0
  1184. package/node_modules/@sinclair/typebox/build/cjs/type/union/index.js +20 -0
  1185. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.d.ts +3 -0
  1186. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-create.js +9 -0
  1187. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.d.ts +13 -0
  1188. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-evaluated.js +40 -0
  1189. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.d.ts +12 -0
  1190. package/node_modules/@sinclair/typebox/build/cjs/type/union/union-type.js +4 -0
  1191. package/node_modules/@sinclair/typebox/build/cjs/type/union/union.d.ts +6 -0
  1192. package/node_modules/@sinclair/typebox/build/cjs/type/union/union.js +14 -0
  1193. package/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.d.ts +1 -0
  1194. package/node_modules/@sinclair/typebox/build/cjs/type/unknown/index.js +18 -0
  1195. package/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.d.ts +8 -0
  1196. package/node_modules/@sinclair/typebox/build/cjs/type/unknown/unknown.js +10 -0
  1197. package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.d.ts +1 -0
  1198. package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/index.js +18 -0
  1199. package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.d.ts +11 -0
  1200. package/node_modules/@sinclair/typebox/build/cjs/type/unsafe/unsafe.js +10 -0
  1201. package/node_modules/@sinclair/typebox/build/cjs/type/void/index.d.ts +1 -0
  1202. package/node_modules/@sinclair/typebox/build/cjs/type/void/index.js +18 -0
  1203. package/node_modules/@sinclair/typebox/build/cjs/type/void/void.d.ts +9 -0
  1204. package/node_modules/@sinclair/typebox/build/cjs/type/void/void.js +10 -0
  1205. package/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.d.ts +15 -0
  1206. package/node_modules/@sinclair/typebox/build/cjs/value/assert/assert.js +55 -0
  1207. package/node_modules/@sinclair/typebox/build/cjs/value/assert/index.d.ts +1 -0
  1208. package/node_modules/@sinclair/typebox/build/cjs/value/assert/index.js +18 -0
  1209. package/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.d.ts +11 -0
  1210. package/node_modules/@sinclair/typebox/build/cjs/value/cast/cast.js +241 -0
  1211. package/node_modules/@sinclair/typebox/build/cjs/value/cast/index.d.ts +1 -0
  1212. package/node_modules/@sinclair/typebox/build/cjs/value/cast/index.js +18 -0
  1213. package/node_modules/@sinclair/typebox/build/cjs/value/check/check.d.ts +11 -0
  1214. package/node_modules/@sinclair/typebox/build/cjs/value/check/check.js +476 -0
  1215. package/node_modules/@sinclair/typebox/build/cjs/value/check/index.d.ts +1 -0
  1216. package/node_modules/@sinclair/typebox/build/cjs/value/check/index.js +18 -0
  1217. package/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.d.ts +5 -0
  1218. package/node_modules/@sinclair/typebox/build/cjs/value/clean/clean.js +149 -0
  1219. package/node_modules/@sinclair/typebox/build/cjs/value/clean/index.d.ts +1 -0
  1220. package/node_modules/@sinclair/typebox/build/cjs/value/clean/index.js +18 -0
  1221. package/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.d.ts +2 -0
  1222. package/node_modules/@sinclair/typebox/build/cjs/value/clone/clone.js +60 -0
  1223. package/node_modules/@sinclair/typebox/build/cjs/value/clone/index.d.ts +1 -0
  1224. package/node_modules/@sinclair/typebox/build/cjs/value/clone/index.js +18 -0
  1225. package/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.d.ts +5 -0
  1226. package/node_modules/@sinclair/typebox/build/cjs/value/convert/convert.js +264 -0
  1227. package/node_modules/@sinclair/typebox/build/cjs/value/convert/index.d.ts +1 -0
  1228. package/node_modules/@sinclair/typebox/build/cjs/value/convert/index.js +18 -0
  1229. package/node_modules/@sinclair/typebox/build/cjs/value/create/create.d.ts +11 -0
  1230. package/node_modules/@sinclair/typebox/build/cjs/value/create/create.js +474 -0
  1231. package/node_modules/@sinclair/typebox/build/cjs/value/create/index.d.ts +1 -0
  1232. package/node_modules/@sinclair/typebox/build/cjs/value/create/index.js +18 -0
  1233. package/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.d.ts +6 -0
  1234. package/node_modules/@sinclair/typebox/build/cjs/value/decode/decode.js +14 -0
  1235. package/node_modules/@sinclair/typebox/build/cjs/value/decode/index.d.ts +1 -0
  1236. package/node_modules/@sinclair/typebox/build/cjs/value/decode/index.js +18 -0
  1237. package/node_modules/@sinclair/typebox/build/cjs/value/default/default.d.ts +5 -0
  1238. package/node_modules/@sinclair/typebox/build/cjs/value/default/default.js +176 -0
  1239. package/node_modules/@sinclair/typebox/build/cjs/value/default/index.d.ts +1 -0
  1240. package/node_modules/@sinclair/typebox/build/cjs/value/default/index.js +18 -0
  1241. package/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.d.ts +32 -0
  1242. package/node_modules/@sinclair/typebox/build/cjs/value/delta/delta.js +178 -0
  1243. package/node_modules/@sinclair/typebox/build/cjs/value/delta/index.d.ts +1 -0
  1244. package/node_modules/@sinclair/typebox/build/cjs/value/delta/index.js +18 -0
  1245. package/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.d.ts +12 -0
  1246. package/node_modules/@sinclair/typebox/build/cjs/value/deref/deref.js +36 -0
  1247. package/node_modules/@sinclair/typebox/build/cjs/value/deref/index.d.ts +1 -0
  1248. package/node_modules/@sinclair/typebox/build/cjs/value/deref/index.js +18 -0
  1249. package/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.d.ts +6 -0
  1250. package/node_modules/@sinclair/typebox/build/cjs/value/encode/encode.js +15 -0
  1251. package/node_modules/@sinclair/typebox/build/cjs/value/encode/index.d.ts +1 -0
  1252. package/node_modules/@sinclair/typebox/build/cjs/value/encode/index.js +18 -0
  1253. package/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.d.ts +2 -0
  1254. package/node_modules/@sinclair/typebox/build/cjs/value/equal/equal.js +50 -0
  1255. package/node_modules/@sinclair/typebox/build/cjs/value/equal/index.d.ts +1 -0
  1256. package/node_modules/@sinclair/typebox/build/cjs/value/equal/index.js +18 -0
  1257. package/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.d.ts +74 -0
  1258. package/node_modules/@sinclair/typebox/build/cjs/value/guard/guard.js +195 -0
  1259. package/node_modules/@sinclair/typebox/build/cjs/value/guard/index.d.ts +1 -0
  1260. package/node_modules/@sinclair/typebox/build/cjs/value/guard/index.js +18 -0
  1261. package/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.d.ts +7 -0
  1262. package/node_modules/@sinclair/typebox/build/cjs/value/hash/hash.js +152 -0
  1263. package/node_modules/@sinclair/typebox/build/cjs/value/hash/index.d.ts +1 -0
  1264. package/node_modules/@sinclair/typebox/build/cjs/value/hash/index.js +18 -0
  1265. package/node_modules/@sinclair/typebox/build/cjs/value/index.d.ts +20 -0
  1266. package/node_modules/@sinclair/typebox/build/cjs/value/index.js +53 -0
  1267. package/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.d.ts +1 -0
  1268. package/node_modules/@sinclair/typebox/build/cjs/value/mutate/index.js +18 -0
  1269. package/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.d.ts +9 -0
  1270. package/node_modules/@sinclair/typebox/build/cjs/value/mutate/mutate.js +104 -0
  1271. package/node_modules/@sinclair/typebox/build/cjs/value/parse/index.d.ts +1 -0
  1272. package/node_modules/@sinclair/typebox/build/cjs/value/parse/index.js +18 -0
  1273. package/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.d.ts +22 -0
  1274. package/node_modules/@sinclair/typebox/build/cjs/value/parse/parse.js +87 -0
  1275. package/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.d.ts +1 -0
  1276. package/node_modules/@sinclair/typebox/build/cjs/value/pointer/index.js +38 -0
  1277. package/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.d.ts +22 -0
  1278. package/node_modules/@sinclair/typebox/build/cjs/value/pointer/pointer.js +126 -0
  1279. package/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.d.ts +22 -0
  1280. package/node_modules/@sinclair/typebox/build/cjs/value/transform/decode.js +214 -0
  1281. package/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.d.ts +23 -0
  1282. package/node_modules/@sinclair/typebox/build/cjs/value/transform/encode.js +225 -0
  1283. package/node_modules/@sinclair/typebox/build/cjs/value/transform/has.d.ts +3 -0
  1284. package/node_modules/@sinclair/typebox/build/cjs/value/transform/has.js +133 -0
  1285. package/node_modules/@sinclair/typebox/build/cjs/value/transform/index.d.ts +3 -0
  1286. package/node_modules/@sinclair/typebox/build/cjs/value/transform/index.js +20 -0
  1287. package/node_modules/@sinclair/typebox/build/cjs/value/value/index.d.ts +1 -0
  1288. package/node_modules/@sinclair/typebox/build/cjs/value/value/index.js +38 -0
  1289. package/node_modules/@sinclair/typebox/build/cjs/value/value/value.d.ts +16 -0
  1290. package/node_modules/@sinclair/typebox/build/cjs/value/value/value.js +39 -0
  1291. package/node_modules/@sinclair/typebox/build/esm/compiler/compiler.d.mts +55 -0
  1292. package/node_modules/@sinclair/typebox/build/esm/compiler/compiler.mjs +663 -0
  1293. package/node_modules/@sinclair/typebox/build/esm/compiler/index.d.mts +2 -0
  1294. package/node_modules/@sinclair/typebox/build/esm/compiler/index.mjs +2 -0
  1295. package/node_modules/@sinclair/typebox/build/esm/errors/errors.d.mts +91 -0
  1296. package/node_modules/@sinclair/typebox/build/esm/errors/errors.mjs +592 -0
  1297. package/node_modules/@sinclair/typebox/build/esm/errors/function.d.mts +21 -0
  1298. package/node_modules/@sinclair/typebox/build/esm/errors/function.mjs +147 -0
  1299. package/node_modules/@sinclair/typebox/build/esm/errors/index.d.mts +2 -0
  1300. package/node_modules/@sinclair/typebox/build/esm/errors/index.mjs +2 -0
  1301. package/node_modules/@sinclair/typebox/build/esm/index.d.mts +71 -0
  1302. package/node_modules/@sinclair/typebox/build/esm/index.mjs +80 -0
  1303. package/node_modules/@sinclair/typebox/build/esm/parser/index.d.mts +2 -0
  1304. package/node_modules/@sinclair/typebox/build/esm/parser/index.mjs +2 -0
  1305. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.d.mts +23 -0
  1306. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/guard.mjs +72 -0
  1307. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.d.mts +5 -0
  1308. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/index.mjs +5 -0
  1309. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.d.mts +9 -0
  1310. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/module.mjs +17 -0
  1311. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.d.mts +9 -0
  1312. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/parse.mjs +123 -0
  1313. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.d.mts +8 -0
  1314. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/token.mjs +223 -0
  1315. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.d.mts +98 -0
  1316. package/node_modules/@sinclair/typebox/build/esm/parser/runtime/types.mjs +55 -0
  1317. package/node_modules/@sinclair/typebox/build/esm/parser/static/index.d.mts +3 -0
  1318. package/node_modules/@sinclair/typebox/build/esm/parser/static/index.mjs +3 -0
  1319. package/node_modules/@sinclair/typebox/build/esm/parser/static/parse.d.mts +20 -0
  1320. package/node_modules/@sinclair/typebox/build/esm/parser/static/parse.mjs +1 -0
  1321. package/node_modules/@sinclair/typebox/build/esm/parser/static/token.d.mts +108 -0
  1322. package/node_modules/@sinclair/typebox/build/esm/parser/static/token.mjs +1 -0
  1323. package/node_modules/@sinclair/typebox/build/esm/parser/static/types.d.mts +69 -0
  1324. package/node_modules/@sinclair/typebox/build/esm/parser/static/types.mjs +1 -0
  1325. package/node_modules/@sinclair/typebox/build/esm/syntax/index.d.mts +1 -0
  1326. package/node_modules/@sinclair/typebox/build/esm/syntax/index.mjs +1 -0
  1327. package/node_modules/@sinclair/typebox/build/esm/syntax/mapping.d.mts +167 -0
  1328. package/node_modules/@sinclair/typebox/build/esm/syntax/mapping.mjs +386 -0
  1329. package/node_modules/@sinclair/typebox/build/esm/syntax/parser.d.mts +162 -0
  1330. package/node_modules/@sinclair/typebox/build/esm/syntax/parser.mjs +78 -0
  1331. package/node_modules/@sinclair/typebox/build/esm/syntax/syntax.d.mts +12 -0
  1332. package/node_modules/@sinclair/typebox/build/esm/syntax/syntax.mjs +16 -0
  1333. package/node_modules/@sinclair/typebox/build/esm/system/index.d.mts +2 -0
  1334. package/node_modules/@sinclair/typebox/build/esm/system/index.mjs +2 -0
  1335. package/node_modules/@sinclair/typebox/build/esm/system/policy.d.mts +29 -0
  1336. package/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +54 -0
  1337. package/node_modules/@sinclair/typebox/build/esm/system/system.d.mts +16 -0
  1338. package/node_modules/@sinclair/typebox/build/esm/system/system.mjs +37 -0
  1339. package/node_modules/@sinclair/typebox/build/esm/type/any/any.d.mts +8 -0
  1340. package/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +6 -0
  1341. package/node_modules/@sinclair/typebox/build/esm/type/any/index.d.mts +1 -0
  1342. package/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +1 -0
  1343. package/node_modules/@sinclair/typebox/build/esm/type/argument/argument.d.mts +9 -0
  1344. package/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs +6 -0
  1345. package/node_modules/@sinclair/typebox/build/esm/type/argument/index.d.mts +1 -0
  1346. package/node_modules/@sinclair/typebox/build/esm/type/argument/index.mjs +1 -0
  1347. package/node_modules/@sinclair/typebox/build/esm/type/array/array.d.mts +28 -0
  1348. package/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +6 -0
  1349. package/node_modules/@sinclair/typebox/build/esm/type/array/index.d.mts +1 -0
  1350. package/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +1 -0
  1351. package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.d.mts +11 -0
  1352. package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +6 -0
  1353. package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.d.mts +1 -0
  1354. package/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +1 -0
  1355. package/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.d.mts +14 -0
  1356. package/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +37 -0
  1357. package/node_modules/@sinclair/typebox/build/esm/type/awaited/index.d.mts +1 -0
  1358. package/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +1 -0
  1359. package/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.d.mts +16 -0
  1360. package/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +6 -0
  1361. package/node_modules/@sinclair/typebox/build/esm/type/bigint/index.d.mts +1 -0
  1362. package/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +1 -0
  1363. package/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.d.mts +9 -0
  1364. package/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +6 -0
  1365. package/node_modules/@sinclair/typebox/build/esm/type/boolean/index.d.mts +1 -0
  1366. package/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +1 -0
  1367. package/node_modules/@sinclair/typebox/build/esm/type/clone/index.d.mts +2 -0
  1368. package/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +2 -0
  1369. package/node_modules/@sinclair/typebox/build/esm/type/clone/type.d.mts +5 -0
  1370. package/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +9 -0
  1371. package/node_modules/@sinclair/typebox/build/esm/type/clone/value.d.mts +2 -0
  1372. package/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +36 -0
  1373. package/node_modules/@sinclair/typebox/build/esm/type/composite/composite.d.mts +18 -0
  1374. package/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +42 -0
  1375. package/node_modules/@sinclair/typebox/build/esm/type/composite/index.d.mts +1 -0
  1376. package/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +1 -0
  1377. package/node_modules/@sinclair/typebox/build/esm/type/computed/computed.d.mts +9 -0
  1378. package/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +6 -0
  1379. package/node_modules/@sinclair/typebox/build/esm/type/computed/index.d.mts +1 -0
  1380. package/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +1 -0
  1381. package/node_modules/@sinclair/typebox/build/esm/type/const/const.d.mts +27 -0
  1382. package/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +54 -0
  1383. package/node_modules/@sinclair/typebox/build/esm/type/const/index.d.mts +1 -0
  1384. package/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +1 -0
  1385. package/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.d.mts +23 -0
  1386. package/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +6 -0
  1387. package/node_modules/@sinclair/typebox/build/esm/type/constructor/index.d.mts +1 -0
  1388. package/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +1 -0
  1389. package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.d.mts +7 -0
  1390. package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +7 -0
  1391. package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.d.mts +1 -0
  1392. package/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +1 -0
  1393. package/node_modules/@sinclair/typebox/build/esm/type/create/immutable.d.mts +2 -0
  1394. package/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +33 -0
  1395. package/node_modules/@sinclair/typebox/build/esm/type/create/index.d.mts +1 -0
  1396. package/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +1 -0
  1397. package/node_modules/@sinclair/typebox/build/esm/type/create/type.d.mts +3 -0
  1398. package/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +15 -0
  1399. package/node_modules/@sinclair/typebox/build/esm/type/date/date.d.mts +21 -0
  1400. package/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +6 -0
  1401. package/node_modules/@sinclair/typebox/build/esm/type/date/index.d.mts +1 -0
  1402. package/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +1 -0
  1403. package/node_modules/@sinclair/typebox/build/esm/type/discard/discard.d.mts +2 -0
  1404. package/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +8 -0
  1405. package/node_modules/@sinclair/typebox/build/esm/type/discard/index.d.mts +1 -0
  1406. package/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +1 -0
  1407. package/node_modules/@sinclair/typebox/build/esm/type/enum/enum.d.mts +14 -0
  1408. package/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +18 -0
  1409. package/node_modules/@sinclair/typebox/build/esm/type/enum/index.d.mts +1 -0
  1410. package/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +1 -0
  1411. package/node_modules/@sinclair/typebox/build/esm/type/error/error.d.mts +4 -0
  1412. package/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +6 -0
  1413. package/node_modules/@sinclair/typebox/build/esm/type/error/index.d.mts +1 -0
  1414. package/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +1 -0
  1415. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.d.mts +11 -0
  1416. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +18 -0
  1417. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.d.mts +5 -0
  1418. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +5 -0
  1419. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.d.mts +21 -0
  1420. package/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +25 -0
  1421. package/node_modules/@sinclair/typebox/build/esm/type/exclude/index.d.mts +3 -0
  1422. package/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +3 -0
  1423. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.d.mts +10 -0
  1424. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +635 -0
  1425. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.d.mts +14 -0
  1426. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +25 -0
  1427. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.d.mts +11 -0
  1428. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +19 -0
  1429. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.d.mts +3 -0
  1430. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +20 -0
  1431. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends.d.mts +16 -0
  1432. package/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +23 -0
  1433. package/node_modules/@sinclair/typebox/build/esm/type/extends/index.d.mts +5 -0
  1434. package/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +5 -0
  1435. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.d.mts +11 -0
  1436. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +18 -0
  1437. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.d.mts +5 -0
  1438. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +5 -0
  1439. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract.d.mts +21 -0
  1440. package/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +25 -0
  1441. package/node_modules/@sinclair/typebox/build/esm/type/extract/index.d.mts +3 -0
  1442. package/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +3 -0
  1443. package/node_modules/@sinclair/typebox/build/esm/type/function/function.d.mts +23 -0
  1444. package/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +6 -0
  1445. package/node_modules/@sinclair/typebox/build/esm/type/function/index.d.mts +1 -0
  1446. package/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +1 -0
  1447. package/node_modules/@sinclair/typebox/build/esm/type/guard/index.d.mts +3 -0
  1448. package/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +3 -0
  1449. package/node_modules/@sinclair/typebox/build/esm/type/guard/kind.d.mts +147 -0
  1450. package/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +235 -0
  1451. package/node_modules/@sinclair/typebox/build/esm/type/guard/type.d.mts +152 -0
  1452. package/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +509 -0
  1453. package/node_modules/@sinclair/typebox/build/esm/type/guard/value.d.mts +34 -0
  1454. package/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +70 -0
  1455. package/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.d.mts +42 -0
  1456. package/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +4 -0
  1457. package/node_modules/@sinclair/typebox/build/esm/type/helpers/index.d.mts +1 -0
  1458. package/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +1 -0
  1459. package/node_modules/@sinclair/typebox/build/esm/type/index.d.mts +71 -0
  1460. package/node_modules/@sinclair/typebox/build/esm/type/index.mjs +71 -0
  1461. package/node_modules/@sinclair/typebox/build/esm/type/indexed/index.d.mts +4 -0
  1462. package/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +4 -0
  1463. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.d.mts +13 -0
  1464. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +22 -0
  1465. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.d.mts +12 -0
  1466. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +20 -0
  1467. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.d.mts +14 -0
  1468. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +32 -0
  1469. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.d.mts +52 -0
  1470. package/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +91 -0
  1471. package/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.d.mts +1 -0
  1472. package/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +1 -0
  1473. package/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.d.mts +6 -0
  1474. package/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +7 -0
  1475. package/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.d.mts +1 -0
  1476. package/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.mjs +1 -0
  1477. package/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.d.mts +50 -0
  1478. package/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs +115 -0
  1479. package/node_modules/@sinclair/typebox/build/esm/type/integer/index.d.mts +1 -0
  1480. package/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +1 -0
  1481. package/node_modules/@sinclair/typebox/build/esm/type/integer/integer.d.mts +16 -0
  1482. package/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +6 -0
  1483. package/node_modules/@sinclair/typebox/build/esm/type/intersect/index.d.mts +3 -0
  1484. package/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +3 -0
  1485. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.d.mts +3 -0
  1486. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +19 -0
  1487. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.d.mts +13 -0
  1488. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +38 -0
  1489. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.d.mts +15 -0
  1490. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +1 -0
  1491. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.d.mts +6 -0
  1492. package/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +17 -0
  1493. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.d.mts +5 -0
  1494. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +5 -0
  1495. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.d.mts +6 -0
  1496. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +6 -0
  1497. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.d.mts +14 -0
  1498. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +26 -0
  1499. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.d.mts +16 -0
  1500. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +64 -0
  1501. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.d.mts +5 -0
  1502. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +5 -0
  1503. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.d.mts +5 -0
  1504. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +5 -0
  1505. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.d.mts +5 -0
  1506. package/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +5 -0
  1507. package/node_modules/@sinclair/typebox/build/esm/type/iterator/index.d.mts +1 -0
  1508. package/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +1 -0
  1509. package/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.d.mts +11 -0
  1510. package/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +6 -0
  1511. package/node_modules/@sinclair/typebox/build/esm/type/keyof/index.d.mts +4 -0
  1512. package/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +4 -0
  1513. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.d.mts +12 -0
  1514. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +19 -0
  1515. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.d.mts +7 -0
  1516. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +12 -0
  1517. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.d.mts +24 -0
  1518. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +73 -0
  1519. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.d.mts +21 -0
  1520. package/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +35 -0
  1521. package/node_modules/@sinclair/typebox/build/esm/type/literal/index.d.mts +1 -0
  1522. package/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +1 -0
  1523. package/node_modules/@sinclair/typebox/build/esm/type/literal/literal.d.mts +10 -0
  1524. package/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +10 -0
  1525. package/node_modules/@sinclair/typebox/build/esm/type/mapped/index.d.mts +3 -0
  1526. package/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +3 -0
  1527. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.d.mts +8 -0
  1528. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +9 -0
  1529. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.d.mts +9 -0
  1530. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +9 -0
  1531. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.d.mts +47 -0
  1532. package/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +102 -0
  1533. package/node_modules/@sinclair/typebox/build/esm/type/module/compute.d.mts +59 -0
  1534. package/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +166 -0
  1535. package/node_modules/@sinclair/typebox/build/esm/type/module/index.d.mts +1 -0
  1536. package/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +1 -0
  1537. package/node_modules/@sinclair/typebox/build/esm/type/module/infer.d.mts +49 -0
  1538. package/node_modules/@sinclair/typebox/build/esm/type/module/infer.mjs +1 -0
  1539. package/node_modules/@sinclair/typebox/build/esm/type/module/module.d.mts +27 -0
  1540. package/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +32 -0
  1541. package/node_modules/@sinclair/typebox/build/esm/type/never/index.d.mts +1 -0
  1542. package/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +1 -0
  1543. package/node_modules/@sinclair/typebox/build/esm/type/never/never.d.mts +9 -0
  1544. package/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +6 -0
  1545. package/node_modules/@sinclair/typebox/build/esm/type/not/index.d.mts +1 -0
  1546. package/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +1 -0
  1547. package/node_modules/@sinclair/typebox/build/esm/type/not/not.d.mts +10 -0
  1548. package/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +6 -0
  1549. package/node_modules/@sinclair/typebox/build/esm/type/null/index.d.mts +1 -0
  1550. package/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +1 -0
  1551. package/node_modules/@sinclair/typebox/build/esm/type/null/null.d.mts +9 -0
  1552. package/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +6 -0
  1553. package/node_modules/@sinclair/typebox/build/esm/type/number/index.d.mts +1 -0
  1554. package/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +1 -0
  1555. package/node_modules/@sinclair/typebox/build/esm/type/number/number.d.mts +16 -0
  1556. package/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +6 -0
  1557. package/node_modules/@sinclair/typebox/build/esm/type/object/index.d.mts +1 -0
  1558. package/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +1 -0
  1559. package/node_modules/@sinclair/typebox/build/esm/type/object/object.d.mts +51 -0
  1560. package/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +18 -0
  1561. package/node_modules/@sinclair/typebox/build/esm/type/omit/index.d.mts +3 -0
  1562. package/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +3 -0
  1563. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.d.mts +12 -0
  1564. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +22 -0
  1565. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.d.mts +12 -0
  1566. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +19 -0
  1567. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit.d.mts +36 -0
  1568. package/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +71 -0
  1569. package/node_modules/@sinclair/typebox/build/esm/type/optional/index.d.mts +2 -0
  1570. package/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +2 -0
  1571. package/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.d.mts +10 -0
  1572. package/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +18 -0
  1573. package/node_modules/@sinclair/typebox/build/esm/type/optional/optional.d.mts +20 -0
  1574. package/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +22 -0
  1575. package/node_modules/@sinclair/typebox/build/esm/type/parameters/index.d.mts +1 -0
  1576. package/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +1 -0
  1577. package/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.d.mts +7 -0
  1578. package/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +7 -0
  1579. package/node_modules/@sinclair/typebox/build/esm/type/partial/index.d.mts +2 -0
  1580. package/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +2 -0
  1581. package/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.d.mts +12 -0
  1582. package/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +19 -0
  1583. package/node_modules/@sinclair/typebox/build/esm/type/partial/partial.d.mts +35 -0
  1584. package/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +74 -0
  1585. package/node_modules/@sinclair/typebox/build/esm/type/patterns/index.d.mts +1 -0
  1586. package/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +1 -0
  1587. package/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.d.mts +8 -0
  1588. package/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +8 -0
  1589. package/node_modules/@sinclair/typebox/build/esm/type/pick/index.d.mts +3 -0
  1590. package/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +3 -0
  1591. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.d.mts +12 -0
  1592. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +24 -0
  1593. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.d.mts +12 -0
  1594. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +19 -0
  1595. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick.d.mts +36 -0
  1596. package/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +66 -0
  1597. package/node_modules/@sinclair/typebox/build/esm/type/promise/index.d.mts +1 -0
  1598. package/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +1 -0
  1599. package/node_modules/@sinclair/typebox/build/esm/type/promise/promise.d.mts +11 -0
  1600. package/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +6 -0
  1601. package/node_modules/@sinclair/typebox/build/esm/type/readonly/index.d.mts +2 -0
  1602. package/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +2 -0
  1603. package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.d.mts +10 -0
  1604. package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +18 -0
  1605. package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.d.mts +20 -0
  1606. package/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +22 -0
  1607. package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.d.mts +1 -0
  1608. package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +1 -0
  1609. package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.d.mts +6 -0
  1610. package/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +6 -0
  1611. package/node_modules/@sinclair/typebox/build/esm/type/record/index.d.mts +1 -0
  1612. package/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +1 -0
  1613. package/node_modules/@sinclair/typebox/build/esm/type/record/record.d.mts +71 -0
  1614. package/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +116 -0
  1615. package/node_modules/@sinclair/typebox/build/esm/type/recursive/index.d.mts +1 -0
  1616. package/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +1 -0
  1617. package/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.d.mts +16 -0
  1618. package/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +15 -0
  1619. package/node_modules/@sinclair/typebox/build/esm/type/ref/index.d.mts +1 -0
  1620. package/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +1 -0
  1621. package/node_modules/@sinclair/typebox/build/esm/type/ref/ref.d.mts +41 -0
  1622. package/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +10 -0
  1623. package/node_modules/@sinclair/typebox/build/esm/type/regexp/index.d.mts +1 -0
  1624. package/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +1 -0
  1625. package/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.d.mts +20 -0
  1626. package/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +8 -0
  1627. package/node_modules/@sinclair/typebox/build/esm/type/registry/format.d.mts +13 -0
  1628. package/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +26 -0
  1629. package/node_modules/@sinclair/typebox/build/esm/type/registry/index.d.mts +2 -0
  1630. package/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +2 -0
  1631. package/node_modules/@sinclair/typebox/build/esm/type/registry/type.d.mts +13 -0
  1632. package/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +26 -0
  1633. package/node_modules/@sinclair/typebox/build/esm/type/required/index.d.mts +2 -0
  1634. package/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +2 -0
  1635. package/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.d.mts +12 -0
  1636. package/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +18 -0
  1637. package/node_modules/@sinclair/typebox/build/esm/type/required/required.d.mts +35 -0
  1638. package/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +73 -0
  1639. package/node_modules/@sinclair/typebox/build/esm/type/rest/index.d.mts +1 -0
  1640. package/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +1 -0
  1641. package/node_modules/@sinclair/typebox/build/esm/type/rest/rest.d.mts +10 -0
  1642. package/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +15 -0
  1643. package/node_modules/@sinclair/typebox/build/esm/type/return-type/index.d.mts +1 -0
  1644. package/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +1 -0
  1645. package/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.d.mts +6 -0
  1646. package/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +7 -0
  1647. package/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.d.mts +33 -0
  1648. package/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +1 -0
  1649. package/node_modules/@sinclair/typebox/build/esm/type/schema/index.d.mts +2 -0
  1650. package/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +2 -0
  1651. package/node_modules/@sinclair/typebox/build/esm/type/schema/schema.d.mts +29 -0
  1652. package/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +1 -0
  1653. package/node_modules/@sinclair/typebox/build/esm/type/sets/index.d.mts +1 -0
  1654. package/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +1 -0
  1655. package/node_modules/@sinclair/typebox/build/esm/type/sets/set.d.mts +28 -0
  1656. package/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +48 -0
  1657. package/node_modules/@sinclair/typebox/build/esm/type/static/index.d.mts +1 -0
  1658. package/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +1 -0
  1659. package/node_modules/@sinclair/typebox/build/esm/type/static/static.d.mts +39 -0
  1660. package/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +1 -0
  1661. package/node_modules/@sinclair/typebox/build/esm/type/string/index.d.mts +1 -0
  1662. package/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +1 -0
  1663. package/node_modules/@sinclair/typebox/build/esm/type/string/string.d.mts +25 -0
  1664. package/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +6 -0
  1665. package/node_modules/@sinclair/typebox/build/esm/type/symbol/index.d.mts +1 -0
  1666. package/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +1 -0
  1667. package/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.d.mts +10 -0
  1668. package/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +6 -0
  1669. package/node_modules/@sinclair/typebox/build/esm/type/symbols/index.d.mts +1 -0
  1670. package/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +1 -0
  1671. package/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.d.mts +10 -0
  1672. package/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +10 -0
  1673. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.d.mts +19 -0
  1674. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +49 -0
  1675. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.d.mts +21 -0
  1676. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +53 -0
  1677. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.d.mts +7 -0
  1678. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +7 -0
  1679. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.d.mts +20 -0
  1680. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +167 -0
  1681. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.d.mts +5 -0
  1682. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +33 -0
  1683. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.d.mts +20 -0
  1684. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +55 -0
  1685. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.d.mts +30 -0
  1686. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +13 -0
  1687. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.d.mts +9 -0
  1688. package/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +9 -0
  1689. package/node_modules/@sinclair/typebox/build/esm/type/transform/index.d.mts +1 -0
  1690. package/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +1 -0
  1691. package/node_modules/@sinclair/typebox/build/esm/type/transform/transform.d.mts +30 -0
  1692. package/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +40 -0
  1693. package/node_modules/@sinclair/typebox/build/esm/type/tuple/index.d.mts +1 -0
  1694. package/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +1 -0
  1695. package/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.d.mts +16 -0
  1696. package/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +9 -0
  1697. package/node_modules/@sinclair/typebox/build/esm/type/type/index.d.mts +6 -0
  1698. package/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +13 -0
  1699. package/node_modules/@sinclair/typebox/build/esm/type/type/javascript.d.mts +64 -0
  1700. package/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +99 -0
  1701. package/node_modules/@sinclair/typebox/build/esm/type/type/json.d.mts +208 -0
  1702. package/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +221 -0
  1703. package/node_modules/@sinclair/typebox/build/esm/type/type/type.d.mts +59 -0
  1704. package/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +62 -0
  1705. package/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.d.mts +1 -0
  1706. package/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +1 -0
  1707. package/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.d.mts +13 -0
  1708. package/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +6 -0
  1709. package/node_modules/@sinclair/typebox/build/esm/type/undefined/index.d.mts +1 -0
  1710. package/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +1 -0
  1711. package/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.d.mts +9 -0
  1712. package/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +6 -0
  1713. package/node_modules/@sinclair/typebox/build/esm/type/union/index.d.mts +3 -0
  1714. package/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +3 -0
  1715. package/node_modules/@sinclair/typebox/build/esm/type/union/union-create.d.mts +3 -0
  1716. package/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +5 -0
  1717. package/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.d.mts +13 -0
  1718. package/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +36 -0
  1719. package/node_modules/@sinclair/typebox/build/esm/type/union/union-type.d.mts +12 -0
  1720. package/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +1 -0
  1721. package/node_modules/@sinclair/typebox/build/esm/type/union/union.d.mts +6 -0
  1722. package/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +10 -0
  1723. package/node_modules/@sinclair/typebox/build/esm/type/unknown/index.d.mts +1 -0
  1724. package/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +1 -0
  1725. package/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.d.mts +8 -0
  1726. package/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +6 -0
  1727. package/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.d.mts +1 -0
  1728. package/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +1 -0
  1729. package/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.d.mts +11 -0
  1730. package/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +6 -0
  1731. package/node_modules/@sinclair/typebox/build/esm/type/void/index.d.mts +1 -0
  1732. package/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +1 -0
  1733. package/node_modules/@sinclair/typebox/build/esm/type/void/void.d.mts +9 -0
  1734. package/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +6 -0
  1735. package/node_modules/@sinclair/typebox/build/esm/value/assert/assert.d.mts +15 -0
  1736. package/node_modules/@sinclair/typebox/build/esm/value/assert/assert.mjs +49 -0
  1737. package/node_modules/@sinclair/typebox/build/esm/value/assert/index.d.mts +1 -0
  1738. package/node_modules/@sinclair/typebox/build/esm/value/assert/index.mjs +1 -0
  1739. package/node_modules/@sinclair/typebox/build/esm/value/cast/cast.d.mts +11 -0
  1740. package/node_modules/@sinclair/typebox/build/esm/value/cast/cast.mjs +235 -0
  1741. package/node_modules/@sinclair/typebox/build/esm/value/cast/index.d.mts +1 -0
  1742. package/node_modules/@sinclair/typebox/build/esm/value/cast/index.mjs +1 -0
  1743. package/node_modules/@sinclair/typebox/build/esm/value/check/check.d.mts +11 -0
  1744. package/node_modules/@sinclair/typebox/build/esm/value/check/check.mjs +470 -0
  1745. package/node_modules/@sinclair/typebox/build/esm/value/check/index.d.mts +1 -0
  1746. package/node_modules/@sinclair/typebox/build/esm/value/check/index.mjs +1 -0
  1747. package/node_modules/@sinclair/typebox/build/esm/value/clean/clean.d.mts +5 -0
  1748. package/node_modules/@sinclair/typebox/build/esm/value/clean/clean.mjs +145 -0
  1749. package/node_modules/@sinclair/typebox/build/esm/value/clean/index.d.mts +1 -0
  1750. package/node_modules/@sinclair/typebox/build/esm/value/clean/index.mjs +1 -0
  1751. package/node_modules/@sinclair/typebox/build/esm/value/clone/clone.d.mts +2 -0
  1752. package/node_modules/@sinclair/typebox/build/esm/value/clone/clone.mjs +56 -0
  1753. package/node_modules/@sinclair/typebox/build/esm/value/clone/index.d.mts +1 -0
  1754. package/node_modules/@sinclair/typebox/build/esm/value/clone/index.mjs +1 -0
  1755. package/node_modules/@sinclair/typebox/build/esm/value/convert/convert.d.mts +5 -0
  1756. package/node_modules/@sinclair/typebox/build/esm/value/convert/convert.mjs +260 -0
  1757. package/node_modules/@sinclair/typebox/build/esm/value/convert/index.d.mts +1 -0
  1758. package/node_modules/@sinclair/typebox/build/esm/value/convert/index.mjs +1 -0
  1759. package/node_modules/@sinclair/typebox/build/esm/value/create/create.d.mts +11 -0
  1760. package/node_modules/@sinclair/typebox/build/esm/value/create/create.mjs +468 -0
  1761. package/node_modules/@sinclair/typebox/build/esm/value/create/index.d.mts +1 -0
  1762. package/node_modules/@sinclair/typebox/build/esm/value/create/index.mjs +1 -0
  1763. package/node_modules/@sinclair/typebox/build/esm/value/decode/decode.d.mts +6 -0
  1764. package/node_modules/@sinclair/typebox/build/esm/value/decode/decode.mjs +10 -0
  1765. package/node_modules/@sinclair/typebox/build/esm/value/decode/index.d.mts +1 -0
  1766. package/node_modules/@sinclair/typebox/build/esm/value/decode/index.mjs +1 -0
  1767. package/node_modules/@sinclair/typebox/build/esm/value/default/default.d.mts +5 -0
  1768. package/node_modules/@sinclair/typebox/build/esm/value/default/default.mjs +172 -0
  1769. package/node_modules/@sinclair/typebox/build/esm/value/default/index.d.mts +1 -0
  1770. package/node_modules/@sinclair/typebox/build/esm/value/default/index.mjs +1 -0
  1771. package/node_modules/@sinclair/typebox/build/esm/value/delta/delta.d.mts +32 -0
  1772. package/node_modules/@sinclair/typebox/build/esm/value/delta/delta.mjs +171 -0
  1773. package/node_modules/@sinclair/typebox/build/esm/value/delta/index.d.mts +1 -0
  1774. package/node_modules/@sinclair/typebox/build/esm/value/delta/index.mjs +1 -0
  1775. package/node_modules/@sinclair/typebox/build/esm/value/deref/deref.d.mts +12 -0
  1776. package/node_modules/@sinclair/typebox/build/esm/value/deref/deref.mjs +29 -0
  1777. package/node_modules/@sinclair/typebox/build/esm/value/deref/index.d.mts +1 -0
  1778. package/node_modules/@sinclair/typebox/build/esm/value/deref/index.mjs +1 -0
  1779. package/node_modules/@sinclair/typebox/build/esm/value/encode/encode.d.mts +6 -0
  1780. package/node_modules/@sinclair/typebox/build/esm/value/encode/encode.mjs +11 -0
  1781. package/node_modules/@sinclair/typebox/build/esm/value/encode/index.d.mts +1 -0
  1782. package/node_modules/@sinclair/typebox/build/esm/value/encode/index.mjs +1 -0
  1783. package/node_modules/@sinclair/typebox/build/esm/value/equal/equal.d.mts +2 -0
  1784. package/node_modules/@sinclair/typebox/build/esm/value/equal/equal.mjs +46 -0
  1785. package/node_modules/@sinclair/typebox/build/esm/value/equal/index.d.mts +1 -0
  1786. package/node_modules/@sinclair/typebox/build/esm/value/equal/index.mjs +1 -0
  1787. package/node_modules/@sinclair/typebox/build/esm/value/guard/guard.d.mts +74 -0
  1788. package/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +158 -0
  1789. package/node_modules/@sinclair/typebox/build/esm/value/guard/index.d.mts +1 -0
  1790. package/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +1 -0
  1791. package/node_modules/@sinclair/typebox/build/esm/value/hash/hash.d.mts +7 -0
  1792. package/node_modules/@sinclair/typebox/build/esm/value/hash/hash.mjs +146 -0
  1793. package/node_modules/@sinclair/typebox/build/esm/value/hash/index.d.mts +1 -0
  1794. package/node_modules/@sinclair/typebox/build/esm/value/hash/index.mjs +1 -0
  1795. package/node_modules/@sinclair/typebox/build/esm/value/index.d.mts +20 -0
  1796. package/node_modules/@sinclair/typebox/build/esm/value/index.mjs +32 -0
  1797. package/node_modules/@sinclair/typebox/build/esm/value/mutate/index.d.mts +1 -0
  1798. package/node_modules/@sinclair/typebox/build/esm/value/mutate/index.mjs +1 -0
  1799. package/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.d.mts +9 -0
  1800. package/node_modules/@sinclair/typebox/build/esm/value/mutate/mutate.mjs +98 -0
  1801. package/node_modules/@sinclair/typebox/build/esm/value/parse/index.d.mts +1 -0
  1802. package/node_modules/@sinclair/typebox/build/esm/value/parse/index.mjs +1 -0
  1803. package/node_modules/@sinclair/typebox/build/esm/value/parse/parse.d.mts +22 -0
  1804. package/node_modules/@sinclair/typebox/build/esm/value/parse/parse.mjs +81 -0
  1805. package/node_modules/@sinclair/typebox/build/esm/value/pointer/index.d.mts +1 -0
  1806. package/node_modules/@sinclair/typebox/build/esm/value/pointer/index.mjs +1 -0
  1807. package/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.d.mts +22 -0
  1808. package/node_modules/@sinclair/typebox/build/esm/value/pointer/pointer.mjs +115 -0
  1809. package/node_modules/@sinclair/typebox/build/esm/value/transform/decode.d.mts +22 -0
  1810. package/node_modules/@sinclair/typebox/build/esm/value/transform/decode.mjs +207 -0
  1811. package/node_modules/@sinclair/typebox/build/esm/value/transform/encode.d.mts +23 -0
  1812. package/node_modules/@sinclair/typebox/build/esm/value/transform/encode.mjs +218 -0
  1813. package/node_modules/@sinclair/typebox/build/esm/value/transform/has.d.mts +3 -0
  1814. package/node_modules/@sinclair/typebox/build/esm/value/transform/has.mjs +129 -0
  1815. package/node_modules/@sinclair/typebox/build/esm/value/transform/index.d.mts +3 -0
  1816. package/node_modules/@sinclair/typebox/build/esm/value/transform/index.mjs +3 -0
  1817. package/node_modules/@sinclair/typebox/build/esm/value/value/index.d.mts +1 -0
  1818. package/node_modules/@sinclair/typebox/build/esm/value/value/index.mjs +1 -0
  1819. package/node_modules/@sinclair/typebox/build/esm/value/value/value.d.mts +16 -0
  1820. package/node_modules/@sinclair/typebox/build/esm/value/value/value.mjs +16 -0
  1821. package/node_modules/@sinclair/typebox/compiler/package.json +4 -0
  1822. package/node_modules/@sinclair/typebox/errors/package.json +4 -0
  1823. package/node_modules/@sinclair/typebox/license +25 -0
  1824. package/node_modules/@sinclair/typebox/package.json +116 -0
  1825. package/node_modules/@sinclair/typebox/parser/package.json +4 -0
  1826. package/node_modules/@sinclair/typebox/readme.md +1865 -0
  1827. package/node_modules/@sinclair/typebox/syntax/package.json +4 -0
  1828. package/node_modules/@sinclair/typebox/system/package.json +4 -0
  1829. package/node_modules/@sinclair/typebox/type/package.json +4 -0
  1830. package/node_modules/@sinclair/typebox/value/package.json +4 -0
  1831. package/node_modules/@tutti/relay-client/dist/external-references.d.ts +11 -0
  1832. package/node_modules/@tutti/relay-client/dist/external-references.js +67 -0
  1833. package/node_modules/@tutti/relay-client/dist/host-control.d.ts +237 -0
  1834. package/node_modules/@tutti/relay-client/dist/host-control.js +503 -0
  1835. package/node_modules/@tutti/relay-client/dist/index.d.ts +5 -0
  1836. package/node_modules/@tutti/relay-client/dist/index.js +5 -0
  1837. package/node_modules/@tutti/relay-client/dist/project-authority.d.ts +93 -0
  1838. package/node_modules/@tutti/relay-client/dist/project-authority.js +170 -0
  1839. package/node_modules/@tutti/relay-client/dist/tunnel-frames.d.ts +8 -0
  1840. package/node_modules/@tutti/relay-client/dist/tunnel-frames.js +150 -0
  1841. package/node_modules/@tutti/relay-client/dist/tunnel-types.d.ts +72 -0
  1842. package/node_modules/@tutti/relay-client/dist/tunnel-types.js +2 -0
  1843. package/node_modules/@tutti/relay-client/dist/tunnel.d.ts +4 -0
  1844. package/node_modules/@tutti/relay-client/dist/tunnel.js +207 -0
  1845. package/node_modules/@tutti/relay-client/package.json +18 -0
  1846. package/node_modules/@tutti/shared/dist/domain/index.d.ts +68 -0
  1847. package/node_modules/@tutti/shared/dist/domain/index.js +51 -0
  1848. package/node_modules/@tutti/shared/dist/ids/index.d.ts +104 -0
  1849. package/node_modules/@tutti/shared/dist/ids/index.js +103 -0
  1850. package/node_modules/@tutti/shared/dist/index.d.ts +6 -0
  1851. package/node_modules/@tutti/shared/dist/index.js +6 -0
  1852. package/node_modules/@tutti/shared/dist/schemas/api/account-projects.d.ts +14 -0
  1853. package/node_modules/@tutti/shared/dist/schemas/api/account-projects.js +19 -0
  1854. package/node_modules/@tutti/shared/dist/schemas/api/approvals.d.ts +307 -0
  1855. package/node_modules/@tutti/shared/dist/schemas/api/approvals.js +110 -0
  1856. package/node_modules/@tutti/shared/dist/schemas/api/artifact-feedback.d.ts +374 -0
  1857. package/node_modules/@tutti/shared/dist/schemas/api/artifact-feedback.js +83 -0
  1858. package/node_modules/@tutti/shared/dist/schemas/api/artifacts.d.ts +112 -0
  1859. package/node_modules/@tutti/shared/dist/schemas/api/artifacts.js +87 -0
  1860. package/node_modules/@tutti/shared/dist/schemas/api/clarifications.d.ts +873 -0
  1861. package/node_modules/@tutti/shared/dist/schemas/api/clarifications.js +231 -0
  1862. package/node_modules/@tutti/shared/dist/schemas/api/desktop-entry-continuations.d.ts +75 -0
  1863. package/node_modules/@tutti/shared/dist/schemas/api/desktop-entry-continuations.js +59 -0
  1864. package/node_modules/@tutti/shared/dist/schemas/api/external-references.d.ts +67 -0
  1865. package/node_modules/@tutti/shared/dist/schemas/api/external-references.js +71 -0
  1866. package/node_modules/@tutti/shared/dist/schemas/api/feishu-connections.d.ts +36 -0
  1867. package/node_modules/@tutti/shared/dist/schemas/api/feishu-connections.js +39 -0
  1868. package/node_modules/@tutti/shared/dist/schemas/api/feishu-documents.d.ts +46 -0
  1869. package/node_modules/@tutti/shared/dist/schemas/api/feishu-documents.js +53 -0
  1870. package/node_modules/@tutti/shared/dist/schemas/api/index.d.ts +31 -0
  1871. package/node_modules/@tutti/shared/dist/schemas/api/index.js +27 -0
  1872. package/node_modules/@tutti/shared/dist/schemas/api/local-console-account-handoffs.d.ts +14 -0
  1873. package/node_modules/@tutti/shared/dist/schemas/api/local-console-account-handoffs.js +17 -0
  1874. package/node_modules/@tutti/shared/dist/schemas/api/managed-account.d.ts +34 -0
  1875. package/node_modules/@tutti/shared/dist/schemas/api/managed-account.js +40 -0
  1876. package/node_modules/@tutti/shared/dist/schemas/api/messages.d.ts +1164 -0
  1877. package/node_modules/@tutti/shared/dist/schemas/api/messages.js +220 -0
  1878. package/node_modules/@tutti/shared/dist/schemas/api/openapi.d.ts +32 -0
  1879. package/node_modules/@tutti/shared/dist/schemas/api/openapi.js +100 -0
  1880. package/node_modules/@tutti/shared/dist/schemas/api/operation-status.d.ts +174 -0
  1881. package/node_modules/@tutti/shared/dist/schemas/api/operation-status.js +75 -0
  1882. package/node_modules/@tutti/shared/dist/schemas/api/platform-sessions.d.ts +88 -0
  1883. package/node_modules/@tutti/shared/dist/schemas/api/platform-sessions.js +118 -0
  1884. package/node_modules/@tutti/shared/dist/schemas/api/primitives.d.ts +110 -0
  1885. package/node_modules/@tutti/shared/dist/schemas/api/primitives.js +177 -0
  1886. package/node_modules/@tutti/shared/dist/schemas/api/project-timeline.d.ts +450 -0
  1887. package/node_modules/@tutti/shared/dist/schemas/api/project-timeline.js +161 -0
  1888. package/node_modules/@tutti/shared/dist/schemas/api/provider-config.d.ts +60 -0
  1889. package/node_modules/@tutti/shared/dist/schemas/api/provider-config.js +95 -0
  1890. package/node_modules/@tutti/shared/dist/schemas/api/provider-usage.d.ts +87 -0
  1891. package/node_modules/@tutti/shared/dist/schemas/api/provider-usage.js +48 -0
  1892. package/node_modules/@tutti/shared/dist/schemas/api/read-state.d.ts +89 -0
  1893. package/node_modules/@tutti/shared/dist/schemas/api/read-state.js +39 -0
  1894. package/node_modules/@tutti/shared/dist/schemas/api/runtime-events.d.ts +566 -0
  1895. package/node_modules/@tutti/shared/dist/schemas/api/runtime-events.js +217 -0
  1896. package/node_modules/@tutti/shared/dist/schemas/api/skills.d.ts +88 -0
  1897. package/node_modules/@tutti/shared/dist/schemas/api/skills.js +71 -0
  1898. package/node_modules/@tutti/shared/dist/schemas/api/types.d.ts +288 -0
  1899. package/node_modules/@tutti/shared/dist/schemas/api/types.js +2 -0
  1900. package/node_modules/@tutti/shared/dist/schemas/api/uploads.d.ts +103 -0
  1901. package/node_modules/@tutti/shared/dist/schemas/api/uploads.js +78 -0
  1902. package/node_modules/@tutti/shared/dist/schemas/api/viewer-reference.d.ts +641 -0
  1903. package/node_modules/@tutti/shared/dist/schemas/api/viewer-reference.js +267 -0
  1904. package/node_modules/@tutti/shared/dist/schemas/api/work-items.d.ts +318 -0
  1905. package/node_modules/@tutti/shared/dist/schemas/api/work-items.js +224 -0
  1906. package/node_modules/@tutti/shared/dist/schemas/api/workspace-commands.d.ts +273 -0
  1907. package/node_modules/@tutti/shared/dist/schemas/api/workspace-commands.js +187 -0
  1908. package/node_modules/@tutti/shared/dist/schemas/domain/index.d.ts +39 -0
  1909. package/node_modules/@tutti/shared/dist/schemas/domain/index.js +60 -0
  1910. package/node_modules/@tutti/shared/dist/schemas/internal/creation-validation.d.ts +26 -0
  1911. package/node_modules/@tutti/shared/dist/schemas/internal/creation-validation.js +40 -0
  1912. package/node_modules/@tutti/shared/dist/schemas/internal/external-references.d.ts +148 -0
  1913. package/node_modules/@tutti/shared/dist/schemas/internal/external-references.js +89 -0
  1914. package/node_modules/@tutti/shared/dist/schemas/internal/feishu-connections.d.ts +26 -0
  1915. package/node_modules/@tutti/shared/dist/schemas/internal/feishu-connections.js +23 -0
  1916. package/node_modules/@tutti/shared/dist/schemas/internal/feishu-documents.d.ts +49 -0
  1917. package/node_modules/@tutti/shared/dist/schemas/internal/feishu-documents.js +36 -0
  1918. package/node_modules/@tutti/shared/dist/schemas/internal/feishu-user-credentials.d.ts +22 -0
  1919. package/node_modules/@tutti/shared/dist/schemas/internal/feishu-user-credentials.js +37 -0
  1920. package/node_modules/@tutti/shared/dist/schemas/internal/index.d.ts +86 -0
  1921. package/node_modules/@tutti/shared/dist/schemas/internal/index.js +80 -0
  1922. package/node_modules/@tutti/shared/dist/schemas/internal/managed-account.d.ts +12 -0
  1923. package/node_modules/@tutti/shared/dist/schemas/internal/managed-account.js +13 -0
  1924. package/node_modules/@tutti/shared/dist/schemas/internal/managed-models.d.ts +17 -0
  1925. package/node_modules/@tutti/shared/dist/schemas/internal/managed-models.js +17 -0
  1926. package/node_modules/@tutti/shared/dist/schemas/internal/managed-runtime.d.ts +113 -0
  1927. package/node_modules/@tutti/shared/dist/schemas/internal/managed-runtime.js +84 -0
  1928. package/node_modules/@tutti/shared/dist/schemas/internal/platform-clarification-content.d.ts +15 -0
  1929. package/node_modules/@tutti/shared/dist/schemas/internal/platform-clarification-content.js +24 -0
  1930. package/node_modules/@tutti/shared/dist/schemas/internal/platform-clarification.d.ts +354 -0
  1931. package/node_modules/@tutti/shared/dist/schemas/internal/platform-clarification.js +94 -0
  1932. package/node_modules/@tutti/shared/dist/schemas/internal/platform-integration.d.ts +2465 -0
  1933. package/node_modules/@tutti/shared/dist/schemas/internal/platform-integration.js +963 -0
  1934. package/node_modules/@tutti/shared/dist/schemas/internal/project-authority.d.ts +130 -0
  1935. package/node_modules/@tutti/shared/dist/schemas/internal/project-authority.js +106 -0
  1936. package/node_modules/@tutti/shared/dist/utils/clarification-participants.d.ts +4 -0
  1937. package/node_modules/@tutti/shared/dist/utils/clarification-participants.js +11 -0
  1938. package/node_modules/@tutti/shared/dist/utils/command-idempotency/index.d.ts +40 -0
  1939. package/node_modules/@tutti/shared/dist/utils/command-idempotency/index.js +100 -0
  1940. package/node_modules/@tutti/shared/dist/utils/feishu-diagnostics/index.d.ts +10 -0
  1941. package/node_modules/@tutti/shared/dist/utils/feishu-diagnostics/index.js +19 -0
  1942. package/node_modules/@tutti/shared/dist/utils/index.d.ts +7 -0
  1943. package/node_modules/@tutti/shared/dist/utils/index.js +7 -0
  1944. package/node_modules/@tutti/shared/dist/utils/logging/index.d.ts +34 -0
  1945. package/node_modules/@tutti/shared/dist/utils/logging/index.js +130 -0
  1946. package/node_modules/@tutti/shared/dist/utils/path-policy/index.d.ts +22 -0
  1947. package/node_modules/@tutti/shared/dist/utils/path-policy/index.js +92 -0
  1948. package/node_modules/@tutti/shared/dist/utils/redaction/index.d.ts +20 -0
  1949. package/node_modules/@tutti/shared/dist/utils/redaction/index.js +200 -0
  1950. package/node_modules/@tutti/shared/package.json +63 -0
  1951. package/node_modules/ulid/LICENSE +21 -0
  1952. package/node_modules/ulid/README.md +176 -0
  1953. package/node_modules/ulid/dist/browser/index.cjs +335 -0
  1954. package/node_modules/ulid/dist/browser/index.js +320 -0
  1955. package/node_modules/ulid/dist/cli.d.cts +2 -0
  1956. package/node_modules/ulid/dist/cli.d.ts +2 -0
  1957. package/node_modules/ulid/dist/cli.js +195 -0
  1958. package/node_modules/ulid/dist/constants.d.cts +10 -0
  1959. package/node_modules/ulid/dist/constants.d.ts +10 -0
  1960. package/node_modules/ulid/dist/crockford.d.cts +11 -0
  1961. package/node_modules/ulid/dist/crockford.d.ts +11 -0
  1962. package/node_modules/ulid/dist/error.d.cts +16 -0
  1963. package/node_modules/ulid/dist/error.d.ts +16 -0
  1964. package/node_modules/ulid/dist/index.d.cts +6 -0
  1965. package/node_modules/ulid/dist/index.d.ts +6 -0
  1966. package/node_modules/ulid/dist/node/index.cjs +339 -0
  1967. package/node_modules/ulid/dist/node/index.js +324 -0
  1968. package/node_modules/ulid/dist/stub.d.cts +1 -0
  1969. package/node_modules/ulid/dist/stub.d.ts +1 -0
  1970. package/node_modules/ulid/dist/types.d.cts +4 -0
  1971. package/node_modules/ulid/dist/types.d.ts +4 -0
  1972. package/node_modules/ulid/dist/ulid.d.cts +49 -0
  1973. package/node_modules/ulid/dist/ulid.d.ts +49 -0
  1974. package/node_modules/ulid/dist/utils.d.cts +3 -0
  1975. package/node_modules/ulid/dist/utils.d.ts +3 -0
  1976. package/node_modules/ulid/dist/uuid.d.cts +14 -0
  1977. package/node_modules/ulid/dist/uuid.d.ts +14 -0
  1978. package/node_modules/ulid/package.json +76 -0
  1979. package/node_modules/ws/LICENSE +20 -0
  1980. package/node_modules/ws/README.md +548 -0
  1981. package/node_modules/ws/browser.js +8 -0
  1982. package/node_modules/ws/index.js +22 -0
  1983. package/node_modules/ws/lib/buffer-util.js +131 -0
  1984. package/node_modules/ws/lib/constants.js +19 -0
  1985. package/node_modules/ws/lib/event-target.js +292 -0
  1986. package/node_modules/ws/lib/extension.js +203 -0
  1987. package/node_modules/ws/lib/limiter.js +55 -0
  1988. package/node_modules/ws/lib/permessage-deflate.js +528 -0
  1989. package/node_modules/ws/lib/receiver.js +760 -0
  1990. package/node_modules/ws/lib/sender.js +607 -0
  1991. package/node_modules/ws/lib/stream.js +161 -0
  1992. package/node_modules/ws/lib/subprotocol.js +62 -0
  1993. package/node_modules/ws/lib/validation.js +152 -0
  1994. package/node_modules/ws/lib/websocket-server.js +562 -0
  1995. package/node_modules/ws/lib/websocket.js +1407 -0
  1996. package/node_modules/ws/package.json +70 -0
  1997. package/node_modules/ws/wrapper.mjs +21 -0
  1998. package/package.json +53 -0
  1999. package/prompts/README.md +40 -0
  2000. package/prompts/artifacts/README.md +7 -0
  2001. package/prompts/artifacts/applicability.md +41 -0
  2002. package/prompts/chat-assistant.md +46 -0
  2003. package/prompts/codex/README.md +13 -0
  2004. package/prompts/codex/no-write-smoke.md +35 -0
  2005. package/prompts/communication-language-result.md +27 -0
  2006. package/prompts/communication-language.md +50 -0
  2007. package/prompts/procedures/README.md +38 -0
  2008. package/prompts/procedures/context-sync.md +66 -0
  2009. package/prompts/procedures/follow-up-check.md +85 -0
  2010. package/prompts/procedures/project-brief-refresh.md +79 -0
  2011. package/prompts/procedures/project-context-bootstrap.md +58 -0
  2012. package/prompts/procedures/reference-file-summary.md +49 -0
  2013. package/prompts/procedures/scratchpad-refresh.md +118 -0
  2014. package/prompts/procedures/task-compile.md +128 -0
  2015. package/prompts/prompt-flow-experiment-plan.md +203 -0
  2016. package/prompts/prompt-flow-map.md +504 -0
  2017. package/prompts/runs/README.md +16 -0
  2018. package/prompts/runs/task-execute.md +88 -0
  2019. package/prompts/runs/task-finalize.md +11 -0
  2020. package/prompts/runs/task-recovery.md +15 -0
  2021. package/prompts/runs/task-result-contract.md +64 -0
  2022. package/prompts/skills/README.md +25 -0
  2023. package/prompts/skills/read-main-chat/README.md +8 -0
  2024. package/prompts/skills/read-main-chat/SKILL.md +18 -0
  2025. package/prompts/skills/read-project-docs/README.md +13 -0
  2026. package/prompts/skills/read-project-docs/SKILL.md +42 -0
  2027. package/prompts/skills/read-references/README.md +9 -0
  2028. package/prompts/skills/read-references/SKILL.md +47 -0
  2029. package/prompts/skills/read-scratchpad/README.md +8 -0
  2030. package/prompts/skills/read-scratchpad/SKILL.md +16 -0
  2031. package/prompts/skills/read-user-skills/README.md +7 -0
  2032. package/prompts/skills/read-user-skills/SKILL.md +22 -0
  2033. package/prompts/skills/read-worklist/README.md +9 -0
  2034. package/prompts/skills/read-worklist/SKILL.md +20 -0
  2035. package/web/assets/Tenso-square-BjEwAR9f.png +0 -0
  2036. package/web/assets/Tenso-wtovJHhn.svg +7 -0
  2037. package/web/assets/avatar-avery-CkLXb185.svg +1 -0
  2038. package/web/assets/beethoven-symphony-5-opening-ypVy5SB4.svg +62 -0
  2039. package/web/assets/beethoven-symphony-7-allegretto-B3bc-cZD.svg +58 -0
  2040. package/web/assets/dvorak-symphony-9-largo-BEgNL3HB.svg +50 -0
  2041. package/web/assets/homepage-motion-scene-BoLRpnlt.js +1 -0
  2042. package/web/assets/index-Dcp5DfY6.css +1 -0
  2043. package/web/assets/index-DhHwz_BN.js +70 -0
  2044. package/web/assets/mozart-symphony-18-allegro-B5-MrLL1.svg +58 -0
  2045. package/web/assets/ode-to-joy-SNBUPr3-.svg +1 -0
  2046. package/web/assets/tutti_avatar-_0Yc-cMJ.png +0 -0
  2047. package/web/assets/vexflow-bravura-DEW_BI-z.js +1 -0
  2048. package/web/index.html +22 -0
@@ -0,0 +1,1407 @@
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.maxBufferedChunks=0] The maximum number of
205
+ * buffered data chunks
206
+ * @param {Number} [options.maxFragments=0] The maximum number of message
207
+ * fragments
208
+ * @param {Number} [options.maxPayload=0] The maximum allowed message size
209
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
210
+ * not to skip UTF-8 validation for text and close messages
211
+ * @private
212
+ */
213
+ setSocket(socket, head, options) {
214
+ const receiver = new Receiver({
215
+ allowSynchronousEvents: options.allowSynchronousEvents,
216
+ binaryType: this.binaryType,
217
+ extensions: this._extensions,
218
+ isServer: this._isServer,
219
+ maxBufferedChunks: options.maxBufferedChunks,
220
+ maxFragments: options.maxFragments,
221
+ maxPayload: options.maxPayload,
222
+ skipUTF8Validation: options.skipUTF8Validation
223
+ });
224
+
225
+ const sender = new Sender(socket, this._extensions, options.generateMask);
226
+
227
+ this._receiver = receiver;
228
+ this._sender = sender;
229
+ this._socket = socket;
230
+
231
+ receiver[kWebSocket] = this;
232
+ sender[kWebSocket] = this;
233
+ socket[kWebSocket] = this;
234
+
235
+ receiver.on('conclude', receiverOnConclude);
236
+ receiver.on('drain', receiverOnDrain);
237
+ receiver.on('error', receiverOnError);
238
+ receiver.on('message', receiverOnMessage);
239
+ receiver.on('ping', receiverOnPing);
240
+ receiver.on('pong', receiverOnPong);
241
+
242
+ sender.onerror = senderOnError;
243
+
244
+ //
245
+ // These methods may not be available if `socket` is just a `Duplex`.
246
+ //
247
+ if (socket.setTimeout) socket.setTimeout(0);
248
+ if (socket.setNoDelay) socket.setNoDelay();
249
+
250
+ if (head.length > 0) socket.unshift(head);
251
+
252
+ socket.on('close', socketOnClose);
253
+ socket.on('data', socketOnData);
254
+ socket.on('end', socketOnEnd);
255
+ socket.on('error', socketOnError);
256
+
257
+ this._readyState = WebSocket.OPEN;
258
+ this.emit('open');
259
+ }
260
+
261
+ /**
262
+ * Emit the `'close'` event.
263
+ *
264
+ * @private
265
+ */
266
+ emitClose() {
267
+ if (!this._socket) {
268
+ this._readyState = WebSocket.CLOSED;
269
+ this.emit('close', this._closeCode, this._closeMessage);
270
+ return;
271
+ }
272
+
273
+ if (this._extensions[PerMessageDeflate.extensionName]) {
274
+ this._extensions[PerMessageDeflate.extensionName].cleanup();
275
+ }
276
+
277
+ this._receiver.removeAllListeners();
278
+ this._readyState = WebSocket.CLOSED;
279
+ this.emit('close', this._closeCode, this._closeMessage);
280
+ }
281
+
282
+ /**
283
+ * Start a closing handshake.
284
+ *
285
+ * +----------+ +-----------+ +----------+
286
+ * - - -|ws.close()|-->|close frame|-->|ws.close()|- - -
287
+ * | +----------+ +-----------+ +----------+ |
288
+ * +----------+ +-----------+ |
289
+ * CLOSING |ws.close()|<--|close frame|<--+-----+ CLOSING
290
+ * +----------+ +-----------+ |
291
+ * | | | +---+ |
292
+ * +------------------------+-->|fin| - - - -
293
+ * | +---+ | +---+
294
+ * - - - - -|fin|<---------------------+
295
+ * +---+
296
+ *
297
+ * @param {Number} [code] Status code explaining why the connection is closing
298
+ * @param {(String|Buffer)} [data] The reason why the connection is
299
+ * closing
300
+ * @public
301
+ */
302
+ close(code, data) {
303
+ if (this.readyState === WebSocket.CLOSED) return;
304
+ if (this.readyState === WebSocket.CONNECTING) {
305
+ const msg = 'WebSocket was closed before the connection was established';
306
+ abortHandshake(this, this._req, msg);
307
+ return;
308
+ }
309
+
310
+ if (this.readyState === WebSocket.CLOSING) {
311
+ if (
312
+ this._closeFrameSent &&
313
+ (this._closeFrameReceived || this._receiver._writableState.errorEmitted)
314
+ ) {
315
+ this._socket.end();
316
+ }
317
+
318
+ return;
319
+ }
320
+
321
+ this._readyState = WebSocket.CLOSING;
322
+ this._sender.close(code, data, !this._isServer, (err) => {
323
+ //
324
+ // This error is handled by the `'error'` listener on the socket. We only
325
+ // want to know if the close frame has been sent here.
326
+ //
327
+ if (err) return;
328
+
329
+ this._closeFrameSent = true;
330
+
331
+ if (
332
+ this._closeFrameReceived ||
333
+ this._receiver._writableState.errorEmitted
334
+ ) {
335
+ this._socket.end();
336
+ }
337
+ });
338
+
339
+ setCloseTimer(this);
340
+ }
341
+
342
+ /**
343
+ * Pause the socket.
344
+ *
345
+ * @public
346
+ */
347
+ pause() {
348
+ if (
349
+ this.readyState === WebSocket.CONNECTING ||
350
+ this.readyState === WebSocket.CLOSED
351
+ ) {
352
+ return;
353
+ }
354
+
355
+ this._paused = true;
356
+ this._socket.pause();
357
+ }
358
+
359
+ /**
360
+ * Send a ping.
361
+ *
362
+ * @param {*} [data] The data to send
363
+ * @param {Boolean} [mask] Indicates whether or not to mask `data`
364
+ * @param {Function} [cb] Callback which is executed when the ping is sent
365
+ * @public
366
+ */
367
+ ping(data, mask, cb) {
368
+ if (this.readyState === WebSocket.CONNECTING) {
369
+ throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
370
+ }
371
+
372
+ if (typeof data === 'function') {
373
+ cb = data;
374
+ data = mask = undefined;
375
+ } else if (typeof mask === 'function') {
376
+ cb = mask;
377
+ mask = undefined;
378
+ }
379
+
380
+ if (typeof data === 'number') data = data.toString();
381
+
382
+ if (this.readyState !== WebSocket.OPEN) {
383
+ sendAfterClose(this, data, cb);
384
+ return;
385
+ }
386
+
387
+ if (mask === undefined) mask = !this._isServer;
388
+ this._sender.ping(data || EMPTY_BUFFER, mask, cb);
389
+ }
390
+
391
+ /**
392
+ * Send a pong.
393
+ *
394
+ * @param {*} [data] The data to send
395
+ * @param {Boolean} [mask] Indicates whether or not to mask `data`
396
+ * @param {Function} [cb] Callback which is executed when the pong is sent
397
+ * @public
398
+ */
399
+ pong(data, mask, cb) {
400
+ if (this.readyState === WebSocket.CONNECTING) {
401
+ throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
402
+ }
403
+
404
+ if (typeof data === 'function') {
405
+ cb = data;
406
+ data = mask = undefined;
407
+ } else if (typeof mask === 'function') {
408
+ cb = mask;
409
+ mask = undefined;
410
+ }
411
+
412
+ if (typeof data === 'number') data = data.toString();
413
+
414
+ if (this.readyState !== WebSocket.OPEN) {
415
+ sendAfterClose(this, data, cb);
416
+ return;
417
+ }
418
+
419
+ if (mask === undefined) mask = !this._isServer;
420
+ this._sender.pong(data || EMPTY_BUFFER, mask, cb);
421
+ }
422
+
423
+ /**
424
+ * Resume the socket.
425
+ *
426
+ * @public
427
+ */
428
+ resume() {
429
+ if (
430
+ this.readyState === WebSocket.CONNECTING ||
431
+ this.readyState === WebSocket.CLOSED
432
+ ) {
433
+ return;
434
+ }
435
+
436
+ this._paused = false;
437
+ if (!this._receiver._writableState.needDrain) this._socket.resume();
438
+ }
439
+
440
+ /**
441
+ * Send a data message.
442
+ *
443
+ * @param {*} data The message to send
444
+ * @param {Object} [options] Options object
445
+ * @param {Boolean} [options.binary] Specifies whether `data` is binary or
446
+ * text
447
+ * @param {Boolean} [options.compress] Specifies whether or not to compress
448
+ * `data`
449
+ * @param {Boolean} [options.fin=true] Specifies whether the fragment is the
450
+ * last one
451
+ * @param {Boolean} [options.mask] Specifies whether or not to mask `data`
452
+ * @param {Function} [cb] Callback which is executed when data is written out
453
+ * @public
454
+ */
455
+ send(data, options, cb) {
456
+ if (this.readyState === WebSocket.CONNECTING) {
457
+ throw new Error('WebSocket is not open: readyState 0 (CONNECTING)');
458
+ }
459
+
460
+ if (typeof options === 'function') {
461
+ cb = options;
462
+ options = {};
463
+ }
464
+
465
+ if (typeof data === 'number') data = data.toString();
466
+
467
+ if (this.readyState !== WebSocket.OPEN) {
468
+ sendAfterClose(this, data, cb);
469
+ return;
470
+ }
471
+
472
+ const opts = {
473
+ binary: typeof data !== 'string',
474
+ mask: !this._isServer,
475
+ compress: true,
476
+ fin: true,
477
+ ...options
478
+ };
479
+
480
+ if (!this._extensions[PerMessageDeflate.extensionName]) {
481
+ opts.compress = false;
482
+ }
483
+
484
+ this._sender.send(data || EMPTY_BUFFER, opts, cb);
485
+ }
486
+
487
+ /**
488
+ * Forcibly close the connection.
489
+ *
490
+ * @public
491
+ */
492
+ terminate() {
493
+ if (this.readyState === WebSocket.CLOSED) return;
494
+ if (this.readyState === WebSocket.CONNECTING) {
495
+ const msg = 'WebSocket was closed before the connection was established';
496
+ abortHandshake(this, this._req, msg);
497
+ return;
498
+ }
499
+
500
+ if (this._socket) {
501
+ this._readyState = WebSocket.CLOSING;
502
+ this._socket.destroy();
503
+ }
504
+ }
505
+ }
506
+
507
+ /**
508
+ * @constant {Number} CONNECTING
509
+ * @memberof WebSocket
510
+ */
511
+ Object.defineProperty(WebSocket, 'CONNECTING', {
512
+ enumerable: true,
513
+ value: readyStates.indexOf('CONNECTING')
514
+ });
515
+
516
+ /**
517
+ * @constant {Number} CONNECTING
518
+ * @memberof WebSocket.prototype
519
+ */
520
+ Object.defineProperty(WebSocket.prototype, 'CONNECTING', {
521
+ enumerable: true,
522
+ value: readyStates.indexOf('CONNECTING')
523
+ });
524
+
525
+ /**
526
+ * @constant {Number} OPEN
527
+ * @memberof WebSocket
528
+ */
529
+ Object.defineProperty(WebSocket, 'OPEN', {
530
+ enumerable: true,
531
+ value: readyStates.indexOf('OPEN')
532
+ });
533
+
534
+ /**
535
+ * @constant {Number} OPEN
536
+ * @memberof WebSocket.prototype
537
+ */
538
+ Object.defineProperty(WebSocket.prototype, 'OPEN', {
539
+ enumerable: true,
540
+ value: readyStates.indexOf('OPEN')
541
+ });
542
+
543
+ /**
544
+ * @constant {Number} CLOSING
545
+ * @memberof WebSocket
546
+ */
547
+ Object.defineProperty(WebSocket, 'CLOSING', {
548
+ enumerable: true,
549
+ value: readyStates.indexOf('CLOSING')
550
+ });
551
+
552
+ /**
553
+ * @constant {Number} CLOSING
554
+ * @memberof WebSocket.prototype
555
+ */
556
+ Object.defineProperty(WebSocket.prototype, 'CLOSING', {
557
+ enumerable: true,
558
+ value: readyStates.indexOf('CLOSING')
559
+ });
560
+
561
+ /**
562
+ * @constant {Number} CLOSED
563
+ * @memberof WebSocket
564
+ */
565
+ Object.defineProperty(WebSocket, 'CLOSED', {
566
+ enumerable: true,
567
+ value: readyStates.indexOf('CLOSED')
568
+ });
569
+
570
+ /**
571
+ * @constant {Number} CLOSED
572
+ * @memberof WebSocket.prototype
573
+ */
574
+ Object.defineProperty(WebSocket.prototype, 'CLOSED', {
575
+ enumerable: true,
576
+ value: readyStates.indexOf('CLOSED')
577
+ });
578
+
579
+ [
580
+ 'binaryType',
581
+ 'bufferedAmount',
582
+ 'extensions',
583
+ 'isPaused',
584
+ 'protocol',
585
+ 'readyState',
586
+ 'url'
587
+ ].forEach((property) => {
588
+ Object.defineProperty(WebSocket.prototype, property, { enumerable: true });
589
+ });
590
+
591
+ //
592
+ // Add the `onopen`, `onerror`, `onclose`, and `onmessage` attributes.
593
+ // See https://html.spec.whatwg.org/multipage/comms.html#the-websocket-interface
594
+ //
595
+ ['open', 'error', 'close', 'message'].forEach((method) => {
596
+ Object.defineProperty(WebSocket.prototype, `on${method}`, {
597
+ enumerable: true,
598
+ get() {
599
+ for (const listener of this.listeners(method)) {
600
+ if (listener[kForOnEventAttribute]) return listener[kListener];
601
+ }
602
+
603
+ return null;
604
+ },
605
+ set(handler) {
606
+ for (const listener of this.listeners(method)) {
607
+ if (listener[kForOnEventAttribute]) {
608
+ this.removeListener(method, listener);
609
+ break;
610
+ }
611
+ }
612
+
613
+ if (typeof handler !== 'function') return;
614
+
615
+ this.addEventListener(method, handler, {
616
+ [kForOnEventAttribute]: true
617
+ });
618
+ }
619
+ });
620
+ });
621
+
622
+ WebSocket.prototype.addEventListener = addEventListener;
623
+ WebSocket.prototype.removeEventListener = removeEventListener;
624
+
625
+ module.exports = WebSocket;
626
+
627
+ /**
628
+ * Initialize a WebSocket client.
629
+ *
630
+ * @param {WebSocket} websocket The client to initialize
631
+ * @param {(String|URL)} address The URL to which to connect
632
+ * @param {Array} protocols The subprotocols
633
+ * @param {Object} [options] Connection options
634
+ * @param {Boolean} [options.allowSynchronousEvents=true] Specifies whether any
635
+ * of the `'message'`, `'ping'`, and `'pong'` events can be emitted multiple
636
+ * times in the same tick
637
+ * @param {Boolean} [options.autoPong=true] Specifies whether or not to
638
+ * automatically send a pong in response to a ping
639
+ * @param {Number} [options.closeTimeout=30000] Duration in milliseconds to wait
640
+ * for the closing handshake to finish after `websocket.close()` is called
641
+ * @param {Function} [options.finishRequest] A function which can be used to
642
+ * customize the headers of each http request before it is sent
643
+ * @param {Boolean} [options.followRedirects=false] Whether or not to follow
644
+ * redirects
645
+ * @param {Function} [options.generateMask] The function used to generate the
646
+ * masking key
647
+ * @param {Number} [options.handshakeTimeout] Timeout in milliseconds for the
648
+ * handshake request
649
+ * @param {Number} [options.maxBufferedChunks=1048576] The maximum number of
650
+ * buffered data chunks
651
+ * @param {Number} [options.maxFragments=131072] The maximum number of message
652
+ * fragments
653
+ * @param {Number} [options.maxPayload=104857600] The maximum allowed message
654
+ * size
655
+ * @param {Number} [options.maxRedirects=10] The maximum number of redirects
656
+ * allowed
657
+ * @param {String} [options.origin] Value of the `Origin` or
658
+ * `Sec-WebSocket-Origin` header
659
+ * @param {(Boolean|Object)} [options.perMessageDeflate=true] Enable/disable
660
+ * permessage-deflate
661
+ * @param {Number} [options.protocolVersion=13] Value of the
662
+ * `Sec-WebSocket-Version` header
663
+ * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
664
+ * not to skip UTF-8 validation for text and close messages
665
+ * @private
666
+ */
667
+ function initAsClient(websocket, address, protocols, options) {
668
+ const opts = {
669
+ allowSynchronousEvents: true,
670
+ autoPong: true,
671
+ closeTimeout: CLOSE_TIMEOUT,
672
+ protocolVersion: protocolVersions[1],
673
+ maxBufferedChunks: 1024 * 1024,
674
+ maxFragments: 128 * 1024,
675
+ maxPayload: 100 * 1024 * 1024,
676
+ skipUTF8Validation: false,
677
+ perMessageDeflate: true,
678
+ followRedirects: false,
679
+ maxRedirects: 10,
680
+ ...options,
681
+ socketPath: undefined,
682
+ hostname: undefined,
683
+ protocol: undefined,
684
+ timeout: undefined,
685
+ method: 'GET',
686
+ host: undefined,
687
+ path: undefined,
688
+ port: undefined
689
+ };
690
+
691
+ websocket._autoPong = opts.autoPong;
692
+ websocket._closeTimeout = opts.closeTimeout;
693
+
694
+ if (!protocolVersions.includes(opts.protocolVersion)) {
695
+ throw new RangeError(
696
+ `Unsupported protocol version: ${opts.protocolVersion} ` +
697
+ `(supported versions: ${protocolVersions.join(', ')})`
698
+ );
699
+ }
700
+
701
+ let parsedUrl;
702
+
703
+ if (address instanceof URL) {
704
+ parsedUrl = address;
705
+ } else {
706
+ try {
707
+ parsedUrl = new URL(address);
708
+ } catch {
709
+ throw new SyntaxError(`Invalid URL: ${address}`);
710
+ }
711
+ }
712
+
713
+ if (parsedUrl.protocol === 'http:') {
714
+ parsedUrl.protocol = 'ws:';
715
+ } else if (parsedUrl.protocol === 'https:') {
716
+ parsedUrl.protocol = 'wss:';
717
+ }
718
+
719
+ websocket._url = parsedUrl.href;
720
+
721
+ const isSecure = parsedUrl.protocol === 'wss:';
722
+ const isIpcUrl = parsedUrl.protocol === 'ws+unix:';
723
+ let invalidUrlMessage;
724
+
725
+ if (parsedUrl.protocol !== 'ws:' && !isSecure && !isIpcUrl) {
726
+ invalidUrlMessage =
727
+ 'The URL\'s protocol must be one of "ws:", "wss:", ' +
728
+ '"http:", "https:", or "ws+unix:"';
729
+ } else if (isIpcUrl && !parsedUrl.pathname) {
730
+ invalidUrlMessage = "The URL's pathname is empty";
731
+ } else if (parsedUrl.hash) {
732
+ invalidUrlMessage = 'The URL contains a fragment identifier';
733
+ }
734
+
735
+ if (invalidUrlMessage) {
736
+ const err = new SyntaxError(invalidUrlMessage);
737
+
738
+ if (websocket._redirects === 0) {
739
+ throw err;
740
+ } else {
741
+ emitErrorAndClose(websocket, err);
742
+ return;
743
+ }
744
+ }
745
+
746
+ const defaultPort = isSecure ? 443 : 80;
747
+ const key = randomBytes(16).toString('base64');
748
+ const request = isSecure ? https.request : http.request;
749
+ const protocolSet = new Set();
750
+ let perMessageDeflate;
751
+
752
+ opts.createConnection =
753
+ opts.createConnection || (isSecure ? tlsConnect : netConnect);
754
+ opts.defaultPort = opts.defaultPort || defaultPort;
755
+ opts.port = parsedUrl.port || defaultPort;
756
+ opts.host = parsedUrl.hostname.startsWith('[')
757
+ ? parsedUrl.hostname.slice(1, -1)
758
+ : parsedUrl.hostname;
759
+ opts.headers = {
760
+ ...opts.headers,
761
+ 'Sec-WebSocket-Version': opts.protocolVersion,
762
+ 'Sec-WebSocket-Key': key,
763
+ Connection: 'Upgrade',
764
+ Upgrade: 'websocket'
765
+ };
766
+ opts.path = parsedUrl.pathname + parsedUrl.search;
767
+ opts.timeout = opts.handshakeTimeout;
768
+
769
+ if (opts.perMessageDeflate) {
770
+ perMessageDeflate = new PerMessageDeflate({
771
+ ...opts.perMessageDeflate,
772
+ isServer: false,
773
+ maxPayload: opts.maxPayload
774
+ });
775
+ opts.headers['Sec-WebSocket-Extensions'] = format({
776
+ [PerMessageDeflate.extensionName]: perMessageDeflate.offer()
777
+ });
778
+ }
779
+ if (protocols.length) {
780
+ for (const protocol of protocols) {
781
+ if (
782
+ typeof protocol !== 'string' ||
783
+ !subprotocolRegex.test(protocol) ||
784
+ protocolSet.has(protocol)
785
+ ) {
786
+ throw new SyntaxError(
787
+ 'An invalid or duplicated subprotocol was specified'
788
+ );
789
+ }
790
+
791
+ protocolSet.add(protocol);
792
+ }
793
+
794
+ opts.headers['Sec-WebSocket-Protocol'] = protocols.join(',');
795
+ }
796
+ if (opts.origin) {
797
+ if (opts.protocolVersion < 13) {
798
+ opts.headers['Sec-WebSocket-Origin'] = opts.origin;
799
+ } else {
800
+ opts.headers.Origin = opts.origin;
801
+ }
802
+ }
803
+ if (parsedUrl.username || parsedUrl.password) {
804
+ opts.auth = `${parsedUrl.username}:${parsedUrl.password}`;
805
+ }
806
+
807
+ if (isIpcUrl) {
808
+ const parts = opts.path.split(':');
809
+
810
+ opts.socketPath = parts[0];
811
+ opts.path = parts[1];
812
+ }
813
+
814
+ let req;
815
+
816
+ if (opts.followRedirects) {
817
+ if (websocket._redirects === 0) {
818
+ websocket._originalIpc = isIpcUrl;
819
+ websocket._originalSecure = isSecure;
820
+ websocket._originalHostOrSocketPath = isIpcUrl
821
+ ? opts.socketPath
822
+ : parsedUrl.host;
823
+
824
+ const headers = options && options.headers;
825
+
826
+ //
827
+ // Shallow copy the user provided options so that headers can be changed
828
+ // without mutating the original object.
829
+ //
830
+ options = { ...options, headers: {} };
831
+
832
+ if (headers) {
833
+ for (const [key, value] of Object.entries(headers)) {
834
+ options.headers[key.toLowerCase()] = value;
835
+ }
836
+ }
837
+ } else if (websocket.listenerCount('redirect') === 0) {
838
+ const isSameHost = isIpcUrl
839
+ ? websocket._originalIpc
840
+ ? opts.socketPath === websocket._originalHostOrSocketPath
841
+ : false
842
+ : websocket._originalIpc
843
+ ? false
844
+ : parsedUrl.host === websocket._originalHostOrSocketPath;
845
+
846
+ if (!isSameHost || (websocket._originalSecure && !isSecure)) {
847
+ //
848
+ // Match curl 7.77.0 behavior and drop the following headers. These
849
+ // headers are also dropped when following a redirect to a subdomain.
850
+ //
851
+ delete opts.headers.authorization;
852
+ delete opts.headers.cookie;
853
+
854
+ if (!isSameHost) delete opts.headers.host;
855
+
856
+ opts.auth = undefined;
857
+ }
858
+ }
859
+
860
+ //
861
+ // Match curl 7.77.0 behavior and make the first `Authorization` header win.
862
+ // If the `Authorization` header is set, then there is nothing to do as it
863
+ // will take precedence.
864
+ //
865
+ if (opts.auth && !options.headers.authorization) {
866
+ options.headers.authorization =
867
+ 'Basic ' + Buffer.from(opts.auth).toString('base64');
868
+ }
869
+
870
+ req = websocket._req = request(opts);
871
+
872
+ if (websocket._redirects) {
873
+ //
874
+ // Unlike what is done for the `'upgrade'` event, no early exit is
875
+ // triggered here if the user calls `websocket.close()` or
876
+ // `websocket.terminate()` from a listener of the `'redirect'` event. This
877
+ // is because the user can also call `request.destroy()` with an error
878
+ // before calling `websocket.close()` or `websocket.terminate()` and this
879
+ // would result in an error being emitted on the `request` object with no
880
+ // `'error'` event listeners attached.
881
+ //
882
+ websocket.emit('redirect', websocket.url, req);
883
+ }
884
+ } else {
885
+ req = websocket._req = request(opts);
886
+ }
887
+
888
+ if (opts.timeout) {
889
+ req.on('timeout', () => {
890
+ abortHandshake(websocket, req, 'Opening handshake has timed out');
891
+ });
892
+ }
893
+
894
+ req.on('error', (err) => {
895
+ if (req === null || req[kAborted]) return;
896
+
897
+ req = websocket._req = null;
898
+ emitErrorAndClose(websocket, err);
899
+ });
900
+
901
+ req.on('response', (res) => {
902
+ const location = res.headers.location;
903
+ const statusCode = res.statusCode;
904
+
905
+ if (
906
+ location &&
907
+ opts.followRedirects &&
908
+ statusCode >= 300 &&
909
+ statusCode < 400
910
+ ) {
911
+ if (++websocket._redirects > opts.maxRedirects) {
912
+ abortHandshake(websocket, req, 'Maximum redirects exceeded');
913
+ return;
914
+ }
915
+
916
+ req.abort();
917
+
918
+ let addr;
919
+
920
+ try {
921
+ addr = new URL(location, address);
922
+ } catch (e) {
923
+ const err = new SyntaxError(`Invalid URL: ${location}`);
924
+ emitErrorAndClose(websocket, err);
925
+ return;
926
+ }
927
+
928
+ initAsClient(websocket, addr, protocols, options);
929
+ } else if (!websocket.emit('unexpected-response', req, res)) {
930
+ abortHandshake(
931
+ websocket,
932
+ req,
933
+ `Unexpected server response: ${res.statusCode}`
934
+ );
935
+ }
936
+ });
937
+
938
+ req.on('upgrade', (res, socket, head) => {
939
+ websocket.emit('upgrade', res);
940
+
941
+ //
942
+ // The user may have closed the connection from a listener of the
943
+ // `'upgrade'` event.
944
+ //
945
+ if (websocket.readyState !== WebSocket.CONNECTING) return;
946
+
947
+ req = websocket._req = null;
948
+
949
+ const upgrade = res.headers.upgrade;
950
+
951
+ if (upgrade === undefined || upgrade.toLowerCase() !== 'websocket') {
952
+ abortHandshake(websocket, socket, 'Invalid Upgrade header');
953
+ return;
954
+ }
955
+
956
+ const digest = createHash('sha1')
957
+ .update(key + GUID)
958
+ .digest('base64');
959
+
960
+ if (res.headers['sec-websocket-accept'] !== digest) {
961
+ abortHandshake(websocket, socket, 'Invalid Sec-WebSocket-Accept header');
962
+ return;
963
+ }
964
+
965
+ const serverProt = res.headers['sec-websocket-protocol'];
966
+ let protError;
967
+
968
+ if (serverProt !== undefined) {
969
+ if (!protocolSet.size) {
970
+ protError = 'Server sent a subprotocol but none was requested';
971
+ } else if (!protocolSet.has(serverProt)) {
972
+ protError = 'Server sent an invalid subprotocol';
973
+ }
974
+ } else if (protocolSet.size) {
975
+ protError = 'Server sent no subprotocol';
976
+ }
977
+
978
+ if (protError) {
979
+ abortHandshake(websocket, socket, protError);
980
+ return;
981
+ }
982
+
983
+ if (serverProt) websocket._protocol = serverProt;
984
+
985
+ const secWebSocketExtensions = res.headers['sec-websocket-extensions'];
986
+
987
+ if (secWebSocketExtensions !== undefined) {
988
+ if (!perMessageDeflate) {
989
+ const message =
990
+ 'Server sent a Sec-WebSocket-Extensions header but no extension ' +
991
+ 'was requested';
992
+ abortHandshake(websocket, socket, message);
993
+ return;
994
+ }
995
+
996
+ let extensions;
997
+
998
+ try {
999
+ extensions = parse(secWebSocketExtensions);
1000
+ } catch (err) {
1001
+ const message = 'Invalid Sec-WebSocket-Extensions header';
1002
+ abortHandshake(websocket, socket, message);
1003
+ return;
1004
+ }
1005
+
1006
+ const extensionNames = Object.keys(extensions);
1007
+
1008
+ if (
1009
+ extensionNames.length !== 1 ||
1010
+ extensionNames[0] !== PerMessageDeflate.extensionName
1011
+ ) {
1012
+ const message = 'Server indicated an extension that was not requested';
1013
+ abortHandshake(websocket, socket, message);
1014
+ return;
1015
+ }
1016
+
1017
+ try {
1018
+ perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName]);
1019
+ } catch (err) {
1020
+ const message = 'Invalid Sec-WebSocket-Extensions header';
1021
+ abortHandshake(websocket, socket, message);
1022
+ return;
1023
+ }
1024
+
1025
+ websocket._extensions[PerMessageDeflate.extensionName] =
1026
+ perMessageDeflate;
1027
+ }
1028
+
1029
+ websocket.setSocket(socket, head, {
1030
+ allowSynchronousEvents: opts.allowSynchronousEvents,
1031
+ generateMask: opts.generateMask,
1032
+ maxBufferedChunks: opts.maxBufferedChunks,
1033
+ maxFragments: opts.maxFragments,
1034
+ maxPayload: opts.maxPayload,
1035
+ skipUTF8Validation: opts.skipUTF8Validation
1036
+ });
1037
+ });
1038
+
1039
+ if (opts.finishRequest) {
1040
+ opts.finishRequest(req, websocket);
1041
+ } else {
1042
+ req.end();
1043
+ }
1044
+ }
1045
+
1046
+ /**
1047
+ * Emit the `'error'` and `'close'` events.
1048
+ *
1049
+ * @param {WebSocket} websocket The WebSocket instance
1050
+ * @param {Error} The error to emit
1051
+ * @private
1052
+ */
1053
+ function emitErrorAndClose(websocket, err) {
1054
+ websocket._readyState = WebSocket.CLOSING;
1055
+ //
1056
+ // The following assignment is practically useless and is done only for
1057
+ // consistency.
1058
+ //
1059
+ websocket._errorEmitted = true;
1060
+ websocket.emit('error', err);
1061
+ websocket.emitClose();
1062
+ }
1063
+
1064
+ /**
1065
+ * Create a `net.Socket` and initiate a connection.
1066
+ *
1067
+ * @param {Object} options Connection options
1068
+ * @return {net.Socket} The newly created socket used to start the connection
1069
+ * @private
1070
+ */
1071
+ function netConnect(options) {
1072
+ options.path = options.socketPath;
1073
+ return net.connect(options);
1074
+ }
1075
+
1076
+ /**
1077
+ * Create a `tls.TLSSocket` and initiate a connection.
1078
+ *
1079
+ * @param {Object} options Connection options
1080
+ * @return {tls.TLSSocket} The newly created socket used to start the connection
1081
+ * @private
1082
+ */
1083
+ function tlsConnect(options) {
1084
+ options.path = undefined;
1085
+
1086
+ if (!options.servername && options.servername !== '') {
1087
+ options.servername = net.isIP(options.host) ? '' : options.host;
1088
+ }
1089
+
1090
+ return tls.connect(options);
1091
+ }
1092
+
1093
+ /**
1094
+ * Abort the handshake and emit an error.
1095
+ *
1096
+ * @param {WebSocket} websocket The WebSocket instance
1097
+ * @param {(http.ClientRequest|net.Socket|tls.Socket)} stream The request to
1098
+ * abort or the socket to destroy
1099
+ * @param {String} message The error message
1100
+ * @private
1101
+ */
1102
+ function abortHandshake(websocket, stream, message) {
1103
+ websocket._readyState = WebSocket.CLOSING;
1104
+
1105
+ const err = new Error(message);
1106
+ Error.captureStackTrace(err, abortHandshake);
1107
+
1108
+ if (stream.setHeader) {
1109
+ stream[kAborted] = true;
1110
+ stream.abort();
1111
+
1112
+ if (stream.socket && !stream.socket.destroyed) {
1113
+ //
1114
+ // On Node.js >= 14.3.0 `request.abort()` does not destroy the socket if
1115
+ // called after the request completed. See
1116
+ // https://github.com/websockets/ws/issues/1869.
1117
+ //
1118
+ stream.socket.destroy();
1119
+ }
1120
+
1121
+ process.nextTick(emitErrorAndClose, websocket, err);
1122
+ } else {
1123
+ stream.destroy(err);
1124
+ stream.once('error', websocket.emit.bind(websocket, 'error'));
1125
+ stream.once('close', websocket.emitClose.bind(websocket));
1126
+ }
1127
+ }
1128
+
1129
+ /**
1130
+ * Handle cases where the `ping()`, `pong()`, or `send()` methods are called
1131
+ * when the `readyState` attribute is `CLOSING` or `CLOSED`.
1132
+ *
1133
+ * @param {WebSocket} websocket The WebSocket instance
1134
+ * @param {*} [data] The data to send
1135
+ * @param {Function} [cb] Callback
1136
+ * @private
1137
+ */
1138
+ function sendAfterClose(websocket, data, cb) {
1139
+ if (data) {
1140
+ const length = isBlob(data) ? data.size : toBuffer(data).length;
1141
+
1142
+ //
1143
+ // The `_bufferedAmount` property is used only when the peer is a client and
1144
+ // the opening handshake fails. Under these circumstances, in fact, the
1145
+ // `setSocket()` method is not called, so the `_socket` and `_sender`
1146
+ // properties are set to `null`.
1147
+ //
1148
+ if (websocket._socket) websocket._sender._bufferedBytes += length;
1149
+ else websocket._bufferedAmount += length;
1150
+ }
1151
+
1152
+ if (cb) {
1153
+ const err = new Error(
1154
+ `WebSocket is not open: readyState ${websocket.readyState} ` +
1155
+ `(${readyStates[websocket.readyState]})`
1156
+ );
1157
+ process.nextTick(cb, err);
1158
+ }
1159
+ }
1160
+
1161
+ /**
1162
+ * The listener of the `Receiver` `'conclude'` event.
1163
+ *
1164
+ * @param {Number} code The status code
1165
+ * @param {Buffer} reason The reason for closing
1166
+ * @private
1167
+ */
1168
+ function receiverOnConclude(code, reason) {
1169
+ const websocket = this[kWebSocket];
1170
+
1171
+ websocket._closeFrameReceived = true;
1172
+ websocket._closeMessage = reason;
1173
+ websocket._closeCode = code;
1174
+
1175
+ if (websocket._socket[kWebSocket] === undefined) return;
1176
+
1177
+ websocket._socket.removeListener('data', socketOnData);
1178
+ process.nextTick(resume, websocket._socket);
1179
+
1180
+ if (code === 1005) websocket.close();
1181
+ else websocket.close(code, reason);
1182
+ }
1183
+
1184
+ /**
1185
+ * The listener of the `Receiver` `'drain'` event.
1186
+ *
1187
+ * @private
1188
+ */
1189
+ function receiverOnDrain() {
1190
+ const websocket = this[kWebSocket];
1191
+
1192
+ if (!websocket.isPaused) websocket._socket.resume();
1193
+ }
1194
+
1195
+ /**
1196
+ * The listener of the `Receiver` `'error'` event.
1197
+ *
1198
+ * @param {(RangeError|Error)} err The emitted error
1199
+ * @private
1200
+ */
1201
+ function receiverOnError(err) {
1202
+ const websocket = this[kWebSocket];
1203
+
1204
+ if (websocket._socket[kWebSocket] !== undefined) {
1205
+ websocket._socket.removeListener('data', socketOnData);
1206
+
1207
+ //
1208
+ // On Node.js < 14.0.0 the `'error'` event is emitted synchronously. See
1209
+ // https://github.com/websockets/ws/issues/1940.
1210
+ //
1211
+ process.nextTick(resume, websocket._socket);
1212
+
1213
+ websocket.close(err[kStatusCode]);
1214
+ }
1215
+
1216
+ if (!websocket._errorEmitted) {
1217
+ websocket._errorEmitted = true;
1218
+ websocket.emit('error', err);
1219
+ }
1220
+ }
1221
+
1222
+ /**
1223
+ * The listener of the `Receiver` `'finish'` event.
1224
+ *
1225
+ * @private
1226
+ */
1227
+ function receiverOnFinish() {
1228
+ this[kWebSocket].emitClose();
1229
+ }
1230
+
1231
+ /**
1232
+ * The listener of the `Receiver` `'message'` event.
1233
+ *
1234
+ * @param {Buffer|ArrayBuffer|Buffer[])} data The message
1235
+ * @param {Boolean} isBinary Specifies whether the message is binary or not
1236
+ * @private
1237
+ */
1238
+ function receiverOnMessage(data, isBinary) {
1239
+ this[kWebSocket].emit('message', data, isBinary);
1240
+ }
1241
+
1242
+ /**
1243
+ * The listener of the `Receiver` `'ping'` event.
1244
+ *
1245
+ * @param {Buffer} data The data included in the ping frame
1246
+ * @private
1247
+ */
1248
+ function receiverOnPing(data) {
1249
+ const websocket = this[kWebSocket];
1250
+
1251
+ if (websocket._autoPong) websocket.pong(data, !this._isServer, NOOP);
1252
+ websocket.emit('ping', data);
1253
+ }
1254
+
1255
+ /**
1256
+ * The listener of the `Receiver` `'pong'` event.
1257
+ *
1258
+ * @param {Buffer} data The data included in the pong frame
1259
+ * @private
1260
+ */
1261
+ function receiverOnPong(data) {
1262
+ this[kWebSocket].emit('pong', data);
1263
+ }
1264
+
1265
+ /**
1266
+ * Resume a readable stream
1267
+ *
1268
+ * @param {Readable} stream The readable stream
1269
+ * @private
1270
+ */
1271
+ function resume(stream) {
1272
+ stream.resume();
1273
+ }
1274
+
1275
+ /**
1276
+ * The `Sender` error event handler.
1277
+ *
1278
+ * @param {Error} The error
1279
+ * @private
1280
+ */
1281
+ function senderOnError(err) {
1282
+ const websocket = this[kWebSocket];
1283
+
1284
+ if (websocket.readyState === WebSocket.CLOSED) return;
1285
+ if (websocket.readyState === WebSocket.OPEN) {
1286
+ websocket._readyState = WebSocket.CLOSING;
1287
+ setCloseTimer(websocket);
1288
+ }
1289
+
1290
+ //
1291
+ // `socket.end()` is used instead of `socket.destroy()` to allow the other
1292
+ // peer to finish sending queued data. There is no need to set a timer here
1293
+ // because `CLOSING` means that it is already set or not needed.
1294
+ //
1295
+ this._socket.end();
1296
+
1297
+ if (!websocket._errorEmitted) {
1298
+ websocket._errorEmitted = true;
1299
+ websocket.emit('error', err);
1300
+ }
1301
+ }
1302
+
1303
+ /**
1304
+ * Set a timer to destroy the underlying raw socket of a WebSocket.
1305
+ *
1306
+ * @param {WebSocket} websocket The WebSocket instance
1307
+ * @private
1308
+ */
1309
+ function setCloseTimer(websocket) {
1310
+ websocket._closeTimer = setTimeout(
1311
+ websocket._socket.destroy.bind(websocket._socket),
1312
+ websocket._closeTimeout
1313
+ );
1314
+ }
1315
+
1316
+ /**
1317
+ * The listener of the socket `'close'` event.
1318
+ *
1319
+ * @private
1320
+ */
1321
+ function socketOnClose() {
1322
+ const websocket = this[kWebSocket];
1323
+
1324
+ this.removeListener('close', socketOnClose);
1325
+ this.removeListener('data', socketOnData);
1326
+ this.removeListener('end', socketOnEnd);
1327
+
1328
+ websocket._readyState = WebSocket.CLOSING;
1329
+
1330
+ //
1331
+ // The close frame might not have been received or the `'end'` event emitted,
1332
+ // for example, if the socket was destroyed due to an error. Ensure that the
1333
+ // `receiver` stream is closed after writing any remaining buffered data to
1334
+ // it. If the readable side of the socket is in flowing mode then there is no
1335
+ // buffered data as everything has been already written. If instead, the
1336
+ // socket is paused, any possible buffered data will be read as a single
1337
+ // chunk.
1338
+ //
1339
+ if (
1340
+ !this._readableState.endEmitted &&
1341
+ !websocket._closeFrameReceived &&
1342
+ !websocket._receiver._writableState.errorEmitted &&
1343
+ this._readableState.length !== 0
1344
+ ) {
1345
+ const chunk = this.read(this._readableState.length);
1346
+
1347
+ websocket._receiver.write(chunk);
1348
+ }
1349
+
1350
+ websocket._receiver.end();
1351
+
1352
+ this[kWebSocket] = undefined;
1353
+
1354
+ clearTimeout(websocket._closeTimer);
1355
+
1356
+ if (
1357
+ websocket._receiver._writableState.finished ||
1358
+ websocket._receiver._writableState.errorEmitted
1359
+ ) {
1360
+ websocket.emitClose();
1361
+ } else {
1362
+ websocket._receiver.on('error', receiverOnFinish);
1363
+ websocket._receiver.on('finish', receiverOnFinish);
1364
+ }
1365
+ }
1366
+
1367
+ /**
1368
+ * The listener of the socket `'data'` event.
1369
+ *
1370
+ * @param {Buffer} chunk A chunk of data
1371
+ * @private
1372
+ */
1373
+ function socketOnData(chunk) {
1374
+ if (!this[kWebSocket]._receiver.write(chunk)) {
1375
+ this.pause();
1376
+ }
1377
+ }
1378
+
1379
+ /**
1380
+ * The listener of the socket `'end'` event.
1381
+ *
1382
+ * @private
1383
+ */
1384
+ function socketOnEnd() {
1385
+ const websocket = this[kWebSocket];
1386
+
1387
+ websocket._readyState = WebSocket.CLOSING;
1388
+ websocket._receiver.end();
1389
+ this.end();
1390
+ }
1391
+
1392
+ /**
1393
+ * The listener of the socket `'error'` event.
1394
+ *
1395
+ * @private
1396
+ */
1397
+ function socketOnError() {
1398
+ const websocket = this[kWebSocket];
1399
+
1400
+ this.removeListener('error', socketOnError);
1401
+ this.on('error', NOOP);
1402
+
1403
+ if (websocket) {
1404
+ websocket._readyState = WebSocket.CLOSING;
1405
+ this.destroy();
1406
+ }
1407
+ }