file event improvement using midhash

This commit is contained in:
Pierre
2026-02-08 17:01:01 +01:00
parent 2baa9a6925
commit 60772847b2
9 changed files with 289 additions and 676 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ export interface StreamMessage {
// Direct file event fields (from meta-core)
path?: string;
size?: string;
partialHash?: string;
midhash256?: string; // midhash256 CID computed by meta-core
oldPath?: string;
// Legacy payload field (for backward compatibility)
payload?: string;
@@ -657,7 +657,7 @@ export class RedisClient implements Partial<IKVClient> {
type: fieldMap.type as StreamMessage['type'],
path: fieldMap.path,
size: fieldMap.size,
partialHash: fieldMap.partialHash,
midhash256: fieldMap.midhash256,
oldPath: fieldMap.oldPath,
payload: fieldMap.payload,
timestamp: fieldMap.timestamp || '0',