@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
ts 25 lines 955 Bytes
Raw
1 import * as Schema from "effect/Schema";
2
3 import { CommandId, IsoDateTime } from "./baseSchemas.ts";
4
5 export const ThreadTitleRegeneration = Schema.Struct({
6 requestId: CommandId,
7 startedAt: IsoDateTime,
8 });
9 export type ThreadTitleRegeneration = typeof ThreadTitleRegeneration.Type;
10
11 export const ThreadTitleRegenerationStatus = Schema.Literals(["renamed", "unchanged", "failed"]);
12 export type ThreadTitleRegenerationStatus = typeof ThreadTitleRegenerationStatus.Type;
13
14 export const ThreadTitleRegenerationOutcome = Schema.Struct({
15 status: ThreadTitleRegenerationStatus,
16 message: Schema.optional(Schema.String),
17 });
18 export type ThreadTitleRegenerationOutcome = typeof ThreadTitleRegenerationOutcome.Type;
19
20 export const LastThreadTitleRegeneration = Schema.Struct({
21 ...ThreadTitleRegenerationOutcome.fields,
22 requestId: CommandId,
23 completedAt: IsoDateTime,
24 });
25 export type LastThreadTitleRegeneration = typeof LastThreadTitleRegeneration.Type;