diff infinite_canvas/agent_service_stub.c @ 280:49e9e591c9bb

Add persistent dictation, prewarmed WebRTC speech input, Copilot SDK routing, animated conversation lifecycle controls, parking, and architecture coverage.
author MrJuneJune <me@mrjunejune.com>
date Tue, 18 Aug 2026 19:14:53 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/infinite_canvas/agent_service_stub.c	Tue Aug 18 19:14:53 2026 -0700
@@ -0,0 +1,51 @@
+#include "infinite_canvas/agent_service.h"
+
+#include <stdio.h>
+#include <string.h>
+
+boolean Canvas_Agent_Service_Init(
+    Canvas_Agent_Service *p_service,
+    Dowa_Arena *p_arena)
+{
+    memset(p_service, 0, sizeof(*p_service));
+    p_service->p_arena = p_arena;
+    p_service->status = CANVAS_AGENT_IDLE;
+    return TRUE;
+}
+
+boolean Canvas_Agent_Service_Submit(
+    Canvas_Agent_Service *p_service,
+    const char *p_prompt,
+    const char *p_context)
+{
+    (void)p_prompt;
+    (void)p_context;
+    snprintf(
+        p_service->error,
+        sizeof(p_service->error),
+        "Copilot SDK orchestration is not available on this platform yet");
+    p_service->status = CANVAS_AGENT_ERROR;
+    return TRUE;
+}
+
+Canvas_Agent_Status Canvas_Agent_Service_Poll(
+    Canvas_Agent_Service *p_service,
+    char *p_response,
+    size_t response_capacity,
+    char *p_error,
+    size_t error_capacity)
+{
+    (void)p_response;
+    (void)response_capacity;
+    Canvas_Agent_Status status = p_service->status;
+    if (status == CANVAS_AGENT_ERROR) {
+        snprintf(p_error, error_capacity, "%s", p_service->error);
+        p_service->status = CANVAS_AGENT_IDLE;
+    }
+    return status;
+}
+
+void Canvas_Agent_Service_Shutdown(Canvas_Agent_Service *p_service)
+{
+    (void)p_service;
+}