Skip to content

Commit 286d1f3

Browse files
committed
fix(integrations): close follow-ups from the integration validation audits
1 parent e759769 commit 286d1f3

86 files changed

Lines changed: 833 additions & 588 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/docs/content/docs/integrations/greptile.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Greptile
3-
description: AI-powered codebase search and Q&A
3+
description: Index repositories and check indexing status with Greptile
44
integration:
55
type: "greptile"
66
color: "#181C1E"
@@ -15,13 +15,13 @@ import { ReferenceDetails } from "@/components/ui/reference-details"
1515

1616
## Use the block [#usage-instructions]
1717

18-
Query and search codebases using natural language with Greptile. Get AI-generated answers about your code, find relevant files, and understand complex codebases.
18+
Index repositories with Greptile and check their indexing status. Greptile has retired its natural-language query and search endpoints, so the Query operation is no longer offered.
1919

2020
## Actions
2121

2222
### Greptile Query
2323

24-
Query repositories in natural language and get answers with relevant code references. Greptile uses AI to understand your codebase and answer questions.
24+
Retired: Greptile removed the POST /v2/query endpoint (it returns 404) with no documented replacement, so this call fails. Kept so saved workflows still load.
2525

2626
<ReferenceDetails>
2727

‎apps/docs/content/docs/integrations/kalshi.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ Cancel an existing order on Kalshi
796796

797797
| Parameter | Type | Description |
798798
| --------- | ---- | ----------- |
799-
| `order` | object | The canceled order object with full API response fields |
799+
| `order` | object | The canceled order. Kalshi now returns only order_id and client_order_id on cancel, so the other fields are null |
800800
| ↳ `order_id` | string | Order ID |
801801
| ↳ `user_id` | string | User ID |
802802
| ↳ `client_order_id` | string | Client order ID |

‎apps/docs/content/docs/integrations/ketch.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Retrieve consent status for a data subject. Returns the current consent preferen
4545
| `purposes` | object | Map of purpose codes to consent status and legal basis |
4646
| ↳ `allowed` | string | Consent status for the purpose: "true" or "false" |
4747
| ↳ `legalBasisCode` | string | Legal basis code \(e.g., "consent_optin", "consent_optout", "disclosure", "other"\) |
48-
| `vendors` | array | TCF vendor IDs returned with the consent record |
48+
| `vendors` | array | List of vendor IDs for which the user has opted out \(deprecated by Ketch in favor of vendorConsents\) |
4949

5050
</ReferenceDetails>
5151

‎apps/docs/content/docs/integrations/onepassword.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ List all vaults accessible by the Connect token or Service Account
4646
| ↳ `attributeVersion` | number | Vault attribute version |
4747
| ↳ `contentVersion` | number | Vault content version |
4848
| ↳ `items` | number | Number of items in the vault |
49-
| ↳ `type` | string | Vault type \(USER_CREATED, PERSONAL, EVERYONE, or TRANSFER\) |
49+
| ↳ `type` | string | Vault type \(USER_CREATED, PERSONAL, EVERYONE, TRANSFER, or UNSUPPORTED\) |
5050
| ↳ `createdAt` | string | Creation timestamp |
5151
| ↳ `updatedAt` | string | Last update timestamp |
5252

@@ -78,7 +78,7 @@ Get details of a specific vault by ID
7878
| `attributeVersion` | number | Vault attribute version |
7979
| `contentVersion` | number | Vault content version |
8080
| `items` | number | Number of items in the vault |
81-
| `type` | string | Vault type \(USER_CREATED, PERSONAL, EVERYONE, or TRANSFER\) |
81+
| `type` | string | Vault type \(USER_CREATED, PERSONAL, EVERYONE, TRANSFER, or UNSUPPORTED\) |
8282
| `createdAt` | string | Creation timestamp |
8383
| `updatedAt` | string | Last update timestamp |
8484

‎apps/docs/content/docs/integrations/pinecone.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Search for similar text in a Pinecone index
129129
| Parameter | Type | Required | Description |
130130
| --------- | ---- | -------- | ----------- |
131131
| `indexHost` | string | Yes | Full Pinecone index host URL \(e.g., "https://my-index-abc123.svc.pinecone.io") |
132-
| `namespace` | string | No | Namespace to search in \(e.g., "documents", "embeddings"\) |
132+
| `namespace` | string | Yes | Namespace to search in \(e.g., "documents", "embeddings"\) |
133133
| `searchQuery` | string | Yes | Text to search for |
134134
| `topK` | string | No | Number of results to return \(e.g., "10", "25"\) |
135135
| `fields` | array | No | Fields to return in the results |

‎apps/docs/content/docs/integrations/wealthbox.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Read content from a Wealthbox task
184184

185185
### Write Wealthbox Task
186186

187-
Create or update a Wealthbox task
187+
Create a Wealthbox task
188188

189189
<ReferenceDetails>
190190

