From 3f47b2df87250a5cc9c83532f188c65710fbbade Mon Sep 17 00:00:00 2001 From: kdletters Date: Tue, 4 Aug 2026 21:37:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmaster=E7=8E=B0=E6=9C=89CI?= =?UTF-8?q?=E5=9F=BA=E7=BA=BF=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 整理六处前端导入顺序并移除未使用类型导入 同步Project Supervisor测试断言到权威Prompt Bundle文案 --- .../src-tauri/src/tests/collaboration/static_deliveries.rs | 4 ++-- .../src/features/project-workspace/SupervisorChatOnlyView.tsx | 2 +- apps/ai-game-creator-shell/tests/agentRuntimeModel.test.ts | 2 +- src/components/image-editor/ImageCanvasEditorView.test.tsx | 1 - src/components/image-editor/ImageCanvasEditorView.tsx | 2 +- .../image-editor/ImageCanvasLayerCommandModel.test.ts | 2 +- src/components/image-editor/useImageCanvasLayerCommands.ts | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/tests/collaboration/static_deliveries.rs b/apps/ai-game-creator-shell/src-tauri/src/tests/collaboration/static_deliveries.rs index 2ec2dcfc3..64e1785db 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/tests/collaboration/static_deliveries.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/tests/collaboration/static_deliveries.rs @@ -162,9 +162,9 @@ async fn project_supervisor_prompts_are_total_control_and_reject_isolated_templa ) }; for expected in [ - "唯一面向用户的 Project Supervisor", + "Project Supervisor,是项目中唯一默认面向用户的总控 Agent", "用户原始目标", - "专业 Agent 回执只能补充证据", + "专业 Agent 的消息和回执只是原目标的证据", "总控不能替代已有专业角色", "同一个 native planning 批次", "必须把两类协作放进同一个 native planning 批次一次性提交", diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/SupervisorChatOnlyView.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/SupervisorChatOnlyView.tsx index 9bf9d541d..932f08f00 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/SupervisorChatOnlyView.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/SupervisorChatOnlyView.tsx @@ -23,8 +23,8 @@ import type { } from '../../app/types'; import { formatAgentRuntimeEvent, - isMudPointInsufficientRuntimeError, isAgentRuntimeTerminalState, + isMudPointInsufficientRuntimeError, MUD_POINT_INSUFFICIENT_INTERRUPTION_MESSAGE, projectNameFromPath, projectProfessionalAgentLabel, diff --git a/apps/ai-game-creator-shell/tests/agentRuntimeModel.test.ts b/apps/ai-game-creator-shell/tests/agentRuntimeModel.test.ts index 89865c8e5..9a9721f8d 100644 --- a/apps/ai-game-creator-shell/tests/agentRuntimeModel.test.ts +++ b/apps/ai-game-creator-shell/tests/agentRuntimeModel.test.ts @@ -8,8 +8,8 @@ import type { } from '../src/app/types'; import { formatAgentRuntimeEvent, - MUD_POINT_INSUFFICIENT_INTERRUPTION_MESSAGE, mergeGameChatRuntimeResponseMessagesIntoHistory, + MUD_POINT_INSUFFICIENT_INTERRUPTION_MESSAGE, projectRuntimeVisibleCurrentWork, projectRuntimeVisibleError, projectSupervisorChatRuntimeStatus, diff --git a/src/components/image-editor/ImageCanvasEditorView.test.tsx b/src/components/image-editor/ImageCanvasEditorView.test.tsx index 862c527b3..4a0f3d842 100644 --- a/src/components/image-editor/ImageCanvasEditorView.test.tsx +++ b/src/components/image-editor/ImageCanvasEditorView.test.tsx @@ -12,7 +12,6 @@ import userEvent from '@testing-library/user-event'; import JSZip from 'jszip'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import type { EditorProjectResourceSnapshot } from '../../services/image-editor/editorProjectClient'; import type { EditorAgentConversationClient } from './EditorAgentConversation/useEditorAgentConversation'; import { ApiClientError, diff --git a/src/components/image-editor/ImageCanvasEditorView.tsx b/src/components/image-editor/ImageCanvasEditorView.tsx index ff82763a8..4a993ab09 100644 --- a/src/components/image-editor/ImageCanvasEditorView.tsx +++ b/src/components/image-editor/ImageCanvasEditorView.tsx @@ -39,8 +39,8 @@ import { DEFAULT_CANVAS_BACKGROUND_COLOR, generationInputsOrNull, isInlineEditorMediaSource, - resolveLayerResourceAssetKind, resolveContextMenuPosition, + resolveLayerResourceAssetKind, } from './ImageCanvasEditorModel'; import { ImageCanvasEditorShellView } from './ImageCanvasEditorShellView'; import type { diff --git a/src/components/image-editor/ImageCanvasLayerCommandModel.test.ts b/src/components/image-editor/ImageCanvasLayerCommandModel.test.ts index eafdbf488..c42a0b6a3 100644 --- a/src/components/image-editor/ImageCanvasLayerCommandModel.test.ts +++ b/src/components/image-editor/ImageCanvasLayerCommandModel.test.ts @@ -9,8 +9,8 @@ import { createCanvasLayerClipboard, duplicateCanvasLayers, flipCanvasLayers, - getCanvasLayersByIds, getCanvasLayerCopyBlockReason, + getCanvasLayersByIds, groupCanvasLayers, moveCanvasLayers, removeCanvasLayers, diff --git a/src/components/image-editor/useImageCanvasLayerCommands.ts b/src/components/image-editor/useImageCanvasLayerCommands.ts index 456f6e4ed..90f94a25c 100644 --- a/src/components/image-editor/useImageCanvasLayerCommands.ts +++ b/src/components/image-editor/useImageCanvasLayerCommands.ts @@ -22,8 +22,8 @@ import { createCanvasLayerClipboard, duplicateCanvasLayers, flipCanvasLayers, - getCanvasLayersByIds, getCanvasLayerCopyBlockReason, + getCanvasLayersByIds, groupCanvasLayers, moveCanvasLayers, removeCanvasLayers,