log10x-mcp 1.8.2 → 1.12.1

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 (504) hide show
  1. package/README.md +27 -2
  2. package/build/bin/tenx-recur.d.ts +26 -0
  3. package/build/bin/tenx-recur.js +176 -0
  4. package/build/bin/tenx-recur.js.map +1 -0
  5. package/build/index.d.ts +2 -1
  6. package/build/index.js +915 -156
  7. package/build/index.js.map +1 -1
  8. package/build/lib/action-intent-parser.d.ts +72 -0
  9. package/build/lib/action-intent-parser.js +155 -0
  10. package/build/lib/action-intent-parser.js.map +1 -0
  11. package/build/lib/action-intent-writer.d.ts +93 -0
  12. package/build/lib/action-intent-writer.js +107 -0
  13. package/build/lib/action-intent-writer.js.map +1 -0
  14. package/build/lib/actions-filter.d.ts +60 -0
  15. package/build/lib/actions-filter.js +76 -0
  16. package/build/lib/actions-filter.js.map +1 -0
  17. package/build/lib/advisor/envelope.d.ts +121 -0
  18. package/build/lib/advisor/envelope.js +92 -0
  19. package/build/lib/advisor/envelope.js.map +1 -0
  20. package/build/lib/advisor/render.js +33 -4
  21. package/build/lib/advisor/render.js.map +1 -1
  22. package/build/lib/advisor/reporter-forwarders.d.ts +168 -36
  23. package/build/lib/advisor/reporter-forwarders.js +1358 -311
  24. package/build/lib/advisor/reporter-forwarders.js.map +1 -1
  25. package/build/lib/advisor/reporter.d.ts +52 -10
  26. package/build/lib/advisor/reporter.js +312 -182
  27. package/build/lib/advisor/reporter.js.map +1 -1
  28. package/build/lib/advisor/retriever.d.ts +20 -2
  29. package/build/lib/advisor/retriever.js +333 -38
  30. package/build/lib/advisor/retriever.js.map +1 -1
  31. package/build/lib/advisor/types.d.ts +73 -10
  32. package/build/lib/agent-only.d.ts +64 -0
  33. package/build/lib/agent-only.js +81 -0
  34. package/build/lib/agent-only.js.map +1 -0
  35. package/build/lib/anchor-dispersion.d.ts +55 -0
  36. package/build/lib/anchor-dispersion.js +74 -0
  37. package/build/lib/anchor-dispersion.js.map +1 -0
  38. package/build/lib/api.d.ts +27 -6
  39. package/build/lib/api.js +32 -43
  40. package/build/lib/api.js.map +1 -1
  41. package/build/lib/auth-api.d.ts +11 -3
  42. package/build/lib/auth-api.js +11 -3
  43. package/build/lib/auth-api.js.map +1 -1
  44. package/build/lib/auth-model.d.ts +156 -0
  45. package/build/lib/auth-model.js +161 -0
  46. package/build/lib/auth-model.js.map +1 -0
  47. package/build/lib/auth0-device-flow.d.ts +11 -0
  48. package/build/lib/auth0-device-flow.js +41 -0
  49. package/build/lib/auth0-device-flow.js.map +1 -1
  50. package/build/lib/backend-fetch.d.ts +53 -0
  51. package/build/lib/backend-fetch.js +111 -0
  52. package/build/lib/backend-fetch.js.map +1 -0
  53. package/build/lib/backend-validator.d.ts +57 -0
  54. package/build/lib/backend-validator.js +173 -0
  55. package/build/lib/backend-validator.js.map +1 -0
  56. package/build/lib/bucket-interpretation.d.ts +69 -0
  57. package/build/lib/bucket-interpretation.js +207 -0
  58. package/build/lib/bucket-interpretation.js.map +1 -0
  59. package/build/lib/cap-csv-fetch.d.ts +94 -0
  60. package/build/lib/cap-csv-fetch.js +146 -0
  61. package/build/lib/cap-csv-fetch.js.map +1 -0
  62. package/build/lib/cap-csv-parser.d.ts +154 -0
  63. package/build/lib/cap-csv-parser.js +269 -0
  64. package/build/lib/cap-csv-parser.js.map +1 -0
  65. package/build/lib/chart-renderer.d.ts +51 -0
  66. package/build/lib/chart-renderer.js +126 -0
  67. package/build/lib/chart-renderer.js.map +1 -0
  68. package/build/lib/chassis-envelope.d.ts +1720 -0
  69. package/build/lib/chassis-envelope.js +615 -0
  70. package/build/lib/chassis-envelope.js.map +1 -0
  71. package/build/lib/cli-output-parser.d.ts +43 -5
  72. package/build/lib/cli-output-parser.js +127 -14
  73. package/build/lib/cli-output-parser.js.map +1 -1
  74. package/build/lib/compact-csv-parser.d.ts +47 -0
  75. package/build/lib/compact-csv-parser.js +122 -0
  76. package/build/lib/compact-csv-parser.js.map +1 -0
  77. package/build/lib/compact-csv-writer.d.ts +50 -0
  78. package/build/lib/compact-csv-writer.js +57 -0
  79. package/build/lib/compact-csv-writer.js.map +1 -0
  80. package/build/lib/cost.d.ts +334 -2
  81. package/build/lib/cost.js +615 -2
  82. package/build/lib/cost.js.map +1 -1
  83. package/build/lib/credentials.d.ts +17 -0
  84. package/build/lib/credentials.js +21 -0
  85. package/build/lib/credentials.js.map +1 -1
  86. package/build/lib/customer-metrics.d.ts +40 -6
  87. package/build/lib/customer-metrics.js +100 -47
  88. package/build/lib/customer-metrics.js.map +1 -1
  89. package/build/lib/detectors/incident-cluster.d.ts +78 -0
  90. package/build/lib/detectors/incident-cluster.js +182 -0
  91. package/build/lib/detectors/incident-cluster.js.map +1 -0
  92. package/build/lib/detectors/skew.d.ts +52 -0
  93. package/build/lib/detectors/skew.js +71 -0
  94. package/build/lib/detectors/skew.js.map +1 -0
  95. package/build/lib/detectors/slot-aggregation.d.ts +103 -0
  96. package/build/lib/detectors/slot-aggregation.js +262 -0
  97. package/build/lib/detectors/slot-aggregation.js.map +1 -0
  98. package/build/lib/dev-cli.d.ts +53 -2
  99. package/build/lib/dev-cli.js +439 -62
  100. package/build/lib/dev-cli.js.map +1 -1
  101. package/build/lib/discovery/aws.js +7 -0
  102. package/build/lib/discovery/aws.js.map +1 -1
  103. package/build/lib/discovery/backend-detect.d.ts +30 -0
  104. package/build/lib/discovery/backend-detect.js +183 -0
  105. package/build/lib/discovery/backend-detect.js.map +1 -0
  106. package/build/lib/discovery/forwarder-detect.js +20 -1
  107. package/build/lib/discovery/forwarder-detect.js.map +1 -1
  108. package/build/lib/discovery/kubectl.js +57 -23
  109. package/build/lib/discovery/kubectl.js.map +1 -1
  110. package/build/lib/discovery/orchestrate.js +49 -2
  111. package/build/lib/discovery/orchestrate.js.map +1 -1
  112. package/build/lib/discovery/snapshot-store.d.ts +30 -1
  113. package/build/lib/discovery/snapshot-store.js +99 -3
  114. package/build/lib/discovery/snapshot-store.js.map +1 -1
  115. package/build/lib/discovery/types.d.ts +179 -3
  116. package/build/lib/discovery/types.js +1 -1
  117. package/build/lib/environments.d.ts +114 -65
  118. package/build/lib/environments.js +555 -86
  119. package/build/lib/environments.js.map +1 -1
  120. package/build/lib/field-variation.d.ts +51 -0
  121. package/build/lib/field-variation.js +84 -0
  122. package/build/lib/field-variation.js.map +1 -0
  123. package/build/lib/first-seen.d.ts +42 -0
  124. package/build/lib/first-seen.js +94 -0
  125. package/build/lib/first-seen.js.map +1 -0
  126. package/build/lib/format.d.ts +41 -2
  127. package/build/lib/format.js +69 -8
  128. package/build/lib/format.js.map +1 -1
  129. package/build/lib/forwarder-snippets.d.ts +68 -0
  130. package/build/lib/forwarder-snippets.js +246 -0
  131. package/build/lib/forwarder-snippets.js.map +1 -0
  132. package/build/lib/gates.d.ts +0 -1
  133. package/build/lib/gates.js +0 -1
  134. package/build/lib/gates.js.map +1 -1
  135. package/build/lib/input-coerce.d.ts +44 -0
  136. package/build/lib/input-coerce.js +156 -0
  137. package/build/lib/input-coerce.js.map +1 -0
  138. package/build/lib/install-hints.d.ts +23 -0
  139. package/build/lib/install-hints.js +54 -0
  140. package/build/lib/install-hints.js.map +1 -0
  141. package/build/lib/investigation-templates.js +12 -3
  142. package/build/lib/investigation-templates.js.map +1 -1
  143. package/build/lib/join-discovery.d.ts +10 -3
  144. package/build/lib/join-discovery.js +62 -3
  145. package/build/lib/join-discovery.js.map +1 -1
  146. package/build/lib/l1-outcome-multiplexer.d.ts +91 -0
  147. package/build/lib/l1-outcome-multiplexer.js +94 -0
  148. package/build/lib/l1-outcome-multiplexer.js.map +1 -0
  149. package/build/lib/license-api.d.ts +106 -0
  150. package/build/lib/license-api.js +226 -0
  151. package/build/lib/license-api.js.map +1 -0
  152. package/build/lib/line-chart.d.ts +58 -0
  153. package/build/lib/line-chart.js +212 -0
  154. package/build/lib/line-chart.js.map +1 -0
  155. package/build/lib/manifest.d.ts +22 -0
  156. package/build/lib/manifest.js +8 -0
  157. package/build/lib/manifest.js.map +1 -1
  158. package/build/lib/mcp-app-runner.d.ts +40 -0
  159. package/build/lib/mcp-app-runner.js +66 -0
  160. package/build/lib/mcp-app-runner.js.map +1 -0
  161. package/build/lib/metric-ref.d.ts +36 -0
  162. package/build/lib/metric-ref.js +39 -0
  163. package/build/lib/metric-ref.js.map +1 -0
  164. package/build/lib/metrics-backend.d.ts +180 -0
  165. package/build/lib/metrics-backend.js +1221 -0
  166. package/build/lib/metrics-backend.js.map +1 -0
  167. package/build/lib/mode-detect.d.ts +82 -0
  168. package/build/lib/mode-detect.js +265 -0
  169. package/build/lib/mode-detect.js.map +1 -0
  170. package/build/lib/mute-csv-writer.d.ts +54 -0
  171. package/build/lib/mute-csv-writer.js +74 -0
  172. package/build/lib/mute-csv-writer.js.map +1 -0
  173. package/build/lib/next-actions.d.ts +14 -1
  174. package/build/lib/next-actions.js +24 -2
  175. package/build/lib/next-actions.js.map +1 -1
  176. package/build/lib/not-configured.d.ts +119 -0
  177. package/build/lib/not-configured.js +243 -0
  178. package/build/lib/not-configured.js.map +1 -0
  179. package/build/lib/offload-recipes.d.ts +104 -0
  180. package/build/lib/offload-recipes.js +659 -0
  181. package/build/lib/offload-recipes.js.map +1 -0
  182. package/build/lib/offload-status.d.ts +108 -0
  183. package/build/lib/offload-status.js +304 -0
  184. package/build/lib/offload-status.js.map +1 -0
  185. package/build/lib/otel.d.ts +68 -0
  186. package/build/lib/otel.js +133 -0
  187. package/build/lib/otel.js.map +1 -0
  188. package/build/lib/output-types.d.ts +336 -0
  189. package/build/lib/output-types.js +200 -0
  190. package/build/lib/output-types.js.map +1 -0
  191. package/build/lib/pattern-descriptor.d.ts +75 -0
  192. package/build/lib/pattern-descriptor.js +203 -0
  193. package/build/lib/pattern-descriptor.js.map +1 -0
  194. package/build/lib/pattern-extraction.d.ts +124 -2
  195. package/build/lib/pattern-extraction.js +276 -23
  196. package/build/lib/pattern-extraction.js.map +1 -1
  197. package/build/lib/pattern-hash.d.ts +26 -0
  198. package/build/lib/pattern-hash.js +110 -0
  199. package/build/lib/pattern-hash.js.map +1 -0
  200. package/build/lib/pattern-render.d.ts +89 -0
  201. package/build/lib/pattern-render.js +201 -0
  202. package/build/lib/pattern-render.js.map +1 -0
  203. package/build/lib/poc-action-snippets.d.ts +33 -0
  204. package/build/lib/poc-action-snippets.js +108 -0
  205. package/build/lib/poc-action-snippets.js.map +1 -0
  206. package/build/lib/poc-cache.d.ts +71 -0
  207. package/build/lib/poc-cache.js +227 -0
  208. package/build/lib/poc-cache.js.map +1 -0
  209. package/build/lib/poc-chunked-templater.d.ts +66 -0
  210. package/build/lib/poc-chunked-templater.js +207 -0
  211. package/build/lib/poc-chunked-templater.js.map +1 -0
  212. package/build/lib/poc-enrichers.d.ts +205 -0
  213. package/build/lib/poc-enrichers.js +264 -0
  214. package/build/lib/poc-enrichers.js.map +1 -0
  215. package/build/lib/poc-envelope-v2.d.ts +355 -0
  216. package/build/lib/poc-envelope-v2.js +936 -0
  217. package/build/lib/poc-envelope-v2.js.map +1 -0
  218. package/build/lib/poc-host-agent-enricher.d.ts +102 -0
  219. package/build/lib/poc-host-agent-enricher.js +297 -0
  220. package/build/lib/poc-host-agent-enricher.js.map +1 -0
  221. package/build/lib/poc-report-renderer.d.ts +75 -0
  222. package/build/lib/poc-report-renderer.js +616 -157
  223. package/build/lib/poc-report-renderer.js.map +1 -1
  224. package/build/lib/poc-round.d.ts +26 -0
  225. package/build/lib/poc-round.js +47 -0
  226. package/build/lib/poc-round.js.map +1 -0
  227. package/build/lib/policy-loader.d.ts +108 -0
  228. package/build/lib/policy-loader.js +258 -0
  229. package/build/lib/policy-loader.js.map +1 -0
  230. package/build/lib/primitive-errors.d.ts +50 -0
  231. package/build/lib/primitive-errors.js +142 -0
  232. package/build/lib/primitive-errors.js.map +1 -0
  233. package/build/lib/promql-to-datadog.d.ts +54 -0
  234. package/build/lib/promql-to-datadog.js +450 -0
  235. package/build/lib/promql-to-datadog.js.map +1 -0
  236. package/build/lib/promql.d.ts +118 -29
  237. package/build/lib/promql.js +169 -52
  238. package/build/lib/promql.js.map +1 -1
  239. package/build/lib/receiver-probe.d.ts +28 -0
  240. package/build/lib/receiver-probe.js +82 -0
  241. package/build/lib/receiver-probe.js.map +1 -0
  242. package/build/lib/recur-history-reader.d.ts +64 -0
  243. package/build/lib/recur-history-reader.js +124 -0
  244. package/build/lib/recur-history-reader.js.map +1 -0
  245. package/build/lib/recurring-tick.d.ts +67 -0
  246. package/build/lib/recurring-tick.js +531 -0
  247. package/build/lib/recurring-tick.js.map +1 -0
  248. package/build/lib/render-table.d.ts +45 -0
  249. package/build/lib/render-table.js +61 -0
  250. package/build/lib/render-table.js.map +1 -0
  251. package/build/lib/resolve-env.d.ts +0 -1
  252. package/build/lib/resolve-env.js +0 -1
  253. package/build/lib/resolve-env.js.map +1 -1
  254. package/build/lib/resolve-pattern-hash.d.ts +16 -0
  255. package/build/lib/resolve-pattern-hash.js +66 -0
  256. package/build/lib/resolve-pattern-hash.js.map +1 -0
  257. package/build/lib/retriever-api.d.ts +52 -2
  258. package/build/lib/retriever-api.js +196 -6
  259. package/build/lib/retriever-api.js.map +1 -1
  260. package/build/lib/retriever-fidelity.d.ts +3 -3
  261. package/build/lib/retriever-fidelity.js +3 -3
  262. package/build/lib/retriever-state.d.ts +40 -0
  263. package/build/lib/retriever-state.js +387 -0
  264. package/build/lib/retriever-state.js.map +1 -0
  265. package/build/lib/sample-budget.d.ts +41 -0
  266. package/build/lib/sample-budget.js +106 -0
  267. package/build/lib/sample-budget.js.map +1 -0
  268. package/build/lib/scheduler-manifest-emitter.d.ts +90 -0
  269. package/build/lib/scheduler-manifest-emitter.js +259 -0
  270. package/build/lib/scheduler-manifest-emitter.js.map +1 -0
  271. package/build/lib/self-telemetry.js +31 -1
  272. package/build/lib/self-telemetry.js.map +1 -1
  273. package/build/lib/semantic-excerpt.d.ts +40 -0
  274. package/build/lib/semantic-excerpt.js +110 -0
  275. package/build/lib/semantic-excerpt.js.map +1 -0
  276. package/build/lib/siem/cloudwatch.js +46 -14
  277. package/build/lib/siem/cloudwatch.js.map +1 -1
  278. package/build/lib/siem/deps/index.js +2 -0
  279. package/build/lib/siem/deps/index.js.map +1 -1
  280. package/build/lib/siem/hash-query.d.ts +16 -0
  281. package/build/lib/siem/hash-query.js +41 -0
  282. package/build/lib/siem/hash-query.js.map +1 -0
  283. package/build/lib/siem/index.d.ts +9 -0
  284. package/build/lib/siem/index.js.map +1 -1
  285. package/build/lib/siem/sample.d.ts +101 -0
  286. package/build/lib/siem/sample.js +353 -0
  287. package/build/lib/siem/sample.js.map +1 -0
  288. package/build/lib/siem/sumo.js +8 -1
  289. package/build/lib/siem/sumo.js.map +1 -1
  290. package/build/lib/template-expander.d.ts +39 -0
  291. package/build/lib/template-expander.js +77 -0
  292. package/build/lib/template-expander.js.map +1 -0
  293. package/build/lib/time-range.d.ts +22 -0
  294. package/build/lib/time-range.js +30 -0
  295. package/build/lib/time-range.js.map +1 -0
  296. package/build/lib/tool-errors.js +9 -7
  297. package/build/lib/tool-errors.js.map +1 -1
  298. package/build/lib/top-patterns-extras.d.ts +187 -0
  299. package/build/lib/top-patterns-extras.js +333 -0
  300. package/build/lib/top-patterns-extras.js.map +1 -0
  301. package/build/lib/top-patterns-render.d.ts +116 -0
  302. package/build/lib/top-patterns-render.js +729 -0
  303. package/build/lib/top-patterns-render.js.map +1 -0
  304. package/build/lib/trend-delta.d.ts +62 -0
  305. package/build/lib/trend-delta.js +166 -0
  306. package/build/lib/trend-delta.js.map +1 -0
  307. package/build/lib/unified-envelope.d.ts +78 -0
  308. package/build/lib/unified-envelope.js +82 -0
  309. package/build/lib/unified-envelope.js.map +1 -0
  310. package/build/lib/variable-concentration.js +17 -2
  311. package/build/lib/variable-concentration.js.map +1 -1
  312. package/build/lib/window-scaling.d.ts +73 -0
  313. package/build/lib/window-scaling.js +129 -0
  314. package/build/lib/window-scaling.js.map +1 -0
  315. package/build/tools/advise-install.d.ts +95 -37
  316. package/build/tools/advise-install.js +1554 -160
  317. package/build/tools/advise-install.js.map +1 -1
  318. package/build/tools/advise-retriever.d.ts +109 -38
  319. package/build/tools/advise-retriever.js +1276 -38
  320. package/build/tools/advise-retriever.js.map +1 -1
  321. package/build/tools/backfill-metric.d.ts +10 -5
  322. package/build/tools/backfill-metric.js +166 -12
  323. package/build/tools/backfill-metric.js.map +1 -1
  324. package/build/tools/baseline.d.ts +123 -0
  325. package/build/tools/baseline.js +618 -0
  326. package/build/tools/baseline.js.map +1 -0
  327. package/build/tools/commitment-report.d.ts +502 -0
  328. package/build/tools/commitment-report.js +1328 -0
  329. package/build/tools/commitment-report.js.map +1 -0
  330. package/build/tools/configure-engine.d.ts +206 -0
  331. package/build/tools/configure-engine.js +1515 -0
  332. package/build/tools/configure-engine.js.map +1 -0
  333. package/build/tools/configure-env.d.ts +352 -0
  334. package/build/tools/configure-env.js +212 -0
  335. package/build/tools/configure-env.js.map +1 -0
  336. package/build/tools/cost-options.d.ts +90 -0
  337. package/build/tools/cost-options.js +439 -0
  338. package/build/tools/cost-options.js.map +1 -0
  339. package/build/tools/create-env.d.ts +2 -1
  340. package/build/tools/create-env.js +43 -6
  341. package/build/tools/create-env.js.map +1 -1
  342. package/build/tools/customer-metrics-query.d.ts +6 -5
  343. package/build/tools/customer-metrics-query.js +118 -56
  344. package/build/tools/customer-metrics-query.js.map +1 -1
  345. package/build/tools/delete-env.d.ts +2 -1
  346. package/build/tools/delete-env.js +43 -10
  347. package/build/tools/delete-env.js.map +1 -1
  348. package/build/tools/dependency-check.d.ts +1 -1
  349. package/build/tools/dependency-check.js +150 -1
  350. package/build/tools/dependency-check.js.map +1 -1
  351. package/build/tools/dev-restart.d.ts +51 -0
  352. package/build/tools/dev-restart.js +87 -0
  353. package/build/tools/dev-restart.js.map +1 -0
  354. package/build/tools/discover-env.d.ts +7 -5
  355. package/build/tools/discover-env.js +149 -6
  356. package/build/tools/discover-env.js.map +1 -1
  357. package/build/tools/discover-join.d.ts +8 -6
  358. package/build/tools/discover-join.js +158 -68
  359. package/build/tools/discover-join.js.map +1 -1
  360. package/build/tools/discover-labels.d.ts +3 -2
  361. package/build/tools/discover-labels.js +109 -9
  362. package/build/tools/discover-labels.js.map +1 -1
  363. package/build/tools/doctor.d.ts +2 -1
  364. package/build/tools/doctor.js +252 -21
  365. package/build/tools/doctor.js.map +1 -1
  366. package/build/tools/estimate-savings.d.ts +444 -0
  367. package/build/tools/estimate-savings.js +1411 -0
  368. package/build/tools/estimate-savings.js.map +1 -0
  369. package/build/tools/event-lookup.d.ts +16 -9
  370. package/build/tools/event-lookup.js +503 -52
  371. package/build/tools/event-lookup.js.map +1 -1
  372. package/build/tools/explain-mode.d.ts +57 -0
  373. package/build/tools/explain-mode.js +422 -0
  374. package/build/tools/explain-mode.js.map +1 -0
  375. package/build/tools/extract-templates.d.ts +5 -2
  376. package/build/tools/extract-templates.js +194 -6
  377. package/build/tools/extract-templates.js.map +1 -1
  378. package/build/tools/find-skew.d.ts +52 -0
  379. package/build/tools/find-skew.js +327 -0
  380. package/build/tools/find-skew.js.map +1 -0
  381. package/build/tools/investigate.d.ts +62 -9
  382. package/build/tools/investigate.js +515 -55
  383. package/build/tools/investigate.js.map +1 -1
  384. package/build/tools/log10x-start.d.ts +134 -0
  385. package/build/tools/log10x-start.js +454 -0
  386. package/build/tools/log10x-start.js.map +1 -0
  387. package/build/tools/login-status.d.ts +2 -1
  388. package/build/tools/login-status.js +44 -82
  389. package/build/tools/login-status.js.map +1 -1
  390. package/build/tools/measure-compaction.d.ts +61 -0
  391. package/build/tools/measure-compaction.js +383 -0
  392. package/build/tools/measure-compaction.js.map +1 -0
  393. package/build/tools/metric-overlay.d.ts +72 -0
  394. package/build/tools/metric-overlay.js +468 -0
  395. package/build/tools/metric-overlay.js.map +1 -0
  396. package/build/tools/metrics-that-moved.d.ts +83 -0
  397. package/build/tools/metrics-that-moved.js +520 -0
  398. package/build/tools/metrics-that-moved.js.map +1 -0
  399. package/build/tools/overflow-contents.d.ts +54 -0
  400. package/build/tools/overflow-contents.js +486 -0
  401. package/build/tools/overflow-contents.js.map +1 -0
  402. package/build/tools/pattern-detail.d.ts +79 -0
  403. package/build/tools/pattern-detail.js +517 -0
  404. package/build/tools/pattern-detail.js.map +1 -0
  405. package/build/tools/pattern-examples.d.ts +4 -4
  406. package/build/tools/pattern-examples.js +323 -24
  407. package/build/tools/pattern-examples.js.map +1 -1
  408. package/build/tools/pattern-mitigate.d.ts +60 -0
  409. package/build/tools/pattern-mitigate.js +791 -0
  410. package/build/tools/pattern-mitigate.js.map +1 -0
  411. package/build/tools/poc-from-local.d.ts +10 -1
  412. package/build/tools/poc-from-local.js +221 -2
  413. package/build/tools/poc-from-local.js.map +1 -1
  414. package/build/tools/poc-from-siem.d.ts +59 -3
  415. package/build/tools/poc-from-siem.js +482 -33
  416. package/build/tools/poc-from-siem.js.map +1 -1
  417. package/build/tools/preview-filter.d.ts +89 -0
  418. package/build/tools/preview-filter.js +414 -0
  419. package/build/tools/preview-filter.js.map +1 -0
  420. package/build/tools/rank-by-shape-similarity.d.ts +64 -0
  421. package/build/tools/rank-by-shape-similarity.js +463 -0
  422. package/build/tools/rank-by-shape-similarity.js.map +1 -0
  423. package/build/tools/resolve-batch.d.ts +7 -5
  424. package/build/tools/resolve-batch.js +220 -33
  425. package/build/tools/resolve-batch.js.map +1 -1
  426. package/build/tools/retriever-query-status.d.ts +15 -20
  427. package/build/tools/retriever-query-status.js +484 -130
  428. package/build/tools/retriever-query-status.js.map +1 -1
  429. package/build/tools/retriever-query.d.ts +18 -4
  430. package/build/tools/retriever-query.js +355 -16
  431. package/build/tools/retriever-query.js.map +1 -1
  432. package/build/tools/retriever-series.d.ts +6 -4
  433. package/build/tools/retriever-series.js +131 -189
  434. package/build/tools/retriever-series.js.map +1 -1
  435. package/build/tools/rotate-api-key.d.ts +2 -1
  436. package/build/tools/rotate-api-key.js +54 -16
  437. package/build/tools/rotate-api-key.js.map +1 -1
  438. package/build/tools/savings.d.ts +11 -4
  439. package/build/tools/savings.js +299 -28
  440. package/build/tools/savings.js.map +1 -1
  441. package/build/tools/services.d.ts +40 -5
  442. package/build/tools/services.js +396 -12
  443. package/build/tools/services.js.map +1 -1
  444. package/build/tools/set-gitops-repo.d.ts +40 -0
  445. package/build/tools/set-gitops-repo.js +191 -0
  446. package/build/tools/set-gitops-repo.js.map +1 -0
  447. package/build/tools/setup-recurring.d.ts +180 -0
  448. package/build/tools/setup-recurring.js +531 -0
  449. package/build/tools/setup-recurring.js.map +1 -0
  450. package/build/tools/signin.d.ts +3 -17
  451. package/build/tools/signin.js +69 -46
  452. package/build/tools/signin.js.map +1 -1
  453. package/build/tools/signout.d.ts +2 -31
  454. package/build/tools/signout.js +35 -1
  455. package/build/tools/signout.js.map +1 -1
  456. package/build/tools/top-patterns.d.ts +27 -7
  457. package/build/tools/top-patterns.js +1034 -134
  458. package/build/tools/top-patterns.js.map +1 -1
  459. package/build/tools/trend.d.ts +16 -7
  460. package/build/tools/trend.js +429 -63
  461. package/build/tools/trend.js.map +1 -1
  462. package/build/tools/update-env.d.ts +2 -1
  463. package/build/tools/update-env.js +50 -13
  464. package/build/tools/update-env.js.map +1 -1
  465. package/build/tools/update-settings.d.ts +2 -1
  466. package/build/tools/update-settings.js +35 -12
  467. package/build/tools/update-settings.js.map +1 -1
  468. package/build/vendor/promql-parser/package.json +1 -0
  469. package/build/vendor/promql-parser/promql.js +2666 -0
  470. package/default-manifest.json +499 -111
  471. package/package.json +15 -5
  472. package/build/lib/advisor/dest-resolve.d.ts +0 -22
  473. package/build/lib/advisor/dest-resolve.js +0 -34
  474. package/build/lib/advisor/dest-resolve.js.map +0 -1
  475. package/build/lib/advisor/mode.d.ts +0 -89
  476. package/build/lib/advisor/mode.js +0 -322
  477. package/build/lib/advisor/mode.js.map +0 -1
  478. package/build/lib/cross-pillar-correlate.d.ts +0 -119
  479. package/build/lib/cross-pillar-correlate.js +0 -530
  480. package/build/lib/cross-pillar-correlate.js.map +0 -1
  481. package/build/tools/advise-compact.d.ts +0 -92
  482. package/build/tools/advise-compact.js +0 -558
  483. package/build/tools/advise-compact.js.map +0 -1
  484. package/build/tools/advise-receiver.d.ts +0 -65
  485. package/build/tools/advise-receiver.js +0 -95
  486. package/build/tools/advise-receiver.js.map +0 -1
  487. package/build/tools/advise-reporter.d.ts +0 -58
  488. package/build/tools/advise-reporter.js +0 -86
  489. package/build/tools/advise-reporter.js.map +0 -1
  490. package/build/tools/correlate-cross-pillar.d.ts +0 -50
  491. package/build/tools/correlate-cross-pillar.js +0 -283
  492. package/build/tools/correlate-cross-pillar.js.map +0 -1
  493. package/build/tools/cost-drivers.d.ts +0 -30
  494. package/build/tools/cost-drivers.js +0 -197
  495. package/build/tools/cost-drivers.js.map +0 -1
  496. package/build/tools/exclusion-filter.d.ts +0 -31
  497. package/build/tools/exclusion-filter.js +0 -312
  498. package/build/tools/exclusion-filter.js.map +0 -1
  499. package/build/tools/list-by-label.d.ts +0 -29
  500. package/build/tools/list-by-label.js +0 -109
  501. package/build/tools/list-by-label.js.map +0 -1
  502. package/build/tools/translate-metric-to-patterns.d.ts +0 -35
  503. package/build/tools/translate-metric-to-patterns.js +0 -44
  504. package/build/tools/translate-metric-to-patterns.js.map +0 -1
