@poe-platform/safe-bash 0.1.801 → 0.1.803

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 (198) hide show
  1. package/README.md +4 -2
  2. package/dist/image-ast/index.browser.js +16 -5
  3. package/dist/image-ast/index.js +16 -5
  4. package/dist/safe-bash/chunks/chunk-2LSAMQER.js +84 -0
  5. package/dist/safe-bash/chunks/chunk-3HQU4OJO.js +13 -0
  6. package/dist/safe-bash/chunks/chunk-4BSJLKNM.js +14 -0
  7. package/dist/safe-bash/chunks/chunk-4D4N7IU2.js +47 -0
  8. package/dist/safe-bash/chunks/chunk-55YJASTN.js +14 -0
  9. package/dist/safe-bash/chunks/{chunk-NZQXYWA3.js → chunk-5OHX7C2V.js} +0 -1
  10. package/dist/safe-bash/chunks/chunk-7ZBU7KYV.js +14 -0
  11. package/dist/safe-bash/chunks/{chunk-7VNF5BFF.js → chunk-B7PIL77G.js} +101 -415
  12. package/dist/safe-bash/chunks/chunk-DQP3VHSB.js +15 -0
  13. package/dist/safe-bash/chunks/{chunk-VQDD3G76.js → chunk-EEEWOYEG.js} +18 -18
  14. package/dist/safe-bash/chunks/chunk-FZE4HW6G.js +11 -0
  15. package/dist/safe-bash/chunks/{chunk-45PK3NWI.js → chunk-GDYNCWRV.js} +1 -1
  16. package/dist/safe-bash/chunks/chunk-GEG3BWGE.js +14 -0
  17. package/dist/safe-bash/chunks/chunk-HBCN24ZA.js +50 -0
  18. package/dist/safe-bash/chunks/chunk-HZ7BWKQ3.js +13 -0
  19. package/dist/safe-bash/chunks/{chunk-ICFDYV64.js → chunk-HZAMGT5I.js} +2 -2
  20. package/dist/safe-bash/chunks/{chunk-FNDNHAGE.js → chunk-JMMEIDPF.js} +2 -2
  21. package/dist/safe-bash/chunks/{chunk-IVRQ4BXL.js → chunk-PH63PLPZ.js} +7 -7
  22. package/dist/safe-bash/chunks/{chunk-SZH7EJLD.js → chunk-PNBBUWSM.js} +5529 -6547
  23. package/dist/safe-bash/chunks/chunk-QGUV42T5.js +44 -0
  24. package/dist/safe-bash/chunks/chunk-R3NAKOED.js +51 -0
  25. package/dist/safe-bash/chunks/chunk-RRR7AQ24.js +38 -0
  26. package/dist/safe-bash/chunks/{chunk-PQRAK7HU.js → chunk-RYFQ3LZG.js} +281 -476
  27. package/dist/safe-bash/chunks/chunk-VBTDHOWC.js +55 -0
  28. package/dist/safe-bash/chunks/{chunk-NR3EM4LS.js → chunk-VKNVHEX3.js} +1 -6
  29. package/dist/safe-bash/chunks/chunk-XAQMU6OY.js +14 -0
  30. package/dist/safe-bash/chunks/chunk-ZVD5IS4V.js +49 -0
  31. package/dist/safe-bash/command-chunks/{chunk-ORYGZYKW.js → chunk-4FEVBOL5.js} +1 -1
  32. package/dist/safe-bash/command-chunks/{chunk-VXSLJH7G.js → chunk-6JSIFWYT.js} +26 -6
  33. package/dist/safe-bash/command-chunks/chunk-A7MU7762.js +200 -0
  34. package/dist/safe-bash/command-chunks/{chunk-KJIMDLBB.js → chunk-BXCXRYVU.js} +1 -1
  35. package/dist/safe-bash/command-chunks/{chunk-F4TEEZTL.js → chunk-CQHP3I66.js} +1 -1
  36. package/dist/safe-bash/command-chunks/{chunk-PEF7K3UQ.js → chunk-EARHPPPJ.js} +1 -1
  37. package/dist/safe-bash/command-chunks/{chunk-QKFSRZGQ.js → chunk-GFC2NTDG.js} +2 -2
  38. package/dist/safe-bash/command-chunks/chunk-GIRNFXP3.js +466 -0
  39. package/dist/safe-bash/command-chunks/{chunk-EFANWIHL.js → chunk-GY3BWK7K.js} +1 -0
  40. package/dist/safe-bash/command-chunks/{chunk-FPVUD6TH.js → chunk-HDCNKOIX.js} +9 -7
  41. package/dist/safe-bash/command-chunks/{chunk-MQFIPHIQ.js → chunk-ILX2NOLF.js} +18 -15
  42. package/dist/safe-bash/command-chunks/{chunk-5E4WAO4O.js → chunk-JD5QNRNO.js} +3 -3
  43. package/dist/safe-bash/command-chunks/{chunk-I237SNW5.js → chunk-LFJJQQND.js} +1 -1
  44. package/dist/safe-bash/command-chunks/{chunk-W5DNF4JH.js → chunk-LOICUCHG.js} +1 -1
  45. package/dist/safe-bash/command-chunks/{chunk-7U7EXOXX.js → chunk-NASVPT6F.js} +2 -1
  46. package/dist/safe-bash/command-chunks/{chunk-WBNZ4PRE.js → chunk-NGG2XL56.js} +7 -4
  47. package/dist/safe-bash/command-chunks/{chunk-GLOZX57Y.js → chunk-NKIELG7Y.js} +45 -115
  48. package/dist/safe-bash/command-chunks/{chunk-WPYIOKE3.js → chunk-PICVQ6B5.js} +2 -2
  49. package/dist/safe-bash/command-chunks/{chunk-YOFC45RK.js → chunk-QVOS4YXL.js} +1 -1
  50. package/dist/safe-bash/command-chunks/{chunk-VGG2DL5Q.js → chunk-TRR4MYWF.js} +4 -0
  51. package/dist/safe-bash/command-chunks/{chunk-2JRBIDAD.js → chunk-V4K2JDYU.js} +2 -2
  52. package/dist/safe-bash/command-chunks/{chunk-CZ7EN3JG.js → chunk-VT6MJBEI.js} +1 -1
  53. package/dist/safe-bash/command-chunks/{chunk-PCEFOYA3.js → chunk-WWIBP2ET.js} +41 -114
  54. package/dist/safe-bash/command-chunks/{chunk-F6OYH562.js → chunk-X54L3DBL.js} +4 -9
  55. package/dist/safe-bash/command-chunks/{chunk-TNOA7FCQ.js → chunk-YVNGTIJO.js} +1 -1
  56. package/dist/safe-bash/command-chunks/chunk-ZDN7MJE6.js +168 -0
  57. package/dist/safe-bash/commands/apply-patch/index.browser.js +14 -0
  58. package/dist/safe-bash/commands/archive/index.browser.js +36 -0
  59. package/dist/safe-bash/commands/bytes/compression/index.js +54 -51
  60. package/dist/safe-bash/commands/chmod/index.browser.js +14 -0
  61. package/dist/safe-bash/commands/chmod/index.d.ts +2 -0
  62. package/dist/safe-bash/commands/chmod/index.js +2 -0
  63. package/dist/safe-bash/commands/column/index.browser.js +12 -0
  64. package/dist/safe-bash/commands/du/index.browser.js +14 -0
  65. package/dist/safe-bash/commands/expr/index.browser.js +12 -0
  66. package/dist/safe-bash/commands/file/index.browser.js +14 -0
  67. package/dist/safe-bash/commands/filesystem.js +9 -2
  68. package/dist/safe-bash/commands/grep-aliases/index.browser.js +14 -0
  69. package/dist/safe-bash/commands/html-to-markdown/index.browser.js +16 -0
  70. package/dist/safe-bash/commands/metadata/chmod.d.ts +1 -7
  71. package/dist/safe-bash/commands/metadata/chmod.js +1 -204
  72. package/dist/safe-bash/commands/metadata/index.browser.js +17 -0
  73. package/dist/safe-bash/commands/metadata/internal.d.ts +1 -30
  74. package/dist/safe-bash/commands/metadata/internal.js +1 -76
  75. package/dist/safe-bash/commands/metadata/mktemp.d.ts +1 -3
  76. package/dist/safe-bash/commands/metadata/mktemp.js +1 -202
  77. package/dist/safe-bash/commands/metadata/stat.d.ts +1 -7
  78. package/dist/safe-bash/commands/metadata/stat.js +1 -530
  79. package/dist/safe-bash/commands/mktemp/index.browser.js +13 -0
  80. package/dist/safe-bash/commands/mktemp/index.d.ts +2 -0
  81. package/dist/safe-bash/commands/mktemp/index.js +2 -0
  82. package/dist/safe-bash/commands/network/index.browser.js +1 -1
  83. package/dist/safe-bash/commands/node/index.browser.js +4 -4
  84. package/dist/safe-bash/commands/portable-random.d.ts +1 -1
  85. package/dist/safe-bash/commands/portable-random.js +1 -12
  86. package/dist/safe-bash/commands/python/index.browser.js +8 -8
  87. package/dist/safe-bash/commands/regex-execution/public.browser.js +5 -3
  88. package/dist/safe-bash/commands/split/index.browser.js +14 -0
  89. package/dist/safe-bash/commands/stat/index.browser.js +13 -0
  90. package/dist/safe-bash/commands/stat/index.d.ts +2 -0
  91. package/dist/safe-bash/commands/stat/index.js +2 -0
  92. package/dist/safe-bash/commands/stream-format/index.browser.js +11 -0
  93. package/dist/safe-bash/commands/stream-inspection/index.browser.js +11 -0
  94. package/dist/safe-bash/commands/streams.js +5 -5
  95. package/dist/safe-bash/commands/table-text/index.browser.js +11 -0
  96. package/dist/safe-bash/commands/text.js +48 -143
  97. package/dist/safe-bash/commands/time-env/index.browser.js +15 -0
  98. package/dist/safe-bash/commands/tree/index.browser.js +14 -0
  99. package/dist/safe-bash/full-core.browser.js +256 -247
  100. package/dist/safe-bash/opt-in/commands/yq/native-work.js +1 -0
  101. package/dist/safe-bash/optional-host.browser.js +12 -12
  102. package/dist/safe-bash/plugins/index.browser.js +25 -11
  103. package/dist/safe-bash/registry-entry.browser.js +28 -14
  104. package/dist/safe-bash/search.browser.js +48 -0
  105. package/dist/safe-bash/shell/runtime.d.ts +3 -9
  106. package/dist/safe-bash/shell/runtime.js +63 -311
  107. package/dist/safe-bash/shell/shell.js +0 -23
  108. package/dist/safe-bash/shell/types.d.ts +2 -0
  109. package/dist/safe-bash/shell/worker-limits.js +1 -0
  110. package/dist/safe-bash/shell-entry.browser.js +19 -10
  111. package/dist/safe-bash/worker/host.js +1 -1
  112. package/dist/safe-bash-command-bc/index.js +12 -5
  113. package/dist/safe-bash-command-bzip2/index.js +4 -3
  114. package/dist/safe-bash-command-chmod/LICENSE +21 -0
  115. package/dist/safe-bash-command-chmod/command.d.ts +7 -0
  116. package/dist/safe-bash-command-chmod/command.js +11 -0
  117. package/dist/safe-bash-command-chmod/index.d.ts +6 -0
  118. package/dist/safe-bash-command-chmod/index.js +27 -0
  119. package/dist/safe-bash-command-exiftool/index.js +5 -5
  120. package/dist/safe-bash-command-find/find.js +1 -1
  121. package/dist/safe-bash-command-find/index.js +1 -1
  122. package/dist/safe-bash-command-fmt/index.js +9 -2
  123. package/dist/safe-bash-command-gzip/index.js +45 -42
  124. package/dist/safe-bash-command-imagemagick/index.js +3 -1
  125. package/dist/safe-bash-command-jq/index.js +1 -1
  126. package/dist/safe-bash-command-jq/jq.js +1 -1
  127. package/dist/safe-bash-command-less/index.js +12 -3
  128. package/dist/safe-bash-command-mktemp/LICENSE +21 -0
  129. package/dist/safe-bash-command-mktemp/command.d.ts +3 -0
  130. package/dist/safe-bash-command-mktemp/command.js +9 -0
  131. package/dist/safe-bash-command-mktemp/index.d.ts +6 -0
  132. package/dist/safe-bash-command-mktemp/index.js +25 -0
  133. package/dist/safe-bash-command-nl/index.js +1 -1
  134. package/dist/safe-bash-command-nl/nl.js +1 -1
  135. package/dist/safe-bash-command-od/index.js +6 -2
  136. package/dist/safe-bash-command-op/index.js +25 -6
  137. package/dist/safe-bash-command-rg/index.js +1 -1
  138. package/dist/safe-bash-command-rg/rg-command.d.ts +0 -1
  139. package/dist/safe-bash-command-rg/rg-command.js +3 -5
  140. package/dist/safe-bash-command-sed/index.js +1 -1
  141. package/dist/safe-bash-command-sed/sed.js +1 -1
  142. package/dist/safe-bash-command-sips/index.js +13 -5
  143. package/dist/safe-bash-command-sponge/index.js +10 -3
  144. package/dist/safe-bash-command-stat/LICENSE +21 -0
  145. package/dist/safe-bash-command-stat/command.d.ts +7 -0
  146. package/dist/safe-bash-command-stat/command.js +9 -0
  147. package/dist/safe-bash-command-stat/index.d.ts +6 -0
  148. package/dist/safe-bash-command-stat/index.js +25 -0
  149. package/dist/safe-bash-command-unexpand/index.js +1 -1
  150. package/dist/safe-bash-command-unexpand/unexpand.js +1 -1
  151. package/dist/safe-bash-command-unrtf/index.js +11 -1
  152. package/dist/safe-bash-command-xxd/index.js +6 -2
  153. package/dist/safe-bash-command-xz/command.d.ts +1 -1
  154. package/dist/safe-bash-command-xz/index.js +3 -2
  155. package/dist/safe-bash-command-yq/index.js +1 -0
  156. package/dist/safe-bash-command-yq/native-work.js +1 -0
  157. package/dist/safe-bash-command-yq/query.js +3 -0
  158. package/dist/safe-bash-compression-engine/bounded-codec.js +3 -3
  159. package/dist/safe-bash-compression-engine/codec-loader.js +2 -2
  160. package/dist/safe-bash-compression-engine/files.js +6 -6
  161. package/dist/safe-bash-compression-engine/index.js +5 -5
  162. package/dist/safe-bash-compression-engine/operand.js +6 -6
  163. package/dist/safe-bash-compression-engine/options.js +1 -1
  164. package/dist/safe-bash-compression-engine/stream.js +5 -5
  165. package/dist/safe-bash-compression-engine/zstd-decode.js +4 -4
  166. package/dist/safe-bash-contracts/escaping.js +2 -2
  167. package/dist/safe-bash-contracts/filesystem-output.js +2 -2
  168. package/dist/safe-bash-contracts/index.js +2 -2
  169. package/dist/safe-bash-contracts/io.d.ts +2 -0
  170. package/dist/safe-bash-contracts/io.js +1 -1
  171. package/dist/safe-bash-contracts/output.js +2 -2
  172. package/dist/safe-bash-io-engine/commands/search/requirements.js +1 -1
  173. package/dist/safe-bash-io-engine/commands/text-programs/shared.js +1 -1
  174. package/dist/safe-bash-mcp/index.browser.js +11 -1
  175. package/dist/safe-bash-mcp/index.js +38 -17
  176. package/dist/safe-bash-metadata-engine/LICENSE +21 -0
  177. package/dist/safe-bash-metadata-engine/index.d.ts +30 -0
  178. package/dist/safe-bash-metadata-engine/index.js +82 -0
  179. package/dist/safe-bash-metadata-engine/random.d.ts +1 -0
  180. package/dist/safe-bash-metadata-engine/random.js +21 -0
  181. package/dist/safe-bash-regex-engine/index.js +4 -4
  182. package/dist/safe-bash-regex-engine/text/budget.d.ts +0 -1
  183. package/dist/safe-bash-regex-engine/text/budget.js +1 -1
  184. package/dist/safe-bash-regex-engine/text/regex.js +4 -4
  185. package/dist/safe-bash-regex-engine/text/replacement-buffer.js +2 -2
  186. package/dist/safe-bash-regex-engine/text/rust-syntax.js +2 -2
  187. package/dist/safe-bash-search-engine/ergonomic-regex.js +2 -2
  188. package/dist/safe-bash-search-engine/glob.js +2 -2
  189. package/dist/safe-bash-search-engine/grep.js +2 -2
  190. package/dist/safe-bash-search-engine/matcher.js +2 -2
  191. package/dist/safe-bash-search-engine/options.d.ts +2 -0
  192. package/dist/safe-bash-search-engine/options.js +1 -1
  193. package/dist/safe-bash-search-engine/output.js +1 -1
  194. package/dist/safe-bash-search-engine/shared.js +2 -2
  195. package/dist/safe-bash-search-engine/walk.js +3 -3
  196. package/dist/safe-playwright-cloudflare/browser-snapshot-json.js +2 -2
  197. package/dist/safe-playwright-cloudflare/browser-snapshot-references.js +1 -1
  198. package/package.json +91 -10
