The best way to control Claude Code, Codex and more from any computer or phone
| 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; |