Keep track of API usage in user accounts, improve approval mechanism (#95)

This commit is contained in:
Brian Hackett
2025-04-04 14:40:10 -07:00
committed by GitHub
parent 4f5051dee5
commit 9389fb2afc
11 changed files with 190 additions and 120 deletions

View File

@@ -8,6 +8,11 @@ interface MessageBase {
id: string;
role: MessageRole;
repositoryId?: string;
peanuts?: number;
// Not part of the protocol, indicates whether the user has explicitly approved
// the message. Once approved, the approve/reject UI is not shown again for the message.
approved?: boolean;
}
interface MessageText extends MessageBase {