@poe-platform/safe-bash 0.1.779 → 0.1.781

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 (112) hide show
  1. package/dist/image-ast/index.browser.js +200 -165
  2. package/dist/image-ast/index.js +200 -165
  3. package/dist/pdf-ast/index.js +200 -165
  4. package/dist/safe-bash/command-chunks/{chunk-ELX7X5SF.js → chunk-2MPJNOGU.js} +3 -3
  5. package/dist/safe-bash/command-chunks/{chunk-NT6N3KCA.js → chunk-36A7T7VI.js} +1 -1
  6. package/dist/safe-bash/command-chunks/{chunk-W7K4JN2M.js → chunk-3AQJQW6S.js} +1 -1
  7. package/dist/safe-bash/command-chunks/{chunk-T6ZPGCNJ.js → chunk-3DVCCMBJ.js} +2 -1
  8. package/dist/safe-bash/command-chunks/{chunk-XQZ3OG7K.js → chunk-442UWLQR.js} +1 -1
  9. package/dist/safe-bash/command-chunks/{chunk-W6UOCPP2.js → chunk-7THHNO2E.js} +1 -1
  10. package/dist/safe-bash/command-chunks/{chunk-ZY6PMCW5.js → chunk-ADBFNLLK.js} +2 -2
  11. package/dist/safe-bash/command-chunks/{chunk-ZMCVEYVX.js → chunk-AXO7RDN5.js} +1 -1
  12. package/dist/safe-bash/command-chunks/{chunk-PLOA5HZJ.js → chunk-BHOK6HA3.js} +4 -4
  13. package/dist/safe-bash/command-chunks/{chunk-TEVDQ3XP.js → chunk-C2JGBXOY.js} +2 -2
  14. package/dist/safe-bash/command-chunks/{chunk-MANR67FK.js → chunk-CD2SMRKD.js} +4 -4
  15. package/dist/safe-bash/command-chunks/{chunk-IFMCWC7A.js → chunk-CXDWDFFU.js} +2 -2
  16. package/dist/safe-bash/command-chunks/{chunk-TETIL2QG.js → chunk-FDJBYW3P.js} +1 -1
  17. package/dist/safe-bash/command-chunks/{chunk-OTTXGYBL.js → chunk-G3O44ZGT.js} +2 -2
  18. package/dist/safe-bash/command-chunks/{chunk-TUX2ZVRV.js → chunk-G5XIFXNF.js} +1 -1
  19. package/dist/safe-bash/command-chunks/{chunk-QLYJUVVM.js → chunk-GBHSE6ZO.js} +1 -1
  20. package/dist/safe-bash/command-chunks/{chunk-3PBP2NWM.js → chunk-GEHF4YAY.js} +1 -1
  21. package/dist/safe-bash/command-chunks/{chunk-3444RZLY.js → chunk-GZXLPWT5.js} +200 -165
  22. package/dist/safe-bash/command-chunks/{chunk-B7CSA2AN.js → chunk-KEMWQP25.js} +1 -1
  23. package/dist/safe-bash/command-chunks/{chunk-VGKASRY7.js → chunk-KI2XV6GF.js} +1 -1
  24. package/dist/safe-bash/command-chunks/{chunk-T4BURXBK.js → chunk-KL4ODNMV.js} +3 -3
  25. package/dist/safe-bash/command-chunks/{chunk-YRMCH7OE.js → chunk-LCR6YMBL.js} +1 -1
  26. package/dist/safe-bash/command-chunks/{chunk-YUBBOIPH.js → chunk-LP5NRR5O.js} +1 -1
  27. package/dist/safe-bash/command-chunks/{chunk-4SZIRINP.js → chunk-OEPERWLZ.js} +2 -1
  28. package/dist/safe-bash/command-chunks/{chunk-QYSAAJ6K.js → chunk-PUIGJ37F.js} +1 -1
  29. package/dist/safe-bash/command-chunks/{chunk-O4ARSYST.js → chunk-QSD4I3TT.js} +4 -3
  30. package/dist/safe-bash/command-chunks/{chunk-KDVJQQVT.js → chunk-QTKPEWR7.js} +4 -4
  31. package/dist/safe-bash/command-chunks/{chunk-EYRJX6FJ.js → chunk-TICYYKJB.js} +2 -1
  32. package/dist/safe-bash/command-chunks/{chunk-TKBJACLG.js → chunk-VXDCTI33.js} +1 -1
  33. package/dist/safe-bash/command-chunks/{chunk-MAZIL3QC.js → chunk-WQHCF6N6.js} +1 -1
  34. package/dist/safe-bash/command-chunks/{chunk-I7PJVVOO.js → chunk-XFQAGBAV.js} +1 -1
  35. package/dist/safe-bash/command-chunks/{chunk-DYCEVLVC.js → chunk-Y6YHBQIS.js} +1 -1
  36. package/dist/safe-bash/command-chunks/{chunk-OPRPIHKA.js → chunk-ZGBHQQGL.js} +1 -1
  37. package/dist/safe-bash/command-chunks/{chunk-6QG3YR2F.js → chunk-ZPQ5OCKE.js} +1 -1
  38. package/dist/safe-bash/commands/diff-patch/shared.d.ts +1 -0
  39. package/dist/safe-bash/commands/diff-patch/shared.js +2 -1
  40. package/dist/safe-bash/core.browser.js +2 -1
  41. package/dist/safe-bash/opt-in/commands/dd/index.js +2 -1
  42. package/dist/safe-bash/opt-in/commands/shuf/input.js +4 -2
  43. package/dist/safe-bash/opt-in/commands/shuf/shuf.js +4 -3
  44. package/dist/safe-bash-command-dd/index.js +2 -1
  45. package/dist/safe-bash-command-du/budget.js +1 -1
  46. package/dist/safe-bash-command-du/du.js +2 -2
  47. package/dist/safe-bash-command-du/index.js +2 -2
  48. package/dist/safe-bash-command-ffmpeg/index.js +5745 -5715
  49. package/dist/safe-bash-command-file/index.js +1 -1
  50. package/dist/safe-bash-command-file/shared.d.ts +1 -0
  51. package/dist/safe-bash-command-file/shared.js +1 -1
  52. package/dist/safe-bash-command-fmt/index.js +2 -1
  53. package/dist/safe-bash-command-html-to-markdown/budget.js +1 -1
  54. package/dist/safe-bash-command-html-to-markdown/entities.js +3 -3
  55. package/dist/safe-bash-command-html-to-markdown/index.js +6 -6
  56. package/dist/safe-bash-command-html-to-markdown/input.js +5 -5
  57. package/dist/safe-bash-command-html-to-markdown/parser.js +4 -4
  58. package/dist/safe-bash-command-html-to-markdown/render.js +5 -5
  59. package/dist/safe-bash-command-html-to-markdown/text.js +2 -2
  60. package/dist/safe-bash-command-iconv/command.js +5 -5
  61. package/dist/safe-bash-command-iconv/index.js +5 -5
  62. package/dist/safe-bash-command-iconv/internal.js +1 -1
  63. package/dist/safe-bash-command-iconv/lifecycle.js +2 -2
  64. package/dist/safe-bash-command-iconv/options.js +2 -2
  65. package/dist/safe-bash-command-iconv/reader.js +2 -2
  66. package/dist/safe-bash-command-imagemagick/index.js +2 -2
  67. package/dist/safe-bash-command-numfmt/index.js +5 -3
  68. package/dist/safe-bash-command-pandoc/command.js +3 -3
  69. package/dist/safe-bash-command-pandoc/index.js +3 -3
  70. package/dist/safe-bash-command-pdfimages/index.js +200 -165
  71. package/dist/safe-bash-command-pdfinfo/index.js +200 -165
  72. package/dist/safe-bash-command-pdftk/index.js +200 -165
  73. package/dist/safe-bash-command-pdftoppm/index.js +200 -165
  74. package/dist/safe-bash-command-pdftotext/index.js +200 -165
  75. package/dist/safe-bash-command-pr/command.js +5 -5
  76. package/dist/safe-bash-command-pr/format.js +2 -2
  77. package/dist/safe-bash-command-pr/index.js +5 -5
  78. package/dist/safe-bash-command-pr/internal.d.ts +1 -0
  79. package/dist/safe-bash-command-pr/internal.js +1 -1
  80. package/dist/safe-bash-command-pr/io.js +2 -2
  81. package/dist/safe-bash-command-pr/options.js +2 -2
  82. package/dist/safe-bash-command-qpdf/index.js +200 -165
  83. package/dist/safe-bash-command-shuf/input.js +4 -2
  84. package/dist/safe-bash-command-shuf/shuf.js +4 -3
  85. package/dist/safe-bash-command-sips/index.js +2 -2
  86. package/dist/safe-bash-command-soffice/index.js +1 -1
  87. package/dist/safe-bash-command-split/index.js +3 -3
  88. package/dist/safe-bash-command-split/io.d.ts +1 -0
  89. package/dist/safe-bash-command-split/io.js +1 -1
  90. package/dist/safe-bash-command-split/outputs.js +2 -2
  91. package/dist/safe-bash-command-split/split.js +3 -3
  92. package/dist/safe-bash-command-ssconvert/index.js +200 -165
  93. package/dist/safe-bash-command-tree/arguments.js +3 -3
  94. package/dist/safe-bash-command-tree/charset.js +1 -1
  95. package/dist/safe-bash-command-tree/index.js +4 -4
  96. package/dist/safe-bash-command-tree/io.js +1 -1
  97. package/dist/safe-bash-command-tree/pattern.js +2 -2
  98. package/dist/safe-bash-command-tree/tree.js +4 -4
  99. package/dist/safe-bash-command-tsort/command.js +4 -4
  100. package/dist/safe-bash-command-tsort/graph.js +2 -2
  101. package/dist/safe-bash-command-tsort/index.js +4 -4
  102. package/dist/safe-bash-command-tsort/internal.js +1 -1
  103. package/dist/safe-bash-command-tsort/io.js +2 -2
  104. package/dist/safe-bash-command-wkhtmltopdf/index.js +201 -165
  105. package/dist/safe-bash-io-engine/commands/archive/internal.js +2 -2
  106. package/dist/safe-bash-io-engine/shell/pattern.js +1 -1
  107. package/dist/safe-bash-io-engine/shell/string-operations.d.ts +1 -0
  108. package/dist/safe-bash-io-engine/shell/string-operations.js +1 -1
  109. package/dist/safe-bash-text-stream-engine/stream-format/shared.d.ts +1 -0
  110. package/dist/safe-bash-text-stream-engine/stream-format/shared.js +2 -1
  111. package/package.json +2 -2
  112. package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +73 -5
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  sort
3
- } from "./chunk-3PBP2NWM.js";
3
+ } from "./chunk-GEHF4YAY.js";
4
4
  import {
5
5
  Lifecycle,
6
6
  Reader
7
- } from "./chunk-NT6N3KCA.js";
7
+ } from "./chunk-36A7T7VI.js";
8
8
  import {
9
9
  Budget,
10
10
  TsortError,
11
11
  quote,
12
12
  settings
13
- } from "./chunk-W7K4JN2M.js";
13
+ } from "./chunk-3AQJQW6S.js";
14
14
  import {
15
15
  init_buffer
16
16
  } from "./chunk-HX3SHTCE.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  Budget,
