memory-privacy 1.9.0 → 1.10.0

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/package.json +1 -1
  2. package/route.ts +2 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memory-privacy",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "files": [
package/route.ts CHANGED
@@ -138,11 +138,8 @@ export function resolveDefaultWorkspaceDir(api: MemoryPrivacyPluginApi, agentId?
138
138
  process.env.OPENCLAW_WORKSPACE ??
139
139
  process.cwd();
140
140
 
141
- if (agentId && agentId !== DEFAULT_AGENT_ID) {
142
- return path.join(baseDir, "agents", agentId);
143
- }
144
-
145
- return baseDir;
141
+ const effectiveAgentId = agentId || DEFAULT_AGENT_ID;
142
+ return path.join(baseDir, `workspace_${effectiveAgentId}`);
146
143
  }
147
144
 
148
145
  export function resolveRouteContext(