@poe-platform/safe-bash 0.1.826 → 0.1.828

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 (174) hide show
  1. package/dist/image-ast/index.js +39 -18
  2. package/dist/pdf-ast/image.js +1 -1
  3. package/dist/pdf-ast/index.js +1 -1
  4. package/dist/pdf-ast/vendor/pdfjs-fonts.mjs +9 -3
  5. package/dist/safe-bash/chunks/{chunk-VWLQDZFF.js → chunk-C7RBTLYX.js} +12 -5
  6. package/dist/safe-bash/chunks/{chunk-TZRVK3NU.js → chunk-HWYINF6Y.js} +1 -1
  7. package/dist/safe-bash/chunks/{chunk-AGHV53VF.js → chunk-M6XFU6LQ.js} +3 -1
  8. package/dist/safe-bash/chunks/{chunk-ZJAXMB5M.js → chunk-SGHFQIZB.js} +1 -1
  9. package/dist/safe-bash/chunks/{chunk-363QOIDR.js → chunk-T6FHWSHM.js} +3 -1
  10. package/dist/safe-bash/chunks/{chunk-RAFD5ZAH.js → chunk-Y67A2DE4.js} +1 -1
  11. package/dist/safe-bash/command-chunks/{chunk-VKTM2SOL.js → chunk-2EEIB5O3.js} +192 -489
  12. package/dist/safe-bash/command-chunks/{chunk-FMGNXOMV.js → chunk-2L3NMRLG.js} +7 -3
  13. package/dist/safe-bash/command-chunks/{chunk-DAQO64WC.js → chunk-2YKOJPIW.js} +1 -1
  14. package/dist/safe-bash/command-chunks/{chunk-EPYJSPOY.js → chunk-3QCW4VQF.js} +12 -8
  15. package/dist/safe-bash/command-chunks/{chunk-YRBFNT5B.js → chunk-3YL2TMLA.js} +10 -1
  16. package/dist/safe-bash/command-chunks/{chunk-UWIDPTOB.js → chunk-3ZCABR5P.js} +1 -1
  17. package/dist/safe-bash/command-chunks/{chunk-5H7ZHP7F.js → chunk-43NDRBKY.js} +1 -1
  18. package/dist/safe-bash/command-chunks/{chunk-BBOYR6LV.js → chunk-46GA576V.js} +3 -3
  19. package/dist/safe-bash/command-chunks/{chunk-WPT2FCHH.js → chunk-4SLPM2WM.js} +1 -1
  20. package/dist/safe-bash/command-chunks/{chunk-7ZQVMPSB.js → chunk-5CAXR62E.js} +1 -1
  21. package/dist/safe-bash/command-chunks/{chunk-3DTHX5UU.js → chunk-66653AEZ.js} +40 -14
  22. package/dist/safe-bash/command-chunks/{chunk-ETFJ4L7F.js → chunk-6OLE6CLV.js} +1 -1
  23. package/dist/safe-bash/command-chunks/{chunk-2KMNVJB7.js → chunk-A7PKUIJT.js} +1 -1
  24. package/dist/safe-bash/command-chunks/{chunk-O3FTKLWR.js → chunk-BXOBM4HJ.js} +26 -17
  25. package/dist/safe-bash/command-chunks/{chunk-P66Q5F6K.js → chunk-DEQ47SBQ.js} +3 -3
  26. package/dist/safe-bash/command-chunks/{chunk-ZPBL7TYJ.js → chunk-EF3RAQ7M.js} +1 -1
  27. package/dist/safe-bash/command-chunks/{chunk-RQTFK7AV.js → chunk-EOO3NLD5.js} +1 -1
  28. package/dist/safe-bash/command-chunks/{chunk-EV7A5FNN.js → chunk-FFFRLPXU.js} +2 -2
  29. package/dist/safe-bash/command-chunks/{chunk-MQCLG2CT.js → chunk-FMXBLKWO.js} +1 -1
  30. package/dist/safe-bash/command-chunks/{chunk-4MVQE6CT.js → chunk-FYTBEGSY.js} +1 -1
  31. package/dist/safe-bash/command-chunks/chunk-HS2L7I4N.js +219 -0
  32. package/dist/safe-bash/command-chunks/{chunk-NXZJJM4J.js → chunk-IGXH5W5Z.js} +1 -1
  33. package/dist/safe-bash/command-chunks/{chunk-CMJBRGU2.js → chunk-IHQZKUBS.js} +1 -1
  34. package/dist/safe-bash/command-chunks/chunk-JADJ4BMN.js +1519 -0
  35. package/dist/safe-bash/command-chunks/{chunk-5AQAWIYK.js → chunk-JEZC5V3B.js} +4 -0
  36. package/dist/safe-bash/command-chunks/{chunk-YB5TNDY6.js → chunk-K5VJ4NNL.js} +39 -5
  37. package/dist/safe-bash/command-chunks/{chunk-7RQGRFHJ.js → chunk-KHWDEAE4.js} +2 -2
  38. package/dist/safe-bash/command-chunks/chunk-KSCVKF7I.js +604 -0
  39. package/dist/safe-bash/command-chunks/{chunk-3NJETNC2.js → chunk-MBXNG6C3.js} +2 -2
  40. package/dist/safe-bash/command-chunks/{chunk-WKS2PAZL.js → chunk-N63IGO5F.js} +10 -1
  41. package/dist/safe-bash/command-chunks/{chunk-3DID6MQY.js → chunk-OWTQYLID.js} +2 -2
  42. package/dist/safe-bash/command-chunks/{chunk-4EA7WI3L.js → chunk-QOOQD6BD.js} +42 -33
  43. package/dist/safe-bash/command-chunks/{chunk-R3SLT3ZX.js → chunk-R6GON4H3.js} +11 -1
  44. package/dist/safe-bash/command-chunks/{chunk-2GILUQJY.js → chunk-R7ZGDHME.js} +3 -3
  45. package/dist/safe-bash/command-chunks/{chunk-LKAFLJ5L.js → chunk-RWQKX44L.js} +1 -1
  46. package/dist/safe-bash/command-chunks/{chunk-PKH57OIC.js → chunk-SG2KOOD4.js} +2 -2
  47. package/dist/safe-bash/command-chunks/{chunk-HCPEYQKT.js → chunk-SIAN5LI3.js} +286 -307
  48. package/dist/safe-bash/command-chunks/chunk-T4TGJYFV.js +60 -0
  49. package/dist/safe-bash/command-chunks/{chunk-T7RT2BNL.js → chunk-U5TQVW64.js} +191 -146
  50. package/dist/safe-bash/command-chunks/{chunk-NXCJNPL3.js → chunk-UCE77LYV.js} +2 -1
  51. package/dist/safe-bash/command-chunks/{chunk-OT75C5YS.js → chunk-UGDQSGUZ.js} +1 -1
  52. package/dist/safe-bash/command-chunks/{chunk-EWECMOQ5.js → chunk-UIHPHIKI.js} +1 -1
  53. package/dist/safe-bash/command-chunks/{chunk-4XYGJB24.js → chunk-VJXPNNBD.js} +3 -3
  54. package/dist/safe-bash/command-chunks/{chunk-E5CDHXFA.js → chunk-VOR6YDZC.js} +26 -1
  55. package/dist/safe-bash/command-chunks/{chunk-ZIDESNHW.js → chunk-VQINIBCZ.js} +1 -1
  56. package/dist/safe-bash/command-chunks/chunk-VSNVYOK2.js +30 -0
  57. package/dist/safe-bash/command-chunks/{chunk-Q2ACHUTY.js → chunk-WRO3PB2M.js} +1 -1
  58. package/dist/safe-bash/command-chunks/{chunk-RUAGHZNF.js → chunk-X5ODTF3E.js} +7 -5
  59. package/dist/safe-bash/command-chunks/{chunk-LH4VBNF6.js → chunk-XGTSP2CP.js} +84 -16
  60. package/dist/safe-bash/command-chunks/{chunk-J3VS55K4.js → chunk-YHRESVJ7.js} +9 -3
  61. package/dist/safe-bash/command-chunks/{chunk-K576GZED.js → chunk-YK6ZVCA2.js} +2 -2
  62. package/dist/safe-bash/command-chunks/{chunk-W5LH7D23.js → chunk-YR2A2L4J.js} +8 -8
  63. package/dist/safe-bash/command-chunks/{chunk-UYNJF5QN.js → chunk-ZALAWNOE.js} +76 -122
  64. package/dist/safe-bash/command-chunks/{pdf-renderer-346WYKSZ.js → pdf-renderer-5QWOVFA4.js} +1 -1
  65. package/dist/safe-bash/command-chunks/{prompt-tool-debug-3POFNRYP.js → prompt-tool-debug-G7ATE7D5.js} +6 -4
  66. package/dist/safe-bash/commands/bc/index.browser.js +1 -1
  67. package/dist/safe-bash/commands/llm/index.browser.js +5 -1
  68. package/dist/safe-bash/commands/llm/index.js +1 -1
  69. package/dist/safe-bash/commands/python/executor.browser.js +3 -1
  70. package/dist/safe-bash/commands/python/executor.js +1 -1
  71. package/dist/safe-bash/commands/python/index.browser.js +5 -1
  72. package/dist/safe-bash/commands/python/index.js +1 -1
  73. package/dist/safe-bash/core.browser.js +2 -2
  74. package/dist/safe-bash/full-core.browser.js +14 -6
  75. package/dist/safe-bash/plugins/index.browser.js +3 -3
  76. package/dist/safe-bash/registry-entry.browser.js +2 -2
  77. package/dist/safe-bash/search.browser.js +1 -1
  78. package/dist/safe-bash/shell/runtime.js +18 -7
  79. package/dist/safe-bash/shell/sync-extra-evaluators.js +2 -0
  80. package/dist/safe-bash/shell-entry.browser.js +2 -2
  81. package/dist/safe-bash-command-awk/awk-runtime.js +2 -2
  82. package/dist/safe-bash-command-awk/awk-syntax.js +1 -1
  83. package/dist/safe-bash-command-awk/awk.js +3 -3
  84. package/dist/safe-bash-command-awk/index.js +3 -3
  85. package/dist/safe-bash-command-ffmpeg/index.js +15 -12
  86. package/dist/safe-bash-command-ffprobe/index.js +2 -2
  87. package/dist/safe-bash-command-ffprobe/media.js +2 -2
  88. package/dist/safe-bash-command-git/git_rust.wasm +0 -0
  89. package/dist/safe-bash-command-gpg/index.js +11 -3
  90. package/dist/safe-bash-command-imagemagick/index.js +45 -12
  91. package/dist/safe-bash-command-llm/collections.js +6 -4
  92. package/dist/safe-bash-command-llm/command.js +4 -4
  93. package/dist/safe-bash-command-llm/import-json-document.d.ts +9 -2
  94. package/dist/safe-bash-command-llm/index.d.ts +2 -1
  95. package/dist/safe-bash-command-llm/index.js +10 -4
  96. package/dist/safe-bash-command-llm/loader-provider.d.ts +5 -0
  97. package/dist/safe-bash-command-mcp/index.js +10 -13
  98. package/dist/safe-bash-command-pdftoppm/index.js +2 -2
  99. package/dist/safe-bash-command-playwright-cli/index.js +2 -2
  100. package/dist/safe-bash-command-playwright-cli/playwright/ability-execution.d.ts +1 -0
  101. package/dist/safe-bash-command-playwright-cli/playwright/ability-execution.js +1 -1
  102. package/dist/safe-bash-command-playwright-cli/playwright/controller.d.ts +2 -0
  103. package/dist/safe-bash-command-playwright-cli/playwright/controller.js +2 -2
  104. package/dist/safe-bash-command-playwright-cli/playwright/index.js +2 -2
  105. package/dist/safe-bash-command-python/build-backend.d.ts +2 -0
  106. package/dist/safe-bash-command-python/cache.d.ts +1 -1
  107. package/dist/safe-bash-command-python/executor.d.ts +5 -2
  108. package/dist/safe-bash-command-python/executor.js +11 -6
  109. package/dist/safe-bash-command-python/host-capabilities.js +1 -1
  110. package/dist/safe-bash-command-python/index.js +11 -6
  111. package/dist/safe-bash-command-python/jspi.js +5 -3
  112. package/dist/safe-bash-command-python/manifest-file.d.ts +44 -0
  113. package/dist/safe-bash-command-python/manifest.d.ts +45 -0
  114. package/dist/safe-bash-command-python/provisioning.d.ts +20 -1
  115. package/dist/safe-bash-command-python/provisioning.js +3 -2
  116. package/dist/safe-bash-command-python/reply.js +7 -11
  117. package/dist/safe-bash-command-python/source-archive.js +2 -2
  118. package/dist/safe-bash-command-python/source-zip.js +2 -2
  119. package/dist/safe-bash-command-python/worker.js +34 -21
  120. package/dist/safe-bash-command-sqlite3/engine.d.ts +4 -0
  121. package/dist/safe-bash-command-sqlite3/index.js +174 -18
  122. package/dist/safe-bash-command-svgo/index.js +1 -1
  123. package/dist/safe-bash-command-tar/create.js +3 -3
  124. package/dist/safe-bash-command-tar/extract.js +3 -3
  125. package/dist/safe-bash-command-tar/index.js +5 -5
  126. package/dist/safe-bash-command-tar/modes.js +5 -5
  127. package/dist/safe-bash-command-tar/options.d.ts +1 -1
  128. package/dist/safe-bash-command-tar/options.js +1 -1
  129. package/dist/safe-bash-command-tar/stream.js +1 -1
  130. package/dist/safe-bash-command-wkhtmltopdf/index.js +1 -1
  131. package/dist/safe-bash-command-xan/argv.js +1 -1
  132. package/dist/safe-bash-command-xan/commands.js +3 -3
  133. package/dist/safe-bash-command-xan/index.js +3 -3
  134. package/dist/safe-bash-command-xan/io.js +2 -2
  135. package/dist/safe-bash-compression-engine/bounded-codec.js +3 -3
  136. package/dist/safe-bash-compression-engine/codec-loader.js +2 -2
  137. package/dist/safe-bash-compression-engine/files.js +6 -6
  138. package/dist/safe-bash-compression-engine/index.js +5 -5
  139. package/dist/safe-bash-compression-engine/operand.js +6 -6
  140. package/dist/safe-bash-compression-engine/options.js +1 -1
  141. package/dist/safe-bash-compression-engine/stream.js +5 -5
  142. package/dist/safe-bash-compression-engine/zstd-decode.js +4 -4
  143. package/dist/safe-bash-contracts/filesystem-descriptor.js +1 -1
  144. package/dist/safe-bash-contracts/filesystem-output.js +1 -1
  145. package/dist/safe-bash-csv-engine/index.js +4 -4
  146. package/dist/safe-bash-csv-engine/python-codec-aliases.js +1 -1
  147. package/dist/safe-bash-csv-engine/python-codepages.js +2 -2
  148. package/dist/safe-bash-csv-engine/python-utf16.js +3 -3
  149. package/dist/safe-bash-csv-engine/text-decoder.js +4 -4
  150. package/dist/safe-bash-graphviz-engine/index.js +1 -1
  151. package/dist/safe-bash-pager-engine/index.js +2 -2
  152. package/dist/safe-bash-query-engine/capture.js +3 -3
  153. package/dist/safe-bash-query-engine/delpaths.js +3 -3
  154. package/dist/safe-bash-query-engine/formats.js +2 -2
  155. package/dist/safe-bash-query-engine/index.js +10 -10
  156. package/dist/safe-bash-query-engine/indices.js +3 -3
  157. package/dist/safe-bash-query-engine/input.d.ts +3 -3
  158. package/dist/safe-bash-query-engine/input.js +1 -1
  159. package/dist/safe-bash-query-engine/interpreter.js +9 -9
  160. package/dist/safe-bash-query-engine/query-core.js +10 -10
  161. package/dist/safe-bash-query-engine/regex.js +4 -4
  162. package/dist/safe-bash-query-engine/splits.js +5 -5
  163. package/dist/safe-bash-query-engine/values.js +2 -2
  164. package/dist/safe-playwright-cloudflare/browser-code-executor.js +2 -2
  165. package/dist/safe-playwright-cloudflare/browser-guest-source.d.ts +2 -0
  166. package/dist/safe-playwright-cloudflare/browser-guest-source.js +36 -0
  167. package/dist/safe-playwright-cloudflare/browser-run-code-contract.d.ts +1 -1
  168. package/dist/safe-playwright-cloudflare/browser-run-code-guest.generated.d.ts +1 -2
  169. package/dist/safe-playwright-cloudflare/browser-run-code-guest.generated.js +2 -2
  170. package/dist/safe-playwright-cloudflare/browser-run-code.js +4 -1
  171. package/package.json +4 -3
  172. package/dist/safe-bash/command-chunks/chunk-BKQWFABY.js +0 -960
  173. package/dist/safe-bash/command-chunks/chunk-DV7TCGJR.js +0 -691
  174. package/dist/safe-bash/command-chunks/chunk-ZERCTWUI.js +0 -467
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  zstdDecode
3
- } from "../safe-bash/command-chunks/chunk-4MVQE6CT.js";
3
+ } from "../safe-bash/command-chunks/chunk-FYTBEGSY.js";
4
4
  import "../safe-bash/command-chunks/chunk-52DDLGBS.js";
