@greyworld/code-check-core 1.0.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 (309) hide show
  1. package/dist/facade/code-checker.d.ts +14 -0
  2. package/dist/facade/code-checker.d.ts.map +1 -0
  3. package/dist/facade/code-checker.js +63 -0
  4. package/dist/facade/code-checker.js.map +1 -0
  5. package/dist/facade/index.d.ts +3 -0
  6. package/dist/facade/index.d.ts.map +1 -0
  7. package/dist/facade/index.js +6 -0
  8. package/dist/facade/index.js.map +1 -0
  9. package/dist/facade/types.d.ts +24 -0
  10. package/dist/facade/types.d.ts.map +1 -0
  11. package/dist/facade/types.js +3 -0
  12. package/dist/facade/types.js.map +1 -0
  13. package/dist/index.d.ts +3 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +7 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/tools/ast-parser/go/index.d.ts +3 -0
  18. package/dist/tools/ast-parser/go/index.d.ts.map +1 -0
  19. package/dist/tools/ast-parser/go/index.js +6 -0
  20. package/dist/tools/ast-parser/go/index.js.map +1 -0
  21. package/dist/tools/ast-parser/go/parser.d.ts +56 -0
  22. package/dist/tools/ast-parser/go/parser.d.ts.map +1 -0
  23. package/dist/tools/ast-parser/go/parser.js +147 -0
  24. package/dist/tools/ast-parser/go/parser.js.map +1 -0
  25. package/dist/tools/ast-parser/go/schema-extractor.d.ts +103 -0
  26. package/dist/tools/ast-parser/go/schema-extractor.d.ts.map +1 -0
  27. package/dist/tools/ast-parser/go/schema-extractor.js +487 -0
  28. package/dist/tools/ast-parser/go/schema-extractor.js.map +1 -0
  29. package/dist/tools/ast-parser/go/semantic-normalizer.d.ts +51 -0
  30. package/dist/tools/ast-parser/go/semantic-normalizer.d.ts.map +1 -0
  31. package/dist/tools/ast-parser/go/semantic-normalizer.js +263 -0
  32. package/dist/tools/ast-parser/go/semantic-normalizer.js.map +1 -0
  33. package/dist/tools/ast-parser/go/types.d.ts +131 -0
  34. package/dist/tools/ast-parser/go/types.d.ts.map +1 -0
  35. package/dist/tools/ast-parser/go/types.js +3 -0
  36. package/dist/tools/ast-parser/go/types.js.map +1 -0
  37. package/dist/tools/ast-parser/markdown/index.d.ts +28 -0
  38. package/dist/tools/ast-parser/markdown/index.d.ts.map +1 -0
  39. package/dist/tools/ast-parser/markdown/index.js +31 -0
  40. package/dist/tools/ast-parser/markdown/index.js.map +1 -0
  41. package/dist/tools/ast-parser/markdown/parser.d.ts +271 -0
  42. package/dist/tools/ast-parser/markdown/parser.d.ts.map +1 -0
  43. package/dist/tools/ast-parser/markdown/parser.js +613 -0
  44. package/dist/tools/ast-parser/markdown/parser.js.map +1 -0
  45. package/dist/tools/ast-parser/markdown/types.d.ts +131 -0
  46. package/dist/tools/ast-parser/markdown/types.d.ts.map +1 -0
  47. package/dist/tools/ast-parser/markdown/types.js +3 -0
  48. package/dist/tools/ast-parser/markdown/types.js.map +1 -0
  49. package/dist/tools/env/index.d.ts +2 -0
  50. package/dist/tools/env/index.d.ts.map +1 -0
  51. package/dist/tools/env/index.js +6 -0
  52. package/dist/tools/env/index.js.map +1 -0
  53. package/dist/tools/env/load-env.d.ts +9 -0
  54. package/dist/tools/env/load-env.d.ts.map +1 -0
  55. package/dist/tools/env/load-env.js +39 -0
  56. package/dist/tools/env/load-env.js.map +1 -0
  57. package/dist/tools/line-pattern/index.d.ts +15 -0
  58. package/dist/tools/line-pattern/index.d.ts.map +1 -0
  59. package/dist/tools/line-pattern/index.js +25 -0
  60. package/dist/tools/line-pattern/index.js.map +1 -0
  61. package/dist/tools/line-pattern/line-pattern.d.ts +53 -0
  62. package/dist/tools/line-pattern/line-pattern.d.ts.map +1 -0
  63. package/dist/tools/line-pattern/line-pattern.js +88 -0
  64. package/dist/tools/line-pattern/line-pattern.js.map +1 -0
  65. package/dist/tools/line-pattern/segment.d.ts +24 -0
  66. package/dist/tools/line-pattern/segment.d.ts.map +1 -0
  67. package/dist/tools/line-pattern/segment.js +15 -0
  68. package/dist/tools/line-pattern/segment.js.map +1 -0
  69. package/dist/tools/line-pattern/segments.d.ts +43 -0
  70. package/dist/tools/line-pattern/segments.d.ts.map +1 -0
  71. package/dist/tools/line-pattern/segments.js +91 -0
  72. package/dist/tools/line-pattern/segments.js.map +1 -0
  73. package/dist/tools/llm/description-intent/format-spec.d.ts +3 -0
  74. package/dist/tools/llm/description-intent/format-spec.d.ts.map +1 -0
  75. package/dist/tools/llm/description-intent/format-spec.js +167 -0
  76. package/dist/tools/llm/description-intent/format-spec.js.map +1 -0
  77. package/dist/tools/llm/description-intent/index.d.ts +7 -0
  78. package/dist/tools/llm/description-intent/index.d.ts.map +1 -0
  79. package/dist/tools/llm/description-intent/index.js +15 -0
  80. package/dist/tools/llm/description-intent/index.js.map +1 -0
  81. package/dist/tools/llm/description-intent/intent-detector.d.ts +8 -0
  82. package/dist/tools/llm/description-intent/intent-detector.d.ts.map +1 -0
  83. package/dist/tools/llm/description-intent/intent-detector.js +103 -0
  84. package/dist/tools/llm/description-intent/intent-detector.js.map +1 -0
  85. package/dist/tools/llm/description-intent/normalizer.d.ts +12 -0
  86. package/dist/tools/llm/description-intent/normalizer.d.ts.map +1 -0
  87. package/dist/tools/llm/description-intent/normalizer.js +73 -0
  88. package/dist/tools/llm/description-intent/normalizer.js.map +1 -0
  89. package/dist/tools/llm/description-intent/slot-extractor.d.ts +3 -0
  90. package/dist/tools/llm/description-intent/slot-extractor.d.ts.map +1 -0
  91. package/dist/tools/llm/description-intent/slot-extractor.js +66 -0
  92. package/dist/tools/llm/description-intent/slot-extractor.js.map +1 -0
  93. package/dist/tools/llm/description-intent/types.d.ts +28 -0
  94. package/dist/tools/llm/description-intent/types.d.ts.map +1 -0
  95. package/dist/tools/llm/description-intent/types.js +19 -0
  96. package/dist/tools/llm/description-intent/types.js.map +1 -0
  97. package/dist/tools/llm/index.d.ts +16 -0
  98. package/dist/tools/llm/index.d.ts.map +1 -0
  99. package/dist/tools/llm/index.js +26 -0
  100. package/dist/tools/llm/index.js.map +1 -0
  101. package/dist/tools/llm/model.d.ts +3 -0
  102. package/dist/tools/llm/model.d.ts.map +1 -0
  103. package/dist/tools/llm/model.js +18 -0
  104. package/dist/tools/llm/model.js.map +1 -0
  105. package/dist/tools/llm/structured-caller.d.ts +86 -0
  106. package/dist/tools/llm/structured-caller.d.ts.map +1 -0
  107. package/dist/tools/llm/structured-caller.js +181 -0
  108. package/dist/tools/llm/structured-caller.js.map +1 -0
  109. package/dist/tools/node-pattern/index.d.ts +17 -0
  110. package/dist/tools/node-pattern/index.d.ts.map +1 -0
  111. package/dist/tools/node-pattern/index.js +36 -0
  112. package/dist/tools/node-pattern/index.js.map +1 -0
  113. package/dist/tools/node-pattern/matchers.d.ts +61 -0
  114. package/dist/tools/node-pattern/matchers.d.ts.map +1 -0
  115. package/dist/tools/node-pattern/matchers.js +154 -0
  116. package/dist/tools/node-pattern/matchers.js.map +1 -0
  117. package/dist/tools/node-pattern/node-matcher.d.ts +69 -0
  118. package/dist/tools/node-pattern/node-matcher.d.ts.map +1 -0
  119. package/dist/tools/node-pattern/node-matcher.js +122 -0
  120. package/dist/tools/node-pattern/node-matcher.js.map +1 -0
  121. package/dist/tools/node-pattern/node-pattern.d.ts +65 -0
  122. package/dist/tools/node-pattern/node-pattern.d.ts.map +1 -0
  123. package/dist/tools/node-pattern/node-pattern.js +129 -0
  124. package/dist/tools/node-pattern/node-pattern.js.map +1 -0
  125. package/dist/tools/section-check/index.d.ts +4 -0
  126. package/dist/tools/section-check/index.d.ts.map +1 -0
  127. package/dist/tools/section-check/index.js +10 -0
  128. package/dist/tools/section-check/index.js.map +1 -0
  129. package/dist/tools/section-check/section-check.d.ts +46 -0
  130. package/dist/tools/section-check/section-check.d.ts.map +1 -0
  131. package/dist/tools/section-check/section-check.js +264 -0
  132. package/dist/tools/section-check/section-check.js.map +1 -0
  133. package/dist/tools/section-check/types.d.ts +35 -0
  134. package/dist/tools/section-check/types.d.ts.map +1 -0
  135. package/dist/tools/section-check/types.js +23 -0
  136. package/dist/tools/section-check/types.js.map +1 -0
  137. package/dist/tools/text-grep/index.d.ts +10 -0
  138. package/dist/tools/text-grep/index.d.ts.map +1 -0
  139. package/dist/tools/text-grep/index.js +13 -0
  140. package/dist/tools/text-grep/index.js.map +1 -0
  141. package/dist/tools/text-grep/regex-grep.d.ts +92 -0
  142. package/dist/tools/text-grep/regex-grep.d.ts.map +1 -0
  143. package/dist/tools/text-grep/regex-grep.js +141 -0
  144. package/dist/tools/text-grep/regex-grep.js.map +1 -0
  145. package/dist/workflow/context/context.d.ts +13 -0
  146. package/dist/workflow/context/context.d.ts.map +1 -0
  147. package/dist/workflow/context/context.js +29 -0
  148. package/dist/workflow/context/context.js.map +1 -0
  149. package/dist/workflow/implement/resource-check/context-keys.d.ts +30 -0
  150. package/dist/workflow/implement/resource-check/context-keys.d.ts.map +1 -0
  151. package/dist/workflow/implement/resource-check/context-keys.js +33 -0
  152. package/dist/workflow/implement/resource-check/context-keys.js.map +1 -0
  153. package/dist/workflow/implement/resource-check/resource-check-workflow.d.ts +20 -0
  154. package/dist/workflow/implement/resource-check/resource-check-workflow.d.ts.map +1 -0
  155. package/dist/workflow/implement/resource-check/resource-check-workflow.js +325 -0
  156. package/dist/workflow/implement/resource-check/resource-check-workflow.js.map +1 -0
  157. package/dist/workflow/implement/resource-check/rules/index.d.ts +5 -0
  158. package/dist/workflow/implement/resource-check/rules/index.d.ts.map +1 -0
  159. package/dist/workflow/implement/resource-check/rules/index.js +21 -0
  160. package/dist/workflow/implement/resource-check/rules/index.js.map +1 -0
  161. package/dist/workflow/implement/resource-check/rules/markdown-format/arguments/argument-section-format-rule.d.ts +8 -0
  162. package/dist/workflow/implement/resource-check/rules/markdown-format/arguments/argument-section-format-rule.d.ts.map +1 -0
  163. package/dist/workflow/implement/resource-check/rules/markdown-format/arguments/argument-section-format-rule.js +51 -0
  164. package/dist/workflow/implement/resource-check/rules/markdown-format/arguments/argument-section-format-rule.js.map +1 -0
  165. package/dist/workflow/implement/resource-check/rules/markdown-format/attributes/attribute-section-format-rule.d.ts +8 -0
  166. package/dist/workflow/implement/resource-check/rules/markdown-format/attributes/attribute-section-format-rule.d.ts.map +1 -0
  167. package/dist/workflow/implement/resource-check/rules/markdown-format/attributes/attribute-section-format-rule.js +60 -0
  168. package/dist/workflow/implement/resource-check/rules/markdown-format/attributes/attribute-section-format-rule.js.map +1 -0
  169. package/dist/workflow/implement/resource-check/rules/markdown-format/blank-line-between-blocks-rule.d.ts +9 -0
  170. package/dist/workflow/implement/resource-check/rules/markdown-format/blank-line-between-blocks-rule.d.ts.map +1 -0
  171. package/dist/workflow/implement/resource-check/rules/markdown-format/blank-line-between-blocks-rule.js +80 -0
  172. package/dist/workflow/implement/resource-check/rules/markdown-format/blank-line-between-blocks-rule.js.map +1 -0
  173. package/dist/workflow/implement/resource-check/rules/markdown-format/example/example-section-exists-rule.d.ts +8 -0
  174. package/dist/workflow/implement/resource-check/rules/markdown-format/example/example-section-exists-rule.d.ts.map +1 -0
  175. package/dist/workflow/implement/resource-check/rules/markdown-format/example/example-section-exists-rule.js +42 -0
  176. package/dist/workflow/implement/resource-check/rules/markdown-format/example/example-section-exists-rule.js.map +1 -0
  177. package/dist/workflow/implement/resource-check/rules/markdown-format/example-section-exists-rule.d.ts +8 -0
  178. package/dist/workflow/implement/resource-check/rules/markdown-format/example-section-exists-rule.d.ts.map +1 -0
  179. package/dist/workflow/implement/resource-check/rules/markdown-format/example-section-exists-rule.js +34 -0
  180. package/dist/workflow/implement/resource-check/rules/markdown-format/example-section-exists-rule.js.map +1 -0
  181. package/dist/workflow/implement/resource-check/rules/markdown-format/frontmatter/frontmatter-check-rule.d.ts +8 -0
  182. package/dist/workflow/implement/resource-check/rules/markdown-format/frontmatter/frontmatter-check-rule.d.ts.map +1 -0
  183. package/dist/workflow/implement/resource-check/rules/markdown-format/frontmatter/frontmatter-check-rule.js +33 -0
  184. package/dist/workflow/implement/resource-check/rules/markdown-format/frontmatter/frontmatter-check-rule.js.map +1 -0
  185. package/dist/workflow/implement/resource-check/rules/markdown-format/frontmatter-check-rule.d.ts +8 -0
  186. package/dist/workflow/implement/resource-check/rules/markdown-format/frontmatter-check-rule.d.ts.map +1 -0
  187. package/dist/workflow/implement/resource-check/rules/markdown-format/frontmatter-check-rule.js +33 -0
  188. package/dist/workflow/implement/resource-check/rules/markdown-format/frontmatter-check-rule.js.map +1 -0
  189. package/dist/workflow/implement/resource-check/rules/markdown-format/h1-exists-rule.d.ts +8 -0
  190. package/dist/workflow/implement/resource-check/rules/markdown-format/h1-exists-rule.d.ts.map +1 -0
  191. package/dist/workflow/implement/resource-check/rules/markdown-format/h1-exists-rule.js +34 -0
  192. package/dist/workflow/implement/resource-check/rules/markdown-format/h1-exists-rule.js.map +1 -0
  193. package/dist/workflow/implement/resource-check/rules/markdown-format/index.d.ts +11 -0
  194. package/dist/workflow/implement/resource-check/rules/markdown-format/index.d.ts.map +1 -0
  195. package/dist/workflow/implement/resource-check/rules/markdown-format/index.js +38 -0
  196. package/dist/workflow/implement/resource-check/rules/markdown-format/index.js.map +1 -0
  197. package/dist/workflow/implement/resource-check/rules/markdown-format/line-length-rule.d.ts +15 -0
  198. package/dist/workflow/implement/resource-check/rules/markdown-format/line-length-rule.d.ts.map +1 -0
  199. package/dist/workflow/implement/resource-check/rules/markdown-format/line-length-rule.js +77 -0
  200. package/dist/workflow/implement/resource-check/rules/markdown-format/line-length-rule.js.map +1 -0
  201. package/dist/workflow/implement/resource-check/rules/markdown-format/number-format-rule.d.ts +23 -0
  202. package/dist/workflow/implement/resource-check/rules/markdown-format/number-format-rule.d.ts.map +1 -0
  203. package/dist/workflow/implement/resource-check/rules/markdown-format/number-format-rule.js +128 -0
  204. package/dist/workflow/implement/resource-check/rules/markdown-format/number-format-rule.js.map +1 -0
  205. package/dist/workflow/implement/resource-check/rules/markdown-format/shared/section-check-result.d.ts +9 -0
  206. package/dist/workflow/implement/resource-check/rules/markdown-format/shared/section-check-result.d.ts.map +1 -0
  207. package/dist/workflow/implement/resource-check/rules/markdown-format/shared/section-check-result.js +19 -0
  208. package/dist/workflow/implement/resource-check/rules/markdown-format/shared/section-check-result.js.map +1 -0
  209. package/dist/workflow/implement/resource-check/rules/markdown-format/title/h1-exists-rule.d.ts +8 -0
  210. package/dist/workflow/implement/resource-check/rules/markdown-format/title/h1-exists-rule.d.ts.map +1 -0
  211. package/dist/workflow/implement/resource-check/rules/markdown-format/title/h1-exists-rule.js +44 -0
  212. package/dist/workflow/implement/resource-check/rules/markdown-format/title/h1-exists-rule.js.map +1 -0
  213. package/dist/workflow/implement/resource-check/rules/markdown-format/total/blank-line-between-blocks-rule.d.ts +9 -0
  214. package/dist/workflow/implement/resource-check/rules/markdown-format/total/blank-line-between-blocks-rule.d.ts.map +1 -0
  215. package/dist/workflow/implement/resource-check/rules/markdown-format/total/blank-line-between-blocks-rule.js +80 -0
  216. package/dist/workflow/implement/resource-check/rules/markdown-format/total/blank-line-between-blocks-rule.js.map +1 -0
  217. package/dist/workflow/implement/resource-check/rules/markdown-format/total/line-length-rule.d.ts +15 -0
  218. package/dist/workflow/implement/resource-check/rules/markdown-format/total/line-length-rule.d.ts.map +1 -0
  219. package/dist/workflow/implement/resource-check/rules/markdown-format/total/line-length-rule.js +77 -0
  220. package/dist/workflow/implement/resource-check/rules/markdown-format/total/line-length-rule.js.map +1 -0
  221. package/dist/workflow/implement/resource-check/rules/markdown-format/total/number-format-rule.d.ts +23 -0
  222. package/dist/workflow/implement/resource-check/rules/markdown-format/total/number-format-rule.d.ts.map +1 -0
  223. package/dist/workflow/implement/resource-check/rules/markdown-format/total/number-format-rule.js +128 -0
  224. package/dist/workflow/implement/resource-check/rules/markdown-format/total/number-format-rule.js.map +1 -0
  225. package/dist/workflow/implement/resource-check/rules/markdown-semantic/argument-section-semantic-rule.d.ts +11 -0
  226. package/dist/workflow/implement/resource-check/rules/markdown-semantic/argument-section-semantic-rule.d.ts.map +1 -0
  227. package/dist/workflow/implement/resource-check/rules/markdown-semantic/argument-section-semantic-rule.js +145 -0
  228. package/dist/workflow/implement/resource-check/rules/markdown-semantic/argument-section-semantic-rule.js.map +1 -0
  229. package/dist/workflow/implement/resource-check/rules/markdown-semantic/arguments/argument-section-semantic-rule.d.ts +11 -0
  230. package/dist/workflow/implement/resource-check/rules/markdown-semantic/arguments/argument-section-semantic-rule.d.ts.map +1 -0
  231. package/dist/workflow/implement/resource-check/rules/markdown-semantic/arguments/argument-section-semantic-rule.js +145 -0
  232. package/dist/workflow/implement/resource-check/rules/markdown-semantic/arguments/argument-section-semantic-rule.js.map +1 -0
  233. package/dist/workflow/implement/resource-check/rules/markdown-semantic/attribute-section-semantic-rule.d.ts +9 -0
  234. package/dist/workflow/implement/resource-check/rules/markdown-semantic/attribute-section-semantic-rule.d.ts.map +1 -0
  235. package/dist/workflow/implement/resource-check/rules/markdown-semantic/attribute-section-semantic-rule.js +83 -0
  236. package/dist/workflow/implement/resource-check/rules/markdown-semantic/attribute-section-semantic-rule.js.map +1 -0
  237. package/dist/workflow/implement/resource-check/rules/markdown-semantic/attributes/attribute-section-semantic-rule.d.ts +9 -0
  238. package/dist/workflow/implement/resource-check/rules/markdown-semantic/attributes/attribute-section-semantic-rule.d.ts.map +1 -0
  239. package/dist/workflow/implement/resource-check/rules/markdown-semantic/attributes/attribute-section-semantic-rule.js +83 -0
  240. package/dist/workflow/implement/resource-check/rules/markdown-semantic/attributes/attribute-section-semantic-rule.js.map +1 -0
  241. package/dist/workflow/implement/resource-check/rules/markdown-semantic/index.d.ts +7 -0
  242. package/dist/workflow/implement/resource-check/rules/markdown-semantic/index.d.ts.map +1 -0
  243. package/dist/workflow/implement/resource-check/rules/markdown-semantic/index.js +15 -0
  244. package/dist/workflow/implement/resource-check/rules/markdown-semantic/index.js.map +1 -0
  245. package/dist/workflow/implement/resource-check/rules/markdown-semantic/section-existence-rule.d.ts +9 -0
  246. package/dist/workflow/implement/resource-check/rules/markdown-semantic/section-existence-rule.d.ts.map +1 -0
  247. package/dist/workflow/implement/resource-check/rules/markdown-semantic/section-existence-rule.js +96 -0
  248. package/dist/workflow/implement/resource-check/rules/markdown-semantic/section-existence-rule.js.map +1 -0
  249. package/dist/workflow/implement/resource-check/rules/markdown-semantic/total/section-existence-rule.d.ts +9 -0
  250. package/dist/workflow/implement/resource-check/rules/markdown-semantic/total/section-existence-rule.d.ts.map +1 -0
  251. package/dist/workflow/implement/resource-check/rules/markdown-semantic/total/section-existence-rule.js +109 -0
  252. package/dist/workflow/implement/resource-check/rules/markdown-semantic/total/section-existence-rule.js.map +1 -0
  253. package/dist/workflow/implement/resource-check/rules/stage-placeholder-rule.d.ts +19 -0
  254. package/dist/workflow/implement/resource-check/rules/stage-placeholder-rule.d.ts.map +1 -0
  255. package/dist/workflow/implement/resource-check/rules/stage-placeholder-rule.js +31 -0
  256. package/dist/workflow/implement/resource-check/rules/stage-placeholder-rule.js.map +1 -0
  257. package/dist/workflow/implement/resource-check/tools/doc-semantic/builder.d.ts +15 -0
  258. package/dist/workflow/implement/resource-check/tools/doc-semantic/builder.d.ts.map +1 -0
  259. package/dist/workflow/implement/resource-check/tools/doc-semantic/builder.js +554 -0
  260. package/dist/workflow/implement/resource-check/tools/doc-semantic/builder.js.map +1 -0
  261. package/dist/workflow/implement/resource-check/tools/doc-semantic/index.d.ts +5 -0
  262. package/dist/workflow/implement/resource-check/tools/doc-semantic/index.d.ts.map +1 -0
  263. package/dist/workflow/implement/resource-check/tools/doc-semantic/index.js +16 -0
  264. package/dist/workflow/implement/resource-check/tools/doc-semantic/index.js.map +1 -0
  265. package/dist/workflow/implement/resource-check/tools/doc-semantic/types.d.ts +94 -0
  266. package/dist/workflow/implement/resource-check/tools/doc-semantic/types.d.ts.map +1 -0
  267. package/dist/workflow/implement/resource-check/tools/doc-semantic/types.js +42 -0
  268. package/dist/workflow/implement/resource-check/tools/doc-semantic/types.js.map +1 -0
  269. package/dist/workflow/implement/resource-check/tools/schema-semantic/builder.d.ts +4 -0
  270. package/dist/workflow/implement/resource-check/tools/schema-semantic/builder.d.ts.map +1 -0
  271. package/dist/workflow/implement/resource-check/tools/schema-semantic/builder.js +103 -0
  272. package/dist/workflow/implement/resource-check/tools/schema-semantic/builder.js.map +1 -0
  273. package/dist/workflow/implement/resource-check/tools/schema-semantic/index.d.ts +3 -0
  274. package/dist/workflow/implement/resource-check/tools/schema-semantic/index.d.ts.map +1 -0
  275. package/dist/workflow/implement/resource-check/tools/schema-semantic/index.js +6 -0
  276. package/dist/workflow/implement/resource-check/tools/schema-semantic/index.js.map +1 -0
  277. package/dist/workflow/implement/resource-check/tools/schema-semantic/types.d.ts +47 -0
  278. package/dist/workflow/implement/resource-check/tools/schema-semantic/types.d.ts.map +1 -0
  279. package/dist/workflow/implement/resource-check/tools/schema-semantic/types.js +3 -0
  280. package/dist/workflow/implement/resource-check/tools/schema-semantic/types.js.map +1 -0
  281. package/dist/workflow/implement/resource-check/tools/terraform-schema/index.d.ts +4 -0
  282. package/dist/workflow/implement/resource-check/tools/terraform-schema/index.d.ts.map +1 -0
  283. package/dist/workflow/implement/resource-check/tools/terraform-schema/index.js +8 -0
  284. package/dist/workflow/implement/resource-check/tools/terraform-schema/index.js.map +1 -0
  285. package/dist/workflow/implement/resource-check/tools/terraform-schema/schema-extractor.d.ts +108 -0
  286. package/dist/workflow/implement/resource-check/tools/terraform-schema/schema-extractor.d.ts.map +1 -0
  287. package/dist/workflow/implement/resource-check/tools/terraform-schema/schema-extractor.js +498 -0
  288. package/dist/workflow/implement/resource-check/tools/terraform-schema/schema-extractor.js.map +1 -0
  289. package/dist/workflow/implement/resource-check/tools/terraform-schema/semantic-normalizer.d.ts +51 -0
  290. package/dist/workflow/implement/resource-check/tools/terraform-schema/semantic-normalizer.d.ts.map +1 -0
  291. package/dist/workflow/implement/resource-check/tools/terraform-schema/semantic-normalizer.js +271 -0
  292. package/dist/workflow/implement/resource-check/tools/terraform-schema/semantic-normalizer.js.map +1 -0
  293. package/dist/workflow/implement/resource-check/tools/terraform-schema/types.d.ts +133 -0
  294. package/dist/workflow/implement/resource-check/tools/terraform-schema/types.d.ts.map +1 -0
  295. package/dist/workflow/implement/resource-check/tools/terraform-schema/types.js +3 -0
  296. package/dist/workflow/implement/resource-check/tools/terraform-schema/types.js.map +1 -0
  297. package/dist/workflow/implement/resource-check/types.d.ts +18 -0
  298. package/dist/workflow/implement/resource-check/types.d.ts.map +1 -0
  299. package/dist/workflow/implement/resource-check/types.js +107 -0
  300. package/dist/workflow/implement/resource-check/types.js.map +1 -0
  301. package/dist/workflow/types/rule/rule.d.ts +72 -0
  302. package/dist/workflow/types/rule/rule.d.ts.map +1 -0
  303. package/dist/workflow/types/rule/rule.js +110 -0
  304. package/dist/workflow/types/rule/rule.js.map +1 -0
  305. package/dist/workflow/workflow.d.ts +52 -0
  306. package/dist/workflow/workflow.d.ts.map +1 -0
  307. package/dist/workflow/workflow.js +121 -0
  308. package/dist/workflow/workflow.js.map +1 -0
  309. package/package.json +36 -0
