Type Alias: SessionWithPreview
Makaio Framework / contracts / SessionWithPreview
Type Alias: SessionWithPreview
Section titled “Type Alias: SessionWithPreview”SessionWithPreview =
z.infer<typeofSessionWithPreviewSchema>
Defined in: ../../../packages/contracts/src/session/types.ts:36
Session with optional preview data for list display.
Type Composition
Section titled “Type Composition”SessionWithPreviewz.infer<typeof SessionWithPreviewSchema>typeof SessionWithPreviewSchema
Resolved Shape
Section titled “Resolved Shape”type SessionWithPreview = { sessionId: string; createdAt: number; lastActivityAt: number; agents: Array<{ agentId: string; adapterId: string; adapterName: string; sessionId: string; role: 'lead' | 'member'; status: 'idle' | 'active' | 'dead' | 'disposed'; createdAt: number; lastActivityAt: number; adapterSessionId?: string | undefined; model?: string | undefined; cwd?: string | undefined; providerConfigId?: string | undefined; personaId?: string | undefined; profileId?: string | undefined; harnessId?: string | undefined; clientId?: string | undefined; compressionMode?: 'auto' | 'manual' | 'off' | undefined; }>; status: 'active' | 'discovered' | 'closed' | 'archived'; leadAgentId?: string | undefined; parentSessionId?: string | undefined; rootSessionId?: string | undefined; forkPointMessageId?: string | undefined; branchKind?: 'fork' | 'subagent' | 'compress' | 'branch' | 'aside' | 'rewrite' | 'coordinator' | undefined; adapterName?: string | undefined; adapterSessionId?: string | undefined; adapterId?: string | undefined; clientId?: string | undefined; clientAccountId?: string | undefined; lastClientIdentityObservation?: { clientId: string; source: string; kind: string; observedAt: number; payload: Record<string, unknown>; } | undefined; isOrchestrated?: boolean | undefined; title?: string | undefined; summary?: string | undefined; summaryUpdatedAt?: number | undefined; isImported?: boolean | undefined; forkTransforms?: { removedMessageIds?: Array<string> | undefined; appliedPipeline?: Array<{ actionId: string; options?: Record<string, unknown> | undefined; }> | undefined; segments?: Array<{ fromMessageId: string; toMessageId: string; policy: 'verbatim' | 'summarize' | 'exclude'; stripReasoning?: boolean | undefined; stripToolOutputs?: boolean | undefined; overrides?: Record<string, 'exclude'> | undefined; summaryText?: string | undefined; }> | undefined; } | undefined; targetWorkingDirectory?: string | undefined; executionTargetId?: string | undefined; spawningToolCallId?: string | undefined; approvalPolicyOverride?: 'reject' | 'always-ask' | 'full-access' | null | undefined; preview?: { messageCount: number; firstUserMessage: string | null; } | undefined;};