5
- import "../safe-bash/command-chunks/chunk-CMJBRGU2.js";
6
- import "../safe-bash/command-chunks/chunk-ETFJ4L7F.js";
7
- import "../safe-bash/command-chunks/chunk-5AQAWIYK.js";
5
+ import "../safe-bash/command-chunks/chunk-IHQZKUBS.js";
6
+ import "../safe-bash/command-chunks/chunk-6OLE6CLV.js";
7
+ import "../safe-bash/command-chunks/chunk-JEZC5V3B.js";
8
8
  import "../safe-bash/command-chunks/chunk-5T7WL5CN.js";
9
9
  import "../safe-bash/command-chunks/chunk-LNWJHOR5.js";
10
10
  import "../safe-bash/command-chunks/chunk-V7IP2PFT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openCommandFile
3
- } from "../safe-bash/command-chunks/chunk-YRBFNT5B.js";
3
+ } from "../safe-bash/command-chunks/chunk-3YL2TMLA.js";
4
4
  import "../safe-bash/command-chunks/chunk-PUJB6ZOP.js";
5
5
  import "../safe-bash/command-chunks/chunk-SMDVFI7O.js";
6
6
  import "../safe-bash/command-chunks/chunk-NDGO4DJT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openCommandFile
3
- } from "../safe-bash/command-chunks/chunk-YRBFNT5B.js";
3
+ } from "../safe-bash/command-chunks/chunk-3YL2TMLA.js";
4
4
  import {
5
5
  createOutputOperation
6
6
  } from "../safe-bash/command-chunks/chunk-KINIV2SV.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PythonTextDecoder
