litmus-cli 1.5.16-beta.1 → 1.5.16-screen.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1482) hide show
  1. package/README.md +5 -0
  2. package/dist/commands/connect.d.ts.map +1 -1
  3. package/dist/commands/connect.js +6 -0
  4. package/dist/commands/connect.js.map +1 -1
  5. package/dist/commands/screen-capture.d.ts +20 -0
  6. package/dist/commands/screen-capture.d.ts.map +1 -0
  7. package/dist/commands/screen-capture.js +168 -0
  8. package/dist/commands/screen-capture.js.map +1 -0
  9. package/dist/index.js +10 -5
  10. package/dist/index.js.map +1 -1
  11. package/dist/lib/ai-network-hosts.d.ts.map +1 -1
  12. package/dist/lib/ai-network-hosts.js +5 -0
  13. package/dist/lib/ai-network-hosts.js.map +1 -1
  14. package/dist/lib/config.d.ts +2 -0
  15. package/dist/lib/config.d.ts.map +1 -1
  16. package/dist/lib/config.js.map +1 -1
  17. package/dist/lib/connect-node-upgrade.d.ts +2 -0
  18. package/dist/lib/connect-node-upgrade.d.ts.map +1 -0
  19. package/dist/lib/connect-node-upgrade.js +122 -0
  20. package/dist/lib/connect-node-upgrade.js.map +1 -0
  21. package/dist/lib/credential-scrub.d.ts +30 -0
  22. package/dist/lib/credential-scrub.d.ts.map +1 -0
  23. package/dist/lib/credential-scrub.js +176 -0
  24. package/dist/lib/credential-scrub.js.map +1 -0
  25. package/dist/lib/hosted-watcher.js +21 -0
  26. package/dist/lib/hosted-watcher.js.map +1 -1
  27. package/dist/lib/laptop-capture.d.ts +267 -0
  28. package/dist/lib/laptop-capture.d.ts.map +1 -0
  29. package/dist/lib/laptop-capture.js +1357 -0
  30. package/dist/lib/laptop-capture.js.map +1 -0
  31. package/dist/lib/schemas.d.ts +1 -0
  32. package/dist/lib/schemas.d.ts.map +1 -1
  33. package/dist/lib/schemas.js +3 -0
  34. package/dist/lib/schemas.js.map +1 -1
  35. package/dist/native/macos/Litmus Capture.app/Contents/Info.plist +37 -0
  36. package/dist/native/macos/Litmus Capture.app/Contents/MacOS/LitmusCapture +0 -0
  37. package/dist/native/macos/Litmus Capture.app/Contents/_CodeSignature/CodeResources +115 -0
  38. package/dist/native/windows/LitmusCapture.cs +1738 -0
  39. package/dist/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
  40. package/dist/node_modules/@nodelib/fs.scandir/README.md +171 -0
  41. package/dist/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  42. package/dist/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
  43. package/dist/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
  44. package/dist/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
  45. package/dist/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
  46. package/dist/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
  47. package/dist/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  48. package/dist/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
  49. package/dist/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
  50. package/dist/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
  51. package/dist/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
  52. package/dist/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
  53. package/dist/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  54. package/dist/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
  55. package/dist/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  56. package/dist/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
  57. package/dist/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
  58. package/dist/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
  59. package/dist/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
  60. package/dist/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
  61. package/dist/node_modules/@nodelib/fs.scandir/package.json +44 -0
  62. package/dist/node_modules/@nodelib/fs.stat/LICENSE +21 -0
  63. package/dist/node_modules/@nodelib/fs.stat/README.md +126 -0
  64. package/dist/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  65. package/dist/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
  66. package/dist/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
  67. package/dist/node_modules/@nodelib/fs.stat/out/index.js +26 -0
  68. package/dist/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  69. package/dist/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
  70. package/dist/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
  71. package/dist/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
  72. package/dist/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
  73. package/dist/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
  74. package/dist/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  75. package/dist/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
  76. package/dist/node_modules/@nodelib/fs.stat/package.json +37 -0
  77. package/dist/node_modules/@nodelib/fs.walk/LICENSE +21 -0
  78. package/dist/node_modules/@nodelib/fs.walk/README.md +215 -0
  79. package/dist/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
  80. package/dist/node_modules/@nodelib/fs.walk/out/index.js +34 -0
  81. package/dist/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  82. package/dist/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
  83. package/dist/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
  84. package/dist/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
  85. package/dist/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
  86. package/dist/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
  87. package/dist/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
  88. package/dist/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
  89. package/dist/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  90. package/dist/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
  91. package/dist/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
  92. package/dist/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
  93. package/dist/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  94. package/dist/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
  95. package/dist/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
  96. package/dist/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
  97. package/dist/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
  98. package/dist/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
  99. package/dist/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  100. package/dist/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
  101. package/dist/node_modules/@nodelib/fs.walk/package.json +44 -0
  102. package/dist/node_modules/ansi-regex/index.d.ts +33 -0
  103. package/dist/node_modules/ansi-regex/index.js +15 -0
  104. package/dist/node_modules/ansi-regex/license +9 -0
  105. package/dist/node_modules/ansi-regex/package.json +61 -0
  106. package/dist/node_modules/ansi-regex/readme.md +66 -0
  107. package/dist/node_modules/bluebird/LICENSE +21 -0
  108. package/dist/node_modules/bluebird/README.md +57 -0
  109. package/dist/node_modules/bluebird/changelog.md +1 -0
  110. package/dist/node_modules/bluebird/js/browser/bluebird.core.js +3914 -0
  111. package/dist/node_modules/bluebird/js/browser/bluebird.core.min.js +31 -0
  112. package/dist/node_modules/bluebird/js/browser/bluebird.js +5778 -0
  113. package/dist/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
  114. package/dist/node_modules/bluebird/js/release/any.js +21 -0
  115. package/dist/node_modules/bluebird/js/release/assert.js +55 -0
  116. package/dist/node_modules/bluebird/js/release/async.js +120 -0
  117. package/dist/node_modules/bluebird/js/release/bind.js +67 -0
  118. package/dist/node_modules/bluebird/js/release/bluebird.js +11 -0
  119. package/dist/node_modules/bluebird/js/release/call_get.js +123 -0
  120. package/dist/node_modules/bluebird/js/release/cancel.js +129 -0
  121. package/dist/node_modules/bluebird/js/release/catch_filter.js +42 -0
  122. package/dist/node_modules/bluebird/js/release/context.js +69 -0
  123. package/dist/node_modules/bluebird/js/release/debuggability.js +1009 -0
  124. package/dist/node_modules/bluebird/js/release/direct_resolve.js +46 -0
  125. package/dist/node_modules/bluebird/js/release/each.js +30 -0
  126. package/dist/node_modules/bluebird/js/release/errors.js +116 -0
  127. package/dist/node_modules/bluebird/js/release/es5.js +80 -0
  128. package/dist/node_modules/bluebird/js/release/filter.js +12 -0
  129. package/dist/node_modules/bluebird/js/release/finally.js +146 -0
  130. package/dist/node_modules/bluebird/js/release/generators.js +223 -0
  131. package/dist/node_modules/bluebird/js/release/join.js +165 -0
  132. package/dist/node_modules/bluebird/js/release/map.js +175 -0
  133. package/dist/node_modules/bluebird/js/release/method.js +55 -0
  134. package/dist/node_modules/bluebird/js/release/nodeback.js +51 -0
  135. package/dist/node_modules/bluebird/js/release/nodeify.js +58 -0
  136. package/dist/node_modules/bluebird/js/release/promise.js +819 -0
  137. package/dist/node_modules/bluebird/js/release/promise_array.js +186 -0
  138. package/dist/node_modules/bluebird/js/release/promisify.js +314 -0
  139. package/dist/node_modules/bluebird/js/release/props.js +118 -0
  140. package/dist/node_modules/bluebird/js/release/queue.js +73 -0
  141. package/dist/node_modules/bluebird/js/release/race.js +49 -0
  142. package/dist/node_modules/bluebird/js/release/reduce.js +183 -0
  143. package/dist/node_modules/bluebird/js/release/schedule.js +62 -0
  144. package/dist/node_modules/bluebird/js/release/settle.js +47 -0
  145. package/dist/node_modules/bluebird/js/release/some.js +148 -0
  146. package/dist/node_modules/bluebird/js/release/synchronous_inspection.js +103 -0
  147. package/dist/node_modules/bluebird/js/release/thenables.js +86 -0
  148. package/dist/node_modules/bluebird/js/release/timers.js +93 -0
  149. package/dist/node_modules/bluebird/js/release/using.js +226 -0
  150. package/dist/node_modules/bluebird/js/release/util.js +421 -0
  151. package/dist/node_modules/bluebird/package.json +78 -0
  152. package/dist/node_modules/braces/LICENSE +21 -0
  153. package/dist/node_modules/braces/README.md +586 -0
  154. package/dist/node_modules/braces/index.js +170 -0
  155. package/dist/node_modules/braces/lib/compile.js +60 -0
  156. package/dist/node_modules/braces/lib/constants.js +57 -0
  157. package/dist/node_modules/braces/lib/expand.js +113 -0
  158. package/dist/node_modules/braces/lib/parse.js +331 -0
  159. package/dist/node_modules/braces/lib/stringify.js +32 -0
  160. package/dist/node_modules/braces/lib/utils.js +122 -0
  161. package/dist/node_modules/braces/package.json +77 -0
  162. package/dist/node_modules/buffer-crc32/LICENSE +19 -0
  163. package/dist/node_modules/buffer-crc32/README.md +55 -0
  164. package/dist/node_modules/buffer-crc32/dist/index.cjs +306 -0
  165. package/dist/node_modules/buffer-crc32/dist/index.d.cts +35 -0
  166. package/dist/node_modules/buffer-crc32/dist/index.d.mts +35 -0
  167. package/dist/node_modules/buffer-crc32/dist/index.mjs +304 -0
  168. package/dist/node_modules/buffer-crc32/index.d.ts +35 -0
  169. package/dist/node_modules/buffer-crc32/package.json +54 -0
  170. package/dist/node_modules/chalk/license +9 -0
  171. package/dist/node_modules/chalk/package.json +83 -0
  172. package/dist/node_modules/chalk/readme.md +297 -0
  173. package/dist/node_modules/chalk/source/index.d.ts +325 -0
  174. package/dist/node_modules/chalk/source/index.js +225 -0
  175. package/dist/node_modules/chalk/source/utilities.js +33 -0
  176. package/dist/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  177. package/dist/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  178. package/dist/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  179. package/dist/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  180. package/dist/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  181. package/dist/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
  182. package/dist/node_modules/chokidar/LICENSE +21 -0
  183. package/dist/node_modules/chokidar/README.md +305 -0
  184. package/dist/node_modules/chokidar/handler.d.ts +90 -0
  185. package/dist/node_modules/chokidar/handler.js +632 -0
  186. package/dist/node_modules/chokidar/index.d.ts +217 -0
  187. package/dist/node_modules/chokidar/index.js +822 -0
  188. package/dist/node_modules/chokidar/package.json +63 -0
  189. package/dist/node_modules/cli-cursor/index.d.ts +47 -0
  190. package/dist/node_modules/cli-cursor/index.js +39 -0
  191. package/dist/node_modules/cli-cursor/license +9 -0
  192. package/dist/node_modules/cli-cursor/package.json +56 -0
  193. package/dist/node_modules/cli-cursor/readme.md +39 -0
  194. package/dist/node_modules/cli-spinners/index.d.ts +139 -0
  195. package/dist/node_modules/cli-spinners/index.js +11 -0
  196. package/dist/node_modules/cli-spinners/license +9 -0
  197. package/dist/node_modules/cli-spinners/package.json +56 -0
  198. package/dist/node_modules/cli-spinners/readme.md +74 -0
  199. package/dist/node_modules/cli-spinners/spinners.json +1697 -0
  200. package/dist/node_modules/commander/LICENSE +22 -0
  201. package/dist/node_modules/commander/Readme.md +1172 -0
  202. package/dist/node_modules/commander/index.js +21 -0
  203. package/dist/node_modules/commander/lib/argument.js +147 -0
  204. package/dist/node_modules/commander/lib/command.js +2790 -0
  205. package/dist/node_modules/commander/lib/error.js +36 -0
  206. package/dist/node_modules/commander/lib/help.js +731 -0
  207. package/dist/node_modules/commander/lib/option.js +377 -0
  208. package/dist/node_modules/commander/lib/suggestSimilar.js +99 -0
  209. package/dist/node_modules/commander/package-support.json +19 -0
  210. package/dist/node_modules/commander/package.json +64 -0
  211. package/dist/node_modules/commander/typings/index.d.ts +1113 -0
  212. package/dist/node_modules/core-util-is/LICENSE +19 -0
  213. package/dist/node_modules/core-util-is/README.md +3 -0
  214. package/dist/node_modules/core-util-is/lib/util.js +107 -0
  215. package/dist/node_modules/core-util-is/package.json +38 -0
  216. package/dist/node_modules/duplexer2/LICENSE.md +26 -0
  217. package/dist/node_modules/duplexer2/README.md +115 -0
  218. package/dist/node_modules/duplexer2/index.js +76 -0
  219. package/dist/node_modules/duplexer2/node_modules/readable-stream/.travis.yml +34 -0
  220. package/dist/node_modules/duplexer2/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  221. package/dist/node_modules/duplexer2/node_modules/readable-stream/GOVERNANCE.md +136 -0
  222. package/dist/node_modules/duplexer2/node_modules/readable-stream/LICENSE +47 -0
  223. package/dist/node_modules/duplexer2/node_modules/readable-stream/README.md +58 -0
  224. package/dist/node_modules/duplexer2/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  225. package/dist/node_modules/duplexer2/node_modules/readable-stream/duplex-browser.js +1 -0
  226. package/dist/node_modules/duplexer2/node_modules/readable-stream/duplex.js +1 -0
  227. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
  228. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
  229. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
  230. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_transform.js +214 -0
  231. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_writable.js +685 -0
  232. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
  233. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
  234. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  235. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  236. package/dist/node_modules/duplexer2/node_modules/readable-stream/package.json +52 -0
  237. package/dist/node_modules/duplexer2/node_modules/readable-stream/passthrough.js +1 -0
  238. package/dist/node_modules/duplexer2/node_modules/readable-stream/readable-browser.js +7 -0
  239. package/dist/node_modules/duplexer2/node_modules/readable-stream/readable.js +19 -0
  240. package/dist/node_modules/duplexer2/node_modules/readable-stream/transform.js +1 -0
  241. package/dist/node_modules/duplexer2/node_modules/readable-stream/writable-browser.js +1 -0
  242. package/dist/node_modules/duplexer2/node_modules/readable-stream/writable.js +8 -0
  243. package/dist/node_modules/duplexer2/node_modules/safe-buffer/LICENSE +21 -0
  244. package/dist/node_modules/duplexer2/node_modules/safe-buffer/README.md +584 -0
  245. package/dist/node_modules/duplexer2/node_modules/safe-buffer/index.d.ts +187 -0
  246. package/dist/node_modules/duplexer2/node_modules/safe-buffer/index.js +62 -0
  247. package/dist/node_modules/duplexer2/node_modules/safe-buffer/package.json +37 -0
  248. package/dist/node_modules/duplexer2/node_modules/string_decoder/.travis.yml +50 -0
  249. package/dist/node_modules/duplexer2/node_modules/string_decoder/LICENSE +48 -0
  250. package/dist/node_modules/duplexer2/node_modules/string_decoder/README.md +47 -0
  251. package/dist/node_modules/duplexer2/node_modules/string_decoder/lib/string_decoder.js +296 -0
  252. package/dist/node_modules/duplexer2/node_modules/string_decoder/package.json +31 -0
  253. package/dist/node_modules/duplexer2/package.json +28 -0
  254. package/dist/node_modules/fast-glob/LICENSE +21 -0
  255. package/dist/node_modules/fast-glob/README.md +830 -0
  256. package/dist/node_modules/fast-glob/out/index.d.ts +40 -0
  257. package/dist/node_modules/fast-glob/out/index.js +102 -0
  258. package/dist/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
  259. package/dist/node_modules/fast-glob/out/managers/tasks.js +110 -0
  260. package/dist/node_modules/fast-glob/out/providers/async.d.ts +9 -0
  261. package/dist/node_modules/fast-glob/out/providers/async.js +23 -0
  262. package/dist/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
  263. package/dist/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
  264. package/dist/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
  265. package/dist/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
  266. package/dist/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
  267. package/dist/node_modules/fast-glob/out/providers/filters/error.js +15 -0
  268. package/dist/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
  269. package/dist/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
  270. package/dist/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
  271. package/dist/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
  272. package/dist/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
  273. package/dist/node_modules/fast-glob/out/providers/provider.js +48 -0
  274. package/dist/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
  275. package/dist/node_modules/fast-glob/out/providers/stream.js +31 -0
  276. package/dist/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
  277. package/dist/node_modules/fast-glob/out/providers/sync.js +23 -0
  278. package/dist/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
  279. package/dist/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
  280. package/dist/node_modules/fast-glob/out/readers/async.d.ts +10 -0
  281. package/dist/node_modules/fast-glob/out/readers/async.js +35 -0
  282. package/dist/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
  283. package/dist/node_modules/fast-glob/out/readers/reader.js +33 -0
  284. package/dist/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
  285. package/dist/node_modules/fast-glob/out/readers/stream.js +55 -0
  286. package/dist/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
  287. package/dist/node_modules/fast-glob/out/readers/sync.js +43 -0
  288. package/dist/node_modules/fast-glob/out/settings.d.ts +164 -0
  289. package/dist/node_modules/fast-glob/out/settings.js +59 -0
  290. package/dist/node_modules/fast-glob/out/types/index.d.ts +31 -0
  291. package/dist/node_modules/fast-glob/out/types/index.js +2 -0
  292. package/dist/node_modules/fast-glob/out/utils/array.d.ts +2 -0
  293. package/dist/node_modules/fast-glob/out/utils/array.js +22 -0
  294. package/dist/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
  295. package/dist/node_modules/fast-glob/out/utils/errno.js +7 -0
  296. package/dist/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
  297. package/dist/node_modules/fast-glob/out/utils/fs.js +19 -0
  298. package/dist/node_modules/fast-glob/out/utils/index.d.ts +8 -0
  299. package/dist/node_modules/fast-glob/out/utils/index.js +17 -0
  300. package/dist/node_modules/fast-glob/out/utils/path.d.ts +13 -0
  301. package/dist/node_modules/fast-glob/out/utils/path.js +68 -0
  302. package/dist/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
  303. package/dist/node_modules/fast-glob/out/utils/pattern.js +206 -0
  304. package/dist/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
  305. package/dist/node_modules/fast-glob/out/utils/stream.js +17 -0
  306. package/dist/node_modules/fast-glob/out/utils/string.d.ts +2 -0
  307. package/dist/node_modules/fast-glob/out/utils/string.js +11 -0
  308. package/dist/node_modules/fast-glob/package.json +81 -0
  309. package/dist/node_modules/fastq/LICENSE +13 -0
  310. package/dist/node_modules/fastq/README.md +310 -0
  311. package/dist/node_modules/fastq/SECURITY.md +15 -0
  312. package/dist/node_modules/fastq/bench.js +66 -0
  313. package/dist/node_modules/fastq/eslint.config.js +11 -0
  314. package/dist/node_modules/fastq/example.js +14 -0
  315. package/dist/node_modules/fastq/example.mjs +9 -0
  316. package/dist/node_modules/fastq/index.d.ts +59 -0
  317. package/dist/node_modules/fastq/package.json +49 -0
  318. package/dist/node_modules/fastq/queue.js +346 -0
  319. package/dist/node_modules/fastq/test/example.ts +83 -0
  320. package/dist/node_modules/fastq/test/promise.js +325 -0
  321. package/dist/node_modules/fastq/test/test.js +733 -0
  322. package/dist/node_modules/fastq/test/tsconfig.json +11 -0
  323. package/dist/node_modules/fill-range/LICENSE +21 -0
  324. package/dist/node_modules/fill-range/README.md +237 -0
  325. package/dist/node_modules/fill-range/index.js +248 -0
  326. package/dist/node_modules/fill-range/package.json +74 -0
  327. package/dist/node_modules/fs-extra/LICENSE +15 -0
  328. package/dist/node_modules/fs-extra/README.md +294 -0
  329. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +171 -0
  330. package/dist/node_modules/fs-extra/lib/copy/copy.js +182 -0
  331. package/dist/node_modules/fs-extra/lib/copy/index.js +7 -0
  332. package/dist/node_modules/fs-extra/lib/empty/index.js +39 -0
  333. package/dist/node_modules/fs-extra/lib/ensure/file.js +66 -0
  334. package/dist/node_modules/fs-extra/lib/ensure/index.js +23 -0
  335. package/dist/node_modules/fs-extra/lib/ensure/link.js +64 -0
  336. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
  337. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
  338. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
  339. package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
  340. package/dist/node_modules/fs-extra/lib/fs/index.js +146 -0
  341. package/dist/node_modules/fs-extra/lib/index.js +16 -0
  342. package/dist/node_modules/fs-extra/lib/json/index.js +16 -0
  343. package/dist/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  344. package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  345. package/dist/node_modules/fs-extra/lib/json/output-json.js +12 -0
  346. package/dist/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  347. package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  348. package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  349. package/dist/node_modules/fs-extra/lib/move/index.js +7 -0
  350. package/dist/node_modules/fs-extra/lib/move/move-sync.js +55 -0
  351. package/dist/node_modules/fs-extra/lib/move/move.js +59 -0
  352. package/dist/node_modules/fs-extra/lib/output-file/index.js +31 -0
  353. package/dist/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  354. package/dist/node_modules/fs-extra/lib/remove/index.js +17 -0
  355. package/dist/node_modules/fs-extra/lib/util/stat.js +159 -0
  356. package/dist/node_modules/fs-extra/lib/util/utimes.js +36 -0
  357. package/dist/node_modules/fs-extra/package.json +71 -0
  358. package/dist/node_modules/get-east-asian-width/index.d.ts +60 -0
  359. package/dist/node_modules/get-east-asian-width/index.js +35 -0
  360. package/dist/node_modules/get-east-asian-width/license +9 -0
  361. package/dist/node_modules/get-east-asian-width/lookup-data.js +21 -0
  362. package/dist/node_modules/get-east-asian-width/lookup.js +138 -0
  363. package/dist/node_modules/get-east-asian-width/package.json +71 -0
  364. package/dist/node_modules/get-east-asian-width/readme.md +65 -0
  365. package/dist/node_modules/get-east-asian-width/utilities.js +24 -0
  366. package/dist/node_modules/glob-parent/CHANGELOG.md +110 -0
  367. package/dist/node_modules/glob-parent/LICENSE +15 -0
  368. package/dist/node_modules/glob-parent/README.md +137 -0
  369. package/dist/node_modules/glob-parent/index.js +42 -0
  370. package/dist/node_modules/glob-parent/package.json +48 -0
  371. package/dist/node_modules/graceful-fs/LICENSE +15 -0
  372. package/dist/node_modules/graceful-fs/README.md +143 -0
  373. package/dist/node_modules/graceful-fs/clone.js +23 -0
  374. package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
  375. package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
  376. package/dist/node_modules/graceful-fs/package.json +53 -0
  377. package/dist/node_modules/graceful-fs/polyfills.js +355 -0
  378. package/dist/node_modules/inherits/LICENSE +16 -0
  379. package/dist/node_modules/inherits/README.md +42 -0
  380. package/dist/node_modules/inherits/inherits.js +9 -0
  381. package/dist/node_modules/inherits/inherits_browser.js +27 -0
  382. package/dist/node_modules/inherits/package.json +29 -0
  383. package/dist/node_modules/is-extglob/LICENSE +21 -0
  384. package/dist/node_modules/is-extglob/README.md +107 -0
  385. package/dist/node_modules/is-extglob/index.js +20 -0
  386. package/dist/node_modules/is-extglob/package.json +69 -0
  387. package/dist/node_modules/is-glob/LICENSE +21 -0
  388. package/dist/node_modules/is-glob/README.md +206 -0
  389. package/dist/node_modules/is-glob/index.js +150 -0
  390. package/dist/node_modules/is-glob/package.json +81 -0
  391. package/dist/node_modules/is-interactive/index.d.ts +25 -0
  392. package/dist/node_modules/is-interactive/index.js +7 -0
  393. package/dist/node_modules/is-interactive/license +9 -0
  394. package/dist/node_modules/is-interactive/package.json +41 -0
  395. package/dist/node_modules/is-interactive/readme.md +52 -0
  396. package/dist/node_modules/is-number/LICENSE +21 -0
  397. package/dist/node_modules/is-number/README.md +187 -0
  398. package/dist/node_modules/is-number/index.js +18 -0
  399. package/dist/node_modules/is-number/package.json +82 -0
  400. package/dist/node_modules/is-unicode-supported/index.d.ts +12 -0
  401. package/dist/node_modules/is-unicode-supported/index.js +21 -0
  402. package/dist/node_modules/is-unicode-supported/license +9 -0
  403. package/dist/node_modules/is-unicode-supported/package.json +47 -0
  404. package/dist/node_modules/is-unicode-supported/readme.md +35 -0
  405. package/dist/node_modules/isarray/.travis.yml +4 -0
  406. package/dist/node_modules/isarray/Makefile +6 -0
  407. package/dist/node_modules/isarray/README.md +60 -0
  408. package/dist/node_modules/isarray/component.json +19 -0
  409. package/dist/node_modules/isarray/index.js +5 -0
  410. package/dist/node_modules/isarray/package.json +45 -0
  411. package/dist/node_modules/isarray/test.js +20 -0
  412. package/dist/node_modules/jsonfile/LICENSE +15 -0
  413. package/dist/node_modules/jsonfile/README.md +230 -0
  414. package/dist/node_modules/jsonfile/index.js +88 -0
  415. package/dist/node_modules/jsonfile/package.json +40 -0
  416. package/dist/node_modules/jsonfile/utils.js +18 -0
  417. package/dist/node_modules/log-symbols/browser-symbols.js +4 -0
  418. package/dist/node_modules/log-symbols/browser.js +1 -0
  419. package/dist/node_modules/log-symbols/index.d.ts +22 -0
  420. package/dist/node_modules/log-symbols/index.js +1 -0
  421. package/dist/node_modules/log-symbols/license +9 -0
  422. package/dist/node_modules/log-symbols/package.json +60 -0
  423. package/dist/node_modules/log-symbols/readme.md +39 -0
  424. package/dist/node_modules/log-symbols/symbols.js +14 -0
  425. package/dist/node_modules/merge2/LICENSE +21 -0
  426. package/dist/node_modules/merge2/README.md +144 -0
  427. package/dist/node_modules/merge2/index.js +144 -0
  428. package/dist/node_modules/merge2/package.json +43 -0
  429. package/dist/node_modules/micromatch/LICENSE +21 -0
  430. package/dist/node_modules/micromatch/README.md +1024 -0
  431. package/dist/node_modules/micromatch/index.js +474 -0
  432. package/dist/node_modules/micromatch/package.json +119 -0
  433. package/dist/node_modules/mimic-function/index.d.ts +52 -0
  434. package/dist/node_modules/mimic-function/index.js +72 -0
  435. package/dist/node_modules/mimic-function/license +9 -0
  436. package/dist/node_modules/mimic-function/package.json +49 -0
  437. package/dist/node_modules/mimic-function/readme.md +80 -0
  438. package/dist/node_modules/node-int64/Int64.js +268 -0
  439. package/dist/node_modules/node-int64/LICENSE +19 -0
  440. package/dist/node_modules/node-int64/README.md +78 -0
  441. package/dist/node_modules/node-int64/package.json +27 -0
  442. package/dist/node_modules/node-int64/test.js +120 -0
  443. package/dist/node_modules/onetime/index.d.ts +59 -0
  444. package/dist/node_modules/onetime/index.js +41 -0
  445. package/dist/node_modules/onetime/license +9 -0
  446. package/dist/node_modules/onetime/package.json +49 -0
  447. package/dist/node_modules/onetime/readme.md +88 -0
  448. package/dist/node_modules/ora/index.d.ts +380 -0
  449. package/dist/node_modules/ora/index.js +668 -0
  450. package/dist/node_modules/ora/license +9 -0
  451. package/dist/node_modules/ora/package.json +62 -0
  452. package/dist/node_modules/ora/readme.md +427 -0
  453. package/dist/node_modules/pend/LICENSE +23 -0
  454. package/dist/node_modules/pend/README.md +41 -0
  455. package/dist/node_modules/pend/index.js +55 -0
  456. package/dist/node_modules/pend/package.json +18 -0
  457. package/dist/node_modules/pend/test.js +137 -0
  458. package/dist/node_modules/picomatch/LICENSE +21 -0
  459. package/dist/node_modules/picomatch/README.md +716 -0
  460. package/dist/node_modules/picomatch/index.js +3 -0
  461. package/dist/node_modules/picomatch/lib/constants.js +184 -0
  462. package/dist/node_modules/picomatch/lib/parse.js +1392 -0
  463. package/dist/node_modules/picomatch/lib/picomatch.js +342 -0
  464. package/dist/node_modules/picomatch/lib/scan.js +391 -0
  465. package/dist/node_modules/picomatch/lib/utils.js +64 -0
  466. package/dist/node_modules/picomatch/package.json +81 -0
  467. package/dist/node_modules/process-nextick-args/index.js +45 -0
  468. package/dist/node_modules/process-nextick-args/license.md +19 -0
  469. package/dist/node_modules/process-nextick-args/package.json +25 -0
  470. package/dist/node_modules/process-nextick-args/readme.md +18 -0
  471. package/dist/node_modules/proper-lockfile/CHANGELOG.md +108 -0
  472. package/dist/node_modules/proper-lockfile/LICENSE +21 -0
  473. package/dist/node_modules/proper-lockfile/README.md +183 -0
  474. package/dist/node_modules/proper-lockfile/index.js +40 -0
  475. package/dist/node_modules/proper-lockfile/lib/adapter.js +85 -0
  476. package/dist/node_modules/proper-lockfile/lib/lockfile.js +342 -0
  477. package/dist/node_modules/proper-lockfile/lib/mtime-precision.js +55 -0
  478. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/LICENSE.txt +16 -0
  479. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/README.md +39 -0
  480. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/index.js +202 -0
  481. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/package.json +38 -0
  482. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/signals.js +53 -0
  483. package/dist/node_modules/proper-lockfile/package.json +71 -0
  484. package/dist/node_modules/queue-microtask/LICENSE +20 -0
  485. package/dist/node_modules/queue-microtask/README.md +90 -0
  486. package/dist/node_modules/queue-microtask/index.d.ts +2 -0
  487. package/dist/node_modules/queue-microtask/index.js +9 -0
  488. package/dist/node_modules/queue-microtask/package.json +55 -0
  489. package/dist/node_modules/readdirp/LICENSE +21 -0
  490. package/dist/node_modules/readdirp/README.md +120 -0
  491. package/dist/node_modules/readdirp/index.d.ts +108 -0
  492. package/dist/node_modules/readdirp/index.js +272 -0
  493. package/dist/node_modules/readdirp/package.json +66 -0
  494. package/dist/node_modules/restore-cursor/index.d.ts +15 -0
  495. package/dist/node_modules/restore-cursor/index.js +15 -0
  496. package/dist/node_modules/restore-cursor/license +9 -0
  497. package/dist/node_modules/restore-cursor/package.json +57 -0
  498. package/dist/node_modules/restore-cursor/readme.md +21 -0
  499. package/dist/node_modules/retry/.travis.yml +15 -0
  500. package/dist/node_modules/retry/License +21 -0
  501. package/dist/node_modules/retry/Makefile +18 -0
  502. package/dist/node_modules/retry/README.md +227 -0
  503. package/dist/node_modules/retry/equation.gif +0 -0
  504. package/dist/node_modules/retry/example/dns.js +31 -0
  505. package/dist/node_modules/retry/example/stop.js +40 -0
  506. package/dist/node_modules/retry/index.js +1 -0
  507. package/dist/node_modules/retry/lib/retry.js +100 -0
  508. package/dist/node_modules/retry/lib/retry_operation.js +158 -0
  509. package/dist/node_modules/retry/package.json +32 -0
  510. package/dist/node_modules/retry/test/common.js +10 -0
  511. package/dist/node_modules/retry/test/integration/test-forever.js +24 -0
  512. package/dist/node_modules/retry/test/integration/test-retry-operation.js +258 -0
  513. package/dist/node_modules/retry/test/integration/test-retry-wrap.js +101 -0
  514. package/dist/node_modules/retry/test/integration/test-timeouts.js +69 -0
  515. package/dist/node_modules/reusify/.github/dependabot.yml +7 -0
  516. package/dist/node_modules/reusify/.github/workflows/ci.yml +96 -0
  517. package/dist/node_modules/reusify/LICENSE +22 -0
  518. package/dist/node_modules/reusify/README.md +139 -0
  519. package/dist/node_modules/reusify/SECURITY.md +15 -0
  520. package/dist/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
  521. package/dist/node_modules/reusify/benchmarks/fib.js +13 -0
  522. package/dist/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
  523. package/dist/node_modules/reusify/eslint.config.js +14 -0
  524. package/dist/node_modules/reusify/package.json +50 -0
  525. package/dist/node_modules/reusify/reusify.d.ts +14 -0
  526. package/dist/node_modules/reusify/reusify.js +33 -0
  527. package/dist/node_modules/reusify/test.js +66 -0
  528. package/dist/node_modules/reusify/tsconfig.json +11 -0
  529. package/dist/node_modules/run-parallel/LICENSE +20 -0
  530. package/dist/node_modules/run-parallel/README.md +85 -0
  531. package/dist/node_modules/run-parallel/index.js +51 -0
  532. package/dist/node_modules/run-parallel/package.json +58 -0
  533. package/dist/node_modules/signal-exit/LICENSE.txt +16 -0
  534. package/dist/node_modules/signal-exit/README.md +74 -0
  535. package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  536. package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  537. package/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  538. package/dist/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  539. package/dist/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  540. package/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  541. package/dist/node_modules/signal-exit/dist/cjs/index.js +279 -0
  542. package/dist/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  543. package/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
  544. package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  545. package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  546. package/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  547. package/dist/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  548. package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  549. package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  550. package/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  551. package/dist/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  552. package/dist/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  553. package/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  554. package/dist/node_modules/signal-exit/dist/mjs/index.js +275 -0
  555. package/dist/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  556. package/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
  557. package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  558. package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  559. package/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  560. package/dist/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  561. package/dist/node_modules/signal-exit/package.json +106 -0
  562. package/dist/node_modules/stdin-discarder/index.d.ts +13 -0
  563. package/dist/node_modules/stdin-discarder/index.js +84 -0
  564. package/dist/node_modules/stdin-discarder/license +9 -0
  565. package/dist/node_modules/stdin-discarder/package.json +42 -0
  566. package/dist/node_modules/stdin-discarder/readme.md +37 -0
  567. package/dist/node_modules/string-width/index.d.ts +39 -0
  568. package/dist/node_modules/string-width/index.js +203 -0
  569. package/dist/node_modules/string-width/license +9 -0
  570. package/dist/node_modules/string-width/package.json +65 -0
  571. package/dist/node_modules/string-width/readme.md +66 -0
  572. package/dist/node_modules/strip-ansi/index.d.ts +15 -0
  573. package/dist/node_modules/strip-ansi/index.js +19 -0
  574. package/dist/node_modules/strip-ansi/license +9 -0
  575. package/dist/node_modules/strip-ansi/package.json +59 -0
  576. package/dist/node_modules/strip-ansi/readme.md +37 -0
  577. package/dist/node_modules/to-regex-range/LICENSE +21 -0
  578. package/dist/node_modules/to-regex-range/README.md +305 -0
  579. package/dist/node_modules/to-regex-range/index.js +288 -0
  580. package/dist/node_modules/to-regex-range/package.json +88 -0
  581. package/dist/node_modules/universalify/LICENSE +20 -0
  582. package/dist/node_modules/universalify/README.md +76 -0
  583. package/dist/node_modules/universalify/index.js +24 -0
  584. package/dist/node_modules/universalify/package.json +34 -0
  585. package/dist/node_modules/unzipper/.gitattributes +1 -0
  586. package/dist/node_modules/unzipper/LICENSE +25 -0
  587. package/dist/node_modules/unzipper/README.md +397 -0
  588. package/dist/node_modules/unzipper/eslint.config.mjs +29 -0
  589. package/dist/node_modules/unzipper/lib/BufferStream.js +19 -0
  590. package/dist/node_modules/unzipper/lib/Decrypt.js +94 -0
  591. package/dist/node_modules/unzipper/lib/NoopStream.js +14 -0
  592. package/dist/node_modules/unzipper/lib/Open/directory.js +244 -0
  593. package/dist/node_modules/unzipper/lib/Open/index.js +141 -0
  594. package/dist/node_modules/unzipper/lib/Open/unzip.js +120 -0
  595. package/dist/node_modules/unzipper/lib/PullStream.js +139 -0
  596. package/dist/node_modules/unzipper/lib/extract.js +63 -0
  597. package/dist/node_modules/unzipper/lib/parse.js +288 -0
  598. package/dist/node_modules/unzipper/lib/parseBuffer.js +55 -0
  599. package/dist/node_modules/unzipper/lib/parseDateTime.js +13 -0
  600. package/dist/node_modules/unzipper/lib/parseExtraField.js +40 -0
  601. package/dist/node_modules/unzipper/lib/parseOne.js +54 -0
  602. package/dist/node_modules/unzipper/package.json +62 -0
  603. package/dist/node_modules/unzipper/unzip.js +5 -0
  604. package/dist/node_modules/util-deprecate/History.md +16 -0
  605. package/dist/node_modules/util-deprecate/LICENSE +24 -0
  606. package/dist/node_modules/util-deprecate/README.md +53 -0
  607. package/dist/node_modules/util-deprecate/browser.js +67 -0
  608. package/dist/node_modules/util-deprecate/node.js +6 -0
  609. package/dist/node_modules/util-deprecate/package.json +27 -0
  610. package/dist/node_modules/yauzl/LICENSE +21 -0
  611. package/dist/node_modules/yauzl/README.md +1015 -0
  612. package/dist/node_modules/yauzl/crc32.js +45 -0
  613. package/dist/node_modules/yauzl/fd-slicer.js +188 -0
  614. package/dist/node_modules/yauzl/index.js +1096 -0
  615. package/dist/node_modules/yauzl/package.json +40 -0
  616. package/dist/node_modules/yazl/LICENSE +21 -0
  617. package/dist/node_modules/yazl/README.md +457 -0
  618. package/dist/node_modules/yazl/index.js +826 -0
  619. package/dist/node_modules/yazl/package.json +34 -0
  620. package/dist/node_modules/yoctocolors/base.d.ts +69 -0
  621. package/dist/node_modules/yoctocolors/base.js +118 -0
  622. package/dist/node_modules/yoctocolors/index.d.ts +2 -0
  623. package/dist/node_modules/yoctocolors/index.js +2 -0
  624. package/dist/node_modules/yoctocolors/license +9 -0
  625. package/dist/node_modules/yoctocolors/package.json +69 -0
  626. package/dist/node_modules/yoctocolors/readme.md +163 -0
  627. package/dist/node_modules/zip-lib/LICENSE +21 -0
  628. package/dist/node_modules/zip-lib/README.md +473 -0
  629. package/dist/node_modules/zip-lib/lib/cancelable.d.ts +38 -0
  630. package/dist/node_modules/zip-lib/lib/cancelable.js +70 -0
  631. package/dist/node_modules/zip-lib/lib/fs.d.ts +32 -0
  632. package/dist/node_modules/zip-lib/lib/fs.js +286 -0
  633. package/dist/node_modules/zip-lib/lib/index.d.ts +44 -0
  634. package/dist/node_modules/zip-lib/lib/index.js +58 -0
  635. package/dist/node_modules/zip-lib/lib/unzip.d.ts +99 -0
  636. package/dist/node_modules/zip-lib/lib/unzip.js +450 -0
  637. package/dist/node_modules/zip-lib/lib/zip.d.ts +86 -0
  638. package/dist/node_modules/zip-lib/lib/zip.js +363 -0
  639. package/dist/node_modules/zip-lib/package.json +46 -0
  640. package/dist/node_modules/zod/LICENSE +21 -0
  641. package/dist/node_modules/zod/README.md +218 -0
  642. package/dist/node_modules/zod/compile.cjs +96 -0
  643. package/dist/node_modules/zod/compile.d.cts +1 -0
  644. package/dist/node_modules/zod/compile.d.ts +1 -0
  645. package/dist/node_modules/zod/compile.js +52 -0
  646. package/dist/node_modules/zod/index.cjs +52 -0
  647. package/dist/node_modules/zod/index.d.cts +3 -0
  648. package/dist/node_modules/zod/index.d.ts +3 -0
  649. package/dist/node_modules/zod/index.js +7 -0
  650. package/dist/node_modules/zod/locales/index.cjs +36 -0
  651. package/dist/node_modules/zod/locales/index.d.cts +1 -0
  652. package/dist/node_modules/zod/locales/index.d.ts +1 -0
  653. package/dist/node_modules/zod/locales/index.js +1 -0
  654. package/dist/node_modules/zod/locales/package.json +7 -0
  655. package/dist/node_modules/zod/mini/index.cjs +51 -0
  656. package/dist/node_modules/zod/mini/index.d.cts +3 -0
  657. package/dist/node_modules/zod/mini/index.d.ts +3 -0
  658. package/dist/node_modules/zod/mini/index.js +3 -0
  659. package/dist/node_modules/zod/mini/package.json +7 -0
  660. package/dist/node_modules/zod/package.json +147 -0
  661. package/dist/node_modules/zod/src/compile.ts +56 -0
  662. package/dist/node_modules/zod/src/index.ts +7 -0
  663. package/dist/node_modules/zod/src/locales/index.ts +1 -0
  664. package/dist/node_modules/zod/src/mini/index.ts +3 -0
  665. package/dist/node_modules/zod/src/v3/ZodError.ts +340 -0
  666. package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  667. package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  668. package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  669. package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  670. package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  671. package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  672. package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  673. package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  674. package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  675. package/dist/node_modules/zod/src/v3/errors.ts +13 -0
  676. package/dist/node_modules/zod/src/v3/external.ts +6 -0
  677. package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  678. package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  679. package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  680. package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  681. package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  682. package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
  683. package/dist/node_modules/zod/src/v3/index.ts +4 -0
  684. package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
  685. package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
  686. package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  687. package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  688. package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  689. package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  690. package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  691. package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  692. package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  693. package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  694. package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  695. package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  696. package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  697. package/dist/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  698. package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  699. package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  700. package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  701. package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  702. package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  703. package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  704. package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  705. package/dist/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  706. package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  707. package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  708. package/dist/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  709. package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  710. package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  711. package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  712. package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  713. package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  714. package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  715. package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  716. package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  717. package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  718. package/dist/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  719. package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  720. package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  721. package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  722. package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  723. package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  724. package/dist/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  725. package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  726. package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  727. package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  728. package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  729. package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  730. package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  731. package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  732. package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  733. package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  734. package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  735. package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  736. package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  737. package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  738. package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  739. package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  740. package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  741. package/dist/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  742. package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  743. package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  744. package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  745. package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  746. package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  747. package/dist/node_modules/zod/src/v3/types.ts +5138 -0
  748. package/dist/node_modules/zod/src/v4/classic/checks.ts +33 -0
  749. package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  750. package/dist/node_modules/zod/src/v4/classic/compat.ts +78 -0
  751. package/dist/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  752. package/dist/node_modules/zod/src/v4/classic/errors.ts +97 -0
  753. package/dist/node_modules/zod/src/v4/classic/external.ts +57 -0
  754. package/dist/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  755. package/dist/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  756. package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
  757. package/dist/node_modules/zod/src/v4/classic/iso.ts +20 -0
  758. package/dist/node_modules/zod/src/v4/classic/parse.ts +88 -0
  759. package/dist/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  760. package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  761. package/dist/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  762. package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
  763. package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  764. package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  765. package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  766. package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  767. package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  768. package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  769. package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  770. package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  771. package/dist/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  772. package/dist/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  773. package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  774. package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  775. package/dist/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  776. package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  777. package/dist/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  778. package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  779. package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  780. package/dist/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  781. package/dist/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  782. package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  783. package/dist/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  784. package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  785. package/dist/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  786. package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  787. package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  788. package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  789. package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  790. package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  791. package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  792. package/dist/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  793. package/dist/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  794. package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  795. package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  796. package/dist/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  797. package/dist/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  798. package/dist/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  799. package/dist/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  800. package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  801. package/dist/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  802. package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  803. package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  804. package/dist/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  805. package/dist/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  806. package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  807. package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  808. package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  809. package/dist/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  810. package/dist/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  811. package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
  812. package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  813. package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  814. package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  815. package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  816. package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  817. package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  818. package/dist/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  819. package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  820. package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  821. package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  822. package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  823. package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  824. package/dist/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  825. package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  826. package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  827. package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  828. package/dist/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  829. package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  830. package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  831. package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  832. package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  833. package/dist/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  834. package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  835. package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  836. package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
  837. package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  838. package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  839. package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  840. package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  841. package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  842. package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  843. package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  844. package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  845. package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  846. package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  847. package/dist/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  848. package/dist/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  849. package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  850. package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  851. package/dist/node_modules/zod/src/v4/core/api.ts +1875 -0
  852. package/dist/node_modules/zod/src/v4/core/checks.ts +1266 -0
  853. package/dist/node_modules/zod/src/v4/core/compile.ts +2322 -0
  854. package/dist/node_modules/zod/src/v4/core/core.ts +230 -0
  855. package/dist/node_modules/zod/src/v4/core/doc.ts +52 -0
  856. package/dist/node_modules/zod/src/v4/core/errors.ts +543 -0
  857. package/dist/node_modules/zod/src/v4/core/index.ts +19 -0
  858. package/dist/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  859. package/dist/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  860. package/dist/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  861. package/dist/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  862. package/dist/node_modules/zod/src/v4/core/parse.ts +309 -0
  863. package/dist/node_modules/zod/src/v4/core/regexes.ts +217 -0
  864. package/dist/node_modules/zod/src/v4/core/registries.ts +105 -0
  865. package/dist/node_modules/zod/src/v4/core/schemas.ts +5226 -0
  866. package/dist/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  867. package/dist/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  868. package/dist/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  869. package/dist/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  870. package/dist/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  871. package/dist/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  872. package/dist/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  873. package/dist/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  874. package/dist/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  875. package/dist/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  876. package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  877. package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  878. package/dist/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  879. package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  880. package/dist/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  881. package/dist/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  882. package/dist/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  883. package/dist/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  884. package/dist/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  885. package/dist/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  886. package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  887. package/dist/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  888. package/dist/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  889. package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  890. package/dist/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  891. package/dist/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  892. package/dist/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  893. package/dist/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  894. package/dist/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  895. package/dist/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  896. package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  897. package/dist/node_modules/zod/src/v4/core/util.ts +1293 -0
  898. package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
  899. package/dist/node_modules/zod/src/v4/core/visit.ts +193 -0
  900. package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
  901. package/dist/node_modules/zod/src/v4/index.ts +4 -0
  902. package/dist/node_modules/zod/src/v4/locales/ar.ts +120 -0
  903. package/dist/node_modules/zod/src/v4/locales/az.ts +116 -0
  904. package/dist/node_modules/zod/src/v4/locales/be.ts +188 -0
  905. package/dist/node_modules/zod/src/v4/locales/bg.ts +133 -0
  906. package/dist/node_modules/zod/src/v4/locales/bn.ts +123 -0
  907. package/dist/node_modules/zod/src/v4/locales/ca.ts +121 -0
  908. package/dist/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  909. package/dist/node_modules/zod/src/v4/locales/cs.ts +123 -0
  910. package/dist/node_modules/zod/src/v4/locales/da.ts +128 -0
  911. package/dist/node_modules/zod/src/v4/locales/de.ts +121 -0
  912. package/dist/node_modules/zod/src/v4/locales/el.ts +124 -0
  913. package/dist/node_modules/zod/src/v4/locales/en.ts +136 -0
  914. package/dist/node_modules/zod/src/v4/locales/eo.ts +123 -0
  915. package/dist/node_modules/zod/src/v4/locales/es.ts +145 -0
  916. package/dist/node_modules/zod/src/v4/locales/fa.ts +131 -0
  917. package/dist/node_modules/zod/src/v4/locales/fi.ts +126 -0
  918. package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  919. package/dist/node_modules/zod/src/v4/locales/fr.ts +139 -0
  920. package/dist/node_modules/zod/src/v4/locales/gu.ts +123 -0
  921. package/dist/node_modules/zod/src/v4/locales/he.ts +253 -0
  922. package/dist/node_modules/zod/src/v4/locales/hi.ts +126 -0
  923. package/dist/node_modules/zod/src/v4/locales/hr.ts +135 -0
  924. package/dist/node_modules/zod/src/v4/locales/hu.ts +122 -0
  925. package/dist/node_modules/zod/src/v4/locales/hy.ts +175 -0
  926. package/dist/node_modules/zod/src/v4/locales/id.ts +120 -0
  927. package/dist/node_modules/zod/src/v4/locales/index.ts +63 -0
  928. package/dist/node_modules/zod/src/v4/locales/is.ts +124 -0
  929. package/dist/node_modules/zod/src/v4/locales/it.ts +121 -0
  930. package/dist/node_modules/zod/src/v4/locales/ja.ts +119 -0
  931. package/dist/node_modules/zod/src/v4/locales/ka.ts +128 -0
  932. package/dist/node_modules/zod/src/v4/locales/kh.ts +7 -0
  933. package/dist/node_modules/zod/src/v4/locales/km.ts +124 -0
  934. package/dist/node_modules/zod/src/v4/locales/kn.ts +126 -0
  935. package/dist/node_modules/zod/src/v4/locales/ko.ts +126 -0
  936. package/dist/node_modules/zod/src/v4/locales/lt.ts +243 -0
  937. package/dist/node_modules/zod/src/v4/locales/mk.ts +123 -0
  938. package/dist/node_modules/zod/src/v4/locales/ms.ts +120 -0
  939. package/dist/node_modules/zod/src/v4/locales/ne.ts +128 -0
  940. package/dist/node_modules/zod/src/v4/locales/nl.ts +126 -0
  941. package/dist/node_modules/zod/src/v4/locales/nn.ts +121 -0
  942. package/dist/node_modules/zod/src/v4/locales/no.ts +121 -0
  943. package/dist/node_modules/zod/src/v4/locales/ota.ts +122 -0
  944. package/dist/node_modules/zod/src/v4/locales/pl.ts +123 -0
  945. package/dist/node_modules/zod/src/v4/locales/ps.ts +131 -0
  946. package/dist/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  947. package/dist/node_modules/zod/src/v4/locales/pt.ts +159 -0
  948. package/dist/node_modules/zod/src/v4/locales/ro.ts +132 -0
  949. package/dist/node_modules/zod/src/v4/locales/ru.ts +188 -0
  950. package/dist/node_modules/zod/src/v4/locales/sk.ts +123 -0
  951. package/dist/node_modules/zod/src/v4/locales/sl.ts +123 -0
  952. package/dist/node_modules/zod/src/v4/locales/sv.ts +124 -0
  953. package/dist/node_modules/zod/src/v4/locales/ta.ts +123 -0
  954. package/dist/node_modules/zod/src/v4/locales/tg.ts +135 -0
  955. package/dist/node_modules/zod/src/v4/locales/th.ts +124 -0
  956. package/dist/node_modules/zod/src/v4/locales/tk.ts +113 -0
  957. package/dist/node_modules/zod/src/v4/locales/tr.ts +116 -0
  958. package/dist/node_modules/zod/src/v4/locales/ua.ts +7 -0
  959. package/dist/node_modules/zod/src/v4/locales/uk.ts +122 -0
  960. package/dist/node_modules/zod/src/v4/locales/ur.ts +124 -0
  961. package/dist/node_modules/zod/src/v4/locales/uz.ts +120 -0
  962. package/dist/node_modules/zod/src/v4/locales/vi.ts +122 -0
  963. package/dist/node_modules/zod/src/v4/locales/yo.ts +129 -0
  964. package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  965. package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  966. package/dist/node_modules/zod/src/v4/mini/checks.ts +33 -0
  967. package/dist/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  968. package/dist/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  969. package/dist/node_modules/zod/src/v4/mini/external.ts +52 -0
  970. package/dist/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  971. package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
  972. package/dist/node_modules/zod/src/v4/mini/iso.ts +66 -0
  973. package/dist/node_modules/zod/src/v4/mini/parse.ts +16 -0
  974. package/dist/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  975. package/dist/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  976. package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  977. package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  978. package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  979. package/dist/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  980. package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  981. package/dist/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  982. package/dist/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  983. package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  984. package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  985. package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  986. package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  987. package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  988. package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  989. package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  990. package/dist/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  991. package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  992. package/dist/node_modules/zod/src/v4-mini/index.ts +3 -0
  993. package/dist/node_modules/zod/v3/ZodError.cjs +167 -0
  994. package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
  995. package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
  996. package/dist/node_modules/zod/v3/ZodError.js +143 -0
  997. package/dist/node_modules/zod/v3/errors.cjs +36 -0
  998. package/dist/node_modules/zod/v3/errors.d.cts +5 -0
  999. package/dist/node_modules/zod/v3/errors.d.ts +5 -0
  1000. package/dist/node_modules/zod/v3/errors.js +9 -0
  1001. package/dist/node_modules/zod/v3/external.cjs +41 -0
  1002. package/dist/node_modules/zod/v3/external.d.cts +6 -0
  1003. package/dist/node_modules/zod/v3/external.d.ts +6 -0
  1004. package/dist/node_modules/zod/v3/external.js +6 -0
  1005. package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  1006. package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  1007. package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  1008. package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  1009. package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  1010. package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  1011. package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  1012. package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  1013. package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  1014. package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1015. package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1016. package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1017. package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  1018. package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1019. package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1020. package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1021. package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  1022. package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1023. package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1024. package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1025. package/dist/node_modules/zod/v3/helpers/util.cjs +156 -0
  1026. package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
  1027. package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
  1028. package/dist/node_modules/zod/v3/helpers/util.js +133 -0
  1029. package/dist/node_modules/zod/v3/index.cjs +52 -0
  1030. package/dist/node_modules/zod/v3/index.d.cts +4 -0
  1031. package/dist/node_modules/zod/v3/index.d.ts +4 -0
  1032. package/dist/node_modules/zod/v3/index.js +4 -0
  1033. package/dist/node_modules/zod/v3/locales/en.cjs +112 -0
  1034. package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
  1035. package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
  1036. package/dist/node_modules/zod/v3/locales/en.js +109 -0
  1037. package/dist/node_modules/zod/v3/package.json +7 -0
  1038. package/dist/node_modules/zod/v3/standard-schema.cjs +21 -0
  1039. package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1040. package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1041. package/dist/node_modules/zod/v3/standard-schema.js +1 -0
  1042. package/dist/node_modules/zod/v3/types.cjs +3798 -0
  1043. package/dist/node_modules/zod/v3/types.d.cts +1034 -0
  1044. package/dist/node_modules/zod/v3/types.d.ts +1034 -0
  1045. package/dist/node_modules/zod/v3/types.js +3697 -0
  1046. package/dist/node_modules/zod/v4/classic/checks.cjs +53 -0
  1047. package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1048. package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1049. package/dist/node_modules/zod/v4/classic/checks.js +1 -0
  1050. package/dist/node_modules/zod/v4/classic/coerce.cjs +66 -0
  1051. package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1052. package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1053. package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
  1054. package/dist/node_modules/zod/v4/classic/compat.cjs +80 -0
  1055. package/dist/node_modules/zod/v4/classic/compat.d.cts +48 -0
  1056. package/dist/node_modules/zod/v4/classic/compat.d.ts +48 -0
  1057. package/dist/node_modules/zod/v4/classic/compat.js +31 -0
  1058. package/dist/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  1059. package/dist/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  1060. package/dist/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  1061. package/dist/node_modules/zod/v4/classic/deep-partial.js +13 -0
  1062. package/dist/node_modules/zod/v4/classic/errors.cjs +102 -0
  1063. package/dist/node_modules/zod/v4/classic/errors.d.cts +29 -0
  1064. package/dist/node_modules/zod/v4/classic/errors.d.ts +29 -0
  1065. package/dist/node_modules/zod/v4/classic/errors.js +57 -0
  1066. package/dist/node_modules/zod/v4/classic/external.cjs +97 -0
  1067. package/dist/node_modules/zod/v4/classic/external.d.cts +19 -0
  1068. package/dist/node_modules/zod/v4/classic/external.d.ts +19 -0
  1069. package/dist/node_modules/zod/v4/classic/external.js +17 -0
  1070. package/dist/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  1071. package/dist/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  1072. package/dist/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  1073. package/dist/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  1074. package/dist/node_modules/zod/v4/classic/in-out.cjs +82 -0
  1075. package/dist/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  1076. package/dist/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  1077. package/dist/node_modules/zod/v4/classic/in-out.js +36 -0
  1078. package/dist/node_modules/zod/v4/classic/index.cjs +52 -0
  1079. package/dist/node_modules/zod/v4/classic/index.d.cts +3 -0
  1080. package/dist/node_modules/zod/v4/classic/index.d.ts +3 -0
  1081. package/dist/node_modules/zod/v4/classic/index.js +4 -0
  1082. package/dist/node_modules/zod/v4/classic/iso.cjs +68 -0
  1083. package/dist/node_modules/zod/v4/classic/iso.d.cts +7 -0
  1084. package/dist/node_modules/zod/v4/classic/iso.d.ts +7 -0
  1085. package/dist/node_modules/zod/v4/classic/iso.js +15 -0
  1086. package/dist/node_modules/zod/v4/classic/package.json +7 -0
  1087. package/dist/node_modules/zod/v4/classic/parse.cjs +63 -0
  1088. package/dist/node_modules/zod/v4/classic/parse.d.cts +44 -0
  1089. package/dist/node_modules/zod/v4/classic/parse.d.ts +44 -0
  1090. package/dist/node_modules/zod/v4/classic/parse.js +16 -0
  1091. package/dist/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  1092. package/dist/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  1093. package/dist/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  1094. package/dist/node_modules/zod/v4/classic/schemas.js +1535 -0
  1095. package/dist/node_modules/zod/v4/core/api.cjs +1269 -0
  1096. package/dist/node_modules/zod/v4/core/api.d.cts +335 -0
  1097. package/dist/node_modules/zod/v4/core/api.d.ts +335 -0
  1098. package/dist/node_modules/zod/v4/core/api.js +1107 -0
  1099. package/dist/node_modules/zod/v4/core/checks.cjs +561 -0
  1100. package/dist/node_modules/zod/v4/core/checks.d.cts +294 -0
  1101. package/dist/node_modules/zod/v4/core/checks.d.ts +294 -0
  1102. package/dist/node_modules/zod/v4/core/checks.js +516 -0
  1103. package/dist/node_modules/zod/v4/core/compile.cjs +1916 -0
  1104. package/dist/node_modules/zod/v4/core/compile.d.cts +65 -0
  1105. package/dist/node_modules/zod/v4/core/compile.d.ts +65 -0
  1106. package/dist/node_modules/zod/v4/core/compile.js +1866 -0
  1107. package/dist/node_modules/zod/v4/core/core.cjs +167 -0
  1108. package/dist/node_modules/zod/v4/core/core.d.cts +82 -0
  1109. package/dist/node_modules/zod/v4/core/core.d.ts +82 -0
  1110. package/dist/node_modules/zod/v4/core/core.js +141 -0
  1111. package/dist/node_modules/zod/v4/core/doc.cjs +61 -0
  1112. package/dist/node_modules/zod/v4/core/doc.d.cts +16 -0
  1113. package/dist/node_modules/zod/v4/core/doc.d.ts +16 -0
  1114. package/dist/node_modules/zod/v4/core/doc.js +38 -0
  1115. package/dist/node_modules/zod/v4/core/errors.cjs +317 -0
  1116. package/dist/node_modules/zod/v4/core/errors.d.cts +225 -0
  1117. package/dist/node_modules/zod/v4/core/errors.d.ts +225 -0
  1118. package/dist/node_modules/zod/v4/core/errors.js +267 -0
  1119. package/dist/node_modules/zod/v4/core/index.cjs +70 -0
  1120. package/dist/node_modules/zod/v4/core/index.d.cts +19 -0
  1121. package/dist/node_modules/zod/v4/core/index.d.ts +19 -0
  1122. package/dist/node_modules/zod/v4/core/index.js +19 -0
  1123. package/dist/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  1124. package/dist/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  1125. package/dist/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  1126. package/dist/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  1127. package/dist/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  1128. package/dist/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  1129. package/dist/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  1130. package/dist/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  1131. package/dist/node_modules/zod/v4/core/json-schema.cjs +21 -0
  1132. package/dist/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  1133. package/dist/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  1134. package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
  1135. package/dist/node_modules/zod/v4/core/memoizer.cjs +360 -0
  1136. package/dist/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  1137. package/dist/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  1138. package/dist/node_modules/zod/v4/core/memoizer.js +311 -0
  1139. package/dist/node_modules/zod/v4/core/package.json +7 -0
  1140. package/dist/node_modules/zod/v4/core/parse.cjs +233 -0
  1141. package/dist/node_modules/zod/v4/core/parse.d.cts +52 -0
  1142. package/dist/node_modules/zod/v4/core/parse.d.ts +52 -0
  1143. package/dist/node_modules/zod/v4/core/parse.js +175 -0
  1144. package/dist/node_modules/zod/v4/core/regexes.cjs +209 -0
  1145. package/dist/node_modules/zod/v4/core/regexes.d.cts +90 -0
  1146. package/dist/node_modules/zod/v4/core/regexes.d.ts +90 -0
  1147. package/dist/node_modules/zod/v4/core/regexes.js +156 -0
  1148. package/dist/node_modules/zod/v4/core/registries.cjs +75 -0
  1149. package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
  1150. package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
  1151. package/dist/node_modules/zod/v4/core/registries.js +51 -0
  1152. package/dist/node_modules/zod/v4/core/schemas.cjs +2699 -0
  1153. package/dist/node_modules/zod/v4/core/schemas.d.cts +1275 -0
  1154. package/dist/node_modules/zod/v4/core/schemas.d.ts +1275 -0
  1155. package/dist/node_modules/zod/v4/core/schemas.js +2636 -0
  1156. package/dist/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  1157. package/dist/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  1158. package/dist/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  1159. package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
  1160. package/dist/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  1161. package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  1162. package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  1163. package/dist/node_modules/zod/v4/core/to-json-schema.js +651 -0
  1164. package/dist/node_modules/zod/v4/core/util.cjs +964 -0
  1165. package/dist/node_modules/zod/v4/core/util.d.cts +280 -0
  1166. package/dist/node_modules/zod/v4/core/util.d.ts +280 -0
  1167. package/dist/node_modules/zod/v4/core/util.js +873 -0
  1168. package/dist/node_modules/zod/v4/core/versions.cjs +27 -0
  1169. package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
  1170. package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
  1171. package/dist/node_modules/zod/v4/core/versions.js +5 -0
  1172. package/dist/node_modules/zod/v4/core/visit.cjs +214 -0
  1173. package/dist/node_modules/zod/v4/core/visit.d.cts +30 -0
  1174. package/dist/node_modules/zod/v4/core/visit.d.ts +30 -0
  1175. package/dist/node_modules/zod/v4/core/visit.js +169 -0
  1176. package/dist/node_modules/zod/v4/index.cjs +51 -0
  1177. package/dist/node_modules/zod/v4/index.d.cts +3 -0
  1178. package/dist/node_modules/zod/v4/index.d.ts +3 -0
  1179. package/dist/node_modules/zod/v4/index.js +4 -0
  1180. package/dist/node_modules/zod/v4/locales/ar.cjs +138 -0
  1181. package/dist/node_modules/zod/v4/locales/ar.d.cts +5 -0
  1182. package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1183. package/dist/node_modules/zod/v4/locales/ar.js +111 -0
  1184. package/dist/node_modules/zod/v4/locales/az.cjs +137 -0
  1185. package/dist/node_modules/zod/v4/locales/az.d.cts +5 -0
  1186. package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
  1187. package/dist/node_modules/zod/v4/locales/az.js +110 -0
  1188. package/dist/node_modules/zod/v4/locales/be.cjs +195 -0
  1189. package/dist/node_modules/zod/v4/locales/be.d.cts +5 -0
  1190. package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
  1191. package/dist/node_modules/zod/v4/locales/be.js +168 -0
  1192. package/dist/node_modules/zod/v4/locales/bg.cjs +152 -0
  1193. package/dist/node_modules/zod/v4/locales/bg.d.cts +5 -0
  1194. package/dist/node_modules/zod/v4/locales/bg.d.ts +4 -0
  1195. package/dist/node_modules/zod/v4/locales/bg.js +125 -0
  1196. package/dist/node_modules/zod/v4/locales/bn.cjs +140 -0
  1197. package/dist/node_modules/zod/v4/locales/bn.d.cts +5 -0
  1198. package/dist/node_modules/zod/v4/locales/bn.d.ts +4 -0
  1199. package/dist/node_modules/zod/v4/locales/bn.js +113 -0
  1200. package/dist/node_modules/zod/v4/locales/ca.cjs +139 -0
  1201. package/dist/node_modules/zod/v4/locales/ca.d.cts +5 -0
  1202. package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1203. package/dist/node_modules/zod/v4/locales/ca.js +112 -0
  1204. package/dist/node_modules/zod/v4/locales/ckb.cjs +160 -0
  1205. package/dist/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  1206. package/dist/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  1207. package/dist/node_modules/zod/v4/locales/ckb.js +133 -0
  1208. package/dist/node_modules/zod/v4/locales/cs.cjs +143 -0
  1209. package/dist/node_modules/zod/v4/locales/cs.d.cts +5 -0
  1210. package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1211. package/dist/node_modules/zod/v4/locales/cs.js +116 -0
  1212. package/dist/node_modules/zod/v4/locales/da.cjs +147 -0
  1213. package/dist/node_modules/zod/v4/locales/da.d.cts +5 -0
  1214. package/dist/node_modules/zod/v4/locales/da.d.ts +4 -0
  1215. package/dist/node_modules/zod/v4/locales/da.js +120 -0
  1216. package/dist/node_modules/zod/v4/locales/de.cjs +140 -0
  1217. package/dist/node_modules/zod/v4/locales/de.d.cts +5 -0
  1218. package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
  1219. package/dist/node_modules/zod/v4/locales/de.js +113 -0
  1220. package/dist/node_modules/zod/v4/locales/el.cjs +139 -0
  1221. package/dist/node_modules/zod/v4/locales/el.d.cts +5 -0
  1222. package/dist/node_modules/zod/v4/locales/el.d.ts +4 -0
  1223. package/dist/node_modules/zod/v4/locales/el.js +112 -0
  1224. package/dist/node_modules/zod/v4/locales/en.cjs +152 -0
  1225. package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
  1226. package/dist/node_modules/zod/v4/locales/en.d.ts +4 -0
  1227. package/dist/node_modules/zod/v4/locales/en.js +125 -0
  1228. package/dist/node_modules/zod/v4/locales/eo.cjs +141 -0
  1229. package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1230. package/dist/node_modules/zod/v4/locales/eo.d.ts +4 -0
  1231. package/dist/node_modules/zod/v4/locales/eo.js +114 -0
  1232. package/dist/node_modules/zod/v4/locales/es.cjs +163 -0
  1233. package/dist/node_modules/zod/v4/locales/es.d.cts +5 -0
  1234. package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
  1235. package/dist/node_modules/zod/v4/locales/es.js +136 -0
  1236. package/dist/node_modules/zod/v4/locales/fa.cjs +146 -0
  1237. package/dist/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1238. package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1239. package/dist/node_modules/zod/v4/locales/fa.js +119 -0
  1240. package/dist/node_modules/zod/v4/locales/fi.cjs +144 -0
  1241. package/dist/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1242. package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1243. package/dist/node_modules/zod/v4/locales/fi.js +117 -0
  1244. package/dist/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  1245. package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1246. package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1247. package/dist/node_modules/zod/v4/locales/fr-CA.js +112 -0
  1248. package/dist/node_modules/zod/v4/locales/fr.cjs +156 -0
  1249. package/dist/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1250. package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1251. package/dist/node_modules/zod/v4/locales/fr.js +129 -0
  1252. package/dist/node_modules/zod/v4/locales/gu.cjs +140 -0
  1253. package/dist/node_modules/zod/v4/locales/gu.d.cts +5 -0
  1254. package/dist/node_modules/zod/v4/locales/gu.d.ts +4 -0
  1255. package/dist/node_modules/zod/v4/locales/gu.js +113 -0
  1256. package/dist/node_modules/zod/v4/locales/he.cjs +248 -0
  1257. package/dist/node_modules/zod/v4/locales/he.d.cts +5 -0
  1258. package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
  1259. package/dist/node_modules/zod/v4/locales/he.js +221 -0
  1260. package/dist/node_modules/zod/v4/locales/hi.cjs +138 -0
  1261. package/dist/node_modules/zod/v4/locales/hi.d.cts +5 -0
  1262. package/dist/node_modules/zod/v4/locales/hi.d.ts +4 -0
  1263. package/dist/node_modules/zod/v4/locales/hi.js +111 -0
  1264. package/dist/node_modules/zod/v4/locales/hr.cjs +153 -0
  1265. package/dist/node_modules/zod/v4/locales/hr.d.cts +5 -0
  1266. package/dist/node_modules/zod/v4/locales/hr.d.ts +4 -0
  1267. package/dist/node_modules/zod/v4/locales/hr.js +126 -0
  1268. package/dist/node_modules/zod/v4/locales/hu.cjs +140 -0
  1269. package/dist/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1270. package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1271. package/dist/node_modules/zod/v4/locales/hu.js +113 -0
  1272. package/dist/node_modules/zod/v4/locales/hy.cjs +185 -0
  1273. package/dist/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1274. package/dist/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1275. package/dist/node_modules/zod/v4/locales/hy.js +158 -0
  1276. package/dist/node_modules/zod/v4/locales/id.cjs +138 -0
  1277. package/dist/node_modules/zod/v4/locales/id.d.cts +5 -0
  1278. package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
  1279. package/dist/node_modules/zod/v4/locales/id.js +111 -0
  1280. package/dist/node_modules/zod/v4/locales/index.cjs +152 -0
  1281. package/dist/node_modules/zod/v4/locales/index.d.cts +63 -0
  1282. package/dist/node_modules/zod/v4/locales/index.d.ts +63 -0
  1283. package/dist/node_modules/zod/v4/locales/index.js +63 -0
  1284. package/dist/node_modules/zod/v4/locales/is.cjs +141 -0
  1285. package/dist/node_modules/zod/v4/locales/is.d.cts +5 -0
  1286. package/dist/node_modules/zod/v4/locales/is.d.ts +4 -0
  1287. package/dist/node_modules/zod/v4/locales/is.js +114 -0
  1288. package/dist/node_modules/zod/v4/locales/it.cjs +140 -0
  1289. package/dist/node_modules/zod/v4/locales/it.d.cts +5 -0
  1290. package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
  1291. package/dist/node_modules/zod/v4/locales/it.js +113 -0
  1292. package/dist/node_modules/zod/v4/locales/ja.cjs +139 -0
  1293. package/dist/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1294. package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1295. package/dist/node_modules/zod/v4/locales/ja.js +112 -0
  1296. package/dist/node_modules/zod/v4/locales/ka.cjs +144 -0
  1297. package/dist/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1298. package/dist/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1299. package/dist/node_modules/zod/v4/locales/ka.js +117 -0
  1300. package/dist/node_modules/zod/v4/locales/kh.cjs +12 -0
  1301. package/dist/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1302. package/dist/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1303. package/dist/node_modules/zod/v4/locales/kh.js +5 -0
  1304. package/dist/node_modules/zod/v4/locales/km.cjs +142 -0
  1305. package/dist/node_modules/zod/v4/locales/km.d.cts +5 -0
  1306. package/dist/node_modules/zod/v4/locales/km.d.ts +4 -0
  1307. package/dist/node_modules/zod/v4/locales/km.js +115 -0
  1308. package/dist/node_modules/zod/v4/locales/kn.cjs +143 -0
  1309. package/dist/node_modules/zod/v4/locales/kn.d.cts +5 -0
  1310. package/dist/node_modules/zod/v4/locales/kn.d.ts +4 -0
  1311. package/dist/node_modules/zod/v4/locales/kn.js +116 -0
  1312. package/dist/node_modules/zod/v4/locales/ko.cjs +143 -0
  1313. package/dist/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1314. package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1315. package/dist/node_modules/zod/v4/locales/ko.js +116 -0
  1316. package/dist/node_modules/zod/v4/locales/lt.cjs +234 -0
  1317. package/dist/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1318. package/dist/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1319. package/dist/node_modules/zod/v4/locales/lt.js +207 -0
  1320. package/dist/node_modules/zod/v4/locales/mk.cjs +141 -0
  1321. package/dist/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1322. package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1323. package/dist/node_modules/zod/v4/locales/mk.js +114 -0
  1324. package/dist/node_modules/zod/v4/locales/ms.cjs +139 -0
  1325. package/dist/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1326. package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1327. package/dist/node_modules/zod/v4/locales/ms.js +112 -0
  1328. package/dist/node_modules/zod/v4/locales/ne.cjs +138 -0
  1329. package/dist/node_modules/zod/v4/locales/ne.d.cts +5 -0
  1330. package/dist/node_modules/zod/v4/locales/ne.d.ts +4 -0
  1331. package/dist/node_modules/zod/v4/locales/ne.js +111 -0
  1332. package/dist/node_modules/zod/v4/locales/nl.cjs +142 -0
  1333. package/dist/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1334. package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1335. package/dist/node_modules/zod/v4/locales/nl.js +115 -0
  1336. package/dist/node_modules/zod/v4/locales/nn.cjs +140 -0
  1337. package/dist/node_modules/zod/v4/locales/nn.d.cts +5 -0
  1338. package/dist/node_modules/zod/v4/locales/nn.d.ts +4 -0
  1339. package/dist/node_modules/zod/v4/locales/nn.js +113 -0
  1340. package/dist/node_modules/zod/v4/locales/no.cjs +140 -0
  1341. package/dist/node_modules/zod/v4/locales/no.d.cts +5 -0
  1342. package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
  1343. package/dist/node_modules/zod/v4/locales/no.js +113 -0
  1344. package/dist/node_modules/zod/v4/locales/ota.cjs +141 -0
  1345. package/dist/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1346. package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1347. package/dist/node_modules/zod/v4/locales/ota.js +114 -0
  1348. package/dist/node_modules/zod/v4/locales/package.json +7 -0
  1349. package/dist/node_modules/zod/v4/locales/pl.cjs +141 -0
  1350. package/dist/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1351. package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1352. package/dist/node_modules/zod/v4/locales/pl.js +114 -0
  1353. package/dist/node_modules/zod/v4/locales/ps.cjs +146 -0
  1354. package/dist/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1355. package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1356. package/dist/node_modules/zod/v4/locales/ps.js +119 -0
  1357. package/dist/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1358. package/dist/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  1359. package/dist/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  1360. package/dist/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1361. package/dist/node_modules/zod/v4/locales/pt.cjs +169 -0
  1362. package/dist/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1363. package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1364. package/dist/node_modules/zod/v4/locales/pt.js +142 -0
  1365. package/dist/node_modules/zod/v4/locales/ro.cjs +149 -0
  1366. package/dist/node_modules/zod/v4/locales/ro.d.cts +5 -0
  1367. package/dist/node_modules/zod/v4/locales/ro.d.ts +4 -0
  1368. package/dist/node_modules/zod/v4/locales/ro.js +122 -0
  1369. package/dist/node_modules/zod/v4/locales/ru.cjs +195 -0
  1370. package/dist/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1371. package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1372. package/dist/node_modules/zod/v4/locales/ru.js +168 -0
  1373. package/dist/node_modules/zod/v4/locales/sk.cjs +143 -0
  1374. package/dist/node_modules/zod/v4/locales/sk.d.cts +5 -0
  1375. package/dist/node_modules/zod/v4/locales/sk.d.ts +4 -0
  1376. package/dist/node_modules/zod/v4/locales/sk.js +116 -0
  1377. package/dist/node_modules/zod/v4/locales/sl.cjs +141 -0
  1378. package/dist/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1379. package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1380. package/dist/node_modules/zod/v4/locales/sl.js +114 -0
  1381. package/dist/node_modules/zod/v4/locales/sv.cjs +142 -0
  1382. package/dist/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1383. package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1384. package/dist/node_modules/zod/v4/locales/sv.js +115 -0
  1385. package/dist/node_modules/zod/v4/locales/ta.cjs +142 -0
  1386. package/dist/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1387. package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1388. package/dist/node_modules/zod/v4/locales/ta.js +115 -0
  1389. package/dist/node_modules/zod/v4/locales/tg.cjs +144 -0
  1390. package/dist/node_modules/zod/v4/locales/tg.d.cts +5 -0
  1391. package/dist/node_modules/zod/v4/locales/tg.d.ts +4 -0
  1392. package/dist/node_modules/zod/v4/locales/tg.js +117 -0
  1393. package/dist/node_modules/zod/v4/locales/th.cjs +142 -0
  1394. package/dist/node_modules/zod/v4/locales/th.d.cts +5 -0
  1395. package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
  1396. package/dist/node_modules/zod/v4/locales/th.js +115 -0
  1397. package/dist/node_modules/zod/v4/locales/tk.cjs +134 -0
  1398. package/dist/node_modules/zod/v4/locales/tk.d.cts +5 -0
  1399. package/dist/node_modules/zod/v4/locales/tk.d.ts +4 -0
  1400. package/dist/node_modules/zod/v4/locales/tk.js +107 -0
  1401. package/dist/node_modules/zod/v4/locales/tr.cjs +137 -0
  1402. package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1403. package/dist/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1404. package/dist/node_modules/zod/v4/locales/tr.js +110 -0
  1405. package/dist/node_modules/zod/v4/locales/ua.cjs +12 -0
  1406. package/dist/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1407. package/dist/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1408. package/dist/node_modules/zod/v4/locales/ua.js +5 -0
  1409. package/dist/node_modules/zod/v4/locales/uk.cjs +140 -0
  1410. package/dist/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1411. package/dist/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1412. package/dist/node_modules/zod/v4/locales/uk.js +113 -0
  1413. package/dist/node_modules/zod/v4/locales/ur.cjs +142 -0
  1414. package/dist/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1415. package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1416. package/dist/node_modules/zod/v4/locales/ur.js +115 -0
  1417. package/dist/node_modules/zod/v4/locales/uz.cjs +140 -0
  1418. package/dist/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1419. package/dist/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1420. package/dist/node_modules/zod/v4/locales/uz.js +113 -0
  1421. package/dist/node_modules/zod/v4/locales/vi.cjs +140 -0
  1422. package/dist/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1423. package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1424. package/dist/node_modules/zod/v4/locales/vi.js +113 -0
  1425. package/dist/node_modules/zod/v4/locales/yo.cjs +139 -0
  1426. package/dist/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1427. package/dist/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1428. package/dist/node_modules/zod/v4/locales/yo.js +112 -0
  1429. package/dist/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  1430. package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1431. package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1432. package/dist/node_modules/zod/v4/locales/zh-CN.js +114 -0
  1433. package/dist/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  1434. package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1435. package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1436. package/dist/node_modules/zod/v4/locales/zh-TW.js +112 -0
  1437. package/dist/node_modules/zod/v4/mini/checks.cjs +54 -0
  1438. package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1439. package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1440. package/dist/node_modules/zod/v4/mini/checks.js +1 -0
  1441. package/dist/node_modules/zod/v4/mini/coerce.cjs +71 -0
  1442. package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1443. package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1444. package/dist/node_modules/zod/v4/mini/coerce.js +22 -0
  1445. package/dist/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1446. package/dist/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1447. package/dist/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1448. package/dist/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1449. package/dist/node_modules/zod/v4/mini/external.cjs +95 -0
  1450. package/dist/node_modules/zod/v4/mini/external.d.cts +16 -0
  1451. package/dist/node_modules/zod/v4/mini/external.d.ts +16 -0
  1452. package/dist/node_modules/zod/v4/mini/external.js +16 -0
  1453. package/dist/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1454. package/dist/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1455. package/dist/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1456. package/dist/node_modules/zod/v4/mini/in-out.js +36 -0
  1457. package/dist/node_modules/zod/v4/mini/index.cjs +51 -0
  1458. package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
  1459. package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
  1460. package/dist/node_modules/zod/v4/mini/index.js +3 -0
  1461. package/dist/node_modules/zod/v4/mini/iso.cjs +83 -0
  1462. package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1463. package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1464. package/dist/node_modules/zod/v4/mini/iso.js +34 -0
  1465. package/dist/node_modules/zod/v4/mini/package.json +7 -0
  1466. package/dist/node_modules/zod/v4/mini/parse.cjs +37 -0
  1467. package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1468. package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1469. package/dist/node_modules/zod/v4/mini/parse.js +1 -0
  1470. package/dist/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  1471. package/dist/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  1472. package/dist/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  1473. package/dist/node_modules/zod/v4/mini/schemas.js +1002 -0
  1474. package/dist/node_modules/zod/v4/package.json +7 -0
  1475. package/dist/node_modules/zod/v4-mini/index.cjs +51 -0
  1476. package/dist/node_modules/zod/v4-mini/index.d.cts +3 -0
  1477. package/dist/node_modules/zod/v4-mini/index.d.ts +3 -0
  1478. package/dist/node_modules/zod/v4-mini/index.js +3 -0
  1479. package/dist/node_modules/zod/v4-mini/package.json +7 -0
  1480. package/dist/program.js +27 -0
  1481. package/dist/program.js.map +1 -1
  1482. package/package.json +17 -7
