@loop-engine/observability 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Loop Engine Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,4 @@
1
+ export * from "./metrics";
2
+ export * from "./timeline";
3
+ export * from "./replay";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ // @license MIT
2
+ // SPDX-License-Identifier: MIT
3
+ export * from "./metrics";
4
+ export * from "./timeline";
5
+ export * from "./replay";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,+BAA+B;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { LoopId, LoopInstance, TransitionRecord } from "@loop-engine/core";
2
+ export interface LoopMetrics {
3
+ loopId: LoopId;
4
+ period: {
5
+ from: string;
6
+ to: string;
7
+ };
8
+ totalInstances: number;
9
+ openInstances: number;
10
+ closedInstances: number;
11
+ errorInstances: number;
12
+ avgDurationMs: number;
13
+ medianDurationMs: number;
14
+ p95DurationMs: number;
15
+ completionRate: number;
16
+ guardFailureRate: number;
17
+ aiActorRate: number;
18
+ humanActorRate: number;
19
+ avgTransitionCount: number;
20
+ }
21
+ export declare function computeMetrics(instances: LoopInstance[], history: TransitionRecord[], period: {
22
+ from: string;
23
+ to: string;
24
+ }): LoopMetrics;
25
+ //# sourceMappingURL=metrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../src/metrics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEhF,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AASD,wBAAgB,cAAc,CAC5B,SAAS,EAAE,YAAY,EAAE,EACzB,OAAO,EAAE,gBAAgB,EAAE,EAC3B,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GACnC,WAAW,CAwCb"}
@@ -0,0 +1,45 @@
1
+ function percentile(values, p) {
2
+ if (values.length === 0)
3
+ return 0;
4
+ const sorted = [...values].sort((a, b) => a - b);
5
+ const idx = Math.min(sorted.length - 1, Math.floor((p / 100) * sorted.length));
6
+ return sorted[idx] ?? 0;
7
+ }
8
+ export function computeMetrics(instances, history, period) {
9
+ const first = instances[0];
10
+ const loop = (first?.loopId ?? "unknown.loop");
11
+ const total = instances.length;
12
+ const open = instances.filter((i) => i.status === "OPEN" || i.status === "IN_PROGRESS").length;
13
+ const closed = instances.filter((i) => i.status === "CLOSED").length;
14
+ const error = instances.filter((i) => i.status === "ERROR").length;
15
+ const durations = instances
16
+ .map((i) => (i.closedAt ? Date.parse(i.closedAt) - Date.parse(i.startedAt) : 0))
17
+ .filter((d) => d > 0);
18
+ const avg = durations.length ? durations.reduce((a, b) => a + b, 0) / durations.length : 0;
19
+ const aiTransitions = history.filter((r) => r.actor.type === "ai-agent").length;
20
+ const humanTransitions = history.filter((r) => r.actor.type === "human").length;
21
+ const totalTransitions = history.length;
22
+ const byAggregate = new Map();
23
+ for (const r of history) {
24
+ byAggregate.set(r.aggregateId, (byAggregate.get(r.aggregateId) ?? 0) + 1);
25
+ }
26
+ return {
27
+ loopId: loop,
28
+ period,
29
+ totalInstances: total,
30
+ openInstances: open,
31
+ closedInstances: closed,
32
+ errorInstances: error,
33
+ avgDurationMs: avg,
34
+ medianDurationMs: percentile(durations, 50),
35
+ p95DurationMs: percentile(durations, 95),
36
+ completionRate: closed + error > 0 ? closed / (closed + error) : 0,
37
+ guardFailureRate: 0,
38
+ aiActorRate: totalTransitions > 0 ? aiTransitions / totalTransitions : 0,
39
+ humanActorRate: totalTransitions > 0 ? humanTransitions / totalTransitions : 0,
40
+ avgTransitionCount: byAggregate.size > 0
41
+ ? [...byAggregate.values()].reduce((a, b) => a + b, 0) / byAggregate.size
42
+ : 0
43
+ };
44
+ }
45
+ //# sourceMappingURL=metrics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.js","sourceRoot":"","sources":["../src/metrics.ts"],"names":[],"mappings":"AAqBA,SAAS,UAAU,CAAC,MAAgB,EAAE,CAAS;IAC7C,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IAClC,MAAM,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACjD,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/E,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,SAAyB,EACzB,OAA2B,EAC3B,MAAoC;IAEpC,MAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IAC3B,MAAM,IAAI,GAAG,CAAC,KAAK,EAAE,MAAM,IAAI,cAAc,CAAW,CAAC;IACzD,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC;IAC/B,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC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
+ export declare function replayLoop(definition: LoopDefinition, history: TransitionRecord[]): {
3
+ valid: boolean;
4
+ errors: string[];
5
+ };
6
+ //# sourceMappingURL=replay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../src/replay.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1E,wBAAgB,UAAU,CACxB,UAAU,EAAE,cAAc,EAC1B,OAAO,EAAE,gBAAgB,EAAE,GAC1B;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CActC"}
package/dist/replay.js ADDED
@@ -0,0 +1,14 @@
1
+ export function replayLoop(definition, history) {
2
+ const errors = [];
3
+ let state = definition.initialState;
4
+ for (const record of history) {
5
+ const match = definition.transitions.find((t) => t.id === record.transitionId && t.from === state && t.to === record.toState);
6
+ if (!match) {
7
+ errors.push(`Invalid transition ${record.transitionId} from ${state} to ${record.toState}`);
8
+ continue;
9
+ }
10
+ state = record.toState;
11
+ }
12
+ return { valid: errors.length === 0, errors };
13
+ }
14
+ //# sourceMappingURL=replay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay.js","sourceRoot":"","sources":["../src/replay.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,UAAU,CACxB,UAA0B,EAC1B,OAA2B;IAE3B,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,KAAK,GAAG,UAAU,CAAC,YAAY,CAAC;IACpC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,WAAW,CAAC,IAAI,CACvC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,YAAY,IAAI,CAAC,CAAC,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,OAAO,CACnF,CAAC;QACF,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,CAAC,IAAI,CAAC,sBAAsB,MAAM,CAAC,YAAY,SAAS,KAAK,OAAO,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;YAC5F,SAAS;QACX,CAAC;QACD,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC;IACzB,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;AAChD,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { AggregateId, LoopInstance, StateId, TransitionRecord } from "@loop-engine/core";
2
+ export interface LoopTimeline {
3
+ aggregateId: AggregateId;
4
+ loopId: string;
5
+ instance: LoopInstance;
6
+ transitions: TransitionRecord[];
7
+ durationMs: number;
8
+ isComplete: boolean;
9
+ }
10
+ export interface StateResidency {
11
+ stateId: StateId;
12
+ enteredAt: string;
13
+ exitedAt?: string;
14
+ durationMs?: number;
15
+ }
16
+ export declare function buildTimeline(instance: LoopInstance, history: TransitionRecord[]): LoopTimeline;
17
+ export declare function getStateResidency(timeline: LoopTimeline): StateResidency[];
18
+ //# sourceMappingURL=timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../src/timeline.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE9F,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC;IACvB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,YAAY,CAU/F;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,cAAc,EAAE,CAuB1E"}
@@ -0,0 +1,36 @@
1
+ export function buildTimeline(instance, history) {
2
+ const end = instance.closedAt ?? new Date().toISOString();
3
+ return {
4
+ aggregateId: instance.aggregateId,
5
+ loopId: instance.loopId,
6
+ instance,
7
+ transitions: [...history].sort((a, b) => Date.parse(a.occurredAt) - Date.parse(b.occurredAt)),
8
+ durationMs: Math.max(0, Date.parse(end) - Date.parse(instance.startedAt)),
9
+ isComplete: instance.status === "CLOSED"
10
+ };
11
+ }
12
+ export function getStateResidency(timeline) {
13
+ const out = [];
14
+ let currentState = timeline.instance.currentState;
15
+ let enteredAt = timeline.instance.startedAt;
16
+ for (const t of timeline.transitions) {
17
+ out.push({
18
+ stateId: currentState,
19
+ enteredAt,
20
+ exitedAt: t.occurredAt,
21
+ durationMs: Math.max(0, Date.parse(t.occurredAt) - Date.parse(enteredAt))
22
+ });
23
+ currentState = t.toState;
24
+ enteredAt = t.occurredAt;
25
+ }
26
+ out.push({
27
+ stateId: currentState,
28
+ enteredAt,
29
+ ...(timeline.instance.closedAt ? { exitedAt: timeline.instance.closedAt } : {}),
30
+ ...(timeline.instance.closedAt
31
+ ? { durationMs: Math.max(0, Date.parse(timeline.instance.closedAt) - Date.parse(enteredAt)) }
32
+ : {})
33
+ });
34
+ return out;
35
+ }
36
+ //# sourceMappingURL=timeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline.js","sourceRoot":"","sources":["../src/timeline.ts"],"names":[],"mappings":"AAoBA,MAAM,UAAU,aAAa,CAAC,QAAsB,EAAE,OAA2B;IAC/E,MAAM,GAAG,GAA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CAAC;IACD,GAAG,CAAC,IAAI,CAAC;QACP,OAAO,EAAE,YAAY;QACrB,SAAS;QACT,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/E,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ;YAC5B,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE;YAC7F,CAAC,CAAC,EAAE,CAAC;KACR,CAAC,CAAC;IACH,OAAO,GAAG,CAAC;AACb,CAAC"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@loop-engine/observability",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "dependencies": {
17
+ "@loop-engine/core": "0.1.0"
18
+ },
19
+ "files": [
20
+ "dist/",
21
+ "README.md",
22
+ "LICENSE"
23
+ ],
24
+ "scripts": {
25
+ "build": "tsc -p tsconfig.json",
26
+ "typecheck": "tsc -p tsconfig.json --noEmit",
27
+ "test": "vitest run"
28
+ }
29
+ }