@drakon-systems/multi-clawd 1.8.3 → 1.8.4

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.
Files changed (2) hide show
  1. package/dist/health.js +8 -3
  2. package/package.json +1 -1
package/dist/health.js CHANGED
@@ -27,7 +27,12 @@ export const PERIOD_RESET_LESS_BLOCK_MS = 6 * 60 * 60 * 1000;
27
27
  export function resetLessBlockMs(window) {
28
28
  return isShortWindow(window) ? MODEL_REJECTED_TTL_MS : PERIOD_RESET_LESS_BLOCK_MS;
29
29
  }
30
- function windowAppliesToModel(w, requestedWindowKey) {
30
+ function isAllowanceWindow(window) {
31
+ return isPeriodWindow(window) && !isOverageWindow(window);
32
+ }
33
+ function windowAppliesToModel(window, w, requestedWindowKey) {
34
+ if (isAllowanceWindow(window))
35
+ return true;
31
36
  if (w.model === undefined)
32
37
  return true;
33
38
  if (requestedWindowKey === undefined)
@@ -104,7 +109,7 @@ export function classifyAccountHealth(state, options, nowMs, requestedModel) {
104
109
  if (w.status === "rejected" &&
105
110
  resetBearing &&
106
111
  isPeriodWindow(window) &&
107
- windowAppliesToModel(w, requestedWindowKey) &&
112
+ windowAppliesToModel(window, w, requestedWindowKey) &&
108
113
  rejectionStillAssertable(w.seenAt, nowMs)) {
109
114
  return {
110
115
  verdict: "exhausted",
@@ -115,7 +120,7 @@ export function classifyAccountHealth(state, options, nowMs, requestedModel) {
115
120
  if (w.status === "rejected" &&
116
121
  resetMs === undefined &&
117
122
  isPeriodWindow(window) &&
118
- windowAppliesToModel(w, requestedWindowKey) &&
123
+ windowAppliesToModel(window, w, requestedWindowKey) &&
119
124
  nowMs - w.seenAt <= resetLessBlockMs(window)) {
120
125
  return {
121
126
  verdict: "exhausted",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drakon-systems/multi-clawd",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "Multi-account Claude Code failover for OpenClaw — register additional Claude (Max/Pro) logins as first-class CLI backends and keep the full skills/MCP harness across every account. Also imports those accounts' setup tokens into Hermes Agent's Anthropic credential pool.",
5
5
  "type": "module",
6
6
  "license": "MIT",