Skip to content

Commit c7a8ea9

Browse files
committed
fix(files): resolve capability type and artifact checks
1 parent 29b8b4a commit c7a8ea9

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/collaboration/use-file-doc-collaboration.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { useEffect, useMemo, useRef, useState } from 'react'
44
import { FILE_DOC_EVENTS, type FileDocPresence } from '@sim/realtime-protocol/file-doc'
5-
import { useQueryClient } from '@tanstack/react-query'
5+
import { type QueryFilters, useQueryClient } from '@tanstack/react-query'
66
import { Awareness } from 'y-protocols/awareness'
77
import * as Y from 'yjs'
88
import { getUserColor } from '@/lib/workspaces/colors'
@@ -113,7 +113,7 @@ export function useFileDocCollaboration({
113113
})
114114
setCanWrite(fileProvider.canWrite)
115115
const reloadAfterWriteLoss = async () => {
116-
const filters = [
116+
const filters: QueryFilters[] = [
117117
{ queryKey: workspaceFilesKeys.contentFile(workspaceId, fileId) },
118118
{ queryKey: workspaceFilesKeys.record(workspaceId, fileId) },
119119
{ queryKey: workspaceFilesKeys.workspaceLists(workspaceId) },

‎apps/sim/lib/api/mcp/generated/v2-operations.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ export const V2_MCP_OPERATIONS = {
21482148
contract: v2ListProjectFileFoldersContract,
21492149
summary: 'List Project File Folders',
21502150
description:
2151-
'List the Project folder tree with stable identifiers. Use scope=archived to find folders eligible for restore. Returns the complete set in one page; `nextCursor` is always null. Workspace API keys return `403`; use a personal API key or scoped OAuth token.\n\nOAuth scope: `api:read`.',
2151+
'List the Project folder tree with stable identifiers. Use scope=archived to find folders eligible for restore. Returns one page; `nextCursor` is always null. Workspace API keys return `403`; use a personal API key or scoped OAuth token.\n\nOAuth scope: `api:read`.',
21522152
workspaceKeyUnsupported: true,
21532153
handler: () =>
21542154
import('@/app/api/v2/projects/[projectId]/files/folders/route').then((route) => route.GET),

‎packages/db/package.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"./testing/test-infrastructure": {
3333
"types": "./testing/test-infrastructure.ts",
3434
"default": "./testing/test-infrastructure.ts"
35+
},
36+
"./testing/workspace-fixtures": {
37+
"types": "./testing/workspace-fixtures.ts",
38+
"default": "./testing/workspace-fixtures.ts"
3539
}
3640
},
3741
"scripts": {

0 commit comments

Comments
 (0)