Skip to content

Commit adfb2b9

Browse files
committed
fix overclearing finds
1 parent 2354a05 commit adfb2b9

4 files changed

Lines changed: 13 additions & 19 deletions

File tree

apps/sim/blocks/blocks/agent.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ Return ONLY the JSON array.`,
329329
value: MODELS_WITHOUT_MEMORY,
330330
not: true,
331331
},
332-
dependsOn: ['model'],
333332
},
334333
{
335334
id: 'conversationId',
@@ -345,7 +344,7 @@ Return ONLY the JSON array.`,
345344
value: ['conversation', 'sliding_window', 'sliding_window_tokens'],
346345
and: { field: 'model', value: MODELS_WITHOUT_MEMORY, not: true },
347346
},
348-
dependsOn: ['model', 'memoryType'],
347+
dependsOn: ['memoryType'],
349348
},
350349
{
351350
id: 'slidingWindowSize',
@@ -357,7 +356,7 @@ Return ONLY the JSON array.`,
357356
value: ['sliding_window'],
358357
and: { field: 'model', value: MODELS_WITHOUT_MEMORY, not: true },
359358
},
360-
dependsOn: ['model', 'memoryType'],
359+
dependsOn: ['memoryType'],
361360
},
362361
{
363362
id: 'slidingWindowTokens',
@@ -369,7 +368,7 @@ Return ONLY the JSON array.`,
369368
value: ['sliding_window_tokens'],
370369
and: { field: 'model', value: MODELS_WITHOUT_MEMORY, not: true },
371370
},
372-
dependsOn: ['model', 'memoryType'],
371+
dependsOn: ['memoryType'],
373372
},
374373
{
375374
id: 'temperature',
@@ -426,7 +425,6 @@ Return ONLY the JSON array.`,
426425
value: MODELS_WITH_DEEP_RESEARCH,
427426
not: true,
428427
},
429-
dependsOn: ['model'],
430428
},
431429
{
432430
id: 'responseFormat',
@@ -450,7 +448,6 @@ Return ONLY the JSON array.`,
450448
field: 'model',
451449
value: MODELS_WITH_DEEP_RESEARCH,
452450
},
453-
dependsOn: ['model'],
454451
},
455452
],
456453
tools: {

apps/sim/blocks/blocks/discord.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ export const DiscordBlock: BlockConfig<DiscordResponse> = {
197197
'discord_create_webhook',
198198
],
199199
},
200-
dependsOn: ['operation'],
201200
},
202201
// Name (optional for updates)
203202
{
@@ -209,7 +208,6 @@ export const DiscordBlock: BlockConfig<DiscordResponse> = {
209208
field: 'operation',
210209
value: ['discord_update_channel', 'discord_update_role'],
211210
},
212-
dependsOn: ['operation'],
213211
},
214212
// Role ID
215213
{

apps/sim/blocks/blocks/elasticsearch.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ export const ElasticsearchBlock: BlockConfig<ElasticsearchResponse> = {
163163
'elasticsearch_delete_document',
164164
],
165165
},
166-
dependsOn: ['operation'],
167166
},
168167

169168
// Optional Document ID - for index document
@@ -173,7 +172,6 @@ export const ElasticsearchBlock: BlockConfig<ElasticsearchResponse> = {
173172
type: 'short-input',
174173
placeholder: 'Leave empty for auto-generated ID',
175174
condition: { field: 'operation', value: 'elasticsearch_index_document' },
176-
dependsOn: ['operation'],
177175
},
178176

