Merge remote-tracking branch 'origin/main' into feat/extend-models-support

This commit is contained in:
Kacper
2025-12-10 14:57:37 +01:00
16 changed files with 2919 additions and 168 deletions

View File

@@ -162,22 +162,26 @@ export type AutoModeEvent =
| {
type: "auto_mode_feature_start";
featureId: string;
projectId?: string;
feature: unknown;
}
| {
type: "auto_mode_progress";
featureId: string;
projectId?: string;
content: string;
}
| {
type: "auto_mode_tool";
featureId: string;
projectId?: string;
tool: string;
input: unknown;
}
| {
type: "auto_mode_feature_complete";
featureId: string;
projectId?: string;
passes: boolean;
message: string;
}
@@ -185,14 +189,17 @@ export type AutoModeEvent =
type: "auto_mode_error";
error: string;
featureId?: string;
projectId?: string;
}
| {
type: "auto_mode_complete";
message: string;
projectId?: string;
}
| {
type: "auto_mode_phase";
featureId: string;
projectId?: string;
phase: "planning" | "action" | "verification";
message: string;
}
@@ -205,6 +212,57 @@ export type AutoModeEvent =
estimatedTime?: string;
};
export type SpecRegenerationEvent =
| {
type: "spec_regeneration_progress";
content: string;
}
| {
type: "spec_regeneration_tool";
tool: string;
input: unknown;
}
| {
type: "spec_regeneration_complete";
message: string;
}
| {
type: "spec_regeneration_error";
error: string;
};
export interface SpecRegenerationAPI {
create: (
projectPath: string,
projectOverview: string,
generateFeatures?: boolean
) => Promise<{
success: boolean;
error?: string;
}>;
generate: (
projectPath: string,
projectDefinition: string
) => Promise<{
success: boolean;
error?: string;
}>;
stop: () => Promise<{
success: boolean;
error?: string;
}>;
status: () => Promise<{
success: boolean;
isRunning?: boolean;
error?: string;
}>;
onEvent: (callback: (event: SpecRegenerationEvent) => void) => () => void;
}
export interface AutoModeAPI {
start: (projectPath: string) => Promise<{
success: boolean;
@@ -411,6 +469,9 @@ export interface ElectronAPI {
// Git Operations APIs (for non-worktree operations)
git: GitAPI;
// Spec Regeneration APIs
specRegeneration: SpecRegenerationAPI;
}
export interface WorktreeInfo {