@openscout/scout 0.2.109 → 0.2.110

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.
@@ -6,7 +6,7 @@ import { spawn } from "child_process";
6
6
 
7
7
  // ../runtime/src/claude-statusline.ts
8
8
  import { appendFile, mkdir, readFile, writeFile } from "fs/promises";
9
- import { basename, dirname, join as join3 } from "path";
9
+ import { basename, dirname as dirname2, join as join3 } from "path";
10
10
 
11
11
  // ../runtime/src/system-probes/scoutd-client.ts
12
12
  import { existsSync } from "fs";
@@ -979,11 +979,18 @@ var TRANSCRIPT_TAIL_BYTES = 256 * 1024;
979
979
 
980
980
  // ../runtime/src/support-paths.ts
981
981
  import { homedir as homedir2 } from "os";
982
- import { join as join2 } from "path";
982
+ import { dirname, join as join2 } from "path";
983
983
  var OPENSCOUT_RPC_CUTOVER_MARKER = "rpc-runtime-cutover-v1";
984
+ function defaultOpenScoutSupportDirectory(home = homedir2()) {
985
+ if (process.platform === "darwin") {
986
+ return join2(home, "Library", "Application Support", "OpenScout");
987
+ }
988
+ const xdgDataHome = process.env.XDG_DATA_HOME?.trim();
989
+ return join2(xdgDataHome || join2(home, ".local", "share"), "openscout");
990
+ }
984
991
  function resolveOpenScoutSupportPaths() {
985
992
  const home = homedir2();
986
- const supportDirectory = process.env.OPENSCOUT_SUPPORT_DIRECTORY ?? join2(home, "Library", "Application Support", "OpenScout");
993
+ const supportDirectory = process.env.OPENSCOUT_SUPPORT_DIRECTORY ?? defaultOpenScoutSupportDirectory(home);
987
994
  const logsDirectory = join2(supportDirectory, "logs");
988
995
  const runtimeDirectory = join2(supportDirectory, "runtime");
989
996
  const catalogDirectory = join2(supportDirectory, "catalog");