@intentius/chant-lexicon-github 0.6.0 → 0.8.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.
Files changed (232) hide show
  1. package/dist/codegen/docs-cli.d.ts +2 -0
  2. package/dist/codegen/docs-cli.d.ts.map +1 -0
  3. package/dist/codegen/docs.d.ts +10 -0
  4. package/dist/codegen/docs.d.ts.map +1 -0
  5. package/dist/codegen/generate-cli.d.ts +6 -0
  6. package/dist/codegen/generate-cli.d.ts.map +1 -0
  7. package/dist/codegen/generate-lexicon.d.ts +19 -0
  8. package/dist/codegen/generate-lexicon.d.ts.map +1 -0
  9. package/dist/codegen/generate-typescript.d.ts +11 -0
  10. package/dist/codegen/generate-typescript.d.ts.map +1 -0
  11. package/dist/codegen/generate.d.ts +15 -0
  12. package/dist/codegen/generate.d.ts.map +1 -0
  13. package/dist/codegen/naming.d.ts +13 -0
  14. package/dist/codegen/naming.d.ts.map +1 -0
  15. package/dist/codegen/package.d.ts +10 -0
  16. package/dist/codegen/package.d.ts.map +1 -0
  17. package/dist/codegen/parse.d.ts +56 -0
  18. package/dist/codegen/parse.d.ts.map +1 -0
  19. package/dist/codegen/patches.d.ts +21 -0
  20. package/dist/codegen/patches.d.ts.map +1 -0
  21. package/dist/composites/cache.d.ts +11 -0
  22. package/dist/composites/cache.d.ts.map +1 -0
  23. package/dist/composites/checkout.d.ts +14 -0
  24. package/dist/composites/checkout.d.ts.map +1 -0
  25. package/dist/composites/dependabot.d.ts +74 -0
  26. package/dist/composites/dependabot.d.ts.map +1 -0
  27. package/dist/composites/deploy-environment.d.ts +23 -0
  28. package/dist/composites/deploy-environment.d.ts.map +1 -0
  29. package/dist/composites/docker-build.d.ts +29 -0
  30. package/dist/composites/docker-build.d.ts.map +1 -0
  31. package/dist/composites/download-artifact.d.ts +11 -0
  32. package/dist/composites/download-artifact.d.ts.map +1 -0
  33. package/dist/composites/go-ci.d.ts +21 -0
  34. package/dist/composites/go-ci.d.ts.map +1 -0
  35. package/dist/composites/index.d.ts +29 -0
  36. package/dist/composites/index.d.ts.map +1 -0
  37. package/dist/composites/node-ci.d.ts +14 -0
  38. package/dist/composites/node-ci.d.ts.map +1 -0
  39. package/dist/composites/node-pipeline.d.ts +79 -0
  40. package/dist/composites/node-pipeline.d.ts.map +1 -0
  41. package/dist/composites/python-ci.d.ts +22 -0
  42. package/dist/composites/python-ci.d.ts.map +1 -0
  43. package/dist/composites/setup-go.d.ts +11 -0
  44. package/dist/composites/setup-go.d.ts.map +1 -0
  45. package/dist/composites/setup-node.d.ts +12 -0
  46. package/dist/composites/setup-node.d.ts.map +1 -0
  47. package/dist/composites/setup-python.d.ts +11 -0
  48. package/dist/composites/setup-python.d.ts.map +1 -0
  49. package/dist/composites/upload-artifact.d.ts +12 -0
  50. package/dist/composites/upload-artifact.d.ts.map +1 -0
  51. package/dist/coverage.d.ts +15 -0
  52. package/dist/coverage.d.ts.map +1 -0
  53. package/dist/expression.d.ts +107 -0
  54. package/dist/expression.d.ts.map +1 -0
  55. package/dist/generated/index.d.ts +24 -0
  56. package/dist/generated/index.d.ts.map +1 -0
  57. package/dist/generated/runtime.d.ts +5 -0
  58. package/dist/generated/runtime.d.ts.map +1 -0
  59. package/dist/import/generator.d.ts +19 -0
  60. package/dist/import/generator.d.ts.map +1 -0
  61. package/dist/import/parser.d.ts +13 -0
  62. package/dist/import/parser.d.ts.map +1 -0
  63. package/dist/index.d.ts +14 -0
  64. package/dist/index.d.ts.map +1 -0
  65. package/dist/integrity.json +2 -2
  66. package/dist/lint/post-synth/gha006.d.ts +8 -0
  67. package/dist/lint/post-synth/gha006.d.ts.map +1 -0
  68. package/dist/lint/post-synth/gha009.d.ts +8 -0
  69. package/dist/lint/post-synth/gha009.d.ts.map +1 -0
  70. package/dist/lint/post-synth/gha011.d.ts +8 -0
  71. package/dist/lint/post-synth/gha011.d.ts.map +1 -0
  72. package/dist/lint/post-synth/gha013.d.ts +9 -0
  73. package/dist/lint/post-synth/gha013.d.ts.map +1 -0
  74. package/dist/lint/post-synth/gha017.d.ts +8 -0
  75. package/dist/lint/post-synth/gha017.d.ts.map +1 -0
  76. package/dist/lint/post-synth/gha018.d.ts +9 -0
  77. package/dist/lint/post-synth/gha018.d.ts.map +1 -0
  78. package/dist/lint/post-synth/gha019.d.ts +9 -0
  79. package/dist/lint/post-synth/gha019.d.ts.map +1 -0
  80. package/dist/lint/post-synth/gha021.d.ts +9 -0
  81. package/dist/lint/post-synth/gha021.d.ts.map +1 -0
  82. package/dist/lint/post-synth/gha022.d.ts +9 -0
  83. package/dist/lint/post-synth/gha022.d.ts.map +1 -0
  84. package/dist/lint/post-synth/gha023.d.ts +9 -0
  85. package/dist/lint/post-synth/gha023.d.ts.map +1 -0
  86. package/dist/lint/post-synth/gha024.d.ts +9 -0
  87. package/dist/lint/post-synth/gha024.d.ts.map +1 -0
  88. package/dist/lint/post-synth/gha025.d.ts +9 -0
  89. package/dist/lint/post-synth/gha025.d.ts.map +1 -0
  90. package/dist/lint/post-synth/gha026.d.ts +10 -0
  91. package/dist/lint/post-synth/gha026.d.ts.map +1 -0
  92. package/dist/lint/post-synth/gha027.d.ts +10 -0
  93. package/dist/lint/post-synth/gha027.d.ts.map +1 -0
  94. package/dist/lint/post-synth/gha028.d.ts +9 -0
  95. package/dist/lint/post-synth/gha028.d.ts.map +1 -0
  96. package/dist/lint/post-synth/gha029.d.ts +25 -0
  97. package/dist/lint/post-synth/gha029.d.ts.map +1 -0
  98. package/dist/lint/post-synth/gha030.d.ts +10 -0
  99. package/dist/lint/post-synth/gha030.d.ts.map +1 -0
  100. package/dist/lint/post-synth/gha031.d.ts +15 -0
  101. package/dist/lint/post-synth/gha031.d.ts.map +1 -0
  102. package/dist/lint/post-synth/gha032.d.ts +10 -0
  103. package/dist/lint/post-synth/gha032.d.ts.map +1 -0
  104. package/dist/lint/post-synth/gha033.d.ts +10 -0
  105. package/dist/lint/post-synth/gha033.d.ts.map +1 -0
  106. package/dist/lint/post-synth/gha034.d.ts +12 -0
  107. package/dist/lint/post-synth/gha034.d.ts.map +1 -0
  108. package/dist/lint/post-synth/gha035.d.ts +13 -0
  109. package/dist/lint/post-synth/gha035.d.ts.map +1 -0
  110. package/dist/lint/post-synth/gha036.d.ts +12 -0
  111. package/dist/lint/post-synth/gha036.d.ts.map +1 -0
  112. package/dist/lint/post-synth/gha037.d.ts +12 -0
  113. package/dist/lint/post-synth/gha037.d.ts.map +1 -0
  114. package/dist/lint/post-synth/gha038.d.ts +11 -0
  115. package/dist/lint/post-synth/gha038.d.ts.map +1 -0
  116. package/dist/lint/post-synth/gha039.d.ts +12 -0
  117. package/dist/lint/post-synth/gha039.d.ts.map +1 -0
  118. package/dist/lint/post-synth/gha040.d.ts +11 -0
  119. package/dist/lint/post-synth/gha040.d.ts.map +1 -0
  120. package/dist/lint/post-synth/gha041.d.ts +10 -0
  121. package/dist/lint/post-synth/gha041.d.ts.map +1 -0
  122. package/dist/lint/post-synth/gha042.d.ts +10 -0
  123. package/dist/lint/post-synth/gha042.d.ts.map +1 -0
  124. package/dist/lint/post-synth/gha043.d.ts +12 -0
  125. package/dist/lint/post-synth/gha043.d.ts.map +1 -0
  126. package/dist/lint/post-synth/gha044.d.ts +10 -0
  127. package/dist/lint/post-synth/gha044.d.ts.map +1 -0
  128. package/dist/lint/post-synth/gha045.d.ts +12 -0
  129. package/dist/lint/post-synth/gha045.d.ts.map +1 -0
  130. package/dist/lint/post-synth/gha046.d.ts +13 -0
  131. package/dist/lint/post-synth/gha046.d.ts.map +1 -0
  132. package/dist/lint/post-synth/gha047.d.ts +12 -0
  133. package/dist/lint/post-synth/gha047.d.ts.map +1 -0
  134. package/dist/lint/post-synth/gha048.d.ts +12 -0
  135. package/dist/lint/post-synth/gha048.d.ts.map +1 -0
  136. package/dist/lint/post-synth/gha049.d.ts +12 -0
  137. package/dist/lint/post-synth/gha049.d.ts.map +1 -0
  138. package/dist/lint/post-synth/gha050.d.ts +12 -0
  139. package/dist/lint/post-synth/gha050.d.ts.map +1 -0
  140. package/dist/lint/post-synth/gha051.d.ts +12 -0
  141. package/dist/lint/post-synth/gha051.d.ts.map +1 -0
  142. package/dist/lint/post-synth/gha052.d.ts +11 -0
  143. package/dist/lint/post-synth/gha052.d.ts.map +1 -0
  144. package/dist/lint/post-synth/gha053.d.ts +11 -0
  145. package/dist/lint/post-synth/gha053.d.ts.map +1 -0
  146. package/dist/lint/post-synth/gha054.d.ts +11 -0
  147. package/dist/lint/post-synth/gha054.d.ts.map +1 -0
  148. package/dist/lint/post-synth/gha055.d.ts +11 -0
  149. package/dist/lint/post-synth/gha055.d.ts.map +1 -0
  150. package/dist/lint/post-synth/gha056.d.ts +10 -0
  151. package/dist/lint/post-synth/gha056.d.ts.map +1 -0
  152. package/dist/lint/post-synth/gha057.d.ts +12 -0
  153. package/dist/lint/post-synth/gha057.d.ts.map +1 -0
  154. package/dist/lint/post-synth/gha058.d.ts +12 -0
  155. package/dist/lint/post-synth/gha058.d.ts.map +1 -0
  156. package/dist/lint/post-synth/index.d.ts +3 -0
  157. package/dist/lint/post-synth/index.d.ts.map +1 -0
  158. package/dist/lint/post-synth/yaml-helpers.d.ts +143 -0
  159. package/dist/lint/post-synth/yaml-helpers.d.ts.map +1 -0
  160. package/dist/lint/rules/data/deprecated-versions.d.ts +8 -0
  161. package/dist/lint/rules/data/deprecated-versions.d.ts.map +1 -0
  162. package/dist/lint/rules/data/flagged-actions.d.ts +19 -0
  163. package/dist/lint/rules/data/flagged-actions.d.ts.map +1 -0
  164. package/dist/lint/rules/data/known-action-slugs.d.ts +13 -0
  165. package/dist/lint/rules/data/known-action-slugs.d.ts.map +1 -0
  166. package/dist/lint/rules/data/known-actions.d.ts +8 -0
  167. package/dist/lint/rules/data/known-actions.d.ts.map +1 -0
  168. package/dist/lint/rules/data/preinstalled-tools.d.ts +11 -0
  169. package/dist/lint/rules/data/preinstalled-tools.d.ts.map +1 -0
  170. package/dist/lint/rules/data/recommended-inputs.d.ts +6 -0
  171. package/dist/lint/rules/data/recommended-inputs.d.ts.map +1 -0
  172. package/dist/lint/rules/data/risky-features.d.ts +18 -0
  173. package/dist/lint/rules/data/risky-features.d.ts.map +1 -0
  174. package/dist/lint/rules/data/secret-patterns.d.ts +8 -0
  175. package/dist/lint/rules/data/secret-patterns.d.ts.map +1 -0
  176. package/dist/lint/rules/data/trusted-action-owners.d.ts +13 -0
  177. package/dist/lint/rules/data/trusted-action-owners.d.ts.map +1 -0
  178. package/dist/lint/rules/data/untrusted-contexts.d.ts +19 -0
  179. package/dist/lint/rules/data/untrusted-contexts.d.ts.map +1 -0
  180. package/dist/lint/rules/deprecated-action-version.d.ts +8 -0
  181. package/dist/lint/rules/deprecated-action-version.d.ts.map +1 -0
  182. package/dist/lint/rules/detect-secrets.d.ts +9 -0
  183. package/dist/lint/rules/detect-secrets.d.ts.map +1 -0
  184. package/dist/lint/rules/extract-inline-structs.d.ts +8 -0
  185. package/dist/lint/rules/extract-inline-structs.d.ts.map +1 -0
  186. package/dist/lint/rules/file-job-limit.d.ts +8 -0
  187. package/dist/lint/rules/file-job-limit.d.ts.map +1 -0
  188. package/dist/lint/rules/index.d.ts +17 -0
  189. package/dist/lint/rules/index.d.ts.map +1 -0
  190. package/dist/lint/rules/job-timeout.d.ts +8 -0
  191. package/dist/lint/rules/job-timeout.d.ts.map +1 -0
  192. package/dist/lint/rules/missing-recommended-inputs.d.ts +8 -0
  193. package/dist/lint/rules/missing-recommended-inputs.d.ts.map +1 -0
  194. package/dist/lint/rules/no-hardcoded-secrets.d.ts +8 -0
  195. package/dist/lint/rules/no-hardcoded-secrets.d.ts.map +1 -0
  196. package/dist/lint/rules/no-raw-expressions.d.ts +8 -0
  197. package/dist/lint/rules/no-raw-expressions.d.ts.map +1 -0
  198. package/dist/lint/rules/suggest-cache.d.ts +8 -0
  199. package/dist/lint/rules/suggest-cache.d.ts.map +1 -0
  200. package/dist/lint/rules/use-condition-builders.d.ts +9 -0
  201. package/dist/lint/rules/use-condition-builders.d.ts.map +1 -0
  202. package/dist/lint/rules/use-matrix-builder.d.ts +9 -0
  203. package/dist/lint/rules/use-matrix-builder.d.ts.map +1 -0
  204. package/dist/lint/rules/use-typed-actions.d.ts +8 -0
  205. package/dist/lint/rules/use-typed-actions.d.ts.map +1 -0
  206. package/dist/lint/rules/validate-concurrency.d.ts +8 -0
  207. package/dist/lint/rules/validate-concurrency.d.ts.map +1 -0
  208. package/dist/lsp/completions.d.ts +6 -0
  209. package/dist/lsp/completions.d.ts.map +1 -0
  210. package/dist/lsp/hover.d.ts +6 -0
  211. package/dist/lsp/hover.d.ts.map +1 -0
  212. package/dist/manifest.json +1 -1
  213. package/dist/mcp/context-tools.d.ts +19 -0
  214. package/dist/mcp/context-tools.d.ts.map +1 -0
  215. package/dist/package-cli.d.ts +3 -0
  216. package/dist/package-cli.d.ts.map +1 -0
  217. package/dist/plugin.d.ts +9 -0
  218. package/dist/plugin.d.ts.map +1 -0
  219. package/dist/serializer.d.ts +13 -0
  220. package/dist/serializer.d.ts.map +1 -0
  221. package/dist/spec/fetch.d.ts +26 -0
  222. package/dist/spec/fetch.d.ts.map +1 -0
  223. package/dist/validate-cli.d.ts +3 -0
  224. package/dist/validate-cli.d.ts.map +1 -0
  225. package/dist/validate.d.ts +12 -0
  226. package/dist/validate.d.ts.map +1 -0
  227. package/dist/variables.d.ts +42 -0
  228. package/dist/variables.d.ts.map +1 -0
  229. package/package.json +19 -5
  230. package/src/lint/post-synth/index.ts +95 -0
  231. package/src/mcp/context-tools.ts +2 -5
  232. package/src/plugin.ts +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-github",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "GitHub Actions lexicon for chant — declarative IaC in TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -29,8 +29,21 @@
