grix-connector
Version:
Connect local AI coding agents (Claude, Codex, Gemini, Qwen, DeepSeek, Cursor, OpenCode, Pi, OpenHuman, Reasonix) to the Grix scheduling platform. Also serves as an OpenClaw plugin for Grix channel transport.
2 lines (1 loc) • 504 B
JavaScript
import{accessSync as t,constants as c}from"node:fs";import{homedir as m}from"node:os";import{join as n}from"node:path";import{resolveCommandPath as i}from"./spawn.js";function l(){const o=i("copilot");if(o!=="copilot")return{command:o,prefixArgs:[]};try{return t(o,c.X_OK),{command:o,prefixArgs:[]}}catch{}const r=n(m(),".local","share","gh","copilot","copilot");try{return t(r,c.X_OK),{command:r,prefixArgs:[]}}catch{}return{command:"gh",prefixArgs:["copilot","--"]}}export{l as resolveCopilotCommand};