@agentbean/daemon 0.1.10 → 0.1.11
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/post-process.js +3 -3
- package/package.json +1 -1
package/dist/post-process.js
CHANGED
|
@@ -94,9 +94,9 @@ function canonicalPath(path) {
|
|
|
94
94
|
return path;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function resolveOutputRoots(workspace, outputDirs = []) {
|
|
97
|
+
function resolveOutputRoots(workspace, outputDirs = [], includeWorkspace = false) {
|
|
98
98
|
const roots = new Set();
|
|
99
|
-
if (workspace)
|
|
99
|
+
if (workspace && includeWorkspace)
|
|
100
100
|
roots.add(resolve(workspace));
|
|
101
101
|
for (const raw of [...outputDirs, ...outputDirsFromEnv()]) {
|
|
102
102
|
const expanded = raw.replace(/^~(?=$|\/)/, homedir());
|
|
@@ -153,7 +153,7 @@ export async function postProcess(reply, workspace, kind, dispatchStart, options
|
|
|
153
153
|
for (const filePath of extractMentionedFiles(reply, workspace, dispatchStart)) {
|
|
154
154
|
outputFiles.add(canonicalPath(filePath));
|
|
155
155
|
}
|
|
156
|
-
for (const filePath of collectRecentOutputFiles(resolveOutputRoots(workspace, options.outputDirs), dispatchStart)) {
|
|
156
|
+
for (const filePath of collectRecentOutputFiles(resolveOutputRoots(workspace, options.outputDirs, options.scanWorkspace), dispatchStart)) {
|
|
157
157
|
outputFiles.add(filePath);
|
|
158
158
|
}
|
|
159
159
|
// Extract code blocks for logging but do NOT auto-execute (security)
|