@@ -202,12 +202,12 @@ Create or update a Wealthbox task
202202
| Parameter | Type | Description |
203203
| --------- | ---- | ----------- |
204204
| `success` | boolean | Operation success status |
205-
| `output` | object | Created or updated task data and metadata |
205+
| `output` | object | Created task data and metadata |
206206
| ↳ `task` | object | Raw task data from Wealthbox |
207207
| ↳ `success` | boolean | Operation success indicator |
208208
| ↳ `metadata` | object | Operation metadata |
209-
| ↳ `itemId` | string | ID of the created/updated task |
210-
| ↳ `taskId` | string | ID of the created/updated task |
209+
| ↳ `itemId` | string | ID of the created task |
210+
| ↳ `taskId` | string | ID of the created task |
211211
| ↳ `itemType` | string | Type of item \(task\) |
212212

213213
</ReferenceDetails>

‎apps/sim/blocks/blocks/arxiv.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,15 @@ export const ArxivBlock: BlockConfig = {
171171
'Matching papers [{id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi}]',
172172
},
173173
totalResults: { type: 'number', description: 'Total results count' },
174+
query: { type: 'string', description: 'Executed search query (search)' },
174175
// Get Paper Details output
175176
paper: {
176177
type: 'json',
177178
description:
178179
'Paper details (id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi)',
179180
},
180181
// Get Author Papers output
182+
authorName: { type: 'string', description: 'Author searched (get author papers)' },
181183
authorPapers: {
182184
type: 'json',
183185
description:

‎apps/sim/blocks/blocks/aws-stale-inputs.test.ts‎

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -151,26 +151,29 @@ describe('AWS blocks keep stale subBlock values out of tool input', () => {
151151
})
152152

153153
it('a blank stored limit still lets an Agent call pass its own limit', () => {
154-
const sqs = SQSBlock.tools.config?.params?.(
155-
{
156-
...AWS,
157-
receiveVisibilityTimeout: '',
158-
visibilityTimeout: 30,
159-
moveTaskMaxResults: '',
160-
maxResults: 5,
161-
},
162-
{ operation: 'receive_message' }
163-
)
164-
expect(sqs?.visibilityTimeout).toBe(30)
165-
const moveTasks = SQSBlock.tools.config?.params?.(
166-
{ ...AWS, moveTaskMaxResults: '', maxResults: 5 },
167-
{ operation: 'list_message_move_tasks' }
168-
)
169-
expect(moveTasks?.maxResults).toBe(5)
170-
const ssm = SSMBlock.tools.config?.params?.(
171-
{ ...AWS, pathMaxResults: '', maxResults: 5 },
172-
{ operation: 'get_parameters_by_path' }
173-
)
174-
expect(ssm?.maxResults).toBe(5)
154+
const sqsInputs = {
155+
...AWS,
156+
receiveVisibilityTimeout: '',
157+
visibilityTimeout: 30,
158+
moveTaskMaxResults: '',
159+
maxResults: 5,
160+
}
161+
const sqs = {
162+
...sqsInputs,
163+
...SQSBlock.tools.config?.params?.(sqsInputs, { operation: 'receive_message' }),
164+
}
165+
expect(sqs.visibilityTimeout).toBe(30)
166+
const moveTaskInputs = { ...AWS, moveTaskMaxResults: '', maxResults: 5 }
167+
const moveTasks = {
168+
...moveTaskInputs,
169+
...SQSBlock.tools.config?.params?.(moveTaskInputs, { operation: 'list_message_move_tasks' }),
170+
}
171+
expect(moveTasks.maxResults).toBe(5)
172+
const ssmInputs = { ...AWS, pathMaxResults: '', maxResults: 5 }
173+
const ssm = {
174+
...ssmInputs,
175+
...SSMBlock.tools.config?.params?.(ssmInputs, { operation: 'get_parameters_by_path' }),
176+
}
177+
expect(ssm.maxResults).toBe(5)
175178
})
176179
})

‎apps/sim/blocks/blocks/dspy.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('DSPy block params', () => {
1616

1717
it('fails on Additional Inputs that are not valid JSON instead of dropping them', () => {
1818
expect(() => mapParams({ additionalInputs: '{"topic": ' })).toThrow(
19-
'Additional Inputs must be valid JSON'
19+
'Invalid JSON for Additional Inputs'
2020
)
2121
})
2222

‎apps/sim/blocks/blocks/dspy.ts‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,12 @@ import { isPlainRecord } from '@sim/utils/object'
22
import { DsPyIcon } from '@/components/icons'
33
import type { BlockConfig, BlockMeta } from '@/blocks/types'
44
import { IntegrationType } from '@/blocks/types'
5-
import { failToolCallOnError, mapperOperation } from '@/blocks/utils'
5+
import { failToolCallOnError, mapperOperation, parseOptionalJsonInput } from '@/blocks/utils'
66

77
/** Predict's Additional Inputs: a JSON object as text from the canvas, or an object from an agent. */
88
function parseAdditionalInputs(value: unknown): Record<string, unknown> | undefined {
9-
if (value === undefined || value === null) return undefined
10-
if (typeof value === 'string' && !value.trim()) return undefined
11-
let parsed: unknown = value
12-
if (typeof value === 'string') {
13-
try {
14-
parsed = JSON.parse(value)
15-
} catch {
16-
throw new Error('Additional Inputs must be valid JSON')
17-
}
18-
}
9+
const parsed = parseOptionalJsonInput(value, 'Additional Inputs')
10+
if (parsed === undefined) return undefined
1911
if (!isPlainRecord(parsed)) {
2012
throw new Error('Additional Inputs must be a JSON object')
2113
}

0 commit comments

Comments
 (0)