agent-zero/webui/js
frdel d358deda64 typed messages.js, unified returns from message handlers
Enable stricter type checking (checkJs, allowJs, strict, ES2022/ESNext) in jsconfig.json and add comprehensive JSDoc typedefs and return types across the web UI message code. Key changes:

- simple-action-buttons: add JSDoc for createActionButton, handle missing icons gracefully (use text fallback), and compute feedback flag safely.
- initFw.js: ignore TS on importing Alpine and expose Alpine from globalThis.
- messages.js: introduce typedefs (MessageHandlerArgs, MessageHandlerResult, SetMessageResult, ProcessStepArgs), return richer handler results, make setMessage return { args, result }, tighten null/undefined handling, annotate scroller and other locals, and update many drawMessage/drawProcessStep functions to return consistent objects.
- Several safety/refactor fixes: use globalThis.katex for rendering, safer DOM helpers (ensureChild typed), avoid early null returns, and build actionButtons arrays incrementally instead of relying on filtering nulls.

Overall these changes improve type safety, null-safety, and clarity of message handler contracts to support better tooling and fewer runtime errors.
2026-02-25 10:28:50 +01:00
..
AlpineStore.js parse LLM chunk fix, alpine store state save/load 2025-12-02 12:36:42 +01:00
api.js plugins - frontend PoC 2026-02-16 20:01:25 +01:00
components.js Support webui JS/HTML extensions and plugin paths 2026-02-17 10:17:19 +01:00
confirmClick.js refactor settings and scheduler 2026-01-02 14:03:25 +01:00
confirmDialog.js git projects - basic implementation 2026-02-02 23:23:19 -08:00
css.js merge prep 2025-06-30 16:16:51 +02:00
device.js cleanups and fixes 2025-07-12 20:55:53 +02:00
extensions.js Refactor plugin/project helpers; add plugin UI 2026-02-19 17:20:14 +01:00
initFw.js typed messages.js, unified returns from message handlers 2026-02-25 10:28:50 +01:00
initializer.js cleanups and fixes 2025-07-12 20:55:53 +02:00
manifest.json v0.9.5-pre cleanup, polishing, bugfixing 2025-08-25 09:59:44 +02:00
messages.js typed messages.js, unified returns from message handlers 2026-02-25 10:28:50 +01:00
modals.js add extension points coverage; add JS hooks 2026-02-18 12:32:04 +01:00
scroller.js code exec reset polish, history and scroller fix 2026-02-05 16:47:38 +01:00
shortcuts.js project finalizing, openrouter embeddings 2025-11-13 08:52:45 +01:00
sleep.js secrets polishing 2025-08-15 09:35:30 +02:00
speech_browser.js finalize the notification system 2025-07-12 16:36:20 +02:00
sw.js Implement Progressive Web App (PWA) installation support (#688) 2025-08-20 08:27:08 +02:00
time-utils.js timestamp log fix 2026-01-06 19:02:47 +01:00
timeout.js x-components + mcp wip 2025-06-02 09:48:25 +02:00
transformers@3.0.2.js Squashed commit of the following: 2024-12-08 00:27:02 +01:00
websocket.js WebSocket merge 2026-02-01 16:07:45 +01:00