feat(daemon): auto-persist signals to sense DB #150

Merged
xiaomo merged 1 commits from feat/auto-persist-signals into main 2026-04-27 05:33:29 +00:00

1 Commits

Author SHA1 Message Date
xiaoju 715cb8583f feat(daemon): auto-persist signals to sense DB
Every sense now gets a _signals table (id, payload, timestamp) created
automatically. When compute() returns non-null, the signal is persisted
to the sense's own SQLite DB before being sent to the Signal Bus.

This makes `nerve sense query <name>` return signal history out of the
box — no manual INSERT needed in compute functions.

CLI's pickDefaultPreviewTable now prioritizes _signals over other tables.
2026-04-27 05:29:56 +00:00