agentv 4.15.3 → 4.15.4

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.
@@ -17289,7 +17289,8 @@ function formatSegment(segment, mode = "lm") {
17289
17289
  return void 0;
17290
17290
  }
17291
17291
  if (mode === "agent") {
17292
- return `<file: path="${filePath}">`;
17292
+ const absolutePath = asString2(segment.resolvedPath) ?? filePath;
17293
+ return `<file: path="${absolutePath}">`;
17293
17294
  }
17294
17295
  const text2 = asString2(segment.text);
17295
17296
  if (text2 && filePath) {
@@ -32558,6 +32559,8 @@ ${providerFileChanges}` : providerFileChanges;
32558
32559
  } else if ((retainOnSuccess ?? (keepWorkspaces ? "keep" : "cleanup")) !== "keep") {
32559
32560
  await cleanupWorkspace(workspacePath).catch(() => {
32560
32561
  });
32562
+ } else {
32563
+ return { ...finalResult, workspacePath };
32561
32564
  }
32562
32565
  }
32563
32566
  return finalResult;
@@ -35748,4 +35751,4 @@ export {
35748
35751
  TranscriptProvider,
35749
35752
  createAgentKernel
35750
35753
  };
35751
- //# sourceMappingURL=chunk-6X2UFVGI.js.map
35754
+ //# sourceMappingURL=chunk-K4QF5TNX.js.map