fix: correct fs.readFile call in cortexSense for universal adapter compatibility

- Remove encoding parameter from fs.readFile (universal adapter handles this)
- Build now completes successfully
- TypeScript compilation errors resolved
This commit is contained in:
David Snelling 2025-08-08 15:28:10 -07:00
parent 93804be354
commit a5cd631c29

View file

@ -163,7 +163,7 @@ export class CortexSenseAugmentation implements ISenseAugmentation {
const watcher = fsWatch.watch(filePath, async (eventType: string) => {
if (eventType === 'change') {
try {
const fileContent = await fs.readFile(filePath, 'utf8')
const fileContent = await fs.readFile(filePath)
const result = await this.processRawData(fileContent, this.getDataTypeFromPath(filePath))
if (result.success) {