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

+20
View File
@@ -318,6 +318,26 @@ export type WorkspaceVisibility = "default" | "secondary";
export type WorkspaceVisibilityReason = "hidden" | "ghost" | "temp" | "outside-roots" | "stale";
/**
* One disk-projected session row for the cross-workspace recent-activity feed.
*
* This is file metadata only (header id/timestamp + mtime); the daemon never
* parses entries or owns session state (docs/protocol.md §3.1). Live names and
* statuses are layered on by the client through `/workspaces/:id/sessions`.
*/
export interface RecentSessionInfo {
sessionId: string;
workspaceId: string;
/** Workspace display name (alias → basename), for the row's meta line. */
workspaceName: string;
cwd: string;
sessionFile: string;
/** Session start, from the JSONL header (or the file name), epoch ms. */
timestamp: number;
/** File mtime, epoch ms — the recency sort key. */
modified: number;
}
export type DaemonCommandMethod =
| "instance.ensure"
| "instance.shutdown"