agent-afk 5.299.0 → 5.299.2

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.
@@ -1,4 +1,4 @@
1
- import { type PresenceRecord } from '../awareness/presence.js';
1
+ import type { PresenceRecord } from '../awareness/presence.js';
2
2
  import { type WorktreeVerdict } from './worktree-sweep.classify.js';
3
3
  export { MIN_EMPTY_AGE_MS } from './worktree-sweep.classify.js';
4
4
  export type ExecFileFn = (file: string, args: string[], opts?: {
@@ -20,6 +20,7 @@ export interface SweepOptions {
20
20
  lockPath?: string;
21
21
  bypassSoftLaunch?: boolean;
22
22
  readPresence?: () => Promise<PresenceRecord[]>;
23
+ schedulesPath?: string;
23
24
  }
24
25
  interface SweepCandidateSummary {
25
26
  path: string;
@@ -0,0 +1,2 @@
1
+ import { type PresenceRecord } from '../awareness/presence.js';
2
+ export declare function readLiveSessionCwds(reader?: () => Promise<PresenceRecord[]>): Promise<string[]>;
@@ -0,0 +1,10 @@
1
+ export interface SchedulePinResult {
2
+ pinnedByTask: Map<string, string>;
3
+ notes: string[];
4
+ }
5
+ export declare function resolveSchedulePins(worktreePaths: readonly string[], schedulesPathOverride?: string): Promise<SchedulePinResult>;
6
+ export declare function loadSchedulePinsForSweep(entries: ReadonlyArray<{
7
+ path: string;
8
+ isBare?: boolean;
9
+ }>, warnings: string[], schedulesPathOverride?: string): Promise<SchedulePinResult>;
10
+ export declare function applySchedulePin<V extends string>(verdict: V, worktreePath: string, pins: SchedulePinResult, warnings: string[]): V | 'active';