agent-claw: automated task changes

This commit is contained in:
daniel
2026-05-06 18:55:16 -05:00
parent 38905bb1e9
commit 732b00fb66
8494 changed files with 2018127 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
import type { ScalingInterval } from './types';
export interface CompleteScalingInterval {
readonly lower: number;
readonly upper: number;
readonly change?: number;
}
/**
* Normalize the given interval set to cover the complete number line and make sure it has at most one gap
*/
export declare function normalizeIntervals(intervals: ScalingInterval[], changesAreAbsolute: boolean): CompleteScalingInterval[];
export interface Alarms {
readonly lowerAlarmIntervalIndex?: number;
readonly upperAlarmIntervalIndex?: number;
}
/**
* Locate the intervals that should have the alarm thresholds, by index.
*
* Pick the intervals on either side of the singleton "undefined" interval, or
* pick the middle interval if there's no such interval.
*/
export declare function findAlarmThresholds(intervals: CompleteScalingInterval[]): Alarms;