lifeos-cli 1.4.3__tar.gz → 1.4.4__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.
Files changed (375) hide show
  1. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/.github/dependabot.yml +14 -0
  2. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/.github/workflows/dependency-review.yml +2 -2
  3. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/.github/workflows/publish.yml +2 -2
  4. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/.github/workflows/validate.yml +13 -6
  5. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/.pre-commit-config.yaml +1 -1
  6. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/CONTRIBUTING.md +3 -2
  7. {lifeos_cli-1.4.3/src/lifeos_cli.egg-info → lifeos_cli-1.4.4}/PKG-INFO +3 -3
  8. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/README.md +1 -1
  9. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/README.zh-Hans.md +1 -1
  10. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/SECURITY.md +2 -2
  11. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/pyproject.toml +1 -1
  12. lifeos_cli-1.4.4/scripts/check_web_response_tests.py +99 -0
  13. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/doctor.sh +3 -0
  14. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/system/web_commands.py +1 -0
  15. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/locales/en/cli_messages.json +3 -2
  16. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/locales/zh_Hans/cli_messages.json +3 -2
  17. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4/src/lifeos_cli.egg-info}/PKG-INFO +3 -3
  18. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli.egg-info/SOURCES.txt +1 -0
  19. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli.egg-info/requires.txt +1 -1
  20. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli.egg-info/scm_file_list.json +1 -0
  21. lifeos_cli-1.4.4/src/lifeos_cli.egg-info/scm_version.json +8 -0
  22. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/app.py +108 -8
  23. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/person.py +2 -2
  24. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/person.py +9 -7
  25. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/visions.py +2 -2
  26. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/server.py +24 -2
  27. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_help_content.py +13 -0
  28. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_repository_contracts.py +7 -1
  29. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_web_api_http.py +256 -0
  30. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_web_security_http.py +38 -1
  31. lifeos_cli-1.4.4/tests/test_web_server_binding.py +60 -0
  32. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/uv.lock +330 -288
  33. lifeos_cli-1.4.3/src/lifeos_cli.egg-info/scm_version.json +0 -8
  34. lifeos_cli-1.4.3/tests/test_web_server_binding.py +0 -36
  35. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/.gitignore +0 -0
  36. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/.secrets.baseline +0 -0
  37. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/AGENTS.md +0 -0
  38. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/CODE_OF_CONDUCT.md +0 -0
  39. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/LICENSE +0 -0
  40. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/MANIFEST.in +0 -0
  41. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/alembic.ini +0 -0
  42. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/docs/architecture.md +0 -0
  43. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/docs/cli-tree.md +0 -0
  44. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/docs/cli.md +0 -0
  45. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/audit_cli_help.py +0 -0
  46. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/check_cli_tree.sh +0 -0
  47. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/check_locale_catalog.py +0 -0
  48. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/dead_code_check.sh +0 -0
  49. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/dependency_health.sh +0 -0
  50. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/export_web_openapi.py +0 -0
  51. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/integration_tests.sh +0 -0
  52. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/load_local_env.sh +0 -0
  53. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/scripts/vulture_whitelist.py +0 -0
  54. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/setup.cfg +0 -0
  55. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/__init__.py +0 -0
  56. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/__init__.py +0 -0
  57. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/env.py +0 -0
  58. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/script.py.mako +0 -0
  59. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260409_0600_create_notes_table.py +0 -0
  60. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260409_1200_create_core_domain_tables.py +0 -0
  61. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260409_1300_create_habit_tables.py +0 -0
  62. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260409_1400_create_event_and_timelog_tables.py +0 -0
  63. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260410_0900_remove_area_person_associations.py +0 -0
  64. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260410_1200_add_event_recurrence_support.py +0 -0
  65. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260411_0900_add_timelog_stats_groupby_area_tables.py +0 -0
  66. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260411_1400_add_event_type_to_events.py +0 -0
  67. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260411_1500_add_generic_associations.py +0 -0
  68. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260412_0900_expand_association_models_for_note_links.py +0 -0
  69. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260412_1100_add_habit_cadence_fields.py +0 -0
  70. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260412_1600_prune_placeholder_habit_actions.py +0 -0
  71. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260617_1200_add_timelog_templates.py +0 -0
  72. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260617_1300_add_unified_finance_tables.py +0 -0
  73. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260617_1400_add_event_recurrence_rule.py +0 -0
  74. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260626_1100_declassify_finance_trees.py +0 -0
  75. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260629_0900_allow_multi_asset_finance_entries.py +0 -0
  76. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260629_1000_drop_stale_finance_tree_legacy_columns.py +0 -0
  77. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260703_0900_add_habit_monthday_cadence.py +0 -0
  78. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260704_1100_add_habit_status_changed_date.py +0 -0
  79. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260704_1500_link_habit_action_notes.py +0 -0
  80. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260812_1200_migrate_person_links_to_associations.py +0 -0
  81. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260819_1200_add_health_data_tables.py +0 -0
  82. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260827_1200_unique_active_body_measurement_measured_at.py +0 -0
  83. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260906_1200_add_habit_area.py +0 -0
  84. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260907_1200_harden_database_invariants.py +0 -0
  85. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/20260909_1200_require_complete_planning_fields.py +0 -0
  86. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/alembic/versions/__init__.py +0 -0
  87. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/application/__init__.py +0 -0
  88. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/application/calendar_adapter.py +0 -0
  89. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/application/configuration.py +0 -0
  90. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/application/database.py +0 -0
  91. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/application/datetime_utils.py +0 -0
  92. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/application/package_metadata.py +0 -0
  93. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/application/serialization.py +0 -0
  94. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/application/time_preferences.py +0 -0
  95. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli.py +0 -0
  96. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/__init__.py +0 -0
  97. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/handler_utils.py +0 -0
  98. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/help_audit.py +0 -0
  99. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/help_utils.py +0 -0
  100. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/init_prompts.py +0 -0
  101. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/json_output.py +0 -0
  102. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/output_utils.py +0 -0
  103. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/parser.py +0 -0
  104. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/parser_common.py +0 -0
  105. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/__init__.py +0 -0
  106. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/area/__init__.py +0 -0
  107. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/area/handlers.py +0 -0
  108. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/area/parser.py +0 -0
  109. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/body_measurement/__init__.py +0 -0
  110. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/body_measurement/handlers.py +0 -0
  111. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/body_measurement/parser.py +0 -0
  112. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/body_measurement/parser_actions.py +0 -0
  113. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/data/__init__.py +0 -0
  114. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/data/handlers.py +0 -0
  115. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/data/parser.py +0 -0
  116. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/event/__init__.py +0 -0
  117. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/event/handlers.py +0 -0
  118. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/event/parser.py +0 -0
  119. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/event/parser_actions.py +0 -0
  120. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/finance/__init__.py +0 -0
  121. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/finance/handlers.py +0 -0
  122. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/finance/parser.py +0 -0
  123. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/habit/__init__.py +0 -0
  124. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/habit/handlers.py +0 -0
  125. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/habit/parser.py +0 -0
  126. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/habit/parser_actions.py +0 -0
  127. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/habit_action/__init__.py +0 -0
  128. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/habit_action/handlers.py +0 -0
  129. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/habit_action/parser.py +0 -0
  130. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/menstrual/__init__.py +0 -0
  131. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/menstrual/handlers.py +0 -0
  132. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/menstrual/parser.py +0 -0
  133. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/menstrual/parser_actions.py +0 -0
  134. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/menstrual_factor/__init__.py +0 -0
  135. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/menstrual_factor/handlers.py +0 -0
  136. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/menstrual_factor/parser.py +0 -0
  137. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/menstrual_factor/parser_actions.py +0 -0
  138. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/note/__init__.py +0 -0
  139. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/note/handlers.py +0 -0
  140. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/note/parser.py +0 -0
  141. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/note/parser_actions.py +0 -0
  142. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/person/__init__.py +0 -0
  143. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/person/handlers.py +0 -0
  144. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/person/parser.py +0 -0
  145. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/planning/__init__.py +0 -0
  146. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/planning/handlers.py +0 -0
  147. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/planning/parser.py +0 -0
  148. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/schedule/__init__.py +0 -0
  149. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/schedule/handlers.py +0 -0
  150. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/schedule/parser.py +0 -0
  151. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/sleep/__init__.py +0 -0
  152. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/sleep/handlers.py +0 -0
  153. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/sleep/parser.py +0 -0
  154. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/sleep/parser_actions.py +0 -0
  155. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/tag/__init__.py +0 -0
  156. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/tag/handlers.py +0 -0
  157. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/tag/parser.py +0 -0
  158. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/task/__init__.py +0 -0
  159. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/task/handlers.py +0 -0
  160. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/task/parser.py +0 -0
  161. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/task/parser_read_models.py +0 -0
  162. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/task/parser_structure.py +0 -0
  163. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/task/parser_write.py +0 -0
  164. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/timelog/__init__.py +0 -0
  165. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/timelog/bulk_add.py +0 -0
  166. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/timelog/handlers.py +0 -0
  167. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/timelog/parser.py +0 -0
  168. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/timelog/parser_actions.py +0 -0
  169. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/timelog/parser_batch.py +0 -0
  170. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/timelog/parser_stats.py +0 -0
  171. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/vision/__init__.py +0 -0
  172. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/vision/handlers.py +0 -0
  173. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/vision/parser.py +0 -0
  174. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/resources/vision/parser_actions.py +0 -0
  175. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/runtime_utils.py +0 -0
  176. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/system/__init__.py +0 -0
  177. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/system/config_commands.py +0 -0
  178. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/system/config_handlers.py +0 -0
  179. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/system/db_commands.py +0 -0
  180. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/system/init_commands.py +0 -0
  181. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/cli_support/time_args.py +0 -0
  182. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/config.py +0 -0
  183. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/__init__.py +0 -0
  184. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/backend_policy.py +0 -0
  185. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/base.py +0 -0
  186. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/maintenance.py +0 -0
  187. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/__init__.py +0 -0
  188. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/aggregated_timelog_stats_groupby_area.py +0 -0
  189. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/area.py +0 -0
  190. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/association.py +0 -0
  191. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/body_measurement.py +0 -0
  192. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/daily_timelog_stats_groupby_area.py +0 -0
  193. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/event.py +0 -0
  194. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/event_occurrence_exception.py +0 -0
  195. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/finance.py +0 -0
  196. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/habit.py +0 -0
  197. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/habit_action.py +0 -0
  198. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/menstrual.py +0 -0
  199. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/note.py +0 -0
  200. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/person.py +0 -0
  201. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/sleep_segment.py +0 -0
  202. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/tag.py +0 -0
  203. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/tag_association.py +0 -0
  204. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/task.py +0 -0
  205. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/timelog.py +0 -0
  206. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/timelog_template.py +0 -0
  207. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/models/vision.py +0 -0
  208. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/__init__.py +0 -0
  209. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/areas.py +0 -0
  210. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/batching.py +0 -0
  211. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/body_measurements.py +0 -0
  212. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/bundle_codec.py +0 -0
  213. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/bundle_tables.py +0 -0
  214. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/collection_utils.py +0 -0
  215. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/data_ops.py +0 -0
  216. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/derived_audit.py +0 -0
  217. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/entity_associations.py +0 -0
  218. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/entity_person.py +0 -0
  219. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/entity_tags.py +0 -0
  220. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/event_support.py +0 -0
  221. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/events.py +0 -0
  222. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/finance.py +0 -0
  223. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/habit_actions.py +0 -0
  224. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/habit_mutations.py +0 -0
  225. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/habit_queries.py +0 -0
  226. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/habit_support.py +0 -0
  227. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/habits.py +0 -0
  228. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/hierarchy.py +0 -0
  229. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/integrity_audit.py +0 -0
  230. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/menstrual.py +0 -0
  231. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/model_utils.py +0 -0
  232. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/notes.py +0 -0
  233. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/person.py +0 -0
  234. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/person_activity_queries.py +0 -0
  235. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/planning_lifecycle.py +0 -0
  236. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/read_models.py +0 -0
  237. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/recurrence_core.py +0 -0
  238. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/schedule_queries.py +0 -0
  239. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/schedules.py +0 -0
  240. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/sleep.py +0 -0
  241. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/snapshot_values.py +0 -0
  242. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/tags.py +0 -0
  243. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/task_effort.py +0 -0
  244. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/task_mutations.py +0 -0
  245. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/task_queries.py +0 -0
  246. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/task_support.py +0 -0
  247. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/tasks.py +0 -0
  248. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/timelog_stats.py +0 -0
  249. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/timelog_support.py +0 -0
  250. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/timelog_templates.py +0 -0
  251. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/timelogs.py +0 -0
  252. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/validation_utils.py +0 -0
  253. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/visions.py +0 -0
  254. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/services/write_locks.py +0 -0
  255. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/session.py +0 -0
  256. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/sql_expressions.py +0 -0
  257. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/db/types.py +0 -0
  258. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/i18n.py +0 -0
  259. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/locales/en/argparse.json +0 -0
  260. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/locales/en/cli_help.json +0 -0
  261. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/locales/zh_Hans/argparse.json +0 -0
  262. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/locales/zh_Hans/cli_help.json +0 -0
  263. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli/py.typed +0 -0
  264. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli.egg-info/dependency_links.txt +0 -0
  265. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli.egg-info/entry_points.txt +0 -0
  266. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_cli.egg-info/top_level.txt +0 -0
  267. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/__init__.py +0 -0
  268. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/db_errors.py +0 -0
  269. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/deps.py +0 -0
  270. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/__init__.py +0 -0
  271. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/areas.py +0 -0
  272. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/body_measurements.py +0 -0
  273. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/common.py +0 -0
  274. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/finance.py +0 -0
  275. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/habits.py +0 -0
  276. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/menstrual.py +0 -0
  277. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/notes.py +0 -0
  278. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/planned_events.py +0 -0
  279. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/preferences.py +0 -0
  280. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/sleep.py +0 -0
  281. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/stats.py +0 -0
  282. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/tags.py +0 -0
  283. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/tasks.py +0 -0
  284. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/timelogs.py +0 -0
  285. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/response_schemas/visions.py +0 -0
  286. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/router_utils.py +0 -0
  287. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/__init__.py +0 -0
  288. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/areas.py +0 -0
  289. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/body_measurements.py +0 -0
  290. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/finance.py +0 -0
  291. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/habits.py +0 -0
  292. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/health.py +0 -0
  293. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/menstrual.py +0 -0
  294. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/notes.py +0 -0
  295. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/planned_events.py +0 -0
  296. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/preferences.py +0 -0
  297. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/sleep.py +0 -0
  298. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/stats.py +0 -0
  299. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/tags.py +0 -0
  300. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/tasks.py +0 -0
  301. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/timelog_templates.py +0 -0
  302. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/routers/timelogs.py +0 -0
  303. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/schemas.py +0 -0
  304. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/src/lifeos_web/serialization.py +0 -0
  305. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/__init__.py +0 -0
  306. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/cli_integration_support.py +0 -0
  307. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/config_support.py +0 -0
  308. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/conftest.py +0 -0
  309. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/support.py +0 -0
  310. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_backend_policy.py +0 -0
  311. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_calendar_adapter.py +0 -0
  312. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_data.py +0 -0
  313. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_domains_records.py +0 -0
  314. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_domains_workflows.py +0 -0
  315. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_finance.py +0 -0
  316. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_habit_action.py +0 -0
  317. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_health.py +0 -0
  318. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_help_audit.py +0 -0
  319. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_help_hierarchy.py +0 -0
  320. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_help_zh_hans.py +0 -0
  321. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_init.py +0 -0
  322. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_integration_data.py +0 -0
  323. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_integration_db_reliability.py +0 -0
  324. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_integration_habits.py +0 -0
  325. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_integration_notes.py +0 -0
  326. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_integration_resources.py +0 -0
  327. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_integration_schedule.py +0 -0
  328. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_integration_system.py +0 -0
  329. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_integration_time.py +0 -0
  330. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_json_output.py +0 -0
  331. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_notes.py +0 -0
  332. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_parser_core.py +0 -0
  333. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_planning.py +0 -0
  334. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_runtime_utils.py +0 -0
  335. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_schedule.py +0 -0
  336. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_sqlite_workflow.py +0 -0
  337. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_time_args.py +0 -0
  338. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_timelog_bulk_add.py +0 -0
  339. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_cli_timelog_stats.py +0 -0
  340. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_config.py +0 -0
  341. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_data_ops.py +0 -0
  342. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_database_reliability.py +0 -0
  343. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_datetime_utils.py +0 -0
  344. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_db_maintenance.py +0 -0
  345. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_db_session.py +0 -0
  346. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_distribution_metadata.py +0 -0
  347. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_domain_services_core.py +0 -0
  348. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_domain_services_tasks_and_habits.py +0 -0
  349. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_domain_services_time.py +0 -0
  350. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_entity_associations.py +0 -0
  351. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_finance_services.py +0 -0
  352. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_health_services.py +0 -0
  353. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_i18n.py +0 -0
  354. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_integration_support_contracts.py +0 -0
  355. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_integrity_audit.py +0 -0
  356. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_integrity_audit_postgres.py +0 -0
  357. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_migration_body_measurement_unique.py +0 -0
  358. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_migration_person_links.py +0 -0
  359. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_note_model.py +0 -0
  360. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_note_services.py +0 -0
  361. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_person_activity_queries.py +0 -0
  362. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_recurrence_core.py +0 -0
  363. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_router_utils.py +0 -0
  364. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_schedule_queries.py +0 -0
  365. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_session_soft_delete_scope.py +0 -0
  366. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_tag_services.py +0 -0
  367. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_time_preferences.py +0 -0
  368. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_timelog_stats.py +0 -0
  369. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_timelog_templates.py +0 -0
  370. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_validation_utils.py +0 -0
  371. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_web_api_contracts.py +0 -0
  372. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_web_api_health_http.py +0 -0
  373. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_web_cli.py +0 -0
  374. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_web_commit_middleware.py +0 -0
  375. {lifeos_cli-1.4.3 → lifeos_cli-1.4.4}/tests/test_web_sqlite_contention.py +0 -0
