@poe-platform/safe-bash 0.1.788 → 0.1.790

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 (342) hide show
  1. package/README.md +1 -1
  2. package/dist/image-ast/index.browser.js +147 -80
  3. package/dist/image-ast/index.js +147 -80
  4. package/dist/mp4-ast/mp4.d.ts +2 -0
  5. package/dist/pdf-ast/cos/parser.d.ts +1 -0
  6. package/dist/pdf-ast/cos/security.d.ts +2 -0
  7. package/dist/pdf-ast/cos/writer.d.ts +1 -0
  8. package/dist/pdf-ast/document.d.ts +3 -0
  9. package/dist/pdf-ast/edit/forms.d.ts +1 -0
  10. package/dist/pdf-ast/index.js +171 -82
  11. package/dist/safe-bash/chunks/{chunk-L5QQLNTO.js → chunk-22PI65AH.js} +2 -2
  12. package/dist/safe-bash/chunks/{chunk-Q3E6C3DX.js → chunk-2TAGYMPK.js} +49 -34
  13. package/dist/safe-bash/chunks/{chunk-Z3HX3ZBA.js → chunk-2W4HTMEK.js} +52 -48
  14. package/dist/safe-bash/chunks/{chunk-FFZXP6ZC.js → chunk-3M7L7XU2.js} +2 -2
  15. package/dist/safe-bash/chunks/{chunk-XNODZRVD.js → chunk-3QAO6UYS.js} +2 -2
  16. package/dist/safe-bash/chunks/{chunk-YPETOVQU.js → chunk-3VKFK3NF.js} +2 -2
  17. package/dist/safe-bash/chunks/chunk-5OST7NOX.js +42 -0
  18. package/dist/safe-bash/chunks/{chunk-KEBSX2AX.js → chunk-6HLURHVU.js} +2 -2
  19. package/dist/safe-bash/chunks/chunk-DYEUZE6Z.js +19 -0
  20. package/dist/safe-bash/chunks/{chunk-T2TGCHKE.js → chunk-FM3WBSZT.js} +2 -2
  21. package/dist/safe-bash/chunks/chunk-GAYRKQM6.js +22 -0
  22. package/dist/safe-bash/chunks/{chunk-Q45QCA4J.js → chunk-I3KSESCR.js} +0 -7
  23. package/dist/safe-bash/chunks/{chunk-OSKDIBQS.js → chunk-JLIMK5TD.js} +1 -1
  24. package/dist/safe-bash/chunks/{chunk-2AYZCT5X.js → chunk-JQ2FAJJT.js} +27 -23
  25. package/dist/safe-bash/chunks/{chunk-QA3NVP43.js → chunk-JRE6Z3T7.js} +2 -2
  26. package/dist/safe-bash/chunks/{chunk-DC5EHLKS.js → chunk-NDIL6T7Y.js} +5 -5
  27. package/dist/safe-bash/chunks/{chunk-747G42FY.js → chunk-OPR4UAIT.js} +2 -2
  28. package/dist/safe-bash/chunks/chunk-OSMQCYSP.js +19 -0
  29. package/dist/safe-bash/chunks/chunk-OYB332PQ.js +17 -0
  30. package/dist/safe-bash/chunks/{chunk-ZMYVCRAF.js → chunk-QTIH2AFE.js} +77 -69
  31. package/dist/safe-bash/chunks/{chunk-PYTLIUST.js → chunk-SBESXWT2.js} +43 -44
  32. package/dist/safe-bash/chunks/{chunk-4FDQJUFW.js → chunk-SDEPGTOF.js} +1 -1
  33. package/dist/safe-bash/chunks/chunk-UZU5BIJI.js +32 -0
  34. package/dist/safe-bash/chunks/{chunk-BI6JV62X.js → chunk-VCCMROTL.js} +7 -10
  35. package/dist/safe-bash/chunks/chunk-W47GHRRF.js +13 -0
  36. package/dist/safe-bash/chunks/{chunk-NPMQWZUZ.js → chunk-WS7KZIUM.js} +2 -2
  37. package/dist/safe-bash/chunks/{chunk-3PZYHMGM.js → chunk-YYAERCWS.js} +7 -7
  38. package/dist/safe-bash/chunks/{chunk-5U7JECDB.js → chunk-ZPGVEUKF.js} +8 -7
  39. package/dist/safe-bash/chunks/{csvkit-K55OYAQC.js → csvkit-USUJG62I.js} +65 -11
  40. package/dist/safe-bash/chunks/{ffmpeg-BEFTQ6DZ.js → ffmpeg-KRGG5DLH.js} +21 -10
  41. package/dist/safe-bash/chunks/{gh-HQWOWLWE.js → gh-UCFDUZCX.js} +16 -8
  42. package/dist/safe-bash/chunks/{git-UFNPAOYZ.js → git-LPAF6KDG.js} +7 -9
  43. package/dist/safe-bash/chunks/{imagemagick-53BMHH6D.js → imagemagick-KGREKK4G.js} +38 -7
  44. package/dist/safe-bash/chunks/{implementation-QUTAAYMT.js → implementation-FXDRYS5A.js} +34 -8
  45. package/dist/safe-bash/chunks/{pdfimages-4OYI6FLG.js → pdfimages-UADCF4G4.js} +12 -8
  46. package/dist/safe-bash/chunks/{pdfinfo-I7U6TQPP.js → pdfinfo-O7UWPF4W.js} +38 -13
  47. package/dist/safe-bash/chunks/{pdftk-SUA6FMHI.js → pdftk-AERXIJTN.js} +13 -8
  48. package/dist/safe-bash/chunks/{pdftoppm-4C5DGEWX.js → pdftoppm-L466JQKI.js} +17 -10
  49. package/dist/safe-bash/chunks/{pdftotext-Y4WI225Y.js → pdftotext-SUSI4WXS.js} +19 -9
  50. package/dist/safe-bash/chunks/{qpdf-IORB4RV5.js → qpdf-YL24KVRH.js} +14 -8
  51. package/dist/safe-bash/chunks/{sips-WHAMJFEU.js → sips-QXEQZERX.js} +14 -7
  52. package/dist/safe-bash/chunks/{soffice-SYEK6WJS.js → soffice-TBITRML3.js} +16 -8
  53. package/dist/safe-bash/chunks/{wkhtmltopdf-ZIICWJLF.js → wkhtmltopdf-NJA2THRC.js} +27 -7
  54. package/dist/safe-bash/command-chunks/chunk-2C5BEBPY.js +1388 -0
  55. package/dist/safe-bash/command-chunks/{chunk-FXYWQ6S4.js → chunk-2EXV2ZLV.js} +2 -2
  56. package/dist/safe-bash/command-chunks/{chunk-PFBJR2PY.js → chunk-2KRKKW5S.js} +2 -2
  57. package/dist/safe-bash/command-chunks/{chunk-4DSJDVBM.js → chunk-32F3RBUW.js} +10 -749
  58. package/dist/safe-bash/command-chunks/{chunk-L3MLMXL4.js → chunk-3ZK5F23O.js} +1 -1
  59. package/dist/safe-bash/command-chunks/{chunk-4QX6XCDD.js → chunk-4RNIZ3RT.js} +79 -0
  60. package/dist/safe-bash/command-chunks/{chunk-D7TADAYG.js → chunk-64LG3EVJ.js} +17 -0
  61. package/dist/safe-bash/command-chunks/{chunk-TOSM3T3A.js → chunk-6EASC5EC.js} +20 -9
  62. package/dist/safe-bash/command-chunks/{chunk-ZF3ZVGQC.js → chunk-7JRITHKW.js} +150 -80
  63. package/dist/safe-bash/command-chunks/{chunk-IJ3FXP4Q.js → chunk-A3ZX6SCY.js} +1 -1
  64. package/dist/safe-bash/{chunks/chunk-LD76P7AG.js → command-chunks/chunk-AKDMCNX4.js} +74 -39
  65. package/dist/safe-bash/command-chunks/{chunk-KSIGF4AG.js → chunk-BK4CMEE6.js} +1 -1
  66. package/dist/safe-bash/command-chunks/{chunk-JUDOV5MJ.js → chunk-CBDVLMJB.js} +1 -1
  67. package/dist/safe-bash/command-chunks/{chunk-XGMWWUHV.js → chunk-CZ5DAK4K.js} +1 -1
  68. package/dist/safe-bash/command-chunks/{chunk-Z57TV6TC.js → chunk-EZ2DTOLI.js} +4 -2
  69. package/dist/safe-bash/command-chunks/{chunk-ADCGH6A7.js → chunk-FH3D75FC.js} +1 -1
  70. package/dist/safe-bash/command-chunks/{chunk-WYJTWJZ5.js → chunk-G3G6W5ZE.js} +1 -1
  71. package/dist/safe-bash/command-chunks/{chunk-3HDIDEUJ.js → chunk-GF54KE2M.js} +1 -1
  72. package/dist/safe-bash/command-chunks/chunk-H4LWTITX.js +169 -0
  73. package/dist/safe-bash/command-chunks/chunk-I2MQNBGR.js +145 -0
  74. package/dist/safe-bash/command-chunks/{chunk-Z7TYZG3A.js → chunk-IHHTTQX6.js} +5 -3
  75. package/dist/safe-bash/command-chunks/{chunk-5GRLAARV.js → chunk-IOXI5ZAJ.js} +1 -1
  76. package/dist/safe-bash/command-chunks/{chunk-INDIFLBW.js → chunk-JTAGNROA.js} +4 -0
  77. package/dist/safe-bash/command-chunks/{chunk-Y5IHIAY3.js → chunk-MDPIOQUD.js} +12 -8
  78. package/dist/safe-bash/command-chunks/chunk-PGEYORBZ.js +25 -0
  79. package/dist/safe-bash/command-chunks/chunk-QI4MGIN6.js +6 -0
  80. package/dist/safe-bash/command-chunks/chunk-QM4UZF3C.js +753 -0
  81. package/dist/safe-bash/command-chunks/chunk-QTYZAWSB.js +91 -0
  82. package/dist/safe-bash/command-chunks/chunk-SNK7K3XW.js +90 -0
  83. package/dist/safe-bash/command-chunks/chunk-T5OLGM43.js +314 -0
  84. package/dist/safe-bash/command-chunks/chunk-TB7IFMUZ.js +802 -0
  85. package/dist/safe-bash/command-chunks/{chunk-YNT4ZJHW.js → chunk-TPPBPIWL.js} +3 -3
  86. package/dist/safe-bash/command-chunks/chunk-VMK4XVKO.js +82 -0
  87. package/dist/safe-bash/command-chunks/chunk-VNSJKXDU.js +130 -0
  88. package/dist/safe-bash/command-chunks/{chunk-2LP3VMPA.js → chunk-WFDW4XXD.js} +1 -17
  89. package/dist/safe-bash/command-chunks/chunk-WR37IS4O.js +318 -0
  90. package/dist/safe-bash/command-chunks/chunk-YFNTMH6Z.js +6 -0
  91. package/dist/safe-bash/commands/basic.js +148 -48
  92. package/dist/safe-bash/commands/bytes/compression/index.js +5 -6
  93. package/dist/safe-bash/commands/cmp.d.ts +2 -3
  94. package/dist/safe-bash/commands/cmp.js +2 -689
  95. package/dist/safe-bash/commands/csplit/index.browser.js +2 -2
  96. package/dist/safe-bash/commands/docx/index.browser.js +4 -47
  97. package/dist/safe-bash/commands/docx/index.d.ts +2 -24
  98. package/dist/safe-bash/commands/docx/index.js +2 -41
  99. package/dist/safe-bash/commands/docx/io.d.ts +1 -14
  100. package/dist/safe-bash/commands/docx/io.js +1 -15
  101. package/dist/safe-bash/commands/factor/index.browser.js +2 -2
  102. package/dist/safe-bash/commands/getopt/index.browser.js +2 -2
  103. package/dist/safe-bash/commands/hexdump/index.browser.js +2 -2
  104. package/dist/safe-bash/commands/iconv/index.browser.js +2 -2
  105. package/dist/safe-bash/commands/line-endings/index.browser.js +2 -2
  106. package/dist/safe-bash/commands/llm/command.d.ts +1 -4
  107. package/dist/safe-bash/commands/llm/command.js +1 -248
  108. package/dist/safe-bash/commands/llm/elevenlabs-stream.d.ts +1 -2
  109. package/dist/safe-bash/commands/llm/elevenlabs-stream.js +1 -117
  110. package/dist/safe-bash/commands/llm/elevenlabs.d.ts +1 -15
  111. package/dist/safe-bash/commands/llm/elevenlabs.js +1 -123
  112. package/dist/safe-bash/commands/llm/index.browser.js +20 -15
  113. package/dist/safe-bash/commands/llm/index.d.ts +1 -6
  114. package/dist/safe-bash/commands/llm/index.js +1 -4
  115. package/dist/safe-bash/commands/llm/mime.d.ts +1 -2
  116. package/dist/safe-bash/commands/llm/mime.js +1 -136
  117. package/dist/safe-bash/commands/llm/openai-http.d.ts +1 -8
  118. package/dist/safe-bash/commands/llm/openai-http.js +1 -143
  119. package/dist/safe-bash/commands/llm/openai-sse.d.ts +1 -3
  120. package/dist/safe-bash/commands/llm/openai-sse.js +1 -78
  121. package/dist/safe-bash/commands/llm/openai.d.ts +1 -14
  122. package/dist/safe-bash/commands/llm/openai.js +1 -288
  123. package/dist/safe-bash/commands/llm/providers/elevenlabs.d.ts +1 -1
  124. package/dist/safe-bash/commands/llm/providers/elevenlabs.js +1 -1
  125. package/dist/safe-bash/commands/llm/providers/index.browser.js +6 -6
  126. package/dist/safe-bash/commands/llm/providers/index.d.ts +1 -3
  127. package/dist/safe-bash/commands/llm/providers/index.js +1 -2
  128. package/dist/safe-bash/commands/llm/providers/openai.d.ts +1 -1
  129. package/dist/safe-bash/commands/llm/providers/openai.js +1 -1
  130. package/dist/safe-bash/commands/llm/providers/shared.d.ts +1 -23
  131. package/dist/safe-bash/commands/llm/providers/shared.js +1 -65
  132. package/dist/safe-bash/commands/llm/service.d.ts +1 -37
  133. package/dist/safe-bash/commands/llm/service.js +1 -151
  134. package/dist/safe-bash/commands/llm/types.d.ts +1 -52
  135. package/dist/safe-bash/commands/llm/types.js +1 -1
  136. package/dist/safe-bash/commands/mdq/index.browser.js +3 -3
  137. package/dist/safe-bash/commands/media/index.browser.js +1 -1
  138. package/dist/safe-bash/commands/network/index.browser.js +9 -9
  139. package/dist/safe-bash/commands/network/types.d.ts +2 -40
  140. package/dist/safe-bash/commands/node/index.browser.js +6 -8
  141. package/dist/safe-bash/commands/op/index.browser.js +3 -3
  142. package/dist/safe-bash/commands/op/index.js +12 -28
  143. package/dist/safe-bash/commands/pptx/index.d.ts +2 -28
  144. package/dist/safe-bash/commands/pptx/index.js +2 -152
  145. package/dist/safe-bash/commands/pr/index.browser.js +2 -2
  146. package/dist/safe-bash/commands/printf-float.d.ts +1 -0
  147. package/dist/safe-bash/commands/printf-float.js +48 -38
  148. package/dist/safe-bash/commands/printf-format.js +9 -6
  149. package/dist/safe-bash/commands/printf-quote.d.ts +3 -0
  150. package/dist/safe-bash/commands/printf-quote.js +62 -0
  151. package/dist/safe-bash/commands/printf-wide.d.ts +5 -0
  152. package/dist/safe-bash/commands/printf-wide.js +41 -0
  153. package/dist/safe-bash/commands/python/index.browser.js +8 -8
  154. package/dist/safe-bash/commands/python/worker.browser.js +2 -2
  155. package/dist/safe-bash/commands/truncate.d.ts +2 -3
  156. package/dist/safe-bash/commands/truncate.js +2 -686
  157. package/dist/safe-bash/commands/tsort/index.browser.js +2 -2
  158. package/dist/safe-bash/commands/xml/index.browser.js +2 -2
  159. package/dist/safe-bash/commands/yq/index.browser.js +3 -3
  160. package/dist/safe-bash/contracts/diagnostics.d.ts +2 -0
  161. package/dist/safe-bash/contracts/diagnostics.js +2 -0
  162. package/dist/safe-bash/contracts/runtime-control.d.ts +2 -0
  163. package/dist/safe-bash/contracts/runtime-control.js +2 -0
  164. package/dist/safe-bash/core.browser.d.ts +1 -1
  165. package/dist/safe-bash/core.browser.js +10645 -14065
  166. package/dist/safe-bash/core.d.ts +10 -1
  167. package/dist/safe-bash/core.js +0 -1
  168. package/dist/safe-bash/jobs.browser.js +5 -4
  169. package/dist/safe-bash/opt-in/commands/cmp/index.d.ts +6 -2
  170. package/dist/safe-bash/opt-in/commands/cmp/index.js +776 -79
  171. package/dist/safe-bash/opt-in/commands/cmp/options.d.ts +0 -12
  172. package/dist/safe-bash/opt-in/commands/cmp/options.js +0 -153
  173. package/dist/safe-bash/opt-in/commands/truncate/index.d.ts +8 -3
  174. package/dist/safe-bash/opt-in/commands/truncate/index.js +790 -272
  175. package/dist/safe-bash/opt-in/commands/truncate/sync.d.ts +1 -0
  176. package/dist/safe-bash/opt-in/commands/truncate/sync.js +60 -0
  177. package/dist/safe-bash/optional-host.browser.js +61 -80
  178. package/dist/safe-bash/optional-host.d.ts +3 -1
  179. package/dist/safe-bash/optional-host.js +3 -1
  180. package/dist/safe-bash/shell/runtime.js +44 -18
  181. package/dist/safe-bash/yq-browser/index.js +1 -1
  182. package/dist/safe-bash-checksum-engine/index.d.ts +1 -1
  183. package/dist/safe-bash-checksum-engine/index.js +14 -2
  184. package/dist/safe-bash-command-bzip2/index.js +2 -1
  185. package/dist/safe-bash-command-cmp/index.d.ts +10 -0
  186. package/dist/safe-bash-command-cmp/index.js +796 -0
  187. package/dist/safe-bash-command-cmp/options.d.ts +12 -0
  188. package/dist/safe-bash-command-cmp/options.js +42 -0
  189. package/dist/safe-bash-command-csvcut/index.js +11 -8
  190. package/dist/safe-bash-command-csvgrep/index.js +35 -7
  191. package/dist/safe-bash-command-csvkit/codecs/python.js +4 -3
  192. package/dist/safe-bash-command-csvkit/codecs/utf8.js +3 -2
  193. package/dist/safe-bash-command-csvkit/index.js +80 -324
  194. package/dist/safe-bash-command-csvkit/python-regex.d.ts +5 -0
  195. package/dist/safe-bash-command-csvkit/python-regex.js +14 -0
  196. package/dist/safe-bash-command-csvkit/runtime.d.ts +1 -0
  197. package/dist/safe-bash-command-csvkit/sync-support.js +4 -2
  198. package/dist/safe-bash-command-diff3/index.js +3 -0
  199. package/dist/safe-bash-command-docx/LICENSE +21 -0
  200. package/dist/safe-bash-command-docx/index.d.ts +30 -0
  201. package/dist/safe-bash-command-docx/index.js +67 -0
  202. package/dist/safe-bash-command-docx/io.d.ts +14 -0
  203. package/dist/safe-bash-command-docx/io.js +26 -0
  204. package/dist/safe-bash-command-envsubst/index.js +34 -3
  205. package/dist/safe-bash-command-exiftool/index.js +3 -0
  206. package/dist/safe-bash-command-ffmpeg/index.js +8073 -7940
  207. package/dist/safe-bash-command-fold/family.js +1 -1
  208. package/dist/safe-bash-command-fold/index.js +1 -1
  209. package/dist/safe-bash-command-git/git_rust.wasm +0 -0
  210. package/dist/safe-bash-command-git/wasm.generated.js +1 -1
  211. package/dist/safe-bash-command-htmlq/index.js +5 -0
  212. package/dist/safe-bash-command-imagemagick/index.d.ts +25 -21
  213. package/dist/safe-bash-command-imagemagick/index.js +671 -273
  214. package/dist/safe-bash-command-llm/LICENSE +21 -0
  215. package/dist/safe-bash-command-llm/command.d.ts +5 -0
  216. package/dist/safe-bash-command-llm/command.js +14 -0
  217. package/dist/safe-bash-command-llm/configuration.d.ts +18 -0
  218. package/dist/safe-bash-command-llm/elevenlabs-stream.d.ts +2 -0
  219. package/dist/safe-bash-command-llm/elevenlabs-stream.js +7 -0
  220. package/dist/safe-bash-command-llm/elevenlabs.d.ts +15 -0
  221. package/dist/safe-bash-command-llm/elevenlabs.js +10 -0
  222. package/dist/safe-bash-command-llm/index.d.ts +10 -0
  223. package/dist/safe-bash-command-llm/index.js +46 -0
  224. package/dist/safe-bash-command-llm/mime.d.ts +2 -0
  225. package/dist/safe-bash-command-llm/mime.js +9 -0
  226. package/dist/safe-bash-command-llm/model-options.d.ts +3 -0
  227. package/dist/safe-bash-command-llm/openai-http.d.ts +8 -0
  228. package/dist/safe-bash-command-llm/openai-http.js +17 -0
  229. package/dist/safe-bash-command-llm/openai-sse.d.ts +3 -0
  230. package/dist/safe-bash-command-llm/openai-sse.js +8 -0
  231. package/dist/safe-bash-command-llm/openai.d.ts +14 -0
  232. package/dist/safe-bash-command-llm/openai.js +12 -0
  233. package/dist/safe-bash-command-llm/providers/elevenlabs.d.ts +1 -0
  234. package/dist/safe-bash-command-llm/providers/elevenlabs.js +11 -0
  235. package/dist/safe-bash-command-llm/providers/index.d.ts +3 -0
  236. package/dist/safe-bash-command-llm/providers/index.js +24 -0
  237. package/dist/safe-bash-command-llm/providers/openai.d.ts +1 -0
  238. package/dist/safe-bash-command-llm/providers/openai.js +13 -0
  239. package/dist/safe-bash-command-llm/providers/shared.d.ts +23 -0
  240. package/dist/safe-bash-command-llm/providers/shared.js +13 -0
  241. package/dist/safe-bash-command-llm/schemas.d.ts +2 -0
  242. package/dist/safe-bash-command-llm/service.d.ts +42 -0
  243. package/dist/safe-bash-command-llm/service.js +9 -0
  244. package/dist/safe-bash-command-llm/templates.d.ts +27 -0
  245. package/dist/safe-bash-command-llm/types.d.ts +87 -0
  246. package/dist/safe-bash-command-llm/types.js +6 -0
  247. package/dist/safe-bash-command-mmdc/command.d.ts +4 -0
  248. package/dist/safe-bash-command-mmdc/index.d.ts +1 -1
  249. package/dist/safe-bash-command-mmdc/index.js +7134 -6699
  250. package/dist/safe-bash-command-mmdc/layout.d.ts +1 -0
  251. package/dist/safe-bash-command-mmdc/parser.d.ts +1 -0
  252. package/dist/safe-bash-command-mmdc/png.d.ts +3 -0
  253. package/dist/safe-bash-command-mmdc/raster.d.ts +1 -0
  254. package/dist/safe-bash-command-mmdc/svg.d.ts +1 -0
  255. package/dist/safe-bash-command-op/index.js +19 -14
  256. package/dist/safe-bash-command-pandoc/command.js +3 -3
  257. package/dist/safe-bash-command-pandoc/index.js +3 -3
  258. package/dist/safe-bash-command-pdfimages/index.d.ts +7 -1
  259. package/dist/safe-bash-command-pdfimages/index.js +210 -113
  260. package/dist/safe-bash-command-pdfinfo/index.d.ts +24 -20
  261. package/dist/safe-bash-command-pdfinfo/index.js +517 -241
  262. package/dist/safe-bash-command-pdftk/index.d.ts +7 -3
  263. package/dist/safe-bash-command-pdftk/index.js +261 -125
  264. package/dist/safe-bash-command-pdftoppm/index.d.ts +15 -7
  265. package/dist/safe-bash-command-pdftoppm/index.js +326 -189
  266. package/dist/safe-bash-command-pdftotext/index.d.ts +9 -5
  267. package/dist/safe-bash-command-pdftotext/index.js +237 -107
  268. package/dist/safe-bash-command-pptx/LICENSE +21 -0
  269. package/dist/safe-bash-command-pptx/index.d.ts +33 -0
  270. package/dist/safe-bash-command-pptx/index.js +168 -0
  271. package/dist/safe-bash-command-qpdf/index.d.ts +9 -3
  272. package/dist/safe-bash-command-qpdf/index.js +254 -130
  273. package/dist/safe-bash-command-sha512sum/index.js +12 -475
  274. package/dist/safe-bash-command-sips/index.d.ts +9 -5
  275. package/dist/safe-bash-command-sips/index.js +65 -46
  276. package/dist/safe-bash-command-soffice/index.d.ts +9 -3
  277. package/dist/safe-bash-command-soffice/index.js +66 -25
  278. package/dist/safe-bash-command-sqlite3/engine.d.ts +9 -0
  279. package/dist/safe-bash-command-sqlite3/index.d.ts +1 -0
  280. package/dist/safe-bash-command-sqlite3/index.js +851 -352
  281. package/dist/safe-bash-command-ssconvert/formats/xls.js +3 -3
  282. package/dist/safe-bash-command-ssconvert/index.js +147 -80
  283. package/dist/safe-bash-command-timeout/index.js +3 -3
  284. package/dist/safe-bash-command-truncate/index.d.ts +8 -3
  285. package/dist/safe-bash-command-truncate/index.js +790 -272
  286. package/dist/safe-bash-command-truncate/sync.d.ts +1 -0
  287. package/dist/safe-bash-command-truncate/sync.js +60 -0
  288. package/dist/safe-bash-command-wkhtmltopdf/index.js +239 -118
  289. package/dist/safe-bash-command-wkhtmltopdf/pdf-renderer.d.ts +1 -1
  290. package/dist/safe-bash-command-xxd/index.js +78 -20
  291. package/dist/safe-bash-command-xz/command.d.ts +4 -0
  292. package/dist/safe-bash-command-xz/index.d.ts +1 -1
  293. package/dist/safe-bash-command-xz/index.js +1 -1
  294. package/dist/safe-bash-compression-engine/bounded-codec.js +3 -3
  295. package/dist/safe-bash-compression-engine/codec-loader.js +2 -2
  296. package/dist/safe-bash-compression-engine/files.js +6 -6
  297. package/dist/safe-bash-compression-engine/index.js +5 -5
  298. package/dist/safe-bash-compression-engine/operand.js +6 -6
  299. package/dist/safe-bash-compression-engine/stream.js +5 -5
  300. package/dist/safe-bash-compression-engine/zstd-decode.js +4 -4
  301. package/dist/safe-bash-contracts/command.js +3 -3
  302. package/dist/safe-bash-contracts/default-executor.d.ts +5 -0
  303. package/dist/safe-bash-contracts/default-executor.js +37 -0
  304. package/dist/safe-bash-contracts/diagnostics.js +3 -3
  305. package/dist/safe-bash-contracts/escaping.js +9 -9
  306. package/dist/safe-bash-contracts/filesystem-descriptor.js +3 -3
  307. package/dist/safe-bash-contracts/filesystem-output.js +8 -8
  308. package/dist/safe-bash-contracts/http.d.ts +41 -0
  309. package/dist/safe-bash-contracts/http.js +6 -0
  310. package/dist/safe-bash-contracts/index.js +21 -19
  311. package/dist/safe-bash-contracts/io.d.ts +12 -0
  312. package/dist/safe-bash-contracts/io.js +4 -1
  313. package/dist/safe-bash-contracts/output.js +3 -2
  314. package/dist/safe-bash-contracts/runtime-control.js +2 -2
  315. package/dist/safe-bash-contracts/signals.js +1 -1
  316. package/dist/safe-bash-contracts/yield.d.ts +1 -0
  317. package/dist/safe-bash-contracts/yield.js +3 -1
  318. package/dist/safe-bash-csv-engine/index.d.ts +10 -1
  319. package/dist/safe-bash-csv-engine/index.js +78 -6
  320. package/dist/safe-bash-io-engine/commands/search/requirements.js +3 -3
  321. package/dist/safe-bash-io-engine/commands/text-programs/shared.js +3 -3
  322. package/dist/safe-bash-io-engine/gnu-information.d.ts +1 -1
  323. package/dist/safe-bash-io-engine/gnu-information.js +1 -1
  324. package/dist/safe-bash-io-engine/internal.d.ts +1 -1
  325. package/dist/safe-bash-io-engine/internal.js +2 -2
  326. package/dist/safe-bash-query-engine/index.js +5 -5
  327. package/dist/safe-bash-query-engine/interpreter.js +3 -3
  328. package/dist/safe-bash-query-engine/query-core.js +5 -5
  329. package/package.json +2 -2
  330. package/dist/safe-bash/chunks/chunk-2G2T5MEM.js +0 -14
  331. package/dist/safe-bash/chunks/chunk-FJZNUUOQ.js +0 -81
  332. package/dist/safe-bash/chunks/chunk-GJWUEOT6.js +0 -14
  333. package/dist/safe-bash/chunks/chunk-LAPF2XE6.js +0 -14
  334. package/dist/safe-bash/chunks/chunk-O6356Z27.js +0 -37
  335. package/dist/safe-bash/chunks/chunk-S2LSZFZ6.js +0 -758
  336. package/dist/safe-bash/chunks/chunk-T3VDYWKZ.js +0 -21
  337. package/dist/safe-bash/chunks/chunk-VYW4Q6KF.js +0 -12
  338. package/dist/safe-bash/chunks/chunk-WHURJBET.js +0 -409
  339. package/dist/safe-bash/opt-in/commands/cmp/compare.js +0 -95
  340. package/dist/safe-bash/opt-in/commands/cmp/io.js +0 -218
  341. package/dist/safe-bash/command-chunks/{chunk-RTOJNFFL.js → chunk-KNI4GRXF.js} +7 -7
  342. package/dist/safe-bash/command-chunks/{chunk-DEH3CMGL.js → chunk-QJ3ONEBI.js} +3 -3
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_platform
3
- } from "./chunk-Q45QCA4J.js";
3
+ } from "./chunk-I3KSESCR.js";
4
4
 
