Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1x 1x 1x 1x 1x 6x 3x 3x 3x 3x 3x 1x 1x 3x 4x 4x | export { TimesfmWebAdapter } from './adapter.js'
export type { TimesfmWebConfig } from './adapter.js'
export type { DataPoint, ForecastResult, ForecasterType, IForecaster } from './adapter.js'
export { createDetector } from '@agentix-e/anomaly-detector-core'
export type { AnalyzedPoint, DetectionResult, CalibrationResult, DimensionAttribution, DriftInfo, DetectorConfig, IAnomalyDetector } from '@agentix-e/anomaly-detector-core'
import { createDetector } from '@agentix-e/anomaly-detector-core'
import { TimesfmWebAdapter } from './adapter.js'
import type { IAnomalyDetector, DetectorConfig } from '@agentix-e/anomaly-detector-core'
export function createWebDetector(config?: DetectorConfig): IAnomalyDetector {
if (config?.forecaster?.type === 'timesfm') {
try {
const adapter = new TimesfmWebAdapter(config?.forecaster?.timesfm);
(config as Record<string, unknown>)._customForecaster = adapter
return createDetector(config)
} catch {
console.warn('TimesFM Web requested but not installed. Falling back to anofox-forecast.')
}
}
return createDetector(config)
}
|