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

Function cliStreamImport

apps/cli/src/http/routes/web/index.ts:97–102  ·  view source on GitHub ↗
(dm: typeof dbManager, filePath: string)

Source from the content-addressed store, hash-verified

95 const ai = options?.aiContext
96
97 const cliStreamImport = async (dm: typeof dbManager, filePath: string) => {
98 const { streamImport } = await import('../../../import/stream-import')
99 const result = await streamImport(dm, filePath)
100 if (!result.sessionId) throw new Error('Import succeeded but no sessionId returned')
101 return { sessionId: result.sessionId }
102 }
103
104 const defaultUserDataDir = getDefaultNodeUserDataDir()
105 const isCustom = path.resolve(resolvedPathProvider.getUserDataDir()) !== path.resolve(defaultUserDataDir)

Callers

nothing calls this directly

Calls 1

streamImportFunction · 0.50

Tested by

no test coverage detected