@qqbrowser/qbot-dsh 0.0.15 → 0.1.1

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 (737) hide show
  1. package/config/agent-presets/code/agent.cordis.yml +2 -2
  2. package/config/agent-presets/standard/agent.cordis.yml +2 -2
  3. package/cordis.patch.yml +50 -0
  4. package/lib/args-w1okyL78.js +9 -0
  5. package/lib/bin.js +2 -2
  6. package/lib/client.js +1 -0
  7. package/lib/content-review-CqDoh3wY.js +1 -0
  8. package/lib/content-review.js +1 -0
  9. package/lib/dump-config-CIL0Goqj.js +1 -0
  10. package/lib/gateway-port-CSFbDyoZ.js +1 -0
  11. package/lib/index.js +1 -0
  12. package/lib/llm-gateway-openai.js +17 -0
  13. package/lib/native-protocol-DdrIh89-.js +2 -0
  14. package/lib/{plugin-DNAeLZbb.js → plugin-viWCLnSr.js} +1 -1
  15. package/lib/profile-boot-CxJUSdnu.js +1 -0
  16. package/lib/profile-boot-DCgBQ4qO.js +8 -0
  17. package/lib/qb-auth-C2ofR1zn.js +4 -0
  18. package/lib/qb-auth.js +1 -0
  19. package/lib/web-search-dsh.js +1 -0
  20. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  21. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  22. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  23. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +1 -1
  24. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  25. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  26. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  27. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +1 -1
  28. package/node_modules/@deepseek-ai/cordis-plugin-hmr/package.json +1 -1
  29. package/node_modules/@deepseek-ai/dsh-agent/package.json +1 -1
  30. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +1 -1
  31. package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -3
  32. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +1 -1
  33. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +1 -1
  34. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +1 -1
  35. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +1 -1
  36. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +1 -1
  37. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +1 -1
  38. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
  39. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +12 -12
  40. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
  41. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  42. package/node_modules/@deepseek-ai/dsh-attachment/lib/index.js +1 -1
  43. package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
  44. package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
  45. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
  46. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +6 -37
  47. package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
  48. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
  49. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
  50. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  51. package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +1 -1
  52. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
  53. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
  54. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +1 -1
  55. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
  56. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
  57. package/node_modules/@deepseek-ai/dsh-client-runtime/lib/client.js +4 -4
  58. package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
  59. package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
  60. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
  61. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
  62. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
  63. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +1 -1
  64. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
  65. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +8 -8
  66. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
  67. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -3
  68. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
  69. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
  71. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +1 -1
  72. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
  73. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
  75. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
  76. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +1 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  79. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
  80. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
  81. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
  82. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +1 -1
  83. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
  84. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +1 -1
  85. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
  86. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +1 -1
  89. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
  90. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +22 -22
  91. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
  92. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +1 -1
  93. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
  94. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  95. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
  96. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +1 -1
  97. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
  98. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  99. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
  100. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  101. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
  102. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  103. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
  104. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +1 -1
  105. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
  106. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
  107. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
  108. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
  109. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  110. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
  111. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1 -1
  112. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
  113. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +2 -2
  114. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
  115. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
  116. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
  117. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  118. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
  119. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
  120. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
  121. package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
  122. package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
  123. package/node_modules/@deepseek-ai/dsh-cmdline/lib/index.js +1 -1
  124. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  125. package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
  126. package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
  127. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
  128. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
  129. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
  130. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +5 -2
  131. package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
  132. package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
  133. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
  134. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
  135. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +4 -4
  136. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
  137. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -4
  138. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
  139. package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
  140. package/node_modules/@deepseek-ai/dsh-credentials-local/lib/index.js +1 -1
  141. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
  142. package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
  143. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
  144. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
  145. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
  146. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +5 -2
  147. package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
  148. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
  149. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +4 -4
  150. package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +3 -3
  151. package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
  152. package/node_modules/@deepseek-ai/dsh-home-paths/lib/index.js +1 -1
  153. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  154. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/index.js +7 -7
  155. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/rpc.schema.js +1 -1
  156. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api-proxy.js +1 -1
  157. package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
  158. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  159. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
  160. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
  161. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
  162. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
  163. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
  164. package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -1
  165. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  166. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  167. package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
  168. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
  169. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  170. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +1 -1
  171. package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +1 -1
  172. package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
  173. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +1 -1
  174. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
  175. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -1
  176. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
  177. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
  178. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +3 -2
  179. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
  180. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
  181. package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
  182. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  183. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
  184. package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
  185. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
  186. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
  187. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
  188. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +1 -1
  189. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +1 -1
  190. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +1 -1
  191. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +1 -1
  192. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
  193. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  194. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
  195. package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
  196. package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
  197. package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
  198. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
  199. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
  200. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
  201. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
  202. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
  203. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
  204. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +2 -2
  205. package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
  206. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
  207. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +1 -1
  208. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +1 -1
  209. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +1 -1
  210. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +1 -1
  211. package/node_modules/@deepseek-ai/dsh-session-title/package.json +1 -1
  212. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +1 -1
  213. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
  214. package/node_modules/@deepseek-ai/dsh-settings/package.json +1 -1
  215. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +1 -1
  216. package/node_modules/@deepseek-ai/dsh-shell/package.json +1 -1
  217. package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +1 -1
  218. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +1 -1
  219. package/node_modules/@deepseek-ai/dsh-skill/package.json +1 -1
  220. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +1 -1
  221. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +1 -1
  222. package/node_modules/@deepseek-ai/dsh-spill/package.json +1 -1
  223. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
  224. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +1 -1
  225. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  226. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +1 -1
  227. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -1
  228. package/node_modules/@deepseek-ai/dsh-subagent/package.json +1 -1
  229. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +1 -1
  230. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +1 -1
  231. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +1 -1
  232. package/node_modules/@deepseek-ai/dsh-subprocess/lib/index.js +1 -1
  233. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +1 -1
  235. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +1 -1
  236. package/node_modules/@deepseek-ai/dsh-terminal/package.json +1 -1
  237. package/node_modules/@deepseek-ai/dsh-terminal-bash/lib/index.js +1 -1
  238. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
  239. package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
  240. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  241. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
  242. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
  243. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
  244. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
  245. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +7 -10
  246. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
  247. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
  248. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +9 -30
  249. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
  250. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +8 -8
  251. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
  252. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
  253. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
  254. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
  255. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
  256. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
  257. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
  258. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
  259. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +2 -2
  260. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
  261. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
  262. package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
  263. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
  264. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
  265. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
  266. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +15 -15
  267. package/node_modules/@deepseek-ai/dsh-tools/lib/types/code-mode.js +8 -8
  268. package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +3 -3
  269. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ts-types.js +4 -4
  270. package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
  271. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
  272. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
  273. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
  274. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
  275. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
  276. package/node_modules/@deepseek-ai/dsh-web/lib/index.js +1 -1
  277. package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
  278. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +0 -1
  279. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +1 -1
  280. package/node_modules/@deepseek-ai/dsh-web-app/lib/startup.js +4 -5
  281. package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
  282. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-BQQQ5Qt-.js → index-fPGOmJjK.js} +25 -25
  283. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +1 -1
  284. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
  285. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
  286. package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
  287. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/lib/worker.cjs +9 -8
  288. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
  289. package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
  290. package/node_modules/@deepseek-ai/node-addon-landlock-run/package.json +1 -1
  291. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -5
  292. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -1
  293. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1
  294. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -1
  295. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -1
  296. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +3 -3
  297. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +4 -4
  298. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
  299. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +6 -6
  300. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -1
  301. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -1
  302. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
  303. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
  304. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -1
  305. package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -1
  306. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  307. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  308. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  309. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  310. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  311. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  312. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  313. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  314. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  315. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  316. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  317. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  318. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  319. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  320. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
  321. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  322. package/node_modules/@koromix/koffi-darwin-arm64/darwin_arm64/koffi.node +0 -0
  323. package/node_modules/@koromix/koffi-darwin-arm64/package.json +1 -1
  324. package/node_modules/@koromix/koffi-darwin-x64/darwin_x64/koffi.node +0 -0
  325. package/node_modules/@koromix/koffi-darwin-x64/package.json +1 -1
  326. package/node_modules/@koromix/koffi-win32-x64/package.json +1 -1
  327. package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node +0 -0
  328. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  329. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
  330. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  331. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  332. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  333. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
  334. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
  335. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
  336. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  337. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  338. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  339. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  340. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  341. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  342. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  343. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  344. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  345. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  346. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  347. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  348. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  349. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  350. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  351. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  352. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  353. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  354. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  355. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
  356. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
  357. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  358. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  359. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
  360. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  361. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  362. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  363. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  364. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  365. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  366. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  367. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  368. package/node_modules/@smithy/core/package.json +1 -1
  369. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +19 -7
  370. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -1
  371. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
  372. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
  373. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
  374. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
  375. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
  376. package/node_modules/@smithy/signature-v4/package.json +1 -1
  377. package/node_modules/@tanstack/react-virtual/package.json +1 -1
  378. package/node_modules/@tanstack/virtual-core/dist/cjs/index.cjs +7 -1
  379. package/node_modules/@tanstack/virtual-core/dist/cjs/utils.cjs +14 -4
  380. package/node_modules/@tanstack/virtual-core/dist/esm/index.js +1 -1
  381. package/node_modules/@tanstack/virtual-core/dist/esm/utils.js +2 -2
  382. package/node_modules/@tanstack/virtual-core/package.json +1 -1
  383. package/node_modules/hono/dist/cjs/client/utils.js +1 -1
  384. package/node_modules/hono/dist/cjs/context.js +4 -0
  385. package/node_modules/hono/dist/cjs/middleware/cors/index.js +1 -1
  386. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +1 -1
  387. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +1 -1
  388. package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -2
  389. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +3 -1
  390. package/node_modules/hono/dist/cjs/router/linear-router/router.js +7 -2
  391. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +3 -9
  392. package/node_modules/hono/dist/cjs/router/trie-router/node.js +43 -67
  393. package/node_modules/hono/dist/cjs/router/trie-router/router.js +3 -11
  394. package/node_modules/hono/dist/cjs/utils/ipaddr.js +5 -3
  395. package/node_modules/hono/dist/client/utils.js +1 -1
  396. package/node_modules/hono/dist/middleware/cors/index.js +1 -1
  397. package/node_modules/hono/dist/middleware/csrf/index.js +1 -1
  398. package/node_modules/hono/dist/middleware/etag/digest.js +1 -1
  399. package/node_modules/hono/dist/middleware/etag/index.js +1 -1
  400. package/node_modules/hono/dist/middleware/pretty-json/index.js +1 -1
  401. package/node_modules/hono/dist/router/linear-router/router.js +1 -1
  402. package/node_modules/hono/dist/router/pattern-router/router.js +1 -1
  403. package/node_modules/hono/dist/router/trie-router/node.js +1 -1
  404. package/node_modules/hono/dist/router/trie-router/router.js +1 -1
  405. package/node_modules/hono/dist/utils/ipaddr.js +1 -1
  406. package/node_modules/hono/package.json +1 -1
  407. package/node_modules/koffi/package.json +1 -1
  408. package/node_modules/koffi/src/koffi/index.cjs +1 -1
  409. package/node_modules/koffi/src/koffi/index.js +1 -1
  410. package/node_modules/koffi/src/koffi/indirect.cjs +1 -1
  411. package/node_modules/koffi/src/koffi/indirect.js +1 -1
  412. package/node_modules/negotiator/lib/accept.js +54 -0
  413. package/node_modules/negotiator/lib/charset.js +10 -34
  414. package/node_modules/negotiator/lib/encoding.js +9 -30
  415. package/node_modules/negotiator/lib/language.js +15 -36
  416. package/node_modules/negotiator/lib/mediaType.js +16 -134
  417. package/node_modules/negotiator/node_modules/content-type/LICENSE +22 -0
  418. package/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
  419. package/node_modules/negotiator/node_modules/content-type/package.json +1 -0
  420. package/node_modules/negotiator/package.json +1 -1
  421. package/node_modules/node-pty/lib/conpty_console_list_agent.js +11 -2
  422. package/node_modules/node-pty/lib/index.js +6 -6
  423. package/node_modules/node-pty/lib/shared/conout.js +2 -3
  424. package/node_modules/node-pty/lib/terminal.js +2 -2
  425. package/node_modules/node-pty/lib/unixTerminal.js +11 -6
  426. package/node_modules/node-pty/lib/utils.js +6 -7
  427. package/node_modules/node-pty/lib/windowsConoutConnection.js +24 -18
  428. package/node_modules/node-pty/lib/windowsPtyAgent.js +125 -101
  429. package/node_modules/node-pty/lib/windowsTerminal.js +14 -4
  430. package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +3 -3
  431. package/node_modules/node-pty/package.json +1 -1
  432. package/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
  433. package/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
  434. package/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
  435. package/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
  436. package/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  437. package/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  438. package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  439. package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  440. package/node_modules/node-pty/scripts/post-install.js +1 -5
  441. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-arm64/OpenConsole.exe +0 -0
  442. package/node_modules/node-pty/third_party/conpty/{1.23.251008001 → 1.25.260303002}/win10-arm64/conpty.dll +0 -0
  443. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/OpenConsole.exe +0 -0
  444. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/conpty.dll +0 -0
  445. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  446. package/node_modules/typebox/build/format/_idna.mjs +1 -1
  447. package/node_modules/typebox/build/format/_puny.mjs +1 -1
  448. package/node_modules/typebox/build/format/uuid.mjs +1 -1
  449. package/node_modules/typebox/build/guard/emit.mjs +1 -1
  450. package/node_modules/typebox/build/guard/guard.mjs +1 -1
  451. package/node_modules/typebox/build/guard/string.mjs +1 -1
  452. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
  453. package/node_modules/typebox/build/schema/engine/_guard.mjs +1 -0
  454. package/node_modules/typebox/build/schema/engine/boolean.mjs +1 -1
  455. package/node_modules/typebox/build/schema/engine/index.mjs +1 -1
  456. package/node_modules/typebox/build/schema/engine/schema.mjs +1 -1
  457. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  458. package/node_modules/typebox/build/schema/types/_guard.mjs +1 -0
  459. package/node_modules/typebox/build/schema/types/index.mjs +1 -1
  460. package/node_modules/typebox/build/schema/types/schema.mjs +1 -1
  461. package/node_modules/typebox/build/system/locale/ar_001.mjs +1 -1
  462. package/node_modules/typebox/build/system/locale/bn_BD.mjs +1 -1
  463. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +1 -1
  464. package/node_modules/typebox/build/system/locale/de_DE.mjs +1 -1
  465. package/node_modules/typebox/build/system/locale/el_GR.mjs +1 -1
  466. package/node_modules/typebox/build/system/locale/en_US.mjs +1 -1
  467. package/node_modules/typebox/build/system/locale/es_419.mjs +1 -1
  468. package/node_modules/typebox/build/system/locale/es_AR.mjs +1 -1
  469. package/node_modules/typebox/build/system/locale/es_ES.mjs +1 -1
  470. package/node_modules/typebox/build/system/locale/es_MX.mjs +1 -1
  471. package/node_modules/typebox/build/system/locale/fa_IR.mjs +1 -1
  472. package/node_modules/typebox/build/system/locale/fil_PH.mjs +1 -1
  473. package/node_modules/typebox/build/system/locale/fr_CA.mjs +1 -1
  474. package/node_modules/typebox/build/system/locale/fr_FR.mjs +1 -1
  475. package/node_modules/typebox/build/system/locale/ha_NG.mjs +1 -1
  476. package/node_modules/typebox/build/system/locale/hi_IN.mjs +1 -1
  477. package/node_modules/typebox/build/system/locale/hu_HU.mjs +1 -1
  478. package/node_modules/typebox/build/system/locale/id_ID.mjs +1 -1
  479. package/node_modules/typebox/build/system/locale/it_IT.mjs +1 -1
  480. package/node_modules/typebox/build/system/locale/ja_JP.mjs +1 -1
  481. package/node_modules/typebox/build/system/locale/ko_KR.mjs +1 -1
  482. package/node_modules/typebox/build/system/locale/ms_MY.mjs +1 -1
  483. package/node_modules/typebox/build/system/locale/nl_NL.mjs +1 -1
  484. package/node_modules/typebox/build/system/locale/pl_PL.mjs +1 -1
  485. package/node_modules/typebox/build/system/locale/pt_BR.mjs +1 -1
  486. package/node_modules/typebox/build/system/locale/pt_PT.mjs +1 -1
  487. package/node_modules/typebox/build/system/locale/ro_RO.mjs +1 -1
  488. package/node_modules/typebox/build/system/locale/ru_RU.mjs +1 -1
  489. package/node_modules/typebox/build/system/locale/sv_SE.mjs +1 -1
  490. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +1 -1
  491. package/node_modules/typebox/build/system/locale/th_TH.mjs +1 -1
  492. package/node_modules/typebox/build/system/locale/tr_TR.mjs +1 -1
  493. package/node_modules/typebox/build/system/locale/uk_UA.mjs +1 -1
  494. package/node_modules/typebox/build/system/locale/ur_PK.mjs +1 -1
  495. package/node_modules/typebox/build/system/locale/vi_VN.mjs +1 -1
  496. package/node_modules/typebox/build/system/locale/yo_NG.mjs +1 -1
  497. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +1 -1
  498. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +1 -1
  499. package/node_modules/typebox/build/system/memory/clone.mjs +1 -1
  500. package/node_modules/typebox/build/system/settings/settings.mjs +1 -1
  501. package/node_modules/typebox/build/type/action/_optional.mjs +1 -0
  502. package/node_modules/typebox/build/type/action/_readonly.mjs +1 -0
  503. package/node_modules/typebox/build/type/action/awaited.mjs +1 -0
  504. package/node_modules/typebox/build/type/action/conditional.mjs +1 -1
  505. package/node_modules/typebox/build/type/action/index.mjs +1 -1
  506. package/node_modules/typebox/build/type/action/mapped.mjs +1 -1
  507. package/node_modules/typebox/build/type/action/module.mjs +1 -1
  508. package/node_modules/typebox/build/type/action/options.mjs +1 -0
  509. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +1 -0
  510. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  511. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +1 -1
  512. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +1 -1
  513. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +1 -1
  514. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +1 -1
  515. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +1 -1
  516. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +1 -1
  517. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +1 -1
  518. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +1 -1
  519. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +1 -0
  520. package/node_modules/typebox/build/type/engine/enum/index.mjs +1 -1
  521. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +1 -1
  522. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +1 -1
  523. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +1 -1
  524. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +1 -1
  525. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +1 -1
  526. package/node_modules/typebox/build/type/engine/extract/operation.mjs +1 -1
  527. package/node_modules/typebox/build/type/engine/index.mjs +1 -1
  528. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +1 -1
  529. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +1 -1
  530. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +1 -1
  531. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +1 -1
  532. package/node_modules/typebox/build/type/engine/instantiate.mjs +1 -1
  533. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +1 -1
  534. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +1 -1
  535. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +1 -1
  536. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +1 -1
  537. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +1 -1
  538. package/node_modules/typebox/build/type/engine/object/from_type.mjs +1 -1
  539. package/node_modules/typebox/build/type/engine/object/from_union.mjs +1 -1
  540. package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
  541. package/node_modules/typebox/build/type/engine/options/instantiate.mjs +1 -0
  542. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +1 -1
  543. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +1 -1
  544. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +1 -1
  545. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +1 -1
  546. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +1 -1
  547. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +1 -1
  548. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +1 -1
  549. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +1 -1
  550. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +1 -1
  551. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +1 -1
  552. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +1 -1
  553. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +1 -1
  554. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +1 -1
  555. package/node_modules/typebox/build/type/engine/required/from_object.mjs +1 -1
  556. package/node_modules/typebox/build/type/engine/required/from_type.mjs +1 -1
  557. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +1 -1
  558. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +1 -1
  559. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  560. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +1 -1
  561. package/node_modules/typebox/build/type/extends/async_iterator.mjs +1 -0
  562. package/node_modules/typebox/build/type/extends/enum.mjs +1 -1
  563. package/node_modules/typebox/build/type/extends/extends_left.mjs +1 -1
  564. package/node_modules/typebox/build/type/extends/extends_right.mjs +1 -1
  565. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  566. package/node_modules/typebox/build/type/extends/iterator.mjs +1 -0
  567. package/node_modules/typebox/build/type/extends/object.mjs +1 -1
  568. package/node_modules/typebox/build/type/extends/parameters.mjs +1 -1
  569. package/node_modules/typebox/build/type/extends/promise.mjs +1 -0
  570. package/node_modules/typebox/build/type/extends/template_literal.mjs +1 -1
  571. package/node_modules/typebox/build/type/extends/tuple.mjs +1 -1
  572. package/node_modules/typebox/build/type/extends/union.mjs +1 -1
  573. package/node_modules/typebox/build/type/script/mapping.mjs +1 -1
  574. package/node_modules/typebox/build/type/script/parser.mjs +6 -6
  575. package/node_modules/typebox/build/type/script/script.mjs +1 -1
  576. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  577. package/node_modules/typebox/build/type/script/token/until.mjs +1 -1
  578. package/node_modules/typebox/build/type/types/_immutable.mjs +1 -1
  579. package/node_modules/typebox/build/type/types/_optional.mjs +1 -1
  580. package/node_modules/typebox/build/type/types/_readonly.mjs +1 -1
  581. package/node_modules/typebox/build/type/types/_refine.mjs +1 -1
  582. package/node_modules/typebox/build/type/types/async_iterator.mjs +1 -0
  583. package/node_modules/typebox/build/type/types/base.mjs +1 -0
  584. package/node_modules/typebox/build/type/types/call.mjs +1 -1
  585. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  586. package/node_modules/typebox/build/type/types/enum.mjs +1 -1
  587. package/node_modules/typebox/build/type/types/index.mjs +1 -1
  588. package/node_modules/typebox/build/type/types/iterator.mjs +1 -0
  589. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  590. package/node_modules/typebox/build/type/types/promise.mjs +1 -0
  591. package/node_modules/typebox/build/type/types/record.mjs +1 -1
  592. package/node_modules/typebox/build/typebox.mjs +1 -1
  593. package/node_modules/typebox/build/value/clean/clean.mjs +1 -1
  594. package/node_modules/typebox/build/value/clean/from_base.mjs +1 -0
  595. package/node_modules/typebox/build/value/clean/from_intersect.mjs +1 -1
  596. package/node_modules/typebox/build/value/clean/from_type.mjs +1 -1
  597. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -1
  598. package/node_modules/typebox/build/value/clone/clone.mjs +1 -1
  599. package/node_modules/typebox/build/value/codec/decode.mjs +1 -1
  600. package/node_modules/typebox/build/value/codec/encode.mjs +1 -1
  601. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -1
  602. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -1
  603. package/node_modules/typebox/build/value/codec/from_record.mjs +1 -1
  604. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -1
  605. package/node_modules/typebox/build/value/codec/from_union.mjs +1 -1
  606. package/node_modules/typebox/build/value/convert/from_base.mjs +1 -0
  607. package/node_modules/typebox/build/value/convert/from_enum.mjs +1 -1
  608. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +1 -1
  609. package/node_modules/typebox/build/value/convert/from_type.mjs +1 -1
  610. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +1 -0
  611. package/node_modules/typebox/build/value/create/from_base.mjs +1 -0
  612. package/node_modules/typebox/build/value/create/from_enum.mjs +1 -1
  613. package/node_modules/typebox/build/value/create/from_iterator.mjs +1 -0
  614. package/node_modules/typebox/build/value/create/from_promise.mjs +1 -0
  615. package/node_modules/typebox/build/value/create/from_type.mjs +1 -1
  616. package/node_modules/typebox/build/value/default/from_base.mjs +1 -0
  617. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  618. package/node_modules/typebox/build/value/default/from_type.mjs +1 -1
  619. package/node_modules/typebox/build/value/index.mjs +1 -1
  620. package/node_modules/typebox/build/value/mutate/error.mjs +1 -0
  621. package/node_modules/typebox/build/value/mutate/from_array.mjs +1 -0
  622. package/node_modules/typebox/build/value/mutate/from_object.mjs +1 -0
  623. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +1 -0
  624. package/node_modules/typebox/build/value/mutate/from_value.mjs +1 -0
  625. package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
  626. package/node_modules/typebox/build/value/mutate/mutate.mjs +1 -0
  627. package/node_modules/typebox/build/value/repair/from_base.mjs +1 -0
  628. package/node_modules/typebox/build/value/repair/from_enum.mjs +1 -1
  629. package/node_modules/typebox/build/value/repair/from_type.mjs +1 -1
  630. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +1 -1
  631. package/node_modules/typebox/build/value/value.mjs +1 -1
  632. package/node_modules/typebox/package.json +1 -1
  633. package/package.json +1 -1
  634. package/lib/args-DcHS9iff.js +0 -9
  635. package/lib/dump-config-xQTUTTDD.js +0 -1
  636. package/lib/profile-boot-BkordgJK.js +0 -1
  637. package/lib/profile-boot-DDo03lXi.js +0 -8
  638. package/node_modules/@deepseek-ai/dsh-content-review/LICENSE +0 -21
  639. package/node_modules/@deepseek-ai/dsh-content-review/lib/index.js +0 -1
  640. package/node_modules/@deepseek-ai/dsh-content-review/lib/invariant.js +0 -1
  641. package/node_modules/@deepseek-ai/dsh-content-review/package.json +0 -1
  642. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/LICENSE +0 -21
  643. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/index.js +0 -1
  644. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/invariant.js +0 -1
  645. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/package.json +0 -1
  646. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/LICENSE +0 -21
  647. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/index.js +0 -17
  648. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/invariant.js +0 -1
  649. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/package.json +0 -1
  650. package/node_modules/@deepseek-ai/dsh-qb-auth/LICENSE +0 -21
  651. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/index.js +0 -4
  652. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/invariant.js +0 -1
  653. package/node_modules/@deepseek-ai/dsh-qb-auth/package.json +0 -1
  654. package/node_modules/@deepseek-ai/dsh-web-search-dsh/LICENSE +0 -21
  655. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/index.js +0 -1
  656. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/invariant.js +0 -1
  657. package/node_modules/@deepseek-ai/dsh-web-search-dsh/package.json +0 -1
  658. package/node_modules/@napi-rs/xattr/LICENSE +0 -21
  659. package/node_modules/@napi-rs/xattr/index.js +0 -567
  660. package/node_modules/@napi-rs/xattr/package.json +0 -1
  661. package/node_modules/@napi-rs/xattr-darwin-arm64/package.json +0 -1
  662. package/node_modules/@napi-rs/xattr-darwin-arm64/xattr.darwin-arm64.node +0 -0
  663. package/node_modules/@napi-rs/xattr-darwin-x64/package.json +0 -1
  664. package/node_modules/@napi-rs/xattr-darwin-x64/xattr.darwin-x64.node +0 -0
  665. package/node_modules/@parcel/watcher/LICENSE +0 -21
  666. package/node_modules/@parcel/watcher/index.js +0 -44
  667. package/node_modules/@parcel/watcher/index.js.flow +0 -45
  668. package/node_modules/@parcel/watcher/package.json +0 -1
  669. package/node_modules/@parcel/watcher/scripts/build-from-source.js +0 -16
  670. package/node_modules/@parcel/watcher/wrapper.js +0 -88
  671. package/node_modules/@parcel/watcher-darwin-arm64/LICENSE +0 -21
  672. package/node_modules/@parcel/watcher-darwin-arm64/package.json +0 -1
  673. package/node_modules/@parcel/watcher-darwin-arm64/watcher.node +0 -0
  674. package/node_modules/@parcel/watcher-darwin-x64/LICENSE +0 -21
  675. package/node_modules/@parcel/watcher-darwin-x64/package.json +0 -1
  676. package/node_modules/@parcel/watcher-darwin-x64/watcher.node +0 -0
  677. package/node_modules/@parcel/watcher-win32-x64/LICENSE +0 -21
  678. package/node_modules/@parcel/watcher-win32-x64/package.json +0 -1
  679. package/node_modules/@parcel/watcher-win32-x64/watcher.node +0 -0
  680. package/node_modules/is-extglob/LICENSE +0 -21
  681. package/node_modules/is-extglob/index.js +0 -20
  682. package/node_modules/is-extglob/package.json +0 -1
  683. package/node_modules/is-glob/LICENSE +0 -21
  684. package/node_modules/is-glob/index.js +0 -150
  685. package/node_modules/is-glob/package.json +0 -1
  686. package/node_modules/node-pty/deps/winpty/.drone.yml +0 -15
  687. package/node_modules/node-pty/deps/winpty/LICENSE +0 -21
  688. package/node_modules/node-pty/deps/winpty/configure +0 -167
  689. package/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
  690. package/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
  691. package/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
  692. package/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
  693. package/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
  694. package/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
  695. package/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
  696. package/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
  697. package/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
  698. package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
  699. package/node_modules/node-pty/lib/terminal.test.js +0 -139
  700. package/node_modules/node-pty/lib/testUtils.test.js +0 -28
  701. package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
  702. package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
  703. package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
  704. package/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
  705. package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
  706. package/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
  707. package/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
  708. package/node_modules/node-pty/scripts/increment-version.js +0 -54
  709. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
  710. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
  711. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
  712. package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -1
  713. package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -1
  714. package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -1
  715. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -1
  716. package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -1
  717. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -1
  718. package/node_modules/typebox/build/type/action/with.mjs +0 -1
  719. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -1
  720. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -1
  721. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -1
  722. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -1
  723. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -1
  724. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -1
  725. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -1
  726. package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
  727. package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -1
  728. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -1
  729. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -1
  730. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -1
  731. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -1
  732. package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -1
  733. package/node_modules/typebox/build/type/extends/dependent.mjs +0 -1
  734. package/node_modules/typebox/build/type/extends/record.mjs +0 -1
  735. package/node_modules/typebox/build/type/types/dependent.mjs +0 -1
  736. /package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-D2_FQYSK.js → types-DE3U0cmQ.js} +0 -0
  737. /package/node_modules/typebox/build/type/engine/{with → awaited}/index.mjs +0 -0
