@nextclaw/app-runtime 0.7.7 → 0.7.8

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/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.7.7";
2
+ var version = "0.7.8";
3
3
  //#endregion
4
4
  export { version };
@@ -2,6 +2,8 @@ import { resolve } from "node:path";
2
2
  import { homedir } from "node:os";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  //#region src/publish/platform-auth-state.service.ts
5
+ const NEXTCLAW_HOME_ENV_KEY = "NEXTCLAW_HOME";
6
+ const NEXTCLAW_DEFAULT_HOME_DIR = ".nextclaw";
5
7
  var PlatformAuthStateService = class {
6
8
  readCurrentAuthState = () => {
7
9
  const configPath = this.resolveConfigPath();
@@ -18,8 +20,8 @@ var PlatformAuthStateService = class {
18
20
  }
19
21
  };
20
22
  resolveConfigPath = () => {
21
- const nextclawHome = process.env.NEXTCLAW_HOME?.trim();
22
- return resolve(nextclawHome && nextclawHome.length > 0 ? resolve(nextclawHome) : resolve(homedir(), ".nextclaw"), "config.json");
23
+ const nextclawHome = process.env[NEXTCLAW_HOME_ENV_KEY]?.trim();
24
+ return resolve(nextclawHome && nextclawHome.length > 0 ? resolve(nextclawHome) : resolve(homedir(), NEXTCLAW_DEFAULT_HOME_DIR), "config.json");
23
25
  };
24
26
  };
25
27
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/app-runtime",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "private": false,
5
5
  "description": "Standalone micro app runtime and CLI for NextClaw apps.",
6
6
  "type": "module",