@mangostudio/cli-darwin-arm64 0.1.0 → 0.1.1-canary.00a342c

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 (1844) hide show
  1. package/cursor-sidecar/node_modules/@bufbuild/protobuf/README.md +43 -0
  2. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/binary-encoding.d.ts +422 -0
  3. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/binary-encoding.js +444 -0
  4. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/binary-format.d.ts +113 -0
  5. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/binary-format.js +15 -0
  6. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/codegen-info.d.ts +33 -0
  7. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/codegen-info.js +69 -0
  8. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/create-descriptor-set.d.ts +36 -0
  9. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/create-descriptor-set.js +910 -0
  10. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/create-registry-from-desc.d.ts +15 -0
  11. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/create-registry-from-desc.js +264 -0
  12. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/create-registry.d.ts +9 -0
  13. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/create-registry.js +94 -0
  14. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/descriptor-set.d.ts +672 -0
  15. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/descriptor-set.js +15 -0
  16. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/enum.d.ts +35 -0
  17. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/enum.js +15 -0
  18. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/extension-accessor.d.ts +35 -0
  19. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/extension-accessor.js +114 -0
  20. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/extension.d.ts +24 -0
  21. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/extension.js +15 -0
  22. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/field-list.d.ts +27 -0
  23. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/field-list.js +15 -0
  24. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/field.d.ts +314 -0
  25. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/field.js +15 -0
  26. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/any_pb.d.ts +157 -0
  27. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/any_pb.js +273 -0
  28. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/api_pb.d.ts +256 -0
  29. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/api_pb.js +316 -0
  30. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/compiler/plugin_pb.d.ts +271 -0
  31. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/compiler/plugin_pb.js +219 -0
  32. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/descriptor_pb.d.ts +2277 -0
  33. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/descriptor_pb.js +2077 -0
  34. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/duration_pb.d.ts +100 -0
  35. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/duration_pb.js +169 -0
  36. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/empty_pb.d.ts +28 -0
  37. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/empty_pb.js +52 -0
  38. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/field_mask_pb.d.ts +227 -0
  39. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/field_mask_pb.js +311 -0
  40. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/source_context_pb.d.ts +29 -0
  41. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/source_context_pb.js +55 -0
  42. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/struct_pb.d.ts +158 -0
  43. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/struct_pb.js +240 -0
  44. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/timestamp_pb.d.ts +132 -0
  45. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/timestamp_pb.js +213 -0
  46. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/type_pb.d.ts +437 -0
  47. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/type_pb.js +562 -0
  48. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/wrappers_pb.d.ts +267 -0
  49. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/protobuf/wrappers_pb.js +569 -0
  50. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/varint.d.ts +70 -0
  51. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/google/varint.js +323 -0
  52. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/index.d.ts +42 -0
  53. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/index.js +84 -0
  54. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/is-message.d.ts +22 -0
  55. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/is-message.js +52 -0
  56. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/json-format.d.ts +111 -0
  57. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/json-format.js +15 -0
  58. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/message-type.d.ts +51 -0
  59. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/message-type.js +15 -0
  60. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/message.d.ts +131 -0
  61. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/message.js +129 -0
  62. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/package.json +1 -0
  63. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/assert.d.ts +16 -0
  64. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/assert.js +59 -0
  65. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/binary-format.d.ts +7 -0
  66. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/binary-format.js +431 -0
  67. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/enum.d.ts +27 -0
  68. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/enum.js +94 -0
  69. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/extensions.d.ts +34 -0
  70. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/extensions.js +86 -0
  71. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/feature-set.d.ts +19 -0
  72. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/feature-set.js +120 -0
  73. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/field-list.d.ts +18 -0
  74. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/field-list.js +76 -0
  75. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/field-normalize.d.ts +9 -0
  76. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/field-normalize.js +69 -0
  77. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/field-wrapper.d.ts +25 -0
  78. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/field-wrapper.js +57 -0
  79. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/field.d.ts +16 -0
  80. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/field.js +45 -0
  81. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/json-format.d.ts +2 -0
  82. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/json-format.js +626 -0
  83. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/message-type.d.ts +18 -0
  84. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/message-type.js +50 -0
  85. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/names.d.ts +43 -0
  86. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/names.js +278 -0
  87. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/options-map.d.ts +7 -0
  88. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/options-map.js +15 -0
  89. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/proto-runtime.d.ts +53 -0
  90. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/proto-runtime.js +41 -0
  91. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/reflect.d.ts +9 -0
  92. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/reflect.js +79 -0
  93. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/reify-wkt.d.ts +102 -0
  94. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/reify-wkt.js +172 -0
  95. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/scalars.d.ts +18 -0
  96. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/scalars.js +105 -0
  97. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/text-format.d.ts +4 -0
  98. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/text-format.js +189 -0
  99. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/util-common.d.ts +2 -0
  100. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/util-common.js +237 -0
  101. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/util.d.ts +38 -0
  102. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/private/util.js +15 -0
  103. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto-base64.d.ts +18 -0
  104. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto-base64.js +128 -0
  105. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto-delimited.d.ts +54 -0
  106. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto-delimited.js +155 -0
  107. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto-double.d.ts +5 -0
  108. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto-double.js +29 -0
  109. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.d.ts +95 -0
  110. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto-int64.js +116 -0
  111. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto2.d.ts +4 -0
  112. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto2.js +53 -0
  113. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto3.d.ts +4 -0
  114. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/proto3.js +56 -0
  115. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/scalar.d.ts +53 -0
  116. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/scalar.js +81 -0
  117. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/service-type.d.ts +96 -0
  118. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/service-type.js +53 -0
  119. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/to-plain-message.d.ts +12 -0
  120. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/to-plain-message.js +72 -0
  121. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/type-registry.d.ts +57 -0
  122. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/cjs/type-registry.js +15 -0
  123. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/binary-encoding.d.ts +422 -0
  124. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/binary-encoding.js +439 -0
  125. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/binary-format.d.ts +113 -0
  126. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/binary-format.js +14 -0
  127. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/codegen-info.d.ts +33 -0
  128. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/codegen-info.js +67 -0
  129. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/create-descriptor-set.d.ts +36 -0
  130. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/create-descriptor-set.js +906 -0
  131. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/create-registry-from-desc.d.ts +15 -0
  132. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/create-registry-from-desc.js +261 -0
  133. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/create-registry.d.ts +9 -0
  134. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/create-registry.js +90 -0
  135. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/descriptor-set.d.ts +672 -0
  136. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/descriptor-set.js +14 -0
  137. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/enum.d.ts +35 -0
  138. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/enum.js +14 -0
  139. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/extension-accessor.d.ts +35 -0
  140. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/extension-accessor.js +107 -0
  141. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/extension.d.ts +24 -0
  142. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/extension.js +14 -0
  143. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/field-list.d.ts +27 -0
  144. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/field-list.js +14 -0
  145. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/field.d.ts +314 -0
  146. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/field.js +14 -0
  147. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/any_pb.d.ts +157 -0
  148. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/any_pb.js +269 -0
  149. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/api_pb.d.ts +256 -0
  150. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/api_pb.js +310 -0
  151. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/compiler/plugin_pb.d.ts +271 -0
  152. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/compiler/plugin_pb.js +212 -0
  153. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/descriptor_pb.d.ts +2277 -0
  154. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/descriptor_pb.js +2041 -0
  155. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/duration_pb.d.ts +100 -0
  156. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/duration_pb.js +165 -0
  157. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/empty_pb.d.ts +28 -0
  158. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/empty_pb.js +48 -0
  159. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/field_mask_pb.d.ts +227 -0
  160. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/field_mask_pb.js +307 -0
  161. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/source_context_pb.d.ts +29 -0
  162. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/source_context_pb.js +51 -0
  163. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/struct_pb.d.ts +158 -0
  164. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/struct_pb.js +234 -0
  165. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/timestamp_pb.d.ts +132 -0
  166. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/timestamp_pb.js +209 -0
  167. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/type_pb.d.ts +437 -0
  168. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/type_pb.js +554 -0
  169. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/wrappers_pb.d.ts +267 -0
  170. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/protobuf/wrappers_pb.js +557 -0
  171. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/varint.d.ts +70 -0
  172. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/google/varint.js +313 -0
  173. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/index.d.ts +42 -0
  174. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/index.js +43 -0
  175. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/is-message.d.ts +22 -0
  176. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +48 -0
  177. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/json-format.d.ts +111 -0
  178. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/json-format.js +14 -0
  179. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/message-type.d.ts +51 -0
  180. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/message-type.js +14 -0
  181. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/message.d.ts +131 -0
  182. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/message.js +125 -0
  183. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/assert.d.ts +16 -0
  184. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/assert.js +52 -0
  185. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/binary-format.d.ts +7 -0
  186. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/binary-format.js +427 -0
  187. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/enum.d.ts +27 -0
  188. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/enum.js +87 -0
  189. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/extensions.d.ts +34 -0
  190. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/extensions.js +81 -0
  191. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/feature-set.d.ts +19 -0
  192. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/feature-set.js +116 -0
  193. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/field-list.d.ts +18 -0
  194. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/field-list.js +72 -0
  195. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/field-normalize.d.ts +9 -0
  196. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/field-normalize.js +65 -0
  197. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/field-wrapper.d.ts +25 -0
  198. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/field-wrapper.js +53 -0
  199. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/field.d.ts +16 -0
  200. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/field.js +41 -0
  201. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/json-format.d.ts +2 -0
  202. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/json-format.js +623 -0
  203. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/message-type.d.ts +18 -0
  204. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/message-type.js +46 -0
  205. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/names.d.ts +43 -0
  206. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/names.js +269 -0
  207. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/options-map.d.ts +7 -0
  208. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/options-map.js +14 -0
  209. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/proto-runtime.d.ts +53 -0
  210. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/proto-runtime.js +37 -0
  211. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/reflect.d.ts +9 -0
  212. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/reflect.js +74 -0
  213. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/reify-wkt.d.ts +102 -0
  214. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/reify-wkt.js +168 -0
  215. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/scalars.d.ts +18 -0
  216. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/scalars.js +99 -0
  217. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/text-format.d.ts +4 -0
  218. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/text-format.js +184 -0
  219. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/util-common.d.ts +2 -0
  220. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/util-common.js +234 -0
  221. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/util.d.ts +38 -0
  222. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/private/util.js +14 -0
  223. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto-base64.d.ts +18 -0
  224. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto-base64.js +125 -0
  225. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto-delimited.d.ts +54 -0
  226. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto-delimited.js +152 -0
  227. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto-double.d.ts +5 -0
  228. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto-double.js +26 -0
  229. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.d.ts +95 -0
  230. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +113 -0
  231. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto2.d.ts +4 -0
  232. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto2.js +50 -0
  233. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto3.d.ts +4 -0
  234. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/proto3.js +53 -0
  235. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/scalar.d.ts +53 -0
  236. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/scalar.js +78 -0
  237. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/service-type.d.ts +96 -0
  238. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/service-type.js +50 -0
  239. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/to-plain-message.d.ts +12 -0
  240. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/to-plain-message.js +70 -0
  241. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/type-registry.d.ts +57 -0
  242. package/cursor-sidecar/node_modules/@bufbuild/protobuf/dist/esm/type-registry.js +14 -0
  243. package/cursor-sidecar/node_modules/@bufbuild/protobuf/package.json +34 -0
  244. package/cursor-sidecar/node_modules/@connectrpc/connect/README.md +62 -0
  245. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/any-client.d.ts +22 -0
  246. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/any-client.js +34 -0
  247. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/call-options.d.ts +34 -0
  248. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/call-options.js +15 -0
  249. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/callback-client.d.ts +31 -0
  250. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/callback-client.js +116 -0
  251. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/code.d.ts +75 -0
  252. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/code.js +92 -0
  253. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/connect-error.d.ts +90 -0
  254. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/connect-error.js +134 -0
  255. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/context-values.d.ts +34 -0
  256. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/context-values.js +41 -0
  257. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/cors.d.ts +45 -0
  258. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/cors.js +82 -0
  259. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/http-headers.d.ts +36 -0
  260. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/http-headers.js +68 -0
  261. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/implementation.d.ts +165 -0
  262. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/implementation.js +79 -0
  263. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/index.d.ts +22 -0
  264. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/index.js +47 -0
  265. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/interceptor.d.ts +155 -0
  266. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/interceptor.js +27 -0
  267. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/method-type.d.ts +43 -0
  268. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/method-type.js +15 -0
  269. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/package.json +1 -0
  270. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/promise-client.d.ts +49 -0
  271. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/promise-client.js +147 -0
  272. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/async-iterable.d.ts +527 -0
  273. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/async-iterable.js +959 -0
  274. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/compression.d.ts +48 -0
  275. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/compression.js +75 -0
  276. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/content-type-matcher.d.ts +16 -0
  277. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/content-type-matcher.js +43 -0
  278. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/create-method-url.d.ts +17 -0
  279. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/create-method-url.js +36 -0
  280. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/envelope.d.ts +59 -0
  281. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/envelope.js +152 -0
  282. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/index.d.ts +24 -0
  283. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/index.js +93 -0
  284. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/invoke-implementation.d.ts +21 -0
  285. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/invoke-implementation.js +250 -0
  286. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/limit-io.d.ts +24 -0
  287. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/limit-io.js +80 -0
  288. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/normalize.d.ts +12 -0
  289. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/normalize.js +56 -0
  290. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/protocol-handler-factory.d.ts +18 -0
  291. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/protocol-handler-factory.js +15 -0
  292. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/run-call.d.ts +45 -0
  293. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/run-call.js +119 -0
  294. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/serialization.d.ts +104 -0
  295. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/serialization.js +148 -0
  296. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/signals.d.ts +36 -0
  297. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/signals.js +100 -0
  298. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/transport-options.d.ts +98 -0
  299. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/transport-options.js +15 -0
  300. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-fetch.d.ts +35 -0
  301. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-fetch.js +150 -0
  302. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler-client.d.ts +7 -0
  303. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler-client.js +90 -0
  304. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler.d.ts +155 -0
  305. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/universal-handler.js +131 -0
  306. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/universal.d.ts +102 -0
  307. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol/universal.js +78 -0
  308. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/code-string.d.ts +16 -0
  309. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/code-string.js +52 -0
  310. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/content-type.d.ts +40 -0
  311. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/content-type.js +71 -0
  312. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/end-stream.d.ts +44 -0
  313. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/end-stream.js +132 -0
  314. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/error-json.d.ts +36 -0
  315. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/error-json.js +163 -0
  316. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/get-request.d.ts +7 -0
  317. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/get-request.js +68 -0
  318. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/handler-factory.d.ts +6 -0
  319. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/handler-factory.js +281 -0
  320. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/headers.d.ts +12 -0
  321. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/headers.js +28 -0
  322. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/http-status.d.ts +15 -0
  323. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/http-status.js +90 -0
  324. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/index.d.ts +16 -0
  325. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/index.js +81 -0
  326. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/parse-timeout.d.ts +13 -0
  327. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/parse-timeout.js +44 -0
  328. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/query-params.d.ts +8 -0
  329. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/query-params.js +24 -0
  330. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/request-header.d.ts +19 -0
  331. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/request-header.js +70 -0
  332. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/trailer-mux.d.ts +19 -0
  333. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/trailer-mux.js +53 -0
  334. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/transport.d.ts +6 -0
  335. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/transport.js +214 -0
  336. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/validate-response.d.ts +30 -0
  337. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/validate-response.js +72 -0
  338. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/version.d.ts +20 -0
  339. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-connect/version.js +58 -0
  340. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/content-type.d.ts +16 -0
  341. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/content-type.js +38 -0
  342. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/gen/status_pb.d.ts +89 -0
  343. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/gen/status_pb.js +120 -0
  344. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/handler-factory.d.ts +6 -0
  345. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/handler-factory.js +122 -0
  346. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/headers.d.ts +12 -0
  347. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/headers.js +28 -0
  348. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/http-status.d.ts +8 -0
  349. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/http-status.js +46 -0
  350. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/index.d.ts +10 -0
  351. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/index.js +61 -0
  352. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/parse-timeout.d.ts +13 -0
  353. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/parse-timeout.js +53 -0
  354. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/request-header.d.ts +13 -0
  355. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/request-header.js +56 -0
  356. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/trailer-status.d.ts +28 -0
  357. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/trailer-status.js +104 -0
  358. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/transport.d.ts +6 -0
  359. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/transport.js +185 -0
  360. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-response.d.ts +33 -0
  361. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-response.js +75 -0
  362. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-trailer.d.ts +13 -0
  363. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc/validate-trailer.js +44 -0
  364. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/content-type.d.ts +19 -0
  365. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/content-type.js +41 -0
  366. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/handler-factory.d.ts +6 -0
  367. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/handler-factory.js +128 -0
  368. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/headers.d.ts +20 -0
  369. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/headers.js +44 -0
  370. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/index.d.ts +8 -0
  371. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/index.js +61 -0
  372. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/request-header.d.ts +13 -0
  373. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/request-header.js +59 -0
  374. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/trailer.d.ts +27 -0
  375. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/trailer.js +71 -0
  376. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/transport.d.ts +6 -0
  377. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/transport.js +238 -0
  378. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/validate-response.d.ts +34 -0
  379. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/protocol-grpc-web/validate-response.js +73 -0
  380. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/router-transport.d.ts +13 -0
  381. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/router-transport.js +32 -0
  382. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/router.d.ts +88 -0
  383. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/router.js +83 -0
  384. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/transport.d.ts +20 -0
  385. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/cjs/transport.js +15 -0
  386. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/any-client.d.ts +22 -0
  387. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/any-client.js +31 -0
  388. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/call-options.d.ts +34 -0
  389. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/call-options.js +14 -0
  390. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/callback-client.d.ts +31 -0
  391. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/callback-client.js +113 -0
  392. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/code.d.ts +75 -0
  393. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/code.js +89 -0
  394. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/connect-error.d.ts +90 -0
  395. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/connect-error.js +130 -0
  396. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/context-values.d.ts +34 -0
  397. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/context-values.js +37 -0
  398. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/cors.d.ts +45 -0
  399. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/cors.js +79 -0
  400. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/http-headers.d.ts +36 -0
  401. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/http-headers.js +63 -0
  402. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/implementation.d.ts +165 -0
  403. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/implementation.js +75 -0
  404. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/index.d.ts +22 -0
  405. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/index.js +27 -0
  406. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/interceptor.d.ts +155 -0
  407. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/interceptor.js +24 -0
  408. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/method-type.d.ts +43 -0
  409. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/method-type.js +14 -0
  410. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/promise-client.d.ts +49 -0
  411. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/promise-client.js +139 -0
  412. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/async-iterable.d.ts +527 -0
  413. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/async-iterable.js +937 -0
  414. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/compression.d.ts +48 -0
  415. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/compression.js +71 -0
  416. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/content-type-matcher.d.ts +16 -0
  417. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/content-type-matcher.js +40 -0
  418. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/create-method-url.d.ts +17 -0
  419. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/create-method-url.js +33 -0
  420. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/envelope.d.ts +59 -0
  421. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/envelope.js +145 -0
  422. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/index.d.ts +24 -0
  423. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/index.js +32 -0
  424. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/invoke-implementation.d.ts +21 -0
  425. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/invoke-implementation.js +246 -0
  426. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/limit-io.d.ts +24 -0
  427. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/limit-io.js +75 -0
  428. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/normalize.d.ts +12 -0
  429. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/normalize.js +53 -0
  430. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/protocol-handler-factory.d.ts +18 -0
  431. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/protocol-handler-factory.js +14 -0
  432. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/run-call.d.ts +45 -0
  433. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/run-call.js +115 -0
  434. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/serialization.d.ts +104 -0
  435. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/serialization.js +140 -0
  436. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/signals.d.ts +36 -0
  437. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/signals.js +95 -0
  438. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/transport-options.d.ts +98 -0
  439. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/transport-options.js +14 -0
  440. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/universal-fetch.d.ts +35 -0
  441. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/universal-fetch.js +142 -0
  442. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler-client.d.ts +7 -0
  443. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler-client.js +87 -0
  444. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler.d.ts +155 -0
  445. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler.js +125 -0
  446. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/universal.d.ts +102 -0
  447. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol/universal.js +74 -0
  448. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/code-string.d.ts +16 -0
  449. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/code-string.js +48 -0
  450. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/content-type.d.ts +40 -0
  451. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/content-type.js +66 -0
  452. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/end-stream.d.ts +44 -0
  453. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/end-stream.js +126 -0
  454. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/error-json.d.ts +36 -0
  455. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/error-json.js +157 -0
  456. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/get-request.d.ts +7 -0
  457. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/get-request.js +65 -0
  458. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/handler-factory.d.ts +6 -0
  459. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/handler-factory.js +278 -0
  460. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/headers.d.ts +12 -0
  461. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/headers.js +25 -0
  462. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/http-status.d.ts +15 -0
  463. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/http-status.js +86 -0
  464. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/index.d.ts +16 -0
  465. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/index.js +33 -0
  466. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/parse-timeout.d.ts +13 -0
  467. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/parse-timeout.js +41 -0
  468. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/query-params.d.ts +8 -0
  469. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/query-params.js +21 -0
  470. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/request-header.d.ts +19 -0
  471. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/request-header.js +66 -0
  472. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/trailer-mux.d.ts +19 -0
  473. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/trailer-mux.js +49 -0
  474. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/transport.d.ts +6 -0
  475. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/transport.js +211 -0
  476. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/validate-response.d.ts +30 -0
  477. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/validate-response.js +68 -0
  478. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/version.d.ts +20 -0
  479. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-connect/version.js +53 -0
  480. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/content-type.d.ts +16 -0
  481. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/content-type.js +34 -0
  482. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/gen/status_pb.d.ts +89 -0
  483. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/gen/status_pb.js +116 -0
  484. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/handler-factory.d.ts +6 -0
  485. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/handler-factory.js +119 -0
  486. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/headers.d.ts +12 -0
  487. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/headers.js +25 -0
  488. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/http-status.d.ts +8 -0
  489. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/http-status.js +43 -0
  490. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/index.d.ts +10 -0
  491. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/index.js +28 -0
  492. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/parse-timeout.d.ts +13 -0
  493. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/parse-timeout.js +50 -0
  494. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/request-header.d.ts +13 -0
  495. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/request-header.js +52 -0
  496. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/trailer-status.d.ts +28 -0
  497. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/trailer-status.js +99 -0
  498. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/transport.d.ts +6 -0
  499. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/transport.js +182 -0
  500. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-response.d.ts +33 -0
  501. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-response.js +71 -0
  502. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-trailer.d.ts +13 -0
  503. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/validate-trailer.js +41 -0
  504. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/content-type.d.ts +19 -0
  505. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/content-type.js +37 -0
  506. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/handler-factory.d.ts +6 -0
  507. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/handler-factory.js +125 -0
  508. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/headers.d.ts +20 -0
  509. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/headers.js +33 -0
  510. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/index.d.ts +8 -0
  511. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/index.js +26 -0
  512. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/request-header.d.ts +13 -0
  513. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/request-header.js +55 -0
  514. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/trailer.d.ts +27 -0
  515. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/trailer.js +65 -0
  516. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/transport.d.ts +6 -0
  517. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/transport.js +235 -0
  518. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/validate-response.d.ts +34 -0
  519. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/validate-response.js +69 -0
  520. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/router-transport.d.ts +13 -0
  521. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/router-transport.js +29 -0
  522. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/router.d.ts +88 -0
  523. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/router.js +80 -0
  524. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/transport.d.ts +20 -0
  525. package/cursor-sidecar/node_modules/@connectrpc/connect/dist/esm/transport.js +14 -0
  526. package/cursor-sidecar/node_modules/@connectrpc/connect/package.json +75 -0
  527. package/cursor-sidecar/node_modules/@connectrpc/connect/protocol-connect.js +16 -0
  528. package/cursor-sidecar/node_modules/@connectrpc/connect/protocol-grpc-web.js +16 -0
  529. package/cursor-sidecar/node_modules/@connectrpc/connect/protocol-grpc.js +16 -0
  530. package/cursor-sidecar/node_modules/@connectrpc/connect/protocol.js +16 -0
  531. package/cursor-sidecar/node_modules/@connectrpc/connect-node/README.md +141 -0
  532. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/compression.d.ts +15 -0
  533. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/compression.js +89 -0
  534. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/connect-node-adapter.d.ts +42 -0
  535. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/connect-node-adapter.js +61 -0
  536. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/connect-transport.d.ts +100 -0
  537. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/connect-transport.js +25 -0
  538. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/grpc-transport.d.ts +96 -0
  539. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/grpc-transport.js +25 -0
  540. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/grpc-web-transport.d.ts +96 -0
  541. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/grpc-web-transport.js +25 -0
  542. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/http2-session-manager.d.ts +146 -0
  543. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/http2-session-manager.js +536 -0
  544. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/index.d.ts +15 -0
  545. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/index.js +36 -0
  546. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-error.d.ts +45 -0
  547. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-error.js +154 -0
  548. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-headers-polyfill.d.ts +1 -0
  549. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-headers-polyfill.js +29 -0
  550. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-transport-options.d.ts +89 -0
  551. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-transport-options.js +58 -0
  552. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-client.d.ts +54 -0
  553. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-client.js +326 -0
  554. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-handler.d.ts +41 -0
  555. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-handler.js +234 -0
  556. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-header.d.ts +19 -0
  557. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/node-universal-header.js +97 -0
  558. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/cjs/package.json +1 -0
  559. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/compression.d.ts +15 -0
  560. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/compression.js +86 -0
  561. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/connect-node-adapter.d.ts +42 -0
  562. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/connect-node-adapter.js +58 -0
  563. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/connect-transport.d.ts +100 -0
  564. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/connect-transport.js +22 -0
  565. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/grpc-transport.d.ts +96 -0
  566. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/grpc-transport.js +22 -0
  567. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/grpc-web-transport.d.ts +96 -0
  568. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/grpc-web-transport.js +22 -0
  569. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/http2-session-manager.d.ts +146 -0
  570. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/http2-session-manager.js +532 -0
  571. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/index.d.ts +15 -0
  572. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/index.js +23 -0
  573. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-error.d.ts +45 -0
  574. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-error.js +147 -0
  575. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-headers-polyfill.d.ts +1 -0
  576. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-headers-polyfill.js +27 -0
  577. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-transport-options.d.ts +89 -0
  578. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-transport-options.js +58 -0
  579. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-universal-client.d.ts +54 -0
  580. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-universal-client.js +324 -0
  581. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-universal-handler.d.ts +41 -0
  582. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-universal-handler.js +230 -0
  583. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-universal-header.d.ts +19 -0
  584. package/cursor-sidecar/node_modules/@connectrpc/connect-node/dist/esm/node-universal-header.js +93 -0
  585. package/cursor-sidecar/node_modules/@connectrpc/connect-node/package.json +46 -0
  586. package/cursor-sidecar/node_modules/@connectrpc/connect-web/README.md +54 -0
  587. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/cjs/assert-fetch-api.d.ts +4 -0
  588. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/cjs/assert-fetch-api.js +27 -0
  589. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/cjs/connect-transport.d.ts +68 -0
  590. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/cjs/connect-transport.js +200 -0
  591. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/cjs/grpc-web-transport.d.ts +69 -0
  592. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/cjs/grpc-web-transport.js +247 -0
  593. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/cjs/index.d.ts +4 -0
  594. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/cjs/index.js +20 -0
  595. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/cjs/package.json +1 -0
  596. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/esm/assert-fetch-api.d.ts +4 -0
  597. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/esm/assert-fetch-api.js +24 -0
  598. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/esm/connect-transport.d.ts +68 -0
  599. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/esm/connect-transport.js +197 -0
  600. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/esm/grpc-web-transport.d.ts +69 -0
  601. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/esm/grpc-web-transport.js +244 -0
  602. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/esm/index.d.ts +4 -0
  603. package/cursor-sidecar/node_modules/@connectrpc/connect-web/dist/esm/index.js +15 -0
  604. package/cursor-sidecar/node_modules/@connectrpc/connect-web/package.json +58 -0
  605. package/cursor-sidecar/node_modules/@cursor/sdk/LICENSE.md +3 -0
  606. package/cursor-sidecar/node_modules/@cursor/sdk/README.md +5 -0
  607. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/162.js +1 -0
  608. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/174.js +1 -0
  609. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/18.js +1 -0
  610. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/181.js +1 -0
  611. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/19.js +1 -0
  612. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/250.js +2 -0
  613. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/250.js.LICENSE.txt +1 -0
  614. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/284.js +1 -0
  615. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/295.js +1 -0
  616. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/343.js +1 -0
  617. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/400.js +1 -0
  618. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/642.js +1 -0
  619. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/656.js +1 -0
  620. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/690.js +1 -0
  621. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/730.js +1 -0
  622. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/731.js +1 -0
  623. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/745.js +8 -0
  624. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/745.js.LICENSE.txt +30 -0
  625. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/796.js +1 -0
  626. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/831.js +1 -0
  627. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/856.js +1 -0
  628. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/914.js +1 -0
  629. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/986.js +1 -0
  630. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/996.js +1 -0
  631. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/options.d.ts +242 -0
  632. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/options.d.ts.map +1 -0
  633. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/run-event-notifier-api.d.ts +120 -0
  634. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/run-event-notifier-api.d.ts.map +1 -0
  635. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/run-store-public-types.d.ts +183 -0
  636. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/run-store-public-types.d.ts.map +1 -0
  637. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/store/local-agent-record-conversion.d.ts +7 -0
  638. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/store/local-agent-record-conversion.d.ts.map +1 -0
  639. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/store/local-agent-store.d.ts +292 -0
  640. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/store/local-agent-store.d.ts.map +1 -0
  641. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/store/sdk-state-root.d.ts +6 -0
  642. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/store/sdk-state-root.d.ts.map +1 -0
  643. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/store/sqlite-local-agent-store.d.ts +30 -0
  644. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/store/sqlite-local-agent-store.d.ts.map +1 -0
  645. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/usage-types.d.ts +21 -0
  646. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent/usage-types.d.ts.map +1 -0
  647. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent.d.ts +172 -0
  648. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/agent.d.ts.map +1 -0
  649. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/analytics.d.ts +16 -0
  650. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/analytics.d.ts.map +1 -0
  651. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/artifacts.d.ts +6 -0
  652. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/artifacts.d.ts.map +1 -0
  653. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/cloud-agent.d.ts +47 -0
  654. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/cloud-agent.d.ts.map +1 -0
  655. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/cloud-api-client.d.ts +200 -0
  656. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/cloud-api-client.d.ts.map +1 -0
  657. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/cloud-executor.d.ts +14 -0
  658. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/cloud-executor.d.ts.map +1 -0
  659. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/cloud-mcp-utils.d.ts +4 -0
  660. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/cloud-mcp-utils.d.ts.map +1 -0
  661. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/core-adapter.d.ts +2 -0
  662. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/core-adapter.d.ts.map +1 -0
  663. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/custom-tools.d.ts +29 -0
  664. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/custom-tools.d.ts.map +1 -0
  665. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/errors.d.ts +145 -0
  666. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/errors.d.ts.map +1 -0
  667. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/executor-common.d.ts +20 -0
  668. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/executor-common.d.ts.map +1 -0
  669. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/executor-types.d.ts +67 -0
  670. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/executor-types.d.ts.map +1 -0
  671. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/index.d.ts +18 -0
  672. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/index.d.ts.map +1 -0
  673. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/index.js +1 -0
  674. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/local-executor.d.ts +21 -0
  675. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/local-executor.d.ts.map +1 -0
  676. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/local-model-validation.d.ts +6 -0
  677. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/local-model-validation.d.ts.map +1 -0
  678. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/messages.d.ts +118 -0
  679. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/messages.d.ts.map +1 -0
  680. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/options.d.ts +242 -0
  681. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/options.d.ts.map +1 -0
  682. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/package.json +3 -0
  683. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/platform.d.ts +73 -0
  684. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/platform.d.ts.map +1 -0
  685. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/prefetched-blobs.d.ts +13 -0
  686. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/prefetched-blobs.d.ts.map +1 -0
  687. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/public-api.d.ts +18 -0
  688. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/public-api.d.ts.map +1 -0
  689. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run-event-notifier-api.d.ts +120 -0
  690. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run-event-notifier-api.d.ts.map +1 -0
  691. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run-event-tailer.d.ts +33 -0
  692. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run-event-tailer.d.ts.map +1 -0
  693. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run-interaction-accumulator.d.ts +37 -0
  694. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run-interaction-accumulator.d.ts.map +1 -0
  695. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run-store-public-types.d.ts +183 -0
  696. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run-store-public-types.d.ts.map +1 -0
  697. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run.d.ts +51 -0
  698. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/run.d.ts.map +1 -0
  699. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/safe-connect-transport.d.ts +9 -0
  700. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/safe-connect-transport.d.ts.map +1 -0
  701. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/safe-node-http-client.d.ts +11 -0
  702. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/safe-node-http-client.d.ts.map +1 -0
  703. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/sdk-config.d.ts +25 -0
  704. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/sdk-config.d.ts.map +1 -0
  705. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/sdk-statsig.d.ts +14 -0
  706. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/sdk-statsig.d.ts.map +1 -0
  707. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/sqlite.d.ts +8 -0
  708. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/sqlite.d.ts.map +1 -0
  709. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/sqlite.js +1 -0
  710. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/index.d.ts +7 -0
  711. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/index.d.ts.map +1 -0
  712. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/jsonl-local-agent-store.d.ts +34 -0
  713. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/jsonl-local-agent-store.d.ts.map +1 -0
  714. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/local-agent-record-conversion.d.ts +7 -0
  715. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/local-agent-record-conversion.d.ts.map +1 -0
  716. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/local-agent-store.d.ts +292 -0
  717. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/local-agent-store.d.ts.map +1 -0
  718. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/open-default-local-agent-store.d.ts +4 -0
  719. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/open-default-local-agent-store.d.ts.map +1 -0
  720. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/sdk-local-defaults.d.ts +15 -0
  721. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/sdk-local-defaults.d.ts.map +1 -0
  722. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/sdk-state-root.d.ts +6 -0
  723. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/sdk-state-root.d.ts.map +1 -0
  724. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/sqlite-local-agent-store.d.ts +30 -0
  725. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/sqlite-local-agent-store.d.ts.map +1 -0
  726. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/sqlite-storage-unavailable.d.ts +6 -0
  727. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/store/sqlite-storage-unavailable.d.ts.map +1 -0
  728. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/stubs.d.ts +105 -0
  729. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/stubs.d.ts.map +1 -0
  730. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/subagent-conversion.d.ts +22 -0
  731. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/subagent-conversion.d.ts.map +1 -0
  732. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/tool-call-utils.d.ts +7 -0
  733. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/tool-call-utils.d.ts.map +1 -0
  734. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/transport.d.ts +47 -0
  735. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/transport.d.ts.map +1 -0
  736. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/types/conversation-types.d.ts +12062 -0
  737. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/types/conversation-types.d.ts.map +1 -0
  738. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/types/delta-types.d.ts +2 -0
  739. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/types/delta-types.d.ts.map +1 -0
  740. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/types/tool-call-types.d.ts +2 -0
  741. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/types/tool-call-types.d.ts.map +1 -0
  742. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/usage-types.d.ts +21 -0
  743. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/usage-types.d.ts.map +1 -0
  744. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/utils/conversation-utils.d.ts +3 -0
  745. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/utils/conversation-utils.d.ts.map +1 -0
  746. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/utils/logger.d.ts +12 -0
  747. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/utils/logger.d.ts.map +1 -0
  748. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/utils/message-schemas.d.ts +2 -0
  749. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/utils/message-schemas.d.ts.map +1 -0
  750. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/vendor/cursor-sdk-shared/core-adapter.d.ts +3 -0
  751. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/vendor/cursor-sdk-shared/core-adapter.test.d.ts +1 -0
  752. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/vendor/cursor-sdk-shared/delta-types.d.ts +19196 -0
  753. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/vendor/cursor-sdk-shared/index.d.ts +4 -0
  754. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/vendor/cursor-sdk-shared/message-schemas.d.ts +105 -0
  755. package/cursor-sidecar/node_modules/@cursor/sdk/dist/cjs/vendor/cursor-sdk-shared/tool-call-types.d.ts +7894 -0
  756. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/162.js +1 -0
  757. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/18.js +1 -0
  758. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/181.js +1 -0
  759. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/19.js +1 -0
  760. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/250.js +2 -0
  761. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/250.js.LICENSE.txt +1 -0
  762. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/284.js +1 -0
  763. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/295.js +1 -0
  764. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/343.js +1 -0
  765. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/357.js +1 -0
  766. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/400.js +1 -0
  767. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/642.js +1 -0
  768. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/656.js +1 -0
  769. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/690.js +1 -0
  770. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/730.js +1 -0
  771. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/731.js +1 -0
  772. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/745.js +8 -0
  773. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/745.js.LICENSE.txt +30 -0
  774. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/831.js +1 -0
  775. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/856.js +1 -0
  776. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/914.js +1 -0
  777. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/986.js +1 -0
  778. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/988.js +1 -0
  779. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/996.js +1 -0
  780. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/options.d.ts +242 -0
  781. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/options.d.ts.map +1 -0
  782. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/run-event-notifier-api.d.ts +120 -0
  783. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/run-event-notifier-api.d.ts.map +1 -0
  784. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/run-store-public-types.d.ts +183 -0
  785. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/run-store-public-types.d.ts.map +1 -0
  786. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/store/local-agent-record-conversion.d.ts +7 -0
  787. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/store/local-agent-record-conversion.d.ts.map +1 -0
  788. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/store/local-agent-store.d.ts +292 -0
  789. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/store/local-agent-store.d.ts.map +1 -0
  790. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/store/sdk-state-root.d.ts +6 -0
  791. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/store/sdk-state-root.d.ts.map +1 -0
  792. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/store/sqlite-local-agent-store.d.ts +30 -0
  793. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/store/sqlite-local-agent-store.d.ts.map +1 -0
  794. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/usage-types.d.ts +21 -0
  795. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent/usage-types.d.ts.map +1 -0
  796. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent.d.ts +172 -0
  797. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/agent.d.ts.map +1 -0
  798. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/analytics.d.ts +16 -0
  799. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/analytics.d.ts.map +1 -0
  800. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/artifacts.d.ts +6 -0
  801. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/artifacts.d.ts.map +1 -0
  802. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/cloud-agent.d.ts +47 -0
  803. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/cloud-agent.d.ts.map +1 -0
  804. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/cloud-api-client.d.ts +200 -0
  805. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/cloud-api-client.d.ts.map +1 -0
  806. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/cloud-executor.d.ts +14 -0
  807. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/cloud-executor.d.ts.map +1 -0
  808. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/cloud-mcp-utils.d.ts +4 -0
  809. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/cloud-mcp-utils.d.ts.map +1 -0
  810. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/core-adapter.d.ts +2 -0
  811. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/core-adapter.d.ts.map +1 -0
  812. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/custom-tools.d.ts +29 -0
  813. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/custom-tools.d.ts.map +1 -0
  814. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/errors.d.ts +145 -0
  815. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/errors.d.ts.map +1 -0
  816. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/executor-common.d.ts +20 -0
  817. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/executor-common.d.ts.map +1 -0
  818. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/executor-types.d.ts +67 -0
  819. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/executor-types.d.ts.map +1 -0
  820. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/index.d.ts +18 -0
  821. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/index.d.ts.map +1 -0
  822. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/index.js +1 -0
  823. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/local-executor.d.ts +21 -0
  824. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/local-executor.d.ts.map +1 -0
  825. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/local-model-validation.d.ts +6 -0
  826. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/local-model-validation.d.ts.map +1 -0
  827. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/messages.d.ts +118 -0
  828. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/messages.d.ts.map +1 -0
  829. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/options.d.ts +242 -0
  830. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/options.d.ts.map +1 -0
  831. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/platform.d.ts +73 -0
  832. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/platform.d.ts.map +1 -0
  833. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/prefetched-blobs.d.ts +13 -0
  834. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/prefetched-blobs.d.ts.map +1 -0
  835. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/public-api.d.ts +18 -0
  836. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/public-api.d.ts.map +1 -0
  837. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run-event-notifier-api.d.ts +120 -0
  838. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run-event-notifier-api.d.ts.map +1 -0
  839. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run-event-tailer.d.ts +33 -0
  840. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run-event-tailer.d.ts.map +1 -0
  841. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run-interaction-accumulator.d.ts +37 -0
  842. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run-interaction-accumulator.d.ts.map +1 -0
  843. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run-store-public-types.d.ts +183 -0
  844. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run-store-public-types.d.ts.map +1 -0
  845. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run.d.ts +51 -0
  846. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/run.d.ts.map +1 -0
  847. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/safe-connect-transport.d.ts +9 -0
  848. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/safe-connect-transport.d.ts.map +1 -0
  849. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/safe-node-http-client.d.ts +11 -0
  850. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/safe-node-http-client.d.ts.map +1 -0
  851. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/sdk-config.d.ts +25 -0
  852. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/sdk-config.d.ts.map +1 -0
  853. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/sdk-statsig.d.ts +14 -0
  854. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/sdk-statsig.d.ts.map +1 -0
  855. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/sqlite.d.ts +8 -0
  856. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/sqlite.d.ts.map +1 -0
  857. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/sqlite.js +1 -0
  858. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/index.d.ts +7 -0
  859. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/index.d.ts.map +1 -0
  860. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/jsonl-local-agent-store.d.ts +34 -0
  861. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/jsonl-local-agent-store.d.ts.map +1 -0
  862. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/local-agent-record-conversion.d.ts +7 -0
  863. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/local-agent-record-conversion.d.ts.map +1 -0
  864. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/local-agent-store.d.ts +292 -0
  865. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/local-agent-store.d.ts.map +1 -0
  866. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/open-default-local-agent-store.d.ts +4 -0
  867. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/open-default-local-agent-store.d.ts.map +1 -0
  868. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/sdk-local-defaults.d.ts +15 -0
  869. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/sdk-local-defaults.d.ts.map +1 -0
  870. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/sdk-state-root.d.ts +6 -0
  871. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/sdk-state-root.d.ts.map +1 -0
  872. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/sqlite-local-agent-store.d.ts +30 -0
  873. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/sqlite-local-agent-store.d.ts.map +1 -0
  874. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/sqlite-storage-unavailable.d.ts +6 -0
  875. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/store/sqlite-storage-unavailable.d.ts.map +1 -0
  876. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/stubs.d.ts +105 -0
  877. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/stubs.d.ts.map +1 -0
  878. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/subagent-conversion.d.ts +22 -0
  879. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/subagent-conversion.d.ts.map +1 -0
  880. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/tool-call-utils.d.ts +7 -0
  881. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/tool-call-utils.d.ts.map +1 -0
  882. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/transport.d.ts +47 -0
  883. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/transport.d.ts.map +1 -0
  884. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/types/conversation-types.d.ts +12062 -0
  885. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/types/conversation-types.d.ts.map +1 -0
  886. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/types/delta-types.d.ts +2 -0
  887. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/types/delta-types.d.ts.map +1 -0
  888. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/types/tool-call-types.d.ts +2 -0
  889. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/types/tool-call-types.d.ts.map +1 -0
  890. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/usage-types.d.ts +21 -0
  891. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/usage-types.d.ts.map +1 -0
  892. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/utils/conversation-utils.d.ts +3 -0
  893. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/utils/conversation-utils.d.ts.map +1 -0
  894. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/utils/logger.d.ts +12 -0
  895. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/utils/logger.d.ts.map +1 -0
  896. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/utils/message-schemas.d.ts +2 -0
  897. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/utils/message-schemas.d.ts.map +1 -0
  898. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/vendor/cursor-sdk-shared/core-adapter.d.ts +3 -0
  899. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/vendor/cursor-sdk-shared/core-adapter.test.d.ts +1 -0
  900. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/vendor/cursor-sdk-shared/delta-types.d.ts +19196 -0
  901. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/vendor/cursor-sdk-shared/index.d.ts +4 -0
  902. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/vendor/cursor-sdk-shared/message-schemas.d.ts +105 -0
  903. package/cursor-sidecar/node_modules/@cursor/sdk/dist/esm/vendor/cursor-sdk-shared/tool-call-types.d.ts +7894 -0
  904. package/cursor-sidecar/node_modules/@cursor/sdk/package.json +119 -0
  905. package/cursor-sidecar/node_modules/@cursor/sdk-darwin-arm64/README.md +5 -0
  906. package/cursor-sidecar/node_modules/@cursor/sdk-darwin-arm64/bin/cursorsandbox +0 -0
  907. package/cursor-sidecar/node_modules/@cursor/sdk-darwin-arm64/bin/rg +0 -0
  908. package/cursor-sidecar/node_modules/@cursor/sdk-darwin-arm64/package.json +28 -0
  909. package/cursor-sidecar/node_modules/@fastify/busboy/LICENSE +19 -0
  910. package/cursor-sidecar/node_modules/@fastify/busboy/README.md +271 -0
  911. package/cursor-sidecar/node_modules/@fastify/busboy/deps/dicer/LICENSE +19 -0
  912. package/cursor-sidecar/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js +213 -0
  913. package/cursor-sidecar/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js +100 -0
  914. package/cursor-sidecar/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js +13 -0
  915. package/cursor-sidecar/node_modules/@fastify/busboy/deps/dicer/lib/dicer.d.ts +164 -0
  916. package/cursor-sidecar/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js +228 -0
  917. package/cursor-sidecar/node_modules/@fastify/busboy/lib/main.d.ts +196 -0
  918. package/cursor-sidecar/node_modules/@fastify/busboy/lib/main.js +85 -0
  919. package/cursor-sidecar/node_modules/@fastify/busboy/lib/types/multipart.js +306 -0
  920. package/cursor-sidecar/node_modules/@fastify/busboy/lib/types/urlencoded.js +190 -0
  921. package/cursor-sidecar/node_modules/@fastify/busboy/lib/utils/Decoder.js +54 -0
  922. package/cursor-sidecar/node_modules/@fastify/busboy/lib/utils/basename.js +14 -0
  923. package/cursor-sidecar/node_modules/@fastify/busboy/lib/utils/decodeText.js +114 -0
  924. package/cursor-sidecar/node_modules/@fastify/busboy/lib/utils/getLimit.js +16 -0
  925. package/cursor-sidecar/node_modules/@fastify/busboy/lib/utils/parseParams.js +196 -0
  926. package/cursor-sidecar/node_modules/@fastify/busboy/package.json +86 -0
  927. package/cursor-sidecar/node_modules/@statsig/client-core/package.json +15 -0
  928. package/cursor-sidecar/node_modules/@statsig/client-core/src/$_StatsigGlobal.d.ts +19 -0
  929. package/cursor-sidecar/node_modules/@statsig/client-core/src/$_StatsigGlobal.js +41 -0
  930. package/cursor-sidecar/node_modules/@statsig/client-core/src/CacheKey.d.ts +4 -0
  931. package/cursor-sidecar/node_modules/@statsig/client-core/src/CacheKey.js +28 -0
  932. package/cursor-sidecar/node_modules/@statsig/client-core/src/ClientInterfaces.d.ts +62 -0
  933. package/cursor-sidecar/node_modules/@statsig/client-core/src/ClientInterfaces.js +2 -0
  934. package/cursor-sidecar/node_modules/@statsig/client-core/src/DataAdapterCore.d.ts +29 -0
  935. package/cursor-sidecar/node_modules/@statsig/client-core/src/DataAdapterCore.js +216 -0
  936. package/cursor-sidecar/node_modules/@statsig/client-core/src/Diagnostics.d.ts +67 -0
  937. package/cursor-sidecar/node_modules/@statsig/client-core/src/Diagnostics.js +100 -0
  938. package/cursor-sidecar/node_modules/@statsig/client-core/src/DnsTxtQuery.d.ts +2 -0
  939. package/cursor-sidecar/node_modules/@statsig/client-core/src/DnsTxtQuery.js +63 -0
  940. package/cursor-sidecar/node_modules/@statsig/client-core/src/DownloadConfigSpecsResponse.d.ts +61 -0
  941. package/cursor-sidecar/node_modules/@statsig/client-core/src/DownloadConfigSpecsResponse.js +2 -0
  942. package/cursor-sidecar/node_modules/@statsig/client-core/src/ErrorBoundary.d.ts +17 -0
  943. package/cursor-sidecar/node_modules/@statsig/client-core/src/ErrorBoundary.js +197 -0
  944. package/cursor-sidecar/node_modules/@statsig/client-core/src/EvaluationOptions.d.ts +30 -0
  945. package/cursor-sidecar/node_modules/@statsig/client-core/src/EvaluationOptions.js +2 -0
  946. package/cursor-sidecar/node_modules/@statsig/client-core/src/EvaluationTypes.d.ts +49 -0
  947. package/cursor-sidecar/node_modules/@statsig/client-core/src/EvaluationTypes.js +2 -0
  948. package/cursor-sidecar/node_modules/@statsig/client-core/src/EvaluationTypesV2.d.ts +30 -0
  949. package/cursor-sidecar/node_modules/@statsig/client-core/src/EvaluationTypesV2.js +2 -0
  950. package/cursor-sidecar/node_modules/@statsig/client-core/src/EventBatch.d.ts +8 -0
  951. package/cursor-sidecar/node_modules/@statsig/client-core/src/EventBatch.js +14 -0
  952. package/cursor-sidecar/node_modules/@statsig/client-core/src/EventLogger.d.ts +48 -0
  953. package/cursor-sidecar/node_modules/@statsig/client-core/src/EventLogger.js +349 -0
  954. package/cursor-sidecar/node_modules/@statsig/client-core/src/EventRetryConstants.d.ts +7 -0
  955. package/cursor-sidecar/node_modules/@statsig/client-core/src/EventRetryConstants.js +12 -0
  956. package/cursor-sidecar/node_modules/@statsig/client-core/src/Hashing.d.ts +3 -0
  957. package/cursor-sidecar/node_modules/@statsig/client-core/src/Hashing.js +35 -0
  958. package/cursor-sidecar/node_modules/@statsig/client-core/src/InitializeResponse.d.ts +66 -0
  959. package/cursor-sidecar/node_modules/@statsig/client-core/src/InitializeResponse.js +2 -0
  960. package/cursor-sidecar/node_modules/@statsig/client-core/src/Log.d.ts +15 -0
  961. package/cursor-sidecar/node_modules/@statsig/client-core/src/Log.js +44 -0
  962. package/cursor-sidecar/node_modules/@statsig/client-core/src/MemoKey.d.ts +11 -0
  963. package/cursor-sidecar/node_modules/@statsig/client-core/src/MemoKey.js +37 -0
  964. package/cursor-sidecar/node_modules/@statsig/client-core/src/NetworkConfig.d.ts +26 -0
  965. package/cursor-sidecar/node_modules/@statsig/client-core/src/NetworkConfig.js +23 -0
  966. package/cursor-sidecar/node_modules/@statsig/client-core/src/NetworkCore.d.ts +55 -0
  967. package/cursor-sidecar/node_modules/@statsig/client-core/src/NetworkCore.js +371 -0
  968. package/cursor-sidecar/node_modules/@statsig/client-core/src/NetworkFallbackResolver.d.ts +21 -0
  969. package/cursor-sidecar/node_modules/@statsig/client-core/src/NetworkFallbackResolver.js +198 -0
  970. package/cursor-sidecar/node_modules/@statsig/client-core/src/OverrideAdapter.d.ts +16 -0
  971. package/cursor-sidecar/node_modules/@statsig/client-core/src/OverrideAdapter.js +2 -0
  972. package/cursor-sidecar/node_modules/@statsig/client-core/src/ParamStoreTypes.d.ts +65 -0
  973. package/cursor-sidecar/node_modules/@statsig/client-core/src/ParamStoreTypes.js +2 -0
  974. package/cursor-sidecar/node_modules/@statsig/client-core/src/SDKFlags.d.ts +4 -0
  975. package/cursor-sidecar/node_modules/@statsig/client-core/src/SDKFlags.js +13 -0
  976. package/cursor-sidecar/node_modules/@statsig/client-core/src/SDKType.d.ts +8 -0
  977. package/cursor-sidecar/node_modules/@statsig/client-core/src/SDKType.js +19 -0
  978. package/cursor-sidecar/node_modules/@statsig/client-core/src/SafeJs.d.ts +8 -0
  979. package/cursor-sidecar/node_modules/@statsig/client-core/src/SafeJs.js +68 -0
  980. package/cursor-sidecar/node_modules/@statsig/client-core/src/SessionID.d.ts +20 -0
  981. package/cursor-sidecar/node_modules/@statsig/client-core/src/SessionID.js +106 -0
  982. package/cursor-sidecar/node_modules/@statsig/client-core/src/SizeOf.d.ts +1 -0
  983. package/cursor-sidecar/node_modules/@statsig/client-core/src/SizeOf.js +26 -0
  984. package/cursor-sidecar/node_modules/@statsig/client-core/src/StableID.d.ts +9 -0
  985. package/cursor-sidecar/node_modules/@statsig/client-core/src/StableID.js +90 -0
  986. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigClientBase.d.ts +74 -0
  987. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigClientBase.js +207 -0
  988. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigClientEventEmitter.d.ts +100 -0
  989. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigClientEventEmitter.js +6 -0
  990. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigDataAdapter.d.ts +131 -0
  991. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigDataAdapter.js +4 -0
  992. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigEvent.d.ts +28 -0
  993. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigEvent.js +98 -0
  994. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigMetadata.d.ts +18 -0
  995. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigMetadata.js +14 -0
  996. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigOptionsCommon.d.ts +180 -0
  997. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigOptionsCommon.js +16 -0
  998. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigPlugin.d.ts +5 -0
  999. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigPlugin.js +2 -0
  1000. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigTypeFactories.d.ts +8 -0
  1001. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigTypeFactories.js +57 -0
  1002. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigTypes.d.ts +43 -0
  1003. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigTypes.js +2 -0
  1004. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigUpdateDetails.d.ts +14 -0
  1005. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigUpdateDetails.js +17 -0
  1006. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigUser.d.ts +24 -0
  1007. package/cursor-sidecar/node_modules/@statsig/client-core/src/StatsigUser.js +25 -0
  1008. package/cursor-sidecar/node_modules/@statsig/client-core/src/StorageProvider.d.ts +17 -0
  1009. package/cursor-sidecar/node_modules/@statsig/client-core/src/StorageProvider.js +90 -0
  1010. package/cursor-sidecar/node_modules/@statsig/client-core/src/TypedJsonParse.d.ts +8 -0
  1011. package/cursor-sidecar/node_modules/@statsig/client-core/src/TypedJsonParse.js +27 -0
  1012. package/cursor-sidecar/node_modules/@statsig/client-core/src/TypingUtils.d.ts +7 -0
  1013. package/cursor-sidecar/node_modules/@statsig/client-core/src/TypingUtils.js +12 -0
  1014. package/cursor-sidecar/node_modules/@statsig/client-core/src/UUID.d.ts +1 -0
  1015. package/cursor-sidecar/node_modules/@statsig/client-core/src/UUID.js +28 -0
  1016. package/cursor-sidecar/node_modules/@statsig/client-core/src/UrlConfiguration.d.ts +12 -0
  1017. package/cursor-sidecar/node_modules/@statsig/client-core/src/UrlConfiguration.js +41 -0
  1018. package/cursor-sidecar/node_modules/@statsig/client-core/src/VisibilityObserving.d.ts +9 -0
  1019. package/cursor-sidecar/node_modules/@statsig/client-core/src/VisibilityObserving.js +39 -0
  1020. package/cursor-sidecar/node_modules/@statsig/client-core/src/__tests__/MockOverrideAdapter.d.ts +16 -0
  1021. package/cursor-sidecar/node_modules/@statsig/client-core/src/__tests__/MockOverrideAdapter.js +21 -0
  1022. package/cursor-sidecar/node_modules/@statsig/client-core/src/index.d.ts +47 -0
  1023. package/cursor-sidecar/node_modules/@statsig/client-core/src/index.js +70 -0
  1024. package/cursor-sidecar/node_modules/@statsig/js-client/LICENSE +14 -0
  1025. package/cursor-sidecar/node_modules/@statsig/js-client/README.md +49 -0
  1026. package/cursor-sidecar/node_modules/@statsig/js-client/build/statsig-js-client+session-replay+web-analytics.min.js +2 -0
  1027. package/cursor-sidecar/node_modules/@statsig/js-client/build/statsig-js-client+session-replay.min.js +1 -0
  1028. package/cursor-sidecar/node_modules/@statsig/js-client/build/statsig-js-client+web-analytics.min.js +2 -0
  1029. package/cursor-sidecar/node_modules/@statsig/js-client/build/statsig-js-client.min.js +1 -0
  1030. package/cursor-sidecar/node_modules/@statsig/js-client/package.json +18 -0
  1031. package/cursor-sidecar/node_modules/@statsig/js-client/src/EvaluationResponseDeltas.d.ts +10 -0
  1032. package/cursor-sidecar/node_modules/@statsig/js-client/src/EvaluationResponseDeltas.js +49 -0
  1033. package/cursor-sidecar/node_modules/@statsig/js-client/src/EvaluationStore.d.ts +29 -0
  1034. package/cursor-sidecar/node_modules/@statsig/js-client/src/EvaluationStore.js +175 -0
  1035. package/cursor-sidecar/node_modules/@statsig/js-client/src/InitializeContainer.d.ts +9 -0
  1036. package/cursor-sidecar/node_modules/@statsig/js-client/src/InitializeContainer.js +2 -0
  1037. package/cursor-sidecar/node_modules/@statsig/js-client/src/Network.d.ts +9 -0
  1038. package/cursor-sidecar/node_modules/@statsig/js-client/src/Network.js +74 -0
  1039. package/cursor-sidecar/node_modules/@statsig/js-client/src/ParamStoreGetterFactory.d.ts +3 -0
  1040. package/cursor-sidecar/node_modules/@statsig/js-client/src/ParamStoreGetterFactory.js +74 -0
  1041. package/cursor-sidecar/node_modules/@statsig/js-client/src/StatsigClient.d.ts +244 -0
  1042. package/cursor-sidecar/node_modules/@statsig/js-client/src/StatsigClient.js +418 -0
  1043. package/cursor-sidecar/node_modules/@statsig/js-client/src/StatsigEvaluationsDataAdapter.d.ts +15 -0
  1044. package/cursor-sidecar/node_modules/@statsig/js-client/src/StatsigEvaluationsDataAdapter.js +65 -0
  1045. package/cursor-sidecar/node_modules/@statsig/js-client/src/StatsigOptions.d.ts +42 -0
  1046. package/cursor-sidecar/node_modules/@statsig/js-client/src/StatsigOptions.js +2 -0
  1047. package/cursor-sidecar/node_modules/@statsig/js-client/src/V1InitializeContainer.d.ts +13 -0
  1048. package/cursor-sidecar/node_modules/@statsig/js-client/src/V1InitializeContainer.js +35 -0
  1049. package/cursor-sidecar/node_modules/@statsig/js-client/src/V2InitializeContainer.d.ts +13 -0
  1050. package/cursor-sidecar/node_modules/@statsig/js-client/src/V2InitializeContainer.js +82 -0
  1051. package/cursor-sidecar/node_modules/@statsig/js-client/src/index.d.ts +9 -0
  1052. package/cursor-sidecar/node_modules/@statsig/js-client/src/index.js +25 -0
  1053. package/cursor-sidecar/node_modules/undici/LICENSE +21 -0
  1054. package/cursor-sidecar/node_modules/undici/README.md +443 -0
  1055. package/cursor-sidecar/node_modules/undici/docs/api/Agent.md +80 -0
  1056. package/cursor-sidecar/node_modules/undici/docs/api/BalancedPool.md +99 -0
  1057. package/cursor-sidecar/node_modules/undici/docs/api/CacheStorage.md +30 -0
  1058. package/cursor-sidecar/node_modules/undici/docs/api/Client.md +273 -0
  1059. package/cursor-sidecar/node_modules/undici/docs/api/Connector.md +115 -0
  1060. package/cursor-sidecar/node_modules/undici/docs/api/ContentType.md +57 -0
  1061. package/cursor-sidecar/node_modules/undici/docs/api/Cookies.md +101 -0
  1062. package/cursor-sidecar/node_modules/undici/docs/api/DiagnosticsChannel.md +204 -0
  1063. package/cursor-sidecar/node_modules/undici/docs/api/DispatchInterceptor.md +60 -0
  1064. package/cursor-sidecar/node_modules/undici/docs/api/Dispatcher.md +887 -0
  1065. package/cursor-sidecar/node_modules/undici/docs/api/Errors.md +47 -0
  1066. package/cursor-sidecar/node_modules/undici/docs/api/Fetch.md +27 -0
  1067. package/cursor-sidecar/node_modules/undici/docs/api/MockAgent.md +540 -0
  1068. package/cursor-sidecar/node_modules/undici/docs/api/MockClient.md +77 -0
  1069. package/cursor-sidecar/node_modules/undici/docs/api/MockErrors.md +12 -0
  1070. package/cursor-sidecar/node_modules/undici/docs/api/MockPool.md +547 -0
  1071. package/cursor-sidecar/node_modules/undici/docs/api/Pool.md +84 -0
  1072. package/cursor-sidecar/node_modules/undici/docs/api/PoolStats.md +35 -0
  1073. package/cursor-sidecar/node_modules/undici/docs/api/ProxyAgent.md +126 -0
  1074. package/cursor-sidecar/node_modules/undici/docs/api/RetryHandler.md +108 -0
  1075. package/cursor-sidecar/node_modules/undici/docs/api/WebSocket.md +43 -0
  1076. package/cursor-sidecar/node_modules/undici/docs/api/api-lifecycle.md +62 -0
  1077. package/cursor-sidecar/node_modules/undici/docs/assets/lifecycle-diagram.png +0 -0
  1078. package/cursor-sidecar/node_modules/undici/docs/best-practices/client-certificate.md +64 -0
  1079. package/cursor-sidecar/node_modules/undici/docs/best-practices/mocking-request.md +136 -0
  1080. package/cursor-sidecar/node_modules/undici/docs/best-practices/proxy.md +127 -0
  1081. package/cursor-sidecar/node_modules/undici/docs/best-practices/writing-tests.md +20 -0
  1082. package/cursor-sidecar/node_modules/undici/index-fetch.js +15 -0
  1083. package/cursor-sidecar/node_modules/undici/index.d.ts +3 -0
  1084. package/cursor-sidecar/node_modules/undici/index.js +167 -0
  1085. package/cursor-sidecar/node_modules/undici/lib/agent.js +148 -0
  1086. package/cursor-sidecar/node_modules/undici/lib/api/abort-signal.js +54 -0
  1087. package/cursor-sidecar/node_modules/undici/lib/api/api-connect.js +104 -0
  1088. package/cursor-sidecar/node_modules/undici/lib/api/api-pipeline.js +249 -0
  1089. package/cursor-sidecar/node_modules/undici/lib/api/api-request.js +180 -0
  1090. package/cursor-sidecar/node_modules/undici/lib/api/api-stream.js +220 -0
  1091. package/cursor-sidecar/node_modules/undici/lib/api/api-upgrade.js +105 -0
  1092. package/cursor-sidecar/node_modules/undici/lib/api/index.js +7 -0
  1093. package/cursor-sidecar/node_modules/undici/lib/api/readable.js +322 -0
  1094. package/cursor-sidecar/node_modules/undici/lib/api/util.js +46 -0
  1095. package/cursor-sidecar/node_modules/undici/lib/balanced-pool.js +190 -0
  1096. package/cursor-sidecar/node_modules/undici/lib/cache/cache.js +838 -0
  1097. package/cursor-sidecar/node_modules/undici/lib/cache/cachestorage.js +144 -0
  1098. package/cursor-sidecar/node_modules/undici/lib/cache/symbols.js +5 -0
  1099. package/cursor-sidecar/node_modules/undici/lib/cache/util.js +49 -0
  1100. package/cursor-sidecar/node_modules/undici/lib/client.js +2283 -0
  1101. package/cursor-sidecar/node_modules/undici/lib/compat/dispatcher-weakref.js +48 -0
  1102. package/cursor-sidecar/node_modules/undici/lib/cookies/constants.js +12 -0
  1103. package/cursor-sidecar/node_modules/undici/lib/cookies/index.js +183 -0
  1104. package/cursor-sidecar/node_modules/undici/lib/cookies/parse.js +317 -0
  1105. package/cursor-sidecar/node_modules/undici/lib/cookies/util.js +274 -0
  1106. package/cursor-sidecar/node_modules/undici/lib/core/connect.js +189 -0
  1107. package/cursor-sidecar/node_modules/undici/lib/core/constants.js +118 -0
  1108. package/cursor-sidecar/node_modules/undici/lib/core/errors.js +230 -0
  1109. package/cursor-sidecar/node_modules/undici/lib/core/request.js +499 -0
  1110. package/cursor-sidecar/node_modules/undici/lib/core/symbols.js +63 -0
  1111. package/cursor-sidecar/node_modules/undici/lib/core/util.js +522 -0
  1112. package/cursor-sidecar/node_modules/undici/lib/dispatcher-base.js +192 -0
  1113. package/cursor-sidecar/node_modules/undici/lib/dispatcher.js +19 -0
  1114. package/cursor-sidecar/node_modules/undici/lib/fetch/LICENSE +21 -0
  1115. package/cursor-sidecar/node_modules/undici/lib/fetch/body.js +613 -0
  1116. package/cursor-sidecar/node_modules/undici/lib/fetch/constants.js +151 -0
  1117. package/cursor-sidecar/node_modules/undici/lib/fetch/dataURL.js +627 -0
  1118. package/cursor-sidecar/node_modules/undici/lib/fetch/file.js +344 -0
  1119. package/cursor-sidecar/node_modules/undici/lib/fetch/formdata.js +265 -0
  1120. package/cursor-sidecar/node_modules/undici/lib/fetch/global.js +40 -0
  1121. package/cursor-sidecar/node_modules/undici/lib/fetch/headers.js +593 -0
  1122. package/cursor-sidecar/node_modules/undici/lib/fetch/index.js +2148 -0
  1123. package/cursor-sidecar/node_modules/undici/lib/fetch/request.js +946 -0
  1124. package/cursor-sidecar/node_modules/undici/lib/fetch/response.js +571 -0
  1125. package/cursor-sidecar/node_modules/undici/lib/fetch/symbols.js +10 -0
  1126. package/cursor-sidecar/node_modules/undici/lib/fetch/util.js +1144 -0
  1127. package/cursor-sidecar/node_modules/undici/lib/fetch/webidl.js +646 -0
  1128. package/cursor-sidecar/node_modules/undici/lib/fileapi/encoding.js +290 -0
  1129. package/cursor-sidecar/node_modules/undici/lib/fileapi/filereader.js +344 -0
  1130. package/cursor-sidecar/node_modules/undici/lib/fileapi/progressevent.js +78 -0
  1131. package/cursor-sidecar/node_modules/undici/lib/fileapi/symbols.js +10 -0
  1132. package/cursor-sidecar/node_modules/undici/lib/fileapi/util.js +392 -0
  1133. package/cursor-sidecar/node_modules/undici/lib/global.js +32 -0
  1134. package/cursor-sidecar/node_modules/undici/lib/handler/DecoratorHandler.js +35 -0
  1135. package/cursor-sidecar/node_modules/undici/lib/handler/RedirectHandler.js +221 -0
  1136. package/cursor-sidecar/node_modules/undici/lib/handler/RetryHandler.js +336 -0
  1137. package/cursor-sidecar/node_modules/undici/lib/interceptor/redirectInterceptor.js +21 -0
  1138. package/cursor-sidecar/node_modules/undici/lib/llhttp/constants.d.ts +199 -0
  1139. package/cursor-sidecar/node_modules/undici/lib/llhttp/constants.js +278 -0
  1140. package/cursor-sidecar/node_modules/undici/lib/llhttp/constants.js.map +1 -0
  1141. package/cursor-sidecar/node_modules/undici/lib/llhttp/llhttp-wasm.js +1 -0
  1142. package/cursor-sidecar/node_modules/undici/lib/llhttp/llhttp.wasm +0 -0
  1143. package/cursor-sidecar/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +1 -0
  1144. package/cursor-sidecar/node_modules/undici/lib/llhttp/llhttp_simd.wasm +0 -0
  1145. package/cursor-sidecar/node_modules/undici/lib/llhttp/utils.d.ts +4 -0
  1146. package/cursor-sidecar/node_modules/undici/lib/llhttp/utils.js +15 -0
  1147. package/cursor-sidecar/node_modules/undici/lib/llhttp/utils.js.map +1 -0
  1148. package/cursor-sidecar/node_modules/undici/lib/llhttp/wasm_build_env.txt +32 -0
  1149. package/cursor-sidecar/node_modules/undici/lib/mock/mock-agent.js +171 -0
  1150. package/cursor-sidecar/node_modules/undici/lib/mock/mock-client.js +59 -0
  1151. package/cursor-sidecar/node_modules/undici/lib/mock/mock-errors.js +17 -0
  1152. package/cursor-sidecar/node_modules/undici/lib/mock/mock-interceptor.js +206 -0
  1153. package/cursor-sidecar/node_modules/undici/lib/mock/mock-pool.js +59 -0
  1154. package/cursor-sidecar/node_modules/undici/lib/mock/mock-symbols.js +23 -0
  1155. package/cursor-sidecar/node_modules/undici/lib/mock/mock-utils.js +351 -0
  1156. package/cursor-sidecar/node_modules/undici/lib/mock/pending-interceptors-formatter.js +40 -0
  1157. package/cursor-sidecar/node_modules/undici/lib/mock/pluralizer.js +29 -0
  1158. package/cursor-sidecar/node_modules/undici/lib/node/fixed-queue.js +117 -0
  1159. package/cursor-sidecar/node_modules/undici/lib/pool-base.js +194 -0
  1160. package/cursor-sidecar/node_modules/undici/lib/pool-stats.js +34 -0
  1161. package/cursor-sidecar/node_modules/undici/lib/pool.js +108 -0
  1162. package/cursor-sidecar/node_modules/undici/lib/proxy-agent.js +189 -0
  1163. package/cursor-sidecar/node_modules/undici/lib/timers.js +97 -0
  1164. package/cursor-sidecar/node_modules/undici/lib/websocket/connection.js +291 -0
  1165. package/cursor-sidecar/node_modules/undici/lib/websocket/constants.js +51 -0
  1166. package/cursor-sidecar/node_modules/undici/lib/websocket/events.js +303 -0
  1167. package/cursor-sidecar/node_modules/undici/lib/websocket/frame.js +73 -0
  1168. package/cursor-sidecar/node_modules/undici/lib/websocket/receiver.js +344 -0
  1169. package/cursor-sidecar/node_modules/undici/lib/websocket/symbols.js +12 -0
  1170. package/cursor-sidecar/node_modules/undici/lib/websocket/util.js +200 -0
  1171. package/cursor-sidecar/node_modules/undici/lib/websocket/websocket.js +641 -0
  1172. package/cursor-sidecar/node_modules/undici/package.json +167 -0
  1173. package/cursor-sidecar/node_modules/undici/types/README.md +6 -0
  1174. package/cursor-sidecar/node_modules/undici/types/agent.d.ts +31 -0
  1175. package/cursor-sidecar/node_modules/undici/types/api.d.ts +43 -0
  1176. package/cursor-sidecar/node_modules/undici/types/balanced-pool.d.ts +18 -0
  1177. package/cursor-sidecar/node_modules/undici/types/cache.d.ts +36 -0
  1178. package/cursor-sidecar/node_modules/undici/types/client.d.ts +97 -0
  1179. package/cursor-sidecar/node_modules/undici/types/connector.d.ts +34 -0
  1180. package/cursor-sidecar/node_modules/undici/types/content-type.d.ts +21 -0
  1181. package/cursor-sidecar/node_modules/undici/types/cookies.d.ts +28 -0
  1182. package/cursor-sidecar/node_modules/undici/types/diagnostics-channel.d.ts +67 -0
  1183. package/cursor-sidecar/node_modules/undici/types/dispatcher.d.ts +241 -0
  1184. package/cursor-sidecar/node_modules/undici/types/errors.d.ts +128 -0
  1185. package/cursor-sidecar/node_modules/undici/types/fetch.d.ts +209 -0
  1186. package/cursor-sidecar/node_modules/undici/types/file.d.ts +39 -0
  1187. package/cursor-sidecar/node_modules/undici/types/filereader.d.ts +54 -0
  1188. package/cursor-sidecar/node_modules/undici/types/formdata.d.ts +108 -0
  1189. package/cursor-sidecar/node_modules/undici/types/global-dispatcher.d.ts +9 -0
  1190. package/cursor-sidecar/node_modules/undici/types/global-origin.d.ts +7 -0
  1191. package/cursor-sidecar/node_modules/undici/types/handlers.d.ts +9 -0
  1192. package/cursor-sidecar/node_modules/undici/types/header.d.ts +4 -0
  1193. package/cursor-sidecar/node_modules/undici/types/index.d.ts +65 -0
  1194. package/cursor-sidecar/node_modules/undici/types/interceptors.d.ts +5 -0
  1195. package/cursor-sidecar/node_modules/undici/types/mock-agent.d.ts +50 -0
  1196. package/cursor-sidecar/node_modules/undici/types/mock-client.d.ts +25 -0
  1197. package/cursor-sidecar/node_modules/undici/types/mock-errors.d.ts +12 -0
  1198. package/cursor-sidecar/node_modules/undici/types/mock-interceptor.d.ts +93 -0
  1199. package/cursor-sidecar/node_modules/undici/types/mock-pool.d.ts +25 -0
  1200. package/cursor-sidecar/node_modules/undici/types/patch.d.ts +71 -0
  1201. package/cursor-sidecar/node_modules/undici/types/pool-stats.d.ts +19 -0
  1202. package/cursor-sidecar/node_modules/undici/types/pool.d.ts +28 -0
  1203. package/cursor-sidecar/node_modules/undici/types/proxy-agent.d.ts +30 -0
  1204. package/cursor-sidecar/node_modules/undici/types/readable.d.ts +61 -0
  1205. package/cursor-sidecar/node_modules/undici/types/retry-handler.d.ts +116 -0
  1206. package/cursor-sidecar/node_modules/undici/types/webidl.d.ts +220 -0
  1207. package/cursor-sidecar/node_modules/undici/types/websocket.d.ts +131 -0
  1208. package/cursor-sidecar/node_modules/zod/LICENSE +21 -0
  1209. package/cursor-sidecar/node_modules/zod/README.md +208 -0
  1210. package/cursor-sidecar/node_modules/zod/index.cjs +33 -0
  1211. package/cursor-sidecar/node_modules/zod/index.d.cts +4 -0
  1212. package/cursor-sidecar/node_modules/zod/index.d.ts +4 -0
  1213. package/cursor-sidecar/node_modules/zod/index.js +4 -0
  1214. package/cursor-sidecar/node_modules/zod/package.json +118 -0
  1215. package/cursor-sidecar/node_modules/zod/src/index.ts +4 -0
  1216. package/cursor-sidecar/node_modules/zod/src/v3/ZodError.ts +330 -0
  1217. package/cursor-sidecar/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  1218. package/cursor-sidecar/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  1219. package/cursor-sidecar/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  1220. package/cursor-sidecar/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  1221. package/cursor-sidecar/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  1222. package/cursor-sidecar/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  1223. package/cursor-sidecar/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  1224. package/cursor-sidecar/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  1225. package/cursor-sidecar/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  1226. package/cursor-sidecar/node_modules/zod/src/v3/errors.ts +13 -0
  1227. package/cursor-sidecar/node_modules/zod/src/v3/external.ts +6 -0
  1228. package/cursor-sidecar/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  1229. package/cursor-sidecar/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  1230. package/cursor-sidecar/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  1231. package/cursor-sidecar/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  1232. package/cursor-sidecar/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  1233. package/cursor-sidecar/node_modules/zod/src/v3/helpers/util.ts +224 -0
  1234. package/cursor-sidecar/node_modules/zod/src/v3/index.ts +4 -0
  1235. package/cursor-sidecar/node_modules/zod/src/v3/locales/en.ts +124 -0
  1236. package/cursor-sidecar/node_modules/zod/src/v3/standard-schema.ts +113 -0
  1237. package/cursor-sidecar/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  1238. package/cursor-sidecar/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  1239. package/cursor-sidecar/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  1240. package/cursor-sidecar/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  1241. package/cursor-sidecar/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  1242. package/cursor-sidecar/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  1243. package/cursor-sidecar/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  1244. package/cursor-sidecar/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  1245. package/cursor-sidecar/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  1246. package/cursor-sidecar/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  1247. package/cursor-sidecar/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  1248. package/cursor-sidecar/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  1249. package/cursor-sidecar/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  1250. package/cursor-sidecar/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  1251. package/cursor-sidecar/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  1252. package/cursor-sidecar/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  1253. package/cursor-sidecar/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  1254. package/cursor-sidecar/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  1255. package/cursor-sidecar/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  1256. package/cursor-sidecar/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  1257. package/cursor-sidecar/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  1258. package/cursor-sidecar/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  1259. package/cursor-sidecar/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  1260. package/cursor-sidecar/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  1261. package/cursor-sidecar/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  1262. package/cursor-sidecar/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  1263. package/cursor-sidecar/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  1264. package/cursor-sidecar/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  1265. package/cursor-sidecar/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  1266. package/cursor-sidecar/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  1267. package/cursor-sidecar/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  1268. package/cursor-sidecar/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  1269. package/cursor-sidecar/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  1270. package/cursor-sidecar/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  1271. package/cursor-sidecar/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  1272. package/cursor-sidecar/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  1273. package/cursor-sidecar/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  1274. package/cursor-sidecar/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  1275. package/cursor-sidecar/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  1276. package/cursor-sidecar/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  1277. package/cursor-sidecar/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  1278. package/cursor-sidecar/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  1279. package/cursor-sidecar/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  1280. package/cursor-sidecar/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  1281. package/cursor-sidecar/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  1282. package/cursor-sidecar/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  1283. package/cursor-sidecar/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  1284. package/cursor-sidecar/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  1285. package/cursor-sidecar/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  1286. package/cursor-sidecar/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  1287. package/cursor-sidecar/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  1288. package/cursor-sidecar/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  1289. package/cursor-sidecar/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  1290. package/cursor-sidecar/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  1291. package/cursor-sidecar/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  1292. package/cursor-sidecar/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  1293. package/cursor-sidecar/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  1294. package/cursor-sidecar/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  1295. package/cursor-sidecar/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  1296. package/cursor-sidecar/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  1297. package/cursor-sidecar/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  1298. package/cursor-sidecar/node_modules/zod/src/v3/types.ts +5136 -0
  1299. package/cursor-sidecar/node_modules/zod/src/v4/classic/checks.ts +30 -0
  1300. package/cursor-sidecar/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  1301. package/cursor-sidecar/node_modules/zod/src/v4/classic/compat.ts +66 -0
  1302. package/cursor-sidecar/node_modules/zod/src/v4/classic/errors.ts +75 -0
  1303. package/cursor-sidecar/node_modules/zod/src/v4/classic/external.ts +50 -0
  1304. package/cursor-sidecar/node_modules/zod/src/v4/classic/index.ts +5 -0
  1305. package/cursor-sidecar/node_modules/zod/src/v4/classic/iso.ts +90 -0
  1306. package/cursor-sidecar/node_modules/zod/src/v4/classic/parse.ts +33 -0
  1307. package/cursor-sidecar/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  1308. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  1309. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  1310. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  1311. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  1312. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  1313. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  1314. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  1315. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  1316. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  1317. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  1318. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  1319. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  1320. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  1321. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  1322. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  1323. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  1324. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  1325. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  1326. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  1327. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  1328. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  1329. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  1330. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  1331. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  1332. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  1333. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  1334. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  1335. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  1336. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  1337. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  1338. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  1339. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  1340. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  1341. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  1342. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  1343. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  1344. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  1345. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  1346. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  1347. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  1348. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  1349. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  1350. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  1351. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  1352. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  1353. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  1354. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  1355. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  1356. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  1357. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  1358. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  1359. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  1360. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  1361. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  1362. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  1363. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  1364. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  1365. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  1366. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  1367. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  1368. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  1369. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  1370. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  1371. package/cursor-sidecar/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  1372. package/cursor-sidecar/node_modules/zod/src/v4/core/api.ts +1594 -0
  1373. package/cursor-sidecar/node_modules/zod/src/v4/core/checks.ts +1283 -0
  1374. package/cursor-sidecar/node_modules/zod/src/v4/core/config.ts +15 -0
  1375. package/cursor-sidecar/node_modules/zod/src/v4/core/core.ts +134 -0
  1376. package/cursor-sidecar/node_modules/zod/src/v4/core/doc.ts +44 -0
  1377. package/cursor-sidecar/node_modules/zod/src/v4/core/errors.ts +424 -0
  1378. package/cursor-sidecar/node_modules/zod/src/v4/core/function.ts +176 -0
  1379. package/cursor-sidecar/node_modules/zod/src/v4/core/index.ts +15 -0
  1380. package/cursor-sidecar/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  1381. package/cursor-sidecar/node_modules/zod/src/v4/core/parse.ts +94 -0
  1382. package/cursor-sidecar/node_modules/zod/src/v4/core/regexes.ts +135 -0
  1383. package/cursor-sidecar/node_modules/zod/src/v4/core/registries.ts +96 -0
  1384. package/cursor-sidecar/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  1385. package/cursor-sidecar/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  1386. package/cursor-sidecar/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  1387. package/cursor-sidecar/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  1388. package/cursor-sidecar/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  1389. package/cursor-sidecar/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  1390. package/cursor-sidecar/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  1391. package/cursor-sidecar/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  1392. package/cursor-sidecar/node_modules/zod/src/v4/core/util.ts +775 -0
  1393. package/cursor-sidecar/node_modules/zod/src/v4/core/versions.ts +5 -0
  1394. package/cursor-sidecar/node_modules/zod/src/v4/core/zsf.ts +323 -0
  1395. package/cursor-sidecar/node_modules/zod/src/v4/index.ts +4 -0
  1396. package/cursor-sidecar/node_modules/zod/src/v4/locales/ar.ts +125 -0
  1397. package/cursor-sidecar/node_modules/zod/src/v4/locales/az.ts +121 -0
  1398. package/cursor-sidecar/node_modules/zod/src/v4/locales/be.ts +184 -0
  1399. package/cursor-sidecar/node_modules/zod/src/v4/locales/ca.ts +127 -0
  1400. package/cursor-sidecar/node_modules/zod/src/v4/locales/cs.ts +142 -0
  1401. package/cursor-sidecar/node_modules/zod/src/v4/locales/de.ts +124 -0
  1402. package/cursor-sidecar/node_modules/zod/src/v4/locales/en.ts +127 -0
  1403. package/cursor-sidecar/node_modules/zod/src/v4/locales/eo.ts +125 -0
  1404. package/cursor-sidecar/node_modules/zod/src/v4/locales/es.ts +125 -0
  1405. package/cursor-sidecar/node_modules/zod/src/v4/locales/fa.ts +134 -0
  1406. package/cursor-sidecar/node_modules/zod/src/v4/locales/fi.ts +131 -0
  1407. package/cursor-sidecar/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  1408. package/cursor-sidecar/node_modules/zod/src/v4/locales/fr.ts +124 -0
  1409. package/cursor-sidecar/node_modules/zod/src/v4/locales/he.ts +125 -0
  1410. package/cursor-sidecar/node_modules/zod/src/v4/locales/hu.ts +126 -0
  1411. package/cursor-sidecar/node_modules/zod/src/v4/locales/id.ts +125 -0
  1412. package/cursor-sidecar/node_modules/zod/src/v4/locales/index.ts +39 -0
  1413. package/cursor-sidecar/node_modules/zod/src/v4/locales/it.ts +125 -0
  1414. package/cursor-sidecar/node_modules/zod/src/v4/locales/ja.ts +122 -0
  1415. package/cursor-sidecar/node_modules/zod/src/v4/locales/kh.ts +126 -0
  1416. package/cursor-sidecar/node_modules/zod/src/v4/locales/ko.ts +131 -0
  1417. package/cursor-sidecar/node_modules/zod/src/v4/locales/mk.ts +127 -0
  1418. package/cursor-sidecar/node_modules/zod/src/v4/locales/ms.ts +124 -0
  1419. package/cursor-sidecar/node_modules/zod/src/v4/locales/nl.ts +126 -0
  1420. package/cursor-sidecar/node_modules/zod/src/v4/locales/no.ts +124 -0
  1421. package/cursor-sidecar/node_modules/zod/src/v4/locales/ota.ts +125 -0
  1422. package/cursor-sidecar/node_modules/zod/src/v4/locales/pl.ts +126 -0
  1423. package/cursor-sidecar/node_modules/zod/src/v4/locales/ps.ts +133 -0
  1424. package/cursor-sidecar/node_modules/zod/src/v4/locales/pt.ts +123 -0
  1425. package/cursor-sidecar/node_modules/zod/src/v4/locales/ru.ts +184 -0
  1426. package/cursor-sidecar/node_modules/zod/src/v4/locales/sl.ts +126 -0
  1427. package/cursor-sidecar/node_modules/zod/src/v4/locales/sv.ts +127 -0
  1428. package/cursor-sidecar/node_modules/zod/src/v4/locales/ta.ts +125 -0
  1429. package/cursor-sidecar/node_modules/zod/src/v4/locales/th.ts +126 -0
  1430. package/cursor-sidecar/node_modules/zod/src/v4/locales/tr.ts +121 -0
  1431. package/cursor-sidecar/node_modules/zod/src/v4/locales/ua.ts +126 -0
  1432. package/cursor-sidecar/node_modules/zod/src/v4/locales/ur.ts +126 -0
  1433. package/cursor-sidecar/node_modules/zod/src/v4/locales/vi.ts +125 -0
  1434. package/cursor-sidecar/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  1435. package/cursor-sidecar/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  1436. package/cursor-sidecar/node_modules/zod/src/v4/mini/checks.ts +32 -0
  1437. package/cursor-sidecar/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  1438. package/cursor-sidecar/node_modules/zod/src/v4/mini/external.ts +40 -0
  1439. package/cursor-sidecar/node_modules/zod/src/v4/mini/index.ts +3 -0
  1440. package/cursor-sidecar/node_modules/zod/src/v4/mini/iso.ts +62 -0
  1441. package/cursor-sidecar/node_modules/zod/src/v4/mini/parse.ts +1 -0
  1442. package/cursor-sidecar/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  1443. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  1444. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  1445. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  1446. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  1447. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  1448. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  1449. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  1450. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  1451. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  1452. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  1453. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  1454. package/cursor-sidecar/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  1455. package/cursor-sidecar/node_modules/zod/src/v4-mini/index.ts +1 -0
  1456. package/cursor-sidecar/node_modules/zod/v3/ZodError.cjs +138 -0
  1457. package/cursor-sidecar/node_modules/zod/v3/ZodError.d.cts +164 -0
  1458. package/cursor-sidecar/node_modules/zod/v3/ZodError.d.ts +164 -0
  1459. package/cursor-sidecar/node_modules/zod/v3/ZodError.js +133 -0
  1460. package/cursor-sidecar/node_modules/zod/v3/errors.cjs +17 -0
  1461. package/cursor-sidecar/node_modules/zod/v3/errors.d.cts +5 -0
  1462. package/cursor-sidecar/node_modules/zod/v3/errors.d.ts +5 -0
  1463. package/cursor-sidecar/node_modules/zod/v3/errors.js +9 -0
  1464. package/cursor-sidecar/node_modules/zod/v3/external.cjs +22 -0
  1465. package/cursor-sidecar/node_modules/zod/v3/external.d.cts +6 -0
  1466. package/cursor-sidecar/node_modules/zod/v3/external.d.ts +6 -0
  1467. package/cursor-sidecar/node_modules/zod/v3/external.js +6 -0
  1468. package/cursor-sidecar/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  1469. package/cursor-sidecar/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  1470. package/cursor-sidecar/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  1471. package/cursor-sidecar/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  1472. package/cursor-sidecar/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  1473. package/cursor-sidecar/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  1474. package/cursor-sidecar/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  1475. package/cursor-sidecar/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  1476. package/cursor-sidecar/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  1477. package/cursor-sidecar/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1478. package/cursor-sidecar/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1479. package/cursor-sidecar/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1480. package/cursor-sidecar/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  1481. package/cursor-sidecar/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1482. package/cursor-sidecar/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1483. package/cursor-sidecar/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1484. package/cursor-sidecar/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  1485. package/cursor-sidecar/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1486. package/cursor-sidecar/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1487. package/cursor-sidecar/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1488. package/cursor-sidecar/node_modules/zod/v3/helpers/util.cjs +137 -0
  1489. package/cursor-sidecar/node_modules/zod/v3/helpers/util.d.cts +85 -0
  1490. package/cursor-sidecar/node_modules/zod/v3/helpers/util.d.ts +85 -0
  1491. package/cursor-sidecar/node_modules/zod/v3/helpers/util.js +133 -0
  1492. package/cursor-sidecar/node_modules/zod/v3/index.cjs +33 -0
  1493. package/cursor-sidecar/node_modules/zod/v3/index.d.cts +4 -0
  1494. package/cursor-sidecar/node_modules/zod/v3/index.d.ts +4 -0
  1495. package/cursor-sidecar/node_modules/zod/v3/index.js +4 -0
  1496. package/cursor-sidecar/node_modules/zod/v3/locales/en.cjs +111 -0
  1497. package/cursor-sidecar/node_modules/zod/v3/locales/en.d.cts +3 -0
  1498. package/cursor-sidecar/node_modules/zod/v3/locales/en.d.ts +3 -0
  1499. package/cursor-sidecar/node_modules/zod/v3/locales/en.js +109 -0
  1500. package/cursor-sidecar/node_modules/zod/v3/standard-schema.cjs +2 -0
  1501. package/cursor-sidecar/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1502. package/cursor-sidecar/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1503. package/cursor-sidecar/node_modules/zod/v3/standard-schema.js +1 -0
  1504. package/cursor-sidecar/node_modules/zod/v3/types.cjs +3775 -0
  1505. package/cursor-sidecar/node_modules/zod/v3/types.d.cts +1031 -0
  1506. package/cursor-sidecar/node_modules/zod/v3/types.d.ts +1031 -0
  1507. package/cursor-sidecar/node_modules/zod/v3/types.js +3693 -0
  1508. package/cursor-sidecar/node_modules/zod/v4/classic/checks.cjs +32 -0
  1509. package/cursor-sidecar/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1510. package/cursor-sidecar/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1511. package/cursor-sidecar/node_modules/zod/v4/classic/checks.js +1 -0
  1512. package/cursor-sidecar/node_modules/zod/v4/classic/coerce.cjs +47 -0
  1513. package/cursor-sidecar/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1514. package/cursor-sidecar/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1515. package/cursor-sidecar/node_modules/zod/v4/classic/coerce.js +17 -0
  1516. package/cursor-sidecar/node_modules/zod/v4/classic/compat.cjs +57 -0
  1517. package/cursor-sidecar/node_modules/zod/v4/classic/compat.d.cts +46 -0
  1518. package/cursor-sidecar/node_modules/zod/v4/classic/compat.d.ts +46 -0
  1519. package/cursor-sidecar/node_modules/zod/v4/classic/compat.js +27 -0
  1520. package/cursor-sidecar/node_modules/zod/v4/classic/errors.cjs +67 -0
  1521. package/cursor-sidecar/node_modules/zod/v4/classic/errors.d.cts +30 -0
  1522. package/cursor-sidecar/node_modules/zod/v4/classic/errors.d.ts +30 -0
  1523. package/cursor-sidecar/node_modules/zod/v4/classic/errors.js +41 -0
  1524. package/cursor-sidecar/node_modules/zod/v4/classic/external.cjs +70 -0
  1525. package/cursor-sidecar/node_modules/zod/v4/classic/external.d.cts +13 -0
  1526. package/cursor-sidecar/node_modules/zod/v4/classic/external.d.ts +13 -0
  1527. package/cursor-sidecar/node_modules/zod/v4/classic/external.js +18 -0
  1528. package/cursor-sidecar/node_modules/zod/v4/classic/index.cjs +33 -0
  1529. package/cursor-sidecar/node_modules/zod/v4/classic/index.d.cts +4 -0
  1530. package/cursor-sidecar/node_modules/zod/v4/classic/index.d.ts +4 -0
  1531. package/cursor-sidecar/node_modules/zod/v4/classic/index.js +4 -0
  1532. package/cursor-sidecar/node_modules/zod/v4/classic/iso.cjs +60 -0
  1533. package/cursor-sidecar/node_modules/zod/v4/classic/iso.d.cts +22 -0
  1534. package/cursor-sidecar/node_modules/zod/v4/classic/iso.d.ts +22 -0
  1535. package/cursor-sidecar/node_modules/zod/v4/classic/iso.js +30 -0
  1536. package/cursor-sidecar/node_modules/zod/v4/classic/parse.cjs +32 -0
  1537. package/cursor-sidecar/node_modules/zod/v4/classic/parse.d.cts +23 -0
  1538. package/cursor-sidecar/node_modules/zod/v4/classic/parse.d.ts +23 -0
  1539. package/cursor-sidecar/node_modules/zod/v4/classic/parse.js +6 -0
  1540. package/cursor-sidecar/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  1541. package/cursor-sidecar/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  1542. package/cursor-sidecar/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  1543. package/cursor-sidecar/node_modules/zod/v4/classic/schemas.js +1006 -0
  1544. package/cursor-sidecar/node_modules/zod/v4/core/api.cjs +1039 -0
  1545. package/cursor-sidecar/node_modules/zod/v4/core/api.d.cts +284 -0
  1546. package/cursor-sidecar/node_modules/zod/v4/core/api.d.ts +284 -0
  1547. package/cursor-sidecar/node_modules/zod/v4/core/api.js +906 -0
  1548. package/cursor-sidecar/node_modules/zod/v4/core/checks.cjs +591 -0
  1549. package/cursor-sidecar/node_modules/zod/v4/core/checks.d.cts +278 -0
  1550. package/cursor-sidecar/node_modules/zod/v4/core/checks.d.ts +278 -0
  1551. package/cursor-sidecar/node_modules/zod/v4/core/checks.js +565 -0
  1552. package/cursor-sidecar/node_modules/zod/v4/core/core.cjs +67 -0
  1553. package/cursor-sidecar/node_modules/zod/v4/core/core.d.cts +49 -0
  1554. package/cursor-sidecar/node_modules/zod/v4/core/core.d.ts +49 -0
  1555. package/cursor-sidecar/node_modules/zod/v4/core/core.js +61 -0
  1556. package/cursor-sidecar/node_modules/zod/v4/core/doc.cjs +39 -0
  1557. package/cursor-sidecar/node_modules/zod/v4/core/doc.d.cts +14 -0
  1558. package/cursor-sidecar/node_modules/zod/v4/core/doc.d.ts +14 -0
  1559. package/cursor-sidecar/node_modules/zod/v4/core/doc.js +35 -0
  1560. package/cursor-sidecar/node_modules/zod/v4/core/errors.cjs +226 -0
  1561. package/cursor-sidecar/node_modules/zod/v4/core/errors.d.cts +208 -0
  1562. package/cursor-sidecar/node_modules/zod/v4/core/errors.d.ts +208 -0
  1563. package/cursor-sidecar/node_modules/zod/v4/core/errors.js +195 -0
  1564. package/cursor-sidecar/node_modules/zod/v4/core/function.cjs +102 -0
  1565. package/cursor-sidecar/node_modules/zod/v4/core/function.d.cts +52 -0
  1566. package/cursor-sidecar/node_modules/zod/v4/core/function.d.ts +52 -0
  1567. package/cursor-sidecar/node_modules/zod/v4/core/function.js +75 -0
  1568. package/cursor-sidecar/node_modules/zod/v4/core/index.cjs +44 -0
  1569. package/cursor-sidecar/node_modules/zod/v4/core/index.d.cts +15 -0
  1570. package/cursor-sidecar/node_modules/zod/v4/core/index.d.ts +15 -0
  1571. package/cursor-sidecar/node_modules/zod/v4/core/index.js +15 -0
  1572. package/cursor-sidecar/node_modules/zod/v4/core/json-schema.cjs +2 -0
  1573. package/cursor-sidecar/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  1574. package/cursor-sidecar/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  1575. package/cursor-sidecar/node_modules/zod/v4/core/json-schema.js +1 -0
  1576. package/cursor-sidecar/node_modules/zod/v4/core/parse.cjs +87 -0
  1577. package/cursor-sidecar/node_modules/zod/v4/core/parse.d.cts +25 -0
  1578. package/cursor-sidecar/node_modules/zod/v4/core/parse.d.ts +25 -0
  1579. package/cursor-sidecar/node_modules/zod/v4/core/parse.js +57 -0
  1580. package/cursor-sidecar/node_modules/zod/v4/core/regexes.cjs +103 -0
  1581. package/cursor-sidecar/node_modules/zod/v4/core/regexes.d.cts +62 -0
  1582. package/cursor-sidecar/node_modules/zod/v4/core/regexes.d.ts +62 -0
  1583. package/cursor-sidecar/node_modules/zod/v4/core/regexes.js +95 -0
  1584. package/cursor-sidecar/node_modules/zod/v4/core/registries.cjs +56 -0
  1585. package/cursor-sidecar/node_modules/zod/v4/core/registries.d.cts +35 -0
  1586. package/cursor-sidecar/node_modules/zod/v4/core/registries.d.ts +35 -0
  1587. package/cursor-sidecar/node_modules/zod/v4/core/registries.js +51 -0
  1588. package/cursor-sidecar/node_modules/zod/v4/core/schemas.cjs +1748 -0
  1589. package/cursor-sidecar/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  1590. package/cursor-sidecar/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  1591. package/cursor-sidecar/node_modules/zod/v4/core/schemas.js +1717 -0
  1592. package/cursor-sidecar/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  1593. package/cursor-sidecar/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  1594. package/cursor-sidecar/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  1595. package/cursor-sidecar/node_modules/zod/v4/core/standard-schema.js +1 -0
  1596. package/cursor-sidecar/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  1597. package/cursor-sidecar/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  1598. package/cursor-sidecar/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  1599. package/cursor-sidecar/node_modules/zod/v4/core/to-json-schema.js +849 -0
  1600. package/cursor-sidecar/node_modules/zod/v4/core/util.cjs +539 -0
  1601. package/cursor-sidecar/node_modules/zod/v4/core/util.d.cts +183 -0
  1602. package/cursor-sidecar/node_modules/zod/v4/core/util.d.ts +183 -0
  1603. package/cursor-sidecar/node_modules/zod/v4/core/util.js +493 -0
  1604. package/cursor-sidecar/node_modules/zod/v4/core/versions.cjs +8 -0
  1605. package/cursor-sidecar/node_modules/zod/v4/core/versions.d.cts +5 -0
  1606. package/cursor-sidecar/node_modules/zod/v4/core/versions.d.ts +5 -0
  1607. package/cursor-sidecar/node_modules/zod/v4/core/versions.js +5 -0
  1608. package/cursor-sidecar/node_modules/zod/v4/index.cjs +22 -0
  1609. package/cursor-sidecar/node_modules/zod/v4/index.d.cts +3 -0
  1610. package/cursor-sidecar/node_modules/zod/v4/index.d.ts +3 -0
  1611. package/cursor-sidecar/node_modules/zod/v4/index.js +3 -0
  1612. package/cursor-sidecar/node_modules/zod/v4/locales/ar.cjs +142 -0
  1613. package/cursor-sidecar/node_modules/zod/v4/locales/ar.d.cts +4 -0
  1614. package/cursor-sidecar/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1615. package/cursor-sidecar/node_modules/zod/v4/locales/ar.js +116 -0
  1616. package/cursor-sidecar/node_modules/zod/v4/locales/az.cjs +141 -0
  1617. package/cursor-sidecar/node_modules/zod/v4/locales/az.d.cts +4 -0
  1618. package/cursor-sidecar/node_modules/zod/v4/locales/az.d.ts +4 -0
  1619. package/cursor-sidecar/node_modules/zod/v4/locales/az.js +115 -0
  1620. package/cursor-sidecar/node_modules/zod/v4/locales/be.cjs +190 -0
  1621. package/cursor-sidecar/node_modules/zod/v4/locales/be.d.cts +4 -0
  1622. package/cursor-sidecar/node_modules/zod/v4/locales/be.d.ts +4 -0
  1623. package/cursor-sidecar/node_modules/zod/v4/locales/be.js +164 -0
  1624. package/cursor-sidecar/node_modules/zod/v4/locales/ca.cjs +144 -0
  1625. package/cursor-sidecar/node_modules/zod/v4/locales/ca.d.cts +4 -0
  1626. package/cursor-sidecar/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1627. package/cursor-sidecar/node_modules/zod/v4/locales/ca.js +118 -0
  1628. package/cursor-sidecar/node_modules/zod/v4/locales/cs.cjs +161 -0
  1629. package/cursor-sidecar/node_modules/zod/v4/locales/cs.d.cts +4 -0
  1630. package/cursor-sidecar/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1631. package/cursor-sidecar/node_modules/zod/v4/locales/cs.js +135 -0
  1632. package/cursor-sidecar/node_modules/zod/v4/locales/de.cjs +142 -0
  1633. package/cursor-sidecar/node_modules/zod/v4/locales/de.d.cts +4 -0
  1634. package/cursor-sidecar/node_modules/zod/v4/locales/de.d.ts +4 -0
  1635. package/cursor-sidecar/node_modules/zod/v4/locales/de.js +116 -0
  1636. package/cursor-sidecar/node_modules/zod/v4/locales/en.cjs +145 -0
  1637. package/cursor-sidecar/node_modules/zod/v4/locales/en.d.cts +5 -0
  1638. package/cursor-sidecar/node_modules/zod/v4/locales/en.d.ts +5 -0
  1639. package/cursor-sidecar/node_modules/zod/v4/locales/en.js +117 -0
  1640. package/cursor-sidecar/node_modules/zod/v4/locales/eo.cjs +144 -0
  1641. package/cursor-sidecar/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1642. package/cursor-sidecar/node_modules/zod/v4/locales/eo.d.ts +5 -0
  1643. package/cursor-sidecar/node_modules/zod/v4/locales/eo.js +116 -0
  1644. package/cursor-sidecar/node_modules/zod/v4/locales/es.cjs +143 -0
  1645. package/cursor-sidecar/node_modules/zod/v4/locales/es.d.cts +4 -0
  1646. package/cursor-sidecar/node_modules/zod/v4/locales/es.d.ts +4 -0
  1647. package/cursor-sidecar/node_modules/zod/v4/locales/es.js +117 -0
  1648. package/cursor-sidecar/node_modules/zod/v4/locales/fa.cjs +148 -0
  1649. package/cursor-sidecar/node_modules/zod/v4/locales/fa.d.cts +4 -0
  1650. package/cursor-sidecar/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1651. package/cursor-sidecar/node_modules/zod/v4/locales/fa.js +122 -0
  1652. package/cursor-sidecar/node_modules/zod/v4/locales/fi.cjs +148 -0
  1653. package/cursor-sidecar/node_modules/zod/v4/locales/fi.d.cts +4 -0
  1654. package/cursor-sidecar/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1655. package/cursor-sidecar/node_modules/zod/v4/locales/fi.js +122 -0
  1656. package/cursor-sidecar/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  1657. package/cursor-sidecar/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  1658. package/cursor-sidecar/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1659. package/cursor-sidecar/node_modules/zod/v4/locales/fr-CA.js +117 -0
  1660. package/cursor-sidecar/node_modules/zod/v4/locales/fr.cjs +142 -0
  1661. package/cursor-sidecar/node_modules/zod/v4/locales/fr.d.cts +4 -0
  1662. package/cursor-sidecar/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1663. package/cursor-sidecar/node_modules/zod/v4/locales/fr.js +116 -0
  1664. package/cursor-sidecar/node_modules/zod/v4/locales/he.cjs +143 -0
  1665. package/cursor-sidecar/node_modules/zod/v4/locales/he.d.cts +4 -0
  1666. package/cursor-sidecar/node_modules/zod/v4/locales/he.d.ts +4 -0
  1667. package/cursor-sidecar/node_modules/zod/v4/locales/he.js +117 -0
  1668. package/cursor-sidecar/node_modules/zod/v4/locales/hu.cjs +143 -0
  1669. package/cursor-sidecar/node_modules/zod/v4/locales/hu.d.cts +4 -0
  1670. package/cursor-sidecar/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1671. package/cursor-sidecar/node_modules/zod/v4/locales/hu.js +117 -0
  1672. package/cursor-sidecar/node_modules/zod/v4/locales/id.cjs +142 -0
  1673. package/cursor-sidecar/node_modules/zod/v4/locales/id.d.cts +4 -0
  1674. package/cursor-sidecar/node_modules/zod/v4/locales/id.d.ts +4 -0
  1675. package/cursor-sidecar/node_modules/zod/v4/locales/id.js +116 -0
  1676. package/cursor-sidecar/node_modules/zod/v4/locales/index.cjs +84 -0
  1677. package/cursor-sidecar/node_modules/zod/v4/locales/index.d.cts +39 -0
  1678. package/cursor-sidecar/node_modules/zod/v4/locales/index.d.ts +39 -0
  1679. package/cursor-sidecar/node_modules/zod/v4/locales/index.js +39 -0
  1680. package/cursor-sidecar/node_modules/zod/v4/locales/it.cjs +143 -0
  1681. package/cursor-sidecar/node_modules/zod/v4/locales/it.d.cts +4 -0
  1682. package/cursor-sidecar/node_modules/zod/v4/locales/it.d.ts +4 -0
  1683. package/cursor-sidecar/node_modules/zod/v4/locales/it.js +117 -0
  1684. package/cursor-sidecar/node_modules/zod/v4/locales/ja.cjs +141 -0
  1685. package/cursor-sidecar/node_modules/zod/v4/locales/ja.d.cts +4 -0
  1686. package/cursor-sidecar/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1687. package/cursor-sidecar/node_modules/zod/v4/locales/ja.js +115 -0
  1688. package/cursor-sidecar/node_modules/zod/v4/locales/kh.cjs +143 -0
  1689. package/cursor-sidecar/node_modules/zod/v4/locales/kh.d.cts +4 -0
  1690. package/cursor-sidecar/node_modules/zod/v4/locales/kh.d.ts +4 -0
  1691. package/cursor-sidecar/node_modules/zod/v4/locales/kh.js +117 -0
  1692. package/cursor-sidecar/node_modules/zod/v4/locales/ko.cjs +147 -0
  1693. package/cursor-sidecar/node_modules/zod/v4/locales/ko.d.cts +4 -0
  1694. package/cursor-sidecar/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1695. package/cursor-sidecar/node_modules/zod/v4/locales/ko.js +121 -0
  1696. package/cursor-sidecar/node_modules/zod/v4/locales/mk.cjs +144 -0
  1697. package/cursor-sidecar/node_modules/zod/v4/locales/mk.d.cts +4 -0
  1698. package/cursor-sidecar/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1699. package/cursor-sidecar/node_modules/zod/v4/locales/mk.js +118 -0
  1700. package/cursor-sidecar/node_modules/zod/v4/locales/ms.cjs +142 -0
  1701. package/cursor-sidecar/node_modules/zod/v4/locales/ms.d.cts +4 -0
  1702. package/cursor-sidecar/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1703. package/cursor-sidecar/node_modules/zod/v4/locales/ms.js +116 -0
  1704. package/cursor-sidecar/node_modules/zod/v4/locales/nl.cjs +143 -0
  1705. package/cursor-sidecar/node_modules/zod/v4/locales/nl.d.cts +4 -0
  1706. package/cursor-sidecar/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1707. package/cursor-sidecar/node_modules/zod/v4/locales/nl.js +117 -0
  1708. package/cursor-sidecar/node_modules/zod/v4/locales/no.cjs +142 -0
  1709. package/cursor-sidecar/node_modules/zod/v4/locales/no.d.cts +4 -0
  1710. package/cursor-sidecar/node_modules/zod/v4/locales/no.d.ts +4 -0
  1711. package/cursor-sidecar/node_modules/zod/v4/locales/no.js +116 -0
  1712. package/cursor-sidecar/node_modules/zod/v4/locales/ota.cjs +143 -0
  1713. package/cursor-sidecar/node_modules/zod/v4/locales/ota.d.cts +4 -0
  1714. package/cursor-sidecar/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1715. package/cursor-sidecar/node_modules/zod/v4/locales/ota.js +117 -0
  1716. package/cursor-sidecar/node_modules/zod/v4/locales/pl.cjs +143 -0
  1717. package/cursor-sidecar/node_modules/zod/v4/locales/pl.d.cts +4 -0
  1718. package/cursor-sidecar/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1719. package/cursor-sidecar/node_modules/zod/v4/locales/pl.js +117 -0
  1720. package/cursor-sidecar/node_modules/zod/v4/locales/ps.cjs +148 -0
  1721. package/cursor-sidecar/node_modules/zod/v4/locales/ps.d.cts +4 -0
  1722. package/cursor-sidecar/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1723. package/cursor-sidecar/node_modules/zod/v4/locales/ps.js +122 -0
  1724. package/cursor-sidecar/node_modules/zod/v4/locales/pt.cjs +142 -0
  1725. package/cursor-sidecar/node_modules/zod/v4/locales/pt.d.cts +4 -0
  1726. package/cursor-sidecar/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1727. package/cursor-sidecar/node_modules/zod/v4/locales/pt.js +116 -0
  1728. package/cursor-sidecar/node_modules/zod/v4/locales/ru.cjs +190 -0
  1729. package/cursor-sidecar/node_modules/zod/v4/locales/ru.d.cts +4 -0
  1730. package/cursor-sidecar/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1731. package/cursor-sidecar/node_modules/zod/v4/locales/ru.js +164 -0
  1732. package/cursor-sidecar/node_modules/zod/v4/locales/sl.cjs +143 -0
  1733. package/cursor-sidecar/node_modules/zod/v4/locales/sl.d.cts +4 -0
  1734. package/cursor-sidecar/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1735. package/cursor-sidecar/node_modules/zod/v4/locales/sl.js +117 -0
  1736. package/cursor-sidecar/node_modules/zod/v4/locales/sv.cjs +144 -0
  1737. package/cursor-sidecar/node_modules/zod/v4/locales/sv.d.cts +4 -0
  1738. package/cursor-sidecar/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1739. package/cursor-sidecar/node_modules/zod/v4/locales/sv.js +118 -0
  1740. package/cursor-sidecar/node_modules/zod/v4/locales/ta.cjs +143 -0
  1741. package/cursor-sidecar/node_modules/zod/v4/locales/ta.d.cts +4 -0
  1742. package/cursor-sidecar/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1743. package/cursor-sidecar/node_modules/zod/v4/locales/ta.js +117 -0
  1744. package/cursor-sidecar/node_modules/zod/v4/locales/th.cjs +143 -0
  1745. package/cursor-sidecar/node_modules/zod/v4/locales/th.d.cts +4 -0
  1746. package/cursor-sidecar/node_modules/zod/v4/locales/th.d.ts +4 -0
  1747. package/cursor-sidecar/node_modules/zod/v4/locales/th.js +117 -0
  1748. package/cursor-sidecar/node_modules/zod/v4/locales/tr.cjs +143 -0
  1749. package/cursor-sidecar/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1750. package/cursor-sidecar/node_modules/zod/v4/locales/tr.d.ts +5 -0
  1751. package/cursor-sidecar/node_modules/zod/v4/locales/tr.js +115 -0
  1752. package/cursor-sidecar/node_modules/zod/v4/locales/ua.cjs +143 -0
  1753. package/cursor-sidecar/node_modules/zod/v4/locales/ua.d.cts +4 -0
  1754. package/cursor-sidecar/node_modules/zod/v4/locales/ua.d.ts +4 -0
  1755. package/cursor-sidecar/node_modules/zod/v4/locales/ua.js +117 -0
  1756. package/cursor-sidecar/node_modules/zod/v4/locales/ur.cjs +143 -0
  1757. package/cursor-sidecar/node_modules/zod/v4/locales/ur.d.cts +4 -0
  1758. package/cursor-sidecar/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1759. package/cursor-sidecar/node_modules/zod/v4/locales/ur.js +117 -0
  1760. package/cursor-sidecar/node_modules/zod/v4/locales/vi.cjs +142 -0
  1761. package/cursor-sidecar/node_modules/zod/v4/locales/vi.d.cts +4 -0
  1762. package/cursor-sidecar/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1763. package/cursor-sidecar/node_modules/zod/v4/locales/vi.js +116 -0
  1764. package/cursor-sidecar/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  1765. package/cursor-sidecar/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  1766. package/cursor-sidecar/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1767. package/cursor-sidecar/node_modules/zod/v4/locales/zh-CN.js +116 -0
  1768. package/cursor-sidecar/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  1769. package/cursor-sidecar/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  1770. package/cursor-sidecar/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1771. package/cursor-sidecar/node_modules/zod/v4/locales/zh-TW.js +117 -0
  1772. package/cursor-sidecar/node_modules/zod/v4/mini/checks.cjs +34 -0
  1773. package/cursor-sidecar/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1774. package/cursor-sidecar/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1775. package/cursor-sidecar/node_modules/zod/v4/mini/checks.js +1 -0
  1776. package/cursor-sidecar/node_modules/zod/v4/mini/coerce.cjs +47 -0
  1777. package/cursor-sidecar/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1778. package/cursor-sidecar/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1779. package/cursor-sidecar/node_modules/zod/v4/mini/coerce.js +17 -0
  1780. package/cursor-sidecar/node_modules/zod/v4/mini/external.cjs +62 -0
  1781. package/cursor-sidecar/node_modules/zod/v4/mini/external.d.cts +11 -0
  1782. package/cursor-sidecar/node_modules/zod/v4/mini/external.d.ts +11 -0
  1783. package/cursor-sidecar/node_modules/zod/v4/mini/external.js +13 -0
  1784. package/cursor-sidecar/node_modules/zod/v4/mini/index.cjs +32 -0
  1785. package/cursor-sidecar/node_modules/zod/v4/mini/index.d.cts +3 -0
  1786. package/cursor-sidecar/node_modules/zod/v4/mini/index.d.ts +3 -0
  1787. package/cursor-sidecar/node_modules/zod/v4/mini/index.js +3 -0
  1788. package/cursor-sidecar/node_modules/zod/v4/mini/iso.cjs +60 -0
  1789. package/cursor-sidecar/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1790. package/cursor-sidecar/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1791. package/cursor-sidecar/node_modules/zod/v4/mini/iso.js +30 -0
  1792. package/cursor-sidecar/node_modules/zod/v4/mini/parse.cjs +8 -0
  1793. package/cursor-sidecar/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1794. package/cursor-sidecar/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1795. package/cursor-sidecar/node_modules/zod/v4/mini/parse.js +1 -0
  1796. package/cursor-sidecar/node_modules/zod/v4/mini/schemas.cjs +839 -0
  1797. package/cursor-sidecar/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  1798. package/cursor-sidecar/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  1799. package/cursor-sidecar/node_modules/zod/v4/mini/schemas.js +732 -0
  1800. package/cursor-sidecar/node_modules/zod/v4-mini/index.cjs +17 -0
  1801. package/cursor-sidecar/node_modules/zod/v4-mini/index.d.cts +1 -0
  1802. package/cursor-sidecar/node_modules/zod/v4-mini/index.d.ts +1 -0
  1803. package/cursor-sidecar/node_modules/zod/v4-mini/index.js +1 -0
  1804. package/cursor-sidecar/run-agent.mjs +282 -0
  1805. package/cursor-sidecar/sidecar-runtime.mjs +145 -0
  1806. package/mangostudio +0 -0
  1807. package/package.json +2 -2
  1808. package/public/assets/MarkdownContentRenderer-BR_xaZT1.js +0 -4
  1809. package/public/assets/bash-DKfk-jqG.js +0 -1
  1810. package/public/assets/c-6LDlXRu0.js +0 -1
  1811. package/public/assets/cpp-u2b-vpJ9.js +0 -1
  1812. package/public/assets/csharp-Ceix8dHH.js +0 -1
  1813. package/public/assets/css-Dc0OpoBJ.js +0 -1
  1814. package/public/assets/go-PnJdfxiR.js +0 -1
  1815. package/public/assets/html-UIM7GmnP.js +0 -1
  1816. package/public/assets/index-BFmJdqP5.css +0 -2
  1817. package/public/assets/index-BVWRnZBA.js +0 -90
  1818. package/public/assets/java-B8S38LsY.js +0 -1
  1819. package/public/assets/javascript-okWskhVA.js +0 -1
  1820. package/public/assets/json-BjaDPSOc.js +0 -1
  1821. package/public/assets/jsx-DjqxE-UL.js +0 -1
  1822. package/public/assets/logo-Cb9ic_TX.webp +0 -0
  1823. package/public/assets/markdown-YiYqiPes.js +0 -1
  1824. package/public/assets/markdown-parser-B0W8Yv4o.js +0 -64
  1825. package/public/assets/php-D9TzMTdN.js +0 -1
  1826. package/public/assets/powershell-Dvslkh7q.js +0 -1
  1827. package/public/assets/python-DaRRuALo.js +0 -1
  1828. package/public/assets/rolldown-runtime-BYbx6iT9.js +0 -1
  1829. package/public/assets/ruby-DjRoLTaK.js +0 -1
  1830. package/public/assets/rust-CR5Dd4HD.js +0 -1
  1831. package/public/assets/shellscript-Cd3e2TuR.js +0 -1
  1832. package/public/assets/shiki-qzSzbvts.js +0 -2
  1833. package/public/assets/sql-D3oCX4qf.js +0 -1
  1834. package/public/assets/swift-CJSMoxIm.js +0 -1
  1835. package/public/assets/syntax-core-BoMshe5A.js +0 -152
  1836. package/public/assets/syntax-themes-Dq65SZkH.js +0 -1
  1837. package/public/assets/tsx-DcRFScAN.js +0 -1
  1838. package/public/assets/typescript-ButPIGrc.js +0 -1
  1839. package/public/assets/ui-BEql6gkw.js +0 -9
  1840. package/public/assets/vendor-TU_R2f75.js +0 -11
  1841. package/public/assets/vendor-deps-C4ULb-aw.js +0 -4
  1842. package/public/assets/xml-Lpki4g8-.js +0 -1
  1843. package/public/assets/yaml-sdi5CfWK.js +0 -1
  1844. package/public/index.html +0 -46
@@ -0,0 +1,2283 @@
1
+ // @ts-check
2
+
3
+ 'use strict'
4
+
5
+ /* global WebAssembly */
6
+
7
+ const assert = require('assert')
8
+ const net = require('net')
9
+ const http = require('http')
10
+ const { pipeline } = require('stream')
11
+ const util = require('./core/util')
12
+ const timers = require('./timers')
13
+ const Request = require('./core/request')
14
+ const DispatcherBase = require('./dispatcher-base')
15
+ const {
16
+ RequestContentLengthMismatchError,
17
+ ResponseContentLengthMismatchError,
18
+ InvalidArgumentError,
19
+ RequestAbortedError,
20
+ HeadersTimeoutError,
21
+ HeadersOverflowError,
22
+ SocketError,
23
+ InformationalError,
24
+ BodyTimeoutError,
25
+ HTTPParserError,
26
+ ResponseExceededMaxSizeError,
27
+ ClientDestroyedError
28
+ } = require('./core/errors')
29
+ const buildConnector = require('./core/connect')
30
+ const {
31
+ kUrl,
32
+ kReset,
33
+ kServerName,
34
+ kClient,
35
+ kBusy,
36
+ kParser,
37
+ kConnect,
38
+ kBlocking,
39
+ kResuming,
40
+ kRunning,
41
+ kPending,
42
+ kSize,
43
+ kWriting,
44
+ kQueue,
45
+ kConnected,
46
+ kConnecting,
47
+ kNeedDrain,
48
+ kNoRef,
49
+ kKeepAliveDefaultTimeout,
50
+ kHostHeader,
51
+ kPendingIdx,
52
+ kRunningIdx,
53
+ kError,
54
+ kPipelining,
55
+ kSocket,
56
+ kKeepAliveTimeoutValue,
57
+ kMaxHeadersSize,
58
+ kKeepAliveMaxTimeout,
59
+ kKeepAliveTimeoutThreshold,
60
+ kHeadersTimeout,
61
+ kBodyTimeout,
62
+ kStrictContentLength,
63
+ kConnector,
64
+ kMaxRedirections,
65
+ kMaxRequests,
66
+ kCounter,
67
+ kClose,
68
+ kDestroy,
69
+ kDispatch,
70
+ kInterceptors,
71
+ kLocalAddress,
72
+ kMaxResponseSize,
73
+ kHTTPConnVersion,
74
+ // HTTP2
75
+ kHost,
76
+ kHTTP2Session,
77
+ kHTTP2SessionState,
78
+ kHTTP2BuildRequest,
79
+ kHTTP2CopyHeaders,
80
+ kHTTP1BuildRequest
81
+ } = require('./core/symbols')
82
+
83
+ /** @type {import('http2')} */
84
+ let http2
85
+ try {
86
+ http2 = require('http2')
87
+ } catch {
88
+ // @ts-ignore
89
+ http2 = { constants: {} }
90
+ }
91
+
92
+ const {
93
+ constants: {
94
+ HTTP2_HEADER_AUTHORITY,
95
+ HTTP2_HEADER_METHOD,
96
+ HTTP2_HEADER_PATH,
97
+ HTTP2_HEADER_SCHEME,
98
+ HTTP2_HEADER_CONTENT_LENGTH,
99
+ HTTP2_HEADER_EXPECT,
100
+ HTTP2_HEADER_STATUS
101
+ }
102
+ } = http2
103
+
104
+ // Experimental
105
+ let h2ExperimentalWarned = false
106
+
107
+ const FastBuffer = Buffer[Symbol.species]
108
+
109
+ const kClosedResolve = Symbol('kClosedResolve')
110
+
111
+ const channels = {}
112
+
113
+ try {
114
+ const diagnosticsChannel = require('diagnostics_channel')
115
+ channels.sendHeaders = diagnosticsChannel.channel('undici:client:sendHeaders')
116
+ channels.beforeConnect = diagnosticsChannel.channel('undici:client:beforeConnect')
117
+ channels.connectError = diagnosticsChannel.channel('undici:client:connectError')
118
+ channels.connected = diagnosticsChannel.channel('undici:client:connected')
119
+ } catch {
120
+ channels.sendHeaders = { hasSubscribers: false }
121
+ channels.beforeConnect = { hasSubscribers: false }
122
+ channels.connectError = { hasSubscribers: false }
123
+ channels.connected = { hasSubscribers: false }
124
+ }
125
+
126
+ /**
127
+ * @type {import('../types/client').default}
128
+ */
129
+ class Client extends DispatcherBase {
130
+ /**
131
+ *
132
+ * @param {string|URL} url
133
+ * @param {import('../types/client').Client.Options} options
134
+ */
135
+ constructor (url, {
136
+ interceptors,
137
+ maxHeaderSize,
138
+ headersTimeout,
139
+ socketTimeout,
140
+ requestTimeout,
141
+ connectTimeout,
142
+ bodyTimeout,
143
+ idleTimeout,
144
+ keepAlive,
145
+ keepAliveTimeout,
146
+ maxKeepAliveTimeout,
147
+ keepAliveMaxTimeout,
148
+ keepAliveTimeoutThreshold,
149
+ socketPath,
150
+ pipelining,
151
+ tls,
152
+ strictContentLength,
153
+ maxCachedSessions,
154
+ maxRedirections,
155
+ connect,
156
+ maxRequestsPerClient,
157
+ localAddress,
158
+ maxResponseSize,
159
+ autoSelectFamily,
160
+ autoSelectFamilyAttemptTimeout,
161
+ // h2
162
+ allowH2,
163
+ maxConcurrentStreams
164
+ } = {}) {
165
+ super()
166
+
167
+ if (keepAlive !== undefined) {
168
+ throw new InvalidArgumentError('unsupported keepAlive, use pipelining=0 instead')
169
+ }
170
+
171
+ if (socketTimeout !== undefined) {
172
+ throw new InvalidArgumentError('unsupported socketTimeout, use headersTimeout & bodyTimeout instead')
173
+ }
174
+
175
+ if (requestTimeout !== undefined) {
176
+ throw new InvalidArgumentError('unsupported requestTimeout, use headersTimeout & bodyTimeout instead')
177
+ }
178
+
179
+ if (idleTimeout !== undefined) {
180
+ throw new InvalidArgumentError('unsupported idleTimeout, use keepAliveTimeout instead')
181
+ }
182
+
183
+ if (maxKeepAliveTimeout !== undefined) {
184
+ throw new InvalidArgumentError('unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead')
185
+ }
186
+
187
+ if (maxHeaderSize != null && !Number.isFinite(maxHeaderSize)) {
188
+ throw new InvalidArgumentError('invalid maxHeaderSize')
189
+ }
190
+
191
+ if (socketPath != null && typeof socketPath !== 'string') {
192
+ throw new InvalidArgumentError('invalid socketPath')
193
+ }
194
+
195
+ if (connectTimeout != null && (!Number.isFinite(connectTimeout) || connectTimeout < 0)) {
196
+ throw new InvalidArgumentError('invalid connectTimeout')
197
+ }
198
+
199
+ if (keepAliveTimeout != null && (!Number.isFinite(keepAliveTimeout) || keepAliveTimeout <= 0)) {
200
+ throw new InvalidArgumentError('invalid keepAliveTimeout')
201
+ }
202
+
203
+ if (keepAliveMaxTimeout != null && (!Number.isFinite(keepAliveMaxTimeout) || keepAliveMaxTimeout <= 0)) {
204
+ throw new InvalidArgumentError('invalid keepAliveMaxTimeout')
205
+ }
206
+
207
+ if (keepAliveTimeoutThreshold != null && !Number.isFinite(keepAliveTimeoutThreshold)) {
208
+ throw new InvalidArgumentError('invalid keepAliveTimeoutThreshold')
209
+ }
210
+
211
+ if (headersTimeout != null && (!Number.isInteger(headersTimeout) || headersTimeout < 0)) {
212
+ throw new InvalidArgumentError('headersTimeout must be a positive integer or zero')
213
+ }
214
+
215
+ if (bodyTimeout != null && (!Number.isInteger(bodyTimeout) || bodyTimeout < 0)) {
216
+ throw new InvalidArgumentError('bodyTimeout must be a positive integer or zero')
217
+ }
218
+
219
+ if (connect != null && typeof connect !== 'function' && typeof connect !== 'object') {
220
+ throw new InvalidArgumentError('connect must be a function or an object')
221
+ }
222
+
223
+ if (maxRedirections != null && (!Number.isInteger(maxRedirections) || maxRedirections < 0)) {
224
+ throw new InvalidArgumentError('maxRedirections must be a positive number')
225
+ }
226
+
227
+ if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) {
228
+ throw new InvalidArgumentError('maxRequestsPerClient must be a positive number')
229
+ }
230
+
231
+ if (localAddress != null && (typeof localAddress !== 'string' || net.isIP(localAddress) === 0)) {
232
+ throw new InvalidArgumentError('localAddress must be valid string IP address')
233
+ }
234
+
235
+ if (maxResponseSize != null && (!Number.isInteger(maxResponseSize) || maxResponseSize < -1)) {
236
+ throw new InvalidArgumentError('maxResponseSize must be a positive number')
237
+ }
238
+
239
+ if (
240
+ autoSelectFamilyAttemptTimeout != null &&
241
+ (!Number.isInteger(autoSelectFamilyAttemptTimeout) || autoSelectFamilyAttemptTimeout < -1)
242
+ ) {
243
+ throw new InvalidArgumentError('autoSelectFamilyAttemptTimeout must be a positive number')
244
+ }
245
+
246
+ // h2
247
+ if (allowH2 != null && typeof allowH2 !== 'boolean') {
248
+ throw new InvalidArgumentError('allowH2 must be a valid boolean value')
249
+ }
250
+
251
+ if (maxConcurrentStreams != null && (typeof maxConcurrentStreams !== 'number' || maxConcurrentStreams < 1)) {
252
+ throw new InvalidArgumentError('maxConcurrentStreams must be a possitive integer, greater than 0')
253
+ }
254
+
255
+ if (typeof connect !== 'function') {
256
+ connect = buildConnector({
257
+ ...tls,
258
+ maxCachedSessions,
259
+ allowH2,
260
+ socketPath,
261
+ timeout: connectTimeout,
262
+ ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),
263
+ ...connect
264
+ })
265
+ }
266
+
267
+ this[kInterceptors] = interceptors && interceptors.Client && Array.isArray(interceptors.Client)
268
+ ? interceptors.Client
269
+ : [createRedirectInterceptor({ maxRedirections })]
270
+ this[kUrl] = util.parseOrigin(url)
271
+ this[kConnector] = connect
272
+ this[kSocket] = null
273
+ this[kPipelining] = pipelining != null ? pipelining : 1
274
+ this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize
275
+ this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout
276
+ this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout
277
+ this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold
278
+ this[kKeepAliveTimeoutValue] = this[kKeepAliveDefaultTimeout]
279
+ this[kServerName] = null
280
+ this[kLocalAddress] = localAddress != null ? localAddress : null
281
+ this[kResuming] = 0 // 0, idle, 1, scheduled, 2 resuming
282
+ this[kNeedDrain] = 0 // 0, idle, 1, scheduled, 2 resuming
283
+ this[kHostHeader] = `host: ${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}\r\n`
284
+ this[kBodyTimeout] = bodyTimeout != null ? bodyTimeout : 300e3
285
+ this[kHeadersTimeout] = headersTimeout != null ? headersTimeout : 300e3
286
+ this[kStrictContentLength] = strictContentLength == null ? true : strictContentLength
287
+ this[kMaxRedirections] = maxRedirections
288
+ this[kMaxRequests] = maxRequestsPerClient
289
+ this[kClosedResolve] = null
290
+ this[kMaxResponseSize] = maxResponseSize > -1 ? maxResponseSize : -1
291
+ this[kHTTPConnVersion] = 'h1'
292
+
293
+ // HTTP/2
294
+ this[kHTTP2Session] = null
295
+ this[kHTTP2SessionState] = !allowH2
296
+ ? null
297
+ : {
298
+ // streams: null, // Fixed queue of streams - For future support of `push`
299
+ openStreams: 0, // Keep track of them to decide wether or not unref the session
300
+ maxConcurrentStreams: maxConcurrentStreams != null ? maxConcurrentStreams : 100 // Max peerConcurrentStreams for a Node h2 server
301
+ }
302
+ this[kHost] = `${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}`
303
+
304
+ // kQueue is built up of 3 sections separated by
305
+ // the kRunningIdx and kPendingIdx indices.
306
+ // | complete | running | pending |
307
+ // ^ kRunningIdx ^ kPendingIdx ^ kQueue.length
308
+ // kRunningIdx points to the first running element.
309
+ // kPendingIdx points to the first pending element.
310
+ // This implements a fast queue with an amortized
311
+ // time of O(1).
312
+
313
+ this[kQueue] = []
314
+ this[kRunningIdx] = 0
315
+ this[kPendingIdx] = 0
316
+ }
317
+
318
+ get pipelining () {
319
+ return this[kPipelining]
320
+ }
321
+
322
+ set pipelining (value) {
323
+ this[kPipelining] = value
324
+ resume(this, true)
325
+ }
326
+
327
+ get [kPending] () {
328
+ return this[kQueue].length - this[kPendingIdx]
329
+ }
330
+
331
+ get [kRunning] () {
332
+ return this[kPendingIdx] - this[kRunningIdx]
333
+ }
334
+
335
+ get [kSize] () {
336
+ return this[kQueue].length - this[kRunningIdx]
337
+ }
338
+
339
+ get [kConnected] () {
340
+ return !!this[kSocket] && !this[kConnecting] && !this[kSocket].destroyed
341
+ }
342
+
343
+ get [kBusy] () {
344
+ const socket = this[kSocket]
345
+ return (
346
+ (socket && (socket[kReset] || socket[kWriting] || socket[kBlocking])) ||
347
+ (this[kSize] >= (this[kPipelining] || 1)) ||
348
+ this[kPending] > 0
349
+ )
350
+ }
351
+
352
+ /* istanbul ignore: only used for test */
353
+ [kConnect] (cb) {
354
+ connect(this)
355
+ this.once('connect', cb)
356
+ }
357
+
358
+ [kDispatch] (opts, handler) {
359
+ const origin = opts.origin || this[kUrl].origin
360
+
361
+ const request = this[kHTTPConnVersion] === 'h2'
362
+ ? Request[kHTTP2BuildRequest](origin, opts, handler)
363
+ : Request[kHTTP1BuildRequest](origin, opts, handler)
364
+
365
+ this[kQueue].push(request)
366
+ if (this[kResuming]) {
367
+ // Do nothing.
368
+ } else if (util.bodyLength(request.body) == null && util.isIterable(request.body)) {
369
+ // Wait a tick in case stream/iterator is ended in the same tick.
370
+ this[kResuming] = 1
371
+ process.nextTick(resume, this)
372
+ } else {
373
+ resume(this, true)
374
+ }
375
+
376
+ if (this[kResuming] && this[kNeedDrain] !== 2 && this[kBusy]) {
377
+ this[kNeedDrain] = 2
378
+ }
379
+
380
+ return this[kNeedDrain] < 2
381
+ }
382
+
383
+ async [kClose] () {
384
+ // TODO: for H2 we need to gracefully flush the remaining enqueued
385
+ // request and close each stream.
386
+ return new Promise((resolve) => {
387
+ if (!this[kSize]) {
388
+ resolve(null)
389
+ } else {
390
+ this[kClosedResolve] = resolve
391
+ }
392
+ })
393
+ }
394
+
395
+ async [kDestroy] (err) {
396
+ return new Promise((resolve) => {
397
+ const requests = this[kQueue].splice(this[kPendingIdx])
398
+ for (let i = 0; i < requests.length; i++) {
399
+ const request = requests[i]
400
+ errorRequest(this, request, err)
401
+ }
402
+
403
+ const callback = () => {
404
+ if (this[kClosedResolve]) {
405
+ // TODO (fix): Should we error here with ClientDestroyedError?
406
+ this[kClosedResolve]()
407
+ this[kClosedResolve] = null
408
+ }
409
+ resolve()
410
+ }
411
+
412
+ if (this[kHTTP2Session] != null) {
413
+ util.destroy(this[kHTTP2Session], err)
414
+ this[kHTTP2Session] = null
415
+ this[kHTTP2SessionState] = null
416
+ }
417
+
418
+ if (!this[kSocket]) {
419
+ queueMicrotask(callback)
420
+ } else {
421
+ util.destroy(this[kSocket].on('close', callback), err)
422
+ }
423
+
424
+ resume(this)
425
+ })
426
+ }
427
+ }
428
+
429
+ function onHttp2SessionError (err) {
430
+ assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')
431
+
432
+ this[kSocket][kError] = err
433
+
434
+ onError(this[kClient], err)
435
+ }
436
+
437
+ function onHttp2FrameError (type, code, id) {
438
+ const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`)
439
+
440
+ if (id === 0) {
441
+ this[kSocket][kError] = err
442
+ onError(this[kClient], err)
443
+ }
444
+ }
445
+
446
+ function onHttp2SessionEnd () {
447
+ util.destroy(this, new SocketError('other side closed'))
448
+ util.destroy(this[kSocket], new SocketError('other side closed'))
449
+ }
450
+
451
+ function onHTTP2GoAway (code) {
452
+ const client = this[kClient]
453
+ const err = new InformationalError(`HTTP/2: "GOAWAY" frame received with code ${code}`)
454
+ client[kSocket] = null
455
+ client[kHTTP2Session] = null
456
+
457
+ if (client.destroyed) {
458
+ assert(this[kPending] === 0)
459
+
460
+ // Fail entire queue.
461
+ const requests = client[kQueue].splice(client[kRunningIdx])
462
+ for (let i = 0; i < requests.length; i++) {
463
+ const request = requests[i]
464
+ errorRequest(this, request, err)
465
+ }
466
+ } else if (client[kRunning] > 0) {
467
+ // Fail head of pipeline.
468
+ const request = client[kQueue][client[kRunningIdx]]
469
+ client[kQueue][client[kRunningIdx]++] = null
470
+
471
+ errorRequest(client, request, err)
472
+ }
473
+
474
+ client[kPendingIdx] = client[kRunningIdx]
475
+
476
+ assert(client[kRunning] === 0)
477
+
478
+ client.emit('disconnect',
479
+ client[kUrl],
480
+ [client],
481
+ err
482
+ )
483
+
484
+ resume(client)
485
+ }
486
+
487
+ const constants = require('./llhttp/constants')
488
+ const createRedirectInterceptor = require('./interceptor/redirectInterceptor')
489
+ const EMPTY_BUF = Buffer.alloc(0)
490
+
491
+ async function lazyllhttp () {
492
+ const llhttpWasmData = process.env.JEST_WORKER_ID ? require('./llhttp/llhttp-wasm.js') : undefined
493
+
494
+ let mod
495
+ try {
496
+ mod = await WebAssembly.compile(Buffer.from(require('./llhttp/llhttp_simd-wasm.js'), 'base64'))
497
+ } catch (e) {
498
+ /* istanbul ignore next */
499
+
500
+ // We could check if the error was caused by the simd option not
501
+ // being enabled, but the occurring of this other error
502
+ // * https://github.com/emscripten-core/emscripten/issues/11495
503
+ // got me to remove that check to avoid breaking Node 12.
504
+ mod = await WebAssembly.compile(Buffer.from(llhttpWasmData || require('./llhttp/llhttp-wasm.js'), 'base64'))
505
+ }
506
+
507
+ return await WebAssembly.instantiate(mod, {
508
+ env: {
509
+ /* eslint-disable camelcase */
510
+
511
+ wasm_on_url: (p, at, len) => {
512
+ /* istanbul ignore next */
513
+ return 0
514
+ },
515
+ wasm_on_status: (p, at, len) => {
516
+ assert.strictEqual(currentParser.ptr, p)
517
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset
518
+ return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
519
+ },
520
+ wasm_on_message_begin: (p) => {
521
+ assert.strictEqual(currentParser.ptr, p)
522
+ return currentParser.onMessageBegin() || 0
523
+ },
524
+ wasm_on_header_field: (p, at, len) => {
525
+ assert.strictEqual(currentParser.ptr, p)
526
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset
527
+ return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
528
+ },
529
+ wasm_on_header_value: (p, at, len) => {
530
+ assert.strictEqual(currentParser.ptr, p)
531
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset
532
+ return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
533
+ },
534
+ wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {
535
+ assert.strictEqual(currentParser.ptr, p)
536
+ return currentParser.onHeadersComplete(statusCode, Boolean(upgrade), Boolean(shouldKeepAlive)) || 0
537
+ },
538
+ wasm_on_body: (p, at, len) => {
539
+ assert.strictEqual(currentParser.ptr, p)
540
+ const start = at - currentBufferPtr + currentBufferRef.byteOffset
541
+ return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len)) || 0
542
+ },
543
+ wasm_on_message_complete: (p) => {
544
+ assert.strictEqual(currentParser.ptr, p)
545
+ return currentParser.onMessageComplete() || 0
546
+ }
547
+
548
+ /* eslint-enable camelcase */
549
+ }
550
+ })
551
+ }
552
+
553
+ let llhttpInstance = null
554
+ let llhttpPromise = lazyllhttp()
555
+ llhttpPromise.catch()
556
+
557
+ let currentParser = null
558
+ let currentBufferRef = null
559
+ let currentBufferSize = 0
560
+ let currentBufferPtr = null
561
+
562
+ const TIMEOUT_HEADERS = 1
563
+ const TIMEOUT_BODY = 2
564
+ const TIMEOUT_IDLE = 3
565
+
566
+ class Parser {
567
+ constructor (client, socket, { exports }) {
568
+ assert(Number.isFinite(client[kMaxHeadersSize]) && client[kMaxHeadersSize] > 0)
569
+
570
+ this.llhttp = exports
571
+ this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE)
572
+ this.client = client
573
+ this.socket = socket
574
+ this.timeout = null
575
+ this.timeoutValue = null
576
+ this.timeoutType = null
577
+ this.statusCode = null
578
+ this.statusText = ''
579
+ this.upgrade = false
580
+ this.headers = []
581
+ this.headersSize = 0
582
+ this.headersMaxSize = client[kMaxHeadersSize]
583
+ this.shouldKeepAlive = false
584
+ this.paused = false
585
+ this.resume = this.resume.bind(this)
586
+
587
+ this.bytesRead = 0
588
+
589
+ this.keepAlive = ''
590
+ this.contentLength = ''
591
+ this.connection = ''
592
+ this.maxResponseSize = client[kMaxResponseSize]
593
+ }
594
+
595
+ setTimeout (value, type) {
596
+ this.timeoutType = type
597
+ if (value !== this.timeoutValue) {
598
+ timers.clearTimeout(this.timeout)
599
+ if (value) {
600
+ this.timeout = timers.setTimeout(onParserTimeout, value, this)
601
+ // istanbul ignore else: only for jest
602
+ if (this.timeout.unref) {
603
+ this.timeout.unref()
604
+ }
605
+ } else {
606
+ this.timeout = null
607
+ }
608
+ this.timeoutValue = value
609
+ } else if (this.timeout) {
610
+ // istanbul ignore else: only for jest
611
+ if (this.timeout.refresh) {
612
+ this.timeout.refresh()
613
+ }
614
+ }
615
+ }
616
+
617
+ resume () {
618
+ if (this.socket.destroyed || !this.paused) {
619
+ return
620
+ }
621
+
622
+ assert(this.ptr != null)
623
+ assert(currentParser == null)
624
+
625
+ this.llhttp.llhttp_resume(this.ptr)
626
+
627
+ assert(this.timeoutType === TIMEOUT_BODY)
628
+ if (this.timeout) {
629
+ // istanbul ignore else: only for jest
630
+ if (this.timeout.refresh) {
631
+ this.timeout.refresh()
632
+ }
633
+ }
634
+
635
+ this.paused = false
636
+ this.execute(this.socket.read() || EMPTY_BUF) // Flush parser.
637
+ this.readMore()
638
+ }
639
+
640
+ readMore () {
641
+ while (!this.paused && this.ptr) {
642
+ const chunk = this.socket.read()
643
+ if (chunk === null) {
644
+ break
645
+ }
646
+ this.execute(chunk)
647
+ }
648
+ }
649
+
650
+ execute (data) {
651
+ assert(this.ptr != null)
652
+ assert(currentParser == null)
653
+ assert(!this.paused)
654
+
655
+ const { socket, llhttp } = this
656
+
657
+ if (data.length > currentBufferSize) {
658
+ if (currentBufferPtr) {
659
+ llhttp.free(currentBufferPtr)
660
+ }
661
+ currentBufferSize = Math.ceil(data.length / 4096) * 4096
662
+ currentBufferPtr = llhttp.malloc(currentBufferSize)
663
+ }
664
+
665
+ new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(data)
666
+
667
+ // Call `execute` on the wasm parser.
668
+ // We pass the `llhttp_parser` pointer address, the pointer address of buffer view data,
669
+ // and finally the length of bytes to parse.
670
+ // The return value is an error code or `constants.ERROR.OK`.
671
+ try {
672
+ let ret
673
+
674
+ try {
675
+ currentBufferRef = data
676
+ currentParser = this
677
+ ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, data.length)
678
+ /* eslint-disable-next-line no-useless-catch */
679
+ } catch (err) {
680
+ /* istanbul ignore next: difficult to make a test case for */
681
+ throw err
682
+ } finally {
683
+ currentParser = null
684
+ currentBufferRef = null
685
+ }
686
+
687
+ const offset = llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr
688
+
689
+ if (ret === constants.ERROR.PAUSED_UPGRADE) {
690
+ this.onUpgrade(data.slice(offset))
691
+ } else if (ret === constants.ERROR.PAUSED) {
692
+ this.paused = true
693
+ socket.unshift(data.slice(offset))
694
+ } else if (ret !== constants.ERROR.OK) {
695
+ const ptr = llhttp.llhttp_get_error_reason(this.ptr)
696
+ let message = ''
697
+ /* istanbul ignore else: difficult to make a test case for */
698
+ if (ptr) {
699
+ const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0)
700
+ message =
701
+ 'Response does not match the HTTP/1.1 protocol (' +
702
+ Buffer.from(llhttp.memory.buffer, ptr, len).toString() +
703
+ ')'
704
+ }
705
+ throw new HTTPParserError(message, constants.ERROR[ret], data.slice(offset))
706
+ }
707
+ } catch (err) {
708
+ util.destroy(socket, err)
709
+ }
710
+ }
711
+
712
+ destroy () {
713
+ assert(this.ptr != null)
714
+ assert(currentParser == null)
715
+
716
+ this.llhttp.llhttp_free(this.ptr)
717
+ this.ptr = null
718
+
719
+ timers.clearTimeout(this.timeout)
720
+ this.timeout = null
721
+ this.timeoutValue = null
722
+ this.timeoutType = null
723
+
724
+ this.paused = false
725
+ }
726
+
727
+ onStatus (buf) {
728
+ this.statusText = buf.toString()
729
+ }
730
+
731
+ onMessageBegin () {
732
+ const { socket, client } = this
733
+
734
+ /* istanbul ignore next: difficult to make a test case for */
735
+ if (socket.destroyed) {
736
+ return -1
737
+ }
738
+
739
+ const request = client[kQueue][client[kRunningIdx]]
740
+ if (!request) {
741
+ return -1
742
+ }
743
+ }
744
+
745
+ onHeaderField (buf) {
746
+ const len = this.headers.length
747
+
748
+ if ((len & 1) === 0) {
749
+ this.headers.push(buf)
750
+ } else {
751
+ this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])
752
+ }
753
+
754
+ this.trackHeader(buf.length)
755
+ }
756
+
757
+ onHeaderValue (buf) {
758
+ let len = this.headers.length
759
+
760
+ if ((len & 1) === 1) {
761
+ this.headers.push(buf)
762
+ len += 1
763
+ } else {
764
+ this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf])
765
+ }
766
+
767
+ const key = this.headers[len - 2]
768
+ if (key.length === 10 && key.toString().toLowerCase() === 'keep-alive') {
769
+ this.keepAlive += buf.toString()
770
+ } else if (key.length === 10 && key.toString().toLowerCase() === 'connection') {
771
+ this.connection += buf.toString()
772
+ } else if (key.length === 14 && key.toString().toLowerCase() === 'content-length') {
773
+ this.contentLength += buf.toString()
774
+ }
775
+
776
+ this.trackHeader(buf.length)
777
+ }
778
+
779
+ trackHeader (len) {
780
+ this.headersSize += len
781
+ if (this.headersSize >= this.headersMaxSize) {
782
+ util.destroy(this.socket, new HeadersOverflowError())
783
+ }
784
+ }
785
+
786
+ onUpgrade (head) {
787
+ const { upgrade, client, socket, headers, statusCode } = this
788
+
789
+ assert(upgrade)
790
+
791
+ const request = client[kQueue][client[kRunningIdx]]
792
+ assert(request)
793
+
794
+ assert(!socket.destroyed)
795
+ assert(socket === client[kSocket])
796
+ assert(!this.paused)
797
+ assert(request.upgrade || request.method === 'CONNECT')
798
+
799
+ this.statusCode = null
800
+ this.statusText = ''
801
+ this.shouldKeepAlive = null
802
+
803
+ assert(this.headers.length % 2 === 0)
804
+ this.headers = []
805
+ this.headersSize = 0
806
+
807
+ socket.unshift(head)
808
+
809
+ socket[kParser].destroy()
810
+ socket[kParser] = null
811
+
812
+ socket[kClient] = null
813
+ socket[kError] = null
814
+ socket
815
+ .removeListener('error', onSocketError)
816
+ .removeListener('readable', onSocketReadable)
817
+ .removeListener('end', onSocketEnd)
818
+ .removeListener('close', onSocketClose)
819
+
820
+ client[kSocket] = null
821
+ client[kQueue][client[kRunningIdx]++] = null
822
+ client.emit('disconnect', client[kUrl], [client], new InformationalError('upgrade'))
823
+
824
+ try {
825
+ request.onUpgrade(statusCode, headers, socket)
826
+ } catch (err) {
827
+ util.destroy(socket, err)
828
+ }
829
+
830
+ resume(client)
831
+ }
832
+
833
+ onHeadersComplete (statusCode, upgrade, shouldKeepAlive) {
834
+ const { client, socket, headers, statusText } = this
835
+
836
+ /* istanbul ignore next: difficult to make a test case for */
837
+ if (socket.destroyed) {
838
+ return -1
839
+ }
840
+
841
+ const request = client[kQueue][client[kRunningIdx]]
842
+
843
+ /* istanbul ignore next: difficult to make a test case for */
844
+ if (!request) {
845
+ return -1
846
+ }
847
+
848
+ assert(!this.upgrade)
849
+ assert(this.statusCode < 200)
850
+
851
+ if (statusCode === 100) {
852
+ util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))
853
+ return -1
854
+ }
855
+
856
+ /* this can only happen if server is misbehaving */
857
+ if (upgrade && !request.upgrade) {
858
+ util.destroy(socket, new SocketError('bad upgrade', util.getSocketInfo(socket)))
859
+ return -1
860
+ }
861
+
862
+ assert.strictEqual(this.timeoutType, TIMEOUT_HEADERS)
863
+
864
+ this.statusCode = statusCode
865
+ this.shouldKeepAlive = (
866
+ shouldKeepAlive ||
867
+ // Override llhttp value which does not allow keepAlive for HEAD.
868
+ (request.method === 'HEAD' && !socket[kReset] && this.connection.toLowerCase() === 'keep-alive')
869
+ )
870
+
871
+ if (this.statusCode >= 200) {
872
+ const bodyTimeout = request.bodyTimeout != null
873
+ ? request.bodyTimeout
874
+ : client[kBodyTimeout]
875
+ this.setTimeout(bodyTimeout, TIMEOUT_BODY)
876
+ } else if (this.timeout) {
877
+ // istanbul ignore else: only for jest
878
+ if (this.timeout.refresh) {
879
+ this.timeout.refresh()
880
+ }
881
+ }
882
+
883
+ if (request.method === 'CONNECT') {
884
+ assert(client[kRunning] === 1)
885
+ this.upgrade = true
886
+ return 2
887
+ }
888
+
889
+ if (upgrade) {
890
+ assert(client[kRunning] === 1)
891
+ this.upgrade = true
892
+ return 2
893
+ }
894
+
895
+ assert(this.headers.length % 2 === 0)
896
+ this.headers = []
897
+ this.headersSize = 0
898
+
899
+ if (this.shouldKeepAlive && client[kPipelining]) {
900
+ const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null
901
+
902
+ if (keepAliveTimeout != null) {
903
+ const timeout = Math.min(
904
+ keepAliveTimeout - client[kKeepAliveTimeoutThreshold],
905
+ client[kKeepAliveMaxTimeout]
906
+ )
907
+ if (timeout <= 0) {
908
+ socket[kReset] = true
909
+ } else {
910
+ client[kKeepAliveTimeoutValue] = timeout
911
+ }
912
+ } else {
913
+ client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout]
914
+ }
915
+ } else {
916
+ // Stop more requests from being dispatched.
917
+ socket[kReset] = true
918
+ }
919
+
920
+ const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false
921
+
922
+ if (request.aborted) {
923
+ return -1
924
+ }
925
+
926
+ if (request.method === 'HEAD') {
927
+ return 1
928
+ }
929
+
930
+ if (statusCode < 200) {
931
+ return 1
932
+ }
933
+
934
+ if (socket[kBlocking]) {
935
+ socket[kBlocking] = false
936
+ resume(client)
937
+ }
938
+
939
+ return pause ? constants.ERROR.PAUSED : 0
940
+ }
941
+
942
+ onBody (buf) {
943
+ const { client, socket, statusCode, maxResponseSize } = this
944
+
945
+ if (socket.destroyed) {
946
+ return -1
947
+ }
948
+
949
+ const request = client[kQueue][client[kRunningIdx]]
950
+ assert(request)
951
+
952
+ assert.strictEqual(this.timeoutType, TIMEOUT_BODY)
953
+ if (this.timeout) {
954
+ // istanbul ignore else: only for jest
955
+ if (this.timeout.refresh) {
956
+ this.timeout.refresh()
957
+ }
958
+ }
959
+
960
+ assert(statusCode >= 200)
961
+
962
+ if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
963
+ util.destroy(socket, new ResponseExceededMaxSizeError())
964
+ return -1
965
+ }
966
+
967
+ this.bytesRead += buf.length
968
+
969
+ if (request.onData(buf) === false) {
970
+ return constants.ERROR.PAUSED
971
+ }
972
+ }
973
+
974
+ onMessageComplete () {
975
+ const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this
976
+
977
+ if (socket.destroyed && (!statusCode || shouldKeepAlive)) {
978
+ return -1
979
+ }
980
+
981
+ if (upgrade) {
982
+ return
983
+ }
984
+
985
+ const request = client[kQueue][client[kRunningIdx]]
986
+ assert(request)
987
+
988
+ assert(statusCode >= 100)
989
+
990
+ this.statusCode = null
991
+ this.statusText = ''
992
+ this.bytesRead = 0
993
+ this.contentLength = ''
994
+ this.keepAlive = ''
995
+ this.connection = ''
996
+
997
+ assert(this.headers.length % 2 === 0)
998
+ this.headers = []
999
+ this.headersSize = 0
1000
+
1001
+ if (statusCode < 200) {
1002
+ return
1003
+ }
1004
+
1005
+ /* istanbul ignore next: should be handled by llhttp? */
1006
+ if (request.method !== 'HEAD' && contentLength && bytesRead !== parseInt(contentLength, 10)) {
1007
+ util.destroy(socket, new ResponseContentLengthMismatchError())
1008
+ return -1
1009
+ }
1010
+
1011
+ request.onComplete(headers)
1012
+
1013
+ client[kQueue][client[kRunningIdx]++] = null
1014
+
1015
+ if (socket[kWriting]) {
1016
+ assert.strictEqual(client[kRunning], 0)
1017
+ // Response completed before request.
1018
+ util.destroy(socket, new InformationalError('reset'))
1019
+ return constants.ERROR.PAUSED
1020
+ } else if (!shouldKeepAlive) {
1021
+ util.destroy(socket, new InformationalError('reset'))
1022
+ return constants.ERROR.PAUSED
1023
+ } else if (socket[kReset] && client[kRunning] === 0) {
1024
+ // Destroy socket once all requests have completed.
1025
+ // The request at the tail of the pipeline is the one
1026
+ // that requested reset and no further requests should
1027
+ // have been queued since then.
1028
+ util.destroy(socket, new InformationalError('reset'))
1029
+ return constants.ERROR.PAUSED
1030
+ } else if (client[kPipelining] === 1) {
1031
+ // We must wait a full event loop cycle to reuse this socket to make sure
1032
+ // that non-spec compliant servers are not closing the connection even if they
1033
+ // said they won't.
1034
+ setImmediate(resume, client)
1035
+ } else {
1036
+ resume(client)
1037
+ }
1038
+ }
1039
+ }
1040
+
1041
+ function onParserTimeout (parser) {
1042
+ const { socket, timeoutType, client } = parser
1043
+
1044
+ /* istanbul ignore else */
1045
+ if (timeoutType === TIMEOUT_HEADERS) {
1046
+ if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {
1047
+ assert(!parser.paused, 'cannot be paused while waiting for headers')
1048
+ util.destroy(socket, new HeadersTimeoutError())
1049
+ }
1050
+ } else if (timeoutType === TIMEOUT_BODY) {
1051
+ if (!parser.paused) {
1052
+ util.destroy(socket, new BodyTimeoutError())
1053
+ }
1054
+ } else if (timeoutType === TIMEOUT_IDLE) {
1055
+ assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue])
1056
+ util.destroy(socket, new InformationalError('socket idle timeout'))
1057
+ }
1058
+ }
1059
+
1060
+ function onSocketReadable () {
1061
+ const { [kParser]: parser } = this
1062
+ if (parser) {
1063
+ parser.readMore()
1064
+ }
1065
+ }
1066
+
1067
+ function onSocketError (err) {
1068
+ const { [kClient]: client, [kParser]: parser } = this
1069
+
1070
+ assert(err.code !== 'ERR_TLS_CERT_ALTNAME_INVALID')
1071
+
1072
+ if (client[kHTTPConnVersion] !== 'h2') {
1073
+ // On Mac OS, we get an ECONNRESET even if there is a full body to be forwarded
1074
+ // to the user.
1075
+ if (err.code === 'ECONNRESET' && parser.statusCode && !parser.shouldKeepAlive) {
1076
+ // We treat all incoming data so for as a valid response.
1077
+ parser.onMessageComplete()
1078
+ return
1079
+ }
1080
+ }
1081
+
1082
+ this[kError] = err
1083
+
1084
+ onError(this[kClient], err)
1085
+ }
1086
+
1087
+ function onError (client, err) {
1088
+ if (
1089
+ client[kRunning] === 0 &&
1090
+ err.code !== 'UND_ERR_INFO' &&
1091
+ err.code !== 'UND_ERR_SOCKET'
1092
+ ) {
1093
+ // Error is not caused by running request and not a recoverable
1094
+ // socket error.
1095
+
1096
+ assert(client[kPendingIdx] === client[kRunningIdx])
1097
+
1098
+ const requests = client[kQueue].splice(client[kRunningIdx])
1099
+ for (let i = 0; i < requests.length; i++) {
1100
+ const request = requests[i]
1101
+ errorRequest(client, request, err)
1102
+ }
1103
+ assert(client[kSize] === 0)
1104
+ }
1105
+ }
1106
+
1107
+ function onSocketEnd () {
1108
+ const { [kParser]: parser, [kClient]: client } = this
1109
+
1110
+ if (client[kHTTPConnVersion] !== 'h2') {
1111
+ if (parser.statusCode && !parser.shouldKeepAlive) {
1112
+ // We treat all incoming data so far as a valid response.
1113
+ parser.onMessageComplete()
1114
+ return
1115
+ }
1116
+ }
1117
+
1118
+ util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)))
1119
+ }
1120
+
1121
+ function onSocketClose () {
1122
+ const { [kClient]: client, [kParser]: parser } = this
1123
+
1124
+ if (client[kHTTPConnVersion] === 'h1' && parser) {
1125
+ if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) {
1126
+ // We treat all incoming data so far as a valid response.
1127
+ parser.onMessageComplete()
1128
+ }
1129
+
1130
+ this[kParser].destroy()
1131
+ this[kParser] = null
1132
+ }
1133
+
1134
+ const err = this[kError] || new SocketError('closed', util.getSocketInfo(this))
1135
+
1136
+ client[kSocket] = null
1137
+
1138
+ if (client.destroyed) {
1139
+ assert(client[kPending] === 0)
1140
+
1141
+ // Fail entire queue.
1142
+ const requests = client[kQueue].splice(client[kRunningIdx])
1143
+ for (let i = 0; i < requests.length; i++) {
1144
+ const request = requests[i]
1145
+ errorRequest(client, request, err)
1146
+ }
1147
+ } else if (client[kRunning] > 0 && err.code !== 'UND_ERR_INFO') {
1148
+ // Fail head of pipeline.
1149
+ const request = client[kQueue][client[kRunningIdx]]
1150
+ client[kQueue][client[kRunningIdx]++] = null
1151
+
1152
+ errorRequest(client, request, err)
1153
+ }
1154
+
1155
+ client[kPendingIdx] = client[kRunningIdx]
1156
+
1157
+ assert(client[kRunning] === 0)
1158
+
1159
+ client.emit('disconnect', client[kUrl], [client], err)
1160
+
1161
+ resume(client)
1162
+ }
1163
+
1164
+ async function connect (client) {
1165
+ assert(!client[kConnecting])
1166
+ assert(!client[kSocket])
1167
+
1168
+ let { host, hostname, protocol, port } = client[kUrl]
1169
+
1170
+ // Resolve ipv6
1171
+ if (hostname[0] === '[') {
1172
+ const idx = hostname.indexOf(']')
1173
+
1174
+ assert(idx !== -1)
1175
+ const ip = hostname.substring(1, idx)
1176
+
1177
+ assert(net.isIP(ip))
1178
+ hostname = ip
1179
+ }
1180
+
1181
+ client[kConnecting] = true
1182
+
1183
+ if (channels.beforeConnect.hasSubscribers) {
1184
+ channels.beforeConnect.publish({
1185
+ connectParams: {
1186
+ host,
1187
+ hostname,
1188
+ protocol,
1189
+ port,
1190
+ servername: client[kServerName],
1191
+ localAddress: client[kLocalAddress]
1192
+ },
1193
+ connector: client[kConnector]
1194
+ })
1195
+ }
1196
+
1197
+ try {
1198
+ const socket = await new Promise((resolve, reject) => {
1199
+ client[kConnector]({
1200
+ host,
1201
+ hostname,
1202
+ protocol,
1203
+ port,
1204
+ servername: client[kServerName],
1205
+ localAddress: client[kLocalAddress]
1206
+ }, (err, socket) => {
1207
+ if (err) {
1208
+ reject(err)
1209
+ } else {
1210
+ resolve(socket)
1211
+ }
1212
+ })
1213
+ })
1214
+
1215
+ if (client.destroyed) {
1216
+ util.destroy(socket.on('error', () => {}), new ClientDestroyedError())
1217
+ return
1218
+ }
1219
+
1220
+ client[kConnecting] = false
1221
+
1222
+ assert(socket)
1223
+
1224
+ const isH2 = socket.alpnProtocol === 'h2'
1225
+ if (isH2) {
1226
+ if (!h2ExperimentalWarned) {
1227
+ h2ExperimentalWarned = true
1228
+ process.emitWarning('H2 support is experimental, expect them to change at any time.', {
1229
+ code: 'UNDICI-H2'
1230
+ })
1231
+ }
1232
+
1233
+ const session = http2.connect(client[kUrl], {
1234
+ createConnection: () => socket,
1235
+ peerMaxConcurrentStreams: client[kHTTP2SessionState].maxConcurrentStreams
1236
+ })
1237
+
1238
+ client[kHTTPConnVersion] = 'h2'
1239
+ session[kClient] = client
1240
+ session[kSocket] = socket
1241
+ session.on('error', onHttp2SessionError)
1242
+ session.on('frameError', onHttp2FrameError)
1243
+ session.on('end', onHttp2SessionEnd)
1244
+ session.on('goaway', onHTTP2GoAway)
1245
+ session.on('close', onSocketClose)
1246
+ session.unref()
1247
+
1248
+ client[kHTTP2Session] = session
1249
+ socket[kHTTP2Session] = session
1250
+ } else {
1251
+ if (!llhttpInstance) {
1252
+ llhttpInstance = await llhttpPromise
1253
+ llhttpPromise = null
1254
+ }
1255
+
1256
+ socket[kNoRef] = false
1257
+ socket[kWriting] = false
1258
+ socket[kReset] = false
1259
+ socket[kBlocking] = false
1260
+ socket[kParser] = new Parser(client, socket, llhttpInstance)
1261
+ }
1262
+
1263
+ socket[kCounter] = 0
1264
+ socket[kMaxRequests] = client[kMaxRequests]
1265
+ socket[kClient] = client
1266
+ socket[kError] = null
1267
+
1268
+ socket
1269
+ .on('error', onSocketError)
1270
+ .on('readable', onSocketReadable)
1271
+ .on('end', onSocketEnd)
1272
+ .on('close', onSocketClose)
1273
+
1274
+ client[kSocket] = socket
1275
+
1276
+ if (channels.connected.hasSubscribers) {
1277
+ channels.connected.publish({
1278
+ connectParams: {
1279
+ host,
1280
+ hostname,
1281
+ protocol,
1282
+ port,
1283
+ servername: client[kServerName],
1284
+ localAddress: client[kLocalAddress]
1285
+ },
1286
+ connector: client[kConnector],
1287
+ socket
1288
+ })
1289
+ }
1290
+ client.emit('connect', client[kUrl], [client])
1291
+ } catch (err) {
1292
+ if (client.destroyed) {
1293
+ return
1294
+ }
1295
+
1296
+ client[kConnecting] = false
1297
+
1298
+ if (channels.connectError.hasSubscribers) {
1299
+ channels.connectError.publish({
1300
+ connectParams: {
1301
+ host,
1302
+ hostname,
1303
+ protocol,
1304
+ port,
1305
+ servername: client[kServerName],
1306
+ localAddress: client[kLocalAddress]
1307
+ },
1308
+ connector: client[kConnector],
1309
+ error: err
1310
+ })
1311
+ }
1312
+
1313
+ if (err.code === 'ERR_TLS_CERT_ALTNAME_INVALID') {
1314
+ assert(client[kRunning] === 0)
1315
+ while (client[kPending] > 0 && client[kQueue][client[kPendingIdx]].servername === client[kServerName]) {
1316
+ const request = client[kQueue][client[kPendingIdx]++]
1317
+ errorRequest(client, request, err)
1318
+ }
1319
+ } else {
1320
+ onError(client, err)
1321
+ }
1322
+
1323
+ client.emit('connectionError', client[kUrl], [client], err)
1324
+ }
1325
+
1326
+ resume(client)
1327
+ }
1328
+
1329
+ function emitDrain (client) {
1330
+ client[kNeedDrain] = 0
1331
+ client.emit('drain', client[kUrl], [client])
1332
+ }
1333
+
1334
+ function resume (client, sync) {
1335
+ if (client[kResuming] === 2) {
1336
+ return
1337
+ }
1338
+
1339
+ client[kResuming] = 2
1340
+
1341
+ _resume(client, sync)
1342
+ client[kResuming] = 0
1343
+
1344
+ if (client[kRunningIdx] > 256) {
1345
+ client[kQueue].splice(0, client[kRunningIdx])
1346
+ client[kPendingIdx] -= client[kRunningIdx]
1347
+ client[kRunningIdx] = 0
1348
+ }
1349
+ }
1350
+
1351
+ function _resume (client, sync) {
1352
+ while (true) {
1353
+ if (client.destroyed) {
1354
+ assert(client[kPending] === 0)
1355
+ return
1356
+ }
1357
+
1358
+ if (client[kClosedResolve] && !client[kSize]) {
1359
+ client[kClosedResolve]()
1360
+ client[kClosedResolve] = null
1361
+ return
1362
+ }
1363
+
1364
+ const socket = client[kSocket]
1365
+
1366
+ if (socket && !socket.destroyed && socket.alpnProtocol !== 'h2') {
1367
+ if (client[kSize] === 0) {
1368
+ if (!socket[kNoRef] && socket.unref) {
1369
+ socket.unref()
1370
+ socket[kNoRef] = true
1371
+ }
1372
+ } else if (socket[kNoRef] && socket.ref) {
1373
+ socket.ref()
1374
+ socket[kNoRef] = false
1375
+ }
1376
+
1377
+ if (client[kSize] === 0) {
1378
+ if (socket[kParser].timeoutType !== TIMEOUT_IDLE) {
1379
+ socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_IDLE)
1380
+ }
1381
+ } else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {
1382
+ if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {
1383
+ const request = client[kQueue][client[kRunningIdx]]
1384
+ const headersTimeout = request.headersTimeout != null
1385
+ ? request.headersTimeout
1386
+ : client[kHeadersTimeout]
1387
+ socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS)
1388
+ }
1389
+ }
1390
+ }
1391
+
1392
+ if (client[kBusy]) {
1393
+ client[kNeedDrain] = 2
1394
+ } else if (client[kNeedDrain] === 2) {
1395
+ if (sync) {
1396
+ client[kNeedDrain] = 1
1397
+ process.nextTick(emitDrain, client)
1398
+ } else {
1399
+ emitDrain(client)
1400
+ }
1401
+ continue
1402
+ }
1403
+
1404
+ if (client[kPending] === 0) {
1405
+ return
1406
+ }
1407
+
1408
+ if (client[kRunning] >= (client[kPipelining] || 1)) {
1409
+ return
1410
+ }
1411
+
1412
+ const request = client[kQueue][client[kPendingIdx]]
1413
+
1414
+ if (client[kUrl].protocol === 'https:' && client[kServerName] !== request.servername) {
1415
+ if (client[kRunning] > 0) {
1416
+ return
1417
+ }
1418
+
1419
+ client[kServerName] = request.servername
1420
+
1421
+ if (socket && socket.servername !== request.servername) {
1422
+ util.destroy(socket, new InformationalError('servername changed'))
1423
+ return
1424
+ }
1425
+ }
1426
+
1427
+ if (client[kConnecting]) {
1428
+ return
1429
+ }
1430
+
1431
+ if (!socket && !client[kHTTP2Session]) {
1432
+ connect(client)
1433
+ return
1434
+ }
1435
+
1436
+ if (socket.destroyed || socket[kWriting] || socket[kReset] || socket[kBlocking]) {
1437
+ return
1438
+ }
1439
+
1440
+ if (client[kRunning] > 0 && !request.idempotent) {
1441
+ // Non-idempotent request cannot be retried.
1442
+ // Ensure that no other requests are inflight and
1443
+ // could cause failure.
1444
+ return
1445
+ }
1446
+
1447
+ if (client[kRunning] > 0 && (request.upgrade || request.method === 'CONNECT')) {
1448
+ // Don't dispatch an upgrade until all preceding requests have completed.
1449
+ // A misbehaving server might upgrade the connection before all pipelined
1450
+ // request has completed.
1451
+ return
1452
+ }
1453
+
1454
+ if (client[kRunning] > 0 && util.bodyLength(request.body) !== 0 &&
1455
+ (util.isStream(request.body) || util.isAsyncIterable(request.body))) {
1456
+ // Request with stream or iterator body can error while other requests
1457
+ // are inflight and indirectly error those as well.
1458
+ // Ensure this doesn't happen by waiting for inflight
1459
+ // to complete before dispatching.
1460
+
1461
+ // Request with stream or iterator body cannot be retried.
1462
+ // Ensure that no other requests are inflight and
1463
+ // could cause failure.
1464
+ return
1465
+ }
1466
+
1467
+ if (!request.aborted && write(client, request)) {
1468
+ client[kPendingIdx]++
1469
+ } else {
1470
+ client[kQueue].splice(client[kPendingIdx], 1)
1471
+ }
1472
+ }
1473
+ }
1474
+
1475
+ // https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2
1476
+ function shouldSendContentLength (method) {
1477
+ return method !== 'GET' && method !== 'HEAD' && method !== 'OPTIONS' && method !== 'TRACE' && method !== 'CONNECT'
1478
+ }
1479
+
1480
+ function write (client, request) {
1481
+ if (client[kHTTPConnVersion] === 'h2') {
1482
+ writeH2(client, client[kHTTP2Session], request)
1483
+ return
1484
+ }
1485
+
1486
+ const { body, method, path, host, upgrade, headers, blocking, reset } = request
1487
+
1488
+ // https://tools.ietf.org/html/rfc7231#section-4.3.1
1489
+ // https://tools.ietf.org/html/rfc7231#section-4.3.2
1490
+ // https://tools.ietf.org/html/rfc7231#section-4.3.5
1491
+
1492
+ // Sending a payload body on a request that does not
1493
+ // expect it can cause undefined behavior on some
1494
+ // servers and corrupt connection state. Do not
1495
+ // re-use the connection for further requests.
1496
+
1497
+ const expectsPayload = (
1498
+ method === 'PUT' ||
1499
+ method === 'POST' ||
1500
+ method === 'PATCH'
1501
+ )
1502
+
1503
+ if (body && typeof body.read === 'function') {
1504
+ // Try to read EOF in order to get length.
1505
+ body.read(0)
1506
+ }
1507
+
1508
+ const bodyLength = util.bodyLength(body)
1509
+
1510
+ let contentLength = bodyLength
1511
+
1512
+ if (contentLength === null) {
1513
+ contentLength = request.contentLength
1514
+ }
1515
+
1516
+ if (contentLength === 0 && !expectsPayload) {
1517
+ // https://tools.ietf.org/html/rfc7230#section-3.3.2
1518
+ // A user agent SHOULD NOT send a Content-Length header field when
1519
+ // the request message does not contain a payload body and the method
1520
+ // semantics do not anticipate such a body.
1521
+
1522
+ contentLength = null
1523
+ }
1524
+
1525
+ // https://github.com/nodejs/undici/issues/2046
1526
+ // A user agent may send a Content-Length header with 0 value, this should be allowed.
1527
+ if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) {
1528
+ if (client[kStrictContentLength]) {
1529
+ errorRequest(client, request, new RequestContentLengthMismatchError())
1530
+ return false
1531
+ }
1532
+
1533
+ process.emitWarning(new RequestContentLengthMismatchError())
1534
+ }
1535
+
1536
+ const socket = client[kSocket]
1537
+
1538
+ try {
1539
+ request.onConnect((err) => {
1540
+ if (request.aborted || request.completed) {
1541
+ return
1542
+ }
1543
+
1544
+ errorRequest(client, request, err || new RequestAbortedError())
1545
+
1546
+ util.destroy(socket, new InformationalError('aborted'))
1547
+ })
1548
+ } catch (err) {
1549
+ errorRequest(client, request, err)
1550
+ }
1551
+
1552
+ if (request.aborted) {
1553
+ return false
1554
+ }
1555
+
1556
+ if (method === 'HEAD') {
1557
+ // https://github.com/mcollina/undici/issues/258
1558
+ // Close after a HEAD request to interop with misbehaving servers
1559
+ // that may send a body in the response.
1560
+
1561
+ socket[kReset] = true
1562
+ }
1563
+
1564
+ if (upgrade || method === 'CONNECT') {
1565
+ // On CONNECT or upgrade, block pipeline from dispatching further
1566
+ // requests on this connection.
1567
+
1568
+ socket[kReset] = true
1569
+ }
1570
+
1571
+ if (reset != null) {
1572
+ socket[kReset] = reset
1573
+ }
1574
+
1575
+ if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) {
1576
+ socket[kReset] = true
1577
+ }
1578
+
1579
+ if (blocking) {
1580
+ socket[kBlocking] = true
1581
+ }
1582
+
1583
+ let header = `${method} ${path} HTTP/1.1\r\n`
1584
+
1585
+ if (typeof host === 'string') {
1586
+ header += `host: ${host}\r\n`
1587
+ } else {
1588
+ header += client[kHostHeader]
1589
+ }
1590
+
1591
+ if (upgrade) {
1592
+ header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n`
1593
+ } else if (client[kPipelining] && !socket[kReset]) {
1594
+ header += 'connection: keep-alive\r\n'
1595
+ } else {
1596
+ header += 'connection: close\r\n'
1597
+ }
1598
+
1599
+ if (headers) {
1600
+ header += headers
1601
+ }
1602
+
1603
+ if (channels.sendHeaders.hasSubscribers) {
1604
+ channels.sendHeaders.publish({ request, headers: header, socket })
1605
+ }
1606
+
1607
+ /* istanbul ignore else: assertion */
1608
+ if (!body || bodyLength === 0) {
1609
+ if (contentLength === 0) {
1610
+ socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1')
1611
+ } else {
1612
+ assert(contentLength === null, 'no body must not have content length')
1613
+ socket.write(`${header}\r\n`, 'latin1')
1614
+ }
1615
+ request.onRequestSent()
1616
+ } else if (util.isBuffer(body)) {
1617
+ assert(contentLength === body.byteLength, 'buffer body must have content length')
1618
+
1619
+ socket.cork()
1620
+ socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1')
1621
+ socket.write(body)
1622
+ socket.uncork()
1623
+ request.onBodySent(body)
1624
+ request.onRequestSent()
1625
+ if (!expectsPayload) {
1626
+ socket[kReset] = true
1627
+ }
1628
+ } else if (util.isBlobLike(body)) {
1629
+ if (typeof body.stream === 'function') {
1630
+ writeIterable({ body: body.stream(), client, request, socket, contentLength, header, expectsPayload })
1631
+ } else {
1632
+ writeBlob({ body, client, request, socket, contentLength, header, expectsPayload })
1633
+ }
1634
+ } else if (util.isStream(body)) {
1635
+ writeStream({ body, client, request, socket, contentLength, header, expectsPayload })
1636
+ } else if (util.isIterable(body)) {
1637
+ writeIterable({ body, client, request, socket, contentLength, header, expectsPayload })
1638
+ } else {
1639
+ assert(false)
1640
+ }
1641
+
1642
+ return true
1643
+ }
1644
+
1645
+ function writeH2 (client, session, request) {
1646
+ const { body, method, path, host, upgrade, expectContinue, signal, headers: reqHeaders } = request
1647
+
1648
+ let headers
1649
+ if (typeof reqHeaders === 'string') headers = Request[kHTTP2CopyHeaders](reqHeaders.trim())
1650
+ else headers = reqHeaders
1651
+
1652
+ if (upgrade) {
1653
+ errorRequest(client, request, new Error('Upgrade not supported for H2'))
1654
+ return false
1655
+ }
1656
+
1657
+ try {
1658
+ // TODO(HTTP/2): Should we call onConnect immediately or on stream ready event?
1659
+ request.onConnect((err) => {
1660
+ if (request.aborted || request.completed) {
1661
+ return
1662
+ }
1663
+
1664
+ errorRequest(client, request, err || new RequestAbortedError())
1665
+ })
1666
+ } catch (err) {
1667
+ errorRequest(client, request, err)
1668
+ }
1669
+
1670
+ if (request.aborted) {
1671
+ return false
1672
+ }
1673
+
1674
+ /** @type {import('node:http2').ClientHttp2Stream} */
1675
+ let stream
1676
+ const h2State = client[kHTTP2SessionState]
1677
+
1678
+ headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost]
1679
+ headers[HTTP2_HEADER_METHOD] = method
1680
+
1681
+ if (method === 'CONNECT') {
1682
+ session.ref()
1683
+ // we are already connected, streams are pending, first request
1684
+ // will create a new stream. We trigger a request to create the stream and wait until
1685
+ // `ready` event is triggered
1686
+ // We disabled endStream to allow the user to write to the stream
1687
+ stream = session.request(headers, { endStream: false, signal })
1688
+
1689
+ if (stream.id && !stream.pending) {
1690
+ request.onUpgrade(null, null, stream)
1691
+ ++h2State.openStreams
1692
+ } else {
1693
+ stream.once('ready', () => {
1694
+ request.onUpgrade(null, null, stream)
1695
+ ++h2State.openStreams
1696
+ })
1697
+ }
1698
+
1699
+ stream.once('close', () => {
1700
+ h2State.openStreams -= 1
1701
+ // TODO(HTTP/2): unref only if current streams count is 0
1702
+ if (h2State.openStreams === 0) session.unref()
1703
+ })
1704
+
1705
+ return true
1706
+ }
1707
+
1708
+ // https://tools.ietf.org/html/rfc7540#section-8.3
1709
+ // :path and :scheme headers must be omited when sending CONNECT
1710
+
1711
+ headers[HTTP2_HEADER_PATH] = path
1712
+ headers[HTTP2_HEADER_SCHEME] = 'https'
1713
+
1714
+ // https://tools.ietf.org/html/rfc7231#section-4.3.1
1715
+ // https://tools.ietf.org/html/rfc7231#section-4.3.2
1716
+ // https://tools.ietf.org/html/rfc7231#section-4.3.5
1717
+
1718
+ // Sending a payload body on a request that does not
1719
+ // expect it can cause undefined behavior on some
1720
+ // servers and corrupt connection state. Do not
1721
+ // re-use the connection for further requests.
1722
+
1723
+ const expectsPayload = (
1724
+ method === 'PUT' ||
1725
+ method === 'POST' ||
1726
+ method === 'PATCH'
1727
+ )
1728
+
1729
+ if (body && typeof body.read === 'function') {
1730
+ // Try to read EOF in order to get length.
1731
+ body.read(0)
1732
+ }
1733
+
1734
+ let contentLength = util.bodyLength(body)
1735
+
1736
+ if (contentLength == null) {
1737
+ contentLength = request.contentLength
1738
+ }
1739
+
1740
+ if (contentLength === 0 || !expectsPayload) {
1741
+ // https://tools.ietf.org/html/rfc7230#section-3.3.2
1742
+ // A user agent SHOULD NOT send a Content-Length header field when
1743
+ // the request message does not contain a payload body and the method
1744
+ // semantics do not anticipate such a body.
1745
+
1746
+ contentLength = null
1747
+ }
1748
+
1749
+ // https://github.com/nodejs/undici/issues/2046
1750
+ // A user agent may send a Content-Length header with 0 value, this should be allowed.
1751
+ if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength != null && request.contentLength !== contentLength) {
1752
+ if (client[kStrictContentLength]) {
1753
+ errorRequest(client, request, new RequestContentLengthMismatchError())
1754
+ return false
1755
+ }
1756
+
1757
+ process.emitWarning(new RequestContentLengthMismatchError())
1758
+ }
1759
+
1760
+ if (contentLength != null) {
1761
+ assert(body, 'no body must not have content length')
1762
+ headers[HTTP2_HEADER_CONTENT_LENGTH] = `${contentLength}`
1763
+ }
1764
+
1765
+ session.ref()
1766
+
1767
+ const shouldEndStream = method === 'GET' || method === 'HEAD'
1768
+ if (expectContinue) {
1769
+ headers[HTTP2_HEADER_EXPECT] = '100-continue'
1770
+ stream = session.request(headers, { endStream: shouldEndStream, signal })
1771
+
1772
+ stream.once('continue', writeBodyH2)
1773
+ } else {
1774
+ stream = session.request(headers, {
1775
+ endStream: shouldEndStream,
1776
+ signal
1777
+ })
1778
+ writeBodyH2()
1779
+ }
1780
+
1781
+ // Increment counter as we have new several streams open
1782
+ ++h2State.openStreams
1783
+
1784
+ stream.once('response', headers => {
1785
+ const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers
1786
+
1787
+ if (request.onHeaders(Number(statusCode), realHeaders, stream.resume.bind(stream), '') === false) {
1788
+ stream.pause()
1789
+ }
1790
+ })
1791
+
1792
+ stream.once('end', () => {
1793
+ request.onComplete([])
1794
+ })
1795
+
1796
+ stream.on('data', (chunk) => {
1797
+ if (request.onData(chunk) === false) {
1798
+ stream.pause()
1799
+ }
1800
+ })
1801
+
1802
+ stream.once('close', () => {
1803
+ h2State.openStreams -= 1
1804
+ // TODO(HTTP/2): unref only if current streams count is 0
1805
+ if (h2State.openStreams === 0) {
1806
+ session.unref()
1807
+ }
1808
+ })
1809
+
1810
+ stream.once('error', function (err) {
1811
+ if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {
1812
+ h2State.streams -= 1
1813
+ util.destroy(stream, err)
1814
+ }
1815
+ })
1816
+
1817
+ stream.once('frameError', (type, code) => {
1818
+ const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`)
1819
+ errorRequest(client, request, err)
1820
+
1821
+ if (client[kHTTP2Session] && !client[kHTTP2Session].destroyed && !this.closed && !this.destroyed) {
1822
+ h2State.streams -= 1
1823
+ util.destroy(stream, err)
1824
+ }
1825
+ })
1826
+
1827
+ // stream.on('aborted', () => {
1828
+ // // TODO(HTTP/2): Support aborted
1829
+ // })
1830
+
1831
+ // stream.on('timeout', () => {
1832
+ // // TODO(HTTP/2): Support timeout
1833
+ // })
1834
+
1835
+ // stream.on('push', headers => {
1836
+ // // TODO(HTTP/2): Suppor push
1837
+ // })
1838
+
1839
+ // stream.on('trailers', headers => {
1840
+ // // TODO(HTTP/2): Support trailers
1841
+ // })
1842
+
1843
+ return true
1844
+
1845
+ function writeBodyH2 () {
1846
+ /* istanbul ignore else: assertion */
1847
+ if (!body) {
1848
+ request.onRequestSent()
1849
+ } else if (util.isBuffer(body)) {
1850
+ assert(contentLength === body.byteLength, 'buffer body must have content length')
1851
+ stream.cork()
1852
+ stream.write(body)
1853
+ stream.uncork()
1854
+ stream.end()
1855
+ request.onBodySent(body)
1856
+ request.onRequestSent()
1857
+ } else if (util.isBlobLike(body)) {
1858
+ if (typeof body.stream === 'function') {
1859
+ writeIterable({
1860
+ client,
1861
+ request,
1862
+ contentLength,
1863
+ h2stream: stream,
1864
+ expectsPayload,
1865
+ body: body.stream(),
1866
+ socket: client[kSocket],
1867
+ header: ''
1868
+ })
1869
+ } else {
1870
+ writeBlob({
1871
+ body,
1872
+ client,
1873
+ request,
1874
+ contentLength,
1875
+ expectsPayload,
1876
+ h2stream: stream,
1877
+ header: '',
1878
+ socket: client[kSocket]
1879
+ })
1880
+ }
1881
+ } else if (util.isStream(body)) {
1882
+ writeStream({
1883
+ body,
1884
+ client,
1885
+ request,
1886
+ contentLength,
1887
+ expectsPayload,
1888
+ socket: client[kSocket],
1889
+ h2stream: stream,
1890
+ header: ''
1891
+ })
1892
+ } else if (util.isIterable(body)) {
1893
+ writeIterable({
1894
+ body,
1895
+ client,
1896
+ request,
1897
+ contentLength,
1898
+ expectsPayload,
1899
+ header: '',
1900
+ h2stream: stream,
1901
+ socket: client[kSocket]
1902
+ })
1903
+ } else {
1904
+ assert(false)
1905
+ }
1906
+ }
1907
+ }
1908
+
1909
+ function writeStream ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
1910
+ assert(contentLength !== 0 || client[kRunning] === 0, 'stream body cannot be pipelined')
1911
+
1912
+ if (client[kHTTPConnVersion] === 'h2') {
1913
+ // For HTTP/2, is enough to pipe the stream
1914
+ const pipe = pipeline(
1915
+ body,
1916
+ h2stream,
1917
+ (err) => {
1918
+ if (err) {
1919
+ util.destroy(body, err)
1920
+ util.destroy(h2stream, err)
1921
+ } else {
1922
+ request.onRequestSent()
1923
+ }
1924
+ }
1925
+ )
1926
+
1927
+ pipe.on('data', onPipeData)
1928
+ pipe.once('end', () => {
1929
+ pipe.removeListener('data', onPipeData)
1930
+ util.destroy(pipe)
1931
+ })
1932
+
1933
+ function onPipeData (chunk) {
1934
+ request.onBodySent(chunk)
1935
+ }
1936
+
1937
+ return
1938
+ }
1939
+
1940
+ let finished = false
1941
+
1942
+ const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header })
1943
+
1944
+ const onData = function (chunk) {
1945
+ if (finished) {
1946
+ return
1947
+ }
1948
+
1949
+ try {
1950
+ if (!writer.write(chunk) && this.pause) {
1951
+ this.pause()
1952
+ }
1953
+ } catch (err) {
1954
+ util.destroy(this, err)
1955
+ }
1956
+ }
1957
+ const onDrain = function () {
1958
+ if (finished) {
1959
+ return
1960
+ }
1961
+
1962
+ if (body.resume) {
1963
+ body.resume()
1964
+ }
1965
+ }
1966
+ const onAbort = function () {
1967
+ if (finished) {
1968
+ return
1969
+ }
1970
+ const err = new RequestAbortedError()
1971
+ queueMicrotask(() => onFinished(err))
1972
+ }
1973
+ const onFinished = function (err) {
1974
+ if (finished) {
1975
+ return
1976
+ }
1977
+
1978
+ finished = true
1979
+
1980
+ assert(socket.destroyed || (socket[kWriting] && client[kRunning] <= 1))
1981
+
1982
+ socket
1983
+ .off('drain', onDrain)
1984
+ .off('error', onFinished)
1985
+
1986
+ body
1987
+ .removeListener('data', onData)
1988
+ .removeListener('end', onFinished)
1989
+ .removeListener('error', onFinished)
1990
+ .removeListener('close', onAbort)
1991
+
1992
+ if (!err) {
1993
+ try {
1994
+ writer.end()
1995
+ } catch (er) {
1996
+ err = er
1997
+ }
1998
+ }
1999
+
2000
+ writer.destroy(err)
2001
+
2002
+ if (err && (err.code !== 'UND_ERR_INFO' || err.message !== 'reset')) {
2003
+ util.destroy(body, err)
2004
+ } else {
2005
+ util.destroy(body)
2006
+ }
2007
+ }
2008
+
2009
+ body
2010
+ .on('data', onData)
2011
+ .on('end', onFinished)
2012
+ .on('error', onFinished)
2013
+ .on('close', onAbort)
2014
+
2015
+ if (body.resume) {
2016
+ body.resume()
2017
+ }
2018
+
2019
+ socket
2020
+ .on('drain', onDrain)
2021
+ .on('error', onFinished)
2022
+ }
2023
+
2024
+ async function writeBlob ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
2025
+ assert(contentLength === body.size, 'blob body must have content length')
2026
+
2027
+ const isH2 = client[kHTTPConnVersion] === 'h2'
2028
+ try {
2029
+ if (contentLength != null && contentLength !== body.size) {
2030
+ throw new RequestContentLengthMismatchError()
2031
+ }
2032
+
2033
+ const buffer = Buffer.from(await body.arrayBuffer())
2034
+
2035
+ if (isH2) {
2036
+ h2stream.cork()
2037
+ h2stream.write(buffer)
2038
+ h2stream.uncork()
2039
+ } else {
2040
+ socket.cork()
2041
+ socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1')
2042
+ socket.write(buffer)
2043
+ socket.uncork()
2044
+ }
2045
+
2046
+ request.onBodySent(buffer)
2047
+ request.onRequestSent()
2048
+
2049
+ if (!expectsPayload) {
2050
+ socket[kReset] = true
2051
+ }
2052
+
2053
+ resume(client)
2054
+ } catch (err) {
2055
+ util.destroy(isH2 ? h2stream : socket, err)
2056
+ }
2057
+ }
2058
+
2059
+ async function writeIterable ({ h2stream, body, client, request, socket, contentLength, header, expectsPayload }) {
2060
+ assert(contentLength !== 0 || client[kRunning] === 0, 'iterator body cannot be pipelined')
2061
+
2062
+ let callback = null
2063
+ function onDrain () {
2064
+ if (callback) {
2065
+ const cb = callback
2066
+ callback = null
2067
+ cb()
2068
+ }
2069
+ }
2070
+
2071
+ const waitForDrain = () => new Promise((resolve, reject) => {
2072
+ assert(callback === null)
2073
+
2074
+ if (socket[kError]) {
2075
+ reject(socket[kError])
2076
+ } else {
2077
+ callback = resolve
2078
+ }
2079
+ })
2080
+
2081
+ if (client[kHTTPConnVersion] === 'h2') {
2082
+ h2stream
2083
+ .on('close', onDrain)
2084
+ .on('drain', onDrain)
2085
+
2086
+ try {
2087
+ // It's up to the user to somehow abort the async iterable.
2088
+ for await (const chunk of body) {
2089
+ if (socket[kError]) {
2090
+ throw socket[kError]
2091
+ }
2092
+
2093
+ const res = h2stream.write(chunk)
2094
+ request.onBodySent(chunk)
2095
+ if (!res) {
2096
+ await waitForDrain()
2097
+ }
2098
+ }
2099
+ } catch (err) {
2100
+ h2stream.destroy(err)
2101
+ } finally {
2102
+ request.onRequestSent()
2103
+ h2stream.end()
2104
+ h2stream
2105
+ .off('close', onDrain)
2106
+ .off('drain', onDrain)
2107
+ }
2108
+
2109
+ return
2110
+ }
2111
+
2112
+ socket
2113
+ .on('close', onDrain)
2114
+ .on('drain', onDrain)
2115
+
2116
+ const writer = new AsyncWriter({ socket, request, contentLength, client, expectsPayload, header })
2117
+ try {
2118
+ // It's up to the user to somehow abort the async iterable.
2119
+ for await (const chunk of body) {
2120
+ if (socket[kError]) {
2121
+ throw socket[kError]
2122
+ }
2123
+
2124
+ if (!writer.write(chunk)) {
2125
+ await waitForDrain()
2126
+ }
2127
+ }
2128
+
2129
+ writer.end()
2130
+ } catch (err) {
2131
+ writer.destroy(err)
2132
+ } finally {
2133
+ socket
2134
+ .off('close', onDrain)
2135
+ .off('drain', onDrain)
2136
+ }
2137
+ }
2138
+
2139
+ class AsyncWriter {
2140
+ constructor ({ socket, request, contentLength, client, expectsPayload, header }) {
2141
+ this.socket = socket
2142
+ this.request = request
2143
+ this.contentLength = contentLength
2144
+ this.client = client
2145
+ this.bytesWritten = 0
2146
+ this.expectsPayload = expectsPayload
2147
+ this.header = header
2148
+
2149
+ socket[kWriting] = true
2150
+ }
2151
+
2152
+ write (chunk) {
2153
+ const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this
2154
+
2155
+ if (socket[kError]) {
2156
+ throw socket[kError]
2157
+ }
2158
+
2159
+ if (socket.destroyed) {
2160
+ return false
2161
+ }
2162
+
2163
+ const len = Buffer.byteLength(chunk)
2164
+ if (!len) {
2165
+ return true
2166
+ }
2167
+
2168
+ // We should defer writing chunks.
2169
+ if (contentLength !== null && bytesWritten + len > contentLength) {
2170
+ if (client[kStrictContentLength]) {
2171
+ throw new RequestContentLengthMismatchError()
2172
+ }
2173
+
2174
+ process.emitWarning(new RequestContentLengthMismatchError())
2175
+ }
2176
+
2177
+ socket.cork()
2178
+
2179
+ if (bytesWritten === 0) {
2180
+ if (!expectsPayload) {
2181
+ socket[kReset] = true
2182
+ }
2183
+
2184
+ if (contentLength === null) {
2185
+ socket.write(`${header}transfer-encoding: chunked\r\n`, 'latin1')
2186
+ } else {
2187
+ socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, 'latin1')
2188
+ }
2189
+ }
2190
+
2191
+ if (contentLength === null) {
2192
+ socket.write(`\r\n${len.toString(16)}\r\n`, 'latin1')
2193
+ }
2194
+
2195
+ this.bytesWritten += len
2196
+
2197
+ const ret = socket.write(chunk)
2198
+
2199
+ socket.uncork()
2200
+
2201
+ request.onBodySent(chunk)
2202
+
2203
+ if (!ret) {
2204
+ if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
2205
+ // istanbul ignore else: only for jest
2206
+ if (socket[kParser].timeout.refresh) {
2207
+ socket[kParser].timeout.refresh()
2208
+ }
2209
+ }
2210
+ }
2211
+
2212
+ return ret
2213
+ }
2214
+
2215
+ end () {
2216
+ const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this
2217
+ request.onRequestSent()
2218
+
2219
+ socket[kWriting] = false
2220
+
2221
+ if (socket[kError]) {
2222
+ throw socket[kError]
2223
+ }
2224
+
2225
+ if (socket.destroyed) {
2226
+ return
2227
+ }
2228
+
2229
+ if (bytesWritten === 0) {
2230
+ if (expectsPayload) {
2231
+ // https://tools.ietf.org/html/rfc7230#section-3.3.2
2232
+ // A user agent SHOULD send a Content-Length in a request message when
2233
+ // no Transfer-Encoding is sent and the request method defines a meaning
2234
+ // for an enclosed payload body.
2235
+
2236
+ socket.write(`${header}content-length: 0\r\n\r\n`, 'latin1')
2237
+ } else {
2238
+ socket.write(`${header}\r\n`, 'latin1')
2239
+ }
2240
+ } else if (contentLength === null) {
2241
+ socket.write('\r\n0\r\n\r\n', 'latin1')
2242
+ }
2243
+
2244
+ if (contentLength !== null && bytesWritten !== contentLength) {
2245
+ if (client[kStrictContentLength]) {
2246
+ throw new RequestContentLengthMismatchError()
2247
+ } else {
2248
+ process.emitWarning(new RequestContentLengthMismatchError())
2249
+ }
2250
+ }
2251
+
2252
+ if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
2253
+ // istanbul ignore else: only for jest
2254
+ if (socket[kParser].timeout.refresh) {
2255
+ socket[kParser].timeout.refresh()
2256
+ }
2257
+ }
2258
+
2259
+ resume(client)
2260
+ }
2261
+
2262
+ destroy (err) {
2263
+ const { socket, client } = this
2264
+
2265
+ socket[kWriting] = false
2266
+
2267
+ if (err) {
2268
+ assert(client[kRunning] <= 1, 'pipeline should only contain this request')
2269
+ util.destroy(socket, err)
2270
+ }
2271
+ }
2272
+ }
2273
+
2274
+ function errorRequest (client, request, err) {
2275
+ try {
2276
+ request.onError(err)
2277
+ assert(request.aborted)
2278
+ } catch (err) {
2279
+ client.emit('error', err)
2280
+ }
2281
+ }
2282
+
2283
+ module.exports = Client