@x12i/countex 1.0.0 → 1.2.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.
Files changed (256) hide show
  1. package/README.md +192 -3
  2. package/dist/backup/export.d.ts +2 -0
  3. package/dist/backup/export.d.ts.map +1 -1
  4. package/dist/backup/export.js +2 -0
  5. package/dist/backup/export.js.map +1 -1
  6. package/dist/cli.d.ts +12 -0
  7. package/dist/cli.d.ts.map +1 -0
  8. package/dist/cli.js +190 -0
  9. package/dist/cli.js.map +1 -0
  10. package/dist/core/buffer.d.ts +4 -3
  11. package/dist/core/buffer.d.ts.map +1 -1
  12. package/dist/core/buffer.js +65 -9
  13. package/dist/core/buffer.js.map +1 -1
  14. package/dist/core/countex.d.ts.map +1 -1
  15. package/dist/core/countex.js +30 -3
  16. package/dist/core/countex.js.map +1 -1
  17. package/dist/core/extraction.d.ts +14 -2
  18. package/dist/core/extraction.d.ts.map +1 -1
  19. package/dist/core/extraction.js +117 -1
  20. package/dist/core/extraction.js.map +1 -1
  21. package/dist/core/mapping.d.ts.map +1 -1
  22. package/dist/core/mapping.js +44 -1
  23. package/dist/core/mapping.js.map +1 -1
  24. package/dist/core/timeframe.d.ts +7 -0
  25. package/dist/core/timeframe.d.ts.map +1 -1
  26. package/dist/core/timeframe.js +88 -0
  27. package/dist/core/timeframe.js.map +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/insights/advisors/fanout-health.d.ts +3 -0
  31. package/dist/insights/advisors/fanout-health.d.ts.map +1 -0
  32. package/dist/insights/advisors/fanout-health.js +3 -0
  33. package/dist/insights/advisors/fanout-health.js.map +1 -0
  34. package/dist/insights/advisors/map-health.d.ts +6 -0
  35. package/dist/insights/advisors/map-health.d.ts.map +1 -0
  36. package/dist/insights/advisors/map-health.js +154 -0
  37. package/dist/insights/advisors/map-health.js.map +1 -0
  38. package/dist/insights/advisors/resource-advisor.d.ts +4 -0
  39. package/dist/insights/advisors/resource-advisor.d.ts.map +1 -0
  40. package/dist/insights/advisors/resource-advisor.js +102 -0
  41. package/dist/insights/advisors/resource-advisor.js.map +1 -0
  42. package/dist/insights/advisors/retention-advisor.d.ts +2 -0
  43. package/dist/insights/advisors/retention-advisor.d.ts.map +1 -0
  44. package/dist/insights/advisors/retention-advisor.js +6 -0
  45. package/dist/insights/advisors/retention-advisor.js.map +1 -0
  46. package/dist/insights/advisors-subpath.d.ts +4 -0
  47. package/dist/insights/advisors-subpath.d.ts.map +1 -0
  48. package/dist/insights/advisors-subpath.js +10 -0
  49. package/dist/insights/advisors-subpath.js.map +1 -0
  50. package/dist/insights/anomaly/baseline.d.ts +4 -0
  51. package/dist/insights/anomaly/baseline.d.ts.map +1 -0
  52. package/dist/insights/anomaly/baseline.js +54 -0
  53. package/dist/insights/anomaly/baseline.js.map +1 -0
  54. package/dist/insights/anomaly/detect-anomalies.d.ts +6 -0
  55. package/dist/insights/anomaly/detect-anomalies.d.ts.map +1 -0
  56. package/dist/insights/anomaly/detect-anomalies.js +245 -0
  57. package/dist/insights/anomaly/detect-anomalies.js.map +1 -0
  58. package/dist/insights/anomaly/ewma.d.ts +2 -0
  59. package/dist/insights/anomaly/ewma.d.ts.map +1 -0
  60. package/dist/insights/anomaly/ewma.js +15 -0
  61. package/dist/insights/anomaly/ewma.js.map +1 -0
  62. package/dist/insights/anomaly/missing-activity.d.ts +3 -0
  63. package/dist/insights/anomaly/missing-activity.d.ts.map +1 -0
  64. package/dist/insights/anomaly/missing-activity.js +8 -0
  65. package/dist/insights/anomaly/missing-activity.js.map +1 -0
  66. package/dist/insights/anomaly/robust-zscore.d.ts +2 -0
  67. package/dist/insights/anomaly/robust-zscore.d.ts.map +1 -0
  68. package/dist/insights/anomaly/robust-zscore.js +9 -0
  69. package/dist/insights/anomaly/robust-zscore.js.map +1 -0
  70. package/dist/insights/anomaly-subpath.d.ts +7 -0
  71. package/dist/insights/anomaly-subpath.d.ts.map +1 -0
  72. package/dist/insights/anomaly-subpath.js +20 -0
  73. package/dist/insights/anomaly-subpath.js.map +1 -0
  74. package/dist/insights/comparison/compare-periods.d.ts +5 -0
  75. package/dist/insights/comparison/compare-periods.d.ts.map +1 -0
  76. package/dist/insights/comparison/compare-periods.js +64 -0
  77. package/dist/insights/comparison/compare-periods.js.map +1 -0
  78. package/dist/insights/comparison/growth-rate.d.ts +3 -0
  79. package/dist/insights/comparison/growth-rate.d.ts.map +1 -0
  80. package/dist/insights/comparison/growth-rate.js +3 -0
  81. package/dist/insights/comparison/growth-rate.js.map +1 -0
  82. package/dist/insights/comparison/moving-average.d.ts +2 -0
  83. package/dist/insights/comparison/moving-average.d.ts.map +1 -0
  84. package/dist/insights/comparison/moving-average.js +6 -0
  85. package/dist/insights/comparison/moving-average.js.map +1 -0
  86. package/dist/insights/comparison/trend.d.ts +5 -0
  87. package/dist/insights/comparison/trend.d.ts.map +1 -0
  88. package/dist/insights/comparison/trend.js +84 -0
  89. package/dist/insights/comparison/trend.js.map +1 -0
  90. package/dist/insights/errors.d.ts +25 -0
  91. package/dist/insights/errors.d.ts.map +1 -0
  92. package/dist/insights/errors.js +54 -0
  93. package/dist/insights/errors.js.map +1 -0
  94. package/dist/insights/forecast/budget.d.ts +2 -0
  95. package/dist/insights/forecast/budget.d.ts.map +1 -0
  96. package/dist/insights/forecast/budget.js +6 -0
  97. package/dist/insights/forecast/budget.js.map +1 -0
  98. package/dist/insights/forecast/capacity.d.ts +2 -0
  99. package/dist/insights/forecast/capacity.d.ts.map +1 -0
  100. package/dist/insights/forecast/capacity.js +3 -0
  101. package/dist/insights/forecast/capacity.js.map +1 -0
  102. package/dist/insights/forecast/forecast.d.ts +5 -0
  103. package/dist/insights/forecast/forecast.d.ts.map +1 -0
  104. package/dist/insights/forecast/forecast.js +103 -0
  105. package/dist/insights/forecast/forecast.js.map +1 -0
  106. package/dist/insights/forecast/retention.d.ts +2 -0
  107. package/dist/insights/forecast/retention.d.ts.map +1 -0
  108. package/dist/insights/forecast/retention.js +3 -0
  109. package/dist/insights/forecast/retention.js.map +1 -0
  110. package/dist/insights/index.d.ts +4 -0
  111. package/dist/insights/index.d.ts.map +1 -0
  112. package/dist/insights/index.js +23 -0
  113. package/dist/insights/index.js.map +1 -0
  114. package/dist/insights/insights-client.d.ts +33 -0
  115. package/dist/insights/insights-client.d.ts.map +1 -0
  116. package/dist/insights/insights-client.js +344 -0
  117. package/dist/insights/insights-client.js.map +1 -0
  118. package/dist/insights/llm-subpath.d.ts +4 -0
  119. package/dist/insights/llm-subpath.d.ts.map +1 -0
  120. package/dist/insights/llm-subpath.js +10 -0
  121. package/dist/insights/llm-subpath.js.map +1 -0
  122. package/dist/insights/optimization/cost-optimizer.d.ts +6 -0
  123. package/dist/insights/optimization/cost-optimizer.d.ts.map +1 -0
  124. package/dist/insights/optimization/cost-optimizer.js +98 -0
  125. package/dist/insights/optimization/cost-optimizer.js.map +1 -0
  126. package/dist/insights/optimization/latency-optimizer.d.ts +3 -0
  127. package/dist/insights/optimization/latency-optimizer.d.ts.map +1 -0
  128. package/dist/insights/optimization/latency-optimizer.js +3 -0
  129. package/dist/insights/optimization/latency-optimizer.js.map +1 -0
  130. package/dist/insights/optimization/threshold-advisor.d.ts +2 -0
  131. package/dist/insights/optimization/threshold-advisor.d.ts.map +1 -0
  132. package/dist/insights/optimization/threshold-advisor.js +3 -0
  133. package/dist/insights/optimization/threshold-advisor.js.map +1 -0
  134. package/dist/insights/optimization/token-optimizer.d.ts +4 -0
  135. package/dist/insights/optimization/token-optimizer.d.ts.map +1 -0
  136. package/dist/insights/optimization/token-optimizer.js +133 -0
  137. package/dist/insights/optimization/token-optimizer.js.map +1 -0
  138. package/dist/insights/ranking/contribution.d.ts +2 -0
  139. package/dist/insights/ranking/contribution.d.ts.map +1 -0
  140. package/dist/insights/ranking/contribution.js +6 -0
  141. package/dist/insights/ranking/contribution.js.map +1 -0
  142. package/dist/insights/ranking/helpers.d.ts +22 -0
  143. package/dist/insights/ranking/helpers.d.ts.map +1 -0
  144. package/dist/insights/ranking/helpers.js +88 -0
  145. package/dist/insights/ranking/helpers.js.map +1 -0
  146. package/dist/insights/ranking/pareto.d.ts +2 -0
  147. package/dist/insights/ranking/pareto.d.ts.map +1 -0
  148. package/dist/insights/ranking/pareto.js +6 -0
  149. package/dist/insights/ranking/pareto.js.map +1 -0
  150. package/dist/insights/ranking/slices.d.ts +2 -0
  151. package/dist/insights/ranking/slices.d.ts.map +1 -0
  152. package/dist/insights/ranking/slices.js +6 -0
  153. package/dist/insights/ranking/slices.js.map +1 -0
  154. package/dist/insights/ranking/top-bottom.d.ts +2 -0
  155. package/dist/insights/ranking/top-bottom.d.ts.map +1 -0
  156. package/dist/insights/ranking/top-bottom.js +7 -0
  157. package/dist/insights/ranking/top-bottom.js.map +1 -0
  158. package/dist/insights/recommendations/evidence.d.ts +2 -0
  159. package/dist/insights/recommendations/evidence.d.ts.map +1 -0
  160. package/dist/insights/recommendations/evidence.js +3 -0
  161. package/dist/insights/recommendations/evidence.js.map +1 -0
  162. package/dist/insights/recommendations/recommendation.d.ts +6 -0
  163. package/dist/insights/recommendations/recommendation.d.ts.map +1 -0
  164. package/dist/insights/recommendations/recommendation.js +25 -0
  165. package/dist/insights/recommendations/recommendation.js.map +1 -0
  166. package/dist/insights/recommendations/severity.d.ts +2 -0
  167. package/dist/insights/recommendations/severity.d.ts.map +1 -0
  168. package/dist/insights/recommendations/severity.js +3 -0
  169. package/dist/insights/recommendations/severity.js.map +1 -0
  170. package/dist/insights/rules/evaluate-rules.d.ts +5 -0
  171. package/dist/insights/rules/evaluate-rules.d.ts.map +1 -0
  172. package/dist/insights/rules/evaluate-rules.js +156 -0
  173. package/dist/insights/rules/evaluate-rules.js.map +1 -0
  174. package/dist/insights/types.d.ts +405 -0
  175. package/dist/insights/types.d.ts.map +1 -0
  176. package/dist/insights/types.js +3 -0
  177. package/dist/insights/types.js.map +1 -0
  178. package/dist/insights/utils/formatting.d.ts +4 -0
  179. package/dist/insights/utils/formatting.d.ts.map +1 -0
  180. package/dist/insights/utils/formatting.js +21 -0
  181. package/dist/insights/utils/formatting.js.map +1 -0
  182. package/dist/insights/utils/grouping.d.ts +2 -0
  183. package/dist/insights/utils/grouping.d.ts.map +1 -0
  184. package/dist/insights/utils/grouping.js +8 -0
  185. package/dist/insights/utils/grouping.js.map +1 -0
  186. package/dist/insights/utils/query-builder.d.ts +21 -0
  187. package/dist/insights/utils/query-builder.d.ts.map +1 -0
  188. package/dist/insights/utils/query-builder.js +107 -0
  189. package/dist/insights/utils/query-builder.js.map +1 -0
  190. package/dist/insights/utils/row-value.d.ts +5 -0
  191. package/dist/insights/utils/row-value.d.ts.map +1 -0
  192. package/dist/insights/utils/row-value.js +36 -0
  193. package/dist/insights/utils/row-value.js.map +1 -0
  194. package/dist/insights/utils/stats.d.ts +28 -0
  195. package/dist/insights/utils/stats.d.ts.map +1 -0
  196. package/dist/insights/utils/stats.js +125 -0
  197. package/dist/insights/utils/stats.js.map +1 -0
  198. package/dist/query/formatter.d.ts.map +1 -1
  199. package/dist/query/formatter.js +202 -24
  200. package/dist/query/formatter.js.map +1 -1
  201. package/dist/query/planner.d.ts +10 -2
  202. package/dist/query/planner.d.ts.map +1 -1
  203. package/dist/query/planner.js +39 -2
  204. package/dist/query/planner.js.map +1 -1
  205. package/dist/storage/memory.d.ts.map +1 -1
  206. package/dist/storage/memory.js +78 -4
  207. package/dist/storage/memory.js.map +1 -1
  208. package/dist/storage/mongo.d.ts.map +1 -1
  209. package/dist/storage/mongo.js +61 -16
  210. package/dist/storage/mongo.js.map +1 -1
  211. package/dist/storage/redis.d.ts +6 -7
  212. package/dist/storage/redis.d.ts.map +1 -1
  213. package/dist/storage/redis.js +108 -39
  214. package/dist/storage/redis.js.map +1 -1
  215. package/dist/types/index.d.ts +88 -4
  216. package/dist/types/index.d.ts.map +1 -1
  217. package/docs/INSIGHTS.md +59 -0
  218. package/docs/INSIGHTS_ANOMALY_DETECTION.md +33 -0
  219. package/docs/INSIGHTS_LLM_COST_AND_TOKENS.md +26 -0
  220. package/docs/INSIGHTS_RESOURCE_ADVISOR.md +31 -0
  221. package/docs/guides/README.md +29 -0
  222. package/docs/guides/adapter-memory.md +48 -0
  223. package/docs/guides/adapter-mongo.md +50 -0
  224. package/docs/guides/adapter-redis.md +47 -0
  225. package/docs/guides/backup-export.md +39 -0
  226. package/docs/guides/cardinality.md +50 -0
  227. package/docs/guides/cli.md +45 -0
  228. package/docs/guides/client-events.md +49 -0
  229. package/docs/guides/counter-maps.md +116 -0
  230. package/docs/guides/idempotency.md +39 -0
  231. package/docs/guides/ingestion-and-flush.md +67 -0
  232. package/docs/guides/insights-advisors-and-optimization.md +39 -0
  233. package/docs/guides/insights-anomalies-and-rules.md +48 -0
  234. package/docs/guides/insights-comparison-and-trends.md +47 -0
  235. package/docs/guides/insights-forecasting-and-budget.md +61 -0
  236. package/docs/guides/insights-overview.md +76 -0
  237. package/docs/guides/insights-ranking.md +81 -0
  238. package/docs/guides/measures.md +67 -0
  239. package/docs/guides/querying.md +79 -0
  240. package/docs/guides/timeframes-and-bucketing.md +55 -0
  241. package/docs/internals/README.md +20 -0
  242. package/docs/internals/internal-architecture-overview.md +65 -0
  243. package/docs/internals/internal-backup-stream.md +23 -0
  244. package/docs/internals/internal-buffer-merge-and-flush.md +51 -0
  245. package/docs/internals/internal-cardinality.md +30 -0
  246. package/docs/internals/internal-idempotency.md +36 -0
  247. package/docs/internals/internal-ingest-pipeline.md +52 -0
  248. package/docs/internals/internal-insights-layer.md +36 -0
  249. package/docs/internals/internal-mapping-validation-and-extraction.md +59 -0
  250. package/docs/internals/internal-measures-and-scales.md +35 -0
  251. package/docs/internals/internal-query-path.md +46 -0
  252. package/docs/internals/internal-storage-memory.md +13 -0
  253. package/docs/internals/internal-storage-mongo.md +24 -0
  254. package/docs/internals/internal-storage-redis.md +31 -0
  255. package/docs/internals/internal-timeframe-bucketing.md +33 -0
  256. package/package.json +45 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/insights/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,qBAAa,mBAAoB,SAAQ,YAAY;gBACvC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI5D;AAED,qBAAa,yBAA0B,SAAQ,mBAAmB;gBACpD,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI5D;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;gBAChD,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI5D;AAED,qBAAa,uBAAwB,SAAQ,mBAAmB;gBAClD,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI5D;AAED,qBAAa,oBAAqB,SAAQ,mBAAmB;gBAC/C,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI5D;AAED,qBAAa,mBAAoB,SAAQ,mBAAmB;gBAC9C,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAIlF;AAED,qBAAa,wBAAyB,SAAQ,mBAAmB;gBACnD,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAI5D"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidInsightInputError = exports.InsightStorageError = exports.InvalidBaselineError = exports.UnsupportedMeasureError = exports.InsufficientDataError = exports.InsightQueryTooBroadError = exports.CountexInsightError = void 0;
