@intentius/chant-lexicon-terraform 0.81.0 → 0.82.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/dist/integrity.json +2 -2
- package/dist/manifest.json +1 -1
- package/package.json +2 -2
- package/src/workspace-kinds.test.ts +9 -4
- package/workspace-kinds.json +24 -2
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "4a09e30ffacbe325bbb7b14acf27fdda47cc7b99b609973087ba964501f1a617",
|
|
5
5
|
"meta.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
|
|
6
6
|
"types/index.d.ts": "022927e6a7b351cc4cf52d5f973f60ccd140e5810e17b32fb8868965aa1db161",
|
|
7
7
|
"rules/plan-before-apply.ts": "31b1b3176799fd365b2583fe3947edd187c2a863e3dc0094ed9e91ece2464c99",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"rules/tf029.ts": "52e02b4921a64f3f928836896b8b80682400adb50bd7a0645f3fe2e8819433c2",
|
|
39
39
|
"skills/chant-terraform.md": "d9ca7b7c28aed0038ce775a3491150298492eed2858fd3651ed9bfca0e577ae8"
|
|
40
40
|
},
|
|
41
|
-
"composite": "
|
|
41
|
+
"composite": "9a613acab508e31de0831821fef49648752cf9f9696304def92c3b9dc1e322eb"
|
|
42
42
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-terraform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.82.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"src/",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@intentius/chant": "^0.
|
|
60
|
+
"@intentius/chant": "^0.82.0",
|
|
61
61
|
"typescript": "^5.9.3",
|
|
62
62
|
"zod": "^4.3.6"
|
|
63
63
|
},
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The terraform member
|
|
3
|
-
* (#2545).
|
|
4
|
-
* exported at `./workspace-kinds`; chant reads it without importing the
|
|
5
|
-
* lexicon.
|
|
2
|
+
* The terraform and choudoufu member kinds this lexicon supplies to a chant
|
|
3
|
+
* workspace (#2545). Both are data in `workspace-kinds.json` at the package
|
|
4
|
+
* root, exported at `./workspace-kinds`; chant reads it without importing the
|
|
5
|
+
* lexicon. A choudoufu estate is a Terraform root with an estate.chdf.hcl
|
|
6
|
+
* sidecar or a live block, which this lexicon's choudoufu mode reads.
|
|
6
7
|
*/
|
|
7
8
|
import { join } from "node:path";
|
|
8
9
|
import { describeWorkspaceKindConformance } from "@intentius/chant-test-utils";
|
|
@@ -19,5 +20,9 @@ describeWorkspaceKindConformance({
|
|
|
19
20
|
{ name: "a chant project beside its .tf files", kind: "terraform", files: { "main.tf": main, "chant.config.ts": "" }, claims: true },
|
|
20
21
|
{ name: "a directory whose modules sit one level down", kind: "terraform", files: { "modules/net/main.tf": main }, claims: false },
|
|
21
22
|
{ name: "variable and backend files alone", kind: "terraform", files: { "terraform.tfvars": "", "backend.tfbackend": "" }, claims: false },
|
|
23
|
+
// choudoufu (450) outranks terraform (400) on the same root.
|
|
24
|
+
{ name: "a root with the estate.chdf.hcl sidecar", kind: "choudoufu", files: { "main.tf": main, "estate.chdf.hcl": "" }, claims: true },
|
|
25
|
+
{ name: "a root with a live block", kind: "choudoufu", files: { "main.tf": main + '\nlive {\n name = "prod"\n}\n' }, claims: true },
|
|
26
|
+
{ name: "a stock root", kind: "choudoufu", files: { "main.tf": main }, claims: false },
|
|
22
27
|
],
|
|
23
28
|
});
|
package/workspace-kinds.json
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "Member kinds this lexicon supplies to a chant workspace (#2545). chant reads this file as data and never imports the lexicon.
|
|
2
|
+
"$comment": "Member kinds this lexicon supplies to a chant workspace (#2545). chant reads this file as data and never imports the lexicon. Both probes are behold's, narrowed to the member's own directory: a choudoufu estate is a Terraform root with an estate.chdf.hcl sidecar or a live block, and the lexicon's choudoufu mode (#2103) reads it, so the kind lives here.",
|
|
3
3
|
"schema": 1,
|
|
4
4
|
"kinds": [
|
|
5
5
|
{
|
|
6
6
|
"name": "terraform",
|
|
7
7
|
"description": "a Terraform root module, with a .tf file directly in its directory",
|
|
8
8
|
"precedence": 400,
|
|
9
|
-
"probe": {
|
|
9
|
+
"probe": {
|
|
10
|
+
"anyFile": [
|
|
11
|
+
"*.tf"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "choudoufu",
|
|
17
|
+
"description": "a choudoufu estate: a Terraform root with an estate.chdf.hcl sidecar or a live block in one of its .tf files",
|
|
18
|
+
"precedence": 450,
|
|
19
|
+
"probe": {
|
|
20
|
+
"anyFile": [
|
|
21
|
+
"estate.chdf.hcl"
|
|
22
|
+
],
|
|
23
|
+
"anyBlock": {
|
|
24
|
+
"in": [
|
|
25
|
+
"*.tf"
|
|
26
|
+
],
|
|
27
|
+
"blocks": [
|
|
28
|
+
"live"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
10
32
|
}
|
|
11
33
|
]
|
|
12
34
|
}
|