@@ -0,0 +1,263 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TerraformSchemaSemanticNormalizer = void 0;
4
+ const DURATION_MULTIPLIERS_MS = {
5
+ Nanosecond: 1 / 1000000,
6
+ Microsecond: 1 / 1000,
7
+ Millisecond: 1,
8
+ Second: 1000,
9
+ Minute: 60000,
10
+ Hour: 3600000,
11
+ };
12
+ /**
13
+ * Conservative semantic normalizer on top of raw extractor output.
14
+ * It only derives values for whitelisted, high-confidence patterns.
15
+ */
16
+ class TerraformSchemaSemanticNormalizer {
17
+ normalizeSchemas(goSource, schemas) {
18
+ return schemas.map((schema) => this.normalizeSchema(goSource, schema));
19
+ }
20
+ normalizeSchema(goSource, schema) {
21
+ const semantics = {};
22
+ const options = schema.resourceOptions;
23
+ if (!options) {
24
+ return schema;
25
+ }
26
+ semantics.importable = {
27
+ value: options.hasImporter,
28
+ confidence: "high",
29
+ };
30
+ if (options.timeouts) {
31
+ semantics.timeouts = this.normalizeTimeouts(options.timeouts);
32
+ }
33
+ if (options.customizeDiff) {
34
+ const forceNew = this.deriveForceNewFromCustomizeDiff(options.customizeDiff, goSource);
35
+ if (forceNew) {
36
+ semantics.forceNew = forceNew;
37
+ }
38
+ const nonUpdatable = this.deriveNonUpdatableFromCustomizeDiff(options.customizeDiff, goSource);
39
+ if (nonUpdatable) {
40
+ semantics.nonUpdatable = nonUpdatable;
41
+ }
42
+ }
43
+ if (options.hasImporter) {
44
+ const importId = this.deriveImportIdParts(goSource, options.importerStateContext);
45
+ if (importId) {
46
+ semantics.importIdParts = importId;
47
+ }
48
+ }
49
+ return {
50
+ ...schema,
51
+ resourceSemantics: semantics,
52
+ };
53
+ }
54
+ normalizeTimeouts(timeouts) {
55
+ const normalized = {};
56
+ const entries = [
57
+ ["create", "create"],
58
+ ["read", "read"],
59
+ ["update", "update"],
60
+ ["delete", "delete"],
61
+ ["default", "default"],
62
+ ];
63
+ for (const [sourceKey, targetKey] of entries) {
64
+ const raw = timeouts[sourceKey];
65
+ if (!raw)
66
+ continue;
67
+ normalized[targetKey] = this.normalizeTimeoutValue(raw);
68
+ }
69
+ return normalized;
70
+ }
71
+ normalizeTimeoutValue(raw) {
72
+ const inner = this.unwrapDefaultTimeout(raw.trim());
73
+ const durationMs = this.parseDurationToMs(inner);
74
+ if (durationMs === undefined) {
75
+ return { raw, confidence: "none" };
76
+ }
77
+ return {
78
+ raw,
79
+ milliseconds: durationMs,
80
+ confidence: "high",
81
+ };
82
+ }
83
+ unwrapDefaultTimeout(expr) {
84
+ const match = expr.match(/^schema\.DefaultTimeout\((.+)\)$/s);
85
+ if (!match)
86
+ return expr;
87
+ return match[1].trim();
88
+ }
89
+ /**
90
+ * Parse conservative duration expressions:
91
+ * - `10 * time.Minute`
92
+ * - `time.Minute * 10`
93
+ */
94
+ parseDurationToMs(expr) {
95
+ const leftMatch = expr.match(/^(\d+)\s*\*\s*time\.(\w+)$/);
96
+ if (leftMatch) {
97
+ const amount = Number(leftMatch[1]);
98
+ const unit = leftMatch[2];
99
+ const multiplier = DURATION_MULTIPLIERS_MS[unit];
100
+ if (multiplier === undefined)
101
+ return undefined;
102
+ return Math.round(amount * multiplier);
103
+ }
104
+ const rightMatch = expr.match(/^time\.(\w+)\s*\*\s*(\d+)$/);
105
+ if (rightMatch) {
106
+ const unit = rightMatch[1];
107
+ const amount = Number(rightMatch[2]);
108
+ const multiplier = DURATION_MULTIPLIERS_MS[unit];
109
+ if (multiplier === undefined)
110
+ return undefined;
111
+ return Math.round(amount * multiplier);
112
+ }
113
+ return undefined;
114
+ }
115
+ deriveForceNewFromCustomizeDiff(customizeDiff, goSource) {
116
+ const fields = this.extractFieldsFromDiffCall(customizeDiff, goSource, "config.FlexibleForceNew");
117
+ if (!fields || fields.length === 0)
118
+ return undefined;
119
+ return {
120
+ fields,
121
+ confidence: "high",
122
+ source: "customizeDiff",
123
+ };
124
+ }
125
+ deriveNonUpdatableFromCustomizeDiff(customizeDiff, goSource) {
126
+ const fields = this.extractFieldsFromDiffCall(customizeDiff, goSource, "config.FlexibleNonUpdatable");
127
+ if (!fields || fields.length === 0)
128
+ return undefined;
129
+ return {
130
+ fields,
131
+ confidence: "high",
132
+ source: "customizeDiff",
133
+ };
134
+ }
135
+ /**
136
+ * Extract field names from a `funcName(fields)` call that may appear
137
+ * either as a standalone customizeDiff expression or inside a
138
+ * `customdiff.Sequence(...)` wrapper.
139
+ */
140
+ extractFieldsFromDiffCall(customizeDiff, goSource, funcName) {
141
+ const escaped = funcName.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
142
+ const pattern = new RegExp(`${escaped}\\(([\\s\\S]+?)\\)`, "m");
143
+ const callMatch = customizeDiff.match(pattern);
144
+ if (!callMatch)
145
+ return undefined;
146
+ const argExpr = callMatch[1].trim();
147
+ let fields = this.parseStringSliceLiteral(argExpr);
148
+ if (!fields && this.isIdentifier(argExpr)) {
149
+ fields = this.findStringSliceByIdentifier(goSource, argExpr);
150
+ }
151
+ return fields;
152
+ }
153
+ /**
154
+ * Derive the import ID parts from the importer state function.
155
+ *
156
+ * - `schema.ImportStatePassthroughContext` => bare resource ID
157
+ * - Custom function => look up the function body and parse
158
+ * `strings.Split(d.Id(), "/")` style patterns to infer parts.
159
+ */
160
+ deriveImportIdParts(goSource, stateContext) {
161
+ if (!stateContext)
162
+ return undefined;
163
+ if (stateContext === "schema.ImportStatePassthroughContext" ||
164
+ stateContext === "schema.ImportStatePassthrough") {
165
+ return { parts: ["id"], separator: "/", confidence: "high" };
166
+ }
167
+ const funcBody = this.findFuncBody(goSource, stateContext);
168
+ if (!funcBody)
169
+ return undefined;
170
+ return this.parseImportIdFromFuncBody(funcBody);
171
+ }
172
+ findFuncBody(goSource, funcName) {
173
+ const escaped = funcName.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
174
+ const headerPattern = new RegExp(`func\\s+${escaped}\\s*\\([\\s\\S]*?\\)\\s*[^{]*\\{`, "m");
175
+ const headerMatch = goSource.match(headerPattern);
176
+ if (!headerMatch)
177
+ return undefined;
178
+ const bodyStart = headerMatch.index + headerMatch[0].length;
179
+ const rest = goSource.slice(bodyStart);
180
+ // Match the closing brace at column 0 (no leading whitespace on that line).
181
+ const closingMatch = rest.match(/\n\}/);
182
+ if (!closingMatch)
183
+ return undefined;
184
+ let depth = 1;
185
+ for (let i = 0; i < rest.length; i++) {
186
+ if (rest[i] === "{")
187
+ depth++;
188
+ if (rest[i] === "}") {
189
+ depth--;
190
+ if (depth === 0) {
191
+ return rest.slice(0, i);
192
+ }
193
+ }
194
+ }
195
+ return rest.slice(0, closingMatch.index);
196
+ }
197
+ /**
198
+ * Best-effort parsing of an import state function body.
199
+ * Recognises two common patterns:
200
+ *
201
+ * 1. `parts := strings.Split(d.Id(), "/")`
202
+ * followed by length check and `d.Set("field", parts[i])` calls.
203
+ *
204
+ * 2. `parts := strings.SplitN(d.Id(), "/", N)`
205
+ * same downstream pattern.
206
+ */
207
+ parseImportIdFromFuncBody(body) {
208
+ const splitMatch = body.match(/strings\.SplitN?\(\s*(?:d\.Id\(\)|[a-zA-Z_]\w*)\s*,\s*"([^"]+)"\s*(?:,\s*(\d+)\s*)?\)/);
209
+ if (!splitMatch)
210
+ return undefined;
211
+ const separator = splitMatch[1];
212
+ const splitCount = splitMatch[2] ? Number(splitMatch[2]) : undefined;
213
+ const setPattern = /d\.Set\(\s*"([^"]+)"\s*,\s*parts\[(\d+)\]/g;
214
+ const partsMap = new Map();
215
+ let m;
216
+ while ((m = setPattern.exec(body)) !== null) {
217
+ partsMap.set(Number(m[2]), m[1]);
218
+ }
219
+ const setIdPattern = /d\.SetId\(\s*parts\[(\d+)\]/g;
220
+ while ((m = setIdPattern.exec(body)) !== null) {
221
+ const idx = Number(m[1]);
222
+ if (!partsMap.has(idx)) {
223
+ partsMap.set(idx, "id");
224
+ }
225
+ }
226
+ if (partsMap.size === 0)
227
+ return undefined;
228
+ const expectedCount = splitCount ?? (Math.max(...partsMap.keys()) + 1);
229
+ const parts = [];
230
+ for (let i = 0; i < expectedCount; i++) {
231
+ parts.push(partsMap.get(i) ?? `_unknown_${i}`);
232
+ }
233
+ return { parts, separator, confidence: "high" };
234
+ }
235
+ isIdentifier(expr) {
236
+ return /^[A-Za-z_]\w*$/.test(expr);
237
+ }
238
+ findStringSliceByIdentifier(goSource, identifier) {
239
+ const escaped = identifier.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
240
+ const pattern = new RegExp(`(?:var\\s+${escaped}\\s*=|${escaped}\\s*:=)\\s*\\[\\]string\\s*\\{([\\s\\S]*?)\\}`, "m");
241
+ const match = goSource.match(pattern);
242
+ if (!match)
243
+ return undefined;
244
+ return this.extractStringLiterals(match[1]);
245
+ }
246
+ parseStringSliceLiteral(expr) {
247
+ const match = expr.match(/^\[\]string\s*\{([\s\S]*?)\}$/);
248
+ if (!match)
249
+ return undefined;
250
+ return this.extractStringLiterals(match[1]);
251
+ }
252
+ extractStringLiterals(content) {
253
+ const values = [];
254
+ const regex = /"((?:[^"\\]|\\.)*)"/g;
255
+ let match;
256
+ while ((match = regex.exec(content)) !== null) {
257
+ values.push(match[1]);
258
+ }
259
+ return values;
260
+ }
261
+ }
262
+ exports.TerraformSchemaSemanticNormalizer = TerraformSchemaSemanticNormalizer;
263
+ //# sourceMappingURL=semantic-normalizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semantic-normalizer.js","sourceRoot":"","sources":["../../../../src/tools/ast-parser/go/semantic-normalizer.ts"],"names":[],"mappings":";;;AAWA,MAAM,uBAAuB,GAA2B;IACpD,UAAU,EAAE,CAAC,GAAG,OAAS;IACzB,WAAW,EAAE,CAAC,GAAG,IAAK;IACtB,WAAW,EAAE,CAAC;IACd,MAAM,EAAE,IAAK;IACb,MAAM,EAAE,KAAM;IACd,IAAI,EAAE,OAAS;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAa,iCAAiC;IACnC,gBAAgB,CAAC,QAAgB,EAAE,OAAyB;QAC/D,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3E,CAAC;IAEM,eAAe,CAAC,QAAgB,EAAE,MAAsB;QAC3D,MAAM,SAAS,GAAsB,EAAE,CAAC;QACxC,MAAM,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;QACvC,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,SAAS,CAAC,UAAU,GAAG;YACnB,KAAK,EAAE,OAAO,CAAC,WAAW;YAC1B,UAAU,EAAE,MAAM;SACrB,CAAC;QAEF,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YACnB,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClE,CAAC;QAED,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;YACxB,MAAM,QAAQ,GAAG,IAAI,CAAC,+BAA+B,CAAC,OAAO,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AgB,EAAE,UAAkB;QACpE,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;QAClE,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,aAAa,OAAO,SAAS,OAAO,+CAA+C,EACnF,GAAG,CACN,CAAC;QACF,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAC7B,OAAO,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC;IAEO,uBAAuB,CAAC,IAAY;QACxC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK;YAAE,OAAO,SAAS,CAAC;QAC7B,OAAO,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC;IAEO,qBAAqB,CAAC,OAAe;QACzC,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,MAAM,KAAK,GAAG,sBAAsB,CAAC;QACrC,IAAI,KAA6B,CAAC;QAClC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YAC5C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1B,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AA9SD,8EA8SC"}
@@ -0,0 +1,131 @@
1
+ /**
2
+ * Terraform schema field types matching the `schema.Type*` constants
3
+ * in the Terraform Plugin SDK.
4
+ */
5
+ export type SchemaFieldType = "TypeString" | "TypeBool" | "TypeInt" | "TypeFloat" | "TypeList" | "TypeSet" | "TypeMap";
6
+ /**
7
+ * A single field extracted from a Terraform resource schema definition.
8
+ */
9
+ export interface SchemaField {
10
+ /** Field name as declared in the schema map key (e.g. "instance_type") */
11
+ name: string;
12
+ /** Terraform SDK type (e.g. "TypeString") or raw string if unrecognized */
13
+ type: SchemaFieldType | string;
14
+ /** Whether the field has `Required: true` */
15
+ required: boolean;
16
+ /** Whether the field has `Optional: true` */
17
+ optional: boolean;
18
+ /** Whether the field has `Computed: true` */
19
+ computed: boolean;
20
+ /** Whether the field has `ForceNew: true` */
21
+ forceNew: boolean;
22
+ /** The Description string, empty if not specified */
23
+ description: string;
24
+ /** Default value as raw source text, undefined if not specified */
25
+ defaultValue?: string;
26
+ /** Element type for TypeList/TypeSet/TypeMap, undefined if not applicable */
27
+ elemType?: SchemaFieldType | string;
28
+ /** Nested sub-fields when Elem is a *schema.Resource (block-level nesting) */
29
+ subFields?: SchemaField[];
30
+ }
31
+ /**
32
+ * Represents one Terraform resource/data-source schema extracted from
33
+ * a Go source file.
34
+ */
35
+ export interface ResourceSchema {
36
+ /** Resource name inferred from the function name (e.g. "aws_instance") */
37
+ resourceName: string;
38
+ /** The original Go function name (e.g. "resourceAwsInstance") */
39
+ functionName: string;
40
+ /** All top-level schema fields */
41
+ fields: SchemaField[];
42
+ /**
43
+ * Resource-level options extracted from `&schema.Resource{ ... }`,
44
+ * such as Timeouts, Importer, and CustomizeDiff.
45
+ */
46
+ resourceOptions?: ResourceOptions;
47
+ /**
48
+ * Optional normalized semantic view derived from raw resource options.
49
+ * This is best-effort and keeps conservative confidence signals.
50
+ */
51
+ resourceSemantics?: ResourceSemantics;
52
+ }
53
+ /**
54
+ * Timeout expressions configured on `schema.ResourceTimeout`.
55
+ * Values are kept as raw Go expressions for compatibility.
56
+ */
57
+ export interface ResourceTimeouts {
58
+ create?: string;
59
+ read?: string;
60
+ update?: string;
61
+ delete?: string;
62
+ default?: string;
63
+ }
64
+ /**
65
+ * Resource-level capabilities/metadata extracted from a schema resource.
66
+ */
67
+ export interface ResourceOptions {
68
+ /** Whether an Importer block is configured. */
69
+ hasImporter: boolean;
70
+ /**
71
+ * Importer state handler expression (for example
72
+ * `schema.ImportStatePassthroughContext`), if present.
73
+ */
74
+ importerStateContext?: string;
75
+ /** Raw expression assigned to CustomizeDiff. */
76
+ customizeDiff?: string;
77
+ /** Deprecation message from DeprecationMessage field. */
78
+ deprecationMessage?: string;
79
+ /** Parsed timeout expressions from Timeouts block. */
80
+ timeouts?: ResourceTimeouts;
81
+ }
82
+ /** Confidence levels for conservative semantic derivation. */
83
+ export type SemanticConfidence = "high" | "none";
84
+ /** Normalized timeout semantic value with raw fallback and confidence. */
85
+ export interface TimeoutSemanticValue {
86
+ raw: string;
87
+ milliseconds?: number;
88
+ confidence: SemanticConfidence;
89
+ }
90
+ /** Semantic projection of timeout settings. */
91
+ export interface ResourceTimeoutSemantics {
92
+ create?: TimeoutSemanticValue;
93
+ read?: TimeoutSemanticValue;
94
+ update?: TimeoutSemanticValue;
95
+ delete?: TimeoutSemanticValue;
96
+ default?: TimeoutSemanticValue;
97
+ }
98
+ /** Semantic projection for force-new behavior inferred from CustomizeDiff. */
99
+ export interface ForceNewSemantics {
100
+ fields: string[];
101
+ confidence: SemanticConfidence;
102
+ source: "customizeDiff";
103
+ }
104
+ /** Semantic projection for non-updatable behavior inferred from CustomizeDiff. */
105
+ export interface NonUpdatableSemantics {
106
+ fields: string[];
107
+ confidence: SemanticConfidence;
108
+ source: "customizeDiff";
109
+ }
110
+ /** Semantic projection for import capability. */
111
+ export interface ImportableSemantics {
112
+ value: boolean;
113
+ confidence: "high";
114
+ }
115
+ /** Semantic projection for import ID format. */
116
+ export interface ImportIdSemantics {
117
+ /** Ordered parts of the import ID (e.g. ["region", "id"]). */
118
+ parts: string[];
119
+ /** Separator used to join parts (typically "/"). */
120
+ separator: string;
121
+ confidence: SemanticConfidence;
122
+ }
123
+ /** Consolidated semantic view for a resource schema. */
124
+ export interface ResourceSemantics {
125
+ importable?: ImportableSemantics;
126
+ timeouts?: ResourceTimeoutSemantics;
127
+ forceNew?: ForceNewSemantics;
128
+ nonUpdatable?: NonUpdatableSemantics;
129
+ importIdParts?: ImportIdSemantics;
130
+ }
131
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/ast-parser/go/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,eAAe,GACrB,YAAY,GACZ,UAAU,GACV,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,SAAS,CAAC;AAEhB;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IAEb,2EAA2E;IAC3E,IAAI,EAAE,eAAe,GAAG,MAAM,CAAC;IAE/B,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,CAAC;IAElB,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,CAAC;IAElB,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,CAAC;IAElB,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,CAAC;IAElB,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IAEpB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,eAAe,GAAG,MAAM,CAAC;IAEpC,8EAA8E;IAC9E,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IAErB,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;IAErB,kCAAkC;IAClC,MAAM,EAAE,WAAW,EAAE,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACzC;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAA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mBAAmB;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,gDAAgD;AAChD,MAAM,WAAW,iBAAiB;IAC9B,8DAA8D;IAC9D,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,kBAAkB,CAAC;CAClC;AAED,wDAAwD;AACxD,MAAM,WAAW,iBAAiB;IAC9B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACrC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/ast-parser/go/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Markdown AST Parser Module
3
+ *
4
+ * CommonMark compliant parser that converts markdown text into an AST.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import { MarkdownParser } from "@code-check/core";
9
+ *
10
+ * const parser = new MarkdownParser();
11
+ * const doc = parser.parse("# Hello\n\nParagraph text.");
12
+ *
13
+ * // Semantic queries
14
+ * const body = parser.getBodyChildren(doc);
15
+ * const section = parser.getSection(doc, 2, "Example Usage");
16
+ * const next = parser.getNextSibling(doc, heading, n => n.type === "paragraph");
17
+ *
18
+ * // Convenience accessors
19
+ * const headings = parser.getHeadings(doc);
20
+ * const codeBlocks = parser.getCodeBlocks(doc);
21
+ * const fm = parser.getFrontmatter(doc);
22
+ * ```
23
+ *
24
+ * @module ast-parser/markdown
25
+ */
26
+ export { MarkdownParser } from "./parser";
27
+ export type { MarkdownNode, MarkdownNodeType, ListType, SourcePosition, SourceRange, WalkEvent, NodeVisitor, TypedVisitors, ParserOptions, CommonMarkNode, } from "./types";
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tools/ast-parser/markdown/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EACR,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,WAAW,EACX,SAAS,EACT,WAAW,EACX,aAAa,EACb,aAAa,EACb,cAAc,GACjB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * Markdown AST Parser Module
4
+ *
5
+ * CommonMark compliant parser that converts markdown text into an AST.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * import { MarkdownParser } from "@code-check/core";
10
+ *
11
+ * const parser = new MarkdownParser();
12
+ * const doc = parser.parse("# Hello\n\nParagraph text.");
13
+ *
14
+ * // Semantic queries
15
+ * const body = parser.getBodyChildren(doc);
16
+ * const section = parser.getSection(doc, 2, "Example Usage");
17
+ * const next = parser.getNextSibling(doc, heading, n => n.type === "paragraph");
18
+ *
19
+ * // Convenience accessors
20
+ * const headings = parser.getHeadings(doc);
21
+ * const codeBlocks = parser.getCodeBlocks(doc);
22
+ * const fm = parser.getFrontmatter(doc);
23
+ * ```
24
+ *
25
+ * @module ast-parser/markdown
26
+ */
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.MarkdownParser = void 0;
29
+ var parser_1 = require("./parser");
30
+ Object.defineProperty(exports, "MarkdownParser", { enumerable: true, get: function () { return parser_1.MarkdownParser; } });
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/ast-parser/markdown/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;;;AAEH,mCAA0C;AAAjC,wGAAA,cAAc,OAAA"}