mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-28 03:19:59 +00:00
* feat(ui): add command palette for quick navigation and search Replace top bar search with a command palette (⌘K / Ctrl+K) that provides: - Quick navigation to all app sections - Create shortcuts for sources, notebooks, and podcasts - Theme switching (light/dark/system) - Search and Ask functionality for non-matching queries This approach saves screen real estate while providing faster access to common actions through keyboard shortcuts. Co-authored-by: EmbroiderSnow <1497411439@qq.com> * chore: bump to 1.2.3 * feat(command-palette): add notebook quick navigation Users can now type a notebook name in the command palette (⌘K) to navigate directly to that notebook. Shows up to 8 most recent notebooks, with cmdk filtering all notebooks when typing. * fix(command-palette): address code review issues - Skip ⌘K/Ctrl+K shortcut when focus is inside input, textarea, select, or contentEditable elements to preserve native keyboard handling - Remove 8-item limit on notebooks so all notebooks are searchable via cmdk filtering * perf(command-palette): memoize command matching and add platform shortcuts - Memoize hasCommandMatch computation with useMemo to avoid recalculating on every render - Show platform-specific keyboard shortcut in sidebar hint: ⌘K on macOS, Ctrl+K on Windows/Linux * fix(command-palette): add spinner to notebooks loading state Show a spinning Loader2 icon alongside the "Loading notebooks..." text for clearer visual feedback when the command palette is fetching data. --------- Co-authored-by: EmbroiderSnow <1497411439@qq.com>
98 lines
2.4 KiB
TOML
98 lines
2.4 KiB
TOML
[project]
|
|
name = "open-notebook"
|
|
version = "1.2.3"
|
|
description = "An open source implementation of a research assistant, inspired by Google Notebook LM"
|
|
authors = [
|
|
{name = "Luis Novo", email = "lfnovo@gmail.com"}
|
|
]
|
|
readme = "README.md"
|
|
classifiers = [
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.11",
|
|
]
|
|
requires-python = ">=3.11,<3.13"
|
|
dependencies = [
|
|
"fastapi>=0.104.0",
|
|
"uvicorn>=0.24.0",
|
|
"pydantic>=2.9.2",
|
|
"loguru>=0.7.2",
|
|
"langchain>=0.3.3",
|
|
"langgraph>=0.2.38",
|
|
"tiktoken>=0.8.0",
|
|
"langgraph-checkpoint-sqlite>=2.0.0",
|
|
"langchain-community>=0.3.3",
|
|
"langchain-openai>=0.2.3",
|
|
"langchain-anthropic>=0.2.3",
|
|
"langchain-ollama>=0.2.0",
|
|
"langchain-google-genai>=2.1.10",
|
|
"langchain-groq>=0.2.1",
|
|
"langchain_mistralai>=0.2.1",
|
|
"langchain_deepseek>=0.1.3",
|
|
"tomli>=2.0.2",
|
|
"groq>=0.12.0",
|
|
"python-dotenv>=1.0.1",
|
|
"httpx[socks]>=0.27.0",
|
|
"content-core>=1.0.2",
|
|
"ai-prompter>=0.3",
|
|
"esperanto>=2.8.3",
|
|
"langchain-google-vertexai>=2.0.28",
|
|
"surrealdb>=1.0.4",
|
|
"podcast-creator>=0.7.0",
|
|
"surreal-commands>=1.2.0",
|
|
]
|
|
|
|
[tool.setuptools]
|
|
package-dir = {"open_notebook" = "open_notebook"}
|
|
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"ipykernel>=6.29.5",
|
|
"ruff>=0.5.5",
|
|
"mypy>=1.11.1",
|
|
"types-requests>=2.32.0.20241016",
|
|
"ipywidgets>=8.1.5",
|
|
"pre-commit>=4.0.1",
|
|
"pytest>=8.0.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["setuptools>=61.0"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pre-commit>=4.1.0",
|
|
"pytest-asyncio>=1.2.0",
|
|
"types-requests>=2.32.4.20250913",
|
|
]
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
line_length = 88
|
|
|
|
[tool.ruff]
|
|
line-length = 88
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I"]
|
|
ignore = [
|
|
"E501", # line too long
|
|
"E402", # module level import not at top of file (Streamlit requires this pattern)
|
|
"E722", # do not use bare except (legacy code pattern)
|
|
"F401", # imported but unused (may be used in type hints or re-exports)
|
|
"F541", # f-string without placeholders
|
|
"F841", # local variable assigned but never used
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
# Streamlit files need nest_asyncio.apply() before imports
|
|
"app_home.py" = ["E402"]
|
|
"pages/**/*.py" = ["E402"]
|
|
|
|
[tool.mypy]
|
|
# Exclude Streamlit UI pages from type checking
|
|
[[tool.mypy.overrides]]
|
|
module = "pages.*"
|
|
ignore_errors = true
|