@geminilight/mindos 0.5.68 → 0.5.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/app/app/api/ask/route.ts +12 -4
  2. package/app/app/api/file/import/route.ts +197 -0
  3. package/app/app/api/mcp/install/route.ts +99 -12
  4. package/app/app/api/mcp/status/route.ts +1 -1
  5. package/app/components/ActivityBar.tsx +3 -4
  6. package/app/components/FileTree.tsx +35 -9
  7. package/app/components/ImportModal.tsx +415 -0
  8. package/app/components/OnboardingView.tsx +9 -0
  9. package/app/components/Panel.tsx +4 -2
  10. package/app/components/SidebarLayout.tsx +83 -8
  11. package/app/components/TableOfContents.tsx +1 -0
  12. package/app/components/agents/AgentDetailContent.tsx +37 -28
  13. package/app/components/agents/AgentsMcpSection.tsx +16 -12
  14. package/app/components/agents/AgentsOverviewSection.tsx +48 -34
  15. package/app/components/agents/AgentsPrimitives.tsx +41 -20
  16. package/app/components/agents/AgentsSkillsSection.tsx +16 -7
  17. package/app/components/agents/SkillDetailPopover.tsx +13 -11
  18. package/app/components/ask/AskContent.tsx +11 -0
  19. package/app/components/panels/AgentsPanelAgentGroups.tsx +8 -6
  20. package/app/components/panels/AgentsPanelHubNav.tsx +3 -3
  21. package/app/components/panels/DiscoverPanel.tsx +88 -2
  22. package/app/hooks/useFileImport.ts +191 -0
  23. package/app/hooks/useFileUpload.ts +11 -0
  24. package/app/lib/agent/context.ts +7 -2
  25. package/app/lib/agent/tools.ts +245 -6
  26. package/app/lib/core/backlinks.ts +12 -4
  27. package/app/lib/core/file-convert.ts +97 -0
  28. package/app/lib/core/organize.ts +105 -0
  29. package/app/lib/core/search.ts +17 -3
  30. package/app/lib/fs.ts +5 -3
  31. package/app/lib/i18n-en.ts +51 -0
  32. package/app/lib/i18n-zh.ts +51 -0
  33. package/package.json +1 -1
@@ -681,6 +681,57 @@ export const zh = {
681
681
  convertToSpace: '转为空间',
682
682
  deleteFolder: '删除文件夹',
683
683
  confirmDeleteFolder: (name: string) => `删除文件夹「${name}」及其所有内容?此操作不可撤销。`,
684
+ newFile: '新建文件',
685
+ importFile: '导入文件',
686
+ importToSpace: '导入文件到此空间',
687
+ },
688
+ fileImport: {
689
+ title: '导入文件',
690
+ subtitle: '将外部文件存入知识库或让 AI 帮你整理',
691
+ dropzoneText: '拖拽文件到这里,或',
692
+ dropzoneButton: '点击选择',
693
+ dropzoneCompact: '拖拽更多文件,或',
694
+ dropzoneCompactButton: '点击添加',
695
+ dropzoneMobile: '点击选择文件',
696
+ fileCount: (n: number) => `${n} 个文件`,
697
+ clearAll: '清空全部',
698
+ unsupported: '不支持的文件类型',
699
+ tooLarge: (max: string) => `文件过大(最大 ${max})`,
700
+ archiveTitle: '存入知识库',
701
+ archiveDesc: '原样归档到指定空间',
702
+ digestTitle: 'AI 帮我整理',
703
+ digestDesc: '提取要点,沉淀到笔记',
704
+ archiveConfigTitle: '存入知识库',
705
+ back: '← 返回',
706
+ targetSpace: '目标空间',
707
+ rootDir: '根目录',
708
+ conflictLabel: '同名文件已存在时',
709
+ conflictRename: '自动重命名(添加序号后缀)',
710
+ conflictSkip: '跳过不导入',
711
+ conflictOverwrite: '覆盖已有文件',
712
+ overwriteWarn: '将永久替换已有文件内容',
713
+ cancel: '取消',
714
+ importButton: (n: number) => `存入 ${n} 个文件`,
715
+ importing: '正在存入...',
716
+ preparing: '准备中...',
717
+ successToast: (n: number, space: string) => `已存入 ${n} 个文件到 ${space || '知识库'}`,
718
+ updatedIndex: (n: number) => `更新了 ${n} 个索引文件`,
719
+ partialToast: (ok: number, total: number) => `存入 ${ok}/${total} 个文件`,
720
+ skipReason: '同名文件已存在',
721
+ failToast: '导入失败',
722
+ retry: '重试',
723
+ undo: '撤销',
724
+ discardTitle: '放弃导入?',
725
+ discardMessage: (n: number) => `放弃已选的 ${n} 个文件?`,
726
+ discardConfirm: '放弃',
727
+ discardCancel: '取消',
728
+ dropOverlay: '松开鼠标,导入文件到知识库',
729
+ dropOverlayFormats: '支持 .md .txt .pdf .csv .json .yaml .html',
730
+ onboardingHint: '已有笔记?导入文件到知识库 →',
731
+ digestPromptSingle: (name: string) => `请阅读 ${name},提取关键信息整理到知识库中合适的位置。`,
732
+ digestPromptMulti: (n: number) => `请阅读这 ${n} 个文件,提取关键信息分别整理到知识库中合适的位置。`,
733
+ arrowTo: '→',
734
+ remove: '移除',
684
735
  },
685
736
  dirView: {
686
737
  gridView: '网格视图',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geminilight/mindos",
3
- "version": "0.5.68",
3
+ "version": "0.5.70",
4
4
  "description": "MindOS — Human-Agent Collaborative Mind System. Local-first knowledge base that syncs your mind to all AI Agents via MCP.",
5
5
  "keywords": [
6
6
  "mindos",