@lightcone-ai/daemon 0.23.8 → 0.23.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightcone-ai/daemon",
3
- "version": "0.23.8",
3
+ "version": "0.23.9",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -267,8 +267,11 @@ export function workspacePathFromMediaPath(filePath, workspaceId) {
267
267
  const virtualMatch = normalized.match(/^\/agent-workspace\/([^/]+)\/workspace\/(.+)$/);
268
268
  if (virtualMatch) return { workspaceId: virtualMatch[1], relPath: virtualMatch[2] };
269
269
 
270
+ // The workspace UUID may be followed by an optional per-agent dir segment
271
+ // — the daemon lays artifacts out under /workspace/<wsId>/<agentId>/artifacts/…
272
+ // — so strip it and keep the shared workspace relPath for materialization.
270
273
  const hostMatch = normalized.match(
271
- /\/workspace\/([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})\/((?:artifacts|notes|tmp)\/.+)$/i
274
+ /\/workspace\/([0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})\/(?:[0-9a-f-]{36}\/)?((?:artifacts|notes|tmp)\/.+)$/i
272
275
  );
273
276
  if (hostMatch) {
274
277
  return { workspaceId: hostMatch[1], relPath: hostMatch[2] };