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/CHANGELOG.md +10 -0
- package/README.md +8 -7
- package/README.ru.md +7 -6
- package/dist/cli.js +12 -25
- package/dist/cli.js.map +3 -3
- package/dist/daemon.js +1 -1
- package/dist/daemon.js.map +2 -2
- package/dist/mcp.js +6 -3
- package/dist/mcp.js.map +2 -2
- package/docs/configuration.md +1 -1
- package/docs/integrations.md +13 -10
- package/docs/ru/configuration.md +1 -1
- package/docs/ru/integrations.md +13 -11
- package/package.json +1 -1
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
|
|
240
|
+
if (relative === "") return target;
|
|
241
241
|
if (relative.startsWith("..") || path.isAbsolute(relative)) return resolved;
|
|
242
|
-
|
|
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.
|
|
294
|
+
var VERSION = "0.8.1";
|
|
292
295
|
|
|
293
296
|
// src/client.ts
|
|
294
297
|
var RpcError = class extends Error {
|