Skip to content
6 changes: 3 additions & 3 deletions apps/docs/content/docs/integrations/greptile.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Greptile
description: AI-powered codebase search and Q&A
description: Index repositories and check indexing status with Greptile
integration:
type: "greptile"
color: "#181C1E"
Expand All @@ -15,13 +15,13 @@ import { ReferenceDetails } from "@/components/ui/reference-details"

## Use the block [#usage-instructions]

Query and search codebases using natural language with Greptile. Get AI-generated answers about your code, find relevant files, and understand complex codebases.
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.

## Actions

### Greptile Query

Query repositories in natural language and get answers with relevant code references. Greptile uses AI to understand your codebase and answer questions.
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.

<ReferenceDetails>

Expand Down
27 changes: 18 additions & 9 deletions apps/docs/content/docs/integrations/kalshi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -722,18 +722,18 @@ Create a new order on a Kalshi prediction market
| `side` | string | Yes | Side of the order: "yes" or "no" |
| `action` | string | Yes | Action type: "buy" or "sell" |
| `count` | string | No | Number of contracts to trade \(e.g., "10", "100"\). Provide count or countFp |
| `type` | string | No | Order type: "limit" or "market" \(default: "limit"\) |
| `type` | string | No | Order type: "limit" \(default\). Kalshi no longer accepts "market" orders; set a price instead |
| `yesPrice` | string | No | Yes price in cents \(1-99\) |
| `noPrice` | string | No | No price in cents \(1-99\) |
| `yesPriceDollars` | string | No | Yes price in dollars \(e.g., "0.56"\) |
| `noPriceDollars` | string | No | No price in dollars \(e.g., "0.56"\) |
| `clientOrderId` | string | No | Custom order identifier |
| `expirationTs` | string | No | Unix timestamp for order expiration |
| `timeInForce` | string | No | Time in force: 'fill_or_kill', 'good_till_canceled', 'immediate_or_cancel' |
| `buyMaxCost` | string | No | Maximum cost in cents \(auto-enables fill_or_kill\) |
| `timeInForce` | string | No | Time in force: 'good_till_canceled' \(default\), 'fill_or_kill', or 'immediate_or_cancel' |
| `buyMaxCost` | string | No | No longer supported by Kalshi: set a limit price and count with timeInForce fill_or_kill instead |
| `postOnly` | string | No | Set to 'true' for maker-only orders |
| `reduceOnly` | string | No | Set to 'true' for position reduction only |
| `selfTradePreventionType` | string | No | Self-trade prevention: 'taker_at_cross' or 'maker' |
| `selfTradePreventionType` | string | No | Self-trade prevention: 'taker_at_cross' \(default\) or 'maker' |
| `orderGroupId` | string | No | Associated order group ID |
| `countFp` | string | No | Count in fixed-point for fractional contracts |
| `cancelOrderOnPause` | string | No | Set to 'true' to cancel order on market pause |
Expand All @@ -743,7 +743,7 @@ Create a new order on a Kalshi prediction market

| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `order` | object | The created order object with full API response fields |
| `order` | object | The created order. Kalshi reports only its ID and fill counts on create; the direction, price and settings are the ones this request sent, and fields Kalshi no longer reports are null |
| ↳ `order_id` | string | Order ID |
| ↳ `user_id` | string | User ID |
| ↳ `client_order_id` | string | Client order ID |
Expand Down Expand Up @@ -791,12 +791,13 @@ Cancel an existing order on Kalshi
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `orderId` | string | Yes | Order ID to cancel \(e.g., "abc123-def456-ghi789"\) |
| `ticker` | string | No | Market ticker of the order \(e.g., "KXBTC-24DEC31"\), so the cancel reaches the order's exchange shard. Leave empty to look it up from the order first |

#### Output

| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `order` | object | The canceled order object with full API response fields |
| `order` | object | The canceled order. Kalshi now returns only order_id and client_order_id on cancel, so the other fields are null |
| ↳ `order_id` | string | Order ID |
| ↳ `user_id` | string | User ID |
| ↳ `client_order_id` | string | Client order ID |
Expand Down Expand Up @@ -851,7 +852,7 @@ Modify the price or quantity of an existing order on Kalshi
| `action` | string | Yes | Action type: "buy" or "sell" |
| `clientOrderId` | string | No | Original client-specified order ID |
| `updatedClientOrderId` | string | No | New client-specified order ID after amendment |
| `count` | string | No | Updated quantity for the order \(e.g., "10", "100"\) |
| `count` | string | No | New total contracts for the order: already filled plus desired resting \(e.g., "10"\). Leave empty to keep the current total, only if the order hasn't just changed; Kalshi's order reads can briefly lag |
| `yesPrice` | string | No | Updated yes price in cents \(1-99\) |
| `noPrice` | string | No | Updated no price in cents \(1-99\) |
| `yesPriceDollars` | string | No | Updated yes price in dollars \(e.g., "0.56"\) |
Expand All @@ -862,7 +863,7 @@ Modify the price or quantity of an existing order on Kalshi

| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `old_order` | object | The original order object before amendment |
| `old_order` | object | The order before the amend when it was read first \(an amend with no count or price\); otherwise only order_id is known |
| ↳ `order_id` | string | Order ID |
| ↳ `user_id` | string | User ID |
| ↳ `ticker` | string | Market ticker |
Expand All @@ -872,9 +873,13 @@ Modify the price or quantity of an existing order on Kalshi
| ↳ `type` | string | Order type \(limit/market\) |
| ↳ `yes_price` | number | Yes price in cents |
| ↳ `no_price` | number | No price in cents |
| ↳ `yes_price_dollars` | string | Yes price in dollars |
| ↳ `no_price_dollars` | string | No price in dollars |
| ↳ `action` | string | Action \(buy/sell\) |
| ↳ `count` | number | Number of contracts |
| ↳ `remaining_count` | number | Remaining contracts |
| ↳ `fill_count_fp` | string | Filled count \(fixed-point\) |
| ↳ `remaining_count_fp` | string | Remaining count \(fixed-point\) |
| ↳ `created_time` | string | Order creation time |
| ↳ `expiration_time` | string | Order expiration time |
| ↳ `order_group_id` | string | Order group ID |
Expand All @@ -891,7 +896,7 @@ Modify the price or quantity of an existing order on Kalshi
| ↳ `stop_loss_order_id` | string | Stop loss order ID |
| ↳ `amend_count` | number | Amend count |
| ↳ `amend_taker_fill_count` | number | Amend taker fill count |
| `order` | object | The amended order object with full API response fields |
| `order` | object | The amended order: order_id, client_order_id and counts from Kalshi, with the direction, price and total count this amend sent; fields Kalshi no longer reports are null |
| ↳ `order_id` | string | Order ID |
| ↳ `user_id` | string | User ID |
| ↳ `ticker` | string | Market ticker |
Expand All @@ -901,9 +906,13 @@ Modify the price or quantity of an existing order on Kalshi
| ↳ `type` | string | Order type \(limit/market\) |
| ↳ `yes_price` | number | Yes price in cents |
| ↳ `no_price` | number | No price in cents |
| ↳ `yes_price_dollars` | string | Yes price in dollars |
| ↳ `no_price_dollars` | string | No price in dollars |
| ↳ `action` | string | Action \(buy/sell\) |
| ↳ `count` | number | Number of contracts |
| ↳ `remaining_count` | number | Remaining contracts |
| ↳ `fill_count_fp` | string | Contracts filled by this amend \(fixed-point\) |
| ↳ `remaining_count_fp` | string | Remaining count \(fixed-point\) |
| ↳ `created_time` | string | Order creation time |
| ↳ `expiration_time` | string | Order expiration time |
| ↳ `order_group_id` | string | Order group ID |
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/integrations/ketch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Retrieve consent status for a data subject. Returns the current consent preferen
| `purposes` | object | Map of purpose codes to consent status and legal basis |
| ↳ `allowed` | string | Consent status for the purpose: "true" or "false" |
| ↳ `legalBasisCode` | string | Legal basis code \(e.g., "consent_optin", "consent_optout", "disclosure", "other"\) |
| `vendors` | array | TCF vendor IDs returned with the consent record |
| `vendors` | array | List of vendor IDs for which the user has opted out \(deprecated by Ketch in favor of vendorConsents\) |

