pi-codex-auto-review 0.1.2 → 0.1.3

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 (1013) hide show
  1. package/README.md +19 -10
  2. package/dist/approval-commands.d.ts +4 -0
  3. package/dist/approval-commands.js +103 -0
  4. package/dist/approval-commands.js.map +1 -0
  5. package/dist/approval-settings.d.ts +9 -0
  6. package/dist/approval-settings.js +40 -0
  7. package/dist/approval-settings.js.map +1 -0
  8. package/dist/contracts.d.ts +2 -0
  9. package/dist/contracts.js.map +1 -1
  10. package/dist/index.d.ts +2 -2
  11. package/dist/index.js +15 -34
  12. package/dist/index.js.map +1 -1
  13. package/dist/policy/index.d.ts +0 -1
  14. package/dist/policy/index.js +6 -32
  15. package/dist/policy/index.js.map +1 -1
  16. package/dist/review/investigation.d.ts +3 -3
  17. package/dist/review/investigation.js +1 -1
  18. package/dist/review/investigation.js.map +1 -1
  19. package/dist/review/policy.js +1 -1
  20. package/dist/tools/controller.d.ts +7 -4
  21. package/dist/tools/controller.js +51 -35
  22. package/dist/tools/controller.js.map +1 -1
  23. package/dist/tools/environment.d.ts +1 -0
  24. package/dist/tools/environment.js +6 -0
  25. package/dist/tools/environment.js.map +1 -0
  26. package/dist/tools/executor.d.ts +14 -0
  27. package/dist/tools/executor.js +75 -0
  28. package/dist/tools/executor.js.map +1 -0
  29. package/dist/tools/mutation-queue.d.ts +1 -0
  30. package/dist/tools/mutation-queue.js +16 -0
  31. package/dist/tools/mutation-queue.js.map +1 -0
  32. package/docs/publishing.md +7 -7
  33. package/docs/security/dependencies.md +13 -3
  34. package/docs/testing/auto-review-protection.md +28 -8
  35. package/docs/usage.md +19 -16
  36. package/package.json +11 -14
  37. package/dist/sandbox/broker.d.ts +0 -1
  38. package/dist/sandbox/broker.js +0 -139
  39. package/dist/sandbox/broker.js.map +0 -1
  40. package/dist/sandbox/config.d.ts +0 -5
  41. package/dist/sandbox/config.js +0 -97
  42. package/dist/sandbox/config.js.map +0 -1
  43. package/dist/sandbox/directory-scan.d.ts +0 -1
  44. package/dist/sandbox/directory-scan.js +0 -32
  45. package/dist/sandbox/directory-scan.js.map +0 -1
  46. package/dist/sandbox/executor.d.ts +0 -20
  47. package/dist/sandbox/executor.js +0 -146
  48. package/dist/sandbox/executor.js.map +0 -1
  49. package/dist/sandbox/hard-links.d.ts +0 -4
  50. package/dist/sandbox/hard-links.js +0 -155
  51. package/dist/sandbox/hard-links.js.map +0 -1
  52. package/dist/sandbox/linux-read-paths.d.ts +0 -7
  53. package/dist/sandbox/linux-read-paths.js +0 -47
  54. package/dist/sandbox/linux-read-paths.js.map +0 -1
  55. package/dist/sandbox/paths.d.ts +0 -3
  56. package/dist/sandbox/paths.js +0 -10
  57. package/dist/sandbox/paths.js.map +0 -1
  58. package/dist/sandbox/runtime-write-paths.d.ts +0 -2
  59. package/dist/sandbox/runtime-write-paths.js +0 -8
  60. package/dist/sandbox/runtime-write-paths.js.map +0 -1
  61. package/dist/sandbox/seccomp.d.ts +0 -5
  62. package/dist/sandbox/seccomp.js +0 -16
  63. package/dist/sandbox/seccomp.js.map +0 -1
  64. package/dist/sandbox/worker.d.ts +0 -1
  65. package/dist/sandbox/worker.js +0 -78
  66. package/dist/sandbox/worker.js.map +0 -1
  67. package/node_modules/@anthropic-ai/sandbox-runtime/LICENSE +0 -201
  68. package/node_modules/@anthropic-ai/sandbox-runtime/README.md +0 -901
  69. package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts +0 -3
  70. package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts.map +0 -1
  71. package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js +0 -472
  72. package/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js.map +0 -1
  73. package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts +0 -19
  74. package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts.map +0 -1
  75. package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js +0 -17
  76. package/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js.map +0 -1
  77. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts +0 -52
  78. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts.map +0 -1
  79. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js +0 -153
  80. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js.map +0 -1
  81. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts +0 -164
  82. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts.map +0 -1
  83. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js +0 -246
  84. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js.map +0 -1
  85. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts +0 -58
  86. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts.map +0 -1
  87. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js +0 -128
  88. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js.map +0 -1
  89. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts +0 -124
  90. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts.map +0 -1
  91. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js +0 -258
  92. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js.map +0 -1
  93. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts +0 -87
  94. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts.map +0 -1
  95. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js +0 -138
  96. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js.map +0 -1
  97. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts +0 -67
  98. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts.map +0 -1
  99. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js +0 -113
  100. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js.map +0 -1
  101. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts +0 -70
  102. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts.map +0 -1
  103. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js +0 -171
  104. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js.map +0 -1
  105. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts +0 -120
  106. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts.map +0 -1
  107. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js +0 -281
  108. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js.map +0 -1
  109. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts +0 -108
  110. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts.map +0 -1
  111. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js +0 -208
  112. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js.map +0 -1
  113. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts +0 -82
  114. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts.map +0 -1
  115. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js +0 -155
  116. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js.map +0 -1
  117. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts +0 -44
  118. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts.map +0 -1
  119. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js +0 -220
  120. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js.map +0 -1
  121. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts +0 -150
  122. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts.map +0 -1
  123. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js +0 -678
  124. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js.map +0 -1
  125. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts +0 -32
  126. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts.map +0 -1
  127. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js +0 -111
  128. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js.map +0 -1
  129. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts +0 -305
  130. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts.map +0 -1
  131. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js +0 -2605
  132. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js.map +0 -1
  133. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts +0 -55
  134. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts.map +0 -1
  135. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js +0 -152
  136. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js.map +0 -1
  137. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts +0 -12
  138. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts.map +0 -1
  139. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js +0 -43
  140. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js.map +0 -1
  141. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts +0 -116
  142. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts.map +0 -1
  143. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js +0 -1195
  144. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js.map +0 -1
  145. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts +0 -200
  146. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts.map +0 -1
  147. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js +0 -443
  148. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js.map +0 -1
  149. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts +0 -28
  150. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts.map +0 -1
  151. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js +0 -114
  152. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js.map +0 -1
  153. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts +0 -59
  154. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts.map +0 -1
  155. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js +0 -159
  156. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js.map +0 -1
  157. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts +0 -147
  158. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts.map +0 -1
  159. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js +0 -445
  160. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js.map +0 -1
  161. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts +0 -17
  162. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts.map +0 -1
  163. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js +0 -163
  164. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js.map +0 -1
  165. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts +0 -83
  166. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts.map +0 -1
  167. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js +0 -212
  168. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js.map +0 -1
  169. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts +0 -76
  170. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts.map +0 -1
  171. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js +0 -221
  172. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js.map +0 -1
  173. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts +0 -1691
  174. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts.map +0 -1
  175. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js +0 -1233
  176. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js.map +0 -1
  177. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts +0 -97
  178. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts.map +0 -1
  179. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js +0 -1937
  180. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js.map +0 -1
  181. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts +0 -113
  182. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts.map +0 -1
  183. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js +0 -3
  184. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js.map +0 -1
  185. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts +0 -411
  186. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts.map +0 -1
  187. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js +0 -1408
  188. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js.map +0 -1
  189. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts +0 -37
  190. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts.map +0 -1
  191. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js +0 -125
  192. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js.map +0 -1
  193. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts +0 -57
  194. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts.map +0 -1
  195. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js +0 -332
  196. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js.map +0 -1
  197. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts +0 -100
  198. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts.map +0 -1
  199. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js +0 -546
  200. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js.map +0 -1
  201. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts +0 -923
  202. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts.map +0 -1
  203. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js +0 -1419
  204. package/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js.map +0 -1
  205. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts +0 -31
  206. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts.map +0 -1
  207. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js +0 -69
  208. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js.map +0 -1
  209. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts +0 -7
  210. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts.map +0 -1
  211. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js +0 -25
  212. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js.map +0 -1
  213. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts +0 -15
  214. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts.map +0 -1
  215. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js +0 -49
  216. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js.map +0 -1
  217. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts +0 -17
  218. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts.map +0 -1
  219. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js +0 -37
  220. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js.map +0 -1
  221. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts +0 -27
  222. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts.map +0 -1
  223. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js +0 -47
  224. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js.map +0 -1
  225. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts +0 -9
  226. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts.map +0 -1
  227. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js +0 -25
  228. package/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js.map +0 -1
  229. package/node_modules/@anthropic-ai/sandbox-runtime/package.json +0 -88
  230. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/build.ts +0 -95
  231. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar +0 -0
  232. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/arm64/apply-seccomp +0 -0
  233. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/build.ts +0 -69
  234. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/x64/apply-seccomp +0 -0
  235. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/arm64/srt-win.exe +0 -0
  236. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/build.ts +0 -28
  237. package/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/x64/srt-win.exe +0 -0
  238. package/node_modules/@pondwader/socks5-server/.github/workflows/ci.yml +0 -27
  239. package/node_modules/@pondwader/socks5-server/LICENSE +0 -20
  240. package/node_modules/@pondwader/socks5-server/README.md +0 -151
  241. package/node_modules/@pondwader/socks5-server/dist/index.d.mts +0 -87
  242. package/node_modules/@pondwader/socks5-server/dist/index.d.ts +0 -87
  243. package/node_modules/@pondwader/socks5-server/dist/index.js +0 -346
  244. package/node_modules/@pondwader/socks5-server/dist/index.mjs +0 -307
  245. package/node_modules/@pondwader/socks5-server/package.json +0 -31
  246. package/node_modules/commander/LICENSE +0 -22
  247. package/node_modules/commander/Readme.md +0 -1157
  248. package/node_modules/commander/esm.mjs +0 -16
  249. package/node_modules/commander/index.js +0 -24
  250. package/node_modules/commander/lib/argument.js +0 -149
  251. package/node_modules/commander/lib/command.js +0 -2509
  252. package/node_modules/commander/lib/error.js +0 -39
  253. package/node_modules/commander/lib/help.js +0 -520
  254. package/node_modules/commander/lib/option.js +0 -330
  255. package/node_modules/commander/lib/suggestSimilar.js +0 -101
  256. package/node_modules/commander/package-support.json +0 -16
  257. package/node_modules/commander/package.json +0 -84
  258. package/node_modules/commander/typings/esm.d.mts +0 -3
  259. package/node_modules/commander/typings/index.d.ts +0 -969
  260. package/node_modules/node-forge/.editorconfig +0 -17
  261. package/node_modules/node-forge/.eslintrc.js +0 -24
  262. package/node_modules/node-forge/.github/workflows/main.yaml +0 -96
  263. package/node_modules/node-forge/.istanbul.yml +0 -2
  264. package/node_modules/node-forge/.npmignore +0 -15
  265. package/node_modules/node-forge/CHANGELOG.md +0 -555
  266. package/node_modules/node-forge/CONTRIBUTING.md +0 -18
  267. package/node_modules/node-forge/LICENSE +0 -331
  268. package/node_modules/node-forge/README.md +0 -2071
  269. package/node_modules/node-forge/RELEASE.md +0 -19
  270. package/node_modules/node-forge/SECURITY.md +0 -5
  271. package/node_modules/node-forge/examples/create-cert.js +0 -110
  272. package/node_modules/node-forge/examples/create-csr.js +0 -66
  273. package/node_modules/node-forge/examples/create-pkcs12.js +0 -160
  274. package/node_modules/node-forge/examples/imap.js +0 -46
  275. package/node_modules/node-forge/examples/sign-p7.js +0 -115
  276. package/node_modules/node-forge/examples/tls.js +0 -189
  277. package/node_modules/node-forge/flash/PooledSocket.as +0 -18
  278. package/node_modules/node-forge/flash/README.md +0 -48
  279. package/node_modules/node-forge/flash/SocketEvent.as +0 -36
  280. package/node_modules/node-forge/flash/SocketPool.as +0 -754
  281. package/node_modules/node-forge/flash/mod_fsp/README +0 -135
  282. package/node_modules/node-forge/flash/mod_fsp/mod_fsp.c +0 -415
  283. package/node_modules/node-forge/flash/package.json +0 -28
  284. package/node_modules/node-forge/flash/policyserver.js +0 -65
  285. package/node_modules/node-forge/flash/policyserver.py +0 -112
  286. package/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
  287. package/node_modules/node-forge/karma-sauce.conf.js +0 -79
  288. package/node_modules/node-forge/karma.conf.js +0 -133
  289. package/node_modules/node-forge/lib/aes.js +0 -1091
  290. package/node_modules/node-forge/lib/aesCipherSuites.js +0 -282
  291. package/node_modules/node-forge/lib/asn1-validator.js +0 -91
  292. package/node_modules/node-forge/lib/asn1.js +0 -1503
  293. package/node_modules/node-forge/lib/baseN.js +0 -186
  294. package/node_modules/node-forge/lib/cipher.js +0 -230
  295. package/node_modules/node-forge/lib/cipherModes.js +0 -999
  296. package/node_modules/node-forge/lib/des.js +0 -496
  297. package/node_modules/node-forge/lib/ed25519.js +0 -1091
  298. package/node_modules/node-forge/lib/forge.js +0 -13
  299. package/node_modules/node-forge/lib/form.js +0 -149
  300. package/node_modules/node-forge/lib/hmac.js +0 -146
  301. package/node_modules/node-forge/lib/http.js +0 -1346
  302. package/node_modules/node-forge/lib/index.all.js +0 -16
  303. package/node_modules/node-forge/lib/index.js +0 -33
  304. package/node_modules/node-forge/lib/jsbn.js +0 -1294
  305. package/node_modules/node-forge/lib/kem.js +0 -168
  306. package/node_modules/node-forge/lib/log.js +0 -319
  307. package/node_modules/node-forge/lib/md.all.js +0 -13
  308. package/node_modules/node-forge/lib/md.js +0 -11
  309. package/node_modules/node-forge/lib/md5.js +0 -289
  310. package/node_modules/node-forge/lib/mgf.js +0 -12
  311. package/node_modules/node-forge/lib/mgf1.js +0 -57
  312. package/node_modules/node-forge/lib/oids.js +0 -180
  313. package/node_modules/node-forge/lib/pbe.js +0 -1023
  314. package/node_modules/node-forge/lib/pbkdf2.js +0 -211
  315. package/node_modules/node-forge/lib/pem.js +0 -237
  316. package/node_modules/node-forge/lib/pkcs1.js +0 -276
  317. package/node_modules/node-forge/lib/pkcs12.js +0 -1078
  318. package/node_modules/node-forge/lib/pkcs7.js +0 -1260
  319. package/node_modules/node-forge/lib/pkcs7asn1.js +0 -410
  320. package/node_modules/node-forge/lib/pki.js +0 -102
  321. package/node_modules/node-forge/lib/prime.js +0 -297
  322. package/node_modules/node-forge/lib/prime.worker.js +0 -168
  323. package/node_modules/node-forge/lib/prng.js +0 -419
  324. package/node_modules/node-forge/lib/pss.js +0 -241
  325. package/node_modules/node-forge/lib/random.js +0 -191
  326. package/node_modules/node-forge/lib/rc2.js +0 -410
  327. package/node_modules/node-forge/lib/rsa.js +0 -1973
  328. package/node_modules/node-forge/lib/sha1.js +0 -319
  329. package/node_modules/node-forge/lib/sha256.js +0 -327
  330. package/node_modules/node-forge/lib/sha512.js +0 -561
  331. package/node_modules/node-forge/lib/socket.js +0 -287
  332. package/node_modules/node-forge/lib/ssh.js +0 -236
  333. package/node_modules/node-forge/lib/tls.js +0 -4282
  334. package/node_modules/node-forge/lib/tlssocket.js +0 -249
  335. package/node_modules/node-forge/lib/util.js +0 -2652
  336. package/node_modules/node-forge/lib/x509.js +0 -3251
  337. package/node_modules/node-forge/lib/xhr.js +0 -738
  338. package/node_modules/node-forge/package.json +0 -123
  339. package/node_modules/node-forge/tests/.eslintrc.js +0 -5
  340. package/node_modules/node-forge/tests/README.md +0 -4
  341. package/node_modules/node-forge/tests/benchmarks/aes-speed.js +0 -62
  342. package/node_modules/node-forge/tests/benchmarks/so-44303784.js +0 -246
  343. package/node_modules/node-forge/tests/flash/README.md +0 -7
  344. package/node_modules/node-forge/tests/flash/Test.as +0 -96
  345. package/node_modules/node-forge/tests/flash/build-flash.xml +0 -7
  346. package/node_modules/node-forge/tests/flash/index.html +0 -28
  347. package/node_modules/node-forge/tests/index.html +0 -33
  348. package/node_modules/node-forge/tests/issues/heartbleed.js +0 -55
  349. package/node_modules/node-forge/tests/issues/issue-428.html +0 -95
  350. package/node_modules/node-forge/tests/issues/issue-428.js +0 -375
  351. package/node_modules/node-forge/tests/karma/index.js +0 -8
  352. package/node_modules/node-forge/tests/karma/testWorker.js +0 -65
  353. package/node_modules/node-forge/tests/karma/web-worker-rsa.js +0 -55
  354. package/node_modules/node-forge/tests/legacy/common.html +0 -65
  355. package/node_modules/node-forge/tests/legacy/common.js +0 -2199
  356. package/node_modules/node-forge/tests/legacy/form.html +0 -148
  357. package/node_modules/node-forge/tests/legacy/form.js +0 -40
  358. package/node_modules/node-forge/tests/legacy/http.html +0 -235
  359. package/node_modules/node-forge/tests/legacy/index.html +0 -70
  360. package/node_modules/node-forge/tests/legacy/keygen.html +0 -113
  361. package/node_modules/node-forge/tests/legacy/login.css +0 -26
  362. package/node_modules/node-forge/tests/legacy/loginDemo.html +0 -32
  363. package/node_modules/node-forge/tests/legacy/loginDemo.js +0 -149
  364. package/node_modules/node-forge/tests/legacy/performance.html +0 -533
  365. package/node_modules/node-forge/tests/legacy/result.txt +0 -1
  366. package/node_modules/node-forge/tests/legacy/socketPool.html +0 -302
  367. package/node_modules/node-forge/tests/legacy/tasks.html +0 -54
  368. package/node_modules/node-forge/tests/legacy/tasks.js +0 -378
  369. package/node_modules/node-forge/tests/legacy/tls.html +0 -389
  370. package/node_modules/node-forge/tests/legacy/webid.html +0 -89
  371. package/node_modules/node-forge/tests/legacy/webid.js +0 -313
  372. package/node_modules/node-forge/tests/legacy/ws-webid.js +0 -120
  373. package/node_modules/node-forge/tests/legacy/xhr.html +0 -67
  374. package/node_modules/node-forge/tests/legacy/xhr.js +0 -590
  375. package/node_modules/node-forge/tests/pocs/ghsa-2328-f5f3-gj25.js +0 -85
  376. package/node_modules/node-forge/tests/pocs/ghsa-ppp5-5v6c-4jwp.js +0 -166
  377. package/node_modules/node-forge/tests/pocs/ghsa-q67f-28xg-22rw.js +0 -103
  378. package/node_modules/node-forge/tests/security/cve-2025-12816.js +0 -75
  379. package/node_modules/node-forge/tests/security/ghsa-554w-wpv2-vw27.js +0 -81
  380. package/node_modules/node-forge/tests/security/index.js +0 -3
  381. package/node_modules/node-forge/tests/server.crt +0 -26
  382. package/node_modules/node-forge/tests/server.js +0 -87
  383. package/node_modules/node-forge/tests/server.key +0 -27
  384. package/node_modules/node-forge/tests/support/task.js +0 -718
  385. package/node_modules/node-forge/tests/tests.css +0 -61
  386. package/node_modules/node-forge/tests/unit/aes.js +0 -1498
  387. package/node_modules/node-forge/tests/unit/asn1.js +0 -1337
  388. package/node_modules/node-forge/tests/unit/csr.js +0 -129
  389. package/node_modules/node-forge/tests/unit/des.js +0 -231
  390. package/node_modules/node-forge/tests/unit/ed25519.js +0 -395
  391. package/node_modules/node-forge/tests/unit/forge.js +0 -2
  392. package/node_modules/node-forge/tests/unit/hmac.js +0 -64
  393. package/node_modules/node-forge/tests/unit/index.html +0 -20
  394. package/node_modules/node-forge/tests/unit/index.js +0 -27
  395. package/node_modules/node-forge/tests/unit/jsbn.js +0 -40
  396. package/node_modules/node-forge/tests/unit/kem.js +0 -167
  397. package/node_modules/node-forge/tests/unit/md5.js +0 -114
  398. package/node_modules/node-forge/tests/unit/mgf1.js +0 -16
  399. package/node_modules/node-forge/tests/unit/pbkdf2.js +0 -182
  400. package/node_modules/node-forge/tests/unit/pem.js +0 -159
  401. package/node_modules/node-forge/tests/unit/pkcs1.js +0 -1077
  402. package/node_modules/node-forge/tests/unit/pkcs12.js +0 -739
  403. package/node_modules/node-forge/tests/unit/pkcs7.js +0 -792
  404. package/node_modules/node-forge/tests/unit/random.js +0 -48
  405. package/node_modules/node-forge/tests/unit/rc2.js +0 -88
  406. package/node_modules/node-forge/tests/unit/rsa.js +0 -1278
  407. package/node_modules/node-forge/tests/unit/sha1.js +0 -72
  408. package/node_modules/node-forge/tests/unit/sha256.js +0 -79
  409. package/node_modules/node-forge/tests/unit/sha512.js +0 -200
  410. package/node_modules/node-forge/tests/unit/ssh.js +0 -175
  411. package/node_modules/node-forge/tests/unit/tls.js +0 -175
  412. package/node_modules/node-forge/tests/unit/util.js +0 -595
  413. package/node_modules/node-forge/tests/unit/x509.js +0 -1986
  414. package/node_modules/node-forge/tests/websockets/server-webid.js +0 -495
  415. package/node_modules/node-forge/tests/websockets/server-ws.js +0 -158
  416. package/node_modules/node-forge/webpack-tests.config.js +0 -26
  417. package/node_modules/node-forge/webpack.config.js +0 -130
  418. package/node_modules/zod/LICENSE +0 -21
  419. package/node_modules/zod/README.md +0 -208
  420. package/node_modules/zod/index.cjs +0 -33
  421. package/node_modules/zod/index.d.cts +0 -4
  422. package/node_modules/zod/index.d.ts +0 -4
  423. package/node_modules/zod/index.js +0 -4
  424. package/node_modules/zod/package.json +0 -118
  425. package/node_modules/zod/src/index.ts +0 -4
  426. package/node_modules/zod/src/v3/ZodError.ts +0 -330
  427. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  428. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  429. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  430. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  431. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  432. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  433. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  434. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  435. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  436. package/node_modules/zod/src/v3/errors.ts +0 -13
  437. package/node_modules/zod/src/v3/external.ts +0 -6
  438. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  439. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  440. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  441. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  442. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  443. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  444. package/node_modules/zod/src/v3/index.ts +0 -4
  445. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  446. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  447. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  448. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  449. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  450. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  451. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  452. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  453. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  454. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  455. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  456. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  457. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  458. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
  459. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  460. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  461. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  462. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  463. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  464. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  465. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  466. package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  467. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  468. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  469. package/node_modules/zod/src/v3/tests/function.test.ts +0 -257
  470. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  471. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  472. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  473. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  474. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  475. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  476. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  477. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  478. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  479. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
  480. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  481. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  482. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  483. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  484. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  485. package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  486. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  487. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  488. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  489. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  490. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  491. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  492. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  493. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  494. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  495. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  496. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  497. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  498. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  499. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  500. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  501. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  502. package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  503. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  504. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  505. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  506. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  507. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  508. package/node_modules/zod/src/v3/types.ts +0 -5136
  509. package/node_modules/zod/src/v4/classic/checks.ts +0 -30
  510. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  511. package/node_modules/zod/src/v4/classic/compat.ts +0 -66
  512. package/node_modules/zod/src/v4/classic/errors.ts +0 -75
  513. package/node_modules/zod/src/v4/classic/external.ts +0 -50
  514. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  515. package/node_modules/zod/src/v4/classic/iso.ts +0 -90
  516. package/node_modules/zod/src/v4/classic/parse.ts +0 -33
  517. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
  518. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  519. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  520. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
  521. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  522. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  523. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  524. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  525. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
  526. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
  527. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  528. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  529. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
  530. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  531. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
  532. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
  533. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
  534. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  535. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
  536. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  537. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
  538. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  539. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
  540. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
  541. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
  542. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  543. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
  544. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
  545. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
  546. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
  547. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  548. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
  549. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
  550. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  551. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  552. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
  553. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  554. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
  555. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
  556. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
  557. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
  558. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
  559. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
  560. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
  561. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
  562. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  563. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  564. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  565. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  566. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
  567. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
  568. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
  569. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
  570. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
  571. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
  572. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
  573. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
  574. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
  575. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
  576. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
  577. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
  578. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
  579. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
  580. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  581. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  582. package/node_modules/zod/src/v4/core/api.ts +0 -1594
  583. package/node_modules/zod/src/v4/core/checks.ts +0 -1283
  584. package/node_modules/zod/src/v4/core/config.ts +0 -15
  585. package/node_modules/zod/src/v4/core/core.ts +0 -134
  586. package/node_modules/zod/src/v4/core/doc.ts +0 -44
  587. package/node_modules/zod/src/v4/core/errors.ts +0 -424
  588. package/node_modules/zod/src/v4/core/function.ts +0 -176
  589. package/node_modules/zod/src/v4/core/index.ts +0 -15
  590. package/node_modules/zod/src/v4/core/json-schema.ts +0 -143
  591. package/node_modules/zod/src/v4/core/parse.ts +0 -94
  592. package/node_modules/zod/src/v4/core/regexes.ts +0 -135
  593. package/node_modules/zod/src/v4/core/registries.ts +0 -96
  594. package/node_modules/zod/src/v4/core/schemas.ts +0 -3842
  595. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
  596. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  597. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  598. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  599. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  600. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  601. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
  602. package/node_modules/zod/src/v4/core/util.ts +0 -775
  603. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  604. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  605. package/node_modules/zod/src/v4/index.ts +0 -4
  606. package/node_modules/zod/src/v4/locales/ar.ts +0 -125
  607. package/node_modules/zod/src/v4/locales/az.ts +0 -121
  608. package/node_modules/zod/src/v4/locales/be.ts +0 -184
  609. package/node_modules/zod/src/v4/locales/ca.ts +0 -127
  610. package/node_modules/zod/src/v4/locales/cs.ts +0 -142
  611. package/node_modules/zod/src/v4/locales/de.ts +0 -124
  612. package/node_modules/zod/src/v4/locales/en.ts +0 -127
  613. package/node_modules/zod/src/v4/locales/eo.ts +0 -125
  614. package/node_modules/zod/src/v4/locales/es.ts +0 -125
  615. package/node_modules/zod/src/v4/locales/fa.ts +0 -134
  616. package/node_modules/zod/src/v4/locales/fi.ts +0 -131
  617. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
  618. package/node_modules/zod/src/v4/locales/fr.ts +0 -124
  619. package/node_modules/zod/src/v4/locales/he.ts +0 -125
  620. package/node_modules/zod/src/v4/locales/hu.ts +0 -126
  621. package/node_modules/zod/src/v4/locales/id.ts +0 -125
  622. package/node_modules/zod/src/v4/locales/index.ts +0 -39
  623. package/node_modules/zod/src/v4/locales/it.ts +0 -125
  624. package/node_modules/zod/src/v4/locales/ja.ts +0 -122
  625. package/node_modules/zod/src/v4/locales/kh.ts +0 -126
  626. package/node_modules/zod/src/v4/locales/ko.ts +0 -131
  627. package/node_modules/zod/src/v4/locales/mk.ts +0 -127
  628. package/node_modules/zod/src/v4/locales/ms.ts +0 -124
  629. package/node_modules/zod/src/v4/locales/nl.ts +0 -126
  630. package/node_modules/zod/src/v4/locales/no.ts +0 -124
  631. package/node_modules/zod/src/v4/locales/ota.ts +0 -125
  632. package/node_modules/zod/src/v4/locales/pl.ts +0 -126
  633. package/node_modules/zod/src/v4/locales/ps.ts +0 -133
  634. package/node_modules/zod/src/v4/locales/pt.ts +0 -123
  635. package/node_modules/zod/src/v4/locales/ru.ts +0 -184
  636. package/node_modules/zod/src/v4/locales/sl.ts +0 -126
  637. package/node_modules/zod/src/v4/locales/sv.ts +0 -127
  638. package/node_modules/zod/src/v4/locales/ta.ts +0 -125
  639. package/node_modules/zod/src/v4/locales/th.ts +0 -126
  640. package/node_modules/zod/src/v4/locales/tr.ts +0 -121
  641. package/node_modules/zod/src/v4/locales/ua.ts +0 -126
  642. package/node_modules/zod/src/v4/locales/ur.ts +0 -126
  643. package/node_modules/zod/src/v4/locales/vi.ts +0 -125
  644. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
  645. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
  646. package/node_modules/zod/src/v4/mini/checks.ts +0 -32
  647. package/node_modules/zod/src/v4/mini/coerce.ts +0 -22
  648. package/node_modules/zod/src/v4/mini/external.ts +0 -40
  649. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  650. package/node_modules/zod/src/v4/mini/iso.ts +0 -62
  651. package/node_modules/zod/src/v4/mini/parse.ts +0 -1
  652. package/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
  653. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  654. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
  655. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  656. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  657. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  658. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
  659. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
  660. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  661. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
  662. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  663. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
  664. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
  665. package/node_modules/zod/src/v4-mini/index.ts +0 -1
  666. package/node_modules/zod/v3/ZodError.cjs +0 -138
  667. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  668. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  669. package/node_modules/zod/v3/ZodError.js +0 -133
  670. package/node_modules/zod/v3/errors.cjs +0 -17
  671. package/node_modules/zod/v3/errors.d.cts +0 -5
  672. package/node_modules/zod/v3/errors.d.ts +0 -5
  673. package/node_modules/zod/v3/errors.js +0 -9
  674. package/node_modules/zod/v3/external.cjs +0 -22
  675. package/node_modules/zod/v3/external.d.cts +0 -6
  676. package/node_modules/zod/v3/external.d.ts +0 -6
  677. package/node_modules/zod/v3/external.js +0 -6
  678. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  679. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  680. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  681. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  682. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  683. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  684. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  685. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  686. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  687. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  688. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  689. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  690. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  691. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  692. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  693. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  694. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  695. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  696. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  697. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  698. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  699. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  700. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  701. package/node_modules/zod/v3/helpers/util.js +0 -133
  702. package/node_modules/zod/v3/index.cjs +0 -33
  703. package/node_modules/zod/v3/index.d.cts +0 -4
  704. package/node_modules/zod/v3/index.d.ts +0 -4
  705. package/node_modules/zod/v3/index.js +0 -4
  706. package/node_modules/zod/v3/locales/en.cjs +0 -111
  707. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  708. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  709. package/node_modules/zod/v3/locales/en.js +0 -109
  710. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  711. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  712. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  713. package/node_modules/zod/v3/standard-schema.js +0 -1
  714. package/node_modules/zod/v3/types.cjs +0 -3775
  715. package/node_modules/zod/v3/types.d.cts +0 -1031
  716. package/node_modules/zod/v3/types.d.ts +0 -1031
  717. package/node_modules/zod/v3/types.js +0 -3693
  718. package/node_modules/zod/v4/classic/checks.cjs +0 -32
  719. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  720. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  721. package/node_modules/zod/v4/classic/checks.js +0 -1
  722. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  723. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  724. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  725. package/node_modules/zod/v4/classic/coerce.js +0 -17
  726. package/node_modules/zod/v4/classic/compat.cjs +0 -57
  727. package/node_modules/zod/v4/classic/compat.d.cts +0 -46
  728. package/node_modules/zod/v4/classic/compat.d.ts +0 -46
  729. package/node_modules/zod/v4/classic/compat.js +0 -27
  730. package/node_modules/zod/v4/classic/errors.cjs +0 -67
  731. package/node_modules/zod/v4/classic/errors.d.cts +0 -30
  732. package/node_modules/zod/v4/classic/errors.d.ts +0 -30
  733. package/node_modules/zod/v4/classic/errors.js +0 -41
  734. package/node_modules/zod/v4/classic/external.cjs +0 -70
  735. package/node_modules/zod/v4/classic/external.d.cts +0 -13
  736. package/node_modules/zod/v4/classic/external.d.ts +0 -13
  737. package/node_modules/zod/v4/classic/external.js +0 -18
  738. package/node_modules/zod/v4/classic/index.cjs +0 -33
  739. package/node_modules/zod/v4/classic/index.d.cts +0 -4
  740. package/node_modules/zod/v4/classic/index.d.ts +0 -4
  741. package/node_modules/zod/v4/classic/index.js +0 -4
  742. package/node_modules/zod/v4/classic/iso.cjs +0 -60
  743. package/node_modules/zod/v4/classic/iso.d.cts +0 -22
  744. package/node_modules/zod/v4/classic/iso.d.ts +0 -22
  745. package/node_modules/zod/v4/classic/iso.js +0 -30
  746. package/node_modules/zod/v4/classic/parse.cjs +0 -32
  747. package/node_modules/zod/v4/classic/parse.d.cts +0 -23
  748. package/node_modules/zod/v4/classic/parse.d.ts +0 -23
  749. package/node_modules/zod/v4/classic/parse.js +0 -6
  750. package/node_modules/zod/v4/classic/schemas.cjs +0 -1109
  751. package/node_modules/zod/v4/classic/schemas.d.cts +0 -630
  752. package/node_modules/zod/v4/classic/schemas.d.ts +0 -630
  753. package/node_modules/zod/v4/classic/schemas.js +0 -1006
  754. package/node_modules/zod/v4/core/api.cjs +0 -1039
  755. package/node_modules/zod/v4/core/api.d.cts +0 -284
  756. package/node_modules/zod/v4/core/api.d.ts +0 -284
  757. package/node_modules/zod/v4/core/api.js +0 -906
  758. package/node_modules/zod/v4/core/checks.cjs +0 -591
  759. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  760. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  761. package/node_modules/zod/v4/core/checks.js +0 -565
  762. package/node_modules/zod/v4/core/core.cjs +0 -67
  763. package/node_modules/zod/v4/core/core.d.cts +0 -49
  764. package/node_modules/zod/v4/core/core.d.ts +0 -49
  765. package/node_modules/zod/v4/core/core.js +0 -61
  766. package/node_modules/zod/v4/core/doc.cjs +0 -39
  767. package/node_modules/zod/v4/core/doc.d.cts +0 -14
  768. package/node_modules/zod/v4/core/doc.d.ts +0 -14
  769. package/node_modules/zod/v4/core/doc.js +0 -35
  770. package/node_modules/zod/v4/core/errors.cjs +0 -226
  771. package/node_modules/zod/v4/core/errors.d.cts +0 -208
  772. package/node_modules/zod/v4/core/errors.d.ts +0 -208
  773. package/node_modules/zod/v4/core/errors.js +0 -195
  774. package/node_modules/zod/v4/core/function.cjs +0 -102
  775. package/node_modules/zod/v4/core/function.d.cts +0 -52
  776. package/node_modules/zod/v4/core/function.d.ts +0 -52
  777. package/node_modules/zod/v4/core/function.js +0 -75
  778. package/node_modules/zod/v4/core/index.cjs +0 -44
  779. package/node_modules/zod/v4/core/index.d.cts +0 -15
  780. package/node_modules/zod/v4/core/index.d.ts +0 -15
  781. package/node_modules/zod/v4/core/index.js +0 -15
  782. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  783. package/node_modules/zod/v4/core/json-schema.d.cts +0 -87
  784. package/node_modules/zod/v4/core/json-schema.d.ts +0 -87
  785. package/node_modules/zod/v4/core/json-schema.js +0 -1
  786. package/node_modules/zod/v4/core/parse.cjs +0 -87
  787. package/node_modules/zod/v4/core/parse.d.cts +0 -25
  788. package/node_modules/zod/v4/core/parse.d.ts +0 -25
  789. package/node_modules/zod/v4/core/parse.js +0 -57
  790. package/node_modules/zod/v4/core/regexes.cjs +0 -103
  791. package/node_modules/zod/v4/core/regexes.d.cts +0 -62
  792. package/node_modules/zod/v4/core/regexes.d.ts +0 -62
  793. package/node_modules/zod/v4/core/regexes.js +0 -95
  794. package/node_modules/zod/v4/core/registries.cjs +0 -56
  795. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  796. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  797. package/node_modules/zod/v4/core/registries.js +0 -51
  798. package/node_modules/zod/v4/core/schemas.cjs +0 -1748
  799. package/node_modules/zod/v4/core/schemas.d.cts +0 -1041
  800. package/node_modules/zod/v4/core/schemas.d.ts +0 -1041
  801. package/node_modules/zod/v4/core/schemas.js +0 -1717
  802. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  803. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
  804. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
  805. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  806. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
  807. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
  808. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
  809. package/node_modules/zod/v4/core/to-json-schema.js +0 -849
  810. package/node_modules/zod/v4/core/util.cjs +0 -539
  811. package/node_modules/zod/v4/core/util.d.cts +0 -183
  812. package/node_modules/zod/v4/core/util.d.ts +0 -183
  813. package/node_modules/zod/v4/core/util.js +0 -493
  814. package/node_modules/zod/v4/core/versions.cjs +0 -8
  815. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  816. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  817. package/node_modules/zod/v4/core/versions.js +0 -5
  818. package/node_modules/zod/v4/index.cjs +0 -22
  819. package/node_modules/zod/v4/index.d.cts +0 -3
  820. package/node_modules/zod/v4/index.d.ts +0 -3
  821. package/node_modules/zod/v4/index.js +0 -3
  822. package/node_modules/zod/v4/locales/ar.cjs +0 -142
  823. package/node_modules/zod/v4/locales/ar.d.cts +0 -4
  824. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  825. package/node_modules/zod/v4/locales/ar.js +0 -116
  826. package/node_modules/zod/v4/locales/az.cjs +0 -141
  827. package/node_modules/zod/v4/locales/az.d.cts +0 -4
  828. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  829. package/node_modules/zod/v4/locales/az.js +0 -115
  830. package/node_modules/zod/v4/locales/be.cjs +0 -190
  831. package/node_modules/zod/v4/locales/be.d.cts +0 -4
  832. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  833. package/node_modules/zod/v4/locales/be.js +0 -164
  834. package/node_modules/zod/v4/locales/ca.cjs +0 -144
  835. package/node_modules/zod/v4/locales/ca.d.cts +0 -4
  836. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  837. package/node_modules/zod/v4/locales/ca.js +0 -118
  838. package/node_modules/zod/v4/locales/cs.cjs +0 -161
  839. package/node_modules/zod/v4/locales/cs.d.cts +0 -4
  840. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  841. package/node_modules/zod/v4/locales/cs.js +0 -135
  842. package/node_modules/zod/v4/locales/de.cjs +0 -142
  843. package/node_modules/zod/v4/locales/de.d.cts +0 -4
  844. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  845. package/node_modules/zod/v4/locales/de.js +0 -116
  846. package/node_modules/zod/v4/locales/en.cjs +0 -145
  847. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  848. package/node_modules/zod/v4/locales/en.d.ts +0 -5
  849. package/node_modules/zod/v4/locales/en.js +0 -117
  850. package/node_modules/zod/v4/locales/eo.cjs +0 -144
  851. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  852. package/node_modules/zod/v4/locales/eo.d.ts +0 -5
  853. package/node_modules/zod/v4/locales/eo.js +0 -116
  854. package/node_modules/zod/v4/locales/es.cjs +0 -143
  855. package/node_modules/zod/v4/locales/es.d.cts +0 -4
  856. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  857. package/node_modules/zod/v4/locales/es.js +0 -117
  858. package/node_modules/zod/v4/locales/fa.cjs +0 -148
  859. package/node_modules/zod/v4/locales/fa.d.cts +0 -4
  860. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  861. package/node_modules/zod/v4/locales/fa.js +0 -122
  862. package/node_modules/zod/v4/locales/fi.cjs +0 -148
  863. package/node_modules/zod/v4/locales/fi.d.cts +0 -4
  864. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  865. package/node_modules/zod/v4/locales/fi.js +0 -122
  866. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
  867. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
  868. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  869. package/node_modules/zod/v4/locales/fr-CA.js +0 -117
  870. package/node_modules/zod/v4/locales/fr.cjs +0 -142
  871. package/node_modules/zod/v4/locales/fr.d.cts +0 -4
  872. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  873. package/node_modules/zod/v4/locales/fr.js +0 -116
  874. package/node_modules/zod/v4/locales/he.cjs +0 -143
  875. package/node_modules/zod/v4/locales/he.d.cts +0 -4
  876. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  877. package/node_modules/zod/v4/locales/he.js +0 -117
  878. package/node_modules/zod/v4/locales/hu.cjs +0 -143
  879. package/node_modules/zod/v4/locales/hu.d.cts +0 -4
  880. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  881. package/node_modules/zod/v4/locales/hu.js +0 -117
  882. package/node_modules/zod/v4/locales/id.cjs +0 -142
  883. package/node_modules/zod/v4/locales/id.d.cts +0 -4
  884. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  885. package/node_modules/zod/v4/locales/id.js +0 -116
  886. package/node_modules/zod/v4/locales/index.cjs +0 -84
  887. package/node_modules/zod/v4/locales/index.d.cts +0 -39
  888. package/node_modules/zod/v4/locales/index.d.ts +0 -39
  889. package/node_modules/zod/v4/locales/index.js +0 -39
  890. package/node_modules/zod/v4/locales/it.cjs +0 -143
  891. package/node_modules/zod/v4/locales/it.d.cts +0 -4
  892. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  893. package/node_modules/zod/v4/locales/it.js +0 -117
  894. package/node_modules/zod/v4/locales/ja.cjs +0 -141
  895. package/node_modules/zod/v4/locales/ja.d.cts +0 -4
  896. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  897. package/node_modules/zod/v4/locales/ja.js +0 -115
  898. package/node_modules/zod/v4/locales/kh.cjs +0 -143
  899. package/node_modules/zod/v4/locales/kh.d.cts +0 -4
  900. package/node_modules/zod/v4/locales/kh.d.ts +0 -4
  901. package/node_modules/zod/v4/locales/kh.js +0 -117
  902. package/node_modules/zod/v4/locales/ko.cjs +0 -147
  903. package/node_modules/zod/v4/locales/ko.d.cts +0 -4
  904. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  905. package/node_modules/zod/v4/locales/ko.js +0 -121
  906. package/node_modules/zod/v4/locales/mk.cjs +0 -144
  907. package/node_modules/zod/v4/locales/mk.d.cts +0 -4
  908. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  909. package/node_modules/zod/v4/locales/mk.js +0 -118
  910. package/node_modules/zod/v4/locales/ms.cjs +0 -142
  911. package/node_modules/zod/v4/locales/ms.d.cts +0 -4
  912. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  913. package/node_modules/zod/v4/locales/ms.js +0 -116
  914. package/node_modules/zod/v4/locales/nl.cjs +0 -143
  915. package/node_modules/zod/v4/locales/nl.d.cts +0 -4
  916. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  917. package/node_modules/zod/v4/locales/nl.js +0 -117
  918. package/node_modules/zod/v4/locales/no.cjs +0 -142
  919. package/node_modules/zod/v4/locales/no.d.cts +0 -4
  920. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  921. package/node_modules/zod/v4/locales/no.js +0 -116
  922. package/node_modules/zod/v4/locales/ota.cjs +0 -143
  923. package/node_modules/zod/v4/locales/ota.d.cts +0 -4
  924. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  925. package/node_modules/zod/v4/locales/ota.js +0 -117
  926. package/node_modules/zod/v4/locales/pl.cjs +0 -143
  927. package/node_modules/zod/v4/locales/pl.d.cts +0 -4
  928. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  929. package/node_modules/zod/v4/locales/pl.js +0 -117
  930. package/node_modules/zod/v4/locales/ps.cjs +0 -148
  931. package/node_modules/zod/v4/locales/ps.d.cts +0 -4
  932. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  933. package/node_modules/zod/v4/locales/ps.js +0 -122
  934. package/node_modules/zod/v4/locales/pt.cjs +0 -142
  935. package/node_modules/zod/v4/locales/pt.d.cts +0 -4
  936. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  937. package/node_modules/zod/v4/locales/pt.js +0 -116
  938. package/node_modules/zod/v4/locales/ru.cjs +0 -190
  939. package/node_modules/zod/v4/locales/ru.d.cts +0 -4
  940. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  941. package/node_modules/zod/v4/locales/ru.js +0 -164
  942. package/node_modules/zod/v4/locales/sl.cjs +0 -143
  943. package/node_modules/zod/v4/locales/sl.d.cts +0 -4
  944. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  945. package/node_modules/zod/v4/locales/sl.js +0 -117
  946. package/node_modules/zod/v4/locales/sv.cjs +0 -144
  947. package/node_modules/zod/v4/locales/sv.d.cts +0 -4
  948. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  949. package/node_modules/zod/v4/locales/sv.js +0 -118
  950. package/node_modules/zod/v4/locales/ta.cjs +0 -143
  951. package/node_modules/zod/v4/locales/ta.d.cts +0 -4
  952. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  953. package/node_modules/zod/v4/locales/ta.js +0 -117
  954. package/node_modules/zod/v4/locales/th.cjs +0 -143
  955. package/node_modules/zod/v4/locales/th.d.cts +0 -4
  956. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  957. package/node_modules/zod/v4/locales/th.js +0 -117
  958. package/node_modules/zod/v4/locales/tr.cjs +0 -143
  959. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  960. package/node_modules/zod/v4/locales/tr.d.ts +0 -5
  961. package/node_modules/zod/v4/locales/tr.js +0 -115
  962. package/node_modules/zod/v4/locales/ua.cjs +0 -143
  963. package/node_modules/zod/v4/locales/ua.d.cts +0 -4
  964. package/node_modules/zod/v4/locales/ua.d.ts +0 -4
  965. package/node_modules/zod/v4/locales/ua.js +0 -117
  966. package/node_modules/zod/v4/locales/ur.cjs +0 -143
  967. package/node_modules/zod/v4/locales/ur.d.cts +0 -4
  968. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  969. package/node_modules/zod/v4/locales/ur.js +0 -117
  970. package/node_modules/zod/v4/locales/vi.cjs +0 -142
  971. package/node_modules/zod/v4/locales/vi.d.cts +0 -4
  972. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  973. package/node_modules/zod/v4/locales/vi.js +0 -116
  974. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
  975. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
  976. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  977. package/node_modules/zod/v4/locales/zh-CN.js +0 -116
  978. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
  979. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
  980. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  981. package/node_modules/zod/v4/locales/zh-TW.js +0 -117
  982. package/node_modules/zod/v4/mini/checks.cjs +0 -34
  983. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  984. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  985. package/node_modules/zod/v4/mini/checks.js +0 -1
  986. package/node_modules/zod/v4/mini/coerce.cjs +0 -47
  987. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  988. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  989. package/node_modules/zod/v4/mini/coerce.js +0 -17
  990. package/node_modules/zod/v4/mini/external.cjs +0 -62
  991. package/node_modules/zod/v4/mini/external.d.cts +0 -11
  992. package/node_modules/zod/v4/mini/external.d.ts +0 -11
  993. package/node_modules/zod/v4/mini/external.js +0 -13
  994. package/node_modules/zod/v4/mini/index.cjs +0 -32
  995. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  996. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  997. package/node_modules/zod/v4/mini/index.js +0 -3
  998. package/node_modules/zod/v4/mini/iso.cjs +0 -60
  999. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  1000. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  1001. package/node_modules/zod/v4/mini/iso.js +0 -30
  1002. package/node_modules/zod/v4/mini/parse.cjs +0 -8
  1003. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  1004. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  1005. package/node_modules/zod/v4/mini/parse.js +0 -1
  1006. package/node_modules/zod/v4/mini/schemas.cjs +0 -839
  1007. package/node_modules/zod/v4/mini/schemas.d.cts +0 -356
  1008. package/node_modules/zod/v4/mini/schemas.d.ts +0 -356
  1009. package/node_modules/zod/v4/mini/schemas.js +0 -732
  1010. package/node_modules/zod/v4-mini/index.cjs +0 -17
  1011. package/node_modules/zod/v4-mini/index.d.cts +0 -1
  1012. package/node_modules/zod/v4-mini/index.d.ts +0 -1
  1013. package/node_modules/zod/v4-mini/index.js +0 -1
