repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
pi/agent/extensions/files-widget/types.ts
RawFile outline
- DiffStats line 1
- additions line 2
- deletions line 3
- FileNode line 6
- name line 7
- path line 8
- isDirectory line 9
- isSymlink line 10
- realPath line 11
- parent line 12
- children line 13
- expanded line 14
- gitStatus line 15
- agentModified line 16
- lineCount line 17
- diffStats line 18
- hasChangedChildren line 19
- totalLines line 21
- totalAdditions line 22
- totalDeletions line 23
- lineCountComplete line 24
- loading line 25
- FlatNode line 28
- node line 29
- depth line 30
export interface DiffStats {
additions: number;
deletions: number;
}
export interface FileNode {
name: string;
path: string;
isDirectory: boolean;
isSymlink?: boolean;
realPath?: string;
parent?: FileNode;
children?: FileNode[];
expanded?: boolean;
gitStatus?: string;
agentModified?: boolean;
lineCount?: number;
diffStats?: DiffStats;
hasChangedChildren?: boolean; // For directories
// Aggregated stats for directories
totalLines?: number;
totalAdditions?: number;
totalDeletions?: number;
lineCountComplete?: boolean;
loading?: boolean;
}
export interface FlatNode {
node: FileNode;
depth: number;
}