oc_orchestrator
Loading...
Searching...
No Matches
dispatch.py File Reference

Go to the source code of this file.

Classes

class  oc_orchestrator.dispatch.DispatchError
class  oc_orchestrator.dispatch.DispatchHooks
class  oc_orchestrator.dispatch._NoHooks
class  oc_orchestrator.dispatch.DispatchRequest
class  oc_orchestrator.dispatch.DispatchResult
class  oc_orchestrator.dispatch._PlanDispatchData
class  oc_orchestrator.dispatch.PlanAnchors

Namespaces

namespace  oc_orchestrator
namespace  oc_orchestrator.dispatch

Functions

subprocess.CompletedProcess[str] oc_orchestrator.dispatch._run_git (Path repo_root, *str args, bool check=True)
Path oc_orchestrator.dispatch._resolve_plan (Path plans_dir, str plan_number)
dict[str, Any] oc_orchestrator.dispatch._frontmatter (Path path)
str oc_orchestrator.dispatch._nonblank (dict[str, Any] data, str field, *, str context)
_PlanDispatchData oc_orchestrator.dispatch._load_plan (Path path, str plan_number, str|None thinking_override)
PlanAnchors oc_orchestrator.dispatch.resolve_plan_anchors (Path plans_dir, str plan_number)
str oc_orchestrator.dispatch._require_committed_on_master (Path repo_root, Path plan_path)
bool oc_orchestrator.dispatch._branch_exists (Path repo_root, str branch)
str oc_orchestrator.dispatch._base_sha (Path repo_root, str branch, str master_sha)
set[str] oc_orchestrator.dispatch._template_field_names (str template)
str oc_orchestrator.dispatch.render_launch_template (Path template_path, dict[str, str] fields)
PrepareResult oc_orchestrator.dispatch._prepare_worktree_env (DispatchRequest request, _PlanDispatchData plan, *, bool use_worktree_venv)
None oc_orchestrator.dispatch._write_launch (Path path, str text)
dict[str, str] oc_orchestrator.dispatch._launch_fields (DispatchRequest request, _PlanDispatchData plan, *, str base_sha, Path launch_path, str agent_id, bool use_worktree_venv)
DispatchResult oc_orchestrator.dispatch.dispatch (DispatchRequest request)
None oc_orchestrator.dispatch._announce_dispatched (DispatchHooks hooks, DispatchResult result)
list[str] oc_orchestrator.dispatch.format_dispatch_suggestion (DispatchResult result, *, str model_attested, Path registry_path)
str oc_orchestrator.dispatch._open_instance_summary (Path registry_path, str exclude_agent_id)

Variables

str oc_orchestrator.dispatch._TEMPLATES_DIR = Path(__file__).resolve().parent / "templates"
str oc_orchestrator.dispatch.DEFAULT_LAUNCH_TEMPLATE = _TEMPLATES_DIR / "launch.md"
str oc_orchestrator.dispatch.SHARED_VENV_LAUNCH_TEMPLATE = _TEMPLATES_DIR / "launch_shared_venv.md"
tuple oc_orchestrator.dispatch._REQUIRED_REQUIRES = ("tier", "repo", "thinking", "session")
 oc_orchestrator.dispatch._VALID_THINKING = frozenset({"off", "low", "medium", "high", "max"})
 oc_orchestrator.dispatch._VALID_SESSION = frozenset({"fresh", "continue", "either"})
 oc_orchestrator.dispatch._LEFTOVER_TOKEN_RE = re.compile(r"\{[^{}\n]+\}|<[^<>\n]+>")
 oc_orchestrator.dispatch._PLAN_NUMBER_RE = re.compile(r"^[0-9]{3}$")
dict oc_orchestrator.dispatch._SESSION_EXPLANATIONS