修复 CI 前端 lint 门禁
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled

整理 AI 游戏创作壳 import 顺序

为 Runtime 订阅 effect 补充有意的依赖豁免说明

保留未跟踪的绘图脚本不纳入本次提交
This commit is contained in:
2026-08-12 02:49:25 +00:00
parent 851db37bdc
commit e5118d11b3
4 changed files with 21 additions and 18 deletions
+7 -3
View File
@@ -105,6 +105,9 @@ import {
createDefaultChatMessages,
createLocalConversationDraftMessage,
ensureProjectSupervisorActiveSessionId,
type GameChatPlayableRevision,
gameChatRuntimeBelongsToLineage,
gameChatRuntimeIdentity,
isAgentFinalizationMessageId,
isAgentRuntimeTerminalState,
isGameChatSupervisorRoot,
@@ -117,8 +120,6 @@ import {
mergeProjectSupervisorConversation,
mergeProjectSupervisorResponseStream,
normalizeAgentRuntimeState,
gameChatRuntimeBelongsToLineage,
gameChatRuntimeIdentity,
projectCurrentGameChatRuntimeLineage,
projectNameFromPath,
projectProfessionalAgentLabel,
@@ -128,7 +129,6 @@ import {
sameAgentRuntimeRun,
submitProjectSupervisorRuntimeTask,
taskRowsFromManifest,
type GameChatPlayableRevision,
} from './features/agent-runtime';
import {
isDeveloperMode,
@@ -1535,6 +1535,10 @@ export function App({
disposed = true;
cleanup?.();
};
// The subscription deliberately invokes the current render's helper; its
// mutable state is read through refs, so resubscribing for that helper is
// neither necessary nor safe.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [
appendGameChatFinalReplyMessages,
gameChatOnly,
@@ -16,6 +16,11 @@ import type {
AgentRuntimeUserInputRequest,
} from '../../app/types';
import type { ProjectAgentResultSummary } from '../../view/project-development';
import {
gameChatRuntimeClaimsDynamicArtLineage,
isCurrentGameChatDynamicArtRuntime,
projectCurrentGameChatRuntimeLineage,
} from './gameChatRuntimeProjection';
import {
agentGoalStatusIsPaused,
agentGoalStatusIsTerminal,
@@ -46,11 +51,6 @@ import {
projectSupervisorPendingActionPresentation,
projectSupervisorRuntimeStatusLabel,
} from './model';
import {
gameChatRuntimeClaimsDynamicArtLineage,
isCurrentGameChatDynamicArtRuntime,
projectCurrentGameChatRuntimeLineage,
} from './gameChatRuntimeProjection';
export function AgentGoalStatusPanel({
goal,
@@ -1,7 +1,6 @@
import { describe, expect, test, vi } from 'vitest';
import { createGameCreationAppManifest } from '../../../packages/shared/src/contracts/gameCreationApp';
import type {
AgentRuntimeEventRecord,
AgentRuntimeResponseStream,
@@ -10,6 +9,13 @@ import type {
ChatMessage,
LocalConversationMessageRecord,
} from '../src/app/types';
import {
canArchiveGameChatStage,
gameChatRuntimeClaimsDynamicArtLineage,
latestGameChatPlayableRevision,
projectCurrentGameChatRuntimeLineage,
projectGameChatPrimaryProgress,
} from '../src/features/agent-runtime/gameChatRuntimeProjection';
import {
formatAgentRuntimeEvent,
mergeGameChatRuntimeResponseMessagesIntoHistory,
@@ -23,13 +29,6 @@ import {
projectSupervisorVisibleConversationText,
submitProjectSupervisorRuntimeTask,
} from '../src/features/agent-runtime/model';
import {
canArchiveGameChatStage,
gameChatRuntimeClaimsDynamicArtLineage,
latestGameChatPlayableRevision,
projectCurrentGameChatRuntimeLineage,
projectGameChatPrimaryProgress,
} from '../src/features/agent-runtime/gameChatRuntimeProjection';
import { projectAgentRuntimeSummaries } from '../src/features/project-summary/agentPresentation';
describe('Runtime-owned public statuses', () => {
@@ -8,11 +8,11 @@ import type {
AgentRuntimeState,
} from '../../src/app/types';
import {
AgentRuntimeStatusPanel,
latestGameChatPlayableRevision as projectLatestGameChatPlayableRevision,
MUD_POINT_INSUFFICIENT_INTERRUPTION_MESSAGE,
AgentRuntimeStatusPanel,
ProjectSupervisorRuntimePanel,
projectCurrentGameChatRuntimeLineage,
ProjectSupervisorRuntimePanel,
} from '../../src/features/agent-runtime';
import {
buildGameChatProgressEvidence,