Documentation
¶
Overview ¶
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Package partials provides reusable Templ fragments for HTMX responses.
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Package partials provides HTMX-targeted partial views.
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
templ: version: v0.3.1020
Index ¶
- Constants
- func AgentKnowledgeForm(ctx context.Context, item model.AgentKnowledge, isNew bool, ...) templ.Component
- func AgentKnowledgeRow(ctx context.Context, item model.AgentKnowledge) templ.Component
- func AgentKnowledgeTable(items []model.AgentKnowledge, q string) templ.Component
- func AgentMemoryModal() templ.Component
- func AgentMemoryTable(ctx context.Context, items []model.AgentMemoryFact, scope string) templ.Component
- func AgentResourcePreview(title, bodyHTML string, truncated bool, fullURL string) templ.Component
- func AgentResourcePreviewURL(sessionID, resourceURI string, full bool) templ.SafeURL
- func AgentScheduledTaskDetailURL(taskID string) templ.SafeURL
- func AgentScheduledTaskKindLabel(ctx context.Context, kind string) string
- func AgentScheduledTaskPageTitle(task model.AgentScheduledTask) string
- func AgentScheduledTaskRow(ctx context.Context, item model.AgentScheduledTask) templ.Component
- func AgentScheduledTaskRunsTable(ctx context.Context, items []model.AgentScheduledTaskRun) templ.Component
- func AgentScheduledTaskScheduleSummary(task model.AgentScheduledTask) string
- func AgentScheduledTaskStateOptions() []string
- func AgentScheduledTaskStatePanel(task model.AgentScheduledTask) templ.Component
- func AgentScheduledTaskStateURL(taskID string) templ.SafeURL
- func AgentScheduledTaskTable(items []model.AgentScheduledTask) templ.Component
- func AgentScheduledTaskTextPreview(value string, limit int) string
- func AgentScheduledTaskTimeOrDash(value *time.Time) string
- func AgentSessionEntriesTable(ctx context.Context, entries []model.AgentSessionEntry) templ.Component
- func AgentSessionEntryPayload(payloadJSON string) templ.Component
- func AgentSessionEntryRow(entry model.AgentSessionEntry) templ.Component
- func AgentSessionExportURL(flag string) templ.SafeURL
- func AgentSessionPageTitle(session model.AgentSession) string
- func AgentSessionPlansCard(sessionID string, plans []model.AgentPlan) templ.Component
- func AgentSessionRow(item model.AgentSession) templ.Component
- func AgentSessionStateBadge(state string) templ.Component
- func AgentSessionSummariesTable(ctx context.Context, items []model.AgentSessionSummary, q string) templ.Component
- func AgentSessionTable(items []model.AgentSession, nextCursor string) templ.Component
- func AgentSessionTableAppend(items []model.AgentSession, nextCursor string) templ.Component
- func AgentSessionThreadURL(flag string) templ.SafeURL
- func AgentSessionTodosCard(todos []model.AgentTodo) templ.Component
- func AgentSkillFileForm(ctx context.Context, skill model.AgentSkill, file model.AgentSkillFile, ...) templ.Component
- func AgentSkillFileRow(ctx context.Context, skill model.AgentSkill, file model.AgentSkillFile) templ.Component
- func AgentSkillFileTable(skill model.AgentSkill, files []model.AgentSkillFile) templ.Component
- func AgentSkillForm(ctx context.Context, item model.AgentSkill, isNew bool, ...) templ.Component
- func AgentSkillRow(ctx context.Context, item model.AgentSkill) templ.Component
- func AgentSkillTable(items []model.AgentSkill) templ.Component
- func AgentSubagentForm(ctx context.Context, params model.AgentSubagentFormParams) templ.Component
- func AgentSubagentRow(ctx context.Context, item model.AgentSubagent) templ.Component
- func AgentSubagentTable(items []model.AgentSubagent) templ.Component
- func AgentSubagentTaskDetail(ctx context.Context, item model.AgentSubagentTask) templ.Component
- func AgentSubagentTaskRow(ctx context.Context, item model.AgentSubagentTask) templ.Component
- func AgentSubagentTaskTable(ctx context.Context, items []model.AgentSubagentTask) templ.Component
- func AppStatusBadge(ctx context.Context, status homelab.AppStatus) templ.Component
- func ApprovalCountBadge(count int) templ.Component
- func ApprovalCountBadgeNav(count int) templ.Component
- func BrandMark(class string) templ.Component
- func CapabilityCard(ctx context.Context, d hub.Descriptor) templ.Component
- func CapabilityGrid(ctx context.Context, descriptors []hub.Descriptor, filtered bool) templ.Component
- func CapsLabel(caps []homelab.AppCapability) string
- func ChartScripts() templ.Component
- func ChatAgentApprovalPanel(sessionID string, endpoints ChatAgentEndpoints, ...) templ.Component
- func ChatAgentApprovalScripts() templ.Component
- func ChatAgentApproveAlwaysHint(ctx context.Context, suggestedPattern string) string
- func ChatAgentApproveAlwaysLabel(ctx context.Context) string
- func ChatAgentApproveDenyLabel(ctx context.Context) string
- func ChatAgentApproveOnceHint(ctx context.Context) string
- func ChatAgentApproveOnceLabel(ctx context.Context) string
- func ChatAgentAssistantMeta(msg model.AgentChatMessage, showCopy bool) templ.Component
- func ChatAgentAttachButton(id string, hidden bool, disabled bool) templ.Component
- func ChatAgentComposer(ctx context.Context, endpoints ChatAgentEndpoints, placeholder string, ...) templ.Component
- func ChatAgentComposerScripts() templ.Component
- func ChatAgentContextPopover(ctx context.Context, endpoints ChatAgentEndpoints) templ.Component
- func ChatAgentContextRing() templ.Component
- func ChatAgentCopyButton(payload string, asMarkdown bool) templ.Component
- func ChatAgentDetailURL(template, sessionID string) string
- func ChatAgentDurationFooter(msg model.AgentChatMessage) templ.Component
- func ChatAgentDurationLabel(ms int64) string
- func ChatAgentListActionURL(template, sessionID, filter string) string
- func ChatAgentMessage(msg model.AgentChatMessage, streaming bool) templ.Component
- func ChatAgentOneLinePreview(text string) string
- func ChatAgentPendingPromptKey(sessionID string) string
- func ChatAgentPermissionsForm(ctx context.Context, data PermissionFormPageData) templ.Component
- func ChatAgentRichInput(id, className, placeholder, ariaLabel string, disabled bool) templ.Component
- func ChatAgentSessionActivityLabel(activity string) string
- func ChatAgentSessionDayGroup(ctx context.Context, group model.AgentSessionDayGroup, ...) templ.Component
- func ChatAgentSessionList(ctx context.Context, items []model.AgentSession, nextCursor string, ...) templ.Component
- func ChatAgentSessionListAppend(ctx context.Context, items []model.AgentSession, nextCursor string, ...) templ.Component
- func ChatAgentSessionListFilters(ctx context.Context, endpoints ChatAgentEndpoints) templ.Component
- func ChatAgentSessionListURL(endpoints ChatAgentEndpoints, cursor string) string
- func ChatAgentSessionLoadMore(ctx context.Context, nextCursor string, endpoints ChatAgentEndpoints, oob bool) templ.Component
- func ChatAgentSessionRow(ctx context.Context, item model.AgentSession, endpoints ChatAgentEndpoints) templ.Component
- func ChatAgentSessionTitle(item model.AgentSession) string
- func ChatAgentSessionsDrawer(ctx context.Context, endpoints ChatAgentEndpoints) templ.Component
- func ChatAgentSettingsCluster(modelID string, thinkingID string, approvalID string, ...) templ.Component
- func ChatAgentThread(ctx context.Context, session model.AgentSession, ...) templ.Component
- func ChatAgentThreadScripts() templ.Component
- func ChatAgentTodosList(todos []model.AgentTodo) templ.Component
- func ChatAgentTodosPanel(todos []model.AgentTodo) templ.Component
- func ChatAgentToolCardExpanded(status string) bool
- func ChatAgentToolMessage(msg model.AgentChatMessage) templ.Component
- func ChatAgentToolPreview(row model.AgentChatMessage) string
- func ChatAgentWorkspaceSelect(id string, options []WorkspaceOption, disabled bool) templ.Component
- func ClassifyHistoryMessage(role, text string, createdAt time.Time) []model.AgentChatMessage
- func ClipCopyIconButton(testID string, text string, title string) templ.Component
- func ClipCopyScripts() templ.Component
- func ClipRow(ctx context.Context, item ClipListItem) templ.Component
- func ClipsTable(ctx context.Context, items []ClipListItem) templ.Component
- func CommandPalette(ctx context.Context) templ.Component
- func CommandPalettePagesJSON(ctx context.Context) string
- func ConfigForm(item model.ConfigItem, isNew bool, errors map[string]string) templ.Component
- func ConfigRow(ctx context.Context, item model.ConfigItem) templ.Component
- func ConfigTable(items []model.ConfigItem) templ.Component
- func ConfirmModal(ctx context.Context) templ.Component
- func CursorLoadMore(id string, listURL string, rowsTarget string, nextCursor string, oob bool) templ.Component
- func DataEventsTable(ctx context.Context, sources, eventTypes []string, events []model.DataEvent, ...) templ.Component
- func EmptyState(message string) templ.Component
- func EmptyStateCTA(message string, detail string, href string, cta string) templ.Component
- func EmptyStateHXCTA(message string, detail string, hxGet string, hxTarget string, hxSwap string, ...) templ.Component
- func EmptyStateOnClickCTA(message string, detail string, onClick string, cta string) templ.Component
- func EventFilterScripts() templ.Component
- func EventPagination(info PageInfo) templ.Component
- func EventPayloadDetail(payloadJSON string) templ.Component
- func EventRunStatusChipClass(status string) string
- func EventRunStatusText(ctx context.Context, status string) string
- func EventSourceChipClass(source string) string
- func EventTypeChipClass(eventType string) string
- func FilterBar(ctx context.Context, p FilterBarParams) templ.Component
- func FormError(message string) templ.Component
- func FormatChatAgentDuration(ms int64) string
- func FormatChatAgentMessageHTML(role, text string) string
- func FormatChatAgentRelativeTime(t time.Time) string
- func FormatDurationMs(ms int64) string
- func FormatEntryPayload(payload map[string]any) string
- func FormatFunctionRunDuration(ms int64) string
- func FormatPendingApprovalBadgeText(count int) string
- func FormatRuleSetSummary(ctx context.Context, rs permission.RuleSet) string
- func FunctionCallPath(name string) string
- func FunctionCallURL(name, publicOrigin string) string
- func FunctionCallVersionPath(name string, version int) string
- func FunctionCallVersionURL(name string, version int, publicOrigin string) string
- func FunctionListTable(ctx context.Context, entries []FunctionListEntry) templ.Component
- func FunctionRunsTable(ctx context.Context, runs []*model.FunctionRun) templ.Component
- func FunctionStats(ctx context.Context, name string, stats *types.FunctionStats, ...) templ.Component
- func FunctionStatsScripts() templ.Component
- func FunctionStatsURL(name string, days int, groupBy string) string
- func FunctionWebPath(name string) string
- func GroupAgentSessionsByDay(ctx context.Context, items []model.AgentSession, now time.Time) []model.AgentSessionDayGroup
- func GroupAgentSessionsForList(ctx context.Context, items []model.AgentSession, now time.Time) []model.AgentSessionDayGroup
- func HealthzCapabilities(ctx context.Context, caps []HealthzCap) templ.Component
- func HealthzCapabilitiesPanel(ctx context.Context) templ.Component
- func HealthzStatus(ctx context.Context, data HealthzData) templ.Component
- func HighlightJSON(raw string) string
- func HomeDashboardBlock(ctx context.Context, d HomeDashboard) templ.Component
- func HomeDashboardSummary(ctx context.Context, d HomeDashboard) templ.Component
- func HomeQuickLinksSection(ctx context.Context, links []HomeQuickLink) templ.Component
- func HomeSetupChecklist(ctx context.Context, items []HomeChecklistItem) templ.Component
- func HomelabCard(ctx context.Context, app homelab.App) templ.Component
- func HomelabGrid(ctx context.Context, apps []homelab.App, scannedAt string) templ.Component
- func HomelabRegistryScripts() templ.Component
- func HtmxIndicator() templ.Component
- func HubAppsTable(ctx context.Context, apps []homelab.App, updatedAts map[string]string) templ.Component
- func I18nScript(ctx context.Context) templ.Component
- func InboxCountBadge(count int) templ.Component
- func InboxCountBadgeNav(count int) templ.Component
- func InboxList(p InboxListParams) templ.Component
- func InboxListURL(filter string) string
- func LangSwitcher(ctx context.Context) templ.Component
- func LifeBuildStatsChartsJSON(ctx context.Context, page pkglife.StatsPage) string
- func LifeRadarScripts() templ.Component
- func LifeStatsPanel(data LifeStatsData) templ.Component
- func LifeStatsScripts() templ.Component
- func NormalizeNotifyHistoryGroup(group string) string
- func NotificationsTable(ctx context.Context, p NotificationHistoryParams) templ.Component
- func NotifyChannelForm(ctx context.Context, item model.NotifyChannel, isNew bool, ...) templ.Component
- func NotifyChannelJumpURL(channel string) string
- func NotifyChannelRow(ctx context.Context, item model.NotifyChannel, highlighted bool) templ.Component
- func NotifyChannelsTable(ctx context.Context, channels []model.NotifyChannel, highlight string) templ.Component
- func NotifyHistoryListURL(group, channel, ruleID, cursor string) string
- func NotifyPlayground(ctx context.Context, p NotifyPlaygroundParams) templ.Component
- func NotifyPlaygroundPayloadField(ctx context.Context, payloadJSON, errMsg string) templ.Component
- func NotifyPlaygroundResult(ctx context.Context, p NotifyPlaygroundResultParams) templ.Component
- func NotifyRecordReadURL(id int64) string
- func NotifyRecordRowClass(status string) string
- func NotifyRuleForm(ctx context.Context, item model.NotifyRule, isNew bool, ...) templ.Component
- func NotifyRuleJumpURL(ruleID string) string
- func NotifyRuleRow(ctx context.Context, item model.NotifyRule, templateIDs []string, ...) templ.Component
- func NotifyRulesTable(ctx context.Context, rules []model.NotifyRule, templateIDs []string, ...) templ.Component
- func NotifyTemplateForm(ctx context.Context, item model.NotifyTemplate, isNew bool, ...) templ.Component
- func NotifyTemplateRow(ctx context.Context, item model.NotifyTemplate) templ.Component
- func NotifyTemplatesTable(ctx context.Context, templates []model.NotifyTemplate) templ.Component
- func PageHeader(ctx context.Context, titleKey, subtitleKey string) templ.Component
- func PageHeaderLiteral(ctx context.Context, title, subtitle string) templ.Component
- func PanelSkeleton(ctx context.Context) templ.Component
- func ParseToolSummaryLine(text string) (name, args string, ok bool)
- func PermissionActionLabel(ctx context.Context, action string) string
- func PermissionApprovalModeLabel(ctx context.Context, mode string) string
- func PermissionFieldError(errors map[string]string, key string) string
- func PermissionPatternActionError(errors map[string]string, key string, idx int) string
- func PermissionPatternActionErrorClass(errors map[string]string, key string, idx int) string
- func PermissionPatternError(errors map[string]string, key string, idx int) string
- func PermissionPatternErrorClass(errors map[string]string, key string, idx int) string
- func PipelineIsPublished(def model.PipelineDefinition) bool
- func PipelineLastRunOrDash(value *time.Time) string
- func PipelineListTable(ctx context.Context, entries []PipelineListEntry) templ.Component
- func PipelineRunLivePath(name string, runID int64) string
- func PipelineRunLiveURL(pipelineName string, runID int64) string
- func PipelineRunRetryButton(ctx context.Context, retry PipelineRunRetry) templ.Component
- func PipelineRunRetryPath(name string, runID int64) string
- func PipelineRunsTable(ctx context.Context, name string, runs []model.PipelineRun) templ.Component
- func PipelineStats(ctx context.Context, name string, stats *types.PipelineStats, ...) templ.Component
- func PipelineStatsScripts() templ.Component
- func PipelineStatsURL(name string, days int, groupBy string) string
- func PipelineStepRunsDetail(ctx context.Context, steps []model.PipelineStepRun, retry PipelineRunRetry) templ.Component
- func PipelineTriggerIcon(tr PipelineTriggerSummary) templ.Component
- func PipelineTriggerLetter(typ string) string
- func PipelineWaterfallBarClass(status int) string
- func PipelineWebPath(name string) string
- func PrettyJSON(raw string) string
- func PublishedVersionAttr(v *int) string
- func RelationDetail(ctx context.Context, p RelationDetailParams) templ.Component
- func RelationEdgeBadge(edge types.ResourceEdge, direction string) templ.Component
- func RelationNodeCard(ref types.ResourceRef, side string) templ.Component
- func RelationSearchResults(ctx context.Context, results []types.ResourceRef) templ.Component
- func RelationTree(ctx context.Context, p RelationTreeParams) templ.Component
- func RenderChatAgentMarkdownHTML(text string) string
- func RunLatencyCompactOrDash(s *types.RunLatencyStats) string
- func RunLatencyCompactTip(s *types.RunLatencyStats) string
- func RunLatencyP50OrDash(s *types.RunLatencyStats) string
- func RunLatencyP95OrDash(s *types.RunLatencyStats) string
- func RunLatencySuccessOrDash(s *types.RunLatencyStats) string
- func ServerDefaultInheritLabel(ctx context.Context, yamlValue string) string
- func ServerDefaultThinkingInheritLabel(ctx context.Context) string
- func ServerDefaultToolInheritLabel(ctx context.Context, yamlTool string) string
- func SessionBadge(username string) templ.Component
- func SimilarEventsURL(source, eventType string) string
- func StatusIcon(spec StatusIconSpec, testID string) templ.Component
- func StepCard(ctx context.Context) templ.Component
- func TableFilterBar(placeholder string, testID string) templ.Component
- func TableFilterScripts() templ.Component
- func TokenFilterText(item model.TokenItem) string
- func TokenForm(errors map[string]string) templ.Component
- func TokenRow(ctx context.Context, item model.TokenItem) templ.Component
- func TokenTable(ctx context.Context, items []model.TokenItem) templ.Component
- func TokenUsage(stats *types.TokenUsageStats) templ.Component
- func TokenUsageScripts() templ.Component
- func TriggerCard(ctx context.Context) templ.Component
- func TruncateChatAgentSessionPreview(text string, limit int) string
- func TruncateErrorSummary(s string) string
- func ViewExpiredPage() templ.Component
- func ViewFormContent(fields []any) templ.Component
- func ViewImageContent(url string, alt string) templ.Component
- func ViewMarkdownContent(content templ.Component) templ.Component
- func ViewPipelineRunContent(steps any) templ.Component
- func ViewTextContent(content string) templ.Component
- func WaterfallBarStyle(bar RunWaterfallBar) string
- func WebhookLogsTable(ctx context.Context, sources, eventTypes []string, events []model.DataEvent, ...) templ.Component
- func WebhookMethodChipClass(method string) string
- func WebhookPayloadDetail(headersJSON, bodyJSON string, bodyTruncated bool) templ.Component
- func WorkflowDAG(ctx context.Context, view WorkflowDAGView) templ.Component
- func WorkflowDAGNodeIndex(view WorkflowDAGView, layerIdx, nodeIdx int) int
- func WorkflowInputDefaultString(def types.WorkflowInputDef) string
- func WorkflowInputField(in types.WorkflowInputDef) templ.Component
- func WorkflowInputIsBoolean(typ string) bool
- func WorkflowInputIsJSON(typ string) bool
- func WorkflowInputIsNumber(typ string) bool
- func WorkflowInputsReadonly(ctx context.Context, inputs []types.WorkflowInputDef) templ.Component
- func WorkflowListTable(ctx context.Context, entries []WorkflowListEntry) templ.Component
- func WorkflowRunDuration(r model.WorkflowRun) string
- func WorkflowRunNowForm(ctx context.Context, name string, inputs []types.WorkflowInputDef) templ.Component
- func WorkflowRunStatusClass(status int) string
- func WorkflowRunStatusText(ctx context.Context, status int) string
- func WorkflowRunsTable(ctx context.Context, name string, runs []model.WorkflowRun) templ.Component
- func WorkflowStats(ctx context.Context, name string, stats *types.WorkflowStats, ...) templ.Component
- func WorkflowStatsScripts() templ.Component
- func WorkflowStatsURL(name string, days int, groupBy string) string
- func WorkflowStepKey(s model.WorkflowStepRun) string
- func WorkflowStepRunDuration(sr model.WorkflowStepRun) string
- func WorkflowStepRunsDetail(ctx context.Context, steps []model.WorkflowStepRun) templ.Component
- func WorkflowTriggerLabel(ctx context.Context, tr model.WorkflowTrigger) string
- func WorkflowTriggersTable(ctx context.Context, workflowName string, triggers []model.WorkflowTrigger, ...) templ.Component
- func WorkflowWaterfallBarClass(status int) string
- func WorkflowWebPath(name string) string
- func WorkflowWebhookURL(tr model.WorkflowTrigger, publicOrigin string) string
- func WorkflowWebhookURLPath(tr model.WorkflowTrigger) string
- func WorkflowYAMLSource(ctx context.Context, yamlText string) templ.Component
- func WriteTableEmptyOOB(ctx context.Context, w io.Writer, id, rowsSelector, colspan string, ...) error
- type ChatAgentEndpoints
- type ChatAgentPendingConfirm
- type ClipListItem
- type CommandPaletteNavPage
- type FilterBarParams
- type FunctionDraftData
- type FunctionListEntry
- type HealthzCap
- type HealthzData
- type HomeChecklistItem
- type HomeDashboard
- type HomeQuickLink
- type InboxItem
- type InboxListParams
- type LifeStatsData
- type NotificationGroup
- type NotificationHistoryParams
- type NotifyPlaygroundForm
- type NotifyPlaygroundParams
- type NotifyPlaygroundResultParams
- type PageInfo
- type PermissionFormField
- type PermissionFormPageData
- type PermissionKeyMeta
- type PermissionPatternRow
- type PipelineListEntry
- type PipelineRunRetry
- type PipelineTriggerSummary
- type RelationDetailParams
- type RelationTreeParams
- type RunErrorSummaryItem
- type RunWaterfallBar
- type SelectableModelOption
- type ServerDefaultsFormData
- type StatsTabState
- type StatusGlyph
- type StatusIconSpec
- func EnabledStatusIcon(ctx context.Context, enabled bool) StatusIconSpec
- func PipelineRuntimeStatusIcon(ctx context.Context, enabled bool) StatusIconSpec
- func ScheduledTaskRunStateStatusIcon(ctx context.Context, state string) StatusIconSpec
- func ScheduledTaskStateStatusIcon(ctx context.Context, state string) StatusIconSpec
- func SessionStateStatusIcon(ctx context.Context, state string) StatusIconSpec
- type WorkflowDAGNode
- type WorkflowDAGView
- type WorkflowListEntry
- type WorkspaceOption
Constants ¶
const ( )
Navbar badge element IDs. Each endpoint has one HTMX poller; other slots are OOB targets.
const ( // ChatAgentPendingPromptKeyPrefix stores the first user prompt before navigation. // The create flow writes sessionStorage (and ?prompt= only if storage fails); // the detail page must always clear the storage key after consuming either // source, or revisiting the session from the list will re-send the first prompt. ChatAgentPendingPromptKeyPrefix = "flowbot-chatagent-pending:" )
Variables ¶
This section is empty.
Functions ¶
func AgentKnowledgeForm ¶ added in v0.98.1
func AgentKnowledgeRow ¶ added in v0.98.1
func AgentKnowledgeTable ¶ added in v0.98.1
func AgentKnowledgeTable(items []model.AgentKnowledge, q string) templ.Component
func AgentMemoryModal ¶ added in v0.95.0
func AgentMemoryTable ¶ added in v0.98.1
func AgentResourcePreview ¶ added in v0.94.0
func AgentResourcePreviewURL ¶ added in v0.98.1
AgentResourcePreviewURL builds the HTMX preview URL for a resource URI.
func AgentScheduledTaskDetailURL ¶ added in v0.95.0
AgentScheduledTaskDetailURL builds the detail page URL for a scheduled task.
func AgentScheduledTaskKindLabel ¶ added in v0.95.0
AgentScheduledTaskKindLabel returns a user-friendly label for schedule kind.
func AgentScheduledTaskPageTitle ¶ added in v0.95.0
func AgentScheduledTaskPageTitle(task model.AgentScheduledTask) string
AgentScheduledTaskPageTitle returns the browser title for a scheduled task detail page.
func AgentScheduledTaskRow ¶ added in v0.95.0
func AgentScheduledTaskRunsTable ¶ added in v0.95.0
func AgentScheduledTaskScheduleSummary ¶ added in v0.95.0
func AgentScheduledTaskScheduleSummary(task model.AgentScheduledTask) string
AgentScheduledTaskScheduleSummary renders a compact schedule summary.
func AgentScheduledTaskStateOptions ¶ added in v0.95.0
func AgentScheduledTaskStateOptions() []string
AgentScheduledTaskStateOptions returns supported lifecycle states for manual updates.
func AgentScheduledTaskStatePanel ¶ added in v0.95.0
func AgentScheduledTaskStatePanel(task model.AgentScheduledTask) templ.Component
func AgentScheduledTaskStateURL ¶ added in v0.95.0
AgentScheduledTaskStateURL builds the state update endpoint for a scheduled task.
func AgentScheduledTaskTable ¶ added in v0.95.0
func AgentScheduledTaskTable(items []model.AgentScheduledTask) templ.Component
func AgentScheduledTaskTextPreview ¶ added in v0.95.0
AgentScheduledTaskTextPreview truncates long content for table cells.
func AgentScheduledTaskTimeOrDash ¶ added in v0.95.0
AgentScheduledTaskTimeOrDash formats an optional timestamp.
func AgentSessionEntriesTable ¶ added in v0.93.0
func AgentSessionEntryPayload ¶ added in v0.93.0
func AgentSessionEntryRow ¶ added in v0.93.0
func AgentSessionEntryRow(entry model.AgentSessionEntry) templ.Component
func AgentSessionExportURL ¶ added in v0.99.12
AgentSessionExportURL builds the session export download URL for a session flag.
func AgentSessionPageTitle ¶ added in v0.94.0
func AgentSessionPageTitle(session model.AgentSession) string
AgentSessionPageTitle returns the browser title for a session detail page.
func AgentSessionPlansCard ¶ added in v0.94.0
func AgentSessionRow ¶ added in v0.93.0
func AgentSessionRow(item model.AgentSession) templ.Component
func AgentSessionStateBadge ¶ added in v0.93.0
AgentSessionStateBadge renders a session lifecycle state as a tooltip icon.
func AgentSessionSummariesTable ¶ added in v0.98.1
func AgentSessionTable ¶ added in v0.93.0
func AgentSessionTable(items []model.AgentSession, nextCursor string) templ.Component
func AgentSessionTableAppend ¶ added in v0.98.1
func AgentSessionTableAppend(items []model.AgentSession, nextCursor string) templ.Component
AgentSessionTableAppend renders additional session rows plus an OOB Load more control.
func AgentSessionThreadURL ¶ added in v0.99.9
AgentSessionThreadURL builds the chatagent thread page URL for a session flag.
func AgentSessionTodosCard ¶ added in v0.98.0
AgentSessionTodosCard renders the session checklist on the inspect detail page.
func AgentSkillFileForm ¶ added in v0.94.0
func AgentSkillFileRow ¶ added in v0.94.0
func AgentSkillFileRow(ctx context.Context, skill model.AgentSkill, file model.AgentSkillFile) templ.Component
func AgentSkillFileTable ¶ added in v0.94.0
func AgentSkillFileTable(skill model.AgentSkill, files []model.AgentSkillFile) templ.Component
func AgentSkillForm ¶ added in v0.93.0
func AgentSkillRow ¶ added in v0.93.0
func AgentSkillTable ¶ added in v0.93.0
func AgentSkillTable(items []model.AgentSkill) templ.Component
func AgentSubagentForm ¶ added in v0.93.0
func AgentSubagentRow ¶ added in v0.93.0
func AgentSubagentTable ¶ added in v0.93.0
func AgentSubagentTable(items []model.AgentSubagent) templ.Component
func AgentSubagentTaskDetail ¶ added in v0.94.0
func AgentSubagentTaskRow ¶ added in v0.94.0
func AgentSubagentTaskTable ¶ added in v0.94.0
func AppStatusBadge ¶ added in v0.99.3
func ApprovalCountBadge ¶ added in v0.98.1
ApprovalCountBadge renders a compact count chip for pending tool approvals. Empty when count is zero so HTMX can clear previous badges.
func ApprovalCountBadgeNav ¶ added in v0.99.9
ApprovalCountBadgeNav is the approval-badge HTMX body: the poller swap plus replica OOB.
func BrandMark ¶ added in v0.97.0
BrandMark renders the Flowbot logomark (central hub with three flow nodes). Uses currentColor so it adapts to DaisyUI themes.
func CapabilityCard ¶
func CapabilityGrid ¶
func CapsLabel ¶ added in v0.97.0
func CapsLabel(caps []homelab.AppCapability) string
CapsLabel joins capability names with a middle-dot separator for compact display.
func ChartScripts ¶ added in v0.97.0
ChartScripts loads Chart.js for dashboard charts.
func ChatAgentApprovalPanel ¶ added in v0.95.0
func ChatAgentApprovalPanel(sessionID string, endpoints ChatAgentEndpoints, pending *ChatAgentPendingConfirm) templ.Component
func ChatAgentApprovalScripts ¶ added in v0.96.0
ChatAgentApprovalScripts loads JS for standalone approval panels (e.g. session detail).
func ChatAgentApproveAlwaysHint ¶ added in v0.98.1
ChatAgentApproveAlwaysHint explains that always remembers the suggested pattern for future matching calls.
func ChatAgentApproveAlwaysLabel ¶ added in v0.98.1
ChatAgentApproveAlwaysLabel is the remember-pattern approval button text.
func ChatAgentApproveDenyLabel ¶ added in v0.98.1
ChatAgentApproveDenyLabel is the reject button text.
func ChatAgentApproveOnceHint ¶ added in v0.98.1
ChatAgentApproveOnceHint explains that once applies only to this tool call.
func ChatAgentApproveOnceLabel ¶ added in v0.98.1
ChatAgentApproveOnceLabel is the primary one-shot approval button text.
func ChatAgentAssistantMeta ¶ added in v0.98.1
func ChatAgentAssistantMeta(msg model.AgentChatMessage, showCopy bool) templ.Component
ChatAgentAssistantMeta renders duration (left) and copy-markdown (right) under assistant content.
func ChatAgentAttachButton ¶ added in v0.98.2
ChatAgentAttachButton renders the circle-plus control used to attach media.
func ChatAgentComposer ¶ added in v0.95.0
func ChatAgentComposerScripts ¶ added in v0.96.0
ChatAgentComposerScripts loads JS for the agents home composer (create session).
func ChatAgentContextPopover ¶ added in v0.95.0
func ChatAgentContextPopover(ctx context.Context, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentContextRing ¶ added in v0.95.0
func ChatAgentCopyButton ¶ added in v0.99.0
ChatAgentCopyButton copies payload as markdown (assistant) or plain text (user).
func ChatAgentDetailURL ¶ added in v0.95.0
ChatAgentDetailURL builds a session detail URL from a template containing "{id}".
func ChatAgentDurationFooter ¶ added in v0.98.1
func ChatAgentDurationFooter(msg model.AgentChatMessage) templ.Component
ChatAgentDurationFooter shows turn/total timing inside the assistant meta row.
func ChatAgentDurationLabel ¶ added in v0.95.0
ChatAgentDurationLabel formats a millisecond duration for chat UI labels.
func ChatAgentListActionURL ¶ added in v0.98.1
ChatAgentListActionURL builds pin/archive action URLs and preserves the active list filter.
func ChatAgentMessage ¶ added in v0.95.0
func ChatAgentMessage(msg model.AgentChatMessage, streaming bool) templ.Component
func ChatAgentOneLinePreview ¶ added in v0.99.0
ChatAgentOneLinePreview returns the first line of text, truncated for a thinking/tool summary.
func ChatAgentPendingPromptKey ¶ added in v0.95.0
ChatAgentPendingPromptKey returns the sessionStorage key for a pending first prompt.
func ChatAgentPermissionsForm ¶ added in v0.95.0
func ChatAgentPermissionsForm(ctx context.Context, data PermissionFormPageData) templ.Component
func ChatAgentRichInput ¶ added in v0.98.3
func ChatAgentRichInput(id, className, placeholder, ariaLabel string, disabled bool) templ.Component
ChatAgentRichInput is the contenteditable composer / follow-up shell with slash-skill support.
func ChatAgentSessionActivityLabel ¶ added in v0.98.1
ChatAgentSessionActivityLabel returns a human-readable runtime activity label.
func ChatAgentSessionDayGroup ¶ added in v0.98.1
func ChatAgentSessionDayGroup(ctx context.Context, group model.AgentSessionDayGroup, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentSessionList ¶ added in v0.95.0
func ChatAgentSessionList(ctx context.Context, items []model.AgentSession, nextCursor string, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentSessionListAppend ¶ added in v0.95.0
func ChatAgentSessionListAppend(ctx context.Context, items []model.AgentSession, nextCursor string, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentSessionListFilters ¶ added in v0.98.1
func ChatAgentSessionListFilters(ctx context.Context, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentSessionListURL ¶ added in v0.98.1
func ChatAgentSessionListURL(endpoints ChatAgentEndpoints, cursor string) string
ChatAgentSessionListURL builds the HTMX list URL including optional filter and cursor.
func ChatAgentSessionLoadMore ¶ added in v0.95.0
func ChatAgentSessionRow ¶ added in v0.95.0
func ChatAgentSessionRow(ctx context.Context, item model.AgentSession, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentSessionTitle ¶ added in v0.95.0
func ChatAgentSessionTitle(item model.AgentSession) string
ChatAgentSessionTitle returns the display title for a session list row.
func ChatAgentSessionsDrawer ¶ added in v0.98.1
func ChatAgentSessionsDrawer(ctx context.Context, endpoints ChatAgentEndpoints) templ.Component
func ChatAgentSettingsCluster ¶ added in v0.98.0
func ChatAgentSettingsCluster( modelID string, thinkingID string, approvalID string, models []SelectableModelOption, selectedModel string, selectedThinking string, selectedApproval string, disabled bool, ) templ.Component
ChatAgentSettingsCluster renders compact model, thinking, and approval selects for the bottom-left corner of the agents composer and thread input dialogs.
func ChatAgentThread ¶ added in v0.95.0
func ChatAgentThread(ctx context.Context, session model.AgentSession, messages []model.AgentChatMessage, todos []model.AgentTodo, endpoints ChatAgentEndpoints, pending *ChatAgentPendingConfirm) templ.Component
func ChatAgentThreadScripts ¶ added in v0.96.0
ChatAgentThreadScripts loads the full chat thread stack (SSE, markdown, stream UI).
func ChatAgentTodosList ¶ added in v0.98.0
func ChatAgentTodosPanel ¶ added in v0.98.0
ChatAgentTodosPanel renders the read-only session checklist above the chat thread.
func ChatAgentToolCardExpanded ¶ added in v0.98.1
ChatAgentToolCardExpanded reports whether a tool card should render expanded. Successful and in-progress cards stay collapsed; failures and approval gates open.
func ChatAgentToolMessage ¶ added in v0.95.0
func ChatAgentToolMessage(msg model.AgentChatMessage) templ.Component
func ChatAgentToolPreview ¶ added in v0.99.0
func ChatAgentToolPreview(row model.AgentChatMessage) string
ChatAgentToolPreview is the collapsed tool summary snippet (Text, else stdout).
func ChatAgentWorkspaceSelect ¶ added in v0.99.2
func ChatAgentWorkspaceSelect(id string, options []WorkspaceOption, disabled bool) templ.Component
ChatAgentWorkspaceSelect renders the composer workspace directory picker.
func ClassifyHistoryMessage ¶ added in v0.95.0
func ClassifyHistoryMessage(role, text string, createdAt time.Time) []model.AgentChatMessage
ClassifyHistoryMessage splits one persisted history row into UI-friendly chat bubbles.
func ClipCopyIconButton ¶ added in v0.98.3
ClipCopyIconButton is an icon-only control that copies text via clip-copy.js.
func ClipCopyScripts ¶ added in v0.98.3
ClipCopyScripts loads clipboard helpers for data-clip-copy buttons.
func ClipRow ¶ added in v0.97.0
func ClipRow(ctx context.Context, item ClipListItem) templ.Component
func ClipsTable ¶ added in v0.97.0
func ClipsTable(ctx context.Context, items []ClipListItem) templ.Component
func CommandPalettePagesJSON ¶ added in v0.98.1
CommandPalettePagesJSON returns nav page jump targets as JSON for the command palette script.
func ConfigForm ¶
func ConfigTable ¶
func ConfigTable(items []model.ConfigItem) templ.Component
func CursorLoadMore ¶ added in v0.98.1
func CursorLoadMore(id string, listURL string, rowsTarget string, nextCursor string, oob bool) templ.Component
CursorLoadMore renders a cursor-based Load more control. When nextCursor is set, the button appends into rowsTarget via hx-swap beforeend. When oob is true and nextCursor is empty, the control is removed via hx-swap-oob delete.
func DataEventsTable ¶
func EmptyState ¶
EmptyState renders a centered empty placeholder with a short message.
func EmptyStateCTA ¶ added in v0.97.0
EmptyStateCTA renders an empty placeholder with optional primary link action.
func EmptyStateHXCTA ¶ added in v0.98.1
func EmptyStateHXCTA(message string, detail string, hxGet string, hxTarget string, hxSwap string, cta string) templ.Component
EmptyStateHXCTA renders an empty placeholder with an HTMX GET primary action.
func EmptyStateOnClickCTA ¶ added in v0.98.1
func EmptyStateOnClickCTA(message string, detail string, onClick string, cta string) templ.Component
EmptyStateOnClickCTA renders an empty placeholder with a scripted primary action.
func EventFilterScripts ¶ added in v0.97.0
EventFilterScripts loads event timeline filter controls and clip-copy for payloads. event-filters.js is loaded synchronously (no defer) so Alpine.data registers before alpine:init.
func EventPagination ¶
func EventPayloadDetail ¶
func EventRunStatusChipClass ¶ added in v0.98.1
EventRunStatusChipClass returns the chip class for a pipeline run status string.
func EventRunStatusText ¶ added in v0.98.1
EventRunStatusText returns a short label for a pipeline run status string.
func EventSourceChipClass ¶ added in v0.98.1
EventSourceChipClass returns a stable chip class for a source name.
func EventTypeChipClass ¶ added in v0.98.1
EventTypeChipClass returns the flowbot-chip CSS class for an event type.
func FormError ¶ added in v0.97.0
FormError renders a consistent inline error fragment for HTMX form failures.
func FormatChatAgentDuration ¶ added in v0.95.0
FormatChatAgentDuration formats milliseconds for chat timing labels.
func FormatChatAgentMessageHTML ¶ added in v0.95.0
FormatChatAgentMessageHTML converts assistant markdown to trusted server HTML.
func FormatChatAgentRelativeTime ¶ added in v0.95.0
FormatChatAgentRelativeTime returns a compact relative timestamp (e.g. "2h", "6d").
func FormatDurationMs ¶ added in v0.98.1
FormatDurationMs formats a millisecond duration for list table cells.
func FormatEntryPayload ¶ added in v0.93.0
FormatEntryPayload pretty-prints entry payload JSON for display.
func FormatFunctionRunDuration ¶ added in v0.99.0
FormatFunctionRunDuration formats run duration for display.
func FormatPendingApprovalBadgeText ¶ added in v0.98.1
FormatPendingApprovalBadgeText formats a compact count for nav / home badges. Zero returns empty so callers can hide the badge.
func FormatRuleSetSummary ¶ added in v0.95.0
func FormatRuleSetSummary(ctx context.Context, rs permission.RuleSet) string
FormatRuleSetSummary returns a compact human-readable summary of one rule set.
func FunctionCallPath ¶ added in v0.99.0
FunctionCallPath returns the HTTP invoke path for a named function (latest published).
func FunctionCallURL ¶ added in v0.99.0
FunctionCallURL returns the absolute call URL when publicOrigin is set, otherwise the path.
func FunctionCallVersionPath ¶ added in v0.99.0
FunctionCallVersionPath returns the HTTP invoke path for a specific published version.
func FunctionCallVersionURL ¶ added in v0.99.0
FunctionCallVersionURL returns the absolute or path call URL for a published version.
func FunctionListTable ¶ added in v0.99.0
func FunctionListTable(ctx context.Context, entries []FunctionListEntry) templ.Component
func FunctionRunsTable ¶ added in v0.99.0
func FunctionStats ¶ added in v0.99.0
func FunctionStats(ctx context.Context, name string, stats *types.FunctionStats, tabs StatsTabState) templ.Component
func FunctionStatsScripts ¶ added in v0.99.0
FunctionStatsScripts loads function stats chart helpers.
func FunctionStatsURL ¶ added in v0.99.0
FunctionStatsURL builds an HTMX URL for function stats with days + groupBy tabs.
func FunctionWebPath ¶ added in v0.99.0
FunctionWebPath returns the editor URL for a function name.
func GroupAgentSessionsByDay ¶ added in v0.98.1
func GroupAgentSessionsByDay(ctx context.Context, items []model.AgentSession, now time.Time) []model.AgentSessionDayGroup
GroupAgentSessionsByDay buckets sessions by local calendar day of UpdatedAt. Input order is preserved within each day group.
func GroupAgentSessionsForList ¶ added in v0.98.1
func GroupAgentSessionsForList(ctx context.Context, items []model.AgentSession, now time.Time) []model.AgentSessionDayGroup
GroupAgentSessionsForList builds pinned + calendar-day buckets for the agents home list.
func HealthzCapabilities ¶ added in v0.99.0
func HealthzCapabilities(ctx context.Context, caps []HealthzCap) templ.Component
func HealthzCapabilitiesPanel ¶ added in v0.99.0
HealthzCapabilitiesPanel is the deferred capability probe panel (outside healthz-status swaps).
func HealthzStatus ¶
func HealthzStatus(ctx context.Context, data HealthzData) templ.Component
func HighlightJSON ¶ added in v0.98.1
HighlightJSON wraps JSON tokens in span classes for syntax highlighting. All text is HTML-escaped. Invalid JSON is returned fully escaped without spans.
func HomeDashboardBlock ¶ added in v0.97.0
func HomeDashboardBlock(ctx context.Context, d HomeDashboard) templ.Component
func HomeDashboardSummary ¶ added in v0.97.0
func HomeDashboardSummary(ctx context.Context, d HomeDashboard) templ.Component
func HomeQuickLinksSection ¶ added in v0.97.0
func HomeQuickLinksSection(ctx context.Context, links []HomeQuickLink) templ.Component
func HomeSetupChecklist ¶ added in v0.97.0
func HomeSetupChecklist(ctx context.Context, items []HomeChecklistItem) templ.Component
func HomelabGrid ¶
func HomelabRegistryScripts ¶ added in v0.97.0
HomelabRegistryScripts loads homelab registry interactions. Loaded synchronously (no defer) so Alpine.data registers before alpine:init.
func HtmxIndicator ¶ added in v0.98.1
HtmxIndicator renders a soft DaisyUI spinner gated by the htmx-indicator class. Place as a child of the requesting button so htmx-request reveals it during the request.
func HubAppsTable ¶
func InboxCountBadge ¶ added in v0.99.0
InboxCountBadge renders the navbar unread count for the inbox.
func InboxCountBadgeNav ¶ added in v0.99.9
InboxCountBadgeNav is the inbox-badge HTMX body: the poller swap plus mobile OOB.
func InboxList ¶ added in v0.99.0
func InboxList(p InboxListParams) templ.Component
func InboxListURL ¶ added in v0.99.0
InboxListURL builds the inbox list fragment URL.
func LangSwitcher ¶ added in v0.99.3
LangSwitcher is the EN/中文 locale control for auth and nav shells.
func LifeBuildStatsChartsJSON ¶ added in v0.99.0
LifeBuildStatsChartsJSON encodes chart series for life-stats.js.
func LifeRadarScripts ¶ added in v0.99.0
LifeRadarScripts loads Chart.js and the Life dashboard radar helper.
func LifeStatsPanel ¶ added in v0.99.0
func LifeStatsPanel(data LifeStatsData) templ.Component
LifeStatsPanel is the HTMX fragment for the Life stats dashboard.
func LifeStatsScripts ¶ added in v0.99.0
LifeStatsScripts loads Chart.js and the Life stats dashboard helper.
func NormalizeNotifyHistoryGroup ¶ added in v0.98.1
NormalizeNotifyHistoryGroup returns a known History group mode or empty (flat list).
func NotificationsTable ¶
func NotificationsTable(ctx context.Context, p NotificationHistoryParams) templ.Component
func NotifyChannelForm ¶
func NotifyChannelJumpURL ¶ added in v0.98.1
NotifyChannelJumpURL links History rows to the Channels tab focused on a channel name.
func NotifyChannelRow ¶
func NotifyChannelsTable ¶
func NotifyHistoryListURL ¶ added in v0.98.1
NotifyHistoryListURL builds the History fragment URL preserving group and filters.
func NotifyPlayground ¶ added in v0.96.2
func NotifyPlayground(ctx context.Context, p NotifyPlaygroundParams) templ.Component
func NotifyPlaygroundPayloadField ¶ added in v0.96.2
func NotifyPlaygroundResult ¶ added in v0.96.2
func NotifyPlaygroundResult(ctx context.Context, p NotifyPlaygroundResultParams) templ.Component
func NotifyRecordReadURL ¶ added in v0.98.1
NotifyRecordReadURL is the mark-read endpoint for a delivery record.
func NotifyRecordRowClass ¶ added in v0.98.1
NotifyRecordRowClass returns row classes; failed deliveries are highlighted.
func NotifyRuleForm ¶
func NotifyRuleJumpURL ¶ added in v0.98.1
NotifyRuleJumpURL links History rows to the Rules tab focused on a rule id.
func NotifyRuleRow ¶
func NotifyRulesTable ¶
func NotifyTemplateForm ¶ added in v0.97.0
func NotifyTemplateRow ¶ added in v0.96.2
func NotifyTemplatesTable ¶ added in v0.96.2
func PageHeader ¶ added in v0.97.1
PageHeader renders a page title from i18n message keys. Empty key omits that line.
func PageHeaderLiteral ¶ added in v0.99.3
PageHeaderLiteral renders a page title from literal strings (dynamic entity names).
func PanelSkeleton ¶ added in v0.97.1
PanelSkeleton renders a compact delayed loading cue for hx-trigger="load" panels. Prefer this over DaisyUI gray skeleton slabs to avoid harsh flash on navigation.
func ParseToolSummaryLine ¶ added in v0.95.0
ParseToolSummaryLine parses compact summaries like run_terminal({...}).
func PermissionActionLabel ¶ added in v0.99.3
PermissionActionLabel returns a localized permission action label.
func PermissionApprovalModeLabel ¶ added in v0.99.3
PermissionApprovalModeLabel returns a localized approval mode label.
func PermissionFieldError ¶ added in v0.95.0
PermissionFieldError returns a validation error for one permission field.
func PermissionPatternActionError ¶ added in v0.95.0
PermissionPatternActionError returns a validation error for one pattern action.
func PermissionPatternActionErrorClass ¶ added in v0.95.0
PermissionPatternActionErrorClass returns a border class when a pattern action has an error.
func PermissionPatternError ¶ added in v0.95.0
PermissionPatternError returns a validation error for one pattern row.
func PermissionPatternErrorClass ¶ added in v0.95.0
PermissionPatternErrorClass returns a border class when a pattern field has an error.
func PipelineIsPublished ¶ added in v0.95.0
func PipelineIsPublished(def model.PipelineDefinition) bool
PipelineIsPublished reports whether a pipeline has a published runtime definition.
func PipelineLastRunOrDash ¶ added in v0.97.1
PipelineLastRunOrDash formats an optional last-run timestamp for table cells.
func PipelineListTable ¶
func PipelineListTable(ctx context.Context, entries []PipelineListEntry) templ.Component
func PipelineRunLivePath ¶ added in v0.99.8
PipelineRunLivePath is the live dashboard URL for a pipeline run.
func PipelineRunLiveURL ¶ added in v0.98.1
PipelineRunLiveURL builds the live run page URL for a pipeline run.
func PipelineRunRetryButton ¶ added in v0.99.8
func PipelineRunRetryButton(ctx context.Context, retry PipelineRunRetry) templ.Component
func PipelineRunRetryPath ¶ added in v0.99.8
PipelineRunRetryPath is the POST URL to retry a failed pipeline run.
func PipelineRunsTable ¶
func PipelineStats ¶
func PipelineStats(ctx context.Context, name string, stats *types.PipelineStats, tabs StatsTabState) templ.Component
func PipelineStatsScripts ¶ added in v0.97.0
PipelineStatsScripts loads pipeline stats chart helpers.
func PipelineStatsURL ¶ added in v0.98.2
PipelineStatsURL builds an HTMX URL for pipeline stats with days + groupBy tabs.
func PipelineStepRunsDetail ¶
func PipelineStepRunsDetail(ctx context.Context, steps []model.PipelineStepRun, retry PipelineRunRetry) templ.Component
func PipelineTriggerIcon ¶ added in v0.97.8
func PipelineTriggerIcon(tr PipelineTriggerSummary) templ.Component
PipelineTriggerIcon renders a compact letter badge for a configured pipeline trigger.
func PipelineTriggerLetter ¶ added in v0.97.8
PipelineTriggerLetter returns the list badge letter for a trigger type.
func PipelineWaterfallBarClass ¶ added in v0.98.1
PipelineWaterfallBarClass returns CSS classes for a pipeline step waterfall bar.
func PipelineWebPath ¶ added in v0.96.0
PipelineWebPath returns the encoded web UI path for a pipeline name.
func PrettyJSON ¶ added in v0.98.1
PrettyJSON indents compact JSON; empty input becomes "{}"; invalid JSON is returned unchanged.
func PublishedVersionAttr ¶ added in v0.99.0
PublishedVersionAttr returns the published version for data attributes.
func RelationDetail ¶
func RelationDetail(ctx context.Context, p RelationDetailParams) templ.Component
func RelationEdgeBadge ¶
func RelationEdgeBadge(edge types.ResourceEdge, direction string) templ.Component
func RelationNodeCard ¶
func RelationNodeCard(ref types.ResourceRef, side string) templ.Component
func RelationSearchResults ¶
func RelationTree ¶
func RelationTree(ctx context.Context, p RelationTreeParams) templ.Component
func RenderChatAgentMarkdownHTML ¶ added in v0.95.0
RenderChatAgentMarkdownHTML converts assistant markdown to sanitized HTML for web display.
func RunLatencyCompactOrDash ¶ added in v0.98.1
func RunLatencyCompactOrDash(s *types.RunLatencyStats) string
RunLatencyCompactOrDash formats success · P50 / P95 for a single list column.
func RunLatencyCompactTip ¶ added in v0.98.1
func RunLatencyCompactTip(s *types.RunLatencyStats) string
RunLatencyCompactTip is the tooltip explaining the compact 7d runs column.
func RunLatencyP50OrDash ¶ added in v0.98.1
func RunLatencyP50OrDash(s *types.RunLatencyStats) string
RunLatencyP50OrDash formats P50 duration, or an em dash when unknown.
func RunLatencyP95OrDash ¶ added in v0.98.1
func RunLatencyP95OrDash(s *types.RunLatencyStats) string
RunLatencyP95OrDash formats P95 duration, or an em dash when unknown.
func RunLatencySuccessOrDash ¶ added in v0.98.1
func RunLatencySuccessOrDash(s *types.RunLatencyStats) string
RunLatencySuccessOrDash formats success rate as a percent, or an em dash when unknown.
func ServerDefaultInheritLabel ¶ added in v0.99.7
ServerDefaultInheritLabel formats the inherit option for one YAML-backed field.
func ServerDefaultThinkingInheritLabel ¶ added in v0.99.7
ServerDefaultThinkingInheritLabel formats the inherit option for thinking_level.
func ServerDefaultToolInheritLabel ¶ added in v0.99.7
ServerDefaultToolInheritLabel formats the inherit option for tool_model.
func SessionBadge ¶ added in v0.97.0
SessionBadge renders the signed-in operator identity as a link to Life.
func SimilarEventsURL ¶ added in v0.98.1
SimilarEventsURL builds the events page URL filtered by source and/or type.
func StatusIcon ¶ added in v0.97.1
func StatusIcon(spec StatusIconSpec, testID string) templ.Component
StatusIcon renders a status value as a colored glyph with DaisyUI tooltip on hover.
func TableFilterBar ¶ added in v0.98.1
TableFilterBar renders a client-side search field bound to Alpine tableFilter.search.
func TableFilterScripts ¶ added in v0.98.1
TableFilterScripts loads shared client-side table filter controls. Loaded synchronously (no defer) so Alpine.data registers before alpine:init.
func TokenFilterText ¶ added in v0.98.1
TokenFilterText builds the client-side filter haystack for a token row.
func TokenUsage ¶ added in v0.95.0
func TokenUsage(stats *types.TokenUsageStats) templ.Component
func TokenUsageScripts ¶ added in v0.97.0
TokenUsageScripts loads home token usage chart helpers.
func TruncateChatAgentSessionPreview ¶ added in v0.98.1
TruncateChatAgentSessionPreview shortens last-message text for list rows.
func TruncateErrorSummary ¶ added in v0.98.1
TruncateErrorSummary shortens long error text for the summary strip.
func ViewExpiredPage ¶
func ViewFormContent ¶
func ViewPipelineRunContent ¶
func ViewTextContent ¶
func WaterfallBarStyle ¶ added in v0.98.1
func WaterfallBarStyle(bar RunWaterfallBar) string
WaterfallBarStyle returns the inline style for offset and width.
func WebhookLogsTable ¶
func WebhookMethodChipClass ¶ added in v0.98.1
WebhookMethodChipClass returns the chip class for an HTTP method.
func WebhookPayloadDetail ¶
func WorkflowDAG ¶ added in v0.98.0
func WorkflowDAG(ctx context.Context, view WorkflowDAGView) templ.Component
func WorkflowDAGNodeIndex ¶ added in v0.98.0
func WorkflowDAGNodeIndex(view WorkflowDAGView, layerIdx, nodeIdx int) int
WorkflowDAGNodeIndex returns a 1-based display index for a node in the layered view.
func WorkflowInputDefaultString ¶ added in v0.98.0
func WorkflowInputDefaultString(def types.WorkflowInputDef) string
WorkflowInputDefaultString formats an input default for form placeholders.
func WorkflowInputField ¶ added in v0.98.0
func WorkflowInputField(in types.WorkflowInputDef) templ.Component
func WorkflowInputIsBoolean ¶ added in v0.98.0
WorkflowInputIsBoolean reports whether the input type is boolean.
func WorkflowInputIsJSON ¶ added in v0.98.0
WorkflowInputIsJSON reports whether the input type is json.
func WorkflowInputIsNumber ¶ added in v0.98.0
WorkflowInputIsNumber reports whether the input type is number.
func WorkflowInputsReadonly ¶ added in v0.98.0
func WorkflowListTable ¶ added in v0.98.0
func WorkflowListTable(ctx context.Context, entries []WorkflowListEntry) templ.Component
func WorkflowRunDuration ¶ added in v0.98.0
func WorkflowRunDuration(r model.WorkflowRun) string
WorkflowRunDuration formats the elapsed time for a workflow run.
func WorkflowRunNowForm ¶ added in v0.98.0
func WorkflowRunStatusClass ¶ added in v0.98.0
WorkflowRunStatusClass returns the flowbot-chip CSS class for a workflow run status.
func WorkflowRunStatusText ¶ added in v0.98.0
WorkflowRunStatusText returns a short label for a workflow run status.
func WorkflowRunsTable ¶ added in v0.98.0
func WorkflowStats ¶ added in v0.98.2
func WorkflowStats(ctx context.Context, name string, stats *types.WorkflowStats, tabs StatsTabState) templ.Component
func WorkflowStatsScripts ¶ added in v0.98.2
WorkflowStatsScripts loads workflow stats chart helpers.
func WorkflowStatsURL ¶ added in v0.98.2
WorkflowStatsURL builds an HTMX URL for workflow stats with days + groupBy tabs.
func WorkflowStepKey ¶ added in v0.98.0
func WorkflowStepKey(s model.WorkflowStepRun) string
WorkflowStepKey returns a stable identifier for step-run test ids and UI keys.
func WorkflowStepRunDuration ¶ added in v0.98.0
func WorkflowStepRunDuration(sr model.WorkflowStepRun) string
WorkflowStepRunDuration formats the elapsed time for a workflow step run.
func WorkflowStepRunsDetail ¶ added in v0.98.0
func WorkflowTriggerLabel ¶ added in v0.99.3
func WorkflowTriggerLabel(ctx context.Context, tr model.WorkflowTrigger) string
WorkflowTriggerLabel returns a localized trigger summary for list badges and tooltips.
func WorkflowTriggersTable ¶ added in v0.98.0
func WorkflowWaterfallBarClass ¶ added in v0.98.1
WorkflowWaterfallBarClass returns CSS classes for a workflow step waterfall bar.
func WorkflowWebPath ¶ added in v0.98.0
WorkflowWebPath returns the encoded web UI path for a workflow name.
func WorkflowWebhookURL ¶ added in v0.98.3
func WorkflowWebhookURL(tr model.WorkflowTrigger, publicOrigin string) string
WorkflowWebhookURL returns the absolute webhook URL when publicOrigin is set, otherwise the relative path from WorkflowWebhookURLPath.
func WorkflowWebhookURLPath ¶ added in v0.98.3
func WorkflowWebhookURLPath(tr model.WorkflowTrigger) string
WorkflowWebhookURLPath returns the relative workflow webhook URL path (/webhook/workflow/{path}), appending ?token= when auth.token is set. Returns empty when the trigger is not a webhook or path is missing.
func WorkflowYAMLSource ¶ added in v0.98.0
Types ¶
type ChatAgentEndpoints ¶ added in v0.95.0
type ChatAgentEndpoints struct {
CreateURL string
ListURL string
DetailURLTemplate string
PinURLTemplate string
ArchiveURLTemplate string
SettingsURL string
MessagesURL string
MediaURL string
CancelURL string
CloseURL string
ConfirmURL string
EventsURL string
InspectURL string
RenderMarkdownURL string
ContextURL string
TrajectoryURL string
TodosURL string
// SkillsURL returns enabled skills for the composer slash picker.
SkillsURL string
// Filter is the active session list filter query value.
Filter string
// PendingApprovalCount is how many sessions currently wait on tool approval.
PendingApprovalCount int
// SelectableModels is the list of models available in the composer/thread picker.
SelectableModels []SelectableModelOption
// DefaultModel is the global chat_model used when no session override is set.
DefaultModel string
// DefaultApprovalMode is the effective user/YAML approval mode for new sessions.
DefaultApprovalMode string
// WorkspaceOptions is the composer picker list (config root plus first-level dirs).
WorkspaceOptions []WorkspaceOption
// WorkspaceRootLabel is filepath.Base of chat_agent.workspace for empty-rel display.
WorkspaceRootLabel string
}
ChatAgentEndpoints carries configurable HTTP paths for chat agent UI components.
type ChatAgentPendingConfirm ¶ added in v0.98.1
type ChatAgentPendingConfirm struct {
ID string
Tool string
Summary string
Permission string
Pattern string
SuggestedPattern string
SuggestAlways bool
}
ChatAgentPendingConfirm is a tool approval still waiting on the active run.
func ChatAgentPendingConfirmFromEvent ¶ added in v0.98.1
func ChatAgentPendingConfirmFromEvent(pending ChatAgentPendingConfirm) *ChatAgentPendingConfirm
ChatAgentPendingConfirmFromEvent maps a stream confirm payload into view data.
type ClipListItem ¶ added in v0.97.0
type ClipListItem struct {
// Slug is the public short identifier.
Slug string
// Title is the clip title.
Title string
// Description is the short preview text.
Description string
// CreatedBy is the optional creator identifier.
CreatedBy string
// CreatedAt is when the clip was created.
CreatedAt time.Time
// URL is the public reader path (/c/{slug}).
URL string
// IsPublic is true when anonymous visitors may read the full clip body.
IsPublic bool
}
ClipListItem is one row in the web clips list table.
type CommandPaletteNavPage ¶ added in v0.98.1
type CommandPaletteNavPage struct {
}
CommandPaletteNavPage is one static jump target for the global command palette.
func CommandPaletteNavPages ¶ added in v0.98.1
func CommandPaletteNavPages(ctx context.Context) []CommandPaletteNavPage
CommandPaletteNavPages returns static jump targets aligned with the navbar.
type FilterBarParams ¶
type FunctionDraftData ¶ added in v0.99.0
type FunctionDraftData struct {
Name string
Status string
Version int
Entrypoint string
Source string
EnvText string
Token string
TokenSet bool
HMACSecret string
HMACSet bool
PublishedVersion *int
HasUnpublishedChanges bool
CallURL string
CallVersionURL string
}
FunctionDraftData is the editor page model (secrets already redacted).
func FunctionDraftFromView ¶ added in v0.99.0
func FunctionDraftFromView(view *functions.DraftView) FunctionDraftData
FunctionDraftFromView maps a redacted DraftView to editor data.
type FunctionListEntry ¶ added in v0.99.0
type FunctionListEntry struct {
Name string
Status string
Version int
PublishedVersion *int
HasUnpublishedChanges bool
}
FunctionListEntry is one row on the Functions list page.
func BuildFunctionListEntries ¶ added in v0.99.0
func BuildFunctionListEntries(items []functions.ListAllInfo) []FunctionListEntry
BuildFunctionListEntries maps service ListAll rows to list entries.
type HealthzCap ¶
HealthzCap represents a capability health status for display.
type HealthzData ¶
type HealthzData struct {
PostgresLatency time.Duration
PostgresOk bool
RedisLatency time.Duration
RedisOk bool
Goroutines int
HeapAlloc uint64
TotalAlloc uint64
SysMem uint64
NumGC uint32
LastGCPause time.Duration
Capabilities []HealthzCap
Errors []flog.ErrorEntry
}
HealthzData is the data model for the health dashboard.
type HomeChecklistItem ¶ added in v0.97.0
type HomeChecklistItem struct {
Done bool
Title string
Detail string
Href string
CTA string
TestID string
}
HomeChecklistItem is a setup step shown when the instance looks empty.
type HomeDashboard ¶ added in v0.97.0
type HomeDashboard struct {
ActiveSessions int
PipelineTotal int64
PipelineOK int64
PipelineFailed int64
WorkflowTotal int64
WorkflowOK int64
WorkflowFailed int64
Events24h int64
Checklist []HomeChecklistItem
}
HomeDashboard is the view model for the authenticated home page.
type HomeQuickLink ¶ added in v0.97.0
HomeQuickLink is a shortcut card on the home dashboard.
func HomeQuickLinks ¶ added in v0.97.0
func HomeQuickLinks(ctx context.Context) []HomeQuickLink
HomeQuickLinks returns the standard home shortcut set.
type InboxItem ¶ added in v0.99.0
type InboxItem struct {
ID int64
Summary string
Title string
URL string
CreatedAt time.Time
Unread bool
}
InboxItem is a view model for one inbox row.
type InboxListParams ¶ added in v0.99.0
InboxListParams holds inbox list render inputs.
type LifeStatsData ¶ added in v0.99.0
type LifeStatsData struct {
Timezone string
Completions int
TotalExp int
GoldNet int
AchievementUnlocks int
HasActivity bool
ChartsJSON string
}
LifeStatsData is the Stats analytics HTMX panel model.
func LifeStatsFromPage ¶ added in v0.99.0
func LifeStatsFromPage(ctx context.Context, page *pkglife.StatsPage) LifeStatsData
LifeStatsFromPage maps a domain stats page into the panel view model.
type NotificationGroup ¶ added in v0.98.1
type NotificationGroup struct {
Key string
Label string
Records []model.NotificationRecord
}
NotificationGroup is a labeled section of delivery records for History grouping.
func GroupNotificationRecords ¶ added in v0.98.1
func GroupNotificationRecords(group string, records []model.NotificationRecord) []NotificationGroup
GroupNotificationRecords builds section headers for channel/rule History grouping.
type NotificationHistoryParams ¶ added in v0.98.1
type NotificationHistoryParams struct {
Records []model.NotificationRecord
NextCursor string
Group string
Channel string
RuleID string
Channels []string
RuleIDs []string
}
NotificationHistoryParams holds History tab list state for the notifications table.
type NotifyPlaygroundForm ¶ added in v0.96.2
type NotifyPlaygroundForm struct {
Mode string
ChannelID int64
TemplateID string
CustomTemplate string
Format string
PayloadJSON string
Priority string
URL string
}
NotifyPlaygroundForm holds playground form field values for redisplay.
type NotifyPlaygroundParams ¶ added in v0.96.2
type NotifyPlaygroundParams struct {
Channels []model.NotifyChannel
Templates []notify.Template
Form NotifyPlaygroundForm
Errors map[string]string
Result *NotifyPlaygroundResultParams
}
NotifyPlaygroundParams is the view model for the Notifications playground tab.
type NotifyPlaygroundResultParams ¶ added in v0.96.2
type NotifyPlaygroundResultParams struct {
Title string
Body string
Format string
Preview bool
Success bool
Error string
}
NotifyPlaygroundResultParams holds preview/send outcome for the playground result panel.
type PermissionFormField ¶ added in v0.95.0
type PermissionFormField struct {
Meta PermissionKeyMeta
DefaultSummary string
SelectedAction string
PatternRows []PermissionPatternRow
IsOverridden bool
}
PermissionFormField is the view model for one permission key row.
func ApplySubmittedPermissionForm ¶ added in v0.95.0
func ApplySubmittedPermissionForm(fields []PermissionFormField, form permission.FormValues) []PermissionFormField
ApplySubmittedPermissionForm overlays submitted form values onto rendered fields.
func BuildPermissionFormFields ¶ added in v0.95.0
func BuildPermissionFormFields(ctx context.Context, view model.PermissionsView) []PermissionFormField
BuildPermissionFormFields builds form rows from a permissions API view.
type PermissionFormPageData ¶ added in v0.95.0
type PermissionFormPageData struct {
Fields []PermissionFormField
UserJSON string
Errors map[string]string
ApprovalMode string
ApprovalServerDef string
ServerDefaults ServerDefaultsFormData
}
PermissionFormPageData is the full page model for the permissions editor.
type PermissionKeyMeta ¶ added in v0.95.0
type PermissionKeyMeta struct {
Key string
Label string
Description string
SupportsPatterns bool
DisallowAllow bool
}
PermissionKeyMeta describes one editable permission key for the web form.
type PermissionPatternRow ¶ added in v0.95.0
PermissionPatternRow is one pattern rule row in the permissions form.
type PipelineListEntry ¶ added in v0.95.0
type PipelineListEntry struct {
Name string
Status string
Enabled bool
LastRunAt *time.Time
Triggers []PipelineTriggerSummary
StepCount int
Stats *types.RunLatencyStats
}
PipelineListEntry augments a pipeline definition with runtime enabled state and last run time.
func AttachRunLatencyStats ¶ added in v0.98.1
func AttachRunLatencyStats(entries []PipelineListEntry, stats map[string]types.RunLatencyStats) []PipelineListEntry
AttachRunLatencyStats copies matching per-pipeline latency stats onto list entries.
func BuildPipelineListEntries ¶ added in v0.95.0
func BuildPipelineListEntries(defs []model.PipelineDefinition, lastRunAt map[string]time.Time) []PipelineListEntry
BuildPipelineListEntries derives list rows from pipeline definition DTOs. lastRunAt maps parent pipeline name to the latest run started_at; missing keys mean never run.
type PipelineRunRetry ¶ added in v0.99.8
PipelineRunRetry controls the failed-run retry button on step detail.
type PipelineTriggerSummary ¶ added in v0.97.8
PipelineTriggerSummary describes one configured trigger for the pipelines list.
func PipelineListSummaryFromYAML ¶ added in v0.97.8
func PipelineListSummaryFromYAML(yamlStr string) (int, []PipelineTriggerSummary)
PipelineListSummaryFromYAML extracts step count and trigger summaries from editor YAML.
func WorkflowTriggerSummaries ¶ added in v0.98.0
func WorkflowTriggerSummaries(ctx context.Context, rows []model.WorkflowTrigger) []PipelineTriggerSummary
WorkflowTriggerSummaries converts stored workflow triggers into list badge summaries.
type RelationDetailParams ¶
type RelationDetailParams struct {
Type string // "node" or "edge"
Node types.ResourceRef
Edge types.ResourceEdge
}
type RelationTreeParams ¶
type RelationTreeParams struct {
Node types.ResourceRef
Upstream []types.ResourceEdge
Downstream []types.ResourceEdge
}
type RunErrorSummaryItem ¶ added in v0.98.1
RunErrorSummaryItem is one failed step shown in the run error summary.
func PipelineStepErrorSummary ¶ added in v0.98.1
func PipelineStepErrorSummary(steps []model.PipelineStepRun) []RunErrorSummaryItem
PipelineStepErrorSummary returns failed/errored pipeline steps for the top summary.
func WorkflowStepErrorSummary ¶ added in v0.98.1
func WorkflowStepErrorSummary(steps []model.WorkflowStepRun) []RunErrorSummaryItem
WorkflowStepErrorSummary returns failed/errored workflow steps for the top summary.
type RunWaterfallBar ¶ added in v0.98.1
RunWaterfallBar is one bar in the simplified run step waterfall.
func PipelineStepWaterfall ¶ added in v0.98.1
func PipelineStepWaterfall(steps []model.PipelineStepRun) []RunWaterfallBar
PipelineStepWaterfall builds waterfall bars from pipeline step runs.
func WorkflowStepWaterfall ¶ added in v0.98.1
func WorkflowStepWaterfall(steps []model.WorkflowStepRun) []RunWaterfallBar
WorkflowStepWaterfall builds waterfall bars from workflow step runs.
type SelectableModelOption ¶ added in v0.98.0
SelectableModelOption is one model entry available for the session picker.
type ServerDefaultsFormData ¶ added in v0.99.7
type ServerDefaultsFormData struct {
YAMLChatModel string
YAMLToolModel string
InheritValue string
ToolNoneValue string
SelectableModels []SelectableModelOption
SelectedChatModel string
SelectedToolModel string
SelectedThinkingLevel string
ChatModelOverridden bool
ToolModelOverridden bool
ThinkingOverridden bool
}
ServerDefaultsFormData is the server-wide model defaults section on the permissions page.
func ApplySubmittedServerDefaults ¶ added in v0.99.7
func ApplySubmittedServerDefaults(data ServerDefaultsFormData, inheritValue, chatModel, toolModel, thinking string) ServerDefaultsFormData
ApplySubmittedServerDefaults overlays submitted form values onto server defaults data.
type StatsTabState ¶ added in v0.98.2
type StatsTabState struct {
RangeDays int // 0 = all, otherwise 30 or 90
GroupBy string // day | week | month
}
StatsTabState is the active time-range and group-by selection for run stats charts.
type StatusGlyph ¶ added in v0.97.1
type StatusGlyph string
StatusGlyph identifies which SVG shape a status icon renders.
const ( // StatusGlyphCheck is a checkmark for positive / completed states. StatusGlyphCheck StatusGlyph = "check" // StatusGlyphX is a cross for disabled / failed states. StatusGlyphX StatusGlyph = "x" // StatusGlyphPause is a pause mark inside a circle for paused states. StatusGlyphPause StatusGlyph = "pause" // StatusGlyphPlay is a play mark for active / running states. StatusGlyphPlay StatusGlyph = "play" // StatusGlyphStop is a stop square inside a circle for closed states. StatusGlyphStop StatusGlyph = "stop" // StatusGlyphAlert is a warning triangle for unknown or attention states. StatusGlyphAlert StatusGlyph = "alert" // StatusGlyphInfo is an info mark for terminal non-error states. StatusGlyphInfo StatusGlyph = "info" // StatusGlyphMinus is a dash for muted or unspecified states. StatusGlyphMinus StatusGlyph = "minus" )
type StatusIconSpec ¶ added in v0.97.1
type StatusIconSpec struct {
// Label is the tooltip and accessible name for the status.
Label string
// ToneClass is a Tailwind text color utility for the icon.
ToneClass string
// Glyph selects the SVG path set rendered inside the icon.
Glyph StatusGlyph
}
StatusIconSpec describes a status value rendered as a colored icon with tooltip.
func EnabledStatusIcon ¶ added in v0.97.1
func EnabledStatusIcon(ctx context.Context, enabled bool) StatusIconSpec
EnabledStatusIcon maps an enabled flag to icon styling.
func PipelineRuntimeStatusIcon ¶ added in v0.97.1
func PipelineRuntimeStatusIcon(ctx context.Context, enabled bool) StatusIconSpec
PipelineRuntimeStatusIcon maps a published pipeline enabled flag to Active/Paused icon styling.
func ScheduledTaskRunStateStatusIcon ¶ added in v0.97.1
func ScheduledTaskRunStateStatusIcon(ctx context.Context, state string) StatusIconSpec
ScheduledTaskRunStateStatusIcon maps a scheduled task run state to icon styling.
func ScheduledTaskStateStatusIcon ¶ added in v0.97.1
func ScheduledTaskStateStatusIcon(ctx context.Context, state string) StatusIconSpec
ScheduledTaskStateStatusIcon maps a scheduled task lifecycle state to icon styling.
func SessionStateStatusIcon ¶ added in v0.97.1
func SessionStateStatusIcon(ctx context.Context, state string) StatusIconSpec
SessionStateStatusIcon maps an agent session display state to icon styling.
type WorkflowDAGNode ¶ added in v0.98.0
type WorkflowDAGNode struct {
// ID is the task identifier.
ID string
// Describe is the optional human description.
Describe string
// Action is the task action string.
Action string
// Deps lists upstream task IDs (Conn).
Deps []string
}
WorkflowDAGNode is one task box in the workflow DAG view.
type WorkflowDAGView ¶ added in v0.98.0
type WorkflowDAGView struct {
// Layers groups tasks by topological depth (roots first).
Layers [][]WorkflowDAGNode
// Sequential reports whether the graph is a linear pipeline (no branching Conn).
Sequential bool
// ParallelRuntime reports whether max_concurrency enables parallel DAG execution.
ParallelRuntime bool
}
WorkflowDAGView is a layered layout of workflow tasks for read-only display.
func BuildWorkflowDAGView ¶ added in v0.98.0
func BuildWorkflowDAGView(tasks []types.WorkflowTask, pipeline []string, maxConcurrency int) WorkflowDAGView
BuildWorkflowDAGView builds a layered DAG view from tasks and pipeline order. When no Conn edges exist, pipeline order (falling back to task order) is shown as a chain. ParallelRuntime is true only when maxConcurrency > 1 (matching the runner).
type WorkflowListEntry ¶ added in v0.98.0
type WorkflowListEntry struct {
// Name is the workflow identifier.
Name string
// Describe is the optional human description.
Describe string
// Enabled reports whether cron/webhook triggers are active.
Enabled bool
// Triggers lists configured triggers for badge display.
Triggers []PipelineTriggerSummary
// TaskCount is the number of pipeline steps.
TaskCount int
// LastRunAt is the latest run started_at when known.
LastRunAt *time.Time
// Stats holds recent completed-run latency aggregates when available.
Stats *types.RunLatencyStats
}
WorkflowListEntry is one row in the workflows list table.
func AttachWorkflowRunLatencyStats ¶ added in v0.98.1
func AttachWorkflowRunLatencyStats(entries []WorkflowListEntry, stats map[string]types.RunLatencyStats) []WorkflowListEntry
AttachWorkflowRunLatencyStats copies matching per-workflow latency stats onto list entries.
func BuildWorkflowListEntries ¶ added in v0.98.0
func BuildWorkflowListEntries(ctx context.Context, defs []model.Workflow, triggers []model.WorkflowTrigger, lastRunAt map[string]time.Time) []WorkflowListEntry
BuildWorkflowListEntries maps store rows to list entries. triggers may be nil; when provided they are grouped by workflow_id. lastRunAt maps workflow name to the latest run started_at; missing keys mean never run.
type WorkspaceOption ¶ added in v0.99.2
WorkspaceOption is one first-level workspace directory for the composer picker.
Source Files
¶
- agent_knowledge_form_templ.go
- agent_knowledge_helpers.go
- agent_knowledge_row_templ.go
- agent_knowledge_table_templ.go
- agent_memory_modal_templ.go
- agent_memory_table_templ.go
- agent_resource_preview_templ.go
- agent_scheduled_task_helpers.go
- agent_scheduled_task_row_templ.go
- agent_scheduled_task_runs_templ.go
- agent_scheduled_task_state_form_templ.go
- agent_scheduled_task_table_templ.go
- agent_session_entries_templ.go
- agent_session_entry_payload_templ.go
- agent_session_entry_row_templ.go
- agent_session_helpers.go
- agent_session_row_templ.go
- agent_session_state_badge_templ.go
- agent_session_summaries_table_templ.go
- agent_session_table_templ.go
- agent_skill_file_form_templ.go
- agent_skill_file_row_templ.go
- agent_skill_file_table_templ.go
- agent_skill_form_templ.go
- agent_skill_helpers.go
- agent_skill_row_templ.go
- agent_skill_table_templ.go
- agent_subagent_form_templ.go
- agent_subagent_helpers.go
- agent_subagent_row_templ.go
- agent_subagent_table_templ.go
- agent_subagent_task_row_templ.go
- agent_subagent_task_table_templ.go
- app_status_badge_templ.go
- approval_badge_templ.go
- brand_templ.go
- capability_card_templ.go
- capability_grid_templ.go
- chatagent_approval_panel_templ.go
- chatagent_context_popover_templ.go
- chatagent_helpers.go
- chatagent_message_templ.go
- chatagent_permissions_form_templ.go
- chatagent_permissions_helpers.go
- chatagent_scripts_templ.go
- chatagent_session_list_templ.go
- chatagent_sessions_drawer_templ.go
- chatagent_settings_templ.go
- chatagent_thread_templ.go
- chatagent_todos_helpers.go
- chatagent_todos_panel_templ.go
- chatagent_tool_templ.go
- chatagent_types.go
- clips_helpers.go
- clips_table_templ.go
- command_palette_helpers.go
- command_palette_templ.go
- config_form_templ.go
- config_row_templ.go
- config_table_templ.go
- confirm_modal_templ.go
- cursor_load_more_templ.go
- data_events_table_templ.go
- empty_state_oob.go
- empty_state_templ.go
- event_display.go
- event_filters_templ.go
- event_pagination_templ.go
- event_payload_templ.go
- form_error_templ.go
- function_helpers.go
- function_list_templ.go
- function_partials_templ.go
- function_stats_templ.go
- healthz_status_templ.go
- helpers.go
- home_dashboard.go
- home_dashboard_templ.go
- homelab_card_templ.go
- homelab_grid_templ.go
- hub_apps_table_templ.go
- inbox_templ.go
- lang_switcher_templ.go
- life_stats.go
- life_stats_templ.go
- notifications_helpers.go
- notifications_table_templ.go
- notify_channel_form_templ.go
- notify_channel_row_templ.go
- notify_channels_table_templ.go
- notify_playground_helpers.go
- notify_playground_templ.go
- notify_rule_form_templ.go
- notify_rule_row_templ.go
- notify_rules_table_templ.go
- notify_settings_helpers.go
- notify_template_form_templ.go
- notify_template_row_templ.go
- notify_templates_table_templ.go
- page_header_templ.go
- page_scripts_templ.go
- panel_skeleton_templ.go
- pipeline_list_helpers.go
- pipeline_list_templ.go
- pipeline_partials_templ.go
- pipeline_runs_templ.go
- pipeline_stats_templ.go
- relation_detail_templ.go
- relation_edge_templ.go
- relation_node_templ.go
- relation_search_templ.go
- relation_tree_templ.go
- run_latency_display.go
- run_timeline_helpers.go
- session_badge_templ.go
- stats_tabs.go
- status_icon_helpers.go
- status_icon_labels.go
- status_icon_templ.go
- table_filter_templ.go
- token_form_templ.go
- token_helpers.go
- token_row_templ.go
- token_table_templ.go
- token_usage_templ.go
- view_expired_templ.go
- view_form_templ.go
- view_image_templ.go
- view_markdown_templ.go
- view_pipeline_run_templ.go
- view_text_templ.go
- webhook_logs_table_templ.go
- webhook_payload_templ.go
- workflow_detail_templ.go
- workflow_helpers.go
- workflow_list_templ.go
- workflow_stats_templ.go