@yaag/cli 0.1.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 (768) hide show
  1. package/assets/types/runtime/agent-names.d.ts +8 -0
  2. package/assets/types/runtime/agent-usage.d.ts +16 -0
  3. package/assets/types/runtime/agent.d.ts +36 -0
  4. package/assets/types/runtime/args-validation.d.ts +3 -0
  5. package/assets/types/runtime/ask-activity.d.ts +9 -0
  6. package/assets/types/runtime/ask-contract-identity.d.ts +25 -0
  7. package/assets/types/runtime/ask-exchange-events.d.ts +13 -0
  8. package/assets/types/runtime/ask-exchange-options.d.ts +30 -0
  9. package/assets/types/runtime/ask-exchange.d.ts +4 -0
  10. package/assets/types/runtime/ask-hash.d.ts +32 -0
  11. package/assets/types/runtime/ask-limit.d.ts +46 -0
  12. package/assets/types/runtime/ask-output-steering.d.ts +28 -0
  13. package/assets/types/runtime/ask-output-tail.d.ts +28 -0
  14. package/assets/types/runtime/ask-output.d.ts +29 -0
  15. package/assets/types/runtime/ask-settlement.d.ts +11 -0
  16. package/assets/types/runtime/ask-turn.d.ts +25 -0
  17. package/assets/types/runtime/cassette-loader.d.ts +11 -0
  18. package/assets/types/runtime/cassette-publish.d.ts +11 -0
  19. package/assets/types/runtime/cassette-replay.d.ts +24 -0
  20. package/assets/types/runtime/cassette-schema.d.ts +111 -0
  21. package/assets/types/runtime/cassette.d.ts +118 -0
  22. package/assets/types/runtime/checkpoint-dir.d.ts +30 -0
  23. package/assets/types/runtime/connection.d.ts +29 -0
  24. package/assets/types/runtime/define-agent.d.ts +48 -0
  25. package/assets/types/runtime/define-run.d.ts +40 -0
  26. package/assets/types/runtime/errors.d.ts +50 -0
  27. package/assets/types/runtime/events.d.ts +138 -0
  28. package/assets/types/runtime/extension-package.d.ts +17 -0
  29. package/assets/types/runtime/extension-paths.d.ts +16 -0
  30. package/assets/types/runtime/extension-source.d.ts +28 -0
  31. package/assets/types/runtime/fake-transport.d.ts +78 -0
  32. package/assets/types/runtime/frame-gap.d.ts +23 -0
  33. package/assets/types/runtime/frame-queue.d.ts +15 -0
  34. package/assets/types/runtime/git-facts.d.ts +7 -0
  35. package/assets/types/runtime/idle-watch.d.ts +44 -0
  36. package/assets/types/runtime/index.d.ts +33 -0
  37. package/assets/types/runtime/jsonl.d.ts +13 -0
  38. package/assets/types/runtime/live-transport.d.ts +3 -0
  39. package/assets/types/runtime/node-decoder-subagent.d.ts +7 -0
  40. package/assets/types/runtime/node-decoder-workflow.d.ts +12 -0
  41. package/assets/types/runtime/node-decoder.d.ts +21 -0
  42. package/assets/types/runtime/node-decoders.d.ts +3 -0
  43. package/assets/types/runtime/node-details.d.ts +22 -0
  44. package/assets/types/runtime/node-path.d.ts +19 -0
  45. package/assets/types/runtime/node-tracker.d.ts +30 -0
  46. package/assets/types/runtime/pi-state.d.ts +16 -0
  47. package/assets/types/runtime/prompt-gist.d.ts +8 -0
  48. package/assets/types/runtime/prompt.d.ts +9 -0
  49. package/assets/types/runtime/reap.d.ts +22 -0
  50. package/assets/types/runtime/recording-transport.d.ts +9 -0
  51. package/assets/types/runtime/replay-divergence.d.ts +19 -0
  52. package/assets/types/runtime/replay-transport.d.ts +9 -0
  53. package/assets/types/runtime/resume-preconditions.d.ts +8 -0
  54. package/assets/types/runtime/resume-transport.d.ts +9 -0
  55. package/assets/types/runtime/run-checkpoint.d.ts +28 -0
  56. package/assets/types/runtime/run-context.d.ts +18 -0
  57. package/assets/types/runtime/run.d.ts +60 -0
  58. package/assets/types/runtime/skill-probe.d.ts +71 -0
  59. package/assets/types/runtime/skill-restriction-transport.d.ts +8 -0
  60. package/assets/types/runtime/spawn.d.ts +24 -0
  61. package/assets/types/runtime/summary-agent.d.ts +123 -0
  62. package/assets/types/runtime/summary-nodes.d.ts +28 -0
  63. package/assets/types/runtime/summary.d.ts +55 -0
  64. package/assets/types/runtime/tool-probe-extension.d.ts +12 -0
  65. package/assets/types/runtime/tool-probe.d.ts +30 -0
  66. package/assets/types/runtime/transport.d.ts +143 -0
  67. package/assets/types/runtime/types.d.ts +120 -0
  68. package/assets/types/runtime/validation-errors.d.ts +3 -0
  69. package/assets/types/runtime/wire-constants.d.ts +18 -0
  70. package/assets/types/runtime/worktree-transport.d.ts +9 -0
  71. package/assets/types/typebox/build/compile/code.d.mts +12 -0
  72. package/assets/types/typebox/build/compile/compile.d.mts +6 -0
  73. package/assets/types/typebox/build/compile/index.d.mts +8 -0
  74. package/assets/types/typebox/build/compile/validator.d.mts +35 -0
  75. package/assets/types/typebox/build/error/errors.d.mts +208 -0
  76. package/assets/types/typebox/build/error/index.d.mts +1 -0
  77. package/assets/types/typebox/build/format/_idna.d.mts +2 -0
  78. package/assets/types/typebox/build/format/_puny.d.mts +1 -0
  79. package/assets/types/typebox/build/format/_registry.d.mts +15 -0
  80. package/assets/types/typebox/build/format/date.d.mts +6 -0
  81. package/assets/types/typebox/build/format/date_time.d.mts +6 -0
  82. package/assets/types/typebox/build/format/duration.d.mts +5 -0
  83. package/assets/types/typebox/build/format/email.d.mts +5 -0
  84. package/assets/types/typebox/build/format/format.d.mts +22 -0
  85. package/assets/types/typebox/build/format/hostname.d.mts +7 -0
  86. package/assets/types/typebox/build/format/idn_email.d.mts +5 -0
  87. package/assets/types/typebox/build/format/idn_hostname.d.mts +7 -0
  88. package/assets/types/typebox/build/format/index.d.mts +4 -0
  89. package/assets/types/typebox/build/format/ipv4.d.mts +6 -0
  90. package/assets/types/typebox/build/format/ipv6.d.mts +5 -0
  91. package/assets/types/typebox/build/format/iri.d.mts +5 -0
  92. package/assets/types/typebox/build/format/iri_reference.d.mts +5 -0
  93. package/assets/types/typebox/build/format/json_pointer.d.mts +6 -0
  94. package/assets/types/typebox/build/format/json_pointer_uri_fragment.d.mts +6 -0
  95. package/assets/types/typebox/build/format/regex.d.mts +6 -0
  96. package/assets/types/typebox/build/format/relative_json_pointer.d.mts +6 -0
  97. package/assets/types/typebox/build/format/time.d.mts +5 -0
  98. package/assets/types/typebox/build/format/uri.d.mts +5 -0
  99. package/assets/types/typebox/build/format/uri_reference.d.mts +5 -0
  100. package/assets/types/typebox/build/format/uri_template.d.mts +6 -0
  101. package/assets/types/typebox/build/format/url.d.mts +6 -0
  102. package/assets/types/typebox/build/format/uuid.d.mts +6 -0
  103. package/assets/types/typebox/build/guard/emit.d.mts +54 -0
  104. package/assets/types/typebox/build/guard/globals.d.mts +35 -0
  105. package/assets/types/typebox/build/guard/guard.d.mts +65 -0
  106. package/assets/types/typebox/build/guard/index.d.mts +6 -0
  107. package/assets/types/typebox/build/guard/native.d.mts +20 -0
  108. package/assets/types/typebox/build/guard/string.d.mts +6 -0
  109. package/assets/types/typebox/build/index.d.mts +8 -0
  110. package/assets/types/typebox/build/schema/build.d.mts +39 -0
  111. package/assets/types/typebox/build/schema/check.d.mts +6 -0
  112. package/assets/types/typebox/build/schema/compile.d.mts +22 -0
  113. package/assets/types/typebox/build/schema/engine/_context.d.mts +35 -0
  114. package/assets/types/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
  115. package/assets/types/typebox/build/schema/engine/_externals.d.mts +7 -0
  116. package/assets/types/typebox/build/schema/engine/_functions.d.mts +6 -0
  117. package/assets/types/typebox/build/schema/engine/_reducer.d.mts +4 -0
  118. package/assets/types/typebox/build/schema/engine/_refine.d.mts +6 -0
  119. package/assets/types/typebox/build/schema/engine/_stack.d.mts +18 -0
  120. package/assets/types/typebox/build/schema/engine/_unique.d.mts +2 -0
  121. package/assets/types/typebox/build/schema/engine/additionalItems.d.mts +6 -0
  122. package/assets/types/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
  123. package/assets/types/typebox/build/schema/engine/allOf.d.mts +6 -0
  124. package/assets/types/typebox/build/schema/engine/anyOf.d.mts +6 -0
  125. package/assets/types/typebox/build/schema/engine/boolean.d.mts +5 -0
  126. package/assets/types/typebox/build/schema/engine/const.d.mts +6 -0
  127. package/assets/types/typebox/build/schema/engine/contains.d.mts +6 -0
  128. package/assets/types/typebox/build/schema/engine/dependencies.d.mts +6 -0
  129. package/assets/types/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
  130. package/assets/types/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
  131. package/assets/types/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
  132. package/assets/types/typebox/build/schema/engine/enum.d.mts +6 -0
  133. package/assets/types/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
  134. package/assets/types/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
  135. package/assets/types/typebox/build/schema/engine/format.d.mts +6 -0
  136. package/assets/types/typebox/build/schema/engine/if.d.mts +6 -0
  137. package/assets/types/typebox/build/schema/engine/index.d.mts +48 -0
  138. package/assets/types/typebox/build/schema/engine/items.d.mts +6 -0
  139. package/assets/types/typebox/build/schema/engine/maxContains.d.mts +6 -0
  140. package/assets/types/typebox/build/schema/engine/maxItems.d.mts +6 -0
  141. package/assets/types/typebox/build/schema/engine/maxLength.d.mts +6 -0
  142. package/assets/types/typebox/build/schema/engine/maxProperties.d.mts +6 -0
  143. package/assets/types/typebox/build/schema/engine/maximum.d.mts +6 -0
  144. package/assets/types/typebox/build/schema/engine/minContains.d.mts +6 -0
  145. package/assets/types/typebox/build/schema/engine/minItems.d.mts +6 -0
  146. package/assets/types/typebox/build/schema/engine/minLength.d.mts +6 -0
  147. package/assets/types/typebox/build/schema/engine/minProperties.d.mts +6 -0
  148. package/assets/types/typebox/build/schema/engine/minimum.d.mts +6 -0
  149. package/assets/types/typebox/build/schema/engine/multipleOf.d.mts +6 -0
  150. package/assets/types/typebox/build/schema/engine/not.d.mts +6 -0
  151. package/assets/types/typebox/build/schema/engine/oneOf.d.mts +6 -0
  152. package/assets/types/typebox/build/schema/engine/pattern.d.mts +6 -0
  153. package/assets/types/typebox/build/schema/engine/patternProperties.d.mts +6 -0
  154. package/assets/types/typebox/build/schema/engine/prefixItems.d.mts +6 -0
  155. package/assets/types/typebox/build/schema/engine/properties.d.mts +6 -0
  156. package/assets/types/typebox/build/schema/engine/propertyNames.d.mts +6 -0
  157. package/assets/types/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
  158. package/assets/types/typebox/build/schema/engine/ref.d.mts +6 -0
  159. package/assets/types/typebox/build/schema/engine/required.d.mts +6 -0
  160. package/assets/types/typebox/build/schema/engine/schema.d.mts +9 -0
  161. package/assets/types/typebox/build/schema/engine/type.d.mts +6 -0
  162. package/assets/types/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
  163. package/assets/types/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
  164. package/assets/types/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
  165. package/assets/types/typebox/build/schema/errors.d.mts +6 -0
  166. package/assets/types/typebox/build/schema/index.d.mts +3 -0
  167. package/assets/types/typebox/build/schema/parse.d.mts +13 -0
  168. package/assets/types/typebox/build/schema/pointer/index.d.mts +2 -0
  169. package/assets/types/typebox/build/schema/pointer/pointer.d.mts +10 -0
  170. package/assets/types/typebox/build/schema/pointer/pointer_get.d.mts +9 -0
  171. package/assets/types/typebox/build/schema/resolve/index.d.mts +1 -0
  172. package/assets/types/typebox/build/schema/resolve/ref.d.mts +3 -0
  173. package/assets/types/typebox/build/schema/resolve/resolve.d.mts +1 -0
  174. package/assets/types/typebox/build/schema/schema.d.mts +10 -0
  175. package/assets/types/typebox/build/schema/static/_canonical.d.mts +7 -0
  176. package/assets/types/typebox/build/schema/static/_comparer.d.mts +6 -0
  177. package/assets/types/typebox/build/schema/static/_elements.d.mts +18 -0
  178. package/assets/types/typebox/build/schema/static/additionalProperties.d.mts +7 -0
  179. package/assets/types/typebox/build/schema/static/allOf.d.mts +3 -0
  180. package/assets/types/typebox/build/schema/static/anyOf.d.mts +3 -0
  181. package/assets/types/typebox/build/schema/static/const.d.mts +1 -0
  182. package/assets/types/typebox/build/schema/static/enum.d.mts +1 -0
  183. package/assets/types/typebox/build/schema/static/if.d.mts +15 -0
  184. package/assets/types/typebox/build/schema/static/index.d.mts +1 -0
  185. package/assets/types/typebox/build/schema/static/items.d.mts +7 -0
  186. package/assets/types/typebox/build/schema/static/oneOf.d.mts +3 -0
  187. package/assets/types/typebox/build/schema/static/patternProperties.d.mts +7 -0
  188. package/assets/types/typebox/build/schema/static/prefixItems.d.mts +3 -0
  189. package/assets/types/typebox/build/schema/static/properties.d.mts +32 -0
  190. package/assets/types/typebox/build/schema/static/ref.d.mts +8 -0
  191. package/assets/types/typebox/build/schema/static/required.d.mts +3 -0
  192. package/assets/types/typebox/build/schema/static/schema.d.mts +56 -0
  193. package/assets/types/typebox/build/schema/static/static.d.mts +4 -0
  194. package/assets/types/typebox/build/schema/static/type.d.mts +4 -0
  195. package/assets/types/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
  196. package/assets/types/typebox/build/schema/types/_refine.d.mts +13 -0
  197. package/assets/types/typebox/build/schema/types/additionalItems.d.mts +9 -0
  198. package/assets/types/typebox/build/schema/types/additionalProperties.d.mts +9 -0
  199. package/assets/types/typebox/build/schema/types/allOf.d.mts +9 -0
  200. package/assets/types/typebox/build/schema/types/anchor.d.mts +8 -0
  201. package/assets/types/typebox/build/schema/types/anyOf.d.mts +9 -0
  202. package/assets/types/typebox/build/schema/types/const.d.mts +9 -0
  203. package/assets/types/typebox/build/schema/types/contains.d.mts +9 -0
  204. package/assets/types/typebox/build/schema/types/contentEncoding.d.mts +9 -0
  205. package/assets/types/typebox/build/schema/types/contentMediaType.d.mts +9 -0
  206. package/assets/types/typebox/build/schema/types/default.d.mts +9 -0
  207. package/assets/types/typebox/build/schema/types/defs.d.mts +6 -0
  208. package/assets/types/typebox/build/schema/types/dependencies.d.mts +11 -0
  209. package/assets/types/typebox/build/schema/types/dependentRequired.d.mts +9 -0
  210. package/assets/types/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
  211. package/assets/types/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
  212. package/assets/types/typebox/build/schema/types/dynamicRef.d.mts +8 -0
  213. package/assets/types/typebox/build/schema/types/else.d.mts +9 -0
  214. package/assets/types/typebox/build/schema/types/enum.d.mts +9 -0
  215. package/assets/types/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
  216. package/assets/types/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
  217. package/assets/types/typebox/build/schema/types/format.d.mts +9 -0
  218. package/assets/types/typebox/build/schema/types/id.d.mts +9 -0
  219. package/assets/types/typebox/build/schema/types/if.d.mts +9 -0
  220. package/assets/types/typebox/build/schema/types/index.d.mts +53 -0
  221. package/assets/types/typebox/build/schema/types/items.d.mts +19 -0
  222. package/assets/types/typebox/build/schema/types/maxContains.d.mts +9 -0
  223. package/assets/types/typebox/build/schema/types/maxItems.d.mts +9 -0
  224. package/assets/types/typebox/build/schema/types/maxLength.d.mts +9 -0
  225. package/assets/types/typebox/build/schema/types/maxProperties.d.mts +9 -0
  226. package/assets/types/typebox/build/schema/types/maximum.d.mts +9 -0
  227. package/assets/types/typebox/build/schema/types/minContains.d.mts +9 -0
  228. package/assets/types/typebox/build/schema/types/minItems.d.mts +9 -0
  229. package/assets/types/typebox/build/schema/types/minLength.d.mts +9 -0
  230. package/assets/types/typebox/build/schema/types/minProperties.d.mts +9 -0
  231. package/assets/types/typebox/build/schema/types/minimum.d.mts +9 -0
  232. package/assets/types/typebox/build/schema/types/multipleOf.d.mts +9 -0
  233. package/assets/types/typebox/build/schema/types/not.d.mts +9 -0
  234. package/assets/types/typebox/build/schema/types/oneOf.d.mts +9 -0
  235. package/assets/types/typebox/build/schema/types/pattern.d.mts +9 -0
  236. package/assets/types/typebox/build/schema/types/patternProperties.d.mts +9 -0
  237. package/assets/types/typebox/build/schema/types/prefixItems.d.mts +8 -0
  238. package/assets/types/typebox/build/schema/types/properties.d.mts +9 -0
  239. package/assets/types/typebox/build/schema/types/propertyNames.d.mts +9 -0
  240. package/assets/types/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
  241. package/assets/types/typebox/build/schema/types/recursiveRef.d.mts +8 -0
  242. package/assets/types/typebox/build/schema/types/ref.d.mts +9 -0
  243. package/assets/types/typebox/build/schema/types/required.d.mts +9 -0
  244. package/assets/types/typebox/build/schema/types/schema.d.mts +9 -0
  245. package/assets/types/typebox/build/schema/types/then.d.mts +9 -0
  246. package/assets/types/typebox/build/schema/types/type.d.mts +9 -0
  247. package/assets/types/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
  248. package/assets/types/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
  249. package/assets/types/typebox/build/schema/types/uniqueItems.d.mts +9 -0
  250. package/assets/types/typebox/build/system/arguments/arguments.d.mts +5 -0
  251. package/assets/types/typebox/build/system/arguments/index.d.mts +1 -0
  252. package/assets/types/typebox/build/system/environment/environment.d.mts +1 -0
  253. package/assets/types/typebox/build/system/environment/evaluate.d.mts +9 -0
  254. package/assets/types/typebox/build/system/environment/index.d.mts +1 -0
  255. package/assets/types/typebox/build/system/hashing/hash.d.mts +4 -0
  256. package/assets/types/typebox/build/system/hashing/index.d.mts +1 -0
  257. package/assets/types/typebox/build/system/index.d.mts +4 -0
  258. package/assets/types/typebox/build/system/locale/_config.d.mts +7 -0
  259. package/assets/types/typebox/build/system/locale/_locale.d.mts +40 -0
  260. package/assets/types/typebox/build/system/locale/ar_001.d.mts +3 -0
  261. package/assets/types/typebox/build/system/locale/bn_BD.d.mts +3 -0
  262. package/assets/types/typebox/build/system/locale/cs_CZ.d.mts +3 -0
  263. package/assets/types/typebox/build/system/locale/de_DE.d.mts +3 -0
  264. package/assets/types/typebox/build/system/locale/el_GR.d.mts +3 -0
  265. package/assets/types/typebox/build/system/locale/en_US.d.mts +3 -0
  266. package/assets/types/typebox/build/system/locale/es_419.d.mts +3 -0
  267. package/assets/types/typebox/build/system/locale/es_AR.d.mts +3 -0
  268. package/assets/types/typebox/build/system/locale/es_ES.d.mts +3 -0
  269. package/assets/types/typebox/build/system/locale/es_MX.d.mts +3 -0
  270. package/assets/types/typebox/build/system/locale/fa_IR.d.mts +3 -0
  271. package/assets/types/typebox/build/system/locale/fil_PH.d.mts +3 -0
  272. package/assets/types/typebox/build/system/locale/fr_CA.d.mts +3 -0
  273. package/assets/types/typebox/build/system/locale/fr_FR.d.mts +3 -0
  274. package/assets/types/typebox/build/system/locale/ha_NG.d.mts +3 -0
  275. package/assets/types/typebox/build/system/locale/hi_IN.d.mts +3 -0
  276. package/assets/types/typebox/build/system/locale/hu_HU.d.mts +3 -0
  277. package/assets/types/typebox/build/system/locale/id_ID.d.mts +3 -0
  278. package/assets/types/typebox/build/system/locale/index.d.mts +1 -0
  279. package/assets/types/typebox/build/system/locale/it_IT.d.mts +3 -0
  280. package/assets/types/typebox/build/system/locale/ja_JP.d.mts +3 -0
  281. package/assets/types/typebox/build/system/locale/ko_KR.d.mts +3 -0
  282. package/assets/types/typebox/build/system/locale/ms_MY.d.mts +3 -0
  283. package/assets/types/typebox/build/system/locale/nl_NL.d.mts +3 -0
  284. package/assets/types/typebox/build/system/locale/pl_PL.d.mts +3 -0
  285. package/assets/types/typebox/build/system/locale/pt_BR.d.mts +3 -0
  286. package/assets/types/typebox/build/system/locale/pt_PT.d.mts +3 -0
  287. package/assets/types/typebox/build/system/locale/ro_RO.d.mts +3 -0
  288. package/assets/types/typebox/build/system/locale/ru_RU.d.mts +3 -0
  289. package/assets/types/typebox/build/system/locale/sv_SE.d.mts +3 -0
  290. package/assets/types/typebox/build/system/locale/sw_TZ.d.mts +3 -0
  291. package/assets/types/typebox/build/system/locale/th_TH.d.mts +3 -0
  292. package/assets/types/typebox/build/system/locale/tr_TR.d.mts +3 -0
  293. package/assets/types/typebox/build/system/locale/uk_UA.d.mts +3 -0
  294. package/assets/types/typebox/build/system/locale/ur_PK.d.mts +3 -0
  295. package/assets/types/typebox/build/system/locale/vi_VN.d.mts +3 -0
  296. package/assets/types/typebox/build/system/locale/yo_NG.d.mts +3 -0
  297. package/assets/types/typebox/build/system/locale/zh_Hans.d.mts +3 -0
  298. package/assets/types/typebox/build/system/locale/zh_Hant.d.mts +3 -0
  299. package/assets/types/typebox/build/system/memory/assign.d.mts +14 -0
  300. package/assets/types/typebox/build/system/memory/clone.d.mts +5 -0
  301. package/assets/types/typebox/build/system/memory/create.d.mts +8 -0
  302. package/assets/types/typebox/build/system/memory/discard.d.mts +4 -0
  303. package/assets/types/typebox/build/system/memory/index.d.mts +1 -0
  304. package/assets/types/typebox/build/system/memory/memory.d.mts +6 -0
  305. package/assets/types/typebox/build/system/memory/metrics.d.mts +14 -0
  306. package/assets/types/typebox/build/system/memory/update.d.mts +7 -0
  307. package/assets/types/typebox/build/system/settings/index.d.mts +1 -0
  308. package/assets/types/typebox/build/system/settings/settings.d.mts +71 -0
  309. package/assets/types/typebox/build/system/system.d.mts +6 -0
  310. package/assets/types/typebox/build/system/unreachable/index.d.mts +1 -0
  311. package/assets/types/typebox/build/system/unreachable/unreachable.d.mts +3 -0
  312. package/assets/types/typebox/build/type/action/_add_immutable.d.mts +11 -0
  313. package/assets/types/typebox/build/type/action/_add_optional.d.mts +11 -0
  314. package/assets/types/typebox/build/type/action/_add_readonly.d.mts +11 -0
  315. package/assets/types/typebox/build/type/action/_remove_immutable.d.mts +11 -0
  316. package/assets/types/typebox/build/type/action/_remove_optional.d.mts +11 -0
  317. package/assets/types/typebox/build/type/action/_remove_readonly.d.mts +11 -0
  318. package/assets/types/typebox/build/type/action/capitalize.d.mts +11 -0
  319. package/assets/types/typebox/build/type/action/conditional.d.mts +12 -0
  320. package/assets/types/typebox/build/type/action/constructor_parameters.d.mts +11 -0
  321. package/assets/types/typebox/build/type/action/evaluate.d.mts +11 -0
  322. package/assets/types/typebox/build/type/action/exclude.d.mts +11 -0
  323. package/assets/types/typebox/build/type/action/extract.d.mts +11 -0
  324. package/assets/types/typebox/build/type/action/index.d.mts +30 -0
  325. package/assets/types/typebox/build/type/action/indexed.d.mts +14 -0
  326. package/assets/types/typebox/build/type/action/instance_type.d.mts +11 -0
  327. package/assets/types/typebox/build/type/action/interface.d.mts +14 -0
  328. package/assets/types/typebox/build/type/action/keyof.d.mts +11 -0
  329. package/assets/types/typebox/build/type/action/lowercase.d.mts +11 -0
  330. package/assets/types/typebox/build/type/action/mapped.d.mts +13 -0
  331. package/assets/types/typebox/build/type/action/module.d.mts +13 -0
  332. package/assets/types/typebox/build/type/action/non_nullable.d.mts +11 -0
  333. package/assets/types/typebox/build/type/action/omit.d.mts +14 -0
  334. package/assets/types/typebox/build/type/action/parameters.d.mts +11 -0
  335. package/assets/types/typebox/build/type/action/partial.d.mts +11 -0
  336. package/assets/types/typebox/build/type/action/pick.d.mts +14 -0
  337. package/assets/types/typebox/build/type/action/readonly_object.d.mts +16 -0
  338. package/assets/types/typebox/build/type/action/required.d.mts +11 -0
  339. package/assets/types/typebox/build/type/action/return_type.d.mts +11 -0
  340. package/assets/types/typebox/build/type/action/uncapitalize.d.mts +11 -0
  341. package/assets/types/typebox/build/type/action/uppercase.d.mts +11 -0
  342. package/assets/types/typebox/build/type/action/with.d.mts +11 -0
  343. package/assets/types/typebox/build/type/engine/call/distribute_arguments.d.mts +15 -0
  344. package/assets/types/typebox/build/type/engine/call/instantiate.d.mts +21 -0
  345. package/assets/types/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
  346. package/assets/types/typebox/build/type/engine/call/resolve_target.d.mts +25 -0
  347. package/assets/types/typebox/build/type/engine/conditional/index.d.mts +1 -0
  348. package/assets/types/typebox/build/type/engine/conditional/instantiate.d.mts +12 -0
  349. package/assets/types/typebox/build/type/engine/constructor_parameters/index.d.mts +1 -0
  350. package/assets/types/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +14 -0
  351. package/assets/types/typebox/build/type/engine/cyclic/candidates.d.mts +8 -0
  352. package/assets/types/typebox/build/type/engine/cyclic/check.d.mts +21 -0
  353. package/assets/types/typebox/build/type/engine/cyclic/dependencies.d.mts +22 -0
  354. package/assets/types/typebox/build/type/engine/cyclic/extends.d.mts +28 -0
  355. package/assets/types/typebox/build/type/engine/cyclic/index.d.mts +6 -0
  356. package/assets/types/typebox/build/type/engine/cyclic/instantiate.d.mts +17 -0
  357. package/assets/types/typebox/build/type/engine/cyclic/target.d.mts +10 -0
  358. package/assets/types/typebox/build/type/engine/enum/index.d.mts +1 -0
  359. package/assets/types/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +8 -0
  360. package/assets/types/typebox/build/type/engine/evaluate/broaden.d.mts +15 -0
  361. package/assets/types/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
  362. package/assets/types/typebox/build/type/engine/evaluate/composite.d.mts +34 -0
  363. package/assets/types/typebox/build/type/engine/evaluate/distribute.d.mts +28 -0
  364. package/assets/types/typebox/build/type/engine/evaluate/evaluate.d.mts +26 -0
  365. package/assets/types/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
  366. package/assets/types/typebox/build/type/engine/evaluate/index.d.mts +8 -0
  367. package/assets/types/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
  368. package/assets/types/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
  369. package/assets/types/typebox/build/type/engine/exclude/index.d.mts +1 -0
  370. package/assets/types/typebox/build/type/engine/exclude/instantiate.d.mts +9 -0
  371. package/assets/types/typebox/build/type/engine/exclude/operation.d.mts +10 -0
  372. package/assets/types/typebox/build/type/engine/extract/index.d.mts +1 -0
  373. package/assets/types/typebox/build/type/engine/extract/instantiate.d.mts +9 -0
  374. package/assets/types/typebox/build/type/engine/extract/operation.d.mts +10 -0
  375. package/assets/types/typebox/build/type/engine/helpers/index.d.mts +3 -0
  376. package/assets/types/typebox/build/type/engine/helpers/keys.d.mts +3 -0
  377. package/assets/types/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +7 -0
  378. package/assets/types/typebox/build/type/engine/helpers/union.d.mts +7 -0
  379. package/assets/types/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
  380. package/assets/types/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
  381. package/assets/types/typebox/build/type/engine/index.d.mts +31 -0
  382. package/assets/types/typebox/build/type/engine/indexable/from_cyclic.d.mts +6 -0
  383. package/assets/types/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
  384. package/assets/types/typebox/build/type/engine/indexable/from_enum.d.mts +6 -0
  385. package/assets/types/typebox/build/type/engine/indexable/from_intersect.d.mts +5 -0
  386. package/assets/types/typebox/build/type/engine/indexable/from_literal.d.mts +3 -0
  387. package/assets/types/typebox/build/type/engine/indexable/from_template_literal.d.mts +5 -0
  388. package/assets/types/typebox/build/type/engine/indexable/from_type.d.mts +19 -0
  389. package/assets/types/typebox/build/type/engine/indexable/from_union.d.mts +4 -0
  390. package/assets/types/typebox/build/type/engine/indexable/to_indexable.d.mts +9 -0
  391. package/assets/types/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +10 -0
  392. package/assets/types/typebox/build/type/engine/indexed/array_indexer.d.mts +12 -0
  393. package/assets/types/typebox/build/type/engine/indexed/from_array.d.mts +15 -0
  394. package/assets/types/typebox/build/type/engine/indexed/from_object.d.mts +16 -0
  395. package/assets/types/typebox/build/type/engine/indexed/from_tuple.d.mts +13 -0
  396. package/assets/types/typebox/build/type/engine/indexed/from_type.d.mts +11 -0
  397. package/assets/types/typebox/build/type/engine/indexed/index.d.mts +1 -0
  398. package/assets/types/typebox/build/type/engine/indexed/instantiate.d.mts +16 -0
  399. package/assets/types/typebox/build/type/engine/instance_type/index.d.mts +1 -0
  400. package/assets/types/typebox/build/type/engine/instance_type/instantiate.d.mts +12 -0
  401. package/assets/types/typebox/build/type/engine/instantiate.d.mts +178 -0
  402. package/assets/types/typebox/build/type/engine/interface/index.d.mts +1 -0
  403. package/assets/types/typebox/build/type/engine/interface/instantiate.d.mts +15 -0
  404. package/assets/types/typebox/build/type/engine/intrinsics/from_literal.d.mts +5 -0
  405. package/assets/types/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +6 -0
  406. package/assets/types/typebox/build/type/engine/intrinsics/from_type.d.mts +10 -0
  407. package/assets/types/typebox/build/type/engine/intrinsics/from_union.d.mts +6 -0
  408. package/assets/types/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
  409. package/assets/types/typebox/build/type/engine/intrinsics/instantiate.d.mts +38 -0
  410. package/assets/types/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
  411. package/assets/types/typebox/build/type/engine/keyof/from_any.d.mts +6 -0
  412. package/assets/types/typebox/build/type/engine/keyof/from_array.d.mts +4 -0
  413. package/assets/types/typebox/build/type/engine/keyof/from_object.d.mts +10 -0
  414. package/assets/types/typebox/build/type/engine/keyof/from_record.d.mts +4 -0
  415. package/assets/types/typebox/build/type/engine/keyof/from_tuple.d.mts +5 -0
  416. package/assets/types/typebox/build/type/engine/keyof/from_type.d.mts +15 -0
  417. package/assets/types/typebox/build/type/engine/keyof/index.d.mts +1 -0
  418. package/assets/types/typebox/build/type/engine/keyof/instantiate.d.mts +16 -0
  419. package/assets/types/typebox/build/type/engine/mapped/index.d.mts +1 -0
  420. package/assets/types/typebox/build/type/engine/mapped/instantiate.d.mts +10 -0
  421. package/assets/types/typebox/build/type/engine/mapped/mapped_operation.d.mts +22 -0
  422. package/assets/types/typebox/build/type/engine/mapped/mapped_variants.d.mts +17 -0
  423. package/assets/types/typebox/build/type/engine/module/index.d.mts +1 -0
  424. package/assets/types/typebox/build/type/engine/module/instantiate.d.mts +19 -0
  425. package/assets/types/typebox/build/type/engine/non_nullable/index.d.mts +1 -0
  426. package/assets/types/typebox/build/type/engine/non_nullable/instantiate.d.mts +14 -0
  427. package/assets/types/typebox/build/type/engine/object/collapse.d.mts +12 -0
  428. package/assets/types/typebox/build/type/engine/object/from_cyclic.d.mts +6 -0
  429. package/assets/types/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
  430. package/assets/types/typebox/build/type/engine/object/from_intersect.d.mts +17 -0
  431. package/assets/types/typebox/build/type/engine/object/from_object.d.mts +3 -0
  432. package/assets/types/typebox/build/type/engine/object/from_tuple.d.mts +6 -0
  433. package/assets/types/typebox/build/type/engine/object/from_type.d.mts +16 -0
  434. package/assets/types/typebox/build/type/engine/object/from_union.d.mts +12 -0
  435. package/assets/types/typebox/build/type/engine/object/index.d.mts +1 -0
  436. package/assets/types/typebox/build/type/engine/omit/from_type.d.mts +12 -0
  437. package/assets/types/typebox/build/type/engine/omit/index.d.mts +1 -0
  438. package/assets/types/typebox/build/type/engine/omit/instantiate.d.mts +9 -0
  439. package/assets/types/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
  440. package/assets/types/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
  441. package/assets/types/typebox/build/type/engine/parameters/index.d.mts +1 -0
  442. package/assets/types/typebox/build/type/engine/parameters/instantiate.d.mts +14 -0
  443. package/assets/types/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
  444. package/assets/types/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
  445. package/assets/types/typebox/build/type/engine/partial/from_intersect.d.mts +5 -0
  446. package/assets/types/typebox/build/type/engine/partial/from_object.d.mts +8 -0
  447. package/assets/types/typebox/build/type/engine/partial/from_type.d.mts +14 -0
  448. package/assets/types/typebox/build/type/engine/partial/from_union.d.mts +5 -0
  449. package/assets/types/typebox/build/type/engine/partial/index.d.mts +1 -0
  450. package/assets/types/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
  451. package/assets/types/typebox/build/type/engine/patterns/index.d.mts +2 -0
  452. package/assets/types/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
  453. package/assets/types/typebox/build/type/engine/patterns/template.d.mts +7 -0
  454. package/assets/types/typebox/build/type/engine/pick/from_type.d.mts +13 -0
  455. package/assets/types/typebox/build/type/engine/pick/index.d.mts +1 -0
  456. package/assets/types/typebox/build/type/engine/pick/instantiate.d.mts +9 -0
  457. package/assets/types/typebox/build/type/engine/priority/index.d.mts +1 -0
  458. package/assets/types/typebox/build/type/engine/priority/priority.d.mts +20 -0
  459. package/assets/types/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
  460. package/assets/types/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
  461. package/assets/types/typebox/build/type/engine/readonly_object/from_array.d.mts +5 -0
  462. package/assets/types/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
  463. package/assets/types/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
  464. package/assets/types/typebox/build/type/engine/readonly_object/from_intersect.d.mts +5 -0
  465. package/assets/types/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
  466. package/assets/types/typebox/build/type/engine/readonly_object/from_tuple.d.mts +5 -0
  467. package/assets/types/typebox/build/type/engine/readonly_object/from_type.d.mts +18 -0
  468. package/assets/types/typebox/build/type/engine/readonly_object/from_union.d.mts +5 -0
  469. package/assets/types/typebox/build/type/engine/readonly_object/index.d.mts +1 -0
  470. package/assets/types/typebox/build/type/engine/readonly_object/instantiate.d.mts +9 -0
  471. package/assets/types/typebox/build/type/engine/record/from_key.d.mts +24 -0
  472. package/assets/types/typebox/build/type/engine/record/from_key_any.d.mts +4 -0
  473. package/assets/types/typebox/build/type/engine/record/from_key_boolean.d.mts +7 -0
  474. package/assets/types/typebox/build/type/engine/record/from_key_enum.d.mts +6 -0
  475. package/assets/types/typebox/build/type/engine/record/from_key_integer.d.mts +5 -0
  476. package/assets/types/typebox/build/type/engine/record/from_key_intersect.d.mts +5 -0
  477. package/assets/types/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
  478. package/assets/types/typebox/build/type/engine/record/from_key_number.d.mts +5 -0
  479. package/assets/types/typebox/build/type/engine/record/from_key_string.d.mts +5 -0
  480. package/assets/types/typebox/build/type/engine/record/from_key_template_literal.d.mts +8 -0
  481. package/assets/types/typebox/build/type/engine/record/from_key_union.d.mts +20 -0
  482. package/assets/types/typebox/build/type/engine/record/index.d.mts +1 -0
  483. package/assets/types/typebox/build/type/engine/record/instantiate.d.mts +9 -0
  484. package/assets/types/typebox/build/type/engine/record/record_create.d.mts +3 -0
  485. package/assets/types/typebox/build/type/engine/ref/index.d.mts +1 -0
  486. package/assets/types/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
  487. package/assets/types/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
  488. package/assets/types/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
  489. package/assets/types/typebox/build/type/engine/required/from_intersect.d.mts +5 -0
  490. package/assets/types/typebox/build/type/engine/required/from_object.d.mts +8 -0
  491. package/assets/types/typebox/build/type/engine/required/from_type.d.mts +14 -0
  492. package/assets/types/typebox/build/type/engine/required/from_union.d.mts +5 -0
  493. package/assets/types/typebox/build/type/engine/required/index.d.mts +1 -0
  494. package/assets/types/typebox/build/type/engine/required/instantiate.d.mts +9 -0
  495. package/assets/types/typebox/build/type/engine/rest/index.d.mts +1 -0
  496. package/assets/types/typebox/build/type/engine/rest/spread.d.mts +12 -0
  497. package/assets/types/typebox/build/type/engine/return_type/index.d.mts +1 -0
  498. package/assets/types/typebox/build/type/engine/return_type/instantiate.d.mts +12 -0
  499. package/assets/types/typebox/build/type/engine/template_literal/create.d.mts +1 -0
  500. package/assets/types/typebox/build/type/engine/template_literal/decode.d.mts +30 -0
  501. package/assets/types/typebox/build/type/engine/template_literal/encode.d.mts +33 -0
  502. package/assets/types/typebox/build/type/engine/template_literal/index.d.mts +6 -0
  503. package/assets/types/typebox/build/type/engine/template_literal/instantiate.d.mts +9 -0
  504. package/assets/types/typebox/build/type/engine/template_literal/is_finite.d.mts +12 -0
  505. package/assets/types/typebox/build/type/engine/template_literal/is_pattern.d.mts +6 -0
  506. package/assets/types/typebox/build/type/engine/template_literal/static.d.mts +18 -0
  507. package/assets/types/typebox/build/type/engine/this/expand_this.d.mts +16 -0
  508. package/assets/types/typebox/build/type/engine/tuple/to_object.d.mts +12 -0
  509. package/assets/types/typebox/build/type/engine/with/index.d.mts +1 -0
  510. package/assets/types/typebox/build/type/engine/with/instantiate.d.mts +8 -0
  511. package/assets/types/typebox/build/type/extends/any.d.mts +9 -0
  512. package/assets/types/typebox/build/type/extends/array.d.mts +20 -0
  513. package/assets/types/typebox/build/type/extends/bigint.d.mts +7 -0
  514. package/assets/types/typebox/build/type/extends/boolean.d.mts +7 -0
  515. package/assets/types/typebox/build/type/extends/constructor.d.mts +10 -0
  516. package/assets/types/typebox/build/type/extends/dependent.d.mts +6 -0
  517. package/assets/types/typebox/build/type/extends/enum.d.mts +7 -0
  518. package/assets/types/typebox/build/type/extends/extends.d.mts +13 -0
  519. package/assets/types/typebox/build/type/extends/extends_left.d.mts +53 -0
  520. package/assets/types/typebox/build/type/extends/extends_right.d.mts +27 -0
  521. package/assets/types/typebox/build/type/extends/function.d.mts +10 -0
  522. package/assets/types/typebox/build/type/extends/index.d.mts +2 -0
  523. package/assets/types/typebox/build/type/extends/inference.d.mts +34 -0
  524. package/assets/types/typebox/build/type/extends/integer.d.mts +8 -0
  525. package/assets/types/typebox/build/type/extends/intersect.d.mts +6 -0
  526. package/assets/types/typebox/build/type/extends/literal.d.mts +18 -0
  527. package/assets/types/typebox/build/type/extends/never.d.mts +8 -0
  528. package/assets/types/typebox/build/type/extends/null.d.mts +7 -0
  529. package/assets/types/typebox/build/type/extends/number.d.mts +7 -0
  530. package/assets/types/typebox/build/type/extends/object.d.mts +32 -0
  531. package/assets/types/typebox/build/type/extends/parameters.d.mts +15 -0
  532. package/assets/types/typebox/build/type/extends/record.d.mts +13 -0
  533. package/assets/types/typebox/build/type/extends/result.d.mts +24 -0
  534. package/assets/types/typebox/build/type/extends/return_type.d.mts +7 -0
  535. package/assets/types/typebox/build/type/extends/string.d.mts +7 -0
  536. package/assets/types/typebox/build/type/extends/symbol.d.mts +7 -0
  537. package/assets/types/typebox/build/type/extends/template_literal.d.mts +6 -0
  538. package/assets/types/typebox/build/type/extends/tuple.d.mts +22 -0
  539. package/assets/types/typebox/build/type/extends/undefined.d.mts +8 -0
  540. package/assets/types/typebox/build/type/extends/union.d.mts +11 -0
  541. package/assets/types/typebox/build/type/extends/unknown.d.mts +9 -0
  542. package/assets/types/typebox/build/type/extends/void.d.mts +7 -0
  543. package/assets/types/typebox/build/type/index.d.mts +5 -0
  544. package/assets/types/typebox/build/type/script/index.d.mts +1 -0
  545. package/assets/types/typebox/build/type/script/mapping.d.mts +353 -0
  546. package/assets/types/typebox/build/type/script/parser.d.mts +262 -0
  547. package/assets/types/typebox/build/type/script/script.d.mts +16 -0
  548. package/assets/types/typebox/build/type/script/token/bigint.d.mts +8 -0
  549. package/assets/types/typebox/build/type/script/token/const.d.mts +11 -0
  550. package/assets/types/typebox/build/type/script/token/ident.d.mts +16 -0
  551. package/assets/types/typebox/build/type/script/token/index.d.mts +12 -0
  552. package/assets/types/typebox/build/type/script/token/integer.d.mts +11 -0
  553. package/assets/types/typebox/build/type/script/token/internal/char.d.mts +75 -0
  554. package/assets/types/typebox/build/type/script/token/internal/guard.d.mts +1 -0
  555. package/assets/types/typebox/build/type/script/token/internal/many.d.mts +7 -0
  556. package/assets/types/typebox/build/type/script/token/internal/match.d.mts +6 -0
  557. package/assets/types/typebox/build/type/script/token/internal/optional.d.mts +5 -0
  558. package/assets/types/typebox/build/type/script/token/internal/take.d.mts +6 -0
  559. package/assets/types/typebox/build/type/script/token/internal/trim.d.mts +19 -0
  560. package/assets/types/typebox/build/type/script/token/number.d.mts +11 -0
  561. package/assets/types/typebox/build/type/script/token/rest.d.mts +4 -0
  562. package/assets/types/typebox/build/type/script/token/span.d.mts +11 -0
  563. package/assets/types/typebox/build/type/script/token/string.d.mts +11 -0
  564. package/assets/types/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
  565. package/assets/types/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
  566. package/assets/types/typebox/build/type/script/token/until.d.mts +7 -0
  567. package/assets/types/typebox/build/type/script/token/until_1.d.mts +5 -0
  568. package/assets/types/typebox/build/type/types/_codec.d.mts +30 -0
  569. package/assets/types/typebox/build/type/types/_immutable.d.mts +9 -0
  570. package/assets/types/typebox/build/type/types/_optional.d.mts +9 -0
  571. package/assets/types/typebox/build/type/types/_readonly.d.mts +9 -0
  572. package/assets/types/typebox/build/type/types/_refine.d.mts +24 -0
  573. package/assets/types/typebox/build/type/types/any.d.mts +10 -0
  574. package/assets/types/typebox/build/type/types/array.d.mts +18 -0
  575. package/assets/types/typebox/build/type/types/bigint.d.mts +12 -0
  576. package/assets/types/typebox/build/type/types/boolean.d.mts +11 -0
  577. package/assets/types/typebox/build/type/types/call.d.mts +16 -0
  578. package/assets/types/typebox/build/type/types/constructor.d.mts +18 -0
  579. package/assets/types/typebox/build/type/types/cyclic.d.mts +16 -0
  580. package/assets/types/typebox/build/type/types/deferred.d.mts +13 -0
  581. package/assets/types/typebox/build/type/types/dependent.d.mts +17 -0
  582. package/assets/types/typebox/build/type/types/enum.d.mts +18 -0
  583. package/assets/types/typebox/build/type/types/function.d.mts +21 -0
  584. package/assets/types/typebox/build/type/types/generic.d.mts +13 -0
  585. package/assets/types/typebox/build/type/types/identifier.d.mts +11 -0
  586. package/assets/types/typebox/build/type/types/index.d.mts +45 -0
  587. package/assets/types/typebox/build/type/types/infer.d.mts +15 -0
  588. package/assets/types/typebox/build/type/types/integer.d.mts +12 -0
  589. package/assets/types/typebox/build/type/types/intersect.d.mts +15 -0
  590. package/assets/types/typebox/build/type/types/literal.d.mts +31 -0
  591. package/assets/types/typebox/build/type/types/never.d.mts +12 -0
  592. package/assets/types/typebox/build/type/types/null.d.mts +11 -0
  593. package/assets/types/typebox/build/type/types/number.d.mts +12 -0
  594. package/assets/types/typebox/build/type/types/object.d.mts +18 -0
  595. package/assets/types/typebox/build/type/types/parameter.d.mts +17 -0
  596. package/assets/types/typebox/build/type/types/properties.d.mts +43 -0
  597. package/assets/types/typebox/build/type/types/record.d.mts +52 -0
  598. package/assets/types/typebox/build/type/types/ref.d.mts +19 -0
  599. package/assets/types/typebox/build/type/types/rest.d.mts +11 -0
  600. package/assets/types/typebox/build/type/types/schema.d.mts +176 -0
  601. package/assets/types/typebox/build/type/types/static.d.mts +45 -0
  602. package/assets/types/typebox/build/type/types/string.d.mts +12 -0
  603. package/assets/types/typebox/build/type/types/symbol.d.mts +11 -0
  604. package/assets/types/typebox/build/type/types/template_literal.d.mts +28 -0
  605. package/assets/types/typebox/build/type/types/this.d.mts +14 -0
  606. package/assets/types/typebox/build/type/types/tuple.d.mts +38 -0
  607. package/assets/types/typebox/build/type/types/undefined.d.mts +11 -0
  608. package/assets/types/typebox/build/type/types/union.d.mts +15 -0
  609. package/assets/types/typebox/build/type/types/unknown.d.mts +10 -0
  610. package/assets/types/typebox/build/type/types/unsafe.d.mts +10 -0
  611. package/assets/types/typebox/build/type/types/void.d.mts +11 -0
  612. package/assets/types/typebox/build/typebox.d.mts +69 -0
  613. package/assets/types/typebox/build/value/assert/assert.d.mts +14 -0
  614. package/assets/types/typebox/build/value/assert/index.d.mts +1 -0
  615. package/assets/types/typebox/build/value/check/check.d.mts +5 -0
  616. package/assets/types/typebox/build/value/check/index.d.mts +1 -0
  617. package/assets/types/typebox/build/value/clean/additional.d.mts +2 -0
  618. package/assets/types/typebox/build/value/clean/clean.d.mts +15 -0
  619. package/assets/types/typebox/build/value/clean/from_array.d.mts +2 -0
  620. package/assets/types/typebox/build/value/clean/from_cyclic.d.mts +2 -0
  621. package/assets/types/typebox/build/value/clean/from_intersect.d.mts +2 -0
  622. package/assets/types/typebox/build/value/clean/from_object.d.mts +2 -0
  623. package/assets/types/typebox/build/value/clean/from_record.d.mts +2 -0
  624. package/assets/types/typebox/build/value/clean/from_ref.d.mts +2 -0
  625. package/assets/types/typebox/build/value/clean/from_tuple.d.mts +2 -0
  626. package/assets/types/typebox/build/value/clean/from_type.d.mts +2 -0
  627. package/assets/types/typebox/build/value/clean/from_union.d.mts +2 -0
  628. package/assets/types/typebox/build/value/clean/index.d.mts +1 -0
  629. package/assets/types/typebox/build/value/clone/clone.d.mts +5 -0
  630. package/assets/types/typebox/build/value/clone/index.d.mts +1 -0
  631. package/assets/types/typebox/build/value/codec/callback.d.mts +2 -0
  632. package/assets/types/typebox/build/value/codec/decode.d.mts +12 -0
  633. package/assets/types/typebox/build/value/codec/encode.d.mts +12 -0
  634. package/assets/types/typebox/build/value/codec/from_array.d.mts +2 -0
  635. package/assets/types/typebox/build/value/codec/from_cyclic.d.mts +2 -0
  636. package/assets/types/typebox/build/value/codec/from_intersect.d.mts +2 -0
  637. package/assets/types/typebox/build/value/codec/from_object.d.mts +2 -0
  638. package/assets/types/typebox/build/value/codec/from_record.d.mts +2 -0
  639. package/assets/types/typebox/build/value/codec/from_ref.d.mts +2 -0
  640. package/assets/types/typebox/build/value/codec/from_tuple.d.mts +2 -0
  641. package/assets/types/typebox/build/value/codec/from_type.d.mts +2 -0
  642. package/assets/types/typebox/build/value/codec/from_union.d.mts +2 -0
  643. package/assets/types/typebox/build/value/codec/has.d.mts +5 -0
  644. package/assets/types/typebox/build/value/codec/index.d.mts +3 -0
  645. package/assets/types/typebox/build/value/convert/convert.d.mts +13 -0
  646. package/assets/types/typebox/build/value/convert/from_additional.d.mts +6 -0
  647. package/assets/types/typebox/build/value/convert/from_array.d.mts +2 -0
  648. package/assets/types/typebox/build/value/convert/from_bigint.d.mts +2 -0
  649. package/assets/types/typebox/build/value/convert/from_boolean.d.mts +2 -0
  650. package/assets/types/typebox/build/value/convert/from_cyclic.d.mts +2 -0
  651. package/assets/types/typebox/build/value/convert/from_enum.d.mts +2 -0
  652. package/assets/types/typebox/build/value/convert/from_integer.d.mts +2 -0
  653. package/assets/types/typebox/build/value/convert/from_intersect.d.mts +2 -0
  654. package/assets/types/typebox/build/value/convert/from_literal.d.mts +2 -0
  655. package/assets/types/typebox/build/value/convert/from_null.d.mts +2 -0
  656. package/assets/types/typebox/build/value/convert/from_number.d.mts +2 -0
  657. package/assets/types/typebox/build/value/convert/from_object.d.mts +2 -0
  658. package/assets/types/typebox/build/value/convert/from_record.d.mts +2 -0
  659. package/assets/types/typebox/build/value/convert/from_ref.d.mts +2 -0
  660. package/assets/types/typebox/build/value/convert/from_string.d.mts +2 -0
  661. package/assets/types/typebox/build/value/convert/from_template_literal.d.mts +2 -0
  662. package/assets/types/typebox/build/value/convert/from_tuple.d.mts +2 -0
  663. package/assets/types/typebox/build/value/convert/from_type.d.mts +2 -0
  664. package/assets/types/typebox/build/value/convert/from_undefined.d.mts +2 -0
  665. package/assets/types/typebox/build/value/convert/from_union.d.mts +2 -0
  666. package/assets/types/typebox/build/value/convert/from_void.d.mts +2 -0
  667. package/assets/types/typebox/build/value/convert/index.d.mts +1 -0
  668. package/assets/types/typebox/build/value/convert/try/index.d.mts +1 -0
  669. package/assets/types/typebox/build/value/convert/try/try.d.mts +8 -0
  670. package/assets/types/typebox/build/value/convert/try/try_array.d.mts +2 -0
  671. package/assets/types/typebox/build/value/convert/try/try_bigint.d.mts +2 -0
  672. package/assets/types/typebox/build/value/convert/try/try_boolean.d.mts +2 -0
  673. package/assets/types/typebox/build/value/convert/try/try_null.d.mts +2 -0
  674. package/assets/types/typebox/build/value/convert/try/try_number.d.mts +2 -0
  675. package/assets/types/typebox/build/value/convert/try/try_result.d.mts +8 -0
  676. package/assets/types/typebox/build/value/convert/try/try_string.d.mts +2 -0
  677. package/assets/types/typebox/build/value/convert/try/try_undefined.d.mts +2 -0
  678. package/assets/types/typebox/build/value/create/create.d.mts +5 -0
  679. package/assets/types/typebox/build/value/create/error.d.mts +5 -0
  680. package/assets/types/typebox/build/value/create/from_array.d.mts +2 -0
  681. package/assets/types/typebox/build/value/create/from_bigint.d.mts +2 -0
  682. package/assets/types/typebox/build/value/create/from_boolean.d.mts +2 -0
  683. package/assets/types/typebox/build/value/create/from_constructor.d.mts +2 -0
  684. package/assets/types/typebox/build/value/create/from_cyclic.d.mts +2 -0
  685. package/assets/types/typebox/build/value/create/from_default.d.mts +3 -0
  686. package/assets/types/typebox/build/value/create/from_enum.d.mts +2 -0
  687. package/assets/types/typebox/build/value/create/from_function.d.mts +2 -0
  688. package/assets/types/typebox/build/value/create/from_integer.d.mts +2 -0
  689. package/assets/types/typebox/build/value/create/from_intersect.d.mts +2 -0
  690. package/assets/types/typebox/build/value/create/from_literal.d.mts +2 -0
  691. package/assets/types/typebox/build/value/create/from_never.d.mts +2 -0
  692. package/assets/types/typebox/build/value/create/from_null.d.mts +2 -0
  693. package/assets/types/typebox/build/value/create/from_number.d.mts +2 -0
  694. package/assets/types/typebox/build/value/create/from_object.d.mts +2 -0
  695. package/assets/types/typebox/build/value/create/from_record.d.mts +2 -0
  696. package/assets/types/typebox/build/value/create/from_ref.d.mts +2 -0
  697. package/assets/types/typebox/build/value/create/from_string.d.mts +2 -0
  698. package/assets/types/typebox/build/value/create/from_symbol.d.mts +2 -0
  699. package/assets/types/typebox/build/value/create/from_template_literal.d.mts +2 -0
  700. package/assets/types/typebox/build/value/create/from_tuple.d.mts +2 -0
  701. package/assets/types/typebox/build/value/create/from_type.d.mts +2 -0
  702. package/assets/types/typebox/build/value/create/from_undefined.d.mts +2 -0
  703. package/assets/types/typebox/build/value/create/from_union.d.mts +2 -0
  704. package/assets/types/typebox/build/value/create/from_void.d.mts +2 -0
  705. package/assets/types/typebox/build/value/create/index.d.mts +2 -0
  706. package/assets/types/typebox/build/value/default/default.d.mts +13 -0
  707. package/assets/types/typebox/build/value/default/from_array.d.mts +2 -0
  708. package/assets/types/typebox/build/value/default/from_cyclic.d.mts +2 -0
  709. package/assets/types/typebox/build/value/default/from_default.d.mts +3 -0
  710. package/assets/types/typebox/build/value/default/from_intersect.d.mts +2 -0
  711. package/assets/types/typebox/build/value/default/from_object.d.mts +2 -0
  712. package/assets/types/typebox/build/value/default/from_record.d.mts +2 -0
  713. package/assets/types/typebox/build/value/default/from_ref.d.mts +2 -0
  714. package/assets/types/typebox/build/value/default/from_tuple.d.mts +2 -0
  715. package/assets/types/typebox/build/value/default/from_type.d.mts +2 -0
  716. package/assets/types/typebox/build/value/default/from_union.d.mts +2 -0
  717. package/assets/types/typebox/build/value/default/index.d.mts +1 -0
  718. package/assets/types/typebox/build/value/delta/diff.d.mts +10 -0
  719. package/assets/types/typebox/build/value/delta/edit.d.mts +24 -0
  720. package/assets/types/typebox/build/value/delta/index.d.mts +3 -0
  721. package/assets/types/typebox/build/value/delta/patch.d.mts +8 -0
  722. package/assets/types/typebox/build/value/equal/equal.d.mts +2 -0
  723. package/assets/types/typebox/build/value/equal/index.d.mts +1 -0
  724. package/assets/types/typebox/build/value/errors/errors.d.mts +16 -0
  725. package/assets/types/typebox/build/value/errors/index.d.mts +1 -0
  726. package/assets/types/typebox/build/value/hash/hash.d.mts +6 -0
  727. package/assets/types/typebox/build/value/hash/index.d.mts +1 -0
  728. package/assets/types/typebox/build/value/index.d.mts +20 -0
  729. package/assets/types/typebox/build/value/parse/index.d.mts +1 -0
  730. package/assets/types/typebox/build/value/parse/parse.d.mts +11 -0
  731. package/assets/types/typebox/build/value/pipeline/index.d.mts +1 -0
  732. package/assets/types/typebox/build/value/pipeline/pipeline.d.mts +10 -0
  733. package/assets/types/typebox/build/value/pointer/index.d.mts +1 -0
  734. package/assets/types/typebox/build/value/repair/error.d.mts +7 -0
  735. package/assets/types/typebox/build/value/repair/from_array.d.mts +2 -0
  736. package/assets/types/typebox/build/value/repair/from_enum.d.mts +2 -0
  737. package/assets/types/typebox/build/value/repair/from_intersect.d.mts +2 -0
  738. package/assets/types/typebox/build/value/repair/from_object.d.mts +2 -0
  739. package/assets/types/typebox/build/value/repair/from_record.d.mts +2 -0
  740. package/assets/types/typebox/build/value/repair/from_ref.d.mts +2 -0
  741. package/assets/types/typebox/build/value/repair/from_template_literal.d.mts +2 -0
  742. package/assets/types/typebox/build/value/repair/from_tuple.d.mts +2 -0
  743. package/assets/types/typebox/build/value/repair/from_type.d.mts +2 -0
  744. package/assets/types/typebox/build/value/repair/from_union.d.mts +2 -0
  745. package/assets/types/typebox/build/value/repair/from_unknown.d.mts +2 -0
  746. package/assets/types/typebox/build/value/repair/index.d.mts +1 -0
  747. package/assets/types/typebox/build/value/repair/repair.d.mts +17 -0
  748. package/assets/types/typebox/build/value/shared/index.d.mts +3 -0
  749. package/assets/types/typebox/build/value/shared/optional_undefined.d.mts +2 -0
  750. package/assets/types/typebox/build/value/shared/union_priority_sort.d.mts +7 -0
  751. package/assets/types/typebox/build/value/shared/union_score_select.d.mts +3 -0
  752. package/assets/types/typebox/build/value/value.d.mts +15 -0
  753. package/assets/types/typebox/package.json +87 -0
  754. package/package.json +28 -0
  755. package/src/alt-screen.ts +46 -0
  756. package/src/argv.ts +147 -0
  757. package/src/cli-tree-host.ts +81 -0
  758. package/src/cli.ts +155 -0
  759. package/src/fatal-signal.ts +45 -0
  760. package/src/final-frame.ts +71 -0
  761. package/src/interactive-run.ts +231 -0
  762. package/src/presenter.ts +31 -0
  763. package/src/render.ts +96 -0
  764. package/src/run-invocation.ts +48 -0
  765. package/src/runtime-alias.ts +64 -0
  766. package/src/setup-workspace.ts +91 -0
  767. package/src/tree-app.ts +178 -0
  768. package/src/tui-test-support.ts +96 -0
