Skip to content

Commit ffb8306

Browse files
committed
style: sort imports and format the three files biome flagged
1 parent d673626 commit ffb8306

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

apps/sim/app/api/mcp/tools/discover/route.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ export const GET = withRouteHandler(
7171
workspaceId,
7272
forceRefresh ? 'force' : 'cache-aside'
7373
)
74-
: await mcpService.discoverTools(userId, workspaceId, forceRefresh ? 'force' : 'cache-aside')
74+
: await mcpService.discoverTools(
75+
userId,
76+
workspaceId,
77+
forceRefresh ? 'force' : 'cache-aside'
78+
)
7579

7680
const byServer: Record<string, number> = {}
7781
for (const tool of tools) {
@@ -120,12 +124,7 @@ export const POST = withRouteHandler(
120124
serverIds,
121125
MCP_REFRESH_DISCOVERY_CONCURRENCY,
122126
async (serverId: string) => {
123-
const tools = await mcpService.discoverServerTools(
124-
userId,
125-
serverId,
126-
workspaceId,
127-
'force'
128-
)
127+
const tools = await mcpService.discoverServerTools(userId, serverId, workspaceId, 'force')
129128
return { serverId, toolCount: tools.length }
130129
}
131130
)

apps/sim/lib/api/contracts/v2/__tests__/tables.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { describe, expect, it } from 'vitest'
22
import type { z } from 'zod'
3+
import {
4+
issueCodes,
5+
type SchemaLike,
6+
strictnessTargets,
7+
} from '@/lib/api/contracts/v2/__tests__/schema-introspection'
38
import * as tableContracts from '@/lib/api/contracts/v2/tables'
49
import {
510
V2_TABLE_IMPORT_OPTIONS_MAX_BYTES,
@@ -14,11 +19,6 @@ import {
1419
v2TableUploadImportSourceSchema,
1520
v2UpdateTableColumnBodySchema,
1621
} from '@/lib/api/contracts/v2/tables'
17-
import {
18-
issueCodes,
19-
type SchemaLike,
20-
strictnessTargets,
21-
} from '@/lib/api/contracts/v2/__tests__/schema-introspection'
2222
import { getValidationErrorMessage } from '@/lib/api/server/validation'
2323
import { TABLE_LIMITS } from '@/lib/table/constants'
2424
import { CSV_DURABLE_MAX_FILE_SIZE_BYTES } from '@/lib/table/import'

apps/sim/lib/mcp/service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function expectSqlSideFailureIncrement(values: Record<string, unknown>): void {
199199
expect(statusConfig).toContain("-> 'lastSuccessfulDiscovery'")
200200

201201
const connectionStatus = renderSql(values.connectionStatus)
202-
expect(connectionStatus).toContain(") + 1 >= ")
202+
expect(connectionStatus).toContain(') + 1 >= ')
203203
expect(connectionStatus).toContain(String(MCP_CONSTANTS.MAX_CONSECUTIVE_FAILURES))
204204
expect(connectionStatus).toContain("THEN 'error' ELSE 'disconnected' END")
205205
}

0 commit comments

Comments
 (0)