feat(ack): support OMP workers

This commit is contained in:
2026-08-23 22:00:32 +08:00
parent 7dfdf80e9e
commit 02fafb4bf6
14 changed files with 530 additions and 18 deletions
+4 -1
View File
@@ -84,11 +84,13 @@ WORKER_CREDENTIAL_NAMES = {
"codex": frozenset({"AZURE_OPENAI_API_KEY", "OPENAI_API_KEY"}),
"cursor-agent": frozenset({"CURSOR_API_KEY"}),
"grok": frozenset({"XAI_API_KEY"}),
"omp": frozenset({"OPENCODE_API_KEY"}),
}
CLI_TITLE_LABELS = {
"codex": "CODEX",
"cursor-agent": "CURSOR",
"grok": "GROK",
"omp": "OMP",
}
INHERITED_ENVIRONMENT_PREFIXES = (
"LC_",
@@ -149,6 +151,7 @@ def trusted_path_entries() -> list[Path]:
candidates = [
home / ".local" / "bin",
home / ".local" / "share" / "mise" / "shims",
home / ".local" / "share" / "mise" / "installs" / "github-can1357-oh-my-pi" / "latest",
home / ".cargo" / "bin",
Path("/home/linuxbrew/.linuxbrew/bin"),
Path("/usr/local/go/bin"),
@@ -305,7 +308,7 @@ def _is_trusted_grok_executable(resolved: Path, metadata: os.stat_result) -> boo
def resolve_executable(name: str) -> Path:
supported = {"codex", "cursor-agent", "grok", "git", "orca"}
supported = {"codex", "cursor-agent", "grok", "omp", "git", "orca"}
if name not in supported:
raise LaunchError(f"不支持的可执行文件: {name}")
search_paths = trusted_path_entries()