subagent-cli 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/dist/cli.cjs +27 -0
- package/dist/cli.js +4 -0
- package/package.json +3 -2
package/dist/cli.cjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Morph Code launcher — delegates to Bun if available, falls back to error
|
|
3
|
+
const { execSync, spawn } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const libDir = path.resolve(__dirname, '..');
|
|
7
|
+
const entry = path.join(libDir, 'src', 'entrypoints', 'cli.tsx');
|
|
8
|
+
const preload = path.join(libDir, 'stubs', 'globals.ts');
|
|
9
|
+
|
|
10
|
+
// Check for Bun
|
|
11
|
+
let bunPath;
|
|
12
|
+
try {
|
|
13
|
+
bunPath = execSync('which bun', { encoding: 'utf-8' }).trim();
|
|
14
|
+
} catch {
|
|
15
|
+
console.error('Error: Morph Code requires Bun runtime.');
|
|
16
|
+
console.error('Install Bun: curl -fsSL https://bun.sh/install | bash');
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Launch with Bun
|
|
21
|
+
const child = spawn(bunPath, ['run', '--preload', preload, entry, ...process.argv.slice(2)], {
|
|
22
|
+
stdio: 'inherit',
|
|
23
|
+
cwd: process.cwd(),
|
|
24
|
+
env: process.env,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
child.on('exit', (code) => process.exit(code ?? 0));
|
package/dist/cli.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "subagent-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
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": {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"bin",
|
|
11
11
|
"src",
|
|
12
12
|
"stubs",
|
|
13
|
-
"bunfig.toml"
|
|
13
|
+
"bunfig.toml",
|
|
14
|
+
"dist"
|
|
14
15
|
],
|
|
15
16
|
"scripts": {
|
|
16
17
|
"build": "tsup src/main.tsx --format esm --dts --target node20",
|