ad2b40dd4f
- Restructure CLI with citty multi-command framework
- nerve init: create workspace skeleton at ~/.uncaged-nerve/
- nerve start: foreground + daemon (-d) modes with graceful shutdown
- nerve stop: SIGTERM → 10s wait → SIGKILL, PID file cleanup
- nerve status: show pid, uptime, senses, workers
- nerve validate: parse nerve.yaml with error reporting
- workspace.ts: shared utilities (PID file, paths, isRunning)
- Example cpu-usage sense with realistic os.cpus() compute
小橘 🍊(NEKO Team)
23 lines
426 B
JSON
23 lines
426 B
JSON
{
|
|
"name": "@uncaged/nerve-cli",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"bin": {
|
|
"nerve": "dist/cli.js"
|
|
},
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"build": "tsup"
|
|
},
|
|
"dependencies": {
|
|
"@uncaged/nerve-core": "workspace:*",
|
|
"@uncaged/nerve-daemon": "workspace:*",
|
|
"citty": "^0.1.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0"
|
|
}
|
|
}
|