接入显式 Tauri 诊断采集
为 GDD 审批失败使用 diagnostic invoke 包装器 更新命令静态检查器识别诊断调用
This commit is contained in:
@@ -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 &&
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user