MCPcopy Create free account
hub / github.com/cameri/nostream / importFromJsonl

Method importFromJsonl

src/services/event-import-service.ts:155–161  ·  view source on GitHub ↗
(filePath: string, options: EventImportOptions = {})

Source from the content-addressed store, hash-verified

153 }
154
155 public async importFromJsonl(filePath: string, options: EventImportOptions = {}): Promise<EventImportStats> {
156 const stream = fs.createReadStream(filePath, {
157 encoding: 'utf-8',
158 })
159
160 return this.importFromReadable(stream, options)
161 }
162
163 public async importFromJsonArray(filePath: string, options: EventImportOptions = {}): Promise<EventImportStats> {
164 return this.importFromCandidates(this.readJsonArrayCandidates(filePath), options)

Callers 1

Calls 1

importFromReadableMethod · 0.95

Tested by

no test coverage detected