UNPKG

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.

3 lines (2 loc) 743 B
#!/usr/bin/env node import{HookSignalStore as i}from"../core/hooks/hook-signal-store.js";import{resolveRuntimePaths as a}from"../core/config/paths.js";import{resolveLogRotationOptions as r}from"../core/log/rotation.js";import{readStdinJSON as c}from"./lib/read-stdin.js";const m=new Set(["SessionStart","PermissionRequest","PreToolUse","PostToolUse","PostToolUseFailure","PermissionDenied","ElicitationResult","Stop","StopFailure","PreCompact","PostCompact","ConfigChange"]);async function S(){const o=await c(2e3),e=String(o.hook_event_name??"");m.has(e)||process.exit(0);const t=a(),n=r(),s=process.env.GRIX_HOOK_SIGNALS_PATH||t.hookSignalsPath;await new i(s,t.hookSignalsLogPath,void 0,n).recordHookEvent(o)}S().catch(()=>process.exit(0));