fix(HAI-005): fix pre-existing build errors in types, executor, and dashboard server
This commit is contained in:
@@ -21,6 +21,7 @@ export interface Task {
|
||||
column: Column;
|
||||
dependencies: string[];
|
||||
worktree?: string;
|
||||
status?: string;
|
||||
steps: TaskStep[];
|
||||
currentStep: number;
|
||||
log: TaskLogEntry[];
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface ServerOptions {
|
||||
maxConcurrent?: number;
|
||||
}
|
||||
|
||||
export function createServer(store: TaskStore, options?: ServerOptions) {
|
||||
export function createServer(store: TaskStore, options?: ServerOptions): ReturnType<typeof express> {
|
||||
const app = express();
|
||||
app.use(express.json());
|
||||
|
||||
|
||||
@@ -226,7 +226,7 @@ export class TaskExecutor {
|
||||
),
|
||||
}),
|
||||
execute: async (_toolCallId, params) => {
|
||||
const { step, type: reviewType, step_name, baseline } = params;
|
||||
const { step, type: reviewType, step_name, baseline } = params as { step: number; type: "plan" | "code"; step_name: string; baseline?: string };
|
||||
|
||||
console.log(
|
||||
`[reviewer] ${taskId}: ${reviewType} review for Step ${step} (${step_name})`,
|
||||
|
||||
Reference in New Issue
Block a user