MetaList 0.10.0__tar.gz → 0.11.0__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.
- {metalist-0.10.0 → metalist-0.11.0}/PKG-INFO +10 -1
- {metalist-0.10.0 → metalist-0.11.0}/README.md +9 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/middleware/auth.py +0 -16
- {metalist-0.10.0 → metalist-0.11.0}/app/api/note_requests.py +4 -2
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/auth.py +2 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/notes.py +41 -152
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/ontology.py +0 -4
- {metalist-0.10.0 → metalist-0.11.0}/app/db/notes_sql.py +9 -8
- {metalist-0.10.0 → metalist-0.11.0}/app/encryption_audit.py +11 -2
- metalist-0.11.0/app/security/sensitive_cache.py +116 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/help_catalog.py +3 -1
- metalist-0.11.0/app/services/agent/markdown_validation.py +35 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-formatting.md +3 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/content_formatting.py +44 -2
- {metalist-0.10.0 → metalist-0.11.0}/app/services/embedded_references.py +53 -26
- {metalist-0.10.0 → metalist-0.11.0}/app/services/encryption.py +29 -12
- {metalist-0.10.0 → metalist-0.11.0}/app/services/link_titles.py +16 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/note_image_tags.py +11 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/note_store.py +193 -48
- {metalist-0.10.0 → metalist-0.11.0}/app/services/request_recovery.py +4 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/root_sorting.py +125 -59
- {metalist-0.10.0 → metalist-0.11.0}/app/services/search_history.py +84 -35
- {metalist-0.10.0 → metalist-0.11.0}/app/services/search_index.py +105 -48
- {metalist-0.10.0 → metalist-0.11.0}/app/services/snapshot.py +336 -176
- {metalist-0.10.0 → metalist-0.11.0}/app/services/store.py +3 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/services/sync.py +7 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/services/tab_state.py +8 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/tag_suggestions.py +24 -31
- {metalist-0.10.0 → metalist-0.11.0}/app/services/tag_term_matching.py +35 -33
- {metalist-0.10.0 → metalist-0.11.0}/app/services/undo_state.py +13 -2
- metalist-0.11.0/app/services/view_cache.py +99 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/css/main.css +1 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/api-client.js +11 -5
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/config.js +2 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/actions/note-actions.js +6 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/actions/ui-actions.js +76 -29
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/events/input-events.js +0 -3
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/events/keyboard-events.js +18 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/mode-context.js +93 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/mode-manager-controller.js +8 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/collapse-affordance-service.js +50 -21
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/differential-view-service.js +2 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/floating-note-service.js +2 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/html-paste-sanitizer-service.js +4 -2
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/infinite-scroll-service.js +41 -52
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/polling-service.js +42 -6
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/root-date-separator-service.js +1 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/root-sort-service.js +7 -2
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/scroll-to-top-service.js +13 -2
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/tab-state-service.js +17 -4
- metalist-0.11.0/app/static/js/modules/mode-manager/services/viewport-hold-service.js +75 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/bulk_tag_proposals.py +9 -5
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/delete_subtree.py +3 -1
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/delete_tag.py +10 -7
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/rename_tag.py +6 -5
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/view.py +3 -3
- {metalist-0.10.0 → metalist-0.11.0}/app/utils/text_utils.py +3 -4
- {metalist-0.10.0 → metalist-0.11.0}/app/version.py +1 -1
- {metalist-0.10.0 → metalist-0.11.0}/metalist.egg-info/PKG-INFO +10 -1
- {metalist-0.10.0 → metalist-0.11.0}/metalist.egg-info/SOURCES.txt +2 -0
- metalist-0.10.0/app/security/sensitive_cache.py +0 -78
- metalist-0.10.0/app/services/view_cache.py +0 -122
- {metalist-0.10.0 → metalist-0.11.0}/MANIFEST.in +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/deps.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/dev.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/request_auth.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/ai.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/app_updates.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/backups.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/files.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/reminders.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/remote_images.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/routes/test.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/transactions.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/api/upload_limits.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/config.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/data_directory.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/backup_settings_sql.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/editable_files_migration.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/engine.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/file_schema.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/file_session.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/files_sql.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/link_titles_sql.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/live_recovery.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/migrations.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/ontology_rules_sql.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/reminders_sql.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/retire_sounds.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/schema.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/search_history_sql.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/session.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/settings_sql.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/tab_state_sql.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/db/version.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/exception_boundaries.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/https_proxy.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/main.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/models/commands.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/models/database.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/models/entities.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/models/enums.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/models/linked_list.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/models/list_operations.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/models/list_traversal.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/models/note_crud.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/models/utils.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/network_settings.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/presentation/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/presentation/render/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/presentation/render/note_renderer.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/presentation/templates.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/authenticated_logging.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/encryption.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/http_error_diagnostics.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/http_headers.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/note_html.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/request_boundary.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/request_hosts.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/sensitive_logging.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/shell_execution.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/security/validation_errors.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/server_runtime.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/actions.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/cloud_privacy.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/context.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/evidence_serialization.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/history.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/inference.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/investigation.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/judging.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/menu_actions.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/model_policy.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/openai_cost_tracking.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/openai_inference.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/permissions.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/prompt_settings.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/prompts/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/prompts/final-response.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/prompts/help-response.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/prompts/system.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/prompts/tool-result.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/retrieval_settings.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/runtime.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/scope.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skill_settings.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-ai.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-data.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-menus.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-notes.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-privacy.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-references.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-reminders.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-search.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/help-tags.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/scoped-investigation.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/staged-summary.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/tag-proposals.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/skills/web-browsing.md +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/staged_summary.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/structured_inference.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/tagging.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/tagging_run.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/token_estimation.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/tools.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/trace.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/web_capabilities.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/web_evidence.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/web_fetch.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/agent/web_settings.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/ai_chat.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/ai_chat_rendering.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/ai_chat_stream.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/app_update_worker.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/app_updates.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/auth.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/auth_cache_state.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/auth_service.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/backlink_index.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/backlinks.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/backup_service.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/backup_settings_service.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/bulk_operation.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/client_state_service.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/content_cache.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/diagnostics.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/exception_capture.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/file_edit_sessions.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/file_registry.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/file_storage.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/footnote_layout.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/footnote_rendering.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/hierarchy.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/html_export.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/html_unformatting.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/hydration_state.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/image_size_formatting.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/inline_image_occurrences.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/input_errors.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/integrity.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/latex_rendering.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/login_rate_limit.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/maintenance_mode.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/markdown_rendering.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/namespace_deletion_jobs.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/namespace_deletion_worker.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/namespace_rename_jobs.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/namespace_rename_worker.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/namespace_runtime_guard.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/namespace_switcher.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/note_fullscreen.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/note_ordering.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/ontology_rules_store.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/openai_credentials.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/password_note_fields.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/public_http.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/reference_presentation.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/reminders.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/remote_image_proxy.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/resource_limits.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/runtime_generation.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/runtime_hardening.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/runtime_lock.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/search_history_storage.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/search_query.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/search_text.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/selected_text_tag.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/self_update.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/session_timeout_service.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/shell_session_service.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/structured_note_renderers.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/sync_state.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/tag_case.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/tag_ontology.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/tag_rename.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/test_reset.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/tokens.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/update_backups.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/update_installer.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/update_preflight.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/view_diff.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/view_state.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/services/windows_process_control.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/startup_environment.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/startup_js_sanity.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/startup_sanity.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/startup_sanity_config.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/config/agent-menu-actions.json +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/config/command_palette_tags.json +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/css/floating-notes.css +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/css/forms.css +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/img/favicon.ico +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/locked.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/main.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/activity-tracker.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/agent-menu-actions.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/agent-prompt-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/agent-retrieval-settings.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/agent-web-settings.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/ai-agent-debug-view.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/ai-chat-api.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/ai-chat-message-placement.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/ai-chat-panel-controller.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/ai-chat-panel-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/ai-thinking-level-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/bulk-elapsed-clock.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/bulk-proposal-ui.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/bulk-scope-question.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/cloud-privacy-policy.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/proposal-menu.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/ai-chat/summary-batch-preview.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/api-error-diagnostics.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/api-failure-classification-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/app-update-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/application-state.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/async-result.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/auth.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/client-state-api.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/client-state-migration.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/command-palette/activation-auth-policy.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/command-palette/backup-command-availability.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/command-palette/click-activation-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/command-palette/command-palette-controller.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/command-palette/endpoint-registry.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/command-palette/note-layout-preferences.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/command-palette/preferences-store.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/command-palette/tag-config-loader.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/command-palette/usage-store.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/connectivity-monitor.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/context-menu/context-menu-registry.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/context-menu/context-menu-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/context-menu/context-menu-target-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/context-menu/input-caret-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/disconnect-editing-state-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/dom-utils-fixed.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/dom-utils.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/editor-commands.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/editor-selection.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/editor-toolbar.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/elapsed-time.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/error-handler.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/error-overlay.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/excalidraw/excalidraw-actions.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/excalidraw/excalidraw-autosave.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/excalidraw/excalidraw-editor-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/excalidraw/excalidraw-editor-state.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/excalidraw/excalidraw-loader.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/excalidraw/excalidraw-preview-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/excalidraw/excalidraw-scene.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/expected-errors.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/location-flags.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/login-namespace-picker.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/maintenance.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/agent-prompt-editor-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/ai-agent-settings-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/alphabetize-root-notes-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/backup-restore-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/backup-result-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/backup-retention-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/backup-settings-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/base-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/confirmation-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/delete-namespace-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/delete-namespace-validation.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/help-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/namespace-loading-page.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/namespace-modals.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/namespace-ports-profile.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/namespace-rename-validation.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/note-layout-appearance-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/ontology-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/password-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/prioritize-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/random-password-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/reminder-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/reset-updated-at-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/search-suggestion-statistics-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/session-timeout-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/modals/version-info-modal.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/actions/content-actions.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/actions/history-actions.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/actions/search-actions.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/actions/selection-actions.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/events/context-menu-events.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/events/focus-events.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/events/inactivity-events.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/events/mouse-events.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/events/search-events.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/mode-logger.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/add-style-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/animated-scroll-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/backlinks-navigation-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/backlinks-panel-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/clipboard-shortcut-policy-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/collapse-editing-policy-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/command-gate-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/context-menu-target-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/deselect-selection-state-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/edit-session-collapse-policy-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/edit-session-collapse-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/embedded-image-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/file-drop-policy-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/file-image-preview-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/file-reference-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/filtered-refresh-selection-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/floating-note-dom.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/floating-note-layout.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/footnote-navigation-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/history-selection-policy-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/history-shortcut-policy-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/image-context-menu-action-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/image-file-insert-choice-modal-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/link-context-menu-action-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/link-title-prefetch-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/markdown-render-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/mermaid-render-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-click-target-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-clipboard-write-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-collapse-animation-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-context-menu-action-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-delete-shortcut-policy-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-drag-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-fullscreen-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-reposition-animation-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-split-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/note-timestamp-hover-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/password-clipboard-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/reference-source-navigation-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/remote-image-proxy-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/remove-formatting-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/root-sort-indicator-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/scroll-anchor-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/scroll-restoration-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-contexts-overlay-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-debounce-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-input-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-interaction-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-redaction-reveal-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-suggestion-statistics-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-suggestion-window-labels-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-suggestion-windows-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-suggestions-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/search-syntax-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/selected-formatting-removal-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/selected-text-tag-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/shell-output-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/tab-dom-cache-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/tab-drag-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/tab-duplication-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/tag-bar-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/tag-input-selection-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/tag-proposal-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/tag-suggestions-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/tag-syntax-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/todo-toggle-editing-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/untagged-view-indicator-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/mode-manager/services/view-mode-search-shortcut-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/note-html-sanitizer.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/password-generator.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/password-operation-response.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/password-policy.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/password-strength.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/reminder-store.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/reminder-surface-service.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/selection-markers.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/session-auth.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/tag-token.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/modules/uuid.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/namespace-deleted.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/namespace-renamed.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/dompurify-3.4.13.LICENSE.txt +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/dompurify-3.4.13.min.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/excalidraw.css +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Assistant/Assistant-Bold.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Assistant/Assistant-Medium.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Assistant/Assistant-Regular.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Assistant/Assistant-SemiBold.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Cascadia/CascadiaCode-Regular.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/ComicShanns/ComicShanns-Regular-279a7b317d12eb88de06167bd672b4b4.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/ComicShanns/ComicShanns-Regular-6e066e8de2ac57ea9283adb9c24d7f0c.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/ComicShanns/ComicShanns-Regular-dc6a8806fa96795d7b3be5026f989a17.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/ComicShanns/ComicShanns-Regular-fcb0fc02dcbee4c9846b3e2508668039.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Excalifont/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Excalifont/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Excalifont/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Excalifont/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Excalifont/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Excalifont/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Excalifont/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTk3j6zbXWjgevT5.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTo3j6zbXWjgevT5.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTs3j6zbXWjgevT5.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1-assets/fonts/Virgil/Virgil-Regular.woff2 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1.LICENSE.txt +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/excalidraw-0.18.1.min.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/markdown-it-14.3.2.LICENSE.txt +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/markdown-it-14.3.2.min.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/mermaid-11.16.1.LICENSE.txt +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/mermaid-11.16.1.min.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/zxcvbn-4.4.2.LICENSE.txt +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/js/vendor/zxcvbn-4.4.2.js +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/note-html-policy.json +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/static/video/login-startup.mp4 +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/templates/base.html +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/templates/index.html +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/templates/locked.html +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/templates/maintenance.html +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/templates/namespace_deleted.html +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/templates/namespace_renamed.html +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/templates/notes_list.html +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/upload_limits.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/add_selected_text_tag.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/alphabetize_root_notes.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/base.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/collapse.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/copy_note.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/create_child.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/create_note.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/create_sibling.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/expand.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/file_edit_session.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/indent.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/lock.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/move.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/move_to_top.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/outdent.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/paste_child.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/paste_sibling.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/prefetch_link_titles.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/prioritize.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/redo.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/reset_updated_at.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/resize_image.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/run_shell.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/search_comment_autofill.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/search_context_tags.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/set_collapse_bulk.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/set_collapse_in_context.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/split_note.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/tag_proposals.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/toggle_reference_mode.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/toggle_todo_done.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/undo.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/unformat_content.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/usecases/update_content.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/utils/__init__.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/app/utils/encryption.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/convert-from-legacy.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/main.py +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/metalist.egg-info/dependency_links.txt +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/metalist.egg-info/entry_points.txt +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/metalist.egg-info/requires.txt +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/metalist.egg-info/top_level.txt +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/pyproject.toml +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/scripts/generate-lan-cert.sh +0 -0
- {metalist-0.10.0 → metalist-0.11.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metalist
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: A minimalist single-user note-taking app with SSR, fast in-memory tree operations, and efficient sync.
|
|
5
5
|
Project-URL: Homepage, https://github.com/evolvingstuff/metalist
|
|
6
6
|
Project-URL: Repository, https://github.com/evolvingstuff/metalist
|
|
@@ -49,6 +49,15 @@ A minimalist single-user note-taking app focused on server-side rendering (SSR),
|
|
|
49
49
|
- Multi-tab search contexts with server-persisted scroll/search state (survives browser restarts)
|
|
50
50
|
- Manual namespace backups/restores to a user-selected backup folder with retention controls
|
|
51
51
|
|
|
52
|
+
## Changes in 0.11.0
|
|
53
|
+
|
|
54
|
+
- Large namespaces stay fast while scrolling: only a band of root notes around the viewport is loaded, the server remembers what each tab shows so the browser no longer sends note hashes, and rendered notes are cached.
|
|
55
|
+
- Tag suggestions, searches with only exclusions (`-tag`), and the updated/content-volume sort orders respond much faster on large namespaces.
|
|
56
|
+
- Accepting or removing tag proposals in bulk, renaming or deleting a tag, and undoing a large delete no longer rebuild every note's inherited tags.
|
|
57
|
+
- Unlocking an encrypted namespace is faster, and the startup encryption audit no longer loads every attachment into memory.
|
|
58
|
+
- Fixed undo of deleting a note whose children have several children, and "accept all" failing on tag bars with leading or trailing spaces.
|
|
59
|
+
- Fixed crashes in the status check after returning to a tab and in scroll-position saving.
|
|
60
|
+
|
|
52
61
|
## Changes in 0.10.0
|
|
53
62
|
|
|
54
63
|
- Excalidraw diagrams: add one from the note's right-click menu or the command palette, and double-click a diagram to edit it full screen. Diagrams autosave, show light and dark previews, resize like images, and each editing session is one undo step. The editor is bundled locally and needs no Node server.
|
|
@@ -12,6 +12,15 @@ A minimalist single-user note-taking app focused on server-side rendering (SSR),
|
|
|
12
12
|
- Multi-tab search contexts with server-persisted scroll/search state (survives browser restarts)
|
|
13
13
|
- Manual namespace backups/restores to a user-selected backup folder with retention controls
|
|
14
14
|
|
|
15
|
+
## Changes in 0.11.0
|
|
16
|
+
|
|
17
|
+
- Large namespaces stay fast while scrolling: only a band of root notes around the viewport is loaded, the server remembers what each tab shows so the browser no longer sends note hashes, and rendered notes are cached.
|
|
18
|
+
- Tag suggestions, searches with only exclusions (`-tag`), and the updated/content-volume sort orders respond much faster on large namespaces.
|
|
19
|
+
- Accepting or removing tag proposals in bulk, renaming or deleting a tag, and undoing a large delete no longer rebuild every note's inherited tags.
|
|
20
|
+
- Unlocking an encrypted namespace is faster, and the startup encryption audit no longer loads every attachment into memory.
|
|
21
|
+
- Fixed undo of deleting a note whose children have several children, and "accept all" failing on tag bars with leading or trailing spaces.
|
|
22
|
+
- Fixed crashes in the status check after returning to a tab and in scroll-position saving.
|
|
23
|
+
|
|
15
24
|
## Changes in 0.10.0
|
|
16
25
|
|
|
17
26
|
- Excalidraw diagrams: add one from the note's right-click menu or the command palette, and double-click a diagram to edit it full screen. Diagrams autosave, show light and dark previews, resize like images, and each editing session is one undo step. The editor is bundled locally and needs no Node server.
|
|
@@ -37,11 +37,6 @@ class AuthMiddleware(BaseHTTPMiddleware):
|
|
|
37
37
|
)
|
|
38
38
|
assert all(path.endswith("/") for path in PUBLIC_PREFIX_PATHS)
|
|
39
39
|
|
|
40
|
-
# Paths to suppress verbose logging for (frequent polling endpoints)
|
|
41
|
-
QUIET_PATHS = [
|
|
42
|
-
f"{API_PREFIX}/auth/status",
|
|
43
|
-
]
|
|
44
|
-
|
|
45
40
|
# Background/automated paths that should NOT refresh tokens (not user activity)
|
|
46
41
|
NO_TOKEN_REFRESH_PATHS = [
|
|
47
42
|
f"{API_PREFIX}/auth/status", # Polling service pings this for connectivity
|
|
@@ -75,20 +70,9 @@ class AuthMiddleware(BaseHTTPMiddleware):
|
|
|
75
70
|
# Redirect all other requests to maintenance page
|
|
76
71
|
return RedirectResponse(url="/maintenance", status_code=302)
|
|
77
72
|
|
|
78
|
-
# Check if this is a quiet path (suppress verbose logging)
|
|
79
|
-
is_quiet = any(path.startswith(quiet) for quiet in self.QUIET_PATHS)
|
|
80
|
-
|
|
81
|
-
if not is_quiet:
|
|
82
|
-
print(f"Middleware checking path: {path}")
|
|
83
|
-
|
|
84
73
|
if self.is_public_path(path=path):
|
|
85
|
-
if not is_quiet:
|
|
86
|
-
print(f"Path {path} is explicitly public, skipping auth")
|
|
87
74
|
return await call_next(request)
|
|
88
75
|
|
|
89
|
-
if not is_quiet:
|
|
90
|
-
print(f"Path {path} is NOT public, checking auth")
|
|
91
|
-
|
|
92
76
|
# Startup and recoverable password transitions publish this memory-owned flag.
|
|
93
77
|
if path == f"{API_PREFIX}/auth/settings/password/create" and not is_encryption_required():
|
|
94
78
|
return await call_next(request)
|
|
@@ -56,8 +56,9 @@ class ViewDiffRequest(TypedDict):
|
|
|
56
56
|
search: Text | None
|
|
57
57
|
tabId: Identifier
|
|
58
58
|
undoContext: UndoContext
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
tabViewEmpty: bool
|
|
60
|
+
visibleTopRootId: Text | None
|
|
61
|
+
visibleBottomRootId: Text | None
|
|
61
62
|
isUntaggedView: bool
|
|
62
63
|
|
|
63
64
|
@with_config(ConfigDict(strict=True))
|
|
@@ -76,6 +77,7 @@ class UpdateTabSortModeRequest(TypedDict):
|
|
|
76
77
|
@with_config(ConfigDict(strict=True))
|
|
77
78
|
class CreateNewTabRequest(TypedDict):
|
|
78
79
|
copyFromTabId: Identifier
|
|
80
|
+
clientId: Identifier
|
|
79
81
|
|
|
80
82
|
@with_config(ConfigDict(strict=True))
|
|
81
83
|
class DeleteTabRequest(TypedDict):
|
|
@@ -713,7 +713,8 @@ def auth_status(
|
|
|
713
713
|
"version": VERSION,
|
|
714
714
|
"database_user_version": database_user_version,
|
|
715
715
|
"authenticated": token is not None,
|
|
716
|
-
|
|
716
|
+
# Same answer as AuthService.has_password(), from the row already read.
|
|
717
|
+
"has_password": settings is not None and bool(settings.encryption_enabled),
|
|
717
718
|
"encryption_enabled": settings.encryption_enabled if settings else False,
|
|
718
719
|
"encryption_algorithm": settings.encryption_algorithm if settings else None,
|
|
719
720
|
"vault_version": settings.vault_version if settings else None,
|
|
@@ -241,16 +241,16 @@ def view_diff(payload: ViewDiffRequest):
|
|
|
241
241
|
search = payload["search"]
|
|
242
242
|
tab_id = payload["tabId"]
|
|
243
243
|
undo_context = payload["undoContext"]
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
tab_view_empty = payload["tabViewEmpty"]
|
|
245
|
+
visible_top_root_id = payload["visibleTopRootId"]
|
|
246
|
+
visible_bottom_root_id = payload["visibleBottomRootId"]
|
|
246
247
|
is_untagged_view = payload["isUntaggedView"]
|
|
247
248
|
if not isinstance(is_untagged_view, bool):
|
|
248
249
|
raise TypeError("isUntaggedView must be a boolean")
|
|
250
|
+
if not isinstance(tab_view_empty, bool):
|
|
251
|
+
raise TypeError("tabViewEmpty must be a boolean")
|
|
249
252
|
|
|
250
253
|
sort_mode = _resolve_tab_sort_mode(tab_id)
|
|
251
|
-
if not isinstance(client_note_uuid_hashes, dict):
|
|
252
|
-
raise TypeError("clientNoteUuidHashes must be an object")
|
|
253
|
-
|
|
254
254
|
normalized_search = search
|
|
255
255
|
if isinstance(normalized_search, str) and normalized_search == "":
|
|
256
256
|
normalized_search = None
|
|
@@ -278,164 +278,58 @@ def view_diff(payload: ViewDiffRequest):
|
|
|
278
278
|
if not note_store.has_note(normalized_editing_note_id):
|
|
279
279
|
normalized_editing_note_id = None
|
|
280
280
|
|
|
281
|
-
#
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
"sort_mode": sort_mode,
|
|
291
|
-
"is_untagged_view": is_untagged_view,
|
|
292
|
-
}
|
|
293
|
-
cached_state = view_cache.get(**cache_key)
|
|
294
|
-
if not anchor_root_id and cached_state and client_hashes:
|
|
295
|
-
last_roots = list(cached_state.children_by_parent.get(None, []))
|
|
296
|
-
if last_roots:
|
|
297
|
-
anchor_root_id = last_roots[-1]
|
|
281
|
+
# The server keeps each tab's warm view (what that browser tab displays),
|
|
282
|
+
# so the browser sends only where it is. A tab with no warm view, or one
|
|
283
|
+
# whose browser shows nothing for it, gets its initial window.
|
|
284
|
+
warm_view = view_cache.get(client_id=client_id, tab_id=tab_id)
|
|
285
|
+
if tab_view_empty:
|
|
286
|
+
warm_view = None
|
|
287
|
+
client_known_note_ids: set[str] = set()
|
|
288
|
+
if warm_view is not None:
|
|
289
|
+
client_known_note_ids = set(warm_view.hash_by_id)
|
|
298
290
|
|
|
299
291
|
state = build_view_state(
|
|
300
292
|
editing_note_id=normalized_editing_note_id,
|
|
301
293
|
search=normalized_search,
|
|
302
294
|
sort_mode=sort_mode,
|
|
303
|
-
client_known_note_ids=
|
|
304
|
-
|
|
305
|
-
|
|
295
|
+
client_known_note_ids=client_known_note_ids,
|
|
296
|
+
visible_top_root_id=visible_top_root_id,
|
|
297
|
+
visible_bottom_root_id=visible_bottom_root_id,
|
|
306
298
|
is_untagged_view=is_untagged_view,
|
|
307
299
|
)
|
|
308
300
|
update_uuid = get_current_sync_uuid()
|
|
309
301
|
root_ids = list(state.children_by_parent.get(None, []))
|
|
310
|
-
|
|
311
|
-
search_root_count_total = state.metadata["searchRootCountTotal"]
|
|
312
|
-
|
|
313
|
-
client_note_ids = set(client_hashes.keys())
|
|
314
|
-
current_note_ids = set(state.hash_by_id.keys())
|
|
315
|
-
if cached_state is None:
|
|
316
|
-
cached_note_ids = set()
|
|
317
|
-
else:
|
|
318
|
-
cached_note_ids = set(cached_state.hash_by_id.keys())
|
|
319
|
-
extra_client_ids = _unknown_client_note_ids(
|
|
320
|
-
client_note_ids=client_note_ids,
|
|
321
|
-
current_note_ids=current_note_ids,
|
|
322
|
-
cached_note_ids=cached_note_ids,
|
|
323
|
-
)
|
|
324
|
-
force_full_snapshot = bool(extra_client_ids)
|
|
325
|
-
if force_full_snapshot:
|
|
326
|
-
logger.info(
|
|
327
|
-
"notes.view forcing full snapshot (client has unknown ids): extra_count=%s",
|
|
328
|
-
len(extra_client_ids),
|
|
329
|
-
)
|
|
330
|
-
|
|
331
|
-
client_has_state = bool(client_hashes)
|
|
332
|
-
|
|
333
|
-
if not cached_state or force_full_snapshot:
|
|
334
|
-
view_cache.set(state=state, **cache_key)
|
|
335
|
-
if force_full_snapshot:
|
|
336
|
-
filtered_notes = dict(state.payloads)
|
|
337
|
-
else:
|
|
338
|
-
filtered_notes = {
|
|
339
|
-
note_id: data
|
|
340
|
-
for note_id, data in state.payloads.items()
|
|
341
|
-
if client_hashes.get(note_id) != data.get("hash")
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
# Optimization: when the server cache is cold but the client already has a
|
|
345
|
-
# complete, matching hash map for the visible window, avoid resending the
|
|
346
|
-
# full structure + note payloads. This is common when a new tab is created
|
|
347
|
-
# by cloning the existing DOM.
|
|
348
|
-
if client_has_state and not filtered_notes and not force_full_snapshot:
|
|
349
|
-
response_snapshot = {
|
|
350
|
-
"diffOps": [],
|
|
351
|
-
"notes": {},
|
|
352
|
-
"locks": state.locks,
|
|
353
|
-
"rootIds": root_ids,
|
|
354
|
-
"lockDiffs": {},
|
|
355
|
-
"updateUUID": update_uuid,
|
|
356
|
-
"version": VERSION,
|
|
357
|
-
"currentClientId": client_id,
|
|
358
|
-
"searchQuery": search,
|
|
359
|
-
"sortMode": sort_mode,
|
|
360
|
-
"isUntaggedView": is_untagged_view,
|
|
361
|
-
"rootCountTotal": root_count_total,
|
|
362
|
-
"searchRootCountTotal": search_root_count_total,
|
|
363
|
-
"rootSortBuckets": state.metadata["rootSortBuckets"],
|
|
364
|
-
"editingNoteId": normalized_editing_note_id,
|
|
365
|
-
}
|
|
366
|
-
return {"snapshot": response_snapshot, "updateUUID": update_uuid}
|
|
367
|
-
|
|
368
|
-
response_snapshot = {
|
|
369
|
-
"structure": state.structure,
|
|
370
|
-
"notes": filtered_notes,
|
|
371
|
-
"locks": state.locks,
|
|
372
|
-
"rootIds": root_ids,
|
|
373
|
-
"updateUUID": update_uuid,
|
|
374
|
-
"version": VERSION,
|
|
375
|
-
"currentClientId": client_id,
|
|
376
|
-
"searchQuery": search,
|
|
377
|
-
"sortMode": sort_mode,
|
|
378
|
-
"isUntaggedView": is_untagged_view,
|
|
379
|
-
"rootCountTotal": root_count_total,
|
|
380
|
-
"searchRootCountTotal": search_root_count_total,
|
|
381
|
-
"rootSortBuckets": state.metadata["rootSortBuckets"],
|
|
382
|
-
"editingNoteId": normalized_editing_note_id,
|
|
383
|
-
}
|
|
384
|
-
return {"snapshot": response_snapshot, "updateUUID": update_uuid}
|
|
385
|
-
|
|
386
|
-
if not client_has_state:
|
|
387
|
-
view_cache.set(state=state, **cache_key)
|
|
388
|
-
filtered_notes = {
|
|
389
|
-
note_id: data
|
|
390
|
-
for note_id, data in state.payloads.items()
|
|
391
|
-
if client_hashes.get(note_id) != data.get("hash")
|
|
392
|
-
}
|
|
393
|
-
response_snapshot = {
|
|
394
|
-
"structure": state.structure,
|
|
395
|
-
"notes": filtered_notes,
|
|
396
|
-
"locks": state.locks,
|
|
397
|
-
"rootIds": root_ids,
|
|
398
|
-
"updateUUID": update_uuid,
|
|
399
|
-
"version": VERSION,
|
|
400
|
-
"currentClientId": client_id,
|
|
401
|
-
"searchQuery": search,
|
|
402
|
-
"sortMode": sort_mode,
|
|
403
|
-
"isUntaggedView": is_untagged_view,
|
|
404
|
-
"rootCountTotal": root_count_total,
|
|
405
|
-
"searchRootCountTotal": search_root_count_total,
|
|
406
|
-
"rootSortBuckets": state.metadata["rootSortBuckets"],
|
|
407
|
-
"editingNoteId": normalized_editing_note_id,
|
|
408
|
-
}
|
|
409
|
-
return {"snapshot": response_snapshot, "updateUUID": update_uuid}
|
|
410
|
-
|
|
411
|
-
diff_ops = generate_diff_ops(cached_state, state)
|
|
412
|
-
note_updates = {
|
|
413
|
-
note_id: payload
|
|
414
|
-
for note_id, payload in state.payloads.items()
|
|
415
|
-
if cached_state.hash_by_id.get(note_id) != payload["hash"]
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
view_cache.set(state=state, **cache_key)
|
|
419
|
-
|
|
420
|
-
lock_diff = _compute_lock_diff(cached_state.locks, state.locks)
|
|
421
|
-
|
|
302
|
+
view_cache.set(client_id=client_id, tab_id=tab_id, state=state)
|
|
422
303
|
response_snapshot = {
|
|
423
|
-
"
|
|
424
|
-
"notes": note_updates,
|
|
304
|
+
"notes": {},
|
|
425
305
|
"locks": state.locks,
|
|
426
306
|
"rootIds": root_ids,
|
|
427
|
-
"lockDiffs": lock_diff,
|
|
428
307
|
"updateUUID": update_uuid,
|
|
429
308
|
"version": VERSION,
|
|
430
309
|
"currentClientId": client_id,
|
|
431
310
|
"searchQuery": search,
|
|
432
311
|
"sortMode": sort_mode,
|
|
433
312
|
"isUntaggedView": is_untagged_view,
|
|
434
|
-
"rootCountTotal":
|
|
435
|
-
"searchRootCountTotal":
|
|
313
|
+
"rootCountTotal": state.metadata["rootCountTotal"],
|
|
314
|
+
"searchRootCountTotal": state.metadata["searchRootCountTotal"],
|
|
436
315
|
"rootSortBuckets": state.metadata["rootSortBuckets"],
|
|
316
|
+
"rootWindowStart": state.metadata["rootWindowStart"],
|
|
317
|
+
"rootBandMargin": state.metadata["rootBandMargin"],
|
|
318
|
+
"rootSortKeyBeforeWindow": state.metadata["rootSortKeyBeforeWindow"],
|
|
437
319
|
"editingNoteId": normalized_editing_note_id,
|
|
438
320
|
}
|
|
321
|
+
if warm_view is None:
|
|
322
|
+
response_snapshot["structure"] = state.structure
|
|
323
|
+
response_snapshot["notes"] = dict(state.payloads)
|
|
324
|
+
return {"snapshot": response_snapshot, "updateUUID": update_uuid}
|
|
325
|
+
|
|
326
|
+
response_snapshot["diffOps"] = generate_diff_ops(warm_view, state)
|
|
327
|
+
response_snapshot["notes"] = {
|
|
328
|
+
note_id: note_payload
|
|
329
|
+
for note_id, note_payload in state.payloads.items()
|
|
330
|
+
if note_id not in warm_view.hash_by_id or warm_view.hash_by_id[note_id] != note_payload["hash"]
|
|
331
|
+
}
|
|
332
|
+
response_snapshot["lockDiffs"] = _compute_lock_diff(warm_view.locks, state.locks)
|
|
439
333
|
return {"snapshot": response_snapshot, "updateUUID": update_uuid}
|
|
440
334
|
|
|
441
335
|
|
|
@@ -501,6 +395,11 @@ def create_new_tab(payload: CreateNewTabRequest) -> Dict[str, object]:
|
|
|
501
395
|
response = tab_state_store.create_tab(copy_from_tab_id=copy_from_tab_id)
|
|
502
396
|
if capture.captured_exception is not None:
|
|
503
397
|
raise HTTPException(status_code=400, detail="Invalid or stale tab state") from capture.captured_exception
|
|
398
|
+
# The browser clones the source tab's DOM into the new tab, so the new tab
|
|
399
|
+
# starts from the source tab's warm view.
|
|
400
|
+
view_cache.copy_tab(
|
|
401
|
+
client_id=payload["clientId"], source_tab_id=copy_from_tab_id, target_tab_id=response["newTabId"],
|
|
402
|
+
)
|
|
504
403
|
return response
|
|
505
404
|
|
|
506
405
|
|
|
@@ -790,16 +689,6 @@ def _compute_lock_diff(previous: Dict[str, str], current: Dict[str, str]) -> Dic
|
|
|
790
689
|
return diff
|
|
791
690
|
|
|
792
691
|
|
|
793
|
-
def _unknown_client_note_ids(
|
|
794
|
-
*,
|
|
795
|
-
client_note_ids: set[str],
|
|
796
|
-
current_note_ids: set[str],
|
|
797
|
-
cached_note_ids: set[str],
|
|
798
|
-
) -> set[str]:
|
|
799
|
-
stale_deleted_ids = client_note_ids - current_note_ids
|
|
800
|
-
return stale_deleted_ids - cached_note_ids
|
|
801
|
-
|
|
802
|
-
|
|
803
692
|
# Stub endpoints for the rest of the notes API (501 Not Implemented)
|
|
804
693
|
|
|
805
694
|
def _not_impl(exc: Exception) -> None:
|
|
@@ -11,7 +11,6 @@ from app.api.transactions import transactional_route
|
|
|
11
11
|
from app.services.search_index import search_index
|
|
12
12
|
from app.services.note_store import store as note_store
|
|
13
13
|
from app.services.sync import generate_new_uuid
|
|
14
|
-
from app.services.view_cache import view_cache
|
|
15
14
|
from app.services.tag_ontology import RegexAtom, TagAtom, TextAtom, parse_rules_text
|
|
16
15
|
from app.services.ontology_rules_store import (
|
|
17
16
|
build_direct_edge_rule_map,
|
|
@@ -155,7 +154,6 @@ def create_rule(request: Request, payload: RuleTextRequest) -> dict:
|
|
|
155
154
|
rule_id, normalized = create_rule_line(text=text, token=token)
|
|
156
155
|
if note_store.loaded:
|
|
157
156
|
note_store.rebuild_search_index_tag_terms_for_notes(candidate_note_ids)
|
|
158
|
-
view_cache.clear()
|
|
159
157
|
update_uuid = generate_new_uuid()
|
|
160
158
|
return {"id": rule_id, "text": normalized, "updateUUID": update_uuid}
|
|
161
159
|
return {"id": rule_id, "text": normalized}
|
|
@@ -193,7 +191,6 @@ def update_rule(request: Request, rule_id: int, payload: RuleTextRequest) -> dic
|
|
|
193
191
|
updated_id, normalized = update_rule_line(rule_id=rule_id, text=text, token=token)
|
|
194
192
|
if note_store.loaded:
|
|
195
193
|
note_store.rebuild_search_index_tag_terms_for_notes(candidate_note_ids)
|
|
196
|
-
view_cache.clear()
|
|
197
194
|
update_uuid = generate_new_uuid()
|
|
198
195
|
return {"id": updated_id, "text": normalized, "updateUUID": update_uuid}
|
|
199
196
|
return {"id": updated_id, "text": normalized}
|
|
@@ -224,7 +221,6 @@ def delete_rule(rule_id: int) -> dict:
|
|
|
224
221
|
delete_rule_line(rule_id=rule_id)
|
|
225
222
|
if note_store.loaded:
|
|
226
223
|
note_store.rebuild_search_index_tag_terms_for_notes(candidate_note_ids)
|
|
227
|
-
view_cache.clear()
|
|
228
224
|
update_uuid = generate_new_uuid()
|
|
229
225
|
return {"ok": True, "updateUUID": update_uuid}
|
|
230
226
|
return {"ok": True}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import sqlite3
|
|
6
|
-
import time
|
|
7
6
|
from datetime import datetime
|
|
8
7
|
from typing import Iterable, Optional, Any
|
|
9
8
|
|
|
@@ -12,6 +11,9 @@ from .schema import NOTES_TABLE
|
|
|
12
11
|
from app.services.hierarchy import validate_database_parent
|
|
13
12
|
|
|
14
13
|
|
|
14
|
+
_DELETE_CHUNK_SIZE = 900
|
|
15
|
+
|
|
16
|
+
|
|
15
17
|
def _conn(connection: GuardedConnection | sqlite3.Connection) -> sqlite3.Connection:
|
|
16
18
|
raw_connection = getattr(connection, "raw_connection", None)
|
|
17
19
|
if isinstance(raw_connection, sqlite3.Connection):
|
|
@@ -403,14 +405,13 @@ def delete_notes(
|
|
|
403
405
|
identifiers = list(note_ids)
|
|
404
406
|
if not identifiers:
|
|
405
407
|
return
|
|
406
|
-
placeholders = ",".join(["?"] * len(identifiers))
|
|
407
|
-
sql = f"DELETE FROM {NOTES_TABLE} WHERE id IN ({placeholders})"
|
|
408
|
-
print('DEBUG CHECKPOINT 1')
|
|
409
|
-
t1 = time.perf_counter()
|
|
410
408
|
conn = _conn(connection)
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
409
|
+
# Chunk below SQLite's bound-variable limit (999 on older builds) so large
|
|
410
|
+
# subtree deletes do not fail; the caller's transaction keeps it atomic.
|
|
411
|
+
for start in range(0, len(identifiers), _DELETE_CHUNK_SIZE):
|
|
412
|
+
chunk = identifiers[start : start + _DELETE_CHUNK_SIZE]
|
|
413
|
+
placeholders = ",".join(["?"] * len(chunk))
|
|
414
|
+
conn.execute(f"DELETE FROM {NOTES_TABLE} WHERE id IN ({placeholders})", tuple(chunk))
|
|
414
415
|
|
|
415
416
|
|
|
416
417
|
def fetch_note(
|
|
@@ -679,9 +679,18 @@ def _audit_payloads(
|
|
|
679
679
|
needed_columns = {spec.value_column, spec.nonce_column, spec.tag_column}
|
|
680
680
|
if not needed_columns.issubset(actual_columns):
|
|
681
681
|
continue
|
|
682
|
+
value_expression = spec.value_column
|
|
683
|
+
if spec.storage_kind == "bytes":
|
|
684
|
+
# Binary checks need only the storage type: stand an empty BLOB in
|
|
685
|
+
# for each BLOB so file contents are never read into memory.
|
|
686
|
+
value_expression = (
|
|
687
|
+
f"CASE WHEN typeof({spec.value_column}) = 'blob' THEN zeroblob(0) "
|
|
688
|
+
f"ELSE {spec.value_column} END AS {spec.value_column}"
|
|
689
|
+
)
|
|
690
|
+
# Stream rows: payload tables can be far larger than memory should hold.
|
|
682
691
|
rows = connection.execute(
|
|
683
|
-
f"SELECT {
|
|
684
|
-
)
|
|
692
|
+
f"SELECT {value_expression}, {spec.nonce_column}, {spec.tag_column} FROM {spec.table}"
|
|
693
|
+
)
|
|
685
694
|
for row in rows:
|
|
686
695
|
_audit_payload_row(
|
|
687
696
|
row=row,
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"""Caches whose live references must not survive encrypted namespace logout."""
|
|
2
|
+
|
|
3
|
+
from functools import wraps
|
|
4
|
+
from collections import OrderedDict, namedtuple
|
|
5
|
+
from app.services.resource_limits import retained_bytes
|
|
6
|
+
from threading import RLock
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
_lock = RLock()
|
|
10
|
+
_enabled = True
|
|
11
|
+
_clearers = []
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
CacheInfo = namedtuple('CacheInfo', 'hits misses maxsize currsize')
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class SensitiveMemo:
|
|
18
|
+
"""Bounded LRU whose entries are purged with every other sensitive cache.
|
|
19
|
+
|
|
20
|
+
Nothing is stored while sensitive caches are disabled (locked namespace).
|
|
21
|
+
Callers own validity: lookup() returns a stored value, and store()
|
|
22
|
+
replaces it, so entries can be checked against current state before use.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
def __init__(self, *, maxsize: int, max_bytes: int) -> None:
|
|
26
|
+
if maxsize <= 0 or max_bytes <= 0:
|
|
27
|
+
raise ValueError("maxsize and max_bytes must be positive")
|
|
28
|
+
self._maxsize = maxsize
|
|
29
|
+
self._max_bytes = max_bytes
|
|
30
|
+
self._entries: OrderedDict = OrderedDict()
|
|
31
|
+
self._sizes: dict = {}
|
|
32
|
+
self._used = 0
|
|
33
|
+
self._hits = 0
|
|
34
|
+
self._misses = 0
|
|
35
|
+
with _lock:
|
|
36
|
+
_clearers.append(self.clear)
|
|
37
|
+
|
|
38
|
+
def clear(self) -> None:
|
|
39
|
+
with _lock:
|
|
40
|
+
self._entries.clear()
|
|
41
|
+
self._sizes.clear()
|
|
42
|
+
self._used = self._hits = self._misses = 0
|
|
43
|
+
|
|
44
|
+
def info(self) -> CacheInfo:
|
|
45
|
+
with _lock:
|
|
46
|
+
return CacheInfo(self._hits, self._misses, self._maxsize, len(self._entries))
|
|
47
|
+
|
|
48
|
+
def lookup(self, key: object) -> tuple:
|
|
49
|
+
"""Return (True, value) for a stored key, else (False, None)."""
|
|
50
|
+
with _lock:
|
|
51
|
+
if _enabled and key in self._entries:
|
|
52
|
+
self._hits += 1
|
|
53
|
+
self._entries.move_to_end(key)
|
|
54
|
+
return True, self._entries[key]
|
|
55
|
+
if _enabled:
|
|
56
|
+
self._misses += 1
|
|
57
|
+
return False, None
|
|
58
|
+
|
|
59
|
+
def store(self, key: object, value: object) -> None:
|
|
60
|
+
with _lock:
|
|
61
|
+
if not _enabled:
|
|
62
|
+
return
|
|
63
|
+
if key in self._entries:
|
|
64
|
+
del self._entries[key]
|
|
65
|
+
self._used -= self._sizes.pop(key)
|
|
66
|
+
size = retained_bytes((key, value))
|
|
67
|
+
if size > self._max_bytes:
|
|
68
|
+
return
|
|
69
|
+
self._entries[key], self._sizes[key] = value, size
|
|
70
|
+
self._used += size
|
|
71
|
+
while len(self._entries) > self._maxsize or self._used > self._max_bytes:
|
|
72
|
+
expired, _ = self._entries.popitem(last=False)
|
|
73
|
+
self._used -= self._sizes.pop(expired)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def sensitive_lru_cache(*, maxsize: int, max_bytes: int):
|
|
77
|
+
def decorate(function):
|
|
78
|
+
memo = SensitiveMemo(maxsize=maxsize, max_bytes=max_bytes)
|
|
79
|
+
|
|
80
|
+
@wraps(function)
|
|
81
|
+
def guarded(*args, **kwargs):
|
|
82
|
+
with _lock:
|
|
83
|
+
if not _enabled:
|
|
84
|
+
return function(*args, **kwargs)
|
|
85
|
+
key = (args, tuple(sorted(kwargs.items())))
|
|
86
|
+
found, value = memo.lookup(key)
|
|
87
|
+
if found:
|
|
88
|
+
return value
|
|
89
|
+
value = function(*args, **kwargs)
|
|
90
|
+
memo.store(key, value)
|
|
91
|
+
return value
|
|
92
|
+
|
|
93
|
+
guarded.cache_clear = memo.clear
|
|
94
|
+
guarded.cache_info = memo.info
|
|
95
|
+
return guarded
|
|
96
|
+
return decorate
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def disable_and_clear_sensitive_caches() -> None:
|
|
100
|
+
global _enabled
|
|
101
|
+
with _lock:
|
|
102
|
+
_enabled = False
|
|
103
|
+
for clear in _clearers:
|
|
104
|
+
clear()
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def enable_sensitive_caches() -> None:
|
|
108
|
+
global _enabled
|
|
109
|
+
with _lock:
|
|
110
|
+
_enabled = True
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def clear_sensitive_caches() -> None:
|
|
114
|
+
with _lock:
|
|
115
|
+
for clear in _clearers:
|
|
116
|
+
clear()
|
|
@@ -6,6 +6,8 @@ from typing import Literal
|
|
|
6
6
|
|
|
7
7
|
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
|
8
8
|
|
|
9
|
+
from app.services.agent.markdown_validation import validate_balanced_markdown_fences
|
|
10
|
+
|
|
9
11
|
|
|
10
12
|
HELP_TOPICS = {
|
|
11
13
|
'notes': ('Notes and editing', 'Hierarchy, editing, moving, copying, undo and keyboard/mouse controls.'),
|
|
@@ -37,7 +39,7 @@ class MetaListHelpResponse(BaseModel):
|
|
|
37
39
|
def reject_blank_answer(cls, value: str) -> str:
|
|
38
40
|
if not value.strip():
|
|
39
41
|
raise ValueError('Help answer must not be blank')
|
|
40
|
-
return value
|
|
42
|
+
return validate_balanced_markdown_fences(value)
|
|
41
43
|
|
|
42
44
|
|
|
43
45
|
HELP_RESPONSE_INSTRUCTION = files('app.services.agent.prompts').joinpath('help-response.md').read_text(encoding='utf-8').rstrip('\n')
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Validate Markdown boundaries that must survive model-generated help text."""
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
_FENCE_LINE = re.compile(r"^ {0,3}(`{3,}|~{3,})(.*)$")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def validate_balanced_markdown_fences(markdown: str) -> str:
|
|
10
|
+
"""Reject a fenced code block that remains open at the end of Markdown."""
|
|
11
|
+
assert isinstance(markdown, str)
|
|
12
|
+
open_character = ""
|
|
13
|
+
open_length = 0
|
|
14
|
+
for line in markdown.splitlines():
|
|
15
|
+
match = _FENCE_LINE.match(line)
|
|
16
|
+
if match is None:
|
|
17
|
+
continue
|
|
18
|
+
fence, remainder = match.groups()
|
|
19
|
+
fence_character = fence[0]
|
|
20
|
+
if open_character == "":
|
|
21
|
+
if fence_character == "`" and "`" in remainder:
|
|
22
|
+
continue
|
|
23
|
+
open_character = fence_character
|
|
24
|
+
open_length = len(fence)
|
|
25
|
+
continue
|
|
26
|
+
if (
|
|
27
|
+
fence_character == open_character
|
|
28
|
+
and len(fence) >= open_length
|
|
29
|
+
and remainder.strip() == ""
|
|
30
|
+
):
|
|
31
|
+
open_character = ""
|
|
32
|
+
open_length = 0
|
|
33
|
+
if open_character != "":
|
|
34
|
+
raise ValueError("Help answer contains an unclosed Markdown code fence")
|
|
35
|
+
return markdown
|
|
@@ -143,6 +143,9 @@ Other (non-meta) tags may also appear inside wrapper tokens (e.g. `{{foo bar}}`)
|
|
|
143
143
|
- `@markdown`: renders the note content as Markdown in view mode on the server.
|
|
144
144
|
- Scoped Markdown renders only the matching wrapped region.
|
|
145
145
|
- Fenced `mermaid` blocks render as responsive SVG diagrams in the app. The pinned Mermaid runtime loads locally and only when a visible note contains a Mermaid fence; no diagram source is sent to a CDN or external service.
|
|
146
|
+
- In a help answer, show the literal Mermaid source the user must type: open an outer `text` block with four backticks, put the triple-backtick `mermaid` block inside it, close that inner block with three backticks, and close the outer block with four backticks before returning to prose. Never use only three backticks for the outer block. A direct `mermaid` fence renders as a diagram in AI chat instead of displaying its source.
|
|
147
|
+
- Do not promise support for named Mermaid diagram families that this reference does not document. Use a basic flowchart for the example and describe Mermaid support generically.
|
|
148
|
+
- Mermaid source remains ordinary stored note text. It is searchable and can enter AI note context when that note is otherwise permitted. Do not transfer Excalidraw's hidden embedded-text limitation to Mermaid source.
|
|
146
149
|
- Mermaid uses strict security mode and follows the active light/dark theme when rendering. Invalid Mermaid syntax remains visible as a code block with an `Invalid Mermaid diagram` badge.
|
|
147
150
|
- Paired LaTeX delimiters inside Markdown render automatically as server-side MathML: `\(...\)` and `$...$` are inline; `\[...\]` and `$$...$$` are display math.
|
|
148
151
|
- Math detection skips inline code and fenced code blocks. Unpaired delimiters and currency-like dollar text remain literal.
|