3
- } from "../safe-bash/command-chunks/chunk-P66Q5F6K.js";
4
- import "../safe-bash/command-chunks/chunk-Q2ACHUTY.js";
5
- import "../safe-bash/command-chunks/chunk-NXZJJM4J.js";
6
- import "../safe-bash/command-chunks/chunk-ZERCTWUI.js";
3
+ } from "../safe-bash/command-chunks/chunk-DEQ47SBQ.js";
4
+ import "../safe-bash/command-chunks/chunk-WRO3PB2M.js";
5
+ import "../safe-bash/command-chunks/chunk-IGXH5W5Z.js";
6
+ import "../safe-bash/command-chunks/chunk-VSNVYOK2.js";
7
7
  import "../safe-bash/command-chunks/chunk-TGSNVLFZ.js";
8
8
  import "../safe-bash/command-chunks/chunk-RUXOFW5G.js";
9
9
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  normalizeEncoding,
3
3
  pythonCodecAliases
4
- } from "../safe-bash/command-chunks/chunk-ZERCTWUI.js";
4
+ } from "../safe-bash/command-chunks/chunk-VSNVYOK2.js";
5
5
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
6
6
  export {
7
7
  normalizeEncoding,
@@ -3,8 +3,8 @@ import {
3
3
  dbfCodepages,
4
4
  decodePythonSingleByte,
5
5
  pythonSingleByteCodepages
6
- } from "../safe-bash/command-chunks/chunk-NXZJJM4J.js";
7
- import "../safe-bash/command-chunks/chunk-ZERCTWUI.js";
6
+ } from "../safe-bash/command-chunks/chunk-IGXH5W5Z.js";
7
+ import "../safe-bash/command-chunks/chunk-VSNVYOK2.js";
8
8
  import "../safe-bash/command-chunks/chunk-RUXOFW5G.js";
