boomtick-cli 0.13.1__tar.gz → 0.14.3__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 (186) hide show
  1. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/PKG-INFO +1 -1
  2. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/boomtick_cli.egg-info/PKG-INFO +1 -1
  3. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/boomtick_cli.egg-info/SOURCES.txt +12 -0
  4. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/cli-schema.json +76 -1
  5. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/cli.py +123 -39
  6. boomtick_cli-0.14.3/dev_tools/dist/config/dynamic.js +33 -0
  7. boomtick_cli-0.14.3/dev_tools/dist/config/github.js +16 -0
  8. boomtick_cli-0.14.3/dev_tools/dist/config/repo.js +28 -0
  9. boomtick_cli-0.14.3/dev_tools/dist/config.js +69 -0
  10. boomtick_cli-0.14.3/dev_tools/dist/http.js +10 -0
  11. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/mcp/definitions.js +29 -7
  12. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/mcp/http.js +18 -10
  13. boomtick_cli-0.14.3/dev_tools/dist/mcp/http.test.js +108 -0
  14. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/mcp/server.js +35 -10
  15. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/mcp/server.test.js +28 -1
  16. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/contract.js +77 -0
  17. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.comment_triage_summary.js +3 -10
  18. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.get_merge_conflict_files.js +4 -2
  19. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.get_pr_diff.js +3 -11
  20. boomtick_cli-0.14.3/dev_tools/dist/tools/jules/cancel-session.js +13 -0
  21. boomtick_cli-0.14.3/dev_tools/dist/tools/jules/cli.js +31 -0
  22. boomtick_cli-0.14.3/dev_tools/dist/tools/jules/get-messages.js +12 -0
  23. boomtick_cli-0.14.3/dev_tools/dist/tools/jules/list-sessions.js +12 -0
  24. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/send-message.js +2 -9
  25. boomtick_cli-0.13.1/dev_tools/dist/tools/jules/shared.js → boomtick_cli-0.14.3/dev_tools/dist/tools/jules/session.js +0 -24
  26. boomtick_cli-0.14.3/dev_tools/dist/tools/jules/shared.js +2 -0
  27. boomtick_cli-0.14.3/dev_tools/dist/tools/jules/trigger-feedback.js +8 -0
  28. boomtick_cli-0.14.3/dev_tools/dist/tools/repo.check_jules_status.js +148 -0
  29. boomtick_cli-0.14.3/dev_tools/dist/tools/repo.check_jules_status.test.js +47 -0
  30. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.run_tests.js +13 -1
  31. boomtick_cli-0.14.3/dev_tools/handlers/mcp_installer.py +110 -0
  32. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/models/__init__.py +57 -14
  33. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/orchestrator.py +159 -63
  34. boomtick_cli-0.14.3/dev_tools/resources/__pycache__/__init__.cpython-312.pyc +0 -0
  35. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/resources/__pycache__/build-repo-context.cpython-312.pyc +0 -0
  36. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/schema_gen.py +2 -3
  37. boomtick_cli-0.14.3/dev_tools/services/ast_audit.py +338 -0
  38. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/services/context_builder.py +7 -3
  39. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/services/jules.py +77 -1
  40. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/services/vector_store.py +114 -105
  41. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/pyproject.toml +1 -1
  42. boomtick_cli-0.14.3/tests/test_ast_audit.py +122 -0
  43. boomtick_cli-0.14.3/tests/test_cli_pr_options.py +207 -0
  44. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_code_intelligence.py +31 -1
  45. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_config.py +60 -0
  46. boomtick_cli-0.14.3/tests/test_doctor.py +109 -0
  47. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_issue_validation_local.py +17 -4
  48. boomtick_cli-0.14.3/tests/test_mcp_installer.py +54 -0
  49. boomtick_cli-0.14.3/tests/test_verify_scope.py +329 -0
  50. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_workflow_orchestration.py +24 -0
  51. boomtick_cli-0.13.1/dev_tools/dist/config.js +0 -134
  52. boomtick_cli-0.13.1/dev_tools/dist/mcp/http.test.js +0 -58
  53. boomtick_cli-0.13.1/dev_tools/dist/tools/jules/cancel-session.js +0 -20
  54. boomtick_cli-0.13.1/dev_tools/dist/tools/jules/get-messages.js +0 -19
  55. boomtick_cli-0.13.1/dev_tools/dist/tools/jules/list-sessions.js +0 -43
  56. boomtick_cli-0.13.1/dev_tools/dist/tools/jules/trigger-feedback.js +0 -16
  57. boomtick_cli-0.13.1/dev_tools/resources/__pycache__/__init__.cpython-312.pyc +0 -0
  58. boomtick_cli-0.13.1/dev_tools/services/ast_audit.py +0 -226
  59. boomtick_cli-0.13.1/tests/test_doctor.py +0 -59
  60. boomtick_cli-0.13.1/tests/test_verify_scope.py +0 -100
  61. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/MANIFEST.in +0 -0
  62. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/README.md +0 -0
  63. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/boomtick_cli.egg-info/dependency_links.txt +0 -0
  64. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/boomtick_cli.egg-info/entry_points.txt +0 -0
  65. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/boomtick_cli.egg-info/requires.txt +0 -0
  66. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/boomtick_cli.egg-info/top_level.txt +0 -0
  67. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/__init__.py +0 -0
  68. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/config.py +0 -0
  69. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/constants.py +0 -0
  70. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/daemon.py +0 -0
  71. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/config.test.js +0 -0
  72. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/evals/run-evals.js +0 -0
  73. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/index.js +0 -0
  74. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/error_utils.js +0 -0
  75. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/error_utils.test.js +0 -0
  76. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/git.js +0 -0
  77. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/git.test.js +0 -0
  78. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/param_utils.js +0 -0
  79. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/param_utils.test.js +0 -0
  80. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/result.js +0 -0
  81. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/result.test.js +0 -0
  82. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/shell.js +0 -0
  83. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/shell.test.js +0 -0
  84. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/lib/test-utils.js +0 -0
  85. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/mcp/schemas.test.js +0 -0
  86. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/mcp/tools.js +0 -0
  87. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.checkout_branch.js +0 -0
  88. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.create_issue.js +0 -0
  89. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.create_issue.test.js +0 -0
  90. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.create_pull_request.js +0 -0
  91. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.create_pull_request.test.js +0 -0
  92. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.get_pr.js +0 -0
  93. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.get_pr_commits.js +0 -0
  94. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.get_pr_reviews.js +0 -0
  95. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.get_pr_reviews.test.js +0 -0
  96. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.issue_comment.js +0 -0
  97. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.issue_update.js +0 -0
  98. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.issue_view.js +0 -0
  99. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.open_replacement_pr.js +0 -0
  100. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.search_open_prs.js +0 -0
  101. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/github.search_open_prs.test.js +0 -0
  102. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/create-session.js +0 -0
  103. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/create-session.test.js +0 -0
  104. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/get-messages.test.js +0 -0
  105. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/get-pr.js +0 -0
  106. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/get-pr.test.js +0 -0
  107. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/get-session.js +0 -0
  108. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/send-message.test.js +0 -0
  109. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/shared.test.js +0 -0
  110. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/jules/trigger-feedback.test.js +0 -0
  111. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.commit_patch.js +0 -0
  112. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.create_branch.js +0 -0
  113. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.create_branch.test.js +0 -0
  114. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.create_repair_branch.js +0 -0
  115. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.get_changed_files.js +0 -0
  116. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.get_command_schema.js +0 -0
  117. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.get_package_scripts.js +0 -0
  118. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.get_package_scripts.test.js +0 -0
  119. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.get_workflow_runs.js +0 -0
  120. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.logs.js +0 -0
  121. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.read_agent_context.js +0 -0
  122. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.read_agent_context.test.js +0 -0
  123. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/repo.read_ci_logs.js +0 -0
  124. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/dist/tools/types.js +0 -0
  125. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/get_ai_context.py +0 -0
  126. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/handlers/__init__.py +0 -0
  127. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/handlers/command_handler.py +0 -0
  128. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/handlers/workflow_installer.py +0 -0
  129. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/models/base.py +0 -0
  130. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/models/contracts.py +0 -0
  131. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/pr_overlap.py +0 -0
  132. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/resources/__init__.py +0 -0
  133. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/resources/build-repo-context.py +0 -0
  134. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/resources/prompt_constants.json +0 -0
  135. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/resources/review_template.md +0 -0
  136. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/resources/ux-audit.config.json +0 -0
  137. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/resources/visual_guidelines.json +0 -0
  138. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/review_read_pass.py +0 -0
  139. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/schema_utils.py +0 -0
  140. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/services/__init__.py +0 -0
  141. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/services/dependency_graph.py +0 -0
  142. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/services/github.py +0 -0
  143. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/services/repair_service.py +0 -0
  144. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/td_cli.py +0 -0
  145. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/utils/__init__.py +0 -0
  146. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/utils/concurrency.py +0 -0
  147. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/utils/git.py +0 -0
  148. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/ux_report.py +0 -0
  149. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/verify_infra.py +0 -0
  150. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/verify_versions.py +0 -0
  151. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/version_utils.py +0 -0
  152. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/workflows/__init__.py +0 -0
  153. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/workflows/context.py +0 -0
  154. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/workflows/graph.py +0 -0
  155. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/workflows/node.py +0 -0
  156. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/workflows/nodes.py +0 -0
  157. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/dev_tools/workflows/runner.py +0 -0
  158. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/setup.cfg +0 -0
  159. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_agent_dispatch.py +0 -0
  160. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_build_repo_context.py +0 -0
  161. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_buildx_compliance.py +0 -0
  162. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_concurrency.py +0 -0
  163. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_dependency_graph.py +0 -0
  164. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_detect_conflicts.py +0 -0
  165. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_fail_fast.py +0 -0
  166. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_github_diff_parser.py +0 -0
  167. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_github_no_gh.py +0 -0
  168. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_github_parser.py +0 -0
  169. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_install_workflows.py +0 -0
  170. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_issue_view.py +0 -0
  171. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_jules_batch_send.py +0 -0
  172. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_jules_feedback.py +0 -0
  173. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_labels.py +0 -0
  174. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_latency_mitigation.py +0 -0
  175. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_opentelemetry_check.py +0 -0
  176. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_orchestrator_aggregation.py +0 -0
  177. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_orchestrator_heuristics.py +0 -0
  178. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_parse_comment.py +0 -0
  179. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_plan_issue_audit.py +0 -0
  180. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_pr_overlap.py +0 -0
  181. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_review_template_validation.py +0 -0
  182. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_schema_utils.py +0 -0
  183. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_search_issues.py +0 -0
  184. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_verify_ci_metrics.py +0 -0
  185. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_workflow_audit.py +0 -0
  186. {boomtick_cli-0.13.1 → boomtick_cli-0.14.3}/tests/test_workflow_installer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boomtick-cli
