MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / importFile

Method importFile

packages/sync/src/types.ts:130–130  ·  view source on GitHub ↗

* Import temp file into an existing or new local session. * If `targetSessionId` is provided, attempt incremental import. * Otherwise, create a new session (using `externalId` for deterministic naming).

(tempFile: string, targetSessionId: string | undefined, externalId: string)

Source from the content-addressed store, hash-verified

128 * Otherwise, create a new session (using `externalId` for deterministic naming).
129 */
130 importFile(tempFile: string, targetSessionId: string | undefined, externalId: string): Promise<ImportResult>
131
132 /** Check if a local session database exists */
133 sessionExists(sessionId: string): boolean

Callers 1

importTempFileMethod · 0.65

Implementers 2

WorkerImporterapps/desktop/main/api/adapters.ts
DirectImporterapps/cli/src/sync/adapters.ts

Calls

no outgoing calls

Tested by

no test coverage detected