9
9
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
10
10
  export {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PythonTextEncodingError,
3
3
  PythonUtf16Decoder
4
- } from "../safe-bash/command-chunks/chunk-Q2ACHUTY.js";
5
- import "../safe-bash/command-chunks/chunk-NXZJJM4J.js";
6
- import "../safe-bash/command-chunks/chunk-ZERCTWUI.js";
4
+ } from "../safe-bash/command-chunks/chunk-WRO3PB2M.js";
5
+ import "../safe-bash/command-chunks/chunk-IGXH5W5Z.js";
6
+ import "../safe-bash/command-chunks/chunk-VSNVYOK2.js";
7
7
  import "../safe-bash/command-chunks/chunk-RUXOFW5G.js";
8
8
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
9
9
  export {
@@ -2,12 +2,12 @@ import {
2
2
  PythonIso2022PendingError,
3
3
  PythonTextDecoder,
4
4
  PythonUtf7EncodingError
5
- } from "../safe-bash/command-chunks/chunk-P66Q5F6K.js";
6
- import "../safe-bash/command-chunks/chunk-Q2ACHUTY.js";
5
+ } from "../safe-bash/command-chunks/chunk-DEQ47SBQ.js";
6
+ import "../safe-bash/command-chunks/chunk-WRO3PB2M.js";
7
7
  import {
8
8
  PythonTextDecodeError
9
- } from "../safe-bash/command-chunks/chunk-NXZJJM4J.js";
10
- import "../safe-bash/command-chunks/chunk-ZERCTWUI.js";
9
+ } from "../safe-bash/command-chunks/chunk-IGXH5W5Z.js";
10
+ import "../safe-bash/command-chunks/chunk-VSNVYOK2.js";
11
11
  import "../safe-bash/command-chunks/chunk-TGSNVLFZ.js";