3
- Version: 0.13.1
3
+ Version: 0.14.3
4
4
  Summary: BoomTick CLI — agentic dev-tools for GitHub workflows
5
5
  Author: Ariel Anders
6
6
  Project-URL: Homepage, https://github.com/arii/boomtick
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boomtick-cli
3
- Version: 0.13.1
3
+ Version: 0.14.3
4
4
  Summary: BoomTick CLI — agentic dev-tools for GitHub workflows
5
5
  Author: Ariel Anders
6
6
  Project-URL: Homepage, https://github.com/arii/boomtick
@@ -26,7 +26,11 @@ dev_tools/verify_versions.py
26
26
  dev_tools/version_utils.py
27
27
  dev_tools/dist/config.js
28
28
  dev_tools/dist/config.test.js
29
+ dev_tools/dist/http.js
29
30
  dev_tools/dist/index.js
31
+ dev_tools/dist/config/dynamic.js
32
+ dev_tools/dist/config/github.js
33
+ dev_tools/dist/config/repo.js
30
34
  dev_tools/dist/evals/run-evals.js
31
35
  dev_tools/dist/lib/error_utils.js
32
36
  dev_tools/dist/lib/error_utils.test.js
@@ -65,6 +69,8 @@ dev_tools/dist/tools/github.issue_view.js
65
69
  dev_tools/dist/tools/github.open_replacement_pr.js
