feat(core): add ai draft service (#13252)
Close [AI-244](https://linear.app/affine-design/issue/AI-244) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added AI chat draft persistence, allowing your chat input, quotes, markdown, and images to be automatically saved and restored across sessions. * Drafts are now synchronized across chat components, so you won’t lose your progress if you navigate away or refresh the page. * **Improvements** * Enhanced chat experience with seamless restoration of previously entered content and attachments. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -3,6 +3,7 @@ import { type Framework } from '@toeverything/infra';
|
||||
|
||||
import {
|
||||
configureAIButtonModule,
|
||||
configureAIDraftModule,
|
||||
configureAINetworkSearchModule,
|
||||
configureAIPlaygroundModule,
|
||||
configureAIReasoningModule,
|
||||
@@ -110,6 +111,7 @@ export function configureCommonModules(framework: Framework) {
|
||||
configureAIReasoningModule(framework);
|
||||
configureAIPlaygroundModule(framework);
|
||||
configureAIButtonModule(framework);
|
||||
configureAIDraftModule(framework);
|
||||
configureTemplateDocModule(framework);
|
||||
configureBlobManagementModule(framework);
|
||||
configureMediaModule(framework);
|
||||
|
||||
Reference in New Issue
Block a user