4
+ const errors_js_1 = require("../utils/errors.js");
5
+ class CountexInsightError extends errors_js_1.CountexError {
6
+ constructor(message, meta) {
7
+ super(message, meta);
8
+ this.name = "CountexInsightError";
9
+ }
10
+ }
11
+ exports.CountexInsightError = CountexInsightError;
12
+ class InsightQueryTooBroadError extends CountexInsightError {
13
+ constructor(message, meta) {
14
+ super(message, meta);
15
+ this.name = "InsightQueryTooBroadError";
16
+ }
17
+ }
18
+ exports.InsightQueryTooBroadError = InsightQueryTooBroadError;
19
+ class InsufficientDataError extends CountexInsightError {
20
+ constructor(message, meta) {
21
+ super(message, meta);
22
+ this.name = "InsufficientDataError";
23
+ }
24
+ }
25
+ exports.InsufficientDataError = InsufficientDataError;
26
+ class UnsupportedMeasureError extends CountexInsightError {
27
+ constructor(message, meta) {
28
+ super(message, meta);
29
+ this.name = "UnsupportedMeasureError";
30
+ }
31
+ }
32
+ exports.UnsupportedMeasureError = UnsupportedMeasureError;
33
+ class InvalidBaselineError extends CountexInsightError {
34
+ constructor(message, meta) {
35
+ super(message, meta);
36
+ this.name = "InvalidBaselineError";
37
+ }
38
+ }
39
+ exports.InvalidBaselineError = InvalidBaselineError;
40
+ class InsightStorageError extends CountexInsightError {
41
+ constructor(message, meta) {
42
+ super(message, meta);
43
+ this.name = "InsightStorageError";
44
+ }
45
+ }
46
+ exports.InsightStorageError = InsightStorageError;
47
+ class InvalidInsightInputError extends CountexInsightError {
48
+ constructor(message, meta) {
49
+ super(message, meta);
50
+ this.name = "InvalidInsightInputError";
51
+ }
52
+ }
53
+ exports.InvalidInsightInputError = InvalidInsightInputError;
54
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/insights/errors.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAElD,MAAa,mBAAoB,SAAQ,wBAAY;IACnD,YAAY,OAAe,EAAE,IAA8B;QACzD,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,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@@
1
+ export { runBudgetProjection } from "../optimization/cost-optimizer.js";
2
+ //# sourceMappingURL=budget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"budget.d.ts","sourceRoot":"","sources":["../../../src/insights/forecast/budget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runBudgetProjection = void 0;
4
+ var cost_optimizer_js_1 = require("../optimization/cost-optimizer.js");
5
+ Object.defineProperty(exports, "runBudgetProjection", { enumerable: true, get: function () { return cost_optimizer_js_1.runBudgetProjection; } });
6
+ //# sourceMappingURL=budget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"budget.js","sourceRoot":"","sources":["../../../src/insights/forecast/budget.ts"],"names":[],"mappings":";;;AAAA,uEAAwE;AAA/D,wHAAA,mBAAmB,OAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=capacity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capacity.d.ts","sourceRoot":"","sources":["../../../src/insights/forecast/capacity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=capacity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capacity.js","sourceRoot":"","sources":["../../../src/insights/forecast/capacity.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { QuerySpec } from "../../types/index.js";
2
+ import type { ForecastInput, ForecastResult } from "../types.js";
3
+ import type { InsightDefaults } from "../types.js";
4
+ export declare function runForecast(query: (s: QuerySpec) => Promise<import("../../types/index.js").QueryResult>, input: ForecastInput, defaults: InsightDefaults, maxGroups: number): Promise<ForecastResult>;
5
+ //# sourceMappingURL=forecast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forecast.d.ts","sourceRoot":"","sources":["../../../src/insights/forecast/forecast.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAYnD,wBAAsB,WAAW,CAC/B,KAAK,EAAE,CAAC,CAAC,EAAE,SAAS,KAAK,OAAO,CAAC,OAAO,sBAAsB,EAAE,WAAW,CAAC,EAC5E,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,CAAC,CA8GzB"}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.runForecast = runForecast;
4
+ const timeframe_js_1 = require("../../core/timeframe.js");
5
+ const query_builder_js_1 = require("../utils/query-builder.js");
6
+ const row_value_js_1 = require("../utils/row-value.js");
7
+ const stats_js_1 = require("../utils/stats.js");
8
+ const formatting_js_1 = require("../utils/formatting.js");
9
+ const recommendation_js_1 = require("../recommendations/recommendation.js");
10
+ async function runForecast(query, input, defaults, maxGroups) {
11
+ const parsed = (0, query_builder_js_1.parseMeasureSelector)(input.measure);
12
+ let spec = (0, query_builder_js_1.baseToQuerySpec)({
13
+ scope: input.scope,
14
+ counterId: input.counterId,
15
+ timeframe: input.history,
16
+ filters: input.filters,
17
+ groupBy: input.groupBy,
18
+ bypassCache: input.bypassCache,
19
+ signal: input.signal,
20
+ maxBuckets: input.maxBuckets,
21
+ }, defaults, { format: "timeseries", limit: undefined });
22
+ spec = (0, query_builder_js_1.applyParsedMeasureToSpec)(spec, parsed, "desc");
23
+ const res = await query(spec);
24
+ const points = res.rows;
25
+ const clusters = new Map();
26
+ for (const p of points) {
27
+ const k = (0, formatting_js_1.stableSerializedGroupKeys)(p.keys);
28
+ const arr = clusters.get(k) ?? [];
29
+ arr.push(p);
30
+ clusters.set(k, arr);
31
+ }
32
+ (0, query_builder_js_1.enforceMaxGroups)(clusters.size, maxGroups);
33
+ const histBuckets = (0, timeframe_js_1.bucketRange)(input.history.type, input.history.from, input.history.to);
34
+ const forecastEnd = input.forecastTo;
35
+ const allBuckets = (0, timeframe_js_1.bucketRange)(input.history.type, input.history.from, forecastEnd);
36
+ const extraBuckets = Math.max(0, allBuckets.length - histBuckets.length);
37
+ const rows = [];
38
+ const recommendations = [];
39
+ for (const [, series] of clusters) {
40
+ series.sort((a, b) => (a.timeframeKey < b.timeframeKey ? -1 : 1));
41
+ const ys = series.map((pt) => parsed.kind === "count"
42
+ ? pt.count
43
+ : parsed.kind === "rate"
44
+ ? pt.rate ?? 0
45
+ : (0, row_value_js_1.rowValue)({
46
+ keys: pt.keys ?? {},
47
+ count: pt.count,
48
+ measures: pt.measures,
49
+ rate: pt.rate,
50
+ }, parsed));
51
+ const xs = series.map((_, i) => i);
52
+ let projectedExtra = 0;
53
+ let method = input.method;
54
+ let confidence = "medium";
55
+ let explanation = "";
56
+ if (method === "linear") {
57
+ const { slope, intercept } = (0, stats_js_1.linearRegression)(xs, ys);
58
+ for (let i = 0; i < extraBuckets; i++) {
59
+ projectedExtra += slope * (xs.length + i) + intercept;
60
+ }
61
+ explanation = `Linear trend extrapolated ${extraBuckets} buckets.`;
62
+ }
63
+ else if (method === "moving_average") {
64
+ const w = ys.slice(-7);
65
+ const avg = w.reduce((a, b) => a + b, 0) / Math.max(1, w.length);
66
+ projectedExtra = avg * extraBuckets;
67
+ explanation = `Flat projection from recent moving average.`;
68
+ confidence = "low";
69
+ }
70
+ else {
71
+ const totalHist = ys.reduce((a, b) => a + b, 0);
72
+ const scale = extraBuckets / Math.max(1, ys.length);
73
+ projectedExtra = totalHist * scale;
74
+ explanation = `Scaled average bucket value over ${extraBuckets} future buckets.`;
75
+ method = "same_period_projection";
76
+ confidence = "low";
77
+ }
78
+ const observedToDate = ys.reduce((a, b) => a + b, 0);
79
+ const projectedTotal = observedToDate + Math.max(0, projectedExtra);
80
+ rows.push({
81
+ keys: (series[0]?.keys ?? {}),
82
+ observedToDate,
83
+ projectedTotal,
84
+ confidence,
85
+ method,
86
+ explanation,
87
+ });
88
+ }
89
+ if (rows.some((r) => r.confidence === "low")) {
90
+ recommendations.push((0, recommendation_js_1.recommendation)({
91
+ type: "forecast_low_confidence",
92
+ severity: "info",
93
+ confidence: "low",
94
+ scope: input.scope,
95
+ counterId: input.counterId,
96
+ title: "Forecast confidence is limited",
97
+ explanation: "Simple projection without seasonality or histogram signals.",
98
+ evidence: {},
99
+ }));
100
+ }
101
+ return { rows, recommendations };
102
+ }
103
+ //# sourceMappingURL=forecast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forecast.js","sourceRoot":"","sources":["../../../src/insights/forecast/forecast.ts"],"names":[],"mappings":";;AAeA,kCAmHC;AAlID,0DAAsD;AAItD,gEAKmC;AACnC,wDAAiD;AACjD,gDAAqD;AACrD,0DAAmE;AACnE,4EAAsE;AAE/D,KAAK,UAAU,WAAW,CAC/B,KAA4E,EAC5E,KAAoB,EACpB,QAAyB,EACzB,SAAiB;IAEjB,MAAM,MAAM,GAAG,IAAA,uCAAoB,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACnD,IAAI,IAAI,GAAG,IAAA,kCAAe,EACxB;QACE,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,UAAU,EAAE,KAAK,CAAC,UAAU;KAC7B,EACD,QAAQ,EACR,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK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IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,EAAE,CAA4B;YACxD,cAAc;YACd,cAAc;YACd,UAAU;YACV,MAAM;YACN,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;IAED,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,KAAK,CAAC,EAAE,CAAC;QAC7C,eAAe,CAAC,IAAI,CAClB,IAAA,kCAAc,EAAC;YACb,IAAI,EAAE,yBAAyB;YAC/B,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,KAAK;YACjB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,KAAK,EAAE,gCAAgC;YACvC,WAAW,EAAE,6DAA6D;YAC1E,QAAQ,EAAE,EAAE;SACb,CAAC,CACH,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;AACnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=retention.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../../src/insights/forecast/retention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=retention.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retention.js","sourceRoot":"","sources":["../../../src/insights/forecast/retention.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export { createCountexInsights, CountexInsights } from "./insights-client.js";
2
+ export * from "./types.js";
3
+ export * from "./errors.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/insights/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC9E,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.CountexInsights = exports.createCountexInsights = void 0;
18
+ var insights_client_js_1 = require("./insights-client.js");
19
+ Object.defineProperty(exports, "createCountexInsights", { enumerable: true, get: function () { return insights_client_js_1.createCountexInsights; } });
20
+ Object.defineProperty(exports, "CountexInsights", { enumerable: true, get: function () { return insights_client_js_1.CountexInsights; } });
21
+ __exportStar(require("./types.js"), exports);
22
+ __exportStar(require("./errors.js"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/insights/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAA8E;AAArE,2HAAA,qBAAqB,OAAA;AAAE,qHAAA,eAAe,OAAA;AAC/C,6CAA2B;AAC3B,8CAA4B"}
@@ -0,0 +1,33 @@
1
+ import { EventEmitter } from "node:events";
2
+ import type { Countex } from "../core/countex.js";
3
+ import type { CounterMap, DurableStorage } from "../types/index.js";
4
+ import type { AnomalyResult, BottomNInput, BudgetProjectionInput, BudgetProjectionResult, ComparePeriodsInput, ComparePeriodsResult, ContributionResult, CostDriversInput, CostDriversResult, CountexInsightsEvents, CreateCountexInsightsConfig, DetectAnomaliesInput, EvaluateRulesInput, ForecastInput, ForecastResult, InsightBaseInput, InsightDefaults, MapHealthInput, MapHealthResult, MaxTokenRecommendationResult, ParetoInput, ParetoResult, PercentSliceInput, PercentSliceResult, RankingResult, RecommendMaxTokensInput, ResourceAdvisorInput, ResourceAdvisorResult, RuleEvaluationResult, TopNInput, TrendInput, TrendResult } from "./types.js";
5
+ export declare class CountexInsights extends EventEmitter {
6
+ private readonly client;
7
+ private readonly defaults;
8
+ private readonly maps?;
9
+ private readonly durable?;
10
+ constructor(client: Countex, defaults: InsightDefaults, maps?: Map<string, CounterMap> | undefined, durable?: DurableStorage | undefined);
11
+ emit<K extends keyof CountexInsightsEvents>(event: K, payload: CountexInsightsEvents[K]): boolean;
12
+ private mg;
13
+ private timedQuery;
14
+ private mapFor;
15
+ topN(input: TopNInput): Promise<RankingResult>;
16
+ bottomN(input: BottomNInput): Promise<RankingResult>;
17
+ topPercent(input: PercentSliceInput): Promise<PercentSliceResult>;
18
+ bottomPercent(input: PercentSliceInput): Promise<PercentSliceResult>;
19
+ pareto(input: ParetoInput): Promise<ParetoResult>;
20
+ contribution(input: InsightBaseInput): Promise<ContributionResult>;
21
+ comparePeriods(input: ComparePeriodsInput): Promise<ComparePeriodsResult>;
22
+ trend(input: TrendInput): Promise<TrendResult>;
23
+ forecast(input: ForecastInput): Promise<ForecastResult>;
24
+ detectAnomalies(input: DetectAnomaliesInput): Promise<AnomalyResult>;
25
+ evaluateRules(input: EvaluateRulesInput): Promise<RuleEvaluationResult>;
26
+ recommendMaxTokens(input: RecommendMaxTokensInput): Promise<MaxTokenRecommendationResult>;
27
+ costDrivers(input: CostDriversInput): Promise<CostDriversResult>;
28
+ budgetProjection(input: BudgetProjectionInput): Promise<BudgetProjectionResult>;
29
+ analyzeMapHealth(input: MapHealthInput): Promise<MapHealthResult>;
30
+ estimateResourcesFromActuals(input: ResourceAdvisorInput): Promise<ResourceAdvisorResult>;
31
+ }
32
+ export declare function createCountexInsights(config: CreateCountexInsightsConfig): CountexInsights;
33
+ //# sourceMappingURL=insights-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insights-client.d.ts","sourceRoot":"","sources":["../../src/insights/insights-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAuB,MAAM,mBAAmB,CAAC;AACzF,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,eAAe,EACf,4BAA4B,EAC5B,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,WAAW,EACZ,MAAM,YAAY,CAAC;AAgCpB,qBAAa,eAAgB,SAAQ,YAAY;IAE7C,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAHR,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,eAAe,EACzB,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,YAAA,EAC9B,OAAO,CAAC,EAAE,cAAc,Y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