mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 16:34:36 +00:00
Collections return interned references and preserve their arrays when membership and order stay unchanged. Entity selectors share one hook with identity defaults for full snapshots and shallow defaults for selections. The app caches host projections and shares underlying store and host subscriptions. Browser render counts exercise the real session store and plugin provider without memoized rows. Terminal hooks consume the collection source port; daemon-wide terminal discovery is the separate terminal phase.
54 lines
1.5 KiB
TypeScript
54 lines
1.5 KiB
TypeScript
import type { Agent, WorkspaceDescriptor } from "@/stores/session-store";
|
|
export const workspace: WorkspaceDescriptor = {
|
|
createdAt: null,
|
|
lastUserMessageAt: null,
|
|
id: "workspace-1",
|
|
projectId: "project-1",
|
|
projectDisplayName: "Paseo",
|
|
projectRootPath: "/repo/paseo",
|
|
workspaceDirectory: "/repo/paseo/review",
|
|
projectKind: "git",
|
|
workspaceKind: "worktree",
|
|
name: "Review",
|
|
title: "Plugin review",
|
|
pinnedAt: null,
|
|
status: "running",
|
|
statusEnteredAt: new Date("2026-08-16T10:00:00.000Z"),
|
|
archivingAt: null,
|
|
diffStat: { additions: 12, deletions: 3 },
|
|
scripts: [],
|
|
};
|
|
|
|
export const agent: Agent = {
|
|
serverId: "host-1",
|
|
id: "agent-1",
|
|
provider: "codex",
|
|
status: "running",
|
|
turn: { phase: "idle", cancellationRequestId: null },
|
|
createdAt: new Date("2026-08-16T10:01:00.000Z"),
|
|
updatedAt: new Date("2026-08-16T10:02:00.000Z"),
|
|
lastUserMessageAt: null,
|
|
lastActivityAt: new Date("2026-08-16T10:03:00.000Z"),
|
|
capabilities: {
|
|
supportsStreaming: true,
|
|
supportsSessionPersistence: true,
|
|
supportsDynamicModes: true,
|
|
supportsMcpServers: true,
|
|
supportsReasoningStream: true,
|
|
supportsToolInvocations: true,
|
|
},
|
|
currentModeId: "code",
|
|
availableModes: [],
|
|
pendingPermissions: [],
|
|
persistence: null,
|
|
title: "Implement plugin panels",
|
|
cwd: "/repo/paseo/review",
|
|
workspaceId: "workspace-1",
|
|
model: "gpt-5.6",
|
|
thinkingOptionId: "high",
|
|
requiresAttention: true,
|
|
attentionReason: "permission",
|
|
parentAgentId: null,
|
|
labels: { phase: "implementation" },
|
|
};
|