boomtick-cli 0.15.0__tar.gz → 0.15.2__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.
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/PKG-INFO +1 -1
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/boomtick_cli.egg-info/PKG-INFO +1 -1
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/boomtick_cli.egg-info/SOURCES.txt +6 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/cli-schema.json +399 -5
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/cli.py +24 -1
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/git.js +78 -6
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/git.test.js +34 -1
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/mcp/definitions.js +60 -12
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/mcp/server.js +21 -9
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/mcp/server.test.js +38 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/contract.js +398 -11
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.get_merge_conflict_files.js +10 -2
- boomtick_cli-0.15.2/dev_tools/dist/tools/jules/list-sessions.js +11 -0
- boomtick_cli-0.15.2/dev_tools/dist/tools/jules/list-sessions.test.js +55 -0
- boomtick_cli-0.15.2/dev_tools/dist/tools/repo.create_branch.js +35 -0
- boomtick_cli-0.15.2/dev_tools/dist/tools/repo.create_branch.test.js +78 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.create_repair_branch.js +26 -9
- boomtick_cli-0.15.2/dev_tools/dist/tools/repo.get_changed_files.js +18 -0
- boomtick_cli-0.15.2/dev_tools/dist/tools/repo.get_context_status.js +77 -0
- boomtick_cli-0.15.2/dev_tools/dist/tools/repo.get_context_status.test.js +17 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.read_agent_context.js +39 -25
- boomtick_cli-0.15.2/dev_tools/dist/tools/repo.read_agent_contract.js +19 -0
- boomtick_cli-0.15.2/dev_tools/dist/tools/repo.read_agent_contract.test.js +18 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/models/__init__.py +53 -1
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/orchestrator.py +120 -43
- boomtick_cli-0.15.2/dev_tools/resources/__pycache__/__init__.cpython-312.pyc +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/resources/__pycache__/build-repo-context.cpython-312.pyc +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/services/jules.py +9 -3
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/pyproject.toml +1 -1
- boomtick_cli-0.15.2/tests/test_agent_suggest_fallback.py +67 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_code_intelligence.py +25 -0
- boomtick_cli-0.15.0/dev_tools/dist/tools/jules/list-sessions.js +0 -12
- boomtick_cli-0.15.0/dev_tools/dist/tools/repo.create_branch.js +0 -21
- boomtick_cli-0.15.0/dev_tools/dist/tools/repo.create_branch.test.js +0 -42
- boomtick_cli-0.15.0/dev_tools/dist/tools/repo.get_changed_files.js +0 -10
- boomtick_cli-0.15.0/dev_tools/resources/__pycache__/__init__.cpython-312.pyc +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/MANIFEST.in +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/README.md +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/boomtick_cli.egg-info/dependency_links.txt +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/boomtick_cli.egg-info/entry_points.txt +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/boomtick_cli.egg-info/requires.txt +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/boomtick_cli.egg-info/top_level.txt +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/__init__.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/config.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/constants.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/daemon.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/config/dynamic.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/config/github.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/config/repo.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/config.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/config.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/evals/run-evals.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/http.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/index.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/error_utils.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/error_utils.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/param_utils.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/param_utils.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/result.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/result.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/shell.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/shell.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/lib/test-utils.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/mcp/http.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/mcp/http.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/mcp/schemas.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/mcp/tools.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.checkout_branch.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.comment_triage_summary.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.create_issue.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.create_issue.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.create_pull_request.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.create_pull_request.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.get_pr.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.get_pr_commits.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.get_pr_diff.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.get_pr_reviews.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.get_pr_reviews.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.issue_comment.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.issue_update.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.issue_view.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.open_replacement_pr.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.search_open_prs.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/github.search_open_prs.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/cancel-session.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/cli.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/create-session.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/create-session.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/get-messages.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/get-messages.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/get-pr.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/get-pr.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/get-session.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/send-message.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/send-message.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/session.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/shared.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/shared.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/trigger-feedback.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/jules/trigger-feedback.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.check_jules_status.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.check_jules_status.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.commit_patch.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.get_command_schema.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.get_package_scripts.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.get_package_scripts.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.get_workflow_runs.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.logs.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.multi_exec.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.multi_exec.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.read_agent_context.test.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.read_ci_logs.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/repo.run_tests.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/dist/tools/types.js +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/get_ai_context.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/handlers/__init__.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/handlers/command_handler.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/handlers/mcp_installer.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/handlers/workflow_installer.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/models/base.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/models/contracts.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/multi_repo.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/pr_overlap.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/resources/__init__.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/resources/build-repo-context.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/resources/prompt_constants.json +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/resources/review_template.md +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/resources/ux-audit.config.json +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/resources/visual_guidelines.json +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/review_read_pass.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/schema_gen.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/schema_utils.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/services/__init__.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/services/ast_audit.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/services/context_builder.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/services/dependency_graph.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/services/github.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/services/repair_service.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/services/vector_store.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/td_cli.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/utils/__init__.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/utils/concurrency.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/utils/git.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/ux_report.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/verify_infra.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/verify_versions.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/version_utils.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/workflows/__init__.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/workflows/context.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/workflows/graph.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/workflows/node.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/workflows/nodes.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/dev_tools/workflows/runner.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/setup.cfg +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_agent_dispatch.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_ast_audit.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_build_repo_context.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_buildx_compliance.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_cli_pr_options.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_concurrency.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_config.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_dependency_graph.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_detect_conflicts.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_doctor.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_fail_fast.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_github_diff_parser.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_github_no_gh.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_github_parser.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_install_workflows.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_issue_validation_local.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_issue_view.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_jules_batch_send.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_jules_feedback.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_labels.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_latency_mitigation.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_mcp_installer.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_multi_repo.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_opentelemetry_check.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_orchestrator_aggregation.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_orchestrator_heuristics.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_parse_comment.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_plan_issue_audit.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_pr_overlap.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_review_template_validation.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_schema_utils.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_search_issues.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_verify_ci_metrics.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_verify_scope.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_workflow_audit.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_workflow_installer.py +0 -0
- {boomtick_cli-0.15.0 → boomtick_cli-0.15.2}/tests/test_workflow_orchestration.py +0 -0
|
@@ -78,6 +78,8 @@ dev_tools/dist/tools/repo.create_branch.test.js
|
|
|
78
78
|
dev_tools/dist/tools/repo.create_repair_branch.js
|
|
79
79
|
dev_tools/dist/tools/repo.get_changed_files.js
|
|
80
80
|
dev_tools/dist/tools/repo.get_command_schema.js
|
|
81
|
+
dev_tools/dist/tools/repo.get_context_status.js
|
|
82
|
+
dev_tools/dist/tools/repo.get_context_status.test.js
|
|
81
83
|
dev_tools/dist/tools/repo.get_package_scripts.js
|
|
82
84
|
dev_tools/dist/tools/repo.get_package_scripts.test.js
|
|
83
85
|
dev_tools/dist/tools/repo.get_workflow_runs.js
|
|
@@ -86,6 +88,8 @@ dev_tools/dist/tools/repo.multi_exec.js
|
|
|
86
88
|
dev_tools/dist/tools/repo.multi_exec.test.js
|
|
87
89
|
dev_tools/dist/tools/repo.read_agent_context.js
|
|
88
90
|
dev_tools/dist/tools/repo.read_agent_context.test.js
|
|
91
|
+
dev_tools/dist/tools/repo.read_agent_contract.js
|
|
92
|
+
dev_tools/dist/tools/repo.read_agent_contract.test.js
|
|
89
93
|
dev_tools/dist/tools/repo.read_ci_logs.js
|
|
90
94
|
dev_tools/dist/tools/repo.run_tests.js
|
|
91
95
|
dev_tools/dist/tools/types.js
|
|
@@ -99,6 +103,7 @@ dev_tools/dist/tools/jules/get-pr.js
|
|
|
99
103
|
dev_tools/dist/tools/jules/get-pr.test.js
|
|
100
104
|
dev_tools/dist/tools/jules/get-session.js
|
|
101
105
|
dev_tools/dist/tools/jules/list-sessions.js
|
|
106
|
+
dev_tools/dist/tools/jules/list-sessions.test.js
|
|
102
107
|
dev_tools/dist/tools/jules/send-message.js
|
|
103
108
|
dev_tools/dist/tools/jules/send-message.test.js
|
|
104
109
|
dev_tools/dist/tools/jules/session.js
|
|
@@ -139,6 +144,7 @@ dev_tools/workflows/node.py
|
|
|
139
144
|
dev_tools/workflows/nodes.py
|
|
140
145
|
dev_tools/workflows/runner.py
|
|
141
146
|
tests/test_agent_dispatch.py
|
|
147
|
+
tests/test_agent_suggest_fallback.py
|
|
142
148
|
tests/test_ast_audit.py
|
|
143
149
|
tests/test_build_repo_context.py
|
|
144
150
|
tests/test_buildx_compliance.py
|
|
@@ -358,6 +358,17 @@
|
|
|
358
358
|
}
|
|
359
359
|
]
|
|
360
360
|
},
|
|
361
|
+
"agent suggest": {
|
|
362
|
+
"description": "Evaluate repository state and suggest next actions using deterministic fast-path.",
|
|
363
|
+
"exact_usage": "td agent suggest [--repo <REPO>]",
|
|
364
|
+
"optional_flags": [
|
|
365
|
+
{
|
|
366
|
+
"flag": "--repo",
|
|
367
|
+
"type": "string",
|
|
368
|
+
"description": "Target GitHub repository (e.g. owner/repo)"
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
},
|
|
361
372
|
"agent sync": {
|
|
362
373
|
"description": "Sync active agent sessions.",
|
|
363
374
|
"exact_usage": "td agent sync [--limit <LIMIT>]",
|
|
@@ -2989,6 +3000,45 @@
|
|
|
2989
3000
|
"description": "Branch to branch off from",
|
|
2990
3001
|
"title": "Basebranch",
|
|
2991
3002
|
"type": "string"
|
|
3003
|
+
},
|
|
3004
|
+
"repo": {
|
|
3005
|
+
"anyOf": [
|
|
3006
|
+
{
|
|
3007
|
+
"type": "string"
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
"type": "null"
|
|
3011
|
+
}
|
|
3012
|
+
],
|
|
3013
|
+
"default": null,
|
|
3014
|
+
"description": "Target repository override (e.g. org/repo or repo).",
|
|
3015
|
+
"title": "Repo"
|
|
3016
|
+
},
|
|
3017
|
+
"path": {
|
|
3018
|
+
"anyOf": [
|
|
3019
|
+
{
|
|
3020
|
+
"type": "string"
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
"type": "null"
|
|
3024
|
+
}
|
|
3025
|
+
],
|
|
3026
|
+
"default": null,
|
|
3027
|
+
"description": "Local filesystem path to target repository root.",
|
|
3028
|
+
"title": "Path"
|
|
3029
|
+
},
|
|
3030
|
+
"repoPath": {
|
|
3031
|
+
"anyOf": [
|
|
3032
|
+
{
|
|
3033
|
+
"type": "string"
|
|
3034
|
+
},
|
|
3035
|
+
{
|
|
3036
|
+
"type": "null"
|
|
3037
|
+
}
|
|
3038
|
+
],
|
|
3039
|
+
"default": null,
|
|
3040
|
+
"description": "Alias for path to target repository root.",
|
|
3041
|
+
"title": "Repopath"
|
|
2992
3042
|
}
|
|
2993
3043
|
},
|
|
2994
3044
|
"required": [
|
|
@@ -3019,6 +3069,30 @@
|
|
|
3019
3069
|
],
|
|
3020
3070
|
"default": null,
|
|
3021
3071
|
"title": "Basebranch"
|
|
3072
|
+
},
|
|
3073
|
+
"repo": {
|
|
3074
|
+
"anyOf": [
|
|
3075
|
+
{
|
|
3076
|
+
"type": "string"
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
"type": "null"
|
|
3080
|
+
}
|
|
3081
|
+
],
|
|
3082
|
+
"default": null,
|
|
3083
|
+
"title": "Repo"
|
|
3084
|
+
},
|
|
3085
|
+
"path": {
|
|
3086
|
+
"anyOf": [
|
|
3087
|
+
{
|
|
3088
|
+
"type": "string"
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
"type": "null"
|
|
3092
|
+
}
|
|
3093
|
+
],
|
|
3094
|
+
"default": null,
|
|
3095
|
+
"title": "Path"
|
|
3022
3096
|
}
|
|
3023
3097
|
},
|
|
3024
3098
|
"required": [
|
|
@@ -3303,6 +3377,45 @@
|
|
|
3303
3377
|
"description": "Safety gate: Must be true to perform branch creation and worktree setup.",
|
|
3304
3378
|
"title": "Writemode",
|
|
3305
3379
|
"type": "boolean"
|
|
3380
|
+
},
|
|
3381
|
+
"repo": {
|
|
3382
|
+
"anyOf": [
|
|
3383
|
+
{
|
|
3384
|
+
"type": "string"
|
|
3385
|
+
},
|
|
3386
|
+
{
|
|
3387
|
+
"type": "null"
|
|
3388
|
+
}
|
|
3389
|
+
],
|
|
3390
|
+
"default": null,
|
|
3391
|
+
"description": "Target repository override (e.g. org/repo or repo).",
|
|
3392
|
+
"title": "Repo"
|
|
3393
|
+
},
|
|
3394
|
+
"path": {
|
|
3395
|
+
"anyOf": [
|
|
3396
|
+
{
|
|
3397
|
+
"type": "string"
|
|
3398
|
+
},
|
|
3399
|
+
{
|
|
3400
|
+
"type": "null"
|
|
3401
|
+
}
|
|
3402
|
+
],
|
|
3403
|
+
"default": null,
|
|
3404
|
+
"description": "Local filesystem path to target repository root.",
|
|
3405
|
+
"title": "Path"
|
|
3406
|
+
},
|
|
3407
|
+
"repoPath": {
|
|
3408
|
+
"anyOf": [
|
|
3409
|
+
{
|
|
3410
|
+
"type": "string"
|
|
3411
|
+
},
|
|
3412
|
+
{
|
|
3413
|
+
"type": "null"
|
|
3414
|
+
}
|
|
3415
|
+
],
|
|
3416
|
+
"default": null,
|
|
3417
|
+
"description": "Alias for path to target repository root.",
|
|
3418
|
+
"title": "Repopath"
|
|
3306
3419
|
}
|
|
3307
3420
|
},
|
|
3308
3421
|
"required": [
|
|
@@ -3333,6 +3446,30 @@
|
|
|
3333
3446
|
"worktreePath": {
|
|
3334
3447
|
"title": "Worktreepath",
|
|
3335
3448
|
"type": "string"
|
|
3449
|
+
},
|
|
3450
|
+
"repo": {
|
|
3451
|
+
"anyOf": [
|
|
3452
|
+
{
|
|
3453
|
+
"type": "string"
|
|
3454
|
+
},
|
|
3455
|
+
{
|
|
3456
|
+
"type": "null"
|
|
3457
|
+
}
|
|
3458
|
+
],
|
|
3459
|
+
"default": null,
|
|
3460
|
+
"title": "Repo"
|
|
3461
|
+
},
|
|
3462
|
+
"path": {
|
|
3463
|
+
"anyOf": [
|
|
3464
|
+
{
|
|
3465
|
+
"type": "string"
|
|
3466
|
+
},
|
|
3467
|
+
{
|
|
3468
|
+
"type": "null"
|
|
3469
|
+
}
|
|
3470
|
+
],
|
|
3471
|
+
"default": null,
|
|
3472
|
+
"title": "Path"
|
|
3336
3473
|
}
|
|
3337
3474
|
},
|
|
3338
3475
|
"required": [
|
|
@@ -3358,6 +3495,45 @@
|
|
|
3358
3495
|
"description": "The head ref to compare to (default: 'HEAD').",
|
|
3359
3496
|
"title": "Head",
|
|
3360
3497
|
"type": "string"
|
|
3498
|
+
},
|
|
3499
|
+
"repo": {
|
|
3500
|
+
"anyOf": [
|
|
3501
|
+
{
|
|
3502
|
+
"type": "string"
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
"type": "null"
|
|
3506
|
+
}
|
|
3507
|
+
],
|
|
3508
|
+
"default": null,
|
|
3509
|
+
"description": "Target GitHub repository override.",
|
|
3510
|
+
"title": "Repo"
|
|
3511
|
+
},
|
|
3512
|
+
"path": {
|
|
3513
|
+
"anyOf": [
|
|
3514
|
+
{
|
|
3515
|
+
"type": "string"
|
|
3516
|
+
},
|
|
3517
|
+
{
|
|
3518
|
+
"type": "null"
|
|
3519
|
+
}
|
|
3520
|
+
],
|
|
3521
|
+
"default": null,
|
|
3522
|
+
"description": "Local filesystem path to target repository root.",
|
|
3523
|
+
"title": "Path"
|
|
3524
|
+
},
|
|
3525
|
+
"repoPath": {
|
|
3526
|
+
"anyOf": [
|
|
3527
|
+
{
|
|
3528
|
+
"type": "string"
|
|
3529
|
+
},
|
|
3530
|
+
{
|
|
3531
|
+
"type": "null"
|
|
3532
|
+
}
|
|
3533
|
+
],
|
|
3534
|
+
"default": null,
|
|
3535
|
+
"description": "Alias for path to target repository root.",
|
|
3536
|
+
"title": "Repopath"
|
|
3361
3537
|
}
|
|
3362
3538
|
},
|
|
3363
3539
|
"title": "GetChangedFilesInput",
|
|
@@ -3421,23 +3597,159 @@
|
|
|
3421
3597
|
"title": "GetCommandSchemaResponse",
|
|
3422
3598
|
"type": "object"
|
|
3423
3599
|
},
|
|
3600
|
+
"GetContextStatusInput": {
|
|
3601
|
+
"properties": {
|
|
3602
|
+
"path": {
|
|
3603
|
+
"anyOf": [
|
|
3604
|
+
{
|
|
3605
|
+
"type": "string"
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
"type": "null"
|
|
3609
|
+
}
|
|
3610
|
+
],
|
|
3611
|
+
"default": null,
|
|
3612
|
+
"description": "Local filesystem path to target repository root",
|
|
3613
|
+
"title": "Path"
|
|
3614
|
+
},
|
|
3615
|
+
"repoPath": {
|
|
3616
|
+
"anyOf": [
|
|
3617
|
+
{
|
|
3618
|
+
"type": "string"
|
|
3619
|
+
},
|
|
3620
|
+
{
|
|
3621
|
+
"type": "null"
|
|
3622
|
+
}
|
|
3623
|
+
],
|
|
3624
|
+
"default": null,
|
|
3625
|
+
"description": "Alias for path (filesystem path to target workspace repository root).",
|
|
3626
|
+
"title": "Repopath"
|
|
3627
|
+
},
|
|
3628
|
+
"repo": {
|
|
3629
|
+
"anyOf": [
|
|
3630
|
+
{
|
|
3631
|
+
"type": "string"
|
|
3632
|
+
},
|
|
3633
|
+
{
|
|
3634
|
+
"type": "null"
|
|
3635
|
+
}
|
|
3636
|
+
],
|
|
3637
|
+
"default": null,
|
|
3638
|
+
"description": "Target GitHub repository string (e.g. org/repo).",
|
|
3639
|
+
"title": "Repo"
|
|
3640
|
+
}
|
|
3641
|
+
},
|
|
3642
|
+
"title": "GetContextStatusInput",
|
|
3643
|
+
"type": "object"
|
|
3644
|
+
},
|
|
3645
|
+
"GetContextStatusResponse": {
|
|
3646
|
+
"properties": {
|
|
3647
|
+
"warm": {
|
|
3648
|
+
"description": "Whether the .agent-context.json index is warm and up-to-date.",
|
|
3649
|
+
"title": "Warm",
|
|
3650
|
+
"type": "boolean"
|
|
3651
|
+
},
|
|
3652
|
+
"lastWarmedAt": {
|
|
3653
|
+
"anyOf": [
|
|
3654
|
+
{
|
|
3655
|
+
"type": "string"
|
|
3656
|
+
},
|
|
3657
|
+
{
|
|
3658
|
+
"type": "null"
|
|
3659
|
+
}
|
|
3660
|
+
],
|
|
3661
|
+
"default": null,
|
|
3662
|
+
"description": "ISO timestamp when .agent-context.json was last updated or created.",
|
|
3663
|
+
"title": "Lastwarmedat"
|
|
3664
|
+
},
|
|
3665
|
+
"path": {
|
|
3666
|
+
"description": "Path to .agent-context.json.",
|
|
3667
|
+
"title": "Path",
|
|
3668
|
+
"type": "string"
|
|
3669
|
+
},
|
|
3670
|
+
"staleFiles": {
|
|
3671
|
+
"description": "List of files that are newer than .agent-context.json or stale.",
|
|
3672
|
+
"items": {
|
|
3673
|
+
"type": "string"
|
|
3674
|
+
},
|
|
3675
|
+
"title": "Stalefiles",
|
|
3676
|
+
"type": "array"
|
|
3677
|
+
}
|
|
3678
|
+
},
|
|
3679
|
+
"required": [
|
|
3680
|
+
"warm",
|
|
3681
|
+
"path"
|
|
3682
|
+
],
|
|
3683
|
+
"title": "GetContextStatusResponse",
|
|
3684
|
+
"type": "object"
|
|
3685
|
+
},
|
|
3424
3686
|
"GetMergeConflictFilesInput": {
|
|
3425
3687
|
"properties": {
|
|
3426
3688
|
"prNumber": {
|
|
3689
|
+
"anyOf": [
|
|
3690
|
+
{
|
|
3691
|
+
"type": "integer"
|
|
3692
|
+
},
|
|
3693
|
+
{
|
|
3694
|
+
"type": "null"
|
|
3695
|
+
}
|
|
3696
|
+
],
|
|
3697
|
+
"default": null,
|
|
3427
3698
|
"description": "The number of the pull request to check for conflicts.",
|
|
3428
|
-
"title": "Prnumber"
|
|
3429
|
-
"type": "integer"
|
|
3699
|
+
"title": "Prnumber"
|
|
3430
3700
|
},
|
|
3431
3701
|
"baseBranch": {
|
|
3432
3702
|
"default": "main",
|
|
3433
3703
|
"description": "The base branch to check against (default: 'main').",
|
|
3434
3704
|
"title": "Basebranch",
|
|
3435
3705
|
"type": "string"
|
|
3706
|
+
},
|
|
3707
|
+
"headRef": {
|
|
3708
|
+
"default": "HEAD",
|
|
3709
|
+
"description": "The head ref or branch to check.",
|
|
3710
|
+
"title": "Headref",
|
|
3711
|
+
"type": "string"
|
|
3712
|
+
},
|
|
3713
|
+
"repo": {
|
|
3714
|
+
"anyOf": [
|
|
3715
|
+
{
|
|
3716
|
+
"type": "string"
|
|
3717
|
+
},
|
|
3718
|
+
{
|
|
3719
|
+
"type": "null"
|
|
3720
|
+
}
|
|
3721
|
+
],
|
|
3722
|
+
"default": null,
|
|
3723
|
+
"description": "Target GitHub repository override.",
|
|
3724
|
+
"title": "Repo"
|
|
3725
|
+
},
|
|
3726
|
+
"path": {
|
|
3727
|
+
"anyOf": [
|
|
3728
|
+
{
|
|
3729
|
+
"type": "string"
|
|
3730
|
+
},
|
|
3731
|
+
{
|
|
3732
|
+
"type": "null"
|
|
3733
|
+
}
|
|
3734
|
+
],
|
|
3735
|
+
"default": null,
|
|
3736
|
+
"description": "Local filesystem path to target repository root.",
|
|
3737
|
+
"title": "Path"
|
|
3738
|
+
},
|
|
3739
|
+
"repoPath": {
|
|
3740
|
+
"anyOf": [
|
|
3741
|
+
{
|
|
3742
|
+
"type": "string"
|
|
3743
|
+
},
|
|
3744
|
+
{
|
|
3745
|
+
"type": "null"
|
|
3746
|
+
}
|
|
3747
|
+
],
|
|
3748
|
+
"default": null,
|
|
3749
|
+
"description": "Alias for path to target repository root.",
|
|
3750
|
+
"title": "Repopath"
|
|
3436
3751
|
}
|
|
3437
3752
|
},
|
|
3438
|
-
"required": [
|
|
3439
|
-
"prNumber"
|
|
3440
|
-
],
|
|
3441
3753
|
"title": "GetMergeConflictFilesInput",
|
|
3442
3754
|
"type": "object"
|
|
3443
3755
|
},
|
|
@@ -4833,6 +5145,88 @@
|
|
|
4833
5145
|
"title": "ReadAgentContextResponse",
|
|
4834
5146
|
"type": "object"
|
|
4835
5147
|
},
|
|
5148
|
+
"ReadAgentContractInput": {
|
|
5149
|
+
"properties": {
|
|
5150
|
+
"path": {
|
|
5151
|
+
"anyOf": [
|
|
5152
|
+
{
|
|
5153
|
+
"type": "string"
|
|
5154
|
+
},
|
|
5155
|
+
{
|
|
5156
|
+
"type": "null"
|
|
5157
|
+
}
|
|
5158
|
+
],
|
|
5159
|
+
"default": null,
|
|
5160
|
+
"description": "Local filesystem path to target repository root",
|
|
5161
|
+
"title": "Path"
|
|
5162
|
+
},
|
|
5163
|
+
"repoPath": {
|
|
5164
|
+
"anyOf": [
|
|
5165
|
+
{
|
|
5166
|
+
"type": "string"
|
|
5167
|
+
},
|
|
5168
|
+
{
|
|
5169
|
+
"type": "null"
|
|
5170
|
+
}
|
|
5171
|
+
],
|
|
5172
|
+
"default": null,
|
|
5173
|
+
"description": "Alias for path (filesystem path to target workspace repository root).",
|
|
5174
|
+
"title": "Repopath"
|
|
5175
|
+
},
|
|
5176
|
+
"repo": {
|
|
5177
|
+
"anyOf": [
|
|
5178
|
+
{
|
|
5179
|
+
"type": "string"
|
|
5180
|
+
},
|
|
5181
|
+
{
|
|
5182
|
+
"type": "null"
|
|
5183
|
+
}
|
|
5184
|
+
],
|
|
5185
|
+
"default": null,
|
|
5186
|
+
"description": "Target GitHub repository string (e.g. org/repo).",
|
|
5187
|
+
"title": "Repo"
|
|
5188
|
+
}
|
|
5189
|
+
},
|
|
5190
|
+
"title": "ReadAgentContractInput",
|
|
5191
|
+
"type": "object"
|
|
5192
|
+
},
|
|
5193
|
+
"ReadAgentContractResponse": {
|
|
5194
|
+
"properties": {
|
|
5195
|
+
"status": {
|
|
5196
|
+
"default": "success",
|
|
5197
|
+
"title": "Status",
|
|
5198
|
+
"type": "string"
|
|
5199
|
+
},
|
|
5200
|
+
"content": {
|
|
5201
|
+
"anyOf": [
|
|
5202
|
+
{
|
|
5203
|
+
"type": "string"
|
|
5204
|
+
},
|
|
5205
|
+
{
|
|
5206
|
+
"type": "null"
|
|
5207
|
+
}
|
|
5208
|
+
],
|
|
5209
|
+
"default": null,
|
|
5210
|
+
"description": "The content of the agent contract specification file.",
|
|
5211
|
+
"title": "Content"
|
|
5212
|
+
},
|
|
5213
|
+
"path": {
|
|
5214
|
+
"anyOf": [
|
|
5215
|
+
{
|
|
5216
|
+
"type": "string"
|
|
5217
|
+
},
|
|
5218
|
+
{
|
|
5219
|
+
"type": "null"
|
|
5220
|
+
}
|
|
5221
|
+
],
|
|
5222
|
+
"default": null,
|
|
5223
|
+
"description": "Path to the agent contract file.",
|
|
5224
|
+
"title": "Path"
|
|
5225
|
+
}
|
|
5226
|
+
},
|
|
5227
|
+
"title": "ReadAgentContractResponse",
|
|
5228
|
+
"type": "object"
|
|
5229
|
+
},
|
|
4836
5230
|
"ReadCiLogsInput": {
|
|
4837
5231
|
"properties": {
|
|
4838
5232
|
"prNumber": {
|
|
@@ -1450,7 +1450,15 @@ def dispatch(ctx, branch, task, title, repo):
|
|
|
1450
1450
|
def sync(ctx, limit):
|
|
1451
1451
|
"""Sync active agent sessions."""
|
|
1452
1452
|
orch = ctx.obj["ORCHESTRATOR"]
|
|
1453
|
-
|
|
1453
|
+
try:
|
|
1454
|
+
sessions = orch.jules.list_sessions(pageSize=limit)
|
|
1455
|
+
except ValueError as e:
|
|
1456
|
+
if "JULES_API_KEY" in str(e):
|
|
1457
|
+
if not ctx.obj["JSON"]:
|
|
1458
|
+
click.echo("⚠️ Warning: JULES_API_KEY unset")
|
|
1459
|
+
out(ctx, "Agent sync complete (JULES_API_KEY unset).", data={"sessions": [], "warning": "JULES_API_KEY unset"})
|
|
1460
|
+
return
|
|
1461
|
+
raise e
|
|
1454
1462
|
|
|
1455
1463
|
if not ctx.obj["JSON"]:
|
|
1456
1464
|
if not sessions:
|
|
@@ -1729,6 +1737,21 @@ def install_workflows(ctx, target, dry_run, force):
|
|
|
1729
1737
|
_handle_unexpected_error(ctx, "agent install-workflows", e)
|
|
1730
1738
|
|
|
1731
1739
|
|
|
1740
|
+
@agent_group.command(name="suggest")
|
|
1741
|
+
@click.option("--repo", "-r", help="Target GitHub repository (e.g. owner/repo)")
|
|
1742
|
+
@click.pass_context
|
|
1743
|
+
def suggest(ctx, repo):
|
|
1744
|
+
"""Evaluate repository state and suggest next actions using deterministic fast-path."""
|
|
1745
|
+
orch = ctx.obj["ORCHESTRATOR"]
|
|
1746
|
+
try:
|
|
1747
|
+
res = orch.suggest_next_action(repo=repo)
|
|
1748
|
+
if not ctx.obj.get("JSON", False):
|
|
1749
|
+
click.echo(res.get("suggestion"))
|
|
1750
|
+
out(ctx, res.get("suggestion", ""), data=res)
|
|
1751
|
+
except Exception as e:
|
|
1752
|
+
_handle_unexpected_error(ctx, "agent suggest", e)
|
|
1753
|
+
|
|
1754
|
+
|
|
1732
1755
|
@agent_group.command(name="run-feedback-check")
|
|
1733
1756
|
@limit_option(help_text="Limit the number of active sessions to check")
|
|
1734
1757
|
@click.pass_context
|
|
@@ -2,6 +2,7 @@ import { runCommand } from "./shell.js";
|
|
|
2
2
|
import { config } from "../config.js";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import fs from "fs/promises";
|
|
5
|
+
import * as syncFs from "fs";
|
|
5
6
|
import { execSync } from "child_process";
|
|
6
7
|
const repoCache = new Map();
|
|
7
8
|
export function resolveRepo(explicitRepo, cwd) {
|
|
@@ -31,6 +32,75 @@ export function resolveRepo(explicitRepo, cwd) {
|
|
|
31
32
|
repoCache.set(targetCwd, fallback);
|
|
32
33
|
return fallback;
|
|
33
34
|
}
|
|
35
|
+
export function resolveRepoPath(options = {}) {
|
|
36
|
+
// 1. Explicit path parameter has highest precedence
|
|
37
|
+
if (options.path && options.path.trim().length > 0) {
|
|
38
|
+
return path.resolve(options.path.trim());
|
|
39
|
+
}
|
|
40
|
+
// 2. repoPath alias parameter
|
|
41
|
+
if (options.repoPath && options.repoPath.trim().length > 0) {
|
|
42
|
+
return path.resolve(options.repoPath.trim());
|
|
43
|
+
}
|
|
44
|
+
// 3. Repository name override (e.g. "arii/tech-dancer" or "tech-dancer")
|
|
45
|
+
if (options.repo && options.repo.trim().length > 0) {
|
|
46
|
+
const rawRepo = options.repo.trim();
|
|
47
|
+
const repoName = rawRepo.includes("/") ? rawRepo.split("/")[1] : rawRepo;
|
|
48
|
+
// First check project_config.json ecosystem_repos if available
|
|
49
|
+
let rootPath = process.cwd();
|
|
50
|
+
try {
|
|
51
|
+
if (options.cwd && options.cwd.trim().length > 0) {
|
|
52
|
+
rootPath = options.cwd.trim();
|
|
53
|
+
}
|
|
54
|
+
else if (config.repoPath) {
|
|
55
|
+
rootPath = config.repoPath;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
rootPath = process.cwd();
|
|
60
|
+
}
|
|
61
|
+
const projectConfigPath = path.join(rootPath, "project_config.json");
|
|
62
|
+
if (syncFs.existsSync(projectConfigPath)) {
|
|
63
|
+
try {
|
|
64
|
+
const parsed = JSON.parse(syncFs.readFileSync(projectConfigPath, "utf-8"));
|
|
65
|
+
if (parsed?.ecosystem_repos && typeof parsed.ecosystem_repos === "object") {
|
|
66
|
+
for (const [key, relPath] of Object.entries(parsed.ecosystem_repos)) {
|
|
67
|
+
const keyRepoName = key.includes("/") ? key.split("/")[1] : key;
|
|
68
|
+
if (key === rawRepo || keyRepoName === repoName) {
|
|
69
|
+
return path.resolve(rootPath, relPath);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
// Fallback to directory inspection
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
// Check sibling directory relative to cwd or rootPath
|
|
79
|
+
const candidateDirs = [
|
|
80
|
+
path.resolve(process.cwd(), "..", repoName),
|
|
81
|
+
path.resolve(rootPath, "..", repoName),
|
|
82
|
+
];
|
|
83
|
+
for (const cand of candidateDirs) {
|
|
84
|
+
if (syncFs.existsSync(cand)) {
|
|
85
|
+
return cand;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
// 4. Explicit cwd parameter
|
|
90
|
+
if (options.cwd && options.cwd.trim().length > 0) {
|
|
91
|
+
return path.resolve(options.cwd.trim());
|
|
92
|
+
}
|
|
93
|
+
// 5. Configured repoPath or process.cwd()
|
|
94
|
+
try {
|
|
95
|
+
if (config.repoPath && syncFs.existsSync(config.repoPath)) {
|
|
96
|
+
return config.repoPath;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
catch {
|
|
100
|
+
// Fall back to process.cwd()
|
|
101
|
+
}
|
|
102
|
+
return process.cwd();
|
|
103
|
+
}
|
|
34
104
|
function validatePrNumber(value) {
|
|
35
105
|
const prNumber = Number(value);
|
|
36
106
|
if (!Number.isInteger(prNumber) || prNumber <= 0) {
|
|
@@ -38,26 +108,28 @@ function validatePrNumber(value) {
|
|
|
38
108
|
}
|
|
39
109
|
return prNumber;
|
|
40
110
|
}
|
|
41
|
-
export async function createWorktree(branch, prNumber) {
|
|
111
|
+
export async function createWorktree(branch, prNumber, baseRepoPath) {
|
|
42
112
|
const safePrNumber = validatePrNumber(prNumber);
|
|
43
113
|
const workspaceRoot = "/tmp/boomtick-worktrees";
|
|
44
114
|
// nosemgrep
|
|
45
115
|
const worktreePath = path.join(workspaceRoot, `boomtick-mcp-rescue-${safePrNumber}`);
|
|
116
|
+
const cwdOption = baseRepoPath ? { cwd: baseRepoPath } : undefined;
|
|
46
117
|
// Clean up if exists
|
|
47
118
|
try {
|
|
48
119
|
await fs.rm(worktreePath, { recursive: true, force: true });
|
|
49
|
-
await runCommand("git", ["worktree", "prune"]);
|
|
120
|
+
await runCommand("git", ["worktree", "prune"], cwdOption);
|
|
50
121
|
}
|
|
51
122
|
catch (e) { /* ignore if no previous worktree */ }
|
|
52
|
-
const result = await runCommand("git", ["worktree", "add", "-b", `repair-pr-${prNumber}-${Date.now()}`, worktreePath, branch]);
|
|
123
|
+
const result = await runCommand("git", ["worktree", "add", "-b", `repair-pr-${prNumber}-${Date.now()}`, worktreePath, branch], cwdOption);
|
|
53
124
|
if (result.exitCode !== 0) {
|
|
54
125
|
throw new Error(`Failed to create worktree: ${result.stderr}`);
|
|
55
126
|
}
|
|
56
127
|
return worktreePath;
|
|
57
128
|
}
|
|
58
|
-
export async function removeWorktree(worktreePath) {
|
|
59
|
-
|
|
60
|
-
await runCommand("git", ["worktree", "
|
|
129
|
+
export async function removeWorktree(worktreePath, baseRepoPath) {
|
|
130
|
+
const cwdOption = baseRepoPath ? { cwd: baseRepoPath } : undefined;
|
|
131
|
+
await runCommand("git", ["worktree", "remove", "--force", worktreePath], cwdOption);
|
|
132
|
+
await runCommand("git", ["worktree", "prune"], cwdOption);
|
|
61
133
|
}
|
|
62
134
|
export async function getChangedFiles(base = "main", head = "HEAD", cwd) {
|
|
63
135
|
const result = await runCommand("git", ["diff", "--name-status", "-z", `${base}...${head}`], { cwd });
|