Julius MarmingeT3 Code Mobile [WIP] (#2013)b3e8c035 months agoHistory
25 lines · 588 B · TypeScript
RawDownload
import { uuidv4 } from "./uuid"; export interface TurnCommandMetadata {  readonly commandId: string;  readonly messageId: string;  readonly threadId: string;  readonly createdAt: string;} export function makeTurnCommandMetadata(): TurnCommandMetadata {  return {    commandId: uuidv4(),    messageId: uuidv4(),    threadId: uuidv4(),    createdAt: new Date().toISOString(),  };} export function makeQueuedMessageMetadata(): Omit<TurnCommandMetadata, "threadId"> {  return {    commandId: uuidv4(),    messageId: uuidv4(),    createdAt: new Date().toISOString(),  };}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t