feat(chat): support local file downloads/uploads for chat for parity with kb (#1751)

* feat(chat): support local file downloads/uploads for chat for parity with kb

* cleanup imports

* feat(files): add storage service and consolidate file utils

* fix failing tests

* cleanup

* cleaned up

* clean

* add context for file uplaods/fetches

* fixed blob

* rm comments

* fix failing test

* fix profile pics

* add workspace dedupe for duplicated files

* update chat to accept only accepted types

* add loading anim to profilepic update

* optimistically update keys, copilot keys, and file uploads to prevent flash

* add defensive check for deleting files
This commit is contained in:
Waleed
2025-10-28 20:09:51 -07:00
committed by GitHub
parent 807014a5d2
commit 7be9941bc9
83 changed files with 2197 additions and 1796 deletions

View File

@@ -14,6 +14,7 @@ export interface UserFile {
key: string
uploadedAt: string
expiresAt: string
context?: string
}
/**

View File

@@ -1,5 +1,5 @@
import { createLogger } from '@/lib/logs/console/logger'
import { uploadExecutionFile } from '@/lib/workflows/execution-file-storage'
import { uploadExecutionFile } from '@/lib/uploads/contexts/execution'
import type { ExecutionContext, UserFile } from '@/executor/types'
import type { ToolConfig, ToolFileData } from '@/tools/types'