@junando/core 0.12.1 → 0.12.3
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/dist/checksum-Bbvsykod.js +6207 -0
- package/dist/checksum-Bbvsykod.js.map +1 -0
- package/dist/es5-BxM4Vg0u.js +1722 -0
- package/dist/es5-BxM4Vg0u.js.map +1 -0
- package/dist/event-streams-dzCG2G6i.js +810 -0
- package/dist/event-streams-dzCG2G6i.js.map +1 -0
- package/dist/index.d.ts +312 -117
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33714 -253
- package/dist/index.js.map +1 -1
- package/dist/rolldown-runtime-BMI-E3GI.js +44 -0
- package/dist/shared/metrics/index.d.ts +16 -16
- package/dist/shared/metrics/index.d.ts.map +1 -1
- package/dist/shared/metrics/index.js +1 -1
- package/package.json +6 -6
- package/dist/rolldown-runtime-D7D4PA-g.js +0 -13
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __esmMin = (fn, res, err) => () => {
|
|
10
|
+
if (err) throw err[0];
|
|
11
|
+
try {
|
|
12
|
+
return fn && (res = fn(fn = 0)), res;
|
|
13
|
+
} catch (e) {
|
|
14
|
+
throw err = [e], e;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
18
|
+
var __exportAll = (all, no_symbols) => {
|
|
19
|
+
let target = {};
|
|
20
|
+
for (var name in all) __defProp(target, name, {
|
|
21
|
+
get: all[name],
|
|
22
|
+
enumerable: true
|
|
23
|
+
});
|
|
24
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
25
|
+
return target;
|
|
26
|
+
};
|
|
27
|
+
var __copyProps = (to, from, except, desc) => {
|
|
28
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
29
|
+
key = keys[i];
|
|
30
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
31
|
+
get: ((k) => from[k]).bind(null, key),
|
|
32
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
38
|
+
value: mod,
|
|
39
|
+
enumerable: true
|
|
40
|
+
}) : target, mod));
|
|
41
|
+
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
43
|
+
//#endregion
|
|
44
|
+
export { __toCommonJS as a, __require as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };
|
|
@@ -2,28 +2,28 @@ import { Counter, Gauge, Histogram, Registry } from "prom-client";
|
|
|
2
2
|
declare namespace index_d_exports {
|
|
3
3
|
export { alertClusters, alertsProcessed, alertsReceived, dedupDuplicate, dedupNew, dedupRedisFailoverTotal, latency, llmInferenceDuration, llmInferenceTotal, notificationsTotal, pipelineInlineFailuresTotal, registry, sqsQueueLag, suppressedClusters, webhookRequestsTotal };
|
|
4
4
|
}
|
|
5
|
-
declare const registry: Registry<"text/plain; version=0.0.4; charset=utf-8">;
|
|
6
|
-
declare const alertsReceived: Counter<"status">;
|
|
7
|
-
declare const webhookRequestsTotal: Counter<"endpoint" | "status">;
|
|
8
|
-
declare const alertsProcessed: Counter<"result">;
|
|
9
|
-
declare const alertClusters: Gauge<string>;
|
|
10
|
-
declare const latency: Histogram<"status">;
|
|
11
|
-
declare const llmInferenceDuration: Histogram<"model">;
|
|
12
|
-
declare const llmInferenceTotal: Counter<"status">;
|
|
5
|
+
export declare const registry: Registry<"text/plain; version=0.0.4; charset=utf-8">;
|
|
6
|
+
export declare const alertsReceived: Counter<"status">;
|
|
7
|
+
export declare const webhookRequestsTotal: Counter<"endpoint" | "status">;
|
|
8
|
+
export declare const alertsProcessed: Counter<"result">;
|
|
9
|
+
export declare const alertClusters: Gauge<string>;
|
|
10
|
+
export declare const latency: Histogram<"status">;
|
|
11
|
+
export declare const llmInferenceDuration: Histogram<"model">;
|
|
12
|
+
export declare const llmInferenceTotal: Counter<"status">;
|
|
13
13
|
/** Tracks inline pipeline failures in local dev mode. */
|
|
14
|
-
declare const pipelineInlineFailuresTotal: Counter<"reason">;
|
|
14
|
+
export declare const pipelineInlineFailuresTotal: Counter<"reason">;
|
|
15
15
|
/** Tracks Redis dedup fallback activations. */
|
|
16
|
-
declare const dedupRedisFailoverTotal: Counter<string>;
|
|
16
|
+
export declare const dedupRedisFailoverTotal: Counter<string>;
|
|
17
17
|
/** Tracks new alert clusters (dedup: first-time fingerprint). */
|
|
18
|
-
declare const dedupNew: Counter<"source">;
|
|
18
|
+
export declare const dedupNew: Counter<"source">;
|
|
19
19
|
/** Tracks duplicate alert clusters (dedup: fingerprint already seen). */
|
|
20
|
-
declare const dedupDuplicate: Counter<"source">;
|
|
20
|
+
export declare const dedupDuplicate: Counter<"source">;
|
|
21
21
|
/** Tracks outbound notification attempts by channel and outcome. */
|
|
22
|
-
declare const notificationsTotal: Counter<"channel" | "outcome">;
|
|
22
|
+
export declare const notificationsTotal: Counter<"channel" | "outcome">;
|
|
23
23
|
/** Tracks approximate number of unprocessed SQS messages (queue lag). */
|
|
24
|
-
declare const sqsQueueLag: Gauge<"queue_name">;
|
|
24
|
+
export declare const sqsQueueLag: Gauge<"queue_name">;
|
|
25
25
|
/** Tracks clusters suppressed by the rule engine, segmented by rule ID. */
|
|
26
|
-
declare const suppressedClusters: Gauge<"rule_id">;
|
|
26
|
+
export declare const suppressedClusters: Gauge<"rule_id">;
|
|
27
27
|
//#endregion
|
|
28
|
-
export {
|
|
28
|
+
export { index_d_exports as t };
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/shared/metrics/index.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/shared/metrics/index.ts"],"mappings":";;;;qBAEa,UAAQ;qBAER,gBAAc;qBAOd,sBAAoB;qBAOpB,iBAAe;qBAOf,eAAa;qBAMb,SAAO;qBAQP,sBAAoB;qBAQpB,mBAAiB;;qBAQjB,6BAA2B;;qBAQ3B,yBAAuB;;qBAOvB,UAAQ;;qBAQR,gBAAc;;qBAQd,oBAAkB;;qBAQlB,aAAW;;qBAQX,oBAAkB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as __exportAll } from "../../rolldown-runtime-BMI-E3GI.js";
|
|
2
2
|
import { Counter, Gauge, Histogram, Registry } from "prom-client";
|
|
3
3
|
//#region src/shared/metrics/index.ts
|
|
4
4
|
var metrics_exports = /* @__PURE__ */ __exportAll({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junando/core",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "Core domain types, interfaces, and shared utilities for the Junando alerting platform",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@anthropic-ai/sdk": "^0.
|
|
22
|
+
"@anthropic-ai/sdk": "^0.124.0",
|
|
23
23
|
"@google/generative-ai": "^0.24.1",
|
|
24
24
|
"@types/opossum": "^8.1.9",
|
|
25
|
-
"ioredis": "^
|
|
25
|
+
"ioredis": "^6.0.0",
|
|
26
26
|
"opossum": "^10.0.0",
|
|
27
27
|
"pino": "^10.3.1",
|
|
28
28
|
"prom-client": "^15.1.3",
|
|
29
29
|
"yaml": "^2.9.0",
|
|
30
|
-
"zod": "^4.4
|
|
30
|
+
"zod": "^4.5.4"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^26.
|
|
34
|
-
"tsdown": "^0.
|
|
33
|
+
"@types/node": "^26.4.1",
|
|
34
|
+
"tsdown": "^0.23.0",
|
|
35
35
|
"typescript": "^7.0.2"
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) __defProp(target, name, {
|
|
6
|
-
get: all[name],
|
|
7
|
-
enumerable: true
|
|
8
|
-
});
|
|
9
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
-
return target;
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { __exportAll as t };
|