@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.
- package/dist/integrity.json +6 -6
- package/dist/manifest.json +1 -1
- package/dist/meta.json +449 -93
- package/dist/rules/ext001.ts +4 -0
- package/dist/skills/chant-aws.md +1 -1
- package/dist/types/index.d.ts +406 -28
- package/package.json +20 -2
- package/src/codegen/docs.ts +3 -0
- package/src/composites/composites.test.ts +4 -2
- package/src/composites/lambda-sqs.ts +2 -2
- package/src/generated/index.d.ts +406 -28
- package/src/generated/index.ts +39 -6
- package/src/generated/lexicon-aws.json +449 -93
- package/src/lint/post-synth/ext001.ts +4 -0
- package/src/plugin.ts +87 -2
- package/src/skills/chant-eks.md +3 -0
package/dist/rules/ext001.ts
CHANGED
|
@@ -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
|
|
package/dist/skills/chant-aws.md
CHANGED
|
@@ -8,7 +8,7 @@ user-invocable: true
|
|
|
8
8
|
|
|
9
9
|
## How chant and CloudFormation relate
|
|
10
10
|
|
|
11
|
-
chant is a **synthesis
|
|
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
|