179177
// Document body - for index
@@ -184,7 +182,6 @@ export const ElasticsearchBlock: BlockConfig<ElasticsearchResponse> = {
184182
placeholder: '{ "field": "value", "another_field": 123 }',
185183
required: true,
186184
condition: { field: 'operation', value: 'elasticsearch_index_document' },
187-
dependsOn: ['operation'],
188185
wandConfig: {
189186
enabled: true,
190187
prompt: `Generate an Elasticsearch document JSON object based on the user's description.
@@ -205,7 +202,6 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
205202
placeholder: '{ "field_to_update": "new_value" }',
206203
required: true,
207204
condition: { field: 'operation', value: 'elasticsearch_update_document' },
208-
dependsOn: ['operation'],
209205
wandConfig: {
210206
enabled: true,
211207
prompt: `Generate an Elasticsearch partial document JSON for updating based on the user's description.
@@ -224,7 +220,6 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
224220
type: 'code',
225221
placeholder: '{ "match": { "field": "search term" } }',
226222
condition: { field: 'operation', value: 'elasticsearch_search' },
227-
dependsOn: ['operation'],
228223
wandConfig: {
229224
enabled: true,
230225
prompt: `Generate an Elasticsearch query DSL JSON based on the user's description.
@@ -247,7 +242,6 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
247242
type: 'code',
248243
placeholder: '{ "match": { "field": "value" } }',
249244
condition: { field: 'operation', value: 'elasticsearch_count' },
250-
dependsOn: ['operation'],
251245
wandConfig: {
252246
enabled: true,
253247
prompt: `Generate an Elasticsearch query DSL JSON for counting documents based on the user's description.

apps/sim/blocks/blocks/linear.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@ Return ONLY the comment text - no explanations.`,
509509
field: 'operation',
510510
value: ['linear_create_issue', 'linear_update_issue', 'linear_create_project'],
511511
},
512-
dependsOn: ['operation'],
513512
},
514513
// Estimate (for issues)
515514
{
@@ -1055,7 +1054,6 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
10551054
field: 'operation',
10561055
value: ['linear_create_customer_request', 'linear_update_customer_request'],
10571056
},
1058-
dependsOn: ['operation'],
10591057
},
10601058
// Customer request ID (for updating)
10611059
{
@@ -1094,7 +1092,7 @@ Return ONLY the description text - no explanations.`,
10941092
},
10951093
// Customer request priority/urgency
10961094
{
1097-
id: 'priority',
1095+
id: 'customerRequestPriority',
10981096
title: 'Urgency',
10991097
type: 'dropdown',
11001098
options: [
@@ -2005,7 +2003,10 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
20052003
...baseParams,
20062004
customerId: params.customerId.trim(),
20072005
body: params.requestBody?.trim(),
2008-
priority: params.priority !== undefined ? Number(params.priority) : 0,
2006+
priority:
2007+
params.customerRequestPriority !== undefined
2008+
? Number(params.customerRequestPriority)
2009+
: 0,
20092010
issueId: params.linkedIssueId?.trim(),
20102011
projectId: effectiveProjectId || undefined,
20112012
}
@@ -2019,7 +2020,10 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
20192020
customerNeedId: params.customerNeedId.trim(),
20202021
customerId: params.customerId?.trim(),
20212022
body: params.requestBody?.trim(),
2022-
priority: params.priority !== undefined ? Number(params.priority) : undefined,
2023+
priority:
2024+
params.customerRequestPriority !== undefined
2025+
? Number(params.customerRequestPriority)
2026+
: undefined,
20232027
issueId: params.linkedIssueId?.trim(),
20242028
projectId: effectiveProjectId || undefined,
20252029
}
@@ -2358,6 +2362,7 @@ Return ONLY the date string in YYYY-MM-DD format - no explanations, no quotes, n
23582362
stateId: { type: 'string', description: 'Workflow state identifier' },
23592363
assigneeId: { type: 'string', description: 'Assignee user identifier' },
23602364
priority: { type: 'string', description: 'Priority level' },
2365+
customerRequestPriority: { type: 'string', description: 'Customer request urgency level' },
23612366
estimate: { type: 'string', description: 'Estimate points' },
23622367
query: { type: 'string', description: 'Search query' },
23632368
includeArchived: { type: 'boolean', description: 'Include archived items' },

0 commit comments

Comments
 (0)