@osfactory/har 0.61.1 → 0.61.2

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.
@@ -7,11 +7,17 @@
7
7
 
8
8
  // launch.sh writes this file (and .env.agent.N) to the work dir root,
9
9
  // so __dirname IS the work dir — repo root or the agent's git worktree.
10
+ const fs = require('fs');
10
11
  const path = require('path');
11
- const dotenv = require('dotenv');
12
12
 
13
13
  const agentEnvPath = path.resolve(__dirname, '.env.agent.${AGENT_ID}');
14
- const env = dotenv.config({ path: agentEnvPath }).parsed || {};
14
+ const env = {};
15
+ try {
16
+ for (const line of fs.readFileSync(agentEnvPath, 'utf8').split('\n')) {
17
+ const m = line.match(/^\s*([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*?)\s*$/);
18
+ if (m && !line.trimStart().startsWith('#')) env[m[1]] = m[2].replace(/^["']|["']$/g, '');
19
+ }
20
+ } catch {}
15
21
 
16
22
  module.exports = {
17
23
  apps: [
@@ -7,11 +7,17 @@
7
7
 
8
8
  // launch.sh writes this file (and .env.agent.N) to the work dir root,
9
9
  // so __dirname IS the work dir — repo root or the agent's git worktree.
10
+ const fs = require('fs');
10
11
  const path = require('path');
11
- const dotenv = require('dotenv');
12
12
 
13
13
  const agentEnvPath = path.resolve(__dirname, '.env.agent.${AGENT_ID}');
14
- const env = dotenv.config({ path: agentEnvPath }).parsed || {};
14
+ const env = {};
15
+ try {
16
+ for (const line of fs.readFileSync(agentEnvPath, 'utf8').split('\n')) {
17
+ const m = line.match(/^\s*([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*?)\s*$/);
18
+ if (m && !line.trimStart().startsWith('#')) env[m[1]] = m[2].replace(/^["']|["']$/g, '');
19
+ }
20
+ } catch {}
15
21
 
16
22
  module.exports = {
17
23
  apps: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osfactory/har",
3
- "version": "0.61.1",
3
+ "version": "0.61.2",
4
4
  "description": "Open harness for reproducible multi-agent coding workflows",
5
5
  "keywords": [
6
6
  "har",