@@ -0,0 +1,1357 @@
1
+ /**
2
+ * ENG-3369 prototype: the Litmus Capture app, from `litmus connect` to submit.
3
+ *
4
+ * The hosted watcher (hosted-watcher.ts) owns one LaptopCaptureSupervisor for
5
+ * the attempt. When the backend says the assessment has laptop capture on
6
+ * (GET /cli/laptop-capture/config, refused in production) and the candidate
7
+ * agreed to the consent text at connect (`offerLaptopCapture`), it:
8
+ *
9
+ * 1. installs the native app per user, with no admin: the ad hoc signed
10
+ * `Litmus Capture.app` (bundle id com.litmushiring.capture) under
11
+ * ~/Applications on macOS, LitmusCapture.exe compiled from its C# source
12
+ * by the in-box .NET Framework compiler under %LOCALAPPDATA% on Windows,
13
+ * or litmus_capture.py, run by the system python3, under ~/.local/share
14
+ * on Linux;
15
+ * 2. starts it through LaunchServices (so macOS asks for permissions in the
16
+ * app's own name, never the terminal's) and reads its events over a
17
+ * private socket or pipe;
18
+ * 3. scrubs every event on the laptop (keystrokes from password fields and
19
+ * secure input dropped, the exclusion list applied, credentials redacted)
20
+ * BEFORE it is written, then appends it to an AES-256-GCM buffer whose key
21
+ * only ever lives in this process's memory;
22
+ * 4. uploads the buffer every few seconds, keeps buffering through an outage
23
+ * of up to OFFLINE_SECONDS, restarts the app if it is killed (and flags the
24
+ * gap), and runs the checks that need no native code: AI apps, the AI
25
+ * services they contact, cheating and remote access tools, virtual machines;
26
+ * 5. on submit or lease loss stops the app, uploads what is left, wipes the
27
+ * buffer, removes the app and, on macOS, resets its permission grants.
28
+ *
29
+ * Nothing starts outside the hosted capture lease, and every event carries the
30
+ * lease receipt the server checks it against (services/laptop_capture.py).
31
+ */
32
+ import { execFile, execFileSync, spawn } from "child_process";
33
+ import { createCipheriv, createDecipheriv, createHash, randomBytes, randomUUID } from "crypto";
34
+ import dns from "dns";
35
+ import { appendFileSync, closeSync, cpSync, existsSync, fstatSync, linkSync, mkdirSync, mkdtempSync, openSync, readdirSync, readFileSync, readSync, rmdirSync, rmSync, statSync, writeFileSync } from "fs";
36
+ import net from "net";
37
+ import os from "os";
38
+ import path from "path";
39
+ import readline from "readline";
40
+ import { fileURLToPath } from "url";
41
+ import { AI_NETWORK_HOSTS } from "./ai-network-hosts.js";
42
+ import { knownValues, redactText } from "./credential-scrub.js";
43
+ import { detectTools, parseProcessRows } from "./detection.js";
44
+ import { extractConnection, getConnections, getProcessList, resolvePidNames } from "./platform.js";
45
+ import { CLI_VERSION } from "./version.js";
46
+ export const BUNDLE_ID = "com.litmushiring.capture";
47
+ /** Mirrors backend services/laptop_capture.OFFLINE_SECONDS. */
48
+ export const OFFLINE_SECONDS = 15 * 60;
49
+ const isWin = process.platform === "win32";
50
+ const isMac = process.platform === "darwin";
51
+ const isLinux = process.platform === "linux";
52
+ const LINUX_HELPER = "litmus_capture.py";
53
+ /** The config, or null when the server refuses the lane (production, switch off). */
54
+ export async function fetchCaptureConfig(backendUrl, token) {
55
+ const response = await fetch(`${backendUrl}/cli/laptop-capture/config`, {
56
+ headers: { Authorization: `Bearer ${token}`, "X-Litmus-CLI-Version": CLI_VERSION }, redirect: "error", signal: AbortSignal.timeout(5000),
57
+ });
58
+ if (response.status === 404)
59
+ return null;
60
+ if (!response.ok)
61
+ throw new Error(`Laptop capture config failed (${response.status})`);
62
+ const value = await response.json();
63
+ if (value.enabled !== true || typeof value.disclosureText !== "string" || typeof value.disclosureVersion !== "string" || !value.exclusions)
64
+ return null;
65
+ return value;
66
+ }
67
+ // ── Laptop-side filtering: runs on every event before it reaches disk ───────
68
+ /** Every kind the server's allowlist knows (services/laptop_capture.FIELDS). */
69
+ export const KINDS = new Set(["app_focus", "keys", "click", "clipboard_copy", "clipboard_paste", "screen", "ai_app", "ai_service",
70
+ "audio", "flag", "permission", "capture_state", "displays", "excluded"]);
71
+ const CONTENT_KINDS = new Set(["app_focus", "keys", "click", "clipboard_copy", "clipboard_paste", "screen"]);
72
+ const BLOB_FIELDS = new Set(["frame", "audio"]);
73
+ // The shared scrub needs a whole key (24 characters after `sk-proj-`), but a screen
74
+ // grabbed while a key is typed, or a window cut through one, shows part of it. Laptop
75
+ // capture also takes a known key prefix with a shorter body, and a value given to a
76
+ // variable named like a credential, for its text and its frames: always when it is
77
+ // quoted or an environment assignment (`PASSWORD=...`), otherwise unless the value reads
78
+ // as code (`token = response.data.token`, `accessToken = headerValue`).
79
+ // The native apps carry these three, and credential-scrub's SECRET_VALUE_PATTERNS, as
80
+ // text to find where on a frame to blank (laptop-capture.test.ts checks they match).
81
+ export const PARTIAL_KEY_RE = /\b(?:sk-(?:ant-|proj-|svcacct-|admin-)?|l(?:wt|gt|rt|sg)_|gh[pousr]_|xox[baprs]-|AKIA|ASIA|AIza)[A-Za-z0-9_-]{8,}/gi;
82
+ export const NAMED_SECRET_RE = /(\b([A-Za-z_]*(?:API_?KEY|TOKEN|SECRET|PASSWORD|PASSWD))(\s*)([=:])\s*)(["']?)([^\s"'`;,()]{12,})\5/gi;
83
+ export const CODE_VALUE_RE = /^(?:[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*)+|[a-z][a-z0-9]*[A-Z][A-Za-z0-9]*|[a-z]+(?:_[a-z0-9]+)+)$/;
84
+ export function redactCaptureText(text, known) {
85
+ return redactText(text, known).replace(PARTIAL_KEY_RE, "[REDACTED]").replace(NAMED_SECRET_RE, (match, prefix, name, space, separator, quote, value) => {
86
+ const environment = /^[A-Z0-9_]+$/.test(name) && separator === "=" && space === "";
87
+ return quote || environment || !CODE_VALUE_RE.test(value) ? `${prefix}${quote}[REDACTED]${quote}` : match;
88
+ });
89
+ }
90
+ function urlHost(url) {
91
+ if (typeof url !== "string" || !url)
92
+ return null;
93
+ try {
94
+ return new URL(url.includes("://") ? url : `https://${url}`).hostname.toLowerCase().replace(/\.+$/, "") || null;
95
+ }
96
+ catch {
97
+ return null;
98
+ }
99
+ }
100
+ /** The same rule as the backend's `excluded_category`, from the list it sent. */
101
+ export function excludedCategory(exclusions, appId, url) {
102
+ const app = typeof appId === "string" ? appId.toLowerCase() : "";
103
+ const host = urlHost(url);
104
+ for (const [category, rule] of Object.entries(exclusions)) {
105
+ if (app && rule.apps.includes(app))
106
+ return category;
107
+ if (host && rule.hosts.some(listed => host === listed || host.endsWith(`.${listed}`)))
108
+ return category;
109
+ }
110
+ if (host && host.split(".").slice(0, -1).some(label => label.includes("bank")))
111
+ return "banking";
112
+ return null;
113
+ }
114
+ /**
115
+ * Second line behind the app's own check: typed text from a password field or
116
+ * while secure input is on never reaches the buffer. The app marks such a burst
117
+ * `secure` and is meant never to send it at all.
118
+ */
119
+ export function keepKeystrokes(event) {
120
+ const data = event.data ?? {};
121
+ if (data.secure === true)
122
+ return false;
123
+ return !(typeof data.field === "string" && /secure|password/i.test(data.field));
124
+ }
125
+ function safeUrl(url) {
126
+ if (typeof url !== "string" || !url)
127
+ return undefined;
128
+ try {
129
+ const parsed = new URL(url.includes("://") ? url : `https://${url}`);
130
+ return `${parsed.protocol}//${parsed.hostname}${parsed.pathname}`;
131
+ }
132
+ catch {
133
+ return undefined;
134
+ }
135
+ }
136
+ const REDACTION_REASONS = new Set(["excluded_app", "password_field", "credential"]);
137
+ /** The server keeps at most this many boxes per frame (services/laptop_capture.py). */
138
+ export const MAX_REDACTIONS = 50;
139
+ /**
140
+ * The areas the app blanked on a frame, `{x, y, w, h, reason, category?}` in frame
141
+ * pixels, in the shape the server keeps; null when any of it is not that shape.
142
+ */
143
+ export function cleanRedactions(value) {
144
+ if (!Array.isArray(value) || value.length > MAX_REDACTIONS)
145
+ return null;
146
+ const out = [];
147
+ for (const box of value) {
148
+ if (!box || typeof box !== "object")
149
+ return null;
150
+ const { x, y, w, h, reason, category } = box;
151
+ if (![x, y, w, h].every(n => typeof n === "number" && Number.isFinite(n)))
152
+ return null;
153
+ if (typeof reason !== "string" || !REDACTION_REASONS.has(reason))
154
+ return null;
155
+ if (category !== undefined && typeof category !== "string")
156
+ return null;
157
+ out.push({ x, y, w, h, reason, ...(typeof category === "string" ? { category: category.slice(0, 200) } : {}) });
158
+ }
159
+ return out;
160
+ }
161
+ /** One app event made safe to write: allowlisted, excluded or scrubbed, stamped. */
162
+ export function prepareEvent(raw, ctx) {
163
+ if (!raw || typeof raw.kind !== "string" || !KINDS.has(raw.kind))
164
+ return null;
165
+ if (raw.kind === "keys" && !keepKeystrokes(raw))
166
+ return null;
167
+ const ts = typeof raw.ts === "string" && !Number.isNaN(Date.parse(raw.ts)) ? raw.ts : new Date().toISOString();
168
+ const base = { id: randomUUID(), ts, capture_location: "local", capture_receipt: ctx.receipt };
169
+ const data = raw.data && typeof raw.data === "object" ? raw.data : {};
170
+ if (CONTENT_KINDS.has(raw.kind)) {
171
+ const category = excludedCategory(ctx.exclusions, raw.app_id, data.url);
172
+ if (category)
173
+ return { ...base, type: "excluded", data: { category, was: raw.kind } };
174
+ }
175
+ const clean = {};
176
+ for (const [key, value] of Object.entries(data)) {
177
+ if (key === "secure" || key === "check_text" || key === "check_failed" || key === "redactions")
178
+ continue;
179
+ if (key === "url") {
180
+ const url = safeUrl(value);
181
+ if (url)
182
+ clean.url = redactCaptureText(url, ctx.known);
183
+ continue;
184
+ }
185
+ clean[key] = typeof value === "string" && !BLOB_FIELDS.has(key) ? redactCaptureText(value, ctx.known) : value;
186
+ }
187
+ if (raw.kind === "screen" && "frame" in clean) {
188
+ // A picture cannot be scrubbed like text, so the app blanks it before it leaves:
189
+ // excluded apps and sites, password fields and credentials it found, listed in
190
+ // `redactions`. It sends the text the frame still shows outside those boxes (OCR,
191
+ // or every visible window's text); a frame is kept only when that text was read
192
+ // and holds no credential, so a key the app missed withholds the frame.
193
+ const redactions = "redactions" in data ? cleanRedactions(data.redactions) : [];
194
+ const visible = data.check_text;
195
+ // ENG-4731: the app names the window it could not read (app and window kind, no title).
196
+ const why = typeof data.check_failed === "string" && data.check_failed ? `: ${redactCaptureText(data.check_failed, ctx.known).slice(0, 120)}` : "";
197
+ const withheld = redactions === null ? "redactions unreadable" : typeof visible !== "string" ? `not checked${why}`
198
+ : redactCaptureText(visible, ctx.known) !== visible ? "credential on screen" : null;
199
+ if (withheld) {
200
+ delete clean.frame;
201
+ clean.frame_withheld = withheld;
202
+ }
203
+ else if (redactions?.length)
204
+ clean.redactions = redactions;
205
+ }
206
+ return {
207
+ ...base, type: raw.kind, data: clean,
208
+ ...(typeof raw.app === "string" ? { app: redactText(raw.app, ctx.known).slice(0, 128) } : {}),
209
+ ...(typeof raw.app_id === "string" ? { app_id: raw.app_id.slice(0, 200) } : {}),
210
+ };
211
+ }
212
+ // ── The encrypted local buffer ──────────────────────────────────────────────
213
+ /**
214
+ * Append-only JSON lines, each sealed with AES-256-GCM under a key that exists
215
+ * only in this process. The file is unreadable to anything else while it exists,
216
+ * and becomes unreadable to everyone when the watcher exits.
217
+ * shortcut: a watcher crash loses events not yet uploaded; keep the key in the
218
+ * macOS Keychain / Windows DPAPI if that ever matters more than the simplicity.
219
+ */
220
+ export class EncryptedBuffer {
221
+ constructor(file) {
222
+ this.file = file;
223
+ this.key = randomBytes(32);
224
+ this.offset = 0;
225
+ /** Bumped by every wipe: an upload read from an older buffer must not move this one's offset. */
226
+ this.generation = 0;
227
+ rmSync(file, { force: true });
228
+ }
229
+ append(value) {
230
+ const iv = randomBytes(12);
231
+ const cipher = createCipheriv("aes-256-gcm", this.key, iv);
232
+ const body = Buffer.concat([cipher.update(JSON.stringify(value), "utf8"), cipher.final()]);
233
+ appendFileSync(this.file, Buffer.concat([iv, cipher.getAuthTag(), body]).toString("base64") + "\n", { mode: 0o600 });
234
+ }
235
+ /** Up to `maxBytes` of sealed lines from the upload offset, opened. */
236
+ read(maxBytes) {
237
+ if (!existsSync(this.file))
238
+ return { values: [], ends: [] };
239
+ const fd = openSync(this.file, "r");
240
+ try {
241
+ const size = fstatSync(fd).size;
242
+ const length = Math.min(maxBytes, size - this.offset);
243
+ if (length <= 0)
244
+ return { values: [], ends: [] };
245
+ let bytes = Buffer.alloc(length);
246
+ readSync(fd, bytes, 0, length, this.offset);
247
+ let last = bytes.lastIndexOf(10);
248
+ // One record longer than the window (a large screenshot or audio chunk) is read
249
+ // whole; otherwise it would hold back every event behind it for good.
250
+ while (last < 0 && this.offset + bytes.length < size) {
251
+ const more = Buffer.alloc(Math.min(256 * 1024, size - this.offset - bytes.length));
252
+ const count = readSync(fd, more, 0, more.length, this.offset + bytes.length);
253
+ if (count === 0)
254
+ break;
255
+ bytes = Buffer.concat([bytes, more.subarray(0, count)]);
256
+ last = bytes.lastIndexOf(10);
257
+ }
258
+ if (last < 0)
259
+ return { values: [], ends: [] };
260
+ const lines = bytes.subarray(0, last).toString("utf8").split("\n");
261
+ const ends = [];
262
+ let at = this.offset;
263
+ for (const line of lines) {
264
+ at += Buffer.byteLength(line) + 1;
265
+ ends.push(at);
266
+ }
267
+ const values = lines.map(line => {
268
+ const raw = Buffer.from(line, "base64");
269
+ const decipher = createDecipheriv("aes-256-gcm", this.key, raw.subarray(0, 12));
270
+ decipher.setAuthTag(raw.subarray(12, 28));
271
+ return JSON.parse(Buffer.concat([decipher.update(raw.subarray(28)), decipher.final()]).toString("utf8"));
272
+ });
273
+ return { values, ends };
274
+ }
275
+ finally {
276
+ closeSync(fd);
277
+ }
278
+ }
279
+ /** Mark everything before `end` uploaded; an empty remainder deletes the file. */
280
+ advance(end, generation = this.generation) {
281
+ // A wipe since the read (capture switched off and on during a slow upload) made `end` an
282
+ // offset into a file that no longer exists: the new events behind it stay unsent.
283
+ if (generation !== this.generation)
284
+ return;
285
+ this.offset = end;
286
+ let size = 0;
287
+ // The size, not the contents: a buffer grown during an outage is never read whole here.
288
+ try {
289
+ size = statSync(this.file).size;
290
+ }
291
+ catch { /* gone */ }
292
+ if (this.offset >= size)
293
+ this.wipe();
294
+ }
295
+ wipe() { rmSync(this.file, { force: true }); this.offset = 0; this.generation++; }
296
+ /** Nothing left to upload. */
297
+ get empty() {
298
+ try {
299
+ return statSync(this.file).size <= this.offset;
300
+ }
301
+ catch {
302
+ return true;
303
+ }
304
+ }
305
+ }
306
+ // ── Process, network and machine checks (no native code needed) ─────────────
307
+ // Patterns match a program's NAME (its executable, or its macOS app bundle),
308
+ // never its arguments, so a command line that mentions a tool is not the tool.
309
+ /** Desktop AI apps the editor-and-CLI signatures in detection.ts do not cover. */
310
+ const DESKTOP_AI_APPS = {
311
+ chatgpt: /^chatgpt(\.exe)?$/i,
312
+ perplexity: /^perplexity(\.exe)?$/i,
313
+ copilot: /^(copilot|m365copilot\.exe)$/i,
314
+ };
315
+ /** Known interview cheating tools. */
316
+ const CHEATING_TOOLS = {
317
+ Cluely: /cluely/i,
318
+ "Interview Coder": /interview ?coder/i,
319
+ "Final Round AI": /final ?round/i,
320
+ "LockedIn AI": /lockedin ?ai/i,
321
+ "Leetcode Wizard": /leetcode ?wizard/i,
322
+ "Parakeet AI": /parakeet ?ai/i,
323
+ };
324
+ export const REMOTE_ACCESS_TOOLS = {
325
+ AnyDesk: /^anydesk/i,
326
+ TeamViewer: /^teamviewer/i,
327
+ RustDesk: /^rustdesk/i,
328
+ Parsec: /^parsec(\.app)?$|^parsecd\.exe$/i,
329
+ Splashtop: /^(splashtop|srstreamer)/i,
330
+ ScreenConnect: /^(screenconnect|connectwisecontrol)/i,
331
+ "Chrome Remote Desktop": /^(remoting_host|chrome remote desktop host)/i,
332
+ VNC: /^(x11vnc|vncserver|winvnc|tvnserver|realvnc)/i,
333
+ RemotePC: /^remotepc/i,
334
+ NoMachine: /^(nxserver|nxnode|nomachine)/i,
335
+ LogMeIn: /^logmein/i,
336
+ GoToMyPC: /^g2(comm|svc|host)|^gotomypc/i,
337
+ "Zoho Assist": /^zoho ?assist/i,
338
+ "Jump Desktop": /^jump desktop connect/i,
339
+ AnyViewer: /^(anyviewer|rcservice)/i,
340
+ "macOS Screen Sharing (in use)": /^screensharingd$/i,
341
+ // Controlling another computer from this one. Being controlled over Remote
342
+ // Desktop has no process to see; the Windows app flags that session itself.
343
+ "Remote Desktop client": /^(mstsc|msrdc)(\.exe)?$|^(microsoft remote desktop|windows app)$/i,
344
+ // GNOME Remote Desktop is left out: Ubuntu runs its system daemon whether or not
345
+ // anyone connects. The Linux app flags its own session being remote instead.
346
+ "Linux remote desktop server": /^(xrdp|xrdp-sesman|krfb|wayvnc|x0vncserver|vino-server)$/i,
347
+ };
348
+ /** A process row's names: its macOS app bundles and its executable's file name. */
349
+ export function programNames(command) {
350
+ const bundles = [...command.matchAll(/([^/]+)\.app\/contents\//gi)].map(match => match[1]);
351
+ const program = command.match(/^(.*?\.app\/contents\/macos\/[^/]+?)(?=\s+-|$)/i)?.[1] ?? command.split(/\s+/)[0] ?? "";
352
+ return [...bundles, program.slice(Math.max(program.lastIndexOf("/"), program.lastIndexOf("\\")) + 1)].filter(Boolean);
353
+ }
354
+ // Apple's own daemons (CoreParsec's `parsecd` is Spotlight, not Parsec), except
355
+ // the Screen Sharing server, which only runs while someone is connected.
356
+ const SYSTEM_PATH = /^\/(system|usr\/(libexec|sbin))\//i;
357
+ /** Which named tools are running, matched on program names only. */
358
+ export function runningMatches(rows, patterns) {
359
+ const names = rows.flatMap(row => SYSTEM_PATH.test(row.command) && !/screensharingd|xrdp/i.test(row.command) ? [] : programNames(row.command));
360
+ return Object.entries(patterns).filter(([, pattern]) => names.some(name => pattern.test(name))).map(([name]) => name);
361
+ }
362
+ /** The hypervisor this laptop runs under, or null on bare metal. */
363
+ export function virtualMachineFrom(text) {
364
+ // Cloud desktops name the cloud, not a hypervisor: a Google VM's BIOS says only
365
+ // "Google Compute Engine", which the hypervisor names alone missed (ENG-3369 device matrix).
366
+ const match = text.match(/parallels|vmware|virtualbox|virtual machine|qemu|kvm|xen|hyper-v|utm|virtualmac|google compute engine|amazon ec2|digitalocean|openstack|linode|vultr|hetzner/i);
367
+ return match ? match[0] : null;
368
+ }
369
+ function run(file, args) {
370
+ // Asynchronous: the watcher must keep reading the app's pipe while this runs.
371
+ return new Promise(resolve => execFile(file, args, { encoding: "utf8", timeout: 20000, windowsHide: true }, (error, stdout) => resolve(error ? "" : stdout.trim())));
372
+ }
373
+ async function detectVirtualMachine() {
374
+ if (isMac) {
375
+ const [hv, model] = await Promise.all([run("sysctl", ["-n", "kern.hv_vmm_present"]), run("sysctl", ["-n", "hw.model"])]);
376
+ return hv === "1" ? (virtualMachineFrom(model) ?? "a hypervisor") : virtualMachineFrom(model);
377
+ }
378
+ if (isWin) {
379
+ // The BIOS strings a hypervisor sets: a registry read, not a slow CIM query.
380
+ const key = "HKLM\\HARDWARE\\DESCRIPTION\\System\\BIOS";
381
+ const [maker, product] = await Promise.all([run("reg", ["query", key, "/v", "SystemManufacturer"]), run("reg", ["query", key, "/v", "SystemProductName"])]);
382
+ return virtualMachineFrom(`${maker} ${product}`);
383
+ }
384
+ if (isLinux) {
385
+ // Readable without root; `--vm` leaves containers out.
386
+ const dmi = ["sys_vendor", "product_name"].map(name => { try {
387
+ return readFileSync(`/sys/class/dmi/id/${name}`, "utf8").trim();
388
+ }
389
+ catch {
390
+ return "";
391
+ } }).join(" ");
392
+ const virt = await run("systemd-detect-virt", ["--vm"]);
393
+ return virtualMachineFrom(dmi) ?? (virt && virt !== "none" ? virt : null);
394
+ }
395
+ return null;
396
+ }
397
+ /** Every user's processes: remote access hosts run as root or SYSTEM. */
398
+ function allProcessText() {
399
+ if (!isWin)
400
+ return Promise.resolve(getProcessList());
401
+ return new Promise(resolve => execFile("tasklist", ["/fo", "csv", "/nh"], { timeout: 20000, encoding: "utf8", maxBuffer: 4 * 1024 * 1024, windowsHide: true }, (error, stdout) => resolve(error ? "" : stdout.toLowerCase())));
402
+ }
403
+ // ── Install, launch, remove ─────────────────────────────────────────────────
404
+ function nativeDir() {
405
+ return path.join(path.dirname(fileURLToPath(import.meta.url)), "..", "native");
406
+ }
407
+ const MAC_APP_NAME = "Litmus Capture.app";
408
+ /**
409
+ * Where the app is installed. macOS lists an app in Privacy & Security, and
410
+ * accepts it there, only from a normal location: from a temporary folder it never
411
+ * appeared in the Accessibility list, so nobody could turn it on. So it goes in
412
+ * the user's own ~/Applications, found from the account rather than $HOME.
413
+ * Windows keeps it under %LOCALAPPDATA%.
414
+ */
415
+ export function installPath() {
416
+ if (isWin)
417
+ return path.join(process.env.LOCALAPPDATA ?? path.join(os.homedir(), "AppData", "Local"), "Litmus", "Capture");
418
+ if (isLinux)
419
+ return path.join(process.env.XDG_DATA_HOME || path.join(os.userInfo().homedir, ".local", "share"), "litmus", "capture");
420
+ return path.join(os.userInfo().homedir, "Applications", MAC_APP_NAME);
421
+ }
422
+ function treeHash(dir) {
423
+ const hash = createHash("sha256");
424
+ const walk = (at) => {
425
+ for (const name of readdirSync(at).sort()) {
426
+ const full = path.join(at, name);
427
+ if (statSync(full).isDirectory())
428
+ walk(full);
429
+ else
430
+ hash.update(name).update(readFileSync(full));
431
+ }
432
+ };
433
+ walk(dir);
434
+ return hash.digest("hex");
435
+ }
436
+ function compilerPath() {
437
+ const windir = process.env.WINDIR ?? "C:\\Windows";
438
+ for (const framework of ["Framework64", "Framework"]) {
439
+ const csc = path.join(windir, "Microsoft.NET", framework, "v4.0.30319", "csc.exe");
440
+ if (existsSync(csc))
441
+ return csc;
442
+ }
443
+ return null;
444
+ }
445
+ /** Build the Windows helper from source with the compiler every Windows ships. */
446
+ export function compileWindowsHelper(source, exe) {
447
+ const csc = compilerPath();
448
+ if (!csc)
449
+ throw new Error("The .NET Framework compiler is not on this computer");
450
+ const framework = path.dirname(csc);
451
+ const refs = ["System.dll", "System.Core.dll", "System.Drawing.dll", "System.Windows.Forms.dll", "System.Web.Extensions.dll",
452
+ path.join("WPF", "UIAutomationClient.dll"), path.join("WPF", "UIAutomationTypes.dll"), path.join("WPF", "WindowsBase.dll")];
453
+ execFileSync(csc, ["/nologo", "/target:winexe", "/optimize+", `/out:${exe}`, ...refs.map(ref => `/r:${path.join(framework, ref)}`), source], { timeout: 120000, windowsHide: true, stdio: "pipe" });
454
+ }
455
+ /** What `litmus capture-ready` prints when this build can run Litmus Capture here (ENG-5532). */
456
+ export const CAPTURE_READY_MARKER = "litmus-capture-ready";
457
+ /**
458
+ * Whether this build can run Litmus Capture on this computer: the app for this OS, on a version it
459
+ * supports. The portal's launchers ask (`litmus capture-ready`) before using an installed CLI, so one
460
+ * that knows the command but carries no app here (latest/beta on macOS) is passed over.
461
+ */
462
+ export function captureAppReady() {
463
+ return appAvailable() && macTooOld() === null;
464
+ }
465
+ /** Whether this CLI build can install the capture app here at all. */
466
+ export function appAvailable() {
467
+ if (isMac)
468
+ return existsSync(path.join(nativeDir(), "macos", MAC_APP_NAME));
469
+ if (isWin)
470
+ return existsSync(path.join(nativeDir(), "windows", "LitmusCapture.cs")) && compilerPath() !== null;
471
+ if (isLinux)
472
+ return existsSync(path.join(nativeDir(), "linux", LINUX_HELPER)) && linuxStackReady();
473
+ return false;
474
+ }
475
+ let linuxReady;
476
+ /** A desktop session, and python3 with the GNOME libraries the Linux app runs on. */
477
+ function linuxStackReady() {
478
+ if (linuxReady !== undefined)
479
+ return linuxReady;
480
+ const wayland = process.env.XDG_SESSION_TYPE === "wayland" || (!process.env.DISPLAY && !!process.env.WAYLAND_DISPLAY);
481
+ const libraries = [["Gtk", "3.0"], ["Atspi", "2.0"], ...(wayland ? [] : [["Wnck", "3.0"]])];
482
+ const check = `import gi\n${libraries.map(([name, version]) => `gi.require_version("${name}", "${version}")`).join("\n")}\nfrom gi.repository import ${libraries.map(([name]) => name).join(", ")}`;
483
+ try {
484
+ if (!process.env.DISPLAY && !process.env.WAYLAND_DISPLAY)
485
+ return (linuxReady = false);
486
+ execFileSync("python3", ["-c", check], { timeout: 15000, stdio: "ignore", windowsHide: true });
487
+ return (linuxReady = true);
488
+ }
489
+ catch {
490
+ return (linuxReady = false);
491
+ }
492
+ }
493
+ /** The app's LSMinimumSystemVersion when `macVersion` is below it, else null. */
494
+ export function macBelowMinimum(infoPlist, macVersion) {
495
+ const minimum = infoPlist.match(/<key>LSMinimumSystemVersion<\/key>\s*<string>([\d.]+)<\/string>/)?.[1];
496
+ if (!minimum)
497
+ return null;
498
+ const have = macVersion.split(".").map(Number), need = minimum.split(".").map(Number);
499
+ for (let i = 0; i < need.length; i++) {
500
+ if ((have[i] ?? 0) !== need[i])
501
+ return (have[i] ?? 0) < need[i] ? minimum : null;
502
+ }
503
+ return null;
504
+ }
505
+ /**
506
+ * On a Mac older than the app allows, LaunchServices refuses to open it: every
507
+ * start would fail and the restarts would end in a false "capture app stopped" flag.
508
+ */
509
+ function macTooOld() {
510
+ if (!isMac)
511
+ return null;
512
+ try {
513
+ const mac = execFileSync("sw_vers", ["-productVersion"], { encoding: "utf8", timeout: 5000, windowsHide: true }).trim();
514
+ const minimum = macBelowMinimum(readFileSync(path.join(nativeDir(), "macos", MAC_APP_NAME, "Contents", "Info.plist"), "utf8"), mac);
515
+ return minimum ? { minimum, mac } : null;
516
+ }
517
+ catch {
518
+ return null;
519
+ }
520
+ }
521
+ /**
522
+ * ENG-5410: the per-user key that makes Windows open litmus-capture: links (the portal's
523
+ * "Open Litmus Capture" button) with this CLI. No admin. Written with the app and removed
524
+ * with it, so after submit a link opens nothing, as on macOS, where the scheme lives in the
525
+ * app bundle (Info.plist).
526
+ */
527
+ const WINDOWS_LINK_KEY = "HKCU\\Software\\Classes\\litmus-capture";
528
+ /**
529
+ * What Windows runs for a link: node and this CLI, never cmd, so no shell parses the link
530
+ * (a quote in it only adds an argument the CLI refuses). `--keep-open` holds the console
531
+ * after the CLI's last line ("already recording", "capture ended") so it can be read.
532
+ */
533
+ export function windowsLinkCommand(node, cli) {
534
+ return `"${node}" "${cli}" screen-capture "%1" --keep-open`;
535
+ }
536
+ function registerWindowsLink() {
537
+ const reg = (args) => execFileSync("reg", args, { timeout: 10000, stdio: "ignore", windowsHide: true });
538
+ try {
539
+ reg(["add", WINDOWS_LINK_KEY, "/ve", "/d", "URL:Litmus Capture", "/f"]);
540
+ reg(["add", WINDOWS_LINK_KEY, "/v", "URL Protocol", "/d", "", "/f"]);
541
+ reg(["add", `${WINDOWS_LINK_KEY}\\shell\\open\\command`, "/ve", "/d", windowsLinkCommand(process.execPath, path.resolve(process.argv[1])), "/f"]);
542
+ }
543
+ catch {
544
+ // Only the page's Open Litmus Capture button needs it; the downloaded launcher still works.
545
+ process.stderr.write("[laptop capture] could not register the litmus-capture: link\n");
546
+ }
547
+ }
548
+ function installApp() {
549
+ const target = installPath();
550
+ if (isMac) {
551
+ const source = path.join(nativeDir(), "macos", MAC_APP_NAME);
552
+ if (!existsSync(source))
553
+ throw new Error("This CLI build has no Litmus Capture app for macOS");
554
+ mkdirSync(path.dirname(target), { recursive: true });
555
+ const sourceHash = treeHash(source);
556
+ if (!existsSync(target) || treeHash(target) !== sourceHash) {
557
+ rmSync(target, { recursive: true, force: true });
558
+ cpSync(source, target, { recursive: true, verbatimSymlinks: true });
559
+ }
560
+ return target;
561
+ }
562
+ if (isWin) {
563
+ const root = target;
564
+ mkdirSync(root, { recursive: true, mode: 0o700 });
565
+ const source = path.join(nativeDir(), "windows", "LitmusCapture.cs");
566
+ const exe = path.join(root, "LitmusCapture.exe");
567
+ const stamp = path.join(root, "source.sha256");
568
+ const sourceHash = createHash("sha256").update(readFileSync(source)).digest("hex");
569
+ let built = "";
570
+ try {
571
+ built = readFileSync(stamp, "utf8");
572
+ }
573
+ catch { /* first install */ }
574
+ if (!existsSync(exe) || built !== sourceHash) {
575
+ compileWindowsHelper(source, exe);
576
+ writeFileSync(stamp, sourceHash);
577
+ }
578
+ registerWindowsLink();
579
+ return exe;
580
+ }
581
+ if (isLinux) {
582
+ mkdirSync(target, { recursive: true, mode: 0o700 });
583
+ const file = path.join(target, LINUX_HELPER);
584
+ cpSync(path.join(nativeDir(), "linux", LINUX_HELPER), file);
585
+ return file;
586
+ }
587
+ throw new Error("Laptop capture runs on macOS, Windows and Linux only");
588
+ }
589
+ /** Remove the app and, on macOS, every permission grant made to it. */
590
+ export function uninstallApp() {
591
+ const target = installPath();
592
+ if (isMac) {
593
+ const lsregister = "/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister";
594
+ const run = (file, args) => execFileSync(file, args, { timeout: 10000, stdio: "ignore", windowsHide: true });
595
+ // tccutil finds the bundle id through LaunchServices and exits 64 for one it
596
+ // doesn't know, leaving every grant behind. So a copy is registered first: the
597
+ // installed app, or the CLI's own copy when the installed one is already gone.
598
+ const packaged = path.join(nativeDir(), "macos", MAC_APP_NAME);
599
+ const registered = existsSync(target) ? target : packaged;
600
+ try {
601
+ run(lsregister, ["-f", registered]);
602
+ }
603
+ catch { /* tccutil below says whether it mattered */ }
604
+ try {
605
+ run("tccutil", ["reset", "All", BUNDLE_ID]);
606
+ }
607
+ catch (error) {
608
+ process.stderr.write(`[laptop capture] could not reset the capture app's macOS permissions (tccutil exit ${error.status ?? "unknown"})\n`);
609
+ }
610
+ for (const app of new Set([target, registered]))
611
+ try {
612
+ run(lsregister, ["-u", app]);
613
+ }
614
+ catch { /* not registered */ }
615
+ }
616
+ if (isWin)
617
+ try {
618
+ execFileSync("reg", ["delete", WINDOWS_LINK_KEY, "/f"], { timeout: 10000, stdio: "ignore", windowsHide: true });
619
+ }
620
+ catch { /* not registered */ }
621
+ // Only the app's own bundle or folder: ~/Applications itself is the user's.
622
+ rmSync(target, { recursive: true, force: true, maxRetries: 10, retryDelay: 200 });
623
+ if (isWin || isLinux)
624
+ try {
625
+ rmdirSync(path.dirname(target));
626
+ }
627
+ catch { /* not empty, or already gone */ }
628
+ }
629
+ // ── Consent at connect ──────────────────────────────────────────────────────
630
+ function ask(question) {
631
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
632
+ return new Promise(resolve => rl.question(question, answer => { rl.close(); resolve(answer); }));
633
+ }
634
+ export const STATUS_FILE = "laptop-capture-status.json";
635
+ // In the order macOS asks for them.
636
+ const CHANNEL_HELP = {
637
+ microphone: "microphone audio",
638
+ screen: "screenshots and on-screen text",
639
+ accessibility: "window titles, browser addresses and AI answers read from apps",
640
+ input: "typing, clicks and pastes",
641
+ };
642
+ /**
643
+ * Shows the (placeholder) consent text, records the answer, then reports which
644
+ * channels the app is running with. Never blocks the test: a "no", a missing
645
+ * terminal or a refused permission leaves the attempt running without them.
646
+ */
647
+ export async function offerLaptopCapture(backendUrl, token, stateDir) {
648
+ let config;
649
+ try {
650
+ config = await fetchCaptureConfig(backendUrl, token);
651
+ }
652
+ catch {
653
+ return;
654
+ }
655
+ if (!config?.active)
656
+ return;
657
+ if (!appAvailable()) {
658
+ // shortcut: only the `screen` channel's package carries the macOS app (CLI Publish builds it
659
+ // on a Mac for -screen.N tags, ENG-5532); latest/beta still have none until capture ships wider.
660
+ console.log(isLinux
661
+ // shortcut: the Linux app ships in its own follow-up PR (ENG-3369); until then this build has none.
662
+ ? existsSync(path.join(nativeDir(), "linux", LINUX_HELPER))
663
+ ? "Laptop capture is on for this test, but Litmus Capture needs a desktop session with Python 3 and GTK (python3-gi). You can still take the test."
664
+ : "Laptop capture is on for this test, but Litmus Capture is not available on Linux yet. You can still take the test."
665
+ : "Laptop capture is on for this test, but this CLI build has no Litmus Capture app for this computer. You can still take the test.");
666
+ return;
667
+ }
668
+ const tooOld = macTooOld();
669
+ if (tooOld) {
670
+ console.log(`Laptop capture is on for this test, but Litmus Capture needs macOS ${tooOld.minimum} or later and this Mac runs macOS ${tooOld.mac}. You can still take the test.`);
671
+ return;
672
+ }
673
+ if (!config.accepted) {
674
+ // The agreement promises the candidate is told, before agreeing, whether audio is recorded.
675
+ console.log(`\n${config.disclosureText}\n\n${config.audio ? "This assessment records microphone audio." : "This assessment does not record audio."}\n`);
676
+ if (!process.stdin.isTTY) {
677
+ console.log("Laptop capture needs an answer in a terminal. Run this connect command again in a terminal to turn it on.");
678
+ return;
679
+ }
680
+ if ((await ask("Allow laptop capture for this test? Type yes to allow: ")).trim().toLowerCase() !== "yes") {
681
+ console.log("Laptop capture is off for this test. You can still take the test.");
682
+ return;
683
+ }
684
+ const refused = await acceptCapture(backendUrl, token, config.disclosureVersion);
685
+ if (refused) {
686
+ console.log(`Laptop capture could not be turned on (${refused}). You can still take the test.`);
687
+ return;
688
+ }
689
+ }
690
+ // The order the app asks in (requestNextPermission in native/macos/main.swift); each Settings pane waits for a person.
691
+ console.log("Starting Litmus Capture" + (isMac ? `. macOS asks you to allow it, one at a time, for ${config.audio ? "Microphone, then " : ""}Screen Recording, Accessibility and Input Monitoring. Allow all of them: screenshots need both Screen Recording and Accessibility.` : "..."));
692
+ const file = path.join(stateDir, STATUS_FILE);
693
+ const deadline = Date.now() + 30000;
694
+ let status;
695
+ while (Date.now() < deadline) {
696
+ try {
697
+ status = JSON.parse(readFileSync(file, "utf8"));
698
+ }
699
+ catch { /* not yet */ }
700
+ if (status?.permissions || status?.error)
701
+ break;
702
+ await new Promise(resolve => setTimeout(resolve, 500));
703
+ }
704
+ console.log(captureStatusLines(status, config.audio).join("\n"));
705
+ }
706
+ /**
707
+ * Records the yes. Returns why it failed, or null: a network failure is a
708
+ * reason like any refusal, so the test still opens without capture.
709
+ */
710
+ export async function acceptCapture(backendUrl, token, disclosureVersion) {
711
+ try {
712
+ const response = await fetch(`${backendUrl}/cli/laptop-capture/accept`, {
713
+ method: "POST", redirect: "error", signal: AbortSignal.timeout(5000),
714
+ headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json", "X-Litmus-CLI-Version": CLI_VERSION },
715
+ body: JSON.stringify({ disclosureVersion }),
716
+ });
717
+ return response.ok ? null : String(response.status);
718
+ }
719
+ catch {
720
+ return "no answer from the server";
721
+ }
722
+ }
723
+ /** What the candidate is told about each channel. */
724
+ export function captureStatusLines(status, audio, platform = process.platform) {
725
+ if (!status?.permissions)
726
+ return [status?.error ? `Litmus Capture did not start: ${status.error}` : "Litmus Capture is starting; the test can continue."];
727
+ const lines = ["Litmus Capture is running until you submit."];
728
+ // Linux on Wayland: no app may see typing or keep a checkable screenshot there.
729
+ const word = { granted: "on", unavailable: "off (not possible in this desktop session)" };
730
+ for (const [channel, help] of Object.entries(CHANNEL_HELP)) {
731
+ if (channel === "microphone" && !audio)
732
+ continue;
733
+ lines.push(` ${help}: ${word[status.permissions[channel]] ?? "off"}`);
734
+ }
735
+ if (status.permissions.screen !== "granted") {
736
+ lines.push(platform === "darwin"
737
+ ? "Screen capture is off. Allow Litmus Capture under System Settings > Privacy & Security > Screen & System Audio Recording, or share your screen from the assessment page instead."
738
+ : "Screen capture is off. Share your screen from the assessment page instead.");
739
+ }
740
+ else if (platform === "darwin" && status.permissions.accessibility !== "granted") {
741
+ // A browser page whose address can't be read is blanked (it could be a bank), so browser screenshots need Accessibility too.
742
+ lines.push("Browser windows are blanked in screenshots until you allow Litmus Capture under System Settings > Privacy & Security > Accessibility.");
743
+ }
744
+ if (status.restart?.length) {
745
+ // Linux: apps whose accessibility tree is closed keep nothing while in front (fail closed).
746
+ lines.push(`Litmus Capture can't read ${status.restart.join(", ")}, so nothing is kept while it is in front. Restart it, and start Chrome, Chromium or VS Code with --force-renderer-accessibility.`);
747
+ }
748
+ return lines;
749
+ }
750
+ // ── The supervisor, inside the hosted watcher ───────────────────────────────
751
+ const AI_SERVICE_REEMIT_MS = 15 * 60000;
752
+ /**
753
+ * The AI hosts an open connection's address can name. Google's share front-end
754
+ * addresses with every other Google service (a Google Cloud VM's guest agent read
755
+ * as the Gemini API), so they are left to the browser address and process checks.
756
+ * shortcut: no connection-level Gemini signal; reading the TLS server name would give one.
757
+ */
758
+ export const IP_MATCHED_HOSTS = Object.keys(AI_NETWORK_HOSTS).filter(host => !/\.google(apis)?\.com$/.test(host));
759
+ const SCAN_MS = 30000;
760
+ const A11Y_STATUS = ["call", "--session", "--dest", "org.a11y.Bus", "--object-path", "/org/a11y/bus", "--method"];
761
+ /** Thrown when another process already runs Litmus Capture on this computer. `sameAttempt`:
762
+ * that process records the attempt this claim is for (ENG-4735), so nothing needs doing. */
763
+ export class CaptureOwnedElsewhere extends Error {
764
+ constructor(sameAttempt = false) {
765
+ super(sameAttempt
766
+ ? "Litmus Capture is already recording this assessment on this computer. Nothing needs doing: keep working, and submit from the assessment page when you finish."
767
+ : "Litmus Capture is already recording another assessment on this computer. Submit that assessment first, then try again.");
768
+ this.sameAttempt = sameAttempt;
769
+ }
770
+ }
771
+ const ownerLock = () => path.join(os.homedir(), ".litmus", "laptop-capture.owner");
772
+ // A record no process of ours could have left (unreadable, or no pid) is someone's
773
+ // abandoned lock once it is this old; younger, it may still be on its way in.
774
+ const OWNER_GRACE_MS = 10000;
775
+ function ownerAlive(held, lock) {
776
+ const pid = Number(held.split(":")[0]);
777
+ if (!Number.isInteger(pid) || pid <= 0) {
778
+ try {
779
+ return Date.now() - statSync(lock).mtimeMs < OWNER_GRACE_MS;
780
+ }
781
+ catch {
782
+ return false;
783
+ }
784
+ }
785
+ try {
786
+ process.kill(pid, 0);
787
+ return true;
788
+ }
789
+ catch (error) {
790
+ return error.code === "EPERM";
791
+ }
792
+ }
793
+ /**
794
+ * One recorder per computer, whichever path started it (`litmus connect`'s hosted watcher or
795
+ * `litmus screen-capture`): two would upload the same screen under two candidates, and either
796
+ * one's submit would remove the app the other runs. The lock names its process and is
797
+ * published whole (a hard link to a complete file, as `acquireCaptureLock` does), so it is
798
+ * never seen half-written; a lock whose process is gone is taken over. Returns the release.
799
+ */
800
+ export function claimCaptureOwner(attempt = "") {
801
+ const lock = ownerLock();
802
+ mkdirSync(path.dirname(lock), { recursive: true, mode: 0o700 });
803
+ const id = `${process.pid}:${randomUUID()}`;
804
+ // The attempt is recorded only so a second claim can say what it collided with.
805
+ const mine = attempt ? `${id}:${encodeURIComponent(attempt)}` : id;
806
+ const temp = `${lock}.${id.replace(":", ".")}.tmp`;
807
+ writeFileSync(temp, mine, { flag: "wx", mode: 0o600 });
808
+ try {
809
+ for (let tries = 0; tries < 3; tries++) {
810
+ try {
811
+ linkSync(temp, lock);
812
+ return () => { try {
813
+ if (readFileSync(lock, "utf8") === mine)
814
+ rmSync(lock, { force: true });
815
+ }
816
+ catch { /* already gone */ } };
817
+ }
818
+ catch (error) {
819
+ if (error.code !== "EEXIST")
820
+ throw error;
821
+ }
822
+ let held;
823
+ try {
824
+ held = readFileSync(lock, "utf8");
825
+ }
826
+ catch {
827
+ continue;
828
+ }
829
+ if (ownerAlive(held, lock))
830
+ throw new CaptureOwnedElsewhere(attempt !== "" && held.split(":")[2] === encodeURIComponent(attempt));
831
+ // Its process is gone (or the record was abandoned): take it over, unless another recoverer already did.
832
+ try {
833
+ if (readFileSync(lock, "utf8") === held)
834
+ rmSync(lock, { force: true });
835
+ }
836
+ catch { /* gone */ }
837
+ }
838
+ throw new CaptureOwnedElsewhere();
839
+ }
840
+ finally {
841
+ rmSync(temp, { force: true });
842
+ }
843
+ }
844
+ const PERMISSION_NAMES = { screen: "Screen Recording", accessibility: "Accessibility", input: "Input Monitoring", microphone: "Microphone" };
845
+ /**
846
+ * ENG-4797: what a restarted app's first permission report says about why the last
847
+ * one went away. macOS ends the app itself when Input Monitoring is switched off, and
848
+ * quits and reopens it after some grants; the new process has no earlier state, so
849
+ * only the supervisor, which outlives it, can tell a permission change from a quit.
850
+ * `revoked`: on before, off now. `granted`: something off before is on now.
851
+ */
852
+ export function restartVerdict(before, after) {
853
+ if (!before)
854
+ return { revoked: [], granted: false };
855
+ return {
856
+ revoked: Object.keys(before).filter(channel => before[channel] === "granted" && after[channel] !== "granted"),
857
+ granted: Object.keys(after).some(channel => after[channel] === "granted" && before[channel] !== "granted"),
858
+ };
859
+ }
860
+ /** How long a stopped app may take to come back and report its permissions before the stop is flagged as is. */
861
+ const RESTART_VERDICT_MS = 30000;
862
+ export class LaptopCaptureSupervisor {
863
+ constructor(stateDir, backendUrl, token, owner) {
864
+ this.stateDir = stateDir;
865
+ this.backendUrl = backendUrl;
866
+ this.token = token;
867
+ this.config = null;
868
+ this.nextConfigPoll = 0;
869
+ this.lastLeaseAt = 0;
870
+ this.session = randomBytes(16).toString("hex");
871
+ this.starting = false;
872
+ this.stopping = false;
873
+ this.stopped = false;
874
+ // Set as stop() begins: no tick starts after it.
875
+ this.closing = false;
876
+ this.everStarted = false;
877
+ this.restarts = [];
878
+ this.gaveUp = false;
879
+ this.lastScan = 0;
880
+ this.scanning = false;
881
+ this.ticking = false;
882
+ this.vmChecked = false;
883
+ this.aiApps = new Set();
884
+ this.flagged = new Set();
885
+ this.services = new Map();
886
+ this.ipToHost = new Map();
887
+ this.a11yRestore = false;
888
+ this.releaseOwner = owner;
889
+ this.buffer = new EncryptedBuffer(path.join(stateDir, "laptop-capture.buf"));
890
+ this.known = knownValues(token);
891
+ }
892
+ writeStatus(status) {
893
+ try {
894
+ writeFileSync(path.join(this.stateDir, STATUS_FILE), JSON.stringify({ ...status, updatedAt: Date.now() }), { mode: 0o600 });
895
+ }
896
+ catch { /* best effort */ }
897
+ }
898
+ /** Keep a Node-side event (flags, scans) in the same pipeline as the app's. */
899
+ record(event, receipt = this.receipt) {
900
+ if (!receipt || this.stopped)
901
+ return;
902
+ const wire = prepareEvent(event, { exclusions: this.config?.exclusions ?? {}, known: this.known, receipt });
903
+ if (wire)
904
+ this.buffer.append(wire);
905
+ }
906
+ /**
907
+ * Called every watcher loop: with the fresh receipt, or undefined offline.
908
+ * Never awaited by the lease loop (hosted-watcher.ts): the app's start-up and
909
+ * the uploads must not hold back renewing the AI capture lease.
910
+ */
911
+ async tick(receipt) {
912
+ if (this.stopped || this.closing)
913
+ return;
914
+ if (receipt) {
915
+ this.receipt = receipt;
916
+ this.lastLeaseAt = Date.now();
917
+ }
918
+ if (this.pendingStop && Date.now() - this.pendingStop.since > RESTART_VERDICT_MS)
919
+ this.settleStop();
920
+ if (this.ticking)
921
+ return;
922
+ this.ticking = true;
923
+ try {
924
+ const leaseFresh = Date.now() - this.lastLeaseAt < OFFLINE_SECONDS * 1000;
925
+ if (!leaseFresh) {
926
+ await this.stopApp("offline past the capture allowance");
927
+ return;
928
+ }
929
+ if (receipt && Date.now() >= this.nextConfigPoll)
930
+ await this.refreshConfig();
931
+ // `active` false: the session ended (submitted, time up); nothing starts again.
932
+ if (!this.config?.enabled || !this.config.accepted || !this.config.active)
933
+ return;
934
+ this.runnable ?? (this.runnable = appAvailable() && macTooOld() === null);
935
+ if (!this.socket && !this.starting && !this.stopping && this.runnable)
936
+ await this.startApp();
937
+ if (Date.now() - this.lastScan >= SCAN_MS && !this.scanning)
938
+ void this.scan();
939
+ }
940
+ finally {
941
+ this.ticking = false;
942
+ }
943
+ }
944
+ /** Every 5 s until consent, then every minute, so a changed audio switch reaches the app. */
945
+ async refreshConfig() {
946
+ this.nextConfigPoll = Date.now() + (this.config?.accepted ? 60000 : 5000);
947
+ let next;
948
+ try {
949
+ next = await fetchCaptureConfig(this.backendUrl, this.token);
950
+ }
951
+ catch {
952
+ return;
953
+ }
954
+ const before = this.config;
955
+ this.config = next;
956
+ if (!next || !next.enabled || !next.accepted) {
957
+ if (!next)
958
+ this.nextConfigPoll = Date.now() + 60000;
959
+ // Switched off (or production), or consent withdrawn: stop and keep nothing.
960
+ if (before?.accepted) {
961
+ await this.stopApp(next ? "consent withdrawn or capture switched off" : "capture switched off");
962
+ this.buffer.wipe();
963
+ }
964
+ return;
965
+ }
966
+ // Session ended: stop the app but keep the buffer, whose events from before the end still upload.
967
+ if (!next.active) {
968
+ await this.stopApp("capture session ended");
969
+ return;
970
+ }
971
+ // A changed audio switch or exclusion list reaches the running app.
972
+ if (before?.accepted && (before.audio !== next.audio || JSON.stringify(before.exclusions) !== JSON.stringify(next.exclusions)))
973
+ this.sendConfig();
974
+ }
975
+ sendConfig() {
976
+ // LITMUS_CAPTURE_NO_PROMPT=1 (local checks only): read permission state, never ask.
977
+ // `known`: the values the scrub redacts by name (the assessment token), so the app
978
+ // finds and blanks them on screen too. The socket is private to this user and session.
979
+ this.socket?.write(JSON.stringify({ cmd: "config", audio: this.config?.audio === true, exclusions: this.config?.exclusions ?? {},
980
+ known: this.known, prompt: process.env.LITMUS_CAPTURE_NO_PROMPT !== "1" }) + "\n");
981
+ }
982
+ async startApp() {
983
+ if (!this.releaseOwner) {
984
+ try {
985
+ this.releaseOwner = claimCaptureOwner();
986
+ }
987
+ catch (error) {
988
+ // Not started, not counted as a restart: the next tick asks again once the other session ends.
989
+ this.writeStatus({ running: false, error: error instanceof CaptureOwnedElsewhere ? "another assessment is recording this computer" : "could not claim the capture app" });
990
+ return;
991
+ }
992
+ }
993
+ const now = Date.now();
994
+ this.restarts = this.restarts.filter(at => now - at < 5 * 60000);
995
+ if (this.restarts.length >= 5) {
996
+ // Said once, so the reviewer and the candidate see the gap rather than a "restarting" that never comes.
997
+ if (!this.gaveUp) {
998
+ this.gaveUp = true;
999
+ this.record({ kind: "flag", data: { check: "capture_stopped", detail: "The capture app stopped 5 times in 5 minutes; it is tried again later." } });
1000
+ this.writeStatus({ running: false, error: "stopped repeatedly; trying again later" });
1001
+ }
1002
+ return;
1003
+ }
1004
+ this.gaveUp = false;
1005
+ this.restarts.push(now);
1006
+ this.starting = true;
1007
+ try {
1008
+ const target = installApp();
1009
+ if (!this.server)
1010
+ await this.listen();
1011
+ if (isMac) {
1012
+ // LaunchServices, not a child: macOS then attributes the permission
1013
+ // prompts and grants to the app's own bundle id, never to the terminal.
1014
+ execFileSync("open", ["-n", "-g", "-a", target, "--args", "--socket", this.address, "--session", this.session], { timeout: 15000, windowsHide: true });
1015
+ }
1016
+ else if (isLinux) {
1017
+ await this.linuxAccessibilityOn();
1018
+ this.child = spawn("python3", [target, "--socket", this.address, "--session", this.session], { windowsHide: true, stdio: "ignore" });
1019
+ this.child.on("exit", () => { this.child = undefined; });
1020
+ // A spawn failure (python3 gone) arrives as an event, not a throw; unhandled it would end the watcher.
1021
+ this.child.on("error", () => { this.child = undefined; });
1022
+ }
1023
+ else {
1024
+ this.child = spawn(target, ["--pipe", this.address, "--session", this.session], { windowsHide: true, stdio: "ignore" });
1025
+ this.child.on("exit", () => { this.child = undefined; });
1026
+ this.child.on("error", () => { this.child = undefined; });
1027
+ }
1028
+ // The app's hello arrives on the socket; give it a moment before retrying.
1029
+ const deadline = Date.now() + 15000;
1030
+ while (!this.socket && Date.now() < deadline)
1031
+ await new Promise(resolve => setTimeout(resolve, 200));
1032
+ if (!this.socket)
1033
+ throw new Error("Litmus Capture did not connect");
1034
+ }
1035
+ catch (error) {
1036
+ this.writeStatus({ running: false, error: error instanceof Error ? error.message : "could not start" });
1037
+ }
1038
+ finally {
1039
+ this.starting = false;
1040
+ }
1041
+ }
1042
+ /**
1043
+ * Linux: browsers and editors publish what they show to AT-SPI (the password-field
1044
+ * signal, the page address, on-screen text) only while the session's accessibility
1045
+ * switch is on. Turned on for the test, put back in stop().
1046
+ * shortcut: a crashed watcher leaves it on; harmless, but not restored.
1047
+ */
1048
+ async linuxAccessibilityOn() {
1049
+ if ((await run("gdbus", [...A11Y_STATUS, "org.freedesktop.DBus.Properties.Get", "org.a11y.Status", "IsEnabled"])).includes("false")) {
1050
+ await run("gdbus", [...A11Y_STATUS, "org.freedesktop.DBus.Properties.Set", "org.a11y.Status", "IsEnabled", "<true>"]);
1051
+ this.a11yRestore = true;
1052
+ }
1053
+ }
1054
+ listen() {
1055
+ const dir = isWin ? "" : mkdtempSync(path.join(os.tmpdir(), "litmus-cap-"));
1056
+ this.address = isWin ? `\\\\.\\pipe\\litmus-capture-${randomBytes(8).toString("hex")}` : path.join(dir, "s");
1057
+ this.server = net.createServer(socket => this.accept(socket));
1058
+ return new Promise((resolve, reject) => { this.server.once("error", reject); this.server.listen(this.address, () => resolve()); });
1059
+ }
1060
+ accept(socket) {
1061
+ let authed = false;
1062
+ let pending = "";
1063
+ socket.setEncoding("utf8");
1064
+ socket.on("data", chunk => {
1065
+ pending += chunk;
1066
+ let newline;
1067
+ while ((newline = pending.indexOf("\n")) >= 0) {
1068
+ const line = pending.slice(0, newline);
1069
+ pending = pending.slice(newline + 1);
1070
+ let event;
1071
+ try {
1072
+ event = JSON.parse(line);
1073
+ }
1074
+ catch {
1075
+ continue;
1076
+ }
1077
+ if (!authed) {
1078
+ // Only the app we launched knows this session's secret, and once shutdown has
1079
+ // begun a late launch must not connect and start capturing after it.
1080
+ if (event.kind !== "hello" || event.session !== this.session || this.closing || this.stopped) {
1081
+ socket.destroy();
1082
+ return;
1083
+ }
1084
+ authed = true;
1085
+ this.byeReason = undefined;
1086
+ this.socket?.destroy();
1087
+ this.socket = socket;
1088
+ this.appPid = typeof event.pid === "number" ? event.pid : undefined;
1089
+ this.sendConfig();
1090
+ this.record({ kind: "capture_state", data: { state: this.everStarted ? "resumed" : "started", reason: "app connected" } });
1091
+ this.everStarted = true;
1092
+ continue;
1093
+ }
1094
+ if (event.kind === "bye") {
1095
+ this.byeReason = typeof event.reason === "string" ? event.reason : "quit";
1096
+ continue;
1097
+ }
1098
+ if (event.kind === "status") {
1099
+ this.writeStatus({ running: true, permissions: event.data?.permissions, displays: event.data?.displays,
1100
+ restart: Array.isArray(event.data?.restart) ? event.data.restart.filter((name) => typeof name === "string") : undefined });
1101
+ continue;
1102
+ }
1103
+ if (event.kind === "keys" && !keepKeystrokes(event))
1104
+ continue;
1105
+ if (event.kind === "permission" && event.data) {
1106
+ const state = Object.fromEntries(Object.entries(event.data).filter((entry) => typeof entry[1] === "string"));
1107
+ if (this.pendingStop)
1108
+ this.settleStop(state);
1109
+ this.permissions = state;
1110
+ }
1111
+ this.record(event);
1112
+ }
1113
+ });
1114
+ socket.on("close", () => {
1115
+ if (this.socket !== socket)
1116
+ return;
1117
+ this.socket = undefined;
1118
+ if (!this.stopping && !this.stopped) {
1119
+ // macOS quits and reopens an app right after some permission grants;
1120
+ // that gap is shown but is not the candidate stopping capture.
1121
+ const relaunch = this.byeReason === "permission_relaunch";
1122
+ // Flagged once the restarted app says whether a permission changed (settleStop).
1123
+ if (!relaunch)
1124
+ this.pendingStop = { reason: this.byeReason ? "quit" : "killed or crashed", at: new Date().toISOString(), since: Date.now(), receipt: this.receipt };
1125
+ this.record({ kind: "capture_state", data: { state: "stopped", reason: relaunch ? "relaunched after a permission change" : "app exited" } });
1126
+ this.writeStatus({ running: false, error: "stopped; restarting" });
1127
+ }
1128
+ });
1129
+ socket.on("error", () => { });
1130
+ }
1131
+ async scan() {
1132
+ this.scanning = true;
1133
+ this.lastScan = Date.now();
1134
+ try {
1135
+ if (!this.vmChecked) {
1136
+ this.vmChecked = true;
1137
+ const vm = await detectVirtualMachine();
1138
+ if (vm)
1139
+ this.record({ kind: "flag", data: { check: "virtual_machine", detail: `Running in a virtual machine (${vm}).` } });
1140
+ }
1141
+ const text = await allProcessText();
1142
+ const rows = parseProcessRows(text, process.platform);
1143
+ // A listing that failed or timed out is not every app stopping at once.
1144
+ if (rows.length === 0)
1145
+ return;
1146
+ // detectTools keeps the candidate's own processes (same user, or session on Windows).
1147
+ const ai = new Set([...detectTools(text, process.platform, process.pid).aiTools, ...runningMatches(rows, DESKTOP_AI_APPS)]);
1148
+ for (const name of ai)
1149
+ if (!this.aiApps.has(name))
1150
+ this.record({ kind: "ai_app", app: name, data: { state: "started", name } });
1151
+ for (const name of this.aiApps)
1152
+ if (!ai.has(name))
1153
+ this.record({ kind: "ai_app", app: name, data: { state: "stopped", name } });
1154
+ this.aiApps = ai;
1155
+ for (const [check, patterns] of [["cheating_tool", CHEATING_TOOLS], ["remote_access", REMOTE_ACCESS_TOOLS]]) {
1156
+ const seen = runningMatches(rows.filter(row => !/litmus/i.test(row.command)), patterns);
1157
+ for (const name of seen) {
1158
+ const key = `${check}:${name}`;
1159
+ if (this.flagged.has(key))
1160
+ continue;
1161
+ this.flagged.add(key);
1162
+ this.record({ kind: "flag", app: name, data: { check, app: name, detail: `${name} was running.` } });
1163
+ }
1164
+ for (const key of [...this.flagged])
1165
+ if (key.startsWith(`${check}:`) && !seen.includes(key.slice(check.length + 1)))
1166
+ this.flagged.delete(key);
1167
+ }
1168
+ await this.scanServices();
1169
+ }
1170
+ catch { /* the next scan retries */ }
1171
+ finally {
1172
+ this.scanning = false;
1173
+ }
1174
+ }
1175
+ scanServices() {
1176
+ if (this.ipToHost.size === 0) {
1177
+ for (const host of IP_MATCHED_HOSTS)
1178
+ dns.resolve4(host, (error, ips) => { if (!error)
1179
+ for (const ip of ips)
1180
+ this.ipToHost.set(ip, host); });
1181
+ return Promise.resolve();
1182
+ }
1183
+ return new Promise(resolve => getConnections((error, stdout) => {
1184
+ if (error || !stdout)
1185
+ return resolve();
1186
+ resolvePidNames(names => {
1187
+ for (const line of stdout.split("\n")) {
1188
+ const connection = extractConnection(line);
1189
+ const host = connection && this.ipToHost.get(connection.ip);
1190
+ // Windows lists closed (TIME_WAIT) connections under PID 0, the idle process: no owner to name.
1191
+ if (!connection || !host || connection.pid === "0")
1192
+ continue;
1193
+ // lsof escapes spaces in names as \x20.
1194
+ const owner = (connection.owner || (connection.pid && names?.get(connection.pid)) || "unknown").replace(/\\x([0-9a-f]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
1195
+ const key = `${host}|${owner}`;
1196
+ if (Date.now() - (this.services.get(key) ?? 0) < AI_SERVICE_REEMIT_MS)
1197
+ continue;
1198
+ this.services.set(key, Date.now());
1199
+ this.record({ kind: "ai_service", app: owner, data: { host, owner } });
1200
+ }
1201
+ resolve();
1202
+ });
1203
+ }));
1204
+ }
1205
+ /** Upload one bounded batch; true when something was acknowledged. */
1206
+ async flush() {
1207
+ // One upload at a time; a caller arriving mid-upload waits for that one, so
1208
+ // the final drain at submit never deletes events still on their way.
1209
+ if (this.inflight)
1210
+ return this.inflight;
1211
+ this.inflight = this.upload().finally(() => { this.inflight = undefined; });
1212
+ return this.inflight;
1213
+ }
1214
+ async upload() {
1215
+ try {
1216
+ const generation = this.buffer.generation;
1217
+ const { values, ends } = this.buffer.read(4 * 1024 * 1024);
1218
+ if (!values.length)
1219
+ return false;
1220
+ const events = values;
1221
+ // Audio goes alone: the server transcribes it before answering.
1222
+ const audioAt = events.findIndex(event => event.type === "audio");
1223
+ const batch = audioAt === 0 ? events.slice(0, 1) : audioAt > 0 ? events.slice(0, audioAt) : events;
1224
+ const batchEnd = ends[batch.length - 1];
1225
+ const response = await fetch(`${this.backendUrl}/cli/laptop-capture/events`, {
1226
+ method: "POST", redirect: "error", signal: AbortSignal.timeout(audioAt === 0 ? 120000 : 30000),
1227
+ headers: { Authorization: `Bearer ${this.token}`, "Content-Type": "application/json", "X-Litmus-CLI-Version": CLI_VERSION },
1228
+ body: JSON.stringify({ events: batch }),
1229
+ });
1230
+ if (response.status === 404) {
1231
+ // The lane was switched off or this is production: keep nothing.
1232
+ this.config = null;
1233
+ await this.stopApp("capture switched off");
1234
+ this.buffer.wipe();
1235
+ return false;
1236
+ }
1237
+ if (!response.ok)
1238
+ return false;
1239
+ this.buffer.advance(batchEnd, generation);
1240
+ return true;
1241
+ }
1242
+ catch {
1243
+ return false;
1244
+ }
1245
+ }
1246
+ /**
1247
+ * Flags the last app stop: a permission switched off is "Permission turned off", a
1248
+ * permission switched on was macOS reopening the app (no flag), anything else, or no
1249
+ * app back in time (`after` undefined), is the app stopping.
1250
+ */
1251
+ settleStop(after) {
1252
+ const stop = this.pendingStop;
1253
+ if (!stop)
1254
+ return;
1255
+ this.pendingStop = undefined;
1256
+ const { revoked, granted } = after ? restartVerdict(this.permissions, after) : { revoked: [], granted: false };
1257
+ for (const channel of revoked) {
1258
+ this.record({ kind: "flag", ts: stop.at, data: { check: "permission_revoked", detail: `${PERMISSION_NAMES[channel] ?? channel} was turned off for Litmus Capture during the test; macOS restarted the app.` } }, stop.receipt);
1259
+ }
1260
+ if (revoked.length === 0 && !granted) {
1261
+ this.record({ kind: "flag", ts: stop.at, data: { check: "capture_stopped", detail: `The capture app stopped during the test (${stop.reason}); restarting it.` } }, stop.receipt);
1262
+ }
1263
+ }
1264
+ async stopApp(reason) {
1265
+ if (!this.socket && !this.child && !this.appPid)
1266
+ return;
1267
+ this.stopping = true;
1268
+ try {
1269
+ this.record({ kind: "capture_state", data: { state: "stopped", reason } });
1270
+ try {
1271
+ this.socket?.write(JSON.stringify({ cmd: "stop" }) + "\n");
1272
+ }
1273
+ catch { /* already gone */ }
1274
+ const deadline = Date.now() + 5000;
1275
+ while (this.socket && Date.now() < deadline)
1276
+ await new Promise(resolve => setTimeout(resolve, 100));
1277
+ this.socket?.destroy();
1278
+ this.socket = undefined;
1279
+ if (this.appPid) {
1280
+ try {
1281
+ process.kill(this.appPid);
1282
+ }
1283
+ catch { /* exited */ }
1284
+ }
1285
+ this.child?.kill();
1286
+ // Wait for it to be gone, so its files can be removed (Windows locks a running exe).
1287
+ const gone = Date.now() + 5000;
1288
+ while (this.appPid && Date.now() < gone) {
1289
+ try {
1290
+ process.kill(this.appPid, 0);
1291
+ }
1292
+ catch {
1293
+ break;
1294
+ }
1295
+ await new Promise(resolve => setTimeout(resolve, 100));
1296
+ }
1297
+ this.child = undefined;
1298
+ this.appPid = undefined;
1299
+ this.writeStatus({ running: false });
1300
+ }
1301
+ finally {
1302
+ this.stopping = false;
1303
+ }
1304
+ }
1305
+ /**
1306
+ * Stop for good. `retire` (submit, time up, lease ended) also uploads what is
1307
+ * left, removes the app and resets its macOS permissions; either way the
1308
+ * encrypted buffer is deleted, since its key dies with this process.
1309
+ */
1310
+ async stop(retire) {
1311
+ if (this.stopped || this.closing)
1312
+ return;
1313
+ // No new tick starts, and one already running (it may be starting the app) ends
1314
+ // first, so the app cannot be launched after stopApp has returned.
1315
+ this.closing = true;
1316
+ // A tick is bounded (config fetch 5 s, app start 15 s), so this wait ends.
1317
+ while (this.ticking)
1318
+ await new Promise(resolve => setTimeout(resolve, 100));
1319
+ this.settleStop();
1320
+ await this.stopApp(retire ? "session ended" : "watcher stopped");
1321
+ this.stopped = true;
1322
+ if (retire) {
1323
+ // Wait for any upload already running (an audio chunk waits on transcription),
1324
+ // then drain the rest under a deadline of its own, so nothing behind a slow
1325
+ // upload is deleted unsent.
1326
+ if (this.inflight)
1327
+ await this.inflight;
1328
+ // A failed upload (a blip at submit) is tried again until the deadline; only an
1329
+ // empty buffer, or the lane switched off (which wipes it), ends the drain early.
1330
+ const deadline = Date.now() + 180000;
1331
+ while (Date.now() < deadline && !this.buffer.empty) {
1332
+ if (!await this.flush())
1333
+ await new Promise(resolve => setTimeout(resolve, 2000));
1334
+ }
1335
+ }
1336
+ this.buffer.wipe();
1337
+ if (this.a11yRestore) {
1338
+ await run("gdbus", [...A11Y_STATUS, "org.freedesktop.DBus.Properties.Set", "org.a11y.Status", "IsEnabled", "<false>"]);
1339
+ this.a11yRestore = false;
1340
+ }
1341
+ this.server?.close();
1342
+ if (this.address && !isWin)
1343
+ rmSync(path.dirname(this.address), { recursive: true, force: true });
1344
+ rmSync(path.join(this.stateDir, STATUS_FILE), { force: true });
1345
+ if (retire && this.everStarted) {
1346
+ try {
1347
+ uninstallApp();
1348
+ }
1349
+ catch (error) {
1350
+ process.stderr.write(`[laptop capture] could not remove the capture app: ${error.code ?? "error"}\n`);
1351
+ }
1352
+ }
1353
+ this.releaseOwner?.();
1354
+ this.releaseOwner = undefined;
1355
+ }
1356
+ }
1357
+ //# sourceMappingURL=laptop-capture.js.map