接入显式 Tauri 诊断采集
Project CI / Backend tests (pull_request) Failing after 22s
Project CI / Repository checks (pull_request) Failing after 9s
Project CI / Frontend tests (pull_request) Successful in 3m40s
Project CI / Native shell tests (pull_request) Successful in 16m47s

为 GDD 审批失败使用 diagnostic invoke 包装器

更新命令静态检查器识别诊断调用
This commit is contained in:
2026-09-01 19:10:04 +08:00
parent 3c7fcfb6cd
commit 2f0005ecad
2 changed files with 7 additions and 2 deletions
@@ -320,6 +320,7 @@ const APP_INVOKE_BARE_CALL_NAMES = new Set([
'directInvoke',
'invokeInput',
'invokeAuthenticatedInput',
'invokeDiagnostic',
]);
function parseAppInvokeCommandNames(source, fileName = 'fixture.tsx') {
@@ -352,7 +353,10 @@ function parseAppInvokeCommandNames(source, fileName = 'fixture.tsx') {
const isObjectInvoke =
ts.isPropertyAccessExpression(expression) &&
expression.name.text === 'invoke';
const commandArgument = node.arguments[0];
const commandArgument =
ts.isIdentifier(expression) && expression.text === 'invokeDiagnostic'
? node.arguments[1]
: node.arguments[0];
if (
(isBareCall || isObjectInvoke) &&
commandArgument !== undefined &&
+2 -1
View File
@@ -237,6 +237,7 @@ import { ProjectSupervisorView } from './features/project-workspace/ProjectSuper
import { ProjectWorkspaceChatPane } from './features/project-workspace/ProjectWorkspaceChatPane';
import { SupervisorChatOnlyView } from './features/project-workspace/SupervisorChatOnlyView';
import { RuntimeConfigDialog } from './features/runtime-config/RuntimeConfigDialog';
import { invokeDiagnostic } from './services/errorReporting';
import type { HomeCreationType } from './view/home';
import {
type ProjectAgentResultSummary,
@@ -682,7 +683,7 @@ export function App({
setPlanGddDecisionBusy(true);
setPlanGddError(null);
try {
await invoke('decide_game_creator_plan_gdd', {
await invokeDiagnostic(invoke, 'decide_game_creator_plan_gdd', {
projectPath: targetProjectPath,
gddId: pending.gddRef.gddId,
version: pending.gddRef.version,