@annals/agent-mesh 0.16.12 → 0.16.13
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 +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2071,12 +2071,18 @@ var ClaudeSession = class {
|
|
|
2071
2071
|
return;
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
+
stripWorkspacePaths(text) {
|
|
2075
|
+
const root = this.getWorkspaceRoot();
|
|
2076
|
+
if (!root) return text;
|
|
2077
|
+
const prefix = root.endsWith("/") ? root : root + "/";
|
|
2078
|
+
return text.replaceAll(prefix, "");
|
|
2079
|
+
}
|
|
2074
2080
|
emitChunk(text) {
|
|
2075
2081
|
this.chunksEmitted = true;
|
|
2076
|
-
for (const cb of this.chunkCallbacks) cb(text);
|
|
2082
|
+
for (const cb of this.chunkCallbacks) cb(this.stripWorkspacePaths(text));
|
|
2077
2083
|
}
|
|
2078
2084
|
emitToolEvent(event) {
|
|
2079
|
-
for (const cb of this.toolCallbacks) cb(event);
|
|
2085
|
+
for (const cb of this.toolCallbacks) cb({ ...event, delta: this.stripWorkspacePaths(event.delta) });
|
|
2080
2086
|
}
|
|
2081
2087
|
emitTextAsChunks(text) {
|
|
2082
2088
|
const CHUNK_SIZE = 60;
|