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

main
ts 25 lines 588 Bytes
Raw
1 import { uuidv4 } from "./uuid";
2
3 export interface TurnCommandMetadata {
4 readonly commandId: string;
5 readonly messageId: string;
6 readonly threadId: string;
7 readonly createdAt: string;
8 }
9
10 export function makeTurnCommandMetadata(): TurnCommandMetadata {
11 return {
12 commandId: uuidv4(),
13 messageId: uuidv4(),
14 threadId: uuidv4(),
15 createdAt: new Date().toISOString(),
16 };
17 }
18
19 export function makeQueuedMessageMetadata(): Omit<TurnCommandMetadata, "threadId"> {
20 return {
21 commandId: uuidv4(),
22 messageId: uuidv4(),
23 createdAt: new Date().toISOString(),
24 };
25 }