66
70
  dev_tools/dist/tools/github.search_open_prs.js
67
71
  dev_tools/dist/tools/github.search_open_prs.test.js
72
+ dev_tools/dist/tools/repo.check_jules_status.js
73
+ dev_tools/dist/tools/repo.check_jules_status.test.js
68
74
  dev_tools/dist/tools/repo.commit_patch.js
69
75
  dev_tools/dist/tools/repo.create_branch.js
70
76
  dev_tools/dist/tools/repo.create_branch.test.js
@@ -81,6 +87,7 @@ dev_tools/dist/tools/repo.read_ci_logs.js
81
87
  dev_tools/dist/tools/repo.run_tests.js
82
88
  dev_tools/dist/tools/types.js
83
89
  dev_tools/dist/tools/jules/cancel-session.js
90
+ dev_tools/dist/tools/jules/cli.js
84
91
  dev_tools/dist/tools/jules/create-session.js
85
92
  dev_tools/dist/tools/jules/create-session.test.js
86
93
  dev_tools/dist/tools/jules/get-messages.js
@@ -91,12 +98,14 @@ dev_tools/dist/tools/jules/get-session.js
91
98
  dev_tools/dist/tools/jules/list-sessions.js
92
99
  dev_tools/dist/tools/jules/send-message.js
93
100
  dev_tools/dist/tools/jules/send-message.test.js
101
+ dev_tools/dist/tools/jules/session.js
94
102
  dev_tools/dist/tools/jules/shared.js
95
103
  dev_tools/dist/tools/jules/shared.test.js
96
104
  dev_tools/dist/tools/jules/trigger-feedback.js
97
105
  dev_tools/dist/tools/jules/trigger-feedback.test.js
98
106
  dev_tools/handlers/__init__.py
99
107
  dev_tools/handlers/command_handler.py
108
+ dev_tools/handlers/mcp_installer.py
100
109
  dev_tools/handlers/workflow_installer.py
101
110
  dev_tools/models/__init__.py
102
111
  dev_tools/models/base.py
@@ -127,8 +136,10 @@ dev_tools/workflows/node.py
127
136
  dev_tools/workflows/nodes.py
128
137
  dev_tools/workflows/runner.py
129
138
  tests/test_agent_dispatch.py
139
+ tests/test_ast_audit.py
130
140
  tests/test_build_repo_context.py
131
141
  tests/test_buildx_compliance.py
142
+ tests/test_cli_pr_options.py
132
143
  tests/test_code_intelligence.py
133
144
  tests/test_concurrency.py
134
145
  tests/test_config.py
@@ -146,6 +157,7 @@ tests/test_jules_batch_send.py
146
157
  tests/test_jules_feedback.py
147
158
  tests/test_labels.py
148
159
  tests/test_latency_mitigation.py
160
+ tests/test_mcp_installer.py
149
161
  tests/test_opentelemetry_check.py
150
162
  tests/test_orchestrator_aggregation.py
151
163
  tests/test_orchestrator_heuristics.py
@@ -28,7 +28,7 @@
28
28
  "exact_usage": "td lint"
29
29
  },
