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:
1 parent
fc51c3be37
commit
d2e20d428a
50 files changed
+5104
-188
No files matched your search
@@ -11,7 +11,7 @@ import type {
|
||||
PluginConnection,
|
||||
WorkspaceStore,
|
||||
} from "../../src/core/interfaces.js";
|
||||
import type { InstanceState, SessionState, WorkspaceInfo } from "../../src/protocol/types.js";
|
||||
import type { InstanceState, RecentSessionInfo, SessionState, WorkspaceInfo } from "../../src/protocol/types.js";
|
||||
|
||||
export interface CommandCall {
|
||||
id: string;
|
||||
@@ -211,6 +211,8 @@ export class FakeWorkspaceStore implements WorkspaceStore {
|
||||
updateCalls: { workspaceId: string; patch: Record<string, unknown> }[] = [];
|
||||
removeCalls: string[] = [];
|
||||
refreshCalls: (string | undefined)[] = [];
|
||||
/** Seeded answer for `recentSessions()`; the fake never touches disk. */
|
||||
recentSessionRows: RecentSessionInfo[] = [];
|
||||
|
||||
constructor(seed: WorkspaceInfo[] = []) {
|
||||
for (const workspace of seed) this.workspaces.set(workspace.workspaceId, workspace);
|
||||
@@ -262,6 +264,10 @@ export class FakeWorkspaceStore implements WorkspaceStore {
|
||||
async ensureForCwd(cwd: string): Promise<WorkspaceInfo> {
|
||||
return this.byCwd(cwd) ?? this.add({ cwd });
|
||||
}
|
||||
|
||||
recentSessions(limit = 20): RecentSessionInfo[] {
|
||||
return this.recentSessionRows.slice(0, limit);
|
||||
}
|
||||
}
|
||||
|
||||
export class FakeBus implements Bus {
|
||||
|
||||
Reference in new issue
Block a user