mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-12-05 14:04:08 +00:00
* docs: development docs match the codebase; add-a-provider playbook - architecture.md: rewritten as a ~110-line map verified against the code (processes, layout, data model from the migrations, graphs, model calls, background jobs); links the accurate topic pages - testing.md, api-reference.md, code-standards.md: rewritten from the real suite, the /api prefix and Bearer auth, and the actual error-handling pattern (no longer contradicts AGENTS.md) - change-playbooks.md: new "Add an AI provider" playbook (registry + the four hand-maintained copies + tests + docs, checked against #1443/#1444); fixes async nodes, command registration, polling paths, locale steps (LanguageToggle, satisfies TranslationShape), colocated frontend tests - development-setup.md is the single setup page (deps, .env with localhost SURREAL_URL, DB -> API -> worker -> frontend, real log lines, /health); quick-start.md and README.dev.md point to it - contributing.md: Conventional Commits, CHANGELOG rule, pre-PR checks that match CI; PR template gains ruff format and frontend checks - AGENTS files agree with the docs (provider edits, routers vs services, async nodes, checkpoint path, ADR-013, stop_on); api/AGENTS.md is a plain link instead of a Claude-only @ import - ADR index explains ADR-010 (reserved for #1332) and number-at-merge; GitHub-compatible encryption anchor; small credentials/security fixes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: address review (CI commands, async source creation, paths, ADR-010, language toggle) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
4.3 KiB
4.3 KiB
Description
Related Issue
Fixes #
Type of Change
- Bug fix (non-breaking change that fixes an issue)
- New feature (non-breaking change that adds functionality)
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
- Documentation update
- Code refactoring (no functional changes)
- Performance improvement
- Test coverage improvement
How Has This Been Tested?
- Tested locally with Docker
- Tested locally with development setup
- Added new unit tests
- Existing tests pass (
uv run pytest tests/, andnpm run testinfrontend/if the frontend changed) - Manual testing performed (describe below)
Test Details:
Design Alignment
Which design principles does this PR support? (See VISION.md)
- Privacy First
- Simplicity Over Features
- API-First Architecture
- Provider-Agnostic Core
- Extensibility Through Standards
- Async-First for Performance
Explanation:
Checklist
Code Quality
- My code follows PEP 8 style guidelines (Python)
- My code follows TypeScript best practices (Frontend)
- I have added type hints to my code (Python)
- I have added JSDoc comments where appropriate (TypeScript)
- I have performed a self-review of my code
- I have commented my code, particularly in hard-to-understand areas
- My changes generate no new warnings or errors
Testing
- I have added tests that prove my fix is effective or that my feature works
- New and existing unit tests pass locally with my changes
- I ran linting:
uv run ruff check . - I ran formatting:
uv run ruff format .(CI fails ifruff format --check .finds changes) - I ran type checking:
uv run python -m mypy . - Frontend changes:
npm run lint,npm run testandnpm run buildpass (run insidefrontend/)
Documentation
- I have updated the relevant documentation in
/docs(if applicable) - I have added/updated docstrings for new/modified functions
- I have added a CHANGELOG entry under
[Unreleased]in the section for its type (if user-visible) - I have added comments to complex logic
Database Changes
- I have created migration scripts for any database schema changes (in
open_notebook/database/migrations/, registered inasync_migrate.py) - Migration includes both up and down scripts
- Migration has been tested locally
Breaking Changes
- This PR includes breaking changes
- I have documented the migration path for users
- The CHANGELOG entry explains what users must do
Screenshots (if applicable)
Additional Context
Pre-Submission Verification
Before submitting, please verify:
- I have read CONTRIBUTING.md
- I have read VISION.md
- This PR addresses an approved Issue assigned to me, or it's a small obvious fix (typo, docs, tiny bug) that doesn't need one — ideas and features begin in Discussions; reproducible bugs begin in Issues
- I have not included unrelated changes in this PR
- My PR title follows the Conventional Commits format (e.g., "fix(podcasts): …", "feat: …")
Thank you for contributing to Open Notebook! 🎉