Просмотр исходного кода

fix: 修复未使用变量的TS编译错误,打包通过

Mochocyang 3 месяцев назад
Родитель
Сommit
6fae383d7b

+ 0 - 1
src/components/novel/story-simulation/story-simulation-view.tsx

@@ -118,7 +118,6 @@ export function StorySimulationView() {
   const agentChatMessages = useStorySimulationStore((s) => s.agentChatMessages)
   const clearAgentChat = useStorySimulationStore((s) => s.clearAgentChat)
   const bumpListRefresh = useStorySimulationStore((s) => s.bumpListRefresh)
-  const reset = useStorySimulationStore((s) => s.reset)
 
   // 保存仿真后的 agents 和 state 供采访使用
   const lastAgentsRef = useRef<NovelAgent[]>([])

+ 0 - 1
src/lib/novel/story-simulation/agent-interview.ts

@@ -6,7 +6,6 @@ import type {
   AgentChatSession,
   NovelAgent,
   SimulationState,
-  TimelineEvent,
 } from "@/lib/novel/story-simulation/types"
 import { formatTimelineEvent, getVisibleEvents } from "@/lib/novel/story-simulation/agent-profile-builder"
 

+ 1 - 1
src/lib/novel/story-simulation/simulation-engine.ts

@@ -628,7 +628,7 @@ function formatActionDescription(action: AgentAction, agentName: string): string
 // ── 内部辅助:检查节点是否达成目标(简单启发式) ──
 
 function isNodeGoalReached(
-  node: StoryNode,
+  _node: StoryNode,
   nodeTimelineEvents: TimelineEvent[],
   maxRounds: number,
   currentRound: number,