HoldDecisionInput
Defined in: src/usage-hold.ts:11
Pure hold-decision function for usage-aware task holding (#825).
Degraded-usage convention: callers pass 0 for any window when usage is
unknown (uncalibrated caps, api-key mode → limits() returns null windows).
With 0, Math.max(0, 0) >= holdPct is always false, so we never hold when
usage can’t be measured — the safe default (don’t freeze manual work we
can’t measure). No special-casing needed here; the 0 convention handles it.
Properties
Section titled “Properties”activeSessionCount
Section titled “activeSessionCount”activeSessionCount:
number
Defined in: src/usage-hold.ts:16
enabled
Section titled “enabled”enabled:
boolean
Defined in: src/usage-hold.ts:12
force:
boolean
Defined in: src/usage-hold.ts:17
holdPct
Section titled “holdPct”holdPct:
number
Defined in: src/usage-hold.ts:13
session5hPct
Section titled “session5hPct”session5hPct:
number
Defined in: src/usage-hold.ts:14
weekPct
Section titled “weekPct”weekPct:
number
Defined in: src/usage-hold.ts:15