feat(local-agent): support OpenCode and Oh My Pi (#144)

This commit is contained in:
Joseph Magly authored and GitHub committed 2026-08-01 20:15:42 -04:00
1 parent d471da6603
commit 8f658891f2
8 files changed
+150 -24

No files matched your search

+4 -4
View File
@@ -26303,9 +26303,9 @@ Be specific and actionable. Format as structured JSON.`;
});
</script>
<script>
// ═══════════ Connect Local Agents — detect + enlist already-authed CLIs (Claude Code / Codex / Hermes) ═══════════
// ═══════════ Connect Local Agents — detect + enlist already-authed CLIs ═══════════
(function(){
const ICONS = { claude: '🟠', codex: '🟢', hermes: '🔵' };
const ICONS = { claude: '🟠', codex: '🟢', hermes: '🔵', opencode: '🟣', omp: '🟡' };
let lastDetected = [];
let connectedIds = [];
const pingStatus = {}; // id -> { ok, latencyMs, error } from a real round-trip
@@ -26536,9 +26536,9 @@ Be specific and actionable. Format as structured JSON.`;
}
window.t3mpHasBackend = hasBackend;
// Pick the best connected agent to serve as the mission LLM backend: prefer a live-pinged one, and
// prefer codex/hermes over claude (claude's standalone CLI is often auth-stale). Returns id | null.
// Use a stable preference order when the operator has not pinned a connected agent. Returns id | null.
function preferredAgent(){
var order = ['codex','hermes','claude'];
var order = ['codex','opencode','omp','hermes','claude'];
var connected = (connectedIds || []).slice();
var live = connected.filter(function(id){ return pingStatus[id] && pingStatus[id].ok; });
var pool = live;