refactor: reduce cognitive complexity in 3 functions #184

Merged
xiaoju merged 1 commits from refactor/reduce-complexity into main 2026-04-27 09:10:05 +00:00

1 Commits

Author SHA1 Message Date
xingyue 70bc3c868b refactor: reduce cognitive complexity in 3 functions
Extract helper functions to bring complexity scores below the
biome threshold of 15:

- cli/sense-list.test.ts: senseTriggerLabels 26→split into 4 helpers
- daemon/daemon-ipc.ts: handleLine 29→extract dispatchDaemonIpcRequest
- daemon/ipc.ts: parseParentMessage 17→extract per-type parsers

Closes #183
2026-04-27 16:59:41 +08:00