subagent-cli 0.2.6 → 0.2.7
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 +12 -4
- package/package.json +3 -2
package/dist/cli.cjs
CHANGED
|
@@ -6,7 +6,16 @@ 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
|
-
|
|
9
|
+
|
|
10
|
+
// Ensure node_modules/src symlink exists (resolves 'src/*' imports without tsconfig)
|
|
11
|
+
const fs = require('fs');
|
|
12
|
+
const symlinkPath = path.join(libDir, 'node_modules', 'src');
|
|
13
|
+
try {
|
|
14
|
+
if (!fs.existsSync(symlinkPath)) {
|
|
15
|
+
fs.mkdirSync(path.join(libDir, 'node_modules'), { recursive: true });
|
|
16
|
+
fs.symlinkSync(path.join(libDir, 'src'), symlinkPath);
|
|
17
|
+
}
|
|
18
|
+
} catch {}
|
|
10
19
|
|
|
11
20
|
// Find Bun
|
|
12
21
|
let bunPath;
|
|
@@ -18,9 +27,8 @@ try {
|
|
|
18
27
|
process.exit(1);
|
|
19
28
|
}
|
|
20
29
|
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
const child = spawn(bunPath, ['run', '--tsconfig-override', tsconfig, '--preload', preload, entry, ...process.argv.slice(2)], {
|
|
30
|
+
// Run in the user's cwd — no --cwd or --tsconfig-override needed
|
|
31
|
+
const child = spawn(bunPath, ['run', '--preload', preload, entry, ...process.argv.slice(2)], {
|
|
24
32
|
stdio: 'inherit',
|
|
25
33
|
cwd: process.cwd(),
|
|
26
34
|
env: process.env,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "subagent-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
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": {
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"typecheck": "tsc --noEmit",
|
|
21
21
|
"test": "vitest --run",
|
|
22
22
|
"clean": "rm -rf dist",
|
|
23
|
-
"start": "bun run --preload ./stubs/globals.ts ./src/entrypoints/cli.tsx"
|
|
23
|
+
"start": "bun run --preload ./stubs/globals.ts ./src/entrypoints/cli.tsx",
|
|
24
|
+
"postinstall": "node -e \"const f=require(\"fs\"),p=require(\"path\");try{const s=p.join(__dirname,\"node_modules\",\"src\");if(!f.existsSync(s)){f.mkdirSync(p.join(__dirname,\"node_modules\"),{recursive:true});f.symlinkSync(p.join(__dirname,\"src\"),s)}}catch{}\""
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@anthropic-ai/sdk": "^0.80.0",
|