package/README.md CHANGED
@@ -25,11 +25,27 @@ Log10x fingerprints every log line into a stable `templateHash` — a structural
25
25
 
26
26
  | Tool | Answers | Tier |
27
27
  |---|---|---|
28
- | `log10x_investigate` | "Why is this spiking?" — single-call root-cause: anchor resolution, trajectory shape detection (acute-spike vs drift), cross-pattern lag correlation, causal chain with stat/lag/chain confidence sub-scores, drift cohort analysis, two-stage Retriever fallback, verification commands. Surfaces log-only signals (pool saturation, cache evictions, retry amplification) that APM structurally cannot see. | Reporter |
28
+ | `log10x_investigate` | "Why is this spiking?" — single-call investigation: anchor resolution, trajectory shape (acute-spike vs drift), cross-pattern lag correlation, temporal-evidence chain with stat/lag/chain confidence sub-scores, drift cohort analysis, two-stage Retriever fallback, recommended next actions. Returns observations + suggestions, NOT verdicts — output framed as "strongest temporal evidence (lead by lag time, not proven cause)." Tags `threshold_basis: "unvalidated_default"` until the operator points `LOG10X_THRESHOLDS_FILE` at calibrated overrides. Surfaces log-only signals (pool saturation, cache evictions, retry amplification) that APM structurally cannot see. See [`docs/cross-pillar-primitives.md`](docs/cross-pillar-primitives.md) for the agent behavior contract. | Reporter |
29
29
  | `log10x_resolve_batch` | "Triage these events" — paste a file / array / text dump of raw log lines and get per-pattern frequency, severity, variable concentration, and next-action suggestions. Runs via the Log10x paste endpoint; works at any tier including CLI-only. | None |
