test: 補測好感度與關係規則,並修正移轉關係未帶出原戀人名稱
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -6,7 +6,7 @@ import type { Axes } from './characters'
|
||||
import { EXTRACT_COMMAND, runExtract } from './extractCommand'
|
||||
import { applyEvent, hearts, initialAffinity, stageName, stageVoice, dayKey } from './affinity'
|
||||
import type { Affinity } from './affinity'
|
||||
import { relationOf, relationText } from './relation'
|
||||
import { latestEntry, relationOf, relationText } from './relation'
|
||||
import { CLASSIFY_PROMPT, choose, parseRoute } from './router'
|
||||
import type { Effort, ModelName, Route } from './router'
|
||||
import { REWRITE_SYSTEM, needsSonnet, protect, restore, withPrefix } from './rewrite'
|
||||
@@ -383,9 +383,9 @@ export const register: Register = (on, options) => {
|
||||
let text = personaSection(c, applyOverrides(c.axes, overrides()))
|
||||
if (flag('affinity', true)) {
|
||||
const a = await loadAffinity($, c.slug)
|
||||
text += `\n${stageVoice(a.score)}\n${relationText(relationOf(c.timeline, a.score, flag('romance', false)))}`
|
||||
text += `\n${stageVoice(a.score)}\n${relationText(relationOf(c.timeline, a.score, flag('romance', false)), latestEntry(c.timeline)?.romance)}`
|
||||
} else {
|
||||
text += `\n${relationText(relationOf(c.timeline, 0, false))}`
|
||||
text += `\n${relationText(relationOf(c.timeline, 0, false), latestEntry(c.timeline)?.romance)}`
|
||||
}
|
||||
if (delegating) text += '\n本輪的實際工作已交給背景工作線處理,你不要自己動手做。請只用角色口吻簡短告知已開始處理;完成後會有回報,屆時再向使用者說明結果。'
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user