Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

953 B
Raw Blame
/** Local Desktop worker project selection. Never sent through device-link. */
export interface WorkerWorktreeRequest {
  sourceBranch: string;
}
/** Metadata registered under the Worker session, never inferred from its cwd. */
export interface WorkerOwnedWorktree {
  path: string;
  branch: string;
}
export interface WorkerProjectInfo {
  directory: string;
  baseRepo: string | null;
  branch: string | null;
  /** Main-process HEAD probe; branch retains the full commit ID when detached. */
  headState?: 'branch' | 'detached' | 'unborn';
  exists: boolean;
  dirty: boolean;
  isWorktree: boolean;
  /** Checkout root name, even when telemetry points into a subdirectory. */
  worktreeName?: string;
}
export interface WorkerProjectContext {
  recordedDirectory: string;
  inherited: WorkerProjectInfo;
  selected: WorkerProjectInfo;
  dialogue: boolean;
  projects: Array<{ path: string; name: string; description: string; missing: boolean }>;
}