feat: session-first workspace activity and installable daemon

Workspaces page:
- list the newest sessions across workspaces in the activity column; the
  daemon exposes GET /api/v1/sessions/recent as a disk projection and the
  browser enriches live rows from the per-workspace session relay
- put recent activity first below 1100px and fix the mobile page-header
  flex-basis gap

Smoke:
- pin PI2_HOST=127.0.0.1 in both smoke scripts and make the startup-line
  assertion follow the configured host; the daemon default stays 0.0.0.0

Install:
- standalone binary build/install scripts, packaging templates, CI/release
  hooks, CLI-first install docs and the supporting config/doctor changes
This commit is contained in:
yuez committed 2026-10-28 10:53:48 +08:00
1 parent fc51c3be37
commit d2e20d428a
50 files changed
+5104 -188

No files matched your search

+3 -1
View File
@@ -5,7 +5,7 @@
"license": "MIT",
"description": "pi2 web console daemon (`pi2 daemon`): HTTP/WS gateway, workspace registry and instance supervisor for pi2.nvim",
"engines": {
"node": ">=22"
"node": ">=20"
},
"bin": {
"pi2": "./dist/cli/pi2.js"
@@ -39,6 +39,8 @@
"dev": "tsx watch src/cli/pi2.ts daemon",
"build": "tsc -p tsconfig.json",
"build:web": "pnpm --dir web build",
"build:binary": "bash scripts/build-binary.sh",
"smoke:binary": "bash scripts/smoke-binary.sh",
"prepack": "npm run build && npm run build:web",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run",