@@ -22,3 +22,17 @@ updates:
22
22
  - "minor"
23
23
  patterns:
24
24
  - "*"
25
+
26
+ - package-ecosystem: "github-actions"
27
+ directory: "/"
28
+ schedule:
29
+ interval: "weekly"
30
+ open-pull-requests-limit: 1
31
+ commit-message:
32
+ prefix: "ci"
33
+ labels:
34
+ - "dependencies"
35
+ groups:
36
+ github-actions:
37
+ patterns:
38
+ - "*"
@@ -15,10 +15,10 @@ jobs:
15
15
 
16
16
  steps:
17
17
  - name: Checkout
18
- uses: actions/checkout@v6
18
+ uses: actions/checkout@v7
19
19
 
20
20
  - name: Set up Python
21
- uses: actions/setup-python@v6
21
+ uses: actions/setup-python@v7
22
22
  with:
23
23
  python-version: "3.11"
24
24
 
@@ -36,7 +36,7 @@ jobs:
36
36
 
37
37
  steps:
38
38
  - name: Checkout
39
- uses: actions/checkout@v6
39
+ uses: actions/checkout@v7
40
40
  with:
41
41
  fetch-depth: 0
42
42
  ref: ${{ github.event_name == 'workflow_dispatch' && inputs.release_tag || github.ref }}