@@ -5,63 +5,49 @@
5
5
  * Copyright (c) 2018, Microsoft Corporation (MIT License).
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.argsToCommandLine = exports.WindowsPtyAgent = void 0;
8
+ exports.WindowsPtyAgent = void 0;
9
+ exports.argsToCommandLine = argsToCommandLine;
9
10
  var fs = require("fs");
10
- var os = require("os");
11
11
  var path = require("path");
12
12
  var child_process_1 = require("child_process");
13
13
  var net_1 = require("net");
14
14
  var windowsConoutConnection_1 = require("./windowsConoutConnection");
15
+ var eventEmitter2_1 = require("./eventEmitter2");
15
16
  var utils_1 = require("./utils");
16
17
  var conptyNative;
17
- var winptyNative;
18
18
  /**
19
19
  * The amount of time to wait for additional data after the conpty shell process has exited before
20
20
  * shutting down the socket. The timer will be reset if a new data event comes in after the timer
21
21
  * has started.
22
22
  */
23
23
  var FLUSH_DATA_INTERVAL = 1000;
24
+ var CONNECTION_TIMEOUT = 5000;
25
+ var defaultWindowsPtyAgentOptions = {
26
+ connectionTimeout: CONNECTION_TIMEOUT,
27
+ conoutConnectionFactory: function (conoutPipeName, useConptyDll) { return new windowsConoutConnection_1.ConoutConnection(conoutPipeName, useConptyDll); }
28
+ };
24
29
  /**
25
- * This agent sits between the WindowsTerminal class and provides a common interface for both conpty
26
- * and winpty.
30
+ * This agent sits between the WindowsTerminal class and provides an interface for conpty.
27
31
  */
