@rarog/server 0.0.0-stage → 1.0.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 (1519) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +160 -2
  3. package/THIRD-PARTY-NOTICES +2110 -0
  4. package/bin/rarog.mjs +146 -0
  5. package/node_modules/@rarog/shared/LICENSE +21 -0
  6. package/node_modules/@rarog/shared/package.json +43 -0
  7. package/node_modules/@rarog/shared/src/data-dir.d.mts +49 -0
  8. package/node_modules/@rarog/shared/src/data-dir.mjs +120 -0
  9. package/node_modules/@rarog/shared/src/decode.js +335 -0
  10. package/node_modules/@rarog/shared/src/iroh.js +13 -0
  11. package/node_modules/@rarog/shared/src/notify-copy.js +12 -0
  12. package/node_modules/@rarog/shared/src/pairing-link.js +246 -0
  13. package/node_modules/@rarog/shared/src/protocol/activity.js +42 -0
  14. package/node_modules/@rarog/shared/src/protocol/attachments.js +192 -0
  15. package/node_modules/@rarog/shared/src/protocol/background.js +89 -0
  16. package/node_modules/@rarog/shared/src/protocol/commands.js +34 -0
  17. package/node_modules/@rarog/shared/src/protocol/consent.js +28 -0
  18. package/node_modules/@rarog/shared/src/protocol/dictation.js +23 -0
  19. package/node_modules/@rarog/shared/src/protocol/diff.js +78 -0
  20. package/node_modules/@rarog/shared/src/protocol/directories.js +44 -0
  21. package/node_modules/@rarog/shared/src/protocol/git.js +23 -0
  22. package/node_modules/@rarog/shared/src/protocol/herdr.js +23 -0
  23. package/node_modules/@rarog/shared/src/protocol/model.js +214 -0
  24. package/node_modules/@rarog/shared/src/protocol/notes.js +91 -0
  25. package/node_modules/@rarog/shared/src/protocol/resume.js +57 -0
  26. package/node_modules/@rarog/shared/src/protocol/terminal.js +259 -0
  27. package/node_modules/@rarog/shared/src/protocol.js +865 -0
  28. package/node_modules/@rarog/shared/src/relay-auth.js +231 -0
  29. package/node_modules/@rarog/shared/src/relay.js +103 -0
  30. package/node_modules/@rarog/shared/src/rest.js +804 -0
  31. package/node_modules/@rarog/shared/src/sentences/commands.js +203 -0
  32. package/node_modules/@rarog/shared/src/sentences/demo.js +10 -0
  33. package/node_modules/@rarog/shared/src/sentences/dialogs.js +103 -0
  34. package/node_modules/@rarog/shared/src/sentences/herdr.js +111 -0
  35. package/node_modules/@rarog/shared/src/sentences/index.js +362 -0
  36. package/node_modules/@rarog/shared/src/sentences/model.js +73 -0
  37. package/node_modules/@rarog/shared/src/sentences/push.js +56 -0
  38. package/node_modules/@rarog/shared/src/sentences/rest.js +127 -0
  39. package/node_modules/@rarog/shared/src/sentences/restart.js +71 -0
  40. package/node_modules/@rarog/shared/src/sentences/session.js +133 -0
  41. package/node_modules/@rarog/shared/src/sentences/state.js +15 -0
  42. package/node_modules/@rarog/shared/src/sentences/term.js +34 -0
  43. package/node_modules/@rarog/shared/src/sentences/transcript.js +24 -0
  44. package/node_modules/@rarog/shared/src/sentences/uploads.js +32 -0
  45. package/node_modules/@rarog/shared/src/workflow-phases.js +45 -0
  46. package/node_modules/ansi-regex/index.d.ts +37 -0
  47. package/node_modules/ansi-regex/index.js +10 -0
  48. package/node_modules/ansi-regex/license +9 -0
  49. package/node_modules/ansi-regex/package.json +55 -0
  50. package/node_modules/ansi-regex/readme.md +78 -0
  51. package/node_modules/ansi-styles/index.d.ts +345 -0
  52. package/node_modules/ansi-styles/index.js +163 -0
  53. package/node_modules/ansi-styles/license +9 -0
  54. package/node_modules/ansi-styles/package.json +56 -0
  55. package/node_modules/ansi-styles/readme.md +152 -0
  56. package/node_modules/camelcase/index.d.ts +63 -0
  57. package/node_modules/camelcase/index.js +76 -0
  58. package/node_modules/camelcase/license +9 -0
  59. package/node_modules/camelcase/package.json +43 -0
  60. package/node_modules/camelcase/readme.md +99 -0
  61. package/node_modules/cliui/LICENSE.txt +14 -0
  62. package/node_modules/cliui/README.md +115 -0
  63. package/node_modules/cliui/index.js +354 -0
  64. package/node_modules/cliui/package.json +65 -0
  65. package/node_modules/color-convert/LICENSE +21 -0
  66. package/node_modules/color-convert/README.md +68 -0
  67. package/node_modules/color-convert/conversions.js +839 -0
  68. package/node_modules/color-convert/index.js +81 -0
  69. package/node_modules/color-convert/package.json +48 -0
  70. package/node_modules/color-convert/route.js +97 -0
  71. package/node_modules/color-name/LICENSE +8 -0
  72. package/node_modules/color-name/README.md +11 -0
  73. package/node_modules/color-name/index.js +152 -0
  74. package/node_modules/color-name/package.json +28 -0
  75. package/node_modules/decamelize/index.js +13 -0
  76. package/node_modules/decamelize/license +21 -0
  77. package/node_modules/decamelize/package.json +38 -0
  78. package/node_modules/decamelize/readme.md +48 -0
  79. package/node_modules/dijkstrajs/.travis.yml +4 -0
  80. package/node_modules/dijkstrajs/CONTRIBUTING.md +8 -0
  81. package/node_modules/dijkstrajs/LICENSE.md +19 -0
  82. package/node_modules/dijkstrajs/README.md +18 -0
  83. package/node_modules/dijkstrajs/dijkstra.js +165 -0
  84. package/node_modules/dijkstrajs/package.json +60 -0
  85. package/node_modules/dijkstrajs/test/dijkstra.test.js +96 -0
  86. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  87. package/node_modules/emoji-regex/README.md +73 -0
  88. package/node_modules/emoji-regex/es2015/index.js +6 -0
  89. package/node_modules/emoji-regex/es2015/text.js +6 -0
  90. package/node_modules/emoji-regex/index.d.ts +23 -0
  91. package/node_modules/emoji-regex/index.js +6 -0
  92. package/node_modules/emoji-regex/package.json +50 -0
  93. package/node_modules/emoji-regex/text.js +6 -0
  94. package/node_modules/find-up/index.d.ts +137 -0
  95. package/node_modules/find-up/index.js +89 -0
  96. package/node_modules/find-up/license +9 -0
  97. package/node_modules/find-up/package.json +53 -0
  98. package/node_modules/find-up/readme.md +156 -0
  99. package/node_modules/get-caller-file/LICENSE.md +6 -0
  100. package/node_modules/get-caller-file/README.md +41 -0
  101. package/node_modules/get-caller-file/index.d.ts +2 -0
  102. package/node_modules/get-caller-file/index.js +22 -0
  103. package/node_modules/get-caller-file/index.js.map +1 -0
  104. package/node_modules/get-caller-file/package.json +42 -0
  105. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  106. package/node_modules/is-fullwidth-code-point/index.js +50 -0
  107. package/node_modules/is-fullwidth-code-point/license +9 -0
  108. package/node_modules/is-fullwidth-code-point/package.json +42 -0
  109. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  110. package/node_modules/locate-path/index.d.ts +83 -0
  111. package/node_modules/locate-path/index.js +65 -0
  112. package/node_modules/locate-path/license +9 -0
  113. package/node_modules/locate-path/package.json +45 -0
  114. package/node_modules/locate-path/readme.md +122 -0
  115. package/node_modules/p-limit/index.d.ts +38 -0
  116. package/node_modules/p-limit/index.js +57 -0
  117. package/node_modules/p-limit/license +9 -0
  118. package/node_modules/p-limit/package.json +52 -0
  119. package/node_modules/p-limit/readme.md +101 -0
  120. package/node_modules/p-locate/index.d.ts +64 -0
  121. package/node_modules/p-locate/index.js +52 -0
  122. package/node_modules/p-locate/license +9 -0
  123. package/node_modules/p-locate/package.json +53 -0
  124. package/node_modules/p-locate/readme.md +90 -0
  125. package/node_modules/p-try/index.d.ts +39 -0
  126. package/node_modules/p-try/index.js +9 -0
  127. package/node_modules/p-try/license +9 -0
  128. package/node_modules/p-try/package.json +42 -0
  129. package/node_modules/p-try/readme.md +58 -0
  130. package/node_modules/path-exists/index.d.ts +28 -0
  131. package/node_modules/path-exists/index.js +23 -0
  132. package/node_modules/path-exists/license +9 -0
  133. package/node_modules/path-exists/package.json +39 -0
  134. package/node_modules/path-exists/readme.md +52 -0
  135. package/node_modules/pngjs/.eslintignore +2 -0
  136. package/node_modules/pngjs/.eslintrc.json +19 -0
  137. package/node_modules/pngjs/.prettierignore +3 -0
  138. package/node_modules/pngjs/LICENSE +20 -0
  139. package/node_modules/pngjs/README.md +429 -0
  140. package/node_modules/pngjs/browser.js +16096 -0
  141. package/node_modules/pngjs/coverage/lcov-report/base.css +354 -0
  142. package/node_modules/pngjs/coverage/lcov-report/bitmapper.js.html +881 -0
  143. package/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +554 -0
  144. package/node_modules/pngjs/coverage/lcov-report/block-navigation.js +77 -0
  145. package/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +647 -0
  146. package/node_modules/pngjs/coverage/lcov-report/constants.js.html +176 -0
  147. package/node_modules/pngjs/coverage/lcov-report/crc.js.html +200 -0
  148. package/node_modules/pngjs/coverage/lcov-report/favicon.png +0 -0
  149. package/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +593 -0
  150. package/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +152 -0
  151. package/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +143 -0
  152. package/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +611 -0
  153. package/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +359 -0
  154. package/node_modules/pngjs/coverage/lcov-report/index.html +426 -0
  155. package/node_modules/pngjs/coverage/lcov-report/interlace.js.html +365 -0
  156. package/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +230 -0
  157. package/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +248 -0
  158. package/node_modules/pngjs/coverage/lcov-report/packer.js.html +467 -0
  159. package/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +128 -0
  160. package/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +575 -0
  161. package/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +404 -0
  162. package/node_modules/pngjs/coverage/lcov-report/parser.js.html +950 -0
  163. package/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +116 -0
  164. package/node_modules/pngjs/coverage/lcov-report/png.js.html +662 -0
  165. package/node_modules/pngjs/coverage/lcov-report/prettify.css +101 -0
  166. package/node_modules/pngjs/coverage/lcov-report/prettify.js +1007 -0
  167. package/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  168. package/node_modules/pngjs/coverage/lcov-report/sorter.js +169 -0
  169. package/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +584 -0
  170. package/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +215 -0
  171. package/node_modules/pngjs/coverage/lcov.info +2177 -0
  172. package/node_modules/pngjs/lib/bitmapper.js +267 -0
  173. package/node_modules/pngjs/lib/bitpacker.js +158 -0
  174. package/node_modules/pngjs/lib/chunkstream.js +189 -0
  175. package/node_modules/pngjs/lib/constants.js +32 -0
  176. package/node_modules/pngjs/lib/crc.js +40 -0
  177. package/node_modules/pngjs/lib/filter-pack.js +171 -0
  178. package/node_modules/pngjs/lib/filter-parse-async.js +24 -0
  179. package/node_modules/pngjs/lib/filter-parse-sync.js +21 -0
  180. package/node_modules/pngjs/lib/filter-parse.js +177 -0
  181. package/node_modules/pngjs/lib/format-normaliser.js +93 -0
  182. package/node_modules/pngjs/lib/interlace.js +95 -0
  183. package/node_modules/pngjs/lib/packer-async.js +50 -0
  184. package/node_modules/pngjs/lib/packer-sync.js +56 -0
  185. package/node_modules/pngjs/lib/packer.js +129 -0
  186. package/node_modules/pngjs/lib/paeth-predictor.js +16 -0
  187. package/node_modules/pngjs/lib/parser-async.js +165 -0
  188. package/node_modules/pngjs/lib/parser-sync.js +108 -0
  189. package/node_modules/pngjs/lib/parser.js +290 -0
  190. package/node_modules/pngjs/lib/png-sync.js +12 -0
  191. package/node_modules/pngjs/lib/png.js +194 -0
  192. package/node_modules/pngjs/lib/sync-inflate.js +168 -0
  193. package/node_modules/pngjs/lib/sync-reader.js +45 -0
  194. package/node_modules/pngjs/package.json +73 -0
  195. package/node_modules/qrcode/README.md +770 -0
  196. package/node_modules/qrcode/bin/qrcode +159 -0
  197. package/node_modules/qrcode/helper/to-sjis-browser.js +2 -0
  198. package/node_modules/qrcode/helper/to-sjis.js +105 -0
  199. package/node_modules/qrcode/lib/browser.js +76 -0
  200. package/node_modules/qrcode/lib/can-promise.js +7 -0
  201. package/node_modules/qrcode/lib/core/alignment-pattern.js +83 -0
  202. package/node_modules/qrcode/lib/core/alphanumeric-data.js +59 -0
  203. package/node_modules/qrcode/lib/core/bit-buffer.js +37 -0
  204. package/node_modules/qrcode/lib/core/bit-matrix.js +65 -0
  205. package/node_modules/qrcode/lib/core/byte-data.js +30 -0
  206. package/node_modules/qrcode/lib/core/error-correction-code.js +135 -0
  207. package/node_modules/qrcode/lib/core/error-correction-level.js +50 -0
  208. package/node_modules/qrcode/lib/core/finder-pattern.js +22 -0
  209. package/node_modules/qrcode/lib/core/format-info.js +29 -0
  210. package/node_modules/qrcode/lib/core/galois-field.js +69 -0
  211. package/node_modules/qrcode/lib/core/kanji-data.js +54 -0
  212. package/node_modules/qrcode/lib/core/mask-pattern.js +234 -0
  213. package/node_modules/qrcode/lib/core/mode.js +167 -0
  214. package/node_modules/qrcode/lib/core/numeric-data.js +43 -0
  215. package/node_modules/qrcode/lib/core/polynomial.js +62 -0
  216. package/node_modules/qrcode/lib/core/qrcode.js +495 -0
  217. package/node_modules/qrcode/lib/core/reed-solomon-encoder.js +56 -0
  218. package/node_modules/qrcode/lib/core/regex.js +31 -0
  219. package/node_modules/qrcode/lib/core/segments.js +330 -0
  220. package/node_modules/qrcode/lib/core/utils.js +63 -0
  221. package/node_modules/qrcode/lib/core/version-check.js +9 -0
  222. package/node_modules/qrcode/lib/core/version.js +163 -0
  223. package/node_modules/qrcode/lib/index.js +12 -0
  224. package/node_modules/qrcode/lib/renderer/canvas.js +63 -0
  225. package/node_modules/qrcode/lib/renderer/png.js +78 -0
  226. package/node_modules/qrcode/lib/renderer/svg-tag.js +81 -0
  227. package/node_modules/qrcode/lib/renderer/svg.js +19 -0
  228. package/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +85 -0
  229. package/node_modules/qrcode/lib/renderer/terminal/terminal.js +49 -0
  230. package/node_modules/qrcode/lib/renderer/terminal.js +9 -0
  231. package/node_modules/qrcode/lib/renderer/utf8.js +71 -0
  232. package/node_modules/qrcode/lib/renderer/utils.js +99 -0
  233. package/node_modules/qrcode/lib/server.js +138 -0
  234. package/node_modules/qrcode/license +10 -0
  235. package/node_modules/qrcode/package.json +77 -0
  236. package/node_modules/require-directory/.jshintrc +67 -0
  237. package/node_modules/require-directory/.npmignore +1 -0
  238. package/node_modules/require-directory/.travis.yml +3 -0
  239. package/node_modules/require-directory/LICENSE +22 -0
  240. package/node_modules/require-directory/README.markdown +184 -0
  241. package/node_modules/require-directory/index.js +86 -0
  242. package/node_modules/require-directory/package.json +40 -0
  243. package/node_modules/require-main-filename/LICENSE.txt +14 -0
  244. package/node_modules/require-main-filename/README.md +26 -0
  245. package/node_modules/require-main-filename/index.js +18 -0
  246. package/node_modules/require-main-filename/package.json +35 -0
  247. package/node_modules/set-blocking/LICENSE.txt +14 -0
  248. package/node_modules/set-blocking/README.md +31 -0
  249. package/node_modules/set-blocking/index.js +7 -0
  250. package/node_modules/set-blocking/package.json +42 -0
  251. package/node_modules/string-width/index.d.ts +29 -0
  252. package/node_modules/string-width/index.js +47 -0
  253. package/node_modules/string-width/license +9 -0
  254. package/node_modules/string-width/package.json +56 -0
  255. package/node_modules/string-width/readme.md +50 -0
  256. package/node_modules/strip-ansi/index.d.ts +17 -0
  257. package/node_modules/strip-ansi/index.js +4 -0
  258. package/node_modules/strip-ansi/license +9 -0
  259. package/node_modules/strip-ansi/package.json +54 -0
  260. package/node_modules/strip-ansi/readme.md +46 -0
  261. package/node_modules/which-module/LICENSE +13 -0
  262. package/node_modules/which-module/README.md +58 -0
  263. package/node_modules/which-module/index.js +9 -0
  264. package/node_modules/which-module/package.json +41 -0
  265. package/node_modules/wrap-ansi/index.js +186 -0
  266. package/node_modules/wrap-ansi/license +9 -0
  267. package/node_modules/wrap-ansi/package.json +61 -0
  268. package/node_modules/wrap-ansi/readme.md +97 -0
  269. package/node_modules/ws/LICENSE +20 -0
  270. package/node_modules/ws/README.md +548 -0
  271. package/node_modules/ws/browser.js +8 -0
  272. package/node_modules/ws/index.js +22 -0
  273. package/node_modules/ws/lib/buffer-util.js +131 -0
  274. package/node_modules/ws/lib/constants.js +19 -0
  275. package/node_modules/ws/lib/event-target.js +292 -0
  276. package/node_modules/ws/lib/extension.js +203 -0
  277. package/node_modules/ws/lib/limiter.js +55 -0
  278. package/node_modules/ws/lib/permessage-deflate.js +530 -0
  279. package/node_modules/ws/lib/receiver.js +743 -0
  280. package/node_modules/ws/lib/sender.js +607 -0
  281. package/node_modules/ws/lib/stream.js +161 -0
  282. package/node_modules/ws/lib/subprotocol.js +62 -0
  283. package/node_modules/ws/lib/validation.js +152 -0
  284. package/node_modules/ws/lib/websocket-server.js +562 -0
  285. package/node_modules/ws/lib/websocket.js +1407 -0
  286. package/node_modules/ws/package.json +74 -0
  287. package/node_modules/ws/wrapper.mjs +21 -0
  288. package/node_modules/y18n/LICENSE +13 -0
  289. package/node_modules/y18n/README.md +109 -0
  290. package/node_modules/y18n/index.js +188 -0
  291. package/node_modules/y18n/package.json +39 -0
  292. package/node_modules/yargs/LICENSE +21 -0
  293. package/node_modules/yargs/README.md +140 -0
  294. package/node_modules/yargs/build/lib/apply-extends.d.ts +2 -0
  295. package/node_modules/yargs/build/lib/apply-extends.js +65 -0
  296. package/node_modules/yargs/build/lib/argsert.d.ts +2 -0
  297. package/node_modules/yargs/build/lib/argsert.js +65 -0
  298. package/node_modules/yargs/build/lib/command.d.ts +64 -0
  299. package/node_modules/yargs/build/lib/command.js +416 -0
  300. package/node_modules/yargs/build/lib/common-types.d.ts +36 -0
  301. package/node_modules/yargs/build/lib/common-types.js +25 -0
  302. package/node_modules/yargs/build/lib/completion-templates.d.ts +2 -0
  303. package/node_modules/yargs/build/lib/completion-templates.js +50 -0
  304. package/node_modules/yargs/build/lib/completion.d.ts +21 -0
  305. package/node_modules/yargs/build/lib/completion.js +135 -0
  306. package/node_modules/yargs/build/lib/is-promise.d.ts +1 -0
  307. package/node_modules/yargs/build/lib/is-promise.js +9 -0
  308. package/node_modules/yargs/build/lib/levenshtein.d.ts +1 -0
  309. package/node_modules/yargs/build/lib/levenshtein.js +58 -0
  310. package/node_modules/yargs/build/lib/middleware.d.ts +10 -0
  311. package/node_modules/yargs/build/lib/middleware.js +57 -0
  312. package/node_modules/yargs/build/lib/obj-filter.d.ts +1 -0
  313. package/node_modules/yargs/build/lib/obj-filter.js +14 -0
  314. package/node_modules/yargs/build/lib/parse-command.d.ts +11 -0
  315. package/node_modules/yargs/build/lib/parse-command.js +36 -0
  316. package/node_modules/yargs/build/lib/process-argv.d.ts +2 -0
  317. package/node_modules/yargs/build/lib/process-argv.js +31 -0
  318. package/node_modules/yargs/build/lib/usage.d.ts +49 -0
  319. package/node_modules/yargs/build/lib/usage.js +540 -0
  320. package/node_modules/yargs/build/lib/validation.d.ts +34 -0
  321. package/node_modules/yargs/build/lib/validation.js +330 -0
  322. package/node_modules/yargs/build/lib/yargs.d.ts +274 -0
  323. package/node_modules/yargs/build/lib/yargs.js +1190 -0
  324. package/node_modules/yargs/build/lib/yerror.d.ts +4 -0
  325. package/node_modules/yargs/build/lib/yerror.js +11 -0
  326. package/node_modules/yargs/index.js +40 -0
  327. package/node_modules/yargs/locales/be.json +46 -0
  328. package/node_modules/yargs/locales/de.json +46 -0
  329. package/node_modules/yargs/locales/en.json +51 -0
  330. package/node_modules/yargs/locales/es.json +46 -0
  331. package/node_modules/yargs/locales/fi.json +49 -0
  332. package/node_modules/yargs/locales/fr.json +53 -0
  333. package/node_modules/yargs/locales/hi.json +49 -0
  334. package/node_modules/yargs/locales/hu.json +46 -0
  335. package/node_modules/yargs/locales/id.json +50 -0
  336. package/node_modules/yargs/locales/it.json +46 -0
  337. package/node_modules/yargs/locales/ja.json +51 -0
  338. package/node_modules/yargs/locales/ko.json +49 -0
  339. package/node_modules/yargs/locales/nb.json +44 -0
  340. package/node_modules/yargs/locales/nl.json +49 -0
  341. package/node_modules/yargs/locales/nn.json +44 -0
  342. package/node_modules/yargs/locales/pirate.json +13 -0
  343. package/node_modules/yargs/locales/pl.json +49 -0
  344. package/node_modules/yargs/locales/pt.json +45 -0
  345. package/node_modules/yargs/locales/pt_BR.json +48 -0
  346. package/node_modules/yargs/locales/ru.json +46 -0
  347. package/node_modules/yargs/locales/th.json +46 -0
  348. package/node_modules/yargs/locales/tr.json +48 -0
  349. package/node_modules/yargs/locales/zh_CN.json +48 -0
  350. package/node_modules/yargs/locales/zh_TW.json +47 -0
  351. package/node_modules/yargs/package.json +92 -0
  352. package/node_modules/yargs/yargs.js +14 -0
  353. package/node_modules/yargs-parser/LICENSE.txt +14 -0
  354. package/node_modules/yargs-parser/README.md +449 -0
  355. package/node_modules/yargs-parser/index.js +1032 -0
  356. package/node_modules/yargs-parser/lib/tokenize-arg-string.js +40 -0
  357. package/node_modules/yargs-parser/package.json +46 -0
  358. package/node_modules/zod/LICENSE +21 -0
  359. package/node_modules/zod/README.md +191 -0
  360. package/node_modules/zod/index.cjs +33 -0
  361. package/node_modules/zod/index.d.cts +4 -0
  362. package/node_modules/zod/index.d.ts +4 -0
  363. package/node_modules/zod/index.js +4 -0
  364. package/node_modules/zod/locales/index.cjs +17 -0
  365. package/node_modules/zod/locales/index.d.cts +1 -0
  366. package/node_modules/zod/locales/index.d.ts +1 -0
  367. package/node_modules/zod/locales/index.js +1 -0
  368. package/node_modules/zod/locales/package.json +7 -0
  369. package/node_modules/zod/mini/index.cjs +32 -0
  370. package/node_modules/zod/mini/index.d.cts +3 -0
  371. package/node_modules/zod/mini/index.d.ts +3 -0
  372. package/node_modules/zod/mini/index.js +3 -0
  373. package/node_modules/zod/mini/package.json +7 -0
  374. package/node_modules/zod/package.json +135 -0
  375. package/node_modules/zod/src/index.ts +4 -0
  376. package/node_modules/zod/src/locales/index.ts +1 -0
  377. package/node_modules/zod/src/mini/index.ts +3 -0
  378. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  379. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  380. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  381. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  382. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  383. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  384. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  385. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  386. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  387. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  388. package/node_modules/zod/src/v3/errors.ts +13 -0
  389. package/node_modules/zod/src/v3/external.ts +6 -0
  390. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  391. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  392. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  393. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  394. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  395. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  396. package/node_modules/zod/src/v3/index.ts +4 -0
  397. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  398. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  399. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  400. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  401. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  402. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  403. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  404. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  405. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  406. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  407. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  408. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  409. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  410. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  411. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  412. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  413. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  414. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  415. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  416. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  417. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  418. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  419. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  420. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  421. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  422. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  423. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  424. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  425. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  426. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  427. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  428. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  429. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  430. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  431. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  432. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  433. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  434. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  435. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  436. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  437. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  438. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  439. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  440. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  441. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  442. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  443. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  444. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  445. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  446. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  447. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  448. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  449. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  450. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  451. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  452. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  453. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  454. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  455. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  456. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  457. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  458. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  459. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  460. package/node_modules/zod/src/v3/types.ts +5138 -0
  461. package/node_modules/zod/src/v4/classic/checks.ts +32 -0
  462. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  463. package/node_modules/zod/src/v4/classic/compat.ts +70 -0
  464. package/node_modules/zod/src/v4/classic/errors.ts +82 -0
  465. package/node_modules/zod/src/v4/classic/external.ts +52 -0
  466. package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
  467. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  468. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  469. package/node_modules/zod/src/v4/classic/parse.ts +82 -0
  470. package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
  471. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  472. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
  473. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  474. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
  475. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  476. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  477. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  478. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  479. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  480. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
  481. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  482. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  483. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
  484. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  485. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  486. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  487. package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
  488. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  489. package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
  490. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  491. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  492. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
  493. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
  494. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  495. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
  496. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  497. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  498. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  499. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  500. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
  501. package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
  502. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  503. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
  504. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  505. package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
  506. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
  507. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
  508. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
  509. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  510. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  511. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  512. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  513. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  514. package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
  515. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  516. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  517. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  518. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  519. package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
  520. package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
  521. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
  522. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
  523. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  524. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  525. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  526. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
  527. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  528. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  529. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  530. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  531. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  532. package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
  533. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
  534. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
  535. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  536. package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
  537. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  538. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  539. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
  540. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
  541. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
  542. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  543. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
  544. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  545. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
  546. package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
  547. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  548. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  549. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  550. package/node_modules/zod/src/v4/core/api.ts +1823 -0
  551. package/node_modules/zod/src/v4/core/checks.ts +1293 -0
  552. package/node_modules/zod/src/v4/core/config.ts +15 -0
  553. package/node_modules/zod/src/v4/core/core.ts +153 -0
  554. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  555. package/node_modules/zod/src/v4/core/errors.ts +455 -0
  556. package/node_modules/zod/src/v4/core/index.ts +16 -0
  557. package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
  558. package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
  559. package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
  560. package/node_modules/zod/src/v4/core/parse.ts +195 -0
  561. package/node_modules/zod/src/v4/core/regexes.ts +190 -0
  562. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  563. package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
  564. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  565. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  566. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  567. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  568. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
  569. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  570. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  571. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  572. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  573. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  574. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  575. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  576. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  577. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  578. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  579. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  580. package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
  581. package/node_modules/zod/src/v4/core/util.ts +983 -0
  582. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  583. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  584. package/node_modules/zod/src/v4/index.ts +4 -0
  585. package/node_modules/zod/src/v4/locales/ar.ts +115 -0
  586. package/node_modules/zod/src/v4/locales/az.ts +111 -0
  587. package/node_modules/zod/src/v4/locales/be.ts +176 -0
  588. package/node_modules/zod/src/v4/locales/bg.ts +128 -0
  589. package/node_modules/zod/src/v4/locales/ca.ts +116 -0
  590. package/node_modules/zod/src/v4/locales/cs.ts +118 -0
  591. package/node_modules/zod/src/v4/locales/da.ts +123 -0
  592. package/node_modules/zod/src/v4/locales/de.ts +116 -0
  593. package/node_modules/zod/src/v4/locales/el.ts +121 -0
  594. package/node_modules/zod/src/v4/locales/en.ts +123 -0
  595. package/node_modules/zod/src/v4/locales/eo.ts +118 -0
  596. package/node_modules/zod/src/v4/locales/es.ts +141 -0
  597. package/node_modules/zod/src/v4/locales/fa.ts +126 -0
  598. package/node_modules/zod/src/v4/locales/fi.ts +121 -0
  599. package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
  600. package/node_modules/zod/src/v4/locales/fr.ts +132 -0
  601. package/node_modules/zod/src/v4/locales/he.ts +246 -0
  602. package/node_modules/zod/src/v4/locales/hr.ts +131 -0
  603. package/node_modules/zod/src/v4/locales/hu.ts +117 -0
  604. package/node_modules/zod/src/v4/locales/hy.ts +164 -0
  605. package/node_modules/zod/src/v4/locales/id.ts +115 -0
  606. package/node_modules/zod/src/v4/locales/index.ts +52 -0
  607. package/node_modules/zod/src/v4/locales/is.ts +119 -0
  608. package/node_modules/zod/src/v4/locales/it.ts +116 -0
  609. package/node_modules/zod/src/v4/locales/ja.ts +114 -0
  610. package/node_modules/zod/src/v4/locales/ka.ts +123 -0
  611. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  612. package/node_modules/zod/src/v4/locales/km.ts +119 -0
  613. package/node_modules/zod/src/v4/locales/ko.ts +121 -0
  614. package/node_modules/zod/src/v4/locales/lt.ts +239 -0
  615. package/node_modules/zod/src/v4/locales/mk.ts +118 -0
  616. package/node_modules/zod/src/v4/locales/ms.ts +115 -0
  617. package/node_modules/zod/src/v4/locales/nl.ts +121 -0
  618. package/node_modules/zod/src/v4/locales/no.ts +116 -0
  619. package/node_modules/zod/src/v4/locales/ota.ts +117 -0
  620. package/node_modules/zod/src/v4/locales/pl.ts +118 -0
  621. package/node_modules/zod/src/v4/locales/ps.ts +126 -0
  622. package/node_modules/zod/src/v4/locales/pt.ts +116 -0
  623. package/node_modules/zod/src/v4/locales/ro.ts +129 -0
  624. package/node_modules/zod/src/v4/locales/ru.ts +176 -0
  625. package/node_modules/zod/src/v4/locales/sl.ts +118 -0
  626. package/node_modules/zod/src/v4/locales/sv.ts +119 -0
  627. package/node_modules/zod/src/v4/locales/ta.ts +118 -0
  628. package/node_modules/zod/src/v4/locales/th.ts +119 -0
  629. package/node_modules/zod/src/v4/locales/tr.ts +111 -0
  630. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  631. package/node_modules/zod/src/v4/locales/uk.ts +117 -0
  632. package/node_modules/zod/src/v4/locales/ur.ts +119 -0
  633. package/node_modules/zod/src/v4/locales/uz.ts +117 -0
  634. package/node_modules/zod/src/v4/locales/vi.ts +117 -0
  635. package/node_modules/zod/src/v4/locales/yo.ts +124 -0
  636. package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
  637. package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
  638. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  639. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  640. package/node_modules/zod/src/v4/mini/external.ts +41 -0
  641. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  642. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  643. package/node_modules/zod/src/v4/mini/parse.ts +14 -0
  644. package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
  645. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
  646. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  647. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  648. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  649. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
  650. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  651. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  652. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
  653. package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
  654. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  655. package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
  656. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  657. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
  658. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  659. package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
  660. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  661. package/node_modules/zod/v3/ZodError.cjs +138 -0
  662. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  663. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  664. package/node_modules/zod/v3/ZodError.js +133 -0
  665. package/node_modules/zod/v3/errors.cjs +17 -0
  666. package/node_modules/zod/v3/errors.d.cts +5 -0
  667. package/node_modules/zod/v3/errors.d.ts +5 -0
  668. package/node_modules/zod/v3/errors.js +9 -0
  669. package/node_modules/zod/v3/external.cjs +22 -0
  670. package/node_modules/zod/v3/external.d.cts +6 -0
  671. package/node_modules/zod/v3/external.d.ts +6 -0
  672. package/node_modules/zod/v3/external.js +6 -0
  673. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  674. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  675. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  676. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  677. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  678. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  679. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  680. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  681. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  682. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  683. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  684. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  685. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  686. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  687. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  688. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  689. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  690. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  691. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  692. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  693. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  694. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  695. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  696. package/node_modules/zod/v3/helpers/util.js +133 -0
  697. package/node_modules/zod/v3/index.cjs +33 -0
  698. package/node_modules/zod/v3/index.d.cts +4 -0
  699. package/node_modules/zod/v3/index.d.ts +4 -0
  700. package/node_modules/zod/v3/index.js +4 -0
  701. package/node_modules/zod/v3/locales/en.cjs +112 -0
  702. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  703. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  704. package/node_modules/zod/v3/locales/en.js +109 -0
  705. package/node_modules/zod/v3/package.json +7 -0
  706. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  707. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  708. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  709. package/node_modules/zod/v3/standard-schema.js +1 -0
  710. package/node_modules/zod/v3/types.cjs +3777 -0
  711. package/node_modules/zod/v3/types.d.cts +1034 -0
  712. package/node_modules/zod/v3/types.d.ts +1034 -0
  713. package/node_modules/zod/v3/types.js +3695 -0
  714. package/node_modules/zod/v4/classic/checks.cjs +33 -0
  715. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  716. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  717. package/node_modules/zod/v4/classic/checks.js +1 -0
  718. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  719. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  720. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  721. package/node_modules/zod/v4/classic/coerce.js +17 -0
  722. package/node_modules/zod/v4/classic/compat.cjs +61 -0
  723. package/node_modules/zod/v4/classic/compat.d.cts +50 -0
  724. package/node_modules/zod/v4/classic/compat.d.ts +50 -0
  725. package/node_modules/zod/v4/classic/compat.js +31 -0
  726. package/node_modules/zod/v4/classic/errors.cjs +74 -0
  727. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  728. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  729. package/node_modules/zod/v4/classic/errors.js +48 -0
  730. package/node_modules/zod/v4/classic/external.cjs +73 -0
  731. package/node_modules/zod/v4/classic/external.d.cts +16 -0
  732. package/node_modules/zod/v4/classic/external.d.ts +16 -0
  733. package/node_modules/zod/v4/classic/external.js +20 -0
  734. package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
  735. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  736. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  737. package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
  738. package/node_modules/zod/v4/classic/index.cjs +33 -0
  739. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  740. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  741. package/node_modules/zod/v4/classic/index.js +4 -0
  742. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  743. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  744. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  745. package/node_modules/zod/v4/classic/iso.js +30 -0
  746. package/node_modules/zod/v4/classic/package.json +7 -0
  747. package/node_modules/zod/v4/classic/parse.cjs +41 -0
  748. package/node_modules/zod/v4/classic/parse.d.cts +31 -0
  749. package/node_modules/zod/v4/classic/parse.d.ts +31 -0
  750. package/node_modules/zod/v4/classic/parse.js +15 -0
  751. package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
  752. package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
  753. package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
  754. package/node_modules/zod/v4/classic/schemas.js +1395 -0
  755. package/node_modules/zod/v4/core/api.cjs +1227 -0
  756. package/node_modules/zod/v4/core/api.d.cts +325 -0
  757. package/node_modules/zod/v4/core/api.d.ts +325 -0
  758. package/node_modules/zod/v4/core/api.js +1087 -0
  759. package/node_modules/zod/v4/core/checks.cjs +601 -0
  760. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  761. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  762. package/node_modules/zod/v4/core/checks.js +575 -0
  763. package/node_modules/zod/v4/core/core.cjs +85 -0
  764. package/node_modules/zod/v4/core/core.d.cts +70 -0
  765. package/node_modules/zod/v4/core/core.d.ts +70 -0
  766. package/node_modules/zod/v4/core/core.js +78 -0
  767. package/node_modules/zod/v4/core/doc.cjs +39 -0
  768. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  769. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  770. package/node_modules/zod/v4/core/doc.js +35 -0
  771. package/node_modules/zod/v4/core/errors.cjs +216 -0
  772. package/node_modules/zod/v4/core/errors.d.cts +221 -0
  773. package/node_modules/zod/v4/core/errors.d.ts +221 -0
  774. package/node_modules/zod/v4/core/errors.js +185 -0
  775. package/node_modules/zod/v4/core/index.cjs +47 -0
  776. package/node_modules/zod/v4/core/index.d.cts +16 -0
  777. package/node_modules/zod/v4/core/index.d.ts +16 -0
  778. package/node_modules/zod/v4/core/index.js +16 -0
  779. package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
  780. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  781. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  782. package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  783. package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
  784. package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  785. package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  786. package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
  787. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  788. package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  789. package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  790. package/node_modules/zod/v4/core/json-schema.js +1 -0
  791. package/node_modules/zod/v4/core/package.json +7 -0
  792. package/node_modules/zod/v4/core/parse.cjs +131 -0
  793. package/node_modules/zod/v4/core/parse.d.cts +49 -0
  794. package/node_modules/zod/v4/core/parse.d.ts +49 -0
  795. package/node_modules/zod/v4/core/parse.js +93 -0
  796. package/node_modules/zod/v4/core/regexes.cjs +172 -0
  797. package/node_modules/zod/v4/core/regexes.d.cts +85 -0
  798. package/node_modules/zod/v4/core/regexes.d.ts +85 -0
  799. package/node_modules/zod/v4/core/regexes.js +139 -0
  800. package/node_modules/zod/v4/core/registries.cjs +56 -0
  801. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  802. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  803. package/node_modules/zod/v4/core/registries.js +51 -0
  804. package/node_modules/zod/v4/core/schemas.cjs +2270 -0
  805. package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
  806. package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
  807. package/node_modules/zod/v4/core/schemas.js +2239 -0
  808. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  809. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  810. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  811. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  812. package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
  813. package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  814. package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  815. package/node_modules/zod/v4/core/to-json-schema.js +448 -0
  816. package/node_modules/zod/v4/core/util.cjs +734 -0
  817. package/node_modules/zod/v4/core/util.d.cts +200 -0
  818. package/node_modules/zod/v4/core/util.d.ts +200 -0
  819. package/node_modules/zod/v4/core/util.js +674 -0
  820. package/node_modules/zod/v4/core/versions.cjs +8 -0
  821. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  822. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  823. package/node_modules/zod/v4/core/versions.js +5 -0
  824. package/node_modules/zod/v4/index.cjs +22 -0
  825. package/node_modules/zod/v4/index.d.cts +3 -0
  826. package/node_modules/zod/v4/index.d.ts +3 -0
  827. package/node_modules/zod/v4/index.js +3 -0
  828. package/node_modules/zod/v4/locales/ar.cjs +133 -0
  829. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  830. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  831. package/node_modules/zod/v4/locales/ar.js +106 -0
  832. package/node_modules/zod/v4/locales/az.cjs +132 -0
  833. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  834. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  835. package/node_modules/zod/v4/locales/az.js +105 -0
  836. package/node_modules/zod/v4/locales/be.cjs +183 -0
  837. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  838. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  839. package/node_modules/zod/v4/locales/be.js +156 -0
  840. package/node_modules/zod/v4/locales/bg.cjs +147 -0
  841. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  842. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  843. package/node_modules/zod/v4/locales/bg.js +120 -0
  844. package/node_modules/zod/v4/locales/ca.cjs +134 -0
  845. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  846. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  847. package/node_modules/zod/v4/locales/ca.js +107 -0
  848. package/node_modules/zod/v4/locales/cs.cjs +138 -0
  849. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  850. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  851. package/node_modules/zod/v4/locales/cs.js +111 -0
  852. package/node_modules/zod/v4/locales/da.cjs +142 -0
  853. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  854. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  855. package/node_modules/zod/v4/locales/da.js +115 -0
  856. package/node_modules/zod/v4/locales/de.cjs +135 -0
  857. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  858. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  859. package/node_modules/zod/v4/locales/de.js +108 -0
  860. package/node_modules/zod/v4/locales/el.cjs +136 -0
  861. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  862. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  863. package/node_modules/zod/v4/locales/el.js +109 -0
  864. package/node_modules/zod/v4/locales/en.cjs +140 -0
  865. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  866. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  867. package/node_modules/zod/v4/locales/en.js +113 -0
  868. package/node_modules/zod/v4/locales/eo.cjs +136 -0
  869. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  870. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  871. package/node_modules/zod/v4/locales/eo.js +109 -0
  872. package/node_modules/zod/v4/locales/es.cjs +159 -0
  873. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  874. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  875. package/node_modules/zod/v4/locales/es.js +132 -0
  876. package/node_modules/zod/v4/locales/fa.cjs +141 -0
  877. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  878. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  879. package/node_modules/zod/v4/locales/fa.js +114 -0
  880. package/node_modules/zod/v4/locales/fi.cjs +139 -0
  881. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  882. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  883. package/node_modules/zod/v4/locales/fi.js +112 -0
  884. package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
  885. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  886. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  887. package/node_modules/zod/v4/locales/fr-CA.js +107 -0
  888. package/node_modules/zod/v4/locales/fr.cjs +152 -0
  889. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  890. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  891. package/node_modules/zod/v4/locales/fr.js +125 -0
  892. package/node_modules/zod/v4/locales/he.cjs +241 -0
  893. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  894. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  895. package/node_modules/zod/v4/locales/he.js +214 -0
  896. package/node_modules/zod/v4/locales/hr.cjs +149 -0
  897. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  898. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  899. package/node_modules/zod/v4/locales/hr.js +122 -0
  900. package/node_modules/zod/v4/locales/hu.cjs +135 -0
  901. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  902. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  903. package/node_modules/zod/v4/locales/hu.js +108 -0
  904. package/node_modules/zod/v4/locales/hy.cjs +174 -0
  905. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  906. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  907. package/node_modules/zod/v4/locales/hy.js +147 -0
  908. package/node_modules/zod/v4/locales/id.cjs +133 -0
  909. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  910. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  911. package/node_modules/zod/v4/locales/id.js +106 -0
  912. package/node_modules/zod/v4/locales/index.cjs +111 -0
  913. package/node_modules/zod/v4/locales/index.d.cts +52 -0
  914. package/node_modules/zod/v4/locales/index.d.ts +52 -0
  915. package/node_modules/zod/v4/locales/index.js +52 -0
  916. package/node_modules/zod/v4/locales/is.cjs +136 -0
  917. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  918. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  919. package/node_modules/zod/v4/locales/is.js +109 -0
  920. package/node_modules/zod/v4/locales/it.cjs +135 -0
  921. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  922. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  923. package/node_modules/zod/v4/locales/it.js +108 -0
  924. package/node_modules/zod/v4/locales/ja.cjs +134 -0
  925. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  926. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  927. package/node_modules/zod/v4/locales/ja.js +107 -0
  928. package/node_modules/zod/v4/locales/ka.cjs +139 -0
  929. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  930. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  931. package/node_modules/zod/v4/locales/ka.js +112 -0
  932. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  933. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  934. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  935. package/node_modules/zod/v4/locales/kh.js +5 -0
  936. package/node_modules/zod/v4/locales/km.cjs +137 -0
  937. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  938. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  939. package/node_modules/zod/v4/locales/km.js +110 -0
  940. package/node_modules/zod/v4/locales/ko.cjs +138 -0
  941. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  942. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  943. package/node_modules/zod/v4/locales/ko.js +111 -0
  944. package/node_modules/zod/v4/locales/lt.cjs +230 -0
  945. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  946. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  947. package/node_modules/zod/v4/locales/lt.js +203 -0
  948. package/node_modules/zod/v4/locales/mk.cjs +136 -0
  949. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  950. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  951. package/node_modules/zod/v4/locales/mk.js +109 -0
  952. package/node_modules/zod/v4/locales/ms.cjs +134 -0
  953. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  954. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  955. package/node_modules/zod/v4/locales/ms.js +107 -0
  956. package/node_modules/zod/v4/locales/nl.cjs +137 -0
  957. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  958. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  959. package/node_modules/zod/v4/locales/nl.js +110 -0
  960. package/node_modules/zod/v4/locales/no.cjs +135 -0
  961. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  962. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  963. package/node_modules/zod/v4/locales/no.js +108 -0
  964. package/node_modules/zod/v4/locales/ota.cjs +136 -0
  965. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  966. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  967. package/node_modules/zod/v4/locales/ota.js +109 -0
  968. package/node_modules/zod/v4/locales/package.json +7 -0
  969. package/node_modules/zod/v4/locales/pl.cjs +136 -0
  970. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  971. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  972. package/node_modules/zod/v4/locales/pl.js +109 -0
  973. package/node_modules/zod/v4/locales/ps.cjs +141 -0
  974. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  975. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  976. package/node_modules/zod/v4/locales/ps.js +114 -0
  977. package/node_modules/zod/v4/locales/pt.cjs +135 -0
  978. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  979. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  980. package/node_modules/zod/v4/locales/pt.js +108 -0
  981. package/node_modules/zod/v4/locales/ro.cjs +146 -0
  982. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  983. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  984. package/node_modules/zod/v4/locales/ro.js +119 -0
  985. package/node_modules/zod/v4/locales/ru.cjs +183 -0
  986. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  987. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  988. package/node_modules/zod/v4/locales/ru.js +156 -0
  989. package/node_modules/zod/v4/locales/sl.cjs +136 -0
  990. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  991. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  992. package/node_modules/zod/v4/locales/sl.js +109 -0
  993. package/node_modules/zod/v4/locales/sv.cjs +137 -0
  994. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  995. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  996. package/node_modules/zod/v4/locales/sv.js +110 -0
  997. package/node_modules/zod/v4/locales/ta.cjs +137 -0
  998. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  999. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1000. package/node_modules/zod/v4/locales/ta.js +110 -0
  1001. package/node_modules/zod/v4/locales/th.cjs +137 -0
  1002. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  1003. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  1004. package/node_modules/zod/v4/locales/th.js +110 -0
  1005. package/node_modules/zod/v4/locales/tr.cjs +132 -0
  1006. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1007. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1008. package/node_modules/zod/v4/locales/tr.js +105 -0
  1009. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  1010. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1011. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1012. package/node_modules/zod/v4/locales/ua.js +5 -0
  1013. package/node_modules/zod/v4/locales/uk.cjs +135 -0
  1014. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1015. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1016. package/node_modules/zod/v4/locales/uk.js +108 -0
  1017. package/node_modules/zod/v4/locales/ur.cjs +137 -0
  1018. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1019. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1020. package/node_modules/zod/v4/locales/ur.js +110 -0
  1021. package/node_modules/zod/v4/locales/uz.cjs +137 -0
  1022. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1023. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1024. package/node_modules/zod/v4/locales/uz.js +110 -0
  1025. package/node_modules/zod/v4/locales/vi.cjs +135 -0
  1026. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1027. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1028. package/node_modules/zod/v4/locales/vi.js +108 -0
  1029. package/node_modules/zod/v4/locales/yo.cjs +134 -0
  1030. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1031. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1032. package/node_modules/zod/v4/locales/yo.js +107 -0
  1033. package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
  1034. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1035. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1036. package/node_modules/zod/v4/locales/zh-CN.js +109 -0
  1037. package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
  1038. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1039. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1040. package/node_modules/zod/v4/locales/zh-TW.js +107 -0
  1041. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  1042. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1043. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1044. package/node_modules/zod/v4/mini/checks.js +1 -0
  1045. package/node_modules/zod/v4/mini/coerce.cjs +52 -0
  1046. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1047. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1048. package/node_modules/zod/v4/mini/coerce.js +22 -0
  1049. package/node_modules/zod/v4/mini/external.cjs +63 -0
  1050. package/node_modules/zod/v4/mini/external.d.cts +13 -0
  1051. package/node_modules/zod/v4/mini/external.d.ts +13 -0
  1052. package/node_modules/zod/v4/mini/external.js +14 -0
  1053. package/node_modules/zod/v4/mini/index.cjs +32 -0
  1054. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  1055. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  1056. package/node_modules/zod/v4/mini/index.js +3 -0
  1057. package/node_modules/zod/v4/mini/iso.cjs +64 -0
  1058. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1059. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1060. package/node_modules/zod/v4/mini/iso.js +34 -0
  1061. package/node_modules/zod/v4/mini/package.json +7 -0
  1062. package/node_modules/zod/v4/mini/parse.cjs +16 -0
  1063. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1064. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1065. package/node_modules/zod/v4/mini/parse.js +1 -0
  1066. package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
  1067. package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
  1068. package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
  1069. package/node_modules/zod/v4/mini/schemas.js +961 -0
  1070. package/node_modules/zod/v4/package.json +7 -0
  1071. package/node_modules/zod/v4-mini/index.cjs +32 -0
  1072. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  1073. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  1074. package/node_modules/zod/v4-mini/index.js +3 -0
  1075. package/node_modules/zod/v4-mini/package.json +7 -0
  1076. package/package.json +49 -4
  1077. package/scripts/hooks/canon.mjs +45 -0
  1078. package/scripts/hooks/consent.mjs +728 -0
  1079. package/scripts/hooks/rarog-context.mjs +163 -0
  1080. package/scripts/hooks/rarog-pending.mjs +1498 -0
  1081. package/scripts/hooks/rarog-statusline.mjs +258 -0
  1082. package/scripts/hooks/tall-dialog.mjs +400 -0
  1083. package/scripts/hooks/work-area.mjs +138 -0
  1084. package/scripts/restart.sh +393 -0
  1085. package/server/src/auth/admin.js +272 -0
  1086. package/server/src/auth/consent-socket.js +89 -0
  1087. package/server/src/auth/device.js +81 -0
  1088. package/server/src/auth/devices-store.js +544 -0
  1089. package/server/src/auth/index.js +26 -0
  1090. package/server/src/auth/limiter.js +95 -0
  1091. package/server/src/auth/origin.js +13 -0
  1092. package/server/src/auth/pairing.js +201 -0
  1093. package/server/src/auth/principal.js +28 -0
  1094. package/server/src/auth/redact.js +78 -0
  1095. package/server/src/auth/unix-socket.js +156 -0
  1096. package/server/src/bootstrap/alive-sessions.js +22 -0
  1097. package/server/src/bootstrap/consent.js +367 -0
  1098. package/server/src/bootstrap/devices.js +43 -0
  1099. package/server/src/bootstrap/health.js +45 -0
  1100. package/server/src/bootstrap/herdr.js +25 -0
  1101. package/server/src/bootstrap/hook-files.js +97 -0
  1102. package/server/src/bootstrap/http.js +69 -0
  1103. package/server/src/bootstrap/inbox.js +29 -0
  1104. package/server/src/bootstrap/iroh.js +26 -0
  1105. package/server/src/bootstrap/manager.js +51 -0
  1106. package/server/src/bootstrap/pr-status.js +35 -0
  1107. package/server/src/bootstrap/push.js +88 -0
  1108. package/server/src/bootstrap/sse.js +31 -0
  1109. package/server/src/bootstrap/term.js +54 -0
  1110. package/server/src/bootstrap/versions.js +45 -0
  1111. package/server/src/cli/child-output.js +214 -0
  1112. package/server/src/cli/claude-settings.js +905 -0
  1113. package/server/src/cli/config-rewrite.js +147 -0
  1114. package/server/src/cli/devices.js +417 -0
  1115. package/server/src/cli/dialogs.js +212 -0
  1116. package/server/src/cli/dictation.js +87 -0
  1117. package/server/src/cli/doctor-pr-status.js +77 -0
  1118. package/server/src/cli/doctor-write-block.js +65 -0
  1119. package/server/src/cli/doctor.js +1528 -0
  1120. package/server/src/cli/hooks.js +734 -0
  1121. package/server/src/cli/io.js +61 -0
  1122. package/server/src/cli/launchd-loaded.js +82 -0
  1123. package/server/src/cli/lock.js +170 -0
  1124. package/server/src/cli/main.js +129 -0
  1125. package/server/src/cli/restart.js +842 -0
  1126. package/server/src/cli/screen/ask.js +55 -0
  1127. package/server/src/cli/screen/log.js +136 -0
  1128. package/server/src/cli/screen/prose.js +74 -0
  1129. package/server/src/cli/screen/steps.js +528 -0
  1130. package/server/src/cli/screen/style.js +161 -0
  1131. package/server/src/cli/secret-input.js +212 -0
  1132. package/server/src/cli/secrets-file.js +288 -0
  1133. package/server/src/cli/serve.js +687 -0
  1134. package/server/src/cli/service.js +1375 -0
  1135. package/server/src/cli/setup-check.js +287 -0
  1136. package/server/src/cli/setup-config.js +192 -0
  1137. package/server/src/cli/setup-context.js +174 -0
  1138. package/server/src/cli/setup-herdr-agent.js +503 -0
  1139. package/server/src/cli/setup-herdr-unit.js +437 -0
  1140. package/server/src/cli/setup-plan.js +85 -0
  1141. package/server/src/cli/setup-screen.js +372 -0
  1142. package/server/src/cli/setup-secrets.js +179 -0
  1143. package/server/src/cli/setup-settings.js +305 -0
  1144. package/server/src/cli/setup-tailscale-add.js +235 -0
  1145. package/server/src/cli/setup-tailscale-only.js +81 -0
  1146. package/server/src/cli/setup-tailscale-port.js +276 -0
  1147. package/server/src/cli/setup-transport.js +417 -0
  1148. package/server/src/cli/setup-voice.js +174 -0
  1149. package/server/src/cli/setup.js +1191 -0
  1150. package/server/src/cli/systemd-unit.js +370 -0
  1151. package/server/src/cli/templates/herdr-agent.plist +34 -0
  1152. package/server/src/cli/templates/launchd.plist +35 -0
  1153. package/server/src/cli/templates/rarog.service +25 -0
  1154. package/server/src/cli/update-lock.js +148 -0
  1155. package/server/src/cli/update-provenance.js +303 -0
  1156. package/server/src/cli/update-registry.js +530 -0
  1157. package/server/src/cli/update.js +441 -0
  1158. package/server/src/cli/voice-agent.js +235 -0
  1159. package/server/src/cli/voice-keys.js +71 -0
  1160. package/server/src/cli-store.js +38 -0
  1161. package/server/src/cli-version.js +442 -0
  1162. package/server/src/client-log.js +121 -0
  1163. package/server/src/companion/ask.js +165 -0
  1164. package/server/src/companion/asks-owner.js +205 -0
  1165. package/server/src/companion/catalog.js +22 -0
  1166. package/server/src/companion/cli-literals.js +84 -0
  1167. package/server/src/companion/cli.js +235 -0
  1168. package/server/src/companion/condense.js +274 -0
  1169. package/server/src/companion/conversation.js +21 -0
  1170. package/server/src/companion/index.js +46 -0
  1171. package/server/src/companion/mask.js +37 -0
  1172. package/server/src/companion/openai-token.js +129 -0
  1173. package/server/src/companion/prompt.js +102 -0
  1174. package/server/src/companion/turns-settle.js +30 -0
  1175. package/server/src/companion/turns.js +101 -0
  1176. package/server/src/config/claude-account.js +101 -0
  1177. package/server/src/config/clients.js +45 -0
  1178. package/server/src/config/demo.js +97 -0
  1179. package/server/src/config/flags.js +143 -0
  1180. package/server/src/config/herdr.js +129 -0
  1181. package/server/src/config/listen.js +122 -0
  1182. package/server/src/config/protected-dirs.js +79 -0
  1183. package/server/src/config/push.js +72 -0
  1184. package/server/src/config/roots.js +259 -0
  1185. package/server/src/config/terminal.js +86 -0
  1186. package/server/src/config/voice.js +21 -0
  1187. package/server/src/config/work-area.js +168 -0
  1188. package/server/src/config-env.js +506 -0
  1189. package/server/src/config.js +745 -0
  1190. package/server/src/demo/content/en.js +673 -0
  1191. package/server/src/demo/content/index.js +16 -0
  1192. package/server/src/demo/content/named-set.js +59 -0
  1193. package/server/src/demo/content/pl.js +691 -0
  1194. package/server/src/demo/content/types.js +1 -0
  1195. package/server/src/demo/control.js +574 -0
  1196. package/server/src/demo/mac.js +20 -0
  1197. package/server/src/demo/mock-herdr.js +251 -0
  1198. package/server/src/demo/notes.js +60 -0
  1199. package/server/src/demo/review-routes.js +96 -0
  1200. package/server/src/demo/scenarios.js +338 -0
  1201. package/server/src/demo/seeds.js +480 -0
  1202. package/server/src/demo/usage.js +29 -0
  1203. package/server/src/demo/voice.js +24 -0
  1204. package/server/src/device-effects.js +37 -0
  1205. package/server/src/drivers/herdr/audit-fields.js +27 -0
  1206. package/server/src/drivers/herdr/cli-reserve.js +238 -0
  1207. package/server/src/drivers/herdr/command-dialog-settle.js +90 -0
  1208. package/server/src/drivers/herdr/commands.js +751 -0
  1209. package/server/src/drivers/herdr/consent-channel.js +231 -0
  1210. package/server/src/drivers/herdr/consent-registry-read.js +45 -0
  1211. package/server/src/drivers/herdr/form-reserve.js +203 -0
  1212. package/server/src/drivers/herdr/layer2-card.js +302 -0
  1213. package/server/src/drivers/herdr/layer2-step.js +199 -0
  1214. package/server/src/drivers/herdr/prompt-gates.js +118 -0
  1215. package/server/src/drivers/herdr/prompt-paste.js +106 -0
  1216. package/server/src/drivers/herdr/prompt-queue-store.js +284 -0
  1217. package/server/src/drivers/herdr/prompt-queue.js +921 -0
  1218. package/server/src/drivers/herdr/pull-request-poll.js +61 -0
  1219. package/server/src/drivers/herdr/queue-take-back.js +429 -0
  1220. package/server/src/drivers/herdr/scheduled-task-poll.js +120 -0
  1221. package/server/src/drivers/herdr/stale-block.js +33 -0
  1222. package/server/src/drivers/herdr/take-back-field.js +311 -0
  1223. package/server/src/drivers/herdr/transcript.js +186 -0
  1224. package/server/src/drivers/herdr/turn-guard.js +328 -0
  1225. package/server/src/drivers/herdr-driver.js +4503 -0
  1226. package/server/src/drivers/mock-driver.js +541 -0
  1227. package/server/src/drivers/runtime.js +76 -0
  1228. package/server/src/drivers/tool-summary.js +95 -0
  1229. package/server/src/drivers/tool-text.js +206 -0
  1230. package/server/src/drivers/types.js +15 -0
  1231. package/server/src/fs-browse.js +268 -0
  1232. package/server/src/fs-mkdir-child.js +86 -0
  1233. package/server/src/fs-mkdir.js +161 -0
  1234. package/server/src/git-config-guard.js +72 -0
  1235. package/server/src/git-diff.js +356 -0
  1236. package/server/src/git-sandbox.js +100 -0
  1237. package/server/src/git-stats.js +61 -0
  1238. package/server/src/git-status.js +1072 -0
  1239. package/server/src/git-watch.js +299 -0
  1240. package/server/src/git-work-tree.js +33 -0
  1241. package/server/src/health.js +167 -0
  1242. package/server/src/herdr/answer-recheck.js +85 -0
  1243. package/server/src/herdr/argv.js +234 -0
  1244. package/server/src/herdr/audit.js +520 -0
  1245. package/server/src/herdr/background/agent-file.js +411 -0
  1246. package/server/src/herdr/background/artifacts.js +173 -0
  1247. package/server/src/herdr/background/cli-shapes.js +442 -0
  1248. package/server/src/herdr/background/ids.js +29 -0
  1249. package/server/src/herdr/background/incremental-read.js +70 -0
  1250. package/server/src/herdr/background/index.js +93 -0
  1251. package/server/src/herdr/background/jsonl-lines.js +68 -0
  1252. package/server/src/herdr/background/main-scan.js +229 -0
  1253. package/server/src/herdr/background/merge.js +336 -0
  1254. package/server/src/herdr/background/notice.js +110 -0
  1255. package/server/src/herdr/background/notification.js +267 -0
  1256. package/server/src/herdr/background/pull-request-files.js +257 -0
  1257. package/server/src/herdr/background/pull-requests.js +684 -0
  1258. package/server/src/herdr/background/queued-prompt.js +52 -0
  1259. package/server/src/herdr/background/reducer.js +682 -0
  1260. package/server/src/herdr/background/satellite.js +73 -0
  1261. package/server/src/herdr/background/scheduled-task-file.js +118 -0
  1262. package/server/src/herdr/background/scheduled-tasks.js +251 -0
  1263. package/server/src/herdr/background/work.js +134 -0
  1264. package/server/src/herdr/background/workflow-run.js +417 -0
  1265. package/server/src/herdr/client.js +894 -0
  1266. package/server/src/herdr/commands/catalog.js +179 -0
  1267. package/server/src/herdr/commands/discover.js +605 -0
  1268. package/server/src/herdr/commands/guard.js +192 -0
  1269. package/server/src/herdr/commands/index.js +35 -0
  1270. package/server/src/herdr/commands/registry.js +496 -0
  1271. package/server/src/herdr/commands/shape.js +240 -0
  1272. package/server/src/herdr/commands/transcript.js +261 -0
  1273. package/server/src/herdr/consent-evidence.js +592 -0
  1274. package/server/src/herdr/consent-step.js +44 -0
  1275. package/server/src/herdr/consent-subagent.js +423 -0
  1276. package/server/src/herdr/dialogs/cards/build.js +445 -0
  1277. package/server/src/herdr/dialogs/cards/ids.js +101 -0
  1278. package/server/src/herdr/dialogs/cards/roles.js +22 -0
  1279. package/server/src/herdr/dialogs/consent-gate.js +62 -0
  1280. package/server/src/herdr/dialogs/copy.js +97 -0
  1281. package/server/src/herdr/dialogs/cross-check.js +500 -0
  1282. package/server/src/herdr/dialogs/decide/decide.js +825 -0
  1283. package/server/src/herdr/dialogs/decide/input.js +1 -0
  1284. package/server/src/herdr/dialogs/decide/reasons.js +60 -0
  1285. package/server/src/herdr/dialogs/decide/sources.js +322 -0
  1286. package/server/src/herdr/dialogs/hook/answers.js +190 -0
  1287. package/server/src/herdr/dialogs/hook/canon.js +28 -0
  1288. package/server/src/herdr/dialogs/hook/contract.js +225 -0
  1289. package/server/src/herdr/dialogs/hook/dump.js +350 -0
  1290. package/server/src/herdr/dialogs/hook/suggestions.js +75 -0
  1291. package/server/src/herdr/dialogs/hook/target.js +99 -0
  1292. package/server/src/herdr/dialogs/index.js +203 -0
  1293. package/server/src/herdr/dialogs/layer1/always.js +71 -0
  1294. package/server/src/herdr/dialogs/layer1/bind.js +193 -0
  1295. package/server/src/herdr/dialogs/layer1/card.js +190 -0
  1296. package/server/src/herdr/dialogs/layer1/cards.js +37 -0
  1297. package/server/src/herdr/dialogs/layer1/contract.js +399 -0
  1298. package/server/src/herdr/dialogs/layer1/cycle.js +1746 -0
  1299. package/server/src/herdr/dialogs/layer1/desk-reason.js +119 -0
  1300. package/server/src/herdr/dialogs/layer1/desk.js +190 -0
  1301. package/server/src/herdr/dialogs/layer1/frames.js +118 -0
  1302. package/server/src/herdr/dialogs/layer1/hook-list/hook-list.js +976 -0
  1303. package/server/src/herdr/dialogs/layer1/mode.js +93 -0
  1304. package/server/src/herdr/dialogs/layer1/observe.js +419 -0
  1305. package/server/src/herdr/dialogs/layer1/proof.js +454 -0
  1306. package/server/src/herdr/dialogs/layer1/receipt.js +71 -0
  1307. package/server/src/herdr/dialogs/layer1/records.js +236 -0
  1308. package/server/src/herdr/dialogs/layer1/registry.js +274 -0
  1309. package/server/src/herdr/dialogs/layer1/resume.js +178 -0
  1310. package/server/src/herdr/dialogs/layer1/sign.js +182 -0
  1311. package/server/src/herdr/dialogs/layer1/top.js +264 -0
  1312. package/server/src/herdr/dialogs/layer1/turns.js +251 -0
  1313. package/server/src/herdr/dialogs/layer1/version-gate.js +154 -0
  1314. package/server/src/herdr/dialogs/layer2/card.js +109 -0
  1315. package/server/src/herdr/dialogs/layer2/match.js +98 -0
  1316. package/server/src/herdr/dialogs/layer2/read-block.js +153 -0
  1317. package/server/src/herdr/dialogs/layer2/shapes.js +61 -0
  1318. package/server/src/herdr/dialogs/layer2/stability.js +104 -0
  1319. package/server/src/herdr/dialogs/layer2/verdict.js +282 -0
  1320. package/server/src/herdr/dialogs/policy/consent.js +29 -0
  1321. package/server/src/herdr/dialogs/policy/escalation.js +115 -0
  1322. package/server/src/herdr/dialogs/policy/exit-tasks.js +34 -0
  1323. package/server/src/herdr/dialogs/policy/measured-consent.js +123 -0
  1324. package/server/src/herdr/dialogs/policy/option-policy.js +22 -0
  1325. package/server/src/herdr/dialogs/policy/options.js +79 -0
  1326. package/server/src/herdr/dialogs/policy/pause.js +18 -0
  1327. package/server/src/herdr/dialogs/policy/terminal.js +93 -0
  1328. package/server/src/herdr/dialogs/presence.js +49 -0
  1329. package/server/src/herdr/dialogs/refusals.js +271 -0
  1330. package/server/src/herdr/dialogs/router.js +137 -0
  1331. package/server/src/herdr/dialogs/screen/auto-deny.js +31 -0
  1332. package/server/src/herdr/dialogs/screen/bash-zone.js +161 -0
  1333. package/server/src/herdr/dialogs/screen/block-visible.js +60 -0
  1334. package/server/src/herdr/dialogs/screen/block.js +286 -0
  1335. package/server/src/herdr/dialogs/screen/confirm.js +83 -0
  1336. package/server/src/herdr/dialogs/screen/dialog-bottom.js +54 -0
  1337. package/server/src/herdr/dialogs/screen/edit-frame.js +391 -0
  1338. package/server/src/herdr/dialogs/screen/edit-zone.js +33 -0
  1339. package/server/src/herdr/dialogs/screen/excerpt.js +48 -0
  1340. package/server/src/herdr/dialogs/screen/file-dialog.js +38 -0
  1341. package/server/src/herdr/dialogs/screen/form.js +199 -0
  1342. package/server/src/herdr/dialogs/screen/identity.js +23 -0
  1343. package/server/src/herdr/dialogs/screen/kinds.js +39 -0
  1344. package/server/src/herdr/dialogs/screen/known.js +101 -0
  1345. package/server/src/herdr/dialogs/screen/mode-footer.js +90 -0
  1346. package/server/src/herdr/dialogs/screen/operation.js +196 -0
  1347. package/server/src/herdr/dialogs/screen/option-run.js +62 -0
  1348. package/server/src/herdr/dialogs/screen/options.js +534 -0
  1349. package/server/src/herdr/dialogs/screen/parse.js +359 -0
  1350. package/server/src/herdr/dialogs/screen/plan-file.js +53 -0
  1351. package/server/src/herdr/dialogs/screen/queue.js +59 -0
  1352. package/server/src/herdr/dialogs/screen/region.js +92 -0
  1353. package/server/src/herdr/dialogs/screen/resolve.js +305 -0
  1354. package/server/src/herdr/dialogs/screen/review.js +118 -0
  1355. package/server/src/herdr/dialogs/screen/signatures.js +1030 -0
  1356. package/server/src/herdr/dialogs/screen/snippet.js +49 -0
  1357. package/server/src/herdr/dialogs/screen/text.js +50 -0
  1358. package/server/src/herdr/dialogs/screen/trust-arrow.js +122 -0
  1359. package/server/src/herdr/dialogs/screen/write-zone.js +41 -0
  1360. package/server/src/herdr/dialogs/screen-unavailable.js +52 -0
  1361. package/server/src/herdr/dialogs/send/form-submit.js +72 -0
  1362. package/server/src/herdr/dialogs/send/key-row.js +29 -0
  1363. package/server/src/herdr/dialogs/send/keys.js +75 -0
  1364. package/server/src/herdr/dialogs/send/prompt-submit.js +35 -0
  1365. package/server/src/herdr/dialogs/send/take-back-keys.js +33 -0
  1366. package/server/src/herdr/dialogs/send/trust-step.js +52 -0
  1367. package/server/src/herdr/dialogs/shadow/alive-log.js +100 -0
  1368. package/server/src/herdr/dialogs/shadow/alive.js +211 -0
  1369. package/server/src/herdr/dialogs/shadow/atomic.js +55 -0
  1370. package/server/src/herdr/dialogs/shadow/channel.js +321 -0
  1371. package/server/src/herdr/dialogs/shadow/evidence.js +322 -0
  1372. package/server/src/herdr/dialogs/shadow/files.js +375 -0
  1373. package/server/src/herdr/dialogs/shadow/liveness.js +145 -0
  1374. package/server/src/herdr/dialogs/shadow/sweep.js +220 -0
  1375. package/server/src/herdr/dialogs/timing.js +88 -0
  1376. package/server/src/herdr/history-steps.js +190 -0
  1377. package/server/src/herdr/hook-commands.js +355 -0
  1378. package/server/src/herdr/hook-config.js +1468 -0
  1379. package/server/src/herdr/identity.js +277 -0
  1380. package/server/src/herdr/index.js +27 -0
  1381. package/server/src/herdr/input-segments.js +135 -0
  1382. package/server/src/herdr/jsonl-activity.js +122 -0
  1383. package/server/src/herdr/jsonl-follow.js +2358 -0
  1384. package/server/src/herdr/jsonl-pending.js +527 -0
  1385. package/server/src/herdr/jsonl-queue.js +133 -0
  1386. package/server/src/herdr/jsonl-usage.js +174 -0
  1387. package/server/src/herdr/launcher.js +574 -0
  1388. package/server/src/herdr/line-diff.js +104 -0
  1389. package/server/src/herdr/mode-cycle.js +78 -0
  1390. package/server/src/herdr/project-workspace.js +131 -0
  1391. package/server/src/herdr/provenance.js +204 -0
  1392. package/server/src/herdr/session-pulse.js +536 -0
  1393. package/server/src/herdr/socket.js +1003 -0
  1394. package/server/src/herdr/statusline.js +348 -0
  1395. package/server/src/herdr/supervisor.js +1934 -0
  1396. package/server/src/herdr/transcript-path.js +123 -0
  1397. package/server/src/herdr/trust.js +201 -0
  1398. package/server/src/herdr/types.js +163 -0
  1399. package/server/src/herdr/ultracode.js +132 -0
  1400. package/server/src/herdr/uploads-registry.js +173 -0
  1401. package/server/src/herdr/uploads.js +642 -0
  1402. package/server/src/herdr/workspace-resolver.js +219 -0
  1403. package/server/src/hidden-chars.js +52 -0
  1404. package/server/src/inbox/card.js +121 -0
  1405. package/server/src/inbox/dialogs.js +122 -0
  1406. package/server/src/inbox/inbox.js +418 -0
  1407. package/server/src/inbox/index.js +19 -0
  1408. package/server/src/inbox/removals.js +181 -0
  1409. package/server/src/inbox/segments.js +37 -0
  1410. package/server/src/index.js +796 -0
  1411. package/server/src/install/data-dir.js +103 -0
  1412. package/server/src/install/evidence.js +66 -0
  1413. package/server/src/install/mode.js +37 -0
  1414. package/server/src/install/repair.js +215 -0
  1415. package/server/src/install/sdk-lock.json +153 -0
  1416. package/server/src/install/sdk-package.json +7 -0
  1417. package/server/src/install/sdk-probe.js +18 -0
  1418. package/server/src/install/sdk.js +624 -0
  1419. package/server/src/install/service-target.js +106 -0
  1420. package/server/src/iroh/adapter.js +294 -0
  1421. package/server/src/iroh/duplex.js +169 -0
  1422. package/server/src/iroh/endpoint.js +17 -0
  1423. package/server/src/iroh/listener.js +422 -0
  1424. package/server/src/iroh/log-budget.js +70 -0
  1425. package/server/src/iroh/module-probe.js +17 -0
  1426. package/server/src/iroh/path-log.js +96 -0
  1427. package/server/src/iroh/socket.js +89 -0
  1428. package/server/src/live-sessions.js +162 -0
  1429. package/server/src/log-timestamps-install.js +8 -0
  1430. package/server/src/log-timestamps.js +58 -0
  1431. package/server/src/mac-stats.js +261 -0
  1432. package/server/src/notes/store.js +248 -0
  1433. package/server/src/notify/apns-channel.js +70 -0
  1434. package/server/src/notify/apns-devices.js +477 -0
  1435. package/server/src/notify/apns-payload.js +267 -0
  1436. package/server/src/notify/apns-sink.js +207 -0
  1437. package/server/src/notify/apns.js +307 -0
  1438. package/server/src/notify/consent-canary-push.js +163 -0
  1439. package/server/src/notify/content.js +328 -0
  1440. package/server/src/notify/fanout.js +44 -0
  1441. package/server/src/notify/index.js +505 -0
  1442. package/server/src/notify/live-activity-limits.js +126 -0
  1443. package/server/src/notify/live-activity-state.js +176 -0
  1444. package/server/src/notify/live-activity.js +581 -0
  1445. package/server/src/notify/policy.js +273 -0
  1446. package/server/src/notify/presence.js +176 -0
  1447. package/server/src/notify/push-crypto.js +95 -0
  1448. package/server/src/notify/relay-pass.js +487 -0
  1449. package/server/src/notify/relay-sender.js +206 -0
  1450. package/server/src/notify/sender.js +117 -0
  1451. package/server/src/notify/weekly-limit.js +204 -0
  1452. package/server/src/notify/workflow-phase.js +11 -0
  1453. package/server/src/permissions.js +239 -0
  1454. package/server/src/pr-status/gh.js +270 -0
  1455. package/server/src/pr-status/index.js +12 -0
  1456. package/server/src/pr-status/source.js +22 -0
  1457. package/server/src/pr-status/tracker.js +204 -0
  1458. package/server/src/risk.js +100 -0
  1459. package/server/src/router.js +597 -0
  1460. package/server/src/routes/context.js +8 -0
  1461. package/server/src/routes/devices.js +246 -0
  1462. package/server/src/routes/limits.js +41 -0
  1463. package/server/src/routes/notes.js +105 -0
  1464. package/server/src/routes/projects.js +189 -0
  1465. package/server/src/routes/push.js +252 -0
  1466. package/server/src/routes/sessions.js +757 -0
  1467. package/server/src/routes/system.js +274 -0
  1468. package/server/src/routes/terminal.js +140 -0
  1469. package/server/src/safe-read.js +118 -0
  1470. package/server/src/session-label.js +48 -0
  1471. package/server/src/session-list.js +166 -0
  1472. package/server/src/sessions/activity-clocks.js +47 -0
  1473. package/server/src/sessions/attach-slots.js +64 -0
  1474. package/server/src/sessions/claim-window.js +132 -0
  1475. package/server/src/sessions/cli-registry.js +233 -0
  1476. package/server/src/sessions/companion-scope.js +99 -0
  1477. package/server/src/sessions/consent-cards.js +509 -0
  1478. package/server/src/sessions/context-usage.js +23 -0
  1479. package/server/src/sessions/conversation-lists.js +68 -0
  1480. package/server/src/sessions/dialog-timing.js +57 -0
  1481. package/server/src/sessions/driver-events.js +282 -0
  1482. package/server/src/sessions/errors.js +64 -0
  1483. package/server/src/sessions/fallback-label.js +38 -0
  1484. package/server/src/sessions/held-echo.js +258 -0
  1485. package/server/src/sessions/herdr-lifecycle.js +453 -0
  1486. package/server/src/sessions/interrupt-windows.js +141 -0
  1487. package/server/src/sessions/launch-gate.js +299 -0
  1488. package/server/src/sessions/manager-api.js +1 -0
  1489. package/server/src/sessions/manager.js +4045 -0
  1490. package/server/src/sessions/pr-status-link.js +50 -0
  1491. package/server/src/sessions/project-scan.js +48 -0
  1492. package/server/src/sessions/question-card.js +137 -0
  1493. package/server/src/sessions/recent-projects.js +55 -0
  1494. package/server/src/sessions/ring-buffer.js +196 -0
  1495. package/server/src/sessions/seen-marks.js +431 -0
  1496. package/server/src/sessions/send-registry.js +275 -0
  1497. package/server/src/sessions/session-git.js +304 -0
  1498. package/server/src/sessions/session-restart.js +420 -0
  1499. package/server/src/sessions/session-take-back.js +118 -0
  1500. package/server/src/sessions/session.js +724 -0
  1501. package/server/src/sessions/state-machine.js +145 -0
  1502. package/server/src/sessions/state-sentences.js +642 -0
  1503. package/server/src/shutdown.js +20 -0
  1504. package/server/src/sse.js +577 -0
  1505. package/server/src/tailnet.js +169 -0
  1506. package/server/src/term/backend.js +59 -0
  1507. package/server/src/term/herdr-backend.js +1649 -0
  1508. package/server/src/term/herdr-stream.js +109 -0
  1509. package/server/src/term/index.js +338 -0
  1510. package/server/src/term/lifecycle.js +182 -0
  1511. package/server/src/term/paste.js +139 -0
  1512. package/server/src/term/registry.js +1032 -0
  1513. package/server/src/term/ws.js +306 -0
  1514. package/server/src/text.js +102 -0
  1515. package/server/src/transcript-import.js +579 -0
  1516. package/server/src/usage.js +255 -0
  1517. package/server/src/version-watch.js +243 -0
  1518. package/server/src/version.js +72 -0
  1519. package/server/src/voice/soniox.js +301 -0
