@chipschat/hermes 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-NOTICES.md +1 -1
- package/dist/main.js +13 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
`dist/main.js` in @chipschat/hermes 1.0.
|
|
3
|
+
`dist/main.js` in @chipschat/hermes 1.0.15 carries these packages, bundled in. Each one's
|
|
4
4
|
licence follows.
|
|
5
5
|
|
|
6
6
|
## @chipschat/harness 1.0.1 (Apache-2.0)
|
package/dist/main.js
CHANGED
|
@@ -27675,6 +27675,8 @@ var Bridge = class {
|
|
|
27675
27675
|
toldModels = false;
|
|
27676
27676
|
/** While Hermes's gateway restarts (Chips ADR 0094), the health watch says nothing: the restart says how it went. */
|
|
27677
27677
|
held = false;
|
|
27678
|
+
/** Restarts begun, so a health check asked before one, and answered after, is let go. */
|
|
27679
|
+
holds = 0;
|
|
27678
27680
|
/** What went wrong in the last restart, said in place of the watch's own words while Hermes doesn't answer. */
|
|
27679
27681
|
why;
|
|
27680
27682
|
/** Register the agents, start hearing what is said to them, and say how their gateways are. */
|
|
@@ -27715,6 +27717,7 @@ var Bridge = class {
|
|
|
27715
27717
|
}
|
|
27716
27718
|
/** Hold the health watch's words while Hermes's gateway restarts, and let them go after. */
|
|
27717
27719
|
hold(held) {
|
|
27720
|
+
if (held && !this.held) this.holds += 1;
|
|
27718
27721
|
this.held = held;
|
|
27719
27722
|
}
|
|
27720
27723
|
/**
|
|
@@ -28179,11 +28182,18 @@ ${hook.lines}`);
|
|
|
28179
28182
|
return note === void 0 ? {} : { note };
|
|
28180
28183
|
}
|
|
28181
28184
|
}
|
|
28182
|
-
/**
|
|
28185
|
+
/**
|
|
28186
|
+
* Trouble while a profile's gateway doesn't answer, and fine once all do (ADR 0083); nothing while
|
|
28187
|
+
* a restart runs, nor answers to a check asked before one began, even one over by now: they are of
|
|
28188
|
+
* the gateways before, and a failed restart's words would go.
|
|
28189
|
+
*/
|
|
28183
28190
|
async sayHowItIs() {
|
|
28184
28191
|
if (this.held) return;
|
|
28185
|
-
|
|
28186
|
-
|
|
28192
|
+
const holds2 = this.holds;
|
|
28193
|
+
const answers2 = /* @__PURE__ */ new Map();
|
|
28194
|
+
for (const agent of this.agents) answers2.set(agent, await agent.client.healthy());
|
|
28195
|
+
if (this.holds !== holds2) return;
|
|
28196
|
+
for (const [agent, up] of answers2) agent.up = up;
|
|
28187
28197
|
const down = this.agents.filter((agent) => !agent.up);
|
|
28188
28198
|
if (down.length === 0) this.why = void 0;
|
|
28189
28199
|
const chips2 = this.options.chips;
|
package/package.json
CHANGED