30
30
  | `log10x_retriever_query` | "Get me the actual events" — direct retrieval from the Retriever archive by templateHash with JS filter expressions over event payloads. Queries the customer's own S3 via pre-computed Bloom filters. Answers forensic, audit, and out-of-retention retrieval. | Retriever |
31
31
  | `log10x_backfill_metric` | "Create a new Datadog metric backfilled with 90 days of history" — pulls historical events from the Retriever, aggregates into a bucketed time series, emits to the destination TSDB with historical timestamps preserved. Datadog + Prometheus remote_write supported today. | Retriever |
32
32
 
33
+ ### Cross-pillar correlation primitives
34
+
35
+ Three deterministic primitives that take a log-pattern anchor and customer Prometheus metric candidates, then answer "which metrics moved with this log pattern, when, and by how much." They compose into a cascade narrative: filter → rank → overlay.
36
+
37
+ | Tool | Answers | Tier |
38
+ |---|---|---|
39
+ | `log10x_metrics_that_moved` | "Of these N customer metrics, which ones moved with my log pattern?" — deterministic phase-gap filter. Returns `moved[]`, `not_moved[]`, `evaluation_failed[]`. | Reporter + customer Prometheus |
40
+ | `log10x_rank_by_shape_similarity` | "Of the metrics that moved, which match the anchor's shape best, and which moved first?" — Pearson + signed lag scan. Returns ranked candidates with `lag_seconds`, `lag_at_bound`, `anchor_phase_aligned`. | Reporter + customer Prometheus |
41
+ | `log10x_metric_overlay` | "Show me the two curves side by side." — aligned timeseries + deterministic peak facts (`peak_offset_seconds`, etc.). No Pearson, no tier — raw data. | Reporter + customer Prometheus |
42
+
43
+ **Designed for AI callers, not humans.** Every output carries a unified envelope: `status`, `threshold_basis`, `anchor_ref` echo, `query_count`, `total_latency_ms`, `backend_pressure_hint`, and a `human_summary` field the agent can paste to a human. `metric_ref` round-trips identically across the three tools — pass it from one output to the next input verbatim.
44
+
45
+ **Calibration honesty.** The default thresholds (15% phase gap, ±1800s lag search) are hand-picked from one synthetic chaos test, not calibrated against any real customer backend. Every tool tags `threshold_basis: "unvalidated_default"` until a caller-supplied override moves it to `caller_override`. Agents MUST NOT auto-mitigate based on uncalibrated findings. See [`docs/cross-pillar-primitives.md`](docs/cross-pillar-primitives.md) for the full agent behavior contract and the per-backend calibration playbook.
46
+
47
+ **Structural guards.** When the anchor doesn't have a real busy/quiet split, the tool refuses with `status: "anchor_no_phase_separation"` rather than producing nonsense. When the candidate set produces zero meaningful signal, the tool returns `status: "no_signal"` so the agent stops searching cleanly. Backend errors surface as a structured `PrimitiveError` envelope (`error_type`, `retryable`, `suggested_backoff_ms`, `hint`), not thrown strings.
48
+
33
49
  All tools query `prometheus.log10x.com` (for Reporter-tier tools) over HTTPS, with the same `X-10X-Auth` header used by the rest of the Log10x stack. No log scanning; sub-second at any scale.
