@chrysb/alphaclaw 0.1.22 → 0.1.23

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/alphaclaw.js +14 -0
  2. package/package.json +1 -1
package/bin/alphaclaw.js CHANGED
@@ -122,6 +122,20 @@ try {
122
122
  console.log(`[alphaclaw] .env setup skipped: ${e.message}`);
123
123
  }
124
124
 
125
+ // ---------------------------------------------------------------------------
126
+ // 5. Symlink <rootDir>/.openclaw/.env -> <rootDir>/.env
127
+ // ---------------------------------------------------------------------------
128
+
129
+ const openclawEnvLink = path.join(openclawDir, ".env");
130
+ try {
131
+ if (!fs.existsSync(openclawEnvLink)) {
132
+ fs.symlinkSync(envFilePath, openclawEnvLink);
133
+ console.log(`[alphaclaw] Symlinked ${openclawEnvLink} -> ${envFilePath}`);
134
+ }
135
+ } catch (e) {
136
+ console.log(`[alphaclaw] .env symlink skipped: ${e.message}`);
137
+ }
138
+
125
139
  // ---------------------------------------------------------------------------
126
140
  // 6. Load .env into process.env
127
141
  // ---------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrysb/alphaclaw",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },