chore: add WebSocket API with Mongoose, service management, and AI command execution

Add new WebSocket API module (api.c/api.h) using Mongoose library for real-time
window manager control, including workspace and client status endpoints.
Introduce service management module (services.h) with init/run/cleanup lifecycle.
Extend AI module to parse [WM_CMD:] directives from responses and forward JSON
commands to the API handler. Update config with api.enabled, api.port, and
services.path settings. Integrate new modules into main init/run/cleanup flow.
This commit is contained in:
2026-01-08 22:58:19 +00:00
parent 54565b21bd
commit 4793d372ac
16 changed files with 20963 additions and 6 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+3 -1
View File
@@ -20,7 +20,7 @@ build/main.o: src/main.c include/dwn.h include/config.h include/dwn.h \
/usr/include/dbus-1.0/dbus/dbus-syntax.h \
/usr/include/dbus-1.0/dbus/dbus-threads.h include/systray.h \
include/news.h include/applauncher.h include/ai.h include/autostart.h \
include/demo.h include/util.h
include/services.h include/api.h include/demo.h include/util.h
include/dwn.h:
include/config.h:
include/dwn.h:
@@ -55,5 +55,7 @@ include/news.h:
include/applauncher.h:
include/ai.h:
include/autostart.h:
include/services.h:
include/api.h:
include/demo.h:
include/util.h:
BIN
View File
Binary file not shown.