[HLCC-ICE-000001][ZY-CONTRIB-20260723-001] feat: 以来光者贡献链启用冰朔第五域个人子频道
This commit is contained in:
commit
5615453e4e
660 changed files with 122355 additions and 0 deletions
9
server-tools/state-change-sentinel/state.js
Normal file
9
server-tools/state-change-sentinel/state.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
"use strict";
|
||||
|
||||
function transition(previous, current) {
|
||||
if (!previous) return { notify: false, state: current, kind: "baseline" };
|
||||
if (previous.ok === current.ok && previous.detail === current.detail) return { notify: false, state: current, kind: "unchanged" };
|
||||
return { notify: true, state: current, kind: current.ok ? "recovered" : "anomaly" };
|
||||
}
|
||||
|
||||
module.exports = { transition };
|
||||
Loading…
Reference in a new issue