1
This commit is contained in:
@@ -22,6 +22,31 @@ const baseOperation: CustomWorldAgentOperationRecord = {
|
||||
|
||||
const baseSession: CustomWorldAgentSessionSnapshot = {
|
||||
sessionId: 'session-1',
|
||||
currentTurn: 8,
|
||||
anchorContent: {
|
||||
worldPromise: {
|
||||
hook: '海雾、旧灯塔和失控航路交织的边缘群岛',
|
||||
differentiator: '每次借路都要向海雾付出新的代价。',
|
||||
desiredExperience: '压抑、悬疑、潮湿',
|
||||
},
|
||||
playerFantasy: {
|
||||
playerRole: '玩家刚回到群岛,准备调查父亲沉船的真相。',
|
||||
corePursuit: '查清沉船夜和禁航区异动的因果。',
|
||||
fearOfLoss: '再失去唯一还敢接近真相的人。',
|
||||
},
|
||||
themeBoundary: null,
|
||||
playerEntryPoint: null,
|
||||
coreConflict: null,
|
||||
keyRelationships: [],
|
||||
hiddenLines: null,
|
||||
iconicElements: {
|
||||
iconicMotifs: ['会移动的海雾'],
|
||||
institutionsOrArtifacts: ['旧灯塔'],
|
||||
hardRules: [],
|
||||
},
|
||||
},
|
||||
progressPercent: 100,
|
||||
lastAssistantReply: '八锚点已经收束完成,可以进入游戏设定草稿生成。',
|
||||
stage: 'foundation_review',
|
||||
focusCardId: null,
|
||||
creatorIntent: {
|
||||
@@ -121,11 +146,12 @@ test('builds readable draft setting text from creator intent first', () => {
|
||||
expect(settingText).toContain('标志元素');
|
||||
});
|
||||
|
||||
test('falls back to latest user message when creator intent is unavailable', () => {
|
||||
test('falls back to anchor content when creator intent is unavailable', () => {
|
||||
const settingText = buildAgentDraftFoundationSettingText({
|
||||
...baseSession,
|
||||
creatorIntent: null,
|
||||
});
|
||||
|
||||
expect(settingText).toBe('我想做一个被海雾吞没的旧航路世界。');
|
||||
expect(settingText).toContain('世界承诺');
|
||||
expect(settingText).toContain('玩家幻想');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user