revdeck 0.8.0 → 0.8.1

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/mcp.js CHANGED
@@ -237,9 +237,12 @@ function toHostRoot(root, hostRoot = process.env.REVDECK_HOST_ROOT, containerRoo
237
237
  const target = hostRoot?.trim();
238
238
  if (!target) return resolved;
239
239
  const relative = path.relative(path.resolve(containerRoot), resolved);
240
- if (relative === "") return path.resolve(target);
240
+ if (relative === "") return target;
241
241
  if (relative.startsWith("..") || path.isAbsolute(relative)) return resolved;
242
- return path.join(path.resolve(target), relative);
242
+ const windows = /^[A-Za-z]:[\\/]/.test(target) || target.startsWith("\\\\");
243
+ const separator = windows ? "\\" : "/";
244
+ const prefix = target.replace(/[\\/]+$/, "");
245
+ return `${prefix}${separator}${relative.split(path.sep).join(separator)}`;
243
246
  }
244
247
  var CONFIG_FILES = [".revdeck.yml", ".revdeck.yaml"];
245
248
  var LOCAL_CONFIG_FILES = [".revdeck.local.yml", ".revdeck.local.yaml"];
@@ -288,7 +291,7 @@ async function readTextNoFollow(file, maxBytes = 4 * 1024 * 1024) {
288
291
  }
289
292
 
290
293
  // src/version.ts
291
- var VERSION = "0.8.0";
294
+ var VERSION = "0.8.1";
292
295
 
293
296
  // src/client.ts
294
297
  var RpcError = class extends Error {