chore(toolchain): upgrade Bun to 1.4.4 and migrate console to TanStack Router

This commit is contained in:
root committed 2026-11-06 00:02:36 +08:00
1 parent b44ebc2ba1
commit 3b9376c75a
134 files changed
+893 -692

No files matched your search

+2 -2
View File
@@ -329,7 +329,7 @@ class PiAgentRun implements AgentRunHandle {
const content = toolContent(output, this.supportsImages);
const notice = this.budgetNotice();
if (notice) content.push({ type: "text", text: notice });
return { content };
return { output: content };
} catch (error) {
// 中止 / 挂起:交给 harness(中止写 aborted 结果;挂起时调用保持未完成)
if (this.closed || context.abortSignal?.aborted) throw error;
@@ -836,7 +836,7 @@ export function checkToolCall(
}
function errorResult(text: string): ToolExecutionResult {
return { content: [{ type: "text", text }], isError: true };
return { output: [{ type: "text", text }], isError: true };
}
/** 没有得到回答的输入 → 失败原因 */