Skip to content

Commit 0ba58e1

Browse files
committed
fix(lint): fix lint
1 parent eb23c6c commit 0ba58e1

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

apps/sim/lib/copilot/chat/payload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { toError } from '@sim/utils/errors'
33
import { LRUCache } from 'lru-cache'
44
import { getHighestPrioritySubscription } from '@/lib/billing/core/subscription'
55
import { isPaid } from '@/lib/billing/plan-helpers'
6+
import type { VfsSnapshotV1 } from '@/lib/copilot/generated/vfs-snapshot-v1'
67
import { getExposedIntegrationTools } from '@/lib/copilot/integration-tools'
78
import { getToolEntry } from '@/lib/copilot/tool-executor/router'
89
import { getCopilotToolDescription } from '@/lib/copilot/tools/descriptions'
9-
import type { VfsSnapshotV1 } from '@/lib/copilot/generated/vfs-snapshot-v1'
1010
import { encodeVfsSegment } from '@/lib/copilot/vfs/path-utils'
1111
import { isE2BDocEnabled, isHosted } from '@/lib/core/config/env-flags'
1212
import { buildUserSkillTool } from '@/lib/mothership/skills'

apps/sim/lib/copilot/chat/post.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ describe('handleUnifiedChatPost', () => {
142142
})
143143
getUserEntityPermissions.mockResolvedValue('write')
144144
getEffectiveDecryptedEnv.mockResolvedValue({ API_KEY: 'secret' })
145-
generateWorkspaceSnapshot.mockResolvedValue({ markdown: 'workspace context', snapshot: undefined })
145+
generateWorkspaceSnapshot.mockResolvedValue({
146+
markdown: 'workspace context',
147+
snapshot: undefined,
148+
})
146149
processContextsServer.mockResolvedValue([])
147150
resolveActiveResourceContext.mockResolvedValue(null)
148151
buildCopilotRequestPayload.mockImplementation(async (params: Record<string, unknown>) => params)

apps/sim/lib/copilot/chat/post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
} from '@/lib/copilot/chat/process-contents'
2424
import { finalizeAssistantTurn } from '@/lib/copilot/chat/terminal-state'
2525
import { generateWorkspaceSnapshot } from '@/lib/copilot/chat/workspace-context'
26-
import type { VfsSnapshotV1 } from '@/lib/copilot/generated/vfs-snapshot-v1'
2726
import { chatPubSub } from '@/lib/copilot/chat-status'
2827
import { COPILOT_REQUEST_MODES } from '@/lib/copilot/constants'
2928
import {
@@ -33,6 +32,7 @@ import {
3332
} from '@/lib/copilot/generated/trace-attribute-values-v1'
3433
import { TraceAttr } from '@/lib/copilot/generated/trace-attributes-v1'
3534
import { TraceSpan } from '@/lib/copilot/generated/trace-spans-v1'
35+
import type { VfsSnapshotV1 } from '@/lib/copilot/generated/vfs-snapshot-v1'
3636
import { createBadRequestResponse, createUnauthorizedResponse } from '@/lib/copilot/request/http'
3737
import { createSSEStream, SSE_RESPONSE_HEADERS } from '@/lib/copilot/request/lifecycle/start'
3838
import { startCopilotOtelRoot, withCopilotSpan } from '@/lib/copilot/request/otel'

apps/sim/lib/copilot/chat/workspace-context.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import { db } from '@sim/db'
2-
import type {
3-
VfsSnapshotV1,
4-
VfsSnapshotV1Job,
5-
VfsSnapshotV1Workflow,
6-
} from '@/lib/copilot/generated/vfs-snapshot-v1'
72
import {
83
knowledgeBase,
94
knowledgeConnector,
@@ -16,6 +11,11 @@ import {
1611
import { createLogger } from '@sim/logger'
1712
import { toError } from '@sim/utils/errors'
1813
import { and, eq, inArray, isNull } from 'drizzle-orm'
14+
import type {
15+
VfsSnapshotV1,
16+
VfsSnapshotV1Job,
17+
VfsSnapshotV1Workflow,
18+
} from '@/lib/copilot/generated/vfs-snapshot-v1'
1919
import { normalizeVfsSegment } from '@/lib/copilot/vfs/normalize-segment'
2020
import { canonicalWorkflowVfsDir, canonicalWorkspaceFilePath } from '@/lib/copilot/vfs/path-utils'
2121
import { getAccessibleOAuthCredentials } from '@/lib/credentials/environment'

0 commit comments

Comments
 (0)