5
5
  // packages/safe-bash/src/commands/hexdump/index.ts
6
6
  init_platform();
7
- export * from "../../safe-bash-command-hexdump/index.js";
7
+ import {} from "../../safe-bash-command-hexdump/index.js";
8
8
  import { createHexdumpCommand, createHdCommand, createHexdumpCommands, hexdumpCommands } from "../../safe-bash-command-hexdump/index.js";
9
9
 
10
10
  export {
@@ -1,30 +1,34 @@
1
1
  import {
2
2
  shellValueByteLength,
3
- value_exports
4
- } from "./chunk-BI6JV62X.js";
3
+ shellValueBytes,
4
+ shellValueText
5
+ } from "./chunk-VCCMROTL.js";
5
6
  import {
6
- command_exports
7
- } from "./chunk-T3VDYWKZ.js";
7
+ commandRuntimeIdentity
8
+ } from "./chunk-DYEUZE6Z.js";
8
9
  import {
9
- __reExport,
10
10
  init_platform
11
- } from "./chunk-Q45QCA4J.js";
11
+ } from "./chunk-I3KSESCR.js";
12
+
13
+ // packages/safe-bash/src/commands/portable-requirements.ts
14
+ init_platform();
15
+ import { inputRequirements, predicateRequirements, pwdRequirements, textOutputRequirements } from "../../safe-bash-io-engine/portable-requirements.js";
12
16
 