12
12
  import "../safe-bash/command-chunks/chunk-RUXOFW5G.js";
13
13
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
@@ -4,7 +4,7 @@ import {
4
4
  parseDot,
5
5
  renderSvg,
6
6
  serializeDot
7
- } from "../safe-bash/command-chunks/chunk-DAQO64WC.js";
7
+ } from "../safe-bash/command-chunks/chunk-2YKOJPIW.js";
8
8
  import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
9
9
 
10
10
  // packages/safe-bash-graphviz-engine/src/index.ts
@@ -47,7 +47,7 @@ async function readSourceText(source, signal, admit) {
47
47
  merged.set(c, offset);
48
48
  offset += c.byteLength;
49
49
  }
50
- return new TextDecoder("utf-8", { fatal: false }).decode(merged);
50
+ return new TextDecoder("utf-8", { fatal: false, ignoreBOM: true }).decode(merged);
51
51
  }
52
52
  function createPagerCommand(name, options = {}) {
53
53
  const limits = settings(options);
@@ -161,7 +161,7 @@ function createPagerCommand(name, options = {}) {
161
161
  context.signal.throwIfAborted();
162
162
  admit(raw.byteLength);
163
163
  if (passThrough) await writeBytes(context.stdout, raw, context.signal);
164
- else texts.push(new TextDecoder("utf-8", { fatal: false }).decode(raw));
164
+ else texts.push(new TextDecoder("utf-8", { fatal: false, ignoreBOM: true }).decode(raw));
165
165
  } catch (err) {
166
166
  context.signal.throwIfAborted();
167
167
  if (!(err instanceof FsError)) throw err;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  capture,
3
3
  extendedPattern
4
- } from "../safe-bash/command-chunks/chunk-UWIDPTOB.js";
5
- import "../safe-bash/command-chunks/chunk-ZIDESNHW.js";
4
+ } from "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
5
+ import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
6
6
  import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
