@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.
Files changed (91) hide show
  1. package/dist/safe-bash/command-chunks/{chunk-ELX7X5SF.js → chunk-2MPJNOGU.js} +3 -3
  2. package/dist/safe-bash/command-chunks/{chunk-NT6N3KCA.js → chunk-36A7T7VI.js} +1 -1
  3. package/dist/safe-bash/command-chunks/{chunk-W7K4JN2M.js → chunk-3AQJQW6S.js} +1 -1
  4. package/dist/safe-bash/command-chunks/{chunk-T6ZPGCNJ.js → chunk-3DVCCMBJ.js} +2 -1
  5. package/dist/safe-bash/command-chunks/{chunk-XQZ3OG7K.js → chunk-442UWLQR.js} +1 -1
  6. package/dist/safe-bash/command-chunks/{chunk-W6UOCPP2.js → chunk-7THHNO2E.js} +1 -1
  7. package/dist/safe-bash/command-chunks/{chunk-ZMCVEYVX.js → chunk-AXO7RDN5.js} +1 -1
  8. package/dist/safe-bash/command-chunks/{chunk-PLOA5HZJ.js → chunk-BHOK6HA3.js} +4 -4
  9. package/dist/safe-bash/command-chunks/{chunk-TEVDQ3XP.js → chunk-C2JGBXOY.js} +2 -2
  10. package/dist/safe-bash/command-chunks/{chunk-MANR67FK.js → chunk-CD2SMRKD.js} +4 -4
  11. package/dist/safe-bash/command-chunks/{chunk-IFMCWC7A.js → chunk-CXDWDFFU.js} +2 -2
  12. package/dist/safe-bash/command-chunks/{chunk-TETIL2QG.js → chunk-FDJBYW3P.js} +1 -1
  13. package/dist/safe-bash/command-chunks/{chunk-OTTXGYBL.js → chunk-G3O44ZGT.js} +2 -2
  14. package/dist/safe-bash/command-chunks/{chunk-TUX2ZVRV.js → chunk-G5XIFXNF.js} +1 -1
  15. package/dist/safe-bash/command-chunks/{chunk-3PBP2NWM.js → chunk-GEHF4YAY.js} +1 -1
  16. package/dist/safe-bash/command-chunks/{chunk-B7CSA2AN.js → chunk-KEMWQP25.js} +1 -1
  17. package/dist/safe-bash/command-chunks/{chunk-VGKASRY7.js → chunk-KI2XV6GF.js} +1 -1
  18. package/dist/safe-bash/command-chunks/{chunk-T4BURXBK.js → chunk-KL4ODNMV.js} +3 -3
  19. package/dist/safe-bash/command-chunks/{chunk-YRMCH7OE.js → chunk-LCR6YMBL.js} +1 -1
  20. package/dist/safe-bash/command-chunks/{chunk-YUBBOIPH.js → chunk-LP5NRR5O.js} +1 -1
  21. package/dist/safe-bash/command-chunks/{chunk-4SZIRINP.js → chunk-OEPERWLZ.js} +2 -1
  22. package/dist/safe-bash/command-chunks/{chunk-QYSAAJ6K.js → chunk-PUIGJ37F.js} +1 -1
  23. package/dist/safe-bash/command-chunks/{chunk-O4ARSYST.js → chunk-QSD4I3TT.js} +4 -3
  24. package/dist/safe-bash/command-chunks/{chunk-KDVJQQVT.js → chunk-QTKPEWR7.js} +4 -4
  25. package/dist/safe-bash/command-chunks/{chunk-EYRJX6FJ.js → chunk-TICYYKJB.js} +2 -1
  26. package/dist/safe-bash/command-chunks/{chunk-TKBJACLG.js → chunk-VXDCTI33.js} +1 -1
  27. package/dist/safe-bash/command-chunks/{chunk-MAZIL3QC.js → chunk-WQHCF6N6.js} +1 -1
  28. package/dist/safe-bash/command-chunks/{chunk-I7PJVVOO.js → chunk-XFQAGBAV.js} +1 -1
  29. package/dist/safe-bash/command-chunks/{chunk-DYCEVLVC.js → chunk-Y6YHBQIS.js} +1 -1
  30. package/dist/safe-bash/command-chunks/{chunk-OPRPIHKA.js → chunk-ZGBHQQGL.js} +1 -1
  31. package/dist/safe-bash/command-chunks/{chunk-6QG3YR2F.js → chunk-ZPQ5OCKE.js} +1 -1
  32. package/dist/safe-bash/commands/diff-patch/shared.d.ts +1 -0
  33. package/dist/safe-bash/commands/diff-patch/shared.js +2 -1
  34. package/dist/safe-bash/core.browser.js +2 -1
  35. package/dist/safe-bash/opt-in/commands/dd/index.js +2 -1
  36. package/dist/safe-bash/opt-in/commands/shuf/input.js +4 -2
  37. package/dist/safe-bash/opt-in/commands/shuf/shuf.js +4 -3
  38. package/dist/safe-bash-command-dd/index.js +2 -1
  39. package/dist/safe-bash-command-du/budget.js +1 -1
  40. package/dist/safe-bash-command-du/du.js +2 -2
  41. package/dist/safe-bash-command-du/index.js +2 -2
  42. package/dist/safe-bash-command-file/index.js +1 -1
  43. package/dist/safe-bash-command-file/shared.d.ts +1 -0
  44. package/dist/safe-bash-command-file/shared.js +1 -1
  45. package/dist/safe-bash-command-fmt/index.js +2 -1
  46. package/dist/safe-bash-command-html-to-markdown/budget.js +1 -1
  47. package/dist/safe-bash-command-html-to-markdown/entities.js +3 -3
  48. package/dist/safe-bash-command-html-to-markdown/index.js +6 -6
  49. package/dist/safe-bash-command-html-to-markdown/input.js +5 -5
  50. package/dist/safe-bash-command-html-to-markdown/parser.js +4 -4
  51. package/dist/safe-bash-command-html-to-markdown/render.js +5 -5
  52. package/dist/safe-bash-command-html-to-markdown/text.js +2 -2
  53. package/dist/safe-bash-command-iconv/command.js +5 -5
  54. package/dist/safe-bash-command-iconv/index.js +5 -5
  55. package/dist/safe-bash-command-iconv/internal.js +1 -1
  56. package/dist/safe-bash-command-iconv/lifecycle.js +2 -2
  57. package/dist/safe-bash-command-iconv/options.js +2 -2
  58. package/dist/safe-bash-command-iconv/reader.js +2 -2
  59. package/dist/safe-bash-command-numfmt/index.js +5 -3
  60. package/dist/safe-bash-command-pr/command.js +5 -5
  61. package/dist/safe-bash-command-pr/format.js +2 -2
  62. package/dist/safe-bash-command-pr/index.js +5 -5
  63. package/dist/safe-bash-command-pr/internal.d.ts +1 -0
  64. package/dist/safe-bash-command-pr/internal.js +1 -1
  65. package/dist/safe-bash-command-pr/io.js +2 -2
  66. package/dist/safe-bash-command-pr/options.js +2 -2
  67. package/dist/safe-bash-command-shuf/input.js +4 -2
  68. package/dist/safe-bash-command-shuf/shuf.js +4 -3
  69. package/dist/safe-bash-command-split/index.js +3 -3
  70. package/dist/safe-bash-command-split/io.d.ts +1 -0
  71. package/dist/safe-bash-command-split/io.js +1 -1
  72. package/dist/safe-bash-command-split/outputs.js +2 -2
  73. package/dist/safe-bash-command-split/split.js +3 -3
  74. package/dist/safe-bash-command-tree/arguments.js +3 -3
  75. package/dist/safe-bash-command-tree/charset.js +1 -1
  76. package/dist/safe-bash-command-tree/index.js +4 -4
  77. package/dist/safe-bash-command-tree/io.js +1 -1
  78. package/dist/safe-bash-command-tree/pattern.js +2 -2
  79. package/dist/safe-bash-command-tree/tree.js +4 -4
  80. package/dist/safe-bash-command-tsort/command.js +4 -4
  81. package/dist/safe-bash-command-tsort/graph.js +2 -2
  82. package/dist/safe-bash-command-tsort/index.js +4 -4
  83. package/dist/safe-bash-command-tsort/internal.js +1 -1
  84. package/dist/safe-bash-command-tsort/io.js +2 -2
  85. package/dist/safe-bash-io-engine/commands/archive/internal.js +2 -2
  86. package/dist/safe-bash-io-engine/shell/pattern.js +1 -1
  87. package/dist/safe-bash-io-engine/shell/string-operations.d.ts +1 -0
  88. package/dist/safe-bash-io-engine/shell/string-operations.js +1 -1
  89. package/dist/safe-bash-text-stream-engine/stream-format/shared.d.ts +1 -0
  90. package/dist/safe-bash-text-stream-engine/stream-format/shared.js +2 -1
  91. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Budget,
