@kamilio/wire 0.1.9 → 0.1.10

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 (1453) hide show
  1. package/dist/adapters/root.d.ts +2 -1
  2. package/dist/adapters/root.d.ts.map +1 -1
  3. package/dist/adapters/root.js +12 -2
  4. package/dist/adapters/root.js.map +1 -1
  5. package/dist/cli.d.ts.map +1 -1
  6. package/dist/cli.js +5 -1
  7. package/dist/cli.js.map +1 -1
  8. package/dist/executable.d.ts.map +1 -1
  9. package/dist/executable.js +2 -1
  10. package/dist/executable.js.map +1 -1
  11. package/dist/mcp.d.ts +2 -3
  12. package/dist/mcp.d.ts.map +1 -1
  13. package/node_modules/provider-slack/dist/index.d.ts +1 -1
  14. package/node_modules/provider-slack/dist/index.d.ts.map +1 -1
  15. package/node_modules/provider-slack/dist/index.js +1 -1
  16. package/node_modules/provider-slack/dist/index.js.map +1 -1
  17. package/node_modules/provider-slack/dist/slack.d.ts +10 -0
  18. package/node_modules/provider-slack/dist/slack.d.ts.map +1 -1
  19. package/node_modules/provider-slack/dist/slack.js +395 -22
  20. package/node_modules/provider-slack/dist/slack.js.map +1 -1
  21. package/node_modules/provider-slack/package.json +10 -4
  22. package/node_modules/provider-slack/src/index.ts +1 -1
  23. package/node_modules/provider-slack/src/slack.ts +314 -20
  24. package/node_modules/toolcraft/LICENSE +21 -0
  25. package/node_modules/toolcraft/README.md +268 -23
  26. package/node_modules/toolcraft/composition.json +165 -0
  27. package/node_modules/toolcraft/dist/agent-defs.d.ts +1 -0
  28. package/node_modules/toolcraft/dist/agent-defs.js +1 -0
  29. package/node_modules/toolcraft/dist/agent-mcp-config.d.ts +1 -0
  30. package/node_modules/toolcraft/dist/agent-mcp-config.js +1 -0
  31. package/node_modules/toolcraft/dist/applied-default.d.ts +3 -0
  32. package/node_modules/toolcraft/dist/applied-default.js +16 -0
  33. package/node_modules/toolcraft/dist/auth-store.d.ts +1 -0
  34. package/node_modules/toolcraft/dist/auth-store.js +1 -0
  35. package/node_modules/toolcraft/dist/cli.compile-check.js +20 -2
  36. package/node_modules/toolcraft/dist/cli.d.ts +97 -4
  37. package/node_modules/toolcraft/dist/cli.js +1322 -412
  38. package/node_modules/toolcraft/dist/composition.d.ts +15 -0
  39. package/node_modules/toolcraft/dist/composition.js +10 -0
  40. package/node_modules/toolcraft/dist/composition.json +165 -0
  41. package/node_modules/toolcraft/dist/config-mutations.d.ts +1 -0
  42. package/node_modules/toolcraft/dist/config-mutations.js +1 -0
  43. package/node_modules/toolcraft/dist/design/help-formatter.d.ts +2 -2
  44. package/node_modules/toolcraft/dist/design/help-formatter.js +1 -1
  45. package/node_modules/toolcraft/dist/design/render-markdown-plaintext.d.ts +2 -0
  46. package/node_modules/toolcraft/dist/design/render-markdown-plaintext.js +1 -0
  47. package/node_modules/toolcraft/dist/design/render-markdown.d.ts +2 -0
  48. package/node_modules/toolcraft/dist/design/render-markdown.js +1 -0
  49. package/node_modules/toolcraft/dist/discriminator.d.ts +9 -0
  50. package/node_modules/toolcraft/dist/discriminator.js +32 -0
  51. package/node_modules/toolcraft/dist/error-report.d.ts +12 -17
  52. package/node_modules/toolcraft/dist/error-report.js +25 -16
  53. package/node_modules/toolcraft/dist/file-change-renderer.d.ts +9 -0
  54. package/node_modules/toolcraft/dist/file-change-renderer.js +10 -0
  55. package/node_modules/toolcraft/dist/frontmatter.d.ts +1 -0
  56. package/node_modules/toolcraft/dist/frontmatter.js +1 -0
  57. package/node_modules/toolcraft/dist/http-hosted-oauth.compile-check.js +60 -0
  58. package/node_modules/toolcraft/dist/http-hosted-oauth.d.ts +124 -0
  59. package/node_modules/toolcraft/dist/http-hosted-oauth.js +473 -0
  60. package/node_modules/toolcraft/dist/http.compile-check.js +31 -0
  61. package/node_modules/toolcraft/dist/http.d.ts +31 -0
  62. package/node_modules/toolcraft/dist/http.js +161 -0
  63. package/node_modules/toolcraft/dist/human-in-loop/approval-tasks.d.ts +8 -2
  64. package/node_modules/toolcraft/dist/human-in-loop/approval-tasks.js +33 -19
  65. package/node_modules/toolcraft/dist/human-in-loop/approvals-commands.d.ts +3 -3
  66. package/node_modules/toolcraft/dist/human-in-loop/approvals-commands.js +27 -33
  67. package/node_modules/toolcraft/dist/human-in-loop/config.js +3 -0
  68. package/node_modules/toolcraft/dist/human-in-loop/gate.d.ts +7 -3
  69. package/node_modules/toolcraft/dist/human-in-loop/gate.js +33 -31
  70. package/node_modules/toolcraft/dist/human-in-loop/index.d.ts +4 -1
  71. package/node_modules/toolcraft/dist/human-in-loop/index.js +2 -0
  72. package/node_modules/toolcraft/dist/human-in-loop/plan-hash.d.ts +13 -0
  73. package/node_modules/toolcraft/dist/human-in-loop/plan-hash.js +78 -0
  74. package/node_modules/toolcraft/dist/human-in-loop/runner.d.ts +1 -1
  75. package/node_modules/toolcraft/dist/human-in-loop/runner.js +45 -32
  76. package/node_modules/toolcraft/dist/human-in-loop/runtime-options.d.ts +19 -0
  77. package/node_modules/toolcraft/dist/human-in-loop/runtime.d.ts +2 -0
  78. package/node_modules/toolcraft/dist/human-in-loop/runtime.js +14 -0
  79. package/node_modules/toolcraft/dist/human-in-loop/spawn.d.ts +2 -2
  80. package/node_modules/toolcraft/dist/human-in-loop/types.d.ts +14 -14
  81. package/node_modules/toolcraft/dist/human-in-loop/wiring.d.ts +11 -0
  82. package/node_modules/toolcraft/dist/human-in-loop/wiring.js +36 -0
  83. package/node_modules/toolcraft/dist/index.compile-check.js +50 -1
  84. package/node_modules/toolcraft/dist/index.d.ts +1 -210
  85. package/node_modules/toolcraft/dist/index.js +1 -475
  86. package/node_modules/toolcraft/dist/json-schema-converter.d.ts +14 -6
  87. package/node_modules/toolcraft/dist/json-schema-converter.js +150 -20
  88. package/node_modules/toolcraft/dist/mcp-proxy-metadata.d.ts +2 -0
  89. package/node_modules/toolcraft/dist/mcp-proxy-metadata.js +13 -0
  90. package/node_modules/toolcraft/dist/mcp-proxy.d.ts +2 -1
  91. package/node_modules/toolcraft/dist/mcp-proxy.js +69 -64
  92. package/node_modules/toolcraft/dist/mcp-result.d.ts +3 -0
  93. package/node_modules/toolcraft/dist/mcp-result.js +10 -0
  94. package/node_modules/toolcraft/dist/mcp.compile-check.js +4 -1
  95. package/node_modules/toolcraft/dist/mcp.d.ts +13 -3
  96. package/node_modules/toolcraft/dist/mcp.js +391 -217
  97. package/node_modules/toolcraft/dist/node-require-shim.js +4 -0
  98. package/node_modules/toolcraft/dist/package-metadata.js +9 -2
  99. package/node_modules/toolcraft/dist/process-runner.d.ts +1 -0
  100. package/node_modules/toolcraft/dist/process-runner.js +1 -0
  101. package/node_modules/toolcraft/dist/project-root.d.ts +1 -0
  102. package/node_modules/toolcraft/dist/project-root.js +15 -0
  103. package/node_modules/toolcraft/dist/redaction.js +26 -17
  104. package/node_modules/toolcraft/dist/renderer.d.ts +1 -1
  105. package/node_modules/toolcraft/dist/renderer.js +43 -42
  106. package/node_modules/toolcraft/dist/runtime/io.d.ts +5 -0
  107. package/node_modules/toolcraft/dist/runtime/io.js +59 -0
  108. package/node_modules/toolcraft/dist/runtime-platform.d.ts +2 -0
  109. package/node_modules/toolcraft/dist/runtime-platform.js +2 -0
  110. package/node_modules/toolcraft/dist/runtime-platform.workerd.d.ts +3 -0
  111. package/node_modules/toolcraft/dist/runtime-platform.workerd.js +10 -0
  112. package/node_modules/toolcraft/dist/runtime.d.ts +266 -0
  113. package/node_modules/toolcraft/dist/runtime.js +576 -0
  114. package/node_modules/toolcraft/dist/safe-bash-capabilities.compile-check.js +11 -0
  115. package/node_modules/toolcraft/dist/safe-bash.compile-check.js +16 -0
  116. package/node_modules/toolcraft/dist/safe-bash.d.ts +75 -0
  117. package/node_modules/toolcraft/dist/safe-bash.js +226 -0
  118. package/node_modules/toolcraft/dist/schema-member-names.d.ts +2 -0
  119. package/node_modules/toolcraft/dist/schema-member-names.js +39 -0
  120. package/node_modules/toolcraft/dist/schema-scope.d.ts +1 -0
  121. package/node_modules/toolcraft/dist/schema-scope.js +29 -16
  122. package/node_modules/toolcraft/dist/schema-standard.compile-check.js +4 -0
  123. package/node_modules/toolcraft/dist/schema.d.ts +2 -0
  124. package/node_modules/toolcraft/dist/schema.js +1 -0
  125. package/node_modules/toolcraft/dist/sdk.compile-check.js +31 -1
  126. package/node_modules/toolcraft/dist/sdk.d.ts +22 -13
  127. package/node_modules/toolcraft/dist/sdk.js +237 -108
  128. package/node_modules/toolcraft/dist/stream.d.ts +19 -0
  129. package/node_modules/toolcraft/dist/stream.js +93 -0
  130. package/node_modules/toolcraft/dist/testing/diagnostic-value.d.ts +1 -0
  131. package/node_modules/toolcraft/dist/testing/diagnostic-value.js +57 -0
  132. package/node_modules/toolcraft/dist/testing/fakes.d.ts +20 -0
  133. package/node_modules/toolcraft/dist/testing/fakes.js +84 -0
  134. package/node_modules/toolcraft/dist/testing/fixtures.d.ts +8 -0
  135. package/node_modules/toolcraft/dist/testing/fixtures.js +248 -0
  136. package/node_modules/toolcraft/dist/testing/harness.d.ts +97 -0
  137. package/node_modules/toolcraft/dist/testing/harness.js +490 -0
  138. package/node_modules/toolcraft/dist/testing/hosted-oauth-storage.d.ts +6 -0
  139. package/node_modules/toolcraft/dist/testing/hosted-oauth-storage.js +140 -0
  140. package/node_modules/toolcraft/dist/testing/index.d.ts +5 -0
  141. package/node_modules/toolcraft/dist/testing/index.js +4 -0
  142. package/node_modules/toolcraft/dist/testing/memory-fs.d.ts +11 -0
  143. package/node_modules/toolcraft/dist/testing/memory-fs.js +102 -0
  144. package/node_modules/toolcraft/dist/testing/parity.d.ts +25 -0
  145. package/node_modules/toolcraft/dist/testing/parity.js +428 -0
  146. package/node_modules/toolcraft/dist/testing/render-capture.d.ts +6 -0
  147. package/node_modules/toolcraft/dist/testing/render-capture.js +55 -0
  148. package/node_modules/toolcraft/dist/tiny-mcp-client.d.ts +1 -0
  149. package/node_modules/toolcraft/dist/tiny-mcp-client.js +1 -0
  150. package/node_modules/toolcraft/dist/union-validation.d.ts +5 -0
  151. package/node_modules/toolcraft/dist/union-validation.js +36 -0
  152. package/node_modules/toolcraft/dist/user-error.d.ts +8 -0
  153. package/node_modules/toolcraft/dist/user-error.js +10 -0
  154. package/node_modules/toolcraft/node_modules/@noble/hashes/LICENSE +21 -0
  155. package/node_modules/toolcraft/node_modules/@noble/hashes/README.md +478 -0
  156. package/node_modules/toolcraft/node_modules/@noble/hashes/_blake.d.ts +20 -0
  157. package/node_modules/toolcraft/node_modules/@noble/hashes/_blake.js +59 -0
  158. package/node_modules/toolcraft/node_modules/@noble/hashes/_md.d.ts +95 -0
  159. package/node_modules/toolcraft/node_modules/@noble/hashes/_md.js +209 -0
  160. package/node_modules/toolcraft/node_modules/@noble/hashes/_u64.d.ts +36 -0
  161. package/node_modules/toolcraft/node_modules/@noble/hashes/_u64.js +77 -0
  162. package/node_modules/toolcraft/node_modules/@noble/hashes/argon2.d.ts +148 -0
  163. package/node_modules/toolcraft/node_modules/@noble/hashes/argon2.js +577 -0
  164. package/node_modules/toolcraft/node_modules/@noble/hashes/blake1.d.ts +162 -0
  165. package/node_modules/toolcraft/node_modules/@noble/hashes/blake1.js +630 -0
  166. package/node_modules/toolcraft/node_modules/@noble/hashes/blake2.d.ts +203 -0
  167. package/node_modules/toolcraft/node_modules/@noble/hashes/blake2.js +573 -0
  168. package/node_modules/toolcraft/node_modules/@noble/hashes/blake3.d.ts +68 -0
  169. package/node_modules/toolcraft/node_modules/@noble/hashes/blake3.js +310 -0
  170. package/node_modules/toolcraft/node_modules/@noble/hashes/eskdf.d.ts +91 -0
  171. package/node_modules/toolcraft/node_modules/@noble/hashes/eskdf.js +225 -0
  172. package/node_modules/toolcraft/node_modules/@noble/hashes/hkdf.d.ts +70 -0
  173. package/node_modules/toolcraft/node_modules/@noble/hashes/hkdf.js +152 -0
  174. package/node_modules/toolcraft/node_modules/@noble/hashes/hmac.d.ts +50 -0
  175. package/node_modules/toolcraft/node_modules/@noble/hashes/hmac.js +93 -0
  176. package/node_modules/toolcraft/node_modules/@noble/hashes/index.js +34 -0
  177. package/node_modules/toolcraft/node_modules/@noble/hashes/legacy.d.ts +107 -0
  178. package/node_modules/toolcraft/node_modules/@noble/hashes/legacy.js +348 -0
  179. package/node_modules/toolcraft/node_modules/@noble/hashes/package.json +91 -0
  180. package/node_modules/toolcraft/node_modules/@noble/hashes/pbkdf2.d.ts +66 -0
  181. package/node_modules/toolcraft/node_modules/@noble/hashes/pbkdf2.js +176 -0
  182. package/node_modules/toolcraft/node_modules/@noble/hashes/scrypt.d.ts +98 -0
  183. package/node_modules/toolcraft/node_modules/@noble/hashes/scrypt.js +304 -0
  184. package/node_modules/toolcraft/node_modules/@noble/hashes/sha2.d.ts +176 -0
  185. package/node_modules/toolcraft/node_modules/@noble/hashes/sha2.js +446 -0
  186. package/node_modules/toolcraft/node_modules/@noble/hashes/sha3-addons.d.ts +533 -0
  187. package/node_modules/toolcraft/node_modules/@noble/hashes/sha3-addons.js +973 -0
  188. package/node_modules/toolcraft/node_modules/@noble/hashes/sha3.d.ts +208 -0
  189. package/node_modules/toolcraft/node_modules/@noble/hashes/sha3.js +475 -0
  190. package/node_modules/toolcraft/node_modules/@noble/hashes/src/_blake.ts +67 -0
  191. package/node_modules/toolcraft/node_modules/@noble/hashes/src/_md.ts +227 -0
  192. package/node_modules/toolcraft/node_modules/@noble/hashes/src/_u64.ts +111 -0
  193. package/node_modules/toolcraft/node_modules/@noble/hashes/src/argon2.ts +693 -0
  194. package/node_modules/toolcraft/node_modules/@noble/hashes/src/blake1.ts +677 -0
  195. package/node_modules/toolcraft/node_modules/@noble/hashes/src/blake2.ts +648 -0
  196. package/node_modules/toolcraft/node_modules/@noble/hashes/src/blake3.ts +344 -0
  197. package/node_modules/toolcraft/node_modules/@noble/hashes/src/eskdf.ts +265 -0
  198. package/node_modules/toolcraft/node_modules/@noble/hashes/src/hkdf.ts +161 -0
  199. package/node_modules/toolcraft/node_modules/@noble/hashes/src/hmac.ts +130 -0
  200. package/node_modules/toolcraft/node_modules/@noble/hashes/src/index.ts +33 -0
  201. package/node_modules/toolcraft/node_modules/@noble/hashes/src/legacy.ts +361 -0
  202. package/node_modules/toolcraft/node_modules/@noble/hashes/src/pbkdf2.ts +219 -0
  203. package/node_modules/toolcraft/node_modules/@noble/hashes/src/scrypt.ts +375 -0
  204. package/node_modules/toolcraft/node_modules/@noble/hashes/src/sha2.ts +486 -0
  205. package/node_modules/toolcraft/node_modules/@noble/hashes/src/sha3-addons.ts +1157 -0
  206. package/node_modules/toolcraft/node_modules/@noble/hashes/src/sha3.ts +525 -0
  207. package/node_modules/toolcraft/node_modules/@noble/hashes/src/utils.ts +978 -0
  208. package/node_modules/toolcraft/node_modules/@noble/hashes/src/webcrypto.ts +283 -0
  209. package/node_modules/toolcraft/node_modules/@noble/hashes/utils.d.ts +560 -0
  210. package/node_modules/toolcraft/node_modules/@noble/hashes/utils.js +687 -0
  211. package/node_modules/toolcraft/node_modules/@noble/hashes/webcrypto.d.ts +121 -0
  212. package/node_modules/toolcraft/node_modules/@noble/hashes/webcrypto.js +228 -0
  213. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/LICENSE +21 -0
  214. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/README.md +15 -2
  215. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/claude-code.js +2 -1
  216. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/claude-desktop.js +1 -0
  217. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/codex.js +2 -1
  218. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/cursor.js +1 -0
  219. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/gemini-cli.js +2 -1
  220. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/goose.js +1 -0
  221. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/index.d.ts +1 -1
  222. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/index.js +1 -1
  223. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/opencode.js +2 -1
  224. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/{kimi.d.ts → pi.d.ts} +1 -1
  225. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/pi.js +15 -0
  226. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/poe-agent.js +1 -0
  227. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/capabilities.d.ts +14 -0
  228. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/capabilities.js +63 -0
  229. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/index.d.ts +3 -2
  230. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/index.js +2 -1
  231. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/registry.js +5 -2
  232. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/types.d.ts +8 -1
  233. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/package.json +11 -5
  234. package/node_modules/toolcraft/node_modules/@poe-code/agent-human-in-loop/LICENSE +21 -0
  235. package/node_modules/toolcraft/node_modules/@poe-code/agent-human-in-loop/README.md +12 -2
  236. package/node_modules/toolcraft/node_modules/@poe-code/agent-human-in-loop/package.json +10 -4
  237. package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/LICENSE +21 -0
  238. package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/README.md +7 -7
  239. package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/dist/apply.js +23 -9
  240. package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/dist/configs.js +0 -6
  241. package/node_modules/toolcraft/node_modules/@poe-code/agent-mcp-config/package.json +9 -6
  242. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/LICENSE +21 -0
  243. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/README.md +17 -8
  244. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/execution/apply-mutation.js +17 -19
  245. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/execution/path-utils.d.ts +3 -3
  246. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/execution/path-utils.js +4 -4
  247. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/formats/json.js +1 -3
  248. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/formats/toml.js +1 -3
  249. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/formats/yaml.js +1 -3
  250. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/template/render.js +1 -1
  251. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/testing/mock-fs.d.ts +2 -2
  252. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/testing/mock-fs.js +3 -6
  253. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/types.d.ts +5 -1
  254. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/dist/types.js +1 -1
  255. package/node_modules/toolcraft/node_modules/@poe-code/config-mutations/package.json +9 -8
  256. package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/LICENSE +21 -0
  257. package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/README.md +7 -2
  258. package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/dist/index.d.ts +1 -1
  259. package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/dist/index.js +1 -1
  260. package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/dist/parse.d.ts +9 -0
  261. package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/dist/parse.js +16 -0
  262. package/node_modules/toolcraft/node_modules/@poe-code/frontmatter/package.json +7 -5
  263. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/LICENSE +21 -0
  264. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/README.md +5 -2
  265. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/docker/build-context.js +2 -3
  266. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/docker/docker-execution-env.js +66 -34
  267. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/host/host-execution-env.js +1 -0
  268. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/transfer-filesystem.d.ts +1 -0
  269. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/transfer-filesystem.js +1 -0
  270. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/transfer-filesystem.workerd.d.ts +2 -0
  271. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/transfer-filesystem.workerd.js +1 -0
  272. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/types.d.ts +12 -5
  273. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/workspace-transfer.d.ts +6 -5
  274. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/dist/workspace-transfer.js +67 -29
  275. package/node_modules/toolcraft/node_modules/@poe-code/process-runner/package.json +22 -7
  276. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/LICENSE +21 -0
  277. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/PROVENANCE.json +428 -0
  278. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/README.md +453 -0
  279. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/confinement.d.ts +3 -0
  280. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/confinement.js +171 -0
  281. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/filesystem.d.ts +93 -0
  282. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/filesystem.js +453 -0
  283. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/index.d.ts +7 -0
  284. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/index.js +19 -0
  285. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/stats.d.ts +4 -0
  286. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/stats.js +37 -0
  287. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/types.d.ts +81 -0
  288. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/values.d.ts +6 -0
  289. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/bridge/values.js +65 -0
  290. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/memory.d.ts +3 -0
  291. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/memory.js +7 -0
  292. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/real.d.ts +5 -0
  293. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/real.js +16 -0
  294. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/registry.d.ts +2 -0
  295. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config/registry.js +15 -0
  296. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.d.ts +15 -0
  297. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.js +46 -0
  298. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.node.d.ts +2 -0
  299. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.node.js +11 -0
  300. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.portable.d.ts +3 -0
  301. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/config.portable.js +9 -0
  302. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/abort.d.ts +5 -0
  303. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/abort.js +34 -0
  304. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/cleanup.d.ts +1 -0
  305. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/cleanup.js +9 -0
  306. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/descriptor.d.ts +38 -0
  307. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/descriptor.js +1 -0
  308. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/errors.d.ts +53 -0
  309. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/errors.js +99 -0
  310. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/filesystem.d.ts +411 -0
  311. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/filesystem.js +1 -0
  312. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/index.d.ts +6 -0
  313. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/index.js +6 -0
  314. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/io.d.ts +12 -0
  315. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/io.js +321 -0
  316. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/object.d.ts +134 -0
  317. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/object.js +97 -0
  318. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/path.d.ts +3 -0
  319. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/path.js +2 -0
  320. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/portable-path.d.ts +21 -0
  321. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/portable-path.js +78 -0
  322. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/virtual-path.d.ts +15 -0
  323. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/contracts/virtual-path.js +162 -0
  324. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/core.d.ts +21 -0
  325. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/core.js +19 -0
  326. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/capabilities.d.ts +10 -0
  327. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/capabilities.js +223 -0
  328. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/conditional-chmod.d.ts +7 -0
  329. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/conditional-chmod.js +19 -0
  330. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/descriptor.d.ts +21 -0
  331. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/descriptor.js +279 -0
  332. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/index.d.ts +62 -0
  333. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/index.js +926 -0
  334. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/path.d.ts +7 -0
  335. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/path.js +256 -0
  336. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/plain-path.d.ts +2 -0
  337. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/plain-path.js +3 -0
  338. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/stream.d.ts +6 -0
  339. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/devices/stream.js +136 -0
  340. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/directory-admission.d.ts +3 -0
  341. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/directory-admission.js +14 -0
  342. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/atomic-view.d.ts +12 -0
  343. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/atomic-view.js +13 -0
  344. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/index.d.ts +190 -0
  345. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/index.js +3862 -0
  346. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/ledger.d.ts +27 -0
  347. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/ledger.js +90 -0
  348. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/limits.d.ts +13 -0
  349. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/limits.js +26 -0
  350. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/missing-target.d.ts +15 -0
  351. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/memory/missing-target.js +144 -0
  352. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/comparison.d.ts +19 -0
  353. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/comparison.js +118 -0
  354. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/identity.d.ts +6 -0
  355. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/identity.js +29 -0
  356. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/index.d.ts +79 -0
  357. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/mount/index.js +1490 -0
  358. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/object-authority.d.ts +27 -0
  359. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/object-authority.js +287 -0
  360. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/object-publication/index.d.ts +46 -0
  361. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/object-publication/index.js +536 -0
  362. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/overlay/index.d.ts +91 -0
  363. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/overlay/index.js +1305 -0
  364. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/overlay/memory-publication.d.ts +43 -0
  365. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/overlay/memory-publication.js +583 -0
  366. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/path-namespace.d.ts +4 -0
  367. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/path-namespace.js +63 -0
  368. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/quota/index.d.ts +12 -0
  369. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/quota/index.js +525 -0
  370. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/read-file-stream.d.ts +7 -0
  371. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/read-file-stream.js +103 -0
  372. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/readonly/index.d.ts +38 -0
  373. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/readonly/index.js +218 -0
  374. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/real/allocation.d.ts +1 -0
  375. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/real/allocation.js +8 -0
  376. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/real/index.d.ts +109 -0
  377. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/real/index.js +1393 -0
  378. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/authority.d.ts +7 -0
  379. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/authority.js +38 -0
  380. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/filesystem.d.ts +131 -0
  381. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/filesystem.js +1176 -0
  382. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/bytes.d.ts +1 -0
  383. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/bytes.js +9 -0
  384. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/index.d.ts +2 -0
  385. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/index.js +1 -0
  386. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-fetch.d.ts +15 -0
  387. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-fetch.js +74 -0
  388. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-node.d.ts +4 -0
  389. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-node.js +111 -0
  390. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request.d.ts +17 -0
  391. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request.js +89 -0
  392. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/signature.d.ts +20 -0
  393. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/signature.js +76 -0
  394. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/transport.d.ts +3 -0
  395. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/transport.js +478 -0
  396. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/types.d.ts +30 -0
  397. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/types.js +1 -0
  398. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/xml.d.ts +14 -0
  399. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/http/xml.js +192 -0
  400. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/index.d.ts +8 -0
  401. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/index.js +4 -0
  402. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/key-order.d.ts +2 -0
  403. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/key-order.js +11 -0
  404. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/manifest-admission.d.ts +8 -0
  405. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/manifest-admission.js +167 -0
  406. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/mock.d.ts +48 -0
  407. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/mock.js +249 -0
  408. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/namespace.d.ts +13 -0
  409. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/namespace.js +400 -0
  410. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/registry.d.ts +10 -0
  411. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/registry.js +73 -0
  412. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/transport.d.ts +103 -0
  413. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/s3/transport.js +28 -0
  414. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/scoped.d.ts +20 -0
  415. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/scoped.js +668 -0
  416. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/staging-ancestry.d.ts +8 -0
  417. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/staging-ancestry.js +115 -0
  418. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/staging-cleanup.d.ts +5 -0
  419. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/staging-cleanup.js +63 -0
  420. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/index.d.ts +2 -0
  421. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/index.js +1 -0
  422. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/resource-id.d.ts +18 -0
  423. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/resource-id.js +109 -0
  424. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/webdav.d.ts +141 -0
  425. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/webdav.js +1377 -0
  426. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/xml.d.ts +15 -0
  427. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/fs/webdav/xml.js +59 -0
  428. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/index.d.ts +26 -0
  429. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/index.js +22 -0
  430. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/native/fs-seek/linux-x64-glibc.node +0 -0
  431. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/native/fs-seek/loader.d.ts +5 -0
  432. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/native/fs-seek/loader.mjs +120 -0
  433. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/native/fs-seek/manifest.json +46 -0
  434. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/filesystem.d.ts +19 -0
  435. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/filesystem.js +30 -0
  436. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/host.d.ts +3 -0
  437. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/host.js +78 -0
  438. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/index.d.ts +3 -0
  439. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/index.js +2 -0
  440. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/native-seek-unavailable.d.ts +1 -0
  441. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/native-seek-unavailable.js +5 -0
  442. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/native-seek.d.ts +3 -0
  443. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/native-seek.js +54 -0
  444. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/stats.d.ts +1 -0
  445. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/stats.js +1 -0
  446. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/values.d.ts +1 -0
  447. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node/values.js +1 -0
  448. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node-host.d.ts +1 -0
  449. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node-host.js +1 -0
  450. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node-unavailable.d.ts +1 -0
  451. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/node-unavailable.js +1 -0
  452. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/package.json +29 -0
  453. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/browser-path.d.ts +1 -0
  454. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/browser-path.js +1 -0
  455. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/browser.d.ts +26 -0
  456. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/browser.js +58 -0
  457. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/node-path.d.ts +1 -0
  458. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/node-path.js +1 -0
  459. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/node.d.ts +26 -0
  460. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/node.js +64 -0
  461. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/transport-budget.d.ts +9 -0
  462. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/platform/transport-budget.js +17 -0
  463. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/directory.d.ts +9 -0
  464. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/directory.js +38 -0
  465. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/emscripten.d.ts +15 -0
  466. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/emscripten.js +372 -0
  467. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/filesystem.d.ts +51 -0
  468. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/filesystem.js +258 -0
  469. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/flags.d.ts +3 -0
  470. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/flags.js +14 -0
  471. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/index.d.ts +9 -0
  472. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/index.js +5 -0
  473. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/native.d.ts +18 -0
  474. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/native.js +477 -0
  475. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/request.d.ts +2 -0
  476. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/request.js +62 -0
  477. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/stat.d.ts +8 -0
  478. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/python/stat.js +34 -0
  479. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/runtime-core.d.ts +28 -0
  480. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/runtime-core.js +58 -0
  481. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/storage.d.ts +81 -0
  482. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/storage.js +430 -0
  483. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/atomic-filesystem.d.ts +16 -0
  484. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/atomic-filesystem.js +496 -0
  485. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-io-control.d.ts +23 -0
  486. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-io-control.js +39 -0
  487. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-io-metrics.d.ts +31 -0
  488. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-io-metrics.js +144 -0
  489. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-publication.d.ts +19 -0
  490. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/testing/object-publication.js +209 -0
  491. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/xml.d.ts +1 -0
  492. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/dist/xml.js +1 -0
  493. package/node_modules/toolcraft/node_modules/@poe-code/safe-fs/package.json +196 -0
  494. package/node_modules/toolcraft/node_modules/@poe-code/task-list/LICENSE +21 -0
  495. package/node_modules/toolcraft/node_modules/@poe-code/task-list/README.md +28 -3
  496. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/gh-issues-client.d.ts +1 -1
  497. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/gh-issues-client.js +15 -4
  498. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/markdown-dir.js +3 -4
  499. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/utils.js +36 -43
  500. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/backends/yaml-file.js +2 -5
  501. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/default-host.d.ts +2 -0
  502. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/default-host.js +2 -0
  503. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/default-host.workerd.d.ts +4 -0
  504. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/default-host.workerd.js +6 -0
  505. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/filesystem.d.ts +3 -0
  506. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/filesystem.js +32 -0
  507. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/move.js +3 -3
  508. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/open.js +2 -5
  509. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/paths.d.ts +12 -0
  510. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/paths.js +7 -0
  511. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/schema/ids.d.ts +2 -0
  512. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/schema/ids.js +6 -0
  513. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/types.d.ts +7 -5
  514. package/node_modules/toolcraft/node_modules/@poe-code/task-list/package.json +16 -5
  515. package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/LICENSE +21 -0
  516. package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/README.md +12 -0
  517. package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/dist/index.d.ts +2 -0
  518. package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/dist/index.js +20 -0
  519. package/node_modules/toolcraft/node_modules/@poe-code/terminal-text/package.json +22 -0
  520. package/node_modules/toolcraft/node_modules/@poe-code/user-error/README.md +56 -0
  521. package/node_modules/toolcraft/node_modules/@poe-code/user-error/dist/index.d.ts +17 -0
  522. package/node_modules/toolcraft/node_modules/@poe-code/user-error/dist/index.js +21 -0
  523. package/node_modules/toolcraft/node_modules/{mcp-oauth → @poe-code/user-error}/package.json +4 -10
  524. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/LICENSE +21 -0
  525. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/README.md +139 -0
  526. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/attributes.d.ts +69 -0
  527. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/attributes.js +62 -0
  528. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/characters.d.ts +3 -0
  529. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/characters.js +53 -0
  530. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/errors.d.ts +4 -0
  531. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/errors.js +7 -0
  532. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/frames.d.ts +67 -0
  533. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/frames.js +87 -0
  534. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/index.d.ts +101 -0
  535. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/index.js +945 -0
  536. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/source.d.ts +28 -0
  537. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/source.js +71 -0
  538. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/stream.d.ts +32 -0
  539. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/dist/stream.js +179 -0
  540. package/node_modules/toolcraft/node_modules/@poe-code/xml-ast/package.json +25 -0
  541. package/node_modules/toolcraft/node_modules/auth-store/LICENSE +21 -0
  542. package/node_modules/toolcraft/node_modules/auth-store/README.md +77 -0
  543. package/node_modules/toolcraft/node_modules/auth-store/dist/create-secret-store.d.ts +3 -1
  544. package/node_modules/toolcraft/node_modules/auth-store/dist/create-secret-store.js +3 -2
  545. package/node_modules/toolcraft/node_modules/auth-store/dist/encrypted-file-store.d.ts +6 -0
  546. package/node_modules/toolcraft/node_modules/auth-store/dist/encrypted-file-store.js +16 -0
  547. package/node_modules/toolcraft/node_modules/auth-store/dist/index.browser.d.ts +4 -0
  548. package/node_modules/toolcraft/node_modules/auth-store/dist/index.browser.js +2 -0
  549. package/node_modules/toolcraft/node_modules/auth-store/dist/index.d.ts +2 -1
  550. package/node_modules/toolcraft/node_modules/auth-store/dist/index.js +1 -1
  551. package/node_modules/toolcraft/node_modules/auth-store/dist/keychain-store.d.ts +8 -0
  552. package/node_modules/toolcraft/node_modules/auth-store/dist/keychain-store.js +13 -0
  553. package/node_modules/toolcraft/node_modules/auth-store/dist/provider-store.d.ts +1 -1
  554. package/node_modules/toolcraft/node_modules/auth-store/dist/provider-store.js +3 -0
  555. package/node_modules/toolcraft/node_modules/auth-store/dist/safe-fs-secret-store.d.ts +21 -0
  556. package/node_modules/toolcraft/node_modules/auth-store/dist/safe-fs-secret-store.js +119 -0
  557. package/node_modules/toolcraft/node_modules/auth-store/dist/secret-store.d.ts +12 -0
  558. package/node_modules/toolcraft/node_modules/auth-store/dist/secret-store.js +1 -0
  559. package/node_modules/toolcraft/node_modules/auth-store/dist/transaction-lock.d.ts +22 -0
  560. package/node_modules/toolcraft/node_modules/auth-store/dist/transaction-lock.js +153 -0
  561. package/node_modules/toolcraft/node_modules/auth-store/dist/types.d.ts +2 -7
  562. package/node_modules/toolcraft/node_modules/auth-store/package.json +21 -6
  563. package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
  564. package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/index.js +111 -0
  565. package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
  566. package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/types.js +2 -0
  567. package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
  568. package/node_modules/toolcraft/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
  569. package/node_modules/toolcraft/node_modules/fast-string-truncated-width/license +21 -0
  570. package/node_modules/toolcraft/node_modules/fast-string-truncated-width/package.json +35 -0
  571. package/node_modules/toolcraft/node_modules/fast-string-truncated-width/readme.md +59 -0
  572. package/node_modules/toolcraft/node_modules/fast-string-width/dist/index.d.ts +4 -0
  573. package/node_modules/toolcraft/node_modules/fast-string-width/dist/index.js +14 -0
  574. package/node_modules/toolcraft/node_modules/fast-string-width/license +21 -0
  575. package/node_modules/toolcraft/node_modules/fast-string-width/package.json +34 -0
  576. package/node_modules/toolcraft/node_modules/fast-string-width/readme.md +42 -0
  577. package/node_modules/toolcraft/node_modules/fast-wrap-ansi/LICENSE +23 -0
  578. package/node_modules/toolcraft/node_modules/fast-wrap-ansi/README.md +26 -0
  579. package/node_modules/toolcraft/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
  580. package/node_modules/toolcraft/node_modules/fast-wrap-ansi/lib/main.js +218 -0
  581. package/node_modules/toolcraft/node_modules/fast-wrap-ansi/package.json +51 -0
  582. package/node_modules/toolcraft/node_modules/ignore/LICENSE-MIT +21 -0
  583. package/node_modules/toolcraft/node_modules/ignore/README.md +412 -0
  584. package/node_modules/toolcraft/node_modules/ignore/index.d.ts +61 -0
  585. package/node_modules/toolcraft/node_modules/ignore/index.js +636 -0
  586. package/node_modules/toolcraft/node_modules/ignore/legacy.js +559 -0
  587. package/node_modules/toolcraft/node_modules/ignore/package.json +74 -0
  588. package/node_modules/toolcraft/node_modules/jose/LICENSE.md +21 -0
  589. package/node_modules/toolcraft/node_modules/jose/README.md +153 -0
  590. package/node_modules/toolcraft/node_modules/jose/dist/types/index.d.ts +55 -0
  591. package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +31 -0
  592. package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +65 -0
  593. package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +31 -0
  594. package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +83 -0
  595. package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +38 -0
  596. package/node_modules/toolcraft/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +74 -0
  597. package/node_modules/toolcraft/node_modules/jose/dist/types/jwk/embedded.d.ts +17 -0
  598. package/node_modules/toolcraft/node_modules/jose/dist/types/jwk/thumbprint.d.ts +32 -0
  599. package/node_modules/toolcraft/node_modules/jose/dist/types/jwks/local.d.ts +29 -0
  600. package/node_modules/toolcraft/node_modules/jose/dist/types/jwks/remote.d.ts +237 -0
  601. package/node_modules/toolcraft/node_modules/jose/dist/types/jws/compact/sign.d.ts +36 -0
  602. package/node_modules/toolcraft/node_modules/jose/dist/types/jws/compact/verify.d.ts +33 -0
  603. package/node_modules/toolcraft/node_modules/jose/dist/types/jws/flattened/sign.d.ts +42 -0
  604. package/node_modules/toolcraft/node_modules/jose/dist/types/jws/flattened/verify.d.ts +33 -0
  605. package/node_modules/toolcraft/node_modules/jose/dist/types/jws/general/sign.d.ts +53 -0
  606. package/node_modules/toolcraft/node_modules/jose/dist/types/jws/general/verify.d.ts +41 -0
  607. package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/decrypt.d.ts +35 -0
  608. package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/encrypt.d.ts +91 -0
  609. package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/sign.d.ts +43 -0
  610. package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/unsecured.d.ts +43 -0
  611. package/node_modules/toolcraft/node_modules/jose/dist/types/jwt/verify.d.ts +37 -0
  612. package/node_modules/toolcraft/node_modules/jose/dist/types/key/export.d.ts +33 -0
  613. package/node_modules/toolcraft/node_modules/jose/dist/types/key/generate_key_pair.d.ts +47 -0
  614. package/node_modules/toolcraft/node_modules/jose/dist/types/key/generate_secret.d.ts +35 -0
  615. package/node_modules/toolcraft/node_modules/jose/dist/types/key/import.d.ts +83 -0
  616. package/node_modules/toolcraft/node_modules/jose/dist/types/types.d.ts +852 -0
  617. package/node_modules/toolcraft/node_modules/jose/dist/types/util/base64url.d.ts +9 -0
  618. package/node_modules/toolcraft/node_modules/jose/dist/types/util/decode_jwt.d.ts +18 -0
  619. package/node_modules/toolcraft/node_modules/jose/dist/types/util/decode_protected_header.d.ts +17 -0
  620. package/node_modules/toolcraft/node_modules/jose/dist/types/util/errors.d.ts +213 -0
  621. package/node_modules/toolcraft/node_modules/jose/dist/webapi/index.js +32 -0
  622. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
  623. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
  624. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +159 -0
  625. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +167 -0
  626. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
  627. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwe/general/encrypt.js +182 -0
  628. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
  629. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
  630. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwks/local.js +119 -0
  631. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
  632. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
  633. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
  634. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/flattened/sign.js +89 -0
  635. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/flattened/verify.js +110 -0
  636. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/general/sign.js +70 -0
  637. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
  638. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
  639. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/encrypt.js +101 -0
  640. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
  641. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
  642. package/node_modules/toolcraft/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
  643. package/node_modules/toolcraft/node_modules/jose/dist/webapi/key/export.js +11 -0
  644. package/node_modules/toolcraft/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
  645. package/node_modules/toolcraft/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
  646. package/node_modules/toolcraft/node_modules/jose/dist/webapi/key/import.js +57 -0
  647. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/aesgcmkw.js +15 -0
  648. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
  649. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/asn1.js +243 -0
  650. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/base64.js +22 -0
  651. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/buffer_utils.js +43 -0
  652. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/check_key_type.js +122 -0
  653. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/content_encryption.js +217 -0
  654. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/crypto_key.js +136 -0
  655. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/deflate.js +44 -0
  656. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
  657. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/helpers.js +19 -0
  658. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/invalid_key_input.js +27 -0
  659. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
  660. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/jwk_to_key.js +107 -0
  661. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +238 -0
  662. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/key_management.js +186 -0
  663. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
  664. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/normalize_key.js +166 -0
  665. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/pbes2kw.js +42 -0
  666. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
  667. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/signing.js +68 -0
  668. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/type_checks.js +40 -0
  669. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
  670. package/node_modules/toolcraft/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
  671. package/node_modules/toolcraft/node_modules/jose/dist/webapi/util/base64url.js +30 -0
  672. package/node_modules/toolcraft/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
  673. package/node_modules/toolcraft/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
  674. package/node_modules/toolcraft/node_modules/jose/dist/webapi/util/errors.js +99 -0
  675. package/node_modules/toolcraft/node_modules/jose/package.json +200 -0
  676. package/node_modules/toolcraft/node_modules/jsonc-parser/CHANGELOG.md +76 -0
  677. package/node_modules/toolcraft/node_modules/jsonc-parser/LICENSE.md +21 -0
  678. package/node_modules/toolcraft/node_modules/jsonc-parser/README.md +364 -0
  679. package/node_modules/toolcraft/node_modules/jsonc-parser/SECURITY.md +41 -0
  680. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/edit.js +185 -0
  681. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/format.js +261 -0
  682. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/parser.js +659 -0
  683. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/scanner.js +443 -0
  684. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +29 -0
  685. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/main.d.ts +351 -0
  686. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/esm/main.js +178 -0
  687. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/edit.js +201 -0
  688. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/format.js +275 -0
  689. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/parser.js +682 -0
  690. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/scanner.js +456 -0
  691. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
  692. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/main.d.ts +351 -0
  693. package/node_modules/toolcraft/node_modules/jsonc-parser/lib/umd/main.js +194 -0
  694. package/node_modules/toolcraft/node_modules/jsonc-parser/package.json +37 -0
  695. package/node_modules/toolcraft/node_modules/mcp-oauth-server/LICENSE +21 -0
  696. package/node_modules/toolcraft/node_modules/mcp-oauth-server/README.md +192 -0
  697. package/node_modules/toolcraft/node_modules/mcp-oauth-server/dist/index.d.ts +161 -0
  698. package/node_modules/toolcraft/node_modules/mcp-oauth-server/dist/index.js +723 -0
  699. package/node_modules/toolcraft/node_modules/mcp-oauth-server/package.json +34 -0
  700. package/node_modules/toolcraft/node_modules/saxes/README.md +323 -0
  701. package/node_modules/toolcraft/node_modules/saxes/package.json +71 -0
  702. package/node_modules/toolcraft/node_modules/saxes/saxes.d.ts +635 -0
  703. package/node_modules/toolcraft/node_modules/saxes/saxes.js +2053 -0
  704. package/node_modules/toolcraft/node_modules/saxes/saxes.js.map +1 -0
  705. package/node_modules/toolcraft/node_modules/sisteransi/license +21 -0
  706. package/node_modules/toolcraft/node_modules/sisteransi/package.json +34 -0
  707. package/node_modules/toolcraft/node_modules/sisteransi/readme.md +113 -0
  708. package/node_modules/toolcraft/node_modules/sisteransi/src/index.js +58 -0
  709. package/node_modules/toolcraft/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
  710. package/node_modules/toolcraft/node_modules/smol-toml/LICENSE +24 -0
  711. package/node_modules/toolcraft/node_modules/smol-toml/README.md +404 -0
  712. package/node_modules/toolcraft/node_modules/smol-toml/dist/date.d.ts +42 -0
  713. package/node_modules/toolcraft/node_modules/smol-toml/dist/date.d.ts.map +1 -0
  714. package/node_modules/toolcraft/node_modules/smol-toml/dist/date.js +128 -0
  715. package/node_modules/toolcraft/node_modules/smol-toml/dist/date.js.map +1 -0
  716. package/node_modules/toolcraft/node_modules/smol-toml/dist/error.d.ts +39 -0
  717. package/node_modules/toolcraft/node_modules/smol-toml/dist/error.d.ts.map +1 -0
  718. package/node_modules/toolcraft/node_modules/smol-toml/dist/error.js +64 -0
  719. package/node_modules/toolcraft/node_modules/smol-toml/dist/error.js.map +1 -0
  720. package/node_modules/toolcraft/node_modules/smol-toml/dist/extract.d.ts +31 -0
  721. package/node_modules/toolcraft/node_modules/smol-toml/dist/extract.d.ts.map +1 -0
  722. package/node_modules/toolcraft/node_modules/smol-toml/dist/extract.js +101 -0
  723. package/node_modules/toolcraft/node_modules/smol-toml/dist/extract.js.map +1 -0
  724. package/node_modules/toolcraft/node_modules/smol-toml/dist/index.cjs +708 -0
  725. package/node_modules/toolcraft/node_modules/smol-toml/dist/index.cjs.map +1 -0
  726. package/node_modules/toolcraft/node_modules/smol-toml/dist/index.d.ts +44 -0
  727. package/node_modules/toolcraft/node_modules/smol-toml/dist/index.d.ts.map +1 -0
  728. package/node_modules/toolcraft/node_modules/smol-toml/dist/index.js +34 -0
  729. package/node_modules/toolcraft/node_modules/smol-toml/dist/index.js.map +1 -0
  730. package/node_modules/toolcraft/node_modules/smol-toml/dist/parse.d.ts +38 -0
  731. package/node_modules/toolcraft/node_modules/smol-toml/dist/parse.d.ts.map +1 -0
  732. package/node_modules/toolcraft/node_modules/smol-toml/dist/parse.js +148 -0
  733. package/node_modules/toolcraft/node_modules/smol-toml/dist/parse.js.map +1 -0
  734. package/node_modules/toolcraft/node_modules/smol-toml/dist/primitive.d.ts +32 -0
  735. package/node_modules/toolcraft/node_modules/smol-toml/dist/primitive.d.ts.map +1 -0
  736. package/node_modules/toolcraft/node_modules/smol-toml/dist/primitive.js +237 -0
  737. package/node_modules/toolcraft/node_modules/smol-toml/dist/primitive.js.map +1 -0
  738. package/node_modules/toolcraft/node_modules/smol-toml/dist/stringify.d.ts +32 -0
  739. package/node_modules/toolcraft/node_modules/smol-toml/dist/stringify.d.ts.map +1 -0
  740. package/node_modules/toolcraft/node_modules/smol-toml/dist/stringify.js +168 -0
  741. package/node_modules/toolcraft/node_modules/smol-toml/dist/stringify.js.map +1 -0
  742. package/node_modules/toolcraft/node_modules/smol-toml/dist/struct.d.ts +33 -0
  743. package/node_modules/toolcraft/node_modules/smol-toml/dist/struct.d.ts.map +1 -0
  744. package/node_modules/toolcraft/node_modules/smol-toml/dist/struct.js +179 -0
  745. package/node_modules/toolcraft/node_modules/smol-toml/dist/struct.js.map +1 -0
  746. package/node_modules/toolcraft/node_modules/smol-toml/dist/util.d.ts +42 -0
  747. package/node_modules/toolcraft/node_modules/smol-toml/dist/util.d.ts.map +1 -0
  748. package/node_modules/toolcraft/node_modules/smol-toml/dist/util.js +86 -0
  749. package/node_modules/toolcraft/node_modules/smol-toml/dist/util.js.map +1 -0
  750. package/node_modules/toolcraft/node_modules/smol-toml/package.json +64 -0
  751. package/node_modules/toolcraft/node_modules/smol-toml/src/date.ts +152 -0
  752. package/node_modules/toolcraft/node_modules/smol-toml/src/error.ts +77 -0
  753. package/node_modules/toolcraft/node_modules/smol-toml/src/extract.ts +112 -0
  754. package/node_modules/toolcraft/node_modules/smol-toml/src/index.ts +42 -0
  755. package/node_modules/toolcraft/node_modules/smol-toml/src/parse.ts +184 -0
  756. package/node_modules/toolcraft/node_modules/smol-toml/src/primitive.ts +247 -0
  757. package/node_modules/toolcraft/node_modules/smol-toml/src/stringify.ts +191 -0
  758. package/node_modules/toolcraft/node_modules/smol-toml/src/struct.ts +199 -0
  759. package/node_modules/toolcraft/node_modules/smol-toml/src/util.ts +101 -0
  760. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/LICENSE +21 -0
  761. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/README.md +836 -0
  762. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/auth.d.ts +69 -0
  763. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/auth.js +261 -0
  764. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/cli.d.ts +20 -0
  765. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/cli.js +493 -0
  766. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/composition.json +65 -0
  767. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/express-middleware.d.ts +18 -0
  768. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/express-middleware.js +90 -0
  769. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/fetch-body.d.ts +6 -0
  770. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/fetch-body.js +47 -0
  771. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/fetch.d.ts +23 -0
  772. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/fetch.js +130 -0
  773. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/http-server.d.ts +53 -0
  774. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/http-server.js +262 -0
  775. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/http-transport.d.ts +173 -0
  776. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/http-transport.js +1097 -0
  777. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/index.d.ts +13 -0
  778. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/index.js +6 -0
  779. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/load-oauth-verifier.d.ts +6 -0
  780. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/load-oauth-verifier.js +43 -0
  781. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/modern-headers.d.ts +3 -0
  782. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/modern-headers.js +34 -0
  783. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/parse-body.d.ts +23 -0
  784. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/parse-body.js +161 -0
  785. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/server.d.ts +9 -0
  786. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/server.js +4 -0
  787. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/session.d.ts +18 -0
  788. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/session.js +37 -0
  789. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/sse.d.ts +11 -0
  790. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/sse.js +22 -0
  791. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/test-support.d.ts +10 -0
  792. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/test-support.js +415 -0
  793. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/testing.d.ts +59 -0
  794. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/dist/testing.js +192 -0
  795. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/LICENSE +21 -0
  796. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/README.md +390 -0
  797. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/auth-store-session-store.d.ts +17 -0
  798. package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/auth-store-session-store.js +61 -36
  799. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/authorization-error.d.ts +7 -0
  800. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/authorization-error.js +16 -0
  801. package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/authorization-state.js +4 -4
  802. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/bounded-json.d.ts +2 -0
  803. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/bounded-json.js +44 -0
  804. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/cancellable-operation.d.ts +2 -0
  805. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/cancellable-operation.js +18 -0
  806. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/client-registration.d.ts +6 -0
  807. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/client-registration.js +118 -0
  808. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/default-oauth-client-provider.js +841 -0
  809. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/loopback-authorization.d.ts +36 -0
  810. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/loopback-authorization.js +317 -0
  811. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/oauth-form.d.ts +10 -0
  812. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/oauth-form.js +20 -0
  813. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/persistence-options.d.ts +3 -0
  814. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/persistence-options.js +10 -0
  815. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/pkce.js +8 -0
  816. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/redirect-target.d.ts +10 -0
  817. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/redirect-target.js +42 -0
  818. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/register-client.d.ts +20 -0
  819. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/register-client.js +68 -0
  820. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resource-bound-store.d.ts +20 -0
  821. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resource-bound-store.js +179 -0
  822. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resumable.d.ts +66 -0
  823. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resumable.js +153 -0
  824. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/revoke-token.d.ts +12 -0
  825. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/revoke-token.js +23 -0
  826. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/scope.d.ts +2 -0
  827. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/scope.js +9 -0
  828. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/session-transaction.d.ts +6 -0
  829. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/session-transaction.js +50 -0
  830. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/token-auth-method.d.ts +2 -0
  831. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/token-auth-method.js +7 -0
  832. package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/token-endpoint.d.ts +11 -3
  833. package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/token-endpoint.js +66 -29
  834. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/token-grant.d.ts +10 -0
  835. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/token-grant.js +56 -0
  836. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/types.d.ts +196 -0
  837. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/types.js +1 -0
  838. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/http-fetch.d.ts +1 -0
  839. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/http-fetch.js +45 -0
  840. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/http-response.d.ts +1 -0
  841. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/http-response.js +50 -0
  842. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.browser.d.ts +24 -0
  843. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.browser.js +31 -0
  844. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.d.ts +25 -0
  845. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.js +19 -0
  846. package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/server/jwks-token-verifier.d.ts +4 -0
  847. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/server/jwks-token-verifier.js +406 -0
  848. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/types.compile-check.d.ts +1 -0
  849. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/package.json +35 -0
  850. package/node_modules/toolcraft/node_modules/tiny-http-mcp-server/package.json +65 -0
  851. package/node_modules/toolcraft/node_modules/tiny-mcp-client/LICENSE +21 -0
  852. package/node_modules/toolcraft/node_modules/tiny-mcp-client/README.md +150 -49
  853. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/index.browser.d.ts +909 -0
  854. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/index.browser.js +6923 -0
  855. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/index.d.ts +909 -2
  856. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/index.js +10285 -1
  857. package/node_modules/toolcraft/node_modules/tiny-mcp-client/package.json +42 -3
  858. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/LICENSE +21 -0
  859. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/README.md +296 -0
  860. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/base64.d.ts +1 -0
  861. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/base64.js +10 -0
  862. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/composition.json +15 -0
  863. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/audio.d.ts +18 -0
  864. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/audio.js +84 -0
  865. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/convert.d.ts +20 -0
  866. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/convert.js +96 -0
  867. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/file-type.d.ts +11 -0
  868. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/file-type.js +93 -0
  869. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/file.d.ts +33 -0
  870. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/file.js +110 -0
  871. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/image.d.ts +18 -0
  872. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/image.js +72 -0
  873. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/index.d.ts +7 -0
  874. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/index.js +9 -0
  875. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/mime.d.ts +7 -0
  876. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/mime.js +52 -0
  877. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/remote.d.ts +5 -0
  878. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/content/remote.js +69 -0
  879. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/core.d.ts +8 -0
  880. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/core.js +4 -0
  881. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/headers.d.ts +10 -0
  882. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/headers.js +181 -0
  883. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/index.d.ts +9 -0
  884. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/index.js +7 -0
  885. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/input-request-schema.d.ts +220 -0
  886. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/input-request-schema.js +1995 -0
  887. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/jsonrpc.d.ts +15 -0
  888. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/jsonrpc.js +131 -0
  889. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/metadata.d.ts +2 -0
  890. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/metadata.js +37 -0
  891. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol-server.d.ts +48 -0
  892. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol-server.js +1169 -0
  893. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol-validation.d.ts +4 -0
  894. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol-validation.js +53 -0
  895. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol.d.ts +17 -0
  896. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/protocol.js +228 -0
  897. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/request-cancellation.d.ts +1 -0
  898. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/request-cancellation.js +18 -0
  899. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/sampling-messages.d.ts +18 -0
  900. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/sampling-messages.js +34 -0
  901. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/schema.d.ts +26 -0
  902. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/schema.js +26 -0
  903. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/server.d.ts +4 -0
  904. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/server.js +7 -0
  905. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/standard-schema.compile-check.d.ts +1 -0
  906. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/standard-schema.compile-check.js +15 -0
  907. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/stdio-input.d.ts +11 -0
  908. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/stdio-input.js +67 -0
  909. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/stdio-output.d.ts +24 -0
  910. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/stdio-output.js +131 -0
  911. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/subscriptions.d.ts +11 -0
  912. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/subscriptions.js +128 -0
  913. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/testing.d.ts +7 -0
  914. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/testing.js +20 -0
  915. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/tool-call-admission.d.ts +9 -0
  916. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/tool-call-admission.js +51 -0
  917. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/tool-schema.d.ts +13 -0
  918. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/tool-schema.js +53 -0
  919. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/types.d.ts +299 -0
  920. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/types.js +23 -0
  921. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/uri-template.d.ts +6 -0
  922. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/uri-template.js +363 -0
  923. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/uri.d.ts +1 -0
  924. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/dist/uri.js +41 -0
  925. package/node_modules/toolcraft/node_modules/tiny-stdio-mcp-server/package.json +66 -0
  926. package/node_modules/toolcraft/node_modules/toolcraft-design/LICENSE +21 -0
  927. package/node_modules/toolcraft/node_modules/toolcraft-design/README.md +47 -7
  928. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/components.d.ts +8 -1
  929. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/components.js +11 -6
  930. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/index.d.ts +3 -0
  931. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/index.js +1 -0
  932. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/plan.d.ts +10 -0
  933. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/acp/plan.js +50 -0
  934. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/command-registry.d.ts +11 -0
  935. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/command-registry.js +24 -0
  936. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/command-errors.d.ts +2 -0
  937. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/command-errors.js +8 -2
  938. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/file-changes.d.ts +16 -0
  939. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/file-changes.js +162 -0
  940. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/help-formatter-plain.js +61 -25
  941. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/help-formatter.d.ts +17 -0
  942. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/help-formatter.js +128 -29
  943. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/index.d.ts +5 -3
  944. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/index.js +3 -2
  945. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/table.d.ts +1 -0
  946. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/table.js +58 -5
  947. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/template.d.ts +9 -0
  948. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/components/template.js +27 -2
  949. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/ansi.d.ts +2 -0
  950. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/ansi.js +81 -27
  951. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/buffer.js +39 -25
  952. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/border.js +6 -5
  953. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/context-pane.d.ts +4 -0
  954. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/context-pane.js +22 -0
  955. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/footer.d.ts +2 -2
  956. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/footer.js +46 -24
  957. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/output-pane.d.ts +6 -2
  958. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/output-pane.js +128 -10
  959. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/run-view.d.ts +27 -0
  960. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/run-view.js +283 -0
  961. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/stats-pane.d.ts +3 -2
  962. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/components/stats-pane.js +60 -19
  963. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/composer-layout.d.ts +12 -0
  964. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/composer-layout.js +45 -0
  965. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/composer.d.ts +24 -0
  966. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/composer.js +107 -0
  967. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/dashboard.d.ts +8 -0
  968. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/dashboard.js +268 -13
  969. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/elapsed.d.ts +1 -0
  970. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/elapsed.js +8 -0
  971. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/index.d.ts +4 -1
  972. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/index.js +2 -0
  973. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/keymap.js +26 -6
  974. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/layout.d.ts +1 -0
  975. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/layout.js +19 -3
  976. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/line-buffer.d.ts +9 -0
  977. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/line-buffer.js +63 -0
  978. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/output-preview.d.ts +9 -0
  979. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/output-preview.js +70 -0
  980. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/snapshot.js +3 -1
  981. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/store.js +10 -3
  982. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal-strings.d.ts +6 -0
  983. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal-strings.js +108 -0
  984. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal-width.d.ts +1 -0
  985. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal-width.js +27 -2
  986. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/terminal.js +39 -12
  987. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/testing/pipeline-scenario.d.ts +1 -0
  988. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/testing/pipeline-scenario.js +128 -0
  989. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/dashboard/types.d.ts +47 -1
  990. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/escape-terminal-text.d.ts +1 -0
  991. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/escape-terminal-text.js +1 -0
  992. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/event-groups.d.ts +19 -0
  993. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/event-groups.js +49 -0
  994. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/actions.d.ts +8 -2
  995. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/actions.js +52 -4
  996. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/demo.js +3 -3
  997. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/detail-content.d.ts +6 -0
  998. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/detail-content.js +24 -0
  999. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/events.d.ts +12 -2
  1000. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/filter.js +48 -9
  1001. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/index.d.ts +2 -4
  1002. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/index.js +1 -2
  1003. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/jobs.d.ts +2 -1
  1004. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/jobs.js +29 -3
  1005. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/keymap.d.ts +13 -3
  1006. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/keymap.js +89 -348
  1007. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/layout.d.ts +2 -0
  1008. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/layout.js +22 -4
  1009. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/reducer.js +198 -45
  1010. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/detail.d.ts +2 -2
  1011. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/detail.js +37 -31
  1012. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/footer.d.ts +1 -1
  1013. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/footer.js +18 -3
  1014. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/header.d.ts +1 -1
  1015. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/header.js +6 -2
  1016. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/index.d.ts +1 -1
  1017. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/index.js +2 -1
  1018. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/list.d.ts +16 -2
  1019. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/list.js +49 -43
  1020. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/modal.d.ts +1 -1
  1021. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/modal.js +26 -13
  1022. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/pane.d.ts +6 -3
  1023. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/pane.js +10 -14
  1024. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/render/test-fixtures.js +3 -4
  1025. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/runtime.js +141 -75
  1026. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/runtime.test-helpers.d.ts +23 -37
  1027. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/runtime.test-helpers.js +32 -83
  1028. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/state.d.ts +95 -8
  1029. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/state.js +77 -22
  1030. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/help-formatter.d.ts +2 -2
  1031. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/help-formatter.js +1 -1
  1032. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/index.d.ts +22 -9
  1033. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/index.js +15 -6
  1034. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/inline-notice.d.ts +14 -0
  1035. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/inline-notice.js +28 -0
  1036. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/metric.d.ts +8 -0
  1037. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/metric.js +21 -0
  1038. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/overlay-manager.d.ts +6 -0
  1039. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/overlay-manager.js +10 -0
  1040. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/primitives.d.ts +12 -0
  1041. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/primitives.js +7 -0
  1042. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/progress-group.d.ts +7 -0
  1043. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/progress-group.js +10 -0
  1044. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/core.d.ts +9 -2
  1045. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/core.js +208 -31
  1046. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/multiselect.js +3 -2
  1047. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/pagination.js +21 -27
  1048. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/password.js +11 -8
  1049. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/select.js +3 -2
  1050. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/interactive/text.js +12 -9
  1051. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/primitives/note.d.ts +1 -1
  1052. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/primitives/note.js +4 -4
  1053. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/prompts/primitives/spinner.js +2 -1
  1054. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/render-markdown-plaintext.d.ts +2 -0
  1055. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/render-markdown-plaintext.js +1 -0
  1056. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/render-performance.d.ts +33 -0
  1057. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/render-performance.js +71 -0
  1058. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/ansi-text.d.ts +2 -0
  1059. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/ansi-text.js +35 -0
  1060. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/screen.d.ts +40 -0
  1061. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/screen.js +122 -0
  1062. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/style.d.ts +16 -0
  1063. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/screen/style.js +55 -0
  1064. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/task-tree.d.ts +22 -0
  1065. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/task-tree.js +79 -0
  1066. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/driver.d.ts +34 -0
  1067. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/driver.js +65 -0
  1068. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/input.d.ts +25 -0
  1069. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/input.js +197 -0
  1070. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/output.d.ts +10 -0
  1071. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal/output.js +44 -0
  1072. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/index.d.ts +2 -0
  1073. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/index.js +1 -0
  1074. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/parser/frontmatter.js +2 -1
  1075. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/parser/inline.js +64 -13
  1076. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/parser.js +2 -1
  1077. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/plaintext-renderer.d.ts +11 -0
  1078. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/terminal-markdown/plaintext-renderer.js +228 -0
  1079. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/viewport.d.ts +18 -0
  1080. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/viewport.js +56 -0
  1081. package/node_modules/toolcraft/node_modules/toolcraft-design/package.json +13 -9
  1082. package/node_modules/toolcraft/node_modules/toolcraft-schema/LICENSE +21 -0
  1083. package/node_modules/toolcraft/node_modules/toolcraft-schema/README.md +151 -0
  1084. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/clone-default.d.ts +1 -0
  1085. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/clone-default.js +26 -0
  1086. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/index.compile-check.d.ts +1 -0
  1087. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/index.compile-check.js +18 -0
  1088. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/index.d.ts +220 -0
  1089. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/index.js +354 -0
  1090. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/compiler.d.ts +12 -0
  1091. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/compiler.js +396 -0
  1092. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/evaluate.d.ts +3 -0
  1093. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/evaluate.js +445 -0
  1094. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/index.d.ts +5 -0
  1095. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/index.js +19 -0
  1096. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/normalize-nullability.d.ts +1 -0
  1097. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/normalize-nullability.js +69 -0
  1098. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/properties.d.ts +16 -0
  1099. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/properties.js +129 -0
  1100. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/types.d.ts +34 -0
  1101. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/types.js +1 -0
  1102. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/utils.d.ts +19 -0
  1103. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema/utils.js +174 -0
  1104. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema-document.d.ts +14 -0
  1105. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json-schema-document.js +17 -0
  1106. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json.compile-check.d.ts +1 -0
  1107. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json.compile-check.js +2 -0
  1108. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json.d.ts +23 -0
  1109. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/json.js +81 -0
  1110. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/native-json-schema.d.ts +13 -0
  1111. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/native-json-schema.js +12 -0
  1112. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/oneof.compile-check.d.ts +1 -0
  1113. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/oneof.compile-check.js +12 -0
  1114. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/oneof.d.ts +16 -0
  1115. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/oneof.js +19 -0
  1116. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/record.compile-check.d.ts +1 -0
  1117. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/record.compile-check.js +2 -0
  1118. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/record.d.ts +6 -0
  1119. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/record.js +7 -0
  1120. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/standard.compile-check.d.ts +1 -0
  1121. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/standard.compile-check.js +20 -0
  1122. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/standard.d.ts +92 -0
  1123. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/standard.js +38 -0
  1124. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/union.compile-check.d.ts +1 -0
  1125. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/union.compile-check.js +9 -0
  1126. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/union.d.ts +9 -0
  1127. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/union.js +46 -0
  1128. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/validate.d.ts +21 -0
  1129. package/node_modules/toolcraft/node_modules/toolcraft-schema/dist/validate.js +393 -0
  1130. package/node_modules/toolcraft/node_modules/toolcraft-schema/package.json +33 -0
  1131. package/node_modules/toolcraft/node_modules/xmlchars/LICENSE +18 -0
  1132. package/node_modules/toolcraft/node_modules/xmlchars/README.md +33 -0
  1133. package/node_modules/toolcraft/node_modules/xmlchars/package.json +51 -0
  1134. package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
  1135. package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
  1136. package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
  1137. package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
  1138. package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
  1139. package/node_modules/toolcraft/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
  1140. package/node_modules/toolcraft/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
  1141. package/node_modules/toolcraft/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
  1142. package/node_modules/toolcraft/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
  1143. package/node_modules/toolcraft/node_modules/xmlchars/xmlchars.d.ts +170 -0
  1144. package/node_modules/toolcraft/node_modules/xmlchars/xmlchars.js +191 -0
  1145. package/node_modules/toolcraft/node_modules/xmlchars/xmlchars.js.map +1 -0
  1146. package/node_modules/toolcraft/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
  1147. package/node_modules/toolcraft/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
  1148. package/node_modules/toolcraft/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
  1149. package/node_modules/toolcraft/node_modules/yaml/LICENSE +13 -0
  1150. package/node_modules/toolcraft/node_modules/yaml/README.md +172 -0
  1151. package/node_modules/toolcraft/node_modules/yaml/bin.mjs +11 -0
  1152. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  1153. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  1154. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
  1155. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  1156. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/composer.js +219 -0
  1157. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  1158. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  1159. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  1160. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  1161. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  1162. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
  1163. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  1164. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  1165. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  1166. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  1167. package/node_modules/toolcraft/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  1168. package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  1169. package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  1170. package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  1171. package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  1172. package/node_modules/toolcraft/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  1173. package/node_modules/toolcraft/node_modules/yaml/browser/dist/errors.js +57 -0
  1174. package/node_modules/toolcraft/node_modules/yaml/browser/dist/index.js +17 -0
  1175. package/node_modules/toolcraft/node_modules/yaml/browser/dist/log.js +11 -0
  1176. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
  1177. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  1178. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  1179. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  1180. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  1181. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  1182. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  1183. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  1184. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  1185. package/node_modules/toolcraft/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  1186. package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  1187. package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  1188. package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  1189. package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  1190. package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
  1191. package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  1192. package/node_modules/toolcraft/node_modules/yaml/browser/dist/parse/parser.js +975 -0
  1193. package/node_modules/toolcraft/node_modules/yaml/browser/dist/public-api.js +102 -0
  1194. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  1195. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  1196. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  1197. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  1198. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  1199. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  1200. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  1201. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  1202. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  1203. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  1204. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  1205. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  1206. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  1207. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  1208. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  1209. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
  1210. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  1211. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  1212. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  1213. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  1214. package/node_modules/toolcraft/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  1215. package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  1216. package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
  1217. package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
  1218. package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  1219. package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  1220. package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
  1221. package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  1222. package/node_modules/toolcraft/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  1223. package/node_modules/toolcraft/node_modules/yaml/browser/dist/util.js +11 -0
  1224. package/node_modules/toolcraft/node_modules/yaml/browser/dist/visit.js +233 -0
  1225. package/node_modules/toolcraft/node_modules/yaml/browser/index.js +5 -0
  1226. package/node_modules/toolcraft/node_modules/yaml/browser/package.json +3 -0
  1227. package/node_modules/toolcraft/node_modules/yaml/dist/cli.d.ts +8 -0
  1228. package/node_modules/toolcraft/node_modules/yaml/dist/cli.mjs +201 -0
  1229. package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
  1230. package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  1231. package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
  1232. package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  1233. package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
  1234. package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-node.js +112 -0
  1235. package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
  1236. package/node_modules/toolcraft/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  1237. package/node_modules/toolcraft/node_modules/yaml/dist/compose/composer.d.ts +63 -0
  1238. package/node_modules/toolcraft/node_modules/yaml/dist/compose/composer.js +224 -0
  1239. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
  1240. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  1241. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
  1242. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  1243. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
  1244. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  1245. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
  1246. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  1247. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
  1248. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  1249. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
  1250. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
  1251. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
  1252. package/node_modules/toolcraft/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  1253. package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
  1254. package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  1255. package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
  1256. package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  1257. package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
  1258. package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  1259. package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
  1260. package/node_modules/toolcraft/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  1261. package/node_modules/toolcraft/node_modules/yaml/dist/doc/Document.d.ts +141 -0
  1262. package/node_modules/toolcraft/node_modules/yaml/dist/doc/Document.js +337 -0
  1263. package/node_modules/toolcraft/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
  1264. package/node_modules/toolcraft/node_modules/yaml/dist/doc/anchors.js +76 -0
  1265. package/node_modules/toolcraft/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
  1266. package/node_modules/toolcraft/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  1267. package/node_modules/toolcraft/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
  1268. package/node_modules/toolcraft/node_modules/yaml/dist/doc/createNode.js +90 -0
  1269. package/node_modules/toolcraft/node_modules/yaml/dist/doc/directives.d.ts +49 -0
  1270. package/node_modules/toolcraft/node_modules/yaml/dist/doc/directives.js +178 -0
  1271. package/node_modules/toolcraft/node_modules/yaml/dist/errors.d.ts +21 -0
  1272. package/node_modules/toolcraft/node_modules/yaml/dist/errors.js +62 -0
  1273. package/node_modules/toolcraft/node_modules/yaml/dist/index.d.ts +25 -0
  1274. package/node_modules/toolcraft/node_modules/yaml/dist/index.js +50 -0
  1275. package/node_modules/toolcraft/node_modules/yaml/dist/log.d.ts +3 -0
  1276. package/node_modules/toolcraft/node_modules/yaml/dist/log.js +19 -0
  1277. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
  1278. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Alias.js +118 -0
  1279. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
  1280. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Collection.js +151 -0
  1281. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
  1282. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Node.js +40 -0
  1283. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
  1284. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Pair.js +39 -0
  1285. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
  1286. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  1287. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
  1288. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  1289. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
  1290. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  1291. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
  1292. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  1293. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
  1294. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/identity.js +53 -0
  1295. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
  1296. package/node_modules/toolcraft/node_modules/yaml/dist/nodes/toJS.js +39 -0
  1297. package/node_modules/toolcraft/node_modules/yaml/dist/options.d.ts +350 -0
  1298. package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
  1299. package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  1300. package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
  1301. package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  1302. package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
  1303. package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  1304. package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst.d.ts +109 -0
  1305. package/node_modules/toolcraft/node_modules/yaml/dist/parse/cst.js +112 -0
  1306. package/node_modules/toolcraft/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
  1307. package/node_modules/toolcraft/node_modules/yaml/dist/parse/lexer.js +723 -0
  1308. package/node_modules/toolcraft/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
  1309. package/node_modules/toolcraft/node_modules/yaml/dist/parse/line-counter.js +41 -0
  1310. package/node_modules/toolcraft/node_modules/yaml/dist/parse/parser.d.ts +84 -0
  1311. package/node_modules/toolcraft/node_modules/yaml/dist/parse/parser.js +980 -0
  1312. package/node_modules/toolcraft/node_modules/yaml/dist/public-api.d.ts +44 -0
  1313. package/node_modules/toolcraft/node_modules/yaml/dist/public-api.js +107 -0
  1314. package/node_modules/toolcraft/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
  1315. package/node_modules/toolcraft/node_modules/yaml/dist/schema/Schema.js +39 -0
  1316. package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
  1317. package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/map.js +19 -0
  1318. package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
  1319. package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/null.js +17 -0
  1320. package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
  1321. package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/seq.js +19 -0
  1322. package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
  1323. package/node_modules/toolcraft/node_modules/yaml/dist/schema/common/string.js +16 -0
  1324. package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
  1325. package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/bool.js +21 -0
  1326. package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
  1327. package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/float.js +47 -0
  1328. package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
  1329. package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/int.js +42 -0
  1330. package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
  1331. package/node_modules/toolcraft/node_modules/yaml/dist/schema/core/schema.js +25 -0
  1332. package/node_modules/toolcraft/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
  1333. package/node_modules/toolcraft/node_modules/yaml/dist/schema/json/schema.js +64 -0
  1334. package/node_modules/toolcraft/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
  1335. package/node_modules/toolcraft/node_modules/yaml/dist/schema/tags.d.ts +48 -0
  1336. package/node_modules/toolcraft/node_modules/yaml/dist/schema/tags.js +99 -0
  1337. package/node_modules/toolcraft/node_modules/yaml/dist/schema/types.d.ts +92 -0
  1338. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
  1339. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  1340. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
  1341. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  1342. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
  1343. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  1344. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
  1345. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  1346. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
  1347. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
  1348. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
  1349. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  1350. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
  1351. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  1352. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
  1353. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  1354. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
  1355. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  1356. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
  1357. package/node_modules/toolcraft/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  1358. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
  1359. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  1360. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
  1361. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringify.js +132 -0
  1362. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
  1363. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
  1364. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
  1365. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  1366. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
  1367. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  1368. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
  1369. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
  1370. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
  1371. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  1372. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
  1373. package/node_modules/toolcraft/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  1374. package/node_modules/toolcraft/node_modules/yaml/dist/test-events.d.ts +4 -0
  1375. package/node_modules/toolcraft/node_modules/yaml/dist/test-events.js +134 -0
  1376. package/node_modules/toolcraft/node_modules/yaml/dist/util.d.ts +16 -0
  1377. package/node_modules/toolcraft/node_modules/yaml/dist/util.js +28 -0
  1378. package/node_modules/toolcraft/node_modules/yaml/dist/visit.d.ts +102 -0
  1379. package/node_modules/toolcraft/node_modules/yaml/dist/visit.js +236 -0
  1380. package/node_modules/toolcraft/node_modules/yaml/package.json +97 -0
  1381. package/node_modules/toolcraft/node_modules/yaml/util.js +2 -0
  1382. package/node_modules/toolcraft/package.json +121 -12
  1383. package/package.json +2 -2
  1384. package/src/adapters/root.ts +12 -2
  1385. package/src/cli.ts +3 -1
  1386. package/src/executable.ts +3 -1
  1387. package/src/mcp.ts +1 -1
  1388. package/node_modules/toolcraft/dist/design/run-two-pane-explorer.d.ts +0 -2
  1389. package/node_modules/toolcraft/dist/design/run-two-pane-explorer.js +0 -1
  1390. package/node_modules/toolcraft/node_modules/@poe-code/agent-defs/dist/agents/kimi.js +0 -16
  1391. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/schema/store.schema.json +0 -32
  1392. package/node_modules/toolcraft/node_modules/@poe-code/task-list/dist/schema/task.schema.json +0 -33
  1393. package/node_modules/toolcraft/node_modules/mcp-oauth/README.md +0 -31
  1394. package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/auth-store-session-store.d.ts +0 -14
  1395. package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/default-oauth-client-provider.js +0 -627
  1396. package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/loopback-authorization.d.ts +0 -20
  1397. package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/loopback-authorization.js +0 -207
  1398. package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/pkce.js +0 -7
  1399. package/node_modules/toolcraft/node_modules/mcp-oauth/dist/client/types.d.ts +0 -113
  1400. package/node_modules/toolcraft/node_modules/mcp-oauth/dist/index.d.ts +0 -10
  1401. package/node_modules/toolcraft/node_modules/mcp-oauth/dist/index.js +0 -7
  1402. package/node_modules/toolcraft/node_modules/mcp-oauth/dist/server/jwks-token-verifier.js +0 -304
  1403. package/node_modules/toolcraft/node_modules/tiny-mcp-client/.turbo/turbo-build.log +0 -7
  1404. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/internal.d.ts +0 -556
  1405. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/internal.js +0 -2688
  1406. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/jsonrpc-types.compile-check.js +0 -37
  1407. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-lifecycle-types.compile-check.js +0 -50
  1408. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-prompt-types.compile-check.js +0 -50
  1409. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-resource-types.compile-check.js +0 -51
  1410. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-tool-types.compile-check.js +0 -99
  1411. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-transport-types.compile-check.js +0 -56
  1412. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/mcp-utility-types.compile-check.js +0 -145
  1413. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/oauth-discovery.d.ts +0 -24
  1414. package/node_modules/toolcraft/node_modules/tiny-mcp-client/dist/oauth-discovery.js +0 -382
  1415. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/http-oauth.integration.test.ts +0 -808
  1416. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/http-oauth.test.ts +0 -922
  1417. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/index.ts +0 -94
  1418. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/internal.ts +0 -3904
  1419. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/jsonrpc-types.compile-check.ts +0 -66
  1420. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-client-http-transport.integration.test.ts +0 -222
  1421. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-client-sdk.test.ts +0 -1326
  1422. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-client-tiny-stdio-test-server-tools.test.ts +0 -143
  1423. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-lifecycle-types.compile-check.ts +0 -65
  1424. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-prompt-types.compile-check.ts +0 -66
  1425. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-resource-types.compile-check.ts +0 -70
  1426. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-tool-types.compile-check.ts +0 -127
  1427. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-transport-types.compile-check.ts +0 -75
  1428. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mcp-utility-types.compile-check.ts +0 -181
  1429. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/mock-servers.test.ts +0 -980
  1430. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/oauth-discovery.ts +0 -578
  1431. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/package-runtime.test.ts +0 -25
  1432. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/transports.test.ts +0 -9018
  1433. package/node_modules/toolcraft/node_modules/tiny-mcp-client/src/utilities.test.ts +0 -372
  1434. package/node_modules/toolcraft/node_modules/tiny-mcp-client/tsconfig.json +0 -11
  1435. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/two-pane.d.ts +0 -102
  1436. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/explorer/two-pane.js +0 -510
  1437. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/run-two-pane-explorer.d.ts +0 -2
  1438. package/node_modules/toolcraft/node_modules/toolcraft-design/dist/run-two-pane-explorer.js +0 -1
  1439. /package/node_modules/toolcraft/{node_modules/mcp-oauth/dist/client/types.js → dist/http-hosted-oauth.compile-check.d.ts} +0 -0
  1440. /package/node_modules/toolcraft/{node_modules/mcp-oauth/dist/types.compile-check.d.ts → dist/http.compile-check.d.ts} +0 -0
  1441. /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/jsonrpc-types.compile-check.d.ts → dist/human-in-loop/runtime-options.js} +0 -0
  1442. /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/mcp-lifecycle-types.compile-check.d.ts → dist/node-require-shim.d.ts} +0 -0
  1443. /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/mcp-prompt-types.compile-check.d.ts → dist/safe-bash-capabilities.compile-check.d.ts} +0 -0
  1444. /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/mcp-resource-types.compile-check.d.ts → dist/safe-bash.compile-check.d.ts} +0 -0
  1445. /package/node_modules/toolcraft/{node_modules/tiny-mcp-client/dist/mcp-tool-types.compile-check.d.ts → dist/schema-standard.compile-check.d.ts} +0 -0
  1446. /package/node_modules/toolcraft/node_modules/{tiny-mcp-client/dist/mcp-transport-types.compile-check.d.ts → @noble/hashes/index.d.ts} +0 -0
  1447. /package/node_modules/toolcraft/node_modules/{tiny-mcp-client/dist/mcp-utility-types.compile-check.d.ts → @poe-code/safe-fs/dist/bridge/types.js} +0 -0
  1448. /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/authorization-state.d.ts +0 -0
  1449. /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/default-oauth-client-provider.d.ts +0 -0
  1450. /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/client/pkce.d.ts +0 -0
  1451. /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/resource-indicator.d.ts +0 -0
  1452. /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/resource-indicator.js +0 -0
  1453. /package/node_modules/toolcraft/node_modules/{mcp-oauth → tiny-http-mcp-server/node_modules/mcp-oauth}/dist/types.compile-check.js +0 -0
