repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

pi/agent/extensions/files-widget/types.ts

Raw
File outline
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;
}