@astrale-os/kernel-core 0.4.1

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 (1417) hide show
  1. package/dist/auth/access.d.ts +48 -0
  2. package/dist/auth/access.d.ts.map +1 -0
  3. package/dist/auth/access.js +2 -0
  4. package/dist/auth/access.js.map +1 -0
  5. package/dist/auth/attestation/index.d.ts +2 -0
  6. package/dist/auth/attestation/index.d.ts.map +1 -0
  7. package/dist/auth/attestation/index.js +2 -0
  8. package/dist/auth/attestation/index.js.map +1 -0
  9. package/dist/auth/attestation/types.d.ts +5 -0
  10. package/dist/auth/attestation/types.d.ts.map +1 -0
  11. package/dist/auth/attestation/types.js +2 -0
  12. package/dist/auth/attestation/types.js.map +1 -0
  13. package/dist/auth/audience/errors.d.ts +8 -0
  14. package/dist/auth/audience/errors.d.ts.map +1 -0
  15. package/dist/auth/audience/errors.js +15 -0
  16. package/dist/auth/audience/errors.js.map +1 -0
  17. package/dist/auth/audience/index.d.ts +3 -0
  18. package/dist/auth/audience/index.d.ts.map +1 -0
  19. package/dist/auth/audience/index.js +3 -0
  20. package/dist/auth/audience/index.js.map +1 -0
  21. package/dist/auth/audience/verify-audience.d.ts +4 -0
  22. package/dist/auth/audience/verify-audience.d.ts.map +1 -0
  23. package/dist/auth/audience/verify-audience.js +18 -0
  24. package/dist/auth/audience/verify-audience.js.map +1 -0
  25. package/dist/auth/claims/errors.d.ts +22 -0
  26. package/dist/auth/claims/errors.d.ts.map +1 -0
  27. package/dist/auth/claims/errors.js +33 -0
  28. package/dist/auth/claims/errors.js.map +1 -0
  29. package/dist/auth/claims/index.d.ts +4 -0
  30. package/dist/auth/claims/index.d.ts.map +1 -0
  31. package/dist/auth/claims/index.js +4 -0
  32. package/dist/auth/claims/index.js.map +1 -0
  33. package/dist/auth/claims/required-claims.d.ts +16 -0
  34. package/dist/auth/claims/required-claims.d.ts.map +1 -0
  35. package/dist/auth/claims/required-claims.js +41 -0
  36. package/dist/auth/claims/required-claims.js.map +1 -0
  37. package/dist/auth/claims/types.d.ts +33 -0
  38. package/dist/auth/claims/types.d.ts.map +1 -0
  39. package/dist/auth/claims/types.js +17 -0
  40. package/dist/auth/claims/types.js.map +1 -0
  41. package/dist/auth/context.d.ts +23 -0
  42. package/dist/auth/context.d.ts.map +1 -0
  43. package/dist/auth/context.js +2 -0
  44. package/dist/auth/context.js.map +1 -0
  45. package/dist/auth/credentials/decode.d.ts +4 -0
  46. package/dist/auth/credentials/decode.d.ts.map +1 -0
  47. package/dist/auth/credentials/decode.js +7 -0
  48. package/dist/auth/credentials/decode.js.map +1 -0
  49. package/dist/auth/credentials/envelope.d.ts +15 -0
  50. package/dist/auth/credentials/envelope.d.ts.map +1 -0
  51. package/dist/auth/credentials/envelope.js +52 -0
  52. package/dist/auth/credentials/envelope.js.map +1 -0
  53. package/dist/auth/credentials/errors.d.ts +26 -0
  54. package/dist/auth/credentials/errors.d.ts.map +1 -0
  55. package/dist/auth/credentials/errors.js +37 -0
  56. package/dist/auth/credentials/errors.js.map +1 -0
  57. package/dist/auth/credentials/index.d.ts +6 -0
  58. package/dist/auth/credentials/index.d.ts.map +1 -0
  59. package/dist/auth/credentials/index.js +6 -0
  60. package/dist/auth/credentials/index.js.map +1 -0
  61. package/dist/auth/credentials/types.d.ts +19 -0
  62. package/dist/auth/credentials/types.d.ts.map +1 -0
  63. package/dist/auth/credentials/types.js +2 -0
  64. package/dist/auth/credentials/types.js.map +1 -0
  65. package/dist/auth/credentials/verify.d.ts +16 -0
  66. package/dist/auth/credentials/verify.d.ts.map +1 -0
  67. package/dist/auth/credentials/verify.js +12 -0
  68. package/dist/auth/credentials/verify.js.map +1 -0
  69. package/dist/auth/delegation/index.d.ts +2 -0
  70. package/dist/auth/delegation/index.d.ts.map +1 -0
  71. package/dist/auth/delegation/index.js +2 -0
  72. package/dist/auth/delegation/index.js.map +1 -0
  73. package/dist/auth/delegation/types.d.ts +6 -0
  74. package/dist/auth/delegation/types.d.ts.map +1 -0
  75. package/dist/auth/delegation/types.js +2 -0
  76. package/dist/auth/delegation/types.js.map +1 -0
  77. package/dist/auth/expression/buffer.d.ts +28 -0
  78. package/dist/auth/expression/buffer.d.ts.map +1 -0
  79. package/dist/auth/expression/buffer.js +101 -0
  80. package/dist/auth/expression/buffer.js.map +1 -0
  81. package/dist/auth/expression/builder.d.ts +177 -0
  82. package/dist/auth/expression/builder.d.ts.map +1 -0
  83. package/dist/auth/expression/builder.js +287 -0
  84. package/dist/auth/expression/builder.js.map +1 -0
  85. package/dist/auth/expression/codec.d.ts +28 -0
  86. package/dist/auth/expression/codec.d.ts.map +1 -0
  87. package/dist/auth/expression/codec.js +123 -0
  88. package/dist/auth/expression/codec.js.map +1 -0
  89. package/dist/auth/expression/compact.d.ts +24 -0
  90. package/dist/auth/expression/compact.d.ts.map +1 -0
  91. package/dist/auth/expression/compact.js +143 -0
  92. package/dist/auth/expression/compact.js.map +1 -0
  93. package/dist/auth/expression/dedup.d.ts +122 -0
  94. package/dist/auth/expression/dedup.d.ts.map +1 -0
  95. package/dist/auth/expression/dedup.js +290 -0
  96. package/dist/auth/expression/dedup.js.map +1 -0
  97. package/dist/auth/expression/encoding.d.ts +31 -0
  98. package/dist/auth/expression/encoding.d.ts.map +1 -0
  99. package/dist/auth/expression/encoding.js +345 -0
  100. package/dist/auth/expression/encoding.js.map +1 -0
  101. package/dist/auth/expression/index.d.ts +11 -0
  102. package/dist/auth/expression/index.d.ts.map +1 -0
  103. package/dist/auth/expression/index.js +11 -0
  104. package/dist/auth/expression/index.js.map +1 -0
  105. package/dist/auth/expression/prune.d.ts +41 -0
  106. package/dist/auth/expression/prune.d.ts.map +1 -0
  107. package/dist/auth/expression/prune.js +144 -0
  108. package/dist/auth/expression/prune.js.map +1 -0
  109. package/dist/auth/expression/scope.d.ts +81 -0
  110. package/dist/auth/expression/scope.d.ts.map +1 -0
  111. package/dist/auth/expression/scope.js +192 -0
  112. package/dist/auth/expression/scope.js.map +1 -0
  113. package/dist/auth/expression/types.d.ts +122 -0
  114. package/dist/auth/expression/types.d.ts.map +1 -0
  115. package/dist/auth/expression/types.js +2 -0
  116. package/dist/auth/expression/types.js.map +1 -0
  117. package/dist/auth/expression/validation.d.ts +35 -0
  118. package/dist/auth/expression/validation.d.ts.map +1 -0
  119. package/dist/auth/expression/validation.js +108 -0
  120. package/dist/auth/expression/validation.js.map +1 -0
  121. package/dist/auth/expression/zod.d.ts +19 -0
  122. package/dist/auth/expression/zod.d.ts.map +1 -0
  123. package/dist/auth/expression/zod.js +58 -0
  124. package/dist/auth/expression/zod.js.map +1 -0
  125. package/dist/auth/frozen/errors.d.ts +5 -0
  126. package/dist/auth/frozen/errors.d.ts.map +1 -0
  127. package/dist/auth/frozen/errors.js +8 -0
  128. package/dist/auth/frozen/errors.js.map +1 -0
  129. package/dist/auth/frozen/index.d.ts +3 -0
  130. package/dist/auth/frozen/index.d.ts.map +1 -0
  131. package/dist/auth/frozen/index.js +3 -0
  132. package/dist/auth/frozen/index.js.map +1 -0
  133. package/dist/auth/frozen/verify-frozen.d.ts +9 -0
  134. package/dist/auth/frozen/verify-frozen.d.ts.map +1 -0
  135. package/dist/auth/frozen/verify-frozen.js +13 -0
  136. package/dist/auth/frozen/verify-frozen.js.map +1 -0
  137. package/dist/auth/grants/constants.d.ts +4 -0
  138. package/dist/auth/grants/constants.d.ts.map +1 -0
  139. package/dist/auth/grants/constants.js +4 -0
  140. package/dist/auth/grants/constants.js.map +1 -0
  141. package/dist/auth/grants/errors.d.ts +57 -0
  142. package/dist/auth/grants/errors.d.ts.map +1 -0
  143. package/dist/auth/grants/errors.js +106 -0
  144. package/dist/auth/grants/errors.js.map +1 -0
  145. package/dist/auth/grants/grant-decoder.d.ts +40 -0
  146. package/dist/auth/grants/grant-decoder.d.ts.map +1 -0
  147. package/dist/auth/grants/grant-decoder.js +141 -0
  148. package/dist/auth/grants/grant-decoder.js.map +1 -0
  149. package/dist/auth/grants/grant-encoding.d.ts +47 -0
  150. package/dist/auth/grants/grant-encoding.d.ts.map +1 -0
  151. package/dist/auth/grants/grant-encoding.js +85 -0
  152. package/dist/auth/grants/grant-encoding.js.map +1 -0
  153. package/dist/auth/grants/index.d.ts +6 -0
  154. package/dist/auth/grants/index.d.ts.map +1 -0
  155. package/dist/auth/grants/index.js +6 -0
  156. package/dist/auth/grants/index.js.map +1 -0
  157. package/dist/auth/grants/types.d.ts +27 -0
  158. package/dist/auth/grants/types.d.ts.map +1 -0
  159. package/dist/auth/grants/types.js +5 -0
  160. package/dist/auth/grants/types.js.map +1 -0
  161. package/dist/auth/identity/index.d.ts +3 -0
  162. package/dist/auth/identity/index.d.ts.map +1 -0
  163. package/dist/auth/identity/index.js +3 -0
  164. package/dist/auth/identity/index.js.map +1 -0
  165. package/dist/auth/identity/types.d.ts +51 -0
  166. package/dist/auth/identity/types.d.ts.map +1 -0
  167. package/dist/auth/identity/types.js +23 -0
  168. package/dist/auth/identity/types.js.map +1 -0
  169. package/dist/auth/identity/verify.d.ts +3 -0
  170. package/dist/auth/identity/verify.d.ts.map +1 -0
  171. package/dist/auth/identity/verify.js +10 -0
  172. package/dist/auth/identity/verify.js.map +1 -0
  173. package/dist/auth/index.d.ts +15 -0
  174. package/dist/auth/index.d.ts.map +1 -0
  175. package/dist/auth/index.js +15 -0
  176. package/dist/auth/index.js.map +1 -0
  177. package/dist/auth/issuers/ids.d.ts +15 -0
  178. package/dist/auth/issuers/ids.d.ts.map +1 -0
  179. package/dist/auth/issuers/ids.js +98 -0
  180. package/dist/auth/issuers/ids.js.map +1 -0
  181. package/dist/auth/issuers/index.d.ts +2 -0
  182. package/dist/auth/issuers/index.d.ts.map +1 -0
  183. package/dist/auth/issuers/index.js +2 -0
  184. package/dist/auth/issuers/index.js.map +1 -0
  185. package/dist/auth/jwks/index.d.ts +3 -0
  186. package/dist/auth/jwks/index.d.ts.map +1 -0
  187. package/dist/auth/jwks/index.js +3 -0
  188. package/dist/auth/jwks/index.js.map +1 -0
  189. package/dist/auth/jwks/thumbprint.d.ts +13 -0
  190. package/dist/auth/jwks/thumbprint.d.ts.map +1 -0
  191. package/dist/auth/jwks/thumbprint.js +15 -0
  192. package/dist/auth/jwks/thumbprint.js.map +1 -0
  193. package/dist/auth/jwks/types.d.ts +15 -0
  194. package/dist/auth/jwks/types.d.ts.map +1 -0
  195. package/dist/auth/jwks/types.js +8 -0
  196. package/dist/auth/jwks/types.js.map +1 -0
  197. package/dist/auth/methods/classifier.d.ts +9 -0
  198. package/dist/auth/methods/classifier.d.ts.map +1 -0
  199. package/dist/auth/methods/classifier.js +10 -0
  200. package/dist/auth/methods/classifier.js.map +1 -0
  201. package/dist/auth/methods/errors.d.ts +34 -0
  202. package/dist/auth/methods/errors.d.ts.map +1 -0
  203. package/dist/auth/methods/errors.js +67 -0
  204. package/dist/auth/methods/errors.js.map +1 -0
  205. package/dist/auth/methods/factory.d.ts +3 -0
  206. package/dist/auth/methods/factory.d.ts.map +1 -0
  207. package/dist/auth/methods/factory.js +11 -0
  208. package/dist/auth/methods/factory.js.map +1 -0
  209. package/dist/auth/methods/index.d.ts +7 -0
  210. package/dist/auth/methods/index.d.ts.map +1 -0
  211. package/dist/auth/methods/index.js +7 -0
  212. package/dist/auth/methods/index.js.map +1 -0
  213. package/dist/auth/methods/jwt/index.d.ts +2 -0
  214. package/dist/auth/methods/jwt/index.d.ts.map +1 -0
  215. package/dist/auth/methods/jwt/index.js +2 -0
  216. package/dist/auth/methods/jwt/index.js.map +1 -0
  217. package/dist/auth/methods/jwt/jwt.method.d.ts +14 -0
  218. package/dist/auth/methods/jwt/jwt.method.d.ts.map +1 -0
  219. package/dist/auth/methods/jwt/jwt.method.js +195 -0
  220. package/dist/auth/methods/jwt/jwt.method.js.map +1 -0
  221. package/dist/auth/methods/registry.d.ts +21 -0
  222. package/dist/auth/methods/registry.d.ts.map +1 -0
  223. package/dist/auth/methods/registry.js +18 -0
  224. package/dist/auth/methods/registry.js.map +1 -0
  225. package/dist/auth/methods/resolver.d.ts +9 -0
  226. package/dist/auth/methods/resolver.d.ts.map +1 -0
  227. package/dist/auth/methods/resolver.js +21 -0
  228. package/dist/auth/methods/resolver.js.map +1 -0
  229. package/dist/auth/permissions/describe.d.ts +9 -0
  230. package/dist/auth/permissions/describe.d.ts.map +1 -0
  231. package/dist/auth/permissions/describe.js +26 -0
  232. package/dist/auth/permissions/describe.js.map +1 -0
  233. package/dist/auth/permissions/index.d.ts +6 -0
  234. package/dist/auth/permissions/index.d.ts.map +1 -0
  235. package/dist/auth/permissions/index.js +6 -0
  236. package/dist/auth/permissions/index.js.map +1 -0
  237. package/dist/auth/permissions/operations.d.ts +19 -0
  238. package/dist/auth/permissions/operations.d.ts.map +1 -0
  239. package/dist/auth/permissions/operations.js +48 -0
  240. package/dist/auth/permissions/operations.js.map +1 -0
  241. package/dist/auth/permissions/permission.d.ts +30 -0
  242. package/dist/auth/permissions/permission.d.ts.map +1 -0
  243. package/dist/auth/permissions/permission.js +17 -0
  244. package/dist/auth/permissions/permission.js.map +1 -0
  245. package/dist/auth/permissions/semantic.d.ts +7 -0
  246. package/dist/auth/permissions/semantic.d.ts.map +1 -0
  247. package/dist/auth/permissions/semantic.js +6 -0
  248. package/dist/auth/permissions/semantic.js.map +1 -0
  249. package/dist/auth/permissions/validation.d.ts +6 -0
  250. package/dist/auth/permissions/validation.d.ts.map +1 -0
  251. package/dist/auth/permissions/validation.js +18 -0
  252. package/dist/auth/permissions/validation.js.map +1 -0
  253. package/dist/auth/policy/identity.d.ts +59 -0
  254. package/dist/auth/policy/identity.d.ts.map +1 -0
  255. package/dist/auth/policy/identity.js +9 -0
  256. package/dist/auth/policy/identity.js.map +1 -0
  257. package/dist/auth/policy/index.d.ts +6 -0
  258. package/dist/auth/policy/index.d.ts.map +1 -0
  259. package/dist/auth/policy/index.js +6 -0
  260. package/dist/auth/policy/index.js.map +1 -0
  261. package/dist/auth/policy/provision.d.ts +29 -0
  262. package/dist/auth/policy/provision.d.ts.map +1 -0
  263. package/dist/auth/policy/provision.js +12 -0
  264. package/dist/auth/policy/provision.js.map +1 -0
  265. package/dist/auth/policy/provisioning.d.ts +210 -0
  266. package/dist/auth/policy/provisioning.d.ts.map +1 -0
  267. package/dist/auth/policy/provisioning.js +20 -0
  268. package/dist/auth/policy/provisioning.js.map +1 -0
  269. package/dist/auth/policy/trust.types.d.ts +77 -0
  270. package/dist/auth/policy/trust.types.d.ts.map +1 -0
  271. package/dist/auth/policy/trust.types.js +16 -0
  272. package/dist/auth/policy/trust.types.js.map +1 -0
  273. package/dist/auth/policy/types.d.ts +32 -0
  274. package/dist/auth/policy/types.d.ts.map +1 -0
  275. package/dist/auth/policy/types.js +15 -0
  276. package/dist/auth/policy/types.js.map +1 -0
  277. package/dist/dns-label.d.ts +26 -0
  278. package/dist/dns-label.d.ts.map +1 -0
  279. package/dist/dns-label.js +36 -0
  280. package/dist/dns-label.js.map +1 -0
  281. package/dist/domain/accessors/bind.d.ts +21 -0
  282. package/dist/domain/accessors/bind.d.ts.map +1 -0
  283. package/dist/domain/accessors/bind.js +265 -0
  284. package/dist/domain/accessors/bind.js.map +1 -0
  285. package/dist/domain/accessors/errors.d.ts +26 -0
  286. package/dist/domain/accessors/errors.d.ts.map +1 -0
  287. package/dist/domain/accessors/errors.js +37 -0
  288. package/dist/domain/accessors/errors.js.map +1 -0
  289. package/dist/domain/accessors/flatten.d.ts +27 -0
  290. package/dist/domain/accessors/flatten.d.ts.map +1 -0
  291. package/dist/domain/accessors/flatten.js +67 -0
  292. package/dist/domain/accessors/flatten.js.map +1 -0
  293. package/dist/domain/accessors/group.d.ts +51 -0
  294. package/dist/domain/accessors/group.d.ts.map +1 -0
  295. package/dist/domain/accessors/group.js +111 -0
  296. package/dist/domain/accessors/group.js.map +1 -0
  297. package/dist/domain/accessors/index.d.ts +10 -0
  298. package/dist/domain/accessors/index.d.ts.map +1 -0
  299. package/dist/domain/accessors/index.js +9 -0
  300. package/dist/domain/accessors/index.js.map +1 -0
  301. package/dist/domain/accessors/interface-counts.d.ts +18 -0
  302. package/dist/domain/accessors/interface-counts.d.ts.map +1 -0
  303. package/dist/domain/accessors/interface-counts.js +33 -0
  304. package/dist/domain/accessors/interface-counts.js.map +1 -0
  305. package/dist/domain/accessors/methods.d.ts +38 -0
  306. package/dist/domain/accessors/methods.d.ts.map +1 -0
  307. package/dist/domain/accessors/methods.js +33 -0
  308. package/dist/domain/accessors/methods.js.map +1 -0
  309. package/dist/domain/accessors/node.d.ts +26 -0
  310. package/dist/domain/accessors/node.d.ts.map +1 -0
  311. package/dist/domain/accessors/node.js +111 -0
  312. package/dist/domain/accessors/node.js.map +1 -0
  313. package/dist/domain/accessors/shortcut.d.ts +57 -0
  314. package/dist/domain/accessors/shortcut.d.ts.map +1 -0
  315. package/dist/domain/accessors/shortcut.js +87 -0
  316. package/dist/domain/accessors/shortcut.js.map +1 -0
  317. package/dist/domain/accessors/types.d.ts +319 -0
  318. package/dist/domain/accessors/types.d.ts.map +1 -0
  319. package/dist/domain/accessors/types.js +2 -0
  320. package/dist/domain/accessors/types.js.map +1 -0
  321. package/dist/domain/addressing/edges.d.ts +9 -0
  322. package/dist/domain/addressing/edges.d.ts.map +1 -0
  323. package/dist/domain/addressing/edges.js +13 -0
  324. package/dist/domain/addressing/edges.js.map +1 -0
  325. package/dist/domain/addressing/grammar/domain.d.ts +16 -0
  326. package/dist/domain/addressing/grammar/domain.d.ts.map +1 -0
  327. package/dist/domain/addressing/grammar/domain.js +92 -0
  328. package/dist/domain/addressing/grammar/domain.js.map +1 -0
  329. package/dist/domain/addressing/grammar/instance-method.d.ts +14 -0
  330. package/dist/domain/addressing/grammar/instance-method.d.ts.map +1 -0
  331. package/dist/domain/addressing/grammar/instance-method.js +101 -0
  332. package/dist/domain/addressing/grammar/instance-method.js.map +1 -0
  333. package/dist/domain/addressing/grammar/set.d.ts +23 -0
  334. package/dist/domain/addressing/grammar/set.d.ts.map +1 -0
  335. package/dist/domain/addressing/grammar/set.js +31 -0
  336. package/dist/domain/addressing/grammar/set.js.map +1 -0
  337. package/dist/domain/addressing/grammar/tokens.d.ts +30 -0
  338. package/dist/domain/addressing/grammar/tokens.d.ts.map +1 -0
  339. package/dist/domain/addressing/grammar/tokens.js +34 -0
  340. package/dist/domain/addressing/grammar/tokens.js.map +1 -0
  341. package/dist/domain/addressing/keys/build.d.ts +10 -0
  342. package/dist/domain/addressing/keys/build.d.ts.map +1 -0
  343. package/dist/domain/addressing/keys/build.js +15 -0
  344. package/dist/domain/addressing/keys/build.js.map +1 -0
  345. package/dist/domain/addressing/keys/index.d.ts +4 -0
  346. package/dist/domain/addressing/keys/index.d.ts.map +1 -0
  347. package/dist/domain/addressing/keys/index.js +3 -0
  348. package/dist/domain/addressing/keys/index.js.map +1 -0
  349. package/dist/domain/addressing/keys/key.d.ts +70 -0
  350. package/dist/domain/addressing/keys/key.d.ts.map +1 -0
  351. package/dist/domain/addressing/keys/key.js +118 -0
  352. package/dist/domain/addressing/keys/key.js.map +1 -0
  353. package/dist/domain/addressing/keys/types.d.ts +28 -0
  354. package/dist/domain/addressing/keys/types.d.ts.map +1 -0
  355. package/dist/domain/addressing/keys/types.js +2 -0
  356. package/dist/domain/addressing/keys/types.js.map +1 -0
  357. package/dist/domain/addressing/layout/build.d.ts +20 -0
  358. package/dist/domain/addressing/layout/build.d.ts.map +1 -0
  359. package/dist/domain/addressing/layout/build.js +33 -0
  360. package/dist/domain/addressing/layout/build.js.map +1 -0
  361. package/dist/domain/addressing/layout/default.d.ts +67 -0
  362. package/dist/domain/addressing/layout/default.d.ts.map +1 -0
  363. package/dist/domain/addressing/layout/default.js +108 -0
  364. package/dist/domain/addressing/layout/default.js.map +1 -0
  365. package/dist/domain/addressing/layout/errors.d.ts +7 -0
  366. package/dist/domain/addressing/layout/errors.d.ts.map +1 -0
  367. package/dist/domain/addressing/layout/errors.js +10 -0
  368. package/dist/domain/addressing/layout/errors.js.map +1 -0
  369. package/dist/domain/addressing/layout/index.d.ts +8 -0
  370. package/dist/domain/addressing/layout/index.d.ts.map +1 -0
  371. package/dist/domain/addressing/layout/index.js +6 -0
  372. package/dist/domain/addressing/layout/index.js.map +1 -0
  373. package/dist/domain/addressing/layout/merge.d.ts +13 -0
  374. package/dist/domain/addressing/layout/merge.d.ts.map +1 -0
  375. package/dist/domain/addressing/layout/merge.js +19 -0
  376. package/dist/domain/addressing/layout/merge.js.map +1 -0
  377. package/dist/domain/addressing/layout/types.d.ts +15 -0
  378. package/dist/domain/addressing/layout/types.d.ts.map +1 -0
  379. package/dist/domain/addressing/layout/types.js +2 -0
  380. package/dist/domain/addressing/layout/types.js.map +1 -0
  381. package/dist/domain/addressing/layout/validate.d.ts +15 -0
  382. package/dist/domain/addressing/layout/validate.d.ts.map +1 -0
  383. package/dist/domain/addressing/layout/validate.js +31 -0
  384. package/dist/domain/addressing/layout/validate.js.map +1 -0
  385. package/dist/domain/addressing/namespace.d.ts +28 -0
  386. package/dist/domain/addressing/namespace.d.ts.map +1 -0
  387. package/dist/domain/addressing/namespace.js +30 -0
  388. package/dist/domain/addressing/namespace.js.map +1 -0
  389. package/dist/domain/addressing/paths/class.d.ts +47 -0
  390. package/dist/domain/addressing/paths/class.d.ts.map +1 -0
  391. package/dist/domain/addressing/paths/class.js +141 -0
  392. package/dist/domain/addressing/paths/class.js.map +1 -0
  393. package/dist/domain/addressing/paths/constants.d.ts +5 -0
  394. package/dist/domain/addressing/paths/constants.d.ts.map +1 -0
  395. package/dist/domain/addressing/paths/constants.js +10 -0
  396. package/dist/domain/addressing/paths/constants.js.map +1 -0
  397. package/dist/domain/addressing/paths/domain.d.ts +61 -0
  398. package/dist/domain/addressing/paths/domain.d.ts.map +1 -0
  399. package/dist/domain/addressing/paths/domain.js +185 -0
  400. package/dist/domain/addressing/paths/domain.js.map +1 -0
  401. package/dist/domain/addressing/paths/errors.d.ts +7 -0
  402. package/dist/domain/addressing/paths/errors.d.ts.map +1 -0
  403. package/dist/domain/addressing/paths/errors.js +12 -0
  404. package/dist/domain/addressing/paths/errors.js.map +1 -0
  405. package/dist/domain/addressing/paths/index.d.ts +12 -0
  406. package/dist/domain/addressing/paths/index.d.ts.map +1 -0
  407. package/dist/domain/addressing/paths/index.js +14 -0
  408. package/dist/domain/addressing/paths/index.js.map +1 -0
  409. package/dist/domain/addressing/paths/instance-method.d.ts +31 -0
  410. package/dist/domain/addressing/paths/instance-method.d.ts.map +1 -0
  411. package/dist/domain/addressing/paths/instance-method.js +103 -0
  412. package/dist/domain/addressing/paths/instance-method.js.map +1 -0
  413. package/dist/domain/addressing/paths/interface.d.ts +43 -0
  414. package/dist/domain/addressing/paths/interface.d.ts.map +1 -0
  415. package/dist/domain/addressing/paths/interface.js +138 -0
  416. package/dist/domain/addressing/paths/interface.js.map +1 -0
  417. package/dist/domain/addressing/paths/method.d.ts +50 -0
  418. package/dist/domain/addressing/paths/method.d.ts.map +1 -0
  419. package/dist/domain/addressing/paths/method.js +172 -0
  420. package/dist/domain/addressing/paths/method.js.map +1 -0
  421. package/dist/domain/addressing/paths/zod.d.ts +18 -0
  422. package/dist/domain/addressing/paths/zod.d.ts.map +1 -0
  423. package/dist/domain/addressing/paths/zod.js +19 -0
  424. package/dist/domain/addressing/paths/zod.js.map +1 -0
  425. package/dist/domain/addressing/refs/build.d.ts +33 -0
  426. package/dist/domain/addressing/refs/build.d.ts.map +1 -0
  427. package/dist/domain/addressing/refs/build.js +155 -0
  428. package/dist/domain/addressing/refs/build.js.map +1 -0
  429. package/dist/domain/addressing/refs/errors.d.ts +12 -0
  430. package/dist/domain/addressing/refs/errors.d.ts.map +1 -0
  431. package/dist/domain/addressing/refs/errors.js +21 -0
  432. package/dist/domain/addressing/refs/errors.js.map +1 -0
  433. package/dist/domain/addressing/refs/index.d.ts +7 -0
  434. package/dist/domain/addressing/refs/index.d.ts.map +1 -0
  435. package/dist/domain/addressing/refs/index.js +6 -0
  436. package/dist/domain/addressing/refs/index.js.map +1 -0
  437. package/dist/domain/addressing/refs/iterate.d.ts +17 -0
  438. package/dist/domain/addressing/refs/iterate.d.ts.map +1 -0
  439. package/dist/domain/addressing/refs/iterate.js +42 -0
  440. package/dist/domain/addressing/refs/iterate.js.map +1 -0
  441. package/dist/domain/addressing/refs/project.d.ts +26 -0
  442. package/dist/domain/addressing/refs/project.d.ts.map +1 -0
  443. package/dist/domain/addressing/refs/project.js +39 -0
  444. package/dist/domain/addressing/refs/project.js.map +1 -0
  445. package/dist/domain/addressing/refs/ref.d.ts +80 -0
  446. package/dist/domain/addressing/refs/ref.d.ts.map +1 -0
  447. package/dist/domain/addressing/refs/ref.js +146 -0
  448. package/dist/domain/addressing/refs/ref.js.map +1 -0
  449. package/dist/domain/addressing/refs/types.d.ts +167 -0
  450. package/dist/domain/addressing/refs/types.d.ts.map +1 -0
  451. package/dist/domain/addressing/refs/types.js +27 -0
  452. package/dist/domain/addressing/refs/types.js.map +1 -0
  453. package/dist/domain/addressing/segments/installed-in.d.ts +15 -0
  454. package/dist/domain/addressing/segments/installed-in.d.ts.map +1 -0
  455. package/dist/domain/addressing/segments/installed-in.js +19 -0
  456. package/dist/domain/addressing/segments/installed-in.js.map +1 -0
  457. package/dist/domain/addressing/segments/method-of.d.ts +10 -0
  458. package/dist/domain/addressing/segments/method-of.d.ts.map +1 -0
  459. package/dist/domain/addressing/segments/method-of.js +14 -0
  460. package/dist/domain/addressing/segments/method-of.js.map +1 -0
  461. package/dist/domain/addressing/segments/of-domain.d.ts +15 -0
  462. package/dist/domain/addressing/segments/of-domain.d.ts.map +1 -0
  463. package/dist/domain/addressing/segments/of-domain.js +19 -0
  464. package/dist/domain/addressing/segments/of-domain.js.map +1 -0
  465. package/dist/domain/compile/catalog/def-types.d.ts +28 -0
  466. package/dist/domain/compile/catalog/def-types.d.ts.map +1 -0
  467. package/dist/domain/compile/catalog/def-types.js +8 -0
  468. package/dist/domain/compile/catalog/def-types.js.map +1 -0
  469. package/dist/domain/compile/catalog/defs.d.ts +7 -0
  470. package/dist/domain/compile/catalog/defs.d.ts.map +1 -0
  471. package/dist/domain/compile/catalog/defs.js +8 -0
  472. package/dist/domain/compile/catalog/defs.js.map +1 -0
  473. package/dist/domain/compile/catalog/index.d.ts +4 -0
  474. package/dist/domain/compile/catalog/index.d.ts.map +1 -0
  475. package/dist/domain/compile/catalog/index.js +5 -0
  476. package/dist/domain/compile/catalog/index.js.map +1 -0
  477. package/dist/domain/compile/catalog/system-properties.d.ts +28 -0
  478. package/dist/domain/compile/catalog/system-properties.d.ts.map +1 -0
  479. package/dist/domain/compile/catalog/system-properties.js +71 -0
  480. package/dist/domain/compile/catalog/system-properties.js.map +1 -0
  481. package/dist/domain/compile/compile.d.ts +36 -0
  482. package/dist/domain/compile/compile.d.ts.map +1 -0
  483. package/dist/domain/compile/compile.js +91 -0
  484. package/dist/domain/compile/compile.js.map +1 -0
  485. package/dist/domain/compile/core/compile.d.ts +66 -0
  486. package/dist/domain/compile/core/compile.d.ts.map +1 -0
  487. package/dist/domain/compile/core/compile.js +139 -0
  488. package/dist/domain/compile/core/compile.js.map +1 -0
  489. package/dist/domain/compile/core/index.d.ts +3 -0
  490. package/dist/domain/compile/core/index.d.ts.map +1 -0
  491. package/dist/domain/compile/core/index.js +2 -0
  492. package/dist/domain/compile/core/index.js.map +1 -0
  493. package/dist/domain/compile/core/types.d.ts +15 -0
  494. package/dist/domain/compile/core/types.d.ts.map +1 -0
  495. package/dist/domain/compile/core/types.js +5 -0
  496. package/dist/domain/compile/core/types.js.map +1 -0
  497. package/dist/domain/compile/errors.d.ts +8 -0
  498. package/dist/domain/compile/errors.d.ts.map +1 -0
  499. package/dist/domain/compile/errors.js +12 -0
  500. package/dist/domain/compile/errors.js.map +1 -0
  501. package/dist/domain/compile/external-ids.d.ts +18 -0
  502. package/dist/domain/compile/external-ids.d.ts.map +1 -0
  503. package/dist/domain/compile/external-ids.js +23 -0
  504. package/dist/domain/compile/external-ids.js.map +1 -0
  505. package/dist/domain/compile/imports/index.d.ts +4 -0
  506. package/dist/domain/compile/imports/index.d.ts.map +1 -0
  507. package/dist/domain/compile/imports/index.js +3 -0
  508. package/dist/domain/compile/imports/index.js.map +1 -0
  509. package/dist/domain/compile/imports/resolve.d.ts +14 -0
  510. package/dist/domain/compile/imports/resolve.d.ts.map +1 -0
  511. package/dist/domain/compile/imports/resolve.js +47 -0
  512. package/dist/domain/compile/imports/resolve.js.map +1 -0
  513. package/dist/domain/compile/imports/scan.d.ts +21 -0
  514. package/dist/domain/compile/imports/scan.d.ts.map +1 -0
  515. package/dist/domain/compile/imports/scan.js +40 -0
  516. package/dist/domain/compile/imports/scan.js.map +1 -0
  517. package/dist/domain/compile/imports/types.d.ts +38 -0
  518. package/dist/domain/compile/imports/types.d.ts.map +1 -0
  519. package/dist/domain/compile/imports/types.js +2 -0
  520. package/dist/domain/compile/imports/types.js.map +1 -0
  521. package/dist/domain/compile/index.d.ts +9 -0
  522. package/dist/domain/compile/index.d.ts.map +1 -0
  523. package/dist/domain/compile/index.js +10 -0
  524. package/dist/domain/compile/index.js.map +1 -0
  525. package/dist/domain/compile/inheritance.d.ts +21 -0
  526. package/dist/domain/compile/inheritance.d.ts.map +1 -0
  527. package/dist/domain/compile/inheritance.js +52 -0
  528. package/dist/domain/compile/inheritance.js.map +1 -0
  529. package/dist/domain/compile/internals.d.ts +93 -0
  530. package/dist/domain/compile/internals.d.ts.map +1 -0
  531. package/dist/domain/compile/internals.js +78 -0
  532. package/dist/domain/compile/internals.js.map +1 -0
  533. package/dist/domain/compile/method/bind.d.ts +33 -0
  534. package/dist/domain/compile/method/bind.d.ts.map +1 -0
  535. package/dist/domain/compile/method/bind.js +182 -0
  536. package/dist/domain/compile/method/bind.js.map +1 -0
  537. package/dist/domain/compile/method/bound-method.d.ts +56 -0
  538. package/dist/domain/compile/method/bound-method.d.ts.map +1 -0
  539. package/dist/domain/compile/method/bound-method.js +2 -0
  540. package/dist/domain/compile/method/bound-method.js.map +1 -0
  541. package/dist/domain/compile/method/errors.d.ts +8 -0
  542. package/dist/domain/compile/method/errors.d.ts.map +1 -0
  543. package/dist/domain/compile/method/errors.js +12 -0
  544. package/dist/domain/compile/method/errors.js.map +1 -0
  545. package/dist/domain/compile/method/index.d.ts +12 -0
  546. package/dist/domain/compile/method/index.d.ts.map +1 -0
  547. package/dist/domain/compile/method/index.js +10 -0
  548. package/dist/domain/compile/method/index.js.map +1 -0
  549. package/dist/domain/compile/method/inheritance-keys.d.ts +24 -0
  550. package/dist/domain/compile/method/inheritance-keys.d.ts.map +1 -0
  551. package/dist/domain/compile/method/inheritance-keys.js +13 -0
  552. package/dist/domain/compile/method/inheritance-keys.js.map +1 -0
  553. package/dist/domain/compile/method/resolve.d.ts +93 -0
  554. package/dist/domain/compile/method/resolve.d.ts.map +1 -0
  555. package/dist/domain/compile/method/resolve.js +194 -0
  556. package/dist/domain/compile/method/resolve.js.map +1 -0
  557. package/dist/domain/compile/method/serialized.d.ts +130 -0
  558. package/dist/domain/compile/method/serialized.d.ts.map +1 -0
  559. package/dist/domain/compile/method/serialized.js +75 -0
  560. package/dist/domain/compile/method/serialized.js.map +1 -0
  561. package/dist/domain/compile/method/signature.d.ts +78 -0
  562. package/dist/domain/compile/method/signature.d.ts.map +1 -0
  563. package/dist/domain/compile/method/signature.js +8 -0
  564. package/dist/domain/compile/method/signature.js.map +1 -0
  565. package/dist/domain/compile/method/types.d.ts +101 -0
  566. package/dist/domain/compile/method/types.d.ts.map +1 -0
  567. package/dist/domain/compile/method/types.js +14 -0
  568. package/dist/domain/compile/method/types.js.map +1 -0
  569. package/dist/domain/compile/method/wire.d.ts +35 -0
  570. package/dist/domain/compile/method/wire.d.ts.map +1 -0
  571. package/dist/domain/compile/method/wire.js +50 -0
  572. package/dist/domain/compile/method/wire.js.map +1 -0
  573. package/dist/domain/compile/property/build.d.ts +20 -0
  574. package/dist/domain/compile/property/build.d.ts.map +1 -0
  575. package/dist/domain/compile/property/build.js +90 -0
  576. package/dist/domain/compile/property/build.js.map +1 -0
  577. package/dist/domain/compile/property/index.d.ts +3 -0
  578. package/dist/domain/compile/property/index.d.ts.map +1 -0
  579. package/dist/domain/compile/property/index.js +2 -0
  580. package/dist/domain/compile/property/index.js.map +1 -0
  581. package/dist/domain/compile/property/types.d.ts +84 -0
  582. package/dist/domain/compile/property/types.d.ts.map +1 -0
  583. package/dist/domain/compile/property/types.js +2 -0
  584. package/dist/domain/compile/property/types.js.map +1 -0
  585. package/dist/domain/compile/types.d.ts +56 -0
  586. package/dist/domain/compile/types.d.ts.map +1 -0
  587. package/dist/domain/compile/types.js +2 -0
  588. package/dist/domain/compile/types.js.map +1 -0
  589. package/dist/domain/compile/validation/index.d.ts +3 -0
  590. package/dist/domain/compile/validation/index.d.ts.map +1 -0
  591. package/dist/domain/compile/validation/index.js +2 -0
  592. package/dist/domain/compile/validation/index.js.map +1 -0
  593. package/dist/domain/compile/validation/validate.d.ts +26 -0
  594. package/dist/domain/compile/validation/validate.d.ts.map +1 -0
  595. package/dist/domain/compile/validation/validate.js +159 -0
  596. package/dist/domain/compile/validation/validate.js.map +1 -0
  597. package/dist/domain/deserialize/deserialize.d.ts +55 -0
  598. package/dist/domain/deserialize/deserialize.d.ts.map +1 -0
  599. package/dist/domain/deserialize/deserialize.js +863 -0
  600. package/dist/domain/deserialize/deserialize.js.map +1 -0
  601. package/dist/domain/deserialize/errors.d.ts +30 -0
  602. package/dist/domain/deserialize/errors.d.ts.map +1 -0
  603. package/dist/domain/deserialize/errors.js +10 -0
  604. package/dist/domain/deserialize/errors.js.map +1 -0
  605. package/dist/domain/deserialize/index.d.ts +22 -0
  606. package/dist/domain/deserialize/index.d.ts.map +1 -0
  607. package/dist/domain/deserialize/index.js +21 -0
  608. package/dist/domain/deserialize/index.js.map +1 -0
  609. package/dist/domain/errors.d.ts +11 -0
  610. package/dist/domain/errors.d.ts.map +1 -0
  611. package/dist/domain/errors.js +14 -0
  612. package/dist/domain/errors.js.map +1 -0
  613. package/dist/domain/identity/resolve-callables.d.ts +51 -0
  614. package/dist/domain/identity/resolve-callables.d.ts.map +1 -0
  615. package/dist/domain/identity/resolve-callables.js +75 -0
  616. package/dist/domain/identity/resolve-callables.js.map +1 -0
  617. package/dist/domain/index.d.ts +51 -0
  618. package/dist/domain/index.d.ts.map +1 -0
  619. package/dist/domain/index.js +37 -0
  620. package/dist/domain/index.js.map +1 -0
  621. package/dist/domain/install-bundle.d.ts +44 -0
  622. package/dist/domain/install-bundle.d.ts.map +1 -0
  623. package/dist/domain/install-bundle.js +45 -0
  624. package/dist/domain/install-bundle.js.map +1 -0
  625. package/dist/domain/origin.d.ts +18 -0
  626. package/dist/domain/origin.d.ts.map +1 -0
  627. package/dist/domain/origin.js +11 -0
  628. package/dist/domain/origin.js.map +1 -0
  629. package/dist/domain/serialize/core.d.ts +28 -0
  630. package/dist/domain/serialize/core.d.ts.map +1 -0
  631. package/dist/domain/serialize/core.js +107 -0
  632. package/dist/domain/serialize/core.js.map +1 -0
  633. package/dist/domain/serialize/errors.d.ts +8 -0
  634. package/dist/domain/serialize/errors.d.ts.map +1 -0
  635. package/dist/domain/serialize/errors.js +12 -0
  636. package/dist/domain/serialize/errors.js.map +1 -0
  637. package/dist/domain/serialize/index.d.ts +6 -0
  638. package/dist/domain/serialize/index.d.ts.map +1 -0
  639. package/dist/domain/serialize/index.js +8 -0
  640. package/dist/domain/serialize/index.js.map +1 -0
  641. package/dist/domain/serialize/merge-trees.d.ts +14 -0
  642. package/dist/domain/serialize/merge-trees.d.ts.map +1 -0
  643. package/dist/domain/serialize/merge-trees.js +39 -0
  644. package/dist/domain/serialize/merge-trees.js.map +1 -0
  645. package/dist/domain/serialize/schema.d.ts +35 -0
  646. package/dist/domain/serialize/schema.d.ts.map +1 -0
  647. package/dist/domain/serialize/schema.js +525 -0
  648. package/dist/domain/serialize/schema.js.map +1 -0
  649. package/dist/domain/serialize/serialize.d.ts +43 -0
  650. package/dist/domain/serialize/serialize.d.ts.map +1 -0
  651. package/dist/domain/serialize/serialize.js +36 -0
  652. package/dist/domain/serialize/serialize.js.map +1 -0
  653. package/dist/domain/serialize/zod-schema.d.ts +17 -0
  654. package/dist/domain/serialize/zod-schema.d.ts.map +1 -0
  655. package/dist/domain/serialize/zod-schema.js +71 -0
  656. package/dist/domain/serialize/zod-schema.js.map +1 -0
  657. package/dist/events/envelope.d.ts +19 -0
  658. package/dist/events/envelope.d.ts.map +1 -0
  659. package/dist/events/envelope.js +2 -0
  660. package/dist/events/envelope.js.map +1 -0
  661. package/dist/events/ids.d.ts +9 -0
  662. package/dist/events/ids.d.ts.map +1 -0
  663. package/dist/events/ids.js +3 -0
  664. package/dist/events/ids.js.map +1 -0
  665. package/dist/events/index.d.ts +7 -0
  666. package/dist/events/index.d.ts.map +1 -0
  667. package/dist/events/index.js +7 -0
  668. package/dist/events/index.js.map +1 -0
  669. package/dist/events/journal/filter.d.ts +14 -0
  670. package/dist/events/journal/filter.d.ts.map +1 -0
  671. package/dist/events/journal/filter.js +48 -0
  672. package/dist/events/journal/filter.js.map +1 -0
  673. package/dist/events/journal/index.d.ts +3 -0
  674. package/dist/events/journal/index.d.ts.map +1 -0
  675. package/dist/events/journal/index.js +2 -0
  676. package/dist/events/journal/index.js.map +1 -0
  677. package/dist/events/journal/types.d.ts +21 -0
  678. package/dist/events/journal/types.d.ts.map +1 -0
  679. package/dist/events/journal/types.js +2 -0
  680. package/dist/events/journal/types.js.map +1 -0
  681. package/dist/events/payloads.d.ts +61 -0
  682. package/dist/events/payloads.d.ts.map +1 -0
  683. package/dist/events/payloads.js +2 -0
  684. package/dist/events/payloads.js.map +1 -0
  685. package/dist/events/subscription.d.ts +9 -0
  686. package/dist/events/subscription.d.ts.map +1 -0
  687. package/dist/events/subscription.js +2 -0
  688. package/dist/events/subscription.js.map +1 -0
  689. package/dist/events/topics.d.ts +19 -0
  690. package/dist/events/topics.d.ts.map +1 -0
  691. package/dist/events/topics.js +6 -0
  692. package/dist/events/topics.js.map +1 -0
  693. package/dist/graph/edge/edge.d.ts +42 -0
  694. package/dist/graph/edge/edge.d.ts.map +1 -0
  695. package/dist/graph/edge/edge.js +2 -0
  696. package/dist/graph/edge/edge.js.map +1 -0
  697. package/dist/graph/edge/identity.d.ts +33 -0
  698. package/dist/graph/edge/identity.d.ts.map +1 -0
  699. package/dist/graph/edge/identity.js +10 -0
  700. package/dist/graph/edge/identity.js.map +1 -0
  701. package/dist/graph/edge/index.d.ts +4 -0
  702. package/dist/graph/edge/index.d.ts.map +1 -0
  703. package/dist/graph/edge/index.js +2 -0
  704. package/dist/graph/edge/index.js.map +1 -0
  705. package/dist/graph/edge/zod.d.ts +21 -0
  706. package/dist/graph/edge/zod.d.ts.map +1 -0
  707. package/dist/graph/edge/zod.js +27 -0
  708. package/dist/graph/edge/zod.js.map +1 -0
  709. package/dist/graph/errors.d.ts +100 -0
  710. package/dist/graph/errors.d.ts.map +1 -0
  711. package/dist/graph/errors.js +117 -0
  712. package/dist/graph/errors.js.map +1 -0
  713. package/dist/graph/graph/build/from.d.ts +62 -0
  714. package/dist/graph/graph/build/from.d.ts.map +1 -0
  715. package/dist/graph/graph/build/from.js +47 -0
  716. package/dist/graph/graph/build/from.js.map +1 -0
  717. package/dist/graph/graph/build/index.d.ts +11 -0
  718. package/dist/graph/graph/build/index.d.ts.map +1 -0
  719. package/dist/graph/graph/build/index.js +11 -0
  720. package/dist/graph/graph/build/index.js.map +1 -0
  721. package/dist/graph/graph/build/normalize.d.ts +20 -0
  722. package/dist/graph/graph/build/normalize.d.ts.map +1 -0
  723. package/dist/graph/graph/build/normalize.js +49 -0
  724. package/dist/graph/graph/build/normalize.js.map +1 -0
  725. package/dist/graph/graph/build/validate.d.ts +11 -0
  726. package/dist/graph/graph/build/validate.d.ts.map +1 -0
  727. package/dist/graph/graph/build/validate.js +56 -0
  728. package/dist/graph/graph/build/validate.js.map +1 -0
  729. package/dist/graph/graph/graph.d.ts +136 -0
  730. package/dist/graph/graph/graph.d.ts.map +1 -0
  731. package/dist/graph/graph/graph.js +220 -0
  732. package/dist/graph/graph/graph.js.map +1 -0
  733. package/dist/graph/graph/index.d.ts +24 -0
  734. package/dist/graph/graph/index.d.ts.map +1 -0
  735. package/dist/graph/graph/index.js +18 -0
  736. package/dist/graph/graph/index.js.map +1 -0
  737. package/dist/graph/graph/indexes/edges.d.ts +23 -0
  738. package/dist/graph/graph/indexes/edges.d.ts.map +1 -0
  739. package/dist/graph/graph/indexes/edges.js +49 -0
  740. package/dist/graph/graph/indexes/edges.js.map +1 -0
  741. package/dist/graph/graph/indexes/ids.d.ts +15 -0
  742. package/dist/graph/graph/indexes/ids.d.ts.map +1 -0
  743. package/dist/graph/graph/indexes/ids.js +30 -0
  744. package/dist/graph/graph/indexes/ids.js.map +1 -0
  745. package/dist/graph/graph/indexes/index.d.ts +22 -0
  746. package/dist/graph/graph/indexes/index.d.ts.map +1 -0
  747. package/dist/graph/graph/indexes/index.js +21 -0
  748. package/dist/graph/graph/indexes/index.js.map +1 -0
  749. package/dist/graph/graph/indexes/nodes.d.ts +15 -0
  750. package/dist/graph/graph/indexes/nodes.d.ts.map +1 -0
  751. package/dist/graph/graph/indexes/nodes.js +20 -0
  752. package/dist/graph/graph/indexes/nodes.js.map +1 -0
  753. package/dist/graph/graph/indexes/path-index.d.ts +54 -0
  754. package/dist/graph/graph/indexes/path-index.d.ts.map +1 -0
  755. package/dist/graph/graph/indexes/path-index.js +140 -0
  756. package/dist/graph/graph/indexes/path-index.js.map +1 -0
  757. package/dist/graph/graph/indexes/view.d.ts +60 -0
  758. package/dist/graph/graph/indexes/view.d.ts.map +1 -0
  759. package/dist/graph/graph/indexes/view.js +47 -0
  760. package/dist/graph/graph/indexes/view.js.map +1 -0
  761. package/dist/graph/graph/namespaces.d.ts +53 -0
  762. package/dist/graph/graph/namespaces.d.ts.map +1 -0
  763. package/dist/graph/graph/namespaces.js +2 -0
  764. package/dist/graph/graph/namespaces.js.map +1 -0
  765. package/dist/graph/graph/root.d.ts +36 -0
  766. package/dist/graph/graph/root.d.ts.map +1 -0
  767. package/dist/graph/graph/root.js +85 -0
  768. package/dist/graph/graph/root.js.map +1 -0
  769. package/dist/graph/graph/walker.d.ts +80 -0
  770. package/dist/graph/graph/walker.d.ts.map +1 -0
  771. package/dist/graph/graph/walker.js +126 -0
  772. package/dist/graph/graph/walker.js.map +1 -0
  773. package/dist/graph/graph/wire.d.ts +34 -0
  774. package/dist/graph/graph/wire.d.ts.map +1 -0
  775. package/dist/graph/graph/wire.js +37 -0
  776. package/dist/graph/graph/wire.js.map +1 -0
  777. package/dist/graph/index.d.ts +18 -0
  778. package/dist/graph/index.d.ts.map +1 -0
  779. package/dist/graph/index.js +14 -0
  780. package/dist/graph/index.js.map +1 -0
  781. package/dist/graph/nav/ast/predicate/index.d.ts +3 -0
  782. package/dist/graph/nav/ast/predicate/index.d.ts.map +1 -0
  783. package/dist/graph/nav/ast/predicate/index.js +2 -0
  784. package/dist/graph/nav/ast/predicate/index.js.map +1 -0
  785. package/dist/graph/nav/ast/predicate/operations.d.ts +27 -0
  786. package/dist/graph/nav/ast/predicate/operations.d.ts.map +1 -0
  787. package/dist/graph/nav/ast/predicate/operations.js +75 -0
  788. package/dist/graph/nav/ast/predicate/operations.js.map +1 -0
  789. package/dist/graph/nav/ast/predicate/types.d.ts +28 -0
  790. package/dist/graph/nav/ast/predicate/types.d.ts.map +1 -0
  791. package/dist/graph/nav/ast/predicate/types.js +3 -0
  792. package/dist/graph/nav/ast/predicate/types.js.map +1 -0
  793. package/dist/graph/nav/ast/slug.d.ts +18 -0
  794. package/dist/graph/nav/ast/slug.d.ts.map +1 -0
  795. package/dist/graph/nav/ast/slug.js +19 -0
  796. package/dist/graph/nav/ast/slug.js.map +1 -0
  797. package/dist/graph/nav/ast/step/anchor.d.ts +33 -0
  798. package/dist/graph/nav/ast/step/anchor.d.ts.map +1 -0
  799. package/dist/graph/nav/ast/step/anchor.js +15 -0
  800. package/dist/graph/nav/ast/step/anchor.js.map +1 -0
  801. package/dist/graph/nav/ast/step/index.d.ts +7 -0
  802. package/dist/graph/nav/ast/step/index.d.ts.map +1 -0
  803. package/dist/graph/nav/ast/step/index.js +3 -0
  804. package/dist/graph/nav/ast/step/index.js.map +1 -0
  805. package/dist/graph/nav/ast/step/reverse.d.ts +21 -0
  806. package/dist/graph/nav/ast/step/reverse.d.ts.map +1 -0
  807. package/dist/graph/nav/ast/step/reverse.js +58 -0
  808. package/dist/graph/nav/ast/step/reverse.js.map +1 -0
  809. package/dist/graph/nav/ast/step/traversal.d.ts +39 -0
  810. package/dist/graph/nav/ast/step/traversal.d.ts.map +1 -0
  811. package/dist/graph/nav/ast/step/traversal.js +5 -0
  812. package/dist/graph/nav/ast/step/traversal.js.map +1 -0
  813. package/dist/graph/nav/grammar/core.d.ts +25 -0
  814. package/dist/graph/nav/grammar/core.d.ts.map +1 -0
  815. package/dist/graph/nav/grammar/core.js +12 -0
  816. package/dist/graph/nav/grammar/core.js.map +1 -0
  817. package/dist/graph/nav/grammar/extension.d.ts +35 -0
  818. package/dist/graph/nav/grammar/extension.d.ts.map +1 -0
  819. package/dist/graph/nav/grammar/extension.js +2 -0
  820. package/dist/graph/nav/grammar/extension.js.map +1 -0
  821. package/dist/graph/nav/grammar/index.d.ts +7 -0
  822. package/dist/graph/nav/grammar/index.d.ts.map +1 -0
  823. package/dist/graph/nav/grammar/index.js +4 -0
  824. package/dist/graph/nav/grammar/index.js.map +1 -0
  825. package/dist/graph/nav/grammar/registry.d.ts +25 -0
  826. package/dist/graph/nav/grammar/registry.d.ts.map +1 -0
  827. package/dist/graph/nav/grammar/registry.js +38 -0
  828. package/dist/graph/nav/grammar/registry.js.map +1 -0
  829. package/dist/graph/nav/index.d.ts +36 -0
  830. package/dist/graph/nav/index.d.ts.map +1 -0
  831. package/dist/graph/nav/index.js +32 -0
  832. package/dist/graph/nav/index.js.map +1 -0
  833. package/dist/graph/nav/lex/table.d.ts +16 -0
  834. package/dist/graph/nav/lex/table.d.ts.map +1 -0
  835. package/dist/graph/nav/lex/table.js +24 -0
  836. package/dist/graph/nav/lex/table.js.map +1 -0
  837. package/dist/graph/nav/lex/token.d.ts +23 -0
  838. package/dist/graph/nav/lex/token.d.ts.map +1 -0
  839. package/dist/graph/nav/lex/token.js +2 -0
  840. package/dist/graph/nav/lex/token.js.map +1 -0
  841. package/dist/graph/nav/lex/tokenize.d.ts +5 -0
  842. package/dist/graph/nav/lex/tokenize.d.ts.map +1 -0
  843. package/dist/graph/nav/lex/tokenize.js +40 -0
  844. package/dist/graph/nav/lex/tokenize.js.map +1 -0
  845. package/dist/graph/nav/parse/predicate.d.ts +21 -0
  846. package/dist/graph/nav/parse/predicate.d.ts.map +1 -0
  847. package/dist/graph/nav/parse/predicate.js +95 -0
  848. package/dist/graph/nav/parse/predicate.js.map +1 -0
  849. package/dist/graph/nav/parse/steps.d.ts +43 -0
  850. package/dist/graph/nav/parse/steps.d.ts.map +1 -0
  851. package/dist/graph/nav/parse/steps.js +234 -0
  852. package/dist/graph/nav/parse/steps.js.map +1 -0
  853. package/dist/graph/nav/parse/stream.d.ts +24 -0
  854. package/dist/graph/nav/parse/stream.d.ts.map +1 -0
  855. package/dist/graph/nav/parse/stream.js +45 -0
  856. package/dist/graph/nav/parse/stream.js.map +1 -0
  857. package/dist/graph/nav/parse/validation.d.ts +12 -0
  858. package/dist/graph/nav/parse/validation.d.ts.map +1 -0
  859. package/dist/graph/nav/parse/validation.js +7 -0
  860. package/dist/graph/nav/parse/validation.js.map +1 -0
  861. package/dist/graph/nav/path/build.d.ts +21 -0
  862. package/dist/graph/nav/path/build.d.ts.map +1 -0
  863. package/dist/graph/nav/path/build.js +53 -0
  864. package/dist/graph/nav/path/build.js.map +1 -0
  865. package/dist/graph/nav/path/errors.d.ts +50 -0
  866. package/dist/graph/nav/path/errors.d.ts.map +1 -0
  867. package/dist/graph/nav/path/errors.js +61 -0
  868. package/dist/graph/nav/path/errors.js.map +1 -0
  869. package/dist/graph/nav/path/index.d.ts +19 -0
  870. package/dist/graph/nav/path/index.d.ts.map +1 -0
  871. package/dist/graph/nav/path/index.js +19 -0
  872. package/dist/graph/nav/path/index.js.map +1 -0
  873. package/dist/graph/nav/path/kinds/chain.d.ts +38 -0
  874. package/dist/graph/nav/path/kinds/chain.d.ts.map +1 -0
  875. package/dist/graph/nav/path/kinds/chain.js +84 -0
  876. package/dist/graph/nav/path/kinds/chain.js.map +1 -0
  877. package/dist/graph/nav/path/kinds/id-path.d.ts +44 -0
  878. package/dist/graph/nav/path/kinds/id-path.d.ts.map +1 -0
  879. package/dist/graph/nav/path/kinds/id-path.js +104 -0
  880. package/dist/graph/nav/path/kinds/id-path.js.map +1 -0
  881. package/dist/graph/nav/path/kinds/path-type.d.ts +51 -0
  882. package/dist/graph/nav/path/kinds/path-type.d.ts.map +1 -0
  883. package/dist/graph/nav/path/kinds/path-type.js +2 -0
  884. package/dist/graph/nav/path/kinds/path-type.js.map +1 -0
  885. package/dist/graph/nav/path/kinds/registry.d.ts +51 -0
  886. package/dist/graph/nav/path/kinds/registry.d.ts.map +1 -0
  887. package/dist/graph/nav/path/kinds/registry.js +85 -0
  888. package/dist/graph/nav/path/kinds/registry.js.map +1 -0
  889. package/dist/graph/nav/path/parse.d.ts +30 -0
  890. package/dist/graph/nav/path/parse.d.ts.map +1 -0
  891. package/dist/graph/nav/path/parse.js +55 -0
  892. package/dist/graph/nav/path/parse.js.map +1 -0
  893. package/dist/graph/nav/path/path.d.ts +41 -0
  894. package/dist/graph/nav/path/path.d.ts.map +1 -0
  895. package/dist/graph/nav/path/path.js +59 -0
  896. package/dist/graph/nav/path/path.js.map +1 -0
  897. package/dist/graph/nav/path/zod.d.ts +99 -0
  898. package/dist/graph/nav/path/zod.d.ts.map +1 -0
  899. package/dist/graph/nav/path/zod.js +132 -0
  900. package/dist/graph/nav/path/zod.js.map +1 -0
  901. package/dist/graph/nav/scheme/index.d.ts +6 -0
  902. package/dist/graph/nav/scheme/index.d.ts.map +1 -0
  903. package/dist/graph/nav/scheme/index.js +5 -0
  904. package/dist/graph/nav/scheme/index.js.map +1 -0
  905. package/dist/graph/nav/scheme/registry.d.ts +17 -0
  906. package/dist/graph/nav/scheme/registry.d.ts.map +1 -0
  907. package/dist/graph/nav/scheme/registry.js +24 -0
  908. package/dist/graph/nav/scheme/registry.js.map +1 -0
  909. package/dist/graph/nav/scheme/segment.d.ts +53 -0
  910. package/dist/graph/nav/scheme/segment.d.ts.map +1 -0
  911. package/dist/graph/nav/scheme/segment.js +2 -0
  912. package/dist/graph/nav/scheme/segment.js.map +1 -0
  913. package/dist/graph/nav/scheme/slug.d.ts +40 -0
  914. package/dist/graph/nav/scheme/slug.d.ts.map +1 -0
  915. package/dist/graph/nav/scheme/slug.js +86 -0
  916. package/dist/graph/nav/scheme/slug.js.map +1 -0
  917. package/dist/graph/nav/scheme/span.d.ts +17 -0
  918. package/dist/graph/nav/scheme/span.d.ts.map +1 -0
  919. package/dist/graph/nav/scheme/span.js +41 -0
  920. package/dist/graph/nav/scheme/span.js.map +1 -0
  921. package/dist/graph/nav/scheme/walk.d.ts +20 -0
  922. package/dist/graph/nav/scheme/walk.d.ts.map +1 -0
  923. package/dist/graph/nav/scheme/walk.js +75 -0
  924. package/dist/graph/nav/scheme/walk.js.map +1 -0
  925. package/dist/graph/nav/serialize/predicate.d.ts +4 -0
  926. package/dist/graph/nav/serialize/predicate.d.ts.map +1 -0
  927. package/dist/graph/nav/serialize/predicate.js +24 -0
  928. package/dist/graph/nav/serialize/predicate.js.map +1 -0
  929. package/dist/graph/nav/serialize/steps.d.ts +30 -0
  930. package/dist/graph/nav/serialize/steps.d.ts.map +1 -0
  931. package/dist/graph/nav/serialize/steps.js +53 -0
  932. package/dist/graph/nav/serialize/steps.js.map +1 -0
  933. package/dist/graph/node/index.d.ts +2 -0
  934. package/dist/graph/node/index.d.ts.map +1 -0
  935. package/dist/graph/node/index.js +2 -0
  936. package/dist/graph/node/index.js.map +1 -0
  937. package/dist/graph/node/node.d.ts +41 -0
  938. package/dist/graph/node/node.d.ts.map +1 -0
  939. package/dist/graph/node/node.js +2 -0
  940. package/dist/graph/node/node.js.map +1 -0
  941. package/dist/graph/node/zod.d.ts +21 -0
  942. package/dist/graph/node/zod.d.ts.map +1 -0
  943. package/dist/graph/node/zod.js +23 -0
  944. package/dist/graph/node/zod.js.map +1 -0
  945. package/dist/graph/props/index.d.ts +2 -0
  946. package/dist/graph/props/index.d.ts.map +1 -0
  947. package/dist/graph/props/index.js +2 -0
  948. package/dist/graph/props/index.js.map +1 -0
  949. package/dist/graph/props/properties.d.ts +3 -0
  950. package/dist/graph/props/properties.d.ts.map +1 -0
  951. package/dist/graph/props/properties.js +2 -0
  952. package/dist/graph/props/properties.js.map +1 -0
  953. package/dist/graph/props/props.d.ts +3 -0
  954. package/dist/graph/props/props.d.ts.map +1 -0
  955. package/dist/graph/props/props.js +2 -0
  956. package/dist/graph/props/props.js.map +1 -0
  957. package/dist/graph/sync/apply/index.d.ts +4 -0
  958. package/dist/graph/sync/apply/index.d.ts.map +1 -0
  959. package/dist/graph/sync/apply/index.js +2 -0
  960. package/dist/graph/sync/apply/index.js.map +1 -0
  961. package/dist/graph/sync/apply/integrity.d.ts +11 -0
  962. package/dist/graph/sync/apply/integrity.d.ts.map +1 -0
  963. package/dist/graph/sync/apply/integrity.js +7 -0
  964. package/dist/graph/sync/apply/integrity.js.map +1 -0
  965. package/dist/graph/sync/apply/push-result.d.ts +19 -0
  966. package/dist/graph/sync/apply/push-result.d.ts.map +1 -0
  967. package/dist/graph/sync/apply/push-result.js +2 -0
  968. package/dist/graph/sync/apply/push-result.js.map +1 -0
  969. package/dist/graph/sync/apply/validation.d.ts +24 -0
  970. package/dist/graph/sync/apply/validation.d.ts.map +1 -0
  971. package/dist/graph/sync/apply/validation.js +2 -0
  972. package/dist/graph/sync/apply/validation.js.map +1 -0
  973. package/dist/graph/sync/diff/changeset.d.ts +79 -0
  974. package/dist/graph/sync/diff/changeset.d.ts.map +1 -0
  975. package/dist/graph/sync/diff/changeset.js +66 -0
  976. package/dist/graph/sync/diff/changeset.js.map +1 -0
  977. package/dist/graph/sync/diff/config.d.ts +26 -0
  978. package/dist/graph/sync/diff/config.d.ts.map +1 -0
  979. package/dist/graph/sync/diff/config.js +2 -0
  980. package/dist/graph/sync/diff/config.js.map +1 -0
  981. package/dist/graph/sync/diff/default.d.ts +15 -0
  982. package/dist/graph/sync/diff/default.d.ts.map +1 -0
  983. package/dist/graph/sync/diff/default.js +26 -0
  984. package/dist/graph/sync/diff/default.js.map +1 -0
  985. package/dist/graph/sync/diff/diff.d.ts +28 -0
  986. package/dist/graph/sync/diff/diff.d.ts.map +1 -0
  987. package/dist/graph/sync/diff/diff.js +116 -0
  988. package/dist/graph/sync/diff/diff.js.map +1 -0
  989. package/dist/graph/sync/diff/index.d.ts +7 -0
  990. package/dist/graph/sync/diff/index.d.ts.map +1 -0
  991. package/dist/graph/sync/diff/index.js +5 -0
  992. package/dist/graph/sync/diff/index.js.map +1 -0
  993. package/dist/graph/sync/diff/scope.d.ts +12 -0
  994. package/dist/graph/sync/diff/scope.d.ts.map +1 -0
  995. package/dist/graph/sync/diff/scope.js +17 -0
  996. package/dist/graph/sync/diff/scope.js.map +1 -0
  997. package/dist/graph/sync/index.d.ts +12 -0
  998. package/dist/graph/sync/index.d.ts.map +1 -0
  999. package/dist/graph/sync/index.js +21 -0
  1000. package/dist/graph/sync/index.js.map +1 -0
  1001. package/dist/graph/sync/matching.d.ts +53 -0
  1002. package/dist/graph/sync/matching.d.ts.map +1 -0
  1003. package/dist/graph/sync/matching.js +54 -0
  1004. package/dist/graph/sync/matching.js.map +1 -0
  1005. package/dist/graph/sync/merge/index.d.ts +3 -0
  1006. package/dist/graph/sync/merge/index.d.ts.map +1 -0
  1007. package/dist/graph/sync/merge/index.js +3 -0
  1008. package/dist/graph/sync/merge/index.js.map +1 -0
  1009. package/dist/graph/sync/merge/merge.d.ts +21 -0
  1010. package/dist/graph/sync/merge/merge.d.ts.map +1 -0
  1011. package/dist/graph/sync/merge/merge.js +105 -0
  1012. package/dist/graph/sync/merge/merge.js.map +1 -0
  1013. package/dist/graph/sync/merge/policy.d.ts +13 -0
  1014. package/dist/graph/sync/merge/policy.d.ts.map +1 -0
  1015. package/dist/graph/sync/merge/policy.js +2 -0
  1016. package/dist/graph/sync/merge/policy.js.map +1 -0
  1017. package/dist/graph/sync/patch/index.d.ts +4 -0
  1018. package/dist/graph/sync/patch/index.d.ts.map +1 -0
  1019. package/dist/graph/sync/patch/index.js +3 -0
  1020. package/dist/graph/sync/patch/index.js.map +1 -0
  1021. package/dist/graph/sync/patch/patch.d.ts +82 -0
  1022. package/dist/graph/sync/patch/patch.d.ts.map +1 -0
  1023. package/dist/graph/sync/patch/patch.js +230 -0
  1024. package/dist/graph/sync/patch/patch.js.map +1 -0
  1025. package/dist/graph/sync/patch/set-aliases.d.ts +18 -0
  1026. package/dist/graph/sync/patch/set-aliases.d.ts.map +1 -0
  1027. package/dist/graph/sync/patch/set-aliases.js +25 -0
  1028. package/dist/graph/sync/patch/set-aliases.js.map +1 -0
  1029. package/dist/graph/sync/patch/types.d.ts +62 -0
  1030. package/dist/graph/sync/patch/types.d.ts.map +1 -0
  1031. package/dist/graph/sync/patch/types.js +2 -0
  1032. package/dist/graph/sync/patch/types.js.map +1 -0
  1033. package/dist/graph/sync/plan.d.ts +17 -0
  1034. package/dist/graph/sync/plan.d.ts.map +1 -0
  1035. package/dist/graph/sync/plan.js +23 -0
  1036. package/dist/graph/sync/plan.js.map +1 -0
  1037. package/dist/graph/sync/policy/index.d.ts +2 -0
  1038. package/dist/graph/sync/policy/index.d.ts.map +1 -0
  1039. package/dist/graph/sync/policy/index.js +2 -0
  1040. package/dist/graph/sync/policy/index.js.map +1 -0
  1041. package/dist/graph/sync/policy/sync-policy.d.ts +12 -0
  1042. package/dist/graph/sync/policy/sync-policy.d.ts.map +1 -0
  1043. package/dist/graph/sync/policy/sync-policy.js +5 -0
  1044. package/dist/graph/sync/policy/sync-policy.js.map +1 -0
  1045. package/dist/graph/sync/reconcile/config.d.ts +9 -0
  1046. package/dist/graph/sync/reconcile/config.d.ts.map +1 -0
  1047. package/dist/graph/sync/reconcile/config.js +2 -0
  1048. package/dist/graph/sync/reconcile/config.js.map +1 -0
  1049. package/dist/graph/sync/reconcile/index.d.ts +6 -0
  1050. package/dist/graph/sync/reconcile/index.d.ts.map +1 -0
  1051. package/dist/graph/sync/reconcile/index.js +6 -0
  1052. package/dist/graph/sync/reconcile/index.js.map +1 -0
  1053. package/dist/graph/sync/reconcile/reconcile.d.ts +21 -0
  1054. package/dist/graph/sync/reconcile/reconcile.d.ts.map +1 -0
  1055. package/dist/graph/sync/reconcile/reconcile.js +83 -0
  1056. package/dist/graph/sync/reconcile/reconcile.js.map +1 -0
  1057. package/dist/graph/sync/reconcile/resolve-props.d.ts +3 -0
  1058. package/dist/graph/sync/reconcile/resolve-props.d.ts.map +1 -0
  1059. package/dist/graph/sync/reconcile/resolve-props.js +19 -0
  1060. package/dist/graph/sync/reconcile/resolve-props.js.map +1 -0
  1061. package/dist/graph/sync/reconcile/resolve.d.ts +15 -0
  1062. package/dist/graph/sync/reconcile/resolve.d.ts.map +1 -0
  1063. package/dist/graph/sync/reconcile/resolve.js +117 -0
  1064. package/dist/graph/sync/reconcile/resolve.js.map +1 -0
  1065. package/dist/graph/sync/reconcile/untracked.d.ts +5 -0
  1066. package/dist/graph/sync/reconcile/untracked.d.ts.map +1 -0
  1067. package/dist/graph/sync/reconcile/untracked.js +2 -0
  1068. package/dist/graph/sync/reconcile/untracked.js.map +1 -0
  1069. package/dist/graph/sync/remote/fold.d.ts +37 -0
  1070. package/dist/graph/sync/remote/fold.d.ts.map +1 -0
  1071. package/dist/graph/sync/remote/fold.js +74 -0
  1072. package/dist/graph/sync/remote/fold.js.map +1 -0
  1073. package/dist/graph/sync/remote/index.d.ts +4 -0
  1074. package/dist/graph/sync/remote/index.d.ts.map +1 -0
  1075. package/dist/graph/sync/remote/index.js +2 -0
  1076. package/dist/graph/sync/remote/index.js.map +1 -0
  1077. package/dist/graph/sync/remote/keys.d.ts +17 -0
  1078. package/dist/graph/sync/remote/keys.d.ts.map +1 -0
  1079. package/dist/graph/sync/remote/keys.js +2 -0
  1080. package/dist/graph/sync/remote/keys.js.map +1 -0
  1081. package/dist/graph/tree/aliases.d.ts +62 -0
  1082. package/dist/graph/tree/aliases.d.ts.map +1 -0
  1083. package/dist/graph/tree/aliases.js +139 -0
  1084. package/dist/graph/tree/aliases.js.map +1 -0
  1085. package/dist/graph/tree/build/index.d.ts +32 -0
  1086. package/dist/graph/tree/build/index.d.ts.map +1 -0
  1087. package/dist/graph/tree/build/index.js +40 -0
  1088. package/dist/graph/tree/build/index.js.map +1 -0
  1089. package/dist/graph/tree/build/layout.d.ts +29 -0
  1090. package/dist/graph/tree/build/layout.d.ts.map +1 -0
  1091. package/dist/graph/tree/build/layout.js +98 -0
  1092. package/dist/graph/tree/build/layout.js.map +1 -0
  1093. package/dist/graph/tree/build/validate.d.ts +43 -0
  1094. package/dist/graph/tree/build/validate.d.ts.map +1 -0
  1095. package/dist/graph/tree/build/validate.js +150 -0
  1096. package/dist/graph/tree/build/validate.js.map +1 -0
  1097. package/dist/graph/tree/edge/endpoint.d.ts +29 -0
  1098. package/dist/graph/tree/edge/endpoint.d.ts.map +1 -0
  1099. package/dist/graph/tree/edge/endpoint.js +10 -0
  1100. package/dist/graph/tree/edge/endpoint.js.map +1 -0
  1101. package/dist/graph/tree/edge/index.d.ts +5 -0
  1102. package/dist/graph/tree/edge/index.d.ts.map +1 -0
  1103. package/dist/graph/tree/edge/index.js +3 -0
  1104. package/dist/graph/tree/edge/index.js.map +1 -0
  1105. package/dist/graph/tree/edge/tree-edge.d.ts +35 -0
  1106. package/dist/graph/tree/edge/tree-edge.d.ts.map +1 -0
  1107. package/dist/graph/tree/edge/tree-edge.js +16 -0
  1108. package/dist/graph/tree/edge/tree-edge.js.map +1 -0
  1109. package/dist/graph/tree/errors.d.ts +32 -0
  1110. package/dist/graph/tree/errors.d.ts.map +1 -0
  1111. package/dist/graph/tree/errors.js +30 -0
  1112. package/dist/graph/tree/errors.js.map +1 -0
  1113. package/dist/graph/tree/helpers.d.ts +12 -0
  1114. package/dist/graph/tree/helpers.d.ts.map +1 -0
  1115. package/dist/graph/tree/helpers.js +11 -0
  1116. package/dist/graph/tree/helpers.js.map +1 -0
  1117. package/dist/graph/tree/index.d.ts +12 -0
  1118. package/dist/graph/tree/index.d.ts.map +1 -0
  1119. package/dist/graph/tree/index.js +10 -0
  1120. package/dist/graph/tree/index.js.map +1 -0
  1121. package/dist/graph/tree/path/absolute/constants.d.ts +8 -0
  1122. package/dist/graph/tree/path/absolute/constants.d.ts.map +1 -0
  1123. package/dist/graph/tree/path/absolute/constants.js +8 -0
  1124. package/dist/graph/tree/path/absolute/constants.js.map +1 -0
  1125. package/dist/graph/tree/path/absolute/grammar.d.ts +12 -0
  1126. package/dist/graph/tree/path/absolute/grammar.d.ts.map +1 -0
  1127. package/dist/graph/tree/path/absolute/grammar.js +110 -0
  1128. package/dist/graph/tree/path/absolute/grammar.js.map +1 -0
  1129. package/dist/graph/tree/path/absolute/index.d.ts +6 -0
  1130. package/dist/graph/tree/path/absolute/index.d.ts.map +1 -0
  1131. package/dist/graph/tree/path/absolute/index.js +6 -0
  1132. package/dist/graph/tree/path/absolute/index.js.map +1 -0
  1133. package/dist/graph/tree/path/absolute/register.d.ts +9 -0
  1134. package/dist/graph/tree/path/absolute/register.d.ts.map +1 -0
  1135. package/dist/graph/tree/path/absolute/register.js +19 -0
  1136. package/dist/graph/tree/path/absolute/register.js.map +1 -0
  1137. package/dist/graph/tree/path/absolute/segment.d.ts +17 -0
  1138. package/dist/graph/tree/path/absolute/segment.d.ts.map +1 -0
  1139. package/dist/graph/tree/path/absolute/segment.js +24 -0
  1140. package/dist/graph/tree/path/absolute/segment.js.map +1 -0
  1141. package/dist/graph/tree/path/absolute/type.d.ts +52 -0
  1142. package/dist/graph/tree/path/absolute/type.d.ts.map +1 -0
  1143. package/dist/graph/tree/path/absolute/type.js +197 -0
  1144. package/dist/graph/tree/path/absolute/type.js.map +1 -0
  1145. package/dist/graph/tree/path/absolute-path.d.ts +2 -0
  1146. package/dist/graph/tree/path/absolute-path.d.ts.map +1 -0
  1147. package/dist/graph/tree/path/absolute-path.js +3 -0
  1148. package/dist/graph/tree/path/absolute-path.js.map +1 -0
  1149. package/dist/graph/tree/path/constants.d.ts +8 -0
  1150. package/dist/graph/tree/path/constants.d.ts.map +1 -0
  1151. package/dist/graph/tree/path/constants.js +8 -0
  1152. package/dist/graph/tree/path/constants.js.map +1 -0
  1153. package/dist/graph/tree/path/index.d.ts +6 -0
  1154. package/dist/graph/tree/path/index.d.ts.map +1 -0
  1155. package/dist/graph/tree/path/index.js +5 -0
  1156. package/dist/graph/tree/path/index.js.map +1 -0
  1157. package/dist/graph/tree/path/relative/constants.d.ts +5 -0
  1158. package/dist/graph/tree/path/relative/constants.d.ts.map +1 -0
  1159. package/dist/graph/tree/path/relative/constants.js +5 -0
  1160. package/dist/graph/tree/path/relative/constants.js.map +1 -0
  1161. package/dist/graph/tree/path/relative/grammar.d.ts +19 -0
  1162. package/dist/graph/tree/path/relative/grammar.d.ts.map +1 -0
  1163. package/dist/graph/tree/path/relative/grammar.js +47 -0
  1164. package/dist/graph/tree/path/relative/grammar.js.map +1 -0
  1165. package/dist/graph/tree/path/relative/index.d.ts +5 -0
  1166. package/dist/graph/tree/path/relative/index.d.ts.map +1 -0
  1167. package/dist/graph/tree/path/relative/index.js +5 -0
  1168. package/dist/graph/tree/path/relative/index.js.map +1 -0
  1169. package/dist/graph/tree/path/relative/register.d.ts +11 -0
  1170. package/dist/graph/tree/path/relative/register.d.ts.map +1 -0
  1171. package/dist/graph/tree/path/relative/register.js +18 -0
  1172. package/dist/graph/tree/path/relative/register.js.map +1 -0
  1173. package/dist/graph/tree/path/relative/type.d.ts +42 -0
  1174. package/dist/graph/tree/path/relative/type.d.ts.map +1 -0
  1175. package/dist/graph/tree/path/relative/type.js +183 -0
  1176. package/dist/graph/tree/path/relative/type.js.map +1 -0
  1177. package/dist/graph/tree/path/relative-path.d.ts +2 -0
  1178. package/dist/graph/tree/path/relative-path.d.ts.map +1 -0
  1179. package/dist/graph/tree/path/relative-path.js +3 -0
  1180. package/dist/graph/tree/path/relative-path.js.map +1 -0
  1181. package/dist/graph/tree/path/tree-path.d.ts +4 -0
  1182. package/dist/graph/tree/path/tree-path.d.ts.map +1 -0
  1183. package/dist/graph/tree/path/tree-path.js +2 -0
  1184. package/dist/graph/tree/path/tree-path.js.map +1 -0
  1185. package/dist/graph/tree/serialize.d.ts +40 -0
  1186. package/dist/graph/tree/serialize.d.ts.map +1 -0
  1187. package/dist/graph/tree/serialize.js +73 -0
  1188. package/dist/graph/tree/serialize.js.map +1 -0
  1189. package/dist/graph/tree/tree.d.ts +121 -0
  1190. package/dist/graph/tree/tree.d.ts.map +1 -0
  1191. package/dist/graph/tree/tree.js +323 -0
  1192. package/dist/graph/tree/tree.js.map +1 -0
  1193. package/dist/graph/tree/types.d.ts +41 -0
  1194. package/dist/graph/tree/types.d.ts.map +1 -0
  1195. package/dist/graph/tree/types.js +2 -0
  1196. package/dist/graph/tree/types.js.map +1 -0
  1197. package/dist/graph/tree/zod.d.ts +19 -0
  1198. package/dist/graph/tree/zod.d.ts.map +1 -0
  1199. package/dist/graph/tree/zod.js +20 -0
  1200. package/dist/graph/tree/zod.js.map +1 -0
  1201. package/dist/graph/types.d.ts +33 -0
  1202. package/dist/graph/types.d.ts.map +1 -0
  1203. package/dist/graph/types.js +2 -0
  1204. package/dist/graph/types.js.map +1 -0
  1205. package/dist/graph/zod.d.ts +61 -0
  1206. package/dist/graph/zod.d.ts.map +1 -0
  1207. package/dist/graph/zod.js +55 -0
  1208. package/dist/graph/zod.js.map +1 -0
  1209. package/dist/ids.types.d.ts +69 -0
  1210. package/dist/ids.types.d.ts.map +1 -0
  1211. package/dist/ids.types.js +24 -0
  1212. package/dist/ids.types.js.map +1 -0
  1213. package/dist/index.d.ts +26 -0
  1214. package/dist/index.d.ts.map +1 -0
  1215. package/dist/index.js +38 -0
  1216. package/dist/index.js.map +1 -0
  1217. package/dist/kernel.d.ts +9510 -0
  1218. package/dist/kernel.d.ts.map +1 -0
  1219. package/dist/kernel.js +84 -0
  1220. package/dist/kernel.js.map +1 -0
  1221. package/dist/path-dsl.d.ts +62 -0
  1222. package/dist/path-dsl.d.ts.map +1 -0
  1223. package/dist/path-dsl.js +100 -0
  1224. package/dist/path-dsl.js.map +1 -0
  1225. package/dist/schema/classes/Class.class.d.ts +279 -0
  1226. package/dist/schema/classes/Class.class.d.ts.map +1 -0
  1227. package/dist/schema/classes/Class.class.js +24 -0
  1228. package/dist/schema/classes/Class.class.js.map +1 -0
  1229. package/dist/schema/classes/Domain.class.d.ts +287 -0
  1230. package/dist/schema/classes/Domain.class.d.ts.map +1 -0
  1231. package/dist/schema/classes/Domain.class.js +28 -0
  1232. package/dist/schema/classes/Domain.class.js.map +1 -0
  1233. package/dist/schema/classes/Folder.class.d.ts +269 -0
  1234. package/dist/schema/classes/Folder.class.d.ts.map +1 -0
  1235. package/dist/schema/classes/Folder.class.js +21 -0
  1236. package/dist/schema/classes/Folder.class.js.map +1 -0
  1237. package/dist/schema/classes/Function.class.d.ts +1667 -0
  1238. package/dist/schema/classes/Function.class.d.ts.map +1 -0
  1239. package/dist/schema/classes/Function.class.js +49 -0
  1240. package/dist/schema/classes/Function.class.js.map +1 -0
  1241. package/dist/schema/classes/Interface.class.d.ts +92 -0
  1242. package/dist/schema/classes/Interface.class.d.ts.map +1 -0
  1243. package/dist/schema/classes/Interface.class.js +22 -0
  1244. package/dist/schema/classes/Interface.class.js.map +1 -0
  1245. package/dist/schema/classes/Root.class.d.ts +636 -0
  1246. package/dist/schema/classes/Root.class.d.ts.map +1 -0
  1247. package/dist/schema/classes/Root.class.js +23 -0
  1248. package/dist/schema/classes/Root.class.js.map +1 -0
  1249. package/dist/schema/classes/View.class.d.ts +3407 -0
  1250. package/dist/schema/classes/View.class.d.ts.map +1 -0
  1251. package/dist/schema/classes/View.class.js +48 -0
  1252. package/dist/schema/classes/View.class.js.map +1 -0
  1253. package/dist/schema/classes/edges/calls.class.d.ts +2 -0
  1254. package/dist/schema/classes/edges/calls.class.d.ts.map +1 -0
  1255. package/dist/schema/classes/edges/calls.class.js +4 -0
  1256. package/dist/schema/classes/edges/calls.class.js.map +1 -0
  1257. package/dist/schema/classes/edges/constrained-by.class.d.ts +2 -0
  1258. package/dist/schema/classes/edges/constrained-by.class.d.ts.map +1 -0
  1259. package/dist/schema/classes/edges/constrained-by.class.js +4 -0
  1260. package/dist/schema/classes/edges/constrained-by.class.js.map +1 -0
  1261. package/dist/schema/classes/edges/excluded-from.class.d.ts +2 -0
  1262. package/dist/schema/classes/edges/excluded-from.class.d.ts.map +1 -0
  1263. package/dist/schema/classes/edges/excluded-from.class.js +4 -0
  1264. package/dist/schema/classes/edges/excluded-from.class.js.map +1 -0
  1265. package/dist/schema/classes/edges/extends-with.class.d.ts +2 -0
  1266. package/dist/schema/classes/edges/extends-with.class.d.ts.map +1 -0
  1267. package/dist/schema/classes/edges/extends-with.class.js +4 -0
  1268. package/dist/schema/classes/edges/extends-with.class.js.map +1 -0
  1269. package/dist/schema/classes/edges/extends.class.d.ts +2 -0
  1270. package/dist/schema/classes/edges/extends.class.d.ts.map +1 -0
  1271. package/dist/schema/classes/edges/extends.class.js +4 -0
  1272. package/dist/schema/classes/edges/extends.class.js.map +1 -0
  1273. package/dist/schema/classes/edges/from.class.d.ts +2 -0
  1274. package/dist/schema/classes/edges/from.class.d.ts.map +1 -0
  1275. package/dist/schema/classes/edges/from.class.js +4 -0
  1276. package/dist/schema/classes/edges/from.class.js.map +1 -0
  1277. package/dist/schema/classes/edges/has-parent.class.d.ts +2 -0
  1278. package/dist/schema/classes/edges/has-parent.class.d.ts.map +1 -0
  1279. package/dist/schema/classes/edges/has-parent.class.js +4 -0
  1280. package/dist/schema/classes/edges/has-parent.class.js.map +1 -0
  1281. package/dist/schema/classes/edges/has-perm.class.d.ts +2 -0
  1282. package/dist/schema/classes/edges/has-perm.class.d.ts.map +1 -0
  1283. package/dist/schema/classes/edges/has-perm.class.js +5 -0
  1284. package/dist/schema/classes/edges/has-perm.class.js.map +1 -0
  1285. package/dist/schema/classes/edges/implements.class.d.ts +2 -0
  1286. package/dist/schema/classes/edges/implements.class.d.ts.map +1 -0
  1287. package/dist/schema/classes/edges/implements.class.js +4 -0
  1288. package/dist/schema/classes/edges/implements.class.js.map +1 -0
  1289. package/dist/schema/classes/edges/index.d.ts +16 -0
  1290. package/dist/schema/classes/edges/index.d.ts.map +1 -0
  1291. package/dist/schema/classes/edges/index.js +16 -0
  1292. package/dist/schema/classes/edges/index.js.map +1 -0
  1293. package/dist/schema/classes/edges/installed-in.class.d.ts +2 -0
  1294. package/dist/schema/classes/edges/installed-in.class.d.ts.map +1 -0
  1295. package/dist/schema/classes/edges/installed-in.class.js +5 -0
  1296. package/dist/schema/classes/edges/installed-in.class.js.map +1 -0
  1297. package/dist/schema/classes/edges/instance-of.class.d.ts +2 -0
  1298. package/dist/schema/classes/edges/instance-of.class.d.ts.map +1 -0
  1299. package/dist/schema/classes/edges/instance-of.class.js +5 -0
  1300. package/dist/schema/classes/edges/instance-of.class.js.map +1 -0
  1301. package/dist/schema/classes/edges/method-of.class.d.ts +2 -0
  1302. package/dist/schema/classes/edges/method-of.class.d.ts.map +1 -0
  1303. package/dist/schema/classes/edges/method-of.class.js +5 -0
  1304. package/dist/schema/classes/edges/method-of.class.js.map +1 -0
  1305. package/dist/schema/classes/edges/of-domain.class.d.ts +2 -0
  1306. package/dist/schema/classes/edges/of-domain.class.d.ts.map +1 -0
  1307. package/dist/schema/classes/edges/of-domain.class.js +4 -0
  1308. package/dist/schema/classes/edges/of-domain.class.js.map +1 -0
  1309. package/dist/schema/classes/edges/to.class.d.ts +2 -0
  1310. package/dist/schema/classes/edges/to.class.d.ts.map +1 -0
  1311. package/dist/schema/classes/edges/to.class.js +4 -0
  1312. package/dist/schema/classes/edges/to.class.js.map +1 -0
  1313. package/dist/schema/classes/edges/view-for.class.d.ts +3 -0
  1314. package/dist/schema/classes/edges/view-for.class.d.ts.map +1 -0
  1315. package/dist/schema/classes/edges/view-for.class.js +7 -0
  1316. package/dist/schema/classes/edges/view-for.class.js.map +1 -0
  1317. package/dist/schema/classes/icons.d.ts +23 -0
  1318. package/dist/schema/classes/icons.d.ts.map +1 -0
  1319. package/dist/schema/classes/icons.js +24 -0
  1320. package/dist/schema/classes/icons.js.map +1 -0
  1321. package/dist/schema/classes/index.d.ts +9 -0
  1322. package/dist/schema/classes/index.d.ts.map +1 -0
  1323. package/dist/schema/classes/index.js +9 -0
  1324. package/dist/schema/classes/index.js.map +1 -0
  1325. package/dist/schema/definitions/edge-class.d.ts +14 -0
  1326. package/dist/schema/definitions/edge-class.d.ts.map +1 -0
  1327. package/dist/schema/definitions/edge-class.js +16 -0
  1328. package/dist/schema/definitions/edge-class.js.map +1 -0
  1329. package/dist/schema/definitions/edge-interface.d.ts +18 -0
  1330. package/dist/schema/definitions/edge-interface.d.ts.map +1 -0
  1331. package/dist/schema/definitions/edge-interface.js +13 -0
  1332. package/dist/schema/definitions/edge-interface.js.map +1 -0
  1333. package/dist/schema/definitions/index.d.ts +5 -0
  1334. package/dist/schema/definitions/index.d.ts.map +1 -0
  1335. package/dist/schema/definitions/index.js +5 -0
  1336. package/dist/schema/definitions/index.js.map +1 -0
  1337. package/dist/schema/definitions/node-class.d.ts +19 -0
  1338. package/dist/schema/definitions/node-class.d.ts.map +1 -0
  1339. package/dist/schema/definitions/node-class.js +13 -0
  1340. package/dist/schema/definitions/node-class.js.map +1 -0
  1341. package/dist/schema/definitions/node-interface.d.ts +18 -0
  1342. package/dist/schema/definitions/node-interface.d.ts.map +1 -0
  1343. package/dist/schema/definitions/node-interface.js +13 -0
  1344. package/dist/schema/definitions/node-interface.js.map +1 -0
  1345. package/dist/schema/index.d.ts +5 -0
  1346. package/dist/schema/index.d.ts.map +1 -0
  1347. package/dist/schema/index.js +5 -0
  1348. package/dist/schema/index.js.map +1 -0
  1349. package/dist/schema/interfaces/Container.interface.d.ts +94 -0
  1350. package/dist/schema/interfaces/Container.interface.d.ts.map +1 -0
  1351. package/dist/schema/interfaces/Container.interface.js +24 -0
  1352. package/dist/schema/interfaces/Container.interface.js.map +1 -0
  1353. package/dist/schema/interfaces/Edge.interface.d.ts +25 -0
  1354. package/dist/schema/interfaces/Edge.interface.d.ts.map +1 -0
  1355. package/dist/schema/interfaces/Edge.interface.js +4 -0
  1356. package/dist/schema/interfaces/Edge.interface.js.map +1 -0
  1357. package/dist/schema/interfaces/Function.interface.d.ts +785 -0
  1358. package/dist/schema/interfaces/Function.interface.d.ts.map +1 -0
  1359. package/dist/schema/interfaces/Function.interface.js +28 -0
  1360. package/dist/schema/interfaces/Function.interface.js.map +1 -0
  1361. package/dist/schema/interfaces/Identity.interface.d.ts +183 -0
  1362. package/dist/schema/interfaces/Identity.interface.d.ts.map +1 -0
  1363. package/dist/schema/interfaces/Identity.interface.js +103 -0
  1364. package/dist/schema/interfaces/Identity.interface.js.map +1 -0
  1365. package/dist/schema/interfaces/Node.interface.d.ts +81 -0
  1366. package/dist/schema/interfaces/Node.interface.d.ts.map +1 -0
  1367. package/dist/schema/interfaces/Node.interface.js +72 -0
  1368. package/dist/schema/interfaces/Node.interface.js.map +1 -0
  1369. package/dist/schema/interfaces/UI.interface.d.ts +1654 -0
  1370. package/dist/schema/interfaces/UI.interface.d.ts.map +1 -0
  1371. package/dist/schema/interfaces/UI.interface.js +17 -0
  1372. package/dist/schema/interfaces/UI.interface.js.map +1 -0
  1373. package/dist/schema/interfaces/generics/Descriptable.interface.d.ts +7 -0
  1374. package/dist/schema/interfaces/generics/Descriptable.interface.d.ts.map +1 -0
  1375. package/dist/schema/interfaces/generics/Descriptable.interface.js +6 -0
  1376. package/dist/schema/interfaces/generics/Descriptable.interface.js.map +1 -0
  1377. package/dist/schema/interfaces/generics/Iconable.interface.d.ts +7 -0
  1378. package/dist/schema/interfaces/generics/Iconable.interface.d.ts.map +1 -0
  1379. package/dist/schema/interfaces/generics/Iconable.interface.js +9 -0
  1380. package/dist/schema/interfaces/generics/Iconable.interface.js.map +1 -0
  1381. package/dist/schema/interfaces/generics/Named.interface.d.ts +8 -0
  1382. package/dist/schema/interfaces/generics/Named.interface.d.ts.map +1 -0
  1383. package/dist/schema/interfaces/generics/Named.interface.js +9 -0
  1384. package/dist/schema/interfaces/generics/Named.interface.js.map +1 -0
  1385. package/dist/schema/interfaces/generics/Remotable.interface.d.ts +35 -0
  1386. package/dist/schema/interfaces/generics/Remotable.interface.d.ts.map +1 -0
  1387. package/dist/schema/interfaces/generics/Remotable.interface.js +20 -0
  1388. package/dist/schema/interfaces/generics/Remotable.interface.js.map +1 -0
  1389. package/dist/schema/interfaces/generics/Sluggable.interface.d.ts +8 -0
  1390. package/dist/schema/interfaces/generics/Sluggable.interface.d.ts.map +1 -0
  1391. package/dist/schema/interfaces/generics/Sluggable.interface.js +16 -0
  1392. package/dist/schema/interfaces/generics/Sluggable.interface.js.map +1 -0
  1393. package/dist/schema/interfaces/generics/Statused.interface.d.ts +21 -0
  1394. package/dist/schema/interfaces/generics/Statused.interface.d.ts.map +1 -0
  1395. package/dist/schema/interfaces/generics/Statused.interface.js +7 -0
  1396. package/dist/schema/interfaces/generics/Statused.interface.js.map +1 -0
  1397. package/dist/schema/interfaces/generics/Timestamped.interface.d.ts +8 -0
  1398. package/dist/schema/interfaces/generics/Timestamped.interface.d.ts.map +1 -0
  1399. package/dist/schema/interfaces/generics/Timestamped.interface.js +6 -0
  1400. package/dist/schema/interfaces/generics/Timestamped.interface.js.map +1 -0
  1401. package/dist/schema/interfaces/generics/index.d.ts +8 -0
  1402. package/dist/schema/interfaces/generics/index.d.ts.map +1 -0
  1403. package/dist/schema/interfaces/generics/index.js +8 -0
  1404. package/dist/schema/interfaces/generics/index.js.map +1 -0
  1405. package/dist/schema/interfaces/index.d.ts +8 -0
  1406. package/dist/schema/interfaces/index.d.ts.map +1 -0
  1407. package/dist/schema/interfaces/index.js +8 -0
  1408. package/dist/schema/interfaces/index.js.map +1 -0
  1409. package/dist/schema/schema.d.ts +9446 -0
  1410. package/dist/schema/schema.d.ts.map +1 -0
  1411. package/dist/schema/schema.js +49 -0
  1412. package/dist/schema/schema.js.map +1 -0
  1413. package/dist/vitest.config.d.ts +3 -0
  1414. package/dist/vitest.config.d.ts.map +1 -0
  1415. package/dist/vitest.config.js +8 -0
  1416. package/dist/vitest.config.js.map +1 -0
  1417. package/package.json +129 -0
