MCPcopy
hub / github.com/OpenAgentPlatform/Dive / FieldDefinition

Interface FieldDefinition

src/atoms/interfaceState.ts:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79export type InputType = "text" | "password" | "checkbox"
80
81export interface FieldDefinition {
82 type: string | "list"
83 inputType?: InputType
84 description: string
85 required: boolean
86 default: any
87 placeholder?: any
88 readonly?: boolean
89 label: string
90 listCallback?: (deps: Record<string, string>) => Promise<string[]>
91 listDependencies?: string[]
92 value?: string
93 getValue?: () => Promise<string>
94}
95
96export type InterfaceDefinition = Record<string, FieldDefinition>
97

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected