[**zonegaze-flow**](../../../../README.md)

***

[zonegaze-flow](../../../../README.md) / [flow/contracts/src](../README.md) / runtimeStateStreamSnapshotMessageSchema

# Variable: runtimeStateStreamSnapshotMessageSchema

> `const` **runtimeStateStreamSnapshotMessageSchema**: `ZodObject`\<\{ `clineSessionContextVersion`: `ZodNumber`; `currentProjectId`: `ZodNullable`\<`ZodString`\>; `projects`: `ZodArray`\<`ZodObject`\<\{ `id`: `ZodString`; `name`: `ZodString`; `path`: `ZodString`; `taskCounts`: `ZodObject`\<\{ `backlog`: `ZodNumber`; `in_progress`: `ZodNumber`; `next_up`: `ZodNumber`; `review`: `ZodNumber`; `trash`: `ZodNumber`; \}, `$strip`\>; \}, `$strip`\>\>; `type`: `ZodLiteral`\<`"snapshot"`\>; `workspaceMetadata`: `ZodNullable`\<`ZodObject`\<\{ `homeGitStateVersion`: `ZodNumber`; `homeGitSummary`: `ZodNullable`\<`ZodObject`\<\{ `additions`: `ZodNumber`; `aheadCount`: `ZodNumber`; `behindCount`: `ZodNumber`; `changedFiles`: `ZodNumber`; `currentBranch`: `ZodNullable`\<`ZodString`\>; `deletions`: `ZodNumber`; `upstreamBranch`: `ZodNullable`\<`ZodString`\>; \}, `$strip`\>\>; `taskWorkspaces`: `ZodArray`\<`ZodObject`\<\{ `additions`: `ZodNullable`\<`ZodNumber`\>; `baseRef`: `ZodString`; `branch`: `ZodNullable`\<`ZodString`\>; `changedFiles`: `ZodNullable`\<`ZodNumber`\>; `deletions`: `ZodNullable`\<`ZodNumber`\>; `exists`: `ZodBoolean`; `headCommit`: `ZodNullable`\<`ZodString`\>; `isDetached`: `ZodBoolean`; `path`: `ZodString`; `stateVersion`: `ZodNumber`; `taskId`: `ZodString`; `workspaceTaskId`: `ZodOptional`\<`ZodString`\>; \}, `$strip`\>\>; \}, `$strip`\>\>; `workspaceState`: `ZodNullable`\<`ZodObject`\<\{ `board`: `ZodPipe`\<`ZodObject`\<\{ `columns`: `ZodArray`\<`ZodPipe`\<`ZodObject`\<..., ...\>, `ZodTransform`\<..., ...\>\>\>; `dependencies`: `ZodDefault`\<`ZodArray`\<`ZodObject`\<..., ...\>\>\>; `workTypeRegistry`: `ZodPipe`\<`ZodDefault`\<`ZodObject`\<..., ...\>\>, `ZodTransform`\<`RuntimeWorkTypeRegistry`, \{ `types`: ...; `version`: ...; \}\>\>; \}, `$strip`\>, `ZodTransform`\<\{ `columns`: `object`[]; `dependencies`: `object`[]; `workTypeRegistry`: `RuntimeWorkTypeRegistry`; \}, \{ `columns`: `object`[]; `dependencies`: `object`[]; `workTypeRegistry`: `RuntimeWorkTypeRegistry`; \}\>\>; `git`: `ZodObject`\<\{ `branches`: `ZodArray`\<`ZodString`\>; `currentBranch`: `ZodNullable`\<`ZodString`\>; `defaultBranch`: `ZodNullable`\<`ZodString`\>; \}, `$strip`\>; `repoPath`: `ZodString`; `revision`: `ZodNumber`; `sessions`: `ZodRecord`\<`ZodString`, `ZodObject`\<\{ `agentId`: `ZodNullable`\<`ZodEnum`\<\{ `claude`: ...; `cline`: ...; `codex`: ...; `droid`: ...; `gemini`: ...; `kiro`: ...; `opencode`: ...; \}\>\>; `exitCode`: `ZodNullable`\<`ZodNumber`\>; `lastHookAt`: `ZodDefault`\<`ZodNullable`\<`ZodNumber`\>\>; `lastOutputAt`: `ZodNullable`\<`ZodNumber`\>; `latestHookActivity`: `ZodDefault`\<`ZodNullable`\<`ZodObject`\<..., ...\>\>\>; `latestPromptSentAt`: `ZodOptional`\<`ZodNullable`\<`ZodNumber`\>\>; `latestPromptTokenUsageBaseline`: `ZodOptional`\<`ZodNullable`\<`ZodObject`\<..., ...\>\>\>; `latestTurnCheckpoint`: `ZodOptional`\<`ZodNullable`\<`ZodObject`\<..., ...\>\>\>; `mode`: `ZodOptional`\<`ZodNullable`\<`ZodEnum`\<...\>\>\>; `pid`: `ZodNullable`\<`ZodNumber`\>; `previousTurnCheckpoint`: `ZodOptional`\<`ZodNullable`\<`ZodObject`\<..., ...\>\>\>; `reviewReason`: `ZodNullable`\<`ZodEnum`\<\{ `attention`: ...; `error`: ...; `exit`: ...; `hook`: ...; `interrupted`: ...; \}\>\>; `startedAt`: `ZodNullable`\<`ZodNumber`\>; `state`: `ZodEnum`\<\{ `awaiting_review`: `"awaiting_review"`; `failed`: `"failed"`; `idle`: `"idle"`; `interrupted`: `"interrupted"`; `running`: `"running"`; \}\>; `taskId`: `ZodString`; `tokenUsage`: `ZodOptional`\<`ZodNullable`\<`ZodObject`\<..., ...\>\>\>; `updatedAt`: `ZodNumber`; `warningMessage`: `ZodOptional`\<`ZodNullable`\<`ZodString`\>\>; `workspacePath`: `ZodNullable`\<`ZodString`\>; \}, `$strip`\>\>; `statePath`: `ZodString`; \}, `$strip`\>\>; \}, `$strip`\>

Defined in: [flow/contracts/src/api-contract.ts:581](https://github.com/neuralpilot08/zonegaze-flow/blob/ee47e8308e50071e712017a7f8b0db560a4746ee/flow/contracts/src/api-contract.ts#L581)

First message emitted by the runtime state stream when a browser connects.
