neurastream 0.2.0 → 0.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neurastream",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Guardrails for running many AI coding agents at once: plan queue, blockers, call budgets, provider caps, scoring, merge-verified close.",
5
5
  "keywords": ["ai-agents", "coding-agents", "orchestration", "guardrails", "omp", "bun", "cli"],
6
6
  "homepage": "https://github.com/umiddey/neurastream#readme",
@@ -73,8 +73,9 @@ function indexLines(file: string): string[] | null {
73
73
  .filter(Boolean);
74
74
  }
75
75
 
76
- export function readIndex(file = indexPath()): string[] {
77
- return [...new Set((indexLines(file) ?? []).map(l => path.resolve(expandHome(l))))];
76
+ // Relative lines resolve against `base` (default: the cwd); a repo INDEX.md passes its repo dir.
77
+ export function readIndex(file = indexPath(), base = process.cwd()): string[] {
78
+ return [...new Set((indexLines(file) ?? []).map(l => path.resolve(base, expandHome(l))))];
78
79
  }
79
80
 
80
81
  export function sections(text: string): Map<string, string> {
@@ -40,7 +40,7 @@ export function queueMigrate(args: string[], cfg: Config): number {
40
40
  continue;
41
41
  }
42
42
  folded++;
43
- kept.push(...readIndex(repoIndex));
43
+ kept.push(...readIndex(repoIndex, l));
44
44
  rmSync(repoIndex);
45
45
  }
46
46
  const unique = [...new Set(kept)];