Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions boomtick-pkg/cli/aggregate-prs.sh

This file was deleted.

20 changes: 0 additions & 20 deletions boomtick-pkg/cli/analyze_overlaps.sh

This file was deleted.

4 changes: 2 additions & 2 deletions boomtick-pkg/cli/dev_tools/cli-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@
]
},
"agent dispatch": {
"description": "",
"description": "\nInitialize a Jules session for a specific branch and task.\nNote: Use 'main' branch for PR consolidation tasks to avoid rebasing issues.\n",
"exact_usage": "python3 boomtick-pkg/cli/dev_tools/td_cli.py agent dispatch <BRANCH> <TASK>",
"required_arguments": [
{
Expand Down Expand Up @@ -861,7 +861,7 @@
]
},
"jules dispatch": {
"description": "",
"description": "\nInitialize a Jules session for a specific branch and task.\nNote: Use 'main' branch for PR consolidation tasks to avoid rebasing issues.\n",
"exact_usage": "python3 boomtick-pkg/cli/dev_tools/td_cli.py jules dispatch <BRANCH> <TASK>",
"required_arguments": [
{
Expand Down
54 changes: 18 additions & 36 deletions boomtick-pkg/cli/dev_tools/dev_tools_sdk/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,45 +13,21 @@ class ProjectConfig:
github_token_env: str = "GITHUB_TOKEN"
gh_token_env: str = "GH_TOKEN"
jules_api_url: str | None = None
core_dirs: List[str] = field(default_factory=lambda: ["src/layouts/", "src/components/"])
core_dirs: List[str] = field(default_factory=list)
monolithic_pr_threshold: int = 3
base_branch: str = "origin/main"
max_diff_chars: int = 40000
content_scopes: Dict[str, str] = field(default_factory=lambda: {
"resources": "content/resources/",
"posts": "content/posts/",
"blog": "content/blog/",
"studies": "content/studies/"
})
content_scopes: Dict[str, str] = field(default_factory=dict)
ai_synthesis_model: str = "gpt-4o-mini"
ai_review_model: str = "gpt-4o"
ai_vision_model: str = "gpt-4o"
ui_indicators: List[str] = field(default_factory=lambda: [
"src/components", "src/pages", "src/layouts", "src/index.css", "tailwind"
])
tailwind_indicators: List[str] = field(default_factory=lambda: [
"px-", "py-", "mt-", "flex", "grid", "text-["
])
audit_check_dirs: List[str] = field(default_factory=lambda: [
"src/features", "src/pages", "src/components", "src/layouts", "src/App.tsx"
])
allowed_bots: List[str] = field(default_factory=lambda: [
"github-actions[bot]"
])
ui_indicators: List[str] = field(default_factory=list)
tailwind_indicators: List[str] = field(default_factory=list)
audit_check_dirs: List[str] = field(default_factory=list)
allowed_bots: List[str] = field(default_factory=lambda: ["github-actions[bot]"])
worktree_prefix: str = "bt-repair-"
spec_sections: List[str] = field(default_factory=lambda: [
"Problem Statement",
"Goal",
"Non-Goals",
"Proposed Approach",
"Alternatives Considered",
"Architectural Impact",
"Scope",
"UNDERSTAND THE ISSUE",
"DETERMINE APPROACH",
"SPECIFY SCOPE",
"DEFINITION OF DONE"
])
spec_sections: List[str] = field(default_factory=list)


@property
def base_branch_name(self) -> str:
Expand All @@ -70,8 +46,7 @@ def load_project_config(path: str | Path = "project_config.json") -> ProjectConf
raw = json.loads(p.read_text(encoding="utf-8"))
except (json.JSONDecodeError, IOError):
pass
else:
return ProjectConfig()


def get_list(key: str) -> Optional[List[str]]:
val = raw.get(key)
Expand All @@ -90,8 +65,15 @@ def get_dict(key: str) -> Optional[Dict[str, str]]:
return None

kwargs: Dict[str, Any] = {}
if "github_repo" in raw or "repo_name" in raw:
kwargs["github_repo"] = raw.get("github_repo") or raw.get("repo_name")

# Critical Field Resolution (Fail-Fast Pattern)
github_repo = raw.get("github_repo") or raw.get("repo_name") or os.environ.get("GITHUB_REPOSITORY") or os.environ.get("GH_REPO")
if not github_repo and os.environ.get("CI") == "true":
raise RuntimeError("Configuration Error: 'github_repo' must be defined in project_config.json or environment (GITHUB_REPOSITORY) in CI.")

if github_repo:
kwargs["github_repo"] = github_repo

if "github_token_env" in raw:
kwargs["github_token_env"] = raw["github_token_env"]
if "gh_token_env" in raw:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def main():
print("Generating workflow plan for Aggregate PRs...")

# 1. Environment Validation
env_output = run_command(["bash", "boomtick-pkg/cli/verify.sh"])
env_output = run_command(["td-cli", "doctor"])

# 2. Get Open PRs (Limit 100 per conventions)
prs_output = run_command(["td-cli", "gh", "overlaps", "--limit", "100"])
Expand Down
2 changes: 1 addition & 1 deletion boomtick-pkg/cli/dev_tools/generate_review_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main():
print(f"Generating workflow plan for PR #{pr_number}...")

# 1. Environment Validation
env_output = run_command(["bash", "dev-tools/verify.sh"])
env_output = run_command(["td-cli", "doctor"])

# 2. Issue Validation
issue_output = "No issue number provided."
Expand Down
119 changes: 0 additions & 119 deletions boomtick-pkg/cli/dev_tools/pr_overlap.py

This file was deleted.

Loading
Loading