7
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
7
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
8
8
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
9
9
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
10
10
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  delpaths
3
- } from "../safe-bash/command-chunks/chunk-OT75C5YS.js";
4
- import "../safe-bash/command-chunks/chunk-ZIDESNHW.js";
3
+ } from "../safe-bash/command-chunks/chunk-UGDQSGUZ.js";
4
+ import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
5
5
  import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
6
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
6
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
7
7
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
8
8
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
9
9
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  formatValue
3
- } from "../safe-bash/command-chunks/chunk-WKS2PAZL.js";
4
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
3
+ } from "../safe-bash/command-chunks/chunk-N63IGO5F.js";
4
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
5
5
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
6
6
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
7
7
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  YqValueFailure,
3
3
  createYqQuerySession
4
- } from "../safe-bash/command-chunks/chunk-ZPBL7TYJ.js";
4
+ } from "../safe-bash/command-chunks/chunk-EF3RAQ7M.js";
5
5
  import "../safe-bash/command-chunks/chunk-DZY7V74W.js";
6
- import "../safe-bash/command-chunks/chunk-W5LH7D23.js";
6
+ import "../safe-bash/command-chunks/chunk-YR2A2L4J.js";
7
7
  import "../safe-bash/command-chunks/chunk-2IGH6JIP.js";
8
- import "../safe-bash/command-chunks/chunk-4XYGJB24.js";
9
- import "../safe-bash/command-chunks/chunk-K576GZED.js";
10
- import "../safe-bash/command-chunks/chunk-UWIDPTOB.js";
8
+ import "../safe-bash/command-chunks/chunk-VJXPNNBD.js";
9
+ import "../safe-bash/command-chunks/chunk-YK6ZVCA2.js";
10
+ import "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
11
11
  import "../safe-bash/command-chunks/chunk-BTDSUATE.js";
12
- import "../safe-bash/command-chunks/chunk-OT75C5YS.js";
13
- import "../safe-bash/command-chunks/chunk-WKS2PAZL.js";
14
- import "../safe-bash/command-chunks/chunk-RQTFK7AV.js";
15
- import "../safe-bash/command-chunks/chunk-ZIDESNHW.js";
12
+ import "../safe-bash/command-chunks/chunk-UGDQSGUZ.js";
13
+ import "../safe-bash/command-chunks/chunk-N63IGO5F.js";
14
+ import "../safe-bash/command-chunks/chunk-EOO3NLD5.js";
15
+ import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
16
16
  import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
17
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
17
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
18
18
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
19
19
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
20
20
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  indices
3
- } from "../safe-bash/command-chunks/chunk-RQTFK7AV.js";
4
- import "../safe-bash/command-chunks/chunk-ZIDESNHW.js";
3
+ } from "../safe-bash/command-chunks/chunk-EOO3NLD5.js";
4
+ import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
5
5
  import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
6
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
6
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
7
7
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
8
8
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
9
9
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -10,7 +10,7 @@ export declare class JqParseError extends JqError {
10
10
  constructor(detail: string, offset: number, line?: number, column?: number, located?: boolean);
11
11
  diagnostic(): string;
12
12
  }
13
- export declare function decodeUtf8(bytes: string, budget: Budget, fatal?: boolean | "surrogatepass", points?: number[]): string;
13
+ export declare function decodeUtf8(bytes: string, budget: Budget, fatal?: boolean | "surrogatepass" | "javascript", points?: number[]): string;
14
14
  export declare function parseJson(input: string, budget: Budget, byteEncoded?: boolean): Json;
15
15
  export declare function readChunks(source: ByteSource, budget: Budget): AsyncGenerator<Uint8Array>;
