@intentius/chant-lexicon-cpln 0.57.0 → 0.59.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "222c013fc41975b587799f4a8a6a177d8106b55c9dfdbf5c5720e1a8f97cf1a9",
4
+ "manifest.json": "daf5cc53ac5be8aefccd37da3c7c6c05694be83320184149d249f29a02535366",
5
5
  "meta.json": "02d6ffd90dc3c6f67cd71fdbefcaabbaf7d406f9b1e184eba58f11eef74c2dcb",
6
6
  "types/index.d.ts": "1a5488dcdbb9291e49be14849654267996fc177c384da89e057036b7c947ebbb",
7
7
  "rules/cpl001-no-secret-literals.ts": "c79b537f78dbd26893bd801b3e5c5f30d7326c8c6816a6fd82fb885796f86c61",
@@ -31,5 +31,5 @@
31
31
  "skills/chant-cpln-workloads.md": "8353909ff18f244f4d4389e74b8d95b04359e97a46ddacb18d669d41d62b6080",
32
32
  "skills/chant-cpln-secrets.md": "8628c2286a7e8e14aa78224fe22ff266dc54b996f4fdb64002fa433213de13a0"
33
33
  },
34
- "composite": "6f4d53d1bb2661382d9cccc7a9968561b46a6c0112a5999dcb3db35e815538fa"
34
+ "composite": "c4763786628a81144e8fc3021a2ec3c02becc5d4e2e96b13c9c5ca07f63289af"
35
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"audit-catalog.d.ts","sourceRoot":"","sources":["../../src/lint/audit-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAa,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAsD1E,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CA8JrD,CAAC"}
1
+ {"version":3,"file":"audit-catalog.d.ts","sourceRoot":"","sources":["../../src/lint/audit-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAa,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAwD1E,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CA8JrD,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Prior art for these audit rules: the open-source tools whose checks cover the
3
+ * same condition, credited per rule. See packages/core/src/audit/prior-art.ts for
4
+ * the registry, the relation vocabulary, and why this is credit rather than
5
+ * authority. Kept by hand; the prior-art sweep (scripts/prior-art-sweep.ts) reports
6
+ * when a credited tool's index no longer lists a rule cited here.
7
+ */
8
+ import type { Lineage } from "@intentius/chant/audit/catalog";
9
+ export declare const cplnAuditLineage: Record<string, Lineage[]>;
10
+ //# sourceMappingURL=audit-lineage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-lineage.d.ts","sourceRoot":"","sources":["../../src/lint/audit-lineage.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CA+BtD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cpln",
3
- "version": "0.57.0",
3
+ "version": "0.59.0",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Cpln"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-cpln",
3
- "version": "0.57.0",
3
+ "version": "0.59.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/",
@@ -49,7 +49,7 @@
49
49
  "typescript": "^5.9.3"
50
50
  },
51
51
  "peerDependencies": {
52
- "@intentius/chant": "^0.57.0",
52
+ "@intentius/chant": "^0.59.0",
53
53
  "typescript": "^5.9.3"
54
54
  },
55
55
  "description": "Control Plane (cpln) lexicon for chant — declarative IaC in TypeScript",
@@ -16,6 +16,8 @@
16
16
  */
17
17
 
18
18
  import type { Authority, RuleMeta } from "@intentius/chant/audit/catalog";
19
+ import { cplnAuditLineage } from "./audit-lineage";
20
+ import { applyLineage } from "@intentius/chant/audit/catalog";
19
21
 
20
22
  // ── Authorities ────────────────────────────────────────────────────
21
23
 
@@ -228,3 +230,6 @@ export const cplnAuditCatalog: Record<string, RuleMeta> = {
228
230
  "Pick exactly one target scope, target a policy-targetable kind, and never set origin by hand.",
229
231
  ),
230
232
  };
233
+
234
+ // Prior art credits live beside the rules in ./audit-lineage.ts (see core audit/prior-art.ts).
235
+ applyLineage(cplnAuditCatalog, cplnAuditLineage);
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Prior art for these audit rules: the open-source tools whose checks cover the
3
+ * same condition, credited per rule. See packages/core/src/audit/prior-art.ts for
4
+ * the registry, the relation vocabulary, and why this is credit rather than
5
+ * authority. Kept by hand; the prior-art sweep (scripts/prior-art-sweep.ts) reports
6
+ * when a credited tool's index no longer lists a rule cited here.
7
+ */
8
+ import type { Lineage } from "@intentius/chant/audit/catalog";
9
+
10
+ export const cplnAuditLineage: Record<string, Lineage[]> = {
11
+ CPL020: [
12
+ { tool: "controlplane-docs", rule: "Workload types: serverless", url: "https://docs.controlplane.com/reference/workload/types", relation: "overlaps" },
13
+ ],
14
+ CPL021: [
15
+ { tool: "controlplane-docs", rule: "Workload types: cron", url: "https://docs.controlplane.com/reference/workload/types", relation: "overlaps" },
16
+ ],
17
+ CPL026: [
18
+ { tool: "controlplane-docs", rule: "Autoscaling: scale to zero", url: "https://docs.controlplane.com/reference/workload/autoscaling", relation: "overlaps" },
19
+ ],
20
+ CPL027: [
21
+ { tool: "controlplane-docs", rule: "Autoscaling: Capacity AI", url: "https://docs.controlplane.com/reference/workload/autoscaling", relation: "overlaps" },
22
+ ],
23
+ CPL028: [
24
+ { tool: "controlplane-docs", rule: "Volume set: performance classes / file system type", url: "https://docs.controlplane.com/reference/volumeset#performance-classes", relation: "overlaps" },
25
+ ],
26
+ CPL029: [
27
+ { tool: "controlplane-docs", rule: "Identity: GVC scope", url: "https://docs.controlplane.com/reference/identity", relation: "overlaps" },
28
+ ],
29
+ CPL030: [
30
+ { tool: "controlplane-docs", rule: "Domain: apex domain considerations", url: "https://docs.controlplane.com/reference/domain#apex-domain-considerations", relation: "overlaps" },
31
+ ],
32
+ CPL040: [
33
+ { tool: "controlplane-docs", rule: "Image: tags and digests", url: "https://docs.controlplane.com/reference/image#image-tags-and-digests", relation: "overlaps" },
34
+ ],
35
+ CPL041: [
36
+ { tool: "controlplane-docs", rule: "Image: reference formats", url: "https://docs.controlplane.com/reference/image#image-reference-formats", relation: "overlaps" },
37
+ ],
38
+ CPL042: [
39
+ { tool: "controlplane-docs", rule: "GVC locations", url: "https://docs.controlplane.com/reference/gvc#gvc-locations", relation: "overlaps" },
40
+ ],
41
+ };