@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
27 lines • 1.14 kB
TypeScript
import { type HostGcPassMarker } from "./host-gc-pass-marker.ts";
import { settledOpportunisticHostGc } from "./host-gc-pass-registry.ts";
export { settledOpportunisticHostGc };
export declare const OPPORTUNISTIC_GC_BUDGET: {
readonly budgetMs: 1500;
readonly maxEndpoints: 32;
readonly minIntervalMs: 300000;
};
export interface OpportunisticGcOptions {
readonly agentDir: string;
/** The endpoint the ensure was for: never judged, never locked. */
readonly exclude: string;
readonly budgetMs?: number;
readonly maxEndpoints?: number;
readonly minIntervalMs?: number;
readonly now?: () => number;
}
export type OpportunisticGcOutcome = {
readonly ran: false;
} | {
readonly ran: true;
readonly marker: HostGcPassMarker;
};
export declare function gcHostEndpointsOpportunistically(options: OpportunisticGcOptions): Promise<OpportunisticGcOutcome>;
/** Starts a pass off the caller's path; at most one at a time per agent directory in this process. */
export declare function scheduleOpportunisticHostGc(options: OpportunisticGcOptions): void;
//# sourceMappingURL=host-gc-pass.d.ts.map