supernote 0.26.0__tar.gz → 0.26.1__tar.gz
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.
- {supernote-0.26.0/supernote.egg-info → supernote-0.26.1}/PKG-INFO +1 -1
- {supernote-0.26.0 → supernote-0.26.1}/pyproject.toml +1 -1
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/auth.py +22 -1
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/client.py +134 -93
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/schedule.py +3 -3
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/index.html +4 -4
- {supernote-0.26.0 → supernote-0.26.1/supernote.egg-info}/PKG-INFO +1 -1
- {supernote-0.26.0 → supernote-0.26.1}/LICENSE +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/NOTICE +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/README.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/setup.cfg +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/env.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/script.py.mako +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/0543a383957b_initial_schema.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/68964804740d_prevent_user_id_reuse.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/7a8291f043bc_add_links_and_sort_fields_to_schedule_task.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/a2b3c4d5e6f7_scope_summary_unique_identifier_by_user.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/b7397248a96b_merge_mixed_case_system_roots.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/b8e9c0d1e2f3_backfill_summary_md5_and_timestamps.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/c1d2e3f4a5b6_add_embedding_model_to_note_page_content.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/c3d4e5f6a7b8_seed_sync_initialized_for_existing_users.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/d1e2f3a4b5c6_add_client_task_ids.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/d4e5f6a7b8c9_unify_schedule_ids_as_string.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/d5e6f7a8b9c0_reset_legacy_default_user_quota.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/e6f7a8b9c0d1_add_note_and_page_metadata_tables.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/e7f8a9b0c1d2_add_update_time_to_schedule_task_group.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/e8f9a0b1c2d3_add_api_keys_table.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/f1a2b3c4d5e6_make_schedule_task_list_id_nullable.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/f2a3b4c5d6e7_add_user_event_log_table.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/f3b4c5d6e7f8_migrate_generated_summaries_to_ai_category.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/alembic.ini +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/cli/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/cli/admin.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/cli/client.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/cli/main.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/cli/notebook.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/cli/server.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/admin.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/api.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/device.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/events.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/exceptions.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/extended.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/hashing.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/login_client.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/schedule.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/socket.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/client/web.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/auth.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/base.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/equipment.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/events.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/extended.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/file_common.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/file_device.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/file_web.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/schedule.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/socket.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/system.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/user.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/models/webhook.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/author.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/color.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/converter.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/decoder.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/encoder.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/exceptions.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/fileformat.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/manipulator.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/parser.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/renderer.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/ArchitectsDaughter-Regular.ttf +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/Caveat-Variable.ttf +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/InstrumentSerif-Italic.ttf +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/InstrumentSerif-Regular.ttf +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/Karla-Variable.ttf +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/OFL-ArchitectsDaughter.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/OFL-Caveat.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/OFL-InstrumentSerif.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/OFL-Karla.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/OFL-SpaceMono.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/SpaceMono-Bold.ttf +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/SpaceMono-Regular.ttf +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/schema.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/utils.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/py.typed +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/base.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/eval.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/apple/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/apple/backend.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/apple/ocr.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/embedding.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/fake/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/fake/embedding.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/fake/ocr.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/fake/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/gemini/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/gemini/backend.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/gemini/embedding.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/gemini/ocr.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/gemini/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/ocr.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/openai/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/openai/backend.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/openai/embedding.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/openai/ocr.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/openai/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/models/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/ai/prompts.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/app.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/config.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/constants.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/base.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/migrations.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/api_key.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/device.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/event_log.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/file.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/kv.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/login_record.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/note_processing.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/schedule.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/models/user.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/db/session.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/events.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/exceptions.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/keys.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/mcp/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/mcp/auth.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/mcp/models.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/mcp/server.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/metrics.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/ocr/common/context.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/ocr/common/legend.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/ocr/daily/prompt.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/ocr/default/system.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/ocr/monthly/prompt.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/ocr/weekly/prompt.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/summary/common/instruction.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/summary/daily/prompt.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/summary/default/prompt.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/summary/monthly/prompt.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/resources/prompts/summary/weekly/prompt.md +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/admin.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/auth.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/decorators.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/events.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/extended.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/file_device.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/file_web.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/oss.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/schedule.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/routes/system.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/blob.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/conversion.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/coordination.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/event_log.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/file.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/ical_export.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/integrity.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/processor.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/processor_modules/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/processor_modules/embedding.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/processor_modules/ocr.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/processor_modules/page_hashing.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/processor_modules/png_conversion.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/processor_modules/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/search.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/storage_metrics.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/summary.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/user.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/vfs.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/services/webhook.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/socket.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/socket_auth.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/favicon.ico +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/api/client.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/api/http.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/api/schedule.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/FileBrowserPanel.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/FileCard.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/FileViewer.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/LoginCard.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/MoveModal.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/OAuthConsentCard.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/RenameModal.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/SearchModal.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/SystemPanel.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/TaskPanel.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/tasks/TaskEditorModal.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/tasks/TaskIcsModal.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/tasks/TaskRow.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/tasks/TaskSidebar.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/viewer/ViewerMediaPreview.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/viewer/ViewerSidePanel.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/viewer/ViewerToolbar.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/components/viewer/noteMeta.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/composables/useCanvasScrollSync.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/composables/useFileSystem.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/composables/useModalEscape.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/composables/useProcessingStatus.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/composables/useRouter.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/composables/useSchedule.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/composables/useToast.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/main.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/types.d.ts +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/utils/clipboard.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/utils/format.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/utils/markdown.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/js/utils/oauth.js +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/static/style.css +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/trace.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/auth_utils.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/hashing.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/note_content.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/paths.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/prompt_loader.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/rapid_log.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/rate_limit.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/tasks.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/unique_id.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/server/utils/url_signer.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/testing/__init__.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/testing/notebook_fixtures.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote/testing/server_runner.py +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote.egg-info/SOURCES.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote.egg-info/dependency_links.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote.egg-info/entry_points.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote.egg-info/requires.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/supernote.egg-info/top_level.txt +0 -0
- {supernote-0.26.0 → supernote-0.26.1}/tests/test_init.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: supernote
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.1
|
|
4
4
|
Summary: Unofficial Python toolkit for Ratta Supernote: parse and author .note files, self-host a lightweight SQLite private cloud, and run optional AI synthesis
|
|
5
5
|
Author-email: Allen Porter <allen.porter@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -4,7 +4,7 @@ requires = ["setuptools>=77.0"]
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "supernote"
|
|
7
|
-
version = "0.26.
|
|
7
|
+
version = "0.26.1"
|
|
8
8
|
license = "Apache-2.0"
|
|
9
9
|
license-files = ["LICENSE", "NOTICE"]
|
|
10
10
|
description = "Unofficial Python toolkit for Ratta Supernote: parse and author .note files, self-host a lightweight SQLite private cloud, and run optional AI synthesis"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"""Authentication token providers for the Supernote HTTP client.
|
|
2
2
|
|
|
3
3
|
This module defines the `supernote.client.auth.AbstractAuth` interface consumed by
|
|
4
|
-
`supernote.client.client.Client` and `supernote.client.Supernote.from_auth
|
|
4
|
+
`supernote.client.client.Client` and `supernote.client.Supernote.from_auth` (including optional
|
|
5
|
+
reactive token rotation via `AbstractAuth.async_refresh_access_token`), along with concrete
|
|
5
6
|
implementations for static in-memory tokens (`ConstantAuth`) and local disk-cached tokens
|
|
6
7
|
(`FileCacheAuth`, stored in `~/.cache/supernote.pkl`).
|
|
7
8
|
"""
|
|
@@ -13,6 +14,12 @@ from abc import ABC, abstractmethod
|
|
|
13
14
|
|
|
14
15
|
_LOGGER = logging.getLogger(__name__)
|
|
15
16
|
|
|
17
|
+
__all__ = [
|
|
18
|
+
"AbstractAuth",
|
|
19
|
+
"ConstantAuth",
|
|
20
|
+
"FileCacheAuth",
|
|
21
|
+
]
|
|
22
|
+
|
|
16
23
|
|
|
17
24
|
class AbstractAuth(ABC):
|
|
18
25
|
"""Authentication library."""
|
|
@@ -21,6 +28,20 @@ class AbstractAuth(ABC):
|
|
|
21
28
|
async def async_get_access_token(self) -> str:
|
|
22
29
|
"""Return a valid access token."""
|
|
23
30
|
|
|
31
|
+
async def async_refresh_access_token(self, failed_token: str) -> bool:
|
|
32
|
+
"""Refresh the access token after a token-invalid error.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
failed_token: The exact non-empty token sent on the failed request,
|
|
36
|
+
allowing implementations with a refresh lock to skip redundant
|
|
37
|
+
refreshes if a concurrent caller already rotated the token.
|
|
38
|
+
|
|
39
|
+
Returns:
|
|
40
|
+
True if a refreshed token is now available and the caller should
|
|
41
|
+
retry once.
|
|
42
|
+
"""
|
|
43
|
+
return False
|
|
44
|
+
|
|
24
45
|
|
|
25
46
|
class ConstantAuth(AbstractAuth):
|
|
26
47
|
"""Authentication library."""
|
|
@@ -12,7 +12,7 @@ import logging
|
|
|
12
12
|
import re
|
|
13
13
|
import uuid
|
|
14
14
|
from collections.abc import Mapping
|
|
15
|
-
from typing import Any, TypeVar
|
|
15
|
+
from typing import Any, TypeVar, overload
|
|
16
16
|
|
|
17
17
|
import aiohttp
|
|
18
18
|
from aiohttp import FormData
|
|
@@ -40,20 +40,30 @@ __all__ = [
|
|
|
40
40
|
|
|
41
41
|
_T = TypeVar("_T", bound=BaseResponse)
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
_REFRESHABLE_AUTH_ERROR_CODES = frozenset(
|
|
44
44
|
{
|
|
45
45
|
ErrorCode.UNAUTHORIZED.value,
|
|
46
|
+
ErrorCode.LOGIN_EXPIRED.value,
|
|
47
|
+
ErrorCode.INVALID_TOKEN.value,
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
_UNAUTHORIZED_ERROR_CODES = _REFRESHABLE_AUTH_ERROR_CODES | frozenset(
|
|
52
|
+
{
|
|
46
53
|
ErrorCode.ACCOUNT_NOT_EXIST.value,
|
|
47
54
|
ErrorCode.PASSWORD_ERROR.value,
|
|
48
55
|
ErrorCode.INVALID_CREDENTIALS.value,
|
|
49
56
|
ErrorCode.USER_DISABLED.value,
|
|
50
57
|
ErrorCode.USER_LOCKED.value,
|
|
51
58
|
ErrorCode.ACCOUNT_LOCKED.value,
|
|
52
|
-
ErrorCode.LOGIN_EXPIRED.value,
|
|
53
|
-
ErrorCode.INVALID_TOKEN.value,
|
|
54
59
|
}
|
|
55
60
|
)
|
|
56
61
|
|
|
62
|
+
|
|
63
|
+
class _RefreshableUnauthorizedException(UnauthorizedException):
|
|
64
|
+
"""Token-invalid `UnauthorizedException` eligible for a single refresh retry."""
|
|
65
|
+
|
|
66
|
+
|
|
57
67
|
CLOUD_API_URL = "https://cloud.supernote.com"
|
|
58
68
|
HEADERS = {
|
|
59
69
|
"Content-Type": "application/json",
|
|
@@ -140,102 +150,165 @@ class Client:
|
|
|
140
150
|
url = f"{self._host}{url}"
|
|
141
151
|
return url
|
|
142
152
|
|
|
143
|
-
async def
|
|
153
|
+
async def _send_request(
|
|
144
154
|
self,
|
|
145
155
|
method: str,
|
|
146
156
|
url: str,
|
|
147
|
-
headers:
|
|
157
|
+
headers: Mapping[str, Any] | None = None,
|
|
148
158
|
**kwargs: Any,
|
|
149
|
-
) -> aiohttp.ClientResponse:
|
|
150
|
-
"""
|
|
159
|
+
) -> tuple[aiohttp.ClientResponse, str | None]:
|
|
160
|
+
"""Send a single HTTP request and return `(response, injected_token)`."""
|
|
151
161
|
same_origin = self._is_same_origin(url)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
162
|
+
req_headers = (
|
|
163
|
+
_create_headers(self._host if same_origin else None)
|
|
164
|
+
if headers is None
|
|
165
|
+
else dict(headers)
|
|
166
|
+
)
|
|
156
167
|
|
|
168
|
+
used_token: str | None = None
|
|
157
169
|
if same_origin:
|
|
158
|
-
|
|
159
|
-
self._xsrf_token = await self._get_csrf_token()
|
|
160
|
-
headers[XSRF_HEADER] = self._xsrf_token
|
|
161
|
-
|
|
170
|
+
lower_headers = {k.lower() for k in req_headers}
|
|
162
171
|
if (
|
|
163
|
-
self._auth
|
|
164
|
-
and ACCESS_TOKEN not in
|
|
165
|
-
and AUTHORIZATION_HEADER not in
|
|
172
|
+
self._auth is not None
|
|
173
|
+
and ACCESS_TOKEN.lower() not in lower_headers
|
|
174
|
+
and AUTHORIZATION_HEADER.lower() not in lower_headers
|
|
166
175
|
):
|
|
167
176
|
access_token = await self._auth.async_get_access_token()
|
|
168
177
|
if access_token:
|
|
178
|
+
used_token = access_token
|
|
169
179
|
if access_token.startswith(API_KEY_PREFIX):
|
|
170
|
-
|
|
180
|
+
req_headers[AUTHORIZATION_HEADER] = f"Bearer {access_token}"
|
|
171
181
|
else:
|
|
172
|
-
|
|
173
|
-
|
|
182
|
+
req_headers[ACCESS_TOKEN] = access_token
|
|
183
|
+
|
|
184
|
+
# Always get a fresh CSRF token for same-origin API requests
|
|
185
|
+
self._xsrf_token = await self._get_csrf_token()
|
|
186
|
+
req_headers[XSRF_HEADER] = self._xsrf_token
|
|
187
|
+
|
|
188
|
+
resolved_url = self._url(url)
|
|
174
189
|
_LOGGER.debug(
|
|
175
190
|
"request[%s]=%s %s %s",
|
|
176
191
|
method,
|
|
177
|
-
|
|
192
|
+
resolved_url,
|
|
178
193
|
kwargs.get("params"),
|
|
179
|
-
_redact_log_headers(
|
|
194
|
+
_redact_log_headers(req_headers),
|
|
180
195
|
)
|
|
181
196
|
if method != "get" and "json" in kwargs:
|
|
182
197
|
_LOGGER.debug("request[post json]=%s", kwargs["json"])
|
|
183
198
|
response = await self._websession.request(
|
|
184
|
-
method,
|
|
199
|
+
method, resolved_url, **kwargs, headers=req_headers
|
|
185
200
|
)
|
|
186
|
-
return response
|
|
201
|
+
return response, used_token
|
|
187
202
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
203
|
+
@overload
|
|
204
|
+
async def _request_with_retry(
|
|
205
|
+
self,
|
|
206
|
+
method: str,
|
|
207
|
+
url: str,
|
|
208
|
+
*,
|
|
209
|
+
data_cls: None = None,
|
|
210
|
+
**kwargs: Any,
|
|
211
|
+
) -> aiohttp.ClientResponse: ...
|
|
195
212
|
|
|
196
|
-
|
|
213
|
+
@overload
|
|
214
|
+
async def _request_with_retry(
|
|
197
215
|
self,
|
|
216
|
+
method: str,
|
|
198
217
|
url: str,
|
|
218
|
+
*,
|
|
199
219
|
data_cls: type[_T],
|
|
200
220
|
**kwargs: Any,
|
|
221
|
+
) -> _T: ...
|
|
222
|
+
|
|
223
|
+
async def _request_with_retry(
|
|
224
|
+
self,
|
|
225
|
+
method: str,
|
|
226
|
+
url: str,
|
|
227
|
+
*,
|
|
228
|
+
data_cls: type[_T] | None = None,
|
|
229
|
+
**kwargs: Any,
|
|
230
|
+
) -> aiohttp.ClientResponse | _T:
|
|
231
|
+
"""Send a request and retry once on token-invalid errors if `self._auth` refreshes."""
|
|
232
|
+
try:
|
|
233
|
+
resp, used_token = await self._send_request(method, url, **kwargs)
|
|
234
|
+
except ClientError as err:
|
|
235
|
+
raise ApiException(f"Error connecting to API: {err}") from err
|
|
236
|
+
try:
|
|
237
|
+
await self._raise_for_status(resp)
|
|
238
|
+
if data_cls is None:
|
|
239
|
+
return resp
|
|
240
|
+
return await self._parse_json_response(method, resp, data_cls)
|
|
241
|
+
except _RefreshableUnauthorizedException:
|
|
242
|
+
if (
|
|
243
|
+
self._auth is None
|
|
244
|
+
or used_token is None
|
|
245
|
+
or not await self._auth.async_refresh_access_token(used_token)
|
|
246
|
+
):
|
|
247
|
+
raise
|
|
248
|
+
|
|
249
|
+
try:
|
|
250
|
+
resp, _ = await self._send_request(method, url, **kwargs)
|
|
251
|
+
except ClientError as err:
|
|
252
|
+
raise ApiException(f"Error connecting to API: {err}") from err
|
|
253
|
+
await self._raise_for_status(resp)
|
|
254
|
+
if data_cls is None:
|
|
255
|
+
return resp
|
|
256
|
+
return await self._parse_json_response(method, resp, data_cls)
|
|
257
|
+
|
|
258
|
+
async def _parse_json_response(
|
|
259
|
+
self, method: str, resp: aiohttp.ClientResponse, data_cls: type[_T]
|
|
201
260
|
) -> _T:
|
|
202
|
-
"""
|
|
203
|
-
resp = await self.get(url, **kwargs)
|
|
261
|
+
"""Read, deserialize, and validate a JSON `BaseResponse` payload."""
|
|
204
262
|
try:
|
|
205
263
|
result = await resp.text()
|
|
206
264
|
except ClientError as err:
|
|
207
265
|
raise ApiException("Server returned malformed response") from err
|
|
208
|
-
|
|
266
|
+
if method == "get":
|
|
267
|
+
_LOGGER.debug("response=%s", _SN_API_KEY_LOG_RE.sub("***", result))
|
|
209
268
|
try:
|
|
210
269
|
data_response = data_cls.from_json(result)
|
|
211
270
|
except (LookupError, ValueError) as err:
|
|
212
|
-
raise ApiException(
|
|
271
|
+
raise ApiException(
|
|
272
|
+
f"Server return malformed response type {data_cls.__name__}: {result}"
|
|
273
|
+
) from err
|
|
213
274
|
self._raise_for_data_response(data_response)
|
|
214
275
|
return data_response
|
|
215
276
|
|
|
277
|
+
async def request(
|
|
278
|
+
self,
|
|
279
|
+
method: str,
|
|
280
|
+
url: str,
|
|
281
|
+
headers: dict[str, Any] | None = None,
|
|
282
|
+
**kwargs: Any,
|
|
283
|
+
) -> aiohttp.ClientResponse:
|
|
284
|
+
"""Make a request."""
|
|
285
|
+
resp, _ = await self._send_request(method, url, headers=headers, **kwargs)
|
|
286
|
+
return resp
|
|
287
|
+
|
|
288
|
+
async def get(self, url: str, **kwargs: Any) -> aiohttp.ClientResponse:
|
|
289
|
+
"""Make a get request."""
|
|
290
|
+
return await self._request_with_retry("get", url, **kwargs)
|
|
291
|
+
|
|
292
|
+
async def get_json(
|
|
293
|
+
self,
|
|
294
|
+
url: str,
|
|
295
|
+
data_cls: type[_T],
|
|
296
|
+
**kwargs: Any,
|
|
297
|
+
) -> _T:
|
|
298
|
+
"""Make a get request and return json response."""
|
|
299
|
+
return await self._request_with_retry("get", url, data_cls=data_cls, **kwargs)
|
|
300
|
+
|
|
216
301
|
async def post(self, url: str, **kwargs: Any) -> aiohttp.ClientResponse:
|
|
217
302
|
"""Make a post request."""
|
|
218
|
-
|
|
219
|
-
resp = await self.request("post", url, **kwargs)
|
|
220
|
-
except ClientError as err:
|
|
221
|
-
raise ApiException(f"Error connecting to API: {err}") from err
|
|
222
|
-
return await self._raise_for_status(resp)
|
|
303
|
+
return await self._request_with_retry("post", url, **kwargs)
|
|
223
304
|
|
|
224
305
|
async def put(self, url: str, **kwargs: Any) -> aiohttp.ClientResponse:
|
|
225
306
|
"""Make a put request."""
|
|
226
|
-
|
|
227
|
-
resp = await self.request("put", url, **kwargs)
|
|
228
|
-
except ClientError as err:
|
|
229
|
-
raise ApiException(f"Error connecting to API: {err}") from err
|
|
230
|
-
return await self._raise_for_status(resp)
|
|
307
|
+
return await self._request_with_retry("put", url, **kwargs)
|
|
231
308
|
|
|
232
309
|
async def delete(self, url: str, **kwargs: Any) -> aiohttp.ClientResponse:
|
|
233
310
|
"""Make a delete request."""
|
|
234
|
-
|
|
235
|
-
resp = await self.request("delete", url, **kwargs)
|
|
236
|
-
except ClientError as err:
|
|
237
|
-
raise ApiException(f"Error connecting to API: {err}") from err
|
|
238
|
-
return await self._raise_for_status(resp)
|
|
311
|
+
return await self._request_with_retry("delete", url, **kwargs)
|
|
239
312
|
|
|
240
313
|
async def get_content(self, url: str, **kwargs: Any) -> bytes:
|
|
241
314
|
"""Make a get request and return bytes."""
|
|
@@ -247,57 +320,25 @@ class Client:
|
|
|
247
320
|
|
|
248
321
|
async def post_json(self, url: str, data_cls: type[_T], **kwargs: Any) -> _T:
|
|
249
322
|
"""Make a post request and return a json response."""
|
|
250
|
-
|
|
251
|
-
try:
|
|
252
|
-
result = await resp.text()
|
|
253
|
-
except ClientError as err:
|
|
254
|
-
raise ApiException("Server returned malformed response") from err
|
|
255
|
-
try:
|
|
256
|
-
data_response = data_cls.from_json(result)
|
|
257
|
-
except (LookupError, ValueError) as err:
|
|
258
|
-
raise ApiException(
|
|
259
|
-
f"Server return malformed response type {data_cls.__name__}: {result}"
|
|
260
|
-
) from err
|
|
261
|
-
self._raise_for_data_response(data_response)
|
|
262
|
-
return data_response
|
|
323
|
+
return await self._request_with_retry("post", url, data_cls=data_cls, **kwargs)
|
|
263
324
|
|
|
264
325
|
async def put_json(self, url: str, data_cls: type[_T], **kwargs: Any) -> _T:
|
|
265
326
|
"""Make a put request and return a json response."""
|
|
266
|
-
|
|
267
|
-
try:
|
|
268
|
-
result = await resp.text()
|
|
269
|
-
except ClientError as err:
|
|
270
|
-
raise ApiException("Server returned malformed response") from err
|
|
271
|
-
try:
|
|
272
|
-
data_response = data_cls.from_json(result)
|
|
273
|
-
except (LookupError, ValueError) as err:
|
|
274
|
-
raise ApiException(
|
|
275
|
-
f"Server return malformed response type {data_cls.__name__}: {result}"
|
|
276
|
-
) from err
|
|
277
|
-
self._raise_for_data_response(data_response)
|
|
278
|
-
return data_response
|
|
327
|
+
return await self._request_with_retry("put", url, data_cls=data_cls, **kwargs)
|
|
279
328
|
|
|
280
329
|
async def delete_json(self, url: str, data_cls: type[_T], **kwargs: Any) -> _T:
|
|
281
330
|
"""Make a delete request and return a json response."""
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
except ClientError as err:
|
|
286
|
-
raise ApiException("Server returned malformed response") from err
|
|
287
|
-
try:
|
|
288
|
-
data_response = data_cls.from_json(result)
|
|
289
|
-
except (LookupError, ValueError) as err:
|
|
290
|
-
raise ApiException(
|
|
291
|
-
f"Server return malformed response type {data_cls.__name__}: {result}"
|
|
292
|
-
) from err
|
|
293
|
-
self._raise_for_data_response(data_response)
|
|
294
|
-
return data_response
|
|
331
|
+
return await self._request_with_retry(
|
|
332
|
+
"delete", url, data_cls=data_cls, **kwargs
|
|
333
|
+
)
|
|
295
334
|
|
|
296
335
|
@staticmethod
|
|
297
336
|
def _raise_for_data_response(data_response: BaseResponse) -> None:
|
|
298
337
|
"""Raise an appropriate ApiException when a parsed response indicates failure."""
|
|
299
338
|
if data_response.success:
|
|
300
339
|
return
|
|
340
|
+
if data_response.error_code in _REFRESHABLE_AUTH_ERROR_CODES:
|
|
341
|
+
raise _RefreshableUnauthorizedException(data_response.error_msg)
|
|
301
342
|
if data_response.error_code in _UNAUTHORIZED_ERROR_CODES:
|
|
302
343
|
raise UnauthorizedException(data_response.error_msg)
|
|
303
344
|
raise ApiException(data_response.error_msg)
|
|
@@ -328,7 +369,7 @@ class Client:
|
|
|
328
369
|
resp.raise_for_status()
|
|
329
370
|
except aiohttp.ClientResponseError as err:
|
|
330
371
|
if err.status == 401:
|
|
331
|
-
raise
|
|
372
|
+
raise _RefreshableUnauthorizedException(
|
|
332
373
|
f"Unauthorized response from API ({err.status}): {error_detail}"
|
|
333
374
|
) from err
|
|
334
375
|
if err.status == 403:
|
|
@@ -418,9 +418,9 @@ class ScheduleService:
|
|
|
418
418
|
if since is not None:
|
|
419
419
|
query = query.where(
|
|
420
420
|
or_(
|
|
421
|
-
ScheduleTaskDO.update_time
|
|
422
|
-
ScheduleTaskDO.sort_time
|
|
423
|
-
ScheduleTaskDO.planer_sort_time
|
|
421
|
+
ScheduleTaskDO.update_time >= since,
|
|
422
|
+
ScheduleTaskDO.sort_time >= since,
|
|
423
|
+
ScheduleTaskDO.planer_sort_time >= since,
|
|
424
424
|
)
|
|
425
425
|
)
|
|
426
426
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<script src="https://cdn.tailwindcss.com/3.4.17"></script>
|
|
9
9
|
<script>tailwind.config = { darkMode: 'class' };</script>
|
|
10
10
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/spark-md5/3.0.2/spark-md5.min.js"></script>
|
|
11
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-sha256/1.
|
|
11
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-sha256/1.1.0/sha256.min.js"></script>
|
|
12
12
|
<script src="https://cdn.socket.io/4.8.4/socket.io.min.js"></script>
|
|
13
13
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
|
14
14
|
<link rel="stylesheet" href="/static/style.css">
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
<script type="importmap">
|
|
18
18
|
{
|
|
19
19
|
"imports": {
|
|
20
|
-
"vue": "https://unpkg.com/vue@3.5.
|
|
21
|
-
"marked": "https://unpkg.com/marked@18.2.
|
|
22
|
-
"dompurify": "https://unpkg.com/dompurify@3.
|
|
20
|
+
"vue": "https://unpkg.com/vue@3.5.46/dist/vue.esm-browser.js",
|
|
21
|
+
"marked": "https://unpkg.com/marked@18.2.1/lib/marked.esm.js",
|
|
22
|
+
"dompurify": "https://unpkg.com/dompurify@3.5.0/dist/purify.es.mjs"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: supernote
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.1
|
|
4
4
|
Summary: Unofficial Python toolkit for Ratta Supernote: parse and author .note files, self-host a lightweight SQLite private cloud, and run optional AI synthesis
|
|
5
5
|
Author-email: Allen Porter <allen.porter@gmail.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/0543a383957b_initial_schema.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/d1e2f3a4b5c6_add_client_task_ids.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supernote-0.26.0 → supernote-0.26.1}/supernote/alembic/versions/e8f9a0b1c2d3_add_api_keys_table.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/Caveat-Variable.ttf
RENAMED
|
File without changes
|
{supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/InstrumentSerif-Italic.ttf
RENAMED
|
File without changes
|
{supernote-0.26.0 → supernote-0.26.1}/supernote/notebook/resources/fonts/InstrumentSerif-Regular.ttf
RENAMED
|
File without changes
|