7
7
  DuLimitError
8
- } from "./chunk-TETIL2QG.js";
8
+ } from "./chunk-FDJBYW3P.js";
9
9
  import {
10
10
  excluded
11
11
  } from "./chunk-EDH2EAAY.js";
@@ -62,7 +62,7 @@ var Budget = class {
62
62
  this.sinceYield = 0;
63
63
  const count = ++this.checkpoints;
64
64
  const now = monotonicNow();
65
- if (!this.hasExtYield && count > 1 && now - this.lastYieldTime < 16) {
65
+ if (!this.hasExtYield && count > 1 && count % 16 !== 0 && now - this.lastYieldTime < 16) {
66
66
  runYieldCheckpoint(this.context.signal);
67
67
  return;
68
68
  }
@@ -50,6 +50,7 @@ var Budget = class {
50
50
  outputBytes = 0;
51
51
  steps = 0;
52
52
  untilYield = 65536;
53
+ yieldChecks = 0;
53
54
  lastYield = monotonicNow();
54
55
  constructor(limits, signal) {
55
56
  this.limits = limits;
@@ -76,7 +77,7 @@ var Budget = class {
76
77
  if (this.untilYield > 0)
77
78
  return;
78
79
  this.untilYield = 65536;
79
- if (!hasYieldCheckpoint(this.signal) && monotonicNow() - this.lastYield < 16)
80
+ if (++this.yieldChecks % 16 !== 0 && !hasYieldCheckpoint(this.signal) && monotonicNow() - this.lastYield < 16)
80
81
  return;
81
82
  this.lastYield = monotonicNow();
82
83
  return yieldTurn(this.signal).catch((error) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IconvError
3
- } from "./chunk-W6UOCPP2.js";
3
+ } from "./chunk-7THHNO2E.js";
4
4
  import {
5
5
  init_buffer
6
6
  } from "./chunk-HX3SHTCE.js";
@@ -59,6 +59,7 @@ var SharedBudget = class {
59
59
  steps = 0;
60
60
  failureUnits = 64;
61
61
  untilYield = 128;
62
+ yieldChecks = 0;
62
63
  lastYield = monotonicNow();
63
64
  controller = new AbortController();
64
65
  timer;
@@ -105,8 +106,8 @@ var SharedBudget = class {
105
106
  if (--this.untilYield <= 0) {
106
107
  this.untilYield = 128;
107
108
  const now = monotonicNow();
108
- if (hasYieldCheckpoint(this.signal) || now - this.lastYield >= 16) {
109
- await yieldTurn();
109
+ if (++this.yieldChecks % 16 === 0 || hasYieldCheckpoint(this.signal) || now - this.lastYield >= 16) {
110
+ await yieldTurn(this.signal);
110
111
  this.lastYield = monotonicNow();
111
112
  } else {
112
113
  runYieldCheckpoint(this.signal);
@@ -149,7 +150,7 @@ var SharedBudget = class {
149
150
  untilYield -= character.length;
150
151
  if (untilYield <= 0) {
151
152
  untilYield = 4096;
152
- await yieldTurn();
153
+ await yieldTurn(this.signal);
153
154
  this.checkTime();
154
155
  }
155
156
  }
@@ -3,20 +3,20 @@ import {
3
3
  } from "./chunk-Z6V4XEAW.js";
4
4
  import {
5
5
  Lifecycle
6
- } from "./chunk-QYSAAJ6K.js";
6
+ } from "./chunk-PUIGJ37F.js";
7
7
  import {
8
8
  parse
9
- } from "./chunk-B7CSA2AN.js";
9
+ } from "./chunk-KEMWQP25.js";
10
10
  import {
11
11
  Reader,
12
12
  fsDetail
13
- } from "./chunk-XQZ3OG7K.js";
13
+ } from "./chunk-442UWLQR.js";
14
14
  import {
15
15
  Budget,
16
16
  IconvError,
17
17
  pathText,
18
18
  settings
19
- } from "./chunk-W6UOCPP2.js";
19
+ } from "./chunk-7THHNO2E.js";
20
20
  import {
21
21
  init_buffer
22
22
  } from "./chunk-HX3SHTCE.js";
@@ -17,7 +17,8 @@ function stringCheckpoint(work, units = 1) {
17
17
  const now = monotonicNow();
18
18
  const firstYield = work.lastYield === void 0;
19
19
  const lastYield = work.lastYield ??= now;
20
- if (firstYield || hasYieldCheckpoint(work.signal) || now - lastYield >= 1) {
20
+ work.yieldChecks = (work.yieldChecks ?? 0) + 1;
21
+ if (work.yieldChecks % 16 === 0 || firstYield || hasYieldCheckpoint(work.signal) || now - lastYield >= 1) {
21
22
  work.lastYield = now;
22
23
  return yieldTurn(work.signal).then(() => {
23
24
  work.lastYield = monotonicNow();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  interruptible
3
- } from "./chunk-4SZIRINP.js";
3
+ } from "./chunk-OEPERWLZ.js";
4
4
  import {
5
5
  init_buffer
6
6
  } from "./chunk-HX3SHTCE.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Parser
3
- } from "./chunk-OPRPIHKA.js";
3
+ } from "./chunk-ZGBHQQGL.js";
4
4
  import {
5
5
  init_buffer
6
6
  } from "./chunk-HX3SHTCE.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  UsageError
3
- } from "./chunk-VGKASRY7.js";
3
+ } from "./chunk-KI2XV6GF.js";
4
4
  import {
5
5
  init_buffer
6
6
  } from "./chunk-HX3SHTCE.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Builder
3
- } from "./chunk-YUBBOIPH.js";
3
+ } from "./chunk-LP5NRR5O.js";
4
4
  import {
5
5
  init_buffer
6
6
  } from "./chunk-HX3SHTCE.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  entities
3
- } from "./chunk-OTTXGYBL.js";
3
+ } from "./chunk-G3O44ZGT.js";
4
4
  import {
5
5
  init_buffer
6
6
  } from "./chunk-HX3SHTCE.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PrError,
