agent-afk 5.84.8 → 5.84.9
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-orphan-guard.d.ts +14 -0
- package/dist/agent/worktree-sweep.d.ts +1 -1
- package/dist/cli.mjs +456 -456
- package/dist/index.mjs +161 -161
- package/dist/telegram.mjs +215 -215
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type OrphanPreserveReason = 'too-young' | 'non-rebuildable-content' | 'scan-failed' | 'scan-budget-exhausted';
|
|
2
|
+
export type OrphanVerdict = {
|
|
3
|
+
remove: true;
|
|
4
|
+
} | {
|
|
5
|
+
remove: false;
|
|
6
|
+
because: OrphanPreserveReason;
|
|
7
|
+
detail?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ORPHAN_SCAN_MAX_DEPTH = 8;
|
|
10
|
+
export declare const ORPHAN_SCAN_MAX_ENTRIES = 4000;
|
|
11
|
+
export declare function classifyOrphanDir(orphanPath: string, orphanAgeMs: number, minAgeMs: number, limits?: {
|
|
12
|
+
maxDepth?: number;
|
|
13
|
+
maxEntries?: number;
|
|
14
|
+
}): Promise<OrphanVerdict>;
|
|
@@ -7,7 +7,7 @@ export type ExecFileFn = (file: string, args: string[], opts?: {
|
|
|
7
7
|
stdout: string;
|
|
8
8
|
stderr: string;
|
|
9
9
|
}>;
|
|
10
|
-
type WorktreeVerdict = 'empty' | 'stale-clean' | 'stale-dirty' | 'locked' | 'active' | 'orphaned-dir' | 'orphaned-registration' | 'dead-owner';
|
|
10
|
+
type WorktreeVerdict = 'empty' | 'stale-clean' | 'stale-dirty' | 'locked' | 'active' | 'orphaned-dir' | 'orphaned-dir-preserved' | 'orphaned-registration' | 'dead-owner';
|
|
11
11
|
export interface SweepOptions {
|
|
12
12
|
execFile: ExecFileFn;
|
|
13
13
|
repoRoot: string;
|