Skip to content

Commit eca3450

Browse files
committed
fix(ironclad): address PR review comments - add required constraint, defensive response parsing
1 parent b298b4a commit eca3450

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

apps/sim/blocks/blocks/ironclad.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export const IroncladBlock: BlockConfig = {
163163
type: 'long-input',
164164
placeholder: '{"counterpartyName": {"type": "string", "value": "Acme Corp"}}',
165165
condition: { field: 'operation', value: ['create_record', 'update_record'] },
166+
required: { field: 'operation', value: 'update_record' },
166167
wandConfig: {
167168
enabled: true,
168169
prompt:

apps/sim/tools/ironclad/list_workflow_comments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const listWorkflowCommentsTool: ToolConfig<
5353
return {
5454
success: true,
5555
output: {
56-
comments: data ?? [],
56+
comments: data.list ?? data.comments ?? data ?? [],
5757
},
5858
}
5959
},

apps/sim/tools/ironclad/list_workflows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const listWorkflowsTool: ToolConfig<
7272
output: {
7373
workflows,
7474
page: data.page ?? 0,
75-
pageSize: data.pageSize ?? 20,
75+
pageSize: data.pageSize ?? data.perPage ?? 20,
7676
count: data.count ?? 0,
7777
},
7878
}

0 commit comments

Comments
 (0)