@@ -0,0 +1,305 @@
1
+ /**
2
+ * The Settings step of `rarog setup`: the five Rarog entries in `~/.claude/settings.json` (permission
3
+ * hooks, the `SessionStart` context hook, `statusLine`, the `sandbox.filesystem.denyRead` paths, the write block rules
4
+ * in `permissions.deny`) and herdr's Claude integration, behind ONE question `[y/N/d]`. An installation with every
5
+ * other entry gets the question for the missing ones alone. On "y" the settings writer makes one write with one
6
+ * backup for the entries without a conflict, then herdr's own installer adds its hook (herdr writes that entry, not
7
+ * Rarog). `d` shows the full diff on the screen and asks again; the diff and lines quoting the file never reach the
8
+ * run log. An entry in conflict drops out with its own `!` and `Fix:`; the rest goes on. The step writes nothing else.
9
+ */
10
+ import { spawnSync } from 'node:child_process';
11
+ import { STATUSLINE_FRESH_MS, isRarogStatuslineCommand, newestStatuslineDump, statuslineCopyReport, userSettingsPath, visibleLine, } from '../herdr/hook-config.js';
12
+ import { readRegularFileSync } from '../safe-read.js';
13
+ import { ENTRY_NAMES, conflictWithoutQuote, entriesDiff, entriesQuestion, plannedOutcomes, writeClaudeSettingsBatch, } from './claude-settings.js';
14
+ import { HERDR_INTEGRATION_INSTALL, herdrClaudeIntegration, herdrIntegrationLine } from './hooks.js';
15
+ import { confirm as confirmForm } from './screen/ask.js';
16
+ import { rarogConfigDir } from './serve.js';
17
+ import { isRecord, line } from './setup-context.js';
18
+ /** The operations of the step, in the order of the question and of the write. */
19
+ export const SETTINGS_OPERATIONS = [
20
+ 'permission', 'context', 'statusLine', 'denyRead', 'writeBlock',
21
+ ];
22
+ /** Sufit `herdr integration install claude` (komenda pisze dwa pliki, nie czeka na sieć). */
23
+ const HERDR_INSTALL_TIMEOUT_MS = 30_000;
24
+ /** What `d` adds under the Rarog diff when herdr's installer runs after the write. */
25
+ export const HERDR_DIFF_NOTE = `After the Rarog entries, herdr runs \`${HERDR_INTEGRATION_INSTALL}\`, which adds its own`
26
+ + ' SessionStart hook; that change is not in this diff.';
27
+ /** Keys of `~/.claude/settings.json` each operation writes, for the structural log line. */
28
+ const SETTINGS_KEYS = {
29
+ permission: 'hooks (permission entries)', context: 'hooks.SessionStart',
30
+ statusLine: 'statusLine', denyRead: 'sandbox.filesystem.denyRead', writeBlock: 'permissions.deny',
31
+ remove: 'Rarog entries',
32
+ };
33
+ /** Where the user finds all five entries to add by hand. */
34
+ const BY_HAND = 'rarog hooks print';
35
+ /** herdr's hook in the question, when its installer runs after the Rarog write. */
36
+ const HERDR_HOOK = 'herdr\'s hook';
37
+ /** The question when no Rarog entry changes and only herdr's installer is left. */
38
+ export const HERDR_ONLY_QUESTION = 'Let herdr add its hook to ~/.claude/settings.json?';
39
+ /**
40
+ * The one question ({@link entriesQuestion}) with herdr's hook when its installer runs after the write;
41
+ * `question` = `null` when no Rarog entry changes and only herdr's installer is left.
42
+ */
43
+ export function settingsQuestion(question, herdr) {
44
+ return question === null ? HERDR_ONLY_QUESTION : entriesQuestion(question, herdr ? HERDR_HOOK : null);
45
+ }
46
+ /**
47
+ * What the question is for, one sentence per line right above it: the permission entries let the phone answer
48
+ * Claude's permission prompts (herdr's hook alone lets the app see the sessions; other entries alone get no such
49
+ * line), and nothing else in the file changes. A removal has none.
50
+ */
51
+ export function settingsNotes(question) {
52
+ if (question?.changes.includes('remove') === true)
53
+ return [];
54
+ const purpose = question === null ? ['So the app can list your Claude sessions.']
55
+ : question.changes.includes('permission') ? ['So your phone can answer Claude\'s permission prompts.'] : [];
56
+ return [...purpose, 'Your other settings stay as they are; d shows the change.'];
57
+ }
58
+ /**
59
+ * The question `[y/N/d]` under {@link settingsNotes}; `d` puts the entry names, the diff and the herdr sentence on the
60
+ * screen, never into the log.
61
+ */
62
+ async function ask(ctx, question, herdr) {
63
+ if (ctx.ask === null)
64
+ return false;
65
+ for (const note of settingsNotes(question))
66
+ ctx.view.questionNote(note);
67
+ return confirmForm(ctx.ask, settingsQuestion(question, herdr), 'y/N/d', {
68
+ width: ctx.view.screen.layout.width,
69
+ showDiff: () => {
70
+ for (const one of question === null ? [] : entriesDiff(question))
71
+ ctx.view.block(` ${one}`);
72
+ if (herdr)
73
+ ctx.view.block(` ${HERDR_DIFF_NOTE}`);
74
+ },
75
+ });
76
+ }
77
+ /**
78
+ * `herdr integration install claude` and a second status read: `null` = the integration is current now,
79
+ * otherwise what went wrong. Arguments as an array, no shell; `herdr` is the full path from the tools step.
80
+ */
81
+ function herdrInstall(ctx, herdr) {
82
+ const timeout = ctx.deps.herdrInstallTimeoutMs ?? HERDR_INSTALL_TIMEOUT_MS;
83
+ const result = spawnSync(herdr, ['integration', 'install', 'claude'], {
84
+ env: ctx.io.env, encoding: 'utf8', timeout, stdio: ['ignore', 'pipe', 'pipe'],
85
+ });
86
+ for (const one of (result.stdout ?? '').split('\n'))
87
+ if (one.trim() !== '')
88
+ line(ctx, ` ${visibleLine(one)}`);
89
+ const stderr = (result.stderr ?? '').split('\n').map((one) => one.trim()).filter((one) => one !== '')
90
+ .map(visibleLine).join(' | ');
91
+ const tail = stderr === '' ? '' : `: ${stderr}`;
92
+ if (isRecord(result.error) && result.error['code'] === 'ETIMEDOUT') {
93
+ return `no result within ${String(timeout / 1000)} s${tail}`;
94
+ }
95
+ if (result.error !== undefined)
96
+ return `${visibleLine(result.error.message)}${tail}`;
97
+ if (result.status !== 0) {
98
+ return `${result.status === null ? `signal ${String(result.signal)}` : `code ${String(result.status)}`}${tail}`;
99
+ }
100
+ const again = herdrClaudeIntegration(herdr, ctx.io.env);
101
+ return again.state === 'current' ? null : `finished, but the status still says: ${visibleLine(again.text)}`;
102
+ }
103
+ /** The `statusLine` command of the settings file, or `null` (no file, no key, unreadable: the writer says why). */
104
+ function statusLineCommand(home) {
105
+ try {
106
+ const read = readRegularFileSync(userSettingsPath(home), { maxBytes: 4 * 1024 * 1024, followSymlink: true });
107
+ if (read === null || read.truncated)
108
+ return null;
109
+ const parsed = JSON.parse(read.bytes.toString('utf8'));
110
+ const status = isRecord(parsed) ? parsed['statusLine'] : undefined;
111
+ const command = isRecord(status) ? status['command'] : undefined;
112
+ return typeof command === 'string' && command.trim() !== '' ? command : null;
113
+ }
114
+ catch {
115
+ return null;
116
+ }
117
+ }
118
+ /**
119
+ * The user's own `statusLine` command: the screen with `--verbose` shows it, never the log; a snapshot from the
120
+ * last hour means it writes the snapshots itself and stays, otherwise it is chained behind the Rarog script.
121
+ */
122
+ function noteStatusLine(ctx) {
123
+ const command = statusLineCommand(ctx.home);
124
+ if (command === null) {
125
+ line(ctx, 'no statusLine in ~/.claude/settings.json — the app will not show plan limits or the context window size');
126
+ return;
127
+ }
128
+ if (isRarogStatuslineCommand(command))
129
+ return;
130
+ ctx.view.settingsDiff(` custom statusLine command: ${command}`);
131
+ const dump = newestStatuslineDump(ctx.home);
132
+ if ('code' in dump)
133
+ return;
134
+ line(ctx, dump.newest !== null && Date.now() - dump.newest <= STATUSLINE_FRESH_MS
135
+ ? 'it writes the snapshots ~/.claude/statusline/<session>.json that Rarog reads (one from the last hour is there),'
136
+ + ' so setup leaves it'
137
+ : 'no snapshot from the last hour in ~/.claude/statusline/: it is chained behind the Rarog script, gets the same'
138
+ + ' payload on stdin after the dump, and its output stays on the status line');
139
+ }
140
+ /** The structural log line of one operation: what and where, never the file's content. */
141
+ function logLine(operation, outcome, write) {
142
+ const change = {
143
+ written: 'added', declined: 'declined', 'no-terminal': 'not written (no terminal)',
144
+ };
145
+ const state = outcome === undefined ? 'not planned'
146
+ : outcome.kind === 'change' ? change[write] ?? `not written (${write})`
147
+ : outcome.kind === 'copy-not-ready' ? 'not written (copy not ready)' : outcome.kind;
148
+ return `claude settings: ${operation}, ${SETTINGS_KEYS[operation]}: ${state}`;
149
+ }
150
+ /** Conflicts, refusals and missing copies of single operations: their lines, and one issue each. */
151
+ function issuesOf(ctx, outcomes) {
152
+ const issues = [];
153
+ const byHand = `fix ~/.claude/settings.json by hand (${BY_HAND}), then rarog setup`;
154
+ for (const operation of SETTINGS_OPERATIONS) {
155
+ const outcome = outcomes.get(operation);
156
+ const what = ENTRY_NAMES[operation];
157
+ if (outcome?.kind === 'conflict') {
158
+ line(ctx, `conflict in ~/.claude/settings.json, ${what} not changed:`);
159
+ // The step line carries the one sentence and the fix: each reason goes to the run log without the
160
+ // command it may quote from the file, and whole to the screen with --verbose only.
161
+ for (const reason of outcome.reasons) {
162
+ ctx.view.logOnly(` ${conflictWithoutQuote(reason)}`);
163
+ ctx.view.settingsDiff(` ${reason}`);
164
+ }
165
+ issues.push({ text: `${what} not changed (conflict)`, fix: byHand });
166
+ }
167
+ else if (outcome?.kind === 'refused') {
168
+ line(ctx, `${what} not changed: ${outcome.reason}`);
169
+ issues.push({ text: `${what} not changed (${outcome.reason})`, fix: byHand });
170
+ }
171
+ else if (outcome?.kind === 'copy-not-ready') {
172
+ line(ctx, `${what} not written: ${outcome.reason}`);
173
+ issues.push({ text: `${what} waits for the hook copy`, fix: 'rarog hooks install, then rarog setup', copy: true });
174
+ }
175
+ }
176
+ if (outcomes.get('statusLine')?.kind === 'unchanged' && statusLineScriptOutOfDate(ctx)) {
177
+ line(ctx, 'the statusLine command points to the script copy, but the copy differs from the repo or is missing');
178
+ issues.push({ text: 'status line script out of date', fix: 'rarog hooks doctor, then rarog hooks install' });
179
+ }
180
+ return issues;
181
+ }
182
+ /** `statusLine` in the settings runs the Rarog script copy, and that copy differs from this installation or is missing. */
183
+ export function statusLineScriptOutOfDate(ctx) {
184
+ const command = statusLineCommand(ctx.home);
185
+ return command !== null && isRarogStatuslineCommand(command) && !statuslineCopyReport(ctx.home, ctx.installRoot).ok;
186
+ }
187
+ /** Entries the write added, herdr's hook and the backup, in one phrase for the step line; '' = nothing added. */
188
+ function writtenText(count, herdr, backup) {
189
+ const parts = [...count === 0 ? [] : [`${String(count)} ${count === 1 ? 'entry' : 'entries'}`],
190
+ ...herdr ? ['herdr\'s hook'] : []];
191
+ if (parts.length === 0)
192
+ return '';
193
+ return `${parts.join(' and ')} added${backup ? ', backup kept' : ''}`;
194
+ }
195
+ /**
196
+ * The phrases of a step line with issues: `head` (what was added), the entries waiting for the hook copy as one phrase
197
+ * after it (`1 entry added, 3 wait for the hook copy`; a single one keeps its name), then every other issue.
198
+ */
199
+ function issueTexts(head, issues) {
200
+ const waiting = issues.filter((one) => one.copy === true);
201
+ const group = waiting.length === 0 ? '' : waiting.length === 1 ? waiting[0]?.text ?? ''
202
+ : `${String(waiting.length)} ${head === '' ? 'entries ' : ''}wait for the hook copy`;
203
+ const first = [head, group].filter((one) => one !== '').join(', ');
204
+ return [...first === '' ? [] : [first], ...issues.filter((one) => one.copy !== true).map((one) => one.text)];
205
+ }
206
+ /**
207
+ * The `statusLine` operation would write a command pointing at the script copy, and that copy is missing or differs
208
+ * (its planned outcome waits for the copy): only then does setup offer the missing script before this step. A custom
209
+ * command that stays, or a command already in place, needs no copy from this step.
210
+ */
211
+ export function statusLineWaitsForScript(ctx) {
212
+ const planned = plannedOutcomes({
213
+ home: ctx.home, root: ctx.installRoot, operations: ['statusLine'], dataDir: ctx.dataDir, again: 'rarog setup',
214
+ });
215
+ return planned?.get('statusLine')?.kind === 'copy-not-ready';
216
+ }
217
+ /** The step: one question, one Rarog write, then herdr's installer. */
218
+ export async function stepClaudeSettings(ctx) {
219
+ const title = 'Settings';
220
+ const integration = ctx.herdrIntegration;
221
+ const herdr = ctx.herdr !== null && integration !== null
222
+ && (integration.state === 'missing' || integration.state === 'other') ? ctx.herdr : null;
223
+ if (integration !== null && herdr !== null)
224
+ line(ctx, herdrIntegrationLine(integration));
225
+ noteStatusLine(ctx);
226
+ const batch = await writeClaudeSettingsBatch({
227
+ home: ctx.home, root: ctx.installRoot, operations: SETTINGS_OPERATIONS, dataDir: ctx.dataDir,
228
+ lock: { dir: rarogConfigDir(ctx.io.env), what: 'rarog setup' },
229
+ confirm: ctx.ask === null ? null : async (question) => ask(ctx, question, herdr !== null),
230
+ print: (text) => { line(ctx, text); },
231
+ // The diff quotes the user's file: the screen with --verbose, never the run log.
232
+ printDiff: (text) => { ctx.view.settingsDiff(` ${text}`); },
233
+ again: 'rarog setup',
234
+ });
235
+ const { outcomes, write } = batch;
236
+ for (const operation of SETTINGS_OPERATIONS) {
237
+ ctx.view.logOnly(logLine(operation, outcomes.get(operation), write.kind));
238
+ }
239
+ const changes = SETTINGS_OPERATIONS.filter((one) => outcomes.get(one)?.kind === 'change');
240
+ switch (write.kind) {
241
+ case 'refused':
242
+ line(ctx, `~/.claude/settings.json not changed: ${write.reason}`);
243
+ return { title, state: 'problem', summary: `Settings: not changed (${write.reason})` };
244
+ case 'declined':
245
+ return {
246
+ title, state: 'missing', skipped: true, summary: `Settings: skipped (add by hand: ${BY_HAND})`,
247
+ };
248
+ case 'no-terminal': {
249
+ const also = herdr === null ? '' : ` and herdr's hook (${HERDR_INTEGRATION_INSTALL})`;
250
+ return {
251
+ title, state: 'missing',
252
+ summary: `Settings: ${String(changes.length)} Rarog ${changes.length === 1 ? 'entry' : 'entries'}${also}`
253
+ + `: run rarog setup in a terminal (or add by hand: ${BY_HAND})`,
254
+ };
255
+ }
256
+ case 'unchanged':
257
+ case 'written':
258
+ break;
259
+ default:
260
+ // Single-operation outcomes never stand for the whole write.
261
+ return { title, state: 'problem', summary: `Settings: ${write.kind}` };
262
+ }
263
+ const issues = issuesOf(ctx, outcomes);
264
+ let herdrDone = false;
265
+ let herdrProblem = null;
266
+ if (herdr !== null) {
267
+ if (write.kind === 'unchanged' && ctx.ask === null) {
268
+ issues.push({ text: `herdr's hook: run rarog setup in a terminal`, fix: 'rarog setup' });
269
+ }
270
+ else if (write.kind === 'written' || await ask(ctx, null, true)) {
271
+ herdrProblem = herdrInstall(ctx, herdr);
272
+ herdrDone = herdrProblem === null;
273
+ if (herdrProblem !== null)
274
+ line(ctx, `${HERDR_INTEGRATION_INSTALL}: ${herdrProblem}`);
275
+ }
276
+ else {
277
+ return {
278
+ title, state: 'missing', skipped: true,
279
+ summary: `Settings: herdr's hook skipped (${HERDR_INTEGRATION_INSTALL})`,
280
+ };
281
+ }
282
+ }
283
+ const added = write.kind === 'written' ? changes.length : 0;
284
+ const written = writtenText(added, herdrDone, write.kind === 'written' && write.backup !== null);
285
+ // The backup stays in the summary and in the log line of the write (`backup: <file>`), not on the screen line.
286
+ const shown = writtenText(added, herdrDone, false);
287
+ const done = written === '' ? 'entries match' : written;
288
+ const changed = write.kind === 'written' || herdrDone;
289
+ if (issues.length === 0 && herdrProblem === null) {
290
+ return { title, state: 'ok', summary: `Settings: ${done}`, result: shown === '' ? done : shown, changed };
291
+ }
292
+ // Every problem and every fix on the step line: an entry that did not go in and a failed herdr installer. What was
293
+ // written still counts as a change under the `!`.
294
+ const head = (text) => (issues.length === 0 && text === '' ? 'entries match' : text);
295
+ const herdrText = 'herdr\'s hook not added';
296
+ const fixes = [...issues.map((one) => one.fix), ...herdrProblem === null ? [] : [HERDR_INTEGRATION_INSTALL]];
297
+ return {
298
+ title, state: issues.length > 0 ? 'missing' : 'warn',
299
+ summary: `Settings: ${[...issueTexts(head(written), issues),
300
+ ...herdrProblem === null ? [] : [`${herdrText} (${herdrProblem})`]].join('; ')}`,
301
+ result: [...issueTexts(head(shown), issues), ...herdrProblem === null ? [] : [herdrText]].join('; '),
302
+ fix: [...new Set(fixes)].join('; '),
303
+ changed,
304
+ };
305
+ }
@@ -0,0 +1,235 @@
1
+ /**
2
+ * `rarog setup --tailscale`: an existing `config.json` without an address (`RAROG_ORIGINS` empty, blank or only
3
+ * entries the server skips) gets the Tailscale address on a port of the pool (`choosePort`), as an item of the plan
4
+ * screen and only after its "y"; the write adds the address in front of `RAROG_ORIGINS` and keeps every other byte
5
+ * (`replaceConfig`, under the Rarog lock). Step 4 then maps it with `tailscale serve`, as for an address of a new
6
+ * `config.json`; so does a run that finds a pool address of this machine in the file (one written before the run was
7
+ * cut short). It restarts nothing: the closing notes say how the server and the paired devices get the address.
8
+ */
9
+ import path from 'node:path';
10
+ import { DEFAULT_PORT, parseOrigins } from '../config/listen.js';
11
+ import { rarogCli, repairCommands, shellQuote } from '../install/repair.js';
12
+ import { CONFIG_WRITES, NOTHING_CHANGED, readSetupConfig, replaceConfig } from './config-rewrite.js';
13
+ import { Refusal } from './io.js';
14
+ import { CONFIG_FILENAME, rarogConfigDir, readRarogConfig } from './serve.js';
15
+ import { configPort, line } from './setup-context.js';
16
+ import { tilde } from './setup-plan.js';
17
+ import { underLock } from './setup-secrets.js';
18
+ import { TAILSCALE_PORTS, choosePort, httpsPortOf } from './setup-tailscale-port.js';
19
+ import { firstOrigin, stepTailscale, tailscaleOrigin } from './setup-transport.js';
20
+ const TITLE = 'tailscale serve';
21
+ const ORIGINS = 'RAROG_ORIGINS';
22
+ /** `args` of a `rarog` command for this installation, with the run's `--data-dir` when it had one. */
23
+ const cliFor = (ctx, args) => rarogCli(ctx.dataDirFlag === null ? args : `${args} --data-dir ${shellQuote(ctx.dataDirFlag)}`, ctx.mode);
24
+ /** The command that offers the address again. */
25
+ const again = (ctx) => cliFor(ctx, 'setup --tailscale');
26
+ /** The addresses the server takes from a `RAROG_ORIGINS` value (an entry it skips is no address). */
27
+ function addressesOf(raw) {
28
+ try {
29
+ return parseOrigins(raw, false, DEFAULT_PORT, true).allowed;
30
+ }
31
+ catch {
32
+ return [];
33
+ }
34
+ }
35
+ const problem = (summary, result, fix) => ({
36
+ title: TITLE, state: 'problem', summary: `${TITLE}: ${summary}`, result, fix,
37
+ });
38
+ /**
39
+ * The address for this machine now: `tailscale status` (its state kept for step 4: the Tailscale IPs to probe, HTTPS
40
+ * off), then the port `choosePort` gives for the server port `port`; or the step that says why there is none.
41
+ */
42
+ async function chooseAddress(ctx, port) {
43
+ if (!ctx.tailscale) {
44
+ line(ctx, `--tailscale: tailscale not in PATH; ${NOTHING_CHANGED} in ${CONFIG_FILENAME}`);
45
+ return { step: problem(`tailscale not in PATH; install Tailscale, then ${again(ctx)}`, 'tailscale not in PATH', `install Tailscale, then ${again(ctx)}`) };
46
+ }
47
+ const found = tailscaleOrigin(ctx);
48
+ ctx.tailscaleStatus = found;
49
+ if ('failure' in found) {
50
+ line(ctx, `--tailscale: ${found.failure}; ${NOTHING_CHANGED} in ${CONFIG_FILENAME}`);
51
+ const fix = found.down === 'logged out' ? `log in to Tailscale (tailscale up), then ${again(ctx)}`
52
+ : found.down === null ? `check tailscale status, then ${again(ctx)}`
53
+ : `start Tailscale (tailscale up), then ${again(ctx)}`;
54
+ return { step: problem(`${found.failure}; ${fix}`, `Tailscale ${found.down ?? 'gives no address'}`, fix) };
55
+ }
56
+ if (found.httpsOff) {
57
+ line(ctx, '--tailscale: HTTPS is off in this tailnet (tailscale status --json: no CertDomains or no https in'
58
+ + ` Self.CapMap); ${NOTHING_CHANGED} in ${CONFIG_FILENAME}`);
59
+ const fix = `enable HTTPS in the Tailscale admin console, then ${again(ctx)}`;
60
+ return { step: problem(`HTTPS is off in your tailnet; ${fix}`, 'HTTPS is off in your tailnet', fix) };
61
+ }
62
+ ctx.tailscaleIps = found.ips;
63
+ const choice = await choosePort(ctx, new URL(found.origin).hostname, port);
64
+ if (choice.kind === 'none') {
65
+ line(ctx, `--tailscale: ${choice.why}; ${NOTHING_CHANGED} in ${CONFIG_FILENAME}`);
66
+ const fix = `free a port of ${TAILSCALE_PORTS[0] ?? ''}–${TAILSCALE_PORTS.at(-1) ?? ''} (tailscale serve status),`
67
+ + ` then ${again(ctx)}`;
68
+ return { step: problem(choice.why, choice.why.split(':')[0] ?? choice.why, fix) };
69
+ }
70
+ return { origin: choice.kind === 'plain' ? found.origin : `${found.origin}:${String(choice.port)}` };
71
+ }
72
+ /** `RAROG_PORT` of `config` as step 4 reads it (`configPort`). */
73
+ const portOf = (config) => configPort({ config });
74
+ export function tailscaleAddress(ctx, writes = CONFIG_WRITES) {
75
+ const file = path.join(rarogConfigDir(ctx.io.env), CONFIG_FILENAME);
76
+ let found = { kind: 'skip', why: 'not read' };
77
+ let written = false;
78
+ /** A pool address of this machine found in the file: a run cut short after the write is being finished. */
79
+ let resumed = false;
80
+ /** The address of a `config.json` that has one: step 4 may run `serve` for a pool address of this machine. */
81
+ const adopt = () => {
82
+ const origin = firstOrigin(ctx);
83
+ if (origin === null || ctx.ask === null || !ctx.tailscale)
84
+ return;
85
+ let url;
86
+ try {
87
+ url = new URL(origin);
88
+ }
89
+ catch {
90
+ return;
91
+ }
92
+ if (!url.hostname.endsWith('.ts.net') || !TAILSCALE_PORTS.includes(httpsPortOf(url)))
93
+ return;
94
+ const status = tailscaleOrigin(ctx);
95
+ ctx.tailscaleStatus = status;
96
+ if ('failure' in status) {
97
+ line(ctx, `--tailscale: ${status.failure}`);
98
+ return;
99
+ }
100
+ ctx.tailscaleIps = status.ips;
101
+ if (new URL(status.origin).hostname !== url.hostname) {
102
+ line(ctx, `--tailscale: ${origin} is not this machine's Tailscale name (${status.origin}); setup does not run`
103
+ + ' tailscale serve for it');
104
+ return;
105
+ }
106
+ ctx.originFromTailscale = origin;
107
+ };
108
+ /** A refused write: by hand for a file in another layout, otherwise the flag again. */
109
+ const refusedStep = (why, origin) => {
110
+ line(ctx, why);
111
+ const fix = why.includes('by hand') ? `set "${ORIGINS}": "${origin}" in ${tilde(file, ctx.home)} by hand, then`
112
+ + ` ${repairCommands(ctx.mode, ctx.installRoot).restart}` : again(ctx);
113
+ return problem(`address not added: ${why}`, `address not added (${CONFIG_FILENAME} unchanged)`, fix);
114
+ };
115
+ /** Writes the address under the Rarog lock; the step that says why not, or `null` when written. */
116
+ const write = (origin) => {
117
+ const done = underLock(ctx, () => {
118
+ const { first, parsed, env } = readSetupConfig(file, ctx.io.env, `"${ORIGINS}": "${origin}"`);
119
+ const raw = typeof env[ORIGINS] === 'string' ? env[ORIGINS] : undefined;
120
+ if (addressesOf(raw).length > 0) {
121
+ throw new Refusal(`${file} has an address in ${ORIGINS} now; ${NOTHING_CHANGED}.`);
122
+ }
123
+ const kept = (raw ?? '').split(',').map((one) => one.trim()).filter((one) => one !== '');
124
+ replaceConfig(first, { ...parsed, env: { ...env, [ORIGINS]: [origin, ...kept].join(',') } }, writes, 'the Tailscale address');
125
+ return 'written';
126
+ });
127
+ return done === 'written' ? null : refusedStep(done.problem, origin);
128
+ };
129
+ return {
130
+ async plan() {
131
+ let config;
132
+ try {
133
+ config = readRarogConfig(ctx.io.env);
134
+ }
135
+ catch (failure) {
136
+ if (!(failure instanceof Refusal))
137
+ throw failure;
138
+ found = { kind: 'skip', why: `${CONFIG_FILENAME} cannot be read` };
139
+ return [];
140
+ }
141
+ if (config === null) {
142
+ found = { kind: 'skip', why: `no ${CONFIG_FILENAME} yet; this run creates one with the transport it finds` };
143
+ return [];
144
+ }
145
+ const present = addressesOf(config.env[ORIGINS]);
146
+ if (present[0] !== undefined) {
147
+ found = { kind: 'present', origin: present[0] };
148
+ return [];
149
+ }
150
+ if (ctx.ask === null) {
151
+ found = {
152
+ kind: 'step',
153
+ step: {
154
+ title: TITLE, state: 'missing',
155
+ summary: `${TITLE}: ${CONFIG_FILENAME} has no address; run ${again(ctx)} in a terminal`,
156
+ result: 'no address (--tailscale asks in a terminal)', fix: `run ${again(ctx)} in a terminal`,
157
+ },
158
+ };
159
+ return [];
160
+ }
161
+ const chosen = await chooseAddress(ctx, portOf(config));
162
+ if ('step' in chosen) {
163
+ found = { kind: 'step', step: chosen.step };
164
+ return [];
165
+ }
166
+ // A file the writer refuses (another layout) gets no item: the step says what to set by hand.
167
+ try {
168
+ readSetupConfig(file, ctx.io.env, `"${ORIGINS}": "${chosen.origin}"`);
169
+ }
170
+ catch (failure) {
171
+ if (!(failure instanceof Refusal))
172
+ throw failure;
173
+ found = { kind: 'step', step: refusedStep(failure.message, chosen.origin) };
174
+ return [];
175
+ }
176
+ found = { kind: 'add', origin: chosen.origin };
177
+ return [{ item: 'tailscale', what: `Tailscale address in ${CONFIG_FILENAME}`, where: chosen.origin }];
178
+ },
179
+ async step() {
180
+ const before = found;
181
+ switch (before.kind) {
182
+ case 'skip':
183
+ ctx.view.note(`--tailscale adds nothing: ${before.why}.`);
184
+ return stepTailscale(ctx);
185
+ case 'present':
186
+ ctx.view.note(`${CONFIG_FILENAME} already has an address (${before.origin}); --tailscale adds nothing.`);
187
+ adopt();
188
+ resumed = ctx.originFromTailscale === before.origin;
189
+ return stepTailscale(ctx);
190
+ case 'step':
191
+ return before.step;
192
+ case 'add':
193
+ break;
194
+ }
195
+ const planned = before.origin;
196
+ if (!ctx.accepted.has('tailscale') || ctx.config === null) {
197
+ return problem(`address not added; run ${again(ctx)}`, 'address not added', again(ctx));
198
+ }
199
+ // The state again after the plan question: the address shown there, or nothing written.
200
+ const now = await chooseAddress(ctx, configPort(ctx));
201
+ if ('step' in now)
202
+ return now.step;
203
+ if (now.origin !== planned) {
204
+ line(ctx, `--tailscale: the address is ${now.origin} now, not ${planned} as the plan said; ${NOTHING_CHANGED}`);
205
+ return problem(`Tailscale changed during the question; run ${again(ctx)}`, 'Tailscale changed during the question', again(ctx));
206
+ }
207
+ const refused = write(planned);
208
+ if (refused !== null)
209
+ return refused;
210
+ written = true;
211
+ ctx.config = readRarogConfig(ctx.io.env);
212
+ ctx.originFromTailscale = planned;
213
+ line(ctx, `${file}: ${ORIGINS} ${planned} added`);
214
+ const serve = await stepTailscale(ctx);
215
+ const bare = (text) => text.replace(/^tailscale serve: /u, '');
216
+ const said = bare(serve.result ?? serve.summary);
217
+ return {
218
+ ...serve,
219
+ summary: `${TITLE}: address ${planned} added to ${CONFIG_FILENAME}; ${bare(serve.summary)}`,
220
+ result: `address added; ${said === 'declined' ? 'tailscale serve declined' : said}`,
221
+ changed: true,
222
+ };
223
+ },
224
+ notes() {
225
+ if (!written && !resumed)
226
+ return;
227
+ const { restart } = repairCommands(ctx.mode, ctx.installRoot);
228
+ ctx.view.note(ctx.view.absoluteFix(`The server reads the new address at start: run ${restart}.`));
229
+ ctx.view.note(ctx.view.absoluteFix('Devices paired before keep connecting over iroh. To give them the address:'
230
+ + ` ${cliFor(ctx, 'devices revoke --all')}, then ${cliFor(ctx, 'pair')}, then pair the other devices from the`
231
+ + ' first one\'s app (Settings → Pairing → Pair New Device). A revoked device loses its unsent messages and'
232
+ + ' drafts.'));
233
+ },
234
+ };
235
+ }
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Tailscale only for a new `config.json` of `rarog setup`: the app reaches the server only through the Tailscale
3
+ * address, iroh stays off (`RAROG_IROH=0`, its relay kept for a switch back). `--tailscale-only` chooses it; without the
4
+ * flag a first setup in a terminal, on a machine with the iroh module and `tailscale` in `PATH`, asks one question
5
+ * before the plan screen. The answer only changes the transport plan (`setup-transport.ts`): it opens no run log and
6
+ * writes nothing, so "Continue?" stays the one consent to write. An existing `config.json` keeps its transport; the
7
+ * flag then writes nothing and points at the docs, which say how to switch by hand.
8
+ */
9
+ import path from 'node:path';
10
+ import { confirm as confirmForm } from './screen/ask.js';
11
+ import { CONFIG_FILENAME, rarogConfigDir } from './serve.js';
12
+ import { entry } from './setup-context.js';
13
+ import { TAILSCALE_ONLY_CHOSEN, tailscaleOrigin } from './setup-transport.js';
14
+ /** The flag that chooses Tailscale only without the question. */
15
+ export const TAILSCALE_ONLY_FLAG = '--tailscale-only';
16
+ /** The question before the plan screen; "n", Enter and EOF keep the standard transport. */
17
+ export const TAILSCALE_ONLY_QUESTION = 'Connect the app only through Tailscale?';
18
+ /**
19
+ * What the question is for, right above it (one line each at 60 columns): both ways are encrypted; the answer decides
20
+ * only where the app can connect from.
21
+ */
22
+ export const TAILSCALE_ONLY_NOTES = [
23
+ 'Standard: encrypted, the app connects from any network.',
24
+ 'y: encrypted too, the app connects only in your tailnet.',
25
+ ];
26
+ /** The plan item of a new `config.json` with Tailscale only (it has no server key). */
27
+ export const TAILSCALE_ONLY_PLAN_ITEM = `config, ${TAILSCALE_ONLY_CHOSEN}`;
28
+ /**
29
+ * The question in the `[y/N]` form, through the view's question that opens no run log: a "y" here writes nothing, and
30
+ * the log file appears only with "Continue?". `false` without a terminal.
31
+ */
32
+ async function askTailscaleOnly(ctx) {
33
+ const ask = ctx.view.askBeforePlan;
34
+ if (ask === null)
35
+ return false;
36
+ for (const note of TAILSCALE_ONLY_NOTES)
37
+ ctx.view.questionNote(note);
38
+ return confirmForm(ask, TAILSCALE_ONLY_QUESTION, 'y/N', { width: ctx.view.screen.layout.width });
39
+ }
40
+ /**
41
+ * Before the plan screen, after the tools check: the flag, or the question, sets `ctx.tailscaleOnly` (with `relay`,
42
+ * the relay `config.json` keeps for a switch back), and in a terminal a choice Tailscale cannot serve stops the run
43
+ * here with nothing written: no `tailscale` in `PATH`, or a client that is logged out or stopped (read again after
44
+ * "Continue?"). An existing `config.json` with the flag stops too, because setup does not switch it. `null` = go on.
45
+ */
46
+ export async function tailscaleOnlyBeforePlan(ctx, options) {
47
+ const flag = TAILSCALE_ONLY_FLAG;
48
+ if (entry(path.join(rarogConfigDir(ctx.io.env), CONFIG_FILENAME)) !== 'missing') {
49
+ if (!options.flag)
50
+ return null;
51
+ return {
52
+ lines: [`${flag}: ${CONFIG_FILENAME} exists, and setup does not change its transport`],
53
+ sentence: `${flag} is for a new ${CONFIG_FILENAME}; nothing changed.`,
54
+ fix: 'switch by hand: docs/server-config.md, "Tailscale only"',
55
+ };
56
+ }
57
+ const asks = !options.flag && ctx.ask !== null && ctx.iroh.ready && ctx.tailscale;
58
+ if (!options.flag && !(asks && await askTailscaleOnly(ctx)))
59
+ return null;
60
+ ctx.tailscaleOnly = { relay: options.relay };
61
+ // Without a terminal nothing is written anyway; without the iroh module the tools check has judged Tailscale.
62
+ if (ctx.ask === null || !ctx.iroh.ready)
63
+ return null;
64
+ const again = options.flag ? `rarog setup ${flag}` : 'rarog setup';
65
+ const chosen = `transport: ${TAILSCALE_ONLY_CHOSEN}`;
66
+ if (!ctx.tailscale) {
67
+ return {
68
+ lines: [chosen, 'MISSING tailscale — not in PATH'],
69
+ sentence: 'Rarog cannot run without tailscale; nothing changed.', fix: `install Tailscale, then ${again}`,
70
+ };
71
+ }
72
+ const status = tailscaleOrigin(ctx);
73
+ if (!('failure' in status) || (status.down !== 'logged out' && status.down !== 'stopped'))
74
+ return null;
75
+ const loggedOut = status.down === 'logged out';
76
+ return {
77
+ lines: [chosen, `MISSING ${status.failure}`],
78
+ sentence: `Rarog cannot run without ${loggedOut ? 'a logged-in' : 'a running'} Tailscale; nothing changed.`,
79
+ fix: `${loggedOut ? 'log in to' : 'start'} Tailscale (tailscale up), then ${again}`,
80
+ };
81
+ }