29
29
  "access": "public"
30
30
  },
31
31
  "exports": {
32
- ".": "./src/index.ts",
33
- "./*": "./src/*.ts",
32
+ ".": {
33
+ "development": "./src/index.ts",
34
+ "types": "./dist/index.d.ts",
35
+ "default": "./src/index.ts"
36
+ },
37
+ "./*": {
38
+ "development": "./src/*.ts",
39
+ "types": "./dist/*.d.ts",
40
+ "default": "./src/*.ts"
41
+ },
42
+ "./lint/post-synth": {
43
+ "development": "./src/lint/post-synth/index.ts",
44
+ "types": "./dist/lint/post-synth/index.d.ts",
45
+ "default": "./src/lint/post-synth/index.ts"
46
+ },
34
47
  "./manifest": "./dist/manifest.json",
35
48
  "./meta": "./dist/meta.json",
36
49
  "./types": "./dist/types/index.d.ts"
@@ -40,13 +53,14 @@
40
53
  "bundle": "tsx src/package-cli.ts",
41
54
  "validate": "tsx src/validate-cli.ts",
42
55
  "docs": "tsx src/codegen/docs-cli.ts",
43
- "prepack": "npm run generate && npm run bundle && npm run validate"
56
+ "prepack": "npm run generate && npm run bundle && npm run validate && npm run build",
57
+ "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && find dist -type f \\( -name \"*.js\" -o -name \"*.js.map\" \\) -delete"
44
58
  },
