feat: add fallback_steps to TypeScript types (Task 15)

Add optional fallback_steps field to ProceduralStep interface.
Add FallbackStepRecord interface and fallback_decisions field to Session.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-16 01:13:29 -04:00
parent d97d84a035
commit 5e4d323ef1
2 changed files with 10 additions and 0 deletions

View File

@@ -42,6 +42,14 @@ export interface TreeSnapshot extends TreeStructure {
tree_type?: string
}
export interface FallbackStepRecord {
parent_step_id: string
fallback_step_id: string
completed_at: string | null
notes: string | null
outcome: 'resolved' | 'not_resolved' | 'skipped'
}
export interface Session {
id: string
tree_id: string
@@ -66,6 +74,7 @@ export interface Session {
target_label?: string
psa_ticket_id?: string | null
psa_connection_id?: string | null
fallback_decisions?: FallbackStepRecord[]
}
export interface SessionCreate {

View File

@@ -122,6 +122,7 @@ export interface ProceduralStep {
section_header?: string
reference_url?: string
library_visibility?: 'team' | 'public'
fallback_steps?: ProceduralStep[] // Optional fallback alternatives
}
export interface CustomProceduralStep {