refactor(core): remove unnecessary | null, unify timestamp naming #112

Merged
xiaoju merged 1 commits from refactor/108-remove-null-unify-ts into main 2026-04-25 01:57:48 +00:00
Owner

What

Remove unnecessary | null from config types and unify timestamp field naming.

Changes

  • SenseReflexConfig.on: string[] | nullstring[]
  • NerveConfig.workflows: Record | nullRecord
  • Signal.tsSignal.timestamp, lastSignalTslastSignalTimestamp
  • All consumers updated, 378 tests pass

Fixes #108

## What Remove unnecessary `| null` from config types and unify timestamp field naming. ## Changes - `SenseReflexConfig.on`: `string[] | null` → `string[]` - `NerveConfig.workflows`: `Record | null` → `Record` - `Signal.ts` → `Signal.timestamp`, `lastSignalTs` → `lastSignalTimestamp` - All consumers updated, 378 tests pass Fixes #108
xiaoju added 1 commit 2026-04-25 01:54:05 +00:00
- SenseReflexConfig.on: string[] | null → string[] (empty = no conditions)
- NerveConfig.workflows: Record | null → Record (empty = no workflows)
- Signal.ts → Signal.timestamp
- SenseInfo.lastSignalTs → SenseInfo.lastSignalTimestamp
- All consumers across daemon/cli/store updated
- parseNerveConfig: on defaults to [], workflows defaults to {}

Fixes #108
xiaoju merged commit 529cceba06 into main 2026-04-25 01:57:48 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#112