@agimon-ai/po-file-edit 0.0.0-alpha.26 → 0.0.0-alpha.28

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.
@@ -437,6 +437,8 @@ function lineDiff(before, after) {
437
437
  const EDIT_TOOL = "edit";
438
438
  const WRITE_TOOL = "write";
439
439
  const BASH_TOOL = "bash";
440
+ /** Code mode scripts can write files like a shell can, so they get the same before/after scan. */
441
+ const EXEC_TOOL = "exec";
440
442
  function objectValue(value, key) {
441
443
  if (!value || typeof value !== "object") return void 0;
442
444
  const found = value[key];
@@ -530,7 +532,7 @@ var EditTracker = class {
530
532
  });
531
533
  return;
532
534
  }
533
- if (tool !== BASH_TOOL) return;
535
+ if (tool !== BASH_TOOL && tool !== EXEC_TOOL) return;
534
536
  this.bracketed.set(id, this.now());
535
537
  this.manifest ??= await this.manifests.take(cwd, this.excluded);
536
538
  }