3
3
  Builder
4
- } from "../safe-bash/command-chunks/chunk-YUBBOIPH.js";
4
+ } from "../safe-bash/command-chunks/chunk-LP5NRR5O.js";
5
5
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
6
6
  export {
7
7
  Budget,
@@ -2,9 +2,9 @@ import {
2
2
  destination,
3
3
  entities,
4
4
  escapeText
5
- } from "../safe-bash/command-chunks/chunk-OTTXGYBL.js";
6
- import "../safe-bash/command-chunks/chunk-DYCEVLVC.js";
7
- import "../safe-bash/command-chunks/chunk-YUBBOIPH.js";
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-PLOA5HZJ.js";
3
+ } from "../safe-bash/command-chunks/chunk-BHOK6HA3.js";
4
4
  import {
5
5
  Inputs
6
- } from "../safe-bash/command-chunks/chunk-MAZIL3QC.js";
7
- import "../safe-bash/command-chunks/chunk-OPRPIHKA.js";
8
- import "../safe-bash/command-chunks/chunk-OTTXGYBL.js";
9
- import "../safe-bash/command-chunks/chunk-DYCEVLVC.js";
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-YUBBOIPH.js";
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-MAZIL3QC.js";
4
- import "../safe-bash/command-chunks/chunk-OPRPIHKA.js";
5
- import "../safe-bash/command-chunks/chunk-OTTXGYBL.js";
6
- import "../safe-bash/command-chunks/chunk-DYCEVLVC.js";
7
- import "../safe-bash/command-chunks/chunk-YUBBOIPH.js";
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-OPRPIHKA.js";
5
- import "../safe-bash/command-chunks/chunk-OTTXGYBL.js";
6
- import "../safe-bash/command-chunks/chunk-DYCEVLVC.js";
7
- import "../safe-bash/command-chunks/chunk-YUBBOIPH.js";
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-PLOA5HZJ.js";
4
- import "../safe-bash/command-chunks/chunk-OPRPIHKA.js";
5
- import "../safe-bash/command-chunks/chunk-OTTXGYBL.js";
6
- import "../safe-bash/command-chunks/chunk-DYCEVLVC.js";
7
- import "../safe-bash/command-chunks/chunk-YUBBOIPH.js";
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-DYCEVLVC.js";
6
- import "../safe-bash/command-chunks/chunk-YUBBOIPH.js";
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-KDVJQQVT.js";
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-QYSAAJ6K.js";
6
- import "../safe-bash/command-chunks/chunk-B7CSA2AN.js";
7
- import "../safe-bash/command-chunks/chunk-XQZ3OG7K.js";
8
- import "../safe-bash/command-chunks/chunk-W6UOCPP2.js";
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-KDVJQQVT.js";
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-QYSAAJ6K.js";
6
- import "../safe-bash/command-chunks/chunk-B7CSA2AN.js";
7
- import "../safe-bash/command-chunks/chunk-XQZ3OG7K.js";
8
- import "../safe-bash/command-chunks/chunk-W6UOCPP2.js";
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
@@ -4,7 +4,7 @@ import {
4
4
  pathText,
5
5
  raw,
6
6
  settings
7
- } from "../safe-bash/command-chunks/chunk-W6UOCPP2.js";
7
+ } from "../safe-bash/command-chunks/chunk-7THHNO2E.js";
8
8
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
9
9
  export {
10
10
  Budget,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Lifecycle
3
- } from "../safe-bash/command-chunks/chunk-QYSAAJ6K.js";
4
- import "../safe-bash/command-chunks/chunk-W6UOCPP2.js";
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-B7CSA2AN.js";
4
- import "../safe-bash/command-chunks/chunk-W6UOCPP2.js";
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-XQZ3OG7K.js";
5
- import "../safe-bash/command-chunks/chunk-W6UOCPP2.js";
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-MANR67FK.js";
4
- import "../safe-bash/command-chunks/chunk-6QG3YR2F.js";
5
- import "../safe-bash/command-chunks/chunk-TUX2ZVRV.js";
6
- import "../safe-bash/command-chunks/chunk-ZMCVEYVX.js";
7
- import "../safe-bash/command-chunks/chunk-T6ZPGCNJ.js";
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-6QG3YR2F.js";
4
- import "../safe-bash/command-chunks/chunk-T6ZPGCNJ.js";
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-MANR67FK.js";
3
+ } from "../safe-bash/command-chunks/chunk-CD2SMRKD.js";
4
4
  import {
5
5
  Formatter
6
- } from "../safe-bash/command-chunks/chunk-6QG3YR2F.js";
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-TUX2ZVRV.js";
10
+ } from "../safe-bash/command-chunks/chunk-G5XIFXNF.js";
11
11
  import {
12
12
  parseOptions
13
- } from "../safe-bash/command-chunks/chunk-ZMCVEYVX.js";
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-T6ZPGCNJ.js";
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";
@@ -40,6 +40,7 @@ export declare class Budget {
40
40
  readonly signal: AbortSignal;
41
41
  private work;
42
42
  private checkpoint;
43
+ private yieldChecks;
43
44
  private lastYield;
44
45
  private retained;
45
46
  private input;
@@ -8,7 +8,7 @@ import {
8
8
  quote,
9
9
  raw,
10
10
  settings
11
- } from "../safe-bash/command-chunks/chunk-T6ZPGCNJ.js";
11
+ } from "../safe-bash/command-chunks/chunk-3DVCCMBJ.js";
12
12
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
13
13
  export {
14
14
  Budget,
@@ -2,8 +2,8 @@ import {
2
2
  Lifecycle,
3
3
  Reader,
4
4
  fsDetail
5
- } from "../safe-bash/command-chunks/chunk-TUX2ZVRV.js";
6
- import "../safe-bash/command-chunks/chunk-T6ZPGCNJ.js";
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-ZMCVEYVX.js";
4
- import "../safe-bash/command-chunks/chunk-T6ZPGCNJ.js";
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-IFMCWC7A.js";
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-TKBJACLG.js";
10
- import "../safe-bash/command-chunks/chunk-4SZIRINP.js";
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";
@@ -8,6 +8,7 @@ export declare class Budget {
8
8
  private outputBytes;
9
9
  private steps;
10
10
  private untilYield;
11
+ private yieldChecks;
11
12
  private lastYield;
12
13
  constructor(limits: SplitLimits, signal: AbortSignal);
13
14
  check(value: number, maximum: number, label: string): void;
@@ -2,7 +2,7 @@ import {
2
2
  Budget,
3
3
  Cursor,
4
4
  interruptible
5
- } from "../safe-bash/command-chunks/chunk-4SZIRINP.js";
5
+ } from "../safe-bash/command-chunks/chunk-OEPERWLZ.js";
6
6
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
7
7
  export {
8
8
  Budget,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Outputs
3
- } from "../safe-bash/command-chunks/chunk-TKBJACLG.js";
4
- import "../safe-bash/command-chunks/chunk-4SZIRINP.js";
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-IFMCWC7A.js";
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-TKBJACLG.js";
8
- import "../safe-bash/command-chunks/chunk-4SZIRINP.js";
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-TEVDQ3XP.js";
5
- import "../safe-bash/command-chunks/chunk-I7PJVVOO.js";
6
- import "../safe-bash/command-chunks/chunk-VGKASRY7.js";
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,7 +1,7 @@
1
1
  import {
2
2
  environmentCharset,
3
3
  explicitCharset
4
- } from "../safe-bash/command-chunks/chunk-VGKASRY7.js";
4
+ } from "../safe-bash/command-chunks/chunk-KI2XV6GF.js";
5
5
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
6
6
  export {
7
7
  environmentCharset,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createTreeCommand
3
- } from "../safe-bash/command-chunks/chunk-ELX7X5SF.js";
4
- import "../safe-bash/command-chunks/chunk-TEVDQ3XP.js";
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-I7PJVVOO.js";
7
- import "../safe-bash/command-chunks/chunk-VGKASRY7.js";
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";
@@ -5,7 +5,7 @@ import {
5
5
  escaped,
6
6
  escapedName,
7
7
  message
8
- } from "../safe-bash/command-chunks/chunk-VGKASRY7.js";
8
+ } from "../safe-bash/command-chunks/chunk-KI2XV6GF.js";
9
9
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
10
10
  export {
11
11
  TreeLimitError,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  compile,
3
3
  matches
4
- } from "../safe-bash/command-chunks/chunk-I7PJVVOO.js";
5
- import "../safe-bash/command-chunks/chunk-VGKASRY7.js";
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-ELX7X5SF.js";
4
- import "../safe-bash/command-chunks/chunk-TEVDQ3XP.js";
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-I7PJVVOO.js";
7
- import "../safe-bash/command-chunks/chunk-VGKASRY7.js";
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-T4BURXBK.js";
4
- import "../safe-bash/command-chunks/chunk-3PBP2NWM.js";
5
- import "../safe-bash/command-chunks/chunk-NT6N3KCA.js";
6
- import "../safe-bash/command-chunks/chunk-W7K4JN2M.js";
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-3PBP2NWM.js";
4
- import "../safe-bash/command-chunks/chunk-W7K4JN2M.js";
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-T4BURXBK.js";
4
- import "../safe-bash/command-chunks/chunk-3PBP2NWM.js";
5
- import "../safe-bash/command-chunks/chunk-NT6N3KCA.js";
6
- import "../safe-bash/command-chunks/chunk-W7K4JN2M.js";
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";
@@ -7,7 +7,7 @@ import {
7
7
  quote,
8
8
  raw,
9
9
  settings
10
- } from "../safe-bash/command-chunks/chunk-W7K4JN2M.js";
10
+ } from "../safe-bash/command-chunks/chunk-3AQJQW6S.js";
11
11
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
12
12
  export {
13
13
  Budget,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Lifecycle,
3
3
  Reader
4
- } from "../safe-bash/command-chunks/chunk-NT6N3KCA.js";
5
- import "../safe-bash/command-chunks/chunk-W7K4JN2M.js";
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
  }