3
3
  PrReadError
4
- } from "./chunk-T6ZPGCNJ.js";
4
+ } from "./chunk-3DVCCMBJ.js";
5
5
  import {
6
6
  init_buffer
7
7
  } from "./chunk-HX3SHTCE.js";
@@ -25,6 +25,7 @@ export declare class Budget {
25
25
  private lines;
26
26
  private work;
27
27
  private nextYield;
28
+ private yieldChecks;
28
29
  private nextYieldTime;
29
30
  private files;
30
31
  private hunks;
@@ -19,6 +19,7 @@ export class Budget {
19
19
  lines = 0;
20
20
  work = 0;
21
21
  nextYield = 4096;
22
+ yieldChecks = 0;
22
23
  nextYieldTime = monotonicNow() + 8;
23
24
  files = 0;
24
25
  hunks = 0;
@@ -64,7 +65,7 @@ export class Budget {
64
65
  const firstYield = this.nextYield === 4096;
65
66
  this.nextYield = this.work + 4096;
66
67
  const now = monotonicNow();
67
- if (firstYield || now >= this.nextYieldTime) {
68
+ if (++this.yieldChecks % 16 === 0 || firstYield || now >= this.nextYieldTime) {
68
69
  this.nextYieldTime = now + 16;
69
70
  return yieldTurn(this.context.signal).then(() => {
70
71
  this.nextYieldTime = monotonicNow() + 16;
@@ -27232,6 +27232,7 @@ var Budget9 = class _Budget {
27232
27232
  lines = 0;
27233
27233
  work = 0;
27234
27234
  nextYield = 4096;
27235
+ yieldChecks = 0;
27235
27236
  nextYieldTime = (0, yield_exports.monotonicNow)() + 8;
27236
27237
  files = 0;
27237
27238
  hunks = 0;
@@ -27257,7 +27258,7 @@ var Budget9 = class _Budget {
27257
27258
  const firstYield = this.nextYield === 4096;
27258
27259
  this.nextYield = this.work + 4096;
27259
27260
  const now = (0, yield_exports.monotonicNow)();
27260
- if (firstYield || now >= this.nextYieldTime) {
27261
+ if (++this.yieldChecks % 16 === 0 || firstYield || now >= this.nextYieldTime) {
27261
27262
  this.nextYieldTime = now + 16;
27262
27263
  return (0, yield_exports.yieldTurn)(this.context.signal).then(() => {
27263
27264
  this.nextYieldTime = (0, yield_exports.monotonicNow)() + 16;
@@ -247,9 +247,10 @@ export function createDdCommand(options = {}) {
247
247
  let partialRecord = 0;
248
248
  let warned = false;
249
249
  let lastYieldTime = monotonicNow();
250
+ let yieldChecks = 0;
250
251
  const maybeYield = async () => {
251
252
  context.signal.throwIfAborted();
252
- if (hasYieldCheckpoint(context.signal) || monotonicNow() - lastYieldTime >= 16) {
253
+ if (++yieldChecks % 16 === 0 || hasYieldCheckpoint(context.signal) || monotonicNow() - lastYieldTime >= 16) {
253
254
  await yieldTurn(context.signal);
254
255
  lastYieldTime = monotonicNow();
255
256
  }
@@ -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
  }
@@ -247,9 +247,10 @@ export function createDdCommand(options = {}) {
247
247
  let partialRecord = 0;
248
248
  let warned = false;
249
249
  let lastYieldTime = monotonicNow();
250
+ let yieldChecks = 0;
250
251
  const maybeYield = async () => {
251
252
  context.signal.throwIfAborted();
252
- if (hasYieldCheckpoint(context.signal) || monotonicNow() - lastYieldTime >= 16) {
253
+ if (++yieldChecks % 16 === 0 || hasYieldCheckpoint(context.signal) || monotonicNow() - lastYieldTime >= 16) {
253
254
  await yieldTurn(context.signal);
254
255
  lastYieldTime = monotonicNow();
255
256
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Budget,
3
3
  DuLimitError
4
- } from "../safe-bash/command-chunks/chunk-TETIL2QG.js";
4
+ } from "../safe-bash/command-chunks/chunk-FDJBYW3P.js";
5
5
  import "../safe-bash/command-chunks/chunk-FPUJFPKO.js";
6
6
  import "../safe-bash/command-chunks/chunk-HX3SHTCE.js";
7
7
  export {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createDuCommand
3
- } from "../safe-bash/command-chunks/chunk-YRMCH7OE.js";
3
+ } from "../safe-bash/command-chunks/chunk-LCR6YMBL.js";
4
4
  import "../safe-bash/command-chunks/chunk-D7FJPOCA.js";
5
- import "../safe-bash/command-chunks/chunk-TETIL2QG.js";
5
+ import "../safe-bash/command-chunks/chunk-FDJBYW3P.js";
6
6
  import "../safe-bash/command-chunks/chunk-EDH2EAAY.js";
7
7
  import "../safe-bash/command-chunks/chunk-FPUJFPKO.js";
8
8
  import "../safe-bash/command-chunks/chunk-FGB3XLDL.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createDuCommand
3
- } from "../safe-bash/command-chunks/chunk-YRMCH7OE.js";
3
+ } from "../safe-bash/command-chunks/chunk-LCR6YMBL.js";
4
4
  import "../safe-bash/command-chunks/chunk-D7FJPOCA.js";
5
- import "../safe-bash/command-chunks/chunk-TETIL2QG.js";
5
+ import "../safe-bash/command-chunks/chunk-FDJBYW3P.js";
6
6
  import "../safe-bash/command-chunks/chunk-EDH2EAAY.js";
7
7
  import {
8
8
  blockSize,