@mondaydotcomorg/atp-compiler
Version:
Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management
33 lines • 831 B
JavaScript
/**
* Default Detection Plugin
* Wraps the existing AsyncIterationDetector
*/
import { AsyncIterationDetector } from '../../transformer/detector.js';
export class DefaultDetectionPlugin {
name = 'atp-default-detector';
version = '1.0.0';
priority = 100;
patterns = [
'for-of-await',
'while-await',
'map-async',
'forEach-async',
'filter-async',
'reduce-async',
'find-async',
'some-async',
'every-async',
'flatMap-async',
'promise-all',
'promise-allSettled',
];
detector;
constructor() {
this.detector = new AsyncIterationDetector();
}
async detect(code, ast) {
// Use existing detector
return this.detector.detect(code);
}
}
//# sourceMappingURL=detection-plugin.js.map