Skip to content

Commit ff6926c

Browse files
fix(appconfig): stringify configurationVersion and free-form content wand
1 parent 2b69041 commit ff6926c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

apps/sim/blocks/blocks/appconfig.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ export const AppConfigBlock: BlockConfig<AppConfigResponse> = {
127127
wandConfig: {
128128
enabled: true,
129129
prompt: `Generate AppConfig configuration content based on the user's description.
130-
The content can be JSON, YAML, or plain text matching the configuration profile's expected format.
130+
Match the format selected in the Content Type field — JSON for application/json, YAML for application/x-yaml, or plain text for text/plain.
131131
132132
Return ONLY the configuration content - no explanations, no markdown code blocks.`,
133133
placeholder: 'Describe the configuration...',
134-
generationType: 'json-object',
135134
},
136135
},
137136
{
@@ -292,7 +291,11 @@ Return ONLY the configuration content - no explanations, no markdown code blocks
292291

293292
if (op === 'start_deployment') {
294293
result.deploymentStrategyId = params.deploymentStrategyId
295-
result.configurationVersion = params.configurationVersion
294+
// Stringify: a versionNumber piped from a create/list step resolves to a JSON
295+
// number, but AppConfig's ConfigurationVersion (number or label) is a string.
296+
if (params.configurationVersion !== undefined && params.configurationVersion !== null) {
297+
result.configurationVersion = String(params.configurationVersion)
298+
}
296299
if (params.description) result.description = params.description
297300
}
298301

0 commit comments

Comments
 (0)