gitextract_y30i_vf3/ ├── .containerignore ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ └── feature_request.md │ └── workflows/ │ ├── build.yml │ └── release.yml ├── .gitignore ├── .husky/ │ └── pre-commit ├── .npmrc ├── .prettierrc ├── .tamagui/ │ ├── tamagui-components.config.cjs │ ├── tamagui.config.cjs │ ├── tamagui.config.json │ └── theme-builder.json ├── .vscode/ │ ├── .debug.script.mjs │ ├── extensions.json │ ├── launch.json │ ├── settings.json │ └── tasks.json ├── Containerfile ├── LICENSE ├── Makefile ├── README.md ├── build/ │ └── Icon.icns ├── components.json ├── electron/ │ ├── electron-env.d.ts │ ├── main/ │ │ ├── common/ │ │ │ ├── chunking.ts │ │ │ ├── error.ts │ │ │ ├── network.ts │ │ │ └── windowManager.ts │ │ ├── electron-store/ │ │ │ ├── ipcHandlers.ts │ │ │ ├── storeConfig.ts │ │ │ ├── storeSchemaMigrator.ts │ │ │ └── types.ts │ │ ├── electron-utils/ │ │ │ └── ipcHandlers.ts │ │ ├── filesystem/ │ │ │ ├── filesystem.test.ts │ │ │ ├── filesystem.ts │ │ │ ├── ipcHandlers.ts │ │ │ ├── storage/ │ │ │ │ ├── ImageStore.ts │ │ │ │ ├── MediaStore.ts │ │ │ │ └── VideoStore.ts │ │ │ └── types.ts │ │ ├── index.ts │ │ ├── llm/ │ │ │ ├── contextLimit.ts │ │ │ ├── ipcHandlers.ts │ │ │ ├── llmConfig.ts │ │ │ ├── models/ │ │ │ │ └── ollama.ts │ │ │ ├── types.ts │ │ │ └── utils.ts │ │ ├── path/ │ │ │ ├── ipcHandlers.ts │ │ │ └── path.ts │ │ └── vector-database/ │ │ ├── database.test.ts │ │ ├── downloadModelsFromHF.ts │ │ ├── embeddings.ts │ │ ├── ipcHandlers.ts │ │ ├── lance.ts │ │ ├── lanceTableWrapper.ts │ │ ├── schema.ts │ │ └── tableHelperFunctions.ts │ └── preload/ │ └── index.ts ├── electron-builder.json5 ├── index.html ├── node ├── npx ├── package.json ├── postcss.config.cjs ├── postcss.config.js ├── reor-project@0.2.31 ├── scripts/ │ ├── downloadOllama.js │ └── notarize.js ├── shared/ │ ├── defaultLLMs.ts │ └── utils.ts ├── src/ │ ├── App.tsx │ ├── components/ │ │ ├── Chat/ │ │ │ ├── ChatConfigComponents/ │ │ │ │ ├── DBSearchFilters.tsx │ │ │ │ ├── PromptEditor.tsx │ │ │ │ ├── ToolSelector.tsx │ │ │ │ └── exampleAgents.ts │ │ │ ├── ChatInput.tsx │ │ │ ├── ChatMessages.tsx │ │ │ ├── ChatPrompts.tsx │ │ │ ├── ChatSidebar.tsx │ │ │ ├── MessageComponents/ │ │ │ │ ├── AssistantMessage.tsx │ │ │ │ ├── ChatSources.tsx │ │ │ │ ├── SystemMessage.tsx │ │ │ │ ├── ToolCalls.tsx │ │ │ │ └── UserMessage.tsx │ │ │ ├── StartChat.tsx │ │ │ └── index.tsx │ │ ├── Common/ │ │ │ ├── CommonModals.tsx │ │ │ ├── EmptyPage.tsx │ │ │ ├── ExternalLink.tsx │ │ │ ├── IndexingProgress.tsx │ │ │ ├── MarkdownRenderer.tsx │ │ │ ├── Modal.tsx │ │ │ └── ResizableComponent.tsx │ │ ├── Editor/ │ │ │ ├── BacklinkExtension.tsx │ │ │ ├── BacklinkSuggestionsDisplay.tsx │ │ │ ├── EditorManager.tsx │ │ │ ├── HighlightExtension.tsx │ │ │ ├── RichTextLink.tsx │ │ │ ├── Search/ │ │ │ │ ├── SearchAndReplaceExtension.tsx │ │ │ │ └── SearchBar.tsx │ │ │ ├── editor.css │ │ │ ├── schema.ts │ │ │ ├── slash-menu-items.tsx │ │ │ ├── types/ │ │ │ │ ├── Image/ │ │ │ │ │ └── image.tsx │ │ │ │ ├── Video/ │ │ │ │ │ └── video.tsx │ │ │ │ ├── index.ts │ │ │ │ ├── media-container.tsx │ │ │ │ ├── media-render.tsx │ │ │ │ └── utils.ts │ │ │ ├── ui/ │ │ │ │ └── src/ │ │ │ │ ├── TamaguiPopover.tsx │ │ │ │ ├── TamaguiPopoverUseFloatingContext.tsx │ │ │ │ ├── TamaguiPopper.tsx │ │ │ │ ├── TamaguiTooltip.tsx │ │ │ │ ├── button.ts │ │ │ │ ├── container.tsx │ │ │ │ ├── embed-links.tsx │ │ │ │ ├── generated-themes.ts │ │ │ │ ├── global.ts │ │ │ │ ├── helpers.ts │ │ │ │ ├── icons.tsx │ │ │ │ ├── index.tsx │ │ │ │ ├── input.ts │ │ │ │ ├── menu-item.tsx │ │ │ │ ├── resize-handle.ts │ │ │ │ ├── section.tsx │ │ │ │ ├── tamagui/ │ │ │ │ │ ├── config/ │ │ │ │ │ │ ├── animations.ts │ │ │ │ │ │ ├── create-generic-font.ts │ │ │ │ │ │ ├── fonts.ts │ │ │ │ │ │ ├── media.ts │ │ │ │ │ │ └── mediaEmbed.ts │ │ │ │ │ ├── tamagui.config.ts │ │ │ │ │ └── themes/ │ │ │ │ │ ├── colors.ts │ │ │ │ │ ├── componentThemeDefinitions.tsx │ │ │ │ │ ├── helpers.ts │ │ │ │ │ ├── masks.tsx │ │ │ │ │ ├── palettes.tsx │ │ │ │ │ ├── shadows.tsx │ │ │ │ │ ├── templates.tsx │ │ │ │ │ ├── theme.ts │ │ │ │ │ ├── themes-generated.ts │ │ │ │ │ ├── token-colors.ts │ │ │ │ │ ├── token-radius.ts │ │ │ │ │ ├── token-size.ts │ │ │ │ │ ├── token-space.ts │ │ │ │ │ └── token-z-index.ts │ │ │ │ ├── toggle.tsx │ │ │ │ └── tooltip.tsx │ │ │ └── utils.ts │ │ ├── File/ │ │ │ ├── DBResultPreview.tsx │ │ │ ├── NewDirectory.tsx │ │ │ ├── RenameDirectory.tsx │ │ │ └── RenameNote.tsx │ │ ├── MainPage.tsx │ │ ├── Settings/ │ │ │ ├── AnalyticsSettings.tsx │ │ │ ├── ChunkSizeSettings.tsx │ │ │ ├── DirectorySelector.tsx │ │ │ ├── EmbeddingSettings/ │ │ │ │ ├── EmbeddingModelSelect.tsx │ │ │ │ ├── EmbeddingSettings.tsx │ │ │ │ ├── InitialEmbeddingSettings.tsx │ │ │ │ └── modals/ │ │ │ │ └── NewRemoteEmbeddingModel.tsx │ │ │ ├── GeneralSettings.tsx │ │ │ ├── InitialSettingsSinglePage.tsx │ │ │ ├── LLMSettings/ │ │ │ │ ├── DefaultLLMSelector.tsx │ │ │ │ ├── InitialSetupLLMSettings.tsx │ │ │ │ ├── LLMSelectOrButton.tsx │ │ │ │ ├── LLMSettingsContent.tsx │ │ │ │ └── modals/ │ │ │ │ ├── CustomLLMAPISetup.tsx │ │ │ │ ├── DefaultLLMAPISetupModal.tsx │ │ │ │ ├── NewOllamaModel.tsx │ │ │ │ └── utils.ts │ │ │ ├── Settings.tsx │ │ │ └── Shared/ │ │ │ └── SettingsRow.tsx │ │ ├── Sidebars/ │ │ │ ├── FileSideBar/ │ │ │ │ ├── FileItemRows.tsx │ │ │ │ └── FileSidebar.tsx │ │ │ ├── IconsSidebar.tsx │ │ │ ├── MainSidebar.tsx │ │ │ ├── SearchComponent.tsx │ │ │ ├── SemanticSidebar/ │ │ │ │ ├── HighlightButton.tsx │ │ │ │ └── SimilarEntriesComponent.tsx │ │ │ └── SimilarFilesSidebar.tsx │ │ ├── TitleBar/ │ │ │ ├── NavigationButtons.tsx │ │ │ └── TitleBar.tsx │ │ ├── WritingAssistant/ │ │ │ ├── ConversationHistory.tsx │ │ │ ├── WritingAssistant.tsx │ │ │ └── utils.ts │ │ └── ui/ │ │ ├── Spinner.tsx │ │ ├── ThemedMenu.tsx │ │ ├── ThemedSelect.tsx │ │ ├── badge.tsx │ │ ├── button.tsx │ │ ├── calendar.tsx │ │ ├── card.tsx │ │ ├── checkbox.tsx │ │ ├── collapsible.tsx │ │ ├── command.tsx │ │ ├── context-menu.tsx │ │ ├── date-picker.tsx │ │ ├── dialog.tsx │ │ ├── drawer.tsx │ │ ├── dropdown-menu.tsx │ │ ├── hover-card.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── popover.tsx │ │ ├── progress.tsx │ │ ├── resizable.tsx │ │ ├── scroll-area.tsx │ │ ├── select.tsx │ │ ├── slider.tsx │ │ ├── suggestion-card.tsx │ │ ├── switch.tsx │ │ ├── textarea.tsx │ │ ├── tooltip.tsx │ │ └── window-controls.tsx │ ├── contexts/ │ │ ├── AdaptContext.tsx │ │ ├── ChatContext.tsx │ │ ├── ContentContext.tsx │ │ ├── FileContext.tsx │ │ ├── ModalContext.tsx │ │ └── ThemeContext.tsx │ ├── lib/ │ │ ├── animations.tsx │ │ ├── blocknote/ │ │ │ ├── core/ │ │ │ │ ├── BlockNoteEditor.ts │ │ │ │ ├── BlockNoteExtensions.ts │ │ │ │ ├── api/ │ │ │ │ │ ├── blockManipulation/ │ │ │ │ │ │ └── blockManipulation.ts │ │ │ │ │ ├── formatConversions/ │ │ │ │ │ │ ├── customRehypePlugins.ts │ │ │ │ │ │ ├── formatConversions.ts │ │ │ │ │ │ └── simplifyBlocksRehypePlugin.ts │ │ │ │ │ ├── nodeConversions/ │ │ │ │ │ │ └── nodeConversions.ts │ │ │ │ │ └── util/ │ │ │ │ │ └── nodeUtil.ts │ │ │ │ ├── assets/ │ │ │ │ │ └── fonts-inter.css │ │ │ │ ├── editor.module.css │ │ │ │ ├── extensions/ │ │ │ │ │ ├── BlockManipulation/ │ │ │ │ │ │ └── BlockManipulationExtension.ts │ │ │ │ │ ├── Blocks/ │ │ │ │ │ │ ├── PreviousBlockTypePlugin.ts │ │ │ │ │ │ ├── api/ │ │ │ │ │ │ │ ├── block.ts │ │ │ │ │ │ │ ├── blockTypes.ts │ │ │ │ │ │ │ ├── cursorPositionTypes.ts │ │ │ │ │ │ │ ├── defaultBlocks.ts │ │ │ │ │ │ │ ├── inlineContentTypes.ts │ │ │ │ │ │ │ ├── selectionTypes.ts │ │ │ │ │ │ │ └── serialization.ts │ │ │ │ │ │ ├── helpers/ │ │ │ │ │ │ │ ├── findBlock.ts │ │ │ │ │ │ │ ├── getBlockInfoFromPos.ts │ │ │ │ │ │ │ └── getGroupInfoFromPos.ts │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── nodes/ │ │ │ │ │ │ ├── Block.module.css │ │ │ │ │ │ ├── BlockAttributes.ts │ │ │ │ │ │ ├── BlockContainer.ts │ │ │ │ │ │ ├── BlockContent/ │ │ │ │ │ │ │ ├── HeadingBlockContent/ │ │ │ │ │ │ │ │ └── HeadingBlockContent.ts │ │ │ │ │ │ │ ├── ListItemBlockContent/ │ │ │ │ │ │ │ │ ├── BulletListItemBlockContent/ │ │ │ │ │ │ │ │ │ └── BulletListItemBlockContent.ts │ │ │ │ │ │ │ │ ├── ListItemKeyboardShortcuts.ts │ │ │ │ │ │ │ │ └── NumberedListItemBlockContent/ │ │ │ │ │ │ │ │ ├── NumberedListIndexingPlugin.ts │ │ │ │ │ │ │ │ └── NumberedListItemBlockContent.ts │ │ │ │ │ │ │ └── ParagraphBlockContent/ │ │ │ │ │ │ │ └── ParagraphBlockContent.ts │ │ │ │ │ │ └── BlockGroup.ts │ │ │ │ │ ├── DragMedia/ │ │ │ │ │ │ └── DragExtension.ts │ │ │ │ │ ├── DraggableBlocks/ │ │ │ │ │ │ ├── BlockSideMenuFactoryTypes.ts │ │ │ │ │ │ ├── DraggableBlocksExtension.ts │ │ │ │ │ │ ├── DraggableBlocksPlugin.ts │ │ │ │ │ │ └── MultipleNodeSelection.ts │ │ │ │ │ ├── FormattingToolbar/ │ │ │ │ │ │ └── FormattingToolbarPlugin.ts │ │ │ │ │ ├── HyperlinkToolbar/ │ │ │ │ │ │ └── HyperlinkToolbarPlugin.ts │ │ │ │ │ ├── Markdown/ │ │ │ │ │ │ └── MarkdownExtension.ts │ │ │ │ │ ├── Pasting/ │ │ │ │ │ │ └── local-media-paste-plugin.ts │ │ │ │ │ ├── Placeholder/ │ │ │ │ │ │ └── PlaceholderExtension.ts │ │ │ │ │ ├── SideMenu/ │ │ │ │ │ │ ├── SideMenuPlugin.ts │ │ │ │ │ │ └── SideMenuView.ts │ │ │ │ │ ├── SlashMenu/ │ │ │ │ │ │ ├── BaseSlashMenuItem.ts │ │ │ │ │ │ ├── SlashMenuPlugin.ts │ │ │ │ │ │ └── defaultSlashMenuItems.ts │ │ │ │ │ ├── TextAlignment/ │ │ │ │ │ │ └── TextAlignmentExtension.ts │ │ │ │ │ ├── TextColor/ │ │ │ │ │ │ ├── TextColorExtension.ts │ │ │ │ │ │ └── TextColorMark.ts │ │ │ │ │ ├── TrailingNode/ │ │ │ │ │ │ └── TrailingNodeExtension.ts │ │ │ │ │ └── UniqueID/ │ │ │ │ │ └── UniqueID.ts │ │ │ │ ├── index.ts │ │ │ │ ├── shared/ │ │ │ │ │ ├── BaseUiElementTypes.ts │ │ │ │ │ ├── EditorElement.ts │ │ │ │ │ ├── EventEmitter.ts │ │ │ │ │ ├── plugins/ │ │ │ │ │ │ └── suggestion/ │ │ │ │ │ │ ├── SuggestionItem.ts │ │ │ │ │ │ └── SuggestionPlugin.ts │ │ │ │ │ └── utils.ts │ │ │ │ └── style.css │ │ │ ├── index.ts │ │ │ └── react/ │ │ │ ├── BlockNoteTheme.ts │ │ │ ├── BlockNoteView.tsx │ │ │ ├── Editor/ │ │ │ │ └── EditorContent.tsx │ │ │ ├── FormattingToolbar/ │ │ │ │ └── components/ │ │ │ │ ├── DefaultButtons/ │ │ │ │ │ ├── ColorStyleButton.tsx │ │ │ │ │ ├── NestBlockButtons.tsx │ │ │ │ │ ├── TextAlignButton.tsx │ │ │ │ │ └── ToggledStyleButton.tsx │ │ │ │ ├── DefaultDropdowns/ │ │ │ │ │ └── BlockTypeDropdown.tsx │ │ │ │ ├── DefaultFormattingToolbar.tsx │ │ │ │ └── FormattingToolbarPositioner.tsx │ │ │ ├── ReactBlockSpec.tsx │ │ │ ├── SharedComponents/ │ │ │ │ ├── ColorPicker/ │ │ │ │ │ └── components/ │ │ │ │ │ ├── ColorIcon.tsx │ │ │ │ │ └── ColorPicker.tsx │ │ │ │ ├── Toolbar/ │ │ │ │ │ └── components/ │ │ │ │ │ ├── Toolbar.tsx │ │ │ │ │ ├── ToolbarButton.tsx │ │ │ │ │ ├── ToolbarDropdown.tsx │ │ │ │ │ ├── ToolbarDropdownItem.tsx │ │ │ │ │ └── ToolbarDropdownTarget.tsx │ │ │ │ └── Tooltip/ │ │ │ │ └── components/ │ │ │ │ └── TooltipContent.tsx │ │ │ ├── SideMenu/ │ │ │ │ └── components/ │ │ │ │ ├── DefaultButtons/ │ │ │ │ │ ├── AddBlockButton.tsx │ │ │ │ │ └── DragHandle.tsx │ │ │ │ ├── DefaultSideMenu.tsx │ │ │ │ ├── DragHandleMenu/ │ │ │ │ │ ├── DefaultButtons/ │ │ │ │ │ │ └── RemoveBlockButton.tsx │ │ │ │ │ ├── DefaultDragHandleMenu.tsx │ │ │ │ │ ├── DragHandleMenu.tsx │ │ │ │ │ └── DragHandleMenuItem.tsx │ │ │ │ ├── SideMenu.tsx │ │ │ │ ├── SideMenuButton.tsx │ │ │ │ └── SideMenuPositioner.tsx │ │ │ ├── SlashMenu/ │ │ │ │ ├── ReactSlashMenuItem.ts │ │ │ │ ├── components/ │ │ │ │ │ ├── DefaultSlashMenu.tsx │ │ │ │ │ ├── SlashMenuItem.tsx │ │ │ │ │ └── SlashMenuPositioner.tsx │ │ │ │ └── defaultReactSlashMenuItems.tsx │ │ │ ├── defaultThemes.ts │ │ │ ├── hooks/ │ │ │ │ ├── useBlockNote.ts │ │ │ │ ├── useEditorContentChange.ts │ │ │ │ ├── useEditorForceUpdate.tsx │ │ │ │ └── useEditorSelectionChange.ts │ │ │ ├── index.ts │ │ │ └── utils.ts │ │ ├── db.ts │ │ ├── error.ts │ │ ├── file.ts │ │ ├── hooks/ │ │ │ ├── use-agent-configs.ts │ │ │ ├── use-llm-configs.ts │ │ │ ├── use-ordered-set.tsx │ │ │ ├── use-outside-click.ts │ │ │ └── use-resize-observer.tsx │ │ ├── llm/ │ │ │ ├── chat.ts │ │ │ ├── client.ts │ │ │ ├── tools/ │ │ │ │ ├── tool-definitions.ts │ │ │ │ └── utils.ts │ │ │ └── types.ts │ │ ├── shortcuts/ │ │ │ ├── shortcutDefinitions.ts │ │ │ └── use-shortcut.ts │ │ ├── tiptap-extension-code-block/ │ │ │ ├── code-block-lowlight.tsx │ │ │ ├── code-block-view.tsx │ │ │ ├── code-block.ts │ │ │ ├── index.ts │ │ │ └── lowlight-plugin.ts │ │ ├── tiptap-extension-link/ │ │ │ ├── helpers/ │ │ │ │ ├── autolink.ts │ │ │ │ └── clickHandler.ts │ │ │ ├── index.ts │ │ │ └── link.ts │ │ ├── ui.ts │ │ ├── utils/ │ │ │ ├── block-utils.ts │ │ │ ├── entity-id-url.ts │ │ │ ├── index.ts │ │ │ └── node-utils.ts │ │ └── welcome-note.ts │ ├── main.tsx │ └── styles/ │ ├── chat.css │ ├── global.css │ ├── history.scss │ ├── styles.d.ts │ └── tiptap.scss ├── tailwind.config.js ├── tamagui.config.ts ├── tsconfig.json ├── tsconfig.node.json ├── vite ├── vite.config.mts └── vite.config.mts.timestamp-1743614084858-7c68f1a6e1bea.mjs