30
30
  "preflight": {
31
- "description": "Run local preflight checks: td audit, linting, overlap detection, and merge simulation.",
31
+ "description": "Run local preflight checks: td doctor, typecheck, linting, overlap detection, and merge simulation.",
32
32
  "exact_usage": "td preflight [--base <BASE>]",
33
33
  "optional_flags": [
34
34
  {
@@ -2940,6 +2940,48 @@
2940
2940
  "title": "GetMergeConflictFilesInput",
2941
2941
  "type": "object"
2942
2942
  },
2943
+ "GetMergeConflictFilesResponse": {
2944
+ "properties": {
2945
+ "hasConflicts": {
2946
+ "title": "Hasconflicts",
2947
+ "type": "boolean"
2948
+ },
2949
+ "conflictedFiles": {
2950
+ "items": {
2951
+ "type": "string"
2952
+ },
2953
+ "title": "Conflictedfiles",
2954
+ "type": "array"
2955
+ },
2956
+ "prNumber": {
2957
+ "anyOf": [
2958
+ {
2959
+ "type": "integer"
2960
+ },
2961
+ {
2962
+ "type": "null"
2963
+ }
2964
+ ],
2965
+ "default": null,
2966
+ "title": "Prnumber"
2967
+ },
2968
+ "baseBranch": {
2969
+ "title": "Basebranch",
2970
+ "type": "string"
2971
+ },
2972
+ "headRef": {
2973
+ "title": "Headref",
2974
+ "type": "string"
2975
+ }
2976
+ },
2977
+ "required": [
2978
+ "hasConflicts",
2979
+ "baseBranch",
2980
+ "headRef"
2981
+ ],
2982
+ "title": "GetMergeConflictFilesResponse",
2983
+ "type": "object"
2984
+ },
2943
2985
  "GetPackageScriptsInput": {
2944
2986
  "properties": {
2945
2987
  "filter": {
@@ -4431,6 +4473,39 @@
4431
4473
  "title": "RunTestsInput",
4432
4474
  "type": "object"
4433
4475
  },
4476
+ "RunTestsResponse": {
4477
+ "properties": {
4478
+ "passed": {
4479
+ "title": "Passed",
4480
+ "type": "boolean"
4481
+ },
4482
+ "exitCode": {
4483
+ "title": "Exitcode",
4484
+ "type": "integer"
4485
+ },
4486
+ "failedTests": {
4487
+ "items": {
4488
+ "type": "string"
4489
+ },
4490
+ "title": "Failedtests",
4491
+ "type": "array"
4492
+ },
4493
+ "results": {
4494
+ "items": {
4495
+ "additionalProperties": true,
4496
+ "type": "object"
4497
+ },
4498
+ "title": "Results",
4499
+ "type": "array"
4500
+ }
4501
+ },
4502
+ "required": [
4503
+ "passed",
4504
+ "exitCode"
4505
+ ],
4506
+ "title": "RunTestsResponse",
4507
+ "type": "object"
4508
+ },
4434
4509
  "SearchDdgsInput": {
4435
4510
  "properties": {
4436
4511
  "query": {
@@ -9,7 +9,6 @@ import importlib.util
9
9
  import re
10
10
  from pathlib import Path
11
11
  from dataclasses import asdict
12
- from typing import Any, Dict, List
13
12
 
14
13
  import click
15
14
  from dev_tools.config import get_config
@@ -51,8 +50,13 @@ class LazyOrchestrator:
51
50
  return dir(self._get_instance())
52
51
 
53
52
 
54
- PROJECT_CONFIG = get_config()
55
- DEFAULT_GH_API_LIMIT = PROJECT_CONFIG.default_limit
53
+ DEFAULT_GH_API_LIMIT = 10
54
+
55
+
56
+ def __getattr__(name: str):
57
+ if name == "PROJECT_CONFIG":
58
+ return get_config()
59
+ raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
56
60
 
57
61
 
58
62
  def limit_option(default_val=DEFAULT_GH_API_LIMIT, help_text="Limit the number of items to process"):
@@ -153,6 +157,54 @@ def _get_body_content(ctx, orch, file, body):
153
157
  return content
154
158
 
155
159
 
160
+ # ==========================================
161
+ # MCP COMMAND GROUP
162
+ # ==========================================
163
+
164
+
165
+ @cli.group()
166
+ def mcp():
167
+ """MCP Discovery and Server Operations"""
168
+
169
+
170
+ @mcp.command(name="install")
171
+ @click.option("--host", "-h", "hosts", multiple=True, help="Target specific host (antigravity, claude, cursor, codex)")
172
+ @click.option("--path", "custom_path", help="Custom path to host settings JSON file")
173
+ @click.option("--command", "mcp_command", default="boomtick-mcp", help="Command to run MCP server")
174
+ @click.option("--dry-run/--execute", default=True, help="Preview changes without updating files")
175
+ @click.pass_context
176
+ def mcp_install(ctx, hosts, custom_path, mcp_command, dry_run):
177
+ """Detect agent host environments and register boomtick-mcp."""
178
+ from dev_tools.handlers.mcp_installer import detect_and_install_mcp
179
+
180
+ target_config = {"command": mcp_command}
181
+ host_list = list(hosts) if hosts else None
182
+ res = detect_and_install_mcp(
183
+ hosts=host_list,
184
+ dry_run=dry_run,
185
+ target_config=target_config,
186
+ custom_path=custom_path,
187
+ )
188
+
189
+ if not ctx.obj.get("JSON", False):
190
+ click.echo(f"MCP Installation ({'Dry Run' if dry_run else 'Executed'}):")
191
+ for r in res.get("results", []):
192
+ click.echo(f" • {r['path']}: {r['status']} - {r['message']}")
193
+
194
+ out(ctx, "MCP registration check complete.", data=res)
195
+
196
+
197
+ @mcp.command(name="setup")
198
+ @click.option("--host", "-h", "hosts", multiple=True, help="Target specific host (antigravity, claude, cursor, codex)")
199
+ @click.option("--path", "custom_path", help="Custom path to host settings JSON file")
200
+ @click.option("--command", "mcp_command", default="boomtick-mcp", help="Command to run MCP server")
201
+ @click.option("--dry-run/--execute", default=True, help="Preview changes without updating files")
202
+ @click.pass_context
203
+ def mcp_setup(ctx, hosts, custom_path, mcp_command, dry_run):
204
+ """Alias for 'td mcp install'."""
205
+ ctx.invoke(mcp_install, hosts=hosts, custom_path=custom_path, mcp_command=mcp_command, dry_run=dry_run)
206
+
207
+
156
208
  # ==========================================
157
209
  # CONFIG COMMAND GROUP
158
210
  # ==========================================
@@ -171,11 +223,15 @@ def config_view(ctx):
171
223
  # ctx.obj might be None if the command is called directly or during unit tests
172
224
  is_json = ctx.obj.get("JSON", True) if ctx.obj is not None else True
173
225
 
174
- if is_json:
175
- click.echo(json.dumps(asdict(PROJECT_CONFIG), indent=2))
176
- else:
177
- click.echo("Current configuration:")
178
- click.echo(json.dumps(asdict(PROJECT_CONFIG), indent=2))
226
+ try:
227
+ conf = get_config()
228
+ if is_json:
229
+ click.echo(json.dumps(asdict(conf), indent=2))
230
+ else:
231
+ click.echo("Current configuration:")
232
+ click.echo(json.dumps(asdict(conf), indent=2))
233
+ except (ValueError, CLIError) as e:
234
+ err(ctx, str(e))
179
235
 
180
236
 
181
237
  # ==========================================
@@ -324,30 +380,44 @@ def search_issues(ctx, state, limit, labels):
324
380
 
325
381
 
326
382
  @gh.command()
327
- @click.argument("pr_number", type=int)
328
- @click.option("--base", default=PROJECT_CONFIG.base_branch_name)
383
+ @click.argument("pr_number_arg", required=False, type=int)
384
+ @click.option("--pr", "--pr-number", "pr_number_opt", type=int, help="The PR number to check merge conflicts for.")
385
+ @click.option("--base", default=None, help="Base branch (defaults to configured base branch)")
329
386
  @click.pass_context
330
- def merge_conflicts(ctx, pr_number, base):
387
+ def merge_conflicts(ctx, pr_number_arg, pr_number_opt, base):
388
+ pr_number = pr_number_arg if pr_number_arg is not None else pr_number_opt
389
+ if pr_number is None:
390
+ err(ctx, "Provide --pr/--pr-number or a positional PR number")
391
+ if base is None:
392
+ base = get_config().base_branch_name
331
393
  orch = ctx.obj["ORCHESTRATOR"]
332
394
  res = orch.get_merge_conflicts(pr_number, base_branch=base)
333
395
  out(ctx, f"Checked merge conflicts for PR #{pr_number}", data=res)
334
396
 
335
397
 
336
398
  @gh.command()
337
- @click.argument("pr_number", type=int)
399
+ @click.argument("pr_number_arg", required=False, type=int)
400
+ @click.option("--pr", "--pr-number", "pr_number_opt", type=int, help="The PR number to sync.")
338
401
  @click.pass_context
339
- def sync_pr(ctx, pr_number):
402
+ def sync_pr(ctx, pr_number_arg, pr_number_opt):
340
403
  """Reliably pull the latest remote PR state to local, overwriting messy rebases."""
404
+ pr_number = pr_number_arg if pr_number_arg is not None else pr_number_opt
405
+ if pr_number is None:
406
+ err(ctx, "Provide --pr/--pr-number or a positional PR number")
341
407
  orch = ctx.obj["ORCHESTRATOR"]
342
408
  res = orch.sync_pr(pr_number)
343
409
  out(ctx, res["message"], data=res)
344
410
 
345
411
 
346
412
  @gh.command()
347
- @click.argument("pr_number", type=int)
413
+ @click.argument("pr_number_arg", required=False, type=int)
414
+ @click.option("--pr", "--pr-number", "pr_number_opt", type=int, help="The PR number to fetch diff for.")
348
415
  @click.option("--repo", help="Target repository override (e.g. owner/repo)")
349
416
  @click.pass_context
350
- def pr_diff(ctx, pr_number, repo):
417
+ def pr_diff(ctx, pr_number_arg, pr_number_opt, repo):
418
+ pr_number = pr_number_arg if pr_number_arg is not None else pr_number_opt
419
+ if pr_number is None:
420
+ err(ctx, "Provide --pr/--pr-number or a positional PR number")
351
421
  orch = ctx.obj["ORCHESTRATOR"]
352
422
  extra_kwargs = {"repo": repo} if repo else {}
353
423
  res = orch.get_pr_diff_shapen(pr_number, **extra_kwargs)
@@ -355,10 +425,14 @@ def pr_diff(ctx, pr_number, repo):
355
425
 
356
426
 
357
427
  @gh.command()
358
- @click.argument("pr_number", type=int)
428
+ @click.argument("pr_number_arg", required=False, type=int)
429
+ @click.option("--pr", "--pr-number", "pr_number_opt", type=int, help="The PR number to view.")
359
430
  @click.option("--repo", help="Target repository override (e.g. owner/repo)")
360
431
  @click.pass_context
361
- def view(ctx, pr_number, repo):
432
+ def view(ctx, pr_number_arg, pr_number_opt, repo):
433
+ pr_number = pr_number_arg if pr_number_arg is not None else pr_number_opt
434
+ if pr_number is None:
435
+ err(ctx, "Provide --pr/--pr-number or a positional PR number")
362
436
  orch = ctx.obj["ORCHESTRATOR"]
363
437
  extra_kwargs = {"repo": repo} if repo else {}
364
438
  pr = orch.github.fetch_pr_details(pr_number, **extra_kwargs)
@@ -402,12 +476,14 @@ def resolve(ctx, file, base, strategy):
402
476
  @gh.command()
403
477
  @click.option(
404
478
  "--check-dirs",
405
- default=os.environ.get("AUDIT_CHECK_DIRS", ",".join(PROJECT_CONFIG.audit_check_dirs)),
479
+ default=None,
406
480
  help="Comma-separated list of directories to audit",
407
481
  )
408
482
  @click.pass_context
409
483
  def audit(ctx, check_dirs):
410
484
  """Run a headless UI audit on the codebase."""
485
+ if check_dirs is None:
486
+ check_dirs = os.environ.get("AUDIT_CHECK_DIRS") or ",".join(get_config().audit_check_dirs)
411
487
  orch = ctx.obj["ORCHESTRATOR"]
412
488
  res = orch.get_audit_results(targets=check_dirs.split(","))
413
489
  out(ctx, "Headless audit complete.", data=res)
@@ -415,7 +491,8 @@ def audit(ctx, check_dirs):
415
491
 
416
492
  @gh.command()
417
493
  @json_option
418
- @click.argument("pr_number", type=int)
494
+ @click.argument("pr_number_arg", required=False, type=int)
495
+ @click.option("--pr", "--pr-number", "pr_number_opt", type=int, help="The PR number to audit.")
419
496
  @click.option("--fetch", is_flag=True)
420
497
  @click.option("--audit", "run_audit", is_flag=True)
421
498
  @click.option("--submit", is_flag=True)
@@ -424,7 +501,10 @@ def audit(ctx, check_dirs):
424
501
  @click.option("--base")
425
502
  @click.option("--event")
426
503
  @click.pass_context
427
- def audit_pr(ctx, pr_number, fetch, run_audit, submit, cleanup, dry_run, base, event):
504
+ def audit_pr(ctx, pr_number_arg, pr_number_opt, fetch, run_audit, submit, cleanup, dry_run, base, event):
505
+ pr_number = pr_number_arg if pr_number_arg is not None else pr_number_opt
506
+ if pr_number is None:
507
+ err(ctx, "Provide --pr/--pr-number or a positional PR number")
428
508
  orch = ctx.obj["ORCHESTRATOR"]
429
509
  res = orch.audit_pr(
430
510
  pr_number,
@@ -572,7 +652,7 @@ def validate_issue(ctx, issue_number, all_open, post_comments, dry_run, file=Non
572
652
  @click.pass_context
573
653
  def scaffold_issue(ctx, file):
574
654
  """Output a markdown skeleton containing the required headers."""
575
- sections = PROJECT_CONFIG.spec_sections
655
+ sections = get_config().spec_sections
576
656
 
577
657
  output = "# Issue Title\n\n"
578
658
  for section in sections:
@@ -594,12 +674,13 @@ def scaffold_issue(ctx, file):
594
674
  @click.option("--title", required=True)
595
675
  @click.option("--body", required=True)
596
676
  @click.option("--head", required=True)
597
- @click.option("--base", default=PROJECT_CONFIG.base_branch_name)
677
+ @click.option("--base", default=None, help="Base branch")
598
678
  @click.option("--draft", is_flag=True)
599
679
  @click.option("--repo", help="Target repository override")
600
680
  @click.pass_context
601
681
  def create_pr(ctx, title, body, head, base, draft, repo):
602
682
  """Create a new pull request."""
683
+ base = base or get_config().base_branch_name
603
684
  orch = ctx.obj["ORCHESTRATOR"]
604
685
  res = orch.create_pull_request(title, body, head, base, draft=draft, repo=repo)
605
686
  out(ctx, f"✅ Created PR: {res.get('html_url')}", data={"pr": res})
@@ -641,7 +722,7 @@ def _render_conflicts(ctx, conflicts):
641
722
 
642
723
 
643
724
  @gh.command()
644
- @click.option("--pr", required=True, type=int, help="The PR number to resolve conflicts for.")
725
+ @click.option("--pr", "--pr-number", "pr", required=True, type=int, help="The PR number to resolve conflicts for.")
645
726
  @click.option("--allow-unrelated", is_flag=True, help="Allow merging unrelated histories.")
646
727
  @click.option(
647
728
  "--strategy",
@@ -688,7 +769,7 @@ def verify_versions(ctx, diff_input):
688
769
  if not diff_input:
689
770
  # If no input provided, try to get diff against main
690
771
  try:
691
- diff_input = run_command(["git", "diff", PROJECT_CONFIG.base_branch])
772
+ diff_input = run_command(["git", "diff", get_config().base_branch])
692
773
  except Exception as e:
693
774
  _handle_unexpected_error(ctx, "check-diff", e)
694
775
 
@@ -728,7 +809,7 @@ def verify_versions(ctx, diff_input):
728
809
 
729
810
 
730
811
  @gh.command()
731
- @click.option("--pr", type=int, help="PR number to detect conflicts for")
812
+ @click.option("--pr", "--pr-number", "pr", type=int, help="PR number to detect conflicts for")
732
813
  @click.option("--all", "all_prs", is_flag=True, help="Detect conflicts for all open PRs")
733
814
  @click.pass_context
734
815
  def detect_conflicts(ctx, pr, all_prs):
@@ -759,7 +840,7 @@ def parse_comment(ctx, body, author_association):
759
840
 
760
841
 
761
842
  @gh.command()
762
- @click.option("--pr", required=True, type=int, help="The PR number to comment on.")
843
+ @click.option("--pr", "--pr-number", "pr", required=True, type=int, help="The PR number to comment on.")
763
844
  @click.option("--file", type=str, help="Path to the file containing the comment body.")
764
845
  @click.option("--body", type=str, help="Literal comment text.")
765
846
  @click.pass_context
@@ -772,7 +853,7 @@ def post_comment(ctx, pr, file, body):
772
853
 
773
854
 
774
855
  @gh.command(name="read-pr-reviews")
775
- @click.option("--pr-number", required=True, type=int, help="The PR number to fetch top-level reviews for.")
856
+ @click.option("--pr", "--pr-number", "pr_number", required=True, type=int, help="The PR number to fetch top-level reviews for.")
776
857
  @click.option("--repo", help="Target repository override (e.g. owner/repo)")
777
858
  @click.pass_context
778
859
  def read_pr_reviews(ctx, pr_number, repo):
@@ -786,7 +867,7 @@ def read_pr_reviews(ctx, pr_number, repo):
786
867
 
787
868
 
788
869
  @gh.command(name="list-pr-commits")
789
- @click.option("--pr-number", required=True, type=int, help="The PR number to list commits for.")
870
+ @click.option("--pr", "--pr-number", "pr_number", required=True, type=int, help="The PR number to list commits for.")
790
871
  @click.option("--repo", help="Target repository override (e.g. owner/repo)")
791
872
  @click.pass_context
792
873
  def list_pr_commits(ctx, pr_number, repo):
@@ -809,7 +890,7 @@ def list_pr_commits(ctx, pr_number, repo):
809
890
 
810
891
 
811
892
  @gh.command(name="read-pr-comments")
812
- @click.option("--pr-number", required=True, type=int, help="The PR number to fetch comments for.")
893
+ @click.option("--pr", "--pr-number", "pr_number", required=True, type=int, help="The PR number to fetch comments for.")
813
894
  @click.pass_context
814
895
  def read_pr_comments(ctx, pr_number):
815
896
  """Fetch and display standard and review comments for a PR."""
@@ -899,7 +980,7 @@ def audit_gate(ctx):
899
980
 
900
981
 
901
982
  @gh.command()
902
- @click.option("--pr", required=True, type=int)
983
+ @click.option("--pr", "--pr-number", "pr", required=True, type=int, help="The PR number.")
903
984
  @click.option("--status", required=True)
904
985
  @click.option("--auditor", required=True)
905
986
  @click.option("--dry-run/--execute", default=True)
@@ -1041,10 +1122,11 @@ def summary_report(ctx):
1041
1122
 
1042
1123
 
1043
1124
  @cli.command(name="preflight")
1044
- @click.option("--base", default=PROJECT_CONFIG.base_branch_name, help="Base branch for merge simulation")
1125
+ @click.option("--base", default=None, help="Base branch for merge simulation")
1045
1126
  @click.pass_context
1046
1127
  def preflight(ctx, base):
1047
- """Run local preflight checks: td audit, linting, overlap detection, and merge simulation."""
1128
+ """Run local preflight checks: td doctor, typecheck, linting, overlap detection, and merge simulation."""
1129
+ base = base or get_config().base_branch_name
1048
1130
  orch = ctx.obj["ORCHESTRATOR"]
1049
1131
  res = orch.run_preflight(base_branch=base)
1050
1132
  out(ctx, "✅ Preflight check complete.", data=res)
@@ -1304,7 +1386,7 @@ def analyze(ctx, file):
1304
1386
 
1305
1387
 
1306
1388
  @ai.command()
1307
- @click.option("--pr", required=True, type=int)
1389
+ @click.option("--pr", "--pr-number", "pr", required=True, type=int, help="The PR number.")
1308
1390
  @click.option("--command", required=True)
1309
1391
  @click.option("--comment-id")
1310
1392
  @click.pass_context
@@ -1378,7 +1460,7 @@ def sync(ctx, limit):
1378
1460
  out(ctx, "Agent sync complete.", data={"sessions": sessions})
1379
1461
 
1380
1462
  @agent_group.command()
1381
- @click.option("--pr-number", type=int)
1463
+ @click.option("--pr", "--pr-number", "pr_number", type=int, help="The PR number.")
1382
1464
  @click.option("--issue-number", type=int)
1383
1465
  @click.option("--branch")
1384
1466
  @click.option("--api-key")
@@ -1409,7 +1491,7 @@ def fix_ci(ctx, pr_number, issue_number, branch, api_key, dry_run):
1409
1491
  @agent_group.command()
1410
1492
  @click.option("--log")
1411
1493
  @click.option("--file")
1412
- @click.option("--pr", type=int)
1494
+ @click.option("--pr", "--pr-number", "pr", type=int, help="The PR number.")
1413
1495
  @click.pass_context
1414
1496
  def repair_context(ctx, log, file, pr):
1415
1497
  orch = ctx.obj["ORCHESTRATOR"]
@@ -1514,7 +1596,7 @@ def send(ctx, session_ids, message):
1514
1596
 
1515
1597
 
1516
1598
  @agent_group.command(name="run-local")
1517
- @click.option("--pr", "pr_number", required=False, type=int, help="Pull Request number to evaluate.")
1599
+ @click.option("--pr", "--pr-number", "pr_number", required=False, type=int, help="Pull Request number to evaluate.")
1518
1600
  @click.option("--issue", "issue_number", type=int, help="Optional linked Issue number.")
1519
1601
  @click.pass_context
1520
1602
  def run_local(ctx, pr_number, issue_number):
@@ -1549,7 +1631,7 @@ def run_local(ctx, pr_number, issue_number):
1549
1631
 
1550
1632
 
1551
1633
  @agent_group.command(name="plan-review")
1552
- @click.option("--pr", "pr_number", required=True, type=int, help="Pull Request number")
1634
+ @click.option("--pr", "--pr-number", "pr_number", required=True, type=int, help="Pull Request number")
1553
1635
  @click.option("--issue", "issue_number", type=int, help="Issue number")
1554
1636
  @click.pass_context
1555
1637
  def plan_review(ctx, pr_number, issue_number):
@@ -1566,6 +1648,8 @@ def plan_review(ctx, pr_number, issue_number):
1566
1648
  @click.option(
1567
1649
  "--pr",
1568
1650
  "--prs",
1651
+ "--pr-number",
1652
+ "--pr-numbers",
1569
1653
  "pr_numbers",
1570
1654
  required=True,
1571
1655
  type=int,
@@ -1700,7 +1784,7 @@ def context_warm(ctx, force):
1700
1784
  log_info("🧊 Context is stale or missing. Warming up...")
1701
1785
  try:
1702
1786
  # Use dynamic resolution from ProjectConfig for the context builder script
1703
- script_path = PROJECT_CONFIG.context_builder_script
1787
+ script_path = get_config().context_builder_script
1704
1788
  if not os.path.exists(script_path):
1705
1789
  err(ctx, f"Context builder script not found at {script_path}")
1706
1790
 
@@ -1733,7 +1817,7 @@ def main():
1733
1817
  except Exception as e:
1734
1818
  # If we are in JSON mode, we should ideally output JSON error.
1735
1819
  # Detecting JSON mode from sys.argv since click context isn't available here yet if it failed early.
1736
- # Note: {PROJECT_CONFIG.cli_alias} subcommands are JSON by default.
1820
+ # Note: {get_config().cli_alias} subcommands are JSON by default.
1737
1821
  is_json = "--no-json" not in sys.argv
1738
1822
 
1739
1823
  if is_json:
@@ -0,0 +1,33 @@
1
+ import { execSync } from "child_process";
2
+ let cachedDynamicConfig = null;
3
+ export function initializeConfig() {
4
+ if (cachedDynamicConfig !== null) {
5
+ return cachedDynamicConfig;
6
+ }
7
+ try {
8
+ const cwd = process.env.BOOMTICK_REPO_PATH || process.cwd();
9
+ const cmd = `td config view`;
10
+ const output = execSync(cmd, {
11
+ cwd,
12
+ encoding: "utf-8",
13
+ stdio: ["ignore", "pipe", "ignore"],
14
+ });
15
+ cachedDynamicConfig = JSON.parse(output);
16
+ return cachedDynamicConfig;
17
+ }
18
+ catch (e) {
19
+ const message = e instanceof Error ? e.message : String(e);
20
+ const errorPrefix = `CRITICAL: Failed to load dynamic config from Python CLI. Ensure Python 3 is installed and cli is in your PYTHONPATH. Details: ${message}`;
21
+ if (process.env.NODE_ENV === "development" || process.env.CI === "true") {
22
+ throw new Error(errorPrefix);
23
+ }
24
+ else {
25
+ console.warn(errorPrefix);
26
+ }
27
+ cachedDynamicConfig = {};
28
+ }
29
+ return cachedDynamicConfig;
30
+ }
31
+ export function getCachedDynamicConfig() {
32
+ return cachedDynamicConfig;
33
+ }
@@ -0,0 +1,16 @@
1
+ import { execSync } from "child_process";
2
+ export function getGithubToken() {
3
+ if (process.env.GITHUB_TOKEN) {
4
+ return process.env.GITHUB_TOKEN;
5
+ }
6
+ try {
7
+ const token = execSync("gh auth token", { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }).trim();
8
+ if (token) {
9
+ return token;
10
+ }
11
+ }
12
+ catch {
13
+ /* ignore to allow fallback */
14
+ }
15
+ return undefined;
16
+ }
@@ -0,0 +1,28 @@
1
+ import path from "path";
2
+ import fs from "fs";
3
+ import { fileURLToPath } from "url";
4
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
5
+ export function findRepoRoot() {
6
+ if (process.env.BOOMTICK_REPO_PATH) {
7
+ return process.env.BOOMTICK_REPO_PATH;
8
+ }
9
+ let current = process.cwd();
10
+ while (current !== path.parse(current).root) {
11
+ if (fs.existsSync(path.join(current, "project_config.json")) ||
12
+ fs.existsSync(path.join(current, "workspace.json")) ||
13
+ fs.existsSync(path.join(current, ".git"))) {
14
+ return current;
15
+ }
16
+ current = path.dirname(current);
17
+ }
18
+ current = __dirname;
19
+ while (current !== path.parse(current).root) {
20
+ if (fs.existsSync(path.join(current, "project_config.json")) ||
21
+ fs.existsSync(path.join(current, "workspace.json")) ||
22
+ fs.existsSync(path.join(current, ".git"))) {
23
+ return current;
24
+ }
25
+ current = path.dirname(current);
26
+ }
27
+ return path.resolve(__dirname, "../../../../");
28
+ }