@intentius/chant-lexicon-gcp 0.13.1 → 0.15.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-gcp",
3
- "version": "0.13.1",
3
+ "version": "0.15.0",
4
4
  "description": "Google Cloud lexicon for chant — declarative IaC in TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -44,6 +44,11 @@
44
44
  "types": "./dist/detect.d.ts",
45
45
  "default": "./src/detect.ts"
46
46
  },
47
+ "./op/activities": {
48
+ "development": "./src/op/activities/index.ts",
49
+ "types": "./dist/op/activities/index.d.ts",
50
+ "default": "./src/op/activities/index.ts"
51
+ },
47
52
  "./lint/post-synth": {
48
53
  "development": "./src/lint/post-synth/index.ts",
49
54
  "types": "./dist/lint/post-synth/index.d.ts",
@@ -71,6 +76,6 @@
71
76
  "typescript": "^5.9.3"
72
77
  },
73
78
  "peerDependencies": {
74
- "@intentius/chant": "^0.13.1"
79
+ "@intentius/chant": "^0.15.0"
75
80
  }
76
81
  }
@@ -15,7 +15,7 @@
15
15
  import { exec } from "node:child_process";
16
16
  import { promisify } from "node:util";
17
17
  import type { ResourceMetadata } from "@intentius/chant/lexicon";
18
- import { hasOwnershipMarker, classifyOwnership } from "@intentius/chant/ownership";
18
+ import { hasOwnershipMarker, classifyOwnership, LABEL_OWNERSHIP_KEYS } from "@intentius/chant/ownership";
19
19
 
20
20
  const execAsync = promisify(exec);
21
21
 
@@ -101,7 +101,7 @@ export async function describeResources(options: {
101
101
  const { stdout } = await execAsync(cmd);
102
102
  const obj: KubectlResponse = JSON.parse(stdout);
103
103
  // owned filter: skip resources not carrying chant's marker label.
104
- if (options.owned && !hasOwnershipMarker(obj.metadata?.labels, "label")) {
104
+ if (options.owned && !hasOwnershipMarker(obj.metadata?.labels, LABEL_OWNERSHIP_KEYS)) {
105
105
  continue;
106
106
  }
107
107
  result[entityName] = {
@@ -109,7 +109,7 @@ export async function describeResources(options: {
109
109
  physicalId: obj.metadata?.uid,
110
110
  status: statusFromCC(obj),
111
111
  lastUpdated: obj.metadata?.creationTimestamp,
112
- ownership: classifyOwnership(obj.metadata?.labels, "label"),
112
+ ownership: classifyOwnership(obj.metadata?.labels, LABEL_OWNERSHIP_KEYS),
113
113
  attributes: pruneUndefined({
114
114
  namespace: obj.metadata?.namespace,
115
115
  labels: obj.metadata?.labels,