</ReferenceDetails>

Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/integrations/onepassword.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ List all vaults accessible by the Connect token or Service Account
| ↳ `attributeVersion` | number | Vault attribute version |
| ↳ `contentVersion` | number | Vault content version |
| ↳ `items` | number | Number of items in the vault |
| ↳ `type` | string | Vault type \(USER_CREATED, PERSONAL, EVERYONE, or TRANSFER\) |
| ↳ `type` | string | Vault type \(USER_CREATED, PERSONAL, EVERYONE, TRANSFER, or UNSUPPORTED\) |
| ↳ `createdAt` | string | Creation timestamp |
| ↳ `updatedAt` | string | Last update timestamp |

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

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/integrations/pinecone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Search for similar text in a Pinecone index
| Parameter | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `indexHost` | string | Yes | Full Pinecone index host URL \(e.g., "https://my-index-abc123.svc.pinecone.io") |
| `namespace` | string | No | Namespace to search in \(e.g., "documents", "embeddings"\) |
| `namespace` | string | Yes | Namespace to search in \(e.g., "documents", "embeddings"\) |
| `searchQuery` | string | Yes | Text to search for |
| `topK` | string | No | Number of results to return \(e.g., "10", "25"\) |
| `fields` | array | No | Fields to return in the results |
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/content/docs/integrations/wealthbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Read content from a Wealthbox task

### Write Wealthbox Task

Create or update a Wealthbox task
Create a Wealthbox task

<ReferenceDetails>

Expand All @@ -202,12 +202,12 @@ Create or update a Wealthbox task
| Parameter | Type | Description |
| --------- | ---- | ----------- |
| `success` | boolean | Operation success status |
| `output` | object | Created or updated task data and metadata |
| `output` | object | Created task data and metadata |
| ↳ `task` | object | Raw task data from Wealthbox |
| ↳ `success` | boolean | Operation success indicator |
| ↳ `metadata` | object | Operation metadata |
| ↳ `itemId` | string | ID of the created/updated task |
| ↳ `taskId` | string | ID of the created/updated task |
| ↳ `itemId` | string | ID of the created task |
| ↳ `taskId` | string | ID of the created task |
| ↳ `itemType` | string | Type of item \(task\) |