45
59
  "devDependencies": {
46
60
  "@intentius/chant": "*",
47
61
  "typescript": "^5.9.3"
48
62
  },
49
63
  "peerDependencies": {
50
- "@intentius/chant": "^0.1.0"
64
+ "@intentius/chant": "^0.8.0"
51
65
  }
52
66
  }
@@ -0,0 +1,95 @@
1
+ // Code generated by chant generate. DO NOT EDIT.
2
+ import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
3
+ import { gha006 } from "./gha006";
4
+ import { gha009 } from "./gha009";
5
+ import { gha011 } from "./gha011";
6
+ import { gha013 } from "./gha013";
7
+ import { gha017 } from "./gha017";
8
+ import { gha018 } from "./gha018";
9
+ import { gha019 } from "./gha019";
10
+ import { gha021 } from "./gha021";
11
+ import { gha022 } from "./gha022";
12
+ import { gha023 } from "./gha023";
13
+ import { gha024 } from "./gha024";
14
+ import { gha025 } from "./gha025";
15
+ import { gha026 } from "./gha026";
16
+ import { gha027 } from "./gha027";
17
+ import { gha028 } from "./gha028";
18
+ import { gha029 } from "./gha029";
19
+ import { gha030 } from "./gha030";
20
+ import { gha031 } from "./gha031";
21
+ import { gha032 } from "./gha032";
22
+ import { gha033 } from "./gha033";
23
+ import { gha034 } from "./gha034";
24
+ import { gha035 } from "./gha035";
25
+ import { gha036 } from "./gha036";
26
+ import { gha037 } from "./gha037";
27
+ import { gha038 } from "./gha038";
28
+ import { gha039 } from "./gha039";
29
+ import { gha040 } from "./gha040";
30
+ import { gha041 } from "./gha041";
31
+ import { gha042 } from "./gha042";
32
+ import { gha043 } from "./gha043";
33
+ import { gha044 } from "./gha044";
34
+ import { gha045 } from "./gha045";
35
+ import { gha046 } from "./gha046";
36
+ import { gha047 } from "./gha047";
37
+ import { gha048 } from "./gha048";
38
+ import { gha049 } from "./gha049";
39
+ import { gha050 } from "./gha050";
40
+ import { gha051 } from "./gha051";
41
+ import { gha052 } from "./gha052";
42
+ import { gha053 } from "./gha053";
43
+ import { gha054 } from "./gha054";
44
+ import { gha055 } from "./gha055";
45
+ import { gha056 } from "./gha056";
46
+ import { gha057 } from "./gha057";
47
+ import { gha058 } from "./gha058";
48
+
49
+ export const postSynthChecks: PostSynthCheck[] = [
50
+ gha006,
51
+ gha009,
52
+ gha011,
53
+ gha013,
54
+ gha017,
55
+ gha018,
56
+ gha019,
57
+ gha021,
58
+ gha022,
59
+ gha023,
60
+ gha024,
61
+ gha025,
62
+ gha026,
63
+ gha027,
64
+ gha028,
65
+ gha029,
66
+ gha030,
67
+ gha031,
68
+ gha032,
69
+ gha033,
70
+ gha034,
71
+ gha035,
72
+ gha036,
73
+ gha037,
74
+ gha038,
75
+ gha039,
76
+ gha040,
77
+ gha041,
78
+ gha042,
79
+ gha043,
80
+ gha044,
81
+ gha045,
82
+ gha046,
83
+ gha047,
84
+ gha048,
85
+ gha049,
86
+ gha050,
87
+ gha051,
88
+ gha052,
89
+ gha053,
90
+ gha054,
91
+ gha055,
92
+ gha056,
93
+ gha057,
94
+ gha058,
95
+ ];
@@ -12,10 +12,8 @@
12
12
 
13
13
  import { build, type BuildResult } from "@intentius/chant/build";
14
14
  import { runPostSynthChecks, getPrimaryOutput } from "@intentius/chant/lint/post-synth";
15
- import { discoverPostSynthChecks } from "@intentius/chant/lint/discover";
15
+ import { postSynthChecks } from "../lint/post-synth";
16
16
  import type { McpToolContribution } from "@intentius/chant/mcp/types";
17
- import { dirname, join } from "path";
18
- import { fileURLToPath } from "url";
19
17
  import { githubSerializer } from "../serializer";
20
18
  import {
21
19
  extractJobs,
@@ -34,8 +32,7 @@ async function buildGithub(path: string): Promise<{ yaml: string; result: BuildR
34
32
 
35
33
  /** Discover the lexicon's post-synth checks without depending on the plugin. */
36
34
  function githubPostSynthChecks() {
37
- const dir = join(dirname(fileURLToPath(import.meta.url)), "..", "lint", "post-synth");
38
- return discoverPostSynthChecks(dir, import.meta.url);
35
+ return postSynthChecks;
39
36
  }
40
37
 
41
38
  /** Is a `uses:` ref pinned to a full commit SHA (the only immutable form)? */
package/src/plugin.ts CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  import type { LexiconPlugin, IntrinsicDef, InitTemplateSet } from "@intentius/chant/lexicon";
9
9
  import type { LintRule } from "@intentius/chant/lint/rule";
10
- import { discoverPostSynthChecks } from "@intentius/chant/lint/discover";
10
+ import { postSynthChecks as postSynthCheckList } from "./lint/post-synth";
11
11
  import { createSkillsLoader, createDiffTool, createCatalogResource } from "@intentius/chant/lexicon-plugin-helpers";
12
12
  import { join, dirname } from "path";
13
13
  import { fileURLToPath } from "url";
@@ -54,8 +54,7 @@ export const githubPlugin: LexiconPlugin = {
54
54
  },
55
55
 
56
56
  postSynthChecks() {
57
- const postSynthDir = join(dirname(fileURLToPath(import.meta.url)), "lint", "post-synth");
58
- return discoverPostSynthChecks(postSynthDir, import.meta.url);
57
+ return postSynthCheckList;
59
58
  },
60
59
 
61
60
  intrinsics(): IntrinsicDef[] {