@oscharko-dev/keiko 1.2.4 → 1.2.5

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 (760) hide show
  1. package/README.md +16 -0
  2. package/dist/ui/csp-hashes.json +7 -7
  3. package/dist/ui/static/404.html +1 -1
  4. package/dist/ui/static/__next.__PAGE__.txt +11 -11
  5. package/dist/ui/static/__next._full.txt +13 -13
  6. package/dist/ui/static/__next._tree.txt +2 -2
  7. package/dist/ui/static/_next/static/chunks/01v1_t-lungu7.js +1 -0
  8. package/dist/ui/static/_next/static/chunks/{1ienlzel5zdck.js → 04dp_lufwpm_c.js} +3 -3
  9. package/dist/ui/static/_next/static/chunks/{3llyc6xz08_ky.js → 093a8t-2cq6m-.js} +1 -1
  10. package/dist/ui/static/_next/static/chunks/{2dhcqxcousm45.css → 0c2x58oypfxql.css} +0 -1
  11. package/dist/ui/static/_next/static/chunks/{0oqmbh9n57323.js → 0d2jdima45f80.js} +1 -1
  12. package/dist/ui/static/_next/static/chunks/0jgz-asdfgt0a.js +1 -0
  13. package/dist/ui/static/_next/static/chunks/{1glj9-10j7vd_.js → 0pwhvlvc5xzdn.js} +1 -1
  14. package/dist/ui/static/_next/static/chunks/0qv18mxl-svtm.js +1 -0
  15. package/dist/ui/static/_next/static/chunks/{3q-u4cmxbxbxy.js → 0t_pueqvpjhte.js} +1 -1
  16. package/dist/ui/static/_next/static/chunks/0vp6vie-w0uoj.js +1 -0
  17. package/dist/ui/static/_next/static/chunks/0yfynlzpk94vs.js +1 -0
  18. package/dist/ui/static/_next/static/chunks/0z3r0nbwzm3go.js +1 -0
  19. package/dist/ui/static/_next/static/chunks/{3i6zr4x280jq4.js → 0zfirl91hq_ln.js} +1 -1
  20. package/dist/ui/static/_next/static/chunks/{1grn549_xc1mq.js → 1-t3xxvikveec.js} +1 -1
  21. package/dist/ui/static/_next/static/chunks/12w_v6vr9vd22.js +1 -0
  22. package/dist/ui/static/_next/static/chunks/{2p_w_st_gm1rp.js → 13sm61rx0q9m9.js} +1 -1
  23. package/dist/ui/static/_next/static/chunks/{3zidi31cpe2oi.js → 1cvrnrez0p5sh.js} +1 -1
  24. package/dist/ui/static/_next/static/chunks/{0t52lzhbto4gq.js → 1d-qbfzavu7_h.js} +1 -1
  25. package/dist/ui/static/_next/static/chunks/1d_8494rie_2y.js +1 -0
  26. package/dist/ui/static/_next/static/chunks/1i7d10xj8vuah.js +3 -0
  27. package/dist/ui/static/_next/static/chunks/1k8c-8atljqqw.js +3 -0
  28. package/dist/ui/static/_next/static/chunks/1l676jhjwtevb.js +1 -0
  29. package/dist/ui/static/_next/static/chunks/{12j_451pxuj5o.js → 1ppxq34e8yoto.js} +1 -1
  30. package/dist/ui/static/_next/static/chunks/1qgnefr4jj_n-.js +1 -0
  31. package/dist/ui/static/_next/static/chunks/1r7nm7hfkns1l.js +1 -0
  32. package/dist/ui/static/_next/static/chunks/{15vd6rpxiqu8w.js → 1s2tjtk748q8w.js} +1 -1
  33. package/dist/ui/static/_next/static/chunks/1stvo8-y2miuz.js +1 -0
  34. package/dist/ui/static/_next/static/chunks/1t4zp9vejq5h0.js +1 -0
  35. package/dist/ui/static/_next/static/chunks/1ubq2i81_6-6d.js +1 -0
  36. package/dist/ui/static/_next/static/chunks/1w2mgrozzxtu5.js +1 -0
  37. package/dist/ui/static/_next/static/chunks/2-vwp2300eiru.js +1 -0
  38. package/dist/ui/static/_next/static/chunks/2013jtodtg8y1.js +1 -0
  39. package/dist/ui/static/_next/static/chunks/2169pghueen2s.js +1 -0
  40. package/dist/ui/static/_next/static/chunks/{19us2pnpa8mf8.js → 242m8in5ekjq8.js} +1 -1
  41. package/dist/ui/static/_next/static/chunks/24is2i_l0kpzd.js +1 -0
  42. package/dist/ui/static/_next/static/chunks/27mnm_nd_hxtu.js +1 -0
  43. package/dist/ui/static/_next/static/chunks/27tzfe7swrig-.js +1 -0
  44. package/dist/ui/static/_next/static/chunks/{1ufk9opowqajn.js → 2928_k4v79qpr.js} +1 -1
  45. package/dist/ui/static/_next/static/chunks/{0ye5xoo8-mxeh.js → 2951adkvdmyxh.js} +1 -1
  46. package/dist/ui/static/_next/static/chunks/2_52lwqeijscc.js +1 -0
  47. package/dist/ui/static/_next/static/chunks/2apif8vheen3j.js +1 -0
  48. package/dist/ui/static/_next/static/chunks/{2rmh79cv9y7fu.js → 2ay2c5nsvk_cj.js} +1 -1
  49. package/dist/ui/static/_next/static/chunks/2b29lijhhd1wz.js +1 -0
  50. package/dist/ui/static/_next/static/chunks/2dn8u_6hzkn57.js +1 -0
  51. package/dist/ui/static/_next/static/chunks/2flrm_8eutmbc.js +1 -0
  52. package/dist/ui/static/_next/static/chunks/{12ud0_l8bk00z.js → 2ftc0soh8as83.js} +1 -1
  53. package/dist/ui/static/_next/static/chunks/2hoqex9nash3z.js +1 -0
  54. package/dist/ui/static/_next/static/chunks/2jwuztc0yn8-r.js +1 -0
  55. package/dist/ui/static/_next/static/chunks/2n5vihmo9elyz.js +1 -0
  56. package/dist/ui/static/_next/static/chunks/2nqtngomjb1bp.js +1 -0
  57. package/dist/ui/static/_next/static/chunks/{0wojcemvzg4nk.js → 2p5u7d3e9qxjb.js} +1 -1
  58. package/dist/ui/static/_next/static/chunks/2risd54y56w4g.js +1 -0
  59. package/dist/ui/static/_next/static/chunks/{3961pv_qwa3xb.js → 2yktsurcwy8z3.js} +1 -1
  60. package/dist/ui/static/_next/static/chunks/38vqzua2lajgi.js +1 -0
  61. package/dist/ui/static/_next/static/chunks/{2czfxmx_ca_k5.js → 3_7r108axban1.js} +1 -1
  62. package/dist/ui/static/_next/static/chunks/{1gy2m1qvi454c.js → 3bz7bn8q5sdkh.js} +1 -1
  63. package/dist/ui/static/_next/static/chunks/3e4qdou22wwph.js +1 -0
  64. package/dist/ui/static/_next/static/chunks/{0b7xat6jxvrmr.js → 3ewz9qliv4_oo.js} +1 -1
  65. package/dist/ui/static/_next/static/chunks/{42pls95xys34g.js → 3f4zrx3l_t7bm.js} +1 -1
  66. package/dist/ui/static/_next/static/chunks/3geyrdwtcet-p.js +1 -0
  67. package/dist/ui/static/_next/static/chunks/3hc9e7_zdh7u0.js +1 -0
  68. package/dist/ui/static/_next/static/chunks/3ms_1t-ouq62a.js +1 -0
  69. package/dist/ui/static/_next/static/chunks/3o7lxivj9_piy.css +3 -0
  70. package/dist/ui/static/_next/static/chunks/{3951w1st9l_ix.css → 3pjmpqtes6x60.css} +25 -13
  71. package/dist/ui/static/_next/static/chunks/{0y3402xorco2c.js → 3r-kxb8gxvjvl.js} +1 -1
  72. package/dist/ui/static/_next/static/chunks/3txhi914s5taw.js +1 -0
  73. package/dist/ui/static/_next/static/chunks/{0ayn-v91zdo92.js → 3z7po2eflk3an.js} +1 -1
  74. package/dist/ui/static/_not-found/__next._full.txt +9 -9
  75. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +8 -8
  76. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  77. package/dist/ui/static/_not-found.html +1 -1
  78. package/dist/ui/static/_not-found.txt +9 -9
  79. package/dist/ui/static/atlassian-connectors/__next._full.txt +13 -13
  80. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  81. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +10 -10
  82. package/dist/ui/static/atlassian-connectors.html +1 -1
  83. package/dist/ui/static/atlassian-connectors.txt +13 -13
  84. package/dist/ui/static/index.html +1 -1
  85. package/dist/ui/static/index.txt +13 -13
  86. package/dist/ui/static/launch/__next._full.txt +13 -13
  87. package/dist/ui/static/launch/__next._tree.txt +2 -2
  88. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +11 -11
  89. package/dist/ui/static/launch.html +1 -1
  90. package/dist/ui/static/launch.txt +13 -13
  91. package/dist/ui/static/local-knowledge/__next._full.txt +13 -13
  92. package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
  93. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +11 -11
  94. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +11 -11
  95. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  96. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +10 -10
  97. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  98. package/dist/ui/static/local-knowledge/capsule.txt +11 -11
  99. package/dist/ui/static/local-knowledge.html +1 -1
  100. package/dist/ui/static/local-knowledge.txt +13 -13
  101. package/node_modules/@chevrotain/cst-dts-gen/LICENSE.txt +202 -0
  102. package/node_modules/@chevrotain/cst-dts-gen/lib/src/api.d.ts +2 -0
  103. package/node_modules/@chevrotain/cst-dts-gen/lib/src/api.js +12 -0
  104. package/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.d.ts +3 -0
  105. package/node_modules/@chevrotain/cst-dts-gen/lib/src/generate.js +65 -0
  106. package/node_modules/@chevrotain/cst-dts-gen/lib/src/model.d.ts +19 -0
  107. package/node_modules/@chevrotain/cst-dts-gen/lib/src/model.js +96 -0
  108. package/node_modules/@chevrotain/cst-dts-gen/package.json +39 -0
  109. package/node_modules/@chevrotain/cst-dts-gen/src/api.ts +22 -0
  110. package/node_modules/@chevrotain/cst-dts-gen/src/generate.ts +98 -0
  111. package/node_modules/@chevrotain/cst-dts-gen/src/model.ts +172 -0
  112. package/node_modules/@chevrotain/gast/LICENSE.txt +202 -0
  113. package/node_modules/@chevrotain/gast/lib/src/api.d.ts +3 -0
  114. package/node_modules/@chevrotain/gast/lib/src/api.js +4 -0
  115. package/node_modules/@chevrotain/gast/lib/src/helpers.d.ts +10 -0
  116. package/node_modules/@chevrotain/gast/lib/src/helpers.js +79 -0
  117. package/node_modules/@chevrotain/gast/lib/src/model.d.ts +144 -0
  118. package/node_modules/@chevrotain/gast/lib/src/model.js +225 -0
  119. package/node_modules/@chevrotain/gast/lib/src/visitor.d.ts +15 -0
  120. package/node_modules/@chevrotain/gast/lib/src/visitor.js +52 -0
  121. package/node_modules/@chevrotain/gast/package.json +38 -0
  122. package/node_modules/@chevrotain/gast/src/api.ts +23 -0
  123. package/node_modules/@chevrotain/gast/src/helpers.ts +98 -0
  124. package/node_modules/@chevrotain/gast/src/model.ts +416 -0
  125. package/node_modules/@chevrotain/gast/src/visitor.ts +76 -0
  126. package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts +1 -1
  127. package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts.map +1 -1
  128. package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.js +5 -10
  129. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
  130. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
  131. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +61 -1
  132. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +7 -0
  133. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
  134. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +9 -1
  135. package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.d.ts.map +1 -1
  136. package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.js +23 -8
  137. package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
  138. package/node_modules/@oscharko-dev/keiko-cli/dist/launcher-paths.d.ts +1 -0
  139. package/node_modules/@oscharko-dev/keiko-cli/dist/launcher-paths.d.ts.map +1 -1
  140. package/node_modules/@oscharko-dev/keiko-cli/dist/launcher-paths.js +1 -1
  141. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-health-activity.d.ts +4 -0
  142. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-health-activity.d.ts.map +1 -0
  143. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-health-activity.js +44 -0
  144. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-native-activity.d.ts +3 -0
  145. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-native-activity.d.ts.map +1 -0
  146. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-native-activity.js +45 -0
  147. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts +2 -0
  148. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
  149. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +251 -49
  150. package/node_modules/@oscharko-dev/keiko-cli/dist/native-ui-channel.d.ts +3 -0
  151. package/node_modules/@oscharko-dev/keiko-cli/dist/native-ui-channel.d.ts.map +1 -0
  152. package/node_modules/@oscharko-dev/keiko-cli/dist/native-ui-channel.js +55 -0
  153. package/node_modules/@oscharko-dev/keiko-cli/dist/native-ui-reap.d.ts +6 -0
  154. package/node_modules/@oscharko-dev/keiko-cli/dist/native-ui-reap.d.ts.map +1 -0
  155. package/node_modules/@oscharko-dev/keiko-cli/dist/native-ui-reap.js +108 -0
  156. package/node_modules/@oscharko-dev/keiko-cli/dist/native-ui-runtime.d.ts +42 -0
  157. package/node_modules/@oscharko-dev/keiko-cli/dist/native-ui-runtime.d.ts.map +1 -0
  158. package/node_modules/@oscharko-dev/keiko-cli/dist/native-ui-runtime.js +198 -0
  159. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.d.ts.map +1 -1
  160. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.js +5 -10
  161. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.d.ts.map +1 -1
  162. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.js +1 -0
  163. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-root-policy.d.ts.map +1 -1
  164. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-root-policy.js +2 -21
  165. package/node_modules/@oscharko-dev/keiko-cli/dist/portable.d.ts.map +1 -1
  166. package/node_modules/@oscharko-dev/keiko-cli/dist/portable.js +4 -0
  167. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
  168. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +21 -1
  169. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +18 -6
  170. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts.map +1 -1
  171. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.js +185 -42
  172. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-lifecycle-guard.d.ts +8 -0
  173. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-lifecycle-guard.d.ts.map +1 -0
  174. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-lifecycle-guard.js +37 -0
  175. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-process-stop.d.ts.map +1 -1
  176. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-process-stop.js +20 -1
  177. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts +3 -0
  178. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts.map +1 -1
  179. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.js +62 -22
  180. package/node_modules/@oscharko-dev/keiko-cli/dist/uninstall.d.ts.map +1 -1
  181. package/node_modules/@oscharko-dev/keiko-cli/dist/uninstall.js +28 -1
  182. package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
  183. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  184. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  185. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  186. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +79 -19
  187. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
  188. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +133 -12
  189. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +652 -21
  190. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
  191. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +725 -2
  192. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +623 -23
  193. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
  194. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +774 -15
  195. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +9 -0
  196. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
  197. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +4 -0
  198. package/node_modules/@oscharko-dev/keiko-contracts/dist/browser-approval.d.ts +105 -0
  199. package/node_modules/@oscharko-dev/keiko-contracts/dist/browser-approval.d.ts.map +1 -0
  200. package/node_modules/@oscharko-dev/keiko-contracts/dist/browser-approval.js +257 -0
  201. package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts +1 -1
  202. package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts.map +1 -1
  203. package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.js +12 -5
  204. package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.d.ts.map +1 -1
  205. package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.js +8 -8
  206. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts +2 -0
  207. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts.map +1 -1
  208. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.js +1 -0
  209. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts +2 -0
  210. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts.map +1 -1
  211. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.js +1 -0
  212. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +24 -4
  213. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
  214. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +91 -1
  215. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +1 -0
  216. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  217. package/node_modules/@oscharko-dev/keiko-contracts/dist/native-runtime-wire.d.ts +34 -0
  218. package/node_modules/@oscharko-dev/keiko-contracts/dist/native-runtime-wire.d.ts.map +1 -0
  219. package/node_modules/@oscharko-dev/keiko-contracts/dist/native-runtime-wire.js +156 -0
  220. package/node_modules/@oscharko-dev/keiko-contracts/dist/ui-launch.d.ts +5 -0
  221. package/node_modules/@oscharko-dev/keiko-contracts/dist/ui-launch.d.ts.map +1 -0
  222. package/node_modules/@oscharko-dev/keiko-contracts/dist/ui-launch.js +6 -0
  223. package/node_modules/@oscharko-dev/keiko-contracts/dist/unified-diff.d.ts +31 -0
  224. package/node_modules/@oscharko-dev/keiko-contracts/dist/unified-diff.d.ts.map +1 -0
  225. package/node_modules/@oscharko-dev/keiko-contracts/dist/unified-diff.js +247 -0
  226. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
  227. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
  228. package/node_modules/@oscharko-dev/keiko-contracts/package.json +13 -1
  229. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  230. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  231. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  232. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  233. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  234. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  235. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  236. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  237. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  238. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  239. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/usearch-ann-index.d.ts.map +1 -1
  240. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/usearch-ann-index.js +66 -17
  241. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/usearch-index-worker.js +87 -52
  242. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/usearch-worker-protocol.d.ts +2 -0
  243. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/usearch-worker-protocol.d.ts.map +1 -1
  244. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  245. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  246. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  247. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  248. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  249. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  250. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  251. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  252. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  253. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  254. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  255. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  256. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  257. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  258. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  259. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  260. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  261. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  262. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
  263. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +57 -54
  264. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  265. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  266. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  267. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  268. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  269. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  270. package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts.map +1 -1
  271. package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.js +42 -25
  272. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +3 -0
  273. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
  274. package/node_modules/@oscharko-dev/keiko-security/dist/index.js +2 -0
  275. package/node_modules/@oscharko-dev/keiko-security/dist/native-process-scope.d.ts +4 -0
  276. package/node_modules/@oscharko-dev/keiko-security/dist/native-process-scope.d.ts.map +1 -0
  277. package/node_modules/@oscharko-dev/keiko-security/dist/native-process-scope.js +159 -0
  278. package/node_modules/@oscharko-dev/keiko-security/dist/portable-root-policy.d.ts +4 -0
  279. package/node_modules/@oscharko-dev/keiko-security/dist/portable-root-policy.d.ts.map +1 -0
  280. package/node_modules/@oscharko-dev/keiko-security/dist/portable-root-policy.js +26 -0
  281. package/node_modules/@oscharko-dev/keiko-security/dist/process-scope-worker.d.ts +15 -0
  282. package/node_modules/@oscharko-dev/keiko-security/dist/process-scope-worker.d.ts.map +1 -0
  283. package/node_modules/@oscharko-dev/keiko-security/dist/process-scope-worker.js +198 -0
  284. package/node_modules/@oscharko-dev/keiko-security/dist/process-scope.d.ts +39 -0
  285. package/node_modules/@oscharko-dev/keiko-security/dist/process-scope.d.ts.map +1 -0
  286. package/node_modules/@oscharko-dev/keiko-security/dist/process-scope.js +141 -0
  287. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-code.d.ts +52 -0
  288. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-code.d.ts.map +1 -0
  289. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-code.js +588 -0
  290. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-diff.d.ts +8 -0
  291. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-diff.d.ts.map +1 -0
  292. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-diff.js +274 -0
  293. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-java.d.ts +8 -0
  294. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-java.d.ts.map +1 -0
  295. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-java.js +313 -0
  296. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-private-key.d.ts +16 -0
  297. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-private-key.d.ts.map +1 -0
  298. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-private-key.js +51 -0
  299. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-source-map.d.ts +13 -0
  300. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-source-map.d.ts.map +1 -0
  301. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-source-map.js +28 -0
  302. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-stream.d.ts +19 -0
  303. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-stream.d.ts.map +1 -0
  304. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-stream.js +132 -0
  305. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-typescript.d.ts +30 -0
  306. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-typescript.d.ts.map +1 -0
  307. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-typescript.js +407 -0
  308. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-yaml.d.ts +19 -0
  309. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-yaml.d.ts.map +1 -0
  310. package/node_modules/@oscharko-dev/keiko-security/dist/redaction-yaml.js +393 -0
  311. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts +8 -0
  312. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
  313. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +169 -37
  314. package/node_modules/@oscharko-dev/keiko-security/dist/sqlite-file-guard.d.ts +4 -0
  315. package/node_modules/@oscharko-dev/keiko-security/dist/sqlite-file-guard.d.ts.map +1 -0
  316. package/node_modules/@oscharko-dev/keiko-security/dist/sqlite-file-guard.js +17 -0
  317. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  318. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  319. package/node_modules/@oscharko-dev/keiko-security/package.json +27 -2
  320. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  321. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +78 -10
  322. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
  323. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +42 -7
  324. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
  325. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +74 -1
  326. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApproval.d.ts +26 -0
  327. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApproval.d.ts.map +1 -0
  328. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApproval.js +319 -0
  329. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApprovalRoutes.d.ts +3 -0
  330. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApprovalRoutes.d.ts.map +1 -0
  331. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApprovalRoutes.js +168 -0
  332. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts +1 -1
  333. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts.map +1 -1
  334. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.js +5 -4
  335. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/launcherSessionPairingPort.d.ts.map +1 -1
  336. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/launcherSessionPairingPort.js +7 -1
  337. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts +4 -0
  338. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
  339. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +22 -9
  340. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts +15 -0
  341. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts.map +1 -1
  342. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.js +162 -23
  343. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.d.ts +3 -10
  344. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.d.ts.map +1 -1
  345. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.js +6 -77
  346. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionPortableCodingRuntime.d.ts +2 -0
  347. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionPortableCodingRuntime.d.ts.map +1 -1
  348. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionPortableCodingRuntime.js +47 -7
  349. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadPortable.d.ts.map +1 -1
  350. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadPortable.js +15 -12
  351. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  352. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +8 -1
  353. package/node_modules/@oscharko-dev/keiko-server/dist/files.js +1 -1
  354. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts.map +1 -1
  355. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.js +15 -10
  356. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -1
  357. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +4 -0
  358. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts +4 -0
  359. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts.map +1 -1
  360. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.js +99 -8
  361. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts +1 -0
  362. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts.map +1 -1
  363. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.js +5 -0
  364. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts.map +1 -1
  365. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.js +10 -3
  366. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +5 -0
  367. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
  368. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +111 -18
  369. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-redactor.d.ts +4 -0
  370. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-redactor.d.ts.map +1 -0
  371. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-redactor.js +22 -0
  372. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
  373. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +8 -5
  374. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts.map +1 -1
  375. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.js +180 -71
  376. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-store-open.d.ts.map +1 -1
  377. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-store-open.js +1 -0
  378. package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -1
  379. package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +3 -0
  380. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/reviewStore.d.ts.map +1 -1
  381. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/reviewStore.js +4 -9
  382. package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
  383. package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +6 -1
  384. package/node_modules/@oscharko-dev/keiko-server/dist/store/browserApprovals.d.ts +21 -0
  385. package/node_modules/@oscharko-dev/keiko-server/dist/store/browserApprovals.d.ts.map +1 -0
  386. package/node_modules/@oscharko-dev/keiko-server/dist/store/browserApprovals.js +77 -0
  387. package/node_modules/@oscharko-dev/keiko-server/dist/store/chatCreationIntents.d.ts +8 -0
  388. package/node_modules/@oscharko-dev/keiko-server/dist/store/chatCreationIntents.d.ts.map +1 -0
  389. package/node_modules/@oscharko-dev/keiko-server/dist/store/chatCreationIntents.js +118 -0
  390. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
  391. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +50 -16
  392. package/node_modules/@oscharko-dev/keiko-server/dist/store/errors.d.ts +2 -1
  393. package/node_modules/@oscharko-dev/keiko-server/dist/store/errors.d.ts.map +1 -1
  394. package/node_modules/@oscharko-dev/keiko-server/dist/store/errors.js +3 -0
  395. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.d.ts.map +1 -1
  396. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +3 -1
  397. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts.map +1 -1
  398. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.js +2 -1
  399. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
  400. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
  401. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +26 -1
  402. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +14 -1
  403. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
  404. package/node_modules/@oscharko-dev/keiko-server/dist/store/workspaceManifests.d.ts.map +1 -1
  405. package/node_modules/@oscharko-dev/keiko-server/dist/store/workspaceManifests.js +10 -2
  406. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +1 -1
  407. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts.map +1 -1
  408. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.js +31 -7
  409. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.js +2 -0
  410. package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.d.ts +2 -2
  411. package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.d.ts.map +1 -1
  412. package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.js +207 -61
  413. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control-stream.d.ts +20 -0
  414. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control-stream.d.ts.map +1 -0
  415. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control-stream.js +144 -0
  416. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control.d.ts +33 -0
  417. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control.d.ts.map +1 -0
  418. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control.js +160 -0
  419. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-handoff-activity.d.ts +6 -0
  420. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-handoff-activity.d.ts.map +1 -0
  421. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-handoff-activity.js +41 -0
  422. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts +2 -0
  423. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts.map +1 -1
  424. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.js +26 -14
  425. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-plan.d.ts.map +1 -1
  426. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-plan.js +14 -2
  427. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-production.d.ts.map +1 -1
  428. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-production.js +3 -1
  429. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-receipts.js +1 -1
  430. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-recovery.d.ts.map +1 -1
  431. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-recovery.js +3 -2
  432. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-tree.js +1 -1
  433. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff.d.ts +4 -0
  434. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff.d.ts.map +1 -1
  435. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff.js +89 -21
  436. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-install-mode.d.ts.map +1 -1
  437. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-install-mode.js +34 -24
  438. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-normal-startup.d.ts.map +1 -1
  439. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-normal-startup.js +4 -9
  440. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-windows-generation.d.ts +1 -1
  441. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-windows-generation.d.ts.map +1 -1
  442. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-windows-generation.js +11 -0
  443. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.d.ts +2 -1
  444. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.d.ts.map +1 -1
  445. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.js +93 -3
  446. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts.map +1 -1
  447. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.js +3 -0
  448. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation-drafts.d.ts +0 -1
  449. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation-drafts.d.ts.map +1 -1
  450. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation-drafts.js +0 -15
  451. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation.d.ts.map +1 -1
  452. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation.js +69 -38
  453. package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.d.ts +8 -0
  454. package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.d.ts.map +1 -1
  455. package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.js +65 -0
  456. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-lock.d.ts +1 -0
  457. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-lock.d.ts.map +1 -1
  458. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-lock.js +7 -11
  459. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-routes.d.ts +1 -1
  460. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-routes.d.ts.map +1 -1
  461. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-routes.js +6 -2
  462. package/node_modules/@oscharko-dev/keiko-server/dist/update-session.d.ts.map +1 -1
  463. package/node_modules/@oscharko-dev/keiko-server/dist/update-session.js +3 -2
  464. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts +1 -1
  465. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts.map +1 -1
  466. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.js +1 -0
  467. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-identity.d.ts +7 -0
  468. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-identity.d.ts.map +1 -1
  469. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-identity.js +40 -0
  470. package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
  471. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  472. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.d.ts +1 -8
  473. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.d.ts.map +1 -1
  474. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.js +1 -212
  475. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  476. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  477. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  478. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  479. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts.map +1 -1
  480. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.js +9 -0
  481. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts +1 -1
  482. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts.map +1 -1
  483. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.js +3 -199
  484. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts.map +1 -1
  485. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.js +3 -10
  486. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts.map +1 -1
  487. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.js +3 -2
  488. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  489. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts +2 -0
  490. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts.map +1 -1
  491. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.js +4 -0
  492. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
  493. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +6 -4
  494. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.d.ts.map +1 -1
  495. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.js +2 -4
  496. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +4 -1
  497. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
  498. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +4 -1
  499. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +2 -0
  500. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
  501. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +9 -5
  502. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchCachedLexical.d.ts.map +1 -1
  503. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchCachedLexical.js +4 -0
  504. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts +1 -1
  505. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts.map +1 -1
  506. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.js +99 -3
  507. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts +1 -0
  508. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
  509. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +7 -3
  510. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +2 -0
  511. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
  512. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +20 -3
  513. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPresentation.d.ts +7 -0
  514. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPresentation.d.ts.map +1 -0
  515. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPresentation.js +175 -0
  516. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryPaths.d.ts +3 -0
  517. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryPaths.d.ts.map +1 -0
  518. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryPaths.js +31 -0
  519. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts +1 -0
  520. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts.map +1 -1
  521. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.js +8 -3
  522. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRanking.d.ts.map +1 -1
  523. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRanking.js +15 -2
  524. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts +2 -0
  525. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
  526. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +26 -13
  527. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceDescriptors.d.ts +7 -0
  528. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceDescriptors.d.ts.map +1 -0
  529. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceDescriptors.js +137 -0
  530. package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts +3 -0
  531. package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts.map +1 -0
  532. package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.js +36 -0
  533. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  534. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  535. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts +1 -1
  536. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts.map +1 -1
  537. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.js +2 -2
  538. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts.map +1 -1
  539. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.js +7 -1
  540. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts +10 -3
  541. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts.map +1 -1
  542. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.js +29 -3
  543. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  544. package/node_modules/chevrotain/BREAKING_CHANGES.md +1 -0
  545. package/node_modules/chevrotain/CHANGELOG.md +1 -0
  546. package/node_modules/chevrotain/LICENSE.txt +202 -0
  547. package/node_modules/chevrotain/README.md +20 -0
  548. package/node_modules/chevrotain/chevrotain.d.ts +2 -0
  549. package/node_modules/chevrotain/diagrams/README.md +1 -0
  550. package/node_modules/chevrotain/diagrams/diagrams.css +85 -0
  551. package/node_modules/chevrotain/diagrams/src/diagrams_behavior.js +223 -0
  552. package/node_modules/chevrotain/diagrams/src/diagrams_builder.js +204 -0
  553. package/node_modules/chevrotain/diagrams/src/diagrams_serializer.js +20 -0
  554. package/node_modules/chevrotain/diagrams/src/main.js +30 -0
  555. package/node_modules/chevrotain/diagrams/vendor/railroad-diagrams.js +968 -0
  556. package/node_modules/chevrotain/lib/chevrotain.min.mjs +165 -0
  557. package/node_modules/chevrotain/lib/chevrotain.mjs +9554 -0
  558. package/node_modules/chevrotain/lib/src/api.js +33 -0
  559. package/node_modules/chevrotain/lib/src/diagrams/render_public.js +39 -0
  560. package/node_modules/chevrotain/lib/src/lang/lang_extensions.js +10 -0
  561. package/node_modules/chevrotain/lib/src/parse/constants.js +3 -0
  562. package/node_modules/chevrotain/lib/src/parse/cst/cst.js +71 -0
  563. package/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +90 -0
  564. package/node_modules/chevrotain/lib/src/parse/errors_public.js +175 -0
  565. package/node_modules/chevrotain/lib/src/parse/exceptions_public.js +58 -0
  566. package/node_modules/chevrotain/lib/src/parse/grammar/checks.js +435 -0
  567. package/node_modules/chevrotain/lib/src/parse/grammar/first.js +56 -0
  568. package/node_modules/chevrotain/lib/src/parse/grammar/follow.js +45 -0
  569. package/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +21 -0
  570. package/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +492 -0
  571. package/node_modules/chevrotain/lib/src/parse/grammar/keys.js +26 -0
  572. package/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +47 -0
  573. package/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +471 -0
  574. package/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +38 -0
  575. package/node_modules/chevrotain/lib/src/parse/grammar/rest.js +103 -0
  576. package/node_modules/chevrotain/lib/src/parse/grammar/types.js +2 -0
  577. package/node_modules/chevrotain/lib/src/parse/parser/parser.js +201 -0
  578. package/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +22 -0
  579. package/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +74 -0
  580. package/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +295 -0
  581. package/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +70 -0
  582. package/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +134 -0
  583. package/node_modules/chevrotain/lib/src/parse/parser/traits/parser_traits.js +4 -0
  584. package/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +48 -0
  585. package/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +334 -0
  586. package/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +542 -0
  587. package/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +290 -0
  588. package/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +191 -0
  589. package/node_modules/chevrotain/lib/src/parse/parser/types.js +2 -0
  590. package/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +20 -0
  591. package/node_modules/chevrotain/lib/src/scan/lexer.js +875 -0
  592. package/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +9 -0
  593. package/node_modules/chevrotain/lib/src/scan/lexer_public.js +646 -0
  594. package/node_modules/chevrotain/lib/src/scan/reg_exp.js +240 -0
  595. package/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +18 -0
  596. package/node_modules/chevrotain/lib/src/scan/tokens.js +114 -0
  597. package/node_modules/chevrotain/lib/src/scan/tokens_constants.js +2 -0
  598. package/node_modules/chevrotain/lib/src/scan/tokens_public.js +87 -0
  599. package/node_modules/chevrotain/lib/src/text/range.js +28 -0
  600. package/node_modules/chevrotain/lib/src/version.js +5 -0
  601. package/node_modules/chevrotain/package.json +60 -0
  602. package/node_modules/chevrotain/src/api.ts +87 -0
  603. package/node_modules/chevrotain/src/diagrams/render_public.ts +53 -0
  604. package/node_modules/chevrotain/src/lang/lang_extensions.ts +10 -0
  605. package/node_modules/chevrotain/src/parse/constants.ts +2 -0
  606. package/node_modules/chevrotain/src/parse/cst/cst.ts +87 -0
  607. package/node_modules/chevrotain/src/parse/cst/cst_visitor.ts +153 -0
  608. package/node_modules/chevrotain/src/parse/errors_public.ts +325 -0
  609. package/node_modules/chevrotain/src/parse/exceptions_public.ts +89 -0
  610. package/node_modules/chevrotain/src/parse/grammar/checks.ts +712 -0
  611. package/node_modules/chevrotain/src/parse/grammar/first.ts +70 -0
  612. package/node_modules/chevrotain/src/parse/grammar/follow.ts +67 -0
  613. package/node_modules/chevrotain/src/parse/grammar/gast/gast_resolver_public.ts +50 -0
  614. package/node_modules/chevrotain/src/parse/grammar/interpreter.ts +623 -0
  615. package/node_modules/chevrotain/src/parse/grammar/keys.ts +33 -0
  616. package/node_modules/chevrotain/src/parse/grammar/llk_lookahead.ts +139 -0
  617. package/node_modules/chevrotain/src/parse/grammar/lookahead.ts +739 -0
  618. package/node_modules/chevrotain/src/parse/grammar/resolver.ts +57 -0
  619. package/node_modules/chevrotain/src/parse/grammar/rest.ts +163 -0
  620. package/node_modules/chevrotain/src/parse/grammar/types.ts +97 -0
  621. package/node_modules/chevrotain/src/parse/parser/parser.ts +318 -0
  622. package/node_modules/chevrotain/src/parse/parser/traits/context_assist.ts +51 -0
  623. package/node_modules/chevrotain/src/parse/parser/traits/error_handler.ts +124 -0
  624. package/node_modules/chevrotain/src/parse/parser/traits/gast_recorder.ts +456 -0
  625. package/node_modules/chevrotain/src/parse/parser/traits/lexer_adapter.ts +86 -0
  626. package/node_modules/chevrotain/src/parse/parser/traits/looksahead.ts +269 -0
  627. package/node_modules/chevrotain/src/parse/parser/traits/parser_traits.ts +58 -0
  628. package/node_modules/chevrotain/src/parse/parser/traits/perf_tracer.ts +54 -0
  629. package/node_modules/chevrotain/src/parse/parser/traits/recognizer_api.ts +719 -0
  630. package/node_modules/chevrotain/src/parse/parser/traits/recognizer_engine.ts +867 -0
  631. package/node_modules/chevrotain/src/parse/parser/traits/recoverable.ts +473 -0
  632. package/node_modules/chevrotain/src/parse/parser/traits/tree_builder.ts +275 -0
  633. package/node_modules/chevrotain/src/parse/parser/types.ts +16 -0
  634. package/node_modules/chevrotain/src/parse/parser/utils/apply_mixins.ts +28 -0
  635. package/node_modules/chevrotain/src/scan/lexer.ts +1175 -0
  636. package/node_modules/chevrotain/src/scan/lexer_errors_public.ts +21 -0
  637. package/node_modules/chevrotain/src/scan/lexer_public.ts +972 -0
  638. package/node_modules/chevrotain/src/scan/reg_exp.ts +315 -0
  639. package/node_modules/chevrotain/src/scan/reg_exp_parser.ts +34 -0
  640. package/node_modules/chevrotain/src/scan/tokens.ts +167 -0
  641. package/node_modules/chevrotain/src/scan/tokens_constants.ts +1 -0
  642. package/node_modules/chevrotain/src/scan/tokens_public.ts +121 -0
  643. package/node_modules/chevrotain/src/text/range.ts +49 -0
  644. package/node_modules/chevrotain/src/version.ts +4 -0
  645. package/node_modules/chevrotain-allstar/LICENSE +16 -0
  646. package/node_modules/chevrotain-allstar/README.md +22 -0
  647. package/node_modules/chevrotain-allstar/lib/all-star-lookahead.d.ts +36 -0
  648. package/node_modules/chevrotain-allstar/lib/all-star-lookahead.d.ts.map +1 -0
  649. package/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +556 -0
  650. package/node_modules/chevrotain-allstar/lib/atn.d.ts +105 -0
  651. package/node_modules/chevrotain-allstar/lib/atn.d.ts.map +1 -0
  652. package/node_modules/chevrotain-allstar/lib/atn.js +404 -0
  653. package/node_modules/chevrotain-allstar/lib/dfa.d.ts +37 -0
  654. package/node_modules/chevrotain-allstar/lib/dfa.d.ts.map +1 -0
  655. package/node_modules/chevrotain-allstar/lib/dfa.js +46 -0
  656. package/node_modules/chevrotain-allstar/lib/index.d.ts +7 -0
  657. package/node_modules/chevrotain-allstar/lib/index.d.ts.map +1 -0
  658. package/node_modules/chevrotain-allstar/lib/index.js +7 -0
  659. package/node_modules/chevrotain-allstar/package.json +37 -0
  660. package/node_modules/chevrotain-allstar/src/all-star-lookahead.ts +763 -0
  661. package/node_modules/chevrotain-allstar/src/atn.ts +642 -0
  662. package/node_modules/chevrotain-allstar/src/dfa.ts +78 -0
  663. package/node_modules/chevrotain-allstar/src/index.ts +11 -0
  664. package/node_modules/java-parser/LICENSE +204 -0
  665. package/node_modules/java-parser/README.md +78 -0
  666. package/node_modules/java-parser/api.d.ts +3683 -0
  667. package/node_modules/java-parser/package.json +21 -0
  668. package/node_modules/java-parser/src/index.js +60 -0
  669. package/node_modules/java-parser/src/lexer.js +8 -0
  670. package/node_modules/java-parser/src/parser.js +115 -0
  671. package/node_modules/java-parser/src/productions/arrays.js +28 -0
  672. package/node_modules/java-parser/src/productions/blocks-and-statements.js +503 -0
  673. package/node_modules/java-parser/src/productions/classes.js +733 -0
  674. package/node_modules/java-parser/src/productions/expressions.js +662 -0
  675. package/node_modules/java-parser/src/productions/interfaces.js +266 -0
  676. package/node_modules/java-parser/src/productions/lexical-structure.js +61 -0
  677. package/node_modules/java-parser/src/productions/names.js +81 -0
  678. package/node_modules/java-parser/src/productions/packages-and-modules.js +226 -0
  679. package/node_modules/java-parser/src/productions/types-values-and-variables.js +218 -0
  680. package/node_modules/java-parser/src/tokens.js +595 -0
  681. package/node_modules/java-parser/src/unicodesets.js +1001 -0
  682. package/node_modules/java-parser/src/utils.js +15 -0
  683. package/package.json +51 -31
  684. package/release-impact.catalog.json +73 -0
  685. package/vendor/oscharko-dev-keiko-activity-log-1.2.5.tgz +0 -0
  686. package/vendor/oscharko-dev-keiko-cli-1.2.5.tgz +0 -0
  687. package/vendor/{oscharko-dev-keiko-connectors-1.2.4.tgz → oscharko-dev-keiko-connectors-1.2.5.tgz} +0 -0
  688. package/vendor/oscharko-dev-keiko-contracts-1.2.5.tgz +0 -0
  689. package/vendor/{oscharko-dev-keiko-evaluations-1.2.4.tgz → oscharko-dev-keiko-evaluations-1.2.5.tgz} +0 -0
  690. package/vendor/{oscharko-dev-keiko-evidence-1.2.4.tgz → oscharko-dev-keiko-evidence-1.2.5.tgz} +0 -0
  691. package/vendor/{oscharko-dev-keiko-git-1.2.4.tgz → oscharko-dev-keiko-git-1.2.5.tgz} +0 -0
  692. package/vendor/{oscharko-dev-keiko-harness-1.2.4.tgz → oscharko-dev-keiko-harness-1.2.5.tgz} +0 -0
  693. package/vendor/{oscharko-dev-keiko-local-knowledge-1.2.4.tgz → oscharko-dev-keiko-local-knowledge-1.2.5.tgz} +0 -0
  694. package/vendor/{oscharko-dev-keiko-memory-capture-1.2.4.tgz → oscharko-dev-keiko-memory-capture-1.2.5.tgz} +0 -0
  695. package/vendor/{oscharko-dev-keiko-memory-consolidation-1.2.4.tgz → oscharko-dev-keiko-memory-consolidation-1.2.5.tgz} +0 -0
  696. package/vendor/{oscharko-dev-keiko-memory-governance-1.2.4.tgz → oscharko-dev-keiko-memory-governance-1.2.5.tgz} +0 -0
  697. package/vendor/{oscharko-dev-keiko-memory-retrieval-1.2.4.tgz → oscharko-dev-keiko-memory-retrieval-1.2.5.tgz} +0 -0
  698. package/vendor/{oscharko-dev-keiko-memory-vault-1.2.4.tgz → oscharko-dev-keiko-memory-vault-1.2.5.tgz} +0 -0
  699. package/vendor/oscharko-dev-keiko-model-gateway-1.2.5.tgz +0 -0
  700. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.4.tgz → oscharko-dev-keiko-quality-intelligence-1.2.5.tgz} +0 -0
  701. package/vendor/{oscharko-dev-keiko-sandbox-1.2.4.tgz → oscharko-dev-keiko-sandbox-1.2.5.tgz} +0 -0
  702. package/vendor/oscharko-dev-keiko-sdk-1.2.5.tgz +0 -0
  703. package/vendor/oscharko-dev-keiko-security-1.2.5.tgz +0 -0
  704. package/vendor/oscharko-dev-keiko-server-1.2.5.tgz +0 -0
  705. package/vendor/{oscharko-dev-keiko-tool-catalog-1.2.4.tgz → oscharko-dev-keiko-tool-catalog-1.2.5.tgz} +0 -0
  706. package/vendor/{oscharko-dev-keiko-tools-1.2.4.tgz → oscharko-dev-keiko-tools-1.2.5.tgz} +0 -0
  707. package/vendor/{oscharko-dev-keiko-verification-1.2.4.tgz → oscharko-dev-keiko-verification-1.2.5.tgz} +0 -0
  708. package/vendor/oscharko-dev-keiko-workflows-1.2.5.tgz +0 -0
  709. package/vendor/oscharko-dev-keiko-workspace-1.2.5.tgz +0 -0
  710. package/vendor/runtime-22d6a685bfacde624a698cae-3.0.1.tgz +0 -0
  711. package/vendor/runtime-583da64f44b6efabb742951f-11.0.3.tgz +0 -0
  712. package/vendor/runtime-8dfa23afd9af4bbf8a63b1f6-0.3.1.tgz +0 -0
  713. package/vendor/runtime-988dc6c7589b144bea3431ff-11.0.3.tgz +0 -0
  714. package/vendor/runtime-cdb56cd0389cee2407f02ebe-11.0.3.tgz +0 -0
  715. package/dist/ui/static/_next/static/chunks/00_o0v2hokzqm.js +0 -1
  716. package/dist/ui/static/_next/static/chunks/02bjsbh-9ecdm.js +0 -1
  717. package/dist/ui/static/_next/static/chunks/08tg5xjyy073b.js +0 -1
  718. package/dist/ui/static/_next/static/chunks/0bdxksp1lm2a5.js +0 -1
  719. package/dist/ui/static/_next/static/chunks/0n-psjjwvzg-y.js +0 -1
  720. package/dist/ui/static/_next/static/chunks/0ry6tlbur8za2.js +0 -1
  721. package/dist/ui/static/_next/static/chunks/0t86l4mcivsdr.js +0 -1
  722. package/dist/ui/static/_next/static/chunks/0vmq9d1ffbg71.js +0 -1
  723. package/dist/ui/static/_next/static/chunks/0w4i9kmhas6-y.js +0 -1
  724. package/dist/ui/static/_next/static/chunks/0xu2rnpdr4kzd.js +0 -1
  725. package/dist/ui/static/_next/static/chunks/12u-0ugq__zxv.js +0 -1
  726. package/dist/ui/static/_next/static/chunks/14ytv6jraivph.js +0 -1
  727. package/dist/ui/static/_next/static/chunks/18idxjg523mhp.js +0 -1
  728. package/dist/ui/static/_next/static/chunks/1dlqcgl3v1lh5.js +0 -1
  729. package/dist/ui/static/_next/static/chunks/21cazq_lp5oc5.js +0 -3
  730. package/dist/ui/static/_next/static/chunks/23p0wg8gdznqm.js +0 -1
  731. package/dist/ui/static/_next/static/chunks/25x9hf4wdlde7.js +0 -1
  732. package/dist/ui/static/_next/static/chunks/27e2u3lrksak4.js +0 -1
  733. package/dist/ui/static/_next/static/chunks/2fqo-2fl7ca59.js +0 -1
  734. package/dist/ui/static/_next/static/chunks/2g_pljoa8f0e-.js +0 -1
  735. package/dist/ui/static/_next/static/chunks/2jsnrkl0syr4y.js +0 -1
  736. package/dist/ui/static/_next/static/chunks/2ov72plu69iiv.js +0 -1
  737. package/dist/ui/static/_next/static/chunks/2z5c2glupanq_.js +0 -1
  738. package/dist/ui/static/_next/static/chunks/3-7tka4cib69h.js +0 -1
  739. package/dist/ui/static/_next/static/chunks/32r3kzj8vl9xl.css +0 -12
  740. package/dist/ui/static/_next/static/chunks/35r_4m36s2mm5.js +0 -1
  741. package/dist/ui/static/_next/static/chunks/39xl_71ucgzrs.js +0 -1
  742. package/dist/ui/static/_next/static/chunks/3b05n-007vc3e.js +0 -1
  743. package/dist/ui/static/_next/static/chunks/3bafzdsn1osq1.js +0 -1
  744. package/dist/ui/static/_next/static/chunks/3lf8dguq57yfu.js +0 -1
  745. package/dist/ui/static/_next/static/chunks/3lq95b69wn18x.js +0 -1
  746. package/dist/ui/static/_next/static/chunks/3p_yaeocah7k8.js +0 -1
  747. package/dist/ui/static/_next/static/chunks/3rhep1yhgo6a7.js +0 -1
  748. package/dist/ui/static/_next/static/chunks/41t1if3rqvyu-.js +0 -3
  749. package/vendor/oscharko-dev-keiko-activity-log-1.2.4.tgz +0 -0
  750. package/vendor/oscharko-dev-keiko-cli-1.2.4.tgz +0 -0
  751. package/vendor/oscharko-dev-keiko-contracts-1.2.4.tgz +0 -0
  752. package/vendor/oscharko-dev-keiko-model-gateway-1.2.4.tgz +0 -0
  753. package/vendor/oscharko-dev-keiko-sdk-1.2.4.tgz +0 -0
  754. package/vendor/oscharko-dev-keiko-security-1.2.4.tgz +0 -0
  755. package/vendor/oscharko-dev-keiko-server-1.2.4.tgz +0 -0
  756. package/vendor/oscharko-dev-keiko-workflows-1.2.4.tgz +0 -0
  757. package/vendor/oscharko-dev-keiko-workspace-1.2.4.tgz +0 -0
  758. /package/dist/ui/static/_next/static/{i1pRTTqyOTQStJLPAXgGm → l5EA3GWm62ENm-jfs3AEY}/_buildManifest.js +0 -0
  759. /package/dist/ui/static/_next/static/{i1pRTTqyOTQStJLPAXgGm → l5EA3GWm62ENm-jfs3AEY}/_clientMiddlewareManifest.js +0 -0
  760. /package/dist/ui/static/_next/static/{i1pRTTqyOTQStJLPAXgGm → l5EA3GWm62ENm-jfs3AEY}/_ssgManifest.js +0 -0
