@yemi33/minions 0.1.2117 → 0.1.2118

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.
@@ -31,7 +31,11 @@ const path = require('path');
31
31
  const fs = require('fs');
32
32
 
33
33
  function _resolveMinionsDir() {
34
- const envHome = process.env.MINIONS_HOME || process.env.MINIONS_TEST_DIR;
34
+ // Canonical order: MINIONS_TEST_DIR wins over MINIONS_HOME (matches
35
+ // engine/db/index.js + migrations 002/003/004). Reversing this lets a
36
+ // test that sets both env vars open the DB at MINIONS_TEST_DIR but
37
+ // backfill its tables from MINIONS_HOME — cross-directory corruption.
38
+ const envHome = process.env.MINIONS_TEST_DIR || process.env.MINIONS_HOME;
35
39
  if (envHome) return envHome;
36
40
  try { return require('../../shared').MINIONS_DIR; } catch { return null; }
37
41
  }
@@ -15,7 +15,11 @@ const path = require('path');
15
15
  const fs = require('fs');
16
16
 
17
17
  function _resolveMinionsDir() {
18
- const envHome = process.env.MINIONS_HOME || process.env.MINIONS_TEST_DIR;
18
+ // Canonical order: MINIONS_TEST_DIR wins over MINIONS_HOME (matches
19
+ // engine/db/index.js + migrations 002/003/004). Reversing this lets a
20
+ // test that sets both env vars open the DB at MINIONS_TEST_DIR but
21
+ // backfill its tables from MINIONS_HOME — cross-directory corruption.
22
+ const envHome = process.env.MINIONS_TEST_DIR || process.env.MINIONS_HOME;
19
23
  if (envHome) return envHome;
20
24
  try { return require('../../shared').MINIONS_DIR; } catch { return null; }
21
25
  }
@@ -14,7 +14,11 @@ const path = require('path');
14
14
  const fs = require('fs');
15
15
 
16
16
  function _resolveMinionsDir() {
17
- const envHome = process.env.MINIONS_HOME || process.env.MINIONS_TEST_DIR;
17
+ // Canonical order: MINIONS_TEST_DIR wins over MINIONS_HOME (matches
18
+ // engine/db/index.js + migrations 002/003/004). Reversing this lets a
19
+ // test that sets both env vars open the DB at MINIONS_TEST_DIR but
20
+ // backfill its tables from MINIONS_HOME — cross-directory corruption.
21
+ const envHome = process.env.MINIONS_TEST_DIR || process.env.MINIONS_HOME;
18
22
  if (envHome) return envHome;
19
23
  try { return require('../../shared').MINIONS_DIR; } catch { return null; }
20
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.2117",
3
+ "version": "0.1.2118",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"