bmsdna-devtools 1.11.0__tar.gz → 1.13.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 (167) hide show
  1. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/PKG-INFO +41 -7
  2. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/README.md +40 -6
  3. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/ci_plan.py +22 -6
  4. bmsdna_devtools-1.13.0/bmsdna/devtools/cleanup_scan.py +871 -0
  5. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/cli.py +65 -3
  6. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_merge_defaults.py +1 -1
  7. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/pyproject.toml +1 -1
  8. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/skills/bmsdna-devtools/SKILL.md +6 -1
  9. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_ci_plan.py +44 -2
  10. bmsdna_devtools-1.13.0/tests/test_cleanup_scan.py +917 -0
  11. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/uv.lock +1 -1
  12. bmsdna_devtools-1.11.0/bmsdna/devtools/cleanup_scan.py +0 -355
  13. bmsdna_devtools-1.11.0/tests/test_cleanup_scan.py +0 -237
  14. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/.github/workflows/auto-release.yml +0 -0
  15. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/.github/workflows/python-publish.yml +0 -0
  16. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/.github/workflows/python-test.yml +0 -0
  17. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/.gitignore +0 -0
  18. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/.python-version +0 -0
  19. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/__init__.py +0 -0
  20. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/_api_dump.py +0 -0
  21. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/ado_auth.py +0 -0
  22. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/ado_issue.py +0 -0
  23. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/agent_mentions.py +0 -0
  24. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/api_usage.py +0 -0
  25. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/app_service_logs.py +0 -0
  26. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/azure_arm.py +0 -0
  27. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/azure_auth.py +0 -0
  28. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/bdt_config.py +0 -0
  29. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/build_warnings.py +0 -0
  30. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/business_user.py +0 -0
  31. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/ci_plan_env.py +0 -0
  32. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/ci_warnings.py +0 -0
  33. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/cleanup_claude.py +0 -0
  34. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/cli_tools.py +0 -0
  35. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/commit.py +0 -0
  36. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/dead_code.py +0 -0
  37. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/deps/__init__.py +0 -0
  38. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/deps/advisories.py +0 -0
  39. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/deps/cli.py +0 -0
  40. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/deps/cooldown.py +0 -0
  41. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/deps/lockfiles.py +0 -0
  42. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/deps/osv.py +0 -0
  43. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/deps/versions.py +0 -0
  44. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/env_config.py +0 -0
  45. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/env_files.py +0 -0
  46. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/find_injection.py +0 -0
  47. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/find_repo.py +0 -0
  48. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/gh_args.py +0 -0
  49. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/gh_issue.py +0 -0
  50. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/gh_pr.py +0 -0
  51. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/github_api.py +0 -0
  52. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/gitrepo.py +0 -0
  53. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/injection_frontend.py +0 -0
  54. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/injection_python.py +0 -0
  55. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/issue_do.py +0 -0
  56. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/issue_show.py +0 -0
  57. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/issue_watch.py +0 -0
  58. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/lint.py +0 -0
  59. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/lint_findings.py +0 -0
  60. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/lint_models.py +0 -0
  61. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/lint_sql.py +0 -0
  62. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/lint_sql_files.py +0 -0
  63. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/lint_tooling.py +0 -0
  64. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/lint_typescript.py +0 -0
  65. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/logs.py +0 -0
  66. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_build.py +0 -0
  67. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_cancel.py +0 -0
  68. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_choice.py +0 -0
  69. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_create_args.py +0 -0
  70. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_drift.py +0 -0
  71. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_info.py +0 -0
  72. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_issue_link.py +0 -0
  73. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_labels.py +0 -0
  74. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_list.py +0 -0
  75. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_logs.py +0 -0
  76. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_markdown.py +0 -0
  77. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_ref.py +0 -0
  78. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pr_warnings.py +0 -0
  79. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/pull.py +0 -0
  80. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/testdb.py +0 -0
  81. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/translate.py +0 -0
  82. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/__init__.py +0 -0
  83. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/cli.py +0 -0
  84. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/pipeline.py +0 -0
  85. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/pricing.py +0 -0
  86. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/report.py +0 -0
  87. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/sql/00_schema.sql +0 -0
  88. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/sql/01_ingest_claude.sql +0 -0
  89. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/sql/01_ingest_codex.sql +0 -0
  90. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/sql/02_messages.sql +0 -0
  91. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/sql/03_markers.sql +0 -0
  92. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/sql/04_facts.sql +0 -0
  93. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/usage/sql/05_views.sql +0 -0
  94. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/bmsdna/devtools/worktree.py +0 -0
  95. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/justfile +0 -0
  96. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/prek.toml +0 -0
  97. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/conftest.py +0 -0
  98. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/fake_github.py +0 -0
  99. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_ado_auth.py +0 -0
  100. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_ado_issue.py +0 -0
  101. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_ado_issue_flow.py +0 -0
  102. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_agent_mentions.py +0 -0
  103. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_api_usage.py +0 -0
  104. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_app_service_logs.py +0 -0
  105. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_azure_arm.py +0 -0
  106. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_bdt_config.py +0 -0
  107. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_build_warnings.py +0 -0
  108. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_business_user.py +0 -0
  109. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_ci_plan_env.py +0 -0
  110. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_ci_warnings.py +0 -0
  111. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cleanup_claude.py +0 -0
  112. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cli_cleanup.py +0 -0
  113. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cli_commit.py +0 -0
  114. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cli_deps.py +0 -0
  115. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cli_issue.py +0 -0
  116. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cli_pr_create.py +0 -0
  117. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cli_pr_id.py +0 -0
  118. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cli_pull.py +0 -0
  119. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cli_tools.py +0 -0
  120. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_cli_version.py +0 -0
  121. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_commit.py +0 -0
  122. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_deps_advisories.py +0 -0
  123. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_deps_cooldown.py +0 -0
  124. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_deps_lockfiles.py +0 -0
  125. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_deps_osv.py +0 -0
  126. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_deps_versions.py +0 -0
  127. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_env_config.py +0 -0
  128. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_env_files.py +0 -0
  129. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_find_injection.py +0 -0
  130. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_find_repo.py +0 -0
  131. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_gh_issue.py +0 -0
  132. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_gh_pr.py +0 -0
  133. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_github_api.py +0 -0
  134. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_gitrepo.py +0 -0
  135. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_issue_do.py +0 -0
  136. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_issue_for_me.py +0 -0
  137. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_issue_show.py +0 -0
  138. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_issue_watch.py +0 -0
  139. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_lint.py +0 -0
  140. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_lint_models.py +0 -0
  141. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_lint_sql.py +0 -0
  142. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_lint_sql_files.py +0 -0
  143. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_lint_tooling.py +0 -0
  144. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_lint_typescript.py +0 -0
  145. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_logs.py +0 -0
  146. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_build.py +0 -0
  147. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_build_create_options.py +0 -0
  148. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_build_flow.py +0 -0
  149. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_cancel_build.py +0 -0
  150. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_choice.py +0 -0
  151. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_create_args.py +0 -0
  152. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_description_not_truncated.py +0 -0
  153. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_drift.py +0 -0
  154. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_info.py +0 -0
  155. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_issue_link.py +0 -0
  156. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_labels.py +0 -0
  157. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_list.py +0 -0
  158. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_logs.py +0 -0
  159. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_markdown.py +0 -0
  160. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pr_merge_defaults.py +0 -0
  161. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_pull.py +0 -0
  162. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_testdb.py +0 -0
  163. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_translate.py +0 -0
  164. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_usage.py +0 -0
  165. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_wait_timeout.py +0 -0
  166. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_worktree_clean.py +0 -0
  167. {bmsdna_devtools-1.11.0 → bmsdna_devtools-1.13.0}/tests/test_worktree_create.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: bmsdna-devtools
