@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,61 @@
1
+ /**
2
+ * Raised when a string cannot be parsed into a valid path. Carries the
3
+ * original input alongside one or more lex/parse-level diagnostics.
4
+ */
5
+ export class PathParseError extends Error {
6
+ name = 'PathParseError';
7
+ input;
8
+ errors;
9
+ constructor(input, errors) {
10
+ super(`Failed to parse path "${input}": ${errors.map((e) => e.message).join('; ')}`);
11
+ this.input = input;
12
+ this.errors = errors;
13
+ }
14
+ /** Alias for `input` — older callsites read `error.raw`. */
15
+ get raw() {
16
+ return this.input;
17
+ }
18
+ }
19
+ /**
20
+ * Raised when a node cannot be identified into a typed path — the
21
+ * walk-back terminated early or hit a graph state that violates the
22
+ * scheme's anchoring-edge invariant.
23
+ */
24
+ export class IdentifyError extends Error {
25
+ name = 'IdentifyError';
26
+ reason;
27
+ constructor(message, reason = 'walk-back failed') {
28
+ super(message);
29
+ this.reason = reason;
30
+ }
31
+ }
32
+ export class PathNotFoundError extends Error {
33
+ path;
34
+ failedAtStep;
35
+ context;
36
+ name = 'PathNotFoundError';
37
+ constructor(path, failedAtStep, context) {
38
+ const hint = failedAtStep.length > 24 || /\s/.test(failedAtStep) ? ` — ${failedAtStep}` : '';
39
+ super(`Path not found: "${path.raw}"${context ? ` (from context ${context})` : ''}${hint}`);
40
+ this.path = path;
41
+ this.failedAtStep = failedAtStep;
42
+ this.context = context;
43
+ }
44
+ }
45
+ export class AmbiguousPathError extends Error {
46
+ path;
47
+ name = 'AmbiguousPathError';
48
+ constructor(path) {
49
+ super(`Path is ambiguous: "${path.raw}"`);
50
+ this.path = path;
51
+ }
52
+ }
53
+ export class MissingContextError extends Error {
54
+ reason;
55
+ name = 'MissingContextError';
56
+ constructor(reason) {
57
+ super(`Missing path context: ${reason}`);
58
+ this.reason = reason;
59
+ }
60
+ }
61
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../graph/nav/path/errors.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,OAAO,cAAe,SAAQ,KAAK;IACrB,IAAI,GAAG,gBAAgB,CAAA;IAChC,KAAK,CAAQ;IACb,MAAM,CAA4B;IAE3C,YAAY,KAAa,EAAE,MAAkC;QAC3D,KAAK,CAAC,yBAAyB,KAAK,MAAM,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACpF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,4DAA4D;IAC5D,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,KAAK,CAAA;IACnB,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACpB,IAAI,GAAG,eAAe,CAAA;IAC/B,MAAM,CAAQ;IAEvB,YAAY,OAAe,EAAE,MAAM,GAAG,kBAAkB;QACtD,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAGxB,IAAI;IACJ,YAAY;IACZ,OAAO;IAJP,IAAI,GAAG,mBAAmB,CAAA;IAC5C,YACkB,IAAqB,EACrB,YAAoB,EACpB,OAAgB;QAEhC,MAAM,IAAI,GAAG,YAAY,CAAC,MAAM,GAAG,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;QAC5F,KAAK,CAAC,oBAAoB,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,kBAAkB,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,CAAA;oBAL3E,IAAI;4BACJ,YAAY;uBACZ,OAAO;IAIzB,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAEf,IAAI;IADd,IAAI,GAAG,oBAAoB,CAAA;IAC7C,YAA4B,IAAqB;QAC/C,KAAK,CAAC,uBAAuB,IAAI,CAAC,GAAG,GAAG,CAAC,CAAA;oBADf,IAAI;IAEhC,CAAC;CACF;AAED,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAEhB,MAAM;IADhB,IAAI,GAAG,qBAAqB,CAAA;IAC9C,YAA4B,MAAc;QACxC,KAAK,CAAC,yBAAyB,MAAM,EAAE,CAAC,CAAA;sBADd,MAAM;IAElC,CAAC;CACF"}
@@ -0,0 +1,19 @@
1
+ export { Path, toPath } from './path';
2
+ export { parsePath, safeParsePath, type ParsePathResult } from './parse';
3
+ export type { Step, Anchor, Traversal } from '../ast/step';
4
+ export { OUTBOUND, INBOUND, ROOT_ANCHOR, idAnchor, isRootAnchor } from '../ast/step';
5
+ export { reverseStep, reverseSteps, stepsEqual } from '../ast/step/reverse';
6
+ export type { Predicate, PropertyPredicate, AndPredicate, OrPredicate, NotPredicate, PredicateOp, PredicateScope, } from '../ast/predicate/types';
7
+ export { IdPath, idPathType, registerIdPath } from './kinds/id-path';
8
+ export type { PathType } from './kinds/path-type';
9
+ export { PathTypeRegistry } from './kinds/registry';
10
+ export { walkChain, matchesChain, chainSpan } from './kinds/chain';
11
+ export { buildPath } from './build';
12
+ export { serializeStep, serializeSteps, serializeStepCore } from '../serialize/steps';
13
+ export { traversalFromHop, reconstructSteps } from '../scheme/slug';
14
+ export { PathParseError, IdentifyError, PathNotFoundError, AmbiguousPathError, MissingContextError, } from './errors';
15
+ export type { Slug } from '../ast/slug';
16
+ export { slugSchema, SLUG_PROPERTY } from '../ast/slug';
17
+ export { pathSchema, idPathSchema, pathLike, PathValidationError } from './zod';
18
+ export type { PathCtor, PathValidationErrorKind, PathValidationIssue } from './zod';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../graph/nav/path/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAGxE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAG3E,YAAY,EACV,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,WAAW,EACX,cAAc,GACf,MAAM,wBAAwB,CAAA;AAG/B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAGpE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAGrF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGnE,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,UAAU,CAAA;AAGjB,YAAY,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGvD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAC/E,YAAY,EAAE,QAAQ,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA"}
@@ -0,0 +1,19 @@
1
+ // ─── Path (base class) + parsing entry points ──────────────
2
+ export { Path, toPath } from './path';
3
+ export { parsePath, safeParsePath } from './parse';
4
+ export { OUTBOUND, INBOUND, ROOT_ANCHOR, idAnchor, isRootAnchor } from '../ast/step';
5
+ export { reverseStep, reverseSteps, stepsEqual } from '../ast/step/reverse';
6
+ // ─── Id path ───────────────────────────────────────────────
7
+ export { IdPath, idPathType, registerIdPath } from './kinds/id-path';
8
+ export { PathTypeRegistry } from './kinds/registry';
9
+ export { walkChain, matchesChain, chainSpan } from './kinds/chain';
10
+ export { buildPath } from './build';
11
+ export { serializeStep, serializeSteps, serializeStepCore } from '../serialize/steps';
12
+ // ─── Slug-array convergence (shared with cypher backend) ──
13
+ export { traversalFromHop, reconstructSteps } from '../scheme/slug';
14
+ // ─── Errors ────────────────────────────────────────────────
15
+ export { PathParseError, IdentifyError, PathNotFoundError, AmbiguousPathError, MissingContextError, } from './errors';
16
+ export { slugSchema, SLUG_PROPERTY } from '../ast/slug';
17
+ // ─── Zod factories ─────────────────────────────────────────
18
+ export { pathSchema, idPathSchema, pathLike, PathValidationError } from './zod';
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../graph/nav/path/index.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAwB,MAAM,SAAS,CAAA;AAIxE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAa3E,8DAA8D;AAC9D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAIpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAErF,6DAA6D;AAC7D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEnE,8DAA8D;AAC9D,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,UAAU,CAAA;AAIjB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEvD,8DAA8D;AAC9D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA"}
@@ -0,0 +1,38 @@
1
+ import type { GraphView } from '#graph';
2
+ import type { Node } from '#graph/node/node';
3
+ import type { Step } from '../../ast/step';
4
+ import type { SchemeSegment } from '../../scheme/segment';
5
+ import type { PathType } from './path-type';
6
+ /**
7
+ * Match Step[] against a segment chain: each segment claims a
8
+ * contiguous run, segments are tried left-to-right, and the steps must
9
+ * be fully exhausted. Takes raw segments so PathType factories can
10
+ * call it without a PathType instance in scope.
11
+ */
12
+ export declare function matchesChain(segments: readonly SchemeSegment[], steps: readonly Step[]): boolean;
13
+ /**
14
+ * Total steps a segment chain collectively consumes against a Step[].
15
+ * Used by {@link PathTypeRegistry.detect} as the specificity
16
+ * tiebreaker — types whose segments cover more steps are preferred.
17
+ */
18
+ export declare function chainSpan(segments: readonly SchemeSegment[], steps: readonly Step[]): number;
19
+ /**
20
+ * Walk a node back through a PathType's segment chain (target → anchor)
21
+ * and lift the harvested slugs into the IR `Step[]` the forward
22
+ * direction would have parsed.
23
+ *
24
+ * Two stages:
25
+ * 1. {@link walkSlugs} — physical walk via the {@link GraphView},
26
+ * producing the same flat slug array the cypher backend's CASE
27
+ * expression projects (single-hop slugs leaf-to-anchor, then
28
+ * recursive-hop slugs leaf-to-root).
29
+ * 2. {@link reconstructSteps} — shared with the cypher backend, lifts
30
+ * the slug array back into `Step[]` using the PathType's segment
31
+ * chain.
32
+ *
33
+ * The structural symmetry with the cypher backend lives at the slug
34
+ * array boundary: both backends harvest one in their own execution
35
+ * model and converge on `reconstructSteps`.
36
+ */
37
+ export declare function walkChain(type: PathType, target: Node, graph: GraphView): readonly Step[];
38
+ //# sourceMappingURL=chain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAE5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAO3C;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,EAAE,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,OAAO,CAQhG;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,EAAE,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,MAAM,CAQ5F;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,GAAG,SAAS,IAAI,EAAE,CAEzF"}
@@ -0,0 +1,84 @@
1
+ import { reconstructSteps } from '../../scheme/slug';
2
+ import { span } from '../../scheme/span';
3
+ import { walk } from '../../scheme/walk';
4
+ import { IdentifyError } from '../errors';
5
+ /**
6
+ * Match Step[] against a segment chain: each segment claims a
7
+ * contiguous run, segments are tried left-to-right, and the steps must
8
+ * be fully exhausted. Takes raw segments so PathType factories can
9
+ * call it without a PathType instance in scope.
10
+ */
11
+ export function matchesChain(segments, steps) {
12
+ let offset = 0;
13
+ for (const seg of segments) {
14
+ const n = span(seg, steps, offset);
15
+ if (n === 0)
16
+ return false;
17
+ offset += n;
18
+ }
19
+ return offset === steps.length;
20
+ }
21
+ /**
22
+ * Total steps a segment chain collectively consumes against a Step[].
23
+ * Used by {@link PathTypeRegistry.detect} as the specificity
24
+ * tiebreaker — types whose segments cover more steps are preferred.
25
+ */
26
+ export function chainSpan(segments, steps) {
27
+ let offset = 0;
28
+ for (const seg of segments) {
29
+ const n = span(seg, steps, offset);
30
+ if (n === 0)
31
+ return 0;
32
+ offset += n;
33
+ }
34
+ return offset;
35
+ }
36
+ /**
37
+ * Walk a node back through a PathType's segment chain (target → anchor)
38
+ * and lift the harvested slugs into the IR `Step[]` the forward
39
+ * direction would have parsed.
40
+ *
41
+ * Two stages:
42
+ * 1. {@link walkSlugs} — physical walk via the {@link GraphView},
43
+ * producing the same flat slug array the cypher backend's CASE
44
+ * expression projects (single-hop slugs leaf-to-anchor, then
45
+ * recursive-hop slugs leaf-to-root).
46
+ * 2. {@link reconstructSteps} — shared with the cypher backend, lifts
47
+ * the slug array back into `Step[]` using the PathType's segment
48
+ * chain.
49
+ *
50
+ * The structural symmetry with the cypher backend lives at the slug
51
+ * array boundary: both backends harvest one in their own execution
52
+ * model and converge on `reconstructSteps`.
53
+ */
54
+ export function walkChain(type, target, graph) {
55
+ return reconstructSteps(type, walkSlugs(type, target, graph));
56
+ }
57
+ /**
58
+ * Harvest the flat slug array a PathType's segment chain would produce
59
+ * for `target`. Order matches the cypher walker's CASE emission so
60
+ * `reconstructSteps` is the single decoding site for both backends.
61
+ *
62
+ * Throws {@link IdentifyError} when a segment's predecessor goes null
63
+ * before the outermost segment runs — that would mean the scheme's
64
+ * anchoring-edge invariant was violated mid-walk.
65
+ */
66
+ function walkSlugs(type, target, graph) {
67
+ const linear = [];
68
+ const tree = [];
69
+ let cursor = target;
70
+ for (let i = type.segments.length - 1; i >= 0; i--) {
71
+ if (cursor === null) {
72
+ throw new IdentifyError(`Walk-back terminated early in ${type.name}: segment ${i} (${type.segments[i].name}) has no source node`);
73
+ }
74
+ const seg = type.segments[i];
75
+ const r = walk(seg, cursor, graph);
76
+ if (seg.kind === 'single')
77
+ linear.push(...r.slugs);
78
+ else
79
+ tree.push(...r.slugs);
80
+ cursor = r.predecessor;
81
+ }
82
+ return [...linear, ...tree];
83
+ }
84
+ //# sourceMappingURL=chain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.js","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/chain.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,QAAkC,EAAE,KAAsB;IACrF,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAClC,IAAI,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAA;QACzB,MAAM,IAAI,CAAC,CAAA;IACb,CAAC;IACD,OAAO,MAAM,KAAK,KAAK,CAAC,MAAM,CAAA;AAChC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,QAAkC,EAAE,KAAsB;IAClF,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAClC,IAAI,CAAC,KAAK,CAAC;YAAE,OAAO,CAAC,CAAA;QACrB,MAAM,IAAI,CAAC,CAAA;IACb,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,SAAS,CAAC,IAAc,EAAE,MAAY,EAAE,KAAgB;IACtE,OAAO,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;AAC/D,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,SAAS,CAAC,IAAc,EAAE,MAAY,EAAE,KAAgB;IAC/D,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,MAAM,IAAI,GAAa,EAAE,CAAA;IACzB,IAAI,MAAM,GAAuB,MAAM,CAAA;IACvC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QACnD,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACpB,MAAM,IAAI,aAAa,CACrB,iCAAiC,IAAI,CAAC,IAAI,aAAa,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAE,CAAC,IAAI,sBAAsB,CAC1G,CAAA;QACH,CAAC;QACD,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAE,CAAA;QAC7B,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;QAClC,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ;YAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;;YAC7C,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;QAC1B,MAAM,GAAG,CAAC,CAAC,WAAW,CAAA;IACxB,CAAC;IACD,OAAO,CAAC,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;AAC7B,CAAC"}
@@ -0,0 +1,44 @@
1
+ import type { NodeId } from '#ids';
2
+ import type { Step } from '../../ast/step';
3
+ import type { PathType } from './path-type';
4
+ import { Path } from '../path';
5
+ /**
6
+ * Direct node reference by id — `@<nodeId>`.
7
+ *
8
+ * The simplest typed path: zero traversal, one anchor. Always
9
+ * absolute. The `@` token is core grammar — no GrammarExtension is
10
+ * needed; the parser handles it directly.
11
+ */
12
+ export declare class IdPath extends Path {
13
+ readonly id: NodeId;
14
+ constructor(steps: readonly Step[], raw: string, id: NodeId);
15
+ /** @internal Narrow a base Path into IdPath without re-parsing. */
16
+ static _fromPath(path: Path): IdPath;
17
+ static parse(raw: string): IdPath;
18
+ static tryParse(raw: string): IdPath | null;
19
+ static from(id: NodeId): IdPath;
20
+ get isRelative(): false;
21
+ equals(other: Path): boolean;
22
+ }
23
+ /**
24
+ * The PathType for IdPath. Zero segments — the anchor is not an
25
+ * anchoring edge, it's a direct node pointer. `matches` checks the
26
+ * step shape directly. `build` extracts the id from the anchor step.
27
+ *
28
+ * Excludes the implicit-root anchor (`__SYSTEM__`) — a path with a
29
+ * single root anchor is the empty AbsolutePath (`/`), not an IdPath.
30
+ *
31
+ * Lowest specificity in the registry: only matches when no other type
32
+ * does. Enforced by the registry's "longest segment chain wins" rule
33
+ * (zero segments = lowest specificity).
34
+ */
35
+ export declare const idPathType: PathType<IdPath>;
36
+ /**
37
+ * Wire IdPath into the PathTypeRegistry.
38
+ *
39
+ * No GrammarExtension or SchemeSegment to register — `@` is core
40
+ * grammar, IdPath has no anchoring edge. The PathType is the only
41
+ * artifact that needs to opt into the registry.
42
+ */
43
+ export declare function registerIdPath(): void;
44
+ //# sourceMappingURL=id-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"id-path.d.ts","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/id-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAElC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAK3C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B;;;;;;GAMG;AACH,qBAAa,MAAO,SAAQ,IAAI;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IAEnB,YAAY,KAAK,EAAE,SAAS,IAAI,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAG1D;IAID,mEAAmE;IACnE,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAQnC;IAID,OAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzC;IAED,OAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMnD;IAED,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE9B;IAED,IAAI,UAAU,IAAI,KAAK,CAEtB;IAEQ,MAAM,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO,CAGpC;CACF;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAqBvC,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAErC"}
@@ -0,0 +1,104 @@
1
+ import { idAnchor, isRootAnchor } from '../../ast/step';
2
+ import { PathParseError } from '../errors';
3
+ import { parsePath } from '../parse';
4
+ import { Path } from '../path';
5
+ import { PathTypeRegistry } from './registry';
6
+ /**
7
+ * Direct node reference by id — `@<nodeId>`.
8
+ *
9
+ * The simplest typed path: zero traversal, one anchor. Always
10
+ * absolute. The `@` token is core grammar — no GrammarExtension is
11
+ * needed; the parser handles it directly.
12
+ */
13
+ export class IdPath extends Path {
14
+ id;
15
+ constructor(steps, raw, id) {
16
+ super(steps, raw);
17
+ this.id = id;
18
+ }
19
+ // ─── Internal hooks ──────────────────────────────────────
20
+ /** @internal Narrow a base Path into IdPath without re-parsing. */
21
+ static _fromPath(path) {
22
+ const step = path.steps[0];
23
+ if (path.steps.length !== 1 || !step || step.kind !== 'anchor') {
24
+ throw new PathParseError(path.raw, [
25
+ { kind: 'not-id', message: 'IdPath requires a single anchor step', position: 0 },
26
+ ]);
27
+ }
28
+ return new IdPath(path.steps, path.raw, step.id);
29
+ }
30
+ // ─── Static factories ────────────────────────────────────
31
+ static parse(raw) {
32
+ const p = parsePath(raw);
33
+ if (!(p instanceof IdPath)) {
34
+ throw new PathParseError(raw, [
35
+ { kind: 'not-id', message: 'Path is not an id reference', position: 0 },
36
+ ]);
37
+ }
38
+ return p;
39
+ }
40
+ static tryParse(raw) {
41
+ try {
42
+ return IdPath.parse(raw);
43
+ }
44
+ catch {
45
+ return null;
46
+ }
47
+ }
48
+ static from(id) {
49
+ return new IdPath([idAnchor(id)], `@${id}`, id);
50
+ }
51
+ get isRelative() {
52
+ return false;
53
+ }
54
+ equals(other) {
55
+ if (!(other instanceof IdPath))
56
+ return false;
57
+ return this.id === other.id;
58
+ }
59
+ }
60
+ /**
61
+ * The PathType for IdPath. Zero segments — the anchor is not an
62
+ * anchoring edge, it's a direct node pointer. `matches` checks the
63
+ * step shape directly. `build` extracts the id from the anchor step.
64
+ *
65
+ * Excludes the implicit-root anchor (`__SYSTEM__`) — a path with a
66
+ * single root anchor is the empty AbsolutePath (`/`), not an IdPath.
67
+ *
68
+ * Lowest specificity in the registry: only matches when no other type
69
+ * does. Enforced by the registry's "longest segment chain wins" rule
70
+ * (zero segments = lowest specificity).
71
+ */
72
+ export const idPathType = {
73
+ name: 'IdPath',
74
+ class: null,
75
+ segments: [],
76
+ matches(steps) {
77
+ if (steps.length !== 1)
78
+ return false;
79
+ const head = steps[0];
80
+ if (!head || head.kind !== 'anchor')
81
+ return false;
82
+ return !isRootAnchor(head);
83
+ },
84
+ build(steps, raw) {
85
+ const step = steps[0];
86
+ if (steps.length !== 1 || !step || step.kind !== 'anchor') {
87
+ throw new PathParseError(raw, [
88
+ { kind: 'not-id', message: 'IdPath requires a single anchor step', position: 0 },
89
+ ]);
90
+ }
91
+ return new IdPath(steps, raw || `@${step.id}`, step.id);
92
+ },
93
+ };
94
+ /**
95
+ * Wire IdPath into the PathTypeRegistry.
96
+ *
97
+ * No GrammarExtension or SchemeSegment to register — `@` is core
98
+ * grammar, IdPath has no anchoring edge. The PathType is the only
99
+ * artifact that needs to opt into the registry.
100
+ */
101
+ export function registerIdPath() {
102
+ PathTypeRegistry.register(idPathType);
103
+ }
104
+ //# sourceMappingURL=id-path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"id-path.js","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/id-path.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;;GAMG;AACH,MAAM,OAAO,MAAO,SAAQ,IAAI;IACrB,EAAE,CAAQ;IAEnB,YAAY,KAAsB,EAAE,GAAW,EAAE,EAAU;QACzD,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;QACjB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IACd,CAAC;IAED,4DAA4D;IAE5D,mEAAmE;IACnE,MAAM,CAAC,SAAS,CAAC,IAAU;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QAC1B,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC/D,MAAM,IAAI,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,sCAAsC,EAAE,QAAQ,EAAE,CAAC,EAAE;aACjF,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;IAClD,CAAC;IAED,4DAA4D;IAE5D,MAAM,CAAU,KAAK,CAAC,GAAW;QAC/B,MAAM,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;QACxB,IAAI,CAAC,CAAC,CAAC,YAAY,MAAM,CAAC,EAAE,CAAC;YAC3B,MAAM,IAAI,cAAc,CAAC,GAAG,EAAE;gBAC5B,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,6BAA6B,EAAE,QAAQ,EAAE,CAAC,EAAE;aACxE,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,CAAC,CAAA;IACV,CAAC;IAED,MAAM,CAAU,QAAQ,CAAC,GAAW;QAClC,IAAI,CAAC;YACH,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAC1B,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,EAAU;QACpB,OAAO,IAAI,MAAM,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;IACjD,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,KAAK,CAAA;IACd,CAAC;IAEQ,MAAM,CAAC,KAAW;QACzB,IAAI,CAAC,CAAC,KAAK,YAAY,MAAM,CAAC;YAAE,OAAO,KAAK,CAAA;QAC5C,OAAO,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAA;IAC7B,CAAC;CACF;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,UAAU,GAAqB;IAC1C,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,EAAE;IAEZ,OAAO,CAAC,KAAK;QACX,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAA;QACpC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAA;QACjD,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC5B,CAAC;IAED,KAAK,CAAC,KAAK,EAAE,GAAG;QACd,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC1D,MAAM,IAAI,cAAc,CAAC,GAAG,EAAE;gBAC5B,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,sCAAsC,EAAE,QAAQ,EAAE,CAAC,EAAE;aACjF,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,IAAI,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,IAAI,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;IACzD,CAAC;CACF,CAAA;AAED;;;;;;GAMG;AACH,MAAM,UAAU,cAAc;IAC5B,gBAAgB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;AACvC,CAAC"}
@@ -0,0 +1,51 @@
1
+ import type { Step } from '../../ast/step';
2
+ import type { SchemeSegment } from '../../scheme/segment';
3
+ import type { Path } from '../path';
4
+ /**
5
+ * A typed wrapper over a Step[] produced by a fixed sequence of
6
+ * scheme segments.
7
+ *
8
+ * `segments` is ordered outer-anchor first. Forward matching: each
9
+ * segment's `detect` consumes its run left-to-right; backward
10
+ * identifying: each segment's `identify` runs right-to-left, threading
11
+ * the predecessor cursor.
12
+ *
13
+ * A PathType is the only place that knows how to wrap a validated
14
+ * Step[] into a typed instance — schemes are graph-side, grammar
15
+ * extensions are sugar-side, neither claim ownership of the typed
16
+ * shape.
17
+ *
18
+ * `class` declares the class this PathType identifies via its raw
19
+ * class-path string. Used by adapter-side dispatch — the Cypher
20
+ * walker branches per label by reading `gm.nodeInfoForClass(type.class)`.
21
+ * `null` for universal types that identify any node (`IdPath`,
22
+ * `AbsolutePath`, `RelativePath`, `InstanceMethodPath`).
23
+ *
24
+ * Held as a string (not a typed `ClassPath`) so `nav` stays self-
25
+ * contained — domain concepts don't leak into the path-language
26
+ * infrastructure. Construction sites with a `ClassPath` in scope pass
27
+ * `classPath.raw`.
28
+ */
29
+ export interface PathType<T extends Path = Path> {
30
+ readonly name: string;
31
+ readonly segments: readonly SchemeSegment[];
32
+ /**
33
+ * Raw class-path string identifying the node class this PathType
34
+ * matches, or `null` if the type is universal. Opaque to nav;
35
+ * resolved by adapters/registries that know the domain layout.
36
+ */
37
+ readonly class: string | null;
38
+ /**
39
+ * Refine match beyond pure segment composition. Default behaviour
40
+ * (segments exhaust the steps) lives in `chain.ts:matchesChain`.
41
+ * Types that need stricter narrowing (e.g. ClassPath rejecting
42
+ * `class.X.Y` dotted member names) override this hook.
43
+ */
44
+ matches?(steps: readonly Step[]): boolean;
45
+ /**
46
+ * Build the typed wrapper from validated steps and the original raw
47
+ * input string.
48
+ */
49
+ build(steps: readonly Step[], raw: string): T;
50
+ }
51
+ //# sourceMappingURL=path-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-type.d.ts","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/path-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IAErB,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAA;IAE3C;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B;;;;;OAKG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,OAAO,CAAA;IAEzC;;;OAGG;IACH,KAAK,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,CAAA;CAC9C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=path-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-type.js","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/path-type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
1
+ import type { Step } from '../../ast/step';
2
+ import type { PathType } from './path-type';
3
+ /**
4
+ * Registry of typed-path classes available for parsing and identifying.
5
+ *
6
+ * Detection picks the *most specific* type that matches a Step[] — when
7
+ * multiple types match, the one whose segments cover the longest run
8
+ * wins, with ties broken by registration order (later wins). PathTypes
9
+ * register themselves at boot; tests use `_reset()` for isolation.
10
+ *
11
+ * Detection is purely structural: the parsed Step[] carries every bit
12
+ * of information about the path's shape (in particular, an absolute
13
+ * path's leading {@link RootAnchor} distinguishes it from a relative
14
+ * path's bare-traversal sequence).
15
+ *
16
+ * **Class invariant.** A PathType with a non-null `class` claims
17
+ * exclusive ownership of that class — at most one such PathType per
18
+ * class. Registration throws on collision rather than silently
19
+ * overshadowing. Universal types (`class === null`) coexist freely.
20
+ * Consumers that need the class → PathType mapping (semantic-target
21
+ * reconstruction, per-class Cypher branch dispatch) read it from
22
+ * {@link byClass} / {@link byClassMap}; both code paths therefore
23
+ * share a single source of truth and cannot diverge by iteration order.
24
+ */
25
+ export declare class PathTypeRegistry {
26
+ private static readonly _types;
27
+ private static readonly _byClass;
28
+ static register(type: PathType): void;
29
+ static all(): readonly PathType[];
30
+ /**
31
+ * The unique PathType claiming `cls`, or `null` if no PathType
32
+ * registered against this class. O(1).
33
+ */
34
+ static byClass(cls: string): PathType | null;
35
+ /**
36
+ * Live view of the class → PathType index. Consumers that need to
37
+ * iterate one branch per class (e.g., the Cypher walker) drive off
38
+ * this map so they share dispatch with {@link byClass} reverse
39
+ * lookups by construction.
40
+ */
41
+ static byClassMap(): ReadonlyMap<string, PathType>;
42
+ /**
43
+ * Find the most-specific PathType whose `matches` accepts these
44
+ * steps. Returns `undefined` when no type matches — callers wrap the
45
+ * step list in the base {@link Path} class as a fallback.
46
+ */
47
+ static detect(steps: readonly Step[]): PathType | undefined;
48
+ /** Reset registry state. For testing only. */
49
+ static _reset(): void;
50
+ }
51
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAI3C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAiB;IAC/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAA8B;IAE9D,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAYpC;IAED,MAAM,CAAC,GAAG,IAAI,SAAS,QAAQ,EAAE,CAEhC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAE3C;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAU,IAAI,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAEjD;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,GAAG,QAAQ,GAAG,SAAS,CAc1D;IAED,8CAA8C;IAC9C,MAAM,CAAC,MAAM,IAAI,IAAI,CAGpB;CACF"}
@@ -0,0 +1,85 @@
1
+ import { matchesChain, chainSpan } from './chain';
2
+ /**
3
+ * Registry of typed-path classes available for parsing and identifying.
4
+ *
5
+ * Detection picks the *most specific* type that matches a Step[] — when
6
+ * multiple types match, the one whose segments cover the longest run
7
+ * wins, with ties broken by registration order (later wins). PathTypes
8
+ * register themselves at boot; tests use `_reset()` for isolation.
9
+ *
10
+ * Detection is purely structural: the parsed Step[] carries every bit
11
+ * of information about the path's shape (in particular, an absolute
12
+ * path's leading {@link RootAnchor} distinguishes it from a relative
13
+ * path's bare-traversal sequence).
14
+ *
15
+ * **Class invariant.** A PathType with a non-null `class` claims
16
+ * exclusive ownership of that class — at most one such PathType per
17
+ * class. Registration throws on collision rather than silently
18
+ * overshadowing. Universal types (`class === null`) coexist freely.
19
+ * Consumers that need the class → PathType mapping (semantic-target
20
+ * reconstruction, per-class Cypher branch dispatch) read it from
21
+ * {@link byClass} / {@link byClassMap}; both code paths therefore
22
+ * share a single source of truth and cannot diverge by iteration order.
23
+ */
24
+ export class PathTypeRegistry {
25
+ static _types = [];
26
+ static _byClass = new Map();
27
+ static register(type) {
28
+ if (PathTypeRegistry._types.includes(type))
29
+ return;
30
+ if (type.class !== null) {
31
+ const existing = PathTypeRegistry._byClass.get(type.class);
32
+ if (existing !== undefined) {
33
+ throw new Error(`PathTypeRegistry.register: class "${type.class}" is already claimed by PathType "${existing.name}"; cannot register "${type.name}". Each non-universal PathType must claim a unique class.`);
34
+ }
35
+ PathTypeRegistry._byClass.set(type.class, type);
36
+ }
37
+ PathTypeRegistry._types.push(type);
38
+ }
39
+ static all() {
40
+ return PathTypeRegistry._types;
41
+ }
42
+ /**
43
+ * The unique PathType claiming `cls`, or `null` if no PathType
44
+ * registered against this class. O(1).
45
+ */
46
+ static byClass(cls) {
47
+ return PathTypeRegistry._byClass.get(cls) ?? null;
48
+ }
49
+ /**
50
+ * Live view of the class → PathType index. Consumers that need to
51
+ * iterate one branch per class (e.g., the Cypher walker) drive off
52
+ * this map so they share dispatch with {@link byClass} reverse
53
+ * lookups by construction.
54
+ */
55
+ static byClassMap() {
56
+ return PathTypeRegistry._byClass;
57
+ }
58
+ /**
59
+ * Find the most-specific PathType whose `matches` accepts these
60
+ * steps. Returns `undefined` when no type matches — callers wrap the
61
+ * step list in the base {@link Path} class as a fallback.
62
+ */
63
+ static detect(steps) {
64
+ let best;
65
+ let bestSpan = -1;
66
+ for (let i = PathTypeRegistry._types.length - 1; i >= 0; i--) {
67
+ const t = PathTypeRegistry._types[i];
68
+ const matched = (t.matches ?? ((s) => matchesChain(t.segments, s)))(steps);
69
+ if (!matched)
70
+ continue;
71
+ const span = chainSpan(t.segments, steps);
72
+ if (span > bestSpan) {
73
+ best = t;
74
+ bestSpan = span;
75
+ }
76
+ }
77
+ return best;
78
+ }
79
+ /** Reset registry state. For testing only. */
80
+ static _reset() {
81
+ PathTypeRegistry._types.length = 0;
82
+ PathTypeRegistry._byClass.clear();
83
+ }
84
+ }
85
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../../graph/nav/path/kinds/registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,OAAO,gBAAgB;IACnB,MAAM,CAAU,MAAM,GAAe,EAAE,CAAA;IACvC,MAAM,CAAU,QAAQ,GAAG,IAAI,GAAG,EAAoB,CAAA;IAE9D,MAAM,CAAC,QAAQ,CAAC,IAAc;QAC5B,IAAI,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,OAAM;QAClD,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YACxB,MAAM,QAAQ,GAAG,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YAC1D,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,MAAM,IAAI,KAAK,CACb,qCAAqC,IAAI,CAAC,KAAK,qCAAqC,QAAQ,CAAC,IAAI,uBAAuB,IAAI,CAAC,IAAI,2DAA2D,CAC7L,CAAA;YACH,CAAC;YACD,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;QACjD,CAAC;QACD,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACpC,CAAC;IAED,MAAM,CAAC,GAAG;QACR,OAAO,gBAAgB,CAAC,MAAM,CAAA;IAChC,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAO,CAAC,GAAW;QACxB,OAAO,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,CAAA;IACnD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,UAAU;QACf,OAAO,gBAAgB,CAAC,QAAQ,CAAA;IAClC,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,KAAsB;QAClC,IAAI,IAA0B,CAAA;QAC9B,IAAI,QAAQ,GAAG,CAAC,CAAC,CAAA;QACjB,KAAK,IAAI,CAAC,GAAG,gBAAgB,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7D,MAAM,CAAC,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAE,CAAA;YACrC,MAAM,OAAO,GAAG,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;YAC1E,IAAI,CAAC,OAAO;gBAAE,SAAQ;YACtB,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;YACzC,IAAI,IAAI,GAAG,QAAQ,EAAE,CAAC;gBACpB,IAAI,GAAG,CAAC,CAAA;gBACR,QAAQ,GAAG,IAAI,CAAA;YACjB,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED,8CAA8C;IAC9C,MAAM,CAAC,MAAM;QACX,gBAAgB,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;QAClC,gBAAgB,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAA;IACnC,CAAC;CACF"}