@intentius/chant-lexicon-k8s 0.124.100 → 0.124.102

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": "dae0b89999f855ec8f06624219838aa23417d022e5bf973e0986d1c43abaaff4",
4
+ "manifest.json": "defadd3c131d9628ded87c73ff2bd9e44e9d0e11a0161b1dd58fcf1044f97552",
5
5
  "meta.json": "c8a4cb1d36eba59a277083c8b888b150b025384e429b26db4203ec748d5e7f08",
6
6
  "types/index.d.ts": "35f6ca4fa77c28ecad363920b444f27ab72f0fe49e82eb20e42824c312ac689b",
7
7
  "rules/argo-appset-single-project.ts": "afa9f310753aa2d475f35012b13135b2dfaebed2a35d44edbe185ebc07673674",
@@ -80,5 +80,5 @@
80
80
  "skills/chant-k8s-argo.md": "24c9a85b78a2fc5c6657424baac9cc6d6caff6f47605b8146b2c0082133181cf",
81
81
  "skills/chant-k8s-flux.md": "9670efc2e9854bd14686b5adeb707396b9030a4dcaee6529b30abf56efe2c50c"
82
82
  },
83
- "composite": "fa9c1d271bde9202d7f8b6e5402100551055237430bae45e2b77452d733d03a1"
83
+ "composite": "82023fe89b405672ec9cd82b83aa75e42c78342e74a34c99c5bb999de2031a8b"
84
84
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k8s",
3
- "version": "0.124.100",
3
+ "version": "0.124.102",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "K8s",
6
6
  "intrinsics": [],
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The report of the workspace member read in this process (#3179).
3
+ * `graphMeta` receives only the entities, so the hook that read the member
4
+ * leaves its report here for the hook that publishes it; `chant graph` runs
5
+ * the two in order in one process.
6
+ *
7
+ * Kept apart from ./workspace-member.ts so the plugin can clear and read the
8
+ * report without loading the member reader, which a project with no member
9
+ * never needs (#5219).
10
+ */
11
+ import type { K8sMemberReport } from "./workspace-member.js";
12
+ export declare function setLastMemberReport(report: K8sMemberReport | undefined): void;
13
+ export declare function lastMemberReport(): K8sMemberReport | undefined;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The report of the workspace member read in this process (#3179).
3
+ * `graphMeta` receives only the entities, so the hook that read the member
4
+ * leaves its report here for the hook that publishes it; `chant graph` runs
5
+ * the two in order in one process.
6
+ *
7
+ * Kept apart from ./workspace-member.ts so the plugin can clear and read the
8
+ * report without loading the member reader, which a project with no member
9
+ * never needs (#5219).
10
+ */
11
+ let lastReport;
12
+ export function setLastMemberReport(report) {
13
+ lastReport = report;
14
+ }
15
+ export function lastMemberReport() {
16
+ return lastReport;
17
+ }
package/dist/plugin.js CHANGED
@@ -31,7 +31,7 @@ import { k8sReferenceCatalog } from "./reference-catalog.js";
31
31
  import { LABEL_OWNERSHIP_KEYS } from "@intentius/chant/ownership";
32
32
  import { k8sConfigSchema } from "./config-schema.js";
33
33
  import { renderKustomizeRoots } from "./kustomize/root.js";
34
- import { lastMemberReport, readK8sMember, setLastMemberReport } from "./workspace-member.js";
34
+ import { lastMemberReport, setLastMemberReport } from "./member-report.js";
35
35
  import { encryptedSecretBuildRoot } from "./sops/encrypted-secret-file.js";
36
36
  import { k8sProjectCodegen } from "./crd/project-codegen.js";
37
37
  import { includeBuildRoot } from "./include/resolve.js";
@@ -105,6 +105,7 @@ export const k8sPlugin = {
105
105
  setLastMemberReport(undefined);
106
106
  const member = ctx.config.k8s?.member;
107
107
  if (member) {
108
+ const { readK8sMember } = await import("./workspace-member.js");
108
109
  const read = await readK8sMember({ member });
109
110
  for (const [name, entity] of read.entities)
110
111
  entities.set(name, entity);
@@ -37,10 +37,4 @@ export declare function readK8sMember(opts: {
37
37
  warnings: string[];
38
38
  report: K8sMemberReport;
39
39
  }>;
40
- /**
41
- * The report of the read in this process. `graphMeta` receives only the
42
- * entities, so the hook that read the member leaves its report here for the
43
- * hook that publishes it; `chant graph` runs the two in order in one process.
44
- */
45
- export declare function setLastMemberReport(report: K8sMemberReport | undefined): void;
46
- export declare function lastMemberReport(): K8sMemberReport | undefined;
40
+ export { lastMemberReport, setLastMemberReport } from "./member-report.js";
@@ -207,15 +207,4 @@ export async function readK8sMember(opts) {
207
207
  report: { kind: member.kind, ...(rendered === undefined ? {} : { rendered }), ...(reason ? { reason } : {}), objects: entities.size },
208
208
  };
209
209
  }
210
- let lastReport;
211
- /**
212
- * The report of the read in this process. `graphMeta` receives only the
213
- * entities, so the hook that read the member leaves its report here for the
214
- * hook that publishes it; `chant graph` runs the two in order in one process.
215
- */
216
- export function setLastMemberReport(report) {
217
- lastReport = report;
218
- }
219
- export function lastMemberReport() {
220
- return lastReport;
221
- }
210
+ export { lastMemberReport, setLastMemberReport } from "./member-report.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-k8s",
3
- "version": "0.124.100",
3
+ "version": "0.124.102",
4
4
  "description": "Kubernetes lexicon for chant — declarative IaC in TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -73,20 +73,24 @@
73
73
  "build": "../../scripts/tsc7.sh -p tsconfig.build.json --sourceMap false && tsc-alias -p tsconfig.build.json && cp src/generated/index.d.ts dist/generated/index.d.d.ts && node ../../scripts/copy-lexicon-assets.mjs"
74
74
  },
75
75
  "dependencies": {
76
- "@intentius/chant-lexicon-otel": "^0.124.100",
77
- "@intentius/chant-lexicon-prometheus": "^0.124.100",
76
+ "@intentius/chant-lexicon-otel": "^0.124.102",
77
+ "@intentius/chant-lexicon-prometheus": "^0.124.101",
78
78
  "js-yaml": "^4.3.1",
79
79
  "@types/js-yaml": "^4.0.9"
80
80
  },
81
- "optionalDependencies": {
82
- "@intentius/chant-k8s-client": "^0.124.100"
83
- },
84
81
  "devDependencies": {
85
82
  "@intentius/chant": "*",
86
- "typescript": "^5.9.3"
83
+ "typescript": "^5.9.3",
84
+ "@intentius/chant-k8s-client": "^0.124.34"
87
85
  },
88
86
  "peerDependencies": {
89
87
  "zod": "^4.3.6",
90
- "@intentius/chant": "^0.124.100"
88
+ "@intentius/chant": "^0.124.102",
89
+ "@intentius/chant-k8s-client": "^0.124.101"
90
+ },
91
+ "peerDependenciesMeta": {
92
+ "@intentius/chant-k8s-client": {
93
+ "optional": true
94
+ }
91
95
  }
92
96
  }