@poe-platform/safe-bash 0.1.794 → 0.1.795

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.
@@ -22496,7 +22496,7 @@ var Runtime = class _Runtime {
22496
22496
  executeSyncPipelineBody(pipeline, command, state, io, ignored) {
22497
22497
  const scope = io[invocationScope];
22498
22498
  if (scope.hasFailures || this.budget.limits.maxExpansionFields !== Infinity || this.budget.limits.maxExpansionBytes !== Infinity || this.budget.limits.maxParseUnits !== Infinity) return void 0;
22499
- if (this.budget._hasExternalSignal && (command.kind === "for" || command.kind === "arithmetic-for")) return void 0;
22499
+ if (this.budget._hasExternalSignal && (command.kind === "for" || command.kind === "arithmetic-for" || command.kind === "while" || command.kind === "until")) return void 0;
22500
22500
  const monitor = stateMonitor(state) ?? stateMonitor(trackState(state, this.budget, scope));
22501
22501
  if (!monitor) return void 0;
22502
22502
  const rawState = monitor.raw;
@@ -26819,6 +26819,7 @@ var Runtime = class _Runtime {
26819
26819
  return 0;
26820
26820
  }
26821
26821
  trySyncLoop(command, pipeline, rawState, monitor, store, existing, elem0, canMutatePipeStatus, io, diagnosticLine, syncReadInputText) {
26822
+ if (this.budget._hasExternalSignal) return void 0;
26822
26823
  if (!syncSinks.get(io.stderr)) return void 0;
26823
26824
  if (store && !existing) {
26824
26825
  if (this.budget.limits.maxExpansionFields !== Infinity || this.budget.limits.maxExpansionBytes !== Infinity || monitor.internalOwner().ledger.checkpoint(this.signal, 0) || publishPipelineStatus(rawState, singleStatusZero, this.signal, io[invocationScope])) {
@@ -57,7 +57,7 @@ import {
57
57
  parseShell,
58
58
  searchCommands,
59
59
  unrtfCommands
60
- } from "./chunks/chunk-6P25QN5M.js";
60
+ } from "./chunks/chunk-ZXKVOJNL.js";
61
61
  import {
62
62
  createYqCommand,
63
63
  createYqCommands,
@@ -10261,7 +10261,7 @@ export class Runtime {
10261
10261
  return undefined;
10262
10262
  // Caller cancellation needs the async loop path. Refuse before redirects
10263
10263
  // spend admission budgets or create effects that fallback would repeat.
10264
- if (this.budget._hasExternalSignal && (command.kind === "for" || command.kind === "arithmetic-for"))
10264
+ if (this.budget._hasExternalSignal && (command.kind === "for" || command.kind === "arithmetic-for" || command.kind === "while" || command.kind === "until"))
10265
10265
  return undefined;
10266
10266
  const monitor = stateMonitor(state) ?? stateMonitor(trackState(state, this.budget, scope));
10267
10267
  if (!monitor)
@@ -15673,6 +15673,9 @@ export class Runtime {
15673
15673
  return 0;
15674
15674
  }
15675
15675
  trySyncLoop(command, pipeline, rawState, monitor, store, existing, elem0, canMutatePipeStatus, io, diagnosticLine, syncReadInputText) {
15676
+ // A signal needs event-loop turns even when a loop has a finite work bound.
15677
+ if (this.budget._hasExternalSignal)
15678
+ return undefined;
15676
15679
  if (!syncSinks.get(io.stderr))
15677
15680
  return undefined;
15678
15681
  // Substitution callers also need to refuse before effects when status
@@ -4,7 +4,7 @@ import {
4
4
  ShellSyntaxError,
5
5
  cloudflareWorkerLimits,
6
6
  parseShell
7
- } from "./chunks/chunk-6P25QN5M.js";
7
+ } from "./chunks/chunk-ZXKVOJNL.js";
8
8
  import "./chunks/chunk-AKC46AF6.js";
9
9
  import "./chunks/chunk-D2XB7XIC.js";
10
10
  import "./chunks/chunk-U5NUZPCC.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poe-platform/safe-bash",
3
- "version": "0.1.794",
3
+ "version": "0.1.795",
4
4
  "description": "Extensible virtual shell with pluggable filesystems and streaming commands",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -869,7 +869,7 @@
869
869
  "access": "public"
870
870
  },
871
871
  "dependencies": {
872
- "@poe-platform/safe-fs": "0.1.794",
872
+ "@poe-platform/safe-fs": "0.1.795",
873
873
  "pdf-lib": "1.17.1",
874
874
  "@noble/hashes": "2.4.0",
875
875
  "pako": "3.0.1",