Commit Graph

15 Commits

Author SHA1 Message Date
hypercross 98c4a195e8 refactor: replace websocket-stream with native ws utility
Remove the `websocket-stream` dependency in favor of
`createWebSocketStream`
from the `ws` package. This simplifies the MQTT broker setup in the
journal server and removes unnecessary transitive dependencies.

Also improve the JournalPanel UI with smoother transitions and better
visibility handling.
2026-07-06 15:53:52 +08:00
hypercross 34d647d611 feat: implement websocket-stream for journal server
Integrate `websocket-stream` to handle MQTT broker upgrades in the
CLI and add granular connection status tracking to the UI.

- Add `websocket-stream` dependency
- Update CLI to use `websocket-stream` for socket upgrades
- Enhance `journalStream` store with `connectionStatus` and
  `connectionError` states
- Add visual connection status indicators to `App` and `JournalPanel`
2026-07-06 15:38:28 +08:00
hypercross 8194438816 feat(journal): implement message registry and stream store
Implement a robust journal system featuring a type-safe message
registry and an MQTT-backed stream store.

- Add `registry.ts` to manage message type definitions, Zod schemas,
  and custom reducers.
- Implement `journalStream.ts` to manage MQTT connections, session
  lifecycle, and reactive message state.
- Add built-in message types for `narrative`, `intent`, `roll`,
  and `article`.
- Provide utilities for message validation, optimistic local updates,
  and message reversion.
2026-07-06 14:48:18 +08:00
hypercross 163aa8c783 refactor: move yarn-spinner-loader to external dependency 2026-04-14 16:35:18 +08:00
hypercross 617fd17def feat: md-pins allow numbers 2026-03-21 18:16:41 +08:00
hypercross 27bc2fc747 refactor: cached and reloaded file-index 2026-03-13 15:50:50 +08:00
hypercross e13ead2309 refactor: yarn runner man 2026-03-03 15:09:25 +08:00
hypercross 8d5b15ad51 refactor: yarn format 2026-03-03 14:25:15 +08:00
hypercross 82876d47c0 feat: check function 2026-03-03 13:12:45 +08:00
hypercross 4280da9fec refactor: reorg 2026-03-03 10:54:20 +08:00
hypercross c6580b7c69 refactor: break down & clean up 2026-02-27 15:22:51 +08:00
hypercross 8ddc2a672a fix: state tracking 2026-02-27 14:58:44 +08:00
hypercross 0aaadea2da refactor: clean up 2026-02-27 14:32:43 +08:00
hypercross 72285e093f refactor: deckStore 2026-02-27 14:19:26 +08:00
hypercross fdecd0fb6e refactor: store based md-pins 2026-02-27 13:55:20 +08:00