🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
♻️ refactor: clean page editor (#10966)
Arvin Xu15410d1a1070
diff --git a/src/features/PageEditor/PageEditor.tsx b/src/features/PageEditor/PageEditor.tsxindex 2e3868db382..56c690e910e 100644--- a/src/features/PageEditor/PageEditor.tsx+++ b/src/features/PageEditor/PageEditor.tsx@@ -74,7 +74,7 @@ const PageEditorCanvas = memo(() => {** A reusable component. Should NOT depend on context.*/-const PageEditor: FC<PageEditorProps> = ({+export const PageEditor: FC<PageEditorProps> = ({pageId,knowledgeBaseId,onDocumentIdChange,@@ -106,5 +106,3 @@ const PageEditor: FC<PageEditorProps> = ({</PageAgentProvider>);};--export default PageEditor;diff --git a/src/features/PageEditor/index.ts b/src/features/PageEditor/index.tsindex 114a3f3b7d9..95ff13ab78e 100644--- a/src/features/PageEditor/index.ts+++ b/src/features/PageEditor/index.ts@@ -1,2 +1,2 @@-export { default } from './PageEditor';+export { PageEditor } from './PageEditor';export { PageEditorProvider } from './PageEditorProvider';diff --git a/src/features/PageExplorer/index.tsx b/src/features/PageExplorer/index.tsxindex 227387397b1..977c7a0b6d0 100644--- a/src/features/PageExplorer/index.tsx+++ b/src/features/PageExplorer/index.tsx@@ -2,7 +2,7 @@import { memo, useEffect, useRef } from 'react';-import PageEditor from '@/features/PageEditor';+import { PageEditor } from '@/features/PageEditor';import { useFileStore } from '@/store/file';import PageExplorerPlaceholder from './PageExplorerPlaceholder';diff --git a/src/features/ResourceManager/index.tsx b/src/features/ResourceManager/index.tsxindex 7bb046dfddb..e739c511e81 100644--- a/src/features/ResourceManager/index.tsx+++ b/src/features/ResourceManager/index.tsx@@ -7,7 +7,7 @@ import { memo, useEffect } from 'react';import { useSearchParams } from 'react-router-dom';import { useResourceManagerStore } from '@/app/[variants]/(main)/resource/features/store';-import PageEditor from '@/features/PageEditor';+import { PageEditor } from '@/features/PageEditor';import { documentService } from '@/services/document';import { useFileStore } from '@/store/file';import { documentSelectors } from '@/store/file/slices/document/selectors';diff --git a/src/store/chat/slices/aiChat/actions/streamingExecutor.ts b/src/store/chat/slices/aiChat/actions/streamingExecutor.tsindex 76b93b88356..9920b12e8d4 100644--- a/src/store/chat/slices/aiChat/actions/streamingExecutor.ts+++ b/src/store/chat/slices/aiChat/actions/streamingExecutor.ts@@ -226,7 +226,6 @@ export const streamingExecutor: StateCreator<},},};- console.log('runtimeInitialContext', runtimeInitialContext);log('[internal_createAgentState] Page Agent detected, injected initialContext.pageEditor with title: %s',pageContentContext.metadata.title,