@@ -47,7 +47,7 @@ jobs:
47
47
  git merge-base --is-ancestor "$GITHUB_SHA" "origin/main"
48
48
 
49
49
  - name: Set up Python
50
- uses: actions/setup-python@v6
50
+ uses: actions/setup-python@v7
51
51
  with:
52
52
  python-version: "3.14"
53
53
 
@@ -13,13 +13,20 @@ jobs:
13
13
  quality-gate:
14
14
  name: Validate Default Toolchain
15
15
  runs-on: ubuntu-latest
16
+ env:
17
+ # Empty on push events, where the merge base check falls back to origin/main.
18
+ LIFEOS_BASE_REF: ${{ github.event.pull_request.base.sha }}
16
19
 
17
20
  steps:
18
21
  - name: Checkout
19
- uses: actions/checkout@v6
22
+ uses: actions/checkout@v7
23
+ with:
24
+ # Full history keeps the pull request base reachable for the
25
+ # response-contract coverage guard in scripts/doctor.sh.
26
+ fetch-depth: 0
20
27
 
21
28
  - name: Set up Python
22
- uses: actions/setup-python@v6
29
+ uses: actions/setup-python@v7
23
30
  with:
24
31
  python-version: "3.14"
25
32
 
@@ -41,10 +48,10 @@ jobs:
41
48
 