16
16
  export interface JsonInputOptions {
@@ -22,8 +22,8 @@ export interface JsonInputOptions {
22
22
  readonly containers?: boolean; /** Preserve Python code points in a fourth event field: { key, points }. Requires python39. */
23
23
  readonly codePoints?: boolean;
24
24
  };
25
- /** Python 3.9 JSON grammar, byte encoding detection and preserved escaped surrogates. */
26
- readonly profile?: "python39";
25
+ /** Python byte JSON or JavaScript TextDecoder/JSON.parse semantics, as one document. */
26
+ readonly profile?: "python39" | "javascript";
27
27
  readonly stream?: boolean;
28
28
  readonly streamErrors?: boolean;
29
29
  readonly sequence?: boolean;
@@ -14,7 +14,7 @@ import {
14
14
  tryProcessFlatSelectProjectChunkSync,
15
15
  tryStringifyCompactSync,
16
16
  tryWriteCompactSync
17
- } from "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
17
+ } from "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
18
18
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
19
19
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
20
20
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Interpreter
3
- } from "../safe-bash/command-chunks/chunk-W5LH7D23.js";
3
+ } from "../safe-bash/command-chunks/chunk-YR2A2L4J.js";
4
4
  import "../safe-bash/command-chunks/chunk-2IGH6JIP.js";
5
- import "../safe-bash/command-chunks/chunk-4XYGJB24.js";
6
- import "../safe-bash/command-chunks/chunk-K576GZED.js";
7
- import "../safe-bash/command-chunks/chunk-UWIDPTOB.js";
5
+ import "../safe-bash/command-chunks/chunk-VJXPNNBD.js";
6
+ import "../safe-bash/command-chunks/chunk-YK6ZVCA2.js";
7
+ import "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
8
8
  import "../safe-bash/command-chunks/chunk-BTDSUATE.js";
9
- import "../safe-bash/command-chunks/chunk-OT75C5YS.js";
10
- import "../safe-bash/command-chunks/chunk-WKS2PAZL.js";
11
- import "../safe-bash/command-chunks/chunk-RQTFK7AV.js";
12
- import "../safe-bash/command-chunks/chunk-ZIDESNHW.js";
9
+ import "../safe-bash/command-chunks/chunk-UGDQSGUZ.js";
10
+ import "../safe-bash/command-chunks/chunk-N63IGO5F.js";
11
+ import "../safe-bash/command-chunks/chunk-EOO3NLD5.js";
12
+ import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
13
13
  import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
14
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
14
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
15
15
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
16
16
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
17
17
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  YqValueFailure,
3
3
  createYqQuerySession
4
- } from "../safe-bash/command-chunks/chunk-ZPBL7TYJ.js";
4
+ } from "../safe-bash/command-chunks/chunk-EF3RAQ7M.js";
5
5
  import "../safe-bash/command-chunks/chunk-DZY7V74W.js";
6
- import "../safe-bash/command-chunks/chunk-W5LH7D23.js";
6
+ import "../safe-bash/command-chunks/chunk-YR2A2L4J.js";
7
7
  import "../safe-bash/command-chunks/chunk-2IGH6JIP.js";
8
- import "../safe-bash/command-chunks/chunk-4XYGJB24.js";
9
- import "../safe-bash/command-chunks/chunk-K576GZED.js";
10
- import "../safe-bash/command-chunks/chunk-UWIDPTOB.js";
8
+ import "../safe-bash/command-chunks/chunk-VJXPNNBD.js";
9
+ import "../safe-bash/command-chunks/chunk-YK6ZVCA2.js";
10
+ import "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
11
11
  import "../safe-bash/command-chunks/chunk-BTDSUATE.js";
12
- import "../safe-bash/command-chunks/chunk-OT75C5YS.js";
13
- import "../safe-bash/command-chunks/chunk-WKS2PAZL.js";
14
- import "../safe-bash/command-chunks/chunk-RQTFK7AV.js";
15
- import "../safe-bash/command-chunks/chunk-ZIDESNHW.js";
12
+ import "../safe-bash/command-chunks/chunk-UGDQSGUZ.js";
13
+ import "../safe-bash/command-chunks/chunk-N63IGO5F.js";
14
+ import "../safe-bash/command-chunks/chunk-EOO3NLD5.js";
15
+ import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
16
16
  import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
17
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
17
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
18
18
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
19
19
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
20
20
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -4,11 +4,11 @@ import {
4
4
  regexFlags,
5
5
  scanRegex,
6
6
  substituteRegex
7
- } from "../safe-bash/command-chunks/chunk-K576GZED.js";
8
- import "../safe-bash/command-chunks/chunk-UWIDPTOB.js";
9
- import "../safe-bash/command-chunks/chunk-ZIDESNHW.js";
7
+ } from "../safe-bash/command-chunks/chunk-YK6ZVCA2.js";
8
+ import "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
9
+ import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
10
10
  import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
