Documentation
¶
Overview ¶
Package debug provides an interactive TUI for debugging Cromwell workflow metadata.
Index ¶
- Constants
- func ExpandIcon(expanded bool, hasChildren bool) string
- func NodeTypeIcon(t NodeType) string
- func StatusIcon(status string) string
- func StatusStyle(status string) lipgloss.Style
- func TreePrefix(depth int, isLast bool, parentExpanded bool) string
- type CallDetails
- type ChatDataSelection
- type ChatDependencies
- type CollectedChatData
- type ExecutionEvent
- type Failure
- type KeyMap
- type ModalKind
- type Model
- type NodeType
- type NodeViewState
- type PanelFocus
- type ProblematicTask
- type TreeNode
- type ViewMode
- type WorkflowMetadata
- type WorkflowPreemptionSummary
Constants ¶
const ( NodeTypeWorkflow = tree.NodeTypeWorkflow NodeTypeCall = tree.NodeTypeCall NodeTypeSubWorkflow = tree.NodeTypeSubWorkflow NodeTypeShard = tree.NodeTypeShard )
NodeType constants
Variables ¶
This section is empty.
Functions ¶
func ExpandIcon ¶
ExpandIcon returns the expand/collapse icon.
func NodeTypeIcon ¶
NodeTypeIcon returns an icon for the node type.
func StatusStyle ¶
StatusStyle returns the appropriate style for a status.
Types ¶
type CallDetails ¶
Type aliases from new packages for backward compatibility
type ChatDataSelection ¶ added in v1.0.3
type ChatDataSelection struct {
Metadata bool
Stdout bool
Stderr bool
MonitoringLog bool
BatchLogs bool
}
ChatDataSelection holds user selections for what data to include in chat context.
func DefaultChatDataSelection ¶ added in v1.0.3
func DefaultChatDataSelection() ChatDataSelection
DefaultChatDataSelection returns the default selection (metadata and stderr enabled).
type ChatDependencies ¶ added in v1.0.3
ChatDependencies holds optional dependencies for chat functionality.
type CollectedChatData ¶ added in v1.0.3
type CollectedChatData struct {
Metadata *workflow.Call
StdoutContent string
StderrContent string
MonitoringReport *workflow.EfficiencyReport
BatchLogs []ports.BatchLogEntry
Errors []string // Data sources that failed to load
}
CollectedChatData holds the data collected for chat context.
type ExecutionEvent ¶
type ExecutionEvent = workflow.ExecutionEvent
Type aliases from new packages for backward compatibility
type KeyMap ¶
type KeyMap struct {
Up key.Binding
Down key.Binding
Left key.Binding
Right key.Binding
Enter key.Binding
Space key.Binding
Tab key.Binding
Quit key.Binding
Help key.Binding
Escape key.Binding
Details key.Binding
ExpandAll key.Binding
CollapseAll key.Binding
Home key.Binding
End key.Binding
PageUp key.Binding
PageDown key.Binding
Copy key.Binding
Chat key.Binding
}
KeyMap defines all key bindings for the TUI.
type ModalKind ¶ added in v1.0.3
type ModalKind int
ModalKind identifies which modal is currently active.
type Model ¶
type Model struct {
// Navigation state (for external handlers to check)
// contains filtered or unexported fields
}
Model is the main model for the debug TUI.
func NewModel ¶
func NewModel(wf *workflow.Workflow, fetcher ports.WorkflowMetadataFetcher, muc *workflowapp.MonitoringUseCase, fp ports.FileProvider, bluc *workflowapp.GetBatchLogsUseCase) Model
NewModel creates a model with all dependencies. The workflow is parsed by the handler and passed in; tree building happens here.
func NewModelWithChat ¶ added in v1.0.3
func NewModelWithChat(wf *workflow.Workflow, fetcher ports.WorkflowMetadataFetcher, muc *workflowapp.MonitoringUseCase, fp ports.FileProvider, bluc *workflowapp.GetBatchLogsUseCase, chatDeps *ChatDependencies) Model
NewModelWithChat creates a model with all dependencies including optional chat support.
type NodeViewState ¶ added in v1.0.2
type NodeViewState struct {
ViewMode ViewMode
LogCursor int
PanelFocus PanelFocus
}
NodeViewState persists the view state for a specific node.
type PanelFocus ¶
type PanelFocus int
PanelFocus represents which panel has focus.
const ( FocusTree PanelFocus = iota FocusDetails )
type ProblematicTask ¶
type ProblematicTask = workflow.PreemptionProblematicTask
Type aliases from new packages for backward compatibility
type WorkflowMetadata ¶
Type aliases from new packages for backward compatibility
type WorkflowPreemptionSummary ¶
type WorkflowPreemptionSummary = workflow.PreemptionSummary
Type aliases from new packages for backward compatibility
Source Files
¶
- chat_context.go
- helpers.go
- keys.go
- modal_batchlogs.go
- modal_call.go
- modal_chat.go
- modal_chat_selection.go
- modal_dispatch.go
- modal_kind.go
- modal_logs.go
- modal_timeline.go
- modal_workflow.go
- modals.go
- model.go
- search.go
- styles.go
- types.go
- update.go
- update_async.go
- update_modals.go
- update_navigation.go
- view.go
- view_details.go
- view_failures.go
- view_footer.go
- view_header.go
- view_help.go
- view_tree.go