42
49
  steps:
43
50
  - name: Checkout
44
- uses: actions/checkout@v6
51
+ uses: actions/checkout@v7
45
52
 
46
53
  - name: Set up Python
47
- uses: actions/setup-python@v6
54
+ uses: actions/setup-python@v7
48
55
  with:
49
56
  python-version: ${{ matrix.python-version }}
50
57
 
@@ -80,10 +87,10 @@ jobs:
80
87
 
81
88
  steps:
82
89
  - name: Checkout
83
- uses: actions/checkout@v6
90
+ uses: actions/checkout@v7
84
91
 
85
92
  - name: Set up Python
86
- uses: actions/setup-python@v6
93
+ uses: actions/setup-python@v7
87
94
  with:
88
95
  python-version: "3.14"
89
96
 
@@ -15,7 +15,7 @@ repos:
15
15
  files: ^scripts/.*\.sh$
16
16
  - repo: https://github.com/astral-sh/ruff-pre-commit
17
17
  # Keep in sync with the `ruff` pin in pyproject.toml dev dependencies.
18
- rev: v0.16.2
18
+ rev: v0.17.2
19
19
  hooks:
20
20
  - id: ruff
21
21
  args: ["--fix"]
@@ -63,10 +63,10 @@ bash ./scripts/dependency_health.sh
63
63
 
64
64
  Dependency maintenance policy:
65
65
 
66
- - `.github/dependabot.yml` checks the root `uv` backend workspace weekly.
66
+ - `.github/dependabot.yml` checks the root `uv` backend workspace and GitHub Actions weekly.
67
67
  - Backend dependency updates use the `backend` and `dependencies` labels.
68
68
  - Routine Dependabot version updates allow only semver minor updates. Patch updates are intentionally excluded from routine PRs, and major version migrations are explicit tasks with focused validation coverage.
69
- - Dependabot security updates remain eligible independently of the routine version-update policy.
69
+ - Repository Dependabot security updates are enabled independently of the routine version-update policy.
70
70
  - `bash ./scripts/dependency_health.sh` remains the explicit maintainer audit flow for Python outdated packages and dependency-related health checks.
71
71
  - `bash ./scripts/doctor.sh` rejects known vulnerabilities in the locked project and every optional Python extra during PR and `main` validation.
72
72
  - Keep `sqlalchemy[asyncio]` declared with the extra: SQLAlchemy 2.1 moved `greenlet` behind `[asyncio]`, and every supported backend here runs the asyncio engine (`sqlite+aiosqlite`, `postgresql+psycopg`). A plain `sqlalchemy` requirement resolves to 2.1 without `greenlet` and breaks `lifeos web serve` on a fresh install.
@@ -88,6 +88,7 @@ Static-analysis governance:
88
88
  - Keep issue and PR collaboration in Simplified Chinese for this repository.
89
89
  - Prefer self-documenting code: comments explain *why*, not *what*. Do not add comments that restate the code; remove or converge such comments when you touch the surrounding code. Reserve comments for non-obvious rationale, historical context, and cross-cutting constraints, and keep them as close as possible to the code they explain.
90
90
  - Prefer explicit, additive changes over hidden behavioral shifts.
91
+ - Web API response contracts stay covered end to end: any change under `src/lifeos_web/response_schemas/` must be accompanied by an update to `tests/test_web_api_http.py` so the affected response models are exercised through a real HTTP round trip. `scripts/check_web_response_tests.py` enforces this inside `bash ./scripts/doctor.sh`.
91
92
  - Keep Python compatibility declarations, CI matrices, and packaging metadata consistent with each other.
92
93
  - Treat release and trusted publishing changes as security-sensitive infrastructure work.
93
94
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lifeos-cli
3
- Version: 1.4.3
3
+ Version: 1.4.4
4
4
  Summary: Command-line tooling for personal operating system workflows, tools, and automation.
5
5
  Author: liujuanjuan1984
6
6
  License-Expression: Apache-2.0
@@ -29,7 +29,7 @@ Requires-Dist: mypy<3.0,>=1.18; extra == "dev"
29
29
  Requires-Dist: pip-audit<3.0,>=2.9; extra == "dev"
30
30
  Requires-Dist: pre-commit<5.0,>=4.5.0; extra == "dev"
31
31
  Requires-Dist: pytest<10.0,>=8.4; extra == "dev"
32
- Requires-Dist: ruff==0.16.2; extra == "dev"
32
+ Requires-Dist: ruff==0.17.2; extra == "dev"
33
33
  Requires-Dist: types-python-dateutil<3.0,>=2.9.0.20241206; extra == "dev"
34
34
  Requires-Dist: vulture<3.0,>=2.14; extra == "dev"
35
35
  Provides-Extra: postgres
@@ -208,7 +208,7 @@ uv tool install --upgrade "lifeos-cli[web,postgres]"
208
208
  uv run --extra web --extra postgres lifeos web serve
209
209
  ```
210
210
 
211
- The Web API has no authentication and defaults to binding `127.0.0.1`; keep the loopback default for personal use. Security boundaries, SQLite file permissions, and database credential guidance live in [SECURITY.md](SECURITY.md).
211
+ The Web API has no authentication and defaults to binding `127.0.0.1`. A specific LAN or Tailscale address is supported with a warning; wildcard binding to `0.0.0.0` or `::` is not supported. Security boundaries, SQLite file permissions, and database credential guidance live in [SECURITY.md](SECURITY.md).
212
212
 
213
213
  During frontend development, run the Vite app in `lifeos-web` and proxy API requests to the local Web API:
214
214
 
@@ -166,7 +166,7 @@ uv tool install --upgrade "lifeos-cli[web,postgres]"
166
166
  uv run --extra web --extra postgres lifeos web serve
167
167
  ```
168
168
 