@@ -0,0 +1,1176 @@
1
+ import { posixPath as posix } from "../../contracts/portable-path.js";
2
+ import { compareKeys } from "./key-order.js";
3
+ import { FsError, isFsError } from "../../contracts/errors.js";
4
+ import { composeAbortSignals } from "../../contracts/abort.js";
5
+ import { collectBytes, readBytes } from "../../contracts/io.js";
6
+ import { compareEntries, registerEntryAuthority } from "../mount/comparison.js";
7
+ import { chargeScopedTransportCall } from "#safe-fs-platform";
8
+ import { compareOwnedS3Entries, queryS3Head, recordS3Stat, registerS3EntryOwner } from "./authority.js";
9
+ import { encodeCopySource } from "./transport.js";
10
+ import { admitDirectoryEntries, directoryEntryLimit } from "../directory-admission.js";
11
+ export class S3RenameError extends FsError {
12
+ phase;
13
+ copiedKeys;
14
+ deletedKeys;
15
+ constructor(source, destination, phase, copied, deleted, cause) {
16
+ super(cause.code, {
17
+ syscall: "rename", path: source, dest: destination, cause,
18
+ message: `non-atomic S3 rename failed during ${phase}; destination copies or partial source deletions may remain`,
19
+ });
20
+ this.name = "S3RenameError";
21
+ this.phase = phase;
22
+ this.copiedKeys = Object.freeze([...copied]);
23
+ this.deletedKeys = Object.freeze([...deleted]);
24
+ }
25
+ }
26
+ function serviceCode(error) {
27
+ if (typeof error !== "object" || error === null)
28
+ return undefined;
29
+ const record = error;
30
+ const value = record.Code ?? record.code ?? record.name;
31
+ return typeof value === "string" ? value : undefined;
32
+ }
33
+ function translate(error, syscall, path, precondition = "EAGAIN") {
34
+ if (error instanceof FsError)
35
+ return error;
36
+ const status = error?.$metadata?.httpStatusCode;
37
+ const name = serviceCode(error);
38
+ let code = "EIO";
39
+ if (name === "AbortError" || status === 499)
40
+ code = "ECANCELED";
41
+ else if (name === "NoSuchKey" || name === "NotFound" || name === "NoSuchBucket" || status === 404)
42
+ code = "ENOENT";
43
+ else if (["AccessDenied", "InvalidAccessKeyId", "SignatureDoesNotMatch", "ExpiredToken"].includes(name ?? "") || status === 401 || status === 403)
44
+ code = "EACCES";
45
+ else if (name === "PreconditionFailed" || status === 412)
46
+ code = precondition;
47
+ else if (name === "ConditionalRequestConflict" || name === "SlowDown" || status === 409 || status === 429 || status === 503)
48
+ code = "EAGAIN";
49
+ else if (name === "NotImplemented" || status === 501)
50
+ code = "ENOTSUP";
51
+ else if (name === "EntityTooLarge")
52
+ code = "EFBIG";
53
+ else if (name === "InvalidArgument" || name === "InvalidRequest" || status === 400)
54
+ code = "EINVAL";
55
+ else if (name === "TimeoutError" || name === "RequestTimeout" || status === 408)
56
+ code = "ETIMEDOUT";
57
+ return new FsError(code, { syscall, path, cause: error });
58
+ }
59
+ function fail(code, syscall, path, message) {
60
+ throw new FsError(code, { syscall, path, ...(message === undefined ? {} : { message }) });
61
+ }
62
+ function validateLimit(value, name, minimum, maximum = Number.MAX_SAFE_INTEGER) {
63
+ if ((value !== Infinity || maximum !== Infinity) && (!Number.isSafeInteger(value) || value < minimum || value > maximum)) {
64
+ throw new FsError("EINVAL", { message: `${name} must be an integer from ${minimum} to ${maximum}` });
65
+ }
66
+ return value;
67
+ }
68
+ function utf8ByteLength(value) {
69
+ let bytes = 0;
70
+ for (let i = 0; i < value.length; i++) {
71
+ const code = value.charCodeAt(i);
72
+ if (code < 0x80)
73
+ bytes += 1;
74
+ else if (code < 0x800)
75
+ bytes += 2;
76
+ else if (code >= 0xd800 && code <= 0xdbff && i + 1 < value.length && value.charCodeAt(i + 1) >= 0xdc00 && value.charCodeAt(i + 1) <= 0xdfff) {
77
+ bytes += 4;
78
+ i++;
79
+ }
80
+ else
81
+ bytes += 3;
82
+ }
83
+ return bytes;
84
+ }
85
+ function exceedsComponentByteLimit(value) {
86
+ return value.length > 85 && (value.length > 255 || utf8ByteLength(value) > 255);
87
+ }
88
+ function isWellFormed(value) {
89
+ return !/[\uD800-\uDFFF]/u.test(value);
90
+ }
91
+ export class S3FileSystem {
92
+ async open(path, options) {
93
+ options.signal?.throwIfAborted();
94
+ throw new FsError("ENOTSUP", { syscall: "open", path });
95
+ }
96
+ capabilities;
97
+ readStream;
98
+ writeStream;
99
+ transport;
100
+ bucket;
101
+ prefix;
102
+ allowRename;
103
+ pageSize;
104
+ maxReadBytes;
105
+ maxStreamBytes;
106
+ maxListEntries;
107
+ maxRequests;
108
+ requests = 0;
109
+ removalLimits;
110
+ removalBudgets = new WeakMap();
111
+ constructor(options) {
112
+ if (!options?.transport || ["headObject", "getObject", "putObject", "deleteObject", "copyObject", "listObjectsV2"]
113
+ .some((method) => typeof options.transport[method] !== "function")) {
114
+ throw new FsError("EINVAL", { message: "an explicit six-operation S3 transport is required; no default credentials or network client are created" });
115
+ }
116
+ if (options.compareEntry !== undefined && typeof options.compareEntry !== "function") {
117
+ throw new FsError("EINVAL", { message: "compareEntry must be a filesystem comparison callback" });
118
+ }
119
+ if (typeof options.bucket !== "string" || !options.bucket || /[/:\0]/.test(options.bucket)) {
120
+ throw new FsError("EINVAL", { message: "bucket must be a nonempty bucket name, not a URL or ARN" });
121
+ }
122
+ const prefix = options.prefix ?? "";
123
+ if (typeof prefix !== "string" || prefix.includes("\0") || !isWellFormed(prefix)
124
+ || (prefix !== "" && prefix.replace(/\/$/, "").split("/").some((part) => !part || part === "." || part === ".."))) {
125
+ throw new FsError("EINVAL", { message: "prefix must be a canonical relative object-key prefix" });
126
+ }
127
+ this.prefix = prefix === "" || prefix.endsWith("/") ? prefix : `${prefix}/`;
128
+ if (utf8ByteLength(this.prefix) > 1024)
129
+ throw new FsError("ENAMETOOLONG", { message: "S3 prefix exceeds 1024 UTF-8 bytes" });
130
+ this.transport = options.transport;
131
+ this.bucket = options.bucket;
132
+ this.allowRename = options.allowNonAtomicRename ?? true;
133
+ this.pageSize = validateLimit(options.pageSize ?? 1000, "pageSize", 1, 1000);
134
+ this.maxReadBytes = options.maxReadBytes === undefined ? Infinity : validateLimit(options.maxReadBytes, "maxReadBytes", 0, Infinity);
135
+ this.maxStreamBytes = options.maxStreamBytes === undefined ? Infinity : validateLimit(options.maxStreamBytes, "maxStreamBytes", 0, Infinity);
136
+ this.maxListEntries = options.maxListEntries === undefined ? Infinity : validateLimit(options.maxListEntries, "maxListEntries", 1, Infinity);
137
+ this.maxRequests = options.maxRequests === undefined ? Infinity : validateLimit(options.maxRequests, "maxRequests", 1, Infinity);
138
+ this.removalLimits = {
139
+ maxRequests: validateLimit(options.removalLimits?.maxRequests ?? Infinity, "removalLimits.maxRequests", 1, Infinity),
140
+ maxListEntries: validateLimit(options.removalLimits?.maxListEntries ?? Infinity, "removalLimits.maxListEntries", 1, Infinity),
141
+ maxDeleteObjects: validateLimit(options.removalLimits?.maxDeleteObjects ?? Infinity, "removalLimits.maxDeleteObjects", 1, Infinity),
142
+ };
143
+ this.capabilities = Object.freeze({
144
+ open: false,
145
+ read: true, stat: true, readdir: true, realpath: true, access: true,
146
+ write: true, explicitDirectories: true, implicitDirectories: true, mkdir: true, recursiveMkdir: true,
147
+ remove: true, removeDirectory: true, recursiveRemove: true, copy: true, readlink: false,
148
+ exclusiveCopy: options.transport.capabilities?.conditionalCopy === true,
149
+ append: options.transport.capabilities?.conditionalPut === true,
150
+ exclusiveCreate: options.transport.capabilities?.conditionalPut === true,
151
+ truncate: options.transport.capabilities?.conditionalPut === true,
152
+ atomicRenameNoReplace: false,
153
+ rename: this.allowRename && options.transport.capabilities?.conditionalDelete === true
154
+ && (options.transport.capabilities?.conditionalCopy === true || options.transport.capabilities?.conditionalPut === true),
155
+ // Conditional append currently collects the old and incoming bodies.
156
+ streamingAppend: false,
157
+ randomAccessWrite: false,
158
+ readOnly: options.readOnly ?? false,
159
+ symlinks: false, hardlinks: false, permissions: false,
160
+ timestamps: options.transport.capabilities?.conditionalCopy === true || options.transport.capabilities?.conditionalPut === true,
161
+ atomicRename: false, snapshotRmdir: true,
162
+ streamingRead: options.transport.capabilities?.streamingRead === true && typeof options.transport.getObjectStream === "function",
163
+ streamingWrite: options.transport.capabilities?.streamingWrite === true && typeof options.transport.putObjectStream === "function",
164
+ });
165
+ if (this.capabilities.streamingRead)
166
+ this.readStream = this.streamRead.bind(this);
167
+ if (this.capabilities.streamingWrite)
168
+ this.writeStream = this.streamWrite.bind(this);
169
+ const transport = this.transport;
170
+ const bucket = this.bucket;
171
+ const registeredPrefix = this.prefix;
172
+ registerS3EntryOwner(this, path => this.path(path), () => this.transport === transport
173
+ && this.bucket === bucket && this.prefix === registeredPrefix, s3Comparison, options.compareEntry);
174
+ registerEntryAuthority(this, compareOwnedS3Entries);
175
+ }
176
+ async compareEntry(path, peer, peerPath, options = {}) {
177
+ return compareEntries(this, path, peer, peerPath, options);
178
+ }
179
+ path(input) {
180
+ if (typeof input !== "string" || input.includes("\0") || !isWellFormed(input))
181
+ fail("EINVAL", "resolve", input, "invalid path string");
182
+ const components = [];
183
+ for (const part of input.split("/")) {
184
+ if (!part || part === ".")
185
+ continue;
186
+ if (part === "..") {
187
+ if (components.length === 0)
188
+ fail("EACCES", "resolve", input, "path attempts to escape the configured prefix");
189
+ components.pop();
190
+ }
191
+ else
192
+ components.push(part);
193
+ }
194
+ const path = `/${components.join("/")}`;
195
+ if (utf8ByteLength(this.key(path)) > 1024)
196
+ fail("ENAMETOOLONG", "resolve", input);
197
+ return path;
198
+ }
199
+ key(path) {
200
+ return this.prefix + path.slice(1);
201
+ }
202
+ directoryKey(path) {
203
+ const key = path === "/" ? this.prefix : `${this.key(path)}/`;
204
+ if (utf8ByteLength(key) > 1024)
205
+ fail("ENAMETOOLONG", "resolve", path);
206
+ return key;
207
+ }
208
+ checkAbort(options, syscall, path) {
209
+ if (options.signal?.aborted)
210
+ fail("ECANCELED", syscall, path);
211
+ }
212
+ requestOptions(options) {
213
+ return options.signal === undefined ? {} : { abortSignal: options.signal };
214
+ }
215
+ async call(syscall, path, options, action, precondition) {
216
+ this.checkAbort(options, syscall, path);
217
+ chargeScopedTransportCall(options);
218
+ this.checkAbort(options, syscall, path);
219
+ const budget = this.removalBudgets.get(options);
220
+ if (budget && ++budget.requests > this.removalLimits.maxRequests) {
221
+ fail("EFBIG", "rm", path, "S3 removal request budget exceeded");
222
+ }
223
+ if (this.requests >= this.maxRequests) {
224
+ fail("EFBIG", syscall, path, "S3 transport request budget exceeded");
225
+ }
226
+ this.requests++;
227
+ let onAbort;
228
+ try {
229
+ const pending = action();
230
+ const result = options.signal ? await new Promise((resolve, reject) => {
231
+ const signal = options.signal;
232
+ onAbort = () => reject(new FsError("ECANCELED", { syscall, path, cause: signal.reason }));
233
+ signal.addEventListener("abort", onAbort, { once: true });
234
+ if (signal.aborted)
235
+ onAbort();
236
+ pending.then(value => {
237
+ if (signal.aborted && typeof value === "object" && value !== null && "Body" in value)
238
+ this.dispose(value.Body);
239
+ resolve(value);
240
+ }, reject);
241
+ }) : await pending;
242
+ this.checkAbort(options, syscall, path);
243
+ return result;
244
+ }
245
+ catch (error) {
246
+ if (options.signal?.aborted)
247
+ fail("ECANCELED", syscall, path);
248
+ throw translate(error, syscall, path, precondition);
249
+ }
250
+ finally {
251
+ if (onAbort)
252
+ options.signal?.removeEventListener("abort", onAbort);
253
+ }
254
+ }
255
+ writable(path, mode) {
256
+ if (this.capabilities.readOnly)
257
+ fail("EROFS", "write", path);
258
+ if (mode !== undefined)
259
+ validateLimit(mode, "mode", 0, 0o7777);
260
+ }
261
+ unsupported(operation, path) {
262
+ return fail("ENOTSUP", operation, path, `S3 does not support ${operation} with the configured transport`);
263
+ }
264
+ async head(key, path, options) {
265
+ try {
266
+ const input = { Bucket: this.bucket, Key: key };
267
+ return await this.call("headObject", path, options, () => queryS3Head(input, query => this.transport.headObject(query, this.requestOptions(options))));
268
+ }
269
+ catch (error) {
270
+ if (isFsError(error, "ENOENT") && serviceCode(error.cause) !== "NoSuchBucket")
271
+ return undefined;
272
+ throw error;
273
+ }
274
+ }
275
+ makeStat(type, metadata) {
276
+ const size = type === "directory" ? 0 : metadata?.ContentLength;
277
+ if (size === undefined || !Number.isSafeInteger(size) || size < 0)
278
+ fail("EIO", "stat", "", "transport omitted a valid object ContentLength");
279
+ const modified = metadata?.LastModified?.getTime() ?? 0;
280
+ if (!Number.isFinite(modified))
281
+ fail("EIO", "stat", "", "transport returned an invalid LastModified");
282
+ const timestamp = (key, fallback) => {
283
+ const value = metadata?.Metadata?.[key];
284
+ if (value === undefined)
285
+ return fallback;
286
+ const parsed = Number(value);
287
+ if (!value || !Number.isFinite(parsed))
288
+ fail("EIO", "stat", "", "invalid virtual timestamp metadata");
289
+ return parsed;
290
+ };
291
+ const storedMode = metadata?.Metadata?.["virtual-bash-mode"];
292
+ const mode = storedMode === undefined ? (type === "directory" ? 0o755 : 0o644) : Number(storedMode);
293
+ if (!Number.isSafeInteger(mode) || mode < 0 || mode > 0o7777 || storedMode === "")
294
+ fail("EIO", "stat", "", "invalid virtual mode metadata");
295
+ return { type, size, mode: (type === "directory" ? 0o40000 : 0o100000) | mode,
296
+ mtimeMs: timestamp("virtual-bash-mtime", modified), atimeMs: timestamp("virtual-bash-atime", 0), ctimeMs: modified };
297
+ }
298
+ async page(prefix, path, options, delimiter, token, maxKeys = this.pageSize) {
299
+ const budget = this.removalBudgets.get(options);
300
+ if (budget)
301
+ maxKeys = Math.min(maxKeys, this.removalLimits.maxListEntries - budget.entries + 1);
302
+ const result = await this.call("listObjectsV2", path, options, () => this.transport.listObjectsV2({
303
+ Bucket: this.bucket, Prefix: prefix, MaxKeys: maxKeys,
304
+ ...(delimiter === undefined ? {} : { Delimiter: delimiter }),
305
+ ...(token === undefined ? {} : { ContinuationToken: token }),
306
+ }, this.requestOptions(options)));
307
+ if (budget) {
308
+ budget.entries += (result.Contents?.length ?? 0) + (result.CommonPrefixes?.length ?? 0);
309
+ if (budget.entries > this.removalLimits.maxListEntries)
310
+ fail("EFBIG", "rm", path, "S3 removal listing budget exceeded");
311
+ }
312
+ for (const item of result.Contents ?? []) {
313
+ if (typeof item.Key !== "string" || !item.Key.startsWith(prefix))
314
+ fail("EIO", "listObjectsV2", path, "transport returned an object outside the requested prefix");
315
+ this.validateObject(item, path);
316
+ }
317
+ for (const item of result.CommonPrefixes ?? []) {
318
+ if (delimiter === undefined || typeof item.Prefix !== "string" || !item.Prefix.startsWith(prefix)
319
+ || !item.Prefix.endsWith("/") || item.Prefix === prefix)
320
+ fail("EIO", "listObjectsV2", path, "invalid common prefix");
321
+ this.validateKey(item.Prefix, path);
322
+ }
323
+ if (result.IsTruncated !== undefined && typeof result.IsTruncated !== "boolean")
324
+ fail("EIO", "listObjectsV2", path, "invalid IsTruncated flag");
325
+ return result;
326
+ }
327
+ validateKey(key, path) {
328
+ if (!key.startsWith(this.prefix))
329
+ fail("EIO", "listObjectsV2", path, "key escapes the configured prefix");
330
+ const relative = key.slice(this.prefix.length).replace(/\/$/, "");
331
+ if (!isWellFormed(key) || key.includes("\0") || utf8ByteLength(key) > 1024
332
+ || (relative !== "" && relative.split("/").some((part) => !part || part === "." || part === ".."))) {
333
+ fail("ENOTSUP", "listObjectsV2", path, "object key cannot be represented as a canonical filesystem path");
334
+ }
335
+ }
336
+ validateObject(object, path) {
337
+ const key = object.Key;
338
+ this.validateKey(key, path);
339
+ if (object.Size === undefined || !Number.isSafeInteger(object.Size) || object.Size < 0)
340
+ fail("EIO", "listObjectsV2", path, "invalid object size");
341
+ if (key.endsWith("/") && object.Size !== 0)
342
+ fail("ENOTSUP", "listObjectsV2", path, "nonempty slash-suffixed objects cannot be treated as directories");
343
+ }
344
+ async *pages(prefix, path, options, delimiter, maxKeys = this.pageSize, rememberTokens = true) {
345
+ // Buffered callers preserve exact repeated-token rejection. Lazy traversal
346
+ // detects continuation cycles without retaining the whole token history.
347
+ const tokens = rememberTokens ? new Set() : undefined;
348
+ let token, checkpoint;
349
+ let entries = 0, pageCount = 0, span = 0, power = 1;
350
+ do {
351
+ const page = await this.page(prefix, path, options, delimiter, token, maxKeys);
352
+ entries += (page.Contents?.length ?? 0) + (page.CommonPrefixes?.length ?? 0);
353
+ if (entries > this.maxListEntries || ++pageCount > this.maxListEntries)
354
+ fail("EFBIG", "listObjectsV2", path, "listing exceeds maxListEntries");
355
+ const truncated = page.IsTruncated, next = page.NextContinuationToken;
356
+ yield page;
357
+ if (!truncated)
358
+ return;
359
+ if (typeof next !== "string" || !next || next === token || next === checkpoint || tokens?.has(next))
360
+ fail("EIO", "listObjectsV2", path, "missing or repeated continuation token");
361
+ if (++span === power) {
362
+ checkpoint = next;
363
+ span = 0;
364
+ power = Math.min(Number.MAX_SAFE_INTEGER, power * 2);
365
+ }
366
+ tokens?.add(next);
367
+ token = next;
368
+ } while (true);
369
+ }
370
+ async inspect(path, options, rememberTokens = true) {
371
+ if (path === "/") {
372
+ const listing = await this.page(this.prefix, path, options, undefined, undefined, 1);
373
+ const marker = this.prefix && listing.Contents?.some(object => object.Key === this.prefix)
374
+ ? await this.head(this.prefix, path, options) : undefined;
375
+ if (marker && marker.ContentLength !== 0)
376
+ this.unsupported("nonempty directory markers", path);
377
+ return { stat: this.makeStat("directory", marker), ...(marker ? { metadata: marker } : {}) };
378
+ }
379
+ const file = await this.head(this.key(path), path, options);
380
+ if (utf8ByteLength(this.key(path)) === 1024) {
381
+ return file ? { stat: this.makeStat("file", file), metadata: file } : undefined;
382
+ }
383
+ const directoryKey = this.directoryKey(path);
384
+ let directory = false;
385
+ let hasMarker = false;
386
+ for await (const children of this.pages(directoryKey, path, options, undefined, 1, rememberTokens)) {
387
+ if ((children.Contents?.length ?? 0) > 0) {
388
+ directory = true;
389
+ hasMarker = children.Contents.some(object => object.Key === directoryKey);
390
+ break;
391
+ }
392
+ }
393
+ const marker = hasMarker ? await this.head(directoryKey, path, options) : undefined;
394
+ if (marker && marker.ContentLength !== 0)
395
+ this.unsupported("nonempty directory markers", path);
396
+ if (file && directory)
397
+ this.unsupported("file/prefix collisions", path);
398
+ if (file)
399
+ return { stat: this.makeStat("file", file), metadata: file };
400
+ if (directory)
401
+ return { stat: this.makeStat("directory", marker), ...(marker ? { metadata: marker } : {}) };
402
+ return undefined;
403
+ }
404
+ async lookup(path, options, rememberTokens = true) {
405
+ const ancestors = [];
406
+ for (let parent = posix.dirname(path); path !== "/"; parent = posix.dirname(parent)) {
407
+ ancestors.unshift(parent);
408
+ if (parent === "/")
409
+ break;
410
+ }
411
+ for (const parent of ancestors) {
412
+ if (parent === "/" && this.prefix === "")
413
+ continue;
414
+ const ancestor = await this.inspect(parent, options, rememberTokens);
415
+ if (!ancestor)
416
+ fail("ENOENT", "stat", parent);
417
+ if (ancestor.stat.type !== "directory")
418
+ fail("ENOTDIR", "stat", parent);
419
+ }
420
+ return this.inspect(path, options, rememberTokens);
421
+ }
422
+ requireDirectorySuffix(input, info) {
423
+ if (input.endsWith("/") && info?.stat.type === "file")
424
+ fail("ENOTDIR", "stat", input);
425
+ }
426
+ async stat(input, options = {}) {
427
+ const path = this.path(input);
428
+ const info = await this.lookup(path, options);
429
+ this.requireDirectorySuffix(input, info);
430
+ if (!info)
431
+ fail("ENOENT", "stat", input);
432
+ recordS3Stat(this, path, info.stat, info.metadata);
433
+ return info.stat;
434
+ }
435
+ async lstat(path, options = {}) {
436
+ return this.stat(path, options);
437
+ }
438
+ async body(output, path, options) {
439
+ const limit = Math.min(this.maxReadBytes, options.maxBytes === undefined ? this.maxReadBytes : validateLimit(options.maxBytes, "maxBytes", 0, Infinity));
440
+ let iterator;
441
+ return this.call("readFile", path, options, async () => {
442
+ if (output.Body && Symbol.asyncIterator in output.Body)
443
+ iterator = output.Body[Symbol.asyncIterator]();
444
+ if (output.ContentLength !== undefined && output.ContentLength > limit)
445
+ fail("EFBIG", "readFile", path);
446
+ const body = output.Body;
447
+ if (!body)
448
+ fail("EIO", "readFile", path, "transport omitted the response body");
449
+ let bytes;
450
+ if (body instanceof Uint8Array) {
451
+ if (body.byteLength > limit)
452
+ fail("EFBIG", "readFile", path);
453
+ bytes = new Uint8Array(body);
454
+ }
455
+ else if (Symbol.asyncIterator in body) {
456
+ bytes = await collectBytes({ [Symbol.asyncIterator]: () => iterator }, { ...(limit === Infinity ? {} : { maxBytes: limit }), ...(options.signal ? { signal: options.signal } : {}) });
457
+ }
458
+ else if ("transformToByteArray" in body) {
459
+ const converted = await body.transformToByteArray();
460
+ if (!(converted instanceof Uint8Array))
461
+ fail("EIO", "readFile", path, "transport body is not binary");
462
+ if (converted.byteLength > limit)
463
+ fail("EFBIG", "readFile", path);
464
+ bytes = new Uint8Array(converted);
465
+ }
466
+ else
467
+ fail("EIO", "readFile", path, "unsupported response body");
468
+ this.checkAbort(options, "readFile", path);
469
+ if (output.ContentLength !== undefined && output.ContentLength !== bytes.byteLength)
470
+ fail("EIO", "readFile", path, "response body length does not match ContentLength");
471
+ return bytes;
472
+ }).catch((error) => {
473
+ this.dispose(iterator);
474
+ if (output.Body !== iterator)
475
+ this.dispose(output.Body, iterator === undefined);
476
+ throw error;
477
+ });
478
+ }
479
+ async get(path, options) {
480
+ return this.call("getObject", path, options, () => this.transport.getObject({ Bucket: this.bucket, Key: this.key(path) }, this.requestOptions(options)));
481
+ }
482
+ async readFile(input, options = {}) {
483
+ const path = this.path(input);
484
+ if (options.maxBytes !== undefined)
485
+ validateLimit(options.maxBytes, "maxBytes", 0, Infinity);
486
+ const info = await this.stat(input, options);
487
+ if (info.type === "directory")
488
+ fail("EISDIR", "readFile", path);
489
+ if (info.size > Math.min(this.maxReadBytes, options.maxBytes ?? this.maxReadBytes))
490
+ fail("EFBIG", "readFile", path);
491
+ const output = this.capabilities.streamingRead
492
+ ? await this.call("getObject", path, options, () => this.transport.getObjectStream({ Bucket: this.bucket, Key: this.key(path) }, this.requestOptions(options)))
493
+ : await this.get(path, options);
494
+ return this.body(output, path, options);
495
+ }
496
+ etag(metadata, path) {
497
+ if (!metadata?.ETag)
498
+ this.unsupported("conditional mutation without an ETag", path);
499
+ return metadata.ETag;
500
+ }
501
+ async writeFile(input, data, options = {}) {
502
+ const path = this.path(input);
503
+ this.writable(path, options.mode);
504
+ if (!(data instanceof Uint8Array))
505
+ fail("EINVAL", "writeFile", path, "data must be Uint8Array");
506
+ const bytes = new Uint8Array(data);
507
+ if (bytes.byteLength > 5_000_000_000)
508
+ fail("EFBIG", "writeFile", path, "multipart upload is not supported");
509
+ const flag = options.flag ?? "w";
510
+ if (!["w", "wx", "a", "ax"].includes(flag))
511
+ fail("EINVAL", "writeFile", path, "invalid write flag");
512
+ if (flag !== "w" && !this.transport.capabilities?.conditionalPut)
513
+ this.unsupported("conditional writes", path);
514
+ const info = await this.lookup(path, options);
515
+ this.requireDirectorySuffix(input, info);
516
+ if (info?.stat.type === "directory")
517
+ fail("EISDIR", "writeFile", path);
518
+ if (input.endsWith("/"))
519
+ fail("EISDIR", "writeFile", input);
520
+ const exclusive = flag === "wx" || flag === "ax";
521
+ if (exclusive && info)
522
+ fail("EEXIST", "writeFile", path);
523
+ let body = bytes;
524
+ let match;
525
+ let metadata = this.writeMetadata(info?.metadata, options.mode);
526
+ if (flag === "a" && info) {
527
+ const current = await this.get(path, options);
528
+ const previous = await this.body(current, path, options);
529
+ match = this.etag(current, path);
530
+ metadata = { ...current.Metadata };
531
+ delete metadata["virtual-bash-mtime"];
532
+ if (previous.length + bytes.length > this.maxReadBytes)
533
+ fail("EFBIG", "appendFile", path);
534
+ body = new Uint8Array(previous.length + bytes.length);
535
+ body.set(previous);
536
+ body.set(bytes, previous.length);
537
+ }
538
+ await this.call("putObject", path, options, () => this.transport.putObject({
539
+ Bucket: this.bucket, Key: this.key(path), Body: body,
540
+ ...(match === undefined ? {} : { IfMatch: match }),
541
+ ...(exclusive || (flag === "a" && !info) ? { IfNoneMatch: "*" } : {}),
542
+ ...(metadata === undefined ? {} : { Metadata: metadata }),
543
+ }, this.requestOptions(options)), exclusive ? "EEXIST" : "EAGAIN");
544
+ }
545
+ writeMetadata(previous, mode) {
546
+ const metadata = { ...previous?.Metadata };
547
+ delete metadata["virtual-bash-mtime"];
548
+ if (previous === undefined && mode !== undefined)
549
+ metadata["virtual-bash-mode"] = String(mode);
550
+ return Object.keys(metadata).length === 0 ? undefined : metadata;
551
+ }
552
+ async appendFile(path, data, options = {}) {
553
+ return this.writeFile(path, data, { ...options, flag: "a" });
554
+ }
555
+ async mkdir(input, options = {}) {
556
+ const path = this.path(input);
557
+ this.writable(path, options.mode);
558
+ if (options.recursive && path !== "/") {
559
+ await this.mkdir(posix.dirname(path), { ...options, recursive: true });
560
+ }
561
+ const info = await this.lookup(path, options);
562
+ if (info) {
563
+ if (options.recursive && info.stat.type === "directory")
564
+ return;
565
+ fail("EEXIST", "mkdir", path);
566
+ }
567
+ await this.call("putObject", path, options, () => this.transport.putObject({
568
+ Bucket: this.bucket, Key: this.directoryKey(path), Body: new Uint8Array(),
569
+ ...(options.mode === undefined ? {} : { Metadata: { "virtual-bash-mode": String(options.mode) } }),
570
+ ...(this.transport.capabilities?.conditionalPut ? { IfNoneMatch: "*" } : {}),
571
+ }, this.requestOptions(options)), "EEXIST");
572
+ }
573
+ async readdir(input, options = {}) {
574
+ let limit;
575
+ if (options.maxEntries !== undefined) {
576
+ this.checkAbort(options, "readdir", input);
577
+ limit = directoryEntryLimit(options, input);
578
+ }
579
+ const path = this.path(input);
580
+ if ((await this.stat(input, options)).type !== "directory")
581
+ fail("ENOTDIR", "readdir", path);
582
+ const prefix = this.directoryKey(path);
583
+ const entries = new Map();
584
+ const add = (name, type) => {
585
+ this.checkAbort(options, "readdir", path);
586
+ if (!name || name.includes("/"))
587
+ fail("EIO", "readdir", path, "invalid direct child in delimited listing");
588
+ const existing = entries.get(name);
589
+ if (existing && existing.type !== type)
590
+ this.unsupported("file/prefix collisions", path);
591
+ if (!existing)
592
+ admitDirectoryEntries(entries.size + 1, limit, path);
593
+ entries.set(name, { name, type });
594
+ };
595
+ const maxKeys = limit === undefined ? this.pageSize : Math.min(this.pageSize, limit + 1);
596
+ for await (const page of this.pages(prefix, path, options, "/", maxKeys)) {
597
+ for (const item of page.Contents ?? []) {
598
+ if (item.Key === prefix)
599
+ continue;
600
+ add(item.Key.slice(prefix.length), "file");
601
+ }
602
+ for (const item of page.CommonPrefixes ?? [])
603
+ add(item.Prefix.slice(prefix.length, -1), "directory");
604
+ }
605
+ return [...entries.values()].sort((left, right) => compareKeys(left.name, right.name));
606
+ }
607
+ async *iterateDirectory(input, options = {}) {
608
+ const path = this.path(input);
609
+ const directory = await this.lookup(path, options, false);
610
+ if (!directory)
611
+ fail("ENOENT", "iterateDirectory", path);
612
+ if (directory.stat.type !== "directory")
613
+ fail("ENOTDIR", "iterateDirectory", path);
614
+ const prefix = this.directoryKey(path);
615
+ for await (const page of this.pages(prefix, path, options, "/", this.pageSize, false)) {
616
+ // Snapshot one bounded service page before yielding to caller code.
617
+ if ((page.Contents?.length ?? 0) + (page.CommonPrefixes?.length ?? 0) > this.pageSize)
618
+ fail("EIO", "iterateDirectory", path, "transport exceeded requested page size");
619
+ const entries = [];
620
+ for (const item of page.Contents ?? [])
621
+ if (item.Key !== prefix)
622
+ entries.push({ name: item.Key.slice(prefix.length), type: "file" });
623
+ for (const item of page.CommonPrefixes ?? [])
624
+ entries.push({ name: item.Prefix.slice(prefix.length, -1), type: "directory" });
625
+ for (const entry of entries) {
626
+ this.checkAbort(options, "iterateDirectory", path);
627
+ if (!entry.name || entry.name.includes("/"))
628
+ fail("EIO", "iterateDirectory", path, "invalid direct child in delimited listing");
629
+ // Revalidation preserves file/prefix collision detection across pages
630
+ // and follows the backend's live namespace without retaining all names.
631
+ const child = await this.lookup(path === "/" ? `/${entry.name}` : `${path}/${entry.name}`, options, false);
632
+ this.checkAbort(options, "iterateDirectory", path);
633
+ if (child)
634
+ yield { name: entry.name, type: child.stat.type };
635
+ }
636
+ }
637
+ }
638
+ async tree(path, options) {
639
+ const objects = new Map();
640
+ for await (const page of this.pages(this.directoryKey(path), path, options)) {
641
+ for (const item of page.Contents ?? [])
642
+ objects.set(item.Key, item);
643
+ }
644
+ for (const key of objects.keys()) {
645
+ const withoutSlash = key.replace(/\/$/, "");
646
+ if (key.endsWith("/") && objects.has(withoutSlash))
647
+ this.unsupported("file/prefix collisions", path);
648
+ let parent = posix.dirname(withoutSlash);
649
+ while (parent !== "." && parent !== "/") {
650
+ if (objects.has(parent))
651
+ this.unsupported("file/prefix collisions", path);
652
+ parent = posix.dirname(parent);
653
+ }
654
+ }
655
+ return [...objects.values()];
656
+ }
657
+ async rmdir(input, options = {}) {
658
+ try {
659
+ const path = this.path(input);
660
+ this.checkAbort(options, "rmdir", input);
661
+ this.writable(path);
662
+ if (path === "/")
663
+ fail("EBUSY", "rmdir", input, "cannot remove the mounted root");
664
+ const info = await this.lookup(path, options);
665
+ this.checkAbort(options, "rmdir", input);
666
+ if (!info)
667
+ fail("ENOENT", "rmdir", input);
668
+ if (info.stat.type !== "directory")
669
+ fail("ENOTDIR", "rmdir", input);
670
+ const prefix = this.directoryKey(path);
671
+ let markerObserved = false;
672
+ for await (const page of this.pages(prefix, path, options, "/", Math.max(2, this.pageSize))) {
673
+ this.checkAbort(options, "rmdir", input);
674
+ if (page.Contents?.some(item => item.Key !== prefix) || page.CommonPrefixes?.length) {
675
+ fail("ENOTEMPTY", "rmdir", input);
676
+ }
677
+ if (page.IsTruncated === undefined)
678
+ fail("EIO", "rmdir", input, "listing did not confirm completeness");
679
+ if (page.Contents?.some(item => item.Key === prefix))
680
+ markerObserved = true;
681
+ }
682
+ this.checkAbort(options, "rmdir", input);
683
+ if (!info.metadata)
684
+ fail("ENOTSUP", "rmdir", input, "snapshot removal requires an explicit directory marker");
685
+ if (!markerObserved)
686
+ fail("ENOENT", "rmdir", input, "directory marker disappeared during inspection");
687
+ await this.call("deleteObject", path, options, () => this.transport.deleteObject({ Bucket: this.bucket, Key: prefix }, this.requestOptions(options)));
688
+ }
689
+ catch (error) {
690
+ if (isFsError(error) && (error.syscall !== "rmdir" || error.path !== input)) {
691
+ throw new FsError(error.code, { syscall: "rmdir", path: input, cause: error });
692
+ }
693
+ throw error;
694
+ }
695
+ }
696
+ async rm(input, options = {}) {
697
+ // A distinct options object keeps concurrent and nested operations isolated.
698
+ options = { ...options };
699
+ const budget = { requests: 0, entries: 0 };
700
+ this.removalBudgets.set(options, budget);
701
+ const path = this.path(input);
702
+ this.writable(path);
703
+ if (path === "/")
704
+ fail("EBUSY", "rm", path, "cannot remove the mounted root");
705
+ let info;
706
+ try {
707
+ info = await this.lookup(path, options);
708
+ }
709
+ catch (error) {
710
+ if (options.force && isFsError(error, "ENOENT") && serviceCode(error.cause) !== "NoSuchBucket")
711
+ return;
712
+ throw error;
713
+ }
714
+ this.requireDirectorySuffix(input, info);
715
+ if (!info) {
716
+ if (options.force)
717
+ return;
718
+ fail("ENOENT", "rm", path);
719
+ }
720
+ let objects;
721
+ if (info.stat.type === "directory" && !options.recursive) {
722
+ const prefix = this.directoryKey(path);
723
+ objects = [];
724
+ for await (const page of this.pages(prefix, path, options, undefined, 2)) {
725
+ if (page.Contents?.some(item => item.Key !== prefix))
726
+ fail("ENOTEMPTY", "rm", path);
727
+ if (page.Contents?.length)
728
+ objects = [{ Key: prefix }];
729
+ }
730
+ }
731
+ else {
732
+ objects = info.stat.type === "directory" ? await this.tree(path, options) : [{ Key: this.key(path) }];
733
+ }
734
+ // Reserve the complete mutation phase before issuing any deletes.
735
+ if (objects.length > this.removalLimits.maxDeleteObjects
736
+ || budget.requests + objects.length > this.removalLimits.maxRequests) {
737
+ fail("EFBIG", "rm", path, "S3 removal delete or request budget exceeded; use bounded batches");
738
+ }
739
+ for (const item of objects) {
740
+ await this.call("deleteObject", path, options, () => this.transport.deleteObject({ Bucket: this.bucket, Key: item.Key }, this.requestOptions(options)));
741
+ }
742
+ }
743
+ async copy(sourceKey, destinationKey, source, metadata, options, destination) {
744
+ if (metadata.ContentLength === undefined || metadata.ContentLength > 5_000_000_000)
745
+ this.unsupported("multipart copy", source);
746
+ const etag = this.etag(metadata, source);
747
+ const result = await this.call("copyObject", source, options, () => this.transport.copyObject({
748
+ Bucket: this.bucket, Key: destinationKey, CopySource: encodeCopySource(this.bucket, sourceKey),
749
+ CopySourceIfMatch: etag, MetadataDirective: "COPY",
750
+ ...(options.exclusive ? { IfNoneMatch: "*" } : {}),
751
+ ...(destination === undefined ? {} : destination === null ? { IfNoneMatch: "*" } : { IfMatch: this.etag(destination, source) }),
752
+ }, this.requestOptions(options)));
753
+ if (!result.CopyObjectResult?.ETag)
754
+ fail("EIO", "copyObject", source, "transport did not confirm a completed CopyObject result");
755
+ }
756
+ async copyFile(sourceInput, destinationInput, options = {}) {
757
+ const source = this.path(sourceInput);
758
+ const destination = this.path(destinationInput);
759
+ this.writable(destination);
760
+ if (options.exclusive && !this.transport.capabilities?.conditionalCopy)
761
+ this.unsupported("exclusive server-side copy", destination);
762
+ const origin = await this.lookup(source, options);
763
+ this.requireDirectorySuffix(sourceInput, origin);
764
+ if (!origin)
765
+ fail("ENOENT", "copyFile", source);
766
+ if (origin.stat.type === "directory")
767
+ fail("EISDIR", "copyFile", source);
768
+ const target = await this.lookup(destination, options);
769
+ this.requireDirectorySuffix(destinationInput, target);
770
+ if (target?.stat.type === "directory" || destinationInput.endsWith("/"))
771
+ fail("EISDIR", "copyFile", destination);
772
+ if (target && options.exclusive)
773
+ fail("EEXIST", "copyFile", destination);
774
+ if (source === destination)
775
+ return;
776
+ try {
777
+ await this.copy(this.key(source), this.key(destination), source, origin.metadata, options);
778
+ }
779
+ catch (error) {
780
+ if (!options.exclusive || !isFsError(error, "EAGAIN"))
781
+ throw error;
782
+ const status = error.cause?.$metadata?.httpStatusCode;
783
+ if (serviceCode(error.cause) !== "PreconditionFailed" && status !== 412)
784
+ throw error;
785
+ let destinationExists = false;
786
+ try {
787
+ const currentSource = await this.head(this.key(source), source, options);
788
+ if (currentSource?.ETag === origin.metadata?.ETag) {
789
+ destinationExists = await this.head(this.key(destination), destination, options) !== undefined;
790
+ }
791
+ }
792
+ catch (diagnosticError) {
793
+ if (isFsError(diagnosticError, "ECANCELED"))
794
+ throw diagnosticError;
795
+ }
796
+ if (destinationExists) {
797
+ throw new FsError("EEXIST", { syscall: "copyFile", path: source, dest: destination, cause: error });
798
+ }
799
+ throw error;
800
+ }
801
+ }
802
+ async rename(sourceInput, destinationInput, options = {}) {
803
+ if (options.noReplace) {
804
+ options.signal?.throwIfAborted();
805
+ this.unsupported("atomic no-replace rename", sourceInput);
806
+ }
807
+ const source = this.path(sourceInput);
808
+ const destination = this.path(destinationInput);
809
+ this.writable(destination);
810
+ if (!this.allowRename)
811
+ this.unsupported("atomic rename; explicitly enable allowNonAtomicRename for copy/delete semantics", source);
812
+ if (!this.transport.capabilities?.conditionalDelete)
813
+ this.unsupported("rename without conditional delete", source);
814
+ const conditionalCopy = this.transport.capabilities?.conditionalCopy === true;
815
+ if (!conditionalCopy && this.transport.capabilities?.conditionalPut !== true) {
816
+ this.unsupported("rename requires conditional destination copy or conditional PUT, plus conditional delete", source);
817
+ }
818
+ const streamFallback = this.capabilities.streamingRead && this.capabilities.streamingWrite;
819
+ if (source === "/" || destination === "/")
820
+ fail("EBUSY", "rename", source);
821
+ const origin = await this.lookup(source, options);
822
+ this.requireDirectorySuffix(sourceInput, origin);
823
+ if (!origin)
824
+ fail("ENOENT", "rename", source);
825
+ if (source === destination) {
826
+ this.requireDirectorySuffix(destinationInput, origin);
827
+ return;
828
+ }
829
+ if (destination.startsWith(`${source}/`))
830
+ fail("EINVAL", "rename", destination, "cannot move a path into itself");
831
+ const target = await this.lookup(destination, options);
832
+ this.requireDirectorySuffix(destinationInput, target);
833
+ if (destinationInput.endsWith("/") && origin.stat.type !== "directory")
834
+ fail("ENOTDIR", "rename", destination);
835
+ if (target && target.stat.type !== origin.stat.type)
836
+ fail(target.stat.type === "directory" ? "EISDIR" : "ENOTDIR", "rename", destination);
837
+ if (target?.stat.type === "directory" && (await this.readdir(destination, options)).length > 0)
838
+ fail("ENOTEMPTY", "rename", destination);
839
+ if (target?.metadata)
840
+ this.etag(target.metadata, destination);
841
+ const objects = origin.stat.type === "directory" ? await this.tree(source, options) : [{
842
+ Key: this.key(source), Size: origin.stat.size, ETag: origin.metadata?.ETag,
843
+ }];
844
+ for (const object of objects) {
845
+ this.etag({ ETag: object.ETag }, source);
846
+ if (object.Size === undefined || object.Size > 5_000_000_000)
847
+ this.unsupported("multipart copy", source);
848
+ if (!conditionalCopy && object.Size > (streamFallback ? this.maxStreamBytes : this.maxReadBytes)) {
849
+ fail("EFBIG", "rename", source, "conditional PUT fallback exceeds its configured transfer or buffered read limit");
850
+ }
851
+ if (utf8ByteLength(this.key(destination) + object.Key.slice(this.key(source).length)) > 1024)
852
+ fail("ENAMETOOLONG", "rename", destination);
853
+ }
854
+ const copied = [];
855
+ const deleted = [];
856
+ let phase = "copy";
857
+ try {
858
+ for (const object of objects) {
859
+ const destinationKey = this.key(destination) + object.Key.slice(this.key(source).length);
860
+ const destinationMetadata = origin.stat.type === "file" || object.Key === this.directoryKey(source) ? target?.metadata ?? null : null;
861
+ const metadata = { ContentLength: object.Size, ETag: object.ETag };
862
+ if (conditionalCopy)
863
+ await this.copy(object.Key, destinationKey, source, metadata, options, destinationMetadata);
864
+ else
865
+ await this.copyWithPut(object.Key, destinationKey, source, metadata, destinationMetadata, options, streamFallback);
866
+ copied.push(destinationKey);
867
+ }
868
+ phase = "delete";
869
+ for (const object of objects) {
870
+ await this.call("deleteObject", source, options, () => this.transport.deleteObject({
871
+ Bucket: this.bucket, Key: object.Key, IfMatch: object.ETag,
872
+ }, this.requestOptions(options)));
873
+ deleted.push(object.Key);
874
+ }
875
+ }
876
+ catch (error) {
877
+ throw new S3RenameError(source, destination, phase, copied, deleted, translate(error, "rename", source));
878
+ }
879
+ }
880
+ async copyWithPut(sourceKey, destinationKey, source, expected, destination, options, streaming) {
881
+ const etag = this.etag(expected, source);
882
+ const condition = destination === null ? { IfNoneMatch: "*" } : { IfMatch: this.etag(destination, destinationKey) };
883
+ const controller = new AbortController();
884
+ const signalScope = options.signal ? composeAbortSignals([options.signal, controller.signal]) : undefined;
885
+ const signal = signalScope?.signal ?? controller.signal;
886
+ const operationOptions = { signal };
887
+ let output;
888
+ let upload;
889
+ let reading = false;
890
+ try {
891
+ output = await this.call("getObject", source, operationOptions, () => streaming
892
+ ? this.transport.getObjectStream({ Bucket: this.bucket, Key: sourceKey, IfMatch: etag }, { abortSignal: signal })
893
+ : this.transport.getObject({ Bucket: this.bucket, Key: sourceKey }, { abortSignal: signal }));
894
+ if (this.etag(output, source) !== etag)
895
+ fail("EAGAIN", "rename", source, "source changed before conditional PUT copy");
896
+ if (output.ContentLength !== undefined && output.ContentLength !== expected.ContentLength) {
897
+ fail("EIO", "rename", source, "source response length differs from the enumerated object");
898
+ }
899
+ const input = { Bucket: this.bucket, Key: destinationKey, ...condition,
900
+ ...(output.Metadata === undefined ? {} : { Metadata: { ...output.Metadata } }) };
901
+ if (!streaming) {
902
+ const body = await this.body(output, source, operationOptions);
903
+ if (body.length !== expected.ContentLength)
904
+ fail("EIO", "rename", source, "source body length differs from the enumerated object");
905
+ await this.call("putObject", source, operationOptions, () => this.transport.putObject({ ...input, Body: body }, { abortSignal: signal }));
906
+ return;
907
+ }
908
+ const body = output.Body;
909
+ if (!body || !(Symbol.asyncIterator in body))
910
+ fail("EIO", "rename", source, "streaming transport did not return an async binary body");
911
+ let finished = false;
912
+ upload = (async function* () {
913
+ let count = 0;
914
+ reading = true;
915
+ for await (const chunk of readBytes(body, signal)) {
916
+ if (chunk.length > expected.ContentLength - count)
917
+ fail("EIO", "rename", source, "source body exceeds its enumerated length");
918
+ count += chunk.length;
919
+ for (let offset = 0; offset < chunk.length; offset += 64 * 1024) {
920
+ signal.throwIfAborted();
921
+ yield new Uint8Array(chunk.subarray(offset, offset + 64 * 1024));
922
+ }
923
+ }
924
+ if (count !== expected.ContentLength)
925
+ fail("EIO", "rename", source, "incomplete source body");
926
+ finished = true;
927
+ })();
928
+ await this.call("putObject", source, operationOptions, () => this.transport.putObjectStream({ ...input, Body: upload }, { abortSignal: signal }));
929
+ if (!finished)
930
+ fail("EIO", "rename", source, "transport completed without consuming the conditional copy body");
931
+ }
932
+ finally {
933
+ controller.abort();
934
+ signalScope?.dispose();
935
+ this.dispose(upload);
936
+ this.dispose(output?.Body, !reading);
937
+ }
938
+ }
939
+ async realpath(input, options = {}) {
940
+ await this.stat(input, options);
941
+ return this.path(input);
942
+ }
943
+ async access(path, mode = 0, options = {}) {
944
+ if (!Number.isInteger(mode) || mode < 0 || mode > 7)
945
+ fail("EINVAL", "access", path);
946
+ const info = await this.stat(path, options);
947
+ if ((mode & 2) !== 0 && this.capabilities.readOnly)
948
+ fail("EROFS", "access", path);
949
+ if ((mode & 1) !== 0 && info.type !== "directory")
950
+ fail("EACCES", "access", path);
951
+ }
952
+ async readlink(path) { return this.unsupported("readlink", path); }
953
+ async symlink(_target, path) { this.unsupported("symlink", path); }
954
+ async link(_existingPath, path) { this.unsupported("link", path); }
955
+ async chmod(path, _mode) { this.unsupported("chmod", path); }
956
+ async utimes(input, atimeMs, mtimeMs, options = {}) {
957
+ const path = this.path(input);
958
+ this.writable(path);
959
+ if (!Number.isFinite(atimeMs) || !Number.isFinite(mtimeMs))
960
+ fail("EINVAL", "utimes", path);
961
+ const info = await this.lookup(path, options);
962
+ this.requireDirectorySuffix(input, info);
963
+ if (!info)
964
+ fail("ENOENT", "utimes", path);
965
+ if (!this.capabilities.timestamps)
966
+ this.unsupported("conditional metadata mutation", path);
967
+ const key = info.stat.type === "directory" ? this.directoryKey(path) : this.key(path);
968
+ if (!key)
969
+ this.unsupported("timestamps on an unprefixed bucket root", path);
970
+ const metadata = { ...info.metadata?.Metadata,
971
+ "virtual-bash-atime": String(atimeMs), "virtual-bash-mtime": String(mtimeMs) };
972
+ if (!info.metadata) {
973
+ if (!this.transport.capabilities?.conditionalPut)
974
+ this.unsupported("conditional directory marker creation", path);
975
+ await this.call("utimes", path, options, () => this.transport.putObject({
976
+ Bucket: this.bucket, Key: key, Body: new Uint8Array(), Metadata: metadata, IfNoneMatch: "*",
977
+ }, this.requestOptions(options)));
978
+ return;
979
+ }
980
+ if (!this.transport.capabilities?.conditionalCopy) {
981
+ const current = await this.call("getObject", path, options, () => this.transport.getObject({
982
+ Bucket: this.bucket, Key: key,
983
+ }, this.requestOptions(options)));
984
+ const body = await this.body(current, path, options);
985
+ await this.call("utimes", path, options, () => this.transport.putObject({
986
+ Bucket: this.bucket, Key: key, Body: body, IfMatch: this.etag(current, path),
987
+ Metadata: { ...current.Metadata, "virtual-bash-atime": String(atimeMs), "virtual-bash-mtime": String(mtimeMs) },
988
+ }, this.requestOptions(options)));
989
+ return;
990
+ }
991
+ if (info.stat.size > 5_000_000_000)
992
+ this.unsupported("multipart metadata copy", path);
993
+ const etag = this.etag(info.metadata, path);
994
+ const result = await this.call("utimes", path, options, () => this.transport.copyObject({
995
+ Bucket: this.bucket, Key: key, CopySource: encodeCopySource(this.bucket, key),
996
+ CopySourceIfMatch: etag, IfMatch: etag, MetadataDirective: "REPLACE", Metadata: metadata,
997
+ }, this.requestOptions(options)));
998
+ if (!result.CopyObjectResult?.ETag)
999
+ fail("EIO", "utimes", path, "transport did not confirm a completed metadata copy");
1000
+ }
1001
+ async truncate(input, length = 0, options = {}) {
1002
+ const path = this.path(input);
1003
+ this.writable(path);
1004
+ validateLimit(length, "length", 0);
1005
+ const info = await this.lookup(path, options);
1006
+ this.requireDirectorySuffix(input, info);
1007
+ if (!info)
1008
+ fail("ENOENT", "truncate", path);
1009
+ if (info.stat.type === "directory")
1010
+ fail("EISDIR", "truncate", path);
1011
+ if (!this.transport.capabilities?.conditionalPut)
1012
+ this.unsupported("conditional truncate", path);
1013
+ if (length > this.maxReadBytes)
1014
+ fail("EFBIG", "truncate", path);
1015
+ let current = info.metadata;
1016
+ const body = new Uint8Array(length);
1017
+ if (length !== 0 && info.stat.size !== 0) {
1018
+ if (this.readStream) {
1019
+ const previous = await this.call("truncate", path, options, () => collectBytes(this.readStream(input, { ...options, endExclusive: Math.min(length, info.stat.size) }), { ...options, maxBytes: length }));
1020
+ body.set(previous);
1021
+ }
1022
+ else {
1023
+ const output = await this.get(path, options);
1024
+ const previous = await this.body(output, path, options);
1025
+ current = output;
1026
+ body.set(previous.subarray(0, length));
1027
+ }
1028
+ }
1029
+ const metadata = { ...current.Metadata };
1030
+ delete metadata["virtual-bash-mtime"];
1031
+ await this.call("truncate", path, options, () => this.transport.putObject({
1032
+ Bucket: this.bucket, Key: this.key(path), Body: body, IfMatch: this.etag(current, path), Metadata: metadata,
1033
+ }, this.requestOptions(options)));
1034
+ }
1035
+ async *streamRead(input, options = {}) {
1036
+ const path = this.path(input);
1037
+ const start = validateLimit(options.start ?? 0, "start", 0);
1038
+ const end = options.endExclusive === undefined ? undefined : validateLimit(options.endExclusive, "endExclusive", start);
1039
+ const chunkSize = validateLimit(options.chunkSize ?? 64 * 1024, "chunkSize", 1);
1040
+ const info = await this.lookup(path, options);
1041
+ this.requireDirectorySuffix(input, info);
1042
+ if (!info)
1043
+ fail("ENOENT", "readStream", path);
1044
+ if (info.stat.type === "directory")
1045
+ fail("EISDIR", "readStream", path);
1046
+ const stop = Math.min(end ?? info.stat.size, info.stat.size);
1047
+ const expected = Math.max(0, stop - start);
1048
+ if (expected > this.maxStreamBytes)
1049
+ fail("EFBIG", "readStream", path);
1050
+ if (expected === 0 && info.stat.size !== 0)
1051
+ return;
1052
+ let count = 0;
1053
+ let finished = false;
1054
+ const controller = new AbortController();
1055
+ const signalScope = options.signal ? composeAbortSignals([options.signal, controller.signal]) : undefined;
1056
+ const signal = signalScope?.signal ?? controller.signal;
1057
+ let output;
1058
+ let iterator;
1059
+ try {
1060
+ output = await this.call("getObject", path, options, () => this.transport.getObjectStream({
1061
+ Bucket: this.bucket, Key: this.key(path), IfMatch: this.etag(info.metadata, path),
1062
+ ...(expected === 0 || (start === 0 && stop === info.stat.size) ? {} : { Range: `bytes=${start}-${stop - 1}` }),
1063
+ }, { abortSignal: signal }));
1064
+ if (output.ETag !== undefined && output.ETag !== info.metadata?.ETag)
1065
+ fail("EIO", "readStream", path, "response ETag differs from requested snapshot");
1066
+ if (output.ContentLength !== undefined && output.ContentLength !== expected)
1067
+ fail("EIO", "readStream", path, "response length differs from requested snapshot");
1068
+ iterator = readBytes(output.Body, signal)[Symbol.asyncIterator]();
1069
+ while (true) {
1070
+ const result = await iterator.next();
1071
+ if (result.done)
1072
+ break;
1073
+ const chunk = result.value;
1074
+ if (chunk.length > expected - count)
1075
+ fail("EIO", "readStream", path, "response exceeds requested length");
1076
+ count += chunk.length;
1077
+ for (let offset = 0; offset < chunk.length; offset += chunkSize) {
1078
+ this.checkAbort(options, "readStream", path);
1079
+ yield new Uint8Array(chunk.subarray(offset, offset + chunkSize));
1080
+ }
1081
+ }
1082
+ if (count !== expected)
1083
+ fail("EIO", "readStream", path, "incomplete response body");
1084
+ finished = true;
1085
+ }
1086
+ catch (error) {
1087
+ this.checkAbort(options, "readStream", path);
1088
+ throw translate(error, "readStream", path);
1089
+ }
1090
+ finally {
1091
+ controller.abort();
1092
+ signalScope?.dispose();
1093
+ if (!finished && output) {
1094
+ this.dispose(iterator);
1095
+ this.dispose(output.Body, iterator === undefined);
1096
+ }
1097
+ }
1098
+ }
1099
+ dispose(body, returnIterator = true) {
1100
+ const disposable = body;
1101
+ try {
1102
+ const result = typeof disposable?.destroy === "function" ? disposable.destroy()
1103
+ : typeof disposable?.cancel === "function" ? disposable.cancel() : returnIterator ? disposable?.return?.() : undefined;
1104
+ void Promise.resolve(result).catch(() => { });
1105
+ }
1106
+ catch (ignoredError) {
1107
+ void ignoredError;
1108
+ }
1109
+ }
1110
+ async streamWrite(input, source, options = {}) {
1111
+ const path = this.path(input);
1112
+ this.writable(path, options.mode);
1113
+ const flag = options.flag ?? "w";
1114
+ if (!["w", "wx", "a", "ax"].includes(flag))
1115
+ fail("EINVAL", "writeStream", path);
1116
+ if (flag !== "w" && !this.transport.capabilities?.conditionalPut)
1117
+ this.unsupported("conditional writes", path);
1118
+ const info = await this.lookup(path, options);
1119
+ this.requireDirectorySuffix(input, info);
1120
+ if (info?.stat.type === "directory" || input.endsWith("/"))
1121
+ fail("EISDIR", "writeStream", path);
1122
+ const exclusive = flag === "wx" || flag === "ax";
1123
+ if (exclusive && info)
1124
+ fail("EEXIST", "writeStream", path);
1125
+ if (flag === "a") {
1126
+ const current = info ? await this.get(path, options) : undefined;
1127
+ const previous = current ? await this.body(current, path, options) : new Uint8Array();
1128
+ const limit = Math.min(this.maxReadBytes, this.maxStreamBytes);
1129
+ if (previous.length > limit)
1130
+ fail("EFBIG", "writeStream", path);
1131
+ const bytes = await this.call("writeStream", path, options, () => collectBytes(source, { ...(limit === Infinity ? {} : { maxBytes: limit - previous.length }), ...options }));
1132
+ const body = new Uint8Array(previous.length + bytes.length);
1133
+ body.set(previous);
1134
+ body.set(bytes, previous.length);
1135
+ const metadata = this.writeMetadata(current, options.mode);
1136
+ await this.call("putObject", path, options, () => this.transport.putObject({
1137
+ Bucket: this.bucket, Key: this.key(path), Body: body,
1138
+ ...(current ? { IfMatch: this.etag(current, path) } : { IfNoneMatch: "*" }),
1139
+ ...(metadata ? { Metadata: metadata } : {}),
1140
+ }, this.requestOptions(options)));
1141
+ return;
1142
+ }
1143
+ const controller = new AbortController();
1144
+ const signalScope = options.signal ? composeAbortSignals([options.signal, controller.signal]) : undefined;
1145
+ const signal = signalScope?.signal ?? controller.signal;
1146
+ let finished = false;
1147
+ const body = (async function* () {
1148
+ let total = 0;
1149
+ for await (const chunk of readBytes(source, signal)) {
1150
+ if (chunk.length > this.maxStreamBytes - total)
1151
+ fail("EFBIG", "writeStream", path);
1152
+ total += chunk.length;
1153
+ for (let offset = 0; offset < chunk.length; offset += 64 * 1024) {
1154
+ this.checkAbort({ signal }, "writeStream", path);
1155
+ yield new Uint8Array(chunk.subarray(offset, offset + 64 * 1024));
1156
+ }
1157
+ }
1158
+ finished = true;
1159
+ }).call(this);
1160
+ try {
1161
+ const metadata = this.writeMetadata(info?.metadata, options.mode);
1162
+ await this.call("putObject", path, options, () => this.transport.putObjectStream({
1163
+ Bucket: this.bucket, Key: this.key(path), Body: body, ...(exclusive ? { IfNoneMatch: "*" } : {}),
1164
+ ...(metadata === undefined ? {} : { Metadata: metadata }),
1165
+ }, { abortSignal: signal }), exclusive ? "EEXIST" : "EAGAIN");
1166
+ if (!finished)
1167
+ fail("EIO", "writeStream", path, "transport completed without consuming the request body");
1168
+ }
1169
+ finally {
1170
+ controller.abort();
1171
+ signalScope?.dispose();
1172
+ this.dispose(body);
1173
+ }
1174
+ }
1175
+ }
1176
+ const s3Comparison = /* @__PURE__ */ (() => S3FileSystem.prototype.compareEntry)();