Skip to content

Commit f6b25bf

Browse files
committed
Lint
1 parent aa343fb commit f6b25bf

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed

apps/sim/app/api/docs/search/route.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { NextRequest, NextResponse } from 'next/server'
2-
import { createLogger } from '@/lib/logs/console-logger'
1+
import { type NextRequest, NextResponse } from 'next/server'
32
import { searchDocumentation } from '@/lib/copilot/service'
3+
import { createLogger } from '@/lib/logs/console-logger'
44

55
const logger = createLogger('DocsSearchAPI')
66

@@ -34,4 +34,4 @@ export async function POST(request: NextRequest) {
3434
{ status: 500 }
3535
)
3636
}
37-
}
37+
}

apps/sim/app/api/workflows/current/yaml/route.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextRequest, NextResponse } from 'next/server'
1+
import { type NextRequest, NextResponse } from 'next/server'
22
import { createLogger } from '@/lib/logs/console-logger'
33
import { useWorkflowYamlStore } from '@/stores/workflows/yaml/store'
44

@@ -21,7 +21,7 @@ export async function POST(request: NextRequest) {
2121
)
2222
}
2323

24-
let metadata = undefined
24+
let metadata
2525
if (includeMetadata) {
2626
// Get additional workflow metadata if requested
2727
const workflowStore = yamlStore as any // Access internal state
@@ -33,9 +33,9 @@ export async function POST(request: NextRequest) {
3333
}
3434
}
3535

36-
logger.info('Successfully generated workflow YAML', {
37-
includeMetadata,
38-
yamlLength: yamlContent.length
36+
logger.info('Successfully generated workflow YAML', {
37+
includeMetadata,
38+
yamlLength: yamlContent.length,
3939
})
4040

4141
return NextResponse.json({
@@ -53,4 +53,4 @@ export async function POST(request: NextRequest) {
5353
{ status: 500 }
5454
)
5555
}
56-
}
56+
}

apps/sim/lib/copilot/service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ export async function generateChatResponse(
441441
properties: {
442442
includeMetadata: {
443443
type: 'boolean',
444-
description: 'Whether to include additional metadata about the workflow (default: false)',
444+
description:
445+
'Whether to include additional metadata about the workflow (default: false)',
445446
default: false,
446447
},
447448
},

apps/sim/lib/copilot/tools.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,17 @@ const getUserWorkflowTool: CopilotTool = {
9898
// Import the workflow YAML store dynamically to avoid import issues
9999
const { useWorkflowYamlStore } = await import('@/stores/workflows/yaml/store')
100100
const { useWorkflowRegistry } = await import('@/stores/workflows/registry/store')
101-
101+
102102
// Get the current workflow YAML
103103
const yamlContent = useWorkflowYamlStore.getState().getYaml()
104-
104+
105105
// Get additional metadata if requested
106106
let metadata = {}
107107
if (includeMetadata) {
108108
const registry = useWorkflowRegistry.getState()
109109
const activeWorkflowId = registry.activeWorkflowId
110110
const activeWorkflow = activeWorkflowId ? registry.workflows[activeWorkflowId] : null
111-
111+
112112
if (activeWorkflow) {
113113
metadata = {
114114
workflowId: activeWorkflowId,

apps/sim/tools/docs/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ export const docsSearchTool: ToolConfig = {
3232
}),
3333
isInternalRoute: true,
3434
},
35-
}
35+
}

apps/sim/tools/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { useCustomToolsStore } from '@/stores/custom-tools/store'
44
import { useEnvironmentStore } from '@/stores/settings/environment/store'
55
import { docsSearchTool } from './docs/search'
66
import { tools } from './registry'
7-
import { getUserWorkflowTool } from './workflow/get-yaml'
87
import type { TableRow, ToolConfig, ToolResponse } from './types'
8+
import { getUserWorkflowTool } from './workflow/get-yaml'
99

1010
const logger = createLogger('ToolsUtils')
1111

apps/sim/tools/workflow/get-yaml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export const getUserWorkflowTool: ToolConfig = {
2626
}),
2727
isInternalRoute: true,
2828
},
29-
}
29+
}

0 commit comments

Comments
 (0)