feat: ship v0.7.0 with AI knowledge context integration
Add semi-automatic knowledge suggestions and user-confirmed injection across chat, interactive, auto, and wizard modes; fix writing flows to persist full systemPrompt in contextJson. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -26,11 +26,17 @@ describe('WizardWritingService.buildPreview', () => {
|
||||
})
|
||||
flow = svc.setRhythm(flow.id, 'mixed')
|
||||
flow = svc.setPov(flow.id)
|
||||
flow = svc.confirmContext(
|
||||
flow.id,
|
||||
{ chapterIds: [], outlineIds: [], settingIds: [], inspirationIds: [] },
|
||||
CONTEXT
|
||||
)
|
||||
flow = svc.confirmContext(flow.id, {
|
||||
binding: {
|
||||
chapterIds: [],
|
||||
outlineIds: [],
|
||||
settingIds: [],
|
||||
inspirationIds: [],
|
||||
knowledgeIds: []
|
||||
},
|
||||
systemPrompt: CONTEXT,
|
||||
contextSummary: '0章·0纲·0设·0感·0知'
|
||||
})
|
||||
|
||||
const preview = await svc.buildPreview(flow.id, CONTEXT, '林远')
|
||||
expect(preview).toMatch(/<p>/)
|
||||
|
||||
Reference in New Issue
Block a user