1import { OrchestrationV2ThreadShell, ThreadId } from "@t3tools/contracts";
2import * as DateTime from "effect/DateTime";
3import * as Schema from "effect/Schema";
4
5const threadId = ThreadId.make("chat");
6export const hubInboxThread = Schema.decodeSync(OrchestrationV2ThreadShell)({
7 id: threadId,
8 projectId: "project",
9 title: "Chat on a sleeping computer",
10 providerInstanceId: "codex",
11 modelSelection: { instanceId: "codex", model: "gpt-6" },
12 runtimeMode: "full-access",
13 interactionMode: "default",
14 branch: null,
15 worktreePath: null,
16 activeProviderThreadId: null,
17 lineage: { rootThreadId: threadId, parentThreadId: null, relationshipToParent: null },
18 forkedFrom: null,
19 createdBy: "user",
20 creationSource: "web",
21 createdAt: DateTime.makeUnsafe(0),
22 updatedAt: DateTime.makeUnsafe(0),
23 archivedAt: null,
24 settledOverride: null,
25 settledAt: null,
26 snoozedUntil: null,
27 snoozedAt: null,
28 pinnedAt: null,
29 pinOrderKey: null,
30 activeOrderKey: null,
31 autoSettleDisabledAt: null,
32 lastVisitedAt: null,
33 deletedAt: null,
34 latestRunId: null,
35 activeRunId: null,
36 status: "idle",
37 pendingRuntimeRequest: null,
38 latestVisibleMessage: null,
39 latestUserMessageAt: null,
40 hasActionableProposedPlan: false,
41 itemCount: 0,
42 visibleItemCount: 0,
43});