3
- Version: 1.11.0
3
+ Version: 1.13.0
4
4
  Summary: Shared Azure DevOps / GitHub / git / Azure Monitor developer tooling for BMS projects
5
5
  Requires-Python: >=3.14
6
6
  Requires-Dist: azure-identity>=1.19.0
@@ -375,7 +375,7 @@ A PR from a feature branch also defaults to **squash** and **delete source branc
375
375
  options; on GitHub only `--squash` as the auto-merge method with `--auto-complete`, since there is no per-PR
376
376
  delete-branch switch). A PR whose *source* is a long-lived branch (a promotion `dev` -> `test` -> `main`, or a
377
377
  back-merge `main` -> `dev`) gets neither: squashing promotions makes every later one conflict again, and the source
378
- branch must survive. The long-lived branches default to `dev`, `develop`, `test`, `main`, `master` and `release/*`; override them (case-insensitive
378
+ branch must survive. The long-lived branches default to `dev`, `develop`, `test`, `uat`, `stage`, `main`, `master` and `release/*`; override them (case-insensitive
379
379
  globs) with `[tool.bdt.pr].long_lived_branches`. A stacked PR's source branch (the target of another open PR) is not
380
380
  detected: pass `--delete-source-branch false` for it. An explicit `--squash` / `--delete-source-branch` (also `--squash false`) always wins.
381
381
 
@@ -848,17 +848,46 @@ requires typing `yes` at an interactive prompt whenever `--pg-host` isn't
848
848
  database on a shared/remote Postgres instance without a human confirming it
849
849
  directly.
850
850
 
851
- ### Read-only disk-usage reports
851
+ ### Disk-usage reports
852
852
 
853
853
  ```bash
854
854
  bdt cleanup caches [--min-mb 50] [--json]
855
+ bdt cleanup caches --clean [--older-than-days N] [--only ID ...] [--yes] # alias: --fewer-days
855
856
  bdt cleanup stale-envs [root] [--days 30] [--min-mb 100] [--json]
856
857
  bdt cleanup inspect [root] [--idle-hours 24] [--json]
857
858
  bdt cleanup claude-home [root] [--depth 2] [--json]
858
859
  bdt cleanup claude-plugins [PATH ...] [--yes]
859
860
  ```
860
861
 
861
- `caches`, `stale-envs`, `inspect` (and `claude-home`, below) delete nothing; they feed the `dev-cleanup` skill's overview. `caches` lists the size of the
862
+ `bdt cleanup caches` only reports. With `--clean` it empties the listed caches: the `low`-risk rows, or the ones named
863
+ with `--only <id>` (which also allows `medium`). Without `--yes` it only prints the steps. Rustup toolchains,
864
+ HuggingFace models and Trash are never cleaned automatically.
865
+ `--older-than-days N` (alias `--fewer-days`) keeps what was modified recently (not "used": an old entry that is still in
866
+ use is just re-downloaded):
867
+
868
+ - podman/docker and Homebrew use their own age option.
869
+ - **bun**: whole `<pkg>@<ver>@@@1` entries and `.npm` manifests by modification date. Entries that a `node_modules`
870
+ under `$HOME` links into (also nested ones) are kept: that is how `bun install --backend=symlink` (a CLI flag; bunfig
871
+ and env cannot set it) works, so such projects keep working.
872
+ - **uv**: `archive-v0` entries and `simple-v*` files by modification date. Archives that a virtualenv under `$HOME`
873
+ links into (`--link-mode=symlink`, also settable in uv's config) are kept. uv does not support deleting in its cache
874
+ while it runs, so this takes uv's own cache lock and is skipped when uv is busy (this includes `uv run bdt ...`: run
875
+ it from a plain shell). Lock files, source trees and git checkouts are never cut by date, and `uv cache prune` is not
876
+ run (it ignores the cutoff).
877
+ - The link scan only covers `$HOME`: a symlink-mode project elsewhere (another drive) is not seen and would need a
878
+ `bun install` / `uv sync` again. It skips tool dirs (`~/.cache`, `~/.npm`, `~/.cargo`, `~/.bun`, `~/Library/Caches`, ...)
879
+ and silently passes over unreadable directories; if a `node_modules` or venv it does find cannot be read completely,
880
+ nothing is deleted.
881
+ - pip, sccache, `~/Library/Logs`, app caches: files by date. Xcode DerivedData: whole project entries by their newest file.
882
+ - npm, pnpm, cargo, NuGet, gradle, Playwright have no age option and cutting them by file date breaks in-use entries, so
883
+ they are skipped.
884
+
885
+ A tool that is not installed is never an error: uv, npm, bun, pip and NuGet fall back to deleting their cache files,
886
+ everything else is skipped with a note. The native cleaners are pinned to the listed cache dir. A path that resolves
887
+ outside `$HOME` (a symlinked `~/.gradle`, `~/.npm`) is refused, and real delete errors (permissions, I/O, unreadable
888
+ directories) make the command fail.
889
+
890
+ `caches` (without `--clean`), `stale-envs`, `inspect` (and `claude-home`, below) delete nothing; they feed the `dev-cleanup` skill's overview. `caches` lists the size of the
862
891
  podman/docker, uv/npm/bun/pnpm/pip, cargo/sccache/rustup, NuGet, gradle, HuggingFace, Playwright, Homebrew and
863
892
  Xcode caches (plus each `~/Library/Caches` app) with the command that cleans it and its risk. `stale-envs` finds
864
893
  `node_modules`, `.venv`, `.next`/`.turbo`, Rust `target/` (next to a `Cargo.toml`) and .NET `bin/`/`obj/` (next
@@ -1039,7 +1068,7 @@ the `branching-strategy` skill). Add the table to pyproject.toml (an empty one s
1039
1068
  on_missing = "infer" # PR without a usable label: infer from the changed files (default) or "fail"
1040
1069
  non_code = ["docs/**", "*.md"] # files no test reads or ships; explicit per repo (full-match globs: `*.md` = root only, `**/*.md` = every folder)
1041
1070
  # the `bdt translate` source file (`[tool.bdt.translate] file`, default translations.toml) always counts too
1042
- release_branches = ["main", "master", "test", "stage"] # runs of these branches (push or manual) plan no tests (default as shown)
1071
+ release_branches = ["main", "master", "test", "uat", "stage"] # runs of these branches (push or manual) plan no tests (default as shown)
1043
1072
 
1044
1073
  [tool.bdt.ci.plan.tiers.unit] # default tiers: unit = tests/unit, e2e = tests/e2e (a tier whose folder is missing is skipped)
1045
1074
  dir = "tests/unit" # areas = sub-folders with tests (test_*.py / *_test.py); `route_planning` <-> `test-route-planning`
@@ -1075,17 +1104,22 @@ in such a repo: that would skip those tests.
1075
1104
 
1076
1105
  Order of decision, always logged with its reason:
1077
1106
 
1078
- 1. Not a PR: a run of a release branch itself (`release_branches`, default `main`, `master`, `test`, `stage`), after a
1107
+ 1. Not a PR: a run of a release branch itself (`release_branches`, default `main`, `master`, `test`, `uat`, `stage`), after a
1079
1108
  push (merge) or started manually, runs nothing (that code was tested on its way into `dev`); the nightly, manual runs on other branches and forks run everything. A manual run of
1080
1109
  `refs/pull/<id>/merge` is planned like that PR (a fork PR still runs everything).
1081
1110
  2. Branch flow: promotions (`dev` -> `test`, `test` -> `main`, `main` -> `dev`) run nothing. `fix/*` / `hotfix/*` into
1082
1111
  `main` are tested and must be cut from `main` (no unreleased `dev` commits). `cherry/*` ports a subset of
1083
- `test` to `main`: cut `cherry/<topic>-to-main` from `main` and `git cherry-pick` the wanted commits (never merge
1112
+ `test`, `uat` or `stage` to `main`: cut `cherry/<topic>-to-main` from `main` and `git cherry-pick` the wanted commits (never merge
1084
1113
  `test` or `dev` into it), same base check. `main` gets a combination `test` never ran, so a port always runs the
1085
1114
  full suite and its labels are ignored (`bdt pr create` still wants one: pass `test-full`). That check needs full history
1086
1115
  (`fetchDepth: 0` on the checkout); in a shallow checkout or when the refs cannot be fetched it is skipped with a
1087
1116
  warning instead of guessing. Any other PR into `test` / `main` fails the build. Area folders must not be called
1088
1117
  `full` or `none` (they would collide with the labels).
1118
+ `uat` (stable acceptance test, separate data) and `stage` (production with another UI version) are optional
1119
+ environment branches outside that flow: any PR may target them, no base check. One from `dev`, `test`, `main` or the
1120
+ other of the two is a promotion (nothing runs), `cherry/*` (`cherry/<topic>-to-uat`) runs the full suite like a port to
1121
+ `main`, any other PR is tested by its labels like one into `dev`. Code reaches `main` once it ran on a real test
1122
+ server, so `uat` -> `main` and `stage` -> `main` are promotions too (nothing runs); neither may go into `test`.
1089
1123
  3. PR labels decide. No usable label (none, or only unknown `test-*` ones, which are warned about): the changed files
1090
1124
  (merge commit against its first parent) decide. Nothing changed or only `non_code` files -> nothing runs, only files
1091
1125
  an area owns (its tests, or its `paths`) -> those areas, any other file -> everything. `on_missing = "fail"` fails the build instead.
@@ -356,7 +356,7 @@ A PR from a feature branch also defaults to **squash** and **delete source branc
356
356
  options; on GitHub only `--squash` as the auto-merge method with `--auto-complete`, since there is no per-PR
357
357
  delete-branch switch). A PR whose *source* is a long-lived branch (a promotion `dev` -> `test` -> `main`, or a
358
358
  back-merge `main` -> `dev`) gets neither: squashing promotions makes every later one conflict again, and the source
359
- branch must survive. The long-lived branches default to `dev`, `develop`, `test`, `main`, `master` and `release/*`; override them (case-insensitive
359
+ branch must survive. The long-lived branches default to `dev`, `develop`, `test`, `uat`, `stage`, `main`, `master` and `release/*`; override them (case-insensitive
360
360
  globs) with `[tool.bdt.pr].long_lived_branches`. A stacked PR's source branch (the target of another open PR) is not
361
361
  detected: pass `--delete-source-branch false` for it. An explicit `--squash` / `--delete-source-branch` (also `--squash false`) always wins.
362
362
 
@@ -829,17 +829,46 @@ requires typing `yes` at an interactive prompt whenever `--pg-host` isn't
829
829
  database on a shared/remote Postgres instance without a human confirming it
830
830
  directly.
831
831
 
832
- ### Read-only disk-usage reports
832
+ ### Disk-usage reports
833
833
 
834
834
  ```bash
835
835
  bdt cleanup caches [--min-mb 50] [--json]
836
+ bdt cleanup caches --clean [--older-than-days N] [--only ID ...] [--yes] # alias: --fewer-days
836
837
  bdt cleanup stale-envs [root] [--days 30] [--min-mb 100] [--json]
837
838
  bdt cleanup inspect [root] [--idle-hours 24] [--json]
838
839
  bdt cleanup claude-home [root] [--depth 2] [--json]
839
840
  bdt cleanup claude-plugins [PATH ...] [--yes]
840
841
  ```
841
842
 
842
- `caches`, `stale-envs`, `inspect` (and `claude-home`, below) delete nothing; they feed the `dev-cleanup` skill's overview. `caches` lists the size of the
843
+ `bdt cleanup caches` only reports. With `--clean` it empties the listed caches: the `low`-risk rows, or the ones named
844
+ with `--only <id>` (which also allows `medium`). Without `--yes` it only prints the steps. Rustup toolchains,
845
+ HuggingFace models and Trash are never cleaned automatically.
846
+ `--older-than-days N` (alias `--fewer-days`) keeps what was modified recently (not "used": an old entry that is still in
847
+ use is just re-downloaded):
848
+
849
+ - podman/docker and Homebrew use their own age option.
850
+ - **bun**: whole `<pkg>@<ver>@@@1` entries and `.npm` manifests by modification date. Entries that a `node_modules`
851
+ under `$HOME` links into (also nested ones) are kept: that is how `bun install --backend=symlink` (a CLI flag; bunfig
852
+ and env cannot set it) works, so such projects keep working.
853
+ - **uv**: `archive-v0` entries and `simple-v*` files by modification date. Archives that a virtualenv under `$HOME`
854
+ links into (`--link-mode=symlink`, also settable in uv's config) are kept. uv does not support deleting in its cache
855
+ while it runs, so this takes uv's own cache lock and is skipped when uv is busy (this includes `uv run bdt ...`: run
856
+ it from a plain shell). Lock files, source trees and git checkouts are never cut by date, and `uv cache prune` is not
857
+ run (it ignores the cutoff).
858
+ - The link scan only covers `$HOME`: a symlink-mode project elsewhere (another drive) is not seen and would need a
859
+ `bun install` / `uv sync` again. It skips tool dirs (`~/.cache`, `~/.npm`, `~/.cargo`, `~/.bun`, `~/Library/Caches`, ...)
860
+ and silently passes over unreadable directories; if a `node_modules` or venv it does find cannot be read completely,
861
+ nothing is deleted.
862
+ - pip, sccache, `~/Library/Logs`, app caches: files by date. Xcode DerivedData: whole project entries by their newest file.
863
+ - npm, pnpm, cargo, NuGet, gradle, Playwright have no age option and cutting them by file date breaks in-use entries, so
864
+ they are skipped.
865
+
866
+ A tool that is not installed is never an error: uv, npm, bun, pip and NuGet fall back to deleting their cache files,
867
+ everything else is skipped with a note. The native cleaners are pinned to the listed cache dir. A path that resolves
868
+ outside `$HOME` (a symlinked `~/.gradle`, `~/.npm`) is refused, and real delete errors (permissions, I/O, unreadable
869
+ directories) make the command fail.
870
+
871
+ `caches` (without `--clean`), `stale-envs`, `inspect` (and `claude-home`, below) delete nothing; they feed the `dev-cleanup` skill's overview. `caches` lists the size of the
843
872
  podman/docker, uv/npm/bun/pnpm/pip, cargo/sccache/rustup, NuGet, gradle, HuggingFace, Playwright, Homebrew and
844
873
  Xcode caches (plus each `~/Library/Caches` app) with the command that cleans it and its risk. `stale-envs` finds
845
874
  `node_modules`, `.venv`, `.next`/`.turbo`, Rust `target/` (next to a `Cargo.toml`) and .NET `bin/`/`obj/` (next
@@ -1020,7 +1049,7 @@ the `branching-strategy` skill). Add the table to pyproject.toml (an empty one s
1020
1049
  on_missing = "infer" # PR without a usable label: infer from the changed files (default) or "fail"
1021
1050
  non_code = ["docs/**", "*.md"] # files no test reads or ships; explicit per repo (full-match globs: `*.md` = root only, `**/*.md` = every folder)
1022
1051
  # the `bdt translate` source file (`[tool.bdt.translate] file`, default translations.toml) always counts too
1023
- release_branches = ["main", "master", "test", "stage"] # runs of these branches (push or manual) plan no tests (default as shown)
1052
+ release_branches = ["main", "master", "test", "uat", "stage"] # runs of these branches (push or manual) plan no tests (default as shown)
1024
1053
 
1025
1054
  [tool.bdt.ci.plan.tiers.unit] # default tiers: unit = tests/unit, e2e = tests/e2e (a tier whose folder is missing is skipped)
1026
1055
  dir = "tests/unit" # areas = sub-folders with tests (test_*.py / *_test.py); `route_planning` <-> `test-route-planning`
@@ -1056,17 +1085,22 @@ in such a repo: that would skip those tests.
1056
1085
 
1057
1086
  Order of decision, always logged with its reason:
1058
1087
 
1059
- 1. Not a PR: a run of a release branch itself (`release_branches`, default `main`, `master`, `test`, `stage`), after a
1088
+ 1. Not a PR: a run of a release branch itself (`release_branches`, default `main`, `master`, `test`, `uat`, `stage`), after a
1060
1089
  push (merge) or started manually, runs nothing (that code was tested on its way into `dev`); the nightly, manual runs on other branches and forks run everything. A manual run of
1061
1090
  `refs/pull/<id>/merge` is planned like that PR (a fork PR still runs everything).
1062
1091
  2. Branch flow: promotions (`dev` -> `test`, `test` -> `main`, `main` -> `dev`) run nothing. `fix/*` / `hotfix/*` into
1063
1092
  `main` are tested and must be cut from `main` (no unreleased `dev` commits). `cherry/*` ports a subset of
1064
- `test` to `main`: cut `cherry/<topic>-to-main` from `main` and `git cherry-pick` the wanted commits (never merge
1093
+ `test`, `uat` or `stage` to `main`: cut `cherry/<topic>-to-main` from `main` and `git cherry-pick` the wanted commits (never merge
1065
1094
  `test` or `dev` into it), same base check. `main` gets a combination `test` never ran, so a port always runs the
1066
1095
  full suite and its labels are ignored (`bdt pr create` still wants one: pass `test-full`). That check needs full history
1067
1096
  (`fetchDepth: 0` on the checkout); in a shallow checkout or when the refs cannot be fetched it is skipped with a
1068
1097
  warning instead of guessing. Any other PR into `test` / `main` fails the build. Area folders must not be called
1069
1098
  `full` or `none` (they would collide with the labels).
1099
+ `uat` (stable acceptance test, separate data) and `stage` (production with another UI version) are optional
1100
+ environment branches outside that flow: any PR may target them, no base check. One from `dev`, `test`, `main` or the
1101
+ other of the two is a promotion (nothing runs), `cherry/*` (`cherry/<topic>-to-uat`) runs the full suite like a port to
1102
+ `main`, any other PR is tested by its labels like one into `dev`. Code reaches `main` once it ran on a real test
1103
+ server, so `uat` -> `main` and `stage` -> `main` are promotions too (nothing runs); neither may go into `test`.
1070
1104
  3. PR labels decide. No usable label (none, or only unknown `test-*` ones, which are warned about): the changed files
1071
1105
  (merge commit against its first parent) decide. Nothing changed or only `non_code` files -> nothing runs, only files
1072
1106
  an area owns (its tests, or its `paths`) -> those areas, any other file -> everything. `on_missing = "fail"` fails the build instead.
@@ -6,7 +6,7 @@ Configured under `[tool.bdt.ci.plan]` in pyproject.toml (the table must exist, e
6
6
  on_missing = "infer" # PR without a usable label: "infer" from the changed files (default) or "fail"
7
7
  non_code = ["docs/**", "*.md"] # files no test reads or ships; explicit per repo (`*.md` = root only, `**/*.md` = all)
8
8
  # (the `bdt translate` file, translations.toml, is always one of them)
9
- release_branches = ["main", "master", "test", "stage"] # runs of these (push or manual) plan no tests (default as shown)
9
+ release_branches = ["main", "master", "test", "uat", "stage"] # runs of these (push or manual) plan no tests (default as shown)
10
10
 
11
11
  [tool.bdt.ci.plan.tiers.unit] # default tiers: unit = tests/unit, e2e = tests/e2e
12
12
  dir = "tests/unit" # areas = sub-folders with tests (snake_case folder <-> kebab-case label)
@@ -25,11 +25,16 @@ to that folder, so a file outside it is a `../` path: own it with `paths` (`infr
25
25
  Labels: `test-<area>`, `test-full` (everything), `test-none` (no tests; lint and build still run). The legacy
26
26
  `e2e-<area>` labels count as `test-<area>`. Order of decision (the reason is always reported):
27
27
 
28
- 1. Not a PR: a run of a release branch itself (`release_branches`, default main, master, test, stage), after a push or
28
+ 1. Not a PR: a run of a release branch itself (`release_branches`, default main, master, test, uat, stage), after a push or
29
29
  started manually, runs nothing (promoted code was tested on its way into `dev`); anything else (nightly, manual runs
30
30
  on other branches) and forks run everything.
31
- 2. Branch flow: promotions (dev -> test -> main -> dev) run nothing; `fix/*` and `hotfix/*` into `main` are tested and `cherry/*` (a subset of `test` ported to `main`) runs
31
+ 2. Branch flow: promotions (dev -> test -> main -> dev) run nothing; `fix/*` and `hotfix/*` into `main` are tested and `cherry/*` (a subset of `test`, `uat` or `stage` ported to `main`) runs
32
32
  the full suite whatever its label; both must be cut from `main`; any other PR into `test`/`main` is an error.
33
+ `uat` and `stage` are optional environment branches without a fixed place in that flow: any PR may target them.
34
+ One from `dev`, `test`, `main` or the other environment branch is a promotion (nothing runs), `cherry/*` runs the
35
+ full suite whatever its label, anything else is tested like a PR into `dev`. No base check: they may carry any code.
36
+ Code reaches `main` once it ran on a real test server: `uat` / `stage` -> `main` is a promotion like `test` -> `main`,
37
+ and a `cherry/*` port to `main` may pick its commits from `test`, `uat` or `stage`.
33
38
  3. PR labels decide. Without a usable label the changed files decide (`on_missing = "infer"`): nothing changed or
34
39
  only `non_code` files -> none, only files an area owns (its tests, or `paths`) -> those areas, any other file ->
35
40
  everything. An area without tests (such as `infra`) selects nothing to run: `runTests` stays true, every tier is off.
@@ -59,9 +64,12 @@ IGNORED_DIRS = frozenset({"__pycache__", "node_modules"}) # never hold tests, e
59
64
  UNMATCHED_AREA = "shared"
60
65
  LONG_LIVED = frozenset({"dev", "test", "main"})
61
66
  PROMOTIONS = frozenset({("dev", "test"), ("test", "main"), ("main", "dev")})
67
+ ENV_BRANCHES = frozenset(
68
+ {"uat", "stage"}
69
+ ) # optional environments (UAT: stable acceptance test, stage: production + other UI)
62
70
  FIX_PREFIXES = ("fix/", "hotfix/")
63
- PORT_PREFIXES = ("cherry/",) # a subset of test cherry-picked onto a branch cut from main
64
- DEFAULT_RELEASE_BRANCHES = ("main", "master", "test", "stage") # environment branches: code lands here after dev
71
+ PORT_PREFIXES = ("cherry/",) # a subset of test / uat / stage cherry-picked onto a branch cut from main
72
+ DEFAULT_RELEASE_BRANCHES = ("main", "master", "test", "uat", "stage") # environment branches: code lands here after dev
65
73
  # A merge landed on the branch, or a manual re-run of it: deploy only.
66
74
  PUSH_REASONS = frozenset({"IndividualCI", "BatchedCI", "Manual"})
67
75
  INFRA_AREA = "infra" # owns `infra/**` by default when the repo has an infra/ folder; usually has no tests
@@ -298,6 +306,14 @@ class Plan:
298
306
 
299
307
  def classify_pr(source: str, target: str) -> tuple[Literal["promotion", "tested", "ported", "rejected"], str]:
300
308
  """How a PR from `source` into `target` (branch names, no `refs/heads/`) is treated."""
309
+ if target in ENV_BRANCHES:
310
+ if source != target and source in LONG_LIVED | ENV_BRANCHES:
311
+ return "promotion", f"{source} -> {target}"
312
+ if source.startswith(PORT_PREFIXES):
313
+ return "ported", f"port branch {source} -> {target}"
314
+ return "tested", f"{source} -> {target}"
315
+ if target == "main" and source in ENV_BRANCHES:
316
+ return "promotion", f"{source} -> {target}"
301
317
  if source in LONG_LIVED and target in LONG_LIVED:
302
318
  if (source, target) in PROMOTIONS:
303
319
  return "promotion", f"{source} -> {target}"
@@ -317,7 +333,7 @@ def classify_pr(source: str, target: str) -> tuple[Literal["promotion", "tested"
317
333
  return "ported", f"port branch {source} -> main"
318
334
  return (
319
335
  "rejected",
320
- f"only fix/*, hotfix/*, cherry/* branches and the test -> main promotion may target main, not {source}",
336
+ f"only fix/*, hotfix/*, cherry/* branches and the test / uat / stage -> main promotions may target main, not {source}",
321
337
  )
322
338
  return "tested", f"{source} -> {target}"
323
339