@intentius/chant-lexicon-k8s 0.83.0 → 0.85.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/composites/catalog.d.ts +3 -0
- package/dist/composites/catalog.d.ts.map +1 -0
- package/dist/integrity.json +2 -2
- package/dist/manifest.json +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/composites/catalog.test.ts +39 -0
- package/src/composites/catalog.ts +3889 -0
- package/src/plugin.ts +5 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/composites/catalog.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,eAAO,MAAM,gBAAgB,EAAE,cAAc,EA2yH5C,CAAC"}
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "8ba99955207578857af641292a9ffd6e3176880cb9bd095bc51fe206559dd2f0",
|
|
5
5
|
"meta.json": "8b999bc142f448b0b627ecdc9e2388bbe672c8a1f7aae5303135624cf2fe65e3",
|
|
6
6
|
"types/index.d.ts": "5f67de738adb455805e72600948940af9c664283785fb68c9fd8f5ea90d42cc3",
|
|
7
7
|
"rules/argo-appset-single-project.ts": "afa9f310753aa2d475f35012b13135b2dfaebed2a35d44edbe185ebc07673674",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"skills/chant-k8s-argo.md": "24c9a85b78a2fc5c6657424baac9cc6d6caff6f47605b8146b2c0082133181cf",
|
|
66
66
|
"skills/chant-k8s-flux.md": "9670efc2e9854bd14686b5adeb707396b9030a4dcaee6529b30abf56efe2c50c"
|
|
67
67
|
},
|
|
68
|
-
"composite": "
|
|
68
|
+
"composite": "b455e5f17c8032e1473d7a098bea2710092dd4597897eb6c3dbac77b7fa1a5b2"
|
|
69
69
|
}
|
package/dist/manifest.json
CHANGED
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAqC,MAAM,0BAA0B,CAAC;AA8BjG,eAAO,MAAM,SAAS,EAAE,aAkuBvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-k8s",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0",
|
|
4
4
|
"description": "Kubernetes lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@types/js-yaml": "^4.0.9"
|
|
78
78
|
},
|
|
79
79
|
"optionalDependencies": {
|
|
80
|
-
"@intentius/chant-k8s-client": "^0.
|
|
80
|
+
"@intentius/chant-k8s-client": "^0.85.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@intentius/chant": "*",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"zod": "^4.3.6",
|
|
88
|
-
"@intentius/chant": "^0.
|
|
88
|
+
"@intentius/chant": "^0.85.0",
|
|
89
89
|
"typescript": "^5.9.3"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The composite catalog matches what this lexicon exports (#2662).
|
|
3
|
+
*
|
|
4
|
+
* `catalog.ts` is generated by `npm run generate:composite-catalogs` and is
|
|
5
|
+
* what `chant serve mcp` lists. A composite added without regenerating it would
|
|
6
|
+
* be invisible to an agent asking what k8s offers; one renamed or removed
|
|
7
|
+
* would be offered and fail to import.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { describe, expect, test } from "vitest";
|
|
11
|
+
import { isCompositeDefinition } from "@intentius/chant";
|
|
12
|
+
import * as composites from "./index";
|
|
13
|
+
import { compositeCatalog } from "./catalog";
|
|
14
|
+
import { k8sPlugin } from "../plugin";
|
|
15
|
+
|
|
16
|
+
const exported = Object.entries(composites)
|
|
17
|
+
.filter(([, value]) => isCompositeDefinition(value))
|
|
18
|
+
.map(([name]) => name)
|
|
19
|
+
.sort();
|
|
20
|
+
const catalogued = compositeCatalog.map((entry) => entry.name).sort();
|
|
21
|
+
|
|
22
|
+
describe("the k8s composite catalog", () => {
|
|
23
|
+
test("every exported composite has an entry, and every entry names an exported composite", () => {
|
|
24
|
+
expect(exported.length).toBeGreaterThan(0);
|
|
25
|
+
expect(catalogued, "regenerate with `npm run generate:composite-catalogs -- k8s`").toEqual(exported);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test("every entry says what it is and what it bundles", () => {
|
|
29
|
+
for (const entry of compositeCatalog) {
|
|
30
|
+
expect(entry.lexicon, entry.name).toBe("k8s");
|
|
31
|
+
expect(entry.description.length, entry.name).toBeGreaterThan(0);
|
|
32
|
+
expect(entry.bundles.length, entry.name).toBeGreaterThan(0);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
test("the plugin contributes it", () => {
|
|
37
|
+
expect(k8sPlugin.composites?.()).toBe(compositeCatalog);
|
|
38
|
+
});
|
|
39
|
+
});
|