feat: add ForkInfo type and fork fields to Tree/TreeListItem

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-02-25 00:04:04 -05:00
parent ced39adbff
commit db444c83e0

View File

@@ -139,6 +139,14 @@ export interface ProceduralTreeStructure {
steps: ProceduralStep[]
}
export interface ForkInfo {
parent_tree_id: string
parent_tree_name: string | null
fork_depth: number
fork_reason: string | null
has_parent_updates: boolean
}
// API response types
export type TreeStatus = 'draft' | 'published'
@@ -164,6 +172,9 @@ export interface Tree {
created_at: string
updated_at: string
usage_count: number
fork_info?: ForkInfo | null
parent_tree_id?: string | null
fork_depth?: number
}
export interface TreeListItem {
@@ -187,6 +198,8 @@ export interface TreeListItem {
created_at: string
updated_at: string
visibility: 'private' | 'team' | 'link' | 'public'
fork_depth?: number
parent_tree_id?: string | null
}
export interface TreeCreate {