169
- The Web API has no authentication and defaults to binding `127.0.0.1`; keep the loopback default for personal use. Security boundaries, SQLite file permissions, and database credential guidance live in [SECURITY.md](SECURITY.md).
169
+ The Web API has no authentication and defaults to binding `127.0.0.1`. A specific LAN or Tailscale address is supported with a warning; wildcard binding to `0.0.0.0` or `::` is not supported. Security boundaries, SQLite file permissions, and database credential guidance live in [SECURITY.md](SECURITY.md).
170
170
 
171
171
  During frontend development, run the Vite app in `lifeos-web` and proxy API requests to the local Web API:
172
172
 
@@ -164,7 +164,7 @@ uv tool install --upgrade "lifeos-cli[web,postgres]"
164
164
  uv run --extra web --extra postgres lifeos web serve
165
165
  ```
166
166
 
167
- Web API 没有认证,默认绑定 `127.0.0.1`;个人使用请保持 loopback 默认值。安全边界、SQLite 文件权限与数据库凭据指引见 [SECURITY.md](SECURITY.md)。
167
+ Web API 没有认证,默认绑定 `127.0.0.1`。具体的局域网或 Tailscale 地址会带警告允许使用;不支持绑定 `0.0.0.0` 或 `::` 等通配地址。安全边界、SQLite 文件权限与数据库凭据指引见 [SECURITY.md](SECURITY.md)。
168
168
 
169
169
  前端开发时,可以在 `lifeos-web` 中启动 Vite app,并把 API 请求代理到本地 Web API:
170
170
 
@@ -36,11 +36,11 @@ The distribution declares `sqlalchemy[asyncio]` so every install keeps the `gree
36
36
 
37
37
  ## Local Web Service Exposure
38
38
 
39
- The local Web API (`lifeos web serve`) has no authentication and holds access to the same personal LifeOS data as the CLI. It defaults to binding `127.0.0.1` (loopback) and prints a warning on stderr when started with a non-loopback `--host` such as `0.0.0.0`. Keep the loopback default for personal use; if you must bind beyond loopback, treat it as an intentional exposure and restrict access at the network layer (for example a firewall or an isolated network). Do not rely on the warning as a security boundary.
39
+ The local Web API (`lifeos web serve`) has no authentication and holds access to the same personal LifeOS data as the CLI. It defaults to binding `127.0.0.1` (loopback). A specific LAN or Tailscale address is supported with a startup warning; wildcard binding to `0.0.0.0` or `::` is rejected. LifeOS Web is local-first and does not provide the authentication expected for shared or public deployments; restrict external access at the network layer (for example a firewall, tailnet ACL, or an isolated network).
40
40
 
41
41
  Additional request-level boundaries apply by default:
42
42
 
43
- - Only loopback Host headers (`localhost`, `127.0.0.1`, `::1`) are accepted; add trusted hostnames with the `LIFEOS_WEB_ALLOWED_HOSTS` environment variable (comma-separated).
43
+ - Only loopback Host headers (`localhost`, `127.0.0.1`, `::1`) are accepted by default; add trusted hostnames or subdomain patterns with the `LIFEOS_WEB_ALLOWED_HOSTS` environment variable (comma-separated). Invalid entries and the global `*` wildcard are rejected.
44
44
  - Requests carrying an `Origin` header must be same-origin or one of the allowlisted Vite development origins; anything else is rejected with `403`.
45
45
  - Request bodies are limited to 1 MiB by default (override with `LIFEOS_WEB_MAX_BODY_BYTES`), bulk payloads have explicit item caps, and `/api/` requests are rate limited per client (default 300/minute, override with `LIFEOS_WEB_RATE_LIMIT_PER_MINUTE`). Rejected requests return `429` with a JSON `detail` and a `Retry-After` header so clients can back off instead of hammering the window.
46
46
  - Task list filters are bounded: `id_in` accepts at most 100 comma-separated task IDs per request, malformed IDs are rejected with `400`, and a batch request returns every matching task regardless of `size` (the limit is raised to the ID count automatically). `id_in` selects tasks by ID directly and does not inherit the root-task semantics of `vision_id` listing.
@@ -44,7 +44,7 @@ dev = [
44
44
  "pre-commit>=4.5.0,<5.0",
45
45
  "pytest>=8.4,<10.0",
46
46
  # Keep in sync with the ruff revision in .pre-commit-config.yaml.
47
- "ruff==0.16.2",
47
+ "ruff==0.17.2",
48
48
  "types-python-dateutil>=2.9.0.20241206,<3.0",
49
49
  "vulture>=2.14,<3.0",
50
50
  ]
