@yemi33/minions 0.1.520 → 0.1.521

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/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.520 (2026-04-07)
3
+ ## 0.1.521 (2026-04-07)
4
+
5
+ ### Features
6
+ - test isolation — tests no longer pollute production data
4
7
 
5
8
  ### Other
6
9
  - perf: reduce curl timeout to 5s, cache getDispatch() reads
@@ -1012,6 +1012,7 @@ function createReviewFeedbackForAuthor(reviewerAgentId, pr, config) {
1012
1012
  }
1013
1013
 
1014
1014
  function updateMetrics(agentId, dispatchItem, result, taskUsage, prsCreatedCount, model) {
1015
+ if (!agentId || agentId.startsWith('temp-') || agentId === 'agent1' || agentId === 'reviewer' || agentId.startsWith('_test')) return;
1015
1016
 
1016
1017
  const metricsPath = path.join(ENGINE_DIR, 'metrics.json');
1017
1018
  mutateJsonFileLocked(metricsPath, metrics => {
package/engine/llm.js CHANGED
@@ -7,11 +7,12 @@ const path = require('path');
7
7
  const shared = require('./shared');
8
8
  const { safeWrite, safeUnlink, uid, runFile, cleanChildEnv, parseStreamJsonOutput, mutateJsonFileLocked } = shared;
9
9
 
10
- const MINIONS_DIR = path.resolve(__dirname, '..');
11
- const ENGINE_DIR = __dirname;
10
+ const MINIONS_DIR = shared.MINIONS_DIR;
11
+ const ENGINE_DIR = path.join(MINIONS_DIR, 'engine');
12
12
 
13
13
  function trackEngineUsage(category, usage) {
14
14
  if (!usage) return;
15
+ if (category && (category.startsWith('_test') || category.startsWith('test-'))) return;
15
16
  try {
16
17
  const metricsPath = path.join(ENGINE_DIR, 'metrics.json');
17
18
  mutateJsonFileLocked(metricsPath, (metrics) => {
package/engine/shared.js CHANGED
@@ -6,7 +6,7 @@
6
6
  const fs = require('fs');
7
7
  const path = require('path');
8
8
 
9
- const MINIONS_DIR = path.resolve(__dirname, '..');
9
+ const MINIONS_DIR = process.env.MINIONS_TEST_DIR || path.resolve(__dirname, '..');
10
10
  const PR_LINKS_PATH = path.join(MINIONS_DIR, 'engine', 'pr-links.json');
11
11
  const LOG_PATH = path.join(__dirname, 'log.json');
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.520",
3
+ "version": "0.1.521",
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"