feat: add client tests, status FIFO, and evaluation docs

This commit is contained in:
Loic Coenen
2026-05-14 14:12:50 +00:00
committed by Loic Coenen (aider)
parent 998406616a
commit 791744beeb
14 changed files with 333 additions and 83 deletions

View File

@@ -11,8 +11,10 @@
#include <math.h>
/* ---------- FIFO command helper ---------- */
static int send_command(const char *cmd) {
int fd = open("/tmp/looper_cmd", O_WRONLY);
int send_command(const char *cmd) {
const char *fifo_path = getenv("LOOPER_CMD_FIFO");
if (!fifo_path) fifo_path = "/tmp/looper_cmd";
int fd = open(fifo_path, O_WRONLY | O_NONBLOCK);
if (fd < 0) return -1;
size_t len = strlen(cmd);
int n = write(fd, cmd, len);

View File

@@ -4,5 +4,6 @@
void tui_init(void);
void tui_run(void);
void tui_cleanup(void);
int send_command(const char *cmd);
#endif