refactor(core): remove unnecessary | null from config types, unify timestamp naming #108
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 1 — 最安全的机械替换
1. 去掉无意义的
| nullSenseReflexConfig.on: string[] | null→string[](空数组 = 无条件)SenseReflexConfig.interval: number | null→number(0 或默认值 = 不设间隔)NerveConfig.workflows: Record<string, WorkflowConfig> | null→Record<string, WorkflowConfig>(空对象 = 无 workflow)SenseConfig里的throttle/timeout/gracePeriod的| null也审视一下,如果 null 和 0 语义相同就去掉2. 统一时间戳命名
Signal.ts→Signal.timestamp(L5)SenseInfo.lastSignalTs→SenseInfo.lastSignalTimestamp(L21).ts字段引用,确保所有消费方同步更新约束
pnpm run check && pnpm run build && pnpm -r run test全过