13
17
  // packages/safe-bash/src/commands/copy-identity.ts
14
18
  init_platform();
15
19
  import { compareCopyIdentity, compareObservedEntries } from "../../safe-bash-contracts/filesystem-identity.js";
16
20
 
17
21
  // packages/safe-bash/src/byte-encoding.ts
18
- var byte_encoding_exports = {};
19
22
  init_platform();
20
- __reExport(byte_encoding_exports, byte_encoding_star);
21
- import * as byte_encoding_star from "../../safe-bash-io-engine/byte-encoding.js";
23
+ import { bytesToHex, compareUtf8, equalBytes, latin1Bytes, latin1Text } from "../../safe-bash-io-engine/byte-encoding.js";
24
+
25
+ // packages/safe-bash/src/commands/bytes/input-budget.ts
26
+ init_platform();
27
+ import { ByteInputBudget, resolveInputLimit } from "../../safe-bash-byte-input-engine/index.js";
22
28
 
23
29
  // packages/safe-bash/src/commands/timeout/index.ts
24
- var timeout_exports = {};
25
30
  init_platform();
26
- __reExport(timeout_exports, safe_bash_command_timeout_star);
27
- import * as safe_bash_command_timeout_star from "../../safe-bash-command-timeout/index.js";
31
+ import { createTimeoutCommand, createTimeoutCommands, evalSyncTimeout, signalName, timeoutCommands } from "../../safe-bash-command-timeout/index.js";
28
32
 
