agent-afk 5.312.5 → 5.312.6
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.
- package/dist/agent/worktree/worktree-sweep.actions.d.ts +14 -0
- package/dist/cli.mjs +432 -432
- package/dist/index.mjs +206 -206
- package/dist/telegram/elicitation-handler.choice.d.ts +18 -0
- package/dist/telegram/elicitation-handler.render.d.ts +6 -0
- package/dist/telegram/elicitation-handler.text.d.ts +3 -0
- package/dist/telegram/elicitation-handler.types.d.ts +19 -0
- package/dist/telegram.mjs +231 -231
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type WorktreeMeta, type WorktreeCandidate, type WorktreeVerdict, type DirtyReason } from './worktree-sweep.classify.js';
|
|
2
|
+
import type { ExecFileFn, SweepResult } from './worktree-sweep.js';
|
|
3
|
+
export declare function sweepOrphanDirs(orphanedDirs: string[], effectiveDryRun: boolean, result: SweepResult): Promise<void>;
|
|
4
|
+
export interface CandidateProbeResult {
|
|
5
|
+
isDirty: boolean;
|
|
6
|
+
dirtyReason: DirtyReason;
|
|
7
|
+
commitsAhead: number;
|
|
8
|
+
commitsUnpushed: number;
|
|
9
|
+
ownerLiveness: WorktreeCandidate['ownerLiveness'];
|
|
10
|
+
}
|
|
11
|
+
export declare function probeCandidate(execFile: ExecFileFn, repoRoot: string, entryPath: string, entryHead: string | undefined, mainHead: string | undefined, meta: WorktreeMeta | undefined, ageMs: number, liveSessionCwds: string[], warnings: string[]): Promise<CandidateProbeResult>;
|
|
12
|
+
export declare function applyVerdictAction(verdict: WorktreeVerdict, execFile: ExecFileFn, repoRoot: string, entryPath: string, entryBranch: string | undefined, entryLockReason: string | undefined, candidate: WorktreeCandidate, meta: WorktreeMeta | undefined, result: SweepResult): Promise<void>;
|
|
13
|
+
export declare function resolveWorktreeAgeMs(entryPath: string, meta: WorktreeMeta | undefined): Promise<number>;
|
|
14
|
+
export declare function collectOrphanDirs(afkWorktreesRoot: string, registeredPaths: Set<string>, warnings: string[]): Promise<string[]>;
|