export type VibeType = 'PROJECT' | 'WORKSPACE' | 'REPOSITORY' | 'MONOREPO' | 'PACKAGE' | 'CUSTOM'; export type VibeStatus = 'ACTIVE' | 'INACTIVE' | 'ARCHIVED' | 'ERROR'; /** * Lightweight projection of an attached agent (the picker, list views, and * Vibe → Agents tab consume this). The svc-side join carries ownership + * environment metadata; surface what the UI needs without dragging the * full Agent shape through every cached path. */ export interface VibeAttachedAgent { id: string; name: string; isActive: boolean; /** * NULL = shared workspace agent (alpha, prod, customer envs) usable by any * vibe collaborator. Non-null = personal agent — only the owner may run * sessions / tunnels / exec / plugins through it. */ ownerUserId?: string | null; } export interface Vibe { id: string; workspaceId: string; name: string; description: string | null; type: VibeType; status: VibeStatus; path: string | null; parentId: string | null; gitBranch: string | null; gitRemote: string | null; gitStatus: string | null; environmentVariables: Record; tags: string[]; metadata: Record; createdAt: string; updatedAt: string; /** Attached agents (multi-agent collaboration). Empty when none. */ agents?: VibeAttachedAgent[]; parent?: { id: string; name: string; }; children?: Vibe[]; sessions?: { id: string; name: string; status: string; }[]; notes?: { id: string; title: string; }[]; } export interface VibeFilter { workspaceId?: string; /** Filter to vibes that have any of these agents attached. */ attachedAgentIds?: string[]; parentId?: string | null; type?: VibeType; status?: VibeStatus; tags?: string[]; search?: string; } export interface CreateVibeInput { workspaceId: string; name: string; description?: string; type: VibeType; path?: string; parentId?: string; environmentVariables?: Record; tags?: string[]; metadata?: Record; } export interface UpdateVibeInput { name?: string; description?: string; path?: string; parentId?: string; environmentVariables?: Record; tags?: string[]; metadata?: Record; }