@intentius/chant-lexicon-terraform 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.
@@ -37,7 +37,7 @@
37
37
  */
38
38
  import type { CapabilityGroupOutcome, CapabilityGroupPlan, GroupContext, GroupFallback, GroupMember, GroupRun, ReportedGroupRead } from "@intentius/chant/components/capability";
39
39
  import type { DriverComponent } from "@intentius/chant/components/driver";
40
- import { type TargetCloudIdentityLookup } from "@intentius/chant/workspace/ci-cloud-identity";
40
+ import type { TargetCloudIdentityLookup } from "@intentius/chant/workspace/ci-cloud-identity";
41
41
  import { type Composition } from "../compose.js";
42
42
  import type { TerraformConfig } from "../config.js";
43
43
  import { type BinaryExec } from "../state/exec.js";
@@ -41,7 +41,6 @@ import { dirname, isAbsolute, join, resolve } from "node:path";
41
41
  import { loadChantConfigUpward } from "@intentius/chant/config";
42
42
  import { wiringReferencesAt } from "@intentius/chant/components/driver";
43
43
  import { computePlanDigest } from "@intentius/chant/lifecycle/plan-digest";
44
- import { declaredTargetCloudIdentity } from "@intentius/chant/workspace/ci-cloud-identity";
45
44
  import { COMPOSE_STEP_KIND, composeOff, compositionIfEnabled, identityKey, rootHclReads } from "../compose.js";
46
45
  import { terraformBinary, terraformOutputs } from "../op/activities/terraform.js";
47
46
  import { runBinary } from "../state/exec.js";
@@ -269,7 +268,8 @@ export function composeGroup(deps = {}) {
269
268
  const envOf = () => deps.env ?? process.env;
270
269
  const log = deps.log ?? ((line) => console.error(line));
271
270
  const readOutputs = deps.outputs ?? ((root) => terraformOutputs({ root }));
272
- const identities = deps.identity ?? declaredTargetCloudIdentity;
271
+ // #5219: the workspace reader loads when a composed group runs, not when the plugin does.
272
+ const identities = deps.identity ?? (async (root, env) => (await import("@intentius/chant/workspace/ci-cloud-identity")).declaredTargetCloudIdentity(root, env));
273
273
  /** The composition of `members` as `groupFallback` judges it, with each member's identity. */
274
274
  async function compositionOf(ctx, p, members) {
275
275
  const lookup = await identities(p.projectRoot, ctx.env);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "3d8e47d2e5c414d5aa30674a47aa6e3e3e99081c9c133eef6118bff94fe20de9",
4
+ "manifest.json": "39a2b1c6acb49f2d3a932682b84629bfe416cd4ea1cbf102518cc089620a18b9",
5
5
  "meta.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
6
6
  "types/index.d.ts": "022927e6a7b351cc4cf52d5f973f60ccd140e5810e17b32fb8868965aa1db161",
7
7
  "rules/plan-before-apply.ts": "7c10245b2c3335253b48ee7d8b075d89f43116bde20313a5d1031b343fef1282",
@@ -59,5 +59,5 @@
59
59
  "rules/tf047.ts": "bfa86f85c4c5efff297280fc2f15104d6319fa96dfc444a31829fb7353224092",
60
60
  "skills/chant-terraform.md": "53dd11c7b289652f92fdaf2c03766abda46d8964e31fe709e8b142ced4f19c50"
61
61
  },
62
- "composite": "b65a07e4125b171dcd5fdef7f789473654d65f1861cd702e6de9641ce1d240c0"
62
+ "composite": "7813cebfde4a31995e566cfd4c2d3cfc5c6838ac56a1889fc13c47b88d8c7096"
63
63
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terraform",
3
- "version": "0.124.100",
3
+ "version": "0.124.102",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Terraform"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-terraform",
3
- "version": "0.124.100",
3
+ "version": "0.124.102",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/",
@@ -92,7 +92,7 @@
92
92
  "access": "public"
93
93
  },
94
94
  "peerDependencies": {
95
- "@intentius/chant": "^0.124.100",
95
+ "@intentius/chant": "^0.124.102",
96
96
  "zod": "^4.3.6"
97
97
  },
98
98
  "description": "terraform lexicon for chant, existing Terraform root modules as declarable entities",