</ReferenceDetails>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ function hasMultipleOperations(block: BlockConfig | undefined): boolean {
* @param block - The block config to get operations for
* @returns Array of operation options with label and id properties
*/
function getOperationOptions(block: BlockConfig | undefined): { label: string; id: string }[] {
function getOperationOptions(
block: BlockConfig | undefined
): { label: string; id: string; hidden?: boolean }[] {
if (!block || !block.tools?.access) return []

const operationSubBlock = block.subBlocks.find((sb) => sb.id === OPERATION_SUBBLOCK_ID)
Expand All @@ -290,7 +292,7 @@ function getOperationOptions(block: BlockConfig | undefined): { label: string; i
operationSubBlock.type === 'dropdown' &&
Array.isArray(operationSubBlock.options)
) {
return operationSubBlock.options as { label: string; id: string }[]
return operationSubBlock.options as { label: string; id: string; hidden?: boolean }[]
}

return block.tools.access.map((toolId) => {
Expand Down Expand Up @@ -612,8 +614,9 @@ export const ToolInput = memo(function ToolInput({
const { getDeniedOperations } = useOperationAccess()

/**
* A tool block's selectable operations paired with the ones the caller's
* permission group denies.
* A tool block's selectable operations paired with the ones the caller may not
* pick: those the caller's permission group denies, and retired operations the
* block keeps as `hidden` options so saved workflows stay valid.
*
* Both callers derive from this single result so they cannot drift: the
* picker *removes* denied operations (it must never offer or default to one),
Expand All @@ -623,12 +626,14 @@ export const ToolInput = memo(function ToolInput({
const getOperationChoices = useCallback(
(block: BlockConfig | undefined) => {
const options = getOperationOptions(block).filter((option) => option.id !== '')
const denied = getDeniedOperations(
block,
options.map((option) => option.id)
)
const hiddenIds = options.filter((option) => option.hidden).map((option) => option.id)
return {
options,
denied: getDeniedOperations(
block,
options.map((option) => option.id)
),
denied: hiddenIds.length > 0 ? new Set([...denied, ...hiddenIds]) : denied,
}
},
[getDeniedOperations]
Expand Down
2 changes: 2 additions & 0 deletions apps/sim/blocks/blocks/arxiv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,15 @@ export const ArxivBlock: BlockConfig = {
'Matching papers [{id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi}]',
},
totalResults: { type: 'number', description: 'Total results count' },
query: { type: 'string', description: 'Executed search query (search)' },
// Get Paper Details output
paper: {
type: 'json',
description:
'Paper details (id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi)',
},
// Get Author Papers output
authorName: { type: 'string', description: 'Author searched (get author papers)' },
authorPapers: {
type: 'json',
description:
Expand Down
45 changes: 24 additions & 21 deletions apps/sim/blocks/blocks/aws-stale-inputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,26 +151,29 @@ describe('AWS blocks keep stale subBlock values out of tool input', () => {
})

it('a blank stored limit still lets an Agent call pass its own limit', () => {
const sqs = SQSBlock.tools.config?.params?.(
{
...AWS,
receiveVisibilityTimeout: '',
visibilityTimeout: 30,
moveTaskMaxResults: '',
maxResults: 5,
},
{ operation: 'receive_message' }
)
expect(sqs?.visibilityTimeout).toBe(30)
const moveTasks = SQSBlock.tools.config?.params?.(
{ ...AWS, moveTaskMaxResults: '', maxResults: 5 },
{ operation: 'list_message_move_tasks' }
)
expect(moveTasks?.maxResults).toBe(5)
const ssm = SSMBlock.tools.config?.params?.(
{ ...AWS, pathMaxResults: '', maxResults: 5 },
{ operation: 'get_parameters_by_path' }
)
expect(ssm?.maxResults).toBe(5)
const sqsInputs = {
...AWS,
receiveVisibilityTimeout: '',
visibilityTimeout: 30,
moveTaskMaxResults: '',
maxResults: 5,
}
const sqs = {
...sqsInputs,
...SQSBlock.tools.config?.params?.(sqsInputs, { operation: 'receive_message' }),
}
expect(sqs.visibilityTimeout).toBe(30)
const moveTaskInputs = { ...AWS, moveTaskMaxResults: '', maxResults: 5 }
const moveTasks = {
...moveTaskInputs,
...SQSBlock.tools.config?.params?.(moveTaskInputs, { operation: 'list_message_move_tasks' }),
}
expect(moveTasks.maxResults).toBe(5)
const ssmInputs = { ...AWS, pathMaxResults: '', maxResults: 5 }
const ssm = {
...ssmInputs,
...SSMBlock.tools.config?.params?.(ssmInputs, { operation: 'get_parameters_by_path' }),
}
expect(ssm.maxResults).toBe(5)
})
})
18 changes: 8 additions & 10 deletions apps/sim/blocks/blocks/dspy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@ import { isPlainRecord } from '@sim/utils/object'
import { DsPyIcon } from '@/components/icons'
import type { BlockConfig, BlockMeta } from '@/blocks/types'
import { IntegrationType } from '@/blocks/types'
import { failToolCallOnError, mapperOperation } from '@/blocks/utils'
import { failToolCallOnError, mapperOperation, parseOptionalJsonInput } from '@/blocks/utils'

/** Predict's Additional Inputs: a JSON object as text from the canvas, or an object from an agent. */
function parseAdditionalInputs(value: unknown): Record<string, unknown> | undefined {
if (value === undefined || value === null) return undefined
if (typeof value === 'string' && !value.trim()) return undefined
let parsed: unknown = value
if (typeof value === 'string') {
try {
parsed = JSON.parse(value)
} catch {
throw new Error('Additional Inputs must be valid JSON')
}
let parsed: unknown
try {
parsed = parseOptionalJsonInput(value, 'Additional Inputs')
} catch {
// Static on purpose: the parser's message quotes the input, which can hold a resolved secret.
throw new Error('Additional Inputs must be valid JSON')
}
if (parsed === undefined) return undefined
if (!isPlainRecord(parsed)) {
throw new Error('Additional Inputs must be a JSON object')
}
Expand Down
Loading
Loading