@@ -0,0 +1,13 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TLiteral } from '../../types/literal.mjs';
3
+ import { type TNumber } from '../../types/number.mjs';
4
+ import { type TInteger } from '../../types/integer.mjs';
5
+ import { type TEvaluateUnionFast } from '../evaluate/evaluate.mjs';
6
+ import { type TExtends, ExtendsResult } from '../../extends/index.mjs';
7
+ import { type TFormatArrayIndexer } from './array_indexer.mjs';
8
+ type TIndexElementsWithIndexer<Types extends TSchema[], Indexer extends TSchema, Result extends TSchema[] = []> = (Types extends [...infer Left extends TSchema[], infer Right extends TSchema] ? TExtends<{}, TLiteral<Left['length']>, Indexer> extends ExtendsResult.TExtendsTrueLike ? TIndexElementsWithIndexer<Left, Indexer, [Right, ...Result]> : TIndexElementsWithIndexer<Left, Indexer, Result> : Result);
9
+ type TFromTupleWithIndexer<Types extends TSchema[], Indexer extends TSchema, ArrayIndexer extends TSchema = TFormatArrayIndexer<Indexer>, Elements extends TSchema[] = TIndexElementsWithIndexer<Types, ArrayIndexer>, Result extends TSchema = TEvaluateUnionFast<Elements>> = Result;
10
+ type TFromTupleWithoutIndexer<Types extends TSchema[], Result extends TSchema = TEvaluateUnionFast<Types>> = Result;
11
+ export type TFromTuple<Types extends TSchema[], Indexer extends TSchema, Result extends TSchema = (Indexer extends TLiteral<infer _ extends 'length'> ? TLiteral<Types['length']> : Indexer extends TNumber | TInteger ? TFromTupleWithoutIndexer<Types> : TFromTupleWithIndexer<Types, Indexer>)> = Result;
12
+ export declare function FromTuple<Types extends TSchema[], Indexer extends TSchema>(types: [...Types], indexer: Indexer): TFromTuple<Types, Indexer>;
13
+ export {};
@@ -0,0 +1,11 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TArray } from '../../types/array.mjs';
3
+ import { type TNever } from '../../types/never.mjs';
4
+ import { type TProperties } from '../../types/properties.mjs';
5
+ import { type TObject } from '../../types/object.mjs';
6
+ import { type TTuple } from '../../types/tuple.mjs';
7
+ import { type TFromArray } from './from_array.mjs';
8
+ import { type TFromObject } from './from_object.mjs';
9
+ import { type TFromTuple } from './from_tuple.mjs';
10
+ export type TFromType<Type extends TSchema, Indexer extends TSchema> = (Type extends TArray<infer Type extends TSchema> ? TFromArray<Type, Indexer> : Type extends TObject<infer Properties extends TProperties> ? TFromObject<Properties, Indexer> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple<Types, Indexer> : TNever);
11
+ export declare function FromType<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer): TFromType<Type, Indexer>;
@@ -0,0 +1 @@
1
+ export * from './instantiate.mjs';
@@ -0,0 +1,16 @@
1
+ import { type TSchema, type TSchemaOptions } from '../../types/schema.mjs';
2
+ import { type TCyclic } from '../../types/cyclic.mjs';
3
+ import { type TDependent } from '../../types/dependent.mjs';
4
+ import { type TIntersect } from '../../types/intersect.mjs';
5
+ import { type TProperties } from '../../types/properties.mjs';
6
+ import { type TUnion } from '../../types/union.mjs';
7
+ import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
8
+ import { type TIndexDeferred } from '../../action/indexed.mjs';
9
+ import { type TCollapseToObject } from '../object/index.mjs';
10
+ import { type TFromType } from './from_type.mjs';
11
+ type TNormalizeType<Type extends TSchema, Result extends TSchema = (Type extends TCyclic ? TCollapseToObject<Type> : Type extends TDependent ? TCollapseToObject<Type> : Type extends TIntersect ? TCollapseToObject<Type> : Type extends TUnion ? TCollapseToObject<Type> : Type)> = Result;
12
+ export type TIndexAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = TCanInstantiate<[Type, Indexer]> extends true ? TFromType<TNormalizeType<Type>, Indexer> : TIndexDeferred<Type, Indexer>> = Result;
13
+ export declare function IndexAction<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer, options: TSchemaOptions): TIndexAction<Type, Indexer>;
14
+ export type TIndexInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Indexer extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>, InstantiatedIndexer extends TSchema = TInstantiateType<Context, State, Indexer>> = TIndexAction<InstantiatedType, InstantiatedIndexer>;
15
+ export declare function IndexInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Indexer extends TSchema>(context: Context, state: State, type: Type, indexer: Indexer, options: TSchemaOptions): TIndexInstantiate<Context, State, Type, Indexer>;
16
+ export {};
@@ -0,0 +1 @@
1
+ export * from './instantiate.mjs';
@@ -0,0 +1,12 @@
1
+ import { type TSchema, type TSchemaOptions } from '../../types/schema.mjs';
2
+ import { type TProperties } from '../../types/properties.mjs';
3
+ import { type TConstructor } from '../../types/constructor.mjs';
4
+ import { type TNever } from '../../types/never.mjs';
5
+ import { type TInstanceTypeDeferred } from '../../action/instance_type.mjs';
6
+ import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
7
+ type TInstanceTypeOperation<Type extends TSchema> = (Type extends TConstructor ? Type['instanceType'] : TNever);
8
+ export type TInstanceTypeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TInstanceTypeOperation<Type> : TInstanceTypeDeferred<Type>> = Result;
9
+ export declare function InstanceTypeAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TInstanceTypeAction<Type>;
10
+ export type TInstanceTypeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TInstanceTypeAction<InstantiatedType>;
11
+ export declare function InstanceTypeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema>(context: Context, state: State, type: Type, options?: TSchemaOptions): TInstanceTypeInstantiate<Context, State, Type>;
12
+ export {};
@@ -0,0 +1,178 @@
1
+ import { type TAddImmutableAction } from './immutable/instantiate_add.mjs';
2
+ import { type TAddReadonlyAction } from './readonly/instantiate_add.mjs';
3
+ import { type TAddOptionalAction } from './optional/instantiate_add.mjs';
4
+ import { type TSchema } from '../types/schema.mjs';
5
+ import { type TArray } from '../types/array.mjs';
6
+ import { type TConstructor } from '../types/constructor.mjs';
7
+ import { type TDeferred } from '../types/deferred.mjs';
8
+ import { type TFunction } from '../types/function.mjs';
9
+ import { type TCall } from '../types/call.mjs';
10
+ import { type TIdentifier } from '../types/identifier.mjs';
11
+ import { type TDependent } from '../types/dependent.mjs';
12
+ import { type TIntersect } from '../types/intersect.mjs';
13
+ import { type TObject } from '../types/object.mjs';
14
+ import { type TProperties } from '../types/properties.mjs';
15
+ import { type TRecord } from '../types/record.mjs';
16
+ import { type TTuple } from '../types/tuple.mjs';
17
+ import { type TUnion } from '../types/union.mjs';
18
+ import { type TRef } from '../types/ref.mjs';
19
+ import { type TRest } from '../types/rest.mjs';
20
+ import { type TAddImmutableInstantiate } from './immutable/instantiate_add.mjs';
21
+ import { type TRemoveImmutableInstantiate } from './immutable/instantiate_remove.mjs';
22
+ import { type TAddReadonlyInstantiate } from './readonly/instantiate_add.mjs';
23
+ import { type TRemoveReadonlyInstantiate } from './readonly/instantiate_remove.mjs';
24
+ import { type TAddOptionalInstantiate } from './optional/instantiate_add.mjs';
25
+ import { type TRemoveOptionalInstantiate } from './optional/instantiate_remove.mjs';
26
+ import { type TOptional } from '../types/_optional.mjs';
27
+ import { type TImmutable } from '../types/_immutable.mjs';
28
+ import { type TReadonly } from '../types/_readonly.mjs';
29
+ import { type TCallInstantiate } from './call/instantiate.mjs';
30
+ import { type TCapitalizeInstantiate } from './intrinsics/instantiate.mjs';
31
+ import { type TConditionalInstantiate } from './conditional/index.mjs';
32
+ import { type TConstructorParametersInstantiate } from './constructor_parameters/instantiate.mjs';
33
+ import { type TEvaluateInstantiate } from './evaluate/instantiate.mjs';
34
+ import { type TExcludeInstantiate } from './exclude/instantiate.mjs';
35
+ import { type TExtractInstantiate } from './extract/instantiate.mjs';
36
+ import { type TIndexInstantiate } from './indexed/instantiate.mjs';
37
+ import { type TInstanceTypeInstantiate } from './instance_type/instantiate.mjs';
38
+ import { type TInterfaceInstantiate } from './interface/instantiate.mjs';
39
+ import { type TKeyOfInstantiate } from './keyof/instantiate.mjs';
40
+ import { type TLowercaseInstantiate } from './intrinsics/instantiate.mjs';
41
+ import { type TMappedInstantiate } from './mapped/instantiate.mjs';
42
+ import { type TModuleInstantiate } from './module/instantiate.mjs';
43
+ import { type TNonNullableInstantiate } from './non_nullable/instantiate.mjs';
44
+ import { type TOmitInstantiate } from './omit/instantiate.mjs';
45
+ import { type TParametersInstantiate } from './parameters/instantiate.mjs';
46
+ import { type TPartialInstantiate } from './partial/instantiate.mjs';
47
+ import { type TPickInstantiate } from './pick/instantiate.mjs';
48
+ import { type TReadonlyObjectInstantiate } from './readonly_object/instantiate.mjs';
49
+ import { type TRecordInstantiate } from './record/instantiate.mjs';
50
+ import { type TRefInstantiate } from './ref/instantiate.mjs';
51
+ import { type TRequiredInstantiate } from './required/instantiate.mjs';
52
+ import { type TReturnTypeInstantiate } from './return_type/instantiate.mjs';
53
+ import { type TTemplateLiteralInstantiate } from './template_literal/instantiate.mjs';
54
+ import { type TUncapitalizeInstantiate } from './intrinsics/instantiate.mjs';
55
+ import { type TUppercaseInstantiate } from './intrinsics/instantiate.mjs';
56
+ import { type TWithInstantiate } from './with/instantiate.mjs';
57
+ import { type TRestSpread } from './rest/index.mjs';
58
+ export interface TState<CallStack extends string[] = string[], Visited extends string[] = string[]> {
59
+ callstack: CallStack;
60
+ visited: Visited;
61
+ }
62
+ export declare function State<CallStack extends string[], Visited extends string[]>(callstack: CallStack, visited: Visited): TState<CallStack, Visited>;
63
+ export type TCanInstantiate<Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TRef ? false : TCanInstantiate<Right> : true;
64
+ export declare function CanInstantiate<Types extends TSchema[]>(types: [...Types]): TCanInstantiate<Types>;
65
+ export type TInstantiateProperties<Context extends TProperties, State extends TState, Properties extends TProperties, Result extends TProperties = {
66
+ [Key in keyof Properties]: TInstantiateType<Context, State, Properties[Key]>;
67
+ }> = Result;
68
+ export declare function InstantiateProperties<Context extends TProperties, State extends TState, Properties extends TProperties>(context: Context, state: State, properties: TProperties): TInstantiateProperties<Context, State, Properties>;
69
+ export type TInstantiateElements<Context extends TProperties, State extends TState, Types extends TSchema[], Elements extends TSchema[] = TInstantiateTypes<Context, State, Types>, Result extends TSchema[] = TRestSpread<Elements>> = Result;
70
+ export declare function InstantiateElements<Context extends TProperties, State extends TState, Types extends TSchema[]>(context: Context, state: State, types: [...Types]): TInstantiateElements<Context, State, Types>;
71
+ export type TInstantiateTypes<Context extends TProperties, State extends TState, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TInstantiateTypes<Context, State, Right, [...Result, TInstantiateType<Context, State, Left>]> : Result);
72
+ export declare function InstantiateTypes<Context extends TProperties, State extends TState, Types extends TSchema[]>(context: Context, state: State, types: [...Types]): TInstantiateTypes<Context, State, Types>;
73
+ type TWithModifiers<Type extends TSchema, InstantiatedType extends TSchema, WithOptional extends TSchema = Type extends TOptional ? TAddOptionalAction<InstantiatedType> : InstantiatedType, WithReadonly extends TSchema = Type extends TReadonly ? TAddReadonlyAction<WithOptional> : WithOptional, WithImmutable extends TSchema = Type extends TImmutable ? TAddImmutableAction<WithReadonly> : WithReadonly> = WithImmutable;
74
+ type TInstantiateDeferred<Context extends TProperties, State extends TState, Action extends string, Parameters extends TSchema[]> = ([
75
+ Action,
76
+ Parameters
77
+ ] extends ['AddImmutable', [infer Type extends TSchema]] ? TAddImmutableInstantiate<Context, State, Type> : [
78
+ Action,
79
+ Parameters
80
+ ] extends ['RemoveImmutable', [infer Type extends TSchema]] ? TRemoveImmutableInstantiate<Context, State, Type> : [
81
+ Action,
82
+ Parameters
83
+ ] extends ['AddReadonly', [infer Type extends TSchema]] ? TAddReadonlyInstantiate<Context, State, Type> : [
84
+ Action,
85
+ Parameters
86
+ ] extends ['RemoveReadonly', [infer Type extends TSchema]] ? TRemoveReadonlyInstantiate<Context, State, Type> : [
87
+ Action,
88
+ Parameters
89
+ ] extends ['AddOptional', [infer Type extends TSchema]] ? TAddOptionalInstantiate<Context, State, Type> : [
90
+ Action,
91
+ Parameters
92
+ ] extends ['RemoveOptional', [infer Type extends TSchema]] ? TRemoveOptionalInstantiate<Context, State, Type> : [
93
+ Action,
94
+ Parameters
95
+ ] extends ['Capitalize', [infer Type extends TSchema]] ? TCapitalizeInstantiate<Context, State, Type> : [
96
+ Action,
97
+ Parameters
98
+ ] extends ['Conditional', [infer Left extends TSchema, infer Right extends TSchema, infer True extends TSchema, infer False extends TSchema]] ? TConditionalInstantiate<Context, State, Left, Right, True, False> : [
99
+ Action,
100
+ Parameters
101
+ ] extends ['ConstructorParameters', [infer Type extends TSchema]] ? TConstructorParametersInstantiate<Context, State, Type> : [
102
+ Action,
103
+ Parameters
104
+ ] extends ['Evaluate', [infer Type extends TSchema]] ? TEvaluateInstantiate<Context, State, Type> : [
105
+ Action,
106
+ Parameters
107
+ ] extends ['Exclude', [infer Left extends TSchema, infer Right extends TSchema]] ? TExcludeInstantiate<Context, State, Left, Right> : [
108
+ Action,
109
+ Parameters
110
+ ] extends ['Extract', [infer Left extends TSchema, infer Right extends TSchema]] ? TExtractInstantiate<Context, State, Left, Right> : [
111
+ Action,
112
+ Parameters
113
+ ] extends ['Index', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TIndexInstantiate<Context, State, Type, Indexer> : [
114
+ Action,
115
+ Parameters
116
+ ] extends ['InstanceType', [infer Type extends TSchema]] ? TInstanceTypeInstantiate<Context, State, Type> : [
117
+ Action,
118
+ Parameters
119
+ ] extends ['Interface', [infer Heritage extends TSchema[], infer Properties extends TProperties]] ? TInterfaceInstantiate<Context, State, Heritage, Properties> : [
120
+ Action,
121
+ Parameters
122
+ ] extends ['KeyOf', [infer Type extends TSchema]] ? TKeyOfInstantiate<Context, State, Type> : [
123
+ Action,
124
+ Parameters
125
+ ] extends ['Lowercase', [infer Type extends TSchema]] ? TLowercaseInstantiate<Context, State, Type> : [
126
+ Action,
127
+ Parameters
128
+ ] extends ['Mapped', [infer Name extends TIdentifier, infer Key extends TSchema, infer As extends TSchema, infer Property extends TSchema]] ? TMappedInstantiate<Context, State, Name, Key, As, Property> : [
129
+ Action,
130
+ Parameters
131
+ ] extends ['Module', [infer Declarations extends TProperties]] ? TModuleInstantiate<Context, State, Declarations> : [
132
+ Action,
133
+ Parameters
134
+ ] extends ['NonNullable', [infer Type extends TSchema]] ? TNonNullableInstantiate<Context, State, Type> : [
135
+ Action,
136
+ Parameters
137
+ ] extends ['Pick', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TPickInstantiate<Context, State, Type, Indexer> : [
138
+ Action,
139
+ Parameters
140
+ ] extends ['Parameters', [infer Type extends TSchema]] ? TParametersInstantiate<Context, State, Type> : [
141
+ Action,
142
+ Parameters
143
+ ] extends ['Partial', [infer Type extends TSchema]] ? TPartialInstantiate<Context, State, Type> : [
144
+ Action,
145
+ Parameters
146
+ ] extends ['Omit', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TOmitInstantiate<Context, State, Type, Indexer> : [
147
+ Action,
148
+ Parameters
149
+ ] extends ['ReadonlyObject', [infer Type extends TSchema]] ? TReadonlyObjectInstantiate<Context, State, Type> : [
150
+ Action,
151
+ Parameters
152
+ ] extends ['Record', [infer Key extends TSchema, infer Value extends TSchema]] ? TRecordInstantiate<Context, State, Key, Value> : [
153
+ Action,
154
+ Parameters
155
+ ] extends ['Required', [infer Type extends TSchema]] ? TRequiredInstantiate<Context, State, Type> : [
156
+ Action,
157
+ Parameters
158
+ ] extends ['ReturnType', [infer Type extends TSchema]] ? TReturnTypeInstantiate<Context, State, Type> : [
159
+ Action,
160
+ Parameters
161
+ ] extends ['TemplateLiteral', [infer Types extends TSchema[]]] ? TTemplateLiteralInstantiate<Context, State, Types> : [
162
+ Action,
163
+ Parameters
164
+ ] extends ['Uncapitalize', [infer Type extends TSchema]] ? TUncapitalizeInstantiate<Context, State, Type> : [
165
+ Action,
166
+ Parameters
167
+ ] extends ['Uppercase', [infer Type extends TSchema]] ? TUppercaseInstantiate<Context, State, Type> : [
168
+ Action,
169
+ Parameters
170
+ ] extends ['With', [infer Type extends TSchema, infer Options extends TSchema]] ? TWithInstantiate<Context, State, Type, Options> : TDeferred<Action, Parameters>);
171
+ type TInstantiateImmediate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = (Type extends TRef<infer Ref extends string> ? TRefInstantiate<Context, State, Type, Ref> : Type extends TArray<infer Type extends TSchema> ? TArray<TInstantiateType<Context, State, Type>> : Type extends TCall<infer Target extends TSchema, infer Parameters extends TSchema[]> ? TCallInstantiate<Context, State, Target, Parameters> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TConstructor<TInstantiateTypes<Context, State, Parameters>, TInstantiateType<Context, State, InstanceType>> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFunction<TInstantiateTypes<Context, State, Parameters>, TInstantiateType<Context, State, ReturnType>> : Type extends TDependent<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TDependent<TInstantiateType<Context, State, If>, TInstantiateType<Context, State, Then>, TInstantiateType<Context, State, Else>> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TInstantiateTypes<Context, State, Types>> : Type extends TObject<infer Properties extends TProperties> ? TObject<TInstantiateProperties<Context, State, Properties>> : Type extends TRecord<infer Key extends string, infer Type extends TSchema> ? TRecord<Key, TInstantiateType<Context, State, Type>> : Type extends TRest<infer Type extends TSchema> ? TRest<TInstantiateType<Context, State, Type>> : Type extends TTuple<infer Types extends TSchema[]> ? TTuple<TInstantiateElements<Context, State, Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TInstantiateTypes<Context, State, Types>> : Type), WithModifiers extends TSchema = TWithModifiers<Type, InstantiatedType>> = WithModifiers;
172
+ export type TInstantiateType<Context extends TProperties, State extends TState, Type extends TSchema, Result extends TSchema = Type extends TDeferred<infer Action extends string, infer Types extends TSchema[]> ? TInstantiateDeferred<Context, State, Action, Types> : TInstantiateImmediate<Context, State, Type>> = Result;
173
+ export declare function InstantiateType<Context extends TProperties, State extends TState, Type extends TSchema>(context: Context, state: State, type: Type): TInstantiateImmediate<Context, State, Type>;
174
+ /** Instantiates computed schematics using the given context and type. */
175
+ export type TInstantiate<Context extends TProperties, Type extends TSchema> = (TInstantiateType<Context, TState<[], []>, Type>);
176
+ /** Instantiates computed schematics using the given context and type. */
177
+ export declare function Instantiate<Context extends TProperties, Type extends TSchema>(context: Context, type: Type): TInstantiate<Context, Type>;
178
+ export {};
@@ -0,0 +1 @@
1
+ export * from './instantiate.mjs';
@@ -0,0 +1,15 @@
1
+ import { type TSchema, type TSchemaOptions } from '../../types/schema.mjs';
2
+ import { type TProperties } from '../../types/properties.mjs';
3
+ import { type TObject } from '../../types/object.mjs';
4
+ import { type TEvaluateIntersect } from '../evaluate/evaluate.mjs';
5
+ import { type TInterfaceDeferred } from '../../action/index.mjs';
6
+ import { type TCanInstantiate } from '../instantiate.mjs';
7
+ import { type TInstantiateProperties } from '../instantiate.mjs';
8
+ import { type TInstantiateTypes } from '../instantiate.mjs';
9
+ import { type TState } from '../instantiate.mjs';
10
+ type TInterfaceOperation<Heritage extends TSchema[], Properties extends TProperties, Result extends TSchema = TEvaluateIntersect<[...Heritage, TObject<Properties>]>> = Result;
11
+ export type TInterfaceAction<Heritage extends TSchema[], Properties extends TProperties, Result extends TSchema = TCanInstantiate<Heritage> extends true ? TInterfaceOperation<Heritage, Properties> : TInterfaceDeferred<Heritage, Properties>> = Result;
12
+ export declare function InterfaceAction<Heritage extends TSchema[], Properties extends TProperties>(heritage: [...Heritage], properties: Properties, options: TSchemaOptions): TInterfaceAction<Heritage, Properties>;
13
+ export type TInterfaceInstantiate<Context extends TProperties, State extends TState, Heritage extends TSchema[], Properties extends TProperties, InstantiatedHeritage extends TSchema[] = TInstantiateTypes<Context, State, Heritage>, InstantiatedProperties extends TProperties = TInstantiateProperties<Context, State, Properties>> = TInterfaceAction<InstantiatedHeritage, InstantiatedProperties>;
14
+ export declare function InterfaceInstantiate<Context extends TProperties, State extends TState, Heritage extends TSchema[], Properties extends TProperties>(context: Context, state: State, heritage: [...Heritage], properties: Properties, options: TSchemaOptions): TInterfaceInstantiate<Context, State, Heritage, Properties>;
15
+ export {};
@@ -0,0 +1,5 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TLiteral, type TLiteralValue } from '../../types/literal.mjs';
3
+ import { type TMappingType, type TMappingFunc, type TApplyMapping } from './mapping.mjs';
4
+ export type TFromLiteral<Mapping extends TMappingType, Value extends TLiteralValue> = (Value extends string ? TLiteral<TApplyMapping<Mapping, Value>> : TLiteral<Value>);
5
+ export declare function FromLiteral(mapping: TMappingFunc, value: TLiteralValue): TSchema;
@@ -0,0 +1,6 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TMappingType, type TMappingFunc } from './mapping.mjs';
3
+ import { type TFromType } from './from_type.mjs';
4
+ import { type TEvaluateTemplateLiteral } from '../evaluate/index.mjs';
5
+ export type TFromTemplateLiteral<Mapping extends TMappingType, Pattern extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>, Result extends TSchema = TFromType<Mapping, Evaluated>> = Result;
6
+ export declare function FromTemplateLiteral(mapping: TMappingFunc, pattern: string): TSchema;
@@ -0,0 +1,10 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TLiteral, type TLiteralValue } from '../../types/literal.mjs';
3
+ import { type TTemplateLiteral } from '../../types/template_literal.mjs';
4
+ import { type TUnion } from '../../types/union.mjs';
5
+ import { type TMappingType, type TMappingFunc } from './mapping.mjs';
6
+ import { type TFromLiteral } from './from_literal.mjs';
7
+ import { type TFromTemplateLiteral } from './from_template_literal.mjs';
8
+ import { type TFromUnion } from './from_union.mjs';
9
+ export type TFromType<Mapping extends TMappingType, Type extends TSchema> = (Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral<Mapping, Value> : Type extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral<Mapping, Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion<Mapping, Types> : Type);
10
+ export declare function FromType(mapping: TMappingFunc, type: TSchema): TSchema;
@@ -0,0 +1,6 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TUnion } from '../../types/union.mjs';
3
+ import { type TMappingType, type TMappingFunc } from './mapping.mjs';
4
+ import { type TFromType } from './from_type.mjs';
5
+ export type TFromUnion<Mapping extends TMappingType, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion<Mapping, Right, [...Result, TFromType<Mapping, Left>]> : TUnion<Result>);
6
+ export declare function FromUnion(mapping: TMappingFunc, types: TSchema[]): TSchema;
@@ -0,0 +1 @@
1
+ export * from './instantiate.mjs';
@@ -0,0 +1,38 @@
1
+ import { type TSchema, type TSchemaOptions } from '../../types/schema.mjs';
2
+ import { type TProperties } from '../../types/properties.mjs';
3
+ import { type TMappingType } from './mapping.mjs';
4
+ import { type TFromType } from './from_type.mjs';
5
+ import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
6
+ import { type TCapitalizeDeferred } from '../../action/capitalize.mjs';
7
+ import { type TLowercaseDeferred } from '../../action/lowercase.mjs';
8
+ import { type TUncapitalizeDeferred } from '../../action/uncapitalize.mjs';
9
+ import { type TUppercaseDeferred } from '../../action/uppercase.mjs';
10
+ interface TCapitalizeMapping extends TMappingType {
11
+ output: Capitalize<this['input']>;
12
+ }
13
+ interface TLowercaseMapping extends TMappingType {
14
+ output: Lowercase<this['input']>;
15
+ }
16
+ interface TUncapitalizeMapping extends TMappingType {
17
+ output: Uncapitalize<this['input']>;
18
+ }
19
+ interface TUppercaseMapping extends TMappingType {
20
+ output: Uppercase<this['input']>;
21
+ }
22
+ export type TCapitalizeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType<TCapitalizeMapping, Type> : TCapitalizeDeferred<Type>> = Result;
23
+ export declare function CapitalizeAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TCapitalizeAction<Type>;
24
+ export type TLowercaseAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType<TLowercaseMapping, Type> : TLowercaseDeferred<Type>> = Result;
25
+ export declare function LowercaseAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TLowercaseAction<Type>;
26
+ export type TUncapitalizeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType<TUncapitalizeMapping, Type> : TUncapitalizeDeferred<Type>> = Result;
27
+ export declare function UncapitalizeAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TUncapitalizeAction<Type>;
28
+ export type TUppercaseAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType<TUppercaseMapping, Type> : TUppercaseDeferred<Type>> = Result;
29
+ export declare function UppercaseAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TUppercaseAction<Type>;
30
+ export type TCapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TCapitalizeAction<InstantiatedType>;
31
+ export declare function CapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema>(context: Context, state: State, type: Type, options: TSchemaOptions): TCapitalizeInstantiate<Context, State, Type>;
32
+ export type TLowercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TLowercaseAction<InstantiatedType>;
33
+ export declare function LowercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema>(context: Context, state: State, type: Type, options: TSchemaOptions): TLowercaseInstantiate<Context, State, Type>;
34
+ export type TUncapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TUncapitalizeAction<InstantiatedType>;
35
+ export declare function UncapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema>(context: Context, state: State, type: Type, options: TSchemaOptions): TUncapitalizeInstantiate<Context, State, Type>;
36
+ export type TUppercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TUppercaseAction<InstantiatedType>;
37
+ export declare function UppercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema>(context: Context, state: State, type: Type, options: TSchemaOptions): TUppercaseInstantiate<Context, State, Type>;
38
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface TMappingType {
2
+ input: string;
3
+ output: string;
4
+ }
5
+ export type TApplyMapping<Mapping extends TMappingType, Value extends string> = ((Mapping & {
6
+ input: Value;
7
+ })['output']);
8
+ export type TMappingFunc = (input: string) => string;
9
+ export declare function ApplyMapping(mapping: TMappingFunc, value: string): string;
@@ -0,0 +1,6 @@
1
+ import { type TNumber } from '../../types/number.mjs';
2
+ import { type TString } from '../../types/string.mjs';
3
+ import { type TSymbol } from '../../types/symbol.mjs';
4
+ import { type TUnion } from '../../types/union.mjs';
5
+ export type TFromAny<Result = TUnion<[TNumber, TString, TSymbol]>> = Result;
6
+ export declare function FromAny(): TFromAny;
@@ -0,0 +1,4 @@
1
+ import { type TSchema } from '../../types/index.mjs';
2
+ import { type TNumber } from '../../types/number.mjs';
3
+ export type TFromArray<_Type extends TSchema> = TNumber;
4
+ export declare function FromArray<_Type extends TSchema>(_type: _Type): TFromArray<_Type>;
@@ -0,0 +1,10 @@
1
+ import { type TUnreachable } from '../../../system/unreachable/index.mjs';
2
+ import { type TSchema } from '../../types/index.mjs';
3
+ import { type TUnionToTuple } from '../helpers/index.mjs';
4
+ import { type TProperties } from '../../types/properties.mjs';
5
+ import { type TLiteral, type TLiteralValue } from '../../types/literal.mjs';
6
+ import { type TEvaluateUnionFast } from '../evaluate/evaluate.mjs';
7
+ type TFromPropertyKeys<Keys extends PropertyKey[], Result extends TSchema[] = []> = (Keys extends [infer Left extends PropertyKey, ...infer Right extends PropertyKey[]] ? Left extends TLiteralValue ? TFromPropertyKeys<Right, [...Result, TLiteral<Left>]> : TUnreachable : Result);
8
+ export type TFromObject<Properties extends TProperties, PropertyKeys extends PropertyKey[] = TUnionToTuple<keyof Properties>, Variants extends TSchema[] = TFromPropertyKeys<PropertyKeys>, Result extends TSchema = TEvaluateUnionFast<Variants>> = Result;
9
+ export declare function FromObject<Properties extends TProperties>(properties: Properties): TFromObject<Properties>;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ import { type TSchema } from '../../types/index.mjs';
2
+ import { type TRecord, type TRecordKey } from '../../types/record.mjs';
3
+ export type TFromRecord<Type extends TRecord, Result extends TSchema = TRecordKey<Type>> = Result;
4
+ export declare function FromRecord<Type extends TRecord>(type: Type): TFromRecord<Type>;
@@ -0,0 +1,5 @@
1
+ import { type TSchema } from '../../types/index.mjs';
2
+ import { type TLiteral } from '../../types/literal.mjs';
3
+ import { type TEvaluateUnionFast } from '../evaluate/evaluate.mjs';
4
+ export type TFromTuple<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [...infer Left extends TSchema[], infer _ extends TSchema] ? TFromTuple<Left, [TLiteral<Left['length']>, ...Result]> : TEvaluateUnionFast<Result>);
5
+ export declare function FromTuple<Types extends TSchema[]>(types: [...Types]): TFromTuple<Types>;
@@ -0,0 +1,15 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TProperties } from '../../types/properties.mjs';
3
+ import { type TAny } from '../../types/any.mjs';
4
+ import { type TArray } from '../../types/array.mjs';
5
+ import { type TNever } from '../../types/never.mjs';
6
+ import { type TObject } from '../../types/object.mjs';
7
+ import { type TRecord } from '../../types/record.mjs';
8
+ import { type TTuple } from '../../types/tuple.mjs';
9
+ import { type TFromAny } from './from_any.mjs';
10
+ import { type TFromArray } from './from_array.mjs';
11
+ import { type TFromObject } from './from_object.mjs';
12
+ import { type TFromRecord } from './from_record.mjs';
13
+ import { type TFromTuple } from './from_tuple.mjs';
14
+ export type TFromType<Type extends TSchema> = (Type extends TAny ? TFromAny : Type extends TArray<infer Type extends TSchema> ? TFromArray<Type> : Type extends TObject<infer Properties extends TProperties> ? TFromObject<Properties> : Type extends TRecord ? TFromRecord<Type> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple<Types> : TNever);
15
+ export declare function FromType<Type extends TSchema>(type: Type): TFromType<Type>;
@@ -0,0 +1 @@
1
+ export * from './instantiate.mjs';
@@ -0,0 +1,16 @@
1
+ import { type TSchema, type TSchemaOptions } from '../../types/schema.mjs';
2
+ import { type TProperties } from '../../types/properties.mjs';
3
+ import { type TCyclic } from '../../types/cyclic.mjs';
4
+ import { type TDependent } from '../../types/dependent.mjs';
5
+ import { type TIntersect } from '../../types/intersect.mjs';
6
+ import { type TUnion } from '../../types/union.mjs';
7
+ import { type TKeyOfDeferred } from '../../action/keyof.mjs';
8
+ import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
9
+ import { type TCollapseToObject } from '../object/index.mjs';
10
+ import { type TFromType } from './from_type.mjs';
11
+ type TNormalizeType<Type extends TSchema, Result extends TSchema = (Type extends TCyclic ? TCollapseToObject<Type> : Type extends TDependent ? TCollapseToObject<Type> : Type extends TIntersect ? TCollapseToObject<Type> : Type extends TUnion ? TCollapseToObject<Type> : Type)> = Result;
12
+ export type TKeyOfAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType<TNormalizeType<Type>> : TKeyOfDeferred<Type>> = Result;
13
+ export declare function KeyOfAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TKeyOfAction<Type>;
14
+ export type TKeyOfInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TKeyOfAction<InstantiatedType>;
15
+ export declare function KeyOfInstantiate<Context extends TProperties, State extends TState, Type extends TSchema>(context: Context, state: State, type: Type, options: TSchemaOptions): TKeyOfInstantiate<Context, State, Type>;
16
+ export {};
@@ -0,0 +1 @@
1
+ export * from './instantiate.mjs';
@@ -0,0 +1,10 @@
1
+ import { type TSchema, type TSchemaOptions } from '../../types/schema.mjs';
2
+ import { type TProperties } from '../../types/properties.mjs';
3
+ import { type TIdentifier } from '../../types/identifier.mjs';
4
+ import { type TMappedDeferred } from '../../action/mapped.mjs';
5
+ import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
6
+ import { type TMappedOperation } from './mapped_operation.mjs';
7
+ export type TMappedAction<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TMappedOperation<Context, State, Identifier, Type, As, Property> : TMappedDeferred<Identifier, Type, As, Property>> = Result;
8
+ export declare function MappedAction<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema>(context: Context, state: State, identifier: Identifier, type: Type, as: As, property: Property, options: TSchemaOptions): TMappedAction<Context, State, Identifier, Type, As, Property>;
9
+ export type TMappedInstantiate<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, InstaniatedType extends TSchema = TInstantiateType<Context, State, Type>> = TMappedAction<Context, State, Identifier, InstaniatedType, As, Property>;
10
+ export declare function MappedInstantiate<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema>(context: Context, state: State, identifier: Identifier, type: Type, as: As, property: Property, options: TSchemaOptions): TMappedInstantiate<Context, State, Identifier, Type, As, Property>;
@@ -0,0 +1,22 @@
1
+ import { Memory } from '../../../system/memory/index.mjs';
2
+ import { type TSchema } from '../../types/schema.mjs';
3
+ import { type TLiteral } from '../../types/literal.mjs';
4
+ import { type TObject } from '../../types/object.mjs';
5
+ import { type TProperties } from '../../types/properties.mjs';
6
+ import { type TIdentifier } from '../../types/identifier.mjs';
7
+ import { type TTemplateLiteral } from '../../types/template_literal.mjs';
8
+ import { type TInstantiateType, type TState } from '../instantiate.mjs';
9
+ import { type TEvaluateIntersect } from '../evaluate/evaluate.mjs';
10
+ import { type TEvaluateTemplateLiteral } from '../evaluate/evaluate.mjs';
11
+ import { type TMappedVariants } from './mapped_variants.mjs';
12
+ type TCanonicalAs<InstantiatedAs extends TSchema, Result extends TSchema = InstantiatedAs extends TTemplateLiteral<infer Pattern extends string> ? TEvaluateTemplateLiteral<Pattern> : InstantiatedAs> = Result;
13
+ type TMappedVariant<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Variant extends TSchema, As extends TSchema, Property extends TSchema, VariantContext extends TProperties = Memory.TAssign<Context, {
14
+ [_ in Identifier['name']]: Variant;
15
+ }>, InstantiatedAs extends TSchema = TInstantiateType<VariantContext, State, As>, CanonicalAs extends TSchema = TCanonicalAs<InstantiatedAs>, InstantiatedProperty extends TSchema = TInstantiateType<VariantContext, State, Property>, Result extends TProperties = CanonicalAs extends TLiteral<string | number> ? {
16
+ [_ in CanonicalAs['const']]: InstantiatedProperty;
17
+ } : {}> = Result;
18
+ type TMappedProperties<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Variants extends TSchema[], As extends TSchema, Property extends TSchema, Result extends TProperties[] = []> = (Variants extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TMappedProperties<Context, State, Identifier, Right, As, Property, [...Result, TMappedVariant<Context, State, Identifier, Left, As, Property>]> : Result);
19
+ type TReduceProperties<Properties extends TProperties[], Result extends TSchema[] = []> = (Properties extends [infer Left extends TProperties, ...infer Right extends TProperties[]] ? TReduceProperties<Right, [...Result, TObject<Left>]> : Result);
20
+ export type TMappedOperation<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, Variants extends TSchema[] = TMappedVariants<Type>, MappedProperties extends TProperties[] = TMappedProperties<Context, State, Identifier, Variants, As, Property>, MappedObjects extends TSchema[] = TReduceProperties<MappedProperties>, Result extends TSchema = TEvaluateIntersect<MappedObjects>> = Result;
21
+ export declare function MappedOperation<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema>(context: Context, state: State, identifier: Identifier, type: Type, as: As, property: Property): TMappedOperation<Context, State, Identifier, Type, As, Property>;
22
+ export {};
@@ -0,0 +1,17 @@
1
+ import { type TSchema } from '../../types/index.mjs';
2
+ import { type TLiteral, type TLiteralValue } from '../../types/literal.mjs';
3
+ import { type TEnum, type TEnumValue } from '../../types/enum.mjs';
4
+ import { type TTemplateLiteral } from '../../types/template_literal.mjs';
5
+ import { type TUnion } from '../../types/union.mjs';
6
+ import { type TEvaluateEnum } from '../evaluate/evaluate.mjs';
7
+ import { type TEvaluateTemplateLiteral } from '../evaluate/evaluate.mjs';
8
+ type TFromTemplateLiteral<Pattern extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>, Result extends TSchema[] = TFromType<Evaluated>> = Result;
9
+ type TFromUnion<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion<Right, [...Result, ...TFromType<Left>]> : Result);
10
+ type TFromEnum<Values extends TEnumValue[], Evaluated extends TSchema = TEvaluateEnum<Values>, Result extends TSchema[] = TFromType<Evaluated>> = Result;
11
+ type TFromLiteral<Value extends TLiteralValue, Result extends TSchema[] = Value extends number ? [TLiteral<`${Value}`>] : [TLiteral<Value>]> = Result;
12
+ type TFromType<Type extends TSchema, Result extends TSchema[] = (Type extends TEnum<infer Values extends TEnumValue[]> ? TFromEnum<Values> : Type extends TLiteral<infer Value extends number> ? TFromLiteral<Value> : Type extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral<Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion<Types> : [
13
+ Type
14
+ ])> = Result;
15
+ export type TMappedVariants<Type extends TSchema, Result extends TSchema[] = TFromType<Type>> = Result;
16
+ export declare function MappedVariants<Type extends TSchema>(type: Type): TMappedVariants<Type>;
17
+ export {};
@@ -0,0 +1 @@
1
+ export * from './instantiate.mjs';
@@ -0,0 +1,19 @@
1
+ import { Memory } from '../../../system/memory/index.mjs';
2
+ import { type TSchemaOptions } from '../../types/schema.mjs';
3
+ import { type TProperties } from '../../types/properties.mjs';
4
+ import { type TState } from '../instantiate.mjs';
5
+ import { type TCyclicCandidates } from '../cyclic/candidates.mjs';
6
+ import { type TInstantiateCyclic } from '../cyclic/instantiate.mjs';
7
+ import { type TInstantiateType } from '../instantiate.mjs';
8
+ type TInstantiateCyclics<Context extends TProperties, Declarations extends TProperties, CyclicKeys extends string[], DeclarationContext extends TProperties = Memory.TAssign<Context, Declarations>, Result extends TProperties = {
9
+ [Key in Extract<keyof Declarations, CyclicKeys[number]>]: TInstantiateCyclic<DeclarationContext, Key, Declarations[Key]>;
10
+ }> = Result;
11
+ type TInstantiateNonCyclics<Context extends TProperties, Declarations extends TProperties, CyclicKeys extends string[], DeclarationContext extends TProperties = Memory.TAssign<Context, Declarations>, Result extends TProperties = {
12
+ [Key in Exclude<keyof Declarations, CyclicKeys[number]>]: TInstantiateType<DeclarationContext, TState<[], []>, Declarations[Key]>;
13
+ }> = Result;
14
+ type TInstantiateModule<Context extends TProperties, Declarations extends TProperties, CyclicCandidates extends string[] = TCyclicCandidates<Declarations>, InstantiatedCyclics extends TProperties = TInstantiateCyclics<Context, Declarations, CyclicCandidates>, InstantiatedNonCyclics extends TProperties = TInstantiateNonCyclics<Context, Declarations, CyclicCandidates>, InstantiatedModule extends TProperties = InstantiatedCyclics & InstantiatedNonCyclics> = {
15
+ [Key in keyof InstantiatedModule]: InstantiatedModule[Key];
16
+ } & {};
17
+ export type TModuleInstantiate<Context extends TProperties, _State extends TState, Declarations extends TProperties, InstantiatedModule extends TProperties = TInstantiateModule<Context, Declarations>> = InstantiatedModule;
18
+ export declare function ModuleInstantiate<Context extends TProperties, State extends TState, Declarations extends TProperties>(context: Context, _state: State, declarations: Declarations, options: TSchemaOptions): TModuleInstantiate<Context, State, Declarations>;
19
+ export {};
@@ -0,0 +1 @@
1
+ export * from './instantiate.mjs';
@@ -0,0 +1,14 @@
1
+ import { type TSchema, type TSchemaOptions } from '../../types/schema.mjs';
2
+ import { type TProperties } from '../../types/properties.mjs';
3
+ import { type TNull } from '../../types/null.mjs';
4
+ import { type TUndefined } from '../../types/undefined.mjs';
5
+ import { type TUnion } from '../../types/union.mjs';
6
+ import { type TExcludeAction } from '../exclude/instantiate.mjs';
7
+ import { type TNonNullableDeferred } from '../../action/non_nullable.mjs';
8
+ import { type TState, type TInstantiateType, type TCanInstantiate } from '../instantiate.mjs';
9
+ type TNonNullableOperation<Type extends TSchema, Excluded extends TSchema = TUnion<[TNull, TUndefined]>> = TExcludeAction<Type, Excluded>;
10
+ export type TNonNullableAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TNonNullableOperation<Type> : TNonNullableDeferred<Type>> = Result;
11
+ export declare function NonNullableAction<Type extends TSchema>(type: Type, options: TSchemaOptions): TNonNullableAction<Type>;
12
+ export type TNonNullableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TNonNullableAction<InstantiatedType>;
13
+ export declare function NonNullableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema>(context: Context, state: State, type: Type, options: TSchemaOptions): TNonNullableInstantiate<Context, State, Type>;
14
+ export {};
@@ -0,0 +1,12 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TProperties } from '../../types/properties.mjs';
3
+ import { type TObject } from '../../types/object.mjs';
4
+ import { type TFromType } from './from_type.mjs';
5
+ export type TCollapseToObject<Type extends TSchema, Properties extends TProperties = TFromType<Type>, Result extends TSchema = TObject<Properties>> = Result;
6
+ /**
7
+ * Collapses a type into a TObject schema. This is a lossy fast path used to
8
+ * normalize arbitrary TSchema types into a TObject structure. This function is
9
+ * primarily used in indexing operations where a normalized object structure
10
+ * is required. If the type cannot be collapsed, an empty object schema is returned.
11
+ */
12
+ export declare function CollapseToObject<Type extends TSchema>(type: Type): TCollapseToObject<Type>;
@@ -0,0 +1,6 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TProperties } from '../../types/properties.mjs';
3
+ import { type TFromType } from './from_type.mjs';
4
+ import { type TCyclicTarget } from '../cyclic/target.mjs';
5
+ export type TFromCyclic<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Result extends TProperties = TFromType<Target>> = Result;
6
+ export declare function FromCyclic<Defs extends TProperties, Ref extends string>(defs: Defs, ref: Ref): TFromCyclic<Defs, Ref>;
@@ -0,0 +1,5 @@
1
+ import { type TSchema } from '../../types/schema.mjs';
2
+ import { type TFromType } from './from_type.mjs';
3
+ import { type TEvaluateDependent } from '../evaluate/evaluate.mjs';
4
+ export type TFromDependent<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType<Evaluated>> = Result;
5
+ export declare function FromDependent<If extends TSchema, Then extends TSchema, Else extends TSchema>(if_: If, then_: Then, else_: Else): TFromDependent<If, Then, Else>;