/** * Example process function for general operation processing * * Usage: * plcbundle-bun process ./examples/processor.ts */ export function process({ op, position, bundle, line }: { op: any; position: number; bundle: number; line: string; }) { // Example: Count operations by year const year = op.createdAt.substring(0, 4); // Example: Log specific operations if (position % 1000 === 0) { console.log(`Bundle ${bundle}, position ${position}: ${op.did}`); } // Example: Custom logic if (op.operation?.alsoKnownAs?.length > 0) { // Do something with operations that have handles } // No need to return anything }