@@ -0,0 +1,99 @@
1
+ """Enforce HTTP test coverage for Web API response model changes.
2
+
3
+ When a change touches ``src/lifeos_web/response_schemas`` it must also update
4
+ ``tests/test_web_api_http.py`` so the affected response contracts stay
5
+ exercised through a real HTTP round trip. The comparison is scoped to the
6
+ commits on the current branch using the merge base of the base ref (``--base``,
7
+ ``LIFEOS_BASE_REF``, or ``origin/main`` by default).
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ import argparse
13
+ import os
14
+ import subprocess
15
+ import sys
16
+
17
+ RESPONSE_SCHEMA_PREFIX = "src/lifeos_web/response_schemas/"
18
+ HTTP_TEST_PATH = "tests/test_web_api_http.py"
19
+ DEFAULT_BASE_REF = "origin/main"
20
+
21
+
22
+ def _git(*args: str) -> str:
23
+ result = subprocess.run(
24
+ ("git", *args),
25
+ check=True,
26
+ capture_output=True,
27
+ text=True,
28
+ )
29
+ return result.stdout.strip()
30
+
31
+
32
+ def _resolve_base(base_ref: str, *, strict: bool) -> str | None:
33
+ try:
34
+ return _git("rev-parse", "--verify", f"{base_ref}^{{commit}}")
35
+ except subprocess.CalledProcessError:
36
+ if strict:
37
+ print(
38
+ f"[web-response-test-guard] base ref {base_ref!r} could not be resolved.",
39
+ file=sys.stderr,
40
+ )
41
+ raise SystemExit(2) from None
42
+ print(
43
+ f"[web-response-test-guard] base ref {base_ref!r} unavailable; "
44
+ "skipping response-contract test coverage check."
45
+ )
46
+ return None
47
+
48
+
49
+ def main(argv: list[str] | None = None) -> int:
50
+ parser = argparse.ArgumentParser(description=__doc__)
51
+ parser.add_argument("--base", default=None, help="Base ref to compare against.")
52
+ parser.add_argument("--head", default="HEAD", help="Head ref to compare.")
53
+ args = parser.parse_args(argv)
54
+
55
+ explicit_base = args.base or os.environ.get("LIFEOS_BASE_REF") or None
56
+ base_ref = explicit_base or DEFAULT_BASE_REF
57
+ base_commit = _resolve_base(base_ref, strict=explicit_base is not None)
58
+ if base_commit is None:
59
+ return 0
60
+
61
+ try:
62
+ head_commit = _git("rev-parse", "--verify", f"{args.head}^{{commit}}")
63
+ merge_base = _git("merge-base", base_commit, head_commit)
64
+ changed = set(_git("diff", "--name-only", merge_base, head_commit).splitlines())
65
+ except subprocess.CalledProcessError as exc:
66
+ print(
67
+ f"[web-response-test-guard] git command failed while comparing changes: {exc}",
68
+ file=sys.stderr,
69
+ )
70
+ return 2
71
+
72
+ schema_changes = sorted(path for path in changed if path.startswith(RESPONSE_SCHEMA_PREFIX))
73
+ if not schema_changes:
74
+ print("[web-response-test-guard] no response schema changes detected.")
75
+ return 0
76
+
77
+ if HTTP_TEST_PATH in changed:
78
+ print(
79
+ "[web-response-test-guard] response schema changes are covered by an "
80
+ f"HTTP test update in {HTTP_TEST_PATH}."
81
+ )
82
+ return 0
83
+
84
+ print(
85
+ "[web-response-test-guard] response schema changes require an HTTP test update:",
86
+ file=sys.stderr,
87
+ )
88
+ for path in schema_changes:
89
+ print(f" - {path}", file=sys.stderr)
90
+ print(
91
+ f"Update {HTTP_TEST_PATH} so the changed response contracts are exercised "
92
+ "through a real HTTP round trip.",
93
+ file=sys.stderr,
94
+ )
95
+ return 1
96
+
97
+
98
+ if __name__ == "__main__":
99
+ raise SystemExit(main())
@@ -17,6 +17,9 @@ uv sync --extra dev --extra web --extra postgres --frozen
17
17
  echo "[doctor] run lint"
18
18
  uv run pre-commit run --all-files
19
19
 
20
+ echo "[doctor] check web response contract test coverage"
21
+ uv run python scripts/check_web_response_tests.py
22
+
20
23
  echo "[doctor] run tests"
21
24
  # Enforce the line-coverage floor for lifeos_cli and lifeos_web on the main
22
25
  # non-integration suite. The measured baseline is 75%; the floor is set at 74%
@@ -53,6 +53,7 @@ def build_web_parser(subparsers: argparse._SubParsersAction[argparse.ArgumentPar
53
53
  examples=(
54
54
  "lifeos web serve",
55
55
  "lifeos web serve --host 127.0.0.1 --port 8765",
56
+ "lifeos web serve --host <tailscale-ip> --port 8765",
56
57
  "lifeos web serve --static-dir <path-to>/lifeos-web/dist",
57
58
  ),
58
59
  notes=(
@@ -1084,11 +1084,12 @@
1084
1084
  "use_upgrade_when_configured_database_schema_needs_to_catch_up_with_code": "Use `upgrade` when the configured database schema needs to catch up with the code."
1085
1085
  },
1086
1086
  "web_commands": {
1087
- "bind_host": "Bind host. Defaults to 127.0.0.1; binding beyond loopback triggers a warning and requests from non-loopback hosts are rejected unless added to LIFEOS_WEB_ALLOWED_HOSTS.",
1087
+ "all_interfaces_binding_not_supported": "Refusing to bind LifeOS Web to {host}: wildcard binding exposes every network interface and LifeOS Web has no authentication. Use a specific LAN or Tailscale address instead.",
1088
+ "bind_host": "Bind host. Defaults to 127.0.0.1; specific LAN or Tailscale addresses are supported with a warning. Wildcard addresses such as 0.0.0.0 or :: are not supported because the Web API has no authentication.",
1088
1089
  "bind_port": "Bind port.",
1089
1090
  "enable_uvicorn_reload": "Enable uvicorn reload.",
1090
1091
  "enable_swagger_docs": "Enable Swagger UI and the OpenAPI schema at /api/v1/docs (disabled by default).",
1091
- "install_optional_web_dependencies": "Install the optional Web dependencies with `lifeos-cli[web]`. If your configured database is PostgreSQL, install both extras with `lifeos-cli[web,postgres]`.",
1092
+ "install_optional_web_dependencies": "Install the optional Web dependencies with `lifeos-cli[web]`. If your configured database is PostgreSQL, install both extras with `lifeos-cli[web,postgres]`.",
1092
1093
  "non_loopback_binding_warning": "Warning: LifeOS Web has no authentication. Binding to {host} exposes your personal data to the network; prefer 127.0.0.1 (loopback) or restrict access at the network layer.",
1093
1094
  "run_local_lifeos_web_service": "Run the local LifeOS Web service against the database configured by `lifeos init` and `lifeos config`.",
1094
1095
  "run_optional_local_web_api": "Run the optional local Web API",
@@ -1084,11 +1084,12 @@
1084
1084
  "use_upgrade_when_configured_database_schema_needs_to_catch_up_with_code": "当已配置数据库的 schema 需要追上当前代码时,请使用 `upgrade`。"
1085
1085
  },
1086
1086
  "web_commands": {
1087
- "bind_host": "绑定 `host`。默认 127.0.0.1;绑定到 loopback 之外会触发警告,且非 loopback 的 `Host` 请求会被拒绝,除非已加入 `LIFEOS_WEB_ALLOWED_HOSTS`。",
1087
+ "all_interfaces_binding_not_supported": "拒绝将 LifeOS Web 绑定到 {host}:通配绑定会暴露所有网络接口,而 LifeOS Web 没有认证。请使用具体的局域网或 Tailscale 地址。",
1088
+ "bind_host": "绑定 `host`。默认 127.0.0.1;支持具体的局域网或 Tailscale 地址并给出警告。由于 Web API 没有认证,不支持 `0.0.0.0` 或 `::` 等通配地址。",
1088
1089
  "bind_port": "绑定 port。",
1089
1090
  "enable_uvicorn_reload": "启用 `uvicorn` reload。",
1090
1091
  "enable_swagger_docs": "启用 Swagger UI 与 `OpenAPI schema`(`/api/v1/docs`,默认关闭)。",
1091
- "install_optional_web_dependencies": "使用 `lifeos-cli[web]` 安装可选 Web 依赖。如果已配置数据库是 PostgreSQL,请同时安装 `lifeos-cli[web,postgres]`。",
1092
+ "install_optional_web_dependencies": "使用 `lifeos-cli[web]` 安装可选 Web 依赖。如果已配置数据库是 PostgreSQL,请同时安装 `lifeos-cli[web,postgres]`。",
1092
1093
  "non_loopback_binding_warning": "警告:LifeOS Web 没有认证。绑定到 {host} 会把个人数据暴露到网络中;建议保持 127.0.0.1(loopback)或通过网络层限制访问。",
1093
1094
  "run_local_lifeos_web_service": "基于 `lifeos init` 和 `lifeos config` 配置的数据库运行本地 LifeOS Web 服务。",
1094
1095
  "run_optional_local_web_api": "运行可选的本地 Web API",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lifeos-cli
3
- Version: 1.4.3
3
+ Version: 1.4.4
4
4
  Summary: Command-line tooling for personal operating system workflows, tools, and automation.
5
5
  Author: liujuanjuan1984
6
6
  License-Expression: Apache-2.0
@@ -29,7 +29,7 @@ Requires-Dist: mypy<3.0,>=1.18; extra == "dev"
29
29
  Requires-Dist: pip-audit<3.0,>=2.9; extra == "dev"
30
30
  Requires-Dist: pre-commit<5.0,>=4.5.0; extra == "dev"
31
31
  Requires-Dist: pytest<10.0,>=8.4; extra == "dev"
32
- Requires-Dist: ruff==0.16.2; extra == "dev"
32
+ Requires-Dist: ruff==0.17.2; extra == "dev"
33
33
  Requires-Dist: types-python-dateutil<3.0,>=2.9.0.20241206; extra == "dev"
34
34
  Requires-Dist: vulture<3.0,>=2.14; extra == "dev"
35
35
  Provides-Extra: postgres
@@ -208,7 +208,7 @@ uv tool install --upgrade "lifeos-cli[web,postgres]"
208
208
  uv run --extra web --extra postgres lifeos web serve
209
209
  ```
210
210
 
211
- The Web API has no authentication and defaults to binding `127.0.0.1`; keep the loopback default for personal use. Security boundaries, SQLite file permissions, and database credential guidance live in [SECURITY.md](SECURITY.md).
211
+ The Web API has no authentication and defaults to binding `127.0.0.1`. A specific LAN or Tailscale address is supported with a warning; wildcard binding to `0.0.0.0` or `::` is not supported. Security boundaries, SQLite file permissions, and database credential guidance live in [SECURITY.md](SECURITY.md).
212
212
 
213
213
  During frontend development, run the Vite app in `lifeos-web` and proxy API requests to the local Web API:
214
214
 
@@ -22,6 +22,7 @@ docs/cli.md
22
22
  scripts/audit_cli_help.py
23
23
  scripts/check_cli_tree.sh
24
24
  scripts/check_locale_catalog.py
25
+ scripts/check_web_response_tests.py
25
26
  scripts/dead_code_check.sh
26
27
  scripts/dependency_health.sh
27
28
  scripts/doctor.sh
@@ -11,7 +11,7 @@ mypy<3.0,>=1.18
11
11
  pip-audit<3.0,>=2.9
12
12
  pre-commit<5.0,>=4.5.0
13
13
  pytest<10.0,>=8.4
14
- ruff==0.16.2
14
+ ruff==0.17.2
15
15
  types-python-dateutil<3.0,>=2.9.0.20241206
16
16
  vulture<3.0,>=2.14
17
17
 
@@ -23,6 +23,7 @@
23
23
  "scripts/audit_cli_help.py",
24
24
  "scripts/check_cli_tree.sh",
25
25
  "scripts/check_locale_catalog.py",
26
+ "scripts/check_web_response_tests.py",
26
27
  "scripts/dead_code_check.sh",
27
28
  "scripts/dependency_health.sh",
28
29
  "scripts/doctor.sh",
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "1.4.4",
3
+ "distance": 0,
4
+ "node": "gc3d522a903650b00557526dde98fa08cc550f6a5",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-10-24"
8
+ }
@@ -3,23 +3,27 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import asyncio
6
+ import ipaddress
6
7
  import logging
7
8
  import math
8
9
  import os
10
+ import re
9
11
  import time
10
12
  from collections import deque
13
+ from collections.abc import Iterable
11
14
  from pathlib import Path
12
15
  from urllib.parse import urlsplit
13
16
 
14
- from fastapi import FastAPI
17
+ from fastapi import FastAPI, Request
15
18
  from fastapi.middleware.cors import CORSMiddleware
16
19
  from fastapi.staticfiles import StaticFiles
17
20
  from sqlalchemy.exc import OperationalError
18
21
  from starlette.exceptions import HTTPException as StarletteHTTPException
19
- from starlette.middleware.trustedhost import TrustedHostMiddleware
20
22
  from starlette.responses import JSONResponse, PlainTextResponse, Response
21
23
  from starlette.types import ASGIApp, Message, Receive, Scope, Send
22
24
 
25
+ from lifeos_cli.config import ConfigurationError
26
+ from lifeos_cli.db.services.validation_utils import DomainValidationError
23
27
  from lifeos_web.db_errors import is_lock_contention_error
24
28
  from lifeos_web.deps import LIFEOS_SESSION_STATE_KEY
25
29
  from lifeos_web.routers import (
@@ -54,6 +58,7 @@ DEFAULT_RATE_LIMIT_PER_MINUTE = 300
54
58
  ALLOWED_HOSTS_ENV = "LIFEOS_WEB_ALLOWED_HOSTS"
55
59
  MAX_BODY_BYTES_ENV = "LIFEOS_WEB_MAX_BODY_BYTES"
56
60
  RATE_LIMIT_PER_MINUTE_ENV = "LIFEOS_WEB_RATE_LIMIT_PER_MINUTE"
61
+ HOST_LABEL_PATTERN = re.compile(r"^(?!-)[a-z0-9_](?:[a-z0-9_-]{0,61}[a-z0-9_])?$")
57
62
 
58
63
 
59
64
  def _header_value(scope: Scope, name: bytes) -> str | None:
@@ -84,14 +89,97 @@ def _env_int(name: str, default: int) -> int:
84
89
  return default
85
90
 
86
91
 
92
+ def _host_header_name(value: str) -> str:
93
+ """Return the hostname from one Host header, including bracketed IPv6."""
94
+ host = value.strip().lower()
95
+ if not host:
96
+ return ""
97
+ if host.startswith("["):
98
+ closing_bracket = host.find("]")
99
+ if closing_bracket <= 1:
100
+ return ""
101
+ suffix = host[closing_bracket + 1 :]
102
+ if suffix and not (suffix.startswith(":") and suffix[1:].isdigit()):
103
+ return ""
104
+ candidate = host[1:closing_bracket]
105
+ try:
106
+ if ipaddress.ip_address(candidate).version != 6:
107
+ return ""
108
+ except ValueError:
109
+ return ""
110
+ return candidate
111
+ if host.count(":") == 1:
112
+ name, _separator, port = host.partition(":")
113
+ if port.isdigit():
114
+ return name
115
+ return host
116
+
117
+
118
+ def _is_valid_allowed_host(value: str) -> bool:
119
+ """Return whether one configured host is a hostname, IP, or wildcard domain."""
120
+ candidate = value
121
+ if candidate.startswith("*."):
122
+ candidate = candidate[2:]
123
+ elif "*" in candidate:
124
+ return False
125
+ if not candidate:
126
+ return False
127
+ try:
128
+ ipaddress.ip_address(candidate)
129
+ return True
130
+ except ValueError:
131
+ pass
132
+ if len(candidate) > 253:
133
+ return False
134
+ return all(HOST_LABEL_PATTERN.fullmatch(label) for label in candidate.split("."))
135
+
136
+
137
+ def _normalized_allowed_hosts(hosts: Iterable[str]) -> list[str]:
138
+ """Normalize and validate configured host names."""
139
+ normalized_hosts: set[str] = set()
140
+ for raw_host in hosts:
141
+ host = raw_host.strip().lower()
142
+ if _is_valid_allowed_host(host):
143
+ normalized_hosts.add(host)
144
+ continue
145
+ raise ConfigurationError(
146
+ f"Invalid allowed Web host {raw_host!r}. Use a hostname or IP address without a "
147
+ "scheme or port; the wildcard '*' is not supported."
148
+ )
149
+ return sorted(normalized_hosts)
150
+
151
+
87
152
  def _resolved_allowed_hosts() -> list[str]:
88
153
  """Return loopback hosts plus any comma-separated environment override."""
89
- hosts = set(DEFAULT_ALLOWED_HOSTS)
154
+ hosts = list(DEFAULT_ALLOWED_HOSTS)
90
155
  for host in os.environ.get(ALLOWED_HOSTS_ENV, "").split(","):
91
156
  normalized = host.strip().lower()
92
157
  if normalized:
93
- hosts.add(normalized)
94
- return sorted(hosts)
158
+ hosts.append(normalized)
159
+ return _normalized_allowed_hosts(hosts)
160
+
161
+
162
+ class HostValidationMiddleware:
163
+ """Reject requests whose Host header is not explicitly allowed."""
164
+
165
+ def __init__(self, app: ASGIApp, *, allowed_hosts: Iterable[str]) -> None:
166
+ self.app = app
167
+ self.allowed_hosts = tuple(allowed_hosts)
168
+
169
+ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
170
+ if scope["type"] not in {"http", "websocket"}:
171
+ await self.app(scope, receive, send)
172
+ return
173
+ host = _host_header_name(_header_value(scope, b"host") or "")
174
+ is_valid_host = any(
175
+ host == pattern or (pattern.startswith("*.") and host.endswith(pattern[1:]))
176
+ for pattern in self.allowed_hosts
177
+ )
178
+ if is_valid_host:
179
+ await self.app(scope, receive, send)
180
+ return
181
+ response = PlainTextResponse("Invalid host header", status_code=400)
182
+ await response(scope, receive, send)
95
183
 
96
184
 
97
185
  class OriginValidationMiddleware:
@@ -323,6 +411,14 @@ class CommitSessionMiddleware:
323
411
  await response(scope, receive, send)
324
412
 
325
413
 
414
+ async def _domain_validation_error_handler(
415
+ _request: Request,
416
+ exc: DomainValidationError,
417
+ ) -> JSONResponse:
418
+ """Map uncaught domain validation failures to 400 instead of 500."""
419
+ return JSONResponse(status_code=400, content={"detail": str(exc)})
420
+
421
+
326
422
  def create_app(
327
423
  *,
328
424
  static_dir: Path | None = None,
@@ -330,8 +426,11 @@ def create_app(
330
426
  allowed_hosts: list[str] | None = None,
331
427
  ) -> FastAPI:
332
428
  """Create the local LifeOS Web FastAPI application."""
333
- resolved_hosts = _resolved_allowed_hosts() if allowed_hosts is None else allowed_hosts
334
- resolved_hosts = [host.strip().lower() for host in resolved_hosts]
429
+ resolved_hosts = (
430
+ _resolved_allowed_hosts()
431
+ if allowed_hosts is None
432
+ else _normalized_allowed_hosts(allowed_hosts)
433
+ )
335
434
  max_body_bytes = _env_int(MAX_BODY_BYTES_ENV, DEFAULT_MAX_BODY_BYTES)
336
435
  rate_limit_per_minute = _env_int(
337
436
  RATE_LIMIT_PER_MINUTE_ENV,
@@ -346,7 +445,8 @@ def create_app(
346
445
  docs_url=docs_url,
347
446
  openapi_url=openapi_url,
348
447
  )
349
- app.add_middleware(TrustedHostMiddleware, allowed_hosts=resolved_hosts)
448
+ app.add_exception_handler(DomainValidationError, _domain_validation_error_handler)
449
+ app.add_middleware(HostValidationMiddleware, allowed_hosts=resolved_hosts)
350
450
  app.add_middleware(
351
451
  OriginValidationMiddleware,
352
452
  allowed_origins=DEFAULT_CORS_ORIGINS,
@@ -40,8 +40,8 @@ class PersonActivityMeta(ResponseModel):
40
40
  person_id: str
41
41
  person_name: str
42
42
  activity_type: str | None
43
- timelog_count: int
44
- timelog_total_minutes: int
43
+ timelog_count: int | None = None
44
+ timelog_total_minutes: int | None = None
45
45
 
46
46
 
47
47
  class AnniversaryResponse(ResponseModel):
@@ -237,6 +237,14 @@ async def list_person_activities(
237
237
  limit=size,
238
238
  offset=(page - 1) * size,
239
239
  )
240
+ meta: dict[str, object] = {
241
+ "person_id": str(person_id),
242
+ "person_name": person.name,
243
+ "activity_type": activity_filter,
244
+ }
245
+ if activity_filter == "timelog":
246
+ meta["timelog_count"] = result.timelog_count
247
+ meta["timelog_total_minutes"] = result.timelog_total_minutes
240
248
  return ListResponse(
241
249
  items=[_activity_payload(item) for item in result.items],
242
250
  pagination=Pagination(
@@ -245,13 +253,7 @@ async def list_person_activities(
245
253
  total=result.total,
246
254
  pages=math.ceil(result.total / size) if size else 0,
247
255
  ),
248
- meta={
249
- "person_id": str(person_id),
250
- "person_name": person.name,
251
- "activity_type": activity_filter,
252
- "timelog_count": result.timelog_count,
253
- "timelog_total_minutes": result.timelog_total_minutes,
254
- },
256
+ meta=meta,
255
257
  )
256
258
 
257
259