34
50
 
35
51
  ## ROI examples — three real flows
@@ -134,6 +150,15 @@ Every pattern is ranked by an interestingness score (severity-weighted); the dom
134
150
 
135
151
  ## Install
136
152
 
153
+ ### Engine compatibility
154
+
155
+ | MCP version | tenx engine required | Notes |
156
+ |---|---|---|
157
+ | 1.8.13+ | **1.0.22+** (recommended) | `log10x_resolve_batch` `privacy_mode: true` invokes `tenx @apps/mcp` (stdin/stdout, no temp files). Requires `apps/mcp` shipped in the engine release — first available in 1.0.22. |
158
+ | 1.8.x | 1.0.21 (with `TENX_CONFIG`+`TENX_MODULES` overrides) | Earlier engines can run the MCP only if the user clones `log-10x/config` + `log-10x/modules` at the apps/mcp branches and points `TENX_CONFIG`/`TENX_MODULES` at them. |
159
+
160
+ `brew upgrade log10x` pulls the latest released engine. See https://doc.log10x.com/install/ for OS-specific installers.
161
+
137
162
  ### Claude Desktop
138
163
 
139
164
  Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
@@ -215,7 +240,7 @@ You never call tools directly. Just ask your AI assistant a question in plain En
215
240
 
216
241
  ## Cost driver algorithm
