@poe-platform/safe-bash 0.1.673 → 0.1.675
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/safe-bash/chunks/{bz2-IHIZQMGV.js → bz2-GFOVKOE2.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-EQQUSBQL.js → chunk-3CSVGCNG.js} +8 -8
- package/dist/safe-bash/chunks/{chunk-J3KNDY7M.js → chunk-3G3EZZ63.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-JN25474T.js → chunk-6N3NP45C.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-QYWBN35Y.js → chunk-6R7IR2MV.js} +9 -9
- package/dist/safe-bash/chunks/{chunk-FBDSXZ2K.js → chunk-7KY55OSN.js} +6 -6
- package/dist/safe-bash/chunks/{chunk-CMXB2KEU.js → chunk-ADKIY2N6.js} +8 -8
- package/dist/safe-bash/chunks/{chunk-3Y7MJXHG.js → chunk-AJMYOERL.js} +8 -8
- package/dist/safe-bash/chunks/{chunk-4FOLIMDG.js → chunk-AMEBMTDV.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-JFAGVXK4.js → chunk-CXOGU5FI.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-JAZIACHR.js → chunk-CYHOHFST.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-BRSXHYVB.js → chunk-FAPYXUJX.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-HHA6W63G.js → chunk-FZ4N3GXF.js} +8 -8
- package/dist/safe-bash/chunks/{chunk-V62VGSQE.js → chunk-GXY5T7FE.js} +9 -9
- package/dist/safe-bash/chunks/{chunk-W4HGKCDM.js → chunk-IVMNRAZQ.js} +9 -9
- package/dist/safe-bash/chunks/{chunk-B62IHTWU.js → chunk-JDH27I5L.js} +7 -7
- package/dist/safe-bash/chunks/{chunk-ENWBYBE5.js → chunk-JFQCOS4H.js} +3 -3
- package/dist/safe-bash/chunks/{chunk-G6NUMAWB.js → chunk-MH7USUFB.js} +6 -6
- package/dist/safe-bash/chunks/{chunk-CBI5DWCN.js → chunk-O4SKIJ5J.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-CBI5DWCN.js.map → chunk-O4SKIJ5J.js.map} +1 -1
- package/dist/safe-bash/chunks/{chunk-AYSSIJJN.js → chunk-Q6FBCQOS.js} +5 -5
- package/dist/safe-bash/chunks/{chunk-PU6UAMLP.js → chunk-REGMDUIG.js} +7 -7
- package/dist/safe-bash/chunks/{chunk-FMPZXGZX.js → chunk-RPZQ4UUC.js} +6 -6
- package/dist/safe-bash/chunks/{chunk-Q3BPIW36.js → chunk-RZXOHP7M.js} +8 -8
- package/dist/safe-bash/chunks/{chunk-HUF6AIWZ.js → chunk-TJJ3M2PO.js} +4 -4
- package/dist/safe-bash/chunks/{chunk-4GS3VKVN.js → chunk-URHHMYD3.js} +2 -2
- package/dist/safe-bash/chunks/{chunk-CL3DDB37.js → chunk-YSWBQWQ4.js} +8 -8
- package/dist/safe-bash/chunks/{chunk-EW3TYPG2.js → chunk-ZAH7KZHM.js} +8 -8
- package/dist/safe-bash/chunks/{chunk-5LGU452F.js → chunk-ZBJOE26D.js} +3 -3
- package/dist/safe-bash/chunks/{chunk-E72YNOKL.js → chunk-ZDYA3SLF.js} +3 -3
- package/dist/safe-bash/chunks/{xz-ZQAJM52W.js → xz-JNAU6ET3.js} +2 -2
- package/dist/safe-bash/chunks/{zstd-2EW5DYSH.js → zstd-ATGZPMKA.js} +2 -2
- package/dist/safe-bash/commands/archive/zip/help.d.ts +1 -1
- package/dist/safe-bash/commands/archive/zip/help.d.ts.map +1 -1
- package/dist/safe-bash/commands/archive/zip/help.js +2 -1
- package/dist/safe-bash/commands/archive/zip/help.js.map +1 -1
- package/dist/safe-bash/commands/archive/zip/safety.d.ts +3 -0
- package/dist/safe-bash/commands/archive/zip/safety.d.ts.map +1 -1
- package/dist/safe-bash/commands/archive/zip/safety.js +63 -1
- package/dist/safe-bash/commands/archive/zip/safety.js.map +1 -1
- package/dist/safe-bash/commands/archive/zip.d.ts.map +1 -1
- package/dist/safe-bash/commands/archive/zip.js +8 -7
- package/dist/safe-bash/commands/archive/zip.js.map +1 -1
- package/dist/safe-bash/commands/csplit/index.browser.js +10 -10
- package/dist/safe-bash/commands/docx/index.browser.js +2 -2
- package/dist/safe-bash/commands/factor/index.browser.js +7 -7
- package/dist/safe-bash/commands/getopt/index.browser.js +7 -7
- package/dist/safe-bash/commands/hexdump/index.browser.js +8 -8
- package/dist/safe-bash/commands/iconv/index.browser.js +8 -8
- package/dist/safe-bash/commands/line-endings/index.browser.js +10 -10
- package/dist/safe-bash/commands/llm/index.browser.js +10 -10
- package/dist/safe-bash/commands/llm/providers/index.browser.js +3 -3
- package/dist/safe-bash/commands/network/index.browser.js +11 -11
- package/dist/safe-bash/commands/node/index.browser.js +8 -8
- package/dist/safe-bash/commands/op/index.browser.js +3 -3
- package/dist/safe-bash/commands/pr/index.browser.js +8 -8
- package/dist/safe-bash/commands/python/index.browser.js +9 -9
- package/dist/safe-bash/commands/python/worker.browser.js +2 -2
- package/dist/safe-bash/commands/tsort/index.browser.js +8 -8
- package/dist/safe-bash/commands/xml/index.browser.js +9 -9
- package/dist/safe-bash/commands/yq/index.browser.js +10 -10
- package/dist/safe-bash/core.browser.js +98 -42
- package/dist/safe-bash/core.browser.js.map +3 -3
- package/package.json +2 -2
- /package/dist/safe-bash/chunks/{bz2-IHIZQMGV.js.map → bz2-GFOVKOE2.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-EQQUSBQL.js.map → chunk-3CSVGCNG.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-J3KNDY7M.js.map → chunk-3G3EZZ63.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-JN25474T.js.map → chunk-6N3NP45C.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-QYWBN35Y.js.map → chunk-6R7IR2MV.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-FBDSXZ2K.js.map → chunk-7KY55OSN.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-CMXB2KEU.js.map → chunk-ADKIY2N6.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-3Y7MJXHG.js.map → chunk-AJMYOERL.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-4FOLIMDG.js.map → chunk-AMEBMTDV.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-JFAGVXK4.js.map → chunk-CXOGU5FI.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-JAZIACHR.js.map → chunk-CYHOHFST.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-BRSXHYVB.js.map → chunk-FAPYXUJX.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-HHA6W63G.js.map → chunk-FZ4N3GXF.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-V62VGSQE.js.map → chunk-GXY5T7FE.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-W4HGKCDM.js.map → chunk-IVMNRAZQ.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-B62IHTWU.js.map → chunk-JDH27I5L.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-ENWBYBE5.js.map → chunk-JFQCOS4H.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-G6NUMAWB.js.map → chunk-MH7USUFB.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-AYSSIJJN.js.map → chunk-Q6FBCQOS.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-PU6UAMLP.js.map → chunk-REGMDUIG.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-FMPZXGZX.js.map → chunk-RPZQ4UUC.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-Q3BPIW36.js.map → chunk-RZXOHP7M.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-HUF6AIWZ.js.map → chunk-TJJ3M2PO.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-4GS3VKVN.js.map → chunk-URHHMYD3.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-CL3DDB37.js.map → chunk-YSWBQWQ4.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-EW3TYPG2.js.map → chunk-ZAH7KZHM.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-5LGU452F.js.map → chunk-ZBJOE26D.js.map} +0 -0
- /package/dist/safe-bash/chunks/{chunk-E72YNOKL.js.map → chunk-ZDYA3SLF.js.map} +0 -0
- /package/dist/safe-bash/chunks/{xz-ZQAJM52W.js.map → xz-JNAU6ET3.js.map} +0 -0
- /package/dist/safe-bash/chunks/{zstd-2EW5DYSH.js.map → zstd-ATGZPMKA.js.map} +0 -0
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
curlCommands,
|
|
11
11
|
defaultNetworkLimits,
|
|
12
12
|
networkCommands
|
|
13
|
-
} from "../../chunks/chunk-
|
|
14
|
-
import "../../chunks/chunk-
|
|
15
|
-
import "../../chunks/chunk-
|
|
16
|
-
import "../../chunks/chunk-
|
|
17
|
-
import "../../chunks/chunk-
|
|
18
|
-
import "../../chunks/chunk-
|
|
19
|
-
import "../../chunks/chunk-
|
|
20
|
-
import "../../chunks/chunk-
|
|
21
|
-
import "../../chunks/chunk-
|
|
22
|
-
import "../../chunks/chunk-
|
|
23
|
-
import "../../chunks/chunk-
|
|
13
|
+
} from "../../chunks/chunk-IVMNRAZQ.js";
|
|
14
|
+
import "../../chunks/chunk-Q6FBCQOS.js";
|
|
15
|
+
import "../../chunks/chunk-ZBJOE26D.js";
|
|
16
|
+
import "../../chunks/chunk-ZDYA3SLF.js";
|
|
17
|
+
import "../../chunks/chunk-RPZQ4UUC.js";
|
|
18
|
+
import "../../chunks/chunk-TJJ3M2PO.js";
|
|
19
|
+
import "../../chunks/chunk-6N3NP45C.js";
|
|
20
|
+
import "../../chunks/chunk-CYHOHFST.js";
|
|
21
|
+
import "../../chunks/chunk-AMEBMTDV.js";
|
|
22
|
+
import "../../chunks/chunk-URHHMYD3.js";
|
|
23
|
+
import "../../chunks/chunk-O4SKIJ5J.js";
|
|
24
24
|
export {
|
|
25
25
|
CurlError,
|
|
26
26
|
cloudflareWorkerNetworkLimits,
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
createSafeJsNodeCommand,
|
|
3
3
|
createSafeJsNodeCommands,
|
|
4
4
|
safeJsNodeCommands
|
|
5
|
-
} from "../../chunks/chunk-
|
|
6
|
-
import "../../chunks/chunk-
|
|
7
|
-
import "../../chunks/chunk-
|
|
8
|
-
import "../../chunks/chunk-
|
|
9
|
-
import "../../chunks/chunk-
|
|
10
|
-
import "../../chunks/chunk-
|
|
11
|
-
import "../../chunks/chunk-
|
|
12
|
-
import "../../chunks/chunk-
|
|
5
|
+
} from "../../chunks/chunk-MH7USUFB.js";
|
|
6
|
+
import "../../chunks/chunk-RPZQ4UUC.js";
|
|
7
|
+
import "../../chunks/chunk-TJJ3M2PO.js";
|
|
8
|
+
import "../../chunks/chunk-6N3NP45C.js";
|
|
9
|
+
import "../../chunks/chunk-CYHOHFST.js";
|
|
10
|
+
import "../../chunks/chunk-AMEBMTDV.js";
|
|
11
|
+
import "../../chunks/chunk-URHHMYD3.js";
|
|
12
|
+
import "../../chunks/chunk-O4SKIJ5J.js";
|
|
13
13
|
export {
|
|
14
14
|
createSafeJsNodeCommand as createNodeCommand,
|
|
15
15
|
createSafeJsNodeCommands as createNodeCommands,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolvePath
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-AMEBMTDV.js";
|
|
4
4
|
import {
|
|
5
5
|
readBytes
|
|
6
|
-
} from "../../chunks/chunk-
|
|
6
|
+
} from "../../chunks/chunk-URHHMYD3.js";
|
|
7
7
|
import {
|
|
8
8
|
init_platform
|
|
9
|
-
} from "../../chunks/chunk-
|
|
9
|
+
} from "../../chunks/chunk-O4SKIJ5J.js";
|
|
10
10
|
|
|
11
11
|
// packages/safe-bash/src/commands/op/index.ts
|
|
12
12
|
init_platform();
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
createPrCommand,
|
|
3
3
|
createPrCommands,
|
|
4
4
|
prCommands
|
|
5
|
-
} from "../../chunks/chunk-
|
|
6
|
-
import "../../chunks/chunk-
|
|
7
|
-
import "../../chunks/chunk-
|
|
8
|
-
import "../../chunks/chunk-
|
|
9
|
-
import "../../chunks/chunk-
|
|
10
|
-
import "../../chunks/chunk-
|
|
11
|
-
import "../../chunks/chunk-
|
|
12
|
-
import "../../chunks/chunk-
|
|
5
|
+
} from "../../chunks/chunk-3CSVGCNG.js";
|
|
6
|
+
import "../../chunks/chunk-ZDYA3SLF.js";
|
|
7
|
+
import "../../chunks/chunk-TJJ3M2PO.js";
|
|
8
|
+
import "../../chunks/chunk-6N3NP45C.js";
|
|
9
|
+
import "../../chunks/chunk-CYHOHFST.js";
|
|
10
|
+
import "../../chunks/chunk-AMEBMTDV.js";
|
|
11
|
+
import "../../chunks/chunk-URHHMYD3.js";
|
|
12
|
+
import "../../chunks/chunk-O4SKIJ5J.js";
|
|
13
13
|
export {
|
|
14
14
|
createPrCommand,
|
|
15
15
|
createPrCommands,
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
createPythonPackageManifestStore,
|
|
8
8
|
pythonCommands,
|
|
9
9
|
pythonDocumentPackages
|
|
10
|
-
} from "../../chunks/chunk-
|
|
11
|
-
import "../../chunks/chunk-
|
|
10
|
+
} from "../../chunks/chunk-6R7IR2MV.js";
|
|
11
|
+
import "../../chunks/chunk-ZBJOE26D.js";
|
|
12
12
|
import {
|
|
13
13
|
PythonFailure,
|
|
14
14
|
inspectPythonCapabilities
|
|
15
|
-
} from "../../chunks/chunk-
|
|
16
|
-
import "../../chunks/chunk-
|
|
17
|
-
import "../../chunks/chunk-
|
|
18
|
-
import "../../chunks/chunk-
|
|
19
|
-
import "../../chunks/chunk-
|
|
20
|
-
import "../../chunks/chunk-
|
|
21
|
-
import "../../chunks/chunk-
|
|
15
|
+
} from "../../chunks/chunk-3G3EZZ63.js";
|
|
16
|
+
import "../../chunks/chunk-ZDYA3SLF.js";
|
|
17
|
+
import "../../chunks/chunk-6N3NP45C.js";
|
|
18
|
+
import "../../chunks/chunk-CYHOHFST.js";
|
|
19
|
+
import "../../chunks/chunk-AMEBMTDV.js";
|
|
20
|
+
import "../../chunks/chunk-URHHMYD3.js";
|
|
21
|
+
import "../../chunks/chunk-O4SKIJ5J.js";
|
|
22
22
|
export {
|
|
23
23
|
PythonFailure,
|
|
24
24
|
PythonPackageConflictError,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PythonFailure,
|
|
3
3
|
parsePythonInvocation
|
|
4
|
-
} from "../../chunks/chunk-
|
|
4
|
+
} from "../../chunks/chunk-3G3EZZ63.js";
|
|
5
5
|
import {
|
|
6
6
|
init_platform
|
|
7
|
-
} from "../../chunks/chunk-
|
|
7
|
+
} from "../../chunks/chunk-O4SKIJ5J.js";
|
|
8
8
|
|
|
9
9
|
// packages/safe-bash/src/commands/python/worker.ts
|
|
10
10
|
init_platform();
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
createTsortCommand,
|
|
3
3
|
createTsortCommands,
|
|
4
4
|
tsortCommands
|
|
5
|
-
} from "../../chunks/chunk-
|
|
6
|
-
import "../../chunks/chunk-
|
|
7
|
-
import "../../chunks/chunk-
|
|
8
|
-
import "../../chunks/chunk-
|
|
9
|
-
import "../../chunks/chunk-
|
|
10
|
-
import "../../chunks/chunk-
|
|
11
|
-
import "../../chunks/chunk-
|
|
12
|
-
import "../../chunks/chunk-
|
|
5
|
+
} from "../../chunks/chunk-RZXOHP7M.js";
|
|
6
|
+
import "../../chunks/chunk-ZDYA3SLF.js";
|
|
7
|
+
import "../../chunks/chunk-TJJ3M2PO.js";
|
|
8
|
+
import "../../chunks/chunk-6N3NP45C.js";
|
|
9
|
+
import "../../chunks/chunk-CYHOHFST.js";
|
|
10
|
+
import "../../chunks/chunk-AMEBMTDV.js";
|
|
11
|
+
import "../../chunks/chunk-URHHMYD3.js";
|
|
12
|
+
import "../../chunks/chunk-O4SKIJ5J.js";
|
|
13
13
|
export {
|
|
14
14
|
createTsortCommand,
|
|
15
15
|
createTsortCommands,
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
createXmlCommands,
|
|
3
3
|
defaultXmlQueryLimits,
|
|
4
4
|
xmlCommands
|
|
5
|
-
} from "../../chunks/chunk-
|
|
6
|
-
import "../../chunks/chunk-
|
|
7
|
-
import "../../chunks/chunk-
|
|
8
|
-
import "../../chunks/chunk-
|
|
9
|
-
import "../../chunks/chunk-
|
|
10
|
-
import "../../chunks/chunk-
|
|
11
|
-
import "../../chunks/chunk-
|
|
12
|
-
import "../../chunks/chunk-
|
|
13
|
-
import "../../chunks/chunk-
|
|
5
|
+
} from "../../chunks/chunk-JDH27I5L.js";
|
|
6
|
+
import "../../chunks/chunk-JFQCOS4H.js";
|
|
7
|
+
import "../../chunks/chunk-RPZQ4UUC.js";
|
|
8
|
+
import "../../chunks/chunk-TJJ3M2PO.js";
|
|
9
|
+
import "../../chunks/chunk-6N3NP45C.js";
|
|
10
|
+
import "../../chunks/chunk-CYHOHFST.js";
|
|
11
|
+
import "../../chunks/chunk-AMEBMTDV.js";
|
|
12
|
+
import "../../chunks/chunk-URHHMYD3.js";
|
|
13
|
+
import "../../chunks/chunk-O4SKIJ5J.js";
|
|
14
14
|
export {
|
|
15
15
|
createXmlCommands,
|
|
16
16
|
defaultXmlQueryLimits,
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
createYqCommand,
|
|
3
3
|
createYqCommands,
|
|
4
4
|
yqCommands
|
|
5
|
-
} from "../../chunks/chunk-
|
|
6
|
-
import "../../chunks/chunk-
|
|
7
|
-
import "../../chunks/chunk-
|
|
8
|
-
import "../../chunks/chunk-
|
|
9
|
-
import "../../chunks/chunk-
|
|
10
|
-
import "../../chunks/chunk-
|
|
11
|
-
import "../../chunks/chunk-
|
|
12
|
-
import "../../chunks/chunk-
|
|
13
|
-
import "../../chunks/chunk-
|
|
14
|
-
import "../../chunks/chunk-
|
|
5
|
+
} from "../../chunks/chunk-AJMYOERL.js";
|
|
6
|
+
import "../../chunks/chunk-ZDYA3SLF.js";
|
|
7
|
+
import "../../chunks/chunk-JFQCOS4H.js";
|
|
8
|
+
import "../../chunks/chunk-RPZQ4UUC.js";
|
|
9
|
+
import "../../chunks/chunk-TJJ3M2PO.js";
|
|
10
|
+
import "../../chunks/chunk-6N3NP45C.js";
|
|
11
|
+
import "../../chunks/chunk-CYHOHFST.js";
|
|
12
|
+
import "../../chunks/chunk-AMEBMTDV.js";
|
|
13
|
+
import "../../chunks/chunk-URHHMYD3.js";
|
|
14
|
+
import "../../chunks/chunk-O4SKIJ5J.js";
|
|
15
15
|
export {
|
|
16
16
|
createYqCommand,
|
|
17
17
|
createYqCommands,
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
createHexdumpCommand,
|
|
4
4
|
createHexdumpCommands,
|
|
5
5
|
hexdumpCommands
|
|
6
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-YSWBQWQ4.js";
|
|
7
7
|
import {
|
|
8
8
|
createIconvCommand,
|
|
9
9
|
createIconvCommands,
|
|
10
10
|
iconvCommands
|
|
11
|
-
} from "./chunks/chunk-
|
|
11
|
+
} from "./chunks/chunk-ADKIY2N6.js";
|
|
12
12
|
import {
|
|
13
13
|
createDos2unixCommand,
|
|
14
14
|
createLineEndingCommands,
|
|
15
15
|
createUnix2dosCommand,
|
|
16
16
|
lineEndingCommands
|
|
17
|
-
} from "./chunks/chunk-
|
|
17
|
+
} from "./chunks/chunk-GXY5T7FE.js";
|
|
18
18
|
import {
|
|
19
19
|
Interpreter,
|
|
20
20
|
createYqCommand,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
rawValues,
|
|
26
26
|
stringify,
|
|
27
27
|
yqCommands
|
|
28
|
-
} from "./chunks/chunk-
|
|
28
|
+
} from "./chunks/chunk-AJMYOERL.js";
|
|
29
29
|
import {
|
|
30
30
|
CurlError,
|
|
31
31
|
cloudflareWorkerNetworkLimits,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
curlCommands,
|
|
39
39
|
defaultNetworkLimits,
|
|
40
40
|
networkCommands
|
|
41
|
-
} from "./chunks/chunk-
|
|
41
|
+
} from "./chunks/chunk-IVMNRAZQ.js";
|
|
42
42
|
import {
|
|
43
43
|
SafeJsCommandLimitError,
|
|
44
44
|
createSafeJsNodeCommand,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
safeJsNodeCommands,
|
|
50
50
|
stringValue,
|
|
51
51
|
withSignal
|
|
52
|
-
} from "./chunks/chunk-
|
|
52
|
+
} from "./chunks/chunk-MH7USUFB.js";
|
|
53
53
|
import {
|
|
54
54
|
AvailableRecords,
|
|
55
55
|
EreLedger,
|
|
@@ -69,31 +69,31 @@ import {
|
|
|
69
69
|
exprMatchCeilings,
|
|
70
70
|
matchEre,
|
|
71
71
|
withRegexSession
|
|
72
|
-
} from "./chunks/chunk-
|
|
72
|
+
} from "./chunks/chunk-ZAH7KZHM.js";
|
|
73
73
|
import {
|
|
74
74
|
openFileOutput,
|
|
75
75
|
writeFileOutput
|
|
76
|
-
} from "./chunks/chunk-
|
|
76
|
+
} from "./chunks/chunk-Q6FBCQOS.js";
|
|
77
77
|
import {
|
|
78
78
|
createPrCommand,
|
|
79
79
|
createPrCommands,
|
|
80
80
|
prCommands
|
|
81
|
-
} from "./chunks/chunk-
|
|
81
|
+
} from "./chunks/chunk-3CSVGCNG.js";
|
|
82
82
|
import {
|
|
83
83
|
createTsortCommand,
|
|
84
84
|
createTsortCommands,
|
|
85
85
|
tsortCommands
|
|
86
|
-
} from "./chunks/chunk-
|
|
86
|
+
} from "./chunks/chunk-RZXOHP7M.js";
|
|
87
87
|
import {
|
|
88
88
|
createFactorCommand,
|
|
89
89
|
createFactorCommands,
|
|
90
90
|
factorCommands
|
|
91
|
-
} from "./chunks/chunk-
|
|
91
|
+
} from "./chunks/chunk-REGMDUIG.js";
|
|
92
92
|
import {
|
|
93
93
|
createGetoptCommand,
|
|
94
94
|
createGetoptCommands,
|
|
95
95
|
getoptCommands
|
|
96
|
-
} from "./chunks/chunk-
|
|
96
|
+
} from "./chunks/chunk-7KY55OSN.js";
|
|
97
97
|
import {
|
|
98
98
|
Chi,
|
|
99
99
|
HashMD,
|
|
@@ -114,33 +114,33 @@ import {
|
|
|
114
114
|
sha256,
|
|
115
115
|
sha384,
|
|
116
116
|
sha512
|
|
117
|
-
} from "./chunks/chunk-
|
|
117
|
+
} from "./chunks/chunk-6R7IR2MV.js";
|
|
118
118
|
import {
|
|
119
119
|
bindFileOutputBudget,
|
|
120
120
|
openCommandFile
|
|
121
|
-
} from "./chunks/chunk-
|
|
121
|
+
} from "./chunks/chunk-ZBJOE26D.js";
|
|
122
122
|
import {
|
|
123
123
|
PythonFailure,
|
|
124
124
|
inspectPythonCapabilities
|
|
125
|
-
} from "./chunks/chunk-
|
|
125
|
+
} from "./chunks/chunk-3G3EZZ63.js";
|
|
126
126
|
import {
|
|
127
127
|
createLlmCommands,
|
|
128
128
|
llmCommands
|
|
129
|
-
} from "./chunks/chunk-
|
|
129
|
+
} from "./chunks/chunk-FZ4N3GXF.js";
|
|
130
130
|
import {
|
|
131
131
|
createOutputOperation
|
|
132
|
-
} from "./chunks/chunk-
|
|
133
|
-
import "./chunks/chunk-
|
|
132
|
+
} from "./chunks/chunk-ZDYA3SLF.js";
|
|
133
|
+
import "./chunks/chunk-CXOGU5FI.js";
|
|
134
134
|
import {
|
|
135
135
|
classify,
|
|
136
136
|
createElevenLabsProvider,
|
|
137
137
|
createOpenAiProvider
|
|
138
|
-
} from "./chunks/chunk-
|
|
138
|
+
} from "./chunks/chunk-FAPYXUJX.js";
|
|
139
139
|
import {
|
|
140
140
|
createXmlCommands,
|
|
141
141
|
defaultXmlQueryLimits,
|
|
142
142
|
xmlCommands
|
|
143
|
-
} from "./chunks/chunk-
|
|
143
|
+
} from "./chunks/chunk-JDH27I5L.js";
|
|
144
144
|
import {
|
|
145
145
|
Budget,
|
|
146
146
|
JqError,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
resolveJqLimits,
|
|
154
154
|
truth,
|
|
155
155
|
wellFormed
|
|
156
|
-
} from "./chunks/chunk-
|
|
156
|
+
} from "./chunks/chunk-JFQCOS4H.js";
|
|
157
157
|
import {
|
|
158
158
|
RecordBuffer,
|
|
159
159
|
UsageError,
|
|
@@ -185,11 +185,11 @@ import {
|
|
|
185
185
|
textOutputRequirements,
|
|
186
186
|
value,
|
|
187
187
|
writeDiagnostic
|
|
188
|
-
} from "./chunks/chunk-
|
|
188
|
+
} from "./chunks/chunk-RPZQ4UUC.js";
|
|
189
189
|
import {
|
|
190
190
|
PublicDiagnostic,
|
|
191
191
|
publicDiagnosticMessage
|
|
192
|
-
} from "./chunks/chunk-
|
|
192
|
+
} from "./chunks/chunk-TJJ3M2PO.js";
|
|
193
193
|
import {
|
|
194
194
|
cancelTurn,
|
|
195
195
|
inheritYieldCheckpoint,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
registerYieldCheckpoint,
|
|
198
198
|
scheduleTurn,
|
|
199
199
|
yieldTurn
|
|
200
|
-
} from "./chunks/chunk-
|
|
200
|
+
} from "./chunks/chunk-6N3NP45C.js";
|
|
201
201
|
import {
|
|
202
202
|
CommandArgumentIdentityError,
|
|
203
203
|
CommandRegistry,
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
shellValueRetainedBytes,
|
|
212
212
|
shellValueText,
|
|
213
213
|
validateExitCode
|
|
214
|
-
} from "./chunks/chunk-
|
|
214
|
+
} from "./chunks/chunk-CYHOHFST.js";
|
|
215
215
|
import {
|
|
216
216
|
basename,
|
|
217
217
|
dirname,
|
|
@@ -221,7 +221,7 @@ import {
|
|
|
221
221
|
relativePath,
|
|
222
222
|
resolvePath,
|
|
223
223
|
validatePath
|
|
224
|
-
} from "./chunks/chunk-
|
|
224
|
+
} from "./chunks/chunk-AMEBMTDV.js";
|
|
225
225
|
import {
|
|
226
226
|
FsError,
|
|
227
227
|
collectBytes,
|
|
@@ -236,11 +236,11 @@ import {
|
|
|
236
236
|
toFsError,
|
|
237
237
|
writeBytes,
|
|
238
238
|
writeText
|
|
239
|
-
} from "./chunks/chunk-
|
|
239
|
+
} from "./chunks/chunk-URHHMYD3.js";
|
|
240
240
|
import {
|
|
241
241
|
import_buffer,
|
|
242
242
|
init_platform
|
|
243
|
-
} from "./chunks/chunk-
|
|
243
|
+
} from "./chunks/chunk-O4SKIJ5J.js";
|
|
244
244
|
|
|
245
245
|
// packages/safe-bash/src/core.browser.ts
|
|
246
246
|
init_platform();
|
|
@@ -20083,13 +20083,13 @@ async function createCodec(options2, signal, factory) {
|
|
|
20083
20083
|
if (!factory) {
|
|
20084
20084
|
switch (options2.format) {
|
|
20085
20085
|
case "bzip2":
|
|
20086
|
-
factory = (await import("./chunks/bz2-
|
|
20086
|
+
factory = (await import("./chunks/bz2-GFOVKOE2.js")).default;
|
|
20087
20087
|
break;
|
|
20088
20088
|
case "xz":
|
|
20089
|
-
factory = (await import("./chunks/xz-
|
|
20089
|
+
factory = (await import("./chunks/xz-JNAU6ET3.js")).default;
|
|
20090
20090
|
break;
|
|
20091
20091
|
case "zstd":
|
|
20092
|
-
factory = (await import("./chunks/zstd-
|
|
20092
|
+
factory = (await import("./chunks/zstd-ATGZPMKA.js")).default;
|
|
20093
20093
|
break;
|
|
20094
20094
|
}
|
|
20095
20095
|
}
|
|
@@ -28625,7 +28625,8 @@ Archive operations
|
|
|
28625
28625
|
Removal needs atomic filesystem support; excluded/nonempty directories remain.
|
|
28626
28626
|
-DF writes size/time differences and new members to required separate -O output.
|
|
28627
28627
|
-g grows by retaining validated local records when only adding members;
|
|
28628
|
-
replacements/deletions rebuild. Publication
|
|
28628
|
+
replacements/deletions rebuild. Publication uses owned atomic staging or
|
|
28629
|
+
conditional byte publication with opaque host identities and versions.
|
|
28629
28630
|
-b directory selects the VFS staging directory, also spooling stdout archives.
|
|
28630
28631
|
Cross-provider publication must be supported by the filesystem; no host copy.
|
|
28631
28632
|
-J removes a prefix only after validating the complete embedded ZIP and CRCs.
|
|
@@ -28723,6 +28724,21 @@ This is the virtual implementation license, not the native Info-ZIP license.
|
|
|
28723
28724
|
// packages/safe-bash/src/commands/archive/zip/safety.ts
|
|
28724
28725
|
init_platform();
|
|
28725
28726
|
import { retainFileSystemCleanup as retainFileSystemCleanup2 } from "@poe-platform/safe-fs/core";
|
|
28727
|
+
function hasZipIdentity(stat) {
|
|
28728
|
+
return hasIdentity(stat) || (typeof stat.identityScope === "object" && stat.identityScope !== null || typeof stat.identityScope === "symbol") && typeof stat.opaqueIdentity === "string" && stat.opaqueIdentity.length > 0 && stat.opaqueIdentity.length <= 4096 && hasZipVersion(stat);
|
|
28729
|
+
}
|
|
28730
|
+
function hasZipVersion(stat) {
|
|
28731
|
+
return typeof stat.opaqueVersion === "string" && stat.opaqueVersion.length > 0 && stat.opaqueVersion.length <= 4096;
|
|
28732
|
+
}
|
|
28733
|
+
function sameZipIdentity(first, second) {
|
|
28734
|
+
return sameIdentity2(first, second) || hasZipIdentity(first) && hasZipIdentity(second) && first.opaqueIdentity !== void 0 && first.identityScope === second.identityScope && first.opaqueIdentity === second.opaqueIdentity;
|
|
28735
|
+
}
|
|
28736
|
+
async function safeZipFile(scope, path, stat) {
|
|
28737
|
+
if (stat.type !== "file" || !hasZipIdentity(stat)) return false;
|
|
28738
|
+
if (stat.nlink !== void 0) return stat.nlink === 1;
|
|
28739
|
+
const capabilities = await scope.operation(() => scope.context.fs.capabilitiesFor?.(path, { signal: scope.context.signal }) ?? scope.context.fs.capabilities);
|
|
28740
|
+
return stat.opaqueIdentity !== void 0 && capabilities.hardlinks === false;
|
|
28741
|
+
}
|
|
28726
28742
|
var ZipScope = class {
|
|
28727
28743
|
constructor(original, limits) {
|
|
28728
28744
|
this.original = original;
|
|
@@ -28899,6 +28915,46 @@ async function stageZip(scope, prepared, consume) {
|
|
|
28899
28915
|
async function publishZip(scope, prepared) {
|
|
28900
28916
|
const { fs, signal } = scope.context;
|
|
28901
28917
|
const capabilities = await scope.operation(() => fs.capabilitiesFor?.(prepared.output, { signal, create: true }) ?? fs.capabilities);
|
|
28918
|
+
if (capabilities.atomicFilePublication === true && fs.publishFileConditional && !prepared.validate && prepared.stagingName === void 0) {
|
|
28919
|
+
if (capabilities.readOnly === true || capabilities.write === false) fail("ZIP destination is not writable");
|
|
28920
|
+
if (prepared.existing && (!hasZipIdentity(prepared.existing) || !hasZipVersion(prepared.existing))) fail("ZIP conditional publication requires an observed opaque version");
|
|
28921
|
+
const parent = await scope.operation(() => fs.realpath(prepared.parentName, { signal }));
|
|
28922
|
+
if (parent !== prepared.parent) fail("archive parent changed before publication");
|
|
28923
|
+
let size = 0;
|
|
28924
|
+
let completed = false;
|
|
28925
|
+
let active = true;
|
|
28926
|
+
const input3 = prepared.source ?? { async *[Symbol.asyncIterator]() {
|
|
28927
|
+
yield prepared.bytes ?? new Uint8Array();
|
|
28928
|
+
} };
|
|
28929
|
+
const source2 = scope.source((async function* () {
|
|
28930
|
+
for await (const chunk of readBytes(input3, signal)) {
|
|
28931
|
+
if (!active) fail("ZIP publication source is closed");
|
|
28932
|
+
if (chunk.length > scope.limits.maxArchiveBytes - size) fail("archive byte limit exceeded");
|
|
28933
|
+
size += chunk.length;
|
|
28934
|
+
let owned = chunk;
|
|
28935
|
+
if (prepared.source) await writeFileOutput(scope.context, chunk, async (bytes3) => {
|
|
28936
|
+
owned = Uint8Array.from(bytes3);
|
|
28937
|
+
});
|
|
28938
|
+
yield owned;
|
|
28939
|
+
}
|
|
28940
|
+
completed = true;
|
|
28941
|
+
})());
|
|
28942
|
+
try {
|
|
28943
|
+
const receipt = await scope.operation(() => fs.publishFileConditional(prepared.output, source2, {
|
|
28944
|
+
signal,
|
|
28945
|
+
parent: prepared.parentStat,
|
|
28946
|
+
expected: prepared.existing ?? null,
|
|
28947
|
+
maxBytes: scope.limits.maxArchiveBytes,
|
|
28948
|
+
...prepared.existing && capabilities.permissions !== false ? { mode: prepared.existing.mode & 4095 } : {},
|
|
28949
|
+
...prepared.mtimeMs === void 0 ? {} : { mtimeMs: prepared.mtimeMs }
|
|
28950
|
+
}));
|
|
28951
|
+
if (!completed || receipt.type !== "file" || receipt.size !== size || !hasZipIdentity(receipt) || !hasZipVersion(receipt) || prepared.existing?.opaqueVersion === receipt.opaqueVersion) fail("Invalid ZIP conditional publication acknowledgement");
|
|
28952
|
+
} finally {
|
|
28953
|
+
active = false;
|
|
28954
|
+
await scope.closeInputs();
|
|
28955
|
+
}
|
|
28956
|
+
return;
|
|
28957
|
+
}
|
|
28902
28958
|
if (capabilities.atomicFileStaging !== true || !fs.publishStagedFile) fail("ZIP publication requires atomic owned file staging");
|
|
28903
28959
|
await stageZip(scope, {
|
|
28904
28960
|
...prepared,
|
|
@@ -29795,7 +29851,7 @@ function memberName(path, limits) {
|
|
|
29795
29851
|
return name2 === "." ? "" : name2;
|
|
29796
29852
|
}
|
|
29797
29853
|
function unchanged4(before, after) {
|
|
29798
|
-
return before.type === after.type && before.size === after.size && before.mode === after.mode && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs && before.nlink === after.nlink && (!
|
|
29854
|
+
return before.type === after.type && before.size === after.size && before.mode === after.mode && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs && before.nlink === after.nlink && before.opaqueVersion === after.opaqueVersion && before.revision === after.revision && (!hasZipIdentity(before) || sameZipIdentity(before, after));
|
|
29799
29855
|
}
|
|
29800
29856
|
async function inspectSource(scope, path, storeLinks) {
|
|
29801
29857
|
const { fs, signal } = scope.context;
|
|
@@ -29831,7 +29887,7 @@ async function prepare(scope, parsed, budget, log, host2) {
|
|
|
29831
29887
|
checkPath(name2, limits);
|
|
29832
29888
|
const parent = await scope.operation(() => context2.fs.realpath(name2, { signal: context2.signal }));
|
|
29833
29889
|
const parentStat = await scope.operation(() => context2.fs.lstat(parent, { signal: context2.signal }));
|
|
29834
|
-
if (parentStat.type !== "directory" || !
|
|
29890
|
+
if (parentStat.type !== "directory" || !hasZipIdentity(parentStat)) fail("ZIP temporary path requires a directory with known backing identity");
|
|
29835
29891
|
temporary = { name: name2, parent, parentStat };
|
|
29836
29892
|
}
|
|
29837
29893
|
let publication;
|
|
@@ -29868,13 +29924,13 @@ async function prepare(scope, parsed, budget, log, host2) {
|
|
|
29868
29924
|
if (typeof error === "object" && error !== null && "code" in error && (error.code === "ENOENT" || error.code === "EACCES")) throw new ZipFailure(18, "File not found or no read permission", parsed.archive);
|
|
29869
29925
|
throw error;
|
|
29870
29926
|
}
|
|
29871
|
-
if (input3 === output2 || existing2 && publication?.existing &&
|
|
29927
|
+
if (input3 === output2 || existing2 && publication?.existing && sameZipIdentity(existing2, publication.existing)) throw new ZipFailure(16, "Invalid command arguments", `--out path must be different than in path: ${parsed.archive}`);
|
|
29872
29928
|
}
|
|
29873
29929
|
}
|
|
29874
29930
|
if ((parsed.action === "copy" || parsed.showFiles !== void 0 && !parsed.operands.length || parsed.output !== void 0 && parsed.archive !== "-") && !existing2) throw new ZipFailure(18, "File not found or no read permission", parsed.archive);
|
|
29875
|
-
if (publication?.existing && (
|
|
29931
|
+
if (publication?.existing && !await safeZipFile(scope, publication.output, publication.existing)) fail("output archive requires a regular, single-link file with known backing identity");
|
|
29876
29932
|
if (parsed.archive === "-" && parsed.test && !parsed.quiet) await budget.output(" zip warning: can't use -T on stdout, -T ignored\n");
|
|
29877
|
-
if (existing2 &&
|
|
29933
|
+
if (existing2 && !await safeZipFile(scope, input3, existing2)) fail("updating archive requires a regular, single-link file with known backing identity; archive aliases are unsupported");
|
|
29878
29934
|
let archive = { entries: [], comment: new Uint8Array() };
|
|
29879
29935
|
let originalBytes;
|
|
29880
29936
|
let inputPaths = [];
|
|
@@ -29889,7 +29945,7 @@ async function prepare(scope, parsed, budget, log, host2) {
|
|
|
29889
29945
|
if (resolved.disks && resolved.disks.starts.length > 1) inputSplit = Math.max(65536, ...resolved.disks.lengths.slice(0, -1));
|
|
29890
29946
|
if (publication && parsed.output !== void 0) for (const path of inputPaths) {
|
|
29891
29947
|
const stat = await scope.stat(path);
|
|
29892
|
-
if (publication.output === path || stat && publication.existing &&
|
|
29948
|
+
if (publication.output === path || stat && publication.existing && sameZipIdentity(stat, publication.existing)) fail("ZIP output aliases an input volume");
|
|
29893
29949
|
}
|
|
29894
29950
|
if ((parsed.split || resolved.disks) && parsed.output === void 0 && parsed.showFiles === void 0) throw new ZipFailure(16, "Invalid command arguments", "split archives require a separate --out destination");
|
|
29895
29951
|
if (parsed.repair || parsed.adjust) {
|
|
@@ -30049,7 +30105,7 @@ async function prepare(scope, parsed, budget, log, host2) {
|
|
|
30049
30105
|
return;
|
|
30050
30106
|
}
|
|
30051
30107
|
checkPath(canonical, limits);
|
|
30052
|
-
if (canonical === output2 || canonical === input3 || existing2 &&
|
|
30108
|
+
if (canonical === output2 || canonical === input3 || existing2 && sameZipIdentity(existing2, stat) || publication?.existing && sameZipIdentity(publication.existing, stat)) return;
|
|
30053
30109
|
const symlink = parsed.storeLinks && stat.type === "symlink";
|
|
30054
30110
|
const fifoSource = (stat.mode & 61440) === 4096;
|
|
30055
30111
|
if (fifoSource && !parsed.fifo || stat.type !== "file" && stat.type !== "directory" && !symlink && !fifoSource) {
|
|
@@ -30057,13 +30113,13 @@ async function prepare(scope, parsed, budget, log, host2) {
|
|
|
30057
30113
|
`);
|
|
30058
30114
|
return;
|
|
30059
30115
|
}
|
|
30060
|
-
if ((existing2 || publication?.existing) && !hasIdentity(stat)) fail("cannot exclude archive aliases when source backing identity is unknown");
|
|
30061
30116
|
const directory2 = stat.type === "directory";
|
|
30117
|
+
if ((existing2 || publication?.existing) && !directory2 && !hasZipIdentity(stat)) fail("cannot exclude archive aliases when source backing identity is unknown");
|
|
30062
30118
|
if (directory2 && name2 && !name2.endsWith("/")) name2 += "/";
|
|
30063
30119
|
const dateIncluded = zipDateMatches(new Date(stat.mtimeMs), parsed.fromDate, parsed.beforeDate);
|
|
30064
30120
|
const nameIncluded = (dateIncluded || parsed.entryComments) && await filterName(name2, selection, parsed.includes.length) && (!recursiveSelection || await recursiveSelection.matches(name2, true));
|
|
30065
30121
|
const included = dateIncluded && nameIncluded;
|
|
30066
|
-
if (logStat && included && (!
|
|
30122
|
+
if (logStat && included && (!hasZipIdentity(stat) || sameZipIdentity(logStat, stat))) {
|
|
30067
30123
|
if (log) log.failed = true;
|
|
30068
30124
|
throw new ZipFailure(16, "Invalid command arguments", "ZIP log may not alias a selected source");
|
|
30069
30125
|
}
|
|
@@ -30143,7 +30199,7 @@ async function prepare(scope, parsed, budget, log, host2) {
|
|
|
30143
30199
|
}
|
|
30144
30200
|
}
|
|
30145
30201
|
if (directory2 && !storedName && (parsed.recursive || parsed.recursivePatterns)) {
|
|
30146
|
-
if (ancestors.some((ancestor) => ancestor.path === canonical ||
|
|
30202
|
+
if (ancestors.some((ancestor) => ancestor.path === canonical || sameZipIdentity(ancestor.stat, stat))) fail(`directory cycle while archiving: ${source2}`);
|
|
30147
30203
|
ancestors.push({ path: canonical, stat });
|
|
30148
30204
|
try {
|
|
30149
30205
|
const children = await scope.operation(() => context2.fs.readdir(path, { signal: context2.signal, maxEntries: limits.maxMembers - visits }));
|