11
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
11
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
12
12
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
13
13
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
14
14
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  splitRegex
3
- } from "../safe-bash/command-chunks/chunk-4XYGJB24.js";
4
- import "../safe-bash/command-chunks/chunk-K576GZED.js";
5
- import "../safe-bash/command-chunks/chunk-UWIDPTOB.js";
6
- import "../safe-bash/command-chunks/chunk-ZIDESNHW.js";
3
+ } from "../safe-bash/command-chunks/chunk-VJXPNNBD.js";
4
+ import "../safe-bash/command-chunks/chunk-YK6ZVCA2.js";
5
+ import "../safe-bash/command-chunks/chunk-3ZCABR5P.js";
6
+ import "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
7
7
  import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
8
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
8
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
9
9
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
10
10
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
11
11
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -14,9 +14,9 @@ import {
14
14
  stringCompare,
15
15
  stringCompareMaybeSync,
16
16
  type
17
- } from "../safe-bash/command-chunks/chunk-ZIDESNHW.js";
17
+ } from "../safe-bash/command-chunks/chunk-VQINIBCZ.js";
18
18
  import "../safe-bash/command-chunks/chunk-BOMCPF7N.js";
19
- import "../safe-bash/command-chunks/chunk-HCPEYQKT.js";
19
+ import "../safe-bash/command-chunks/chunk-SIAN5LI3.js";
20
20
  import "../safe-bash/command-chunks/chunk-3K5FCRUG.js";
21
21
  import "../safe-bash/command-chunks/chunk-KK2T6Z7J.js";
22
22
  import "../safe-bash/command-chunks/chunk-V72MXW7X.js";
@@ -1,11 +1,11 @@
1
1
  import { createBrowserRunCode } from "./browser-run-code.js";
2
- import { browserRunCodeGuestSource } from "./browser-run-code-guest.generated.js";
2
+ import { loadBrowserRunCodeGuestSource } from "./browser-run-code-guest.generated.js";
3
3
  export function createBrowserCodeExecutor(resource, runtime) {
4
4
  const execute = runtime?.loader
5
5
  ? createBrowserRunCode({
6
6
  ownerId: runtime.ownerId,
7
7
  loader: runtime.loader,
8
- guestSource: browserRunCodeGuestSource,
8
+ guestSource: loadBrowserRunCodeGuestSource,
9
9
  browser: resource.browser,
10
10
  connectSocket: resource.connectSocket,
11
11
  retire: resource.release,
@@ -0,0 +1,2 @@
1
+ /** Trusted build output, inflated only for run-code; cache no request-owned I/O. */
2
+ export declare function createCompressedGuestSource(base64: string, byteLength: number): (signal: AbortSignal) => Promise<string>;
@@ -0,0 +1,36 @@
1
+ /** Trusted build output, inflated only for run-code; cache no request-owned I/O. */
2
+ export function createCompressedGuestSource(base64, byteLength) {
3
+ let source;
4
+ return async (signal) => {
5
+ signal.throwIfAborted();
6
+ if (source !== undefined)
7
+ return source;
8
+ const encoded = atob(base64);
9
+ const compressed = new Uint8Array(encoded.length);
10
+ for (let index = 0; index < encoded.length; index++)
11
+ compressed[index] = encoded.charCodeAt(index);
12
+ const reader = new Blob([compressed]).stream().pipeThrough(new DecompressionStream("gzip"), { signal }).getReader();
13
+ const bytes = new Uint8Array(byteLength);
14
+ let offset = 0;
15
+ try {
16
+ while (true) {
17
+ const { done, value } = await reader.read();
18
+ if (done)
19
+ break;
20
+ if (value.byteLength > byteLength - offset)
21
+ throw new Error("Browser guest source exceeds its build size");
22
+ bytes.set(value, offset);
23
+ offset += value.byteLength;
24
+ }
25
+ signal.throwIfAborted();
26
+ if (offset !== byteLength)
27
+ throw new Error("Browser guest source size mismatch");
28
+ source = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
29
+ return source;
30
+ }
31
+ finally {
32
+ await reader.cancel().catch(() => { });
33
+ reader.releaseLock();
34
+ }
35
+ };
36
+ }
@@ -18,7 +18,7 @@ export interface BrowserRunCodeOptions {
18
18
  ownerId: string;
19
19
  browser: Browser;
20
20
  loader: WorkerLoader;
21
- guestSource: string;
21
+ guestSource: string | ((signal: AbortSignal) => Promise<string>);
22
22
  /** Opens only the browser acquired for this owner; never accepts a guest ID. */
23
23
  connectSocket(signal: AbortSignal): Promise<WebSocket>;
24
24
  /** Idempotently destroys the owned browser, including renderer-side work. */
@@ -1,2 +1 @@
1
- /** @type {string} */
2
- export const browserRunCodeGuestSource: string;
1
+ export const loadBrowserRunCodeGuestSource: (signal: AbortSignal) => Promise<string>;