Repository navigation
feat(providers): add omo provider sharing pi transcript pipeline #362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ | |
| "antigravity", | ||
| "claude", | ||
| "codex", | ||
| "omo", | ||
| "pi", | ||
| "shell", | ||
| ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,9 @@ | |
| "claude": "--dangerously-skip-permissions", | ||
| "codex": "--dangerously-bypass-approvals-and-sandbox", | ||
| "gemini": "--yolo", | ||
| # ccgram launches in yolo mode by default; without this flag omo would | ||
| # stop on approval prompts nobody can answer from Telegram. | ||
| "omo": "--permission-preset full-access", | ||
| } | ||
|
|
||
|
|
||
|
|
@@ -125,6 +128,9 @@ def _ensure_registered() -> None: | |
| # Lazy: provider classes register against the registry at import; defer until the registry factory runs | ||
| from ccgram.providers.gemini import GeminiProvider | ||
|
|
||
| # Lazy: provider classes register against the registry at import; defer until the registry factory runs | ||
| from ccgram.providers.omo import OmoProvider | ||
|
|
||
| # Lazy: provider classes register against the registry at import; defer until the registry factory runs | ||
| from ccgram.providers.pi import PiProvider | ||
|
|
||
|
|
@@ -135,6 +141,7 @@ def _ensure_registered() -> None: | |
| registry.register("claude", ClaudeProvider) | ||
| registry.register("codex", CodexProvider) | ||
| registry.register("gemini", GeminiProvider) | ||
| registry.register("omo", OmoProvider) | ||
| registry.register("pi", PiProvider) | ||
| registry.register("shell", ShellProvider) | ||
| _registered = True | ||
|
|
@@ -249,7 +256,7 @@ def detect_provider_from_command(pane_current_command: str) -> str: | |
| # Match basename only (first token) to avoid false positives | ||
| # from paths like /home/claude/bin/vim | ||
| basename = os.path.basename(cmd.split()[0]) | ||
| for name in ("antigravity", "claude", "codex", "gemini", "pi"): | ||
| for name in ("antigravity", "claude", "codex", "gemini", "omo", "pi"): | ||
| if ( | ||
| basename == name | ||
| or (name == "antigravity" and basename == "agy") | ||
|
|
@@ -300,8 +307,12 @@ def detect_provider_from_transcript_path(transcript_path: str) -> str: | |
| return "claude" | ||
| if "/.gemini/" in normalized and "/chats/" in normalized: | ||
| return "gemini" | ||
| if "/.pi/agent/sessions/" in normalized: | ||
| return "pi" | ||
| for marker, provider in ( | ||
| ("/.omo/agent/sessions/", "omo"), | ||
| ("/.pi/agent/sessions/", "pi"), | ||
| ): | ||
| if marker in normalized: | ||
| return provider | ||
|
Comment on lines
+310
to
+315
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If |
||
| return "" | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding
omoto the enabled providers does not add it toAGENT_ALIASES. In an unbound topic,omo /repo fix thisis treated as an instruction for the default provider, not an omo launch. With a remembered project, CCGram can launch the wrong agent and send it the entire line. Addomoto the typed-plan aliases so this entry point recognizes the new provider.