@impulselab/hepha 0.2.416 → 0.2.417

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.
package/dist/index.js CHANGED
@@ -2535,8 +2535,18 @@ var updateTaskLabels = new Map(
2535
2535
  })
2536
2536
  );
2537
2537
 
2538
+ // ../../packages/agents/src/tool-activity/canonical/describe-native-patch.ts
2539
+ function describeNativePatch(record, state) {
2540
+ const path2 = toolActivityBasename(toolInput.str(record.path));
2541
+ const count = Array.isArray(record.changes) ? record.changes.length : 0;
2542
+ const target = path2 ?? (count > 0 ? `${count} file${count === 1 ? "" : "s"}` : "files");
2543
+ const verb = state.hasFailed ? "Failed to edit" : state.isRunning ? "Editing" : "Edited";
2544
+ return labelOnly(`${verb} ${target}`);
2545
+ }
2546
+
2538
2547
  // ../../packages/agents/src/tool-activity/canonical/canonical-tool-activity-describers.ts
2539
2548
  var canonicalToolActivityDescribers = new Map([
2549
+ ["apply_patch", describeNativePatch],
2540
2550
  [HOST_TOOL_NAMES.ADVISE, () => labelOnly("Advised the watched session")],
2541
2551
  [
2542
2552
  "read",