Remove unncessary interface, repeats existing zod schema
This commit is contained in:
parent
4d44234855
commit
f375e9c4e6
1 changed files with 1 additions and 17 deletions
|
|
@ -2,22 +2,6 @@ import { ApplyState, ToolCallState } from "core";
|
|||
import { IIdeMessenger } from "../context/IdeMessenger";
|
||||
import { store } from "../redux/store";
|
||||
|
||||
interface EditOutcomeData {
|
||||
streamId: string;
|
||||
timestamp: string;
|
||||
modelProvider: string;
|
||||
modelTitle: string;
|
||||
prompt: string;
|
||||
completion: string;
|
||||
previousCode: string;
|
||||
newCode: string;
|
||||
filepath: string;
|
||||
previousCodeLines: number;
|
||||
newCodeLines: number;
|
||||
lineChange: number;
|
||||
accepted: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract model information from tool call state
|
||||
*/
|
||||
|
|
@ -160,7 +144,7 @@ function assembleCompleteEditData(
|
|||
toolCallState: ToolCallState,
|
||||
applyState: ApplyState,
|
||||
accepted: boolean,
|
||||
): EditOutcomeData {
|
||||
) {
|
||||
const modelInfo = extractModelInfo(toolCallState);
|
||||
const promptAndCompletion = extractPromptAndCompletion(toolCallState);
|
||||
const codeChanges = extractCodeChanges(applyState);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue