womm-cli 5.1.1__tar.gz → 5.2.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.
Files changed (242) hide show
  1. {womm_cli-5.1.1 → womm_cli-5.2.0}/PKG-INFO +1 -1
  2. {womm_cli-5.1.1 → womm_cli-5.2.0}/pyproject.toml +1 -1
  3. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/_version.py +1 -1
  4. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/cli.py +72 -1
  5. womm_cli-5.2.0/src/womm/services/system/update_service.py +191 -0
  6. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/paths.py +7 -0
  7. {womm_cli-5.1.1 → womm_cli-5.2.0}/uv.lock +1 -1
  8. {womm_cli-5.1.1 → womm_cli-5.2.0}/.github/dependabot.yml +0 -0
  9. {womm_cli-5.1.1 → womm_cli-5.2.0}/.github/workflows/00-install-deps.yml +0 -0
  10. {womm_cli-5.1.1 → womm_cli-5.2.0}/.github/workflows/01-ci.yml +0 -0
  11. {womm_cli-5.1.1 → womm_cli-5.2.0}/.github/workflows/02-tag-sync.yml +0 -0
  12. {womm_cli-5.1.1 → womm_cli-5.2.0}/.github/workflows/03-publish.yml +0 -0
  13. {womm_cli-5.1.1 → womm_cli-5.2.0}/.github/workflows/04-docs.yml +0 -0
  14. {womm_cli-5.1.1 → womm_cli-5.2.0}/.github/workflows/README.md +0 -0
  15. {womm_cli-5.1.1 → womm_cli-5.2.0}/.gitignore +0 -0
  16. {womm_cli-5.1.1 → womm_cli-5.2.0}/.markdownlint.yaml +0 -0
  17. {womm_cli-5.1.1 → womm_cli-5.2.0}/.pre-commit-config.yaml +0 -0
  18. {womm_cli-5.1.1 → womm_cli-5.2.0}/.python-version +0 -0
  19. {womm_cli-5.1.1 → womm_cli-5.2.0}/.scripts/dev/check_merge_conflict.py +0 -0
  20. {womm_cli-5.1.1 → womm_cli-5.2.0}/.scripts/dev/check_toml.py +0 -0
  21. {womm_cli-5.1.1 → womm_cli-5.2.0}/.scripts/dev/check_yaml.py +0 -0
  22. {womm_cli-5.1.1 → womm_cli-5.2.0}/.scripts/dev/generate_architecture_graph.py +0 -0
  23. {womm_cli-5.1.1 → womm_cli-5.2.0}/.scripts/dev/update_version.py +0 -0
  24. {womm_cli-5.1.1 → womm_cli-5.2.0}/AGENTS.md +0 -0
  25. {womm_cli-5.1.1 → womm_cli-5.2.0}/LICENSE +0 -0
  26. {womm_cli-5.1.1 → womm_cli-5.2.0}/README.md +0 -0
  27. {womm_cli-5.1.1 → womm_cli-5.2.0}/TODO.md +0 -0
  28. {womm_cli-5.1.1 → womm_cli-5.2.0}/cliff.toml +0 -0
  29. {womm_cli-5.1.1 → womm_cli-5.2.0}/mkdocs.yml +0 -0
  30. {womm_cli-5.1.1 → womm_cli-5.2.0}/requirements-dev.in +0 -0
  31. {womm_cli-5.1.1 → womm_cli-5.2.0}/requirements.in +0 -0
  32. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/__init__.py +0 -0
  33. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/__main__.py +0 -0
  34. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/meta/copier.yml +0 -0
  35. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/meta/template/README.md.jinja +0 -0
  36. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/meta/template/copier.yml.jinja +0 -0
  37. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/meta/template/template/.gitkeep +0 -0
  38. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/copier.yml +0 -0
  39. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/.gitignore.jinja +0 -0
  40. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/.nvmrc.jinja +0 -0
  41. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/.prettierignore.jinja +0 -0
  42. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/README.md.jinja +0 -0
  43. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/biome.json.jinja +0 -0
  44. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/eslint.config.mjs.jinja +0 -0
  45. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/index.html.jinja +0 -0
  46. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/package.json.jinja +0 -0
  47. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/prettier.config.mjs.jinja +0 -0
  48. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/src/App.jsx.jinja +0 -0
  49. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/src/App.tsx.jinja +0 -0
  50. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/src/App.vue.jinja +0 -0
  51. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/src/index.jsx.jinja +0 -0
  52. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/src/index.tsx.jinja +0 -0
  53. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/src/main.js.jinja +0 -0
  54. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/src/main.ts.jinja +0 -0
  55. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/tsconfig.json.jinja +0 -0
  56. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/vite.config.mjs.jinja +0 -0
  57. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/{% if with_ci %}.github{% endif %}/workflows/ci.yml.jinja +0 -0
  58. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/{% if with_tests %}tests{% endif %}/smoke.test.js.jinja +0 -0
  59. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/{% if with_tests %}tests{% endif %}/smoke.test.ts.jinja +0 -0
  60. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/{% if with_vscode %}.vscode{% endif %}/extensions.json.jinja +0 -0
  61. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/javascript/template/{% if with_vscode %}.vscode{% endif %}/settings.json.jinja +0 -0
  62. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/copier.yml +0 -0
  63. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/.gitignore.jinja +0 -0
  64. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/.pre-commit-config.yaml.jinja +0 -0
  65. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/.python-version.jinja +0 -0
  66. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/README.md.jinja +0 -0
  67. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/pyproject.toml.jinja +0 -0
  68. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if framework == 'django' %}manage.py{% endif %}.jinja +0 -0
  69. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/__init__.py.jinja +0 -0
  70. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/asgi.py.jinja +0 -0
  71. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/__init__.py.jinja +0 -0
  72. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/apps.py.jinja +0 -0
  73. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/models.py.jinja +0 -0
  74. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/views.py.jinja +0 -0
  75. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/py.typed +0 -0
  76. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/settings.py.jinja +0 -0
  77. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/urls.py.jinja +0 -0
  78. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/wsgi.py.jinja +0 -0
  79. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/__init__.py.jinja +0 -0
  80. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/asgi.py.jinja +0 -0
  81. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/__init__.py.jinja +0 -0
  82. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/apps.py.jinja +0 -0
  83. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/models.py.jinja +0 -0
  84. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/views.py.jinja +0 -0
  85. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/py.typed +0 -0
  86. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/settings.py.jinja +0 -0
  87. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/urls.py.jinja +0 -0
  88. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/wsgi.py.jinja +0 -0
  89. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if with_ci %}.github{% endif %}/workflows/ci.yml.jinja +0 -0
  90. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if with_tests %}tests{% endif %}/test_smoke.py.jinja +0 -0
  91. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if with_vscode %}.vscode{% endif %}/extensions.json.jinja +0 -0
  92. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/assets/copier/official/python/template/{% if with_vscode %}.vscode{% endif %}/settings.json.jinja +0 -0
  93. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/bin/refresh_env.cmd +0 -0
  94. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/__init__.py +0 -0
  95. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/core/__init__.py +0 -0
  96. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/core/doctor.py +0 -0
  97. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/core/path.py +0 -0
  98. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/project/__init__.py +0 -0
  99. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/project/create.py +0 -0
  100. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/project/setup.py +0 -0
  101. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/project/template.py +0 -0
  102. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/system/__init__.py +0 -0
  103. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/system/context/__init__.py +0 -0
  104. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/system/context/backup.py +0 -0
  105. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/system/context/inventory.py +0 -0
  106. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/system/context/registration.py +0 -0
  107. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/system/deps.py +0 -0
  108. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/commands/system/system.py +0 -0
  109. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/__init__.py +0 -0
  110. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/common/__init__.py +0 -0
  111. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/common/command_service.py +0 -0
  112. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/common/file_service.py +0 -0
  113. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/common/security_service.py +0 -0
  114. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/common/validation_service.py +0 -0
  115. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/context/__init__.py +0 -0
  116. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/context/context_service.py +0 -0
  117. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/project/__init__.py +0 -0
  118. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/project/project_service.py +0 -0
  119. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/system/__init__.py +0 -0
  120. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/exceptions/system/system_service.py +0 -0
  121. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/__init__.py +0 -0
  122. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/context/__init__.py +0 -0
  123. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/context/menu_interface.py +0 -0
  124. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/context/registry_interface.py +0 -0
  125. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/context/script_detector_interface.py +0 -0
  126. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/context/script_registrar.py +0 -0
  127. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/core/__init__.py +0 -0
  128. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/core/doctor_interface.py +0 -0
  129. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/dependencies/__init__.py +0 -0
  130. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/dependencies/deps_interface.py +0 -0
  131. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/project/__init__.py +0 -0
  132. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/project/create_interface.py +0 -0
  133. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/project/detection_interface.py +0 -0
  134. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/project/manager_interface.py +0 -0
  135. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/project/setup_interface.py +0 -0
  136. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/project/template_store_interface.py +0 -0
  137. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/system/__init__.py +0 -0
  138. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/system/detector_interface.py +0 -0
  139. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/system/environment_interface.py +0 -0
  140. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/interfaces/system/path_interface.py +0 -0
  141. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/__init__.py +0 -0
  142. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/common/__init__.py +0 -0
  143. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/common/base_validation_service.py +0 -0
  144. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/common/command_runner_service.py +0 -0
  145. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/common/file_scanner_service.py +0 -0
  146. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/common/security_validator_service.py +0 -0
  147. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/context/__init__.py +0 -0
  148. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/context/backup_entries.py +0 -0
  149. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/context/parameters.py +0 -0
  150. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/context/registry_paths.py +0 -0
  151. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/context/registry_service.py +0 -0
  152. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/context/validation_service.py +0 -0
  153. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/dependencies/__init__.py +0 -0
  154. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/dependencies/probe.py +0 -0
  155. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/__init__.py +0 -0
  156. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/copier_project_creation_service.py +0 -0
  157. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/destination_guard.py +0 -0
  158. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/detection_service.py +0 -0
  159. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/env_utils.py +0 -0
  160. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/javascript_environment_service.py +0 -0
  161. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/python_environment_service.py +0 -0
  162. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/setup_profile_resolver.py +0 -0
  163. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/template_store_service.py +0 -0
  164. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/project/validation_service.py +0 -0
  165. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/system/__init__.py +0 -0
  166. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/system/detector_service.py +0 -0
  167. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/system/environment_service.py +0 -0
  168. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/services/system/path_service.py +0 -0
  169. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/__init__.py +0 -0
  170. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/__init__.py +0 -0
  171. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/context/__init__.py +0 -0
  172. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/context/context_config.py +0 -0
  173. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/context/context_file_types_config.py +0 -0
  174. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/context/context_limits_config.py +0 -0
  175. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/context/context_paths_config.py +0 -0
  176. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/context/context_types_config.py +0 -0
  177. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/context/script_config.py +0 -0
  178. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/dependencies/__init__.py +0 -0
  179. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/dependencies/runtime_config.py +0 -0
  180. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/dependencies/runtime_package_manager_config.py +0 -0
  181. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/logging_config.py +0 -0
  182. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/project/__init__.py +0 -0
  183. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/project/project_config.py +0 -0
  184. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/project/project_structure_config.py +0 -0
  185. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/project/python_project_config.py +0 -0
  186. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/security/__init__.py +0 -0
  187. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/security/security_patterns_config.py +0 -0
  188. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/system/__init__.py +0 -0
  189. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/system/system_detector_config.py +0 -0
  190. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/configs/system/system_environment_config.py +0 -0
  191. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/models/__init__.py +0 -0
  192. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/models/template_source.py +0 -0
  193. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/__init__.py +0 -0
  194. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/base.py +0 -0
  195. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/command_results.py +0 -0
  196. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/context_results.py +0 -0
  197. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/dependency_results.py +0 -0
  198. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/doctor_results.py +0 -0
  199. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/file_results.py +0 -0
  200. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/project_results.py +0 -0
  201. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/security_results.py +0 -0
  202. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/system_results.py +0 -0
  203. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/results/template_results.py +0 -0
  204. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/shared/runtime.py +0 -0
  205. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/__init__.py +0 -0
  206. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/common/__init__.py +0 -0
  207. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/common/interactive_menu.py +0 -0
  208. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/common/logging.py +0 -0
  209. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/common/prompts.py +0 -0
  210. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/context/__init__.py +0 -0
  211. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/context/display.py +0 -0
  212. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/context/menu_display.py +0 -0
  213. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/context/wizard.py +0 -0
  214. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/project/__init__.py +0 -0
  215. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/project/create/create_completion_summaries.py +0 -0
  216. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/project/project_wizard.py +0 -0
  217. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/project/setup/setup_completion_summaries.py +0 -0
  218. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/project/templates/template_store_display.py +0 -0
  219. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/system/__init__.py +0 -0
  220. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/system/display.py +0 -0
  221. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/ui/system/path_display.py +0 -0
  222. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/__init__.py +0 -0
  223. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/common/__init__.py +0 -0
  224. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/common/file_scanner_utils.py +0 -0
  225. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/common/path_resolver_utils.py +0 -0
  226. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/common/safe_fs_utils.py +0 -0
  227. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/context/__init__.py +0 -0
  228. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/context/core_utils.py +0 -0
  229. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/context/icon_utils.py +0 -0
  230. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/project/__init__.py +0 -0
  231. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/project/asset_utils.py +0 -0
  232. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/project/core_utils.py +0 -0
  233. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/project/file_utils.py +0 -0
  234. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/project/platform_utils.py +0 -0
  235. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/project/validation_utils.py +0 -0
  236. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/security/__init__.py +0 -0
  237. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/security/security_validation_utils.py +0 -0
  238. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/system/__init__.py +0 -0
  239. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/system/detector_utils.py +0 -0
  240. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/system/environment_utils.py +0 -0
  241. {womm_cli-5.1.1 → womm_cli-5.2.0}/src/womm/utils/system/path_utils.py +0 -0
  242. {womm_cli-5.1.1 → womm_cli-5.2.0}/uv.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: womm-cli
3
- Version: 5.1.1
3
+ Version: 5.2.0
4
4
  Summary: Universal development tools for Python and JavaScript - Automatic installation, cross-platform configuration, global commands
5
5
  Project-URL: Homepage, https://github.com/neuraaak/WOMM
6
6
  Project-URL: Documentation, https://neuraaak.github.io/WOMM/
@@ -14,7 +14,7 @@ build-backend = "hatchling.build"
14
14
 
15
15
  [project]
16
16
  name = "womm-cli"
17
- version = "5.1.1"
17
+ version = "5.2.0"
18
18
  description = "Universal development tools for Python and JavaScript - Automatic installation, cross-platform configuration, global commands"
19
19
  readme = "README.md"
20
20
  license = { text = "MIT" }
@@ -7,4 +7,4 @@
7
7
 
8
8
  from __future__ import annotations
9
9
 
10
- __version__ = "5.1.1"
10
+ __version__ = "5.2.0"
@@ -44,6 +44,66 @@ def _configure_windows_console() -> None:
44
44
  _configure_windows_console()
45
45
 
46
46
 
47
+ # ///////////////////////////////////////////////////////////////
48
+ # UPDATE NOTICE
49
+ # ///////////////////////////////////////////////////////////////
50
+
51
+ # Any non-empty value turns the PyPI release check off.
52
+ NO_UPDATE_CHECK_ENV = "WOMM_NO_UPDATE_CHECK"
53
+
54
+
55
+ def _update_check_enabled() -> bool:
56
+ """Check for releases only for a person at a terminal, never in CI."""
57
+ if os.environ.get(NO_UPDATE_CHECK_ENV) or os.environ.get("CI"):
58
+ return False
59
+ return sys.stderr.isatty()
60
+
61
+
62
+ def _report_update() -> None:
63
+ """Print a one-line notice on stderr when a newer release exists."""
64
+ # Imported here: deciding whether to check must cost nothing.
65
+ from .services.system.update_service import check_for_update
66
+
67
+ update = check_for_update(__version__)
68
+ if update is not None:
69
+ click.secho(
70
+ f"\nWOMM {update.latest} is available (installed: {update.current})."
71
+ f" Upgrade with: {update.upgrade_command}",
72
+ fg="yellow",
73
+ err=True,
74
+ )
75
+
76
+
77
+ def _version_status() -> tuple[str, str]:
78
+ """Describe, for the welcome screen, whether WOMM is up to date.
79
+
80
+ Returns:
81
+ tuple[str, str]: The text to show and its color.
82
+ """
83
+ if not _update_check_enabled():
84
+ return f"WOMM {__version__} (update check skipped).", "cyan"
85
+
86
+ from .services.system.update_service import (
87
+ is_newer,
88
+ latest_release,
89
+ upgrade_command,
90
+ )
91
+
92
+ latest = latest_release()
93
+ if latest is None:
94
+ return (
95
+ f"WOMM {__version__}. PyPI could not be reached to check for updates.",
96
+ "yellow",
97
+ )
98
+ if is_newer(latest, __version__):
99
+ return (
100
+ f"WOMM {latest} is available (installed: {__version__}).\n"
101
+ f"Upgrade with: {upgrade_command()}",
102
+ "yellow",
103
+ )
104
+ return f"WOMM {__version__} is up to date.", "green"
105
+
106
+
47
107
  # ///////////////////////////////////////////////////////////////
48
108
  # MAIN CLI FUNCTION
49
109
  # ///////////////////////////////////////////////////////////////
@@ -55,7 +115,11 @@ _configure_windows_console()
55
115
  @click.pass_context
56
116
  def womm(ctx: click.Context) -> None:
57
117
  """🛠️ Works On My Machine - Universal development tools."""
58
- if ctx.invoked_subcommand is None:
118
+ if ctx.invoked_subcommand is not None:
119
+ if _update_check_enabled():
120
+ # Runs once the command is done, failed runs included.
121
+ ctx.call_on_close(_report_update)
122
+ else:
59
123
  # Imported here: the logger setup must not slow down `--version`/`-h`.
60
124
  from .ui.common import ezprinter
61
125
 
@@ -85,6 +149,13 @@ def womm(ctx: click.Context) -> None:
85
149
  )
86
150
  ezprinter.console.print(panel)
87
151
 
152
+ status, color = _version_status()
153
+ ezprinter.console.print(
154
+ ezprinter.create_info_panel(
155
+ "Version", status, style=color, border_style=color
156
+ )
157
+ )
158
+
88
159
 
89
160
  # ///////////////////////////////////////////////////////////////
90
161
  # COMMAND REGISTRATION
@@ -0,0 +1,191 @@
1
+ #!/usr/bin/env python3
2
+ # ///////////////////////////////////////////////////////////////
3
+ # UPDATE SERVICE - PyPI Release Check
4
+ # Project: works-on-my-machine
5
+ # ///////////////////////////////////////////////////////////////
6
+
7
+ """
8
+ Tell whether a newer WOMM release is published on PyPI.
9
+
10
+ The answer is cached in the data directory for a day, so at most one command
11
+ a day pays for the network call. Every failure (offline, timeout, unexpected
12
+ answer, unwritable cache) means "no update known": a release check must never
13
+ break or slow down the command it rides on.
14
+ """
15
+
16
+ from __future__ import annotations
17
+
18
+ # ///////////////////////////////////////////////////////////////
19
+ # IMPORTS
20
+ # ///////////////////////////////////////////////////////////////
21
+ # Standard library imports
22
+ import json
23
+ import os
24
+ import re
25
+ import sys
26
+ import time
27
+ from dataclasses import dataclass
28
+
29
+ # Local imports
30
+ from ...shared.paths import update_check_file
31
+
32
+ # ///////////////////////////////////////////////////////////////
33
+ # CONSTANTS
34
+ # ///////////////////////////////////////////////////////////////
35
+
36
+ PACKAGE_NAME = "womm-cli"
37
+ _PYPI_URL = f"https://pypi.org/pypi/{PACKAGE_NAME}/json"
38
+ _MAX_AGE_SECONDS = 24 * 60 * 60
39
+ _TIMEOUT_SECONDS = 1.0
40
+ # The PyPI answer grows with the release count; a few hundred KB at most.
41
+ _MAX_RESPONSE_BYTES = 2 * 1024 * 1024
42
+ # Final releases only: a pre-release is never offered as an update.
43
+ _RELEASE_PATTERN = re.compile(r"\d+(\.\d+)*")
44
+
45
+ # ///////////////////////////////////////////////////////////////
46
+ # RESULT TYPE
47
+ # ///////////////////////////////////////////////////////////////
48
+
49
+
50
+ @dataclass(frozen=True)
51
+ class UpdateInfo:
52
+ """A newer release than the installed one."""
53
+
54
+ current: str
55
+ latest: str
56
+ upgrade_command: str
57
+
58
+
59
+ # ///////////////////////////////////////////////////////////////
60
+ # PUBLIC API
61
+ # ///////////////////////////////////////////////////////////////
62
+
63
+
64
+ def is_newer(candidate: str, current: str) -> bool:
65
+ """Tell whether ``candidate`` is a final release above ``current``.
66
+
67
+ Args:
68
+ candidate: Version published on PyPI.
69
+ current: Installed version.
70
+
71
+ Returns:
72
+ bool: False as soon as either version is not a plain ``X.Y.Z``.
73
+ """
74
+ if not (
75
+ _RELEASE_PATTERN.fullmatch(candidate) and _RELEASE_PATTERN.fullmatch(current)
76
+ ):
77
+ return False
78
+ return _as_tuple(candidate) > _as_tuple(current)
79
+
80
+
81
+ def upgrade_command() -> str:
82
+ """Return the command that upgrades the running installation."""
83
+ # Split on both separators: Path() keeps a Windows path whole on POSIX.
84
+ parts = set(re.split(r"[\\/]", sys.prefix.lower()))
85
+ if "uv" in parts and "tools" in parts:
86
+ return f"uv tool upgrade {PACKAGE_NAME}"
87
+ if "pipx" in parts:
88
+ return f"pipx upgrade {PACKAGE_NAME}"
89
+ return f"python -m pip install --upgrade {PACKAGE_NAME}"
90
+
91
+
92
+ def latest_release(*, now: float | None = None) -> str | None:
93
+ """Return the latest release on PyPI, refreshing the cache once a day.
94
+
95
+ Args:
96
+ now: Current time, as ``time.time()``; injectable for tests.
97
+
98
+ Returns:
99
+ str | None: The latest known release, or None when PyPI has never
100
+ been reached.
101
+ """
102
+ now = time.time() if now is None else now
103
+ cache = _read_cache()
104
+ latest = cache.get("latest")
105
+ latest = latest if isinstance(latest, str) else None
106
+ checked_at = cache.get("checked_at")
107
+
108
+ fresh = (
109
+ isinstance(checked_at, int | float) and 0 <= now - checked_at < _MAX_AGE_SECONDS
110
+ )
111
+ if not fresh:
112
+ # A failed fetch keeps the last known release and still stamps the
113
+ # check, so an offline machine does not retry on every command.
114
+ latest = _fetch_latest() or latest
115
+ _write_cache({"checked_at": now, "latest": latest})
116
+ return latest
117
+
118
+
119
+ def check_for_update(current: str, *, now: float | None = None) -> UpdateInfo | None:
120
+ """Return the newer release, if any.
121
+
122
+ Args:
123
+ current: Installed version.
124
+ now: Current time, as ``time.time()``; injectable for tests.
125
+
126
+ Returns:
127
+ UpdateInfo | None: The newer release, or None when there is none or
128
+ it cannot be known.
129
+ """
130
+ latest = latest_release(now=now)
131
+ if latest is None or not is_newer(latest, current):
132
+ return None
133
+ return UpdateInfo(current=current, latest=latest, upgrade_command=upgrade_command())
134
+
135
+
136
+ # ///////////////////////////////////////////////////////////////
137
+ # PRIVATE HELPERS
138
+ # ///////////////////////////////////////////////////////////////
139
+
140
+
141
+ def _as_tuple(version: str) -> tuple[int, ...]:
142
+ return tuple(int(part) for part in version.split("."))
143
+
144
+
145
+ def _read_cache() -> dict[str, object]:
146
+ try:
147
+ data = json.loads(update_check_file().read_text(encoding="utf-8"))
148
+ except (OSError, ValueError):
149
+ return {}
150
+ return data if isinstance(data, dict) else {}
151
+
152
+
153
+ def _write_cache(data: dict[str, object]) -> None:
154
+ try:
155
+ target = update_check_file()
156
+ temporary = target.with_suffix(".tmp")
157
+ temporary.write_text(json.dumps(data), encoding="utf-8")
158
+ os.replace(temporary, target)
159
+ except OSError:
160
+ pass
161
+
162
+
163
+ def _fetch_latest() -> str | None:
164
+ # Imported here: urllib and http.client cost ~85 ms at import.
165
+ import http.client
166
+ import urllib.request
167
+
168
+ request = urllib.request.Request(
169
+ _PYPI_URL,
170
+ headers={"Accept": "application/json", "User-Agent": PACKAGE_NAME},
171
+ )
172
+ try:
173
+ # B310/S310 waived: the URL is a constant https address.
174
+ with urllib.request.urlopen( # noqa: S310 # nosec B310
175
+ request, timeout=_TIMEOUT_SECONDS
176
+ ) as response:
177
+ payload = json.loads(response.read(_MAX_RESPONSE_BYTES))
178
+ version = payload["info"]["version"]
179
+ except (OSError, ValueError, KeyError, TypeError, http.client.HTTPException):
180
+ return None
181
+ return version if isinstance(version, str) else None
182
+
183
+
184
+ __all__ = [
185
+ "PACKAGE_NAME",
186
+ "UpdateInfo",
187
+ "check_for_update",
188
+ "is_newer",
189
+ "latest_release",
190
+ "upgrade_command",
191
+ ]
@@ -53,6 +53,7 @@ BACKUPS_DIRNAME = "backups"
53
53
  PATH_BACKUPS_DIRNAME = "path"
54
54
  REGISTRY_BACKUPS_DIRNAME = "registry"
55
55
  CONFIG_FILENAME = "config.toml"
56
+ UPDATE_CHECK_FILENAME = "update-check.json"
56
57
 
57
58
  # Package subdirectory holding the shipped, read-only assets.
58
59
  ASSETS_DIRNAME = "assets"
@@ -142,6 +143,11 @@ def config_file() -> Path:
142
143
  return womm_data_dir() / CONFIG_FILENAME
143
144
 
144
145
 
146
+ def update_check_file() -> Path:
147
+ """Get the file caching the last PyPI release check (not created)."""
148
+ return womm_data_dir() / UPDATE_CHECK_FILENAME
149
+
150
+
145
151
  # ///////////////////////////////////////////////////////////////
146
152
  # PUBLIC API - PACKAGED CODE AND ASSETS
147
153
  # ///////////////////////////////////////////////////////////////
@@ -186,6 +192,7 @@ __all__ = [
186
192
  "path_backups_dir",
187
193
  "registry_backups_dir",
188
194
  "template_catalog_file",
195
+ "update_check_file",
189
196
  "user_templates_dir",
190
197
  "womm_data_path",
191
198
  "womm_data_dir",
@@ -2040,7 +2040,7 @@ wheels = [
2040
2040
 
2041
2041
  [[package]]
2042
2042
  name = "womm-cli"
2043
- version = "5.1.1"
2043
+ version = "5.2.0"
2044
2044
  source = { editable = "." }
2045
2045
  dependencies = [
2046
2046
  { name = "click" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes