@agentv/core 4.15.3-next.1 → 4.15.4-next.1
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.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4907,7 +4907,8 @@ function formatSegment(segment, mode = "lm") {
|
|
|
4907
4907
|
return void 0;
|
|
4908
4908
|
}
|
|
4909
4909
|
if (mode === "agent") {
|
|
4910
|
-
|
|
4910
|
+
const absolutePath = asString2(segment.resolvedPath) ?? filePath;
|
|
4911
|
+
return `<file: path="${absolutePath}">`;
|
|
4911
4912
|
}
|
|
4912
4913
|
const text = asString2(segment.text);
|
|
4913
4914
|
if (text && filePath) {
|
|
@@ -22312,6 +22313,8 @@ ${providerFileChanges}` : providerFileChanges;
|
|
|
22312
22313
|
} else if ((retainOnSuccess ?? (keepWorkspaces ? "keep" : "cleanup")) !== "keep") {
|
|
22313
22314
|
await cleanupWorkspace(workspacePath).catch(() => {
|
|
22314
22315
|
});
|
|
22316
|
+
} else {
|
|
22317
|
+
return { ...finalResult, workspacePath };
|
|
22315
22318
|
}
|
|
22316
22319
|
}
|
|
22317
22320
|
return finalResult;
|