217
242
 
218
- When you ask about cost spikes, the server runs the same algorithm as the Log10x Slack bot:
243
+ When you ask about cost spikes, the server runs this algorithm:
219
244
 
220
245
  1. **Query current window** — bytes per pattern for the selected timeframe
221
246
  2. **Query baseline** — average of the 3 prior windows of the same size
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * tenx-recur — deterministic recurring cost-reduction tick runner.
4
+ *
5
+ * Usage:
6
+ * tenx-recur --policy <path-to-policy.yaml> [--dry-run] [--verbose]
7
+ *
8
+ * Exit codes:
9
+ * 0 success (applied) or no-op (delta below threshold)
10
+ * 1 policy error (bad YAML, missing required field)
11
+ * 2 Prometheus unreachable
12
+ * 3 commit failed (git / gh error)
13
+ *
14
+ * One invocation runs one tick. The external scheduler (k8s CronJob,
15
+ * GitHub Actions, crontab) is responsible for calling this on schedule.
16
+ *
17
+ * Environment variables consumed:
18
+ * LOG10X_ENV_ID — 10x environment ID (overrides policy config_plane.env_id)
19
+ * LOG10X_API_KEY — API key for hosted log10x Prometheus backend
20
+ * LOG10X_CUSTOMER_METRICS_URL — Prometheus/Mimir/… base URL (customer self-hosted)
21
+ * LOG10X_CUSTOMER_METRICS_TYPE — backend type (see customer-metrics.ts)
22
+ * LOG10X_CUSTOMER_METRICS_AUTH — auth credential
23
+ * LOG10X_GITOPS_REPO_PATH — local path to the cloned gitops repo
24
+ * LOG10X_RETRY_BASE_MS — retry base delay in ms (default 250)
25
+ */
26
+ export {};
@@ -0,0 +1,176 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * tenx-recur — deterministic recurring cost-reduction tick runner.
4
+ *
5
+ * Usage:
6
+ * tenx-recur --policy <path-to-policy.yaml> [--dry-run] [--verbose]
7
+ *
8
+ * Exit codes:
9
+ * 0 success (applied) or no-op (delta below threshold)
10
+ * 1 policy error (bad YAML, missing required field)
11
+ * 2 Prometheus unreachable
12
+ * 3 commit failed (git / gh error)
13
+ *
14
+ * One invocation runs one tick. The external scheduler (k8s CronJob,
15
+ * GitHub Actions, crontab) is responsible for calling this on schedule.
16
+ *
17
+ * Environment variables consumed:
18
+ * LOG10X_ENV_ID — 10x environment ID (overrides policy config_plane.env_id)
19
+ * LOG10X_API_KEY — API key for hosted log10x Prometheus backend
20
+ * LOG10X_CUSTOMER_METRICS_URL — Prometheus/Mimir/… base URL (customer self-hosted)
21
+ * LOG10X_CUSTOMER_METRICS_TYPE — backend type (see customer-metrics.ts)
22
+ * LOG10X_CUSTOMER_METRICS_AUTH — auth credential
23
+ * LOG10X_GITOPS_REPO_PATH — local path to the cloned gitops repo
24
+ * LOG10X_RETRY_BASE_MS — retry base delay in ms (default 250)
25
+ */
26
+ import { readFileSync } from 'node:fs';
27
+ import { resolve as resolvePath } from 'node:path';
28
+ import process from 'node:process';
29
+ import { parsePolicyYaml, PolicyLoadError } from '../lib/policy-loader.js';
30
+ import { runTick, PromUnreachableError } from '../lib/recurring-tick.js';
31
+ function parseArgs(argv) {
32
+ // argv[0] = node, argv[1] = script path
33
+ const args = argv.slice(2);
34
+ let policyPath = '';
35
+ let dryRun = false;
36
+ let verbose = false;
37
+ for (let i = 0; i < args.length; i++) {
38
+ const arg = args[i];
39
+ if (arg === '--policy' || arg === '-p') {
40
+ policyPath = args[++i] ?? '';
41
+ }
42
+ else if (arg.startsWith('--policy=')) {
43
+ policyPath = arg.slice('--policy='.length);
44
+ }
45
+ else if (arg === '--dry-run' || arg === '--dryRun') {
46
+ dryRun = true;
47
+ }
48
+ else if (arg === '--verbose' || arg === '-v') {
49
+ verbose = true;
50
+ }
51
+ else if (arg === '--help' || arg === '-h') {
52
+ printUsage();
53
+ process.exit(0);
54
+ }
55
+ else {
56
+ printError(`Unknown argument: ${arg}`);
57
+ printUsage();
58
+ process.exit(1);
59
+ }
60
+ }
61
+ if (!policyPath) {
62
+ printError('--policy <path> is required');
63
+ printUsage();
64
+ process.exit(1);
65
+ }
66
+ return { policyPath, dryRun, verbose };
67
+ }
68
+ function printUsage() {
69
+ process.stderr.write([
70
+ 'Usage: tenx-recur --policy <path-to-policy.yaml> [--dry-run] [--verbose]',
71
+ '',
72
+ 'Options:',
73
+ ' --policy <path> Path to the policy.yaml file (required)',
74
+ ' --dry-run Print what would change without writing or committing',
75
+ ' --verbose Print PromQL queries and decision details',
76
+ ' --help Print this message',
77
+ '',
78
+ 'Exit codes:',
79
+ ' 0 success (applied or no-op)',
80
+ ' 1 policy error',
81
+ ' 2 Prometheus unreachable',
82
+ ' 3 commit failed',
83
+ '',
84
+ ].join('\n'));
85
+ }
86
+ function printError(msg) {
87
+ process.stderr.write(`[tenx-recur] error: ${msg}\n`);
88
+ }
89
+ function printInfo(msg) {
90
+ process.stderr.write(`[tenx-recur] ${msg}\n`);
91
+ }
92
+ // ─── structured run log ───────────────────────────────────────────────────
93
+ function printRunSummary(result) {
94
+ const summary = {
95
+ ts: new Date().toISOString(),
96
+ status: result.status,
97
+ projected_savings_pct: parseFloat(result.projected_savings_pct.toFixed(2)),
98
+ delta_patterns: result.delta_patterns,
99
+ delta_pp: parseFloat(result.delta_pp.toFixed(2)),
100
+ message: result.message,
101
+ ...(result.history_path ? { history_path: result.history_path } : {}),
102
+ };
103
+ // Structured one-line JSON to stdout — parseable by log aggregators.
104
+ process.stdout.write(JSON.stringify(summary) + '\n');
105
+ }
106
+ // ─── main ─────────────────────────────────────────────────────────────────
107
+ async function main() {
108
+ const { policyPath, dryRun, verbose } = parseArgs(process.argv);
109
+ // ── load policy ──────────────────────────────────────────────────────────
110
+ let policyText;
111
+ try {
112
+ policyText = readFileSync(resolvePath(policyPath), 'utf8');
113
+ }
114
+ catch (err) {
115
+ printError(`cannot read policy file "${policyPath}": ${String(err)}`);
116
+ process.exit(1);
117
+ }
118
+ let policy;
119
+ try {
120
+ policy = parsePolicyYaml(policyText);
121
+ }
122
+ catch (err) {
123
+ if (err instanceof PolicyLoadError) {
124
+ printError(`policy parse error: ${err.message}`);
125
+ }
126
+ else {
127
+ printError(`unexpected error loading policy: ${String(err)}`);
128
+ }
129
+ process.exit(1);
130
+ }
131
+ if (verbose) {
132
+ printInfo(`policy loaded: target=${policy.target_percent}% ` +
133
+ `services=${policy.target_services.length === 0 ? 'all' : policy.target_services.join(',')} ` +
134
+ `lookback=${policy.lookback_window} ` +
135
+ `min_delta=${policy.min_delta_pp}pp ` +
136
+ (dryRun ? '[DRY RUN]' : ''));
137
+ }
138
+ // ── run tick ─────────────────────────────────────────────────────────────
139
+ let result;
140
+ try {
141
+ result = await runTick(policy, { dryRun, verbose });
142
+ }
143
+ catch (err) {
144
+ if (err instanceof PromUnreachableError) {
145
+ printError(`prometheus unreachable: ${err.message}`);
146
+ process.exit(2);
147
+ }
148
+ printError(`unexpected error: ${String(err)}`);
149
+ if (verbose && err instanceof Error && err.stack) {
150
+ process.stderr.write(err.stack + '\n');
151
+ }
152
+ process.exit(1);
153
+ }
154
+ printRunSummary(result);
155
+ if (verbose) {
156
+ const actionCounts = {};
157
+ for (const d of result.applied_changes) {
158
+ actionCounts[d.action] = (actionCounts[d.action] ?? 0) + 1;
159
+ }
160
+ printInfo(`actions: ${Object.entries(actionCounts)
161
+ .sort((a, b) => b[1] - a[1])
162
+ .map(([a, n]) => `${a}=${n}`)
163
+ .join(' ')}`);
164
+ }
165
+ if (result.status === 'error') {
166
+ printError(result.message);
167
+ process.exit(3);
168
+ }
169
+ // status 'no_change', 'applied', 'dry_run' → exit 0
170
+ process.exit(0);
171
+ }
172
+ main().catch((err) => {
173
+ process.stderr.write(`[tenx-recur] fatal: ${String(err)}\n`);
174
+ process.exit(1);
175
+ });
176
+ //# sourceMappingURL=tenx-recur.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenx-recur.js","sourceRoot":"","sources":["../../src/bin/tenx-recur.ts"],"names":[],"mappings":";AACA;;;;;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,YAAY,GAA2B,EAAE,CAAC;QAChD,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,eAAe,EAAE,CAAC;YACvC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAC7D,CAAC;QACD,SAAS,CACP,YAAY,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;aACrC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aAC3B,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;aAC5B,IAAI,CAAC,GAAG,CAAC,EAAE,CACf,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,OAAO,EAAE,CAAC;QAC9B,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,oDAAoD;IACpD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;IAC5B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,uBAAuB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC7D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/build/index.d.ts CHANGED
@@ -5,4 +5,5 @@
5
5
  * Gives AI assistants real-time access to per-pattern log cost attribution data.
6
6
  * Queries pre-aggregated Prometheus metrics — no log scanning, sub-second at any scale.
7
7
  */
8
- export {};
8
+ import { type ModeResolution } from './lib/mode-detect.js';
9
+ export declare function getBootMode(): ModeResolution;