@agentv/core 4.15.3 → 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.js
CHANGED
|
@@ -2727,7 +2727,8 @@ function formatSegment(segment, mode = "lm") {
|
|
|
2727
2727
|
return void 0;
|
|
2728
2728
|
}
|
|
2729
2729
|
if (mode === "agent") {
|
|
2730
|
-
|
|
2730
|
+
const absolutePath = asString2(segment.resolvedPath) ?? filePath;
|
|
2731
|
+
return `<file: path="${absolutePath}">`;
|
|
2731
2732
|
}
|
|
2732
2733
|
const text = asString2(segment.text);
|
|
2733
2734
|
if (text && filePath) {
|
|
@@ -18335,6 +18336,8 @@ ${providerFileChanges}` : providerFileChanges;
|
|
|
18335
18336
|
} else if ((retainOnSuccess ?? (keepWorkspaces ? "keep" : "cleanup")) !== "keep") {
|
|
18336
18337
|
await cleanupWorkspace(workspacePath).catch(() => {
|
|
18337
18338
|
});
|
|
18339
|
+
} else {
|
|
18340
|
+
return { ...finalResult, workspacePath };
|
|
18338
18341
|
}
|
|
18339
18342
|
}
|
|
18340
18343
|
return finalResult;
|