@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.
Files changed (2) hide show
  1. package/dist/index.js +8 -2
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annals/agent-mesh",
3
- "version": "0.16.12",
3
+ "version": "0.16.13",
4
4
  "description": "CLI bridge connecting local AI agents to the Agents.Hot platform",
5
5
  "type": "module",
6
6
  "bin": {