@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
@@ -2,7 +2,7 @@ import {
2
2
  nextCodePointOffset,
3
3
  previousCodePointOffset,
4
4
  stringCheckpoint
5
- } from "../../safe-bash/command-chunks/chunk-EYRJX6FJ.js";
5
+ } from "../../safe-bash/command-chunks/chunk-TICYYKJB.js";
6
6
  import {
7
7
  init_buffer
8
8
  } from "../../safe-bash/command-chunks/chunk-HX3SHTCE.js";
@@ -6,6 +6,7 @@ export interface StringWork {
6
6
  allocation?: ValueAllocation;
7
7
  steps?: number;
8
8
  lastYield?: number;
9
+ yieldChecks?: number;
9
10
  }
10
11
  export declare function stringCheckpoint(work: StringWork, units?: number): Promise<void> | undefined;
11
12
  export declare function nextCodePointOffset(value: string, offset: number): number;
@@ -3,7 +3,7 @@ import {
3
3
  previousCodePointOffset,
4
4
  scanString,
5
5
  stringCheckpoint
6
- } from "../../safe-bash/command-chunks/chunk-EYRJX6FJ.js";
6
+ } from "../../safe-bash/command-chunks/chunk-TICYYKJB.js";
7
7
  import "../../safe-bash/command-chunks/chunk-HX3SHTCE.js";
8
8
  export {
9
9
  nextCodePointOffset,
@@ -21,6 +21,7 @@ export declare class Session {
21
21
  private outputBytes;
22
22
  private steps;
23
23
  private untilYield;
24
+ private yieldChecks;
24
25
  private lastYield;
25
26
  readonly buffered: ReturnType<typeof createBufferedOutput>;
26
27
  private signalAborted;
@@ -42,6 +42,7 @@ var Session = class {
42
42
  outputBytes = 0;
43
43
  steps = 0;
44
44
  untilYield = 4096;
45
+ yieldChecks = 0;
45
46
  lastYield = monotonicNow();
46
47
  buffered;
47
48
  signalAborted = false;
@@ -86,7 +87,7 @@ var Session = class {
86
87
  this.charge(count);
87
88
  if (this.untilYield <= 0) {
88
89
  this.untilYield = 4096;
89
- if (!hasYieldCheckpoint(this.signal) && monotonicNow() - this.lastYield < 25) {
90
+ if (++this.yieldChecks % 16 !== 0 && !hasYieldCheckpoint(this.signal) && monotonicNow() - this.lastYield < 25) {
90
91
  runYieldCheckpoint(this.signal);
91
92
  this.signal.throwIfAborted();
92
93
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poe-platform/safe-bash",
3
- "version": "0.1.779",
3
+ "version": "0.1.780",
4
4
  "description": "Extensible virtual shell with pluggable filesystems and streaming commands",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -841,7 +841,7 @@
841
841
  "access": "public"
842
842
  },
843
843
  "dependencies": {
844
- "@poe-platform/safe-fs": "0.1.779",
844
+ "@poe-platform/safe-fs": "0.1.780",
845
845
  "pdf-lib": "1.17.1",
846
846
  "@noble/hashes": "2.4.0",
847
847
  "pako": "3.0.1",