@skmtc/core 0.18.1 → 0.27.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 (586) hide show
  1. package/README.md +4 -3
  2. package/esm/anchors/ParserAdapter.d.ts +22 -3
  3. package/esm/anchors/ParserAdapter.d.ts.map +1 -1
  4. package/esm/anchors/attribute.d.ts.map +1 -1
  5. package/esm/anchors/buildSidecar.d.ts.map +1 -1
  6. package/esm/anchors/buildSidecar.js +1 -1
  7. package/esm/anchors/generationMap.d.ts.map +1 -1
  8. package/esm/anchors/postPass.d.ts +1 -1
  9. package/esm/anchors/postPass.js +1 -1
  10. package/esm/anchors/sidecar.d.ts +2 -2
  11. package/esm/anchors/sidecar.js +1 -1
  12. package/esm/context/CoreContext.d.ts +7 -1
  13. package/esm/context/CoreContext.d.ts.map +1 -1
  14. package/esm/context/CoreContext.js +17 -11
  15. package/esm/context/GenerateContext.d.ts +25 -4
  16. package/esm/context/GenerateContext.d.ts.map +1 -1
  17. package/esm/context/GenerateContext.js +159 -76
  18. package/esm/context/ParseContext.d.ts.map +1 -1
  19. package/esm/context/ParseIssue.d.ts +1 -1
  20. package/esm/context/RenderContext.d.ts +2 -6
  21. package/esm/context/RenderContext.d.ts.map +1 -1
  22. package/esm/context/RenderContext.js +4 -14
  23. package/esm/context/generateTypes.d.ts +35 -8
  24. package/esm/context/generateTypes.d.ts.map +1 -1
  25. package/{script/deps/jsr.io/@std/fs/1.0.23 → esm/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
  26. package/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/internal/1.0.14/_os.js +14 -0
  28. package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
  29. package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
  30. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
  31. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
  32. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
  33. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
  34. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
  35. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
  36. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
  37. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
  38. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
  39. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
  40. package/esm/deps/jsr.io/@std/path/1.1.6/extname.d.ts +25 -0
  41. package/esm/deps/jsr.io/@std/path/1.1.6/extname.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@std/path/1.1.6/extname.js +31 -0
  43. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
  44. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
  45. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
  46. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
  47. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
  48. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
  49. package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts +42 -0
  50. package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts.map +1 -0
  51. package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.js +98 -0
  52. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
  53. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
  54. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
  55. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
  56. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
  57. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
  58. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
  59. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
  60. package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts +18 -0
  61. package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts.map +1 -0
  62. package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.js +83 -0
  63. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
  64. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
  65. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
  66. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
  67. package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
  68. package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
  69. package/esm/dsl/CodeFileBase.d.ts +57 -24
  70. package/esm/dsl/CodeFileBase.d.ts.map +1 -1
  71. package/esm/dsl/CodeFileBase.js +35 -53
  72. package/esm/dsl/FileBase.d.ts +21 -25
  73. package/esm/dsl/FileBase.d.ts.map +1 -1
  74. package/esm/dsl/FileBase.js +20 -29
  75. package/esm/dsl/GeneratorKeys.d.ts +19 -19
  76. package/esm/dsl/GeneratorKeys.d.ts.map +1 -1
  77. package/esm/dsl/GeneratorKeys.js +6 -5
  78. package/esm/dsl/IdentifierBase.d.ts +19 -5
  79. package/esm/dsl/IdentifierBase.d.ts.map +1 -1
  80. package/esm/dsl/IdentifierBase.js +21 -5
  81. package/esm/dsl/IdentifierType.d.ts +8 -14
  82. package/esm/dsl/IdentifierType.d.ts.map +1 -1
  83. package/esm/dsl/Lang.d.ts +18 -38
  84. package/esm/dsl/Lang.d.ts.map +1 -1
  85. package/esm/dsl/MarkdownFile.d.ts +55 -0
  86. package/esm/dsl/MarkdownFile.d.ts.map +1 -0
  87. package/esm/dsl/MarkdownFile.js +58 -0
  88. package/esm/dsl/model/ModelDriver.d.ts +3 -1
  89. package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
  90. package/esm/dsl/model/ModelDriver.js +6 -8
  91. package/esm/dsl/model/toModelEntry.d.ts +21 -17
  92. package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
  93. package/esm/dsl/model/toModelEntry.js +3 -27
  94. package/esm/dsl/model/toModelProjectionBase.d.ts +15 -15
  95. package/esm/dsl/model/toModelProjectionBase.d.ts.map +1 -1
  96. package/esm/dsl/model/types.d.ts +2 -52
  97. package/esm/dsl/model/types.d.ts.map +1 -1
  98. package/esm/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
  99. package/esm/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
  100. package/esm/dsl/operation/gql/GqlOperationDriver.js +12 -9
  101. package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
  102. package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
  103. package/esm/dsl/operation/gql/toGqlOperationEntry.js +3 -25
  104. package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
  105. package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
  106. package/esm/dsl/operation/gql/toGqlOperationProjectionBase.js +7 -1
  107. package/esm/dsl/operation/gql/types.d.ts +1 -33
  108. package/esm/dsl/operation/gql/types.d.ts.map +1 -1
  109. package/esm/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
  110. package/esm/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
  111. package/esm/dsl/operation/oas/OasOperationDriver.js +12 -9
  112. package/esm/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
  113. package/esm/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
  114. package/esm/dsl/operation/oas/toOasOperationEntry.js +3 -32
  115. package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
  116. package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
  117. package/esm/dsl/operation/oas/types.d.ts +1 -43
  118. package/esm/dsl/operation/oas/types.d.ts.map +1 -1
  119. package/esm/dsl/webhook/WebhookDriver.d.ts +3 -1
  120. package/esm/dsl/webhook/WebhookDriver.d.ts.map +1 -1
  121. package/esm/dsl/webhook/WebhookDriver.js +12 -9
  122. package/esm/dsl/webhook/toWebhookEntry.d.ts +21 -16
  123. package/esm/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
  124. package/esm/dsl/webhook/toWebhookEntry.js +3 -32
  125. package/esm/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
  126. package/esm/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
  127. package/esm/dsl/webhook/types.d.ts +1 -36
  128. package/esm/dsl/webhook/types.d.ts.map +1 -1
  129. package/esm/enrichments/toEnrichmentDescriptor.d.ts +72 -27
  130. package/esm/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
  131. package/esm/enrichments/toEnrichmentDescriptor.js +57 -31
  132. package/esm/enrichments/validateConfig.d.ts +1 -1
  133. package/esm/enrichments/validateConfig.d.ts.map +1 -1
  134. package/esm/enrichments/validateConfig.js +2 -2
  135. package/esm/gql/_helpers/unwrapType.d.ts.map +1 -1
  136. package/esm/gql/enum/toEnumType.d.ts.map +1 -1
  137. package/esm/gql/field/toFieldSchema.d.ts.map +1 -1
  138. package/esm/gql/input/toInputType.d.ts.map +1 -1
  139. package/esm/gql/interface/toInterfaceUnion.d.ts.map +1 -1
  140. package/esm/gql/object/toObjectType.d.ts.map +1 -1
  141. package/esm/gql/operation/toRootField.d.ts.map +1 -1
  142. package/esm/gql/union/toUnionType.d.ts.map +1 -1
  143. package/esm/helpers/applyGeneratedSuffix.d.ts +43 -0
  144. package/esm/helpers/applyGeneratedSuffix.d.ts.map +1 -0
  145. package/esm/helpers/applyGeneratedSuffix.js +79 -0
  146. package/esm/helpers/isImported.js +1 -1
  147. package/esm/helpers/strings.d.ts.map +1 -1
  148. package/esm/helpers/toResolvedArtifactPath.js +1 -1
  149. package/esm/mod.d.ts +8 -1
  150. package/esm/mod.d.ts.map +1 -1
  151. package/esm/mod.js +8 -1
  152. package/esm/oas/array/Array.d.ts +2 -0
  153. package/esm/oas/array/Array.d.ts.map +1 -1
  154. package/esm/oas/array/Array.js +4 -0
  155. package/esm/oas/boolean/Boolean.d.ts +3 -1
  156. package/esm/oas/boolean/Boolean.d.ts.map +1 -1
  157. package/esm/oas/boolean/Boolean.js +4 -0
  158. package/esm/oas/components/Components.d.ts +5 -0
  159. package/esm/oas/components/Components.d.ts.map +1 -1
  160. package/esm/oas/components/Components.js +6 -1
  161. package/esm/oas/document/Document.d.ts.map +1 -1
  162. package/esm/oas/integer/Integer.d.ts +3 -1
  163. package/esm/oas/integer/Integer.d.ts.map +1 -1
  164. package/esm/oas/integer/Integer.js +4 -0
  165. package/esm/oas/link/Link.d.ts +68 -0
  166. package/esm/oas/link/Link.d.ts.map +1 -0
  167. package/esm/oas/link/Link.js +107 -0
  168. package/esm/oas/number/Number.d.ts +3 -1
  169. package/esm/oas/number/Number.d.ts.map +1 -1
  170. package/esm/oas/number/Number.js +4 -0
  171. package/esm/oas/object/Object.d.ts +9 -0
  172. package/esm/oas/object/Object.d.ts.map +1 -1
  173. package/esm/oas/object/Object.js +14 -0
  174. package/esm/oas/operation/Operation.d.ts +15 -0
  175. package/esm/oas/operation/Operation.d.ts.map +1 -1
  176. package/esm/oas/operation/Operation.js +33 -0
  177. package/esm/oas/ref/Ref.d.ts +23 -1
  178. package/esm/oas/ref/Ref.d.ts.map +1 -1
  179. package/esm/oas/ref/Ref.js +32 -0
  180. package/esm/oas/ref/ref-types.d.ts +18 -1
  181. package/esm/oas/ref/ref-types.d.ts.map +1 -1
  182. package/esm/oas/ref/ref-types.js +12 -1
  183. package/esm/oas/response/Response.d.ts +4 -0
  184. package/esm/oas/response/Response.d.ts.map +1 -1
  185. package/esm/oas/response/Response.js +7 -0
  186. package/esm/oas/schemaPath/traverseSchema.d.ts +31 -0
  187. package/esm/oas/schemaPath/traverseSchema.d.ts.map +1 -0
  188. package/esm/oas/schemaPath/traverseSchema.js +115 -0
  189. package/esm/oas/string/String.d.ts +3 -1
  190. package/esm/oas/string/String.d.ts.map +1 -1
  191. package/esm/oas/string/String.js +4 -0
  192. package/esm/oas/union/Union.d.ts +9 -0
  193. package/esm/oas/union/Union.d.ts.map +1 -1
  194. package/esm/oas/union/Union.js +14 -0
  195. package/esm/oas/unknown/Unknown.d.ts +3 -1
  196. package/esm/oas/unknown/Unknown.d.ts.map +1 -1
  197. package/esm/oas/unknown/Unknown.js +4 -0
  198. package/esm/parse/v3-0/array/toArray.d.ts.map +1 -1
  199. package/esm/parse/v3-0/boolean/toBoolean.d.ts.map +1 -1
  200. package/esm/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
  201. package/esm/parse/v3-0/components/toComponentsV3.js +3 -1
  202. package/esm/parse/v3-0/integer/toInteger.d.ts.map +1 -1
  203. package/esm/parse/v3-0/link/toLinksV3.d.ts +17 -0
  204. package/esm/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
  205. package/esm/parse/v3-0/link/toLinksV3.js +40 -0
  206. package/esm/parse/v3-0/object/toObject.d.ts.map +1 -1
  207. package/esm/parse/v3-0/object/toObject.js +3 -1
  208. package/esm/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
  209. package/esm/parse/v3-0/ref/toRefV31.d.ts.map +1 -1
  210. package/esm/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
  211. package/esm/parse/v3-0/response/toResponseV3.js +4 -1
  212. package/esm/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
  213. package/esm/parse/v3-0/schema/toSchemasV3.js +7 -1
  214. package/esm/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  215. package/esm/parse/v3-0/string/toString.d.ts.map +1 -1
  216. package/esm/parse/v3-0/union/toUnion.d.ts.map +1 -1
  217. package/esm/parse/v3-0/union/toUnion.js +3 -1
  218. package/esm/parse/v3-0/unknown/toUnknown.d.ts.map +1 -1
  219. package/esm/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -1
  220. package/esm/parse/v3-1/array/toArray.d.ts.map +1 -1
  221. package/esm/parse/v3-1/boolean/toBoolean.d.ts.map +1 -1
  222. package/esm/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
  223. package/esm/parse/v3-1/components/toComponentsV3.js +3 -1
  224. package/esm/parse/v3-1/integer/toInteger.d.ts.map +1 -1
  225. package/esm/parse/v3-1/link/toLinksV3.d.ts +17 -0
  226. package/esm/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
  227. package/esm/parse/v3-1/link/toLinksV3.js +40 -0
  228. package/esm/parse/v3-1/object/toObject.d.ts.map +1 -1
  229. package/esm/parse/v3-1/object/toObject.js +3 -1
  230. package/esm/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
  231. package/esm/parse/v3-1/ref/toRefV31.d.ts.map +1 -1
  232. package/esm/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
  233. package/esm/parse/v3-1/response/toResponseV3.js +4 -1
  234. package/esm/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
  235. package/esm/parse/v3-1/schema/toSchemasV3.js +7 -1
  236. package/esm/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  237. package/esm/parse/v3-1/string/toString.d.ts.map +1 -1
  238. package/esm/parse/v3-1/union/toUnion.d.ts.map +1 -1
  239. package/esm/parse/v3-1/union/toUnion.js +3 -1
  240. package/esm/parse/v3-1/unknown/toUnknown.d.ts.map +1 -1
  241. package/esm/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -1
  242. package/esm/run/toArtifacts.d.ts +8 -1
  243. package/esm/run/toArtifacts.d.ts.map +1 -1
  244. package/esm/run/toArtifacts.js +5 -5
  245. package/esm/run/toInspection.d.ts +8 -0
  246. package/esm/run/toInspection.d.ts.map +1 -0
  247. package/esm/run/toInspection.js +78 -0
  248. package/esm/types/Enrichments.d.ts +19 -8
  249. package/esm/types/Enrichments.d.ts.map +1 -1
  250. package/esm/types/Enrichments.js +4 -3
  251. package/esm/types/GeneratorType.d.ts +5 -5
  252. package/esm/types/GeneratorType.d.ts.map +1 -1
  253. package/esm/types/Manifest.d.ts +9 -2
  254. package/esm/types/Manifest.d.ts.map +1 -1
  255. package/esm/types/Manifest.js +3 -3
  256. package/esm/types/ModuleSelect.d.ts +81 -0
  257. package/esm/types/ModuleSelect.d.ts.map +1 -0
  258. package/esm/types/ModuleSelect.js +63 -0
  259. package/esm/types/Preview.d.ts +4 -27
  260. package/esm/types/Preview.d.ts.map +1 -1
  261. package/esm/types/Preview.js +4 -25
  262. package/esm/types/SchemaPath.d.ts +17 -0
  263. package/esm/types/SchemaPath.d.ts.map +1 -0
  264. package/esm/types/SchemaPath.js +9 -0
  265. package/esm/types/Settings.d.ts +45 -3
  266. package/esm/types/Settings.d.ts.map +1 -1
  267. package/esm/types/Settings.js +16 -20
  268. package/esm/types/SkmtcDocument.d.ts +1 -1
  269. package/esm/types/SupportedSubjects.d.ts +1 -1
  270. package/package.json +1 -1
  271. package/script/anchors/ParserAdapter.d.ts +22 -3
  272. package/script/anchors/ParserAdapter.d.ts.map +1 -1
  273. package/script/anchors/attribute.d.ts.map +1 -1
  274. package/script/anchors/buildSidecar.d.ts.map +1 -1
  275. package/script/anchors/buildSidecar.js +1 -1
  276. package/script/anchors/generationMap.d.ts.map +1 -1
  277. package/script/anchors/postPass.d.ts +1 -1
  278. package/script/anchors/postPass.js +1 -1
  279. package/script/anchors/sidecar.d.ts +2 -2
  280. package/script/anchors/sidecar.js +1 -1
  281. package/script/context/CoreContext.d.ts +7 -1
  282. package/script/context/CoreContext.d.ts.map +1 -1
  283. package/script/context/CoreContext.js +17 -11
  284. package/script/context/GenerateContext.d.ts +25 -4
  285. package/script/context/GenerateContext.d.ts.map +1 -1
  286. package/script/context/GenerateContext.js +159 -76
  287. package/script/context/ParseContext.d.ts.map +1 -1
  288. package/script/context/ParseIssue.d.ts +1 -1
  289. package/script/context/RenderContext.d.ts +2 -6
  290. package/script/context/RenderContext.d.ts.map +1 -1
  291. package/script/context/RenderContext.js +4 -14
  292. package/script/context/generateTypes.d.ts +35 -8
  293. package/script/context/generateTypes.d.ts.map +1 -1
  294. package/{esm/deps/jsr.io/@std/fs/1.0.23 → script/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
  295. package/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
  296. package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.js +7 -5
  297. package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
  298. package/script/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
  299. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
  300. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
  301. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
  302. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
  303. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
  304. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
  305. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
  306. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
  307. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
  308. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
  309. package/script/deps/jsr.io/@std/path/1.1.6/extname.d.ts +25 -0
  310. package/script/deps/jsr.io/@std/path/1.1.6/extname.d.ts.map +1 -0
  311. package/script/deps/jsr.io/@std/path/1.1.6/extname.js +34 -0
  312. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
  313. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
  314. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
  315. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
  316. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
  317. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
  318. package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts +42 -0
  319. package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts.map +1 -0
  320. package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.js +101 -0
  321. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
  322. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
  323. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
  324. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
  325. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
  326. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
  327. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
  328. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
  329. package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts +18 -0
  330. package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.js +86 -0
  332. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
  333. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
  334. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
  335. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
  336. package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
  337. package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
  338. package/script/dsl/CodeFileBase.d.ts +57 -24
  339. package/script/dsl/CodeFileBase.d.ts.map +1 -1
  340. package/script/dsl/CodeFileBase.js +37 -54
  341. package/script/dsl/FileBase.d.ts +21 -25
  342. package/script/dsl/FileBase.d.ts.map +1 -1
  343. package/script/dsl/FileBase.js +20 -29
  344. package/script/dsl/GeneratorKeys.d.ts +19 -19
  345. package/script/dsl/GeneratorKeys.d.ts.map +1 -1
  346. package/script/dsl/GeneratorKeys.js +6 -5
  347. package/script/dsl/IdentifierBase.d.ts +19 -5
  348. package/script/dsl/IdentifierBase.d.ts.map +1 -1
  349. package/script/dsl/IdentifierBase.js +21 -5
  350. package/script/dsl/IdentifierType.d.ts +8 -14
  351. package/script/dsl/IdentifierType.d.ts.map +1 -1
  352. package/script/dsl/Lang.d.ts +18 -38
  353. package/script/dsl/Lang.d.ts.map +1 -1
  354. package/script/dsl/MarkdownFile.d.ts +55 -0
  355. package/script/dsl/MarkdownFile.d.ts.map +1 -0
  356. package/script/dsl/MarkdownFile.js +62 -0
  357. package/script/dsl/model/ModelDriver.d.ts +3 -1
  358. package/script/dsl/model/ModelDriver.d.ts.map +1 -1
  359. package/script/dsl/model/ModelDriver.js +6 -8
  360. package/script/dsl/model/toModelEntry.d.ts +21 -17
  361. package/script/dsl/model/toModelEntry.d.ts.map +1 -1
  362. package/script/dsl/model/toModelEntry.js +3 -63
  363. package/script/dsl/model/toModelProjectionBase.d.ts +15 -15
  364. package/script/dsl/model/toModelProjectionBase.d.ts.map +1 -1
  365. package/script/dsl/model/types.d.ts +2 -52
  366. package/script/dsl/model/types.d.ts.map +1 -1
  367. package/script/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
  368. package/script/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
  369. package/script/dsl/operation/gql/GqlOperationDriver.js +12 -9
  370. package/script/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
  371. package/script/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
  372. package/script/dsl/operation/gql/toGqlOperationEntry.js +3 -61
  373. package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
  374. package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
  375. package/script/dsl/operation/gql/toGqlOperationProjectionBase.js +7 -1
  376. package/script/dsl/operation/gql/types.d.ts +1 -33
  377. package/script/dsl/operation/gql/types.d.ts.map +1 -1
  378. package/script/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
  379. package/script/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
  380. package/script/dsl/operation/oas/OasOperationDriver.js +12 -9
  381. package/script/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
  382. package/script/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
  383. package/script/dsl/operation/oas/toOasOperationEntry.js +3 -68
  384. package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
  385. package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
  386. package/script/dsl/operation/oas/types.d.ts +1 -43
  387. package/script/dsl/operation/oas/types.d.ts.map +1 -1
  388. package/script/dsl/webhook/WebhookDriver.d.ts +3 -1
  389. package/script/dsl/webhook/WebhookDriver.d.ts.map +1 -1
  390. package/script/dsl/webhook/WebhookDriver.js +12 -9
  391. package/script/dsl/webhook/toWebhookEntry.d.ts +21 -16
  392. package/script/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
  393. package/script/dsl/webhook/toWebhookEntry.js +3 -68
  394. package/script/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
  395. package/script/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
  396. package/script/dsl/webhook/types.d.ts +1 -36
  397. package/script/dsl/webhook/types.d.ts.map +1 -1
  398. package/script/enrichments/toEnrichmentDescriptor.d.ts +72 -27
  399. package/script/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
  400. package/script/enrichments/toEnrichmentDescriptor.js +57 -31
  401. package/script/enrichments/validateConfig.d.ts +1 -1
  402. package/script/enrichments/validateConfig.d.ts.map +1 -1
  403. package/script/enrichments/validateConfig.js +2 -2
  404. package/script/gql/_helpers/unwrapType.d.ts.map +1 -1
  405. package/script/gql/enum/toEnumType.d.ts.map +1 -1
  406. package/script/gql/field/toFieldSchema.d.ts.map +1 -1
  407. package/script/gql/input/toInputType.d.ts.map +1 -1
  408. package/script/gql/interface/toInterfaceUnion.d.ts.map +1 -1
  409. package/script/gql/object/toObjectType.d.ts.map +1 -1
  410. package/script/gql/operation/toRootField.d.ts.map +1 -1
  411. package/script/gql/union/toUnionType.d.ts.map +1 -1
  412. package/script/helpers/applyGeneratedSuffix.d.ts +43 -0
  413. package/script/helpers/applyGeneratedSuffix.d.ts.map +1 -0
  414. package/script/helpers/applyGeneratedSuffix.js +84 -0
  415. package/script/helpers/isImported.js +1 -1
  416. package/script/helpers/strings.d.ts.map +1 -1
  417. package/script/helpers/toResolvedArtifactPath.js +1 -1
  418. package/script/mod.d.ts +8 -1
  419. package/script/mod.d.ts.map +1 -1
  420. package/script/mod.js +8 -1
  421. package/script/oas/array/Array.d.ts +2 -0
  422. package/script/oas/array/Array.d.ts.map +1 -1
  423. package/script/oas/array/Array.js +4 -0
  424. package/script/oas/boolean/Boolean.d.ts +3 -1
  425. package/script/oas/boolean/Boolean.d.ts.map +1 -1
  426. package/script/oas/boolean/Boolean.js +4 -0
  427. package/script/oas/components/Components.d.ts +5 -0
  428. package/script/oas/components/Components.d.ts.map +1 -1
  429. package/script/oas/components/Components.js +6 -1
  430. package/script/oas/document/Document.d.ts.map +1 -1
  431. package/script/oas/integer/Integer.d.ts +3 -1
  432. package/script/oas/integer/Integer.d.ts.map +1 -1
  433. package/script/oas/integer/Integer.js +4 -0
  434. package/script/oas/link/Link.d.ts +68 -0
  435. package/script/oas/link/Link.d.ts.map +1 -0
  436. package/script/oas/link/Link.js +111 -0
  437. package/script/oas/number/Number.d.ts +3 -1
  438. package/script/oas/number/Number.d.ts.map +1 -1
  439. package/script/oas/number/Number.js +4 -0
  440. package/script/oas/object/Object.d.ts +9 -0
  441. package/script/oas/object/Object.d.ts.map +1 -1
  442. package/script/oas/object/Object.js +14 -0
  443. package/script/oas/operation/Operation.d.ts +15 -0
  444. package/script/oas/operation/Operation.d.ts.map +1 -1
  445. package/script/oas/operation/Operation.js +33 -0
  446. package/script/oas/ref/Ref.d.ts +23 -1
  447. package/script/oas/ref/Ref.d.ts.map +1 -1
  448. package/script/oas/ref/Ref.js +32 -0
  449. package/script/oas/ref/ref-types.d.ts +18 -1
  450. package/script/oas/ref/ref-types.d.ts.map +1 -1
  451. package/script/oas/ref/ref-types.js +13 -2
  452. package/script/oas/response/Response.d.ts +4 -0
  453. package/script/oas/response/Response.d.ts.map +1 -1
  454. package/script/oas/response/Response.js +7 -0
  455. package/script/oas/schemaPath/traverseSchema.d.ts +31 -0
  456. package/script/oas/schemaPath/traverseSchema.d.ts.map +1 -0
  457. package/script/oas/schemaPath/traverseSchema.js +119 -0
  458. package/script/oas/string/String.d.ts +3 -1
  459. package/script/oas/string/String.d.ts.map +1 -1
  460. package/script/oas/string/String.js +4 -0
  461. package/script/oas/union/Union.d.ts +9 -0
  462. package/script/oas/union/Union.d.ts.map +1 -1
  463. package/script/oas/union/Union.js +14 -0
  464. package/script/oas/unknown/Unknown.d.ts +3 -1
  465. package/script/oas/unknown/Unknown.d.ts.map +1 -1
  466. package/script/oas/unknown/Unknown.js +4 -0
  467. package/script/parse/v3-0/array/toArray.d.ts.map +1 -1
  468. package/script/parse/v3-0/boolean/toBoolean.d.ts.map +1 -1
  469. package/script/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
  470. package/script/parse/v3-0/components/toComponentsV3.js +3 -1
  471. package/script/parse/v3-0/integer/toInteger.d.ts.map +1 -1
  472. package/script/parse/v3-0/link/toLinksV3.d.ts +17 -0
  473. package/script/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
  474. package/script/parse/v3-0/link/toLinksV3.js +44 -0
  475. package/script/parse/v3-0/object/toObject.d.ts.map +1 -1
  476. package/script/parse/v3-0/object/toObject.js +3 -1
  477. package/script/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
  478. package/script/parse/v3-0/ref/toRefV31.d.ts.map +1 -1
  479. package/script/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
  480. package/script/parse/v3-0/response/toResponseV3.js +4 -1
  481. package/script/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
  482. package/script/parse/v3-0/schema/toSchemasV3.js +7 -1
  483. package/script/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  484. package/script/parse/v3-0/string/toString.d.ts.map +1 -1
  485. package/script/parse/v3-0/union/toUnion.d.ts.map +1 -1
  486. package/script/parse/v3-0/union/toUnion.js +3 -1
  487. package/script/parse/v3-0/unknown/toUnknown.d.ts.map +1 -1
  488. package/script/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -1
  489. package/script/parse/v3-1/array/toArray.d.ts.map +1 -1
  490. package/script/parse/v3-1/boolean/toBoolean.d.ts.map +1 -1
  491. package/script/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
  492. package/script/parse/v3-1/components/toComponentsV3.js +3 -1
  493. package/script/parse/v3-1/integer/toInteger.d.ts.map +1 -1
  494. package/script/parse/v3-1/link/toLinksV3.d.ts +17 -0
  495. package/script/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
  496. package/script/parse/v3-1/link/toLinksV3.js +44 -0
  497. package/script/parse/v3-1/object/toObject.d.ts.map +1 -1
  498. package/script/parse/v3-1/object/toObject.js +3 -1
  499. package/script/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
  500. package/script/parse/v3-1/ref/toRefV31.d.ts.map +1 -1
  501. package/script/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
  502. package/script/parse/v3-1/response/toResponseV3.js +4 -1
  503. package/script/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
  504. package/script/parse/v3-1/schema/toSchemasV3.js +7 -1
  505. package/script/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
  506. package/script/parse/v3-1/string/toString.d.ts.map +1 -1
  507. package/script/parse/v3-1/union/toUnion.d.ts.map +1 -1
  508. package/script/parse/v3-1/union/toUnion.js +3 -1
  509. package/script/parse/v3-1/unknown/toUnknown.d.ts.map +1 -1
  510. package/script/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -1
  511. package/script/run/toArtifacts.d.ts +8 -1
  512. package/script/run/toArtifacts.d.ts.map +1 -1
  513. package/script/run/toArtifacts.js +5 -5
  514. package/script/run/toInspection.d.ts +8 -0
  515. package/script/run/toInspection.d.ts.map +1 -0
  516. package/script/run/toInspection.js +82 -0
  517. package/script/types/Enrichments.d.ts +19 -8
  518. package/script/types/Enrichments.d.ts.map +1 -1
  519. package/script/types/Enrichments.js +5 -4
  520. package/script/types/GeneratorType.d.ts +5 -5
  521. package/script/types/GeneratorType.d.ts.map +1 -1
  522. package/script/types/Manifest.d.ts +9 -2
  523. package/script/types/Manifest.d.ts.map +1 -1
  524. package/script/types/Manifest.js +2 -2
  525. package/script/types/ModuleSelect.d.ts +81 -0
  526. package/script/types/ModuleSelect.d.ts.map +1 -0
  527. package/script/types/ModuleSelect.js +101 -0
  528. package/script/types/Preview.d.ts +4 -27
  529. package/script/types/Preview.d.ts.map +1 -1
  530. package/script/types/Preview.js +5 -26
  531. package/script/types/SchemaPath.d.ts +17 -0
  532. package/script/types/SchemaPath.d.ts.map +1 -0
  533. package/script/types/{AccessorPath.js → SchemaPath.js} +7 -7
  534. package/script/types/Settings.d.ts +45 -3
  535. package/script/types/Settings.d.ts.map +1 -1
  536. package/script/types/Settings.js +13 -17
  537. package/script/types/SkmtcDocument.d.ts +1 -1
  538. package/script/types/SupportedSubjects.d.ts +1 -1
  539. package/esm/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
  540. package/esm/deps/jsr.io/@std/internal/1.0.13/_os.js +0 -12
  541. package/esm/types/AccessorPath.d.ts +0 -17
  542. package/esm/types/AccessorPath.d.ts.map +0 -1
  543. package/esm/types/AccessorPath.js +0 -9
  544. package/script/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
  545. package/script/types/AccessorPath.d.ts +0 -17
  546. package/script/types/AccessorPath.d.ts.map +0 -1
  547. /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
  548. /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
  549. /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
  550. /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
  551. /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
  552. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
  553. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
  554. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
  555. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
  556. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
  557. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
  558. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
  559. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
  560. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
  561. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
  562. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
  563. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
  564. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
  565. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
  566. /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
  567. /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
  568. /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
  569. /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
  570. /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
  571. /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
  572. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
  573. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
  574. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
  575. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
  576. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
  577. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
  578. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
  579. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
  580. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
  581. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
  582. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
  583. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
  584. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
  585. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
  586. /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // Copyright 2018-2026 the Deno authors. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.fromFileUrl = fromFileUrl;
@@ -1 +1 @@
1
- {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CASpE"}
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/posix/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CASpE"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // Copyright 2018-2026 the Deno authors. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.join = join;
@@ -1 +1 @@
1
- {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/normalize.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAmBpD"}
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/posix/normalize.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAmBpD"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // Copyright 2018-2026 the Deno authors. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.normalize = normalize;
@@ -1 +1 @@
1
- {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/_util.ts"],"names":[],"mappings":"AAcA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKzD"}
1
+ {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/windows/_util.ts"],"names":[],"mappings":"AAcA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKzD"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // Copyright 2018-2026 the Deno authors. MIT license.
3
3
  // Copyright the Browserify authors. MIT License.
4
4
  // Ported from https://github.com/browserify/path-browserify/
5
5
  // This module is browser compatible.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Return the extension of the `path` with leading period.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { extname } from "@std/path/windows/extname";
7
+ * import { assertEquals } from "@std/assert";
8
+ *
9
+ * assertEquals(extname("file.ts"), ".ts");
10
+ * assertEquals(extname(new URL("file:///C:/foo/bar/baz.ext")), ".ext");
11
+ * ```
12
+ *
13
+ * @param path The path to get the extension from.
14
+ * @returns The extension of the `path`.
15
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
16
+ */
17
+ export declare function extname(path: string | URL): string;
18
+ //# sourceMappingURL=extname.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/windows/extname.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAkElD"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ // Copyright 2018-2026 the Deno authors. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.extname = extname;
6
+ const constants_js_1 = require("../_common/constants.js");
7
+ const assert_path_js_1 = require("../_common/assert_path.js");
8
+ const _util_js_1 = require("./_util.js");
9
+ const from_file_url_js_1 = require("./from_file_url.js");
10
+ /**
11
+ * Return the extension of the `path` with leading period.
12
+ *
13
+ * @example Usage
14
+ * ```ts
15
+ * import { extname } from "@std/path/windows/extname";
16
+ * import { assertEquals } from "@std/assert";
17
+ *
18
+ * assertEquals(extname("file.ts"), ".ts");
19
+ * assertEquals(extname(new URL("file:///C:/foo/bar/baz.ext")), ".ext");
20
+ * ```
21
+ *
22
+ * @param path The path to get the extension from.
23
+ * @returns The extension of the `path`.
24
+ * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
25
+ */
26
+ function extname(path) {
27
+ if (path instanceof URL) {
28
+ path = (0, from_file_url_js_1.fromFileUrl)(path);
29
+ }
30
+ (0, assert_path_js_1.assertPath)(path);
31
+ let start = 0;
32
+ let startDot = -1;
33
+ let startPart = 0;
34
+ let end = -1;
35
+ let matchedSlash = true;
36
+ // Track the state of characters (if any) we see before our first dot and
37
+ // after any path separator we find
38
+ let preDotState = 0;
39
+ // Check for a drive letter prefix so as not to mistake the following
40
+ // path separator as an extra separator at the end of the path that can be
41
+ // disregarded
42
+ if (path.length >= 2 &&
43
+ path.charCodeAt(1) === constants_js_1.CHAR_COLON &&
44
+ (0, _util_js_1.isWindowsDeviceRoot)(path.charCodeAt(0))) {
45
+ start = startPart = 2;
46
+ }
47
+ for (let i = path.length - 1; i >= start; --i) {
48
+ const code = path.charCodeAt(i);
49
+ if ((0, _util_js_1.isPathSeparator)(code)) {
50
+ // If we reached a path separator that was not part of a set of path
51
+ // separators at the end of the string, stop now
52
+ if (!matchedSlash) {
53
+ startPart = i + 1;
54
+ break;
55
+ }
56
+ continue;
57
+ }
58
+ if (end === -1) {
59
+ // We saw the first non-path separator, mark this as the end of our
60
+ // extension
61
+ matchedSlash = false;
62
+ end = i + 1;
63
+ }
64
+ if (code === constants_js_1.CHAR_DOT) {
65
+ // If this is our first dot, mark it as the start of our extension
66
+ if (startDot === -1)
67
+ startDot = i;
68
+ else if (preDotState !== 1)
69
+ preDotState = 1;
70
+ }
71
+ else if (startDot !== -1) {
72
+ // We saw a non-dot and non-path separator before our dot, so we should
73
+ // have a good chance at having a non-empty extension
74
+ preDotState = -1;
75
+ }
76
+ }
77
+ if (startDot === -1 ||
78
+ end === -1 ||
79
+ // We saw a non-dot character immediately before the dot
80
+ preDotState === 0 ||
81
+ // The (right-most) trimmed path component is exactly '..'
82
+ (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
83
+ return "";
84
+ }
85
+ return path.slice(startDot, end);
86
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAYrD"}
1
+ {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/windows/from_file_url.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAYrD"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // Copyright 2018-2026 the Deno authors. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.fromFileUrl = fromFileUrl;
@@ -1 +1 @@
1
- {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/join.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAqDpE"}
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/windows/join.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAqDpE"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // Copyright 2018-2026 the Deno authors. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.join = join;
@@ -1 +1 @@
1
- {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/windows/normalize.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CA6GpD"}
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.6/windows/normalize.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CA6GpD"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // Copyright 2018-2026 the Deno authors. MIT license.
3
3
  // This module is browser compatible.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.normalize = normalize;
@@ -1,38 +1,71 @@
1
1
  import { FileBase } from './FileBase.js';
2
+ import type { DefinitionBase } from './Definition.js';
3
+ import type { IdentifierBase } from './IdentifierBase.js';
2
4
  import type { ImportBase } from './ImportBase.js';
3
5
  import type { ReExportBase } from './ReExportBase.js';
6
+ /**
7
+ * Query for {@link CodeFileBase.findDefinitions}. `name` filters by identifier
8
+ * name; `type` filters by the declaration type as the opaque-boundary
9
+ * `string`. A lang's concrete file narrows the override to its own
10
+ * `XxEntityType` (`'class'` / `'interface'` / … for TypeScript). Omit both to
11
+ * return every definition.
12
+ */
13
+ export type FindDefinitionsQuery = {
14
+ type?: string;
15
+ name?: string;
16
+ };
17
+ /**
18
+ * The neutral name/type filter every language's `findDefinitions` shares. The
19
+ * language passes its definition list and a `typeOf` extractor — the one
20
+ * lang-specific bit, which narrows to the language's Identifier subclass to
21
+ * read the typed `type` (returned here as the opaque `string`).
22
+ *
23
+ * - no `name` and no `type` → returns `all` (the whole list; the former
24
+ * `listDefinitions`).
25
+ * - otherwise → the matching subset, or `undefined` when nothing matches.
26
+ */
27
+ export declare const matchDefinitions: (all: DefinitionBase[], query: FindDefinitionsQuery | undefined, typeOf: (identifier: IdentifierBase) => string | undefined) => DefinitionBase[] | undefined;
4
28
  /**
5
29
  * The base every language's *code* file extends — a {@link FileBase} that
6
- * also carries imports. (`JsonFile`, which has no imports, extends
7
- * {@link FileBase} directly.)
30
+ * coordinates definitions, imports, and re-exports. (`JsonFile`, with none of
31
+ * these, extends {@link FileBase} directly.)
8
32
  *
9
- * The import collection and its merge are **language-neutral**: imports are
10
- * held keyed by {@link ImportBase.mergeKey} and collapsed via
11
- * {@link ImportBase.merge}, with no language-specific logic. The spike
12
- * proved this same `Map` + merge serves TypeScript (per-module grouping,
13
- * type-tags) and Go (whole-package imports, discarded symbol lists)
14
- * identically — only the *arrangement* of the rendered import section
15
- * differs, which is why `toString()` stays abstract and lives on the
16
- * language subclass (`TsFile`, `GoFile`).
33
+ * Language-blind: the declaration type {@link findDefinitions} filters on is
34
+ * the opaque-boundary `string` here; a lang's concrete file narrows its own
35
+ * `findDefinitions` override to its `XxEntityType`.
36
+ *
37
+ * Pure contract — no fields, no merge logic. Storage AND the duplication/merge
38
+ * policy are language-specific and live in the concrete lang subclass; the
39
+ * engine speaks only these four neutral operations — three writers driven by
40
+ * `register`, plus {@link findDefinitions}, the read seam the cross-generator
41
+ * cache and file inspection use. The cache resolves a single primary by name
42
+ * via `findDefinitions({ name })?.[0]`.
17
43
  */
18
44
  export declare abstract class CodeFileBase extends FileBase {
19
- /** Registered imports, keyed by {@link ImportBase.mergeKey}. */
20
- imports: Map<string, ImportBase>;
21
- /** Registered re-exports, keyed by {@link ReExportBase.mergeKey}. */
22
- reExports: Map<string, ReExportBase>;
23
45
  /**
24
- * Merge imports in, collapsing any that share a `mergeKey()` with an
25
- * existing entry via {@link ImportBase.merge}. Neutral — the engine's
26
- * `register` calls this on the abstract base for every language's file.
46
+ * Add a definition, applying the language's duplication rule (e.g.
47
+ * TypeScript declaration merging). Called by the engine's `register`.
48
+ */
49
+ abstract addDefinition(definition: DefinitionBase): void;
50
+ /**
51
+ * Merge imports in, applying the language's collapse rule (typically
52
+ * keyed by {@link ImportBase.mergeKey} and combined via
53
+ * {@link ImportBase.merge}). Called by the engine's `register`.
54
+ */
55
+ abstract addImports(imports: ImportBase[]): void;
56
+ /**
57
+ * Merge re-exports in, applying the language's collapse rule. Called by the
58
+ * engine's `register`; a language without re-exports never receives any.
27
59
  */
28
- addImports(incoming: ImportBase[]): void;
60
+ abstract addReExports(reExports: ReExportBase[]): void;
29
61
  /**
30
- * Merge re-exports in, collapsing any that share a `mergeKey()` with an
31
- * existing entry via {@link ReExportBase.merge}. Neutral — the engine's
32
- * `register` calls this on the abstract base; a language without
33
- * re-exports never receives any (its concise register vocabulary has no
34
- * `reExports` field).
62
+ * Query the file's definitions. With no `name`/`type` → every definition (an
63
+ * array; the neutral "list all" used to inspect a file, e.g. assert the
64
+ * peer-dedup invariant). With `name` and/or `type` → the matching subset, or
65
+ * `undefined` when nothing matches. `type` is the declaration type as the
66
+ * opaque `string`; a lang's concrete file may narrow it. Implement with
67
+ * {@link matchDefinitions}.
35
68
  */
36
- addReExports(incoming: ReExportBase[]): void;
69
+ abstract findDefinitions(query?: FindDefinitionsQuery): DefinitionBase[] | undefined;
37
70
  }
38
71
  //# sourceMappingURL=CodeFileBase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CodeFileBase.d.ts","sourceRoot":"","sources":["../../src/dsl/CodeFileBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;;;;;;;;;;GAaG;AACH,8BAAsB,YAAa,SAAQ,QAAQ;IACjD,gEAAgE;IAChE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAY;IAE5C,qEAAqE;IACrE,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAY;IAEhD;;;;OAIG;IACH,UAAU,CAAC,QAAQ,EAAE,UAAU,EAAE,GAAG,IAAI;IASxC;;;;;;OAMG;IACH,YAAY,CAAC,QAAQ,EAAE,YAAY,EAAE,GAAG,IAAI;CAQ7C"}
1
+ {"version":3,"file":"CodeFileBase.d.ts","sourceRoot":"","sources":["../../src/dsl/CodeFileBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAC3B,KAAK,cAAc,EAAE,EACrB,OAAO,oBAAoB,GAAG,SAAS,EACvC,QAAQ,CAAC,UAAU,EAAE,cAAc,KAAK,MAAM,GAAG,SAAS,KACzD,cAAc,EAAE,GAAG,SAerB,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,8BAAsB,YAAa,SAAQ,QAAQ;IACjD;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI;IAExD;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI;IAEhD;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,SAAS,EAAE,YAAY,EAAE,GAAG,IAAI;IAEtD;;;;;;;OAOG;IACH,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,cAAc,EAAE,GAAG,SAAS;CACrF"}
@@ -1,64 +1,47 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CodeFileBase = void 0;
3
+ exports.CodeFileBase = exports.matchDefinitions = void 0;
4
4
  const FileBase_js_1 = require("./FileBase.js");
5
+ /**
6
+ * The neutral name/type filter every language's `findDefinitions` shares. The
7
+ * language passes its definition list and a `typeOf` extractor — the one
8
+ * lang-specific bit, which narrows to the language's Identifier subclass to
9
+ * read the typed `type` (returned here as the opaque `string`).
10
+ *
11
+ * - no `name` and no `type` → returns `all` (the whole list; the former
12
+ * `listDefinitions`).
13
+ * - otherwise → the matching subset, or `undefined` when nothing matches.
14
+ */
15
+ const matchDefinitions = (all, query, typeOf) => {
16
+ const name = query?.name;
17
+ const type = query?.type;
18
+ if (name === undefined && type === undefined) {
19
+ return all;
20
+ }
21
+ const matches = all.filter(definition => {
22
+ const nameMatches = name === undefined || definition.identifier.name === name;
23
+ const typeMatches = type === undefined || typeOf(definition.identifier) === type;
24
+ return nameMatches && typeMatches;
25
+ });
26
+ return matches.length > 0 ? matches : undefined;
27
+ };
28
+ exports.matchDefinitions = matchDefinitions;
5
29
  /**
6
30
  * The base every language's *code* file extends — a {@link FileBase} that
7
- * also carries imports. (`JsonFile`, which has no imports, extends
8
- * {@link FileBase} directly.)
31
+ * coordinates definitions, imports, and re-exports. (`JsonFile`, with none of
32
+ * these, extends {@link FileBase} directly.)
9
33
  *
10
- * The import collection and its merge are **language-neutral**: imports are
11
- * held keyed by {@link ImportBase.mergeKey} and collapsed via
12
- * {@link ImportBase.merge}, with no language-specific logic. The spike
13
- * proved this same `Map` + merge serves TypeScript (per-module grouping,
14
- * type-tags) and Go (whole-package imports, discarded symbol lists)
15
- * identically — only the *arrangement* of the rendered import section
16
- * differs, which is why `toString()` stays abstract and lives on the
17
- * language subclass (`TsFile`, `GoFile`).
34
+ * Language-blind: the declaration type {@link findDefinitions} filters on is
35
+ * the opaque-boundary `string` here; a lang's concrete file narrows its own
36
+ * `findDefinitions` override to its `XxEntityType`.
37
+ *
38
+ * Pure contract — no fields, no merge logic. Storage AND the duplication/merge
39
+ * policy are language-specific and live in the concrete lang subclass; the
40
+ * engine speaks only these four neutral operations — three writers driven by
41
+ * `register`, plus {@link findDefinitions}, the read seam the cross-generator
42
+ * cache and file inspection use. The cache resolves a single primary by name
43
+ * via `findDefinitions({ name })?.[0]`.
18
44
  */
19
45
  class CodeFileBase extends FileBase_js_1.FileBase {
20
- constructor() {
21
- super(...arguments);
22
- /** Registered imports, keyed by {@link ImportBase.mergeKey}. */
23
- Object.defineProperty(this, "imports", {
24
- enumerable: true,
25
- configurable: true,
26
- writable: true,
27
- value: new Map()
28
- });
29
- /** Registered re-exports, keyed by {@link ReExportBase.mergeKey}. */
30
- Object.defineProperty(this, "reExports", {
31
- enumerable: true,
32
- configurable: true,
33
- writable: true,
34
- value: new Map()
35
- });
36
- }
37
- /**
38
- * Merge imports in, collapsing any that share a `mergeKey()` with an
39
- * existing entry via {@link ImportBase.merge}. Neutral — the engine's
40
- * `register` calls this on the abstract base for every language's file.
41
- */
42
- addImports(incoming) {
43
- for (const importEntry of incoming) {
44
- const key = importEntry.mergeKey();
45
- const existing = this.imports.get(key);
46
- this.imports.set(key, existing ? existing.merge(importEntry) : importEntry);
47
- }
48
- }
49
- /**
50
- * Merge re-exports in, collapsing any that share a `mergeKey()` with an
51
- * existing entry via {@link ReExportBase.merge}. Neutral — the engine's
52
- * `register` calls this on the abstract base; a language without
53
- * re-exports never receives any (its concise register vocabulary has no
54
- * `reExports` field).
55
- */
56
- addReExports(incoming) {
57
- for (const reExportEntry of incoming) {
58
- const key = reExportEntry.mergeKey();
59
- const existing = this.reExports.get(key);
60
- this.reExports.set(key, existing ? existing.merge(reExportEntry) : reExportEntry);
61
- }
62
- }
63
46
  }
64
47
  exports.CodeFileBase = CodeFileBase;
@@ -1,41 +1,37 @@
1
- import type { DefinitionBase } from './Definition.js';
1
+ import type { Stringable } from './Stringable.js';
2
2
  /**
3
3
  * The language-neutral coordination surface shared by the engine and
4
4
  * every `@skmtc/lang-*` package's concrete file subclass.
5
5
  *
6
- * The engine (`GenerateContext` and the cross-generator cache) only ever
7
- * reads this surface — the file's `path` and its `definitions` map. It
8
- * never reads a file's language-specific output state (imports,
9
- * re-exports) or its rendered string, which is what keeps the engine
10
- * language-blind. A language package subclasses `FileBase`, adds its own
11
- * output state, and implements `toString()` to render itself.
6
+ * `FileBase` carries only what is common to *every* file — code or not:
7
+ * its `path`, an optional free-form `custom` content slot, and the
8
+ * `toString()` contract. It holds NO definitions, imports, or dedup
9
+ * policy — those are code-file concerns that live on {@link CodeFileBase}
10
+ * and the language subclass, which is what keeps the engine
11
+ * language-blind.
12
12
  *
13
- * `JsonFile` extends this too — a JSON file is a `FileBase` whose
14
- * `definitions` map stays empty and whose `toString()` serialises its
15
- * content. (See notes/lang: "JSON is a degenerate language".)
13
+ * `JsonFile` extends this directly — a JSON file has a `path`, serialises
14
+ * its content in `toString()`, and never touches definitions. (See
15
+ * notes/lang: "JSON is a degenerate language".)
16
16
  *
17
- * Lives in its own leaf module (only a type-only `DefinitionBase` import)
18
- * so that `File` and `JsonFile` — which both `extends FileBase` — can
19
- * import it without forming a value-level import cycle through `File.ts`.
17
+ * Lives in its own leaf module (only a type-only `Stringable` import) so
18
+ * that the file subclasses can import it without forming a value-level
19
+ * import cycle.
20
20
  */
21
21
  export declare abstract class FileBase {
22
22
  /** The file path for this generated file */
23
23
  path: string;
24
- /** Map of definition names to their Definition objects */
25
- definitions: Map<string, DefinitionBase>;
24
+ /**
25
+ * Optional free-form content. On a code file this is the leading banner
26
+ * (e.g. a codegen header); on an ad-hoc non-code file (Markdown, plain
27
+ * text) it can carry the body. Inert until a concrete subclass renders
28
+ * it in `toString()`. Set through the neutral `register` vocabulary's
29
+ * `custom` field (last write wins).
30
+ */
31
+ custom: Stringable | undefined;
26
32
  constructor({ path }: {
27
33
  path: string;
28
34
  });
29
- /**
30
- * Add a definition, deduplicating by identifier name (first write wins).
31
- *
32
- * Neutral: the engine's `register` calls this on the abstract base, so it
33
- * works for every language's file. Per-language duplication rules (e.g.
34
- * TypeScript declaration merging — a class and its `declare namespace`
35
- * sharing a name) belong in the language's file subclass, which overrides
36
- * this method.
37
- */
38
- addDefinition(definition: DefinitionBase): void;
39
35
  /** Renders the file's complete contents. Implemented by the subclass. */
40
36
  abstract toString(): string;
41
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FileBase.d.ts","sourceRoot":"","sources":["../../src/dsl/FileBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACH,8BAAsB,QAAQ;IAC5B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAA;IAEZ,0DAA0D;IAC1D,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;gBAE5B,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAKtC;;;;;;;;OAQG;IACH,aAAa,CAAC,UAAU,EAAE,cAAc,GAAG,IAAI;IAM/C,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,IAAI,MAAM;CAC5B"}
1
+ {"version":3,"file":"FileBase.d.ts","sourceRoot":"","sources":["../../src/dsl/FileBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;;;;;;;;;;;;;;;;;GAkBG;AACH,8BAAsB,QAAQ;IAC5B,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAA;IAEZ;;;;;;OAMG;IACH,MAAM,EAAE,UAAU,GAAG,SAAS,CAAA;gBAElB,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAItC,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,IAAI,MAAM;CAC5B"}
@@ -5,20 +5,20 @@ exports.FileBase = void 0;
5
5
  * The language-neutral coordination surface shared by the engine and
6
6
  * every `@skmtc/lang-*` package's concrete file subclass.
7
7
  *
8
- * The engine (`GenerateContext` and the cross-generator cache) only ever
9
- * reads this surface — the file's `path` and its `definitions` map. It
10
- * never reads a file's language-specific output state (imports,
11
- * re-exports) or its rendered string, which is what keeps the engine
12
- * language-blind. A language package subclasses `FileBase`, adds its own
13
- * output state, and implements `toString()` to render itself.
8
+ * `FileBase` carries only what is common to *every* file — code or not:
9
+ * its `path`, an optional free-form `custom` content slot, and the
10
+ * `toString()` contract. It holds NO definitions, imports, or dedup
11
+ * policy — those are code-file concerns that live on {@link CodeFileBase}
12
+ * and the language subclass, which is what keeps the engine
13
+ * language-blind.
14
14
  *
15
- * `JsonFile` extends this too — a JSON file is a `FileBase` whose
16
- * `definitions` map stays empty and whose `toString()` serialises its
17
- * content. (See notes/lang: "JSON is a degenerate language".)
15
+ * `JsonFile` extends this directly — a JSON file has a `path`, serialises
16
+ * its content in `toString()`, and never touches definitions. (See
17
+ * notes/lang: "JSON is a degenerate language".)
18
18
  *
19
- * Lives in its own leaf module (only a type-only `DefinitionBase` import)
20
- * so that `File` and `JsonFile` — which both `extends FileBase` — can
21
- * import it without forming a value-level import cycle through `File.ts`.
19
+ * Lives in its own leaf module (only a type-only `Stringable` import) so
20
+ * that the file subclasses can import it without forming a value-level
21
+ * import cycle.
22
22
  */
23
23
  class FileBase {
24
24
  constructor({ path }) {
@@ -29,29 +29,20 @@ class FileBase {
29
29
  writable: true,
30
30
  value: void 0
31
31
  });
32
- /** Map of definition names to their Definition objects */
33
- Object.defineProperty(this, "definitions", {
32
+ /**
33
+ * Optional free-form content. On a code file this is the leading banner
34
+ * (e.g. a codegen header); on an ad-hoc non-code file (Markdown, plain
35
+ * text) it can carry the body. Inert until a concrete subclass renders
36
+ * it in `toString()`. Set through the neutral `register` vocabulary's
37
+ * `custom` field (last write wins).
38
+ */
39
+ Object.defineProperty(this, "custom", {
34
40
  enumerable: true,
35
41
  configurable: true,
36
42
  writable: true,
37
43
  value: void 0
38
44
  });
39
45
  this.path = path;
40
- this.definitions = new Map();
41
- }
42
- /**
43
- * Add a definition, deduplicating by identifier name (first write wins).
44
- *
45
- * Neutral: the engine's `register` calls this on the abstract base, so it
46
- * works for every language's file. Per-language duplication rules (e.g.
47
- * TypeScript declaration merging — a class and its `declare namespace`
48
- * sharing a name) belong in the language's file subclass, which overrides
49
- * this method.
50
- */
51
- addDefinition(definition) {
52
- if (!this.definitions.has(definition.identifier.name)) {
53
- this.definitions.set(definition.identifier.name, definition);
54
- }
55
46
  }
56
47
  }
57
48
  exports.FileBase = FileBase;