@@ -0,0 +1,1175 @@
1
+ import { BaseRegExpVisitor } from "@chevrotain/regexp-to-ast";
2
+ import {
3
+ IRegExpExec,
4
+ Lexer,
5
+ LexerDefinitionErrorType,
6
+ } from "./lexer_public.js";
7
+ import {
8
+ compact,
9
+ defaults,
10
+ difference,
11
+ filter,
12
+ find,
13
+ first,
14
+ flatten,
15
+ forEach,
16
+ has,
17
+ includes,
18
+ indexOf,
19
+ isArray,
20
+ isEmpty,
21
+ isFunction,
22
+ isRegExp,
23
+ isString,
24
+ isUndefined,
25
+ keys,
26
+ map,
27
+ reduce,
28
+ reject,
29
+ values,
30
+ } from "lodash-es";
31
+ import { PRINT_ERROR } from "@chevrotain/utils";
32
+ import {
33
+ canMatchCharCode,
34
+ failedOptimizationPrefixMsg,
35
+ getOptimizedStartCodesIndices,
36
+ } from "./reg_exp.js";
37
+ import {
38
+ ILexerDefinitionError,
39
+ ILineTerminatorsTester,
40
+ IMultiModeLexerDefinition,
41
+ IToken,
42
+ TokenType,
43
+ } from "@chevrotain/types";
44
+ import { getRegExpAst } from "./reg_exp_parser.js";
45
+
46
+ const PATTERN = "PATTERN";
47
+ export const DEFAULT_MODE = "defaultMode";
48
+ export const MODES = "modes";
49
+
50
+ export interface IPatternConfig {
51
+ pattern: IRegExpExec | string;
52
+ longerAlt: number[] | undefined;
53
+ canLineTerminator: boolean;
54
+ isCustom: boolean;
55
+ short: number | false;
56
+ group: string | undefined | false;
57
+ push: string | undefined;
58
+ pop: boolean;
59
+ tokenType: TokenType;
60
+ tokenTypeIdx: number;
61
+ }
62
+
63
+ export interface IAnalyzeResult {
64
+ patternIdxToConfig: IPatternConfig[];
65
+ charCodeToPatternIdxToConfig: { [charCode: number]: IPatternConfig[] };
66
+ emptyGroups: { [groupName: string]: IToken[] };
67
+ hasCustom: boolean;
68
+ canBeOptimized: boolean;
69
+ }
70
+
71
+ export let SUPPORT_STICKY =
72
+ typeof (<any>new RegExp("(?:)")).sticky === "boolean";
73
+
74
+ export function disableSticky() {
75
+ SUPPORT_STICKY = false;
76
+ }
77
+
78
+ export function enableSticky() {
79
+ SUPPORT_STICKY = true;
80
+ }
81
+
82
+ export function analyzeTokenTypes(
83
+ tokenTypes: TokenType[],
84
+ options: {
85
+ positionTracking?: "full" | "onlyStart" | "onlyOffset";
86
+ ensureOptimizations?: boolean;
87
+ lineTerminatorCharacters?: (number | string)[];
88
+ // TODO: should `useSticky` be an argument here?
89
+ useSticky?: boolean;
90
+ safeMode?: boolean;
91
+ tracer?: (msg: string, action: () => void) => void;
92
+ },
93
+ ): IAnalyzeResult {
94
+ options = defaults(options, {
95
+ useSticky: SUPPORT_STICKY,
96
+ debug: false as boolean,
97
+ safeMode: false as boolean,
98
+ positionTracking: "full",
99
+ lineTerminatorCharacters: ["\r", "\n"],
100
+ tracer: (msg: string, action: Function) => action(),
101
+ });
102
+
103
+ const tracer = options.tracer!;
104
+
105
+ tracer("initCharCodeToOptimizedIndexMap", () => {
106
+ initCharCodeToOptimizedIndexMap();
107
+ });
108
+
109
+ let onlyRelevantTypes: TokenType[];
110
+ tracer("Reject Lexer.NA", () => {
111
+ onlyRelevantTypes = reject(tokenTypes, (currType) => {
112
+ return currType[PATTERN] === Lexer.NA;
113
+ });
114
+ });
115
+
116
+ let hasCustom = false;
117
+ let allTransformedPatterns: (IRegExpExec | string)[];
118
+ tracer("Transform Patterns", () => {
119
+ hasCustom = false;
120
+ allTransformedPatterns = map(
121
+ onlyRelevantTypes,
122
+ (currType): IRegExpExec | string => {
123
+ const currPattern = currType[PATTERN];
124
+
125
+ /* istanbul ignore else */
126
+ if (isRegExp(currPattern)) {
127
+ const regExpSource = currPattern.source;
128
+ if (
129
+ regExpSource.length === 1 &&
130
+ // only these regExp meta characters which can appear in a length one regExp
131
+ regExpSource !== "^" &&
132
+ regExpSource !== "$" &&
133
+ regExpSource !== "." &&
134
+ !currPattern.ignoreCase
135
+ ) {
136
+ return regExpSource;
137
+ } else if (
138
+ regExpSource.length === 2 &&
139
+ regExpSource[0] === "\\" &&
140
+ // not a meta character
141
+ !includes(
142
+ [
143
+ "d",
144
+ "D",
145
+ "s",
146
+ "S",
147
+ "t",
148
+ "r",
149
+ "n",
150
+ "t",
151
+ "0",
152
+ "c",
153
+ "b",
154
+ "B",
155
+ "f",
156
+ "v",
157
+ "w",
158
+ "W",
159
+ ],
160
+ regExpSource[1],
161
+ )
162
+ ) {
163
+ // escaped meta Characters: /\+/ /\[/
164
+ // or redundant escaping: /\a/
165
+ // without the escaping "\"
166
+ return regExpSource[1];
167
+ } else {
168
+ return options.useSticky
169
+ ? addStickyFlag(currPattern)
170
+ : addStartOfInput(currPattern);
171
+ }
172
+ } else if (isFunction(currPattern)) {
173
+ hasCustom = true;
174
+ // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object
175
+ return { exec: currPattern };
176
+ } else if (typeof currPattern === "object") {
177
+ hasCustom = true;
178
+ // ICustomPattern
179
+ return currPattern;
180
+ } else if (typeof currPattern === "string") {
181
+ if (currPattern.length === 1) {
182
+ return currPattern;
183
+ } else {
184
+ const escapedRegExpString = currPattern.replace(
185
+ /[\\^$.*+?()[\]{}|]/g,
186
+ "\\$&",
187
+ );
188
+ const wrappedRegExp = new RegExp(escapedRegExpString);
189
+ return options.useSticky
190
+ ? addStickyFlag(wrappedRegExp)
191
+ : addStartOfInput(wrappedRegExp);
192
+ }
193
+ } else {
194
+ throw Error("non exhaustive match");
195
+ }
196
+ },
197
+ );
198
+ });
199
+
200
+ let patternIdxToType: number[];
201
+ let patternIdxToGroup: (string | undefined | false)[];
202
+ let patternIdxToLongerAltIdxArr: (number[] | undefined)[];
203
+ let patternIdxToPushMode: (string | undefined)[];
204
+ let patternIdxToPopMode: boolean[];
205
+ tracer("misc mapping", () => {
206
+ patternIdxToType = map(
207
+ onlyRelevantTypes,
208
+ (currType) => currType.tokenTypeIdx!,
209
+ );
210
+
211
+ patternIdxToGroup = map(onlyRelevantTypes, (clazz: any) => {
212
+ const groupName = clazz.GROUP;
213
+ /* istanbul ignore next */
214
+ if (groupName === Lexer.SKIPPED) {
215
+ return undefined;
216
+ } else if (isString(groupName)) {
217
+ return groupName;
218
+ } else if (isUndefined(groupName)) {
219
+ return false;
220
+ } else {
221
+ throw Error("non exhaustive match");
222
+ }
223
+ });
224
+
225
+ patternIdxToLongerAltIdxArr = map(onlyRelevantTypes, (clazz: any) => {
226
+ const longerAltType = clazz.LONGER_ALT;
227
+
228
+ if (longerAltType) {
229
+ const longerAltIdxArr = isArray(longerAltType)
230
+ ? map(longerAltType, (type: any) => indexOf(onlyRelevantTypes, type))
231
+ : [indexOf(onlyRelevantTypes, longerAltType)];
232
+ return longerAltIdxArr;
233
+ }
234
+ });
235
+
236
+ patternIdxToPushMode = map(
237
+ onlyRelevantTypes,
238
+ (clazz: any) => clazz.PUSH_MODE,
239
+ );
240
+
241
+ patternIdxToPopMode = map(onlyRelevantTypes, (clazz: any) =>
242
+ has(clazz, "POP_MODE"),
243
+ );
244
+ });
245
+
246
+ let patternIdxToCanLineTerminator: boolean[];
247
+ tracer("Line Terminator Handling", () => {
248
+ const lineTerminatorCharCodes = getCharCodes(
249
+ options.lineTerminatorCharacters!,
250
+ );
251
+ patternIdxToCanLineTerminator = map(onlyRelevantTypes, (tokType) => false);
252
+ if (options.positionTracking !== "onlyOffset") {
253
+ patternIdxToCanLineTerminator = map(onlyRelevantTypes, (tokType) => {
254
+ if (has(tokType, "LINE_BREAKS")) {
255
+ return !!tokType.LINE_BREAKS;
256
+ } else {
257
+ return (
258
+ checkLineBreaksIssues(tokType, lineTerminatorCharCodes) === false &&
259
+ canMatchCharCode(
260
+ lineTerminatorCharCodes,
261
+ tokType.PATTERN as RegExp | string,
262
+ )
263
+ );
264
+ }
265
+ });
266
+ }
267
+ });
268
+
269
+ let patternIdxToIsCustom: boolean[];
270
+ let patternIdxToShort: (number | false)[];
271
+ let emptyGroups!: { [groupName: string]: IToken[] };
272
+ let patternIdxToConfig!: IPatternConfig[];
273
+ tracer("Misc Mapping #2", () => {
274
+ patternIdxToIsCustom = map(onlyRelevantTypes, isCustomPattern);
275
+ patternIdxToShort = map(allTransformedPatterns, isShortPattern);
276
+
277
+ emptyGroups = reduce(
278
+ onlyRelevantTypes,
279
+ (acc, clazz: any) => {
280
+ const groupName = clazz.GROUP;
281
+ if (isString(groupName) && !(groupName === Lexer.SKIPPED)) {
282
+ acc[groupName] = [];
283
+ }
284
+ return acc;
285
+ },
286
+ {} as { [groupName: string]: IToken[] },
287
+ );
288
+
289
+ patternIdxToConfig = map(
290
+ allTransformedPatterns,
291
+ (x, idx): IPatternConfig => {
292
+ return {
293
+ pattern: allTransformedPatterns[idx],
294
+ longerAlt: patternIdxToLongerAltIdxArr[idx],
295
+ canLineTerminator: patternIdxToCanLineTerminator[idx],
296
+ isCustom: patternIdxToIsCustom[idx],
297
+ short: patternIdxToShort[idx],
298
+ group: patternIdxToGroup[idx],
299
+ push: patternIdxToPushMode[idx],
300
+ pop: patternIdxToPopMode[idx],
301
+ tokenTypeIdx: patternIdxToType[idx],
302
+ tokenType: onlyRelevantTypes[idx],
303
+ };
304
+ },
305
+ );
306
+ });
307
+
308
+ let canBeOptimized = true;
309
+ let charCodeToPatternIdxToConfig: { [charCode: number]: IPatternConfig[] } =
310
+ [];
311
+
312
+ if (!options.safeMode) {
313
+ tracer("First Char Optimization", () => {
314
+ charCodeToPatternIdxToConfig = reduce(
315
+ onlyRelevantTypes,
316
+ (result, currTokType, idx) => {
317
+ if (typeof currTokType.PATTERN === "string") {
318
+ const charCode = currTokType.PATTERN.charCodeAt(0);
319
+ const optimizedIdx = charCodeToOptimizedIndex(charCode);
320
+ addToMapOfArrays(result, optimizedIdx, patternIdxToConfig[idx]);
321
+ } else if (isArray(currTokType.START_CHARS_HINT)) {
322
+ let lastOptimizedIdx: number;
323
+ forEach(currTokType.START_CHARS_HINT, (charOrInt) => {
324
+ const charCode =
325
+ typeof charOrInt === "string"
326
+ ? charOrInt.charCodeAt(0)
327
+ : charOrInt;
328
+ const currOptimizedIdx = charCodeToOptimizedIndex(charCode);
329
+ // Avoid adding the config multiple times
330
+ /* istanbul ignore else */
331
+ // - Difficult to check this scenario effects as it is only a performance
332
+ // optimization that does not change correctness
333
+ if (lastOptimizedIdx !== currOptimizedIdx) {
334
+ lastOptimizedIdx = currOptimizedIdx;
335
+ addToMapOfArrays(
336
+ result,
337
+ currOptimizedIdx,
338
+ patternIdxToConfig[idx],
339
+ );
340
+ }
341
+ });
342
+ } else if (isRegExp(currTokType.PATTERN)) {
343
+ if (currTokType.PATTERN.unicode) {
344
+ canBeOptimized = false;
345
+ if (options.ensureOptimizations) {
346
+ PRINT_ERROR(
347
+ `${failedOptimizationPrefixMsg}` +
348
+ `\tUnable to analyze < ${currTokType.PATTERN.toString()} > pattern.\n` +
349
+ "\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n" +
350
+ "\tThis will disable the lexer's first char optimizations.\n" +
351
+ "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE",
352
+ );
353
+ }
354
+ } else {
355
+ const optimizedCodes = getOptimizedStartCodesIndices(
356
+ currTokType.PATTERN,
357
+ options.ensureOptimizations,
358
+ );
359
+ /* istanbul ignore if */
360
+ // start code will only be empty given an empty regExp or failure of regexp-to-ast library
361
+ // the first should be a different validation and the second cannot be tested.
362
+ if (isEmpty(optimizedCodes)) {
363
+ // we cannot understand what codes may start possible matches
364
+ // The optimization correctness requires knowing start codes for ALL patterns.
365
+ // Not actually sure this is an error, no debug message
366
+ canBeOptimized = false;
367
+ }
368
+ forEach(optimizedCodes, (code) => {
369
+ addToMapOfArrays(result, code, patternIdxToConfig[idx]);
370
+ });
371
+ }
372
+ } else {
373
+ if (options.ensureOptimizations) {
374
+ PRINT_ERROR(
375
+ `${failedOptimizationPrefixMsg}` +
376
+ `\tTokenType: <${currTokType.name}> is using a custom token pattern without providing <start_chars_hint> parameter.\n` +
377
+ "\tThis will disable the lexer's first char optimizations.\n" +
378
+ "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE",
379
+ );
380
+ }
381
+ canBeOptimized = false;
382
+ }
383
+
384
+ return result;
385
+ },
386
+ [] as { [charCode: number]: IPatternConfig[] },
387
+ );
388
+ });
389
+ }
390
+
391
+ return {
392
+ emptyGroups: emptyGroups,
393
+ patternIdxToConfig: patternIdxToConfig,
394
+ charCodeToPatternIdxToConfig: charCodeToPatternIdxToConfig,
395
+ hasCustom: hasCustom,
396
+ canBeOptimized: canBeOptimized,
397
+ };
398
+ }
399
+
400
+ export function validatePatterns(
401
+ tokenTypes: TokenType[],
402
+ validModesNames: string[],
403
+ ): ILexerDefinitionError[] {
404
+ let errors: ILexerDefinitionError[] = [];
405
+
406
+ const missingResult = findMissingPatterns(tokenTypes);
407
+ errors = errors.concat(missingResult.errors);
408
+
409
+ const invalidResult = findInvalidPatterns(missingResult.valid);
410
+ const validTokenTypes = invalidResult.valid;
411
+ errors = errors.concat(invalidResult.errors);
412
+
413
+ errors = errors.concat(validateRegExpPattern(validTokenTypes));
414
+
415
+ errors = errors.concat(findInvalidGroupType(validTokenTypes));
416
+
417
+ errors = errors.concat(
418
+ findModesThatDoNotExist(validTokenTypes, validModesNames),
419
+ );
420
+
421
+ errors = errors.concat(findUnreachablePatterns(validTokenTypes));
422
+
423
+ return errors;
424
+ }
425
+
426
+ function validateRegExpPattern(
427
+ tokenTypes: TokenType[],
428
+ ): ILexerDefinitionError[] {
429
+ let errors: ILexerDefinitionError[] = [];
430
+ const withRegExpPatterns = filter(tokenTypes, (currTokType) =>
431
+ isRegExp(currTokType[PATTERN]),
432
+ );
433
+
434
+ errors = errors.concat(findEndOfInputAnchor(withRegExpPatterns));
435
+
436
+ errors = errors.concat(findStartOfInputAnchor(withRegExpPatterns));
437
+
438
+ errors = errors.concat(findUnsupportedFlags(withRegExpPatterns));
439
+
440
+ errors = errors.concat(findDuplicatePatterns(withRegExpPatterns));
441
+
442
+ errors = errors.concat(findEmptyMatchRegExps(withRegExpPatterns));
443
+
444
+ return errors;
445
+ }
446
+
447
+ export interface ILexerFilterResult {
448
+ errors: ILexerDefinitionError[];
449
+ valid: TokenType[];
450
+ }
451
+
452
+ export function findMissingPatterns(
453
+ tokenTypes: TokenType[],
454
+ ): ILexerFilterResult {
455
+ const tokenTypesWithMissingPattern = filter(tokenTypes, (currType) => {
456
+ return !has(currType, PATTERN);
457
+ });
458
+
459
+ const errors = map(tokenTypesWithMissingPattern, (currType) => {
460
+ return {
461
+ message:
462
+ "Token Type: ->" +
463
+ currType.name +
464
+ "<- missing static 'PATTERN' property",
465
+ type: LexerDefinitionErrorType.MISSING_PATTERN,
466
+ tokenTypes: [currType],
467
+ };
468
+ });
469
+
470
+ const valid = difference(tokenTypes, tokenTypesWithMissingPattern);
471
+ return { errors, valid };
472
+ }
473
+
474
+ export function findInvalidPatterns(
475
+ tokenTypes: TokenType[],
476
+ ): ILexerFilterResult {
477
+ const tokenTypesWithInvalidPattern = filter(tokenTypes, (currType) => {
478
+ const pattern = currType[PATTERN];
479
+ return (
480
+ !isRegExp(pattern) &&
481
+ !isFunction(pattern) &&
482
+ !has(pattern, "exec") &&
483
+ !isString(pattern)
484
+ );
485
+ });
486
+
487
+ const errors = map(tokenTypesWithInvalidPattern, (currType) => {
488
+ return {
489
+ message:
490
+ "Token Type: ->" +
491
+ currType.name +
492
+ "<- static 'PATTERN' can only be a RegExp, a" +
493
+ " Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",
494
+ type: LexerDefinitionErrorType.INVALID_PATTERN,
495
+ tokenTypes: [currType],
496
+ };
497
+ });
498
+
499
+ const valid = difference(tokenTypes, tokenTypesWithInvalidPattern);
500
+ return { errors, valid };
501
+ }
502
+
503
+ const end_of_input = /[^\\][$]/;
504
+
505
+ export function findEndOfInputAnchor(
506
+ tokenTypes: TokenType[],
507
+ ): ILexerDefinitionError[] {
508
+ class EndAnchorFinder extends BaseRegExpVisitor {
509
+ found = false;
510
+
511
+ visitEndAnchor(node: unknown) {
512
+ this.found = true;
513
+ }
514
+ }
515
+
516
+ const invalidRegex = filter(tokenTypes, (currType) => {
517
+ const pattern = currType.PATTERN;
518
+
519
+ try {
520
+ const regexpAst = getRegExpAst(pattern as RegExp);
521
+ const endAnchorVisitor = new EndAnchorFinder();
522
+ endAnchorVisitor.visit(regexpAst);
523
+
524
+ return endAnchorVisitor.found;
525
+ } catch (e) {
526
+ // old behavior in case of runtime exceptions with regexp-to-ast.
527
+ /* istanbul ignore next - cannot ensure an error in regexp-to-ast*/
528
+ return end_of_input.test((pattern as RegExp).source);
529
+ }
530
+ });
531
+
532
+ const errors = map(invalidRegex, (currType) => {
533
+ return {
534
+ message:
535
+ "Unexpected RegExp Anchor Error:\n" +
536
+ "\tToken Type: ->" +
537
+ currType.name +
538
+ "<- static 'PATTERN' cannot contain end of input anchor '$'\n" +
539
+ "\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" +
540
+ "\tfor details.",
541
+ type: LexerDefinitionErrorType.EOI_ANCHOR_FOUND,
542
+ tokenTypes: [currType],
543
+ };
544
+ });
545
+
546
+ return errors;
547
+ }
548
+
549
+ export function findEmptyMatchRegExps(
550
+ tokenTypes: TokenType[],
551
+ ): ILexerDefinitionError[] {
552
+ const matchesEmptyString = filter(tokenTypes, (currType) => {
553
+ const pattern = currType.PATTERN as RegExp;
554
+ return pattern.test("");
555
+ });
556
+
557
+ const errors = map(matchesEmptyString, (currType) => {
558
+ return {
559
+ message:
560
+ "Token Type: ->" +
561
+ currType.name +
562
+ "<- static 'PATTERN' must not match an empty string",
563
+ type: LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,
564
+ tokenTypes: [currType],
565
+ };
566
+ });
567
+
568
+ return errors;
569
+ }
570
+
571
+ const start_of_input = /[^\\[][\^]|^\^/;
572
+
573
+ export function findStartOfInputAnchor(
574
+ tokenTypes: TokenType[],
575
+ ): ILexerDefinitionError[] {
576
+ class StartAnchorFinder extends BaseRegExpVisitor {
577
+ found = false;
578
+
579
+ visitStartAnchor(node: unknown) {
580
+ this.found = true;
581
+ }
582
+ }
583
+
584
+ const invalidRegex = filter(tokenTypes, (currType) => {
585
+ const pattern = currType.PATTERN as RegExp;
586
+ try {
587
+ const regexpAst = getRegExpAst(pattern);
588
+ const startAnchorVisitor = new StartAnchorFinder();
589
+ startAnchorVisitor.visit(regexpAst);
590
+
591
+ return startAnchorVisitor.found;
592
+ } catch (e) {
593
+ // old behavior in case of runtime exceptions with regexp-to-ast.
594
+ /* istanbul ignore next - cannot ensure an error in regexp-to-ast*/
595
+ return start_of_input.test(pattern.source);
596
+ }
597
+ });
598
+
599
+ const errors = map(invalidRegex, (currType) => {
600
+ return {
601
+ message:
602
+ "Unexpected RegExp Anchor Error:\n" +
603
+ "\tToken Type: ->" +
604
+ currType.name +
605
+ "<- static 'PATTERN' cannot contain start of input anchor '^'\n" +
606
+ "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" +
607
+ "\tfor details.",
608
+ type: LexerDefinitionErrorType.SOI_ANCHOR_FOUND,
609
+ tokenTypes: [currType],
610
+ };
611
+ });
612
+
613
+ return errors;
614
+ }
615
+
616
+ export function findUnsupportedFlags(
617
+ tokenTypes: TokenType[],
618
+ ): ILexerDefinitionError[] {
619
+ const invalidFlags = filter(tokenTypes, (currType) => {
620
+ const pattern = currType[PATTERN];
621
+ return pattern instanceof RegExp && (pattern.multiline || pattern.global);
622
+ });
623
+
624
+ const errors = map(invalidFlags, (currType) => {
625
+ return {
626
+ message:
627
+ "Token Type: ->" +
628
+ currType.name +
629
+ "<- static 'PATTERN' may NOT contain global('g') or multiline('m')",
630
+ type: LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,
631
+ tokenTypes: [currType],
632
+ };
633
+ });
634
+
635
+ return errors;
636
+ }
637
+
638
+ // This can only test for identical duplicate RegExps, not semantically equivalent ones.
639
+ export function findDuplicatePatterns(
640
+ tokenTypes: TokenType[],
641
+ ): ILexerDefinitionError[] {
642
+ const found: TokenType[] = [];
643
+ let identicalPatterns = map(tokenTypes, (outerType: any) => {
644
+ return reduce(
645
+ tokenTypes,
646
+ (result, innerType) => {
647
+ if (
648
+ outerType.PATTERN.source === (innerType.PATTERN as RegExp).source &&
649
+ !includes(found, innerType) &&
650
+ innerType.PATTERN !== Lexer.NA
651
+ ) {
652
+ // this avoids duplicates in the result, each Token Type may only appear in one "set"
653
+ // in essence we are creating Equivalence classes on equality relation.
654
+ found.push(innerType);
655
+ result.push(innerType);
656
+ return result;
657
+ }
658
+ return result;
659
+ },
660
+ [] as TokenType[],
661
+ );
662
+ });
663
+
664
+ identicalPatterns = compact(identicalPatterns);
665
+
666
+ const duplicatePatterns = filter(identicalPatterns, (currIdenticalSet) => {
667
+ return currIdenticalSet.length > 1;
668
+ });
669
+
670
+ const errors = map(duplicatePatterns, (setOfIdentical: any) => {
671
+ const tokenTypeNames = map(setOfIdentical, (currType: any) => {
672
+ return currType.name;
673
+ });
674
+
675
+ const dupPatternSrc = (<any>first(setOfIdentical)).PATTERN;
676
+ return {
677
+ message:
678
+ `The same RegExp pattern ->${dupPatternSrc}<-` +
679
+ `has been used in all of the following Token Types: ${tokenTypeNames.join(
680
+ ", ",
681
+ )} <-`,
682
+ type: LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,
683
+ tokenTypes: setOfIdentical,
684
+ };
685
+ });
686
+
687
+ return errors;
688
+ }
689
+
690
+ export function findInvalidGroupType(
691
+ tokenTypes: TokenType[],
692
+ ): ILexerDefinitionError[] {
693
+ const invalidTypes = filter(tokenTypes, (clazz: any) => {
694
+ if (!has(clazz, "GROUP")) {
695
+ return false;
696
+ }
697
+ const group = clazz.GROUP;
698
+
699
+ return group !== Lexer.SKIPPED && group !== Lexer.NA && !isString(group);
700
+ });
701
+
702
+ const errors = map(invalidTypes, (currType) => {
703
+ return {
704
+ message:
705
+ "Token Type: ->" +
706
+ currType.name +
707
+ "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",
708
+ type: LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,
709
+ tokenTypes: [currType],
710
+ };
711
+ });
712
+
713
+ return errors;
714
+ }
715
+
716
+ export function findModesThatDoNotExist(
717
+ tokenTypes: TokenType[],
718
+ validModes: string[],
719
+ ): ILexerDefinitionError[] {
720
+ const invalidModes = filter(tokenTypes, (clazz: any) => {
721
+ return (
722
+ clazz.PUSH_MODE !== undefined && !includes(validModes, clazz.PUSH_MODE)
723
+ );
724
+ });
725
+
726
+ const errors = map(invalidModes, (tokType) => {
727
+ const msg =
728
+ `Token Type: ->${tokType.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${tokType.PUSH_MODE}<-` +
729
+ `which does not exist`;
730
+ return {
731
+ message: msg,
732
+ type: LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,
733
+ tokenTypes: [tokType],
734
+ };
735
+ });
736
+
737
+ return errors;
738
+ }
739
+
740
+ export function findUnreachablePatterns(
741
+ tokenTypes: TokenType[],
742
+ ): ILexerDefinitionError[] {
743
+ const errors: ILexerDefinitionError[] = [];
744
+
745
+ const canBeTested = reduce(
746
+ tokenTypes,
747
+ (result, tokType, idx) => {
748
+ const pattern = tokType.PATTERN;
749
+
750
+ if (pattern === Lexer.NA) {
751
+ return result;
752
+ }
753
+
754
+ // a more comprehensive validation for all forms of regExps would require
755
+ // deeper regExp analysis capabilities
756
+ if (isString(pattern)) {
757
+ result.push({ str: pattern, idx, tokenType: tokType });
758
+ } else if (isRegExp(pattern) && noMetaChar(pattern)) {
759
+ result.push({ str: pattern.source, idx, tokenType: tokType });
760
+ }
761
+ return result;
762
+ },
763
+ [] as { str: string; idx: number; tokenType: TokenType }[],
764
+ );
765
+
766
+ forEach(tokenTypes, (tokType, testIdx) => {
767
+ forEach(canBeTested, ({ str, idx, tokenType }) => {
768
+ if (testIdx < idx && testTokenType(str, tokType.PATTERN)) {
769
+ const msg =
770
+ `Token: ->${tokenType.name}<- can never be matched.\n` +
771
+ `Because it appears AFTER the Token Type ->${tokType.name}<-` +
772
+ `in the lexer's definition.\n` +
773
+ `See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
774
+ errors.push({
775
+ message: msg,
776
+ type: LexerDefinitionErrorType.UNREACHABLE_PATTERN,
777
+ tokenTypes: [tokType, tokenType],
778
+ });
779
+ }
780
+ });
781
+ });
782
+
783
+ return errors;
784
+ }
785
+
786
+ function testTokenType(str: string, pattern: any): boolean {
787
+ /* istanbul ignore else */
788
+ if (isRegExp(pattern)) {
789
+ const regExpArray = pattern.exec(str);
790
+ return regExpArray !== null && regExpArray.index === 0;
791
+ } else if (isFunction(pattern)) {
792
+ // maintain the API of custom patterns
793
+ return pattern(str, 0, [], {});
794
+ } else if (has(pattern, "exec")) {
795
+ // maintain the API of custom patterns
796
+ return pattern.exec(str, 0, [], {});
797
+ } else if (typeof pattern === "string") {
798
+ return pattern === str;
799
+ } else {
800
+ throw Error("non exhaustive match");
801
+ }
802
+ }
803
+
804
+ function noMetaChar(regExp: RegExp): boolean {
805
+ //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
806
+ const metaChars = [
807
+ ".",
808
+ "\\",
809
+ "[",
810
+ "]",
811
+ "|",
812
+ "^",
813
+ "$",
814
+ "(",
815
+ ")",
816
+ "?",
817
+ "*",
818
+ "+",
819
+ "{",
820
+ ];
821
+ return (
822
+ find(metaChars, (char) => regExp.source.indexOf(char) !== -1) === undefined
823
+ );
824
+ }
825
+
826
+ export function addStartOfInput(pattern: RegExp): RegExp {
827
+ const flags = pattern.ignoreCase ? "i" : "";
828
+ // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input.
829
+ // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/)
830
+ return new RegExp(`^(?:${pattern.source})`, flags);
831
+ }
832
+
833
+ export function addStickyFlag(pattern: RegExp): RegExp {
834
+ const flags = pattern.ignoreCase ? "iy" : "y";
835
+ // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input.
836
+ // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/)
837
+ return new RegExp(`${pattern.source}`, flags);
838
+ }
839
+
840
+ export function performRuntimeChecks(
841
+ lexerDefinition: IMultiModeLexerDefinition,
842
+ trackLines: boolean,
843
+ lineTerminatorCharacters: (number | string)[],
844
+ ): ILexerDefinitionError[] {
845
+ const errors: ILexerDefinitionError[] = [];
846
+
847
+ // some run time checks to help the end users.
848
+ if (!has(lexerDefinition, DEFAULT_MODE)) {
849
+ errors.push({
850
+ message:
851
+ "A MultiMode Lexer cannot be initialized without a <" +
852
+ DEFAULT_MODE +
853
+ "> property in its definition\n",
854
+ type: LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE,
855
+ });
856
+ }
857
+ if (!has(lexerDefinition, MODES)) {
858
+ errors.push({
859
+ message:
860
+ "A MultiMode Lexer cannot be initialized without a <" +
861
+ MODES +
862
+ "> property in its definition\n",
863
+ type: LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY,
864
+ });
865
+ }
866
+
867
+ if (
868
+ has(lexerDefinition, MODES) &&
869
+ has(lexerDefinition, DEFAULT_MODE) &&
870
+ !has(lexerDefinition.modes, lexerDefinition.defaultMode)
871
+ ) {
872
+ errors.push({
873
+ message:
874
+ `A MultiMode Lexer cannot be initialized with a ${DEFAULT_MODE}: <${lexerDefinition.defaultMode}>` +
875
+ `which does not exist\n`,
876
+ type: LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST,
877
+ });
878
+ }
879
+
880
+ if (has(lexerDefinition, MODES)) {
881
+ forEach(lexerDefinition.modes, (currModeValue, currModeName) => {
882
+ forEach(currModeValue, (currTokType, currIdx) => {
883
+ if (isUndefined(currTokType)) {
884
+ errors.push({
885
+ message:
886
+ `A Lexer cannot be initialized using an undefined Token Type. Mode:` +
887
+ `<${currModeName}> at index: <${currIdx}>\n`,
888
+ type: LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED,
889
+ });
890
+ } else if (has(currTokType, "LONGER_ALT")) {
891
+ const longerAlt = isArray(currTokType.LONGER_ALT)
892
+ ? currTokType.LONGER_ALT
893
+ : [currTokType.LONGER_ALT];
894
+ forEach(longerAlt, (currLongerAlt) => {
895
+ if (
896
+ !isUndefined(currLongerAlt) &&
897
+ !includes(currModeValue, currLongerAlt)
898
+ ) {
899
+ errors.push({
900
+ message: `A MultiMode Lexer cannot be initialized with a longer_alt <${currLongerAlt.name}> on token <${currTokType.name}> outside of mode <${currModeName}>\n`,
901
+ type: LexerDefinitionErrorType.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE,
902
+ });
903
+ }
904
+ });
905
+ }
906
+ });
907
+ });
908
+ }
909
+
910
+ return errors;
911
+ }
912
+
913
+ export function performWarningRuntimeChecks(
914
+ lexerDefinition: IMultiModeLexerDefinition,
915
+ trackLines: boolean,
916
+ lineTerminatorCharacters: (number | string)[],
917
+ ): ILexerDefinitionError[] {
918
+ const warnings = [];
919
+ let hasAnyLineBreak = false;
920
+ const allTokenTypes = compact(flatten(values(lexerDefinition.modes)));
921
+
922
+ const concreteTokenTypes = reject(
923
+ allTokenTypes,
924
+ (currType) => currType[PATTERN] === Lexer.NA,
925
+ );
926
+ const terminatorCharCodes = getCharCodes(lineTerminatorCharacters);
927
+ if (trackLines) {
928
+ forEach(concreteTokenTypes, (tokType) => {
929
+ const currIssue = checkLineBreaksIssues(tokType, terminatorCharCodes);
930
+ if (currIssue !== false) {
931
+ const message = buildLineBreakIssueMessage(tokType, currIssue);
932
+ const warningDescriptor = {
933
+ message,
934
+ type: currIssue.issue,
935
+ tokenType: tokType,
936
+ };
937
+ warnings.push(warningDescriptor);
938
+ } else {
939
+ // we don't want to attempt to scan if the user explicitly specified the line_breaks option.
940
+ if (has(tokType, "LINE_BREAKS")) {
941
+ if (tokType.LINE_BREAKS === true) {
942
+ hasAnyLineBreak = true;
943
+ }
944
+ } else {
945
+ if (
946
+ canMatchCharCode(terminatorCharCodes, tokType.PATTERN as RegExp)
947
+ ) {
948
+ hasAnyLineBreak = true;
949
+ }
950
+ }
951
+ }
952
+ });
953
+ }
954
+
955
+ if (trackLines && !hasAnyLineBreak) {
956
+ warnings.push({
957
+ message:
958
+ "Warning: No LINE_BREAKS Found.\n" +
959
+ "\tThis Lexer has been defined to track line and column information,\n" +
960
+ "\tBut none of the Token Types can be identified as matching a line terminator.\n" +
961
+ "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" +
962
+ "\tfor details.",
963
+ type: LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS,
964
+ });
965
+ }
966
+ return warnings;
967
+ }
968
+
969
+ export function cloneEmptyGroups(emptyGroups: {
970
+ [groupName: string]: IToken;
971
+ }): { [groupName: string]: IToken } {
972
+ const clonedResult: any = {};
973
+ const groupKeys = keys(emptyGroups);
974
+
975
+ forEach(groupKeys, (currKey) => {
976
+ const currGroupValue = emptyGroups[currKey];
977
+
978
+ /* istanbul ignore else */
979
+ if (isArray(currGroupValue)) {
980
+ clonedResult[currKey] = [];
981
+ } else {
982
+ throw Error("non exhaustive match");
983
+ }
984
+ });
985
+
986
+ return clonedResult;
987
+ }
988
+
989
+ // TODO: refactor to avoid duplication
990
+ export function isCustomPattern(tokenType: TokenType): boolean {
991
+ const pattern = tokenType.PATTERN;
992
+ /* istanbul ignore else */
993
+ if (isRegExp(pattern)) {
994
+ return false;
995
+ } else if (isFunction(pattern)) {
996
+ // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object
997
+ return true;
998
+ } else if (has(pattern, "exec")) {
999
+ // ICustomPattern
1000
+ return true;
1001
+ } else if (isString(pattern)) {
1002
+ return false;
1003
+ } else {
1004
+ throw Error("non exhaustive match");
1005
+ }
1006
+ }
1007
+
1008
+ export function isShortPattern(pattern: any): number | false {
1009
+ if (isString(pattern) && pattern.length === 1) {
1010
+ return pattern.charCodeAt(0);
1011
+ } else {
1012
+ return false;
1013
+ }
1014
+ }
1015
+
1016
+ /**
1017
+ * Faster than using a RegExp for default newline detection during lexing.
1018
+ */
1019
+ export const LineTerminatorOptimizedTester: ILineTerminatorsTester = {
1020
+ // implements /\n|\r\n?/g.test
1021
+ test: function (text) {
1022
+ const len = text.length;
1023
+ for (let i = this.lastIndex; i < len; i++) {
1024
+ const c = text.charCodeAt(i);
1025
+ if (c === 10) {
1026
+ this.lastIndex = i + 1;
1027
+ return true;
1028
+ } else if (c === 13) {
1029
+ if (text.charCodeAt(i + 1) === 10) {
1030
+ this.lastIndex = i + 2;
1031
+ } else {
1032
+ this.lastIndex = i + 1;
1033
+ }
1034
+ return true;
1035
+ }
1036
+ }
1037
+ return false;
1038
+ },
1039
+
1040
+ lastIndex: 0,
1041
+ };
1042
+
1043
+ function checkLineBreaksIssues(
1044
+ tokType: TokenType,
1045
+ lineTerminatorCharCodes: number[],
1046
+ ):
1047
+ | {
1048
+ issue:
1049
+ | LexerDefinitionErrorType.IDENTIFY_TERMINATOR
1050
+ | LexerDefinitionErrorType.CUSTOM_LINE_BREAK;
1051
+ errMsg?: string;
1052
+ }
1053
+ | false {
1054
+ if (has(tokType, "LINE_BREAKS")) {
1055
+ // if the user explicitly declared the line_breaks option we will respect their choice
1056
+ // and assume it is correct.
1057
+ return false;
1058
+ } else {
1059
+ /* istanbul ignore else */
1060
+ if (isRegExp(tokType.PATTERN)) {
1061
+ try {
1062
+ // TODO: why is the casting suddenly needed?
1063
+ canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN as RegExp);
1064
+ } catch (e) {
1065
+ /* istanbul ignore next - to test this we would have to mock <canMatchCharCode> to throw an error */
1066
+ return {
1067
+ issue: LexerDefinitionErrorType.IDENTIFY_TERMINATOR,
1068
+ errMsg: (e as Error).message,
1069
+ };
1070
+ }
1071
+ return false;
1072
+ } else if (isString(tokType.PATTERN)) {
1073
+ // string literal patterns can always be analyzed to detect line terminator usage
1074
+ return false;
1075
+ } else if (isCustomPattern(tokType)) {
1076
+ // custom token types
1077
+ return { issue: LexerDefinitionErrorType.CUSTOM_LINE_BREAK };
1078
+ } else {
1079
+ throw Error("non exhaustive match");
1080
+ }
1081
+ }
1082
+ }
1083
+
1084
+ export function buildLineBreakIssueMessage(
1085
+ tokType: TokenType,
1086
+ details: {
1087
+ issue:
1088
+ | LexerDefinitionErrorType.IDENTIFY_TERMINATOR
1089
+ | LexerDefinitionErrorType.CUSTOM_LINE_BREAK;
1090
+ errMsg?: string;
1091
+ },
1092
+ ): string {
1093
+ /* istanbul ignore else */
1094
+ if (details.issue === LexerDefinitionErrorType.IDENTIFY_TERMINATOR) {
1095
+ return (
1096
+ "Warning: unable to identify line terminator usage in pattern.\n" +
1097
+ `\tThe problem is in the <${tokType.name}> Token Type\n` +
1098
+ `\t Root cause: ${details.errMsg}.\n` +
1099
+ "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"
1100
+ );
1101
+ } else if (details.issue === LexerDefinitionErrorType.CUSTOM_LINE_BREAK) {
1102
+ return (
1103
+ "Warning: A Custom Token Pattern should specify the <line_breaks> option.\n" +
1104
+ `\tThe problem is in the <${tokType.name}> Token Type\n` +
1105
+ "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"
1106
+ );
1107
+ } else {
1108
+ throw Error("non exhaustive match");
1109
+ }
1110
+ }
1111
+
1112
+ function getCharCodes(charsOrCodes: (number | string)[]): number[] {
1113
+ const charCodes = map(charsOrCodes, (numOrString) => {
1114
+ if (isString(numOrString)) {
1115
+ return numOrString.charCodeAt(0);
1116
+ } else {
1117
+ return numOrString;
1118
+ }
1119
+ });
1120
+
1121
+ return charCodes;
1122
+ }
1123
+
1124
+ function addToMapOfArrays<T>(
1125
+ map: Record<number, T[]>,
1126
+ key: number,
1127
+ value: T,
1128
+ ): void {
1129
+ if (map[key] === undefined) {
1130
+ map[key] = [value];
1131
+ } else {
1132
+ map[key].push(value);
1133
+ }
1134
+ }
1135
+
1136
+ export const minOptimizationVal = 256;
1137
+
1138
+ /**
1139
+ * We are mapping charCode above ASCI (256) into buckets each in the size of 256.
1140
+ * This is because ASCI are the most common start chars so each one of those will get its own
1141
+ * possible token configs vector.
1142
+ *
1143
+ * Tokens starting with charCodes "above" ASCI are uncommon, so we can "afford"
1144
+ * to place these into buckets of possible token configs, What we gain from
1145
+ * this is avoiding the case of creating an optimization 'charCodeToPatternIdxToConfig'
1146
+ * which would contain 10,000+ arrays of small size (e.g unicode Identifiers scenario).
1147
+ * Our 'charCodeToPatternIdxToConfig' max size will now be:
1148
+ * 256 + (2^16 / 2^8) - 1 === 511
1149
+ *
1150
+ * note the hack for fast division integer part extraction
1151
+ * See: https://stackoverflow.com/a/4228528
1152
+ */
1153
+ let charCodeToOptimizedIdxMap: number[] = [];
1154
+ export function charCodeToOptimizedIndex(charCode: number): number {
1155
+ return charCode < minOptimizationVal
1156
+ ? charCode
1157
+ : charCodeToOptimizedIdxMap[charCode];
1158
+ }
1159
+
1160
+ /**
1161
+ * This is a compromise between cold start / hot running performance
1162
+ * Creating this array takes ~3ms on a modern machine,
1163
+ * But if we perform the computation at runtime as needed the CSS Lexer benchmark
1164
+ * performance degrades by ~10%
1165
+ *
1166
+ * TODO: Perhaps it should be lazy initialized only if a charCode > 255 is used.
1167
+ */
1168
+ function initCharCodeToOptimizedIndexMap() {
1169
+ if (isEmpty(charCodeToOptimizedIdxMap)) {
1170
+ charCodeToOptimizedIdxMap = new Array(65536);
1171
+ for (let i = 0; i < 65536; i++) {
1172
+ charCodeToOptimizedIdxMap[i] = i > 255 ? 255 + ~~(i / 255) : i;
1173
+ }
1174
+ }
1175
+ }