From a5cd631c29748cec7d32aa947043c9ecbfe12526 Mon Sep 17 00:00:00 2001 From: David Snelling Date: Fri, 8 Aug 2025 15:28:10 -0700 Subject: [PATCH] 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 --- src/augmentations/cortexSense.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/augmentations/cortexSense.ts b/src/augmentations/cortexSense.ts index 4e56b2e7..e02a7c3d 100644 --- a/src/augmentations/cortexSense.ts +++ b/src/augmentations/cortexSense.ts @@ -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) {