@aight-cool/aight-utils 0.1.19 → 0.1.20

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/index.js CHANGED
@@ -3392,9 +3392,10 @@ function registerBootstrap(api) {
3392
3392
  // src/groups.ts
3393
3393
  import { readFileSync as readFileSync3, writeFileSync as writeFileSync3, mkdirSync as mkdirSync3 } from "fs";
3394
3394
  import { join as join3 } from "path";
3395
+ import { homedir as homedir3 } from "os";
3395
3396
  var FILENAME = "group-names.json";
3396
3397
  function filePath(api) {
3397
- const dir = api.dataDir ?? join3(process.env.HOME ?? "/tmp", ".openclaw", "plugin-data", "aight-utils");
3398
+ const dir = api.dataDir ?? join3(homedir3(), ".openclaw", "plugin-data", "aight-utils");
3398
3399
  mkdirSync3(dir, { recursive: true });
3399
3400
  return join3(dir, FILENAME);
3400
3401
  }