@poe-platform/safe-bash 0.1.779 → 0.1.780
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/command-chunks/{chunk-ELX7X5SF.js → chunk-2MPJNOGU.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-NT6N3KCA.js → chunk-36A7T7VI.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-W7K4JN2M.js → chunk-3AQJQW6S.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-T6ZPGCNJ.js → chunk-3DVCCMBJ.js} +2 -1
- package/dist/safe-bash/command-chunks/{chunk-XQZ3OG7K.js → chunk-442UWLQR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-W6UOCPP2.js → chunk-7THHNO2E.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZMCVEYVX.js → chunk-AXO7RDN5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-PLOA5HZJ.js → chunk-BHOK6HA3.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-TEVDQ3XP.js → chunk-C2JGBXOY.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-MANR67FK.js → chunk-CD2SMRKD.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-IFMCWC7A.js → chunk-CXDWDFFU.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-TETIL2QG.js → chunk-FDJBYW3P.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-OTTXGYBL.js → chunk-G3O44ZGT.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-TUX2ZVRV.js → chunk-G5XIFXNF.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3PBP2NWM.js → chunk-GEHF4YAY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-B7CSA2AN.js → chunk-KEMWQP25.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-VGKASRY7.js → chunk-KI2XV6GF.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-T4BURXBK.js → chunk-KL4ODNMV.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-YRMCH7OE.js → chunk-LCR6YMBL.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-YUBBOIPH.js → chunk-LP5NRR5O.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4SZIRINP.js → chunk-OEPERWLZ.js} +2 -1
- package/dist/safe-bash/command-chunks/{chunk-QYSAAJ6K.js → chunk-PUIGJ37F.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-O4ARSYST.js → chunk-QSD4I3TT.js} +4 -3
- package/dist/safe-bash/command-chunks/{chunk-KDVJQQVT.js → chunk-QTKPEWR7.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-EYRJX6FJ.js → chunk-TICYYKJB.js} +2 -1
- package/dist/safe-bash/command-chunks/{chunk-TKBJACLG.js → chunk-VXDCTI33.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-MAZIL3QC.js → chunk-WQHCF6N6.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-I7PJVVOO.js → chunk-XFQAGBAV.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DYCEVLVC.js → chunk-Y6YHBQIS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-OPRPIHKA.js → chunk-ZGBHQQGL.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-6QG3YR2F.js → chunk-ZPQ5OCKE.js} +1 -1
- package/dist/safe-bash/commands/diff-patch/shared.d.ts +1 -0
- package/dist/safe-bash/commands/diff-patch/shared.js +2 -1
- package/dist/safe-bash/core.browser.js +2 -1
- package/dist/safe-bash/opt-in/commands/dd/index.js +2 -1
- package/dist/safe-bash/opt-in/commands/shuf/input.js +4 -2
- package/dist/safe-bash/opt-in/commands/shuf/shuf.js +4 -3
- package/dist/safe-bash-command-dd/index.js +2 -1
- package/dist/safe-bash-command-du/budget.js +1 -1
- package/dist/safe-bash-command-du/du.js +2 -2
- package/dist/safe-bash-command-du/index.js +2 -2
- package/dist/safe-bash-command-file/index.js +1 -1
- package/dist/safe-bash-command-file/shared.d.ts +1 -0
- package/dist/safe-bash-command-file/shared.js +1 -1
- package/dist/safe-bash-command-fmt/index.js +2 -1
- package/dist/safe-bash-command-html-to-markdown/budget.js +1 -1
- package/dist/safe-bash-command-html-to-markdown/entities.js +3 -3
- package/dist/safe-bash-command-html-to-markdown/index.js +6 -6
- package/dist/safe-bash-command-html-to-markdown/input.js +5 -5
- package/dist/safe-bash-command-html-to-markdown/parser.js +4 -4
- package/dist/safe-bash-command-html-to-markdown/render.js +5 -5
- package/dist/safe-bash-command-html-to-markdown/text.js +2 -2
- package/dist/safe-bash-command-iconv/command.js +5 -5
- package/dist/safe-bash-command-iconv/index.js +5 -5
- package/dist/safe-bash-command-iconv/internal.js +1 -1
- package/dist/safe-bash-command-iconv/lifecycle.js +2 -2
- package/dist/safe-bash-command-iconv/options.js +2 -2
- package/dist/safe-bash-command-iconv/reader.js +2 -2
- package/dist/safe-bash-command-numfmt/index.js +5 -3
- package/dist/safe-bash-command-pr/command.js +5 -5
- package/dist/safe-bash-command-pr/format.js +2 -2
- package/dist/safe-bash-command-pr/index.js +5 -5
- package/dist/safe-bash-command-pr/internal.d.ts +1 -0
- package/dist/safe-bash-command-pr/internal.js +1 -1
- package/dist/safe-bash-command-pr/io.js +2 -2
- package/dist/safe-bash-command-pr/options.js +2 -2
- package/dist/safe-bash-command-shuf/input.js +4 -2
- package/dist/safe-bash-command-shuf/shuf.js +4 -3
- package/dist/safe-bash-command-split/index.js +3 -3
- package/dist/safe-bash-command-split/io.d.ts +1 -0
- package/dist/safe-bash-command-split/io.js +1 -1
- package/dist/safe-bash-command-split/outputs.js +2 -2
- package/dist/safe-bash-command-split/split.js +3 -3
- package/dist/safe-bash-command-tree/arguments.js +3 -3
- package/dist/safe-bash-command-tree/charset.js +1 -1
- package/dist/safe-bash-command-tree/index.js +4 -4
- package/dist/safe-bash-command-tree/io.js +1 -1
- package/dist/safe-bash-command-tree/pattern.js +2 -2
- package/dist/safe-bash-command-tree/tree.js +4 -4
- package/dist/safe-bash-command-tsort/command.js +4 -4
- package/dist/safe-bash-command-tsort/graph.js +2 -2
- package/dist/safe-bash-command-tsort/index.js +4 -4
- package/dist/safe-bash-command-tsort/internal.js +1 -1
- package/dist/safe-bash-command-tsort/io.js +2 -2
- package/dist/safe-bash-io-engine/commands/archive/internal.js +2 -2
- package/dist/safe-bash-io-engine/shell/pattern.js +1 -1
- package/dist/safe-bash-io-engine/shell/string-operations.d.ts +1 -0
- package/dist/safe-bash-io-engine/shell/string-operations.js +1 -1
- package/dist/safe-bash-text-stream-engine/stream-format/shared.d.ts +1 -0
- package/dist/safe-bash-text-stream-engine/stream-format/shared.js +2 -1
- package/package.json +2 -2
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
destination,
|
|
3
3
|
entities,
|
|
4
4
|
escapeText
|
|
5
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
+
} from "../safe-bash/command-chunks/chunk-G3O44ZGT.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-Y6YHBQIS.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-LP5NRR5O.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
9
9
|
export {
|
|
10
10
|
destination,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Renderer
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-BHOK6HA3.js";
|
|
4
4
|
import {
|
|
5
5
|
Inputs
|
|
6
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
+
} from "../safe-bash/command-chunks/chunk-WQHCF6N6.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-ZGBHQQGL.js";
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-G3O44ZGT.js";
|
|
9
|
+
import "../safe-bash/command-chunks/chunk-Y6YHBQIS.js";
|
|
10
10
|
import {
|
|
11
11
|
Budget
|
|
12
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
12
|
+
} from "../safe-bash/command-chunks/chunk-LP5NRR5O.js";
|
|
13
13
|
import {
|
|
14
14
|
HtmlUsageError,
|
|
15
15
|
argumentsFor,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Inputs
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-WQHCF6N6.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-ZGBHQQGL.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-G3O44ZGT.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-Y6YHBQIS.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-LP5NRR5O.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
9
9
|
export {
|
|
10
10
|
Inputs
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Parser,
|
|
3
3
|
blockTags
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-ZGBHQQGL.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-G3O44ZGT.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-Y6YHBQIS.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-LP5NRR5O.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
9
9
|
export {
|
|
10
10
|
Parser,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Renderer
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-BHOK6HA3.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-ZGBHQQGL.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-G3O44ZGT.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-Y6YHBQIS.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-LP5NRR5O.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
9
9
|
export {
|
|
10
10
|
Renderer
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
htmlSpace,
|
|
3
3
|
normalizeText,
|
|
4
4
|
trimText
|
|
5
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
+
} from "../safe-bash/command-chunks/chunk-Y6YHBQIS.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-LP5NRR5O.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
8
8
|
export {
|
|
9
9
|
htmlSpace,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createIconvCommand
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-QTKPEWR7.js";
|
|
4
4
|
import "../safe-bash/command-chunks/chunk-Z6V4XEAW.js";
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-PUIGJ37F.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-KEMWQP25.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-442UWLQR.js";
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-7THHNO2E.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-VGAAT55W.js";
|
|
10
10
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
11
11
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createIconvCommand
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-QTKPEWR7.js";
|
|
4
4
|
import "../safe-bash/command-chunks/chunk-Z6V4XEAW.js";
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-PUIGJ37F.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-KEMWQP25.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-442UWLQR.js";
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-7THHNO2E.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-VGAAT55W.js";
|
|
10
10
|
import {
|
|
11
11
|
init_buffer
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Lifecycle
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-PUIGJ37F.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-7THHNO2E.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
6
6
|
export {
|
|
7
7
|
Lifecycle
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parse
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-KEMWQP25.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-7THHNO2E.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
6
6
|
export {
|
|
7
7
|
parse
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Reader,
|
|
3
3
|
fsDetail
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-442UWLQR.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-7THHNO2E.js";
|
|
6
6
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
7
7
|
export {
|
|
8
8
|
Reader,
|
|
@@ -2040,6 +2040,7 @@ var Converter = class {
|
|
|
2040
2040
|
autoPadding = false;
|
|
2041
2041
|
work = 0;
|
|
2042
2042
|
tickCount = 0;
|
|
2043
|
+
lastYieldWork = 0;
|
|
2043
2044
|
lastYield = monotonicNow();
|
|
2044
2045
|
signalAborted;
|
|
2045
2046
|
pollSignal;
|
|
@@ -2059,7 +2060,7 @@ var Converter = class {
|
|
|
2059
2060
|
canTickSync(maxTicks) {
|
|
2060
2061
|
if (this.pollSignal ? this.context.signal.aborted : this.signalAborted)
|
|
2061
2062
|
return false;
|
|
2062
|
-
if (this.work + maxTicks > this.limits.maxWork)
|
|
2063
|
+
if (this.work + maxTicks > this.limits.maxWork || this.work + maxTicks - this.lastYieldWork >= 16384)
|
|
2063
2064
|
return false;
|
|
2064
2065
|
if (this.work % 1024 + maxTicks < 1024)
|
|
2065
2066
|
return true;
|
|
@@ -2072,8 +2073,9 @@ var Converter = class {
|
|
|
2072
2073
|
if (this.work % 1024 < amount) {
|
|
2073
2074
|
const count = ++this.tickCount;
|
|
2074
2075
|
const now = monotonicNow();
|
|
2075
|
-
if (count === 1 || now - this.lastYield >= 16 || hasYieldCheckpoint(this.context.signal)) {
|
|
2076
|
+
if (count === 1 || this.work - this.lastYieldWork >= 16384 || now - this.lastYield >= 16 || hasYieldCheckpoint(this.context.signal)) {
|
|
2076
2077
|
this.lastYield = now;
|
|
2078
|
+
this.lastYieldWork = this.work;
|
|
2077
2079
|
return yieldTurn(this.context.signal).then(() => {
|
|
2078
2080
|
this.lastYield = monotonicNow();
|
|
2079
2081
|
});
|
|
@@ -2416,7 +2418,7 @@ var Converter = class {
|
|
|
2416
2418
|
}
|
|
2417
2419
|
trySimpleLineSync(line, newline) {
|
|
2418
2420
|
const settings2 = this.settings;
|
|
2419
|
-
if (settings2.developer || settings2.suffix || settings2.padding > 128n || settings2.zeroPadding > 0n || settings2.grouping || settings2.format !== void 0 || settings2.from !== "none" || settings2.fromUnit !== 1n || settings2.toUnit !== 1n || settings2.to !== "iec" && settings2.to !== "iec-i" && settings2.to !== "si" && settings2.to !== "none" || line.indexOf("\0") >= 0 || !this.canTickSync(line.length * 2 + 16)) {
|
|
2421
|
+
if (settings2.developer || settings2.suffix || settings2.padding > 128n || settings2.zeroPadding > 0n || settings2.grouping || settings2.format !== void 0 || settings2.from !== "none" || settings2.fromUnit !== 1n || settings2.toUnit !== 1n || settings2.to !== "iec" && settings2.to !== "iec-i" && settings2.to !== "si" && settings2.to !== "none" || line.indexOf("\0") >= 0 || !this.canTickSync((line.length * 2 + 16) * ((settings2.fields?.length ?? 0) + 1))) {
|
|
2420
2422
|
return false;
|
|
2421
2423
|
}
|
|
2422
2424
|
const savedWork = this.work;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPrCommand
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-CD2SMRKD.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-ZPQ5OCKE.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-G5XIFXNF.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-AXO7RDN5.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-3DVCCMBJ.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
9
9
|
export {
|
|
10
10
|
createPrCommand
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Formatter
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-ZPQ5OCKE.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-3DVCCMBJ.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
6
6
|
export {
|
|
7
7
|
Formatter
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createPrCommand
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-CD2SMRKD.js";
|
|
4
4
|
import {
|
|
5
5
|
Formatter
|
|
6
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
6
|
+
} from "../safe-bash/command-chunks/chunk-ZPQ5OCKE.js";
|
|
7
7
|
import {
|
|
8
8
|
Lifecycle,
|
|
9
9
|
Reader
|
|
10
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
10
|
+
} from "../safe-bash/command-chunks/chunk-G5XIFXNF.js";
|
|
11
11
|
import {
|
|
12
12
|
parseOptions
|
|
13
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
13
|
+
} from "../safe-bash/command-chunks/chunk-AXO7RDN5.js";
|
|
14
14
|
import {
|
|
15
15
|
Budget,
|
|
16
16
|
settings
|
|
17
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
17
|
+
} from "../safe-bash/command-chunks/chunk-3DVCCMBJ.js";
|
|
18
18
|
import {
|
|
19
19
|
init_buffer
|
|
20
20
|
} from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
Lifecycle,
|
|
3
3
|
Reader,
|
|
4
4
|
fsDetail
|
|
5
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
+
} from "../safe-bash/command-chunks/chunk-G5XIFXNF.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-3DVCCMBJ.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
8
8
|
export {
|
|
9
9
|
Lifecycle,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOptions
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-AXO7RDN5.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-3DVCCMBJ.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
6
6
|
export {
|
|
7
7
|
parseOptions
|
|
@@ -58,6 +58,7 @@ export async function* records(source, delimiter, limit, signal) {
|
|
|
58
58
|
let used = 0;
|
|
59
59
|
let scanned = 0;
|
|
60
60
|
let lastYield = monotonicNow();
|
|
61
|
+
let yieldChecks = 0;
|
|
61
62
|
for await (const rawChunk of source) {
|
|
62
63
|
const chunk = Uint8Array.prototype.slice.call(rawChunk);
|
|
63
64
|
let start = 0;
|
|
@@ -88,7 +89,7 @@ export async function* records(source, delimiter, limit, signal) {
|
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
if (++scanned % 8192 === 0) {
|
|
91
|
-
if (hasYieldCheckpoint(signal) || monotonicNow() - lastYield >= 25) {
|
|
92
|
+
if (++yieldChecks % 16 === 0 || hasYieldCheckpoint(signal) || monotonicNow() - lastYield >= 25) {
|
|
92
93
|
await yieldTurn(signal);
|
|
93
94
|
lastYield = monotonicNow();
|
|
94
95
|
}
|
|
@@ -114,6 +115,7 @@ export async function readAllRecords(source, delimiter, maxBytes, maxRecords, si
|
|
|
114
115
|
let scanned = 0;
|
|
115
116
|
let totalBytes = 0;
|
|
116
117
|
let lastYield = monotonicNow();
|
|
118
|
+
let yieldChecks = 0;
|
|
117
119
|
for await (const rawChunk of source) {
|
|
118
120
|
const chunk = Uint8Array.prototype.slice.call(rawChunk);
|
|
119
121
|
let start = 0;
|
|
@@ -154,7 +156,7 @@ export async function readAllRecords(source, delimiter, maxBytes, maxRecords, si
|
|
|
154
156
|
}
|
|
155
157
|
if (++scanned % 8192 === 0) {
|
|
156
158
|
const now = monotonicNow();
|
|
157
|
-
if (hasYieldCheckpoint(signal) || now - lastYield >= 16) {
|
|
159
|
+
if (++yieldChecks % 16 === 0 || hasYieldCheckpoint(signal) || now - lastYield >= 16) {
|
|
158
160
|
await yieldTurn(signal);
|
|
159
161
|
lastYield = monotonicNow();
|
|
160
162
|
}
|
|
@@ -22,6 +22,7 @@ export function createShufCommand(options = {}) {
|
|
|
22
22
|
description: "Write a random permutation of input records",
|
|
23
23
|
async execute(context) {
|
|
24
24
|
let lastYield = monotonicNow();
|
|
25
|
+
let yieldChecks = 0;
|
|
25
26
|
let random;
|
|
26
27
|
let output;
|
|
27
28
|
let source;
|
|
@@ -155,7 +156,7 @@ export function createShufCommand(options = {}) {
|
|
|
155
156
|
}
|
|
156
157
|
seen++;
|
|
157
158
|
if (seen % 1024n === 0n) {
|
|
158
|
-
if (hasYieldCheckpoint(context.signal) || monotonicNow() - lastYield >= 25) {
|
|
159
|
+
if (++yieldChecks % 16 === 0 || hasYieldCheckpoint(context.signal) || monotonicNow() - lastYield >= 25) {
|
|
159
160
|
await yieldTurn(context.signal);
|
|
160
161
|
lastYield = monotonicNow();
|
|
161
162
|
}
|
|
@@ -187,7 +188,7 @@ export function createShufCommand(options = {}) {
|
|
|
187
188
|
swaps.set(chosen, swaps.get(index) ?? index);
|
|
188
189
|
swaps.delete(index);
|
|
189
190
|
if (index % 1024n === 1023n) {
|
|
190
|
-
if (hasYieldCheckpoint(context.signal) || monotonicNow() - lastYield >= 25) {
|
|
191
|
+
if (++yieldChecks % 16 === 0 || hasYieldCheckpoint(context.signal) || monotonicNow() - lastYield >= 25) {
|
|
191
192
|
await yieldTurn(context.signal);
|
|
192
193
|
lastYield = monotonicNow();
|
|
193
194
|
}
|
|
@@ -227,7 +228,7 @@ export function createShufCommand(options = {}) {
|
|
|
227
228
|
diagnostic = "write error";
|
|
228
229
|
await sink.write(line);
|
|
229
230
|
if (index % 256n === 255n) {
|
|
230
|
-
if (hasYieldCheckpoint(context.signal) || monotonicNow() - lastYield >= 25) {
|
|
231
|
+
if (++yieldChecks % 16 === 0 || hasYieldCheckpoint(context.signal) || monotonicNow() - lastYield >= 25) {
|
|
231
232
|
await yieldTurn(context.signal);
|
|
232
233
|
lastYield = monotonicNow();
|
|
233
234
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSplitCommand,
|
|
3
3
|
evalSyncSplit
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-CXDWDFFU.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-BIERORHV.js";
|
|
6
6
|
import {
|
|
7
7
|
settings
|
|
8
8
|
} from "../safe-bash/command-chunks/chunk-N3PU3KH4.js";
|
|
9
|
-
import "../safe-bash/command-chunks/chunk-
|
|
10
|
-
import "../safe-bash/command-chunks/chunk-
|
|
9
|
+
import "../safe-bash/command-chunks/chunk-VXDCTI33.js";
|
|
10
|
+
import "../safe-bash/command-chunks/chunk-OEPERWLZ.js";
|
|
11
11
|
import {
|
|
12
12
|
init_buffer
|
|
13
13
|
} from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Outputs
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-VXDCTI33.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-OEPERWLZ.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
6
6
|
export {
|
|
7
7
|
Outputs
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSplitCommand,
|
|
3
3
|
evalSyncSplit
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-CXDWDFFU.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-BIERORHV.js";
|
|
6
6
|
import "../safe-bash/command-chunks/chunk-N3PU3KH4.js";
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
8
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-VXDCTI33.js";
|
|
8
|
+
import "../safe-bash/command-chunks/chunk-OEPERWLZ.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
10
10
|
export {
|
|
11
11
|
createSplitCommand,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
help,
|
|
3
3
|
parse
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-C2JGBXOY.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-XFQAGBAV.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-KI2XV6GF.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
8
8
|
export {
|
|
9
9
|
help,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTreeCommand
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-2MPJNOGU.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-C2JGBXOY.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-36YVRHRG.js";
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-XFQAGBAV.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-KI2XV6GF.js";
|
|
8
8
|
import {
|
|
9
9
|
compareVersions
|
|
10
10
|
} from "../safe-bash/command-chunks/chunk-YG2AMA7I.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compile,
|
|
3
3
|
matches
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-XFQAGBAV.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-KI2XV6GF.js";
|
|
6
6
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
7
7
|
export {
|
|
8
8
|
compile,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTreeCommand
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-2MPJNOGU.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-C2JGBXOY.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-36YVRHRG.js";
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
7
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-XFQAGBAV.js";
|
|
7
|
+
import "../safe-bash/command-chunks/chunk-KI2XV6GF.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-YG2AMA7I.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
10
10
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTsortCommand
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-KL4ODNMV.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-GEHF4YAY.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-36A7T7VI.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-3AQJQW6S.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
8
8
|
export {
|
|
9
9
|
createTsortCommand
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sort
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-GEHF4YAY.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-3AQJQW6S.js";
|
|
5
5
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
6
6
|
export {
|
|
7
7
|
sort
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTsortCommand
|
|
3
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
4
|
-
import "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
6
|
-
import "../safe-bash/command-chunks/chunk-
|
|
3
|
+
} from "../safe-bash/command-chunks/chunk-KL4ODNMV.js";
|
|
4
|
+
import "../safe-bash/command-chunks/chunk-GEHF4YAY.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-36A7T7VI.js";
|
|
6
|
+
import "../safe-bash/command-chunks/chunk-3AQJQW6S.js";
|
|
7
7
|
import {
|
|
8
8
|
init_buffer
|
|
9
9
|
} from "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Lifecycle,
|
|
3
3
|
Reader
|
|
4
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
5
|
-
import "../safe-bash/command-chunks/chunk-
|
|
4
|
+
} from "../safe-bash/command-chunks/chunk-36A7T7VI.js";
|
|
5
|
+
import "../safe-bash/command-chunks/chunk-3AQJQW6S.js";
|
|
6
6
|
import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
|
|
7
7
|
export {
|
|
8
8
|
Lifecycle,
|
|
@@ -171,7 +171,7 @@ var Budget = class {
|
|
|
171
171
|
if (size > this.limits.maxTotalBytes - this.totalBytes)
|
|
172
172
|
fail("total payload byte limit exceeded");
|
|
173
173
|
this.totalBytes += size;
|
|
174
|
-
if (this.members % 128 === 0 && (this.members === 128 || hasYieldCheckpoint(this.context.signal) || monotonicNow() - this.lastYield >= 16)) {
|
|
174
|
+
if (this.members % 128 === 0 && (this.members === 128 || this.members % 2048 === 0 || hasYieldCheckpoint(this.context.signal) || monotonicNow() - this.lastYield >= 16)) {
|
|
175
175
|
await yieldTurn(this.context.signal);
|
|
176
176
|
this.lastYield = monotonicNow();
|
|
177
177
|
}
|
|
@@ -201,7 +201,7 @@ async function* bounded(source, maximum, signal, chunkSize) {
|
|
|
201
201
|
yield chunk.subarray(offset, Math.min(chunk.length, offset + chunkSize));
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
if (++turns % 128 === 0 && (turns === 128 || hasYieldCheckpoint(signal) || monotonicNow() - lastYield >= 16)) {
|
|
204
|
+
if (++turns % 128 === 0 && (turns === 128 || turns % 2048 === 0 || hasYieldCheckpoint(signal) || monotonicNow() - lastYield >= 16)) {
|
|
205
205
|
await yieldTurn(signal);
|
|
206
206
|
lastYield = monotonicNow();
|
|
207
207
|
}
|