basic suggested action scaffolding

This commit is contained in:
Will Chen
2025-04-18 13:03:19 -07:00
parent b2e3631a29
commit 639b3a320c
10 changed files with 149 additions and 86 deletions

View File

@@ -111,14 +111,26 @@ export interface FileChange {
summary: string;
}
// New Proposal interface
export interface Proposal {
export interface CodeProposal {
type: "code-proposal";
title: string;
securityRisks: SecurityRisk[];
filesChanged: FileChange[];
}
export interface SuggestedAction {
id: "restart-app";
}
export interface ActionProposal {
type: "action-proposal";
actions: SuggestedAction[];
}
export type Proposal = CodeProposal | ActionProposal;
export interface ProposalResult {
proposal: Proposal;
chatId: number;
messageId: number;
}