subagent-cli 0.2.4 → 0.2.6

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/dist/cli.cjs CHANGED
@@ -6,6 +6,7 @@ const path = require('path');
6
6
  const libDir = path.resolve(__dirname, '..');
7
7
  const entry = path.join(libDir, 'src', 'entrypoints', 'cli.tsx');
8
8
  const preload = path.join(libDir, 'stubs', 'globals.ts');
9
+ const tsconfig = path.join(libDir, 'tsconfig.json');
9
10
 
10
11
  // Find Bun
11
12
  let bunPath;
@@ -17,12 +18,12 @@ try {
17
18
  process.exit(1);
18
19
  }
19
20
 
20
- // Launch Bun with --cwd pointing to the package root so tsconfig.json
21
- // path aliases (src/*) resolve correctly, but pass the real cwd via env
22
- // so file operations use the user's directory.
23
- const child = spawn(bunPath, ['run', '--cwd', libDir, '--preload', preload, entry, ...process.argv.slice(2)], {
21
+ // Launch Bun in the USER's cwd (not the package dir).
22
+ // Use --tsconfig-override to resolve src/* path aliases without changing cwd.
23
+ const child = spawn(bunPath, ['run', '--tsconfig-override', tsconfig, '--preload', preload, entry, ...process.argv.slice(2)], {
24
24
  stdio: 'inherit',
25
- env: { ...process.env, SA_USER_CWD: process.cwd() },
25
+ cwd: process.cwd(),
26
+ env: process.env,
26
27
  });
27
28
 
28
29
  child.on('exit', (code) => process.exit(code ?? 0));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "subagent-cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "sa — Morph Code CLI (Claude Code fork with multi-provider LLM, WarpGrep, and subagent support)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -65,10 +65,9 @@ export function getBuiltInAgents(): AgentDefinition[] {
65
65
  agents.push(VERIFICATION_AGENT)
66
66
  }
67
67
 
68
- // WarpGrep semantic code search agent (requires MORPH_API_KEY)
69
- if (isWarpGrepAvailable()) {
70
- agents.push(WARP_GREP_AGENT)
71
- }
68
+ // WarpGrep semantic code search agent always registered.
69
+ // If MORPH_API_KEY is missing at runtime, the tool returns a helpful error.
70
+ agents.push(WARP_GREP_AGENT)
72
71
 
73
72
  return agents
74
73
  }