my-durable 0.0.78 → 0.0.79

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.
@@ -4,7 +4,7 @@
4
4
  import { existsSync, mkdirSync, readFileSync } from "node:fs";
5
5
  import { randomBytes } from "node:crypto";
6
6
  import { homedir, hostname } from "node:os";
7
- import { join, resolve } from "node:path";
7
+ import { delimiter, join, resolve } from "node:path";
8
8
  import { writePrivateFileAtomic } from "../../dpi-sdk/src/node/private-file.js";
9
9
 
10
10
  export interface BackendConfig {
@@ -66,8 +66,12 @@ export async function loadConfig(argv = process.argv.slice(2), env = process.env
66
66
  home,
67
67
  envFile,
68
68
  dataDir: resolve(expand(flag("--data-dir", env.DPI_DATA_DIR ?? join(home, "backend")))),
69
+ // run-8 (live): splitting on ":" made Windows start dirs impossible — a
70
+ // drive path IS "D:\…", so `D:\source` became "D" + "\source" and every
71
+ // Windows host was silently limited to the default ~/dpi-work. Use the
72
+ // platform's list separator (";" on win32, ":" elsewhere).
69
73
  startDirs: flag("--start-dirs", env.DPI_START_DIRS ?? "~/dpi-work")
70
- .split(":")
74
+ .split(delimiter)
71
75
  .filter(Boolean)
72
76
  .map((p) => resolve(expand(p))),
73
77
  provider: (env.DPI_PROVIDER ?? "openrouter") === "faux" ? "faux" : "openrouter",