Skip to content
Merged
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
4 changes: 2 additions & 2 deletions PROTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ gh_cli.py # vendored async `gh` runner: binary resolution (PATH +
# injection (config secret > env), check_gh_error CLASSIFICATION, bad_repo
status.py # the first-run probe: compute_status / summarize_status / report_gaps (setup-gap seam)
projects.py # repo sources: host projects: registry (ADR 0095) + checkout `origin` remote parsing
read_tools.py # 15 read tools (6 ported core + file/contents/pr-file/path-exists/pr-diff + status + list_prs/comments/search)
write_tools.py # 8 write tools (create/edit/merge/close/comment/labels/assignees) — gated
read_tools.py # 16 read tools (6 ported core + file/contents/pr-file/path-exists/pr-diff + status + list_prs/comments/search + review_threads)
write_tools.py # 10 write tools (create/edit/merge/close/comment/labels/assignees + reply/resolve review threads) — gated
review_tools.py # 3 verdict tools (comment/approve/request-changes, guarded) — gated
gh_issue.py # /issue chat command logic + repo resolution (resolve_repo, default_repo_error)
api.py # routers — public PAGES (view/new-issue) + gated data routes (config/status/issues/prs/issue)
Expand Down
4 changes: 3 additions & 1 deletion write_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

from __future__ import annotations

import re

from langchain_core.tools import tool

from .gh_cli import bad_repo, check_gh_error, parse_json, run_gh
Expand All @@ -50,7 +52,7 @@ def _pr_number(url: str) -> str:
return tail if tail.isdigit() else ""


_THREAD_ID_RE = __import__("re").compile(r"^PRRT_[A-Za-z0-9_-]{6,}$")
_THREAD_ID_RE = re.compile(r"^PRRT_[A-Za-z0-9_-]{6,}$")


def _bad_thread_id(thread_id: str) -> str | None:
Expand Down
Loading