Files
pi2d/package.json
T
yuez 7e780515ac feat(cli)!: merge the daemon into pi2 as the daemon subcommand
`pi2 daemon [start] [flags]` now starts the web-console daemon. The
`pi2d` executable, its bin entry and its entry module are removed: the
daemon keeps its lock -> token -> plugin socket -> listen -> daemon.json
lifecycle, its single stdout line (`pi2 daemon listening on ...`) and the
signal handling that leaves managed nvim instances running.

Service files are renamed to `pi2.service` / `com.pi2.daemon`, and the
smoke and e2e harnesses start the daemon through `pi2 daemon`.

BREAKING CHANGE: the `pi2d` command no longer exists; use `pi2 daemon`
(or `pi2 daemon start`). Existing systemd/launchd units installed under
the old names must be reinstalled with `pi2 install-service --write`.
2026-10-22 15:47:48 +08:00

37 lines
942 B
JSON

{
"name": "pi2-web-daemon",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "pi2 web console daemon (`pi2 daemon`): HTTP/WS gateway, workspace registry and instance supervisor for pi2.nvim",
"engines": {
"node": ">=22"
},
"bin": {
"pi2": "./dist/cli/pi2.js"
},
"scripts": {
"dev": "tsx watch src/cli/pi2.ts daemon",
"build": "tsc -p tsconfig.json",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"lint": "tsc -p tsconfig.json --noEmit",
"start": "node dist/cli/pi2.js daemon --foreground",
"smoke": "bash scripts/smoke.sh"
},
"dependencies": {
"@hono/node-server": "^1.13.7",
"hono": "^4.6.14",
"ws": "^8.18.0",
"zod": "^3.24.1"
},
"devDependencies": {
"@types/node": "^22.10.2",
"@types/ws": "^8.5.13",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
}
}