@yejianfei.billy/subagent-cli 0.1.2
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/LICENSE +201 -0
- package/README.md +310 -0
- package/dist/app.js +22501 -0
- package/dist/cli.js +4149 -0
- package/dist/lib/darwin-arm64/pty.node +0 -0
- package/dist/lib/darwin-arm64/spawn-helper +0 -0
- package/dist/lib/darwin-x64/pty.node +0 -0
- package/dist/lib/darwin-x64/spawn-helper +0 -0
- package/dist/lib/linux-x64/pty.node +0 -0
- package/dist/lib/linux-x64/spawn-helper +0 -0
- package/dist/subagent-cli +2 -0
- package/package.json +59 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yejianfei.billy/subagent-cli",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Delegate tasks to sub-agent CLI instances (Claude Code, Codex, etc.)",
|
|
5
|
+
"main": "dist/cli.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"subagent-cli": "./dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "webpack --mode production",
|
|
11
|
+
"dev": "webpack --mode development",
|
|
12
|
+
"watch": "webpack --mode development --watch",
|
|
13
|
+
"test": "node --test test/app.test.js test/detect.test.js test/screen.test.js test/adapter.test.js",
|
|
14
|
+
"test:e2e:claude": "npm run build && node --test test/e2e.test.js",
|
|
15
|
+
"test:e2e:codex": "npm run build && node --test test/e2e-codex.test.js",
|
|
16
|
+
"postbuild": "chmod +x dist/lib/*/spawn-helper 2>/dev/null || true && printf '#!/usr/bin/env bash\\nexec node \"$(dirname \"$(readlink -f \"$0\" 2>/dev/null || echo \"$0\")\")/cli.js\" \"$@\"\\n' > dist/subagent-cli && chmod +x dist/subagent-cli",
|
|
17
|
+
"test:all": "npm run build && npm test && npm run test:e2e:claude",
|
|
18
|
+
"clean": "rm -rf dist",
|
|
19
|
+
"preversion": "npm run lint && npm run build && npm test",
|
|
20
|
+
"version": "grep -q \"## \\[$(node -p 'require(\"./package.json\").version')\\]\" CHANGELOG.md || (echo 'ERROR: CHANGELOG.md missing entry for this version' && exit 1) && git add -A",
|
|
21
|
+
"postversion": "git push origin master --tags",
|
|
22
|
+
"prepublishOnly": "npm run build && npm run fetch-linux",
|
|
23
|
+
"fetch-linux": "VERSION=$(node -p 'require(\"./package.json\").version') && curl -sL \"https://github.com/yejianfei/subagent-cli/releases/download/v${VERSION}/subagent-cli-v${VERSION}-linux-x64.tar.gz\" -o /tmp/linux-x64.tar.gz && tar xzf /tmp/linux-x64.tar.gz -C /tmp && mkdir -p dist/lib/linux-x64 && cp /tmp/subagent-cli-v${VERSION}-linux-x64/lib/linux-x64/* dist/lib/linux-x64/ && rm -rf /tmp/linux-x64.tar.gz /tmp/subagent-cli-v${VERSION}-linux-x64 && echo \"Fetched linux-x64 binaries from v${VERSION} release\"",
|
|
24
|
+
"lint": "eslint src/",
|
|
25
|
+
"lint:fix": "eslint src/ --fix",
|
|
26
|
+
"postinstall": "chmod +x node_modules/node-pty/prebuilds/*/spawn-helper 2>/dev/null || true"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist/"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@eslint/js": "^9.39.4",
|
|
36
|
+
"@koa/router": "^13.1.0",
|
|
37
|
+
"@types/koa": "^2.15.0",
|
|
38
|
+
"@types/koa__router": "^12.0.0",
|
|
39
|
+
"@types/node": "^22.0.0",
|
|
40
|
+
"@types/supertest": "^7.2.0",
|
|
41
|
+
"@types/ws": "^8.5.0",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
43
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
44
|
+
"@xterm/headless": "^5.5.0",
|
|
45
|
+
"commander": "^12.0.0",
|
|
46
|
+
"copy-webpack-plugin": "^13.0.0",
|
|
47
|
+
"eslint": "^9.39.4",
|
|
48
|
+
"globals": "^17.4.0",
|
|
49
|
+
"koa": "^2.15.0",
|
|
50
|
+
"node-pty": "^1.1.0",
|
|
51
|
+
"supertest": "^7.2.2",
|
|
52
|
+
"ts-loader": "^9.5.0",
|
|
53
|
+
"tsx": "^4.21.0",
|
|
54
|
+
"typescript": "^5.7.0",
|
|
55
|
+
"webpack": "^5.101.0",
|
|
56
|
+
"webpack-cli": "^5.1.0",
|
|
57
|
+
"ws": "^8.18.0"
|
|
58
|
+
}
|
|
59
|
+
}
|