29
33
  // packages/safe-bash/src/shell/trap.ts
30
34
  init_platform();
@@ -39,7 +43,7 @@ function isIdlePortableTrapInstance(instance) {
39
43
  return idlePortableTrapInstances.get(instance)?.() ?? false;
40
44
  }
41
45
  function quote(source) {
42
- const bytes = (0, value_exports.shellValueBytes)(source);
46
+ const bytes = shellValueBytes(source);
43
47
  const parts = [new TextEncoder().encode("'")];
44
48
  let start = 0;
45
49
  for (let index = 0; index < bytes.length; index++) if (bytes[index] === 39) {
@@ -175,7 +179,7 @@ trap: usage: trap [-lp] [arg signal_spec ...]
175
179
  await context.stderr.write(new TextEncoder().encode("trap: usage: trap [-lp] [arg signal_spec ...]\n"));
176
180
  return 2;
177
181
  }
178
- if (action !== void 0 && (0, value_exports.shellValueText)(action) !== "-") context.accountSource(action);
182
+ if (action !== void 0 && shellValueText(action) !== "-") context.accountSource(action);
179
183
  const targets = args.length ? args : actions ? [...actions.keys()].sort((left, right) => left - right).map(String) : [];
180
184
  let status = 0;
181
185
  for (const target of targets) {
@@ -194,7 +198,7 @@ trap: usage: trap [-lp] [arg signal_spec ...]
194
198
  `));
195
199
  }
196
200
  } else if (inheritedIgnored.has(number)) continue;
197
- else if (action === void 0 || (0, value_exports.shellValueText)(action) === "-") actions?.delete(number);
201
+ else if (action === void 0 || shellValueText(action) === "-") actions?.delete(number);
198
202
  else {
199
203
  actions ??= /* @__PURE__ */ new Map();
200
204
  actions.set(number, { source: action, active: true });
@@ -258,7 +262,7 @@ trap: usage: trap [-lp] [arg signal_spec ...]
258
262
  }
259
263
  return created;
260
264
  }
261
- return { name: "trap", runtimeIdentity: command_exports.commandRuntimeIdentity, create: () => instance(
265
+ return { name: "trap", runtimeIdentity: commandRuntimeIdentity, create: () => instance(
262
266
  initialIgnored.size ? new Map([...initialIgnored].map((number) => [number, { source: "", active: true }])) : void 0,
263
267
  false,
264
268
  false,
@@ -268,40 +272,51 @@ trap: usage: trap [-lp] [arg signal_spec ...]
268
272
  var defaultPortableTrapExtension = portableTrapExtension();
269
273
 
270
274
  // packages/safe-bash/src/commands/regex-execution/ere/errors.ts
271
- var errors_exports = {};
272
275
  init_platform();
273
- __reExport(errors_exports, errors_star);
274
- import * as errors_star from "../../safe-bash-regex-engine/ere/errors.js";
276
+ import { EreProfileLimitError, EreSyntaxError, EreUnsupportedError, EreUsageUnknownError } from "../../safe-bash-regex-engine/ere/errors.js";
275
277
 
276
278
  // packages/safe-bash/src/commands/regex-execution/ere/limits.ts
277
- var limits_exports = {};
278
279
  init_platform();
279
- __reExport(limits_exports, limits_star);
280
- import * as limits_star from "../../safe-bash-regex-engine/ere/limits.js";
280
+ import { EreLedger, deriveEreLimits } from "../../safe-bash-regex-engine/ere/limits.js";
281
281
 
282
282
  // packages/safe-bash/src/commands/regex-execution/ere/syntax.ts
283
- var syntax_exports = {};
284
283
  init_platform();
285
- __reExport(syntax_exports, syntax_star);
286
- import * as syntax_star from "../../safe-bash-regex-engine/ere/syntax.js";
284
+ import { admitAscii, compileEre, resolveEreProgram, resolveEreProgramUnchecked, tryCompileEreSync } from "../../safe-bash-regex-engine/ere/syntax.js";
287
285
 
288
286
  // packages/safe-bash/src/commands/regex-execution/ere/matcher.ts
289
- var matcher_exports = {};
290
287
  init_platform();
291
- __reExport(matcher_exports, matcher_star);
292
- import * as matcher_star from "../../safe-bash-regex-engine/ere/matcher.js";
288
+ import { canFastSyncEreProgram, createEreSpanMatcher, matchEre, prepareUtf8EreSubject, tryMatchEreAsciiRangeSync, tryMatchEreSync, warmEreProgram } from "../../safe-bash-regex-engine/ere/matcher.js";
293
289
 
294
290
  export {
291
+ inputRequirements,
292
+ predicateRequirements,
293
+ pwdRequirements,
294
+ textOutputRequirements,
295
295
  compareCopyIdentity,
296
296
  compareObservedEntries,
297
- byte_encoding_exports,
298
- timeout_exports,
297
+ bytesToHex,
298
+ compareUtf8,
299
+ latin1Bytes,
300
+ latin1Text,
301
+ ByteInputBudget,
302
+ resolveInputLimit,
303
+ createTimeoutCommand,
304
+ createTimeoutCommands,
305
+ evalSyncTimeout,
306
+ signalName,
307
+ timeoutCommands,
299
308
  captureIgnoredTrapSignals,
300
309
  isIdlePortableTrapInstance,
301
310
  portableTrapExtension,
302
311
  defaultPortableTrapExtension,
303
- errors_exports,
304
- limits_exports,
305
- syntax_exports,
306
- matcher_exports
312
+ EreProfileLimitError,
313
+ EreSyntaxError,
314
+ EreUnsupportedError,
315
+ EreUsageUnknownError,
316
+ EreLedger,
317
+ compileEre,
318
+ tryCompileEreSync,
319
+ matchEre,
320
+ prepareUtf8EreSubject,
321
+ tryMatchEreSync
307
322
  };
@@ -1,3 +1,20 @@
1
+ import {
2
+ FsError,
3
+ createOutputOperation
4
+ } from "./chunk-OYB332PQ.js";
5
+ import {
6
+ validateExitCode
7
+ } from "./chunk-DYEUZE6Z.js";
8
+ import {
9
+ dirname,
10
+ inheritYieldCheckpoint,
11
+ resolvePath,
12
+ yieldTurn
13
+ } from "./chunk-UZU5BIJI.js";
14
+ import {
15
+ readBytes,
16
+ writeBytes
17
+ } from "./chunk-OSMQCYSP.js";
1
18
  import {
2
19
  PythonFailure,
3
20
  PythonInvocationError,
@@ -10,40 +27,21 @@ import {
10
27
  pythonStatProjection,
11
28
  pythonTreeCleanup,
12
29
  reportPythonFailure
13
- } from "./chunk-OSKDIBQS.js";
14
- import {
15
- yield_exports
16
- } from "./chunk-LAPF2XE6.js";
17
- import {
18
- dirname,
19
- errors_exports,
20
- output_exports,
21
- resolvePath
22
- } from "./chunk-O6356Z27.js";
23
- import {
24
- command_exports,
25
- io_exports
26
- } from "./chunk-T3VDYWKZ.js";
30
+ } from "./chunk-JLIMK5TD.js";
27
31
  import {
28
- internal_exports
29
- } from "./chunk-GJWUEOT6.js";
32
+ pathOf
33
+ } from "./chunk-5OST7NOX.js";
30
34
  import {
31
- sniffMimeType
32
- } from "./chunk-LD76P7AG.js";
33
- import {
34
- __reExport,
35
35
  init_platform
36
- } from "./chunk-Q45QCA4J.js";
36
+ } from "./chunk-I3KSESCR.js";
37
37
 
38
38
  // packages/safe-bash/src/commands/python/index.ts
39
39
  init_platform();
40
40
  import { PythonFileSystem, PythonStatTranslator } from "@poe-platform/safe-fs/core";
41
41
 
42
42
  // packages/safe-bash/src/contracts/filesystem-descriptor.ts
43
- var filesystem_descriptor_exports = {};
44
43
  init_platform();
45
- __reExport(filesystem_descriptor_exports, filesystem_descriptor_star);
46
- import * as filesystem_descriptor_star from "../../safe-bash-contracts/filesystem-descriptor.js";
44
+ import { openCommandFile } from "../../safe-bash-contracts/filesystem-descriptor.js";
47
45
 
48
46
  // packages/safe-bash/src/commands/python/reply.ts
49
47
  init_platform();
@@ -52,10 +50,10 @@ function encodePythonReply(value, maxBytes) {
52
50
  const ancestors = /* @__PURE__ */ new Set();
53
51
  const reserve = (bytes) => {
54
52
  used += bytes;
55
- if (used > maxBytes) throw new errors_exports.FsError("EFBIG", { syscall: "python reply" });
53
+ if (used > maxBytes) throw new FsError("EFBIG", { syscall: "python reply" });
56
54
  };
57
55
  const string = (text2) => {
58
- if (text2.length + 2 > maxBytes - used) throw new errors_exports.FsError("EFBIG", { syscall: "python reply" });
56
+ if (text2.length + 2 > maxBytes - used) throw new FsError("EFBIG", { syscall: "python reply" });
59
57
  reserve(2);
60
58
  for (let index = 0; index < text2.length; index++) {
61
59
  const code = text2.charCodeAt(index);
@@ -71,7 +69,7 @@ function encodePythonReply(value, maxBytes) {
71
69
  return text2;
72
70
  };
73
71
  const own = (input, depth) => {
74
- if (depth > 64) throw new errors_exports.FsError("EFBIG", { syscall: "python reply" });
72
+ if (depth > 64) throw new FsError("EFBIG", { syscall: "python reply" });
75
73
  if (input === null || input === void 0) {
76
74
  reserve(4);
77
75
  return null;
@@ -90,7 +88,7 @@ function encodePythonReply(value, maxBytes) {
90
88
  ancestors.add(input);
91
89
  try {
92
90
  if (input instanceof Uint8Array || Array.isArray(input)) {
93
- if (input.length > maxBytes - used) throw new errors_exports.FsError("EFBIG", { syscall: "python reply" });
91
+ if (input.length > maxBytes - used) throw new FsError("EFBIG", { syscall: "python reply" });
94
92
  reserve(2);
95
93
  const output2 = [];
96
94
  for (let index = 0; index < input.length; index++) {
@@ -107,7 +105,7 @@ function encodePythonReply(value, maxBytes) {
107
105
  let visited = 0;
108
106
  for (const key in input) {
109
107
  if (!Object.hasOwn(input, key)) continue;
110
- if (++visited > maxBytes) throw new errors_exports.FsError("EFBIG", { syscall: "python reply" });
108
+ if (++visited > maxBytes) throw new FsError("EFBIG", { syscall: "python reply" });
111
109
  const descriptor = Object.getOwnPropertyDescriptor(input, key);
112
110
  if (!("value" in descriptor)) throw new TypeError("Accessor Python reply");
113
111
  if (descriptor.value === void 0 || typeof descriptor.value === "function") continue;
@@ -1082,7 +1080,7 @@ function createPythonPackageEnvironment(options = {}) {
1082
1080
  async function prepare(input) {
1083
1081
  const invocation = new AbortController();
1084
1082
  const signal = AbortSignal.any([input.signal, controller.signal, invocation.signal]);
1085
- (0, yield_exports.inheritYieldCheckpoint)(input.signal, signal);
1083
+ inheritYieldCheckpoint(input.signal, signal);
1086
1084
  const context = { ...input, signal };
1087
1085
  context.signal.throwIfAborted();
1088
1086
  const directory = options.cacheDirectory === void 0 ? void 0 : resolvePath(context.cwd, options.cacheDirectory, pythonPackageRuntimeKey);
@@ -1740,6 +1738,12 @@ function createPythonShellCapability(context, options = {}) {
1740
1738
 
1741
1739
  // packages/safe-bash/src/commands/python/llm-capability.ts
1742
1740
  init_platform();
1741
+
1742
+ // packages/safe-bash/src/commands/llm/mime.ts
1743
+ init_platform();
1744
+ import { acceptsMimeType, sniffMimeType } from "../../safe-bash-command-llm/mime.js";
1745
+
1746
+ // packages/safe-bash/src/commands/python/llm-capability.ts
1743
1747
  function record(value) {
1744
1748
  if (!value || typeof value !== "object" || Array.isArray(value)) throw new TypeError("Expected a structured Python LLM request");
1745
1749
  return value;
@@ -1855,7 +1859,7 @@ function createPythonLlmCapability(context, service, options = {}) {
1855
1859
  const attachment = record(value2);
1856
1860
  if (typeof attachment.path !== "string" || !attachment.path || attachment.path.includes("\0") || attachment.path.includes("://")) throw new TypeError("Attachment requires a canonical filesystem path");
1857
1861
  if (attachment.mimeType !== void 0 && typeof attachment.mimeType !== "string") throw new TypeError("Invalid attachment MIME type");
1858
- const path = (0, internal_exports.pathOf)(context, attachment.path);
1862
+ const path = pathOf(context, attachment.path);
1859
1863
  const stat = await context.fs.stat(path, { signal });
1860
1864
  checkInput(stat.size);
1861
1865
  const bytes = await context.fs.readFile(path, { signal, ...inputLimit === Infinity ? {} : { maxBytes: inputLimit - inputBytes } });
@@ -3765,7 +3769,7 @@ function createPythonCommands(options) {
3765
3769
  const environment = options.environment ?? createPythonPackageEnvironment(options.provisioning);
3766
3770
  const execute = async (context) => {
3767
3771
  if (pythonShellDispatchActive(context.executionScope)) {
3768
- await (0, io_exports.writeBytes)(context.stderr, new TextEncoder().encode("python: nested Python execution is unavailable while the parent interpreter is suspended\n"), context.signal);
3772
+ await writeBytes(context.stderr, new TextEncoder().encode("python: nested Python execution is unavailable while the parent interpreter is suspended\n"), context.signal);
3769
3773
  return { exitCode: 1 };
3770
3774
  }
3771
3775
  let installation;
@@ -3774,22 +3778,22 @@ function createPythonCommands(options) {
3774
3778
  installation = parsePythonInstallation(context.args);
3775
3779
  } catch (error) {
3776
3780
  if (!(error instanceof PythonInvocationError)) throw error;
3777
- await (0, io_exports.writeBytes)(context.stderr, new TextEncoder().encode("python: " + error.message + "\n"), context.signal);
3781
+ await writeBytes(context.stderr, new TextEncoder().encode("python: " + error.message + "\n"), context.signal);
3778
3782
  return { exitCode: 2 };
3779
3783
  }
3780
3784
  if (installation?.help) {
3781
- await (0, io_exports.writeBytes)(context.stdout, new TextEncoder().encode(pythonInstallationHelp), context.signal);
3785
+ await writeBytes(context.stdout, new TextEncoder().encode(pythonInstallationHelp), context.signal);
3782
3786
  return { exitCode: 0 };
3783
3787
  }
3784
3788
  context.signal.throwIfAborted();
3785
3789
  if (activeWorkers >= maxConcurrentWorkers) {
3786
3790
  const failure2 = reportPythonFailure("capacity", void 0, options.onDiagnostic);
3787
- await (0, io_exports.writeBytes)(context.stderr, new TextEncoder().encode("python: " + failure2.message + "\n"), context.signal);
3791
+ await writeBytes(context.stderr, new TextEncoder().encode("python: " + failure2.message + "\n"), context.signal);
3788
3792
  return { exitCode: 1 };
3789
3793
  }
3790
3794
  const controller = new AbortController();
3791
3795
  const signal = AbortSignal.any([context.signal, controller.signal]);
3792
- (0, yield_exports.inheritYieldCheckpoint)(context.signal, signal);
3796
+ inheritYieldCheckpoint(context.signal, signal);
3793
3797
  const fileContext = { ...context, descriptorCleanup: "caller" };
3794
3798
  const metadata = new PythonStatTranslator();
3795
3799
  const service = new PythonFileSystem(context.fs, {
@@ -3798,7 +3802,7 @@ function createPythonCommands(options) {
3798
3802
  maxTransferBytes,
3799
3803
  ...maxOpenFiles === void 0 ? {} : { maxOpenFiles },
3800
3804
  ...options.maxDirectoryEntries === void 0 ? {} : { maxDirectoryEntries: options.maxDirectoryEntries },
3801
- open: (path, settings) => (0, filesystem_descriptor_exports.openCommandFile)(fileContext, path, settings)
3805
+ open: (path, settings) => openCommandFile(fileContext, path, settings)
3802
3806
  });
3803
3807
  let hostBridge;
3804
3808
  let stdoutOperation;
@@ -3811,7 +3815,7 @@ function createPythonCommands(options) {
3811
3815
  let closed = false;
3812
3816
  let closing;
3813
3817
  const pending = /* @__PURE__ */ new Set();
3814
- const input = (0, io_exports.readBytes)(context.stdin, signal)[Symbol.asyncIterator]();
3818
+ const input = readBytes(context.stdin, signal)[Symbol.asyncIterator]();
3815
3819
  let fragment;
3816
3820
  let offset = 0;
3817
3821
  let inputBytes = 0;
@@ -3864,15 +3868,15 @@ function createPythonCommands(options) {
3864
3868
  activeWorkers++;
3865
3869
  admitted = true;
3866
3870
  const outputContext = { signal, ...context.registerCleanup ? { registerCleanup: context.registerCleanup } : {} };
3867
- stdoutOperation = (0, output_exports.createOutputOperation)(outputContext, context.stdout);
3868
- stderrOperation = (0, output_exports.createOutputOperation)(outputContext, context.stderr);
3871
+ stdoutOperation = createOutputOperation(outputContext, context.stdout);
3872
+ stderrOperation = createOutputOperation(outputContext, context.stderr);
3869
3873
  const diagnoseFilesystemFailure = async (operation, error) => {
3870
3874
  if (typeof error !== "object" || error === null || !("code" in error) || error.code !== "ENOTSUP") return;
3871
3875
  const category = operation === "open" ? "filesystem-open" : operation === "read" ? "filesystem-read" : operation === "write" || operation === "ftruncate" ? "filesystem-write" : operation === "readdir" ? "filesystem-directory" : "filesystem-operation";
3872
3876
  if (!filesystemDiagnostics.has(category)) {
3873
3877
  filesystemDiagnostics.add(category);
3874
3878
  const failure2 = reportPythonFailure(category, error, options.onDiagnostic);
3875
- await (0, io_exports.writeBytes)(stderrOperation.output, new TextEncoder().encode("python: " + failure2.message + "\n"), signal);
3879
+ await writeBytes(stderrOperation.output, new TextEncoder().encode("python: " + failure2.message + "\n"), signal);
3876
3880
  }
3877
3881
  };
3878
3882
  const dispatch = async (request) => {
@@ -3884,7 +3888,7 @@ function createPythonCommands(options) {
3884
3888
  if (!Number.isSafeInteger(length) || length < 1 || length > maxTransferBytes) throw new RangeError("Invalid Python input request");
3885
3889
  let pulls = 0;
3886
3890
  while (!fragment || offset === fragment.length) {
3887
- if (++pulls % 128 === 0) await (0, yield_exports.yieldTurn)(signal);
3891
+ if (++pulls % 128 === 0) await yieldTurn(signal);
3888
3892
  const next = await input.next();
3889
3893
  if (next.done) return [];
3890
3894
  inputBytes += next.value.length;
@@ -3902,7 +3906,7 @@ function createPythonCommands(options) {
3902
3906
  const bytes = request.args[0];
3903
3907
  if (!Array.isArray(bytes) || bytes.length > maxTransferBytes || bytes.some((value2) => !Number.isInteger(value2) || value2 < 0 || value2 > 255)) throw new TypeError("Invalid Python output bytes");
3904
3908
  const operation = request.op === "stdout" ? stdoutOperation : stderrOperation;
3905
- await (0, io_exports.writeBytes)(operation.output, Uint8Array.from(bytes), signal);
3909
+ await writeBytes(operation.output, Uint8Array.from(bytes), signal);
3906
3910
  return bytes.length;
3907
3911
  }
3908
3912
  const value = await service.dispatch(request);
@@ -4000,7 +4004,7 @@ function createPythonCommands(options) {
4000
4004
  running = false;
4001
4005
  if (requesting) throw reportPythonFailure("transport-unavailable", void 0, options.onDiagnostic);
4002
4006
  try {
4003
- return (0, command_exports.validateExitCode)(status);
4007
+ return validateExitCode(status);
4004
4008
  } catch (reason) {
4005
4009
  throw reportPythonFailure("transport-unavailable", reason, options.onDiagnostic);
4006
4010
  }
@@ -4084,7 +4088,7 @@ function createPythonCommands(options) {
4084
4088
  return;
4085
4089
  }
4086
4090
  try {
4087
- const status = (0, command_exports.validateExitCode)(message.exitCode);
4091
+ const status = validateExitCode(message.exitCode);
4088
4092
  settled = true;
4089
4093
  resolve(status);
4090
4094
  } catch (error) {
@@ -4149,7 +4153,7 @@ function createPythonCommands(options) {
4149
4153
  } catch (reason) {
4150
4154
  if (!signal.aborted && reason instanceof PythonInputChunkError) {
4151
4155
  try {
4152
- await (0, io_exports.writeBytes)(stderrOperation.output, new TextEncoder().encode("python: " + reason.message + "\n"), signal);
4156
+ await writeBytes(stderrOperation.output, new TextEncoder().encode("python: " + reason.message + "\n"), signal);
4153
4157
  } catch (error) {
4154
4158
  primary = { reason: error };
4155
4159
  }
@@ -4171,7 +4175,7 @@ function createPythonCommands(options) {
4171
4175
  if (primary) {
4172
4176
  if (!(primary.reason instanceof PythonFailure)) throw primary.reason;
4173
4177
  const failure2 = primary.reason;
4174
- await (0, io_exports.writeBytes)(context.stderr, new TextEncoder().encode("python: " + failure2.message + "\n"), context.signal);
4178
+ await writeBytes(context.stderr, new TextEncoder().encode("python: " + failure2.message + "\n"), context.signal);
4175
4179
  return { exitCode: 1 };
4176
4180
  }
4177
4181
  return { exitCode: result };
@@ -4193,7 +4197,7 @@ function pythonCommands(options) {
4193
4197
  }
4194
4198
 
4195
4199
  export {
4196
- filesystem_descriptor_exports,
4200
+ openCommandFile,
4197
4201
  anumber,
4198
4202
  abytes,
4199
4203
  ahash,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_platform
3
- } from "./chunk-Q45QCA4J.js";
3
+ } from "./chunk-I3KSESCR.js";
4
4
 
5
5
  // packages/safe-bash/src/commands/factor/index.ts
6
6
  init_platform();
7
- export * from "../../safe-bash-command-factor/index.js";
7
+ import {} from "../../safe-bash-command-factor/index.js";
8
8
  import { createFactorCommand, createFactorCommands, factorCommands } from "../../safe-bash-command-factor/index.js";
9
9
 
10
10
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_platform
3
- } from "./chunk-Q45QCA4J.js";
3
+ } from "./chunk-I3KSESCR.js";
4
4
 
5
5
  // packages/safe-bash/src/commands/line-endings/index.ts
6
6
  init_platform();
7
- export * from "../../safe-bash-command-dos2unix/index.js";
7
+ import {} from "../../safe-bash-command-dos2unix/index.js";
8
8
  import {
9
9
  createDos2unixCommand,
10
10
  createUnix2dosCommand,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_platform
3
- } from "./chunk-Q45QCA4J.js";
3
+ } from "./chunk-I3KSESCR.js";
4
4
 
5
5
  // packages/safe-bash/src/commands/xml/index.ts
6
6
  init_platform();
7
- export * from "../../safe-bash-command-xmllint/index.js";
7
+ import {} from "../../safe-bash-command-xmllint/index.js";
8
8
  import { createXmlCommands, xmlCommands, createXmllintCommand, createXmllintCommands, xmllintCommands, defaultXmlQueryLimits, evalSyncXmllint } from "../../safe-bash-command-xmllint/index.js";
9
9
  import { evalSyncXq } from "../../safe-bash-command-xq/index.js";
10
10
 
@@ -0,0 +1,42 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-I3KSESCR.js";
4
+
5
+ // packages/safe-bash/src/commands/internal.ts
6
+ init_platform();
7
+ import { RESOLVED_EXIT_ONE, RESOLVED_EXIT_ZERO, RETURN_EXIT_ONE, RETURN_EXIT_TWO, RETURN_EXIT_ZERO, UsageError, assertInputRequirements, bufferLimit, builtInDirectContextExecutors, codeOf, collect, concatenate, decoder, define, diagnostic, eachOperand, emptyInput, encoder, escapeBytes, evalSyncCat, evalSyncCp, evalSyncHeadTail, evalSyncLn, evalSyncMkdir, evalSyncMv, evalSyncRm, evalSyncRmdir, evalSyncSleep, evalSyncTee, evalSyncTouch, evalSyncWc, input, integer, isDefaultCommandOptions, lines, options, output, outputRange, pathOf, registerDefaultExecutor, registerDefaultExecutors, replaceArgument, requireOperands, syncCommandEvaluators, value } from "../../safe-bash-io-engine/internal.js";
8
+
9
+ export {
10
+ RESOLVED_EXIT_ONE,
11
+ RESOLVED_EXIT_ZERO,
12
+ RETURN_EXIT_ONE,
13
+ RETURN_EXIT_TWO,
14
+ RETURN_EXIT_ZERO,
15
+ UsageError,
16
+ assertInputRequirements,
17
+ bufferLimit,
18
+ builtInDirectContextExecutors,
19
+ codeOf,
20
+ concatenate,
21
+ decoder,
22
+ define,
23
+ diagnostic,
24
+ eachOperand,
25
+ emptyInput,
26
+ encoder,
27
+ escapeBytes,
28
+ input,
29
+ integer,
30
+ isDefaultCommandOptions,
31
+ lines,
32
+ options,
33
+ output,
34
+ outputRange,
35
+ pathOf,
36
+ registerDefaultExecutor,
37
+ registerDefaultExecutors,
38
+ replaceArgument,
39
+ requireOperands,
40
+ syncCommandEvaluators,
41
+ value
42
+ };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_platform
3
- } from "./chunk-Q45QCA4J.js";
3
+ } from "./chunk-I3KSESCR.js";
4
4
 
5
5
  // packages/safe-bash/src/commands/tsort/index.ts
6
6
  init_platform();
7
- export * from "../../safe-bash-command-tsort/index.js";
7
+ import {} from "../../safe-bash-command-tsort/index.js";
8
8
  import { createTsortCommand, createTsortCommands, tsortCommands } from "../../safe-bash-command-tsort/index.js";
9
9
 
10
10
  export {
@@ -0,0 +1,19 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-I3KSESCR.js";
4
+
5
+ // packages/safe-bash/src/contracts/command.ts
6
+ init_platform();
7
+ import { CommandArgumentIdentityError, CommandRegistry, builtInDirectContextExecutors, commandRuntimeIdentity, createCommandArguments, getCommandArguments, isDefaultCommandOptions, registerDefaultExecutor, registerDefaultExecutors, validateExitCode } from "../../safe-bash-contracts/command.js";
8
+
9
+ export {
10
+ CommandRegistry,
11
+ builtInDirectContextExecutors,
12
+ commandRuntimeIdentity,
13
+ createCommandArguments,
14
+ getCommandArguments,
15
+ isDefaultCommandOptions,
16
+ registerDefaultExecutor,
17
+ registerDefaultExecutors,
18
+ validateExitCode
19
+ };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_platform
3
- } from "./chunk-Q45QCA4J.js";
3
+ } from "./chunk-I3KSESCR.js";
4
4
 
5
5
  // packages/safe-bash/src/commands/pr/index.ts
6
6
  init_platform();
7
- export * from "../../safe-bash-command-pr/index.js";
7
+ import {} from "../../safe-bash-command-pr/index.js";
8
8
  import { createPrCommand, createPrCommands, prCommands, evalSyncPr } from "../../safe-bash-command-pr/index.js";
9
9
 
10
10
  export {
@@ -0,0 +1,22 @@
1
+ import {
2
+ init_platform
3
+ } from "./chunk-I3KSESCR.js";
4
+
5
+ // packages/safe-bash/src/commands/llm/index.ts
6
+ init_platform();
7
+ import { createElevenLabsProvider, createLlmCommand, createLlmCommands, createLlmConfiguration, createLlmService, createLlmTemplateStore, createOpenAiProvider, evaluateLlmTemplate, llmCommands, parseLlmSchemaDsl, validateLlmTemplateParameters, validateModelOptions } from "../../safe-bash-command-llm/index.js";
8
+
9
+ export {
10
+ createElevenLabsProvider,
11
+ createLlmCommand,
12
+ createLlmCommands,
13
+ createLlmConfiguration,
14
+ createLlmService,
15
+ createLlmTemplateStore,
16
+ createOpenAiProvider,
17
+ evaluateLlmTemplate,
18
+ llmCommands,
19
+ parseLlmSchemaDsl,
20
+ validateLlmTemplateParameters,
21
+ validateModelOptions
22
+ };
@@ -19,10 +19,6 @@ var __commonJS = (cb, mod) => function __require() {
19
19
  throw mod = 0, e;
20
20
  }
21
21
  };
22
- var __export = (target, all) => {
23
- for (var name in all)
24
- __defProp(target, name, { get: all[name], enumerable: true });
25
- };
26
22
  var __copyProps = (to, from, except, desc) => {
27
23
  if (from && typeof from === "object" || typeof from === "function") {
28
24
  for (let key of __getOwnPropNames(from))
@@ -31,7 +27,6 @@ var __copyProps = (to, from, except, desc) => {
31
27
  }
32
28
  return to;
33
29
  };
34
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
35
30
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
36
31
  // If the importer is in node compatibility mode or this is not an ESM
37
32
  // file that has been converted to a CommonJS file using a Babel-
@@ -1834,8 +1829,6 @@ var init_platform = __esm({
1834
1829
 
1835
1830
  export {
1836
1831
  __commonJS,
1837
- __export,
1838
- __reExport,
1839
1832
  __toESM,
1840
1833
  require_buffer,
1841
1834
  TransformStream,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_platform
3
- } from "./chunk-Q45QCA4J.js";
3
+ } from "./chunk-I3KSESCR.js";
4
4
 
5
5
  // packages/safe-bash/src/commands/python/invocation.ts
6
6
  init_platform();