MCPcopy Index your code
hub / github.com/simstudioai/sim / getSerializedLegacyStarterMode

Function getSerializedLegacyStarterMode

apps/sim/executor/utils/start-block.ts:151–158  ·  view source on GitHub ↗
(block: SerializedBlock)

Source from the content-addressed store, hash-verified

149}
150
151function getSerializedLegacyStarterMode(block: SerializedBlock): 'manual' | 'api' | 'chat' | null {
152 const fromMetadata = readMetadataSubBlockValue(block, 'startWorkflow')
153 if (fromMetadata !== undefined) {
154 return normalizeLegacyStarterMode(fromMetadata)
155 }
156
157 return normalizeLegacyStarterMode(block.config?.params?.startWorkflow)
158}
159
160function readInputFormatFieldName(field: InputFormatField): string | undefined {
161 return typeof field.name === 'string' ? field.name.trim() : undefined

Callers 1

buildStartBlockOutputFunction · 0.85

Calls 2

Tested by

no test coverage detected