@poe-platform/safe-bash 0.1.789 → 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.
- package/dist/image-ast/index.browser.js +147 -80
- package/dist/image-ast/index.js +147 -80
- package/dist/mp4-ast/mp4.d.ts +2 -0
- package/dist/pdf-ast/cos/parser.d.ts +1 -0
- package/dist/pdf-ast/cos/security.d.ts +2 -0
- package/dist/pdf-ast/cos/writer.d.ts +1 -0
- package/dist/pdf-ast/document.d.ts +3 -0
- package/dist/pdf-ast/edit/forms.d.ts +1 -0
- package/dist/pdf-ast/index.js +171 -82
- package/dist/safe-bash/chunks/{chunk-L5QQLNTO.js → chunk-22PI65AH.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-KHJGUF2W.js → chunk-2TAGYMPK.js} +43 -42
- package/dist/safe-bash/chunks/{chunk-D4PHJK4T.js → chunk-2W4HTMEK.js} +52 -48
- package/dist/safe-bash/chunks/{chunk-FFZXP6ZC.js → chunk-3M7L7XU2.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-XNODZRVD.js → chunk-3QAO6UYS.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-YPETOVQU.js → chunk-3VKFK3NF.js} +2 -2
- package/dist/safe-bash/chunks/chunk-5OST7NOX.js +42 -0
- package/dist/safe-bash/chunks/{chunk-KEBSX2AX.js → chunk-6HLURHVU.js} +2 -2
- package/dist/safe-bash/chunks/chunk-DYEUZE6Z.js +19 -0
- package/dist/safe-bash/chunks/{chunk-T2TGCHKE.js → chunk-FM3WBSZT.js} +2 -2
- package/dist/safe-bash/chunks/chunk-GAYRKQM6.js +22 -0
- package/dist/safe-bash/chunks/{chunk-Q45QCA4J.js → chunk-I3KSESCR.js} +0 -7
- package/dist/safe-bash/chunks/{chunk-OSKDIBQS.js → chunk-JLIMK5TD.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-2AYZCT5X.js → chunk-JQ2FAJJT.js} +27 -23
- package/dist/safe-bash/chunks/{chunk-QA3NVP43.js → chunk-JRE6Z3T7.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-DC5EHLKS.js → chunk-NDIL6T7Y.js} +5 -5
- package/dist/safe-bash/chunks/{chunk-747G42FY.js → chunk-OPR4UAIT.js} +2 -2
- package/dist/safe-bash/chunks/chunk-OSMQCYSP.js +19 -0
- package/dist/safe-bash/chunks/chunk-OYB332PQ.js +17 -0
- package/dist/safe-bash/chunks/{chunk-X5ZCECM6.js → chunk-QTIH2AFE.js} +77 -69
- package/dist/safe-bash/chunks/{chunk-CTUHLNJM.js → chunk-SBESXWT2.js} +43 -44
- package/dist/safe-bash/chunks/{chunk-4FDQJUFW.js → chunk-SDEPGTOF.js} +1 -1
- package/dist/safe-bash/chunks/chunk-UZU5BIJI.js +32 -0
- package/dist/safe-bash/chunks/{chunk-BI6JV62X.js → chunk-VCCMROTL.js} +7 -10
- package/dist/safe-bash/chunks/chunk-W47GHRRF.js +13 -0
- package/dist/safe-bash/chunks/{chunk-NPMQWZUZ.js → chunk-WS7KZIUM.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-3PZYHMGM.js → chunk-YYAERCWS.js} +7 -7
- package/dist/safe-bash/chunks/{chunk-5U7JECDB.js → chunk-ZPGVEUKF.js} +8 -7
- package/dist/safe-bash/chunks/{csvkit-K55OYAQC.js → csvkit-USUJG62I.js} +65 -11
- package/dist/safe-bash/chunks/{ffmpeg-BEFTQ6DZ.js → ffmpeg-KRGG5DLH.js} +21 -10
- package/dist/safe-bash/chunks/{gh-HQWOWLWE.js → gh-UCFDUZCX.js} +16 -8
- package/dist/safe-bash/chunks/{git-HO7WDPHZ.js → git-LPAF6KDG.js} +7 -9
- package/dist/safe-bash/chunks/{imagemagick-53BMHH6D.js → imagemagick-KGREKK4G.js} +38 -7
- package/dist/safe-bash/chunks/{implementation-QUTAAYMT.js → implementation-FXDRYS5A.js} +34 -8
- package/dist/safe-bash/chunks/{pdfimages-4OYI6FLG.js → pdfimages-UADCF4G4.js} +12 -8
- package/dist/safe-bash/chunks/{pdfinfo-I7U6TQPP.js → pdfinfo-O7UWPF4W.js} +38 -13
- package/dist/safe-bash/chunks/{pdftk-SUA6FMHI.js → pdftk-AERXIJTN.js} +13 -8
- package/dist/safe-bash/chunks/{pdftoppm-4C5DGEWX.js → pdftoppm-L466JQKI.js} +17 -10
- package/dist/safe-bash/chunks/{pdftotext-Y4WI225Y.js → pdftotext-SUSI4WXS.js} +19 -9
- package/dist/safe-bash/chunks/{qpdf-IORB4RV5.js → qpdf-YL24KVRH.js} +14 -8
- package/dist/safe-bash/chunks/{sips-WHAMJFEU.js → sips-QXEQZERX.js} +14 -7
- package/dist/safe-bash/chunks/{soffice-SYEK6WJS.js → soffice-TBITRML3.js} +16 -8
- package/dist/safe-bash/chunks/{wkhtmltopdf-ZIICWJLF.js → wkhtmltopdf-NJA2THRC.js} +27 -7
- package/dist/safe-bash/command-chunks/chunk-2C5BEBPY.js +1388 -0
- package/dist/safe-bash/command-chunks/{chunk-2VTMZTV3.js → chunk-2EXV2ZLV.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-UJOO6DKY.js → chunk-6EASC5EC.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZF3ZVGQC.js → chunk-7JRITHKW.js} +150 -80
- package/dist/safe-bash/{chunks/chunk-LD76P7AG.js → command-chunks/chunk-AKDMCNX4.js} +74 -39
- package/dist/safe-bash/command-chunks/{chunk-6F7QJMJ3.js → chunk-CBDVLMJB.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-H4LWTITX.js +169 -0
- package/dist/safe-bash/command-chunks/chunk-I2MQNBGR.js +145 -0
- package/dist/safe-bash/command-chunks/{chunk-5GRLAARV.js → chunk-IOXI5ZAJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-XNHSCU6I.js → chunk-MDPIOQUD.js} +6 -6
- package/dist/safe-bash/command-chunks/chunk-QI4MGIN6.js +6 -0
- package/dist/safe-bash/command-chunks/chunk-QTYZAWSB.js +91 -0
- package/dist/safe-bash/command-chunks/chunk-SNK7K3XW.js +90 -0
- package/dist/safe-bash/command-chunks/chunk-T5OLGM43.js +314 -0
- package/dist/safe-bash/command-chunks/chunk-TB7IFMUZ.js +802 -0
- package/dist/safe-bash/command-chunks/{chunk-AT6ZSOE6.js → chunk-TPPBPIWL.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-VMK4XVKO.js +82 -0
- package/dist/safe-bash/command-chunks/chunk-VNSJKXDU.js +130 -0
- package/dist/safe-bash/command-chunks/chunk-YFNTMH6Z.js +6 -0
- package/dist/safe-bash/commands/csplit/index.browser.js +2 -2
- package/dist/safe-bash/commands/docx/index.browser.js +2 -2
- package/dist/safe-bash/commands/factor/index.browser.js +2 -2
- package/dist/safe-bash/commands/getopt/index.browser.js +2 -2
- package/dist/safe-bash/commands/hexdump/index.browser.js +2 -2
- package/dist/safe-bash/commands/iconv/index.browser.js +2 -2
- package/dist/safe-bash/commands/line-endings/index.browser.js +2 -2
- package/dist/safe-bash/commands/llm/command.d.ts +1 -4
- package/dist/safe-bash/commands/llm/command.js +1 -248
- package/dist/safe-bash/commands/llm/elevenlabs-stream.d.ts +1 -2
- package/dist/safe-bash/commands/llm/elevenlabs-stream.js +1 -117
- package/dist/safe-bash/commands/llm/elevenlabs.d.ts +1 -15
- package/dist/safe-bash/commands/llm/elevenlabs.js +1 -123
- package/dist/safe-bash/commands/llm/index.browser.js +20 -15
- package/dist/safe-bash/commands/llm/index.d.ts +1 -6
- package/dist/safe-bash/commands/llm/index.js +1 -4
- package/dist/safe-bash/commands/llm/mime.d.ts +1 -2
- package/dist/safe-bash/commands/llm/mime.js +1 -136
- package/dist/safe-bash/commands/llm/openai-http.d.ts +1 -8
- package/dist/safe-bash/commands/llm/openai-http.js +1 -143
- package/dist/safe-bash/commands/llm/openai-sse.d.ts +1 -3
- package/dist/safe-bash/commands/llm/openai-sse.js +1 -78
- package/dist/safe-bash/commands/llm/openai.d.ts +1 -14
- package/dist/safe-bash/commands/llm/openai.js +1 -288
- package/dist/safe-bash/commands/llm/providers/elevenlabs.d.ts +1 -1
- package/dist/safe-bash/commands/llm/providers/elevenlabs.js +1 -1
- package/dist/safe-bash/commands/llm/providers/index.browser.js +6 -6
- package/dist/safe-bash/commands/llm/providers/index.d.ts +1 -3
- package/dist/safe-bash/commands/llm/providers/index.js +1 -2
- package/dist/safe-bash/commands/llm/providers/openai.d.ts +1 -1
- package/dist/safe-bash/commands/llm/providers/openai.js +1 -1
- package/dist/safe-bash/commands/llm/providers/shared.d.ts +1 -23
- package/dist/safe-bash/commands/llm/providers/shared.js +1 -65
- package/dist/safe-bash/commands/llm/service.d.ts +1 -37
- package/dist/safe-bash/commands/llm/service.js +1 -151
- package/dist/safe-bash/commands/llm/types.d.ts +1 -52
- package/dist/safe-bash/commands/llm/types.js +1 -1
- package/dist/safe-bash/commands/mdq/index.browser.js +3 -3
- package/dist/safe-bash/commands/media/index.browser.js +1 -1
- package/dist/safe-bash/commands/network/index.browser.js +9 -9
- package/dist/safe-bash/commands/network/types.d.ts +2 -40
- package/dist/safe-bash/commands/node/index.browser.js +6 -8
- package/dist/safe-bash/commands/op/index.browser.js +3 -3
- package/dist/safe-bash/commands/op/index.js +12 -28
- package/dist/safe-bash/commands/pr/index.browser.js +2 -2
- package/dist/safe-bash/commands/python/index.browser.js +8 -8
- package/dist/safe-bash/commands/python/worker.browser.js +2 -2
- package/dist/safe-bash/commands/tsort/index.browser.js +2 -2
- package/dist/safe-bash/commands/xml/index.browser.js +2 -2
- package/dist/safe-bash/commands/yq/index.browser.js +3 -3
- package/dist/safe-bash/core.browser.js +9775 -10975
- package/dist/safe-bash/core.d.ts +0 -1
- package/dist/safe-bash/core.js +0 -1
- package/dist/safe-bash/jobs.browser.js +5 -4
- package/dist/safe-bash/optional-host.browser.js +61 -88
- package/dist/safe-bash/shell/runtime.js +34 -12
- package/dist/safe-bash/yq-browser/index.js +1 -1
- package/dist/safe-bash-command-ffmpeg/index.js +8130 -8011
- package/dist/safe-bash-command-git/git_rust.wasm +0 -0
- package/dist/safe-bash-command-git/wasm.generated.js +1 -1
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-llm/LICENSE +21 -0
- package/dist/safe-bash-command-llm/command.d.ts +5 -0
- package/dist/safe-bash-command-llm/command.js +14 -0
- package/dist/safe-bash-command-llm/configuration.d.ts +18 -0
- package/dist/safe-bash-command-llm/elevenlabs-stream.d.ts +2 -0
- package/dist/safe-bash-command-llm/elevenlabs-stream.js +7 -0
- package/dist/safe-bash-command-llm/elevenlabs.d.ts +15 -0
- package/dist/safe-bash-command-llm/elevenlabs.js +10 -0
- package/dist/safe-bash-command-llm/index.d.ts +10 -0
- package/dist/safe-bash-command-llm/index.js +46 -0
- package/dist/safe-bash-command-llm/mime.d.ts +2 -0
- package/dist/safe-bash-command-llm/mime.js +9 -0
- package/dist/safe-bash-command-llm/model-options.d.ts +3 -0
- package/dist/safe-bash-command-llm/openai-http.d.ts +8 -0
- package/dist/safe-bash-command-llm/openai-http.js +17 -0
- package/dist/safe-bash-command-llm/openai-sse.d.ts +3 -0
- package/dist/safe-bash-command-llm/openai-sse.js +8 -0
- package/dist/safe-bash-command-llm/openai.d.ts +14 -0
- package/dist/safe-bash-command-llm/openai.js +12 -0
- package/dist/safe-bash-command-llm/providers/elevenlabs.d.ts +1 -0
- package/dist/safe-bash-command-llm/providers/elevenlabs.js +11 -0
- package/dist/safe-bash-command-llm/providers/index.d.ts +3 -0
- package/dist/safe-bash-command-llm/providers/index.js +24 -0
- package/dist/safe-bash-command-llm/providers/openai.d.ts +1 -0
- package/dist/safe-bash-command-llm/providers/openai.js +13 -0
- package/dist/safe-bash-command-llm/providers/shared.d.ts +23 -0
- package/dist/safe-bash-command-llm/providers/shared.js +13 -0
- package/dist/safe-bash-command-llm/schemas.d.ts +2 -0
- package/dist/safe-bash-command-llm/service.d.ts +42 -0
- package/dist/safe-bash-command-llm/service.js +9 -0
- package/dist/safe-bash-command-llm/templates.d.ts +27 -0
- package/dist/safe-bash-command-llm/types.d.ts +87 -0
- package/dist/safe-bash-command-llm/types.js +6 -0
- package/dist/safe-bash-command-mmdc/command.d.ts +4 -0
- package/dist/safe-bash-command-mmdc/index.d.ts +1 -1
- package/dist/safe-bash-command-mmdc/index.js +7084 -6687
- package/dist/safe-bash-command-mmdc/layout.d.ts +1 -0
- package/dist/safe-bash-command-mmdc/parser.d.ts +1 -0
- package/dist/safe-bash-command-mmdc/png.d.ts +3 -0
- package/dist/safe-bash-command-mmdc/raster.d.ts +1 -0
- package/dist/safe-bash-command-pandoc/command.js +3 -3
- package/dist/safe-bash-command-pandoc/index.js +3 -3
- package/dist/safe-bash-command-pdfimages/index.js +147 -80
- package/dist/safe-bash-command-pdfinfo/index.js +147 -80
- package/dist/safe-bash-command-pdftk/index.js +147 -80
- package/dist/safe-bash-command-pdftoppm/index.js +147 -80
- package/dist/safe-bash-command-pdftotext/index.js +147 -80
- package/dist/safe-bash-command-qpdf/index.js +174 -101
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +147 -80
- package/dist/safe-bash-command-wkhtmltopdf/index.js +147 -80
- package/dist/safe-bash-contracts/default-executor.d.ts +5 -0
- package/dist/safe-bash-contracts/default-executor.js +37 -0
- package/dist/safe-bash-contracts/http.d.ts +41 -0
- package/dist/safe-bash-contracts/http.js +6 -0
- package/dist/safe-bash-io-engine/commands/search/requirements.js +3 -3
- package/dist/safe-bash-io-engine/commands/text-programs/shared.js +3 -3
- package/dist/safe-bash-io-engine/gnu-information.d.ts +1 -1
- package/dist/safe-bash-io-engine/gnu-information.js +1 -1
- package/dist/safe-bash-io-engine/internal.js +2 -2
- package/dist/safe-bash-query-engine/index.js +3 -3
- package/dist/safe-bash-query-engine/interpreter.js +2 -2
- package/dist/safe-bash-query-engine/query-core.js +3 -3
- package/package.json +2 -2
- package/dist/safe-bash/chunks/chunk-2G2T5MEM.js +0 -14
- package/dist/safe-bash/chunks/chunk-2MUJ7RLZ.js +0 -409
- package/dist/safe-bash/chunks/chunk-GJWUEOT6.js +0 -14
- package/dist/safe-bash/chunks/chunk-H7MMJS26.js +0 -37
- package/dist/safe-bash/chunks/chunk-LAPF2XE6.js +0 -14
- package/dist/safe-bash/chunks/chunk-S2LSZFZ6.js +0 -758
- package/dist/safe-bash/chunks/chunk-T3VDYWKZ.js +0 -21
- package/dist/safe-bash/chunks/chunk-VUVKC6HV.js +0 -81
- package/dist/safe-bash/chunks/chunk-VYW4Q6KF.js +0 -12
- package/dist/safe-bash/command-chunks/{chunk-BJ6DGYJA.js → chunk-KNI4GRXF.js} +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_platform
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I3KSESCR.js";
|
|
4
4
|
|
|
5
5
|
// packages/safe-bash/src/commands/hexdump/index.ts
|
|
6
6
|
init_platform();
|
|
7
|
-
|
|
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,42 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
shellValueByteLength,
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
shellValueBytes,
|
|
4
|
+
shellValueText
|
|
5
|
+
} from "./chunk-VCCMROTL.js";
|
|
5
6
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
commandRuntimeIdentity
|
|
8
|
+
} from "./chunk-DYEUZE6Z.js";
|
|
8
9
|
import {
|
|
9
|
-
__reExport,
|
|
10
10
|
init_platform
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I3KSESCR.js";
|
|
12
12
|
|
|
13
13
|
// packages/safe-bash/src/commands/portable-requirements.ts
|
|
14
|
-
var portable_requirements_exports = {};
|
|
15
14
|
init_platform();
|
|
16
|
-
|
|
17
|
-
import * as portable_requirements_star from "../../safe-bash-io-engine/portable-requirements.js";
|
|
15
|
+
import { inputRequirements, predicateRequirements, pwdRequirements, textOutputRequirements } from "../../safe-bash-io-engine/portable-requirements.js";
|
|
18
16
|
|
|
19
17
|
// packages/safe-bash/src/commands/copy-identity.ts
|
|
20
18
|
init_platform();
|
|
21
19
|
import { compareCopyIdentity, compareObservedEntries } from "../../safe-bash-contracts/filesystem-identity.js";
|
|
22
20
|
|
|
23
21
|
// packages/safe-bash/src/byte-encoding.ts
|
|
24
|
-
var byte_encoding_exports = {};
|
|
25
22
|
init_platform();
|
|
26
|
-
|
|
27
|
-
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";
|
|
28
24
|
|
|
29
25
|
// packages/safe-bash/src/commands/bytes/input-budget.ts
|
|
30
|
-
var input_budget_exports = {};
|
|
31
26
|
init_platform();
|
|
32
|
-
|
|
33
|
-
import * as safe_bash_byte_input_engine_star from "../../safe-bash-byte-input-engine/index.js";
|
|
27
|
+
import { ByteInputBudget, resolveInputLimit } from "../../safe-bash-byte-input-engine/index.js";
|
|
34
28
|
|
|
35
29
|
// packages/safe-bash/src/commands/timeout/index.ts
|
|
36
|
-
var timeout_exports = {};
|
|
37
30
|
init_platform();
|
|
38
|
-
|
|
39
|
-
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";
|
|
40
32
|
|
|
41
33
|
// packages/safe-bash/src/shell/trap.ts
|
|
42
34
|
init_platform();
|
|
@@ -51,7 +43,7 @@ function isIdlePortableTrapInstance(instance) {
|
|
|
51
43
|
return idlePortableTrapInstances.get(instance)?.() ?? false;
|
|
52
44
|
}
|
|
53
45
|
function quote(source) {
|
|
54
|
-
const bytes =
|
|
46
|
+
const bytes = shellValueBytes(source);
|
|
55
47
|
const parts = [new TextEncoder().encode("'")];
|
|
56
48
|
let start = 0;
|
|
57
49
|
for (let index = 0; index < bytes.length; index++) if (bytes[index] === 39) {
|
|
@@ -187,7 +179,7 @@ trap: usage: trap [-lp] [arg signal_spec ...]
|
|
|
187
179
|
await context.stderr.write(new TextEncoder().encode("trap: usage: trap [-lp] [arg signal_spec ...]\n"));
|
|
188
180
|
return 2;
|
|
189
181
|
}
|
|
190
|
-
if (action !== void 0 &&
|
|
182
|
+
if (action !== void 0 && shellValueText(action) !== "-") context.accountSource(action);
|
|
191
183
|
const targets = args.length ? args : actions ? [...actions.keys()].sort((left, right) => left - right).map(String) : [];
|
|
192
184
|
let status = 0;
|
|
193
185
|
for (const target of targets) {
|
|
@@ -206,7 +198,7 @@ trap: usage: trap [-lp] [arg signal_spec ...]
|
|
|
206
198
|
`));
|
|
207
199
|
}
|
|
208
200
|
} else if (inheritedIgnored.has(number)) continue;
|
|
209
|
-
else if (action === void 0 ||
|
|
201
|
+
else if (action === void 0 || shellValueText(action) === "-") actions?.delete(number);
|
|
210
202
|
else {
|
|
211
203
|
actions ??= /* @__PURE__ */ new Map();
|
|
212
204
|
actions.set(number, { source: action, active: true });
|
|
@@ -270,7 +262,7 @@ trap: usage: trap [-lp] [arg signal_spec ...]
|
|
|
270
262
|
}
|
|
271
263
|
return created;
|
|
272
264
|
}
|
|
273
|
-
return { name: "trap", runtimeIdentity:
|
|
265
|
+
return { name: "trap", runtimeIdentity: commandRuntimeIdentity, create: () => instance(
|
|
274
266
|
initialIgnored.size ? new Map([...initialIgnored].map((number) => [number, { source: "", active: true }])) : void 0,
|
|
275
267
|
false,
|
|
276
268
|
false,
|
|
@@ -280,42 +272,51 @@ trap: usage: trap [-lp] [arg signal_spec ...]
|
|
|
280
272
|
var defaultPortableTrapExtension = portableTrapExtension();
|
|
281
273
|
|
|
282
274
|
// packages/safe-bash/src/commands/regex-execution/ere/errors.ts
|
|
283
|
-
var errors_exports = {};
|
|
284
275
|
init_platform();
|
|
285
|
-
|
|
286
|
-
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";
|
|
287
277
|
|
|
288
278
|
// packages/safe-bash/src/commands/regex-execution/ere/limits.ts
|
|
289
|
-
var limits_exports = {};
|
|
290
279
|
init_platform();
|
|
291
|
-
|
|
292
|
-
import * as limits_star from "../../safe-bash-regex-engine/ere/limits.js";
|
|
280
|
+
import { EreLedger, deriveEreLimits } from "../../safe-bash-regex-engine/ere/limits.js";
|
|
293
281
|
|
|
294
282
|
// packages/safe-bash/src/commands/regex-execution/ere/syntax.ts
|
|
295
|
-
var syntax_exports = {};
|
|
296
283
|
init_platform();
|
|
297
|
-
|
|
298
|
-
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";
|
|
299
285
|
|
|
300
286
|
// packages/safe-bash/src/commands/regex-execution/ere/matcher.ts
|
|
301
|
-
var matcher_exports = {};
|
|
302
287
|
init_platform();
|
|
303
|
-
|
|
304
|
-
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";
|
|
305
289
|
|
|
306
290
|
export {
|
|
307
|
-
|
|
291
|
+
inputRequirements,
|
|
292
|
+
predicateRequirements,
|
|
293
|
+
pwdRequirements,
|
|
294
|
+
textOutputRequirements,
|
|
308
295
|
compareCopyIdentity,
|
|
309
296
|
compareObservedEntries,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
297
|
+
bytesToHex,
|
|
298
|
+
compareUtf8,
|
|
299
|
+
latin1Bytes,
|
|
300
|
+
latin1Text,
|
|
301
|
+
ByteInputBudget,
|
|
302
|
+
resolveInputLimit,
|
|
303
|
+
createTimeoutCommand,
|
|
304
|
+
createTimeoutCommands,
|
|
305
|
+
evalSyncTimeout,
|
|
306
|
+
signalName,
|
|
307
|
+
timeoutCommands,
|
|
313
308
|
captureIgnoredTrapSignals,
|
|
314
309
|
isIdlePortableTrapInstance,
|
|
315
310
|
portableTrapExtension,
|
|
316
311
|
defaultPortableTrapExtension,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
312
|
+
EreProfileLimitError,
|
|
313
|
+
EreSyntaxError,
|
|
314
|
+
EreUnsupportedError,
|
|
315
|
+
EreUsageUnknownError,
|
|
316
|
+
EreLedger,
|
|
317
|
+
compileEre,
|
|
318
|
+
tryCompileEreSync,
|
|
319
|
+
matchEre,
|
|
320
|
+
prepareUtf8EreSubject,
|
|
321
|
+
tryMatchEreSync
|
|
321
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-
|
|
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-H7MMJS26.js";
|
|
23
|
-
import {
|
|
24
|
-
command_exports,
|
|
25
|
-
io_exports
|
|
26
|
-
} from "./chunk-T3VDYWKZ.js";
|
|
30
|
+
} from "./chunk-JLIMK5TD.js";
|
|
27
31
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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) =>
|
|
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 =
|
|
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 =
|
|
3868
|
-
stderrOperation =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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
|
-
|
|
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-
|
|
3
|
+
} from "./chunk-I3KSESCR.js";
|
|
4
4
|
|
|
5
5
|
// packages/safe-bash/src/commands/factor/index.ts
|
|
6
6
|
init_platform();
|
|
7
|
-
|
|
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-
|
|
3
|
+
} from "./chunk-I3KSESCR.js";
|
|
4
4
|
|
|
5
5
|
// packages/safe-bash/src/commands/line-endings/index.ts
|
|
6
6
|
init_platform();
|
|
7
|
-
|
|
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-
|
|
3
|
+
} from "./chunk-I3KSESCR.js";
|
|
4
4
|
|
|
5
5
|
// packages/safe-bash/src/commands/xml/index.ts
|
|
6
6
|
init_platform();
|
|
7
|
-
|
|
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-
|
|
3
|
+
} from "./chunk-I3KSESCR.js";
|
|
4
4
|
|
|
5
5
|
// packages/safe-bash/src/commands/tsort/index.ts
|
|
6
6
|
init_platform();
|
|
7
|
-
|
|
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-
|
|
3
|
+
} from "./chunk-I3KSESCR.js";
|
|
4
4
|
|
|
5
5
|
// packages/safe-bash/src/commands/pr/index.ts
|
|
6
6
|
init_platform();
|
|
7
|
-
|
|
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,
|