新建作品改为直接进入对话落盘,按本局创作方案写能力,并把楼层呈现和零层卡分开。

输入栏同时可以按分组切换模型。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-30 12:00:46 +08:00
co-authored by Cursor
parent 39fe2732fb
commit c2c9203fb0
87 changed files with 8413 additions and 3180 deletions
+12 -1
View File
@@ -58,6 +58,17 @@ export type AgentDriver = {
export const DEFAULT_DRIVER_MAX_ITERATIONS = 12;
/** 工具循环用尽轮次仍未收口。 */
export class DriverIterationLimitError extends Error {
readonly iterations: number;
constructor(maxIterations: number) {
super(`Driver exceeded ${maxIterations} iterations`);
this.name = "DriverIterationLimitError";
this.iterations = maxIterations;
}
}
function assistantMessageFromToolCalls(
content: string | null,
toolCalls: DriverToolCall[],
@@ -158,7 +169,7 @@ export function createLocalLlmDriver(llm: LlmProvider): AgentDriver {
}
}
throw new Error(`Driver exceeded ${maxIterations} iterations`);
throw new DriverIterationLimitError(maxIterations);
},
};
}