Expand description
Home directory utilities.
All orch state lives under ~/.orch/. This is completely separate from
the legacy bash orchestrator’s ~/.orchestrator/ directory — both tools can
run side by side without conflicts.
Functions§
- config_
path - Get the path to the global config file (~/.orch/config.yml).
- contexts_
dir - Get the path to the contexts directory (~/.orch/contexts/).
- db_path
- Get the path to the tasks database file (~/.orch/orch.db).
- find_
orch_ serve_ pids - Find all PIDs of running
orch serveprocesses. - init_
dirs - Pre-create all standard orch directories using async I/O.
- kill_
other_ orch_ serve_ processes - Send SIGTERM to other running
orch serveprocesses, then SIGKILL stragglers. - orch_
home - Get the orch home directory path (~/.orch/).
- pid_
is_ orch_ serve - Returns
trueif the given PID is alive and is anorch serveprocess. - projects_
dir - Get the path to the projects directory (~/.orch/projects/).
- repo_
state_ dir - Get the per-repo state directory:
~/.orch/state/{owner}/{repo}/. - service_
version_ path - Get the path to the service version file (~/.orch/state/service.version).
- skills_
dir - Get the path to the skills directory (~/.orch/skills/).
- state_
dir - Get the orch state directory path (~/.orch/state/).
- state_
file - Resolve a file inside the state directory, falling back to the legacy location when the file doesn’t exist at the new path yet.
- task_
attempt_ dir - Get the per-task attempt directory:
~/.orch/state/{owner}/{repo}/tasks/{id}/attempts/{n}/. - task_
attempt_ dir_ async - Async version of
task_attempt_dir— usestokio::fs::create_dir_allto avoid blocking the Tokio executor when creating a new directory. - task_
dir - Get the per-task directory:
~/.orch/state/{owner}/{repo}/tasks/{id}/. - task_
dir_ async - Async version of
task_dir— usestokio::fs::create_dir_allto avoid blocking the Tokio executor when creating a new directory. - worktrees_
dir - Get the path to the worktrees directory (~/.orch/worktrees/).