@intentius/chant-lexicon-aws 0.0.16 → 0.0.22

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.
@@ -73,6 +73,10 @@ function matchesCondition(condition: unknown, properties: Record<string, unknown
73
73
  if ("enum" in s && Array.isArray(s.enum)) {
74
74
  if (!s.enum.includes(properties[propName])) return false;
75
75
  }
76
+ if ("pattern" in s && typeof s.pattern === "string") {
77
+ const val = properties[propName];
78
+ if (typeof val !== "string" || !new RegExp(s.pattern).test(val)) return false;
79
+ }
76
80
  }
77
81
  }
78
82
 
@@ -8,7 +8,7 @@ user-invocable: true
8
8
 
9
9
  ## How chant and CloudFormation relate
10
10
 
11
- chant is a **synthesis-only** tool — it compiles TypeScript source files into CloudFormation JSON (or YAML). chant does NOT call AWS APIs. Your job as an agent is to bridge the two:
11
+ chant is a **synthesis compiler** — it compiles TypeScript source files into CloudFormation JSON (or YAML). `chant build` does not call AWS APIs; synthesis is pure and deterministic. The optional `chant state snapshot` command queries AWS APIs to capture deployment metadata (physical IDs, status, outputs) for observability. Your job as an agent is to bridge synthesis and deployment:
12
12
 
13
13
  - Use **chant** for: build, lint, diff (local template comparison)
14
14
  - Use **AWS CLI** for: validate-template, deploy, change sets, rollback, drift detection, and all stack operations