← Files BranchaARCHIVED FILE
skills/brancha/app/src/ui/types.ts
705 Bytes · Oct 3, 2026 · 06:30 UTC
import type { NodeType } from '../shared/types';
export type { ArtifactType, NodeType } from '../shared/types';
export type Id = string;
export type Project = {
id: Id;
title: string;
prompt: string;
created_at: string;
updated_at: string;
node_count?: number;
generating_count?: number;
preview_node_id?: Id | null;
};
export type CreatedProject = Project & { rootId: Id };
export type TreeNode = {
seq: number;
id: Id;
project_id: Id;
parent_id: Id | null;
position: number;
type: NodeType;
title: string;
content: string | null;
artifact_revision: string;
created_at: string;
updated_at: string;
};
export type Tree = { project: Project; nodes: TreeNode[] };
SHA-256: 3367613f752afcf99d9c7e8aadc8708875db1184b8592258c7a25084a3d3a697