@@ -0,0 +1,525 @@
1
+ /**
2
+ * SchemaSerializer — converts a CompiledDomain + FunctionSchema[] into a Tree.
3
+ *
4
+ * All metadata comes from the CompiledDomain directly:
5
+ * - compiled.$.ir for the serialized schema
6
+ * - compiled.$.methods for resolved methods (no schema.functions walking)
7
+ * - compiled.$.paths.absolute for path lookup (no ClassResolver)
8
+ *
9
+ * This module emits Domain, Class, Interface, and Function nodes plus their
10
+ * structural edges (has_parent, of_domain, implements, extends, method_of).
11
+ * Instance nodes are emitted by `./core.ts` (serializeCore).
12
+ */
13
+ import { defaultLayout } from '#domain/addressing/layout/build';
14
+ import { isDefinitionNamespace } from '#domain/addressing/namespace';
15
+ import { ClassPath as ClassPathCtor, DomainPath, InterfacePath, MethodPath, } from '#domain/addressing/paths';
16
+ import { Ref } from '#domain/addressing/refs/ref';
17
+ import { edgeExternalId, schemaNodeExternalId } from '#domain/compile/external-ids';
18
+ import { toGraphInheritance, isMaterializedAsNode } from '#domain/compile/method/resolve';
19
+ import { classMethods, interfaceMethods } from '#domain/compile/method/types';
20
+ import { Patch } from '#graph';
21
+ import { foldRemote } from '#graph/sync';
22
+ import { AbsolutePath } from '#graph/tree';
23
+ import { Tree } from '#graph/tree';
24
+ import { K, REMOTE_KEYS } from '#kernel';
25
+ import { SerializationError } from './errors';
26
+ /**
27
+ * Schema version tag for the `propertyIndex` JSON blob on Class/Interface
28
+ * self nodes. Bump when PropertyMapping gains/loses fields so the
29
+ * deserializer can detect drift.
30
+ */
31
+ export const PROPERTY_INDEX_BLOB_VERSION = 1;
32
+ // ── Public API ──────────────────────────────────────────────────────────────
33
+ /**
34
+ * Serialize a compiled domain into a Tree of schema graph nodes.
35
+ *
36
+ * Pure: no IO, no global state.
37
+ */
38
+ export function serializeSchema(compiled, methods, options) {
39
+ // Erase the S generic: BoundAccessorMethods<S> is invariant in S (wrap's
40
+ // className constraint refers to S['classes']), so a CompiledDomain<S>
41
+ // can't directly substitute for CompiledDomain<Schema> at this boundary.
42
+ // The serializer itself doesn't care about S — it walks the IR.
43
+ const serializer = new SchemaSerializer(compiled, methods, options);
44
+ serializer.run();
45
+ return serializer.toTree();
46
+ }
47
+ // ── SchemaSerializer ─────────────────────────────────────────────────────────
48
+ class SchemaSerializer {
49
+ patch = Patch.empty();
50
+ ir;
51
+ methods;
52
+ layout;
53
+ /** Path of the Domain node — the root of this domain's subtree. */
54
+ mount;
55
+ /** Parent of `mount` — the attachment point. */
56
+ mountParent;
57
+ /** Slug carried on the `Domain → mountParent` has_parent edge. */
58
+ mountSlug;
59
+ origin;
60
+ conflict;
61
+ domainExtId;
62
+ compiled;
63
+ // Kernel ClassPaths — node classes
64
+ domainClass = K.Domain.path.class;
65
+ folderClass = K.Folder.path.class;
66
+ interfaceClass = K.Interface.path.class;
67
+ classClass = K.Class.path.class;
68
+ functionClass = K.$.c('Function').path.class;
69
+ // Kernel ClassPaths — edge classes
70
+ hasParentClass = K.has_parent.path.class;
71
+ ofDomainClass = K.of_domain.path.class;
72
+ extendsClass = K.extends.path.class;
73
+ implementsClass = K.implements.path.class;
74
+ methodOfClass = K.method_of.path.class;
75
+ installedInClass = K.installed_in.path.class;
76
+ constructor(compiled, methods, options) {
77
+ this.compiled = compiled;
78
+ this.ir = compiled.$.ir;
79
+ this.conflict = options?.onConflict ?? 'merge';
80
+ this.layout = compiled.$.layout;
81
+ this.origin = compiled.$.origin;
82
+ this.mount = options?.mount ?? AbsolutePath.from(compiled.$.origin);
83
+ if (this.mount.slugs.length === 0) {
84
+ throw new SerializationError('INVALID_MOUNT', "mount cannot be the graph Root ('/'); a Domain must live at a named path.");
85
+ }
86
+ this.mountParent = this.mount.parent();
87
+ this.mountSlug = this.mount.slugs[this.mount.slugs.length - 1];
88
+ this.domainExtId = options?.domainExternalId ?? compiled.$.origin;
89
+ this.methods = new Map();
90
+ for (const m of methods) {
91
+ this.methods.set(m.ref, m);
92
+ }
93
+ }
94
+ run() {
95
+ this.serializeDomain();
96
+ for (const [name, decl] of Object.entries(this.ir.interfaces)) {
97
+ this.serializeInterface(name, decl);
98
+ }
99
+ for (const [name, decl] of Object.entries(this.ir.classes)) {
100
+ this.serializeClass(name, decl);
101
+ }
102
+ }
103
+ toTree() {
104
+ // Promote the authoring Patch to a read-mode Graph. `Graph.from` runs
105
+ // the I8' canonicalization pass (SPEC §3): every edge endpoint that
106
+ // resolves in-graph is rewritten to the node's primary AbsolutePath.
107
+ const graph = this.patch.toGraph();
108
+ return Tree.from(graph, { has_parent: this.hasParentClass }, { mount: this.mount });
109
+ }
110
+ // ── Domain ──
111
+ serializeDomain() {
112
+ // `name` is inherited from Named → canonical qualified key. Other fields
113
+ // (`origin`, `schema`) are Domain-specific structural metadata written
114
+ // bare (not modelled as schema props).
115
+ this.addNode(this.mount, this.domainClass, {
116
+ [K.Named.name.key]: this.origin,
117
+ origin: this.origin,
118
+ schema: JSON.stringify(this.ir),
119
+ }, this.domainExtId);
120
+ // has_parent edge Domain → mountParent, carrying the basename of mount
121
+ // as its slug. Makes the materialized blueprint immediately reachable
122
+ // from the graph Root after push — no post-hoc `moveNode` required.
123
+ //
124
+ // installed_in edge Domain → mountParent is the domain-chain counterpart:
125
+ // has_parent is traversed for `/<path>` lookups, installed_in for `/:<domain>`
126
+ // lookups. Slug is the full domain origin (which equals mountSlug by
127
+ // convention — a Domain's mount basename matches its origin).
128
+ //
129
+ // Source is the Domain's typed identity (DomainPath) since the Domain
130
+ // class has a registered PathType — symmetric with how the reader
131
+ // (`getTree`) emits source endpoints.
132
+ const domainSource = { path: this.ownDomainAddress(), tree: this.mount };
133
+ this.addEdge(this.hasParentClass, domainSource, this.mountParent, this.mountSlug);
134
+ this.addEdge(this.installedInClass, domainSource, this.mountParent, this.origin);
135
+ }
136
+ /**
137
+ * Translate a layout-produced path (`/<origin>/…`) to the mount-based
138
+ * equivalent (`/<mount…>/…`). The first slug of a layout path is always
139
+ * `origin`; everything after is the domain-relative position.
140
+ *
141
+ * Invariant: `layoutPath.slugs[0] === origin`. Throws otherwise — a
142
+ * violation would indicate a custom layout that bypasses the default
143
+ * origin-prefixed convention (not currently supported).
144
+ */
145
+ underMount(layoutPath) {
146
+ const [first, ...rest] = layoutPath.slugs;
147
+ if (first !== this.origin) {
148
+ throw new SerializationError('INVALID_LAYOUT_PATH', `Layout path "${layoutPath.raw}" does not start with origin "${this.origin}"; custom layouts that do not root on origin are not supported.`);
149
+ }
150
+ return rest.length === 0 ? this.mount : this.mount.append(...rest);
151
+ }
152
+ // ── Folder ──
153
+ /**
154
+ * Serialize a Folder node with namespace-prefixed slug.
155
+ * @param ref — The full ref string (e.g., 'class.Author', 'interface.Named')
156
+ * @param selfPath — The self node path (folder is its parent)
157
+ */
158
+ serializeFolder(ref, selfPath) {
159
+ if (selfPath.isRoot) {
160
+ throw new SerializationError('INVALID_PATH', `Member '${ref}' resolved to a root-level path with no parent folder; layout must place members under a folder.`, ref);
161
+ }
162
+ const folderPath = selfPath.parent();
163
+ // Folder's `name` is inherited from Named → canonical qualified key.
164
+ this.addNode(folderPath, this.folderClass, { [K.Named.name.key]: ref });
165
+ // Uniform endpoint-form rule: `mount` IS the Domain node, and Domain has
166
+ // a registered DomainPath, so the target form is the Domain's typed
167
+ // identity. AbsolutePath is reserved for nodes without a semantic
168
+ // PathType. `treeTarget` carries the tree position for stable externalId
169
+ // hashing.
170
+ // Folder → Domain has_parent: target is the Domain's typed identity
171
+ // (DomainPath); `mount` is the Domain's tree position.
172
+ this.addEdge(this.hasParentClass, folderPath, {
173
+ path: this.ownDomainAddress(),
174
+ tree: this.mount,
175
+ });
176
+ return folderPath;
177
+ }
178
+ // ── Interface ──
179
+ serializeInterface(name, decl) {
180
+ const memberRef = Ref.member('interface', name);
181
+ const ref = memberRef.toString();
182
+ const selfPath = this.underMount(this.layout(memberRef));
183
+ const folderPath = this.serializeFolder(ref, selfPath);
184
+ const extId = schemaNodeExternalId(this.origin, selfPath);
185
+ // Interface's `name` is inherited from Named → canonical qualified key.
186
+ // `propertyIndex` is a structural blob for schema deserialization, kept bare.
187
+ this.addNode(selfPath, this.interfaceClass, {
188
+ [K.Named.name.key]: name,
189
+ ...this.propertyIndexProp(name),
190
+ }, extId);
191
+ // Source is the Interface's typed identity (InterfacePath); `selfPath`
192
+ // (AbsolutePath) is the tree position used for stable externalIds.
193
+ const interfaceSource = {
194
+ path: this.resolveTypeAddress(name, 'interface'),
195
+ tree: selfPath,
196
+ };
197
+ // Semantic edge: of_domain. Target is the Domain's typed identity so the
198
+ // walker can verify cross-patch references via stepsEqual on the endpoint
199
+ // even when the Domain node is not in the same patch.
200
+ this.addEdge(this.ofDomainClass, interfaceSource, { path: this.ownDomainAddress(), tree: this.mount }, ref);
201
+ // Tree edge: has_parent (no edge slug).
202
+ this.addEdge(this.hasParentClass, interfaceSource, folderPath);
203
+ for (const parent of decl.extends) {
204
+ this.addEdge(this.extendsClass, interfaceSource, {
205
+ path: this.resolveTypeAddress(parent, 'interface'),
206
+ tree: this.resolveTypeTree(parent, 'interface'),
207
+ });
208
+ }
209
+ // Materialize this interface's own, non-abstract methods via the shared
210
+ // predicate (`isMaterializedAsNode`) and marker rule (`toGraphInheritance`).
211
+ const resolvedMethods = interfaceMethods(this.compiled.$.methods, name);
212
+ for (const [methodName, rm] of Object.entries(resolvedMethods ?? {})) {
213
+ if (!isMaterializedAsNode(rm))
214
+ continue;
215
+ this.serializeMethodNode({
216
+ parentName: name,
217
+ methodName,
218
+ folderRef: ref,
219
+ folderPath,
220
+ selfPath,
221
+ inheritance: toGraphInheritance(rm),
222
+ });
223
+ }
224
+ }
225
+ /**
226
+ * Serialize the class's entry in `compiled.$.properties.byClass` onto its
227
+ * self node as a JSON string. Enables `deserializeDomainFromGraph` to
228
+ * reconstruct a full `DomainPropertyIndex` without the original Schema.
229
+ *
230
+ * Format: `{ version, byDomainOwner: { [domain]: { [owner]: { [prop]: PropertyMapping } } } }`
231
+ * The version tag lets the deserializer detect schema drift if fields
232
+ * are added/removed to PropertyMapping in the future.
233
+ *
234
+ * Returns an empty object (no property) if the type has no properties
235
+ * so we don't bloat nodes with empty strings.
236
+ */
237
+ propertyIndexProp(memberName) {
238
+ const byDomainOwner = this.compiled.$.properties.byClass[memberName];
239
+ if (!byDomainOwner || Object.keys(byDomainOwner).length === 0)
240
+ return {};
241
+ const payload = { version: PROPERTY_INDEX_BLOB_VERSION, byDomainOwner };
242
+ return { propertyIndex: JSON.stringify(payload) };
243
+ }
244
+ // ── Class ──
245
+ serializeClass(name, decl) {
246
+ const memberRef = Ref.member('class', name);
247
+ const ref = memberRef.toString();
248
+ const selfPath = this.underMount(this.layout(memberRef));
249
+ const folderPath = this.serializeFolder(ref, selfPath);
250
+ const extId = schemaNodeExternalId(this.origin, selfPath);
251
+ // Class's `name` is inherited from Named → canonical qualified key.
252
+ // `type` is a Class-specific structural field (edge/node), kept bare.
253
+ // `propertyIndex` is a structural blob for schema deserialization.
254
+ this.addNode(selfPath, this.classClass, {
255
+ type: decl.type,
256
+ [K.Named.name.key]: name,
257
+ // Class-level icon (Iconable): clients resolve an instance's icon via
258
+ // its class self node. Only node classes carry it.
259
+ ...(decl.type === 'node' && decl.icon ? { [K.Iconable.icon.key]: decl.icon } : {}),
260
+ ...this.propertyIndexProp(name),
261
+ }, extId);
262
+ // Source is the Class's typed identity (ClassPath); `selfPath`
263
+ // (AbsolutePath) is the tree position used for stable externalIds.
264
+ const classSource = {
265
+ path: this.resolveTypeAddress(name, 'class'),
266
+ tree: selfPath,
267
+ };
268
+ // Semantic edge: of_domain. Target is the Domain's typed identity.
269
+ this.addEdge(this.ofDomainClass, classSource, { path: this.ownDomainAddress(), tree: this.mount }, ref);
270
+ // Tree edge: has_parent (no edge slug).
271
+ this.addEdge(this.hasParentClass, classSource, folderPath);
272
+ for (const parent of 'implements' in decl ? decl.implements : []) {
273
+ // Imported parents aren't in `this.ir.interfaces`; resolveNamespace also
274
+ // walks imported schemas, so it correctly classifies cross-domain refs.
275
+ const ns = this.resolveNamespace(parent);
276
+ const rel = ns === 'interface' ? this.implementsClass : this.extendsClass;
277
+ this.addEdge(rel, classSource, {
278
+ path: this.resolveTypeAddress(parent, ns),
279
+ tree: this.resolveTypeTree(parent, ns),
280
+ });
281
+ }
282
+ // Use compiled.$.methods for resolution — no schema.functions, no resolveAllMethodsForSchema.
283
+ // `$.methods` is keyed by defRef; `name` here is always a class.
284
+ const resolvedMethods = classMethods(this.compiled.$.methods, name);
285
+ if (resolvedMethods) {
286
+ for (const [methodName, rm] of Object.entries(resolvedMethods)) {
287
+ switch (rm.inheritance) {
288
+ case 'own':
289
+ case 'override':
290
+ this.serializeMethodNode({
291
+ parentName: name,
292
+ methodName,
293
+ folderRef: ref,
294
+ folderPath,
295
+ selfPath,
296
+ // Graph-storage marker via the single shared rule (so boot and
297
+ // serialize cannot drift). For own → 'default', for override → 'override'.
298
+ inheritance: toGraphInheritance(rm),
299
+ });
300
+ break;
301
+ case 'sealed':
302
+ case 'inherited-default': {
303
+ // Reuse the origin's method node → add method_of edge with edge slug.
304
+ // The origin may be imported from another domain — in that case the
305
+ // path lives under the source domain's layout and is not rewritten
306
+ // by our mount (it's a cross-domain pointer).
307
+ const ownerName = rm.origin;
308
+ const importEntry = this.ir.imports?.[ownerName];
309
+ const originLayout = importEntry
310
+ ? defaultLayout(importEntry.origin)
311
+ : this.layout;
312
+ // `originKind` is carried on the resolved method — no ambiguous
313
+ // re-resolution by name (a class and interface can share a name).
314
+ const originNs = rm.originKind;
315
+ const rawOriginOpPath = originLayout(Ref.method(originNs, ownerName, methodName));
316
+ const originOpPath = importEntry ? rawOriginOpPath : this.underMount(rawOriginOpPath);
317
+ // Symmetric typed authoring: source is the owner-domain method node's
318
+ // typed MethodPath identity (cross-domain when imported);
319
+ // `originOpPath` (AbsolutePath) is the tree-position anchor.
320
+ // Target is this class's typed identity.
321
+ this.addEdge(this.methodOfClass, {
322
+ path: this.resolveMethodAddress(ownerName, methodName, originNs),
323
+ tree: originOpPath,
324
+ }, {
325
+ path: this.resolveTypeAddress(name, 'class'),
326
+ tree: this.resolveTypeTree(name, 'class'),
327
+ }, methodName);
328
+ break;
329
+ }
330
+ }
331
+ }
332
+ }
333
+ }
334
+ // ── Path resolution ──
335
+ /**
336
+ * Resolve the namespace (class or interface) for a member name.
337
+ *
338
+ * Both sources of truth — `ir.interfaces` for local types and
339
+ * `ir.imports[name].definition` for cross-domain types — round-trip
340
+ * through the graph, so this lookup behaves identically for freshly
341
+ * compiled and deserialized domains.
342
+ */
343
+ resolveNamespace(memberName) {
344
+ if (memberName in this.ir.interfaces)
345
+ return 'interface';
346
+ return this.ir.imports?.[memberName]?.definition ?? 'class';
347
+ }
348
+ /**
349
+ * Typed identity for this Domain — `/<mountParent…>/:<origin>`. Used as the
350
+ * target of `of_domain` edges so the walker can verify a Class/Interface's
351
+ * domain via the typed endpoint even when the Domain node is not colocated
352
+ * in the patch under inspection.
353
+ *
354
+ * NOTE (spec §10.3): when `mountParent` is not root, the typed identity
355
+ * carries a mount prefix. The sibling `serializeCore` factory
356
+ * (`classPath: (name) => ClassPath.from(origin, name)`) still produces
357
+ * root-mounted refs, so under custom mounts the two will disagree — a
358
+ * pre-existing wart the walker's canonicalization cannot bridge. Tests
359
+ * and current callers all use `mountParent = root`.
360
+ */
361
+ ownDomainAddress() {
362
+ return DomainPath.from({ domain: this.origin }, { parent: this.mountParent });
363
+ }
364
+ /**
365
+ * Typed identity for a local or imported Class/Interface — `ClassPath`
366
+ * for classes, `DomainPath` with an `interface.Name` member for interfaces.
367
+ *
368
+ * Local members carry this serializer's `mountParent`; imported members
369
+ * default to root mount, matching the `defaultLayout(importOrigin)`
370
+ * convention already used for the AbsolutePath form. Custom mounts for
371
+ * imports are not supported (see spec §10.3).
372
+ */
373
+ resolveTypeAddress(parentName, ns) {
374
+ const importEntry = this.ir.imports?.[parentName];
375
+ const origin = importEntry ? importEntry.origin : this.origin;
376
+ const mount = importEntry ? AbsolutePath.root() : this.mountParent;
377
+ const resolvedNs = ns ?? this.resolveNamespace(parentName);
378
+ if (resolvedNs === 'class') {
379
+ return ClassPathCtor.from({ domain: origin, className: parentName }, { parent: mount });
380
+ }
381
+ return InterfacePath.from({ domain: origin, interfaceName: parentName }, { parent: mount });
382
+ }
383
+ /**
384
+ * Typed identity for a local or imported Function (method) node —
385
+ * `MethodPath` carrying the owning domain, member kind/name, and method
386
+ * name. Mirrors {@link resolveTypeAddress}: imports default to root mount
387
+ * with `defaultLayout(importOrigin)` semantics; locals use this
388
+ * serializer's `mountParent`.
389
+ */
390
+ resolveMethodAddress(memberName, methodName, ns) {
391
+ const importEntry = this.ir.imports?.[memberName];
392
+ const origin = importEntry ? importEntry.origin : this.origin;
393
+ const mount = importEntry ? AbsolutePath.root() : this.mountParent;
394
+ const resolvedNs = ns ?? this.resolveNamespace(memberName);
395
+ return MethodPath.from({ domain: origin, member: memberName, memberKind: resolvedNs, method: methodName }, { parent: mount });
396
+ }
397
+ /**
398
+ * Tree position (AbsolutePath) of a local or imported Class/Interface —
399
+ * used as the hash input for `edgeExternalId` so the hash is stable
400
+ * across different address-form representations of the same entity.
401
+ */
402
+ resolveTypeTree(parentName, ns) {
403
+ const importEntry = this.ir.imports?.[parentName];
404
+ const layout = importEntry ? defaultLayout(importEntry.origin) : this.layout;
405
+ const resolvedNs = ns ?? this.resolveNamespace(parentName);
406
+ const rawPath = layout(Ref.member(resolvedNs, parentName));
407
+ return importEntry ? rawPath : this.underMount(rawPath);
408
+ }
409
+ // ── Method node ──
410
+ serializeMethodNode(opts) {
411
+ const ownerRef = Ref.parse(opts.folderRef);
412
+ const methodRef = Ref.method(ownerRef.namespace, opts.parentName, opts.methodName);
413
+ const ref = methodRef.toString();
414
+ const folderPath = opts.folderPath;
415
+ const opPath = this.underMount(this.layout(methodRef));
416
+ const extId = schemaNodeExternalId(this.origin, opPath);
417
+ const callable = this.methods.get(ref);
418
+ if (!callable) {
419
+ throw new SerializationError('MISSING_HANDLER', `Missing method for "${ref}". Ensure all methods for "${opts.parentName}" are provided.`, ref);
420
+ }
421
+ const inheritance = callable.inheritance ?? opts.inheritance;
422
+ // The method node has no class-own props; everything lives under the Function
423
+ // and Named interfaces. `Function.ref` is the dispatch identity —
424
+ // canonical form, used by `FunctionRegistry` to resolve the contract.
425
+ // `Named.name` is a display label, deliberately NOT the same string so
426
+ // nothing can base dispatch/lookup logic on it. Storage keys come
427
+ // straight from the compiled kernel domain `K`.
428
+ const displayName = `${opts.parentName}.${opts.methodName}`;
429
+ const F = K.$.i('Function');
430
+ this.addNode(opPath, this.functionClass, {
431
+ [K.Named.name.key]: displayName,
432
+ [F.ref.key]: ref,
433
+ [F.inputSchema.key]: JSON.stringify(callable.inputSchema),
434
+ [F.outputSchema.key]: JSON.stringify(callable.outputSchema),
435
+ ...(callable.isStatic ? { [F.isStatic.key]: true } : {}),
436
+ [F.output.key]: callable.output ?? 'value',
437
+ ...(callable.code ? { [F.code.key]: JSON.stringify(callable.code) } : {}),
438
+ ...(inheritance ? { [F.inheritance.key]: inheritance } : {}),
439
+ ...(callable.binding ? { [F.binding.key]: JSON.stringify(callable.binding) } : {}),
440
+ }, extId);
441
+ // Source is this Method's typed identity (MethodPath); `opPath`
442
+ // (AbsolutePath) is the tree position used for stable externalIds.
443
+ const ownerRefParsed = Ref.parse(opts.folderRef);
444
+ if (!isDefinitionNamespace(ownerRefParsed.namespace))
445
+ throw new SerializationError('INVALID_PATH', `expected definition namespace, got: ${ownerRefParsed.namespace}`);
446
+ const ownerNs = ownerRefParsed.namespace;
447
+ const methodSource = {
448
+ path: this.resolveMethodAddress(opts.parentName, opts.methodName, ownerNs),
449
+ tree: opPath,
450
+ };
451
+ // Semantic edge: method_of — target is the owning Class/Interface's typed
452
+ // identity so the walker can verify the owner without needing its self-node
453
+ // colocated in a patch.
454
+ this.addEdge(this.methodOfClass, methodSource, { path: this.resolveTypeAddress(opts.parentName, ownerNs), tree: opts.selfPath }, opts.methodName);
455
+ // Tree edge: has_parent (no edge slug) — method node is sibling of 'self' in folder.
456
+ this.addEdge(this.hasParentClass, methodSource, folderPath);
457
+ // NOTE: No of_domain edge on method nodes. They're reached via method_of traversal.
458
+ }
459
+ // ── Primitives ──
460
+ addNode(path, cls, properties, extId, onConflict) {
461
+ const resolvedExtId = extId ?? schemaNodeExternalId(this.origin, path);
462
+ const resolvedConflict = onConflict ?? this.conflict;
463
+ this.patch.addNode({
464
+ path,
465
+ class: cls,
466
+ props: {
467
+ ...properties,
468
+ ...foldRemote({ externalId: resolvedExtId, onConflict: resolvedConflict }, REMOTE_KEYS),
469
+ },
470
+ });
471
+ }
472
+ /**
473
+ * Append an edge to the in-progress graph.
474
+ *
475
+ * Each endpoint is either:
476
+ * - an `AbsolutePath` (the wire form IS the tree position), or
477
+ * - `{ path, tree }` — the wire form (`Path`, typically a typed
478
+ * semantic Path: `DomainPath`/`ClassPath`/`InterfacePath`/
479
+ * `MethodPath`) plus the corresponding `AbsolutePath` tree
480
+ * position, used to compute stable externalIds and to derive
481
+ * has_parent slugs.
482
+ *
483
+ * The reader-side `getTree` adapter applies a symmetric typed-form
484
+ * overlay on either endpoint, so authoring symmetrically here keeps
485
+ * `pull(install(blueprint))` structurally identical to `blueprint`.
486
+ *
487
+ * For typed endpoints the `tree` AbsolutePath is the externalId hash
488
+ * input — `edgeExternalId` always anchors on tree position so the
489
+ * hash stays stable across different wire forms of the same edge.
490
+ */
491
+ addEdge(cls, source, target, slug) {
492
+ const sourcePath = source instanceof AbsolutePath ? source : source.path;
493
+ const sourceTree = source instanceof AbsolutePath ? source : source.tree;
494
+ const targetPath = target instanceof AbsolutePath ? target : target.path;
495
+ const targetTree = target instanceof AbsolutePath ? target : target.tree;
496
+ // has_parent slug derivation uses the tree-position basename — typed
497
+ // sources have no positional basename, but the tree form does.
498
+ const isHasParent = cls.className === 'has_parent';
499
+ const effectiveSlug = slug ?? (isHasParent ? AbsolutePath.basename(sourceTree.raw) : undefined);
500
+ this.patch.addEdge({
501
+ ...(effectiveSlug !== undefined && { slug: effectiveSlug }),
502
+ class: cls,
503
+ source: sourcePath,
504
+ target: targetPath,
505
+ props: {
506
+ ...foldRemote({
507
+ externalId: edgeExternalId(this.origin, cls, sourceTree, targetTree),
508
+ onConflict: this.conflict,
509
+ }, REMOTE_KEYS),
510
+ },
511
+ });
512
+ // Record typed-form ↔ AbsolutePath mappings on the patch so
513
+ // `Patch.toGraph` can seed `PathIndex` with them. Without this seed,
514
+ // `walkChain` can't bootstrap typed-source has_parent lookups (the
515
+ // alias for the source node isn't yet in `_resolveByRaw` when
516
+ // `BuildTimeView.edgesOutgoing` first fires).
517
+ if (!(sourcePath instanceof AbsolutePath)) {
518
+ this.patch.setAlias(sourceTree.raw, sourcePath);
519
+ }
520
+ if (!(targetPath instanceof AbsolutePath)) {
521
+ this.patch.setAlias(targetTree.raw, targetPath);
522
+ }
523
+ }
524
+ }
525
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../domain/serialize/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAcH,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,EACL,SAAS,IAAI,aAAa,EAC1B,UAAU,EACV,aAAa,EACb,UAAU,GACX,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,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CACF"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * serialize — top-level entry point for domain serialization.
3
+ *
4
+ * Takes a CompiledDomain + FunctionSchema[] and produces a Tree (graph
5
+ * blueprint). Core instance nodes/edges are emitted automatically when
6
+ * `compiled.$.core` is non-empty — the raw builder `Core` is not needed here
7
+ * because `compileDomain(schema, core)` already threaded it into `compiled.$.core`.
8
+ */
9
+ import type { Schema } from '@astrale-os/kernel-dsl';
10
+ import type { FunctionSchema } from '#domain/compile/method/serialized';
11
+ import type { CompiledDomain } from '#domain/compile/types';
12
+ import type { ConflictStrategy } from '#graph/sync';
13
+ import type { AbsolutePath, Tree } from '#graph/tree';
14
+ /** Options for {@link serialize}. */
15
+ export interface SerializeOptions {
16
+ onConflict?: ConflictStrategy;
17
+ domainExternalId?: string;
18
+ /**
19
+ * Where the Domain node lives in the tree.
20
+ *
21
+ * Defaults to `AbsolutePath.from(compiled.$.origin)` — i.e. the Domain sits
22
+ * at `/<origin>` under the graph Root. Pass any other absolute path to
23
+ * install the domain somewhere else (e.g. `AbsolutePath.from('apps', 'foo')`
24
+ * places the Domain at `/apps/foo`). The serializer emits the
25
+ * `has_parent` edge from the Domain to `mount.parent()` with
26
+ * `slug = basename(mount)`, making the resulting blueprint self-contained
27
+ * and directly pushable without a separate `moveNode` step.
28
+ *
29
+ * Mount must have at least one slug — a root-level Domain (mount = `/`)
30
+ * makes no sense because the graph Root itself is not a Domain.
31
+ */
32
+ mount?: AbsolutePath;
33
+ }
34
+ /**
35
+ * Serialize a CompiledDomain into a Tree (graph blueprint).
36
+ *
37
+ * The Tree contains Domain, Class, Interface, and Function nodes plus structural
38
+ * edges. Instance nodes/edges from `compiled.$.core` are appended when present.
39
+ *
40
+ * Pure: no IO, no global state.
41
+ */
42
+ export declare function serialize<S extends Schema>(compiled: CompiledDomain<S>, methods: FunctionSchema[], options?: SerializeOptions): Tree;
43
+ //# sourceMappingURL=serialize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../domain/serialize/serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AASrD,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,gBAAgB,CAAA;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,YAAY,CAAA;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EACxC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,EAC3B,OAAO,EAAE,cAAc,EAAE,EACzB,OAAO,CAAC,EAAE,gBAAgB,GACzB,IAAI,CAiBN"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * serialize — top-level entry point for domain serialization.
3
+ *
4
+ * Takes a CompiledDomain + FunctionSchema[] and produces a Tree (graph
5
+ * blueprint). Core instance nodes/edges are emitted automatically when
6
+ * `compiled.$.core` is non-empty — the raw builder `Core` is not needed here
7
+ * because `compileDomain(schema, core)` already threaded it into `compiled.$.core`.
8
+ */
9
+ import { DomainPaths } from '#domain/addressing/layout/default';
10
+ import { ClassPath } from '#domain/addressing/paths/class';
11
+ import { serializeCore } from './core';
12
+ import { mergeTrees } from './merge-trees';
13
+ import { serializeSchema } from './schema';
14
+ /**
15
+ * Serialize a CompiledDomain into a Tree (graph blueprint).
16
+ *
17
+ * The Tree contains Domain, Class, Interface, and Function nodes plus structural
18
+ * edges. Instance nodes/edges from `compiled.$.core` are appended when present.
19
+ *
20
+ * Pure: no IO, no global state.
21
+ */
22
+ export function serialize(compiled, methods, options) {
23
+ const schemaTree = serializeSchema(compiled, methods, options);
24
+ const cc = compiled.$.core;
25
+ if (!cc || (Object.keys(cc.entries).length === 0 && cc.edges.length === 0)) {
26
+ return schemaTree;
27
+ }
28
+ const coreFragment = serializeCore({
29
+ compiledCore: cc,
30
+ domainPaths: new DomainPaths(compiled.$.origin),
31
+ classPath: (name, classDomain) => ClassPath.from({ domain: classDomain, className: name }),
32
+ conflict: options?.onConflict ?? 'merge',
33
+ });
34
+ return mergeTrees(schemaTree, coreFragment);
35
+ }
36
+ //# sourceMappingURL=serialize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../domain/serialize/serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAuB1C;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CACvB,QAA2B,EAC3B,OAAyB,EACzB,OAA0B;IAE1B,MAAM,UAAU,GAAG,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;IAE9D,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA;IAC1B,IAAI,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;QAC3E,OAAO,UAAU,CAAA;IACnB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