@intentius/chant-lexicon-prometheus 0.124.11 → 0.124.13

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.
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "bfb6ceffb13347425e79e10c0c93cc7facb379e49ba8bb18e4ae3b90e3278d50",
4
+ "manifest.json": "646872e660e24cf3fa5e8b2bcee22647b6dbd90107b1e1b8814be3dbfd90a387",
5
5
  "meta.json": "a06b8059e2de2ca6c8131bfbbfe7e143e818f2d2d497d3f45a9bc5c63af6aeeb",
6
6
  "types/index.d.ts": "150d72287453a24a40cdeffb8cf3e9dc6e77ab58b342b48d01902dc58fb5f85d",
7
- "rules/literal-credential.ts": "1ea8b768e9dc4a6d7b133a52923ce2e8cb815584d3eeb1854f77af34d50f8257",
8
- "rules/prom-ast.ts": "6de6f83cfa81505efeb2c55aa1e9872ead9b09695a400c92bec8fa11059a551f",
9
- "rules/promql-literal.ts": "c734b6d9f0949ac7529edd6e687f7a5a1e62f37e614492f0e92e7062260e85db",
10
- "rules/slo-literal.ts": "13f86da17d11939ebbcf64be38b092b602f6c9e95876e1615c00a032638d75b1",
7
+ "rules/literal-credential.ts": "df0dc02b93f2da87d9b03ceca906206b40b3b7600b24cb733f6388d81f92aecb",
8
+ "rules/prom-ast.ts": "042d9b294ea09cbf1f1539b26deee8118e27ea0716ff487d689128a6ecb15fd0",
9
+ "rules/promql-literal.ts": "bde675884210864aa7e87a1e3412670657f246c24ef6541e7b64635b2bcbb4fa",
10
+ "rules/slo-literal.ts": "9382b9c8a1e984077c8349f8e3a37b6f5e733ba4d677e7279e89916286e91046",
11
11
  "rules/prom-helpers.ts": "eacd3456e331129e356cde2187bbc3c7b5ac54e8836a5dae2dd149d8fa0541f7",
12
12
  "rules/prom101.ts": "f153c2b0b5f43b51e15053d732f27321aeb33c76683416b47982a95986704935",
13
13
  "rules/prom102.ts": "d40d7d4690ada12efcf50c471739b2254376cbd382c1d8c547bbadca3205a1fa",
@@ -46,5 +46,5 @@
46
46
  "skills/chant-prometheus-alertmanager.md": "4c4a22bea6147653d09d7d3f55f81c4927963d4e2f50b2e430fbb9023e99570b",
47
47
  "skills/chant-prometheus-kubernetes.md": "cca016857891f4cabf1feb6f9db83c220a2e6ece200cd89e635851079f8070a8"
48
48
  },
49
- "composite": "b9da730e863bd168b946f2a178066def70b3a2de832b184194c173a16e16d97c"
49
+ "composite": "eeb373b941d3af95dcc8390e496fe35727ed2578cee4ce8e864839cfed3a02cb"
50
50
  }
@@ -1,4 +1,4 @@
1
- import * as ts from "typescript";
1
+ import { ts } from "@intentius/chant/lint/typescript";
2
2
  /** The constructor name of a `new X(...)` or `X(...)` expression, if it is a plain or dotted name. */
3
3
  export declare function calleeName(node: ts.CallExpression | ts.NewExpression): string | undefined;
4
4
  /** The classes whose props hold Alertmanager credentials. */
@@ -1 +1 @@
1
- {"version":3,"file":"prom-ast.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/prom-ast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,sGAAsG;AACtG,wBAAgB,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,GAAG,EAAE,CAAC,aAAa,GAAG,MAAM,GAAG,SAAS,CAKzF;AAED,6DAA6D;AAC7D,eAAO,MAAM,gBAAgB,QAAsC,CAAC;AAEpE,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,wBAAwB,GAAG,MAAM,GAAG,SAAS,CAIlF;AAED,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,GAAG,MAAM,GAAG,SAAS,CAGnE;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC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E,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAcnG"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prometheus",
3
- "version": "0.124.11",
3
+ "version": "0.124.13",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Prometheus",
6
6
  "intrinsics": [],
@@ -1,4 +1,4 @@
1
- import * as ts from "typescript";
1
+ import { ts } from "@intentius/chant/lint/typescript";
2
2
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
3
3
  import { SLACK_APP_URL } from "../../validate-integrations";
4
4
  import { calleeName, constInitializers, CREDENTIAL_CLASS, literalText, position, propertyName, resolveConst } from "./prom-ast";
@@ -1,4 +1,4 @@
1
- import * as ts from "typescript";
1
+ import { ts } from "@intentius/chant/lint/typescript";
2
2
 
3
3
  /** The constructor name of a `new X(...)` or `X(...)` expression, if it is a plain or dotted name. */
4
4
  export function calleeName(node: ts.CallExpression | ts.NewExpression): string | undefined {
@@ -1,4 +1,4 @@
1
- import * as ts from "typescript";
1
+ import { ts } from "@intentius/chant/lint/typescript";
2
2
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
3
3
  import { calleeName, constInitializers, literalText, position, propertyName, resolveConst } from "./prom-ast";
4
4
  import { checkPromql } from "../../promql";
@@ -1,4 +1,4 @@
1
- import * as ts from "typescript";
1
+ import { ts } from "@intentius/chant/lint/typescript";
2
2
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
3
3
  import { calleeName, literalText, position, propertyName } from "./prom-ast";
4
4
  import { sliExprProblem } from "../../composites/slo";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-prometheus",
3
- "version": "0.124.11",
3
+ "version": "0.124.13",
4
4
  "description": "Prometheus lexicon for chant — typed recording and alerting rule groups and Alertmanager routing, serialized to a rule file and alertmanager.yml",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -88,7 +88,6 @@
88
88
  "typescript": "^5.9.3"
89
89
  },
90
90
  "peerDependencies": {
91
- "@intentius/chant": "^0.124.11",
92
- "typescript": "^5.9.3"
91
+ "@intentius/chant": "^0.124.13"
93
92
  }
94
93
  }
@@ -1,4 +1,4 @@
1
- import * as ts from "typescript";
1
+ import { ts } from "@intentius/chant/lint/typescript";
2
2
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
3
3
  import { SLACK_APP_URL } from "../../validate-integrations";
4
4
  import { calleeName, constInitializers, CREDENTIAL_CLASS, literalText, position, propertyName, resolveConst } from "./prom-ast";
@@ -1,4 +1,4 @@
1
- import * as ts from "typescript";
1
+ import { ts } from "@intentius/chant/lint/typescript";
2
2
 
3
3
  /** The constructor name of a `new X(...)` or `X(...)` expression, if it is a plain or dotted name. */
4
4
  export function calleeName(node: ts.CallExpression | ts.NewExpression): string | undefined {
@@ -1,4 +1,4 @@
1
- import * as ts from "typescript";
1
+ import { ts } from "@intentius/chant/lint/typescript";
2
2
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
3
3
  import { calleeName, constInitializers, literalText, position, propertyName, resolveConst } from "./prom-ast";
4
4
  import { checkPromql } from "../../promql";
@@ -1,4 +1,4 @@
1
- import * as ts from "typescript";
1
+ import { ts } from "@intentius/chant/lint/typescript";
2
2
  import type { LintRule, LintDiagnostic, LintContext } from "@intentius/chant/lint/rule";
3
3
  import { calleeName, literalText, position, propertyName } from "./prom-ast";
4
4
  import { sliExprProblem } from "../../composites/slo";