subagent-cli 0.2.1 → 0.2.3

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
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // Morph Code launcher — delegates to Bun if available, falls back to error
2
+ // Morph Code launcher — delegates to Bun
3
3
  const { execSync, spawn } = require('child_process');
4
4
  const path = require('path');
5
5
 
@@ -7,7 +7,7 @@ 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
- // Check for Bun
10
+ // Find Bun
11
11
  let bunPath;
12
12
  try {
13
13
  bunPath = execSync('which bun', { encoding: 'utf-8' }).trim();
@@ -17,11 +17,12 @@ try {
17
17
  process.exit(1);
18
18
  }
19
19
 
20
- // Launch with Bun
21
- const child = spawn(bunPath, ['run', '--preload', preload, entry, ...process.argv.slice(2)], {
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)], {
22
24
  stdio: 'inherit',
23
- cwd: process.cwd(),
24
- env: process.env,
25
+ env: { ...process.env, SA_USER_CWD: process.cwd() },
25
26
  });
26
27
 
27
28
  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.1",
3
+ "version": "0.2.3",
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": {
@@ -11,7 +11,8 @@
11
11
  "src",
12
12
  "stubs",
13
13
  "bunfig.toml",
14
- "dist"
14
+ "dist",
15
+ "tsconfig.json"
15
16
  ],
16
17
  "scripts": {
17
18
  "build": "tsup src/main.tsx --format esm --dts --target node20",
@@ -97,7 +98,16 @@
97
98
  "@ant/computer-use-input": "file:./stubs/@ant/computer-use-input",
98
99
  "@anthropic-ai/claude-agent-sdk": "file:./stubs/@anthropic-ai/claude-agent-sdk",
99
100
  "@anthropic-ai/mcpb": "file:./stubs/@anthropic-ai/mcpb",
100
- "@anthropic-ai/sandbox-runtime": "file:./stubs/@anthropic-ai/sandbox-runtime"
101
+ "@anthropic-ai/sandbox-runtime": "file:./stubs/@anthropic-ai/sandbox-runtime",
102
+ "supports-hyperlinks": "*",
103
+ "auto-bind": "*",
104
+ "code-excerpt": "*",
105
+ "emoji-regex": "*",
106
+ "indent-string": "*",
107
+ "ws": "*",
108
+ "undici": "*",
109
+ "stack-utils": "*",
110
+ "cli-boxes": "*"
101
111
  },
102
112
  "devDependencies": {
103
113
  "@types/diff": "^7.0.2",
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
+ "jsx": "react-jsx",
7
+ "jsxImportSource": "react",
8
+ "strict": false,
9
+ "noImplicitAny": false,
10
+ "strictNullChecks": false,
11
+ "esModuleInterop": true,
12
+ "allowImportingTsExtensions": true,
13
+ "noEmit": true,
14
+ "skipLibCheck": true,
15
+ "resolveJsonModule": true,
16
+ "isolatedModules": true,
17
+ "verbatimModuleSyntax": false,
18
+ "allowJs": true,
19
+ "paths": {
20
+ "src/*": ["./src/*"],
21
+ "color-diff-napi": ["./src/native-ts/color-diff/index.ts"]
22
+ },
23
+ "baseUrl": ".",
24
+ "types": []
25
+ },
26
+ "include": ["src/**/*", "stubs/**/*"],
27
+ "exclude": ["node_modules"]
28
+ }