@auroraflow/code 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. package/bin/aurora.js +6 -6
  2. package/package.json +7 -7
package/bin/aurora.js CHANGED
@@ -290,12 +290,12 @@ if (existsSync(pathDir)) {
290
290
  const updatedPath = getUpdatedPath(additionalDirs);
291
291
 
292
292
  const env = { ...process.env, PATH: updatedPath };
293
- if (!env.CODEX_HOME) {
294
- env.CODEX_HOME = path.join(homedir(), ".aurora");
295
- }
296
- if (!env.AURORA_HOME) {
297
- env.AURORA_HOME = env.CODEX_HOME;
298
- }
293
+ const auroraHome =
294
+ env.AURORA_HOME && env.AURORA_HOME.trim()
295
+ ? env.AURORA_HOME
296
+ : path.join(homedir(), ".aurora");
297
+ env.AURORA_HOME = auroraHome;
298
+ env.CODEX_HOME = auroraHome;
299
299
  const packageManagerEnvVar =
300
300
  detectPackageManager() === "bun"
301
301
  ? "AURORA_MANAGED_BY_BUN"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auroraflow/code",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Aurora Code is Aurora's local coding agent.",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
@@ -20,11 +20,11 @@
20
20
  },
21
21
  "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
22
22
  "optionalDependencies": {
23
- "@auroraflow/code-linux-x64": "0.0.2",
24
- "@auroraflow/code-linux-arm64": "0.0.2",
25
- "@auroraflow/code-darwin-x64": "0.0.2",
26
- "@auroraflow/code-darwin-arm64": "0.0.2",
27
- "@auroraflow/code-win32-x64": "0.0.2",
28
- "@auroraflow/code-win32-arm64": "0.0.2"
23
+ "@auroraflow/code-linux-x64": "0.0.3",
24
+ "@auroraflow/code-linux-arm64": "0.0.3",
25
+ "@auroraflow/code-darwin-x64": "0.0.3",
26
+ "@auroraflow/code-darwin-arm64": "0.0.3",
27
+ "@auroraflow/code-win32-x64": "0.0.3",
28
+ "@auroraflow/code-win32-arm64": "0.0.3"
29
29
  }
30
30
  }