28
32
  var WindowsPtyAgent = /** @class */ (function () {
29
- function WindowsPtyAgent(file, args, env, cwd, cols, rows, debug, _useConpty, _useConptyDll, conptyInheritCursor) {
30
- var _this = this;
33
+ function WindowsPtyAgent(file, args, env, cwd, cols, rows, debug, _useConptyDll, conptyInheritCursor, options) {
31
34
  if (_useConptyDll === void 0) { _useConptyDll = false; }
32
35
  if (conptyInheritCursor === void 0) { conptyInheritCursor = false; }
33
- this._useConpty = _useConpty;
36
+ if (options === void 0) { options = defaultWindowsPtyAgentOptions; }
37
+ var _this = this;
34
38
  this._useConptyDll = _useConptyDll;
35
- this._pid = 0;
36
39
  this._innerPid = 0;
37
- if (this._useConpty === undefined || this._useConpty === true) {
38
- this._useConpty = this._getWindowsBuildNumber() >= 18309;
39
- }
40
- if (this._useConpty) {
41
- if (!conptyNative) {
42
- conptyNative = utils_1.loadNativeModule('conpty').module;
43
- }
44
- }
45
- else {
46
- if (!winptyNative) {
47
- winptyNative = utils_1.loadNativeModule('pty').module;
48
- }
40
+ this._onError = new eventEmitter2_1.EventEmitter2();
41
+ if (!conptyNative) {
42
+ conptyNative = (0, utils_1.loadNativeModule)('conpty').module;
49
43
  }
50
- this._ptyNative = this._useConpty ? conptyNative : winptyNative;
44
+ this._ptyNative = conptyNative;
51
45
  // Sanitize input variable.
52
46
  cwd = path.resolve(cwd);
53
47
  // Compose command line
54
48
  var commandLine = argsToCommandLine(file, args);
55
49
  // Open pty session.
56
- var term;
57
- if (this._useConpty) {
58
- term = this._ptyNative.startProcess(file, cols, rows, debug, this._generatePipeName(), conptyInheritCursor, this._useConptyDll);
59
- }
60
- else {
61
- term = this._ptyNative.startProcess(file, commandLine, env, cwd, cols, rows, debug);
62
- this._pid = term.pid;
63
- this._innerPid = term.innerPid;
64
- }
50
+ var term = conptyNative.startProcess(file, cols, rows, debug, this._generatePipeName(), conptyInheritCursor, this._useConptyDll);
65
51
  // Not available on windows.
66
52
  this._fd = term.fd;
67
53
  // Generated incremental number that has no real purpose besides using it
@@ -71,10 +57,29 @@ var WindowsPtyAgent = /** @class */ (function () {
71
57
  this._outSocket = new net_1.Socket();
72
58
  this._outSocket.setEncoding('utf8');
73
59
  // The conout socket must be ready out on another thread to avoid deadlocks
74
- this._conoutSocketWorker = new windowsConoutConnection_1.ConoutConnection(term.conout, this._useConptyDll);
60
+ // We must wait for the worker to connect before calling conptyNative.connect()
61
+ // to avoid blocking the Node.js event loop in ConnectNamedPipe.
62
+ // See https://github.com/microsoft/node-pty/issues/763
63
+ this._conoutSocketWorker = options.conoutConnectionFactory(term.conout, this._useConptyDll);
64
+ // Store pending connection info - we'll complete the connection when worker is ready
65
+ this._pendingPtyInfo = { pty: this._pty, commandLine: commandLine, cwd: cwd, env: env };
66
+ // Never call connect() before the worker is ready, as ConnectNamedPipe
67
+ // would block the Node.js event loop while waiting for the output client.
68
+ this._connectionTimeout = setTimeout(function () {
69
+ _this._failPtyConnection(new Error('Timed out waiting for ConPTY output worker'));
70
+ }, options.connectionTimeout);
75
71
  this._conoutSocketWorker.onReady(function () {
72
+ if (!_this._pendingPtyInfo) {
73
+ return;
74
+ }
75
+ _this._clearConnectionTimeout();
76
76
  _this._conoutSocketWorker.connectSocket(_this._outSocket);
77
+ // Now that the worker has connected to the output pipe, we can safely call
78
+ // conptyNative.connect() which calls ConnectNamedPipe - it won't block because
79
+ // the client (worker) is already connected
80
+ _this._completePtyConnection();
77
81
  });
82
+ this._conoutSocketWorker.onError(function (error) { return _this._failPtyConnection(error); });
78
83
  this._outSocket.on('connect', function () {
79
84
  _this._outSocket.emit('ready_datapipe');
80
85
  });
@@ -85,11 +90,12 @@ var WindowsPtyAgent = /** @class */ (function () {
85
90
  writable: true
86
91
  });
87
92
  this._inSocket.setEncoding('utf8');
88
- if (this._useConpty) {
89
- var connect = this._ptyNative.connect(this._pty, commandLine, cwd, env, this._useConptyDll, function (c) { return _this._$onProcessExit(c); });
90
- this._innerPid = connect.pid;
91
- }
92
93
  }
94
+ Object.defineProperty(WindowsPtyAgent.prototype, "onError", {
95
+ get: function () { return this._onError.event; },
96
+ enumerable: false,
97
+ configurable: true
98
+ });
93
99
  Object.defineProperty(WindowsPtyAgent.prototype, "inSocket", {
94
100
  get: function () { return this._inSocket; },
95
101
  enumerable: false,
@@ -115,73 +121,104 @@ var WindowsPtyAgent = /** @class */ (function () {
115
121
  enumerable: false,
116
122
  configurable: true
117
123
  });
118
- WindowsPtyAgent.prototype.resize = function (cols, rows) {
119
- if (this._useConpty) {
120
- if (this._exitCode !== undefined) {
121
- throw new Error('Cannot resize a pty that has already exited');
124
+ WindowsPtyAgent.prototype._completePtyConnection = function () {
125
+ var _this = this;
126
+ var _a;
127
+ if (!this._pendingPtyInfo) {
128
+ return;
129
+ }
130
+ this._clearConnectionTimeout();
131
+ var _b = this._pendingPtyInfo, pty = _b.pty, commandLine = _b.commandLine, cwd = _b.cwd, env = _b.env;
132
+ this._pendingPtyInfo = undefined;
133
+ try {
134
+ var connect = conptyNative.connect(pty, commandLine, cwd, env, this._useConptyDll, function (c) { return _this._$onProcessExit(c); });
135
+ this._innerPid = connect.pid;
136
+ }
137
+ catch (err) {
138
+ // connect() runs from the conout worker's onReady callback, so a throw
139
+ // here would otherwise surface as an
140
+ // uncaughtException with no way for the consumer to observe it.
141
+ var code = (_a = /error code: (\d+)/.exec(err.message)) === null || _a === void 0 ? void 0 : _a[1];
142
+ this._exitCode = code ? parseInt(code, 10) : -1;
143
+ try {
144
+ this._ptyNative.kill(this._pty, this._useConptyDll);
122
145
  }
123
- this._ptyNative.resize(this._pty, cols, rows, this._useConptyDll);
146
+ catch ( /* already gone */_c) { /* already gone */ }
147
+ this._conoutSocketWorker.dispose();
148
+ this._inSocket.destroy();
149
+ this._outSocket.destroy();
150
+ this._onError.fire(err);
151
+ }
152
+ };
153
+ WindowsPtyAgent.prototype._failPtyConnection = function (error) {
154
+ if (!this._pendingPtyInfo) {
124
155
  return;
125
156
  }
126
- this._ptyNative.resize(this._pid, cols, rows);
157
+ this._clearConnectionTimeout();
158
+ this._pendingPtyInfo = undefined;
159
+ this._exitCode = -1;
160
+ try {
161
+ this._ptyNative.kill(this._pty, this._useConptyDll);
162
+ }
163
+ catch ( /* already gone */_a) { /* already gone */ }
164
+ this._conoutSocketWorker.dispose();
165
+ this._inSocket.destroy();
166
+ this._outSocket.destroy();
167
+ this._onError.fire(error);
127
168
  };
128
- WindowsPtyAgent.prototype.clear = function () {
129
- if (this._useConpty) {
130
- this._ptyNative.clear(this._pty, this._useConptyDll);
169
+ WindowsPtyAgent.prototype._clearConnectionTimeout = function () {
170
+ if (this._connectionTimeout) {
171
+ clearTimeout(this._connectionTimeout);
172
+ this._connectionTimeout = undefined;
173
+ }
174
+ };
175
+ WindowsPtyAgent.prototype.resize = function (cols, rows) {
176
+ if (this._exitCode !== undefined) {
177
+ throw new Error('Cannot resize a pty that has already exited');
131
178
  }
179
+ this._ptyNative.resize(this._pty, cols, rows, this._useConptyDll);
180
+ };
181
+ WindowsPtyAgent.prototype.clear = function () {
182
+ this._ptyNative.clear(this._pty, this._useConptyDll);
132
183
  };
133
184
  WindowsPtyAgent.prototype.kill = function () {
134
185
  var _this = this;
186
+ // Prevent deferred connection from completing after kill
187
+ this._clearConnectionTimeout();
188
+ this._pendingPtyInfo = undefined;
135
189
  // Tell the agent to kill the pty, this releases handles to the process
136
- if (this._useConpty) {
137
- if (!this._useConptyDll) {
138
- this._inSocket.readable = false;
139
- this._outSocket.readable = false;
140
- this._getConsoleProcessList().then(function (consoleProcessList) {
141
- consoleProcessList.forEach(function (pid) {
142
- try {
143
- process.kill(pid);
144
- }
145
- catch (e) {
146
- // Ignore if process cannot be found (kill ESRCH error)
147
- }
148
- });
149
- });
150
- this._ptyNative.kill(this._pty, this._useConptyDll);
151
- this._conoutSocketWorker.dispose();
152
- }
153
- else {
154
- // Close the input write handle to signal the end of session.
155
- this._inSocket.destroy();
156
- this._ptyNative.kill(this._pty, this._useConptyDll);
157
- this._outSocket.on('data', function () {
158
- _this._conoutSocketWorker.dispose();
190
+ if (!this._useConptyDll) {
191
+ this._inSocket.readable = false;
192
+ this._outSocket.readable = false;
193
+ this._getConsoleProcessList().then(function (consoleProcessList) {
194
+ consoleProcessList.forEach(function (pid) {
195
+ try {
196
+ process.kill(pid);
197
+ }
198
+ catch (e) {
199
+ // Ignore if process cannot be found (kill ESRCH error)
200
+ }
159
201
  });
160
- }
202
+ });
203
+ this._ptyNative.kill(this._pty, this._useConptyDll);
204
+ this._conoutSocketWorker.dispose();
161
205
  }
162
206
  else {
163
- // Because pty.kill closes the handle, it will kill most processes by itself.
164
- // Process IDs can be reused as soon as all handles to them are
165
- // dropped, so we want to immediately kill the entire console process list.
166
- // If we do not force kill all processes here, node servers in particular
167
- // seem to become detached and remain running (see
168
- // Microsoft/vscode#26807).
169
- var processList = this._ptyNative.getProcessList(this._pid);
170
- this._ptyNative.kill(this._pid, this._innerPid);
171
- processList.forEach(function (pid) {
172
- try {
173
- process.kill(pid);
174
- }
175
- catch (e) {
176
- // Ignore if process cannot be found (kill ESRCH error)
177
- }
207
+ // Close the input write handle to signal the end of session.
208
+ this._inSocket.destroy();
209
+ this._ptyNative.kill(this._pty, this._useConptyDll);
210
+ this._outSocket.on('data', function () {
211
+ _this._conoutSocketWorker.dispose();
178
212
  });
179
213
  }
180
214
  };
181
215
  WindowsPtyAgent.prototype._getConsoleProcessList = function () {
182
216
  var _this = this;
217
+ if (this._innerPid <= 0) {
218
+ return Promise.resolve([]);
219
+ }
183
220
  return new Promise(function (resolve) {
184
- var agent = child_process_1.fork(path.join(__dirname, 'conpty_console_list_agent'), [_this._innerPid.toString()]);
221
+ var agent = (0, child_process_1.fork)(path.join(__dirname, 'conpty_console_list_agent'), [_this._innerPid.toString()]);
185
222
  agent.on('message', function (message) {
186
223
  clearTimeout(timeout);
187
224
  resolve(message.consoleProcessList);
@@ -195,25 +232,13 @@ var WindowsPtyAgent = /** @class */ (function () {
195
232
  };
196
233
  Object.defineProperty(WindowsPtyAgent.prototype, "exitCode", {
197
234
  get: function () {
198
- if (this._useConpty) {
199
- return this._exitCode;
200
- }
201
- var winptyExitCode = this._ptyNative.getExitCode(this._innerPid);
202
- return winptyExitCode === -1 ? undefined : winptyExitCode;
235
+ return this._exitCode;
203
236
  },
204
237
  enumerable: false,
205
238
  configurable: true
206
239
  });
207
- WindowsPtyAgent.prototype._getWindowsBuildNumber = function () {
208
- var osVersion = (/(\d+)\.(\d+)\.(\d+)/g).exec(os.release());
209
- var buildNumber = 0;
210
- if (osVersion && osVersion.length === 4) {
211
- buildNumber = parseInt(osVersion[3]);
212
- }
213
- return buildNumber;
214
- };
215
240
  WindowsPtyAgent.prototype._generatePipeName = function () {
216
- return "conpty-" + Math.random() * 10000000;
241
+ return "conpty-".concat(Math.random() * 10000000);
217
242
  };
218
243
  /**
219
244
  * Triggered from the native side when a contpy process exits.
@@ -255,7 +280,7 @@ function argsToCommandLine(file, args) {
255
280
  if (args.length === 0) {
256
281
  return file;
257
282
  }
258
- return argsToCommandLine(file, []) + " " + args;
283
+ return "".concat(argsToCommandLine(file, []), " ").concat(args);
259
284
  }
260
285
  var argv = [file];
261
286
  Array.prototype.push.apply(argv, args);
@@ -303,7 +328,6 @@ function argsToCommandLine(file, args) {
303
328
  }
304
329
  return result;
305
330
  }
306
- exports.argsToCommandLine = argsToCommandLine;
307
331
  function isCommandLine(args) {
308
332
  return typeof args === 'string';
309
333
  }
@@ -8,10 +8,12 @@ var __extends = (this && this.__extends) || (function () {
8
8
  var extendStatics = function (d, b) {
9
9
  extendStatics = Object.setPrototypeOf ||
10
10
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
11
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12
12
  return extendStatics(d, b);
13
13
  };
14
14
  return function (d, b) {
15
+ if (typeof b !== "function" && b !== null)
16
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
17
  extendStatics(d, b);
16
18
  function __() { this.constructor = d; }
17
19
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -37,7 +39,7 @@ var WindowsTerminal = /** @class */ (function (_super) {
37
39
  if (opt.encoding) {
38
40
  console.warn('Setting encoding on Windows is not supported');
39
41
  }
40
- var env = utils_1.assign({}, opt.env);
42
+ var env = (0, utils_1.assign)({}, opt.env);
41
43
  _this._cols = opt.cols || terminal_1.DEFAULT_COLS;
42
44
  _this._rows = opt.rows || terminal_1.DEFAULT_ROWS;
43
45
  var cwd = opt.cwd || process.cwd();
@@ -48,8 +50,14 @@ var WindowsTerminal = /** @class */ (function (_super) {
48
50
  // Functions that need to run after `ready` event is emitted.
49
51
  _this._deferreds = [];
50
52
  // Create new termal.
51
- _this._agent = new windowsPtyAgent_1.WindowsPtyAgent(file, args, parsedEnv, cwd, _this._cols, _this._rows, false, opt.useConpty, opt.useConptyDll, opt.conptyInheritCursor);
53
+ _this._agent = new windowsPtyAgent_1.WindowsPtyAgent(file, args, parsedEnv, cwd, _this._cols, _this._rows, false, opt.useConptyDll, opt.conptyInheritCursor);
52
54
  _this._socket = _this._agent.outSocket;
55
+ // The socket 'close' handler that drives 'exit' is only attached after
56
+ // ready_datapipe, which never fires when connect() fails.
57
+ _this._agent.onError(function () {
58
+ _this._close();
59
+ _this.emit('exit', _this._agent.exitCode);
60
+ });
53
61
  // Not available until `ready` event emitted.
54
62
  _this._pid = _this._agent.innerPid;
55
63
  _this._fd = _this._agent.fd;
@@ -57,6 +65,8 @@ var WindowsTerminal = /** @class */ (function (_super) {
57
65
  // The forked windows terminal is not available until `ready` event is
58
66
  // emitted.
59
67
  _this._socket.on('ready_datapipe', function () {
68
+ // Update pid now that the agent has connected
69
+ _this._pid = _this._agent.innerPid;
60
70
  // Run deferreds and set ready state once the first data event is received.
61
71
  _this._socket.once('data', function () {
62
72
  // Wait until the first data event is fired then we can run deferreds.
@@ -121,7 +131,7 @@ var WindowsTerminal = /** @class */ (function (_super) {
121
131
  /**
122
132
  * TTY
123
133
  */
124
- WindowsTerminal.prototype.resize = function (cols, rows) {
134
+ WindowsTerminal.prototype.resize = function (cols, rows, pixelSize) {
125
135
  var _this = this;
126
136
  if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
127
137
  throw new Error('resizing must be done using positive cols and rows');
@@ -10,13 +10,13 @@ var conoutPipeName = worker_threads_1.workerData.conoutPipeName;
10
10
  var conoutSocket = new net_1.Socket();
11
11
  conoutSocket.setEncoding('utf8');
12
12
  conoutSocket.connect(conoutPipeName, function () {
13
- var server = net_1.createServer(function (workerSocket) {
13
+ var server = (0, net_1.createServer)(function (workerSocket) {
14
14
  conoutSocket.pipe(workerSocket);
15
15
  });
16
- server.listen(conout_1.getWorkerPipeName(conoutPipeName));
16
+ server.listen((0, conout_1.getWorkerPipeName)(conoutPipeName));
17
17
  if (!worker_threads_1.parentPort) {
18
18
  throw new Error('worker_threads parentPort is null');
19
19
  }
20
- worker_threads_1.parentPort.postMessage(1 /* READY */);
20
+ worker_threads_1.parentPort.postMessage(1 /* ConoutWorkerMessage.READY */);
21
21
  });
22
22
  //# sourceMappingURL=conoutSocketWorker.js.map
@@ -1 +1 @@
1
- {"name":"node-pty","version":"1.1.0","license":"MIT","main":"./lib/index.js","dependencies":{"node-addon-api":"^7.1.0"}}
1
+ {"name":"node-pty","version":"1.2.0-beta.15","license":"MIT","main":"./lib/index.js","dependencies":{"node-addon-api":"^7.1.0"}}
@@ -12,11 +12,7 @@ const BUILD_FILES = [
12
12
  path.join(RELEASE_DIR, 'conpty_console_list.pdb'),
13
13
  path.join(RELEASE_DIR, 'pty.node'),
14
14
  path.join(RELEASE_DIR, 'pty.pdb'),
15
- path.join(RELEASE_DIR, 'spawn-helper'),
16
- path.join(RELEASE_DIR, 'winpty-agent.exe'),
17
- path.join(RELEASE_DIR, 'winpty-agent.pdb'),
18
- path.join(RELEASE_DIR, 'winpty.dll'),
19
- path.join(RELEASE_DIR, 'winpty.pdb')
15
+ path.join(RELEASE_DIR, 'spawn-helper')
20
16
  ];
21
17
  const CONPTY_DIR = path.join(__dirname, '../third_party/conpty');
22
18
  const CONPTY_SUPPORTED_ARCH = ['x64', 'arm64'];
@@ -1 +1 @@
1
- var i=Object.defineProperty;var s=(r,t)=>i(r,"name",{value:t,configurable:!0});import{Settings as h}from"../system/settings/index.mjs";import{Errors as o,Clean as n,Convert as u,Create as c,Default as a,Decode as C,Encode as l,HasCodec as d,Parser as p,ParseError as x}from"../value/index.mjs";import{Build as T}from"../schema/index.mjs";export class Validator{static{s(this,"Validator")}constructor(t,e){this.hasCodec=d(t,e),this.buildResult=T(t,e),this.evaluateResult=this.buildResult.Evaluate()}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(t){return this.evaluateResult.Check(t)}Parse(t){if(this.Check(t))return t;if(h.Get().correctiveParse)return p(this.Context(),this.Type(),t);throw new x(t,this.Errors(t))}Errors(t){return this.IsAccelerated()&&this.Check(t)?[]:o(this.Context(),this.Type(),t)}Clean(t){return n(this.Context(),this.Type(),t)}Convert(t){return u(this.Context(),this.Type(),t)}Create(){return c(this.Context(),this.Type())}Default(t){return a(this.Context(),this.Type(),t)}Decode(t){return this.hasCodec?C(this.Context(),this.Type(),t):this.Parse(t)}Encode(t){return this.hasCodec?l(this.Context(),this.Type(),t):this.Parse(t)}}
1
+ var u=Object.defineProperty;var h=(o,t)=>u(o,"name",{value:t,configurable:!0});import{Settings as n}from"../system/settings/index.mjs";import{Arguments as c}from"../system/arguments/index.mjs";import{Base as l}from"../type/index.mjs";import{Errors as a,Clean as C,Convert as d,Create as p,Default as R,Decode as f,Encode as m,HasCodec as x,Parser as y,ParseError as T}from"../value/index.mjs";import{Build as E,BuildResult as b,EvaluateResult as k}from"../schema/index.mjs";export class Validator extends l{static{h(this,"Validator")}constructor(...t){super();const e=c.Match(t,{3:(s,r,i)=>[s,r,i],2:(s,r)=>[s,r]});if(e.length===3&&e[1]instanceof b&&e[2]instanceof k){const[s,r,i]=e;this.hasCodec=s,this.buildResult=r,this.evaluateResult=i}else{const[s,r]=e;this.hasCodec=x(s,r),this.buildResult=E(s,r),this.evaluateResult=this.buildResult.Evaluate()}}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(t){return this.evaluateResult.Check(t)}Parse(t){if(this.Check(t))return t;if(n.Get().correctiveParse)return y(this.Context(),this.Type(),t);throw new T(t,this.Errors(t))}Errors(t){return this.IsAccelerated()&&this.Check(t)?[]:a(this.Context(),this.Type(),t)}Clean(t){return C(this.Context(),this.Type(),t)}Convert(t){return d(this.Context(),this.Type(),t)}Create(){return p(this.Context(),this.Type())}Default(t){return R(this.Context(),this.Type(),t)}Decode(t){return this.hasCodec?f(this.Context(),this.Type(),t):this.Parse(t)}Encode(t){return this.hasCodec?m(this.Context(),this.Type(),t):this.Parse(t)}Clone(){return new Validator(this.hasCodec,this.buildResult,this.evaluateResult)}}
@@ -1 +1 @@
1
- var g=Object.defineProperty;var t=(n,e)=>g(n,"name",{value:e,configurable:!0});import{Unreachable as h}from"../system/unreachable/index.mjs";import*as I from"./_puny.mjs";function p(n){return new RegExp("\\p{Mn}","u").test(String.fromCodePoint(n))}t(p,"IsNonspacingMark");function C(n){return new RegExp("\\p{Mc}","u").test(String.fromCodePoint(n))}t(C,"IsSpacingCombiningMark");function S(n){return new RegExp("\\p{Me}","u").test(String.fromCodePoint(n))}t(S,"IsEnclosingMark");function m(n){return p(n)||C(n)||S(n)}t(m,"IsCombiningMark");const k=new Set([1600,2042,12334,12335,12337,12338,12339,12340,12341,12347]),A=new Set([2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,6980,7082,7083,43456,69702,69759,69817,69939,69940,70080,70197,70477,70722,70850,71103,71231,71350,72767,73028,73029]);function P(n){return new RegExp("\\p{Script=Greek}","u").test(String.fromCodePoint(n))}t(P,"IsGreek");function L(n){return new RegExp("\\p{Script=Hebrew}","u").test(String.fromCodePoint(n))}t(L,"IsHebrew");function H(n){return new RegExp("\\p{Script=Hiragana}","u").test(String.fromCodePoint(n))}t(H,"IsHiragana");function M(n){return new RegExp("\\p{Script=Katakana}","u").test(String.fromCodePoint(n))}t(M,"IsKatakana");function w(n){return new RegExp("\\p{Script=Han}","u").test(String.fromCodePoint(n))}t(w,"IsHan");function y(n){return n>=1632&&n<=1641}t(y,"IsArabicIndicDigit");function D(n){return n>=1776&&n<=1785}t(D,"IsExtendedArabicIndicDigit");function u(n){return A.has(n)}t(u,"IsVirama");function d(n){if(n.length===0)return h();const e=[...n].map(f=>f.codePointAt(0)),r=e.length;if(e[0]===45||e[r-1]===45||r>=4&&e[2]===45&&e[3]===45||m(e[0]))return!1;let a=!1,o=!1,x=!1;for(let f=0;f<r;f++){const s=e[f];if(k.has(s))return!1;(H(s)||M(s)||w(s))&&(a=!0),y(s)&&(o=!0),D(s)&&(x=!0);const i=e[f-1],c=e[f+1];switch(s){case 183:if(i!==108||c!==108)return!1;break;case 885:if(c===void 0||!P(c))return!1;break;case 1523:case 1524:if(i===void 0||!L(i))return!1;break;case 8204:if(i===void 0||i<128&&!u(i))return!1;break;case 8205:if(i===void 0||!u(i))return!1;break;case 12539:break}}return!(n.includes("・")&&!a||o&&x)}t(d,"IsUnicodeLabel");function E(n){if(n.charCodeAt(0)===45||n.charCodeAt(n.length-1)===45||n.length>=4&&n.charCodeAt(2)===45&&n.charCodeAt(3)===45)return!1;for(let e=0;e<n.length;e++){const r=n.charCodeAt(e);if(!(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45))return!1}return!0}t(E,"IsAsciiLabel");function b(n){return n.toLowerCase().startsWith("xn--")}t(b,"IsPuny");function l(n){try{const e=n.slice(4).toLowerCase();if(e.lastIndexOf("-")===0)return!1;const a=I.Decode(e);return a?d(a):!1}catch{return!1}}t(l,"IsPunyLabel");export function IsIdnLabel(n){return n.length===0||n.length>63?!1:b(n)?l(n):d(n)}t(IsIdnLabel,"IsIdnLabel");export function IsLabel(n){return n.length===0||n.length>63?!1:b(n)?l(n):E(n)}t(IsLabel,"IsLabel");
1
+ var g=Object.defineProperty;var t=(n,e)=>g(n,"name",{value:e,configurable:!0});import*as l from"./_puny.mjs";function I(n){return new RegExp("\\p{Mn}","u").test(String.fromCodePoint(n))}t(I,"IsNonspacingMark");function h(n){return new RegExp("\\p{Mc}","u").test(String.fromCodePoint(n))}t(h,"IsSpacingCombiningMark");function p(n){return new RegExp("\\p{Me}","u").test(String.fromCodePoint(n))}t(p,"IsEnclosingMark");function C(n){return I(n)||h(n)||p(n)}t(C,"IsCombiningMark");const S=new Set([1600,2042,12334,12335,12337,12338,12339,12340,12341,12347]),m=new Set([2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,6980,7082,7083,43456,69702,69759,69817,69939,69940,70080,70197,70477,70722,70850,71103,71231,71350,72767,73028,73029]);function A(n){return new RegExp("\\p{Script=Greek}","u").test(String.fromCodePoint(n))}t(A,"IsGreek");function k(n){return new RegExp("\\p{Script=Hebrew}","u").test(String.fromCodePoint(n))}t(k,"IsHebrew");function P(n){return new RegExp("\\p{Script=Hiragana}","u").test(String.fromCodePoint(n))}t(P,"IsHiragana");function L(n){return new RegExp("\\p{Script=Katakana}","u").test(String.fromCodePoint(n))}t(L,"IsKatakana");function M(n){return new RegExp("\\p{Script=Han}","u").test(String.fromCodePoint(n))}t(M,"IsHan");function w(n){return n>=1632&&n<=1641}t(w,"IsArabicIndicDigit");function H(n){return n>=1776&&n<=1785}t(H,"IsExtendedArabicIndicDigit");function D(n){return m.has(n)}t(D,"IsVirama");function u(n){if(n.length===0)return!1;const e=[...n].map(i=>i.codePointAt(0)),r=e.length;if(e[0]===45||e[r-1]===45||r>=4&&e[2]===45&&e[3]===45||C(e[0]))return!1;let a=!1,o=!1,x=!1;for(let i=0;i<r;i++){const f=e[i];if(S.has(f))return!1;(P(f)||L(f)||M(f))&&(a=!0),w(f)&&(o=!0),H(f)&&(x=!0);const s=e[i-1],c=e[i+1];switch(f){case 183:if(s!==108||c!==108)return!1;break;case 885:if(c===void 0||!A(c))return!1;break;case 1523:case 1524:if(s===void 0||!k(s))return!1;break;case 8205:if(s===void 0||!D(s))return!1;break;case 12539:break}}return!(n.includes("・")&&!a||o&&x)}t(u,"IsUnicodeLabel");function y(n){if(n.charCodeAt(0)===45||n.charCodeAt(n.length-1)===45||n.length>=4&&n.charCodeAt(2)===45&&n.charCodeAt(3)===45)return!1;for(let e=0;e<n.length;e++){const r=n.charCodeAt(e);if(!(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45))return!1}return!0}t(y,"IsAsciiLabel");function d(n){return n.toLowerCase().startsWith("xn--")}t(d,"IsPuny");function b(n){try{return u(l.Decode(n.slice(4)))}catch{return!1}}t(b,"IsPunyLabel");export function IsIdnLabel(n){return n.length===0||n.length>63?!1:d(n)?b(n):u(n)}t(IsIdnLabel,"IsIdnLabel");export function IsLabel(n){return n.length===0||n.length>63?!1:d(n)?b(n):y(n)}t(IsLabel,"IsLabel");
@@ -1 +1 @@
1
- var u=Object.defineProperty;var E=(o,n)=>u(o,"name",{value:n,configurable:!0});import{Unreachable as w}from"../system/unreachable/index.mjs";const r=36,d=1,N=26,C=38,A=700,D=72,P=128;function _(o,n,s){o=s?Math.floor(o/A):o>>1,o+=Math.floor(o/n);let t=0;for(;o>(r-d)*N>>1;)o=Math.floor(o/(r-d)),t+=r;return t+Math.floor((r-d+1)*o/(o+C))}E(_,"Adapt");export function Decode(o){const n=[];let s=P,t=0,h=D;const l=o.lastIndexOf("-");if(l>0)for(let i=0;i<l;i++){const c=o.charCodeAt(i);if(c>=128)throw new Error("Invalid punycode: non-basic before delimiter");n.push(c)}let x=l<0?0:l+1;for(;x<o.length;){const i=t;let c=1,f=r;for(;;){if(x>=o.length)throw new Error("Invalid punycode: unexpected end of input");const e=o.charCodeAt(x++);let I;if(e>=97&&e<=122)I=e-97;else if(e>=48&&e<=57)I=e-48+26;else if(e>=65&&e<=90)w();else throw new Error("Invalid punycode: bad digit character");t+=I*c;const a=f<=h?d:f>=h+N?N:f-h;if(I<a)break;c*=r-a,f+=r}const p=n.length+1;h=_(t-i,p,i===0),s+=Math.floor(t/p),t%=p,n.splice(t,0,s),t++}return globalThis.String.fromCodePoint(...n)}E(Decode,"Decode");
1
+ var U=Object.defineProperty;var O=(o,E)=>U(o,"name",{value:E,configurable:!0});const A=36,h=1,l=26,f=38,M=700,x=72,T=128;function Y(o,E,i){o=i?Math.floor(o/700):o>>1,o+=Math.floor(o/E);let t=0;for(;o>455;)o=Math.floor(o/35),t+=36;return t+Math.floor(36*o/(o+38))}O(Y,"Adapt");export function Decode(o){const E=[];let i=128,t=0,c=72;const _=o.lastIndexOf("-");if(_>0)for(let e=0;e<_;e++){const N=o.charCodeAt(e);if(N>=128)throw new Error("Invalid punycode: non-basic before delimiter");E.push(N)}let D=_<0?0:_+1;for(;D<o.length;){const e=t;let N=1,C=36;for(;;){if(D>=o.length)throw new Error("Invalid punycode: unexpected end of input");const n=o.charCodeAt(D++);let r;if(n>=97&&n<=122)r=n-97;else if(n>=48&&n<=57)r=n-48+26;else if(n>=65&&n<=90)r=n-65;else throw new Error("Invalid punycode: bad digit character");t+=r*N;const I=C<=c?1:C>=c+26?26:C-c;if(r<I)break;N*=36-I,C+=36}const P=E.length+1;c=Y(t-e,P,e===0),i+=Math.floor(t/P),t%=P,E.splice(t,0,i),t++}return globalThis.String.fromCodePoint(...E)}O(Decode,"Decode");
@@ -1 +1 @@
1
- var n=Object.defineProperty;var f=(t,i)=>n(t,"name",{value:i,configurable:!0});const u=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;export function IsUuid(t){return u.test(t)}f(IsUuid,"IsUuid");
1
+ var n=Object.defineProperty;var t=(u,i)=>n(u,"name",{value:i,configurable:!0});const f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;export function IsUuid(u){return f.test(u)}t(IsUuid,"IsUuid");
@@ -1 +1 @@
1
- var i=Object.defineProperty;var r=(t,n)=>i(t,"name",{value:n,configurable:!0});import*as o from"./guard.mjs";const $=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function c(t){return $.test(t)}r(c,"IsIdentifier");export function And(t,n){return`(${t} && ${n})`}r(And,"And");export function Or(t,n){return`(${t} || ${n})`}r(Or,"Or");export function Not(t){return`!(${t})`}r(Not,"Not");export function IsArray(t){return`Array.isArray(${t})`}r(IsArray,"IsArray");export function IsBigInt(t){return`typeof ${t} === "bigint"`}r(IsBigInt,"IsBigInt");export function IsBoolean(t){return`typeof ${t} === "boolean"`}r(IsBoolean,"IsBoolean");export function IsInteger(t){return`Number.isInteger(${t})`}r(IsInteger,"IsInteger");export function IsNull(t){return`${t} === null`}r(IsNull,"IsNull");export function IsNumber(t){return`Number.isFinite(${t})`}r(IsNumber,"IsNumber");export function IsObjectNotArray(t){return And(IsObject(t),Not(IsArray(t)))}r(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return`typeof ${t} === "object" && ${t} !== null`}r(IsObject,"IsObject");export function IsString(t){return`typeof ${t} === "string"`}r(IsString,"IsString");export function IsSymbol(t){return`typeof ${t} === "symbol"`}r(IsSymbol,"IsSymbol");export function IsUndefined(t){return`${t} === undefined`}r(IsUndefined,"IsUndefined");export function IsFunction(t){return`typeof ${t} === "function"`}r(IsFunction,"IsFunction");export function IsConstructor(t){return`Guard.IsConstructor(${t})`}r(IsConstructor,"IsConstructor");export function IsEqual(t,n){return`${t} === ${n}`}r(IsEqual,"IsEqual");export function IsGreaterThan(t,n){return`${t} > ${n}`}r(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,n){return`${t} < ${n}`}r(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,n){return`${t} <= ${n}`}r(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,n){return`${t} >= ${n}`}r(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMinLength(t,n){return`Guard.IsMinLength(${t}, ${n})`}r(IsMinLength,"IsMinLength");export function IsMaxLength(t,n){return`Guard.IsMaxLength(${t}, ${n})`}r(IsMaxLength,"IsMaxLength");export function Every(t,n,e,u){return o.IsEqual(n,"0")?`${t}.every((${e[0]}, ${e[1]}) => ${u})`:`((value, callback) => { for(let index = ${n}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${t}, (${e[0]}, ${e[1]}) => ${u})`}r(Every,"Every");export function Entries(t){return`Object.entries(${t})`}r(Entries,"Entries");export function Keys(t){return`Object.getOwnPropertyNames(${t})`}r(Keys,"Keys");export function HasPropertyKey(t,n){return o.IsEqual(n,'"__proto__"')||o.IsEqual(n,'"constructor"')?`Object.prototype.hasOwnProperty.call(${t}, ${n})`:`${n} in ${t}`}r(HasPropertyKey,"HasPropertyKey");export function IsDeepEqual(t,n){return`Guard.IsDeepEqual(${t}, ${n})`}r(IsDeepEqual,"IsDeepEqual");export function ArrayLiteral(t){return`[${t.join(", ")}]`}r(ArrayLiteral,"ArrayLiteral");export function ArrowFunction(t,n){return`((${t.join(", ")}) => ${n})`}r(ArrowFunction,"ArrowFunction");export function Call(t,n){return`${t}(${n.join(", ")})`}r(Call,"Call");export function New(t,n){return`new ${t}(${n.join(", ")})`}r(New,"New");export function Member(t,n){return`${t}${c(n)?`.${n}`:`[${Constant(n)}]`}`}r(Member,"Member");export function Constant(t){return o.IsString(t)?JSON.stringify(t):`${t}`}r(Constant,"Constant");export function Ternary(t,n,e){return`(${t} ? ${n} : ${e})`}r(Ternary,"Ternary");export function Statements(t){return`{ ${t.join("; ")}; }`}r(Statements,"Statements");export function ConstDeclaration(t,n){return`const ${t} = ${n}`}r(ConstDeclaration,"ConstDeclaration");export function If(t,n){return`if(${t}) { ${n} }`}r(If,"If");export function Return(t){return`return ${t}`}r(Return,"Return");export function ReduceAnd(t){return o.IsEqual(t.length,0)?"true":t.reduce((n,e)=>And(n,e))}r(ReduceAnd,"ReduceAnd");export function ReduceOr(t){return o.IsEqual(t.length,0)?"false":t.reduce((n,e)=>Or(n,e))}r(ReduceOr,"ReduceOr");export function PrefixIncrement(t){return`++${t}`}r(PrefixIncrement,"PrefixIncrement");export function MultipleOf(t,n){return`Guard.IsMultipleOf(${t}, ${n})`}r(MultipleOf,"MultipleOf");
1
+ var i=Object.defineProperty;var n=(t,r)=>i(t,"name",{value:r,configurable:!0});import*as o from"./guard.mjs";const $=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function c(t){return $.test(t)}n(c,"IsIdentifier");export function And(t,r){return`(${t} && ${r})`}n(And,"And");export function Or(t,r){return`(${t} || ${r})`}n(Or,"Or");export function Not(t){return`!(${t})`}n(Not,"Not");export function IsArray(t){return`Array.isArray(${t})`}n(IsArray,"IsArray");export function IsAsyncIterator(t){return`Guard.IsAsyncIterator(${t})`}n(IsAsyncIterator,"IsAsyncIterator");export function IsBigInt(t){return`typeof ${t} === "bigint"`}n(IsBigInt,"IsBigInt");export function IsBoolean(t){return`typeof ${t} === "boolean"`}n(IsBoolean,"IsBoolean");export function IsInteger(t){return`Number.isInteger(${t})`}n(IsInteger,"IsInteger");export function IsIterator(t){return`Guard.IsIterator(${t})`}n(IsIterator,"IsIterator");export function IsNull(t){return`${t} === null`}n(IsNull,"IsNull");export function IsNumber(t){return`Number.isFinite(${t})`}n(IsNumber,"IsNumber");export function IsObjectNotArray(t){return And(IsObject(t),Not(IsArray(t)))}n(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return`typeof ${t} === "object" && ${t} !== null`}n(IsObject,"IsObject");export function IsString(t){return`typeof ${t} === "string"`}n(IsString,"IsString");export function IsSymbol(t){return`typeof ${t} === "symbol"`}n(IsSymbol,"IsSymbol");export function IsUndefined(t){return`${t} === undefined`}n(IsUndefined,"IsUndefined");export function IsFunction(t){return`typeof ${t} === "function"`}n(IsFunction,"IsFunction");export function IsConstructor(t){return`Guard.IsConstructor(${t})`}n(IsConstructor,"IsConstructor");export function IsEqual(t,r){return`${t} === ${r}`}n(IsEqual,"IsEqual");export function IsGreaterThan(t,r){return`${t} > ${r}`}n(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,r){return`${t} < ${r}`}n(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,r){return`${t} <= ${r}`}n(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,r){return`${t} >= ${r}`}n(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMinLength(t,r){return`Guard.IsMinLength(${t}, ${r})`}n(IsMinLength,"IsMinLength");export function IsMaxLength(t,r){return`Guard.IsMaxLength(${t}, ${r})`}n(IsMaxLength,"IsMaxLength");export function Every(t,r,e,u){return o.IsEqual(r,"0")?`${t}.every((${e[0]}, ${e[1]}) => ${u})`:`((value, callback) => { for(let index = ${r}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${t}, (${e[0]}, ${e[1]}) => ${u})`}n(Every,"Every");export function Entries(t){return`Object.entries(${t})`}n(Entries,"Entries");export function Keys(t){return`Object.getOwnPropertyNames(${t})`}n(Keys,"Keys");export function HasPropertyKey(t,r){return o.IsEqual(r,'"__proto__"')||o.IsEqual(r,'"constructor"')?`Object.prototype.hasOwnProperty.call(${t}, ${r})`:`${r} in ${t}`}n(HasPropertyKey,"HasPropertyKey");export function IsDeepEqual(t,r){return`Guard.IsDeepEqual(${t}, ${r})`}n(IsDeepEqual,"IsDeepEqual");export function ArrayLiteral(t){return`[${t.join(", ")}]`}n(ArrayLiteral,"ArrayLiteral");export function ArrowFunction(t,r){return`((${t.join(", ")}) => ${r})`}n(ArrowFunction,"ArrowFunction");export function Call(t,r){return`${t}(${r.join(", ")})`}n(Call,"Call");export function New(t,r){return`new ${t}(${r.join(", ")})`}n(New,"New");export function Member(t,r){return`${t}${c(r)?`.${r}`:`[${Constant(r)}]`}`}n(Member,"Member");export function Constant(t){return o.IsString(t)?JSON.stringify(t):`${t}`}n(Constant,"Constant");export function Ternary(t,r,e){return`(${t} ? ${r} : ${e})`}n(Ternary,"Ternary");export function Statements(t){return`{ ${t.join("; ")}; }`}n(Statements,"Statements");export function ConstDeclaration(t,r){return`const ${t} = ${r}`}n(ConstDeclaration,"ConstDeclaration");export function If(t,r){return`if(${t}) { ${r} }`}n(If,"If");export function Return(t){return`return ${t}`}n(Return,"Return");export function ReduceAnd(t){return o.IsEqual(t.length,0)?"true":t.reduce((r,e)=>And(r,e))}n(ReduceAnd,"ReduceAnd");export function ReduceOr(t){return o.IsEqual(t.length,0)?"false":t.reduce((r,e)=>Or(r,e))}n(ReduceOr,"ReduceOr");export function PrefixIncrement(t){return`++${t}`}n(PrefixIncrement,"PrefixIncrement");export function MultipleOf(t,r){return`Guard.IsMultipleOf(${t}, ${r})`}n(MultipleOf,"MultipleOf");
@@ -1 +1 @@
1
- var c=Object.defineProperty;var r=(t,n)=>c(t,"name",{value:n,configurable:!0});import*as s from"./string.mjs";export function IsArray(t){return Array.isArray(t)}r(IsArray,"IsArray");export function IsBigInt(t){return IsEqual(typeof t,"bigint")}r(IsBigInt,"IsBigInt");export function IsBoolean(t){return IsEqual(typeof t,"boolean")}r(IsBoolean,"IsBoolean");export function IsConstructor(t){if(IsUndefined(t)||!IsFunction(t))return!1;const n=Function.prototype.toString.call(t);return!!(/^class\s/.test(n)||/\[native code\]/.test(n))}r(IsConstructor,"IsConstructor");export function IsFunction(t){return IsEqual(typeof t,"function")}r(IsFunction,"IsFunction");export function IsInteger(t){return Number.isInteger(t)}r(IsInteger,"IsInteger");export function IsNull(t){return IsEqual(t,null)}r(IsNull,"IsNull");export function IsNumber(t){return Number.isFinite(t)}r(IsNumber,"IsNumber");export function IsObjectNotArray(t){return IsObject(t)&&!IsArray(t)}r(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return IsEqual(typeof t,"object")&&!IsNull(t)}r(IsObject,"IsObject");export function IsString(t){return IsEqual(typeof t,"string")}r(IsString,"IsString");export function IsSymbol(t){return IsEqual(typeof t,"symbol")}r(IsSymbol,"IsSymbol");export function IsUndefined(t){return IsEqual(t,void 0)}r(IsUndefined,"IsUndefined");export function IsEqual(t,n){return t===n}r(IsEqual,"IsEqual");export function IsGreaterThan(t,n){return t>n}r(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,n){return t<n}r(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,n){return t<=n}r(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,n){return t>=n}r(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMultipleOf(t,n){if(IsBigInt(t)||IsBigInt(n))return BigInt(t)%BigInt(n)===0n;const o=1e-10;if(!IsNumber(t)||IsInteger(t)&&1/n%1===0)return!0;const e=t%n;return Math.min(Math.abs(e),Math.abs(e-n),Math.abs(e+n))<o}r(IsMultipleOf,"IsMultipleOf");export function IsClassInstance(t){if(!IsObject(t))return!1;const n=globalThis.Object.getPrototypeOf(t);return IsNull(n)?!1:IsEqual(typeof n.constructor,"function")&&!(IsEqual(n.constructor,globalThis.Object)||IsEqual(n.constructor.name,"Object"))}r(IsClassInstance,"IsClassInstance");export function IsValueLike(t){return IsBigInt(t)||IsBoolean(t)||IsNull(t)||IsNumber(t)||IsString(t)||IsUndefined(t)}r(IsValueLike,"IsValueLike");export function GraphemeCount(t){return s.GraphemeCount(t)}r(GraphemeCount,"GraphemeCount");export function IsMaxLength(t,n){return s.IsMaxLengthFast(t,n)}r(IsMaxLength,"IsMaxLength");export function IsMinLength(t,n){return s.IsMinLengthFast(t,n)}r(IsMinLength,"IsMinLength");export function Every(t,n,o){for(let e=n;e<t.length;e++)if(!o(t[e],e))return!1;return!0}r(Every,"Every");export function EveryAll(t,n,o){let e=!0;for(let u=n;u<t.length;u++)o(t[u],u)||(e=!1);return e}r(EveryAll,"EveryAll");export function ShiftLeft(t,n,o){return IsEqual(t.length,0)?o():n(t[0],t.slice(1))}r(ShiftLeft,"ShiftLeft");export function IsUnsafePropertyKey(t){return IsEqual(t,"__proto__")||IsEqual(t,"constructor")||IsEqual(t,"prototype")}r(IsUnsafePropertyKey,"IsUnsafePropertyKey");export function HasPropertyKey(t,n){return IsUnsafePropertyKey(n)?Object.prototype.hasOwnProperty.call(t,n):n in t}r(HasPropertyKey,"HasPropertyKey");export function EntriesRegExp(t){return Keys(t).map(n=>[new RegExp(`^${n}$`),t[n]])}r(EntriesRegExp,"EntriesRegExp");export function Entries(t){return Object.entries(t)}r(Entries,"Entries");export function Keys(t){return Object.getOwnPropertyNames(t)}r(Keys,"Keys");export function Symbols(t){return Object.getOwnPropertySymbols(t)}r(Symbols,"Symbols");export function Values(t){return Object.values(t)}r(Values,"Values");function f(t,n){if(!IsObject(n))return!1;const o=Keys(t);return IsEqual(o.length,Keys(n).length)&&o.every(e=>IsDeepEqual(t[e],n[e]))}r(f,"DeepEqualObject");function p(t,n){return IsArray(n)&&IsEqual(t.length,n.length)&&t.every((o,e)=>IsDeepEqual(t[e],n[e]))}r(p,"DeepEqualArray");export function IsDeepEqual(t,n){return IsArray(t)?p(t,n):IsObject(t)?f(t,n):IsEqual(t,n)}r(IsDeepEqual,"IsDeepEqual");
1
+ var c=Object.defineProperty;var n=(t,r)=>c(t,"name",{value:r,configurable:!0});import*as s from"./string.mjs";export function IsArray(t){return Array.isArray(t)}n(IsArray,"IsArray");export function IsAsyncIterator(t){return IsObject(t)&&Symbol.asyncIterator in t}n(IsAsyncIterator,"IsAsyncIterator");export function IsBigInt(t){return IsEqual(typeof t,"bigint")}n(IsBigInt,"IsBigInt");export function IsBoolean(t){return IsEqual(typeof t,"boolean")}n(IsBoolean,"IsBoolean");export function IsConstructor(t){if(IsUndefined(t)||!IsFunction(t))return!1;const r=Function.prototype.toString.call(t);return!!(/^class\s/.test(r)||/\[native code\]/.test(r))}n(IsConstructor,"IsConstructor");export function IsFunction(t){return IsEqual(typeof t,"function")}n(IsFunction,"IsFunction");export function IsInteger(t){return Number.isInteger(t)}n(IsInteger,"IsInteger");export function IsIterator(t){return IsObject(t)&&Symbol.iterator in t}n(IsIterator,"IsIterator");export function IsNull(t){return IsEqual(t,null)}n(IsNull,"IsNull");export function IsNumber(t){return Number.isFinite(t)}n(IsNumber,"IsNumber");export function IsObjectNotArray(t){return IsObject(t)&&!IsArray(t)}n(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return IsEqual(typeof t,"object")&&!IsNull(t)}n(IsObject,"IsObject");export function IsString(t){return IsEqual(typeof t,"string")}n(IsString,"IsString");export function IsSymbol(t){return IsEqual(typeof t,"symbol")}n(IsSymbol,"IsSymbol");export function IsUndefined(t){return IsEqual(t,void 0)}n(IsUndefined,"IsUndefined");export function IsEqual(t,r){return t===r}n(IsEqual,"IsEqual");export function IsGreaterThan(t,r){return t>r}n(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,r){return t<r}n(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,r){return t<=r}n(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,r){return t>=r}n(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMultipleOf(t,r){if(IsBigInt(t)||IsBigInt(r))return BigInt(t)%BigInt(r)===0n;const o=1e-10;if(!IsNumber(t)||IsInteger(t)&&1/r%1===0)return!0;const e=t%r;return Math.min(Math.abs(e),Math.abs(e-r))<o}n(IsMultipleOf,"IsMultipleOf");export function IsClassInstance(t){if(!IsObject(t))return!1;const r=globalThis.Object.getPrototypeOf(t);return IsNull(r)?!1:IsEqual(typeof r.constructor,"function")&&!(IsEqual(r.constructor,globalThis.Object)||IsEqual(r.constructor.name,"Object"))}n(IsClassInstance,"IsClassInstance");export function IsValueLike(t){return IsBigInt(t)||IsBoolean(t)||IsNull(t)||IsNumber(t)||IsString(t)||IsUndefined(t)}n(IsValueLike,"IsValueLike");export function GraphemeCount(t){return s.GraphemeCount(t)}n(GraphemeCount,"GraphemeCount");export function IsMaxLength(t,r){return s.IsMaxLengthFast(t,r)}n(IsMaxLength,"IsMaxLength");export function IsMinLength(t,r){return s.IsMinLengthFast(t,r)}n(IsMinLength,"IsMinLength");export function Every(t,r,o){for(let e=r;e<t.length;e++)if(!o(t[e],e))return!1;return!0}n(Every,"Every");export function EveryAll(t,r,o){let e=!0;for(let u=r;u<t.length;u++)o(t[u],u)||(e=!1);return e}n(EveryAll,"EveryAll");export function TakeLeft(t,r,o){return IsEqual(t.length,0)?o():r(t[0],t.slice(1))}n(TakeLeft,"TakeLeft");export function IsUnsafePropertyKey(t){return IsEqual(t,"__proto__")||IsEqual(t,"constructor")||IsEqual(t,"prototype")}n(IsUnsafePropertyKey,"IsUnsafePropertyKey");export function HasPropertyKey(t,r){return IsUnsafePropertyKey(r)?Object.prototype.hasOwnProperty.call(t,r):r in t}n(HasPropertyKey,"HasPropertyKey");export function EntriesRegExp(t){return Keys(t).map(r=>[new RegExp(`^${r}$`),t[r]])}n(EntriesRegExp,"EntriesRegExp");export function Entries(t){return Object.entries(t)}n(Entries,"Entries");export function Keys(t){return Object.getOwnPropertyNames(t)}n(Keys,"Keys");export function Symbols(t){return Object.getOwnPropertySymbols(t)}n(Symbols,"Symbols");export function Values(t){return Object.values(t)}n(Values,"Values");function f(t,r){if(!IsObject(r))return!1;const o=Keys(t);return IsEqual(o.length,Keys(r).length)&&o.every(e=>IsDeepEqual(t[e],r[e]))}n(f,"DeepEqualObject");function p(t,r){return IsArray(r)&&IsEqual(t.length,r.length)&&t.every((o,e)=>IsDeepEqual(t[e],r[e]))}n(p,"DeepEqualArray");export function IsDeepEqual(t,r){return IsArray(t)?p(t,r):IsObject(t)?f(t,r):IsEqual(t,r)}n(IsDeepEqual,"IsDeepEqual");
@@ -1 +1 @@
1
- var g=Object.defineProperty;var i=(t,e)=>g(t,"name",{value:e,configurable:!0});function o(t,e,n){return t>=e&&t<=n}i(o,"IsBetween");function I(t){return t===8205}i(I,"IsZeroWidthJoiner");function C(t){return o(t,55296,56319)}i(C,"IsHighSurrogate");function u(t){return o(t,127462,127487)}i(u,"IsRegionalIndicator");function s(t){return o(t,65024,65039)}i(s,"IsVariationSelector");function x(t){return o(t,768,879)||o(t,6832,6911)||o(t,7616,7679)||o(t,65056,65071)}i(x,"IsCombiningMark");function c(t){return t>65535?2:1}i(c,"CodePointLength");function h(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(x(n)||s(n))e+=c(n);else break}return e}i(h,"ConsumeModifiers");function f(t,e){const n=t.codePointAt(e);let r=e+c(n);for(r=h(t,r);r<t.length-1&&t[r]==="‍";){const d=t.codePointAt(r+1);r+=1+c(d),r=h(t,r)}return u(n)&&r<t.length&&u(t.codePointAt(r))&&(r+=c(t.codePointAt(r))),r}i(f,"NextGraphemeClusterIndex");function F(t){return C(t)||x(t)||s(t)||I(t)}i(F,"IsGraphemeCodePoint");export function GraphemeCount(t){let e=0,n=0;for(;n<t.length;)n=f(t,n),e++;return e}i(GraphemeCount,"GraphemeCount");function l(t,e){if(e===0)return!0;let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>=e)return!0;return!1}i(l,"IsMinLength");function A(t,e){let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>e)return!1;return!0}i(A,"IsMaxLength");export function IsMinLengthFast(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return l(t,e);if(n++,n>=e)return!0}return!1}i(IsMinLengthFast,"IsMinLengthFast");export function IsMaxLengthFast(t,e){let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return A(t,e);if(n++,n>e)return!1}return!0}i(IsMaxLengthFast,"IsMaxLengthFast");
1
+ var h=Object.defineProperty;var i=(t,e)=>h(t,"name",{value:e,configurable:!0});function o(t,e,n){return t>=e&&t<=n}i(o,"IsBetween");function x(t){return o(t,127462,127487)}i(x,"IsRegionalIndicator");function d(t){return o(t,65024,65039)}i(d,"IsVariationSelector");function g(t){return o(t,768,879)||o(t,6832,6911)||o(t,7616,7679)||o(t,65056,65071)}i(g,"IsCombiningMark");function c(t){return t>65535?2:1}i(c,"CodePointLength");function u(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(g(n)||d(n))e+=c(n);else break}return e}i(u,"ConsumeModifiers");function f(t,e){const n=t.codePointAt(e);let r=e+c(n);for(r=u(t,r);r<t.length-1&&t[r]==="‍";){const s=t.codePointAt(r+1);r+=1+c(s),r=u(t,r)}return x(n)&&r<t.length&&x(t.codePointAt(r))&&(r+=c(t.codePointAt(r))),r}i(f,"NextGraphemeClusterIndex");function F(t){return o(t,55296,56319)||o(t,768,879)||t===8205}i(F,"IsGraphemeCodePoint");export function GraphemeCount(t){let e=0,n=0;for(;n<t.length;)n=f(t,n),e++;return e}i(GraphemeCount,"GraphemeCount");function C(t,e){if(e===0)return!0;let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>=e)return!0;return!1}i(C,"IsMinLength");function I(t,e){let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>e)return!1;return!0}i(I,"IsMaxLength");export function IsMinLengthFast(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return C(t,e);if(n++,n>=e)return!0}return!1}i(IsMinLengthFast,"IsMinLengthFast");export function IsMaxLengthFast(t,e){let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return I(t,e);if(n++,n>e)return!1}return!0}i(IsMaxLengthFast,"IsMaxLengthFast");
@@ -1 +1 @@
1
- var f=Object.defineProperty;var a=(n,e)=>f(n,"name",{value:e,configurable:!0});import{Hashing as p}from"../../system/hashing/index.mjs";import{EmitGuard as c}from"../../guard/index.mjs";import{BuildSchema as C}from"./schema.mjs";const l=[0],u=new Map,s=new Map;function m(){return p.Hash(l[0]++)}a(m,"NextName");function x(n,e){u.has(n)||u.set(n,new Map);const t=u.get(n);if(t.has(e))return t.get(e);const r=m();return t.set(e,r),r}a(x,"CreateName");function h(n,e,t,r){return n.UseUnevaluated()?c.Call(`check_${t}`,["context",r]):c.Call(`check_${t}`,[r])}a(h,"CreateCallExpression");function F(n,e,t,r){const o=C(n,e,t,"value");return e.UseUnevaluated()?c.ConstDeclaration(`check_${r}`,c.ArrowFunction(["context","value"],o)):c.ConstDeclaration(`check_${r}`,c.ArrowFunction(["value"],o))}a(F,"CreateFunctionExpression");export function ResetFunctions(){l[0]=0,u.clear(),s.clear()}a(ResetFunctions,"ResetFunctions");export function GetFunctions(){return[...s.values()]}a(GetFunctions,"GetFunctions");export function CreateFunction(n,e,t,r){const o=x(t,n.BaseURL().href),i=h(e,t,o,r);return s.has(o)||(s.set(o,""),s.set(o,F(n,e,t,o))),i}a(CreateFunction,"CreateFunction");
1
+ var l=Object.defineProperty;var c=(n,t)=>l(n,"name",{value:t,configurable:!0});import*as f from"../types/index.mjs";import{Hashing as u}from"../../system/hashing/index.mjs";import{EmitGuard as a}from"../../guard/index.mjs";import{BuildSchema as p}from"./schema.mjs";const i=new Map;function m(n,t,e,r){return n.UseUnevaluated()?a.Call(`check_${e}`,["context",r]):a.Call(`check_${e}`,[r])}c(m,"CreateCallExpression");function C(n,t,e,r){const o=p(n,t,e,"value");return t.UseUnevaluated()?a.ConstDeclaration(`check_${r}`,a.ArrowFunction(["context","value"],o)):a.ConstDeclaration(`check_${r}`,a.ArrowFunction(["value"],o))}c(C,"CreateFunctionExpression");export function ResetFunctions(){i.clear()}c(ResetFunctions,"ResetFunctions");export function GetFunctions(){return[...i.values()]}c(GetFunctions,"GetFunctions");export function CreateFunction(n,t,e,r){const o=f.IsSchemaObject(e)?u.Hash({__baseURL:n.BaseURL().href,...e}):u.Hash(e),s=m(t,e,o,r);return i.has(o)||(i.set(o,""),i.set(o,C(n,t,e,o))),s}c(CreateFunction,"CreateFunction");
@@ -0,0 +1 @@
1
+ var n=Object.defineProperty;var o=(a,r)=>n(a,"name",{value:r,configurable:!0});import*as i from"./_externals.mjs";import{EmitGuard as u}from"../../guard/index.mjs";export function BuildGuard(a,r,e,t){return u.Call(u.Member(u.Member(i.CreateVariable(e),"~guard"),"check"),[t])}o(BuildGuard,"BuildGuard");export function CheckGuard(a,r,e,t){return e["~guard"].check(t)}o(CheckGuard,"CheckGuard");export function ErrorGuard(a,r,e,t,c,d){return c["~guard"].check(d)||r.AddError({keyword:"~guard",schemaPath:e,instancePath:t,params:{errors:c["~guard"].errors(d)}})}o(ErrorGuard,"ErrorGuard");
@@ -1 +1 @@
1
- var l=Object.defineProperty;var t=(r,o)=>l(r,"name",{value:o,configurable:!0});import{EmitGuard as n}from"../../guard/index.mjs";export function BuildSchemaBoolean(r,o,e,a){return e?n.Constant(!0):n.Constant(!1)}t(BuildSchemaBoolean,"BuildSchemaBoolean");export function CheckSchemaBoolean(r,o,e,a){return e}t(CheckSchemaBoolean,"CheckSchemaBoolean");export function ErrorSchemaBoolean(r,o,e,a,u,c){return CheckSchemaBoolean(r,o,u,c)||o.AddError({keyword:"boolean",schemaPath:e,instancePath:a,params:{}})}t(ErrorSchemaBoolean,"ErrorSchemaBoolean");
1
+ var l=Object.defineProperty;var t=(r,o)=>l(r,"name",{value:o,configurable:!0});import{EmitGuard as n}from"../../guard/index.mjs";export function BuildBooleanSchema(r,o,e,a){return e?n.Constant(!0):n.Constant(!1)}t(BuildBooleanSchema,"BuildBooleanSchema");export function CheckBooleanSchema(r,o,e,a){return e}t(CheckBooleanSchema,"CheckBooleanSchema");export function ErrorBooleanSchema(r,o,e,a,u,c){return CheckBooleanSchema(r,o,u,c)||o.AddError({keyword:"boolean",schemaPath:e,instancePath:a,params:{}})}t(ErrorBooleanSchema,"ErrorBooleanSchema");
@@ -1 +1 @@
1
- export*from"./_context.mjs";export*from"./_externals.mjs";export*from"./_functions.mjs";export*from"./_reducer.mjs";export*from"./_refine.mjs";export*from"./_stack.mjs";export*from"./additionalItems.mjs";export*from"./additionalProperties.mjs";export*from"./allOf.mjs";export*from"./anyOf.mjs";export*from"./boolean.mjs";export*from"./const.mjs";export*from"./contains.mjs";export*from"./dependencies.mjs";export*from"./dependentRequired.mjs";export*from"./dependentSchemas.mjs";export*from"./enum.mjs";export*from"./exclusiveMaximum.mjs";export*from"./exclusiveMinimum.mjs";export*from"./format.mjs";export*from"./if.mjs";export*from"./items.mjs";export*from"./maxContains.mjs";export*from"./maxItems.mjs";export*from"./maxLength.mjs";export*from"./maxProperties.mjs";export*from"./maximum.mjs";export*from"./minContains.mjs";export*from"./minItems.mjs";export*from"./minLength.mjs";export*from"./minProperties.mjs";export*from"./minimum.mjs";export*from"./multipleOf.mjs";export*from"./not.mjs";export*from"./oneOf.mjs";export*from"./pattern.mjs";export*from"./patternProperties.mjs";export*from"./prefixItems.mjs";export*from"./properties.mjs";export*from"./propertyNames.mjs";export*from"./recursiveRef.mjs";export*from"./ref.mjs";export*from"./required.mjs";export*from"./schema.mjs";export*from"./type.mjs";export*from"./unevaluatedItems.mjs";export*from"./unevaluatedProperties.mjs";export*from"./uniqueItems.mjs";
1
+ export*from"./_context.mjs";export*from"./_externals.mjs";export*from"./_guard.mjs";export*from"./_functions.mjs";export*from"./_reducer.mjs";export*from"./_refine.mjs";export*from"./_stack.mjs";export*from"./additionalItems.mjs";export*from"./additionalProperties.mjs";export*from"./allOf.mjs";export*from"./anyOf.mjs";export*from"./boolean.mjs";export*from"./const.mjs";export*from"./contains.mjs";export*from"./dependencies.mjs";export*from"./dependentRequired.mjs";export*from"./dependentSchemas.mjs";export*from"./enum.mjs";export*from"./exclusiveMaximum.mjs";export*from"./exclusiveMinimum.mjs";export*from"./format.mjs";export*from"./if.mjs";export*from"./items.mjs";export*from"./maxContains.mjs";export*from"./maxItems.mjs";export*from"./maxLength.mjs";export*from"./maxProperties.mjs";export*from"./maximum.mjs";export*from"./minContains.mjs";export*from"./minItems.mjs";export*from"./minLength.mjs";export*from"./minProperties.mjs";export*from"./minimum.mjs";export*from"./multipleOf.mjs";export*from"./not.mjs";export*from"./oneOf.mjs";export*from"./pattern.mjs";export*from"./patternProperties.mjs";export*from"./prefixItems.mjs";export*from"./properties.mjs";export*from"./propertyNames.mjs";export*from"./recursiveRef.mjs";export*from"./ref.mjs";export*from"./required.mjs";export*from"./schema.mjs";export*from"./type.mjs";export*from"./unevaluatedItems.mjs";export*from"./unevaluatedProperties.mjs";export*from"./uniqueItems.mjs";