@mandujs/core 0.41.2 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mandujs/core",
3
- "version": "0.41.2",
3
+ "version": "0.42.0",
4
4
  "description": "Mandu Framework Core - Spec, Generator, Guard, Runtime",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { newId } from "../id";
4
4
 
5
- export type EventType = "http" | "mcp" | "guard" | "build" | "error" | "cache" | "ws";
5
+ export type EventType = "http" | "mcp" | "guard" | "build" | "error" | "cache" | "ws" | "ate";
6
6
  export type ObservabilitySeverity = "info" | "warn" | "error";
7
7
 
8
8
  export interface ObservabilityEvent {
@@ -60,7 +60,7 @@ class ManduEventBus {
60
60
 
61
61
  getStats(windowMs?: number): Record<EventType, { count: number; errors: number; avgDuration: number }> {
62
62
  const cutoff = windowMs ? Date.now() - windowMs : 0;
63
- const ALL: EventType[] = ["http", "mcp", "guard", "build", "error", "cache", "ws"];
63
+ const ALL: EventType[] = ["http", "mcp", "guard", "build", "error", "cache", "ws", "ate"];
64
64
  const stats = {} as Record<EventType, { count: number; errors: number; avgDuration: number }>;
65
65
  const dur = {} as Record<EventType, number[]>;
66
66
  for (const t of ALL) { stats[t] = { count: 0, errors: 0, avgDuration: 0 }; dur[t] = []; }