@@ -1,3 +1,9 @@
1
+ import {
2
+ createCsplitCommand,
3
+ createCsplitCommands,
4
+ csplitCommands,
5
+ evalSyncCsplit
6
+ } from "./chunks/chunk-UTBUUFDM.js";
1
7
  import {
2
8
  CurlError,
3
9
  cloudflareWorkerNetworkLimits,
@@ -23,52 +29,38 @@ import {
23
29
  safeJsNodeCommands,
24
30
  stringValue,
25
31
  withSignal
26
- } from "./chunks/chunk-FNDNHAGE.js";
32
+ } from "./chunks/chunk-JMMEIDPF.js";
27
33
  import {
28
- createCsplitCommand,
29
- createCsplitCommands,
30
- csplitCommands,
31
- evalSyncCsplit
32
- } from "./chunks/chunk-UTBUUFDM.js";
34
+ createElevenLabsProvider,
35
+ createLlmCommand,
36
+ createLlmCommands,
37
+ createLlmConfiguration,
38
+ createLlmService,
39
+ createLlmTemplateStore,
40
+ createOpenAiProvider,
41
+ encodeLlmBase64,
42
+ evaluateLlmTemplate,
43
+ findExtractedRange,
44
+ getLlmModelAliases,
45
+ llmCommands,
46
+ llmTemplateUsesInput,
47
+ loadLlmStoredSchema,
48
+ parseLlmSchemaDsl,
49
+ resolveLlmSchemaInput,
50
+ selectLlmModelByQuery,
51
+ serializeLlmJsonString,
52
+ serializeLlmJsonValue,
53
+ serializeOpenAiChatRequest,
54
+ templateYaml,
55
+ validateLlmTemplateParameters,
56
+ validateModelOptions
57
+ } from "./chunks/chunk-OQRVVGR6.js";
33
58
  import {
34
- MemoryFileSystem,
35
- Shell,
36
- ShellLimitError,
37
- ShellSyntaxError,
38
- cloudflareWorkerLimits,
39
- createCsvcutCommand,
40
- createCsvcutCommands,
41
- createCsvgrepCommand,
42
- createCsvgrepCommands,
43
- createDiff3Command,
44
- createDiff3Commands,
45
- createHtmlqCommand,
46
- createHtmlqCommands,
47
- createMemoryFileSystem,
48
- createSearchCommands,
49
- createUnrtfCommand,
50
- createUnrtfCommands,
51
- csvcutCommands,
52
- csvgrepCommands,
53
- defaultMemoryFileSystemLimits,
54
- diff3Commands,
55
- evalSyncRg,
56
- htmlqCommands,
57
- parseShell,
58
- searchCommands,
59
- unrtfCommands
60
- } from "./chunks/chunk-7VNF5BFF.js";
59
+ cloudflareWorkerLimits
60
+ } from "./chunks/chunk-2LSAMQER.js";
61
61
  import {
62
- createMikeYqCommand,
63
- createMikeYqCommands,
64
- createYqCommand,
65
- createYqCommands,
66
- evalSyncYqPrep,
67
- formatSyncYqYamlLines,
68
- mikeYqCommands,
69
- yqCommands
70
- } from "./chunks/chunk-TFIBK2GI.js";
71
- import "./chunks/chunk-3NDIFSNM.js";
62
+ RegexExecutionError
63
+ } from "./chunks/chunk-46Z5E5EV.js";
72
64
  import {
73
65
  agentCommands,
74
66
  createAgentCommands,
@@ -79,20 +71,14 @@ import {
79
71
  ghCommands,
80
72
  ghMetadata,
81
73
  lazyCommandPlugin
82
- } from "./chunks/chunk-45PK3NWI.js";
74
+ } from "./chunks/chunk-GDYNCWRV.js";
83
75
  import {
84
- applyPatchCommands,
85
76
  baseAgentCommands,
86
77
  bcCommands,
87
78
  byteCommands,
88
- columnCommands,
89
- createApplyPatchCommand,
90
- createApplyPatchCommands,
91
79
  createBcCommand,
92
80
  createBcCommands,
93
81
  createByteCommands,
94
- createColumnCommand,
95
- createColumnCommands,
96
82
  createDdCommand,
97
83
  createDdCommands,
98
84
  createEnvsubstCommand,
@@ -118,8 +104,6 @@ import {
118
104
  createOpensslCommands,
119
105
  createShufCommand,
120
106
  createShufCommands,
121
- createSplitCommand,
122
- createSplitCommands,
123
107
  createSpongeCommand,
124
108
  createSpongeCommands,
125
109
  createSqlite3Command,
@@ -128,10 +112,7 @@ import {
128
112
  createSshCommands,
129
113
  createSshKeygenCommand,
130
114
  createStandardCommandsWithGrep,
131
- createStreamFormatCommands,
132
- createStreamInspectionCommands,
133
115
  createStructuredCommands,
134
- createTableTextCommands,
135
116
  createTextProgramCommands,
136
117
  createUnameCommand,
137
118
  createUnameCommands,
@@ -144,8 +125,6 @@ import {
144
125
  ddCommands,
145
126
  defaultJqLimits,
146
127
  envsubstCommands,
147
- evalSyncApplyPatch,
148
- evalSyncSplit,
149
128
  getconfCommands,
150
129
  gpgCommands,
151
130
  hostnameCommands,
@@ -157,20 +136,21 @@ import {
157
136
  opensslCommands,
158
137
  sedCommand,
159
138
  shufCommands,
160
- splitCommands,
161
139
  spongeCommands,
162
140
  sqlite3Commands,
163
141
  sshCommands,
164
- streamFormatCommands,
165
- streamInspectionCommands,
166
142
  structuredCommands,
167
- tableTextCommands,
168
143
  textProgramCommands,
169
144
  unameCommands,
170
145
  whoamiCommands,
171
146
  xxdCommands,
172
147
  yesCommands
173
- } from "./chunks/chunk-PQRAK7HU.js";
148
+ } from "./chunks/chunk-RYFQ3LZG.js";
149
+ import {
150
+ createTsortCommand,
151
+ createTsortCommands,
152
+ tsortCommands
153
+ } from "./chunks/chunk-6PAVEFT3.js";
174
154
  import {
175
155
  createFactorCommand,
176
156
  createFactorCommands,
@@ -182,6 +162,10 @@ import {
182
162
  createHexdumpCommands,
183
163
  hexdumpCommands
184
164
  } from "./chunks/chunk-CS4MNM6I.js";
165
+ import {
166
+ RegexExecutor,
167
+ RegexSession
168
+ } from "./chunks/chunk-VKNVHEX3.js";
185
169
  import {
186
170
  createTimeoutCommand,
187
171
  createTimeoutCommands,
@@ -190,15 +174,126 @@ import {
190
174
  timeoutCommands
191
175
  } from "./chunks/chunk-FBUCWVTE.js";
192
176
  import {
193
- createTsortCommand,
194
- createTsortCommands,
195
- tsortCommands
196
- } from "./chunks/chunk-6PAVEFT3.js";
177
+ PythonPackageConflictError,
178
+ createPythonCommands,
179
+ createPythonExecutorPool,
180
+ createPythonHostBridge,
181
+ createPythonJspiAssets,
182
+ createPythonJspiExecutor,
183
+ createPythonJspiNativeCall,
184
+ createPythonJspiStatResult,
185
+ createPythonJspiTrampoline,
186
+ createPythonLlmCapability,
187
+ createPythonPackageCache,
188
+ createPythonPackageEnvironment,
189
+ createPythonPackageManifestStore,
190
+ createPythonShellCapability,
191
+ pythonCommands,
192
+ pythonDocumentPackages,
193
+ pythonHostFailureCode
194
+ } from "./chunks/chunk-EEEWOYEG.js";
195
+ import "./chunks/chunk-HZAMGT5I.js";
196
+ import {
197
+ PythonFailure,
198
+ inspectPythonCapabilities
199
+ } from "./chunks/chunk-LVOBFF4D.js";
200
+ import {
201
+ captureEnvironment,
202
+ createDocumentHandlers,
203
+ createEnvironmentHandlers,
204
+ createItemHandlers,
205
+ createObjectBackend,
206
+ createOp,
207
+ createOpCommand,
208
+ createOpCommands,
209
+ createOpTextCodec,
210
+ createSecretHandlers,
211
+ evalSyncOp,
212
+ opCommands,
213
+ parseCommand,
214
+ parseOpFileMode,
215
+ parseSecretReference,
216
+ renderOpHelp,
217
+ renderOpOutput,
218
+ restoreEnvironment,
219
+ selectOpBackendContext,
220
+ selectOpGlobalFlags
221
+ } from "./chunks/chunk-UE5KZDEK.js";
222
+ import {
223
+ createEgrepCommand,
224
+ createFgrepCommand,
225
+ createGrepAliasCommands,
226
+ grepAliasCommands
227
+ } from "./chunks/chunk-RRR7AQ24.js";
228
+ import {
229
+ columnCommands,
230
+ createColumnCommand,
231
+ createColumnCommands
232
+ } from "./chunks/chunk-3HQU4OJO.js";
233
+ import {
234
+ createExprCommand,
235
+ createExprCommands,
236
+ exprCommands
237
+ } from "./chunks/chunk-HZ7BWKQ3.js";
238
+ import {
239
+ applyPatchCommands,
240
+ createApplyPatchCommand,
241
+ createApplyPatchCommands,
242
+ evalSyncApplyPatch
243
+ } from "./chunks/chunk-XAQMU6OY.js";
244
+ import {
245
+ MemoryFileSystem,
246
+ Shell,
247
+ ShellLimitError,
248
+ ShellSyntaxError,
249
+ createCsvcutCommand,
250
+ createCsvcutCommands,
251
+ createCsvgrepCommand,
252
+ createCsvgrepCommands,
253
+ createDiff3Command,
254
+ createDiff3Commands,
255
+ createHtmlqCommand,
256
+ createHtmlqCommands,
257
+ createMemoryFileSystem,
258
+ createSearchCommands,
259
+ createUnrtfCommand,
260
+ createUnrtfCommands,
261
+ csvcutCommands,
262
+ csvgrepCommands,
263
+ defaultMemoryFileSystemLimits,
264
+ diff3Commands,
265
+ evalSyncRg,
266
+ htmlqCommands,
267
+ parseShell,
268
+ searchCommands,
269
+ unrtfCommands
270
+ } from "./chunks/chunk-B7PIL77G.js";
271
+ import "./chunks/chunk-A7XEHALN.js";
272
+ import {
273
+ createMikeYqCommand,
274
+ createMikeYqCommands,
275
+ createYqCommand,
276
+ createYqCommands,
277
+ evalSyncYqPrep,
278
+ formatSyncYqYamlLines,
279
+ mikeYqCommands,
280
+ yqCommands
281
+ } from "./chunks/chunk-TFIBK2GI.js";
282
+ import "./chunks/chunk-3NDIFSNM.js";
283
+ import {
284
+ EreLedger,
285
+ EreProfileLimitError,
286
+ EreSyntaxError,
287
+ EreUnsupportedError,
288
+ EreUsageUnknownError,
289
+ compileEre,
290
+ matchEre
291
+ } from "./chunks/chunk-6O77NL2S.js";
292
+ import {
293
+ createBoundedRegexProvider
294
+ } from "./chunks/chunk-FZE4HW6G.js";
197
295
  import {
198
- DEFAULT_ARCHIVE_LIMITS,
199
- archiveCommands,
200
296
  calCommands,
201
- createArchiveCommands,
202
297
  createCalCommand,
203
298
  createCalCommands,
204
299
  createDfCommand,
@@ -206,17 +301,10 @@ import {
206
301
  createDiffCommand,
207
302
  createDiffCommands,
208
303
  createDiffPatchCommands,
209
- createDuCommand,
210
- createDuCommands,
211
304
  createFdCommand,
212
305
  createFdCommands,
213
- createFileCommand,
214
- createFileCommands,
215
- createHtmlToMarkdownCommand,
216
- createHtmlToMarkdownCommands,
217
306
  createLessCommand,
218
307
  createLessCommands,
219
- createMetadataCommands,
220
308
  createMoreCommand,
221
309
  createNcalCommand,
222
310
  createPagerCommands,
@@ -225,55 +313,40 @@ import {
225
313
  createPathchkCommand,
226
314
  createPathchkCommands,
227
315
  createRgCommand,
228
- createTarCommand,
229
- createTarCommands,
230
- createTimeEnvCommands,
231
- createTreeCommand,
232
- createTreeCommands,
233
- createUnzipCommand,
234
- createUnzipCommands,
235
316
  createWhichCommand,
236
317
  createWhichCommands,
237
- createZipCommand,
238
- createZipCommands,
239
318
  dfCommands,
240
319
  diffCommand,
241
320
  diffCommands,
242
321
  diffPatchCommands,
243
- duCommands,
244
- evalSyncDate,
245
322
  evalSyncDiff,
246
- evalSyncDu,
247
- evalSyncFile,
248
- evalSyncHtmlToMarkdown,
249
- evalSyncMktemp,
250
323
  evalSyncPatch,
251
- evalSyncPrintenv,
252
- evalSyncShuf,
253
- evalSyncStat,
254
- evalSyncTar,
255
- evalSyncTree,
256
- evalSyncTruncate,
257
- evalSyncUnzip,
258
324
  evalSyncWhich,
259
- evalSyncZip,
260
325
  fdCommands,
261
- fileCommands,
262
- htmlToMarkdownCommands,
263
326
  lessCommands,
264
- metadataCommands,
265
327
  pagerCommands,
266
328
  patchCommand,
267
329
  patchCommands,
268
330
  pathchkCommands,
269
- tarCommands,
270
- timeEnvCommands,
271
- treeCommands,
272
- unzipCommands,
273
- whichCommands,
274
- zipCommands
275
- } from "./chunks/chunk-SZH7EJLD.js";
331
+ whichCommands
332
+ } from "./chunks/chunk-PNBBUWSM.js";
276
333
  import "./chunks/chunk-MHMMRCYC.js";
334
+ import {
335
+ MdqError,
336
+ createMdqCommand,
337
+ createMdqCommands,
338
+ evalSyncMdq,
339
+ mdq,
340
+ mdqCommand,
341
+ mdqCommands,
342
+ parseMdqArguments
343
+ } from "./chunks/chunk-OV6IHKO6.js";
344
+ import {
345
+ createPrCommand,
346
+ createPrCommands,
347
+ evalSyncPr,
348
+ prCommands
349
+ } from "./chunks/chunk-CHYGPFVM.js";
277
350
  import {
278
351
  createGetoptCommand,
279
352
  createGetoptCommands,
@@ -295,16 +368,6 @@ import {
295
368
  dos2unixCommands2,
296
369
  evalSyncLineEndings
297
370
  } from "./chunks/chunk-3R3AANOR.js";
298
- import {
299
- MdqError,
300
- createMdqCommand,
301
- createMdqCommands,
302
- evalSyncMdq,
303
- mdq,
304
- mdqCommand,
305
- mdqCommands,
306
- parseMdqArguments
307
- } from "./chunks/chunk-OV6IHKO6.js";
308
371
  import "./chunks/chunk-XVOSKJE2.js";
309
372
  import {
310
373
  createXmlCommands,
@@ -318,56 +381,12 @@ import {
318
381
  } from "./chunks/chunk-C5OWC2TL.js";
319
382
  import {
320
383
  PublicDiagnostic
321
- } from "./chunks/chunk-IVRQ4BXL.js";
384
+ } from "./chunks/chunk-PH63PLPZ.js";
322
385
  import "./chunks/chunk-D3ANYGMC.js";
323
- import {
324
- createPrCommand,
325
- createPrCommands,
326
- evalSyncPr,
327
- prCommands
328
- } from "./chunks/chunk-CHYGPFVM.js";
329
- import {
330
- RegexExecutionError
331
- } from "./chunks/chunk-46Z5E5EV.js";
332
- import {
333
- EreLedger,
334
- EreProfileLimitError,
335
- EreSyntaxError,
336
- EreUnsupportedError,
337
- EreUsageUnknownError,
338
- compileEre,
339
- matchEre
340
- } from "./chunks/chunk-6O77NL2S.js";
341
- import {
342
- RegexExecutor,
343
- RegexSession,
344
- createBoundedRegexProvider
345
- } from "./chunks/chunk-NR3EM4LS.js";
346
- import "./chunks/chunk-A7XEHALN.js";
347
386
  import "./chunks/chunk-J42RIHHJ.js";
348
- import {
349
- PythonPackageConflictError,
350
- createPythonCommands,
351
- createPythonExecutorPool,
352
- createPythonHostBridge,
353
- createPythonJspiAssets,
354
- createPythonJspiExecutor,
355
- createPythonJspiNativeCall,
356
- createPythonJspiStatResult,
357
- createPythonJspiTrampoline,
358
- createPythonLlmCapability,
359
- createPythonPackageCache,
360
- createPythonPackageEnvironment,
361
- createPythonPackageManifestStore,
362
- createPythonShellCapability,
363
- pythonCommands,
364
- pythonDocumentPackages,
365
- pythonHostFailureCode
366
- } from "./chunks/chunk-VQDD3G76.js";
367
387
  import "./chunks/chunk-I5HZ4FGE.js";
368
- import "./chunks/chunk-ICFDYV64.js";
369
388
  import "./chunks/chunk-VTH3MLDU.js";
370
- import "./chunks/chunk-NZQXYWA3.js";
389
+ import "./chunks/chunk-5OHX7C2V.js";
371
390
  import {
372
391
  createBufferedOutput,
373
392
  withInputByteBudget
@@ -380,32 +399,78 @@ import {
380
399
  registerDefaultExecutors
381
400
  } from "./chunks/chunk-7R5BDCG7.js";
382
401
  import {
383
- PythonFailure,
384
- inspectPythonCapabilities
385
- } from "./chunks/chunk-LVOBFF4D.js";
386
- import "./chunks/chunk-IWDICZVK.js";
402
+ createTreeCommand,
403
+ createTreeCommands,
404
+ evalSyncTree,
405
+ treeCommands
406
+ } from "./chunks/chunk-55YJASTN.js";
387
407
  import {
388
- captureEnvironment,
389
- createDocumentHandlers,
390
- createEnvironmentHandlers,
391
- createItemHandlers,
392
- createObjectBackend,
393
- createOp,
394
- createOpCommand,
395
- createOpCommands,
396
- createOpTextCodec,
397
- createSecretHandlers,
398
- evalSyncOp,
399
- opCommands,
400
- parseCommand,
401
- parseOpFileMode,
402
- parseSecretReference,
403
- renderOpHelp,
404
- renderOpOutput,
405
- restoreEnvironment,
406
- selectOpBackendContext,
407
- selectOpGlobalFlags
408
- } from "./chunks/chunk-UE5KZDEK.js";
408
+ createFileCommand,
409
+ createFileCommands,
410
+ evalSyncFile,
411
+ fileCommands
412
+ } from "./chunks/chunk-4BSJLKNM.js";
413
+ import {
414
+ createHtmlToMarkdownCommand,
415
+ createHtmlToMarkdownCommands,
416
+ evalSyncHtmlToMarkdown,
417
+ evalSyncShuf,
418
+ htmlToMarkdownCommands
419
+ } from "./chunks/chunk-DQP3VHSB.js";
420
+ import {
421
+ createDuCommand,
422
+ createDuCommands,
423
+ duCommands,
424
+ evalSyncDu
425
+ } from "./chunks/chunk-GEG3BWGE.js";
426
+ import {
427
+ createMetadataCommands,
428
+ evalSyncMktemp,
429
+ evalSyncStat,
430
+ evalSyncTruncate,
431
+ metadataCommands
432
+ } from "./chunks/chunk-VBTDHOWC.js";
433
+ import {
434
+ DEFAULT_ARCHIVE_LIMITS,
435
+ archiveCommands,
436
+ createArchiveCommands,
437
+ createTarCommand,
438
+ createTarCommands,
439
+ createUnzipCommand,
440
+ createUnzipCommands,
441
+ createZipCommand,
442
+ createZipCommands,
443
+ evalSyncTar,
444
+ evalSyncUnzip,
445
+ evalSyncZip,
446
+ tarCommands,
447
+ unzipCommands,
448
+ zipCommands
449
+ } from "./chunks/chunk-QGUV42T5.js";
450
+ import {
451
+ createTableTextCommands,
452
+ tableTextCommands
453
+ } from "./chunks/chunk-4D4N7IU2.js";
454
+ import {
455
+ createStreamInspectionCommands,
456
+ streamInspectionCommands
457
+ } from "./chunks/chunk-HBCN24ZA.js";
458
+ import {
459
+ createStreamFormatCommands,
460
+ streamFormatCommands
461
+ } from "./chunks/chunk-R3NAKOED.js";
462
+ import {
463
+ createSplitCommand,
464
+ createSplitCommands,
465
+ evalSyncSplit,
466
+ splitCommands
467
+ } from "./chunks/chunk-7ZBU7KYV.js";
468
+ import {
469
+ createTimeEnvCommands,
470
+ evalSyncDate,
471
+ evalSyncPrintenv,
472
+ timeEnvCommands
473
+ } from "./chunks/chunk-ZVD5IS4V.js";
409
474
  import {
410
475
  builtInDirectContextExecutors as builtInDirectContextExecutors2,
411
476
  diagnostic,
@@ -413,31 +478,7 @@ import {
413
478
  registerDefaultExecutors as registerDefaultExecutors2,
414
479
  syncCommandEvaluators
415
480
  } from "./chunks/chunk-E7OYNDGL.js";
416
- import {
417
- createElevenLabsProvider,
418
- createLlmCommand,
419
- createLlmCommands,
420
- createLlmConfiguration,
421
- createLlmService,
422
- createLlmTemplateStore,
423
- createOpenAiProvider,
424
- encodeLlmBase64,
425
- evaluateLlmTemplate,
426
- findExtractedRange,
427
- getLlmModelAliases,
428
- llmCommands,
429
- llmTemplateUsesInput,
430
- loadLlmStoredSchema,
431
- parseLlmSchemaDsl,
432
- resolveLlmSchemaInput,
433
- selectLlmModelByQuery,
434
- serializeLlmJsonString,
435
- serializeLlmJsonValue,
436
- serializeOpenAiChatRequest,
437
- templateYaml,
438
- validateLlmTemplateParameters,
439
- validateModelOptions
440
- } from "./chunks/chunk-OQRVVGR6.js";
481
+ import "./chunks/chunk-IWDICZVK.js";
441
482
  import {
442
483
  init_platform
443
484
  } from "./chunks/chunk-B7TAL7S5.js";
@@ -501,38 +542,6 @@ function portableSearchCommands(options = {}) {
501
542
  // packages/safe-bash/src/commands/safejs/index.ts
502
543
  init_platform();
503
544
 
504
- // packages/safe-bash/src/commands/grep-aliases/index.ts
505
- init_platform();
506
- import { createGrepCommands as createGrepCommands4 } from "../safe-bash-command-grep/index.js";
507
- import { createGrepAliases } from "../safe-bash-io-engine/commands/grep-aliases/aliases.js";
508
-
509
- // packages/safe-bash/src/commands/egrep/index.ts
510
- init_platform();
511
- import { createEgrepCommand, createEgrepCommands, egrepCommands } from "../safe-bash-command-egrep/index.js";
512
-
513
- // packages/safe-bash/src/commands/fgrep/index.ts
514
- init_platform();
515
- import { createFgrepCommand, createFgrepCommands, fgrepCommands } from "../safe-bash-command-fgrep/index.js";
516
-
517
- // packages/safe-bash/src/commands/grep-aliases/index.ts
518
- function createGrepAliasCommands(options = {}) {
519
- const grep = createGrepCommands4({ ...options.regex, ...options.regexExecutor === void 0 ? {} : { regexExecutor: options.regexExecutor } })[0];
520
- return createGrepAliases(grep);
521
- }
522
- function grepAliasCommands(options = {}) {
523
- const commands = createGrepAliasCommands(options);
524
- return { name: "grep-alias-commands", setup(host) {
525
- if (!options.replace) {
526
- for (const command of commands) if (host.commands.has(command.name)) throw new Error(`Command already registered: ${command.name}`);
527
- }
528
- for (const command of commands) host.commands.register(command, { replace: options.replace ?? false });
529
- } };
530
- }
531
-
532
- // packages/safe-bash/src/commands/expr/index.ts
533
- init_platform();
534
- import { createExprCommand, createExprCommands, exprCommands } from "../safe-bash-command-expr/index.js";
535
-
536
545
  // packages/safe-bash/src/commands/sha512sum/index.ts
537
546
  init_platform();
538
547
  import {
@@ -84,6 +84,7 @@ export class NativeWork {
84
84
  if (bytes > this.limits.maxInputBytes - this.#input)
85
85
  throw new MikeError("yq limit exceeded: maxInputBytes");
86
86
  this.#input += bytes;
87
+ this.context.inputBudget?.check(this.#input);
87
88
  }
88
89
  node(count = 1) {
89
90
  this.assertOpen();
@@ -1,18 +1,12 @@
1
- import {
2
- portableTrapExtension
3
- } from "./chunks/chunk-3NDIFSNM.js";
4
1
  import {
5
2
  signalName
6
3
  } from "./chunks/chunk-FBUCWVTE.js";
7
4
  import {
8
- ByteInputBudget,
9
- compareCopyIdentity,
10
- compareObservedEntries,
11
- inputRequirements
12
- } from "./chunks/chunk-XVOSKJE2.js";
5
+ jobsExtension
6
+ } from "./chunks/chunk-A7XEHALN.js";
13
7
  import {
14
- latin1Text
15
- } from "./chunks/chunk-D3ANYGMC.js";
8
+ portableTrapExtension
9
+ } from "./chunks/chunk-3NDIFSNM.js";
16
10
  import {
17
11
  EreLedger,
18
12
  EreProfileLimitError,
@@ -22,8 +16,14 @@ import {
22
16
  prepareUtf8EreSubject
23
17
  } from "./chunks/chunk-6O77NL2S.js";
24
18
  import {
25
- jobsExtension
26
- } from "./chunks/chunk-A7XEHALN.js";
19
+ ByteInputBudget,
20
+ compareCopyIdentity,
21
+ compareObservedEntries,
22
+ inputRequirements
23
+ } from "./chunks/chunk-XVOSKJE2.js";
24
+ import {
25
+ latin1Text
26
+ } from "./chunks/chunk-D3ANYGMC.js";
27
27
  import "./chunks/chunk-J42RIHHJ.js";
28
28
  import "./chunks/chunk-74GHTNJA.js";
29
29
  import "./chunks/chunk-7R5BDCG7.js";