@@ -1,1691 +0,0 @@
1
- /**
2
- * Configuration for Sandbox Runtime
3
- * This is the main configuration interface that consumers pass to SandboxManager.initialize()
4
- */
5
- import type { FilterRequestCallback } from './request-filter.js';
6
- import { z } from 'zod/v3';
7
- /**
8
- * Schema for MITM proxy configuration
9
- * Allows routing specific domains through an upstream MITM proxy via Unix socket
10
- */
11
- declare const MitmProxyConfigSchema: z.ZodObject<{
12
- socketPath: z.ZodString;
13
- domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
14
- }, "strip", z.ZodTypeAny, {
15
- socketPath: string;
16
- domains: string[];
17
- }, {
18
- socketPath: string;
19
- domains: string[];
20
- }>;
21
- /**
22
- * Schema for upstream/parent HTTP proxy configuration.
23
- * Used when SRT itself runs behind a corporate proxy and cannot make direct
24
- * outbound connections.
25
- */
26
- declare const ParentProxyConfigSchema: z.ZodObject<{
27
- http: z.ZodOptional<z.ZodString>;
28
- https: z.ZodOptional<z.ZodString>;
29
- noProxy: z.ZodOptional<z.ZodString>;
30
- }, "strip", z.ZodTypeAny, {
31
- http?: string | undefined;
32
- https?: string | undefined;
33
- noProxy?: string | undefined;
34
- }, {
35
- http?: string | undefined;
36
- https?: string | undefined;
37
- noProxy?: string | undefined;
38
- }>;
39
- /**
40
- * Schema for the access mode of a declared credential source.
41
- *
42
- * - `deny` — the sandboxed process cannot read the file / does not see the
43
- * environment variable.
44
- * - `mask` — the sandboxed process sees a per-session sentinel value; the
45
- * host proxy substitutes sentinel→real on egress to `injectHosts`.
46
- * For files this is whole-file masking (Linux only; degrades to `deny`
47
- * on macOS — see {@link CredentialFileConfigSchema}).
48
- */
49
- declare const credentialModeSchema: z.ZodEnum<["deny", "mask"]>;
50
- /**
51
- * Schema for a single credential file/directory entry.
52
- *
53
- * `mode: "mask"` without `extract` is **whole-file** masking: the entire
54
- * file content is replaced inside the sandbox with one sentinel string,
55
- * and the proxy substitutes that sentinel back to the real bytes on egress.
56
- * This works for files whose content *is* the credential (a token file, a
57
- * single-line secret).
58
- *
59
- * `mode: "mask"` with `extract` is **structured** masking: the regex is
60
- * applied globally to the real file, capture group 1 of each match is a
61
- * credential value, and only those captured spans are replaced with
62
- * sentinels — the rest of the file is preserved byte-for-byte. This lets a
63
- * tool that parses the file (`.netrc`, JSON/YAML configs) still succeed
64
- * inside the sandbox while the credential values are protected. If the
65
- * pattern matches nothing, behaviour is governed by `onExtractNoMatch`
66
- * (default `"warn"` — the file is left readable as-is and a stderr
67
- * warning is emitted).
68
- *
69
- * `mode: "mask"` with `decode: "jwt"` extends structured masking into
70
- * encoded values: where `extract` opens plain text to mask a span inside
71
- * it, `decode` opens the encoding so masking can target fields inside the
72
- * decoded payload (`maskClaims`):
73
- *
74
- * - **Default pattern**: when `extract` is absent, a built-in JWT regex is
75
- * used (every JWT starts `eyJ` — base64url of `{"`), so authors don't
76
- * hand-write it. An explicit `extract` wins; its group-1 captures are the
77
- * candidates.
78
- * - **Decode-verification**: each candidate must actually BE a JWT (three
79
- * segments, JSON header/payload, `alg` in the header) before it is
80
- * masked; candidates failing verification are left untouched.
81
- * - **Claim-level masking** (`maskClaims`): each named top-level payload
82
- * claim present with a string value is replaced by its own sentinel and
83
- * the token is rebuilt around the modified payload (original header,
84
- * filler signature). All other claims stay real, so a client that
85
- * decodes the token and reads a non-secret claim keeps working. The
86
- * proxy substitutes both the whole rebuilt token (sent as a bearer
87
- * credential) and each claim sentinel (extracted and sent alone).
88
- * - **Whole-token fallback** (no `maskClaims`): the whole decoded value is
89
- * treated as the credential — for bearer-style usage where the token
90
- * itself is the secret — and replaced with a structurally valid fake JWT
91
- * (parseable header/payload, far-future `exp`), so client-side token
92
- * parsing inside the sandbox doesn't break. Its header declares
93
- * `alg: HS256` (not `alg: none`, which misconfigured validators accept)
94
- * with a garbage signature, so any validator the unswapped fake reaches
95
- * rejects it.
96
- * - **No verified candidate**: if nothing matches, no candidate verifies,
97
- * or (with `maskClaims`) no named claim matches in any verified token,
98
- * behaviour is governed by `onExtractNoMatch` — same as a non-matching
99
- * `extract` (default `"warn"`: stderr warning, file left readable
100
- * as-is).
101
- *
102
- * `maskDuplicates: true` (only meaningful with `extract` or `decode`)
103
- * additionally replaces every verbatim occurrence of each masked value
104
- * *outside* the regex-matched spans — for a secret repeated where the
105
- * regex does not reach (e.g. pasted into a comment). The scan is raw
106
- * substring matching, so a short or common captured value may also hit
107
- * unrelated content that happens to contain it; intended for long,
108
- * high-entropy secrets. Composed with `decode`, only captures that passed
109
- * verification are scanned — a duplicate is the same value and reuses the
110
- * verified capture's fake without re-verification.
111
- *
112
- * On macOS, SBPL cannot redirect reads, so `mode: "mask"` (with or without
113
- * `extract`/`decode`) currently degrades to `mode: "deny"` (the file is
114
- * unreadable inside the sandbox).
115
- */
116
- export declare const CredentialFileConfigSchema: z.ZodObject<{
117
- path: z.ZodString;
118
- mode: z.ZodEnum<["deny", "mask"]>;
119
- extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
120
- /**
121
- * What to do when `extract` matches nothing in the file at runtime —
122
- * or, with `decode`, when no candidate survives verification.
123
- *
124
- * - `"warn"` (default): emit a stderr warning and leave the file
125
- * readable as-is inside the sandbox (fail-open). A non-matching
126
- * pattern is treated as a config error to surface and fix, not a
127
- * reason to break a tool that needs the file when the credential is
128
- * legitimately absent.
129
- * - `"deny"`: degrade the entry to `mode: "deny"` so the file is
130
- * unreadable inside the sandbox (fail-closed). The operator declared
131
- * this file as containing a credential; if the regex cannot find it,
132
- * block access rather than expose it.
133
- * - `"error"`: throw at wrap time so nothing runs until the operator
134
- * fixes the config.
135
- *
136
- * Only meaningful when `mode` is `"mask"` and `extract` or `decode` is
137
- * set; accepted but ignored otherwise.
138
- */
139
- onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
140
- decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
141
- /**
142
- * Names of top-level payload claims to mask inside each decoded value —
143
- * the claim-level counterpart of `extract`: where `extract` opens plain
144
- * text to mask a span inside it, `decode` + `maskClaims` opens the
145
- * encoding to mask a field inside the decoded payload.
146
- *
147
- * For each verified JWT candidate, every named claim present with a
148
- * string value is replaced by its own sentinel and the token is rebuilt
149
- * around the modified payload (original header, filler signature). All
150
- * other claims are preserved verbatim, so a tool that decodes the token
151
- * and reads a non-secret claim (issuer, audience, user id) keeps
152
- * working while the secret claim is protected. A named claim that is
153
- * absent or non-string in a given token is skipped. If no named claim
154
- * matches in any verified token, behaviour is governed by
155
- * `onExtractNoMatch` — same as no candidate verifying.
156
- *
157
- * Requires `decode` (there is no payload to look inside otherwise); an
158
- * explicitly empty list is rejected — see the superRefine below.
159
- */
160
- maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
- maskDuplicates: z.ZodOptional<z.ZodBoolean>;
162
- injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
163
- }, "strip", z.ZodTypeAny, {
164
- mode: "deny" | "mask";
165
- path: string;
166
- extract?: string | undefined;
167
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
168
- decode?: "jwt" | undefined;
169
- maskClaims?: string[] | undefined;
170
- maskDuplicates?: boolean | undefined;
171
- injectHosts?: string[] | undefined;
172
- }, {
173
- mode: "deny" | "mask";
174
- path: string;
175
- extract?: string | undefined;
176
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
177
- decode?: "jwt" | undefined;
178
- maskClaims?: string[] | undefined;
179
- maskDuplicates?: boolean | undefined;
180
- injectHosts?: string[] | undefined;
181
- }>;
182
- /**
183
- * Schema for a single credential environment variable entry.
184
- *
185
- * `mode: "mask"` replaces the variable's value inside the sandbox with a
186
- * per-session sentinel; the proxy substitutes sentinel→real on egress to
187
- * the credential's injectHosts. A masked var that is unset on the host is
188
- * skipped — there is nothing to protect.
189
- *
190
- * `mode: "mask"` without `extract` is **whole-value** masking: the entire
191
- * value is replaced inside the sandbox with one sentinel string, and the
192
- * proxy substitutes that sentinel back to the real value on egress. This
193
- * works for variables whose value *is* the credential (a bare token).
194
- *
195
- * `mode: "mask"` with `extract` is **structured** masking: the regex is
196
- * applied globally to the real value, capture group 1 of each match is a
197
- * credential value, and only those captured spans are replaced with
198
- * sentinels — the rest of the value is preserved byte-for-byte. This lets
199
- * a tool that parses the value (a `DATABASE_URL` connection string, a
200
- * composite `KEY:SECRET` pair) still succeed inside the sandbox while the
201
- * credential spans are protected. If the pattern matches nothing,
202
- * behaviour is governed by `onExtractNoMatch` (default `"warn"` — the
203
- * variable passes through unmasked and a stderr warning is emitted).
204
- *
205
- * `mode: "mask"` with `decode: "jwt"` handles a variable whose whole value
206
- * is a JWT (CI OIDC tokens, Supabase keys, ...). `decode` opens the encoded
207
- * value for masking: without claim-level configuration the entire token is
208
- * replaced by a structurally valid fake JWT — parseable three-segment shape
209
- * with JSON header/payload and far-future `exp`, so a tool that inspects
210
- * the token before sending it (segment count, exp, claims) keeps working.
211
- * The fake's header declares `alg: HS256` — never `alg: none`, which
212
- * misconfigured validators accept — with a filler signature, so a verifier
213
- * the unswapped fake ever reaches rejects it cryptographically. The proxy
214
- * swaps the whole fake token for the real one on egress.
215
- *
216
- * `decode: "jwt"` with `maskClaims` masks at the claim level instead: each
217
- * named top-level payload claim present with a string value is replaced by
218
- * its own sentinel and the token is rebuilt around the modified payload
219
- * (original header segment, filler signature). All other claims stay real,
220
- * so a client that decodes the token and reads a non-secret claim keeps
221
- * working. The proxy substitutes both the whole rebuilt token (sent as a
222
- * bearer credential) and each claim sentinel (extracted and sent alone).
223
- *
224
- * If the variable is set but its value does not verify as a JWT — or, with
225
- * `maskClaims`, no named claim is present as a string — nothing was masked:
226
- * the entry currently fails open — the real value stays in the sandbox
227
- * environment and a loud stderr warning names the variable.
228
- */
229
- export declare const CredentialEnvVarConfigSchema: z.ZodObject<{
230
- name: z.ZodString;
231
- mode: z.ZodEnum<["deny", "mask"]>;
232
- extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
233
- /**
234
- * What to do when `extract` matches nothing in the value at runtime.
235
- *
236
- * - `"warn"` (default): emit a stderr warning and let the variable pass
237
- * through unmasked inside the sandbox (fail-open). A non-matching
238
- * pattern is treated as a config error to surface and fix, not a
239
- * reason to break a tool that needs the variable when the credential
240
- * is legitimately absent from it.
241
- * - `"deny"`: unset the variable inside the sandbox (fail-closed) — the
242
- * env analog of degrading a file to `mode: "deny"`. The operator
243
- * declared this variable as containing a credential; if the regex
244
- * cannot find it, withhold the value rather than expose it.
245
- * - `"error"`: throw at wrap time so nothing runs until the operator
246
- * fixes the regex.
247
- *
248
- * Only meaningful when `mode` is `"mask"` and `extract` is set;
249
- * accepted but ignored otherwise.
250
- */
251
- onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
252
- decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
253
- /**
254
- * Names of top-level payload claims to mask inside the decoded value —
255
- * the env-var counterpart of the `maskClaims` on a file entry: `decode`
256
- * opens the variable's encoded value so masking can target a field
257
- * inside the decoded payload instead of replacing the whole token.
258
- *
259
- * Every named claim present with a string value is replaced by its own
260
- * sentinel and the token is rebuilt around the modified payload
261
- * (original header segment, filler signature). All other claims are
262
- * preserved verbatim, so a tool that decodes the token and reads a
263
- * non-secret claim (issuer, audience, user id) keeps working while the
264
- * secret claim is protected. A named claim that is absent or non-string
265
- * is skipped. If no named claim matches, nothing was masked and the
266
- * entry fails open with a stderr warning — same path as a value that
267
- * does not verify as a JWT.
268
- *
269
- * Requires `decode` (there is no payload to look inside otherwise); an
270
- * explicitly empty list is rejected — see the superRefine below.
271
- */
272
- maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
273
- injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
274
- }, "strip", z.ZodTypeAny, {
275
- mode: "deny" | "mask";
276
- name: string;
277
- extract?: string | undefined;
278
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
279
- decode?: "jwt" | undefined;
280
- maskClaims?: string[] | undefined;
281
- injectHosts?: string[] | undefined;
282
- }, {
283
- mode: "deny" | "mask";
284
- name: string;
285
- extract?: string | undefined;
286
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
287
- decode?: "jwt" | undefined;
288
- maskClaims?: string[] | undefined;
289
- injectHosts?: string[] | undefined;
290
- }>;
291
- /**
292
- * Explicit grouping of masked env vars into an AWS credential pair for
293
- * SigV4 re-signing.
294
- *
295
- * A SigV4 signature is an HMAC derived from the secret access key, so a
296
- * client signing with a masked (fake) secret produces a signature no
297
- * substitution can repair — the proxy must re-sign with the real secret.
298
- * Re-signing needs the access key id, secret, and optional session token
299
- * *linked* as one credential: this entry names the `credentials.envVars`
300
- * entries (all `mode: "mask"`, whole-value — no `extract`/`decode`) that
301
- * hold each part.
302
- *
303
- * The conventional trio AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY /
304
- * AWS_SESSION_TOKEN is paired automatically when those vars are masked
305
- * whole-value and no explicit awsPairs entry references them — this
306
- * config exists for non-standard variable names.
307
- *
308
- * Re-signing triggers only on requests whose signature scope references
309
- * the pair's fake access key id (exact match); everything else — including
310
- * requests signed with real, unmasked AWS credentials — is untouched. The
311
- * substitution gate is the access-key-id entry's `injectHosts` (defaulting
312
- * to network.allowedDomains); the secret/session-token entries' own
313
- * injectHosts are not consulted for re-signing.
314
- */
315
- export declare const AwsPairConfigSchema: z.ZodObject<{
316
- accessKeyIdVar: z.ZodString;
317
- secretAccessKeyVar: z.ZodString;
318
- sessionTokenVar: z.ZodOptional<z.ZodString>;
319
- }, "strict", z.ZodTypeAny, {
320
- accessKeyIdVar: string;
321
- secretAccessKeyVar: string;
322
- sessionTokenVar?: string | undefined;
323
- }, {
324
- accessKeyIdVar: string;
325
- secretAccessKeyVar: string;
326
- sessionTokenVar?: string | undefined;
327
- }>;
328
- /**
329
- * Per-shape policy for AWS SigV4 request forms the proxy cannot re-sign.
330
- * Applies only to requests whose signature references a masked pair's
331
- * fake access key id; requests signed with unmasked credentials are never
332
- * affected.
333
- *
334
- * - `"deny"` (default): fail closed with a 403 naming the case, so the
335
- * sandboxed client sees a policy block instead of a confusing upstream
336
- * signature error.
337
- * - `"passthrough"`: forward the request without re-signing. Ordinary
338
- * header substitution still applies, but the signature was computed
339
- * from the masked placeholder secret, so the upstream will reject it —
340
- * set this only when that failure mode is preferable to a proxy denial.
341
- *
342
- * Re-signable header-SigV4 requests that sign a literal body hash are
343
- * buffered (up to 64 MiB — MAX_SIGV4_RESIGN_BODY_BYTES in
344
- * tls-terminate-proxy.ts) so the hash can be recomputed over the bytes
345
- * actually forwarded; larger bodies are denied with a 403. Payloads
346
- * signed as UNSIGNED-PAYLOAD stream through without buffering.
347
- */
348
- export declare const Sigv4ConfigSchema: z.ZodObject<{
349
- streaming: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
350
- presigned: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
351
- sigv4a: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
352
- }, "strict", z.ZodTypeAny, {
353
- streaming?: "passthrough" | "deny" | undefined;
354
- presigned?: "passthrough" | "deny" | undefined;
355
- sigv4a?: "passthrough" | "deny" | undefined;
356
- }, {
357
- streaming?: "passthrough" | "deny" | undefined;
358
- presigned?: "passthrough" | "deny" | undefined;
359
- sigv4a?: "passthrough" | "deny" | undefined;
360
- }>;
361
- /**
362
- * Credentials configuration schema for validation.
363
- *
364
- * Declares credential sources (files and environment variables) with a
365
- * per-source mode; see {@link credentialModeSchema} for what each mode does.
366
- *
367
- * Only the sources declared here are affected; the section applies no
368
- * implicit restrictions beyond them.
369
- */
370
- export declare const CredentialsConfigSchema: z.ZodObject<{
371
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
372
- path: z.ZodString;
373
- mode: z.ZodEnum<["deny", "mask"]>;
374
- extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
375
- /**
376
- * What to do when `extract` matches nothing in the file at runtime —
377
- * or, with `decode`, when no candidate survives verification.
378
- *
379
- * - `"warn"` (default): emit a stderr warning and leave the file
380
- * readable as-is inside the sandbox (fail-open). A non-matching
381
- * pattern is treated as a config error to surface and fix, not a
382
- * reason to break a tool that needs the file when the credential is
383
- * legitimately absent.
384
- * - `"deny"`: degrade the entry to `mode: "deny"` so the file is
385
- * unreadable inside the sandbox (fail-closed). The operator declared
386
- * this file as containing a credential; if the regex cannot find it,
387
- * block access rather than expose it.
388
- * - `"error"`: throw at wrap time so nothing runs until the operator
389
- * fixes the config.
390
- *
391
- * Only meaningful when `mode` is `"mask"` and `extract` or `decode` is
392
- * set; accepted but ignored otherwise.
393
- */
394
- onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
395
- decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
396
- /**
397
- * Names of top-level payload claims to mask inside each decoded value —
398
- * the claim-level counterpart of `extract`: where `extract` opens plain
399
- * text to mask a span inside it, `decode` + `maskClaims` opens the
400
- * encoding to mask a field inside the decoded payload.
401
- *
402
- * For each verified JWT candidate, every named claim present with a
403
- * string value is replaced by its own sentinel and the token is rebuilt
404
- * around the modified payload (original header, filler signature). All
405
- * other claims are preserved verbatim, so a tool that decodes the token
406
- * and reads a non-secret claim (issuer, audience, user id) keeps
407
- * working while the secret claim is protected. A named claim that is
408
- * absent or non-string in a given token is skipped. If no named claim
409
- * matches in any verified token, behaviour is governed by
410
- * `onExtractNoMatch` — same as no candidate verifying.
411
- *
412
- * Requires `decode` (there is no payload to look inside otherwise); an
413
- * explicitly empty list is rejected — see the superRefine below.
414
- */
415
- maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
416
- maskDuplicates: z.ZodOptional<z.ZodBoolean>;
417
- injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
418
- }, "strip", z.ZodTypeAny, {
419
- mode: "deny" | "mask";
420
- path: string;
421
- extract?: string | undefined;
422
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
423
- decode?: "jwt" | undefined;
424
- maskClaims?: string[] | undefined;
425
- maskDuplicates?: boolean | undefined;
426
- injectHosts?: string[] | undefined;
427
- }, {
428
- mode: "deny" | "mask";
429
- path: string;
430
- extract?: string | undefined;
431
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
432
- decode?: "jwt" | undefined;
433
- maskClaims?: string[] | undefined;
434
- maskDuplicates?: boolean | undefined;
435
- injectHosts?: string[] | undefined;
436
- }>, "many">>;
437
- envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
438
- name: z.ZodString;
439
- mode: z.ZodEnum<["deny", "mask"]>;
440
- extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
441
- /**
442
- * What to do when `extract` matches nothing in the value at runtime.
443
- *
444
- * - `"warn"` (default): emit a stderr warning and let the variable pass
445
- * through unmasked inside the sandbox (fail-open). A non-matching
446
- * pattern is treated as a config error to surface and fix, not a
447
- * reason to break a tool that needs the variable when the credential
448
- * is legitimately absent from it.
449
- * - `"deny"`: unset the variable inside the sandbox (fail-closed) — the
450
- * env analog of degrading a file to `mode: "deny"`. The operator
451
- * declared this variable as containing a credential; if the regex
452
- * cannot find it, withhold the value rather than expose it.
453
- * - `"error"`: throw at wrap time so nothing runs until the operator
454
- * fixes the regex.
455
- *
456
- * Only meaningful when `mode` is `"mask"` and `extract` is set;
457
- * accepted but ignored otherwise.
458
- */
459
- onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
460
- decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
461
- /**
462
- * Names of top-level payload claims to mask inside the decoded value —
463
- * the env-var counterpart of the `maskClaims` on a file entry: `decode`
464
- * opens the variable's encoded value so masking can target a field
465
- * inside the decoded payload instead of replacing the whole token.
466
- *
467
- * Every named claim present with a string value is replaced by its own
468
- * sentinel and the token is rebuilt around the modified payload
469
- * (original header segment, filler signature). All other claims are
470
- * preserved verbatim, so a tool that decodes the token and reads a
471
- * non-secret claim (issuer, audience, user id) keeps working while the
472
- * secret claim is protected. A named claim that is absent or non-string
473
- * is skipped. If no named claim matches, nothing was masked and the
474
- * entry fails open with a stderr warning — same path as a value that
475
- * does not verify as a JWT.
476
- *
477
- * Requires `decode` (there is no payload to look inside otherwise); an
478
- * explicitly empty list is rejected — see the superRefine below.
479
- */
480
- maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
481
- injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
482
- }, "strip", z.ZodTypeAny, {
483
- mode: "deny" | "mask";
484
- name: string;
485
- extract?: string | undefined;
486
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
487
- decode?: "jwt" | undefined;
488
- maskClaims?: string[] | undefined;
489
- injectHosts?: string[] | undefined;
490
- }, {
491
- mode: "deny" | "mask";
492
- name: string;
493
- extract?: string | undefined;
494
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
495
- decode?: "jwt" | undefined;
496
- maskClaims?: string[] | undefined;
497
- injectHosts?: string[] | undefined;
498
- }>, "many">>;
499
- allowPlaintextInject: z.ZodOptional<z.ZodBoolean>;
500
- awsPairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
501
- accessKeyIdVar: z.ZodString;
502
- secretAccessKeyVar: z.ZodString;
503
- sessionTokenVar: z.ZodOptional<z.ZodString>;
504
- }, "strict", z.ZodTypeAny, {
505
- accessKeyIdVar: string;
506
- secretAccessKeyVar: string;
507
- sessionTokenVar?: string | undefined;
508
- }, {
509
- accessKeyIdVar: string;
510
- secretAccessKeyVar: string;
511
- sessionTokenVar?: string | undefined;
512
- }>, "many">>;
513
- sigv4: z.ZodOptional<z.ZodObject<{
514
- streaming: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
515
- presigned: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
516
- sigv4a: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
517
- }, "strict", z.ZodTypeAny, {
518
- streaming?: "passthrough" | "deny" | undefined;
519
- presigned?: "passthrough" | "deny" | undefined;
520
- sigv4a?: "passthrough" | "deny" | undefined;
521
- }, {
522
- streaming?: "passthrough" | "deny" | undefined;
523
- presigned?: "passthrough" | "deny" | undefined;
524
- sigv4a?: "passthrough" | "deny" | undefined;
525
- }>>;
526
- }, "strict", z.ZodTypeAny, {
527
- files?: {
528
- mode: "deny" | "mask";
529
- path: string;
530
- extract?: string | undefined;
531
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
532
- decode?: "jwt" | undefined;
533
- maskClaims?: string[] | undefined;
534
- maskDuplicates?: boolean | undefined;
535
- injectHosts?: string[] | undefined;
536
- }[] | undefined;
537
- envVars?: {
538
- mode: "deny" | "mask";
539
- name: string;
540
- extract?: string | undefined;
541
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
542
- decode?: "jwt" | undefined;
543
- maskClaims?: string[] | undefined;
544
- injectHosts?: string[] | undefined;
545
- }[] | undefined;
546
- allowPlaintextInject?: boolean | undefined;
547
- awsPairs?: {
548
- accessKeyIdVar: string;
549
- secretAccessKeyVar: string;
550
- sessionTokenVar?: string | undefined;
551
- }[] | undefined;
552
- sigv4?: {
553
- streaming?: "passthrough" | "deny" | undefined;
554
- presigned?: "passthrough" | "deny" | undefined;
555
- sigv4a?: "passthrough" | "deny" | undefined;
556
- } | undefined;
557
- }, {
558
- files?: {
559
- mode: "deny" | "mask";
560
- path: string;
561
- extract?: string | undefined;
562
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
563
- decode?: "jwt" | undefined;
564
- maskClaims?: string[] | undefined;
565
- maskDuplicates?: boolean | undefined;
566
- injectHosts?: string[] | undefined;
567
- }[] | undefined;
568
- envVars?: {
569
- mode: "deny" | "mask";
570
- name: string;
571
- extract?: string | undefined;
572
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
573
- decode?: "jwt" | undefined;
574
- maskClaims?: string[] | undefined;
575
- injectHosts?: string[] | undefined;
576
- }[] | undefined;
577
- allowPlaintextInject?: boolean | undefined;
578
- awsPairs?: {
579
- accessKeyIdVar: string;
580
- secretAccessKeyVar: string;
581
- sessionTokenVar?: string | undefined;
582
- }[] | undefined;
583
- sigv4?: {
584
- streaming?: "passthrough" | "deny" | undefined;
585
- presigned?: "passthrough" | "deny" | undefined;
586
- sigv4a?: "passthrough" | "deny" | undefined;
587
- } | undefined;
588
- }>;
589
- /**
590
- * Network configuration schema for validation
591
- */
592
- export declare const NetworkConfigSchema: z.ZodObject<{
593
- allowedDomains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
594
- deniedDomains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
595
- deniedDomainReasons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
596
- strictAllowlist: z.ZodOptional<z.ZodBoolean>;
597
- deniedResolvedAddresses: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
598
- allowUnixSockets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
599
- allowAllUnixSockets: z.ZodOptional<z.ZodBoolean>;
600
- allowLocalBinding: z.ZodOptional<z.ZodBoolean>;
601
- allowMachLookup: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
602
- httpProxyPort: z.ZodOptional<z.ZodNumber>;
603
- socksProxyPort: z.ZodOptional<z.ZodNumber>;
604
- mitmProxy: z.ZodOptional<z.ZodObject<{
605
- socketPath: z.ZodString;
606
- domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
607
- }, "strip", z.ZodTypeAny, {
608
- socketPath: string;
609
- domains: string[];
610
- }, {
611
- socketPath: string;
612
- domains: string[];
613
- }>>;
614
- filterRequest: z.ZodOptional<z.ZodType<FilterRequestCallback, z.ZodTypeDef, FilterRequestCallback>>;
615
- tlsTerminate: z.ZodOptional<z.ZodEffects<z.ZodObject<{
616
- caCertPath: z.ZodOptional<z.ZodString>;
617
- caKeyPath: z.ZodOptional<z.ZodString>;
618
- excludeDomains: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
619
- extraCaCertPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
620
- }, "strip", z.ZodTypeAny, {
621
- caCertPath?: string | undefined;
622
- caKeyPath?: string | undefined;
623
- excludeDomains?: string[] | undefined;
624
- extraCaCertPaths?: string[] | undefined;
625
- }, {
626
- caCertPath?: string | undefined;
627
- caKeyPath?: string | undefined;
628
- excludeDomains?: string[] | undefined;
629
- extraCaCertPaths?: string[] | undefined;
630
- }>, {
631
- caCertPath?: string | undefined;
632
- caKeyPath?: string | undefined;
633
- excludeDomains?: string[] | undefined;
634
- extraCaCertPaths?: string[] | undefined;
635
- }, {
636
- caCertPath?: string | undefined;
637
- caKeyPath?: string | undefined;
638
- excludeDomains?: string[] | undefined;
639
- extraCaCertPaths?: string[] | undefined;
640
- }>>;
641
- parentProxy: z.ZodOptional<z.ZodObject<{
642
- http: z.ZodOptional<z.ZodString>;
643
- https: z.ZodOptional<z.ZodString>;
644
- noProxy: z.ZodOptional<z.ZodString>;
645
- }, "strip", z.ZodTypeAny, {
646
- http?: string | undefined;
647
- https?: string | undefined;
648
- noProxy?: string | undefined;
649
- }, {
650
- http?: string | undefined;
651
- https?: string | undefined;
652
- noProxy?: string | undefined;
653
- }>>;
654
- }, "strip", z.ZodTypeAny, {
655
- allowedDomains: string[];
656
- deniedDomains: string[];
657
- deniedDomainReasons?: Record<string, string> | undefined;
658
- strictAllowlist?: boolean | undefined;
659
- deniedResolvedAddresses?: string[] | undefined;
660
- allowUnixSockets?: string[] | undefined;
661
- allowAllUnixSockets?: boolean | undefined;
662
- allowLocalBinding?: boolean | undefined;
663
- allowMachLookup?: string[] | undefined;
664
- httpProxyPort?: number | undefined;
665
- socksProxyPort?: number | undefined;
666
- mitmProxy?: {
667
- socketPath: string;
668
- domains: string[];
669
- } | undefined;
670
- filterRequest?: FilterRequestCallback | undefined;
671
- tlsTerminate?: {
672
- caCertPath?: string | undefined;
673
- caKeyPath?: string | undefined;
674
- excludeDomains?: string[] | undefined;
675
- extraCaCertPaths?: string[] | undefined;
676
- } | undefined;
677
- parentProxy?: {
678
- http?: string | undefined;
679
- https?: string | undefined;
680
- noProxy?: string | undefined;
681
- } | undefined;
682
- }, {
683
- allowedDomains: string[];
684
- deniedDomains: string[];
685
- deniedDomainReasons?: Record<string, string> | undefined;
686
- strictAllowlist?: boolean | undefined;
687
- deniedResolvedAddresses?: string[] | undefined;
688
- allowUnixSockets?: string[] | undefined;
689
- allowAllUnixSockets?: boolean | undefined;
690
- allowLocalBinding?: boolean | undefined;
691
- allowMachLookup?: string[] | undefined;
692
- httpProxyPort?: number | undefined;
693
- socksProxyPort?: number | undefined;
694
- mitmProxy?: {
695
- socketPath: string;
696
- domains: string[];
697
- } | undefined;
698
- filterRequest?: FilterRequestCallback | undefined;
699
- tlsTerminate?: {
700
- caCertPath?: string | undefined;
701
- caKeyPath?: string | undefined;
702
- excludeDomains?: string[] | undefined;
703
- extraCaCertPaths?: string[] | undefined;
704
- } | undefined;
705
- parentProxy?: {
706
- http?: string | undefined;
707
- https?: string | undefined;
708
- noProxy?: string | undefined;
709
- } | undefined;
710
- }>;
711
- /**
712
- * Filesystem configuration schema for validation
713
- */
714
- export declare const FilesystemConfigSchema: z.ZodObject<{
715
- disabled: z.ZodOptional<z.ZodBoolean>;
716
- denyRead: z.ZodArray<z.ZodString, "many">;
717
- allowRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
718
- allowWrite: z.ZodArray<z.ZodString, "many">;
719
- denyWrite: z.ZodArray<z.ZodString, "many">;
720
- allowGitConfig: z.ZodOptional<z.ZodBoolean>;
721
- }, "strip", z.ZodTypeAny, {
722
- denyRead: string[];
723
- allowWrite: string[];
724
- denyWrite: string[];
725
- disabled?: boolean | undefined;
726
- allowRead?: string[] | undefined;
727
- allowGitConfig?: boolean | undefined;
728
- }, {
729
- denyRead: string[];
730
- allowWrite: string[];
731
- denyWrite: string[];
732
- disabled?: boolean | undefined;
733
- allowRead?: string[] | undefined;
734
- allowGitConfig?: boolean | undefined;
735
- }>;
736
- /**
737
- * Configuration schema for ignoring specific sandbox violations
738
- * Maps command patterns to filesystem paths to ignore violations for.
739
- */
740
- export declare const IgnoreViolationsConfigSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
741
- /**
742
- * Ripgrep configuration schema
743
- */
744
- export declare const RipgrepConfigSchema: z.ZodObject<{
745
- command: z.ZodString;
746
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
747
- argv0: z.ZodOptional<z.ZodString>;
748
- }, "strip", z.ZodTypeAny, {
749
- command: string;
750
- args?: string[] | undefined;
751
- argv0?: string | undefined;
752
- }, {
753
- command: string;
754
- args?: string[] | undefined;
755
- argv0?: string | undefined;
756
- }>;
757
- /**
758
- * Git configuration schema (cross-platform). Injected via
759
- * `GIT_CONFIG_COUNT` / `GIT_CONFIG_KEY_<n>` / `GIT_CONFIG_VALUE_<n>`
760
- * env vars — see `buildGitConfigEnv` in `sandbox-utils.ts`.
761
- */
762
- export declare const GitConfigSchema: z.ZodObject<{
763
- safeDirectories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
764
- }, "strip", z.ZodTypeAny, {
765
- safeDirectories: string[];
766
- }, {
767
- safeDirectories?: string[] | undefined;
768
- }>;
769
- /**
770
- * Configuration for locating/invoking the `srt-win` helper (Windows
771
- * only). An embedder that links `srt-win`'s CLI into its own
772
- * multicall binary points `path` at that binary; spawns then pass
773
- * `--srt-win` as `argv[1]` (see `SRT_WIN_DISPATCH_ARG1` in
774
- * `windows-sandbox-utils.ts` / `srt_win::SRT_WIN_DISPATCH_ARG1`) so
775
- * the embedder's dispatcher can route to `srt_win::run_from_args`.
776
- * Windows cannot reliably preserve a spoofed `argv[0]` across
777
- * `CreateProcessWithLogonW` / `ShellExecuteExW(runas)`, so dispatch
778
- * keys on `argv[1]`, not on `argv[0]` like
779
- * {@link SeccompConfigSchema} does on Linux.
780
- */
781
- export declare const SrtWinConfigSchema: z.ZodObject<{
782
- path: z.ZodString;
783
- }, "strip", z.ZodTypeAny, {
784
- path: string;
785
- }, {
786
- path: string;
787
- }>;
788
- /**
789
- * Windows-specific configuration schema. See
790
- * `windows-sandbox-utils.ts` for the install flow these settings
791
- * must agree with.
792
- *
793
- * Canonical: `sublayerGuid`; the `wfpSublayerGuid` alias is resolved
794
- * at read sites (`sublayerGuid ?? wfpSublayerGuid`) rather than via
795
- * `.transform()` so this stays a plain `ZodObject` for consumers that
796
- * `.extend()`/`.shape` it.
797
- */
798
- export declare const WindowsConfigSchema: z.ZodObject<{
799
- sandboxUser: z.ZodOptional<z.ZodString>;
800
- sublayerGuid: z.ZodOptional<z.ZodString>;
801
- wfpSublayerGuid: z.ZodOptional<z.ZodString>;
802
- proxyPortRange: z.ZodOptional<z.ZodEffects<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, [number, number], [number, number]>>;
803
- srtWin: z.ZodOptional<z.ZodObject<{
804
- path: z.ZodString;
805
- }, "strip", z.ZodTypeAny, {
806
- path: string;
807
- }, {
808
- path: string;
809
- }>>;
810
- }, "strip", z.ZodTypeAny, {
811
- sandboxUser?: string | undefined;
812
- sublayerGuid?: string | undefined;
813
- wfpSublayerGuid?: string | undefined;
814
- proxyPortRange?: [number, number] | undefined;
815
- srtWin?: {
816
- path: string;
817
- } | undefined;
818
- }, {
819
- sandboxUser?: string | undefined;
820
- sublayerGuid?: string | undefined;
821
- wfpSublayerGuid?: string | undefined;
822
- proxyPortRange?: [number, number] | undefined;
823
- srtWin?: {
824
- path: string;
825
- } | undefined;
826
- }>;
827
- /**
828
- * Seccomp configuration schema (Linux only)
829
- */
830
- export declare const SeccompConfigSchema: z.ZodObject<{
831
- applyPath: z.ZodOptional<z.ZodString>;
832
- argv0: z.ZodOptional<z.ZodString>;
833
- }, "strip", z.ZodTypeAny, {
834
- argv0?: string | undefined;
835
- applyPath?: string | undefined;
836
- }, {
837
- argv0?: string | undefined;
838
- applyPath?: string | undefined;
839
- }>;
840
- /**
841
- * Main configuration schema for Sandbox Runtime validation
842
- */
843
- export declare const SandboxRuntimeConfigSchema: z.ZodEffects<z.ZodObject<{
844
- network: z.ZodObject<{
845
- allowedDomains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
846
- deniedDomains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
847
- deniedDomainReasons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
848
- strictAllowlist: z.ZodOptional<z.ZodBoolean>;
849
- deniedResolvedAddresses: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
850
- allowUnixSockets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
851
- allowAllUnixSockets: z.ZodOptional<z.ZodBoolean>;
852
- allowLocalBinding: z.ZodOptional<z.ZodBoolean>;
853
- allowMachLookup: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
854
- httpProxyPort: z.ZodOptional<z.ZodNumber>;
855
- socksProxyPort: z.ZodOptional<z.ZodNumber>;
856
- mitmProxy: z.ZodOptional<z.ZodObject<{
857
- socketPath: z.ZodString;
858
- domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
859
- }, "strip", z.ZodTypeAny, {
860
- socketPath: string;
861
- domains: string[];
862
- }, {
863
- socketPath: string;
864
- domains: string[];
865
- }>>;
866
- filterRequest: z.ZodOptional<z.ZodType<FilterRequestCallback, z.ZodTypeDef, FilterRequestCallback>>;
867
- tlsTerminate: z.ZodOptional<z.ZodEffects<z.ZodObject<{
868
- caCertPath: z.ZodOptional<z.ZodString>;
869
- caKeyPath: z.ZodOptional<z.ZodString>;
870
- excludeDomains: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
871
- extraCaCertPaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
872
- }, "strip", z.ZodTypeAny, {
873
- caCertPath?: string | undefined;
874
- caKeyPath?: string | undefined;
875
- excludeDomains?: string[] | undefined;
876
- extraCaCertPaths?: string[] | undefined;
877
- }, {
878
- caCertPath?: string | undefined;
879
- caKeyPath?: string | undefined;
880
- excludeDomains?: string[] | undefined;
881
- extraCaCertPaths?: string[] | undefined;
882
- }>, {
883
- caCertPath?: string | undefined;
884
- caKeyPath?: string | undefined;
885
- excludeDomains?: string[] | undefined;
886
- extraCaCertPaths?: string[] | undefined;
887
- }, {
888
- caCertPath?: string | undefined;
889
- caKeyPath?: string | undefined;
890
- excludeDomains?: string[] | undefined;
891
- extraCaCertPaths?: string[] | undefined;
892
- }>>;
893
- parentProxy: z.ZodOptional<z.ZodObject<{
894
- http: z.ZodOptional<z.ZodString>;
895
- https: z.ZodOptional<z.ZodString>;
896
- noProxy: z.ZodOptional<z.ZodString>;
897
- }, "strip", z.ZodTypeAny, {
898
- http?: string | undefined;
899
- https?: string | undefined;
900
- noProxy?: string | undefined;
901
- }, {
902
- http?: string | undefined;
903
- https?: string | undefined;
904
- noProxy?: string | undefined;
905
- }>>;
906
- }, "strip", z.ZodTypeAny, {
907
- allowedDomains: string[];
908
- deniedDomains: string[];
909
- deniedDomainReasons?: Record<string, string> | undefined;
910
- strictAllowlist?: boolean | undefined;
911
- deniedResolvedAddresses?: string[] | undefined;
912
- allowUnixSockets?: string[] | undefined;
913
- allowAllUnixSockets?: boolean | undefined;
914
- allowLocalBinding?: boolean | undefined;
915
- allowMachLookup?: string[] | undefined;
916
- httpProxyPort?: number | undefined;
917
- socksProxyPort?: number | undefined;
918
- mitmProxy?: {
919
- socketPath: string;
920
- domains: string[];
921
- } | undefined;
922
- filterRequest?: FilterRequestCallback | undefined;
923
- tlsTerminate?: {
924
- caCertPath?: string | undefined;
925
- caKeyPath?: string | undefined;
926
- excludeDomains?: string[] | undefined;
927
- extraCaCertPaths?: string[] | undefined;
928
- } | undefined;
929
- parentProxy?: {
930
- http?: string | undefined;
931
- https?: string | undefined;
932
- noProxy?: string | undefined;
933
- } | undefined;
934
- }, {
935
- allowedDomains: string[];
936
- deniedDomains: string[];
937
- deniedDomainReasons?: Record<string, string> | undefined;
938
- strictAllowlist?: boolean | undefined;
939
- deniedResolvedAddresses?: string[] | undefined;
940
- allowUnixSockets?: string[] | undefined;
941
- allowAllUnixSockets?: boolean | undefined;
942
- allowLocalBinding?: boolean | undefined;
943
- allowMachLookup?: string[] | undefined;
944
- httpProxyPort?: number | undefined;
945
- socksProxyPort?: number | undefined;
946
- mitmProxy?: {
947
- socketPath: string;
948
- domains: string[];
949
- } | undefined;
950
- filterRequest?: FilterRequestCallback | undefined;
951
- tlsTerminate?: {
952
- caCertPath?: string | undefined;
953
- caKeyPath?: string | undefined;
954
- excludeDomains?: string[] | undefined;
955
- extraCaCertPaths?: string[] | undefined;
956
- } | undefined;
957
- parentProxy?: {
958
- http?: string | undefined;
959
- https?: string | undefined;
960
- noProxy?: string | undefined;
961
- } | undefined;
962
- }>;
963
- filesystem: z.ZodObject<{
964
- disabled: z.ZodOptional<z.ZodBoolean>;
965
- denyRead: z.ZodArray<z.ZodString, "many">;
966
- allowRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
967
- allowWrite: z.ZodArray<z.ZodString, "many">;
968
- denyWrite: z.ZodArray<z.ZodString, "many">;
969
- allowGitConfig: z.ZodOptional<z.ZodBoolean>;
970
- }, "strip", z.ZodTypeAny, {
971
- denyRead: string[];
972
- allowWrite: string[];
973
- denyWrite: string[];
974
- disabled?: boolean | undefined;
975
- allowRead?: string[] | undefined;
976
- allowGitConfig?: boolean | undefined;
977
- }, {
978
- denyRead: string[];
979
- allowWrite: string[];
980
- denyWrite: string[];
981
- disabled?: boolean | undefined;
982
- allowRead?: string[] | undefined;
983
- allowGitConfig?: boolean | undefined;
984
- }>;
985
- credentials: z.ZodOptional<z.ZodObject<{
986
- files: z.ZodOptional<z.ZodArray<z.ZodObject<{
987
- path: z.ZodString;
988
- mode: z.ZodEnum<["deny", "mask"]>;
989
- extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
990
- /**
991
- * What to do when `extract` matches nothing in the file at runtime —
992
- * or, with `decode`, when no candidate survives verification.
993
- *
994
- * - `"warn"` (default): emit a stderr warning and leave the file
995
- * readable as-is inside the sandbox (fail-open). A non-matching
996
- * pattern is treated as a config error to surface and fix, not a
997
- * reason to break a tool that needs the file when the credential is
998
- * legitimately absent.
999
- * - `"deny"`: degrade the entry to `mode: "deny"` so the file is
1000
- * unreadable inside the sandbox (fail-closed). The operator declared
1001
- * this file as containing a credential; if the regex cannot find it,
1002
- * block access rather than expose it.
1003
- * - `"error"`: throw at wrap time so nothing runs until the operator
1004
- * fixes the config.
1005
- *
1006
- * Only meaningful when `mode` is `"mask"` and `extract` or `decode` is
1007
- * set; accepted but ignored otherwise.
1008
- */
1009
- onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
1010
- decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
1011
- /**
1012
- * Names of top-level payload claims to mask inside each decoded value —
1013
- * the claim-level counterpart of `extract`: where `extract` opens plain
1014
- * text to mask a span inside it, `decode` + `maskClaims` opens the
1015
- * encoding to mask a field inside the decoded payload.
1016
- *
1017
- * For each verified JWT candidate, every named claim present with a
1018
- * string value is replaced by its own sentinel and the token is rebuilt
1019
- * around the modified payload (original header, filler signature). All
1020
- * other claims are preserved verbatim, so a tool that decodes the token
1021
- * and reads a non-secret claim (issuer, audience, user id) keeps
1022
- * working while the secret claim is protected. A named claim that is
1023
- * absent or non-string in a given token is skipped. If no named claim
1024
- * matches in any verified token, behaviour is governed by
1025
- * `onExtractNoMatch` — same as no candidate verifying.
1026
- *
1027
- * Requires `decode` (there is no payload to look inside otherwise); an
1028
- * explicitly empty list is rejected — see the superRefine below.
1029
- */
1030
- maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1031
- maskDuplicates: z.ZodOptional<z.ZodBoolean>;
1032
- injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1033
- }, "strip", z.ZodTypeAny, {
1034
- mode: "deny" | "mask";
1035
- path: string;
1036
- extract?: string | undefined;
1037
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1038
- decode?: "jwt" | undefined;
1039
- maskClaims?: string[] | undefined;
1040
- maskDuplicates?: boolean | undefined;
1041
- injectHosts?: string[] | undefined;
1042
- }, {
1043
- mode: "deny" | "mask";
1044
- path: string;
1045
- extract?: string | undefined;
1046
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1047
- decode?: "jwt" | undefined;
1048
- maskClaims?: string[] | undefined;
1049
- maskDuplicates?: boolean | undefined;
1050
- injectHosts?: string[] | undefined;
1051
- }>, "many">>;
1052
- envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
1053
- name: z.ZodString;
1054
- mode: z.ZodEnum<["deny", "mask"]>;
1055
- extract: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1056
- /**
1057
- * What to do when `extract` matches nothing in the value at runtime.
1058
- *
1059
- * - `"warn"` (default): emit a stderr warning and let the variable pass
1060
- * through unmasked inside the sandbox (fail-open). A non-matching
1061
- * pattern is treated as a config error to surface and fix, not a
1062
- * reason to break a tool that needs the variable when the credential
1063
- * is legitimately absent from it.
1064
- * - `"deny"`: unset the variable inside the sandbox (fail-closed) — the
1065
- * env analog of degrading a file to `mode: "deny"`. The operator
1066
- * declared this variable as containing a credential; if the regex
1067
- * cannot find it, withhold the value rather than expose it.
1068
- * - `"error"`: throw at wrap time so nothing runs until the operator
1069
- * fixes the regex.
1070
- *
1071
- * Only meaningful when `mode` is `"mask"` and `extract` is set;
1072
- * accepted but ignored otherwise.
1073
- */
1074
- onExtractNoMatch: z.ZodOptional<z.ZodEnum<["warn", "deny", "error"]>>;
1075
- decode: z.ZodOptional<z.ZodEnum<["jwt"]>>;
1076
- /**
1077
- * Names of top-level payload claims to mask inside the decoded value —
1078
- * the env-var counterpart of the `maskClaims` on a file entry: `decode`
1079
- * opens the variable's encoded value so masking can target a field
1080
- * inside the decoded payload instead of replacing the whole token.
1081
- *
1082
- * Every named claim present with a string value is replaced by its own
1083
- * sentinel and the token is rebuilt around the modified payload
1084
- * (original header segment, filler signature). All other claims are
1085
- * preserved verbatim, so a tool that decodes the token and reads a
1086
- * non-secret claim (issuer, audience, user id) keeps working while the
1087
- * secret claim is protected. A named claim that is absent or non-string
1088
- * is skipped. If no named claim matches, nothing was masked and the
1089
- * entry fails open with a stderr warning — same path as a value that
1090
- * does not verify as a JWT.
1091
- *
1092
- * Requires `decode` (there is no payload to look inside otherwise); an
1093
- * explicitly empty list is rejected — see the superRefine below.
1094
- */
1095
- maskClaims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1096
- injectHosts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1097
- }, "strip", z.ZodTypeAny, {
1098
- mode: "deny" | "mask";
1099
- name: string;
1100
- extract?: string | undefined;
1101
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1102
- decode?: "jwt" | undefined;
1103
- maskClaims?: string[] | undefined;
1104
- injectHosts?: string[] | undefined;
1105
- }, {
1106
- mode: "deny" | "mask";
1107
- name: string;
1108
- extract?: string | undefined;
1109
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1110
- decode?: "jwt" | undefined;
1111
- maskClaims?: string[] | undefined;
1112
- injectHosts?: string[] | undefined;
1113
- }>, "many">>;
1114
- allowPlaintextInject: z.ZodOptional<z.ZodBoolean>;
1115
- awsPairs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1116
- accessKeyIdVar: z.ZodString;
1117
- secretAccessKeyVar: z.ZodString;
1118
- sessionTokenVar: z.ZodOptional<z.ZodString>;
1119
- }, "strict", z.ZodTypeAny, {
1120
- accessKeyIdVar: string;
1121
- secretAccessKeyVar: string;
1122
- sessionTokenVar?: string | undefined;
1123
- }, {
1124
- accessKeyIdVar: string;
1125
- secretAccessKeyVar: string;
1126
- sessionTokenVar?: string | undefined;
1127
- }>, "many">>;
1128
- sigv4: z.ZodOptional<z.ZodObject<{
1129
- streaming: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
1130
- presigned: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
1131
- sigv4a: z.ZodOptional<z.ZodEnum<["deny", "passthrough"]>>;
1132
- }, "strict", z.ZodTypeAny, {
1133
- streaming?: "passthrough" | "deny" | undefined;
1134
- presigned?: "passthrough" | "deny" | undefined;
1135
- sigv4a?: "passthrough" | "deny" | undefined;
1136
- }, {
1137
- streaming?: "passthrough" | "deny" | undefined;
1138
- presigned?: "passthrough" | "deny" | undefined;
1139
- sigv4a?: "passthrough" | "deny" | undefined;
1140
- }>>;
1141
- }, "strict", z.ZodTypeAny, {
1142
- files?: {
1143
- mode: "deny" | "mask";
1144
- path: string;
1145
- extract?: string | undefined;
1146
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1147
- decode?: "jwt" | undefined;
1148
- maskClaims?: string[] | undefined;
1149
- maskDuplicates?: boolean | undefined;
1150
- injectHosts?: string[] | undefined;
1151
- }[] | undefined;
1152
- envVars?: {
1153
- mode: "deny" | "mask";
1154
- name: string;
1155
- extract?: string | undefined;
1156
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1157
- decode?: "jwt" | undefined;
1158
- maskClaims?: string[] | undefined;
1159
- injectHosts?: string[] | undefined;
1160
- }[] | undefined;
1161
- allowPlaintextInject?: boolean | undefined;
1162
- awsPairs?: {
1163
- accessKeyIdVar: string;
1164
- secretAccessKeyVar: string;
1165
- sessionTokenVar?: string | undefined;
1166
- }[] | undefined;
1167
- sigv4?: {
1168
- streaming?: "passthrough" | "deny" | undefined;
1169
- presigned?: "passthrough" | "deny" | undefined;
1170
- sigv4a?: "passthrough" | "deny" | undefined;
1171
- } | undefined;
1172
- }, {
1173
- files?: {
1174
- mode: "deny" | "mask";
1175
- path: string;
1176
- extract?: string | undefined;
1177
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1178
- decode?: "jwt" | undefined;
1179
- maskClaims?: string[] | undefined;
1180
- maskDuplicates?: boolean | undefined;
1181
- injectHosts?: string[] | undefined;
1182
- }[] | undefined;
1183
- envVars?: {
1184
- mode: "deny" | "mask";
1185
- name: string;
1186
- extract?: string | undefined;
1187
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1188
- decode?: "jwt" | undefined;
1189
- maskClaims?: string[] | undefined;
1190
- injectHosts?: string[] | undefined;
1191
- }[] | undefined;
1192
- allowPlaintextInject?: boolean | undefined;
1193
- awsPairs?: {
1194
- accessKeyIdVar: string;
1195
- secretAccessKeyVar: string;
1196
- sessionTokenVar?: string | undefined;
1197
- }[] | undefined;
1198
- sigv4?: {
1199
- streaming?: "passthrough" | "deny" | undefined;
1200
- presigned?: "passthrough" | "deny" | undefined;
1201
- sigv4a?: "passthrough" | "deny" | undefined;
1202
- } | undefined;
1203
- }>>;
1204
- ignoreViolations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
1205
- enableWeakerNestedSandbox: z.ZodOptional<z.ZodBoolean>;
1206
- enableWeakerNetworkIsolation: z.ZodOptional<z.ZodBoolean>;
1207
- allowAppleEvents: z.ZodOptional<z.ZodBoolean>;
1208
- ripgrep: z.ZodOptional<z.ZodObject<{
1209
- command: z.ZodString;
1210
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1211
- argv0: z.ZodOptional<z.ZodString>;
1212
- }, "strip", z.ZodTypeAny, {
1213
- command: string;
1214
- args?: string[] | undefined;
1215
- argv0?: string | undefined;
1216
- }, {
1217
- command: string;
1218
- args?: string[] | undefined;
1219
- argv0?: string | undefined;
1220
- }>>;
1221
- mandatoryDenySearchDepth: z.ZodOptional<z.ZodNumber>;
1222
- allowPty: z.ZodOptional<z.ZodBoolean>;
1223
- seccomp: z.ZodOptional<z.ZodObject<{
1224
- applyPath: z.ZodOptional<z.ZodString>;
1225
- argv0: z.ZodOptional<z.ZodString>;
1226
- }, "strip", z.ZodTypeAny, {
1227
- argv0?: string | undefined;
1228
- applyPath?: string | undefined;
1229
- }, {
1230
- argv0?: string | undefined;
1231
- applyPath?: string | undefined;
1232
- }>>;
1233
- bwrapPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1234
- socatPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1235
- javaAgentJarPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1236
- windows: z.ZodOptional<z.ZodObject<{
1237
- sandboxUser: z.ZodOptional<z.ZodString>;
1238
- sublayerGuid: z.ZodOptional<z.ZodString>;
1239
- wfpSublayerGuid: z.ZodOptional<z.ZodString>;
1240
- proxyPortRange: z.ZodOptional<z.ZodEffects<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, [number, number], [number, number]>>;
1241
- srtWin: z.ZodOptional<z.ZodObject<{
1242
- path: z.ZodString;
1243
- }, "strip", z.ZodTypeAny, {
1244
- path: string;
1245
- }, {
1246
- path: string;
1247
- }>>;
1248
- }, "strip", z.ZodTypeAny, {
1249
- sandboxUser?: string | undefined;
1250
- sublayerGuid?: string | undefined;
1251
- wfpSublayerGuid?: string | undefined;
1252
- proxyPortRange?: [number, number] | undefined;
1253
- srtWin?: {
1254
- path: string;
1255
- } | undefined;
1256
- }, {
1257
- sandboxUser?: string | undefined;
1258
- sublayerGuid?: string | undefined;
1259
- wfpSublayerGuid?: string | undefined;
1260
- proxyPortRange?: [number, number] | undefined;
1261
- srtWin?: {
1262
- path: string;
1263
- } | undefined;
1264
- }>>;
1265
- git: z.ZodOptional<z.ZodObject<{
1266
- safeDirectories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1267
- }, "strip", z.ZodTypeAny, {
1268
- safeDirectories: string[];
1269
- }, {
1270
- safeDirectories?: string[] | undefined;
1271
- }>>;
1272
- }, "strip", z.ZodTypeAny, {
1273
- network: {
1274
- allowedDomains: string[];
1275
- deniedDomains: string[];
1276
- deniedDomainReasons?: Record<string, string> | undefined;
1277
- strictAllowlist?: boolean | undefined;
1278
- deniedResolvedAddresses?: string[] | undefined;
1279
- allowUnixSockets?: string[] | undefined;
1280
- allowAllUnixSockets?: boolean | undefined;
1281
- allowLocalBinding?: boolean | undefined;
1282
- allowMachLookup?: string[] | undefined;
1283
- httpProxyPort?: number | undefined;
1284
- socksProxyPort?: number | undefined;
1285
- mitmProxy?: {
1286
- socketPath: string;
1287
- domains: string[];
1288
- } | undefined;
1289
- filterRequest?: FilterRequestCallback | undefined;
1290
- tlsTerminate?: {
1291
- caCertPath?: string | undefined;
1292
- caKeyPath?: string | undefined;
1293
- excludeDomains?: string[] | undefined;
1294
- extraCaCertPaths?: string[] | undefined;
1295
- } | undefined;
1296
- parentProxy?: {
1297
- http?: string | undefined;
1298
- https?: string | undefined;
1299
- noProxy?: string | undefined;
1300
- } | undefined;
1301
- };
1302
- filesystem: {
1303
- denyRead: string[];
1304
- allowWrite: string[];
1305
- denyWrite: string[];
1306
- disabled?: boolean | undefined;
1307
- allowRead?: string[] | undefined;
1308
- allowGitConfig?: boolean | undefined;
1309
- };
1310
- windows?: {
1311
- sandboxUser?: string | undefined;
1312
- sublayerGuid?: string | undefined;
1313
- wfpSublayerGuid?: string | undefined;
1314
- proxyPortRange?: [number, number] | undefined;
1315
- srtWin?: {
1316
- path: string;
1317
- } | undefined;
1318
- } | undefined;
1319
- credentials?: {
1320
- files?: {
1321
- mode: "deny" | "mask";
1322
- path: string;
1323
- extract?: string | undefined;
1324
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1325
- decode?: "jwt" | undefined;
1326
- maskClaims?: string[] | undefined;
1327
- maskDuplicates?: boolean | undefined;
1328
- injectHosts?: string[] | undefined;
1329
- }[] | undefined;
1330
- envVars?: {
1331
- mode: "deny" | "mask";
1332
- name: string;
1333
- extract?: string | undefined;
1334
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1335
- decode?: "jwt" | undefined;
1336
- maskClaims?: string[] | undefined;
1337
- injectHosts?: string[] | undefined;
1338
- }[] | undefined;
1339
- allowPlaintextInject?: boolean | undefined;
1340
- awsPairs?: {
1341
- accessKeyIdVar: string;
1342
- secretAccessKeyVar: string;
1343
- sessionTokenVar?: string | undefined;
1344
- }[] | undefined;
1345
- sigv4?: {
1346
- streaming?: "passthrough" | "deny" | undefined;
1347
- presigned?: "passthrough" | "deny" | undefined;
1348
- sigv4a?: "passthrough" | "deny" | undefined;
1349
- } | undefined;
1350
- } | undefined;
1351
- ignoreViolations?: Record<string, string[]> | undefined;
1352
- enableWeakerNestedSandbox?: boolean | undefined;
1353
- enableWeakerNetworkIsolation?: boolean | undefined;
1354
- allowAppleEvents?: boolean | undefined;
1355
- ripgrep?: {
1356
- command: string;
1357
- args?: string[] | undefined;
1358
- argv0?: string | undefined;
1359
- } | undefined;
1360
- mandatoryDenySearchDepth?: number | undefined;
1361
- allowPty?: boolean | undefined;
1362
- seccomp?: {
1363
- argv0?: string | undefined;
1364
- applyPath?: string | undefined;
1365
- } | undefined;
1366
- bwrapPath?: string | undefined;
1367
- socatPath?: string | undefined;
1368
- javaAgentJarPath?: string | undefined;
1369
- git?: {
1370
- safeDirectories: string[];
1371
- } | undefined;
1372
- }, {
1373
- network: {
1374
- allowedDomains: string[];
1375
- deniedDomains: string[];
1376
- deniedDomainReasons?: Record<string, string> | undefined;
1377
- strictAllowlist?: boolean | undefined;
1378
- deniedResolvedAddresses?: string[] | undefined;
1379
- allowUnixSockets?: string[] | undefined;
1380
- allowAllUnixSockets?: boolean | undefined;
1381
- allowLocalBinding?: boolean | undefined;
1382
- allowMachLookup?: string[] | undefined;
1383
- httpProxyPort?: number | undefined;
1384
- socksProxyPort?: number | undefined;
1385
- mitmProxy?: {
1386
- socketPath: string;
1387
- domains: string[];
1388
- } | undefined;
1389
- filterRequest?: FilterRequestCallback | undefined;
1390
- tlsTerminate?: {
1391
- caCertPath?: string | undefined;
1392
- caKeyPath?: string | undefined;
1393
- excludeDomains?: string[] | undefined;
1394
- extraCaCertPaths?: string[] | undefined;
1395
- } | undefined;
1396
- parentProxy?: {
1397
- http?: string | undefined;
1398
- https?: string | undefined;
1399
- noProxy?: string | undefined;
1400
- } | undefined;
1401
- };
1402
- filesystem: {
1403
- denyRead: string[];
1404
- allowWrite: string[];
1405
- denyWrite: string[];
1406
- disabled?: boolean | undefined;
1407
- allowRead?: string[] | undefined;
1408
- allowGitConfig?: boolean | undefined;
1409
- };
1410
- windows?: {
1411
- sandboxUser?: string | undefined;
1412
- sublayerGuid?: string | undefined;
1413
- wfpSublayerGuid?: string | undefined;
1414
- proxyPortRange?: [number, number] | undefined;
1415
- srtWin?: {
1416
- path: string;
1417
- } | undefined;
1418
- } | undefined;
1419
- credentials?: {
1420
- files?: {
1421
- mode: "deny" | "mask";
1422
- path: string;
1423
- extract?: string | undefined;
1424
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1425
- decode?: "jwt" | undefined;
1426
- maskClaims?: string[] | undefined;
1427
- maskDuplicates?: boolean | undefined;
1428
- injectHosts?: string[] | undefined;
1429
- }[] | undefined;
1430
- envVars?: {
1431
- mode: "deny" | "mask";
1432
- name: string;
1433
- extract?: string | undefined;
1434
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1435
- decode?: "jwt" | undefined;
1436
- maskClaims?: string[] | undefined;
1437
- injectHosts?: string[] | undefined;
1438
- }[] | undefined;
1439
- allowPlaintextInject?: boolean | undefined;
1440
- awsPairs?: {
1441
- accessKeyIdVar: string;
1442
- secretAccessKeyVar: string;
1443
- sessionTokenVar?: string | undefined;
1444
- }[] | undefined;
1445
- sigv4?: {
1446
- streaming?: "passthrough" | "deny" | undefined;
1447
- presigned?: "passthrough" | "deny" | undefined;
1448
- sigv4a?: "passthrough" | "deny" | undefined;
1449
- } | undefined;
1450
- } | undefined;
1451
- ignoreViolations?: Record<string, string[]> | undefined;
1452
- enableWeakerNestedSandbox?: boolean | undefined;
1453
- enableWeakerNetworkIsolation?: boolean | undefined;
1454
- allowAppleEvents?: boolean | undefined;
1455
- ripgrep?: {
1456
- command: string;
1457
- args?: string[] | undefined;
1458
- argv0?: string | undefined;
1459
- } | undefined;
1460
- mandatoryDenySearchDepth?: number | undefined;
1461
- allowPty?: boolean | undefined;
1462
- seccomp?: {
1463
- argv0?: string | undefined;
1464
- applyPath?: string | undefined;
1465
- } | undefined;
1466
- bwrapPath?: string | undefined;
1467
- socatPath?: string | undefined;
1468
- javaAgentJarPath?: string | undefined;
1469
- git?: {
1470
- safeDirectories?: string[] | undefined;
1471
- } | undefined;
1472
- }>, {
1473
- network: {
1474
- allowedDomains: string[];
1475
- deniedDomains: string[];
1476
- deniedDomainReasons?: Record<string, string> | undefined;
1477
- strictAllowlist?: boolean | undefined;
1478
- deniedResolvedAddresses?: string[] | undefined;
1479
- allowUnixSockets?: string[] | undefined;
1480
- allowAllUnixSockets?: boolean | undefined;
1481
- allowLocalBinding?: boolean | undefined;
1482
- allowMachLookup?: string[] | undefined;
1483
- httpProxyPort?: number | undefined;
1484
- socksProxyPort?: number | undefined;
1485
- mitmProxy?: {
1486
- socketPath: string;
1487
- domains: string[];
1488
- } | undefined;
1489
- filterRequest?: FilterRequestCallback | undefined;
1490
- tlsTerminate?: {
1491
- caCertPath?: string | undefined;
1492
- caKeyPath?: string | undefined;
1493
- excludeDomains?: string[] | undefined;
1494
- extraCaCertPaths?: string[] | undefined;
1495
- } | undefined;
1496
- parentProxy?: {
1497
- http?: string | undefined;
1498
- https?: string | undefined;
1499
- noProxy?: string | undefined;
1500
- } | undefined;
1501
- };
1502
- filesystem: {
1503
- denyRead: string[];
1504
- allowWrite: string[];
1505
- denyWrite: string[];
1506
- disabled?: boolean | undefined;
1507
- allowRead?: string[] | undefined;
1508
- allowGitConfig?: boolean | undefined;
1509
- };
1510
- windows?: {
1511
- sandboxUser?: string | undefined;
1512
- sublayerGuid?: string | undefined;
1513
- wfpSublayerGuid?: string | undefined;
1514
- proxyPortRange?: [number, number] | undefined;
1515
- srtWin?: {
1516
- path: string;
1517
- } | undefined;
1518
- } | undefined;
1519
- credentials?: {
1520
- files?: {
1521
- mode: "deny" | "mask";
1522
- path: string;
1523
- extract?: string | undefined;
1524
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1525
- decode?: "jwt" | undefined;
1526
- maskClaims?: string[] | undefined;
1527
- maskDuplicates?: boolean | undefined;
1528
- injectHosts?: string[] | undefined;
1529
- }[] | undefined;
1530
- envVars?: {
1531
- mode: "deny" | "mask";
1532
- name: string;
1533
- extract?: string | undefined;
1534
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1535
- decode?: "jwt" | undefined;
1536
- maskClaims?: string[] | undefined;
1537
- injectHosts?: string[] | undefined;
1538
- }[] | undefined;
1539
- allowPlaintextInject?: boolean | undefined;
1540
- awsPairs?: {
1541
- accessKeyIdVar: string;
1542
- secretAccessKeyVar: string;
1543
- sessionTokenVar?: string | undefined;
1544
- }[] | undefined;
1545
- sigv4?: {
1546
- streaming?: "passthrough" | "deny" | undefined;
1547
- presigned?: "passthrough" | "deny" | undefined;
1548
- sigv4a?: "passthrough" | "deny" | undefined;
1549
- } | undefined;
1550
- } | undefined;
1551
- ignoreViolations?: Record<string, string[]> | undefined;
1552
- enableWeakerNestedSandbox?: boolean | undefined;
1553
- enableWeakerNetworkIsolation?: boolean | undefined;
1554
- allowAppleEvents?: boolean | undefined;
1555
- ripgrep?: {
1556
- command: string;
1557
- args?: string[] | undefined;
1558
- argv0?: string | undefined;
1559
- } | undefined;
1560
- mandatoryDenySearchDepth?: number | undefined;
1561
- allowPty?: boolean | undefined;
1562
- seccomp?: {
1563
- argv0?: string | undefined;
1564
- applyPath?: string | undefined;
1565
- } | undefined;
1566
- bwrapPath?: string | undefined;
1567
- socatPath?: string | undefined;
1568
- javaAgentJarPath?: string | undefined;
1569
- git?: {
1570
- safeDirectories: string[];
1571
- } | undefined;
1572
- }, {
1573
- network: {
1574
- allowedDomains: string[];
1575
- deniedDomains: string[];
1576
- deniedDomainReasons?: Record<string, string> | undefined;
1577
- strictAllowlist?: boolean | undefined;
1578
- deniedResolvedAddresses?: string[] | undefined;
1579
- allowUnixSockets?: string[] | undefined;
1580
- allowAllUnixSockets?: boolean | undefined;
1581
- allowLocalBinding?: boolean | undefined;
1582
- allowMachLookup?: string[] | undefined;
1583
- httpProxyPort?: number | undefined;
1584
- socksProxyPort?: number | undefined;
1585
- mitmProxy?: {
1586
- socketPath: string;
1587
- domains: string[];
1588
- } | undefined;
1589
- filterRequest?: FilterRequestCallback | undefined;
1590
- tlsTerminate?: {
1591
- caCertPath?: string | undefined;
1592
- caKeyPath?: string | undefined;
1593
- excludeDomains?: string[] | undefined;
1594
- extraCaCertPaths?: string[] | undefined;
1595
- } | undefined;
1596
- parentProxy?: {
1597
- http?: string | undefined;
1598
- https?: string | undefined;
1599
- noProxy?: string | undefined;
1600
- } | undefined;
1601
- };
1602
- filesystem: {
1603
- denyRead: string[];
1604
- allowWrite: string[];
1605
- denyWrite: string[];
1606
- disabled?: boolean | undefined;
1607
- allowRead?: string[] | undefined;
1608
- allowGitConfig?: boolean | undefined;
1609
- };
1610
- windows?: {
1611
- sandboxUser?: string | undefined;
1612
- sublayerGuid?: string | undefined;
1613
- wfpSublayerGuid?: string | undefined;
1614
- proxyPortRange?: [number, number] | undefined;
1615
- srtWin?: {
1616
- path: string;
1617
- } | undefined;
1618
- } | undefined;
1619
- credentials?: {
1620
- files?: {
1621
- mode: "deny" | "mask";
1622
- path: string;
1623
- extract?: string | undefined;
1624
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1625
- decode?: "jwt" | undefined;
1626
- maskClaims?: string[] | undefined;
1627
- maskDuplicates?: boolean | undefined;
1628
- injectHosts?: string[] | undefined;
1629
- }[] | undefined;
1630
- envVars?: {
1631
- mode: "deny" | "mask";
1632
- name: string;
1633
- extract?: string | undefined;
1634
- onExtractNoMatch?: "error" | "warn" | "deny" | undefined;
1635
- decode?: "jwt" | undefined;
1636
- maskClaims?: string[] | undefined;
1637
- injectHosts?: string[] | undefined;
1638
- }[] | undefined;
1639
- allowPlaintextInject?: boolean | undefined;
1640
- awsPairs?: {
1641
- accessKeyIdVar: string;
1642
- secretAccessKeyVar: string;
1643
- sessionTokenVar?: string | undefined;
1644
- }[] | undefined;
1645
- sigv4?: {
1646
- streaming?: "passthrough" | "deny" | undefined;
1647
- presigned?: "passthrough" | "deny" | undefined;
1648
- sigv4a?: "passthrough" | "deny" | undefined;
1649
- } | undefined;
1650
- } | undefined;
1651
- ignoreViolations?: Record<string, string[]> | undefined;
1652
- enableWeakerNestedSandbox?: boolean | undefined;
1653
- enableWeakerNetworkIsolation?: boolean | undefined;
1654
- allowAppleEvents?: boolean | undefined;
1655
- ripgrep?: {
1656
- command: string;
1657
- args?: string[] | undefined;
1658
- argv0?: string | undefined;
1659
- } | undefined;
1660
- mandatoryDenySearchDepth?: number | undefined;
1661
- allowPty?: boolean | undefined;
1662
- seccomp?: {
1663
- argv0?: string | undefined;
1664
- applyPath?: string | undefined;
1665
- } | undefined;
1666
- bwrapPath?: string | undefined;
1667
- socatPath?: string | undefined;
1668
- javaAgentJarPath?: string | undefined;
1669
- git?: {
1670
- safeDirectories?: string[] | undefined;
1671
- } | undefined;
1672
- }>;
1673
- export type MitmProxyConfig = z.infer<typeof MitmProxyConfigSchema>;
1674
- export type ParentProxyConfig = z.infer<typeof ParentProxyConfigSchema>;
1675
- export type NetworkConfig = z.infer<typeof NetworkConfigSchema>;
1676
- export type FilesystemConfig = z.infer<typeof FilesystemConfigSchema>;
1677
- export type CredentialMode = z.infer<typeof credentialModeSchema>;
1678
- export type CredentialFileConfig = z.infer<typeof CredentialFileConfigSchema>;
1679
- export type CredentialEnvVarConfig = z.infer<typeof CredentialEnvVarConfigSchema>;
1680
- export type CredentialsConfig = z.infer<typeof CredentialsConfigSchema>;
1681
- export type AwsPairConfig = z.infer<typeof AwsPairConfigSchema>;
1682
- export type Sigv4Config = z.infer<typeof Sigv4ConfigSchema>;
1683
- export type IgnoreViolationsConfig = z.infer<typeof IgnoreViolationsConfigSchema>;
1684
- export type RipgrepConfig = z.infer<typeof RipgrepConfigSchema>;
1685
- export type GitConfig = z.infer<typeof GitConfigSchema>;
1686
- export type SeccompConfig = z.infer<typeof SeccompConfigSchema>;
1687
- export type SrtWinConfig = z.infer<typeof SrtWinConfigSchema>;
1688
- export type WindowsConfig = z.infer<typeof WindowsConfigSchema>;
1689
- export type SandboxRuntimeConfig = z.infer<typeof SandboxRuntimeConfigSchema>;
1690
- export {};
1691
- //# sourceMappingURL=sandbox-config.d.ts.map