@oscharko-dev/keiko 1.2.3 → 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 (803) hide show
  1. package/README.md +30 -0
  2. package/dist/ui/csp-hashes.json +6 -6
  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/04dp_lufwpm_c.js +4 -0
  9. package/dist/ui/static/_next/static/chunks/{3i-bau-dkdsre.js → 093a8t-2cq6m-.js} +1 -1
  10. package/dist/ui/static/_next/static/chunks/{1-tqt01g3ezzf.js → 0d2jdima45f80.js} +1 -1
  11. package/dist/ui/static/_next/static/chunks/0jgz-asdfgt0a.js +1 -0
  12. package/dist/ui/static/_next/static/chunks/{363iuc3t94rie.js → 0pwhvlvc5xzdn.js} +1 -1
  13. package/dist/ui/static/_next/static/chunks/0qv18mxl-svtm.js +1 -0
  14. package/dist/ui/static/_next/static/chunks/{41l7r4_lp8h3b.js → 0t_pueqvpjhte.js} +1 -1
  15. package/dist/ui/static/_next/static/chunks/0vp6vie-w0uoj.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/0yfynlzpk94vs.js +1 -0
  17. package/dist/ui/static/_next/static/chunks/0z3r0nbwzm3go.js +1 -0
  18. package/dist/ui/static/_next/static/chunks/{44wg5l_yhce68.js → 0zfirl91hq_ln.js} +1 -1
  19. package/dist/ui/static/_next/static/chunks/{2vtdrsvnxytc9.js → 1-t3xxvikveec.js} +1 -1
  20. package/dist/ui/static/_next/static/chunks/12w_v6vr9vd22.js +1 -0
  21. package/dist/ui/static/_next/static/chunks/13sm61rx0q9m9.js +1 -0
  22. package/dist/ui/static/_next/static/chunks/{13b600zao46ql.js → 1cvrnrez0p5sh.js} +1 -1
  23. package/dist/ui/static/_next/static/chunks/{2uih2pg9m9qmj.js → 1d-qbfzavu7_h.js} +1 -1
  24. package/dist/ui/static/_next/static/chunks/1d_8494rie_2y.js +1 -0
  25. package/dist/ui/static/_next/static/chunks/1f54omp_06bxq.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/{0wpr48yin0ic7.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/{3iq-e8hj1ueji.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/{0pf5ot48kepng.js → 2928_k4v79qpr.js} +1 -1
  45. package/dist/ui/static/_next/static/chunks/{32s9z5cglqmbi.js → 2951adkvdmyxh.js} +1 -1
  46. package/dist/ui/static/_next/static/chunks/{1wgsq93v4kcm7.js → 2_52lwqeijscc.js} +1 -1
  47. package/dist/ui/static/_next/static/chunks/2apif8vheen3j.js +1 -0
  48. package/dist/ui/static/_next/static/chunks/{43z5mfwx4lk4w.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/{1wej005w-r7k1.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/{1-fier5v6ak98.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/{3a5x5inysfyth.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/{3h-c3eoofzojo.js → 3_7r108axban1.js} +1 -1
  62. package/dist/ui/static/_next/static/chunks/{1mvgvqdan68ot.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/{1_jahw54w_7c-.css → 3pjmpqtes6x60.css} +11 -9
  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/{0zkirehh0825i.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 +10 -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 +69 -1
  132. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +14 -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 +17 -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 +658 -22
  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 +732 -3
  192. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +624 -19
  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 +780 -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 +6 -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 +10 -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 +92 -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 +88 -24
  322. package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts +1 -1
  323. package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts.map +1 -1
  324. package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.js +5 -3
  325. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
  326. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +51 -13
  327. package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-serializer.d.ts +8 -3
  328. package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-serializer.d.ts.map +1 -1
  329. package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-serializer.js +63 -13
  330. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
  331. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +74 -1
  332. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApproval.d.ts +26 -0
  333. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApproval.d.ts.map +1 -0
  334. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApproval.js +319 -0
  335. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApprovalRoutes.d.ts +3 -0
  336. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApprovalRoutes.d.ts.map +1 -0
  337. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/browserApprovalRoutes.js +168 -0
  338. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts +1 -1
  339. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts.map +1 -1
  340. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.js +5 -4
  341. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/launcherSessionPairingPort.d.ts.map +1 -1
  342. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/launcherSessionPairingPort.js +7 -1
  343. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts +4 -0
  344. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
  345. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +22 -9
  346. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts +15 -0
  347. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts.map +1 -1
  348. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.js +162 -23
  349. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.d.ts +3 -10
  350. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.d.ts.map +1 -1
  351. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.js +6 -77
  352. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionPortableCodingRuntime.d.ts +2 -0
  353. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionPortableCodingRuntime.d.ts.map +1 -1
  354. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionPortableCodingRuntime.js +47 -7
  355. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadPortable.d.ts.map +1 -1
  356. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadPortable.js +15 -12
  357. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  358. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +8 -1
  359. package/node_modules/@oscharko-dev/keiko-server/dist/files.js +1 -1
  360. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +2 -2
  361. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  362. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +26 -7
  363. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts.map +1 -1
  364. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.js +5 -24
  365. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts.map +1 -1
  366. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.js +16 -9
  367. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -1
  368. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +4 -0
  369. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts +5 -0
  370. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts.map +1 -1
  371. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.js +103 -9
  372. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts +3 -1
  373. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts.map +1 -1
  374. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.js +50 -18
  375. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts.map +1 -1
  376. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.js +18 -3
  377. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts +1 -0
  378. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts.map +1 -1
  379. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.js +5 -0
  380. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts.map +1 -1
  381. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.js +10 -3
  382. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +5 -0
  383. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
  384. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +172 -55
  385. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-redactor.d.ts +4 -0
  386. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-redactor.d.ts.map +1 -0
  387. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-redactor.js +22 -0
  388. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
  389. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +11 -6
  390. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.js +1 -1
  391. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts.map +1 -1
  392. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.js +180 -71
  393. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-store-open.d.ts.map +1 -1
  394. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-store-open.js +1 -0
  395. package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -1
  396. package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +3 -0
  397. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/reviewStore.d.ts.map +1 -1
  398. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/reviewStore.js +4 -9
  399. package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
  400. package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +6 -1
  401. package/node_modules/@oscharko-dev/keiko-server/dist/store/browserApprovals.d.ts +21 -0
  402. package/node_modules/@oscharko-dev/keiko-server/dist/store/browserApprovals.d.ts.map +1 -0
  403. package/node_modules/@oscharko-dev/keiko-server/dist/store/browserApprovals.js +77 -0
  404. package/node_modules/@oscharko-dev/keiko-server/dist/store/chatCreationIntents.d.ts +8 -0
  405. package/node_modules/@oscharko-dev/keiko-server/dist/store/chatCreationIntents.d.ts.map +1 -0
  406. package/node_modules/@oscharko-dev/keiko-server/dist/store/chatCreationIntents.js +118 -0
  407. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts +2 -0
  408. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts.map +1 -1
  409. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.js +24 -8
  410. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
  411. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +50 -16
  412. package/node_modules/@oscharko-dev/keiko-server/dist/store/errors.d.ts +2 -1
  413. package/node_modules/@oscharko-dev/keiko-server/dist/store/errors.d.ts.map +1 -1
  414. package/node_modules/@oscharko-dev/keiko-server/dist/store/errors.js +3 -0
  415. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.d.ts.map +1 -1
  416. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +3 -1
  417. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts.map +1 -1
  418. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.js +2 -1
  419. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
  420. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
  421. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +26 -1
  422. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +14 -1
  423. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
  424. package/node_modules/@oscharko-dev/keiko-server/dist/store/workspaceManifests.d.ts.map +1 -1
  425. package/node_modules/@oscharko-dev/keiko-server/dist/store/workspaceManifests.js +10 -2
  426. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
  427. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +22 -3
  428. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts.map +1 -1
  429. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.js +31 -7
  430. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.js +2 -0
  431. package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.d.ts +2 -2
  432. package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.d.ts.map +1 -1
  433. package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.js +207 -61
  434. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control-stream.d.ts +20 -0
  435. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control-stream.d.ts.map +1 -0
  436. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control-stream.js +144 -0
  437. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control.d.ts +33 -0
  438. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control.d.ts.map +1 -0
  439. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-app-control.js +160 -0
  440. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-handoff-activity.d.ts +6 -0
  441. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-handoff-activity.d.ts.map +1 -0
  442. package/node_modules/@oscharko-dev/keiko-server/dist/update-native-handoff-activity.js +41 -0
  443. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts +2 -0
  444. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts.map +1 -1
  445. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.js +26 -14
  446. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-plan.d.ts.map +1 -1
  447. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-plan.js +14 -2
  448. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-production.d.ts.map +1 -1
  449. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-production.js +3 -1
  450. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-receipts.js +1 -1
  451. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-recovery.d.ts.map +1 -1
  452. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-recovery.js +3 -2
  453. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff-tree.js +1 -1
  454. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff.d.ts +4 -0
  455. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff.d.ts.map +1 -1
  456. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-handoff.js +89 -21
  457. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-install-mode.d.ts.map +1 -1
  458. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-install-mode.js +34 -24
  459. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-normal-startup.d.ts.map +1 -1
  460. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-normal-startup.js +4 -9
  461. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-windows-generation.d.ts +1 -1
  462. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-windows-generation.d.ts.map +1 -1
  463. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-windows-generation.js +11 -0
  464. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.d.ts +2 -1
  465. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.d.ts.map +1 -1
  466. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.js +93 -3
  467. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts.map +1 -1
  468. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.js +3 -0
  469. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation-drafts.d.ts +0 -1
  470. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation-drafts.d.ts.map +1 -1
  471. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation-drafts.js +0 -15
  472. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation.d.ts.map +1 -1
  473. package/node_modules/@oscharko-dev/keiko-server/dist/update-remediation.js +69 -38
  474. package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.d.ts +8 -0
  475. package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.d.ts.map +1 -1
  476. package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.js +65 -0
  477. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-lock.d.ts +1 -0
  478. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-lock.d.ts.map +1 -1
  479. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-lock.js +7 -11
  480. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-routes.d.ts +1 -1
  481. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-routes.d.ts.map +1 -1
  482. package/node_modules/@oscharko-dev/keiko-server/dist/update-session-routes.js +6 -2
  483. package/node_modules/@oscharko-dev/keiko-server/dist/update-session.d.ts.map +1 -1
  484. package/node_modules/@oscharko-dev/keiko-server/dist/update-session.js +3 -2
  485. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts +1 -1
  486. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts.map +1 -1
  487. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.js +1 -0
  488. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-identity.d.ts +7 -0
  489. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-identity.d.ts.map +1 -1
  490. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-identity.js +40 -0
  491. package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
  492. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  493. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.d.ts +1 -8
  494. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.d.ts.map +1 -1
  495. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.js +1 -212
  496. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  497. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  498. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  499. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  500. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts.map +1 -1
  501. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.js +9 -0
  502. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts +1 -1
  503. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts.map +1 -1
  504. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.js +3 -199
  505. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts +1 -1
  506. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts.map +1 -1
  507. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.js +1 -1
  508. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts +1 -0
  509. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts.map +1 -1
  510. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.js +58 -1
  511. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts.map +1 -1
  512. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.js +17 -24
  513. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts.map +1 -1
  514. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.js +5 -2
  515. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/request-command-patterns.d.ts +2 -0
  516. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/request-command-patterns.d.ts.map +1 -0
  517. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/request-command-patterns.js +5 -0
  518. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts +2 -1
  519. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts.map +1 -1
  520. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.js +32 -1
  521. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  522. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts +2 -0
  523. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts.map +1 -1
  524. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.js +4 -0
  525. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts +3 -0
  526. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts.map +1 -1
  527. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.js +117 -20
  528. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
  529. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +6 -4
  530. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.d.ts.map +1 -1
  531. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.js +2 -4
  532. package/node_modules/@oscharko-dev/keiko-workspace/dist/importPathSuffix.d.ts +3 -0
  533. package/node_modules/@oscharko-dev/keiko-workspace/dist/importPathSuffix.d.ts.map +1 -0
  534. package/node_modules/@oscharko-dev/keiko-workspace/dist/importPathSuffix.js +51 -0
  535. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +4 -1
  536. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
  537. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +4 -1
  538. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +2 -0
  539. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
  540. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +9 -5
  541. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchCachedLexical.d.ts +1 -1
  542. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchCachedLexical.d.ts.map +1 -1
  543. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchCachedLexical.js +10 -1
  544. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts +1 -1
  545. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts.map +1 -1
  546. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.js +99 -3
  547. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts +5 -1
  548. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
  549. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +26 -1
  550. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +2 -0
  551. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
  552. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +20 -3
  553. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPresentation.d.ts +7 -0
  554. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPresentation.d.ts.map +1 -0
  555. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPresentation.js +175 -0
  556. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryPaths.d.ts +3 -0
  557. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryPaths.d.ts.map +1 -0
  558. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryPaths.js +31 -0
  559. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts +1 -0
  560. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts.map +1 -1
  561. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.js +26 -7
  562. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRanking.d.ts.map +1 -1
  563. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRanking.js +15 -2
  564. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts +4 -1
  565. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
  566. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +28 -11
  567. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceDescriptors.d.ts +7 -0
  568. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceDescriptors.d.ts.map +1 -0
  569. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceDescriptors.js +137 -0
  570. package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts +3 -0
  571. package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.d.ts.map +1 -0
  572. package/node_modules/@oscharko-dev/keiko-workspace/dist/sourceRedaction.js +36 -0
  573. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +2 -2
  574. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  575. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  576. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts +1 -1
  577. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts.map +1 -1
  578. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.js +2 -2
  579. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts.map +1 -1
  580. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.js +17 -0
  581. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts +10 -3
  582. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts.map +1 -1
  583. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.js +29 -3
  584. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  585. package/node_modules/chevrotain/BREAKING_CHANGES.md +1 -0
  586. package/node_modules/chevrotain/CHANGELOG.md +1 -0
  587. package/node_modules/chevrotain/LICENSE.txt +202 -0
  588. package/node_modules/chevrotain/README.md +20 -0
  589. package/node_modules/chevrotain/chevrotain.d.ts +2 -0
  590. package/node_modules/chevrotain/diagrams/README.md +1 -0
  591. package/node_modules/chevrotain/diagrams/diagrams.css +85 -0
  592. package/node_modules/chevrotain/diagrams/src/diagrams_behavior.js +223 -0
  593. package/node_modules/chevrotain/diagrams/src/diagrams_builder.js +204 -0
  594. package/node_modules/chevrotain/diagrams/src/diagrams_serializer.js +20 -0
  595. package/node_modules/chevrotain/diagrams/src/main.js +30 -0
  596. package/node_modules/chevrotain/diagrams/vendor/railroad-diagrams.js +968 -0
  597. package/node_modules/chevrotain/lib/chevrotain.min.mjs +165 -0
  598. package/node_modules/chevrotain/lib/chevrotain.mjs +9554 -0
  599. package/node_modules/chevrotain/lib/src/api.js +33 -0
  600. package/node_modules/chevrotain/lib/src/diagrams/render_public.js +39 -0
  601. package/node_modules/chevrotain/lib/src/lang/lang_extensions.js +10 -0
  602. package/node_modules/chevrotain/lib/src/parse/constants.js +3 -0
  603. package/node_modules/chevrotain/lib/src/parse/cst/cst.js +71 -0
  604. package/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +90 -0
  605. package/node_modules/chevrotain/lib/src/parse/errors_public.js +175 -0
  606. package/node_modules/chevrotain/lib/src/parse/exceptions_public.js +58 -0
  607. package/node_modules/chevrotain/lib/src/parse/grammar/checks.js +435 -0
  608. package/node_modules/chevrotain/lib/src/parse/grammar/first.js +56 -0
  609. package/node_modules/chevrotain/lib/src/parse/grammar/follow.js +45 -0
  610. package/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +21 -0
  611. package/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +492 -0
  612. package/node_modules/chevrotain/lib/src/parse/grammar/keys.js +26 -0
  613. package/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +47 -0
  614. package/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +471 -0
  615. package/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +38 -0
  616. package/node_modules/chevrotain/lib/src/parse/grammar/rest.js +103 -0
  617. package/node_modules/chevrotain/lib/src/parse/grammar/types.js +2 -0
  618. package/node_modules/chevrotain/lib/src/parse/parser/parser.js +201 -0
  619. package/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +22 -0
  620. package/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +74 -0
  621. package/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +295 -0
  622. package/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +70 -0
  623. package/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +134 -0
  624. package/node_modules/chevrotain/lib/src/parse/parser/traits/parser_traits.js +4 -0
  625. package/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +48 -0
  626. package/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +334 -0
  627. package/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +542 -0
  628. package/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +290 -0
  629. package/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +191 -0
  630. package/node_modules/chevrotain/lib/src/parse/parser/types.js +2 -0
  631. package/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +20 -0
  632. package/node_modules/chevrotain/lib/src/scan/lexer.js +875 -0
  633. package/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +9 -0
  634. package/node_modules/chevrotain/lib/src/scan/lexer_public.js +646 -0
  635. package/node_modules/chevrotain/lib/src/scan/reg_exp.js +240 -0
  636. package/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +18 -0
  637. package/node_modules/chevrotain/lib/src/scan/tokens.js +114 -0
  638. package/node_modules/chevrotain/lib/src/scan/tokens_constants.js +2 -0
  639. package/node_modules/chevrotain/lib/src/scan/tokens_public.js +87 -0
  640. package/node_modules/chevrotain/lib/src/text/range.js +28 -0
  641. package/node_modules/chevrotain/lib/src/version.js +5 -0
  642. package/node_modules/chevrotain/package.json +60 -0
  643. package/node_modules/chevrotain/src/api.ts +87 -0
  644. package/node_modules/chevrotain/src/diagrams/render_public.ts +53 -0
  645. package/node_modules/chevrotain/src/lang/lang_extensions.ts +10 -0
  646. package/node_modules/chevrotain/src/parse/constants.ts +2 -0
  647. package/node_modules/chevrotain/src/parse/cst/cst.ts +87 -0
  648. package/node_modules/chevrotain/src/parse/cst/cst_visitor.ts +153 -0
  649. package/node_modules/chevrotain/src/parse/errors_public.ts +325 -0
  650. package/node_modules/chevrotain/src/parse/exceptions_public.ts +89 -0
  651. package/node_modules/chevrotain/src/parse/grammar/checks.ts +712 -0
  652. package/node_modules/chevrotain/src/parse/grammar/first.ts +70 -0
  653. package/node_modules/chevrotain/src/parse/grammar/follow.ts +67 -0
  654. package/node_modules/chevrotain/src/parse/grammar/gast/gast_resolver_public.ts +50 -0
  655. package/node_modules/chevrotain/src/parse/grammar/interpreter.ts +623 -0
  656. package/node_modules/chevrotain/src/parse/grammar/keys.ts +33 -0
  657. package/node_modules/chevrotain/src/parse/grammar/llk_lookahead.ts +139 -0
  658. package/node_modules/chevrotain/src/parse/grammar/lookahead.ts +739 -0
  659. package/node_modules/chevrotain/src/parse/grammar/resolver.ts +57 -0
  660. package/node_modules/chevrotain/src/parse/grammar/rest.ts +163 -0
  661. package/node_modules/chevrotain/src/parse/grammar/types.ts +97 -0
  662. package/node_modules/chevrotain/src/parse/parser/parser.ts +318 -0
  663. package/node_modules/chevrotain/src/parse/parser/traits/context_assist.ts +51 -0
  664. package/node_modules/chevrotain/src/parse/parser/traits/error_handler.ts +124 -0
  665. package/node_modules/chevrotain/src/parse/parser/traits/gast_recorder.ts +456 -0
  666. package/node_modules/chevrotain/src/parse/parser/traits/lexer_adapter.ts +86 -0
  667. package/node_modules/chevrotain/src/parse/parser/traits/looksahead.ts +269 -0
  668. package/node_modules/chevrotain/src/parse/parser/traits/parser_traits.ts +58 -0
  669. package/node_modules/chevrotain/src/parse/parser/traits/perf_tracer.ts +54 -0
  670. package/node_modules/chevrotain/src/parse/parser/traits/recognizer_api.ts +719 -0
  671. package/node_modules/chevrotain/src/parse/parser/traits/recognizer_engine.ts +867 -0
  672. package/node_modules/chevrotain/src/parse/parser/traits/recoverable.ts +473 -0
  673. package/node_modules/chevrotain/src/parse/parser/traits/tree_builder.ts +275 -0
  674. package/node_modules/chevrotain/src/parse/parser/types.ts +16 -0
  675. package/node_modules/chevrotain/src/parse/parser/utils/apply_mixins.ts +28 -0
  676. package/node_modules/chevrotain/src/scan/lexer.ts +1175 -0
  677. package/node_modules/chevrotain/src/scan/lexer_errors_public.ts +21 -0
  678. package/node_modules/chevrotain/src/scan/lexer_public.ts +972 -0
  679. package/node_modules/chevrotain/src/scan/reg_exp.ts +315 -0
  680. package/node_modules/chevrotain/src/scan/reg_exp_parser.ts +34 -0
  681. package/node_modules/chevrotain/src/scan/tokens.ts +167 -0
  682. package/node_modules/chevrotain/src/scan/tokens_constants.ts +1 -0
  683. package/node_modules/chevrotain/src/scan/tokens_public.ts +121 -0
  684. package/node_modules/chevrotain/src/text/range.ts +49 -0
  685. package/node_modules/chevrotain/src/version.ts +4 -0
  686. package/node_modules/chevrotain-allstar/LICENSE +16 -0
  687. package/node_modules/chevrotain-allstar/README.md +22 -0
  688. package/node_modules/chevrotain-allstar/lib/all-star-lookahead.d.ts +36 -0
  689. package/node_modules/chevrotain-allstar/lib/all-star-lookahead.d.ts.map +1 -0
  690. package/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +556 -0
  691. package/node_modules/chevrotain-allstar/lib/atn.d.ts +105 -0
  692. package/node_modules/chevrotain-allstar/lib/atn.d.ts.map +1 -0
  693. package/node_modules/chevrotain-allstar/lib/atn.js +404 -0
  694. package/node_modules/chevrotain-allstar/lib/dfa.d.ts +37 -0
  695. package/node_modules/chevrotain-allstar/lib/dfa.d.ts.map +1 -0
  696. package/node_modules/chevrotain-allstar/lib/dfa.js +46 -0
  697. package/node_modules/chevrotain-allstar/lib/index.d.ts +7 -0
  698. package/node_modules/chevrotain-allstar/lib/index.d.ts.map +1 -0
  699. package/node_modules/chevrotain-allstar/lib/index.js +7 -0
  700. package/node_modules/chevrotain-allstar/package.json +37 -0
  701. package/node_modules/chevrotain-allstar/src/all-star-lookahead.ts +763 -0
  702. package/node_modules/chevrotain-allstar/src/atn.ts +642 -0
  703. package/node_modules/chevrotain-allstar/src/dfa.ts +78 -0
  704. package/node_modules/chevrotain-allstar/src/index.ts +11 -0
  705. package/node_modules/java-parser/LICENSE +204 -0
  706. package/node_modules/java-parser/README.md +78 -0
  707. package/node_modules/java-parser/api.d.ts +3683 -0
  708. package/node_modules/java-parser/package.json +21 -0
  709. package/node_modules/java-parser/src/index.js +60 -0
  710. package/node_modules/java-parser/src/lexer.js +8 -0
  711. package/node_modules/java-parser/src/parser.js +115 -0
  712. package/node_modules/java-parser/src/productions/arrays.js +28 -0
  713. package/node_modules/java-parser/src/productions/blocks-and-statements.js +503 -0
  714. package/node_modules/java-parser/src/productions/classes.js +733 -0
  715. package/node_modules/java-parser/src/productions/expressions.js +662 -0
  716. package/node_modules/java-parser/src/productions/interfaces.js +266 -0
  717. package/node_modules/java-parser/src/productions/lexical-structure.js +61 -0
  718. package/node_modules/java-parser/src/productions/names.js +81 -0
  719. package/node_modules/java-parser/src/productions/packages-and-modules.js +226 -0
  720. package/node_modules/java-parser/src/productions/types-values-and-variables.js +218 -0
  721. package/node_modules/java-parser/src/tokens.js +595 -0
  722. package/node_modules/java-parser/src/unicodesets.js +1001 -0
  723. package/node_modules/java-parser/src/utils.js +15 -0
  724. package/package.json +53 -31
  725. package/release-impact.catalog.json +167 -23
  726. package/vendor/oscharko-dev-keiko-activity-log-1.2.5.tgz +0 -0
  727. package/vendor/oscharko-dev-keiko-cli-1.2.5.tgz +0 -0
  728. package/vendor/{oscharko-dev-keiko-connectors-1.2.3.tgz → oscharko-dev-keiko-connectors-1.2.5.tgz} +0 -0
  729. package/vendor/oscharko-dev-keiko-contracts-1.2.5.tgz +0 -0
  730. package/vendor/{oscharko-dev-keiko-evaluations-1.2.3.tgz → oscharko-dev-keiko-evaluations-1.2.5.tgz} +0 -0
  731. package/vendor/{oscharko-dev-keiko-evidence-1.2.3.tgz → oscharko-dev-keiko-evidence-1.2.5.tgz} +0 -0
  732. package/vendor/{oscharko-dev-keiko-git-1.2.3.tgz → oscharko-dev-keiko-git-1.2.5.tgz} +0 -0
  733. package/vendor/{oscharko-dev-keiko-harness-1.2.3.tgz → oscharko-dev-keiko-harness-1.2.5.tgz} +0 -0
  734. package/vendor/{oscharko-dev-keiko-local-knowledge-1.2.3.tgz → oscharko-dev-keiko-local-knowledge-1.2.5.tgz} +0 -0
  735. package/vendor/{oscharko-dev-keiko-memory-capture-1.2.3.tgz → oscharko-dev-keiko-memory-capture-1.2.5.tgz} +0 -0
  736. package/vendor/{oscharko-dev-keiko-memory-consolidation-1.2.3.tgz → oscharko-dev-keiko-memory-consolidation-1.2.5.tgz} +0 -0
  737. package/vendor/{oscharko-dev-keiko-memory-governance-1.2.3.tgz → oscharko-dev-keiko-memory-governance-1.2.5.tgz} +0 -0
  738. package/vendor/{oscharko-dev-keiko-memory-retrieval-1.2.3.tgz → oscharko-dev-keiko-memory-retrieval-1.2.5.tgz} +0 -0
  739. package/vendor/{oscharko-dev-keiko-memory-vault-1.2.3.tgz → oscharko-dev-keiko-memory-vault-1.2.5.tgz} +0 -0
  740. package/vendor/oscharko-dev-keiko-model-gateway-1.2.5.tgz +0 -0
  741. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.3.tgz → oscharko-dev-keiko-quality-intelligence-1.2.5.tgz} +0 -0
  742. package/vendor/{oscharko-dev-keiko-sandbox-1.2.3.tgz → oscharko-dev-keiko-sandbox-1.2.5.tgz} +0 -0
  743. package/vendor/oscharko-dev-keiko-sdk-1.2.5.tgz +0 -0
  744. package/vendor/oscharko-dev-keiko-security-1.2.5.tgz +0 -0
  745. package/vendor/oscharko-dev-keiko-server-1.2.5.tgz +0 -0
  746. package/vendor/{oscharko-dev-keiko-tool-catalog-1.2.3.tgz → oscharko-dev-keiko-tool-catalog-1.2.5.tgz} +0 -0
  747. package/vendor/{oscharko-dev-keiko-tools-1.2.3.tgz → oscharko-dev-keiko-tools-1.2.5.tgz} +0 -0
  748. package/vendor/{oscharko-dev-keiko-verification-1.2.3.tgz → oscharko-dev-keiko-verification-1.2.5.tgz} +0 -0
  749. package/vendor/oscharko-dev-keiko-workflows-1.2.5.tgz +0 -0
  750. package/vendor/oscharko-dev-keiko-workspace-1.2.5.tgz +0 -0
  751. package/vendor/runtime-22d6a685bfacde624a698cae-3.0.1.tgz +0 -0
  752. package/vendor/runtime-583da64f44b6efabb742951f-11.0.3.tgz +0 -0
  753. package/vendor/runtime-8dfa23afd9af4bbf8a63b1f6-0.3.1.tgz +0 -0
  754. package/vendor/runtime-988dc6c7589b144bea3431ff-11.0.3.tgz +0 -0
  755. package/vendor/runtime-cdb56cd0389cee2407f02ebe-11.0.3.tgz +0 -0
  756. package/dist/ui/static/_next/static/chunks/00_o0v2hokzqm.js +0 -1
  757. package/dist/ui/static/_next/static/chunks/08tg5xjyy073b.js +0 -1
  758. package/dist/ui/static/_next/static/chunks/0ny_v4ofel7b_.js +0 -3
  759. package/dist/ui/static/_next/static/chunks/0q5ec6axrr1dy.js +0 -1
  760. package/dist/ui/static/_next/static/chunks/0ry6tlbur8za2.js +0 -1
  761. package/dist/ui/static/_next/static/chunks/0u23qd45npews.js +0 -4
  762. package/dist/ui/static/_next/static/chunks/0w9s0mn8nv3s8.js +0 -1
  763. package/dist/ui/static/_next/static/chunks/0xu2rnpdr4kzd.js +0 -1
  764. package/dist/ui/static/_next/static/chunks/14ytv6jraivph.js +0 -1
  765. package/dist/ui/static/_next/static/chunks/18idxjg523mhp.js +0 -1
  766. package/dist/ui/static/_next/static/chunks/19ey3gbrqluoi.js +0 -1
  767. package/dist/ui/static/_next/static/chunks/1qcpuq815jtog.js +0 -3
  768. package/dist/ui/static/_next/static/chunks/1ww5k297t9tqg.js +0 -1
  769. package/dist/ui/static/_next/static/chunks/205r2spj_ir70.js +0 -1
  770. package/dist/ui/static/_next/static/chunks/245n0wio4ohjg.js +0 -1
  771. package/dist/ui/static/_next/static/chunks/25x9hf4wdlde7.js +0 -1
  772. package/dist/ui/static/_next/static/chunks/27e2u3lrksak4.js +0 -1
  773. package/dist/ui/static/_next/static/chunks/285bz147hhczq.js +0 -1
  774. package/dist/ui/static/_next/static/chunks/2fqo-2fl7ca59.js +0 -1
  775. package/dist/ui/static/_next/static/chunks/2g_pljoa8f0e-.js +0 -1
  776. package/dist/ui/static/_next/static/chunks/2i1-yu7y9mj4z.js +0 -1
  777. package/dist/ui/static/_next/static/chunks/2ig3-g02_i82n.js +0 -1
  778. package/dist/ui/static/_next/static/chunks/2jsnrkl0syr4y.js +0 -1
  779. package/dist/ui/static/_next/static/chunks/2ov72plu69iiv.js +0 -1
  780. package/dist/ui/static/_next/static/chunks/2z5c2glupanq_.js +0 -1
  781. package/dist/ui/static/_next/static/chunks/3-7tka4cib69h.js +0 -1
  782. package/dist/ui/static/_next/static/chunks/32jgtvf2y-f54.js +0 -1
  783. package/dist/ui/static/_next/static/chunks/3b05n-007vc3e.js +0 -1
  784. package/dist/ui/static/_next/static/chunks/3cpuzx4fetu6y.js +0 -1
  785. package/dist/ui/static/_next/static/chunks/3fwt6-8rc2mya.js +0 -1
  786. package/dist/ui/static/_next/static/chunks/3lf8dguq57yfu.js +0 -1
  787. package/dist/ui/static/_next/static/chunks/3p_yaeocah7k8.js +0 -1
  788. package/dist/ui/static/_next/static/chunks/3payvp5ps2fne.css +0 -3
  789. package/dist/ui/static/_next/static/chunks/3q-93bizla3k1.js +0 -1
  790. package/dist/ui/static/_next/static/chunks/3rhep1yhgo6a7.js +0 -1
  791. package/dist/ui/static/_next/static/chunks/4064iscrh1eiz.js +0 -1
  792. package/vendor/oscharko-dev-keiko-activity-log-1.2.3.tgz +0 -0
  793. package/vendor/oscharko-dev-keiko-cli-1.2.3.tgz +0 -0
  794. package/vendor/oscharko-dev-keiko-contracts-1.2.3.tgz +0 -0
  795. package/vendor/oscharko-dev-keiko-model-gateway-1.2.3.tgz +0 -0
  796. package/vendor/oscharko-dev-keiko-sdk-1.2.3.tgz +0 -0
  797. package/vendor/oscharko-dev-keiko-security-1.2.3.tgz +0 -0
  798. package/vendor/oscharko-dev-keiko-server-1.2.3.tgz +0 -0
  799. package/vendor/oscharko-dev-keiko-workflows-1.2.3.tgz +0 -0
  800. package/vendor/oscharko-dev-keiko-workspace-1.2.3.tgz +0 -0
  801. /package/dist/ui/static/_next/static/{6aFlVo-ZD3Vmx3vFKK_up → l5EA3GWm62ENm-jfs3AEY}/_buildManifest.js +0 -0
  802. /package/dist/ui/static/_next/static/{6aFlVo-ZD3Vmx3vFKK_up → l5EA3GWm62ENm-jfs3AEY}/_clientMiddlewareManifest.js +0 -0
  803. /package/dist/ui/static/_next/static/{6aFlVo-ZD3Vmx3vFKK_up → l5EA3GWm62ENm-jfs3AEY}/_ssgManifest.js +0 -0
@@ -0,0 +1,875 @@
1
+ import { BaseRegExpVisitor } from "@chevrotain/regexp-to-ast";
2
+ import { Lexer, LexerDefinitionErrorType, } from "./lexer_public.js";
3
+ import { compact, defaults, difference, filter, find, first, flatten, forEach, has, includes, indexOf, isArray, isEmpty, isFunction, isRegExp, isString, isUndefined, keys, map, reduce, reject, values, } from "lodash-es";
4
+ import { PRINT_ERROR } from "@chevrotain/utils";
5
+ import { canMatchCharCode, failedOptimizationPrefixMsg, getOptimizedStartCodesIndices, } from "./reg_exp.js";
6
+ import { getRegExpAst } from "./reg_exp_parser.js";
7
+ const PATTERN = "PATTERN";
8
+ export const DEFAULT_MODE = "defaultMode";
9
+ export const MODES = "modes";
10
+ export let SUPPORT_STICKY = typeof new RegExp("(?:)").sticky === "boolean";
11
+ export function disableSticky() {
12
+ SUPPORT_STICKY = false;
13
+ }
14
+ export function enableSticky() {
15
+ SUPPORT_STICKY = true;
16
+ }
17
+ export function analyzeTokenTypes(tokenTypes, options) {
18
+ options = defaults(options, {
19
+ useSticky: SUPPORT_STICKY,
20
+ debug: false,
21
+ safeMode: false,
22
+ positionTracking: "full",
23
+ lineTerminatorCharacters: ["\r", "\n"],
24
+ tracer: (msg, action) => action(),
25
+ });
26
+ const tracer = options.tracer;
27
+ tracer("initCharCodeToOptimizedIndexMap", () => {
28
+ initCharCodeToOptimizedIndexMap();
29
+ });
30
+ let onlyRelevantTypes;
31
+ tracer("Reject Lexer.NA", () => {
32
+ onlyRelevantTypes = reject(tokenTypes, (currType) => {
33
+ return currType[PATTERN] === Lexer.NA;
34
+ });
35
+ });
36
+ let hasCustom = false;
37
+ let allTransformedPatterns;
38
+ tracer("Transform Patterns", () => {
39
+ hasCustom = false;
40
+ allTransformedPatterns = map(onlyRelevantTypes, (currType) => {
41
+ const currPattern = currType[PATTERN];
42
+ /* istanbul ignore else */
43
+ if (isRegExp(currPattern)) {
44
+ const regExpSource = currPattern.source;
45
+ if (regExpSource.length === 1 &&
46
+ // only these regExp meta characters which can appear in a length one regExp
47
+ regExpSource !== "^" &&
48
+ regExpSource !== "$" &&
49
+ regExpSource !== "." &&
50
+ !currPattern.ignoreCase) {
51
+ return regExpSource;
52
+ }
53
+ else if (regExpSource.length === 2 &&
54
+ regExpSource[0] === "\\" &&
55
+ // not a meta character
56
+ !includes([
57
+ "d",
58
+ "D",
59
+ "s",
60
+ "S",
61
+ "t",
62
+ "r",
63
+ "n",
64
+ "t",
65
+ "0",
66
+ "c",
67
+ "b",
68
+ "B",
69
+ "f",
70
+ "v",
71
+ "w",
72
+ "W",
73
+ ], regExpSource[1])) {
74
+ // escaped meta Characters: /\+/ /\[/
75
+ // or redundant escaping: /\a/
76
+ // without the escaping "\"
77
+ return regExpSource[1];
78
+ }
79
+ else {
80
+ return options.useSticky
81
+ ? addStickyFlag(currPattern)
82
+ : addStartOfInput(currPattern);
83
+ }
84
+ }
85
+ else if (isFunction(currPattern)) {
86
+ hasCustom = true;
87
+ // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object
88
+ return { exec: currPattern };
89
+ }
90
+ else if (typeof currPattern === "object") {
91
+ hasCustom = true;
92
+ // ICustomPattern
93
+ return currPattern;
94
+ }
95
+ else if (typeof currPattern === "string") {
96
+ if (currPattern.length === 1) {
97
+ return currPattern;
98
+ }
99
+ else {
100
+ const escapedRegExpString = currPattern.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
101
+ const wrappedRegExp = new RegExp(escapedRegExpString);
102
+ return options.useSticky
103
+ ? addStickyFlag(wrappedRegExp)
104
+ : addStartOfInput(wrappedRegExp);
105
+ }
106
+ }
107
+ else {
108
+ throw Error("non exhaustive match");
109
+ }
110
+ });
111
+ });
112
+ let patternIdxToType;
113
+ let patternIdxToGroup;
114
+ let patternIdxToLongerAltIdxArr;
115
+ let patternIdxToPushMode;
116
+ let patternIdxToPopMode;
117
+ tracer("misc mapping", () => {
118
+ patternIdxToType = map(onlyRelevantTypes, (currType) => currType.tokenTypeIdx);
119
+ patternIdxToGroup = map(onlyRelevantTypes, (clazz) => {
120
+ const groupName = clazz.GROUP;
121
+ /* istanbul ignore next */
122
+ if (groupName === Lexer.SKIPPED) {
123
+ return undefined;
124
+ }
125
+ else if (isString(groupName)) {
126
+ return groupName;
127
+ }
128
+ else if (isUndefined(groupName)) {
129
+ return false;
130
+ }
131
+ else {
132
+ throw Error("non exhaustive match");
133
+ }
134
+ });
135
+ patternIdxToLongerAltIdxArr = map(onlyRelevantTypes, (clazz) => {
136
+ const longerAltType = clazz.LONGER_ALT;
137
+ if (longerAltType) {
138
+ const longerAltIdxArr = isArray(longerAltType)
139
+ ? map(longerAltType, (type) => indexOf(onlyRelevantTypes, type))
140
+ : [indexOf(onlyRelevantTypes, longerAltType)];
141
+ return longerAltIdxArr;
142
+ }
143
+ });
144
+ patternIdxToPushMode = map(onlyRelevantTypes, (clazz) => clazz.PUSH_MODE);
145
+ patternIdxToPopMode = map(onlyRelevantTypes, (clazz) => has(clazz, "POP_MODE"));
146
+ });
147
+ let patternIdxToCanLineTerminator;
148
+ tracer("Line Terminator Handling", () => {
149
+ const lineTerminatorCharCodes = getCharCodes(options.lineTerminatorCharacters);
150
+ patternIdxToCanLineTerminator = map(onlyRelevantTypes, (tokType) => false);
151
+ if (options.positionTracking !== "onlyOffset") {
152
+ patternIdxToCanLineTerminator = map(onlyRelevantTypes, (tokType) => {
153
+ if (has(tokType, "LINE_BREAKS")) {
154
+ return !!tokType.LINE_BREAKS;
155
+ }
156
+ else {
157
+ return (checkLineBreaksIssues(tokType, lineTerminatorCharCodes) === false &&
158
+ canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN));
159
+ }
160
+ });
161
+ }
162
+ });
163
+ let patternIdxToIsCustom;
164
+ let patternIdxToShort;
165
+ let emptyGroups;
166
+ let patternIdxToConfig;
167
+ tracer("Misc Mapping #2", () => {
168
+ patternIdxToIsCustom = map(onlyRelevantTypes, isCustomPattern);
169
+ patternIdxToShort = map(allTransformedPatterns, isShortPattern);
170
+ emptyGroups = reduce(onlyRelevantTypes, (acc, clazz) => {
171
+ const groupName = clazz.GROUP;
172
+ if (isString(groupName) && !(groupName === Lexer.SKIPPED)) {
173
+ acc[groupName] = [];
174
+ }
175
+ return acc;
176
+ }, {});
177
+ patternIdxToConfig = map(allTransformedPatterns, (x, idx) => {
178
+ return {
179
+ pattern: allTransformedPatterns[idx],
180
+ longerAlt: patternIdxToLongerAltIdxArr[idx],
181
+ canLineTerminator: patternIdxToCanLineTerminator[idx],
182
+ isCustom: patternIdxToIsCustom[idx],
183
+ short: patternIdxToShort[idx],
184
+ group: patternIdxToGroup[idx],
185
+ push: patternIdxToPushMode[idx],
186
+ pop: patternIdxToPopMode[idx],
187
+ tokenTypeIdx: patternIdxToType[idx],
188
+ tokenType: onlyRelevantTypes[idx],
189
+ };
190
+ });
191
+ });
192
+ let canBeOptimized = true;
193
+ let charCodeToPatternIdxToConfig = [];
194
+ if (!options.safeMode) {
195
+ tracer("First Char Optimization", () => {
196
+ charCodeToPatternIdxToConfig = reduce(onlyRelevantTypes, (result, currTokType, idx) => {
197
+ if (typeof currTokType.PATTERN === "string") {
198
+ const charCode = currTokType.PATTERN.charCodeAt(0);
199
+ const optimizedIdx = charCodeToOptimizedIndex(charCode);
200
+ addToMapOfArrays(result, optimizedIdx, patternIdxToConfig[idx]);
201
+ }
202
+ else if (isArray(currTokType.START_CHARS_HINT)) {
203
+ let lastOptimizedIdx;
204
+ forEach(currTokType.START_CHARS_HINT, (charOrInt) => {
205
+ const charCode = typeof charOrInt === "string"
206
+ ? charOrInt.charCodeAt(0)
207
+ : charOrInt;
208
+ const currOptimizedIdx = charCodeToOptimizedIndex(charCode);
209
+ // Avoid adding the config multiple times
210
+ /* istanbul ignore else */
211
+ // - Difficult to check this scenario effects as it is only a performance
212
+ // optimization that does not change correctness
213
+ if (lastOptimizedIdx !== currOptimizedIdx) {
214
+ lastOptimizedIdx = currOptimizedIdx;
215
+ addToMapOfArrays(result, currOptimizedIdx, patternIdxToConfig[idx]);
216
+ }
217
+ });
218
+ }
219
+ else if (isRegExp(currTokType.PATTERN)) {
220
+ if (currTokType.PATTERN.unicode) {
221
+ canBeOptimized = false;
222
+ if (options.ensureOptimizations) {
223
+ PRINT_ERROR(`${failedOptimizationPrefixMsg}` +
224
+ `\tUnable to analyze < ${currTokType.PATTERN.toString()} > pattern.\n` +
225
+ "\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n" +
226
+ "\tThis will disable the lexer's first char optimizations.\n" +
227
+ "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");
228
+ }
229
+ }
230
+ else {
231
+ const optimizedCodes = getOptimizedStartCodesIndices(currTokType.PATTERN, options.ensureOptimizations);
232
+ /* istanbul ignore if */
233
+ // start code will only be empty given an empty regExp or failure of regexp-to-ast library
234
+ // the first should be a different validation and the second cannot be tested.
235
+ if (isEmpty(optimizedCodes)) {
236
+ // we cannot understand what codes may start possible matches
237
+ // The optimization correctness requires knowing start codes for ALL patterns.
238
+ // Not actually sure this is an error, no debug message
239
+ canBeOptimized = false;
240
+ }
241
+ forEach(optimizedCodes, (code) => {
242
+ addToMapOfArrays(result, code, patternIdxToConfig[idx]);
243
+ });
244
+ }
245
+ }
246
+ else {
247
+ if (options.ensureOptimizations) {
248
+ PRINT_ERROR(`${failedOptimizationPrefixMsg}` +
249
+ `\tTokenType: <${currTokType.name}> is using a custom token pattern without providing <start_chars_hint> parameter.\n` +
250
+ "\tThis will disable the lexer's first char optimizations.\n" +
251
+ "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE");
252
+ }
253
+ canBeOptimized = false;
254
+ }
255
+ return result;
256
+ }, []);
257
+ });
258
+ }
259
+ return {
260
+ emptyGroups: emptyGroups,
261
+ patternIdxToConfig: patternIdxToConfig,
262
+ charCodeToPatternIdxToConfig: charCodeToPatternIdxToConfig,
263
+ hasCustom: hasCustom,
264
+ canBeOptimized: canBeOptimized,
265
+ };
266
+ }
267
+ export function validatePatterns(tokenTypes, validModesNames) {
268
+ let errors = [];
269
+ const missingResult = findMissingPatterns(tokenTypes);
270
+ errors = errors.concat(missingResult.errors);
271
+ const invalidResult = findInvalidPatterns(missingResult.valid);
272
+ const validTokenTypes = invalidResult.valid;
273
+ errors = errors.concat(invalidResult.errors);
274
+ errors = errors.concat(validateRegExpPattern(validTokenTypes));
275
+ errors = errors.concat(findInvalidGroupType(validTokenTypes));
276
+ errors = errors.concat(findModesThatDoNotExist(validTokenTypes, validModesNames));
277
+ errors = errors.concat(findUnreachablePatterns(validTokenTypes));
278
+ return errors;
279
+ }
280
+ function validateRegExpPattern(tokenTypes) {
281
+ let errors = [];
282
+ const withRegExpPatterns = filter(tokenTypes, (currTokType) => isRegExp(currTokType[PATTERN]));
283
+ errors = errors.concat(findEndOfInputAnchor(withRegExpPatterns));
284
+ errors = errors.concat(findStartOfInputAnchor(withRegExpPatterns));
285
+ errors = errors.concat(findUnsupportedFlags(withRegExpPatterns));
286
+ errors = errors.concat(findDuplicatePatterns(withRegExpPatterns));
287
+ errors = errors.concat(findEmptyMatchRegExps(withRegExpPatterns));
288
+ return errors;
289
+ }
290
+ export function findMissingPatterns(tokenTypes) {
291
+ const tokenTypesWithMissingPattern = filter(tokenTypes, (currType) => {
292
+ return !has(currType, PATTERN);
293
+ });
294
+ const errors = map(tokenTypesWithMissingPattern, (currType) => {
295
+ return {
296
+ message: "Token Type: ->" +
297
+ currType.name +
298
+ "<- missing static 'PATTERN' property",
299
+ type: LexerDefinitionErrorType.MISSING_PATTERN,
300
+ tokenTypes: [currType],
301
+ };
302
+ });
303
+ const valid = difference(tokenTypes, tokenTypesWithMissingPattern);
304
+ return { errors, valid };
305
+ }
306
+ export function findInvalidPatterns(tokenTypes) {
307
+ const tokenTypesWithInvalidPattern = filter(tokenTypes, (currType) => {
308
+ const pattern = currType[PATTERN];
309
+ return (!isRegExp(pattern) &&
310
+ !isFunction(pattern) &&
311
+ !has(pattern, "exec") &&
312
+ !isString(pattern));
313
+ });
314
+ const errors = map(tokenTypesWithInvalidPattern, (currType) => {
315
+ return {
316
+ message: "Token Type: ->" +
317
+ currType.name +
318
+ "<- static 'PATTERN' can only be a RegExp, a" +
319
+ " Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",
320
+ type: LexerDefinitionErrorType.INVALID_PATTERN,
321
+ tokenTypes: [currType],
322
+ };
323
+ });
324
+ const valid = difference(tokenTypes, tokenTypesWithInvalidPattern);
325
+ return { errors, valid };
326
+ }
327
+ const end_of_input = /[^\\][$]/;
328
+ export function findEndOfInputAnchor(tokenTypes) {
329
+ class EndAnchorFinder extends BaseRegExpVisitor {
330
+ constructor() {
331
+ super(...arguments);
332
+ this.found = false;
333
+ }
334
+ visitEndAnchor(node) {
335
+ this.found = true;
336
+ }
337
+ }
338
+ const invalidRegex = filter(tokenTypes, (currType) => {
339
+ const pattern = currType.PATTERN;
340
+ try {
341
+ const regexpAst = getRegExpAst(pattern);
342
+ const endAnchorVisitor = new EndAnchorFinder();
343
+ endAnchorVisitor.visit(regexpAst);
344
+ return endAnchorVisitor.found;
345
+ }
346
+ catch (e) {
347
+ // old behavior in case of runtime exceptions with regexp-to-ast.
348
+ /* istanbul ignore next - cannot ensure an error in regexp-to-ast*/
349
+ return end_of_input.test(pattern.source);
350
+ }
351
+ });
352
+ const errors = map(invalidRegex, (currType) => {
353
+ return {
354
+ message: "Unexpected RegExp Anchor Error:\n" +
355
+ "\tToken Type: ->" +
356
+ currType.name +
357
+ "<- static 'PATTERN' cannot contain end of input anchor '$'\n" +
358
+ "\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" +
359
+ "\tfor details.",
360
+ type: LexerDefinitionErrorType.EOI_ANCHOR_FOUND,
361
+ tokenTypes: [currType],
362
+ };
363
+ });
364
+ return errors;
365
+ }
366
+ export function findEmptyMatchRegExps(tokenTypes) {
367
+ const matchesEmptyString = filter(tokenTypes, (currType) => {
368
+ const pattern = currType.PATTERN;
369
+ return pattern.test("");
370
+ });
371
+ const errors = map(matchesEmptyString, (currType) => {
372
+ return {
373
+ message: "Token Type: ->" +
374
+ currType.name +
375
+ "<- static 'PATTERN' must not match an empty string",
376
+ type: LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,
377
+ tokenTypes: [currType],
378
+ };
379
+ });
380
+ return errors;
381
+ }
382
+ const start_of_input = /[^\\[][\^]|^\^/;
383
+ export function findStartOfInputAnchor(tokenTypes) {
384
+ class StartAnchorFinder extends BaseRegExpVisitor {
385
+ constructor() {
386
+ super(...arguments);
387
+ this.found = false;
388
+ }
389
+ visitStartAnchor(node) {
390
+ this.found = true;
391
+ }
392
+ }
393
+ const invalidRegex = filter(tokenTypes, (currType) => {
394
+ const pattern = currType.PATTERN;
395
+ try {
396
+ const regexpAst = getRegExpAst(pattern);
397
+ const startAnchorVisitor = new StartAnchorFinder();
398
+ startAnchorVisitor.visit(regexpAst);
399
+ return startAnchorVisitor.found;
400
+ }
401
+ catch (e) {
402
+ // old behavior in case of runtime exceptions with regexp-to-ast.
403
+ /* istanbul ignore next - cannot ensure an error in regexp-to-ast*/
404
+ return start_of_input.test(pattern.source);
405
+ }
406
+ });
407
+ const errors = map(invalidRegex, (currType) => {
408
+ return {
409
+ message: "Unexpected RegExp Anchor Error:\n" +
410
+ "\tToken Type: ->" +
411
+ currType.name +
412
+ "<- static 'PATTERN' cannot contain start of input anchor '^'\n" +
413
+ "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS" +
414
+ "\tfor details.",
415
+ type: LexerDefinitionErrorType.SOI_ANCHOR_FOUND,
416
+ tokenTypes: [currType],
417
+ };
418
+ });
419
+ return errors;
420
+ }
421
+ export function findUnsupportedFlags(tokenTypes) {
422
+ const invalidFlags = filter(tokenTypes, (currType) => {
423
+ const pattern = currType[PATTERN];
424
+ return pattern instanceof RegExp && (pattern.multiline || pattern.global);
425
+ });
426
+ const errors = map(invalidFlags, (currType) => {
427
+ return {
428
+ message: "Token Type: ->" +
429
+ currType.name +
430
+ "<- static 'PATTERN' may NOT contain global('g') or multiline('m')",
431
+ type: LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,
432
+ tokenTypes: [currType],
433
+ };
434
+ });
435
+ return errors;
436
+ }
437
+ // This can only test for identical duplicate RegExps, not semantically equivalent ones.
438
+ export function findDuplicatePatterns(tokenTypes) {
439
+ const found = [];
440
+ let identicalPatterns = map(tokenTypes, (outerType) => {
441
+ return reduce(tokenTypes, (result, innerType) => {
442
+ if (outerType.PATTERN.source === innerType.PATTERN.source &&
443
+ !includes(found, innerType) &&
444
+ innerType.PATTERN !== Lexer.NA) {
445
+ // this avoids duplicates in the result, each Token Type may only appear in one "set"
446
+ // in essence we are creating Equivalence classes on equality relation.
447
+ found.push(innerType);
448
+ result.push(innerType);
449
+ return result;
450
+ }
451
+ return result;
452
+ }, []);
453
+ });
454
+ identicalPatterns = compact(identicalPatterns);
455
+ const duplicatePatterns = filter(identicalPatterns, (currIdenticalSet) => {
456
+ return currIdenticalSet.length > 1;
457
+ });
458
+ const errors = map(duplicatePatterns, (setOfIdentical) => {
459
+ const tokenTypeNames = map(setOfIdentical, (currType) => {
460
+ return currType.name;
461
+ });
462
+ const dupPatternSrc = first(setOfIdentical).PATTERN;
463
+ return {
464
+ message: `The same RegExp pattern ->${dupPatternSrc}<-` +
465
+ `has been used in all of the following Token Types: ${tokenTypeNames.join(", ")} <-`,
466
+ type: LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,
467
+ tokenTypes: setOfIdentical,
468
+ };
469
+ });
470
+ return errors;
471
+ }
472
+ export function findInvalidGroupType(tokenTypes) {
473
+ const invalidTypes = filter(tokenTypes, (clazz) => {
474
+ if (!has(clazz, "GROUP")) {
475
+ return false;
476
+ }
477
+ const group = clazz.GROUP;
478
+ return group !== Lexer.SKIPPED && group !== Lexer.NA && !isString(group);
479
+ });
480
+ const errors = map(invalidTypes, (currType) => {
481
+ return {
482
+ message: "Token Type: ->" +
483
+ currType.name +
484
+ "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",
485
+ type: LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,
486
+ tokenTypes: [currType],
487
+ };
488
+ });
489
+ return errors;
490
+ }
491
+ export function findModesThatDoNotExist(tokenTypes, validModes) {
492
+ const invalidModes = filter(tokenTypes, (clazz) => {
493
+ return (clazz.PUSH_MODE !== undefined && !includes(validModes, clazz.PUSH_MODE));
494
+ });
495
+ const errors = map(invalidModes, (tokType) => {
496
+ const msg = `Token Type: ->${tokType.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${tokType.PUSH_MODE}<-` +
497
+ `which does not exist`;
498
+ return {
499
+ message: msg,
500
+ type: LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,
501
+ tokenTypes: [tokType],
502
+ };
503
+ });
504
+ return errors;
505
+ }
506
+ export function findUnreachablePatterns(tokenTypes) {
507
+ const errors = [];
508
+ const canBeTested = reduce(tokenTypes, (result, tokType, idx) => {
509
+ const pattern = tokType.PATTERN;
510
+ if (pattern === Lexer.NA) {
511
+ return result;
512
+ }
513
+ // a more comprehensive validation for all forms of regExps would require
514
+ // deeper regExp analysis capabilities
515
+ if (isString(pattern)) {
516
+ result.push({ str: pattern, idx, tokenType: tokType });
517
+ }
518
+ else if (isRegExp(pattern) && noMetaChar(pattern)) {
519
+ result.push({ str: pattern.source, idx, tokenType: tokType });
520
+ }
521
+ return result;
522
+ }, []);
523
+ forEach(tokenTypes, (tokType, testIdx) => {
524
+ forEach(canBeTested, ({ str, idx, tokenType }) => {
525
+ if (testIdx < idx && testTokenType(str, tokType.PATTERN)) {
526
+ const msg = `Token: ->${tokenType.name}<- can never be matched.\n` +
527
+ `Because it appears AFTER the Token Type ->${tokType.name}<-` +
528
+ `in the lexer's definition.\n` +
529
+ `See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
530
+ errors.push({
531
+ message: msg,
532
+ type: LexerDefinitionErrorType.UNREACHABLE_PATTERN,
533
+ tokenTypes: [tokType, tokenType],
534
+ });
535
+ }
536
+ });
537
+ });
538
+ return errors;
539
+ }
540
+ function testTokenType(str, pattern) {
541
+ /* istanbul ignore else */
542
+ if (isRegExp(pattern)) {
543
+ const regExpArray = pattern.exec(str);
544
+ return regExpArray !== null && regExpArray.index === 0;
545
+ }
546
+ else if (isFunction(pattern)) {
547
+ // maintain the API of custom patterns
548
+ return pattern(str, 0, [], {});
549
+ }
550
+ else if (has(pattern, "exec")) {
551
+ // maintain the API of custom patterns
552
+ return pattern.exec(str, 0, [], {});
553
+ }
554
+ else if (typeof pattern === "string") {
555
+ return pattern === str;
556
+ }
557
+ else {
558
+ throw Error("non exhaustive match");
559
+ }
560
+ }
561
+ function noMetaChar(regExp) {
562
+ //https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
563
+ const metaChars = [
564
+ ".",
565
+ "\\",
566
+ "[",
567
+ "]",
568
+ "|",
569
+ "^",
570
+ "$",
571
+ "(",
572
+ ")",
573
+ "?",
574
+ "*",
575
+ "+",
576
+ "{",
577
+ ];
578
+ return (find(metaChars, (char) => regExp.source.indexOf(char) !== -1) === undefined);
579
+ }
580
+ export function addStartOfInput(pattern) {
581
+ const flags = pattern.ignoreCase ? "i" : "";
582
+ // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input.
583
+ // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/)
584
+ return new RegExp(`^(?:${pattern.source})`, flags);
585
+ }
586
+ export function addStickyFlag(pattern) {
587
+ const flags = pattern.ignoreCase ? "iy" : "y";
588
+ // always wrapping in a none capturing group preceded by '^' to make sure matching can only work on start of input.
589
+ // duplicate/redundant start of input markers have no meaning (/^^^^A/ === /^A/)
590
+ return new RegExp(`${pattern.source}`, flags);
591
+ }
592
+ export function performRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharacters) {
593
+ const errors = [];
594
+ // some run time checks to help the end users.
595
+ if (!has(lexerDefinition, DEFAULT_MODE)) {
596
+ errors.push({
597
+ message: "A MultiMode Lexer cannot be initialized without a <" +
598
+ DEFAULT_MODE +
599
+ "> property in its definition\n",
600
+ type: LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE,
601
+ });
602
+ }
603
+ if (!has(lexerDefinition, MODES)) {
604
+ errors.push({
605
+ message: "A MultiMode Lexer cannot be initialized without a <" +
606
+ MODES +
607
+ "> property in its definition\n",
608
+ type: LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY,
609
+ });
610
+ }
611
+ if (has(lexerDefinition, MODES) &&
612
+ has(lexerDefinition, DEFAULT_MODE) &&
613
+ !has(lexerDefinition.modes, lexerDefinition.defaultMode)) {
614
+ errors.push({
615
+ message: `A MultiMode Lexer cannot be initialized with a ${DEFAULT_MODE}: <${lexerDefinition.defaultMode}>` +
616
+ `which does not exist\n`,
617
+ type: LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST,
618
+ });
619
+ }
620
+ if (has(lexerDefinition, MODES)) {
621
+ forEach(lexerDefinition.modes, (currModeValue, currModeName) => {
622
+ forEach(currModeValue, (currTokType, currIdx) => {
623
+ if (isUndefined(currTokType)) {
624
+ errors.push({
625
+ message: `A Lexer cannot be initialized using an undefined Token Type. Mode:` +
626
+ `<${currModeName}> at index: <${currIdx}>\n`,
627
+ type: LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED,
628
+ });
629
+ }
630
+ else if (has(currTokType, "LONGER_ALT")) {
631
+ const longerAlt = isArray(currTokType.LONGER_ALT)
632
+ ? currTokType.LONGER_ALT
633
+ : [currTokType.LONGER_ALT];
634
+ forEach(longerAlt, (currLongerAlt) => {
635
+ if (!isUndefined(currLongerAlt) &&
636
+ !includes(currModeValue, currLongerAlt)) {
637
+ errors.push({
638
+ message: `A MultiMode Lexer cannot be initialized with a longer_alt <${currLongerAlt.name}> on token <${currTokType.name}> outside of mode <${currModeName}>\n`,
639
+ type: LexerDefinitionErrorType.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE,
640
+ });
641
+ }
642
+ });
643
+ }
644
+ });
645
+ });
646
+ }
647
+ return errors;
648
+ }
649
+ export function performWarningRuntimeChecks(lexerDefinition, trackLines, lineTerminatorCharacters) {
650
+ const warnings = [];
651
+ let hasAnyLineBreak = false;
652
+ const allTokenTypes = compact(flatten(values(lexerDefinition.modes)));
653
+ const concreteTokenTypes = reject(allTokenTypes, (currType) => currType[PATTERN] === Lexer.NA);
654
+ const terminatorCharCodes = getCharCodes(lineTerminatorCharacters);
655
+ if (trackLines) {
656
+ forEach(concreteTokenTypes, (tokType) => {
657
+ const currIssue = checkLineBreaksIssues(tokType, terminatorCharCodes);
658
+ if (currIssue !== false) {
659
+ const message = buildLineBreakIssueMessage(tokType, currIssue);
660
+ const warningDescriptor = {
661
+ message,
662
+ type: currIssue.issue,
663
+ tokenType: tokType,
664
+ };
665
+ warnings.push(warningDescriptor);
666
+ }
667
+ else {
668
+ // we don't want to attempt to scan if the user explicitly specified the line_breaks option.
669
+ if (has(tokType, "LINE_BREAKS")) {
670
+ if (tokType.LINE_BREAKS === true) {
671
+ hasAnyLineBreak = true;
672
+ }
673
+ }
674
+ else {
675
+ if (canMatchCharCode(terminatorCharCodes, tokType.PATTERN)) {
676
+ hasAnyLineBreak = true;
677
+ }
678
+ }
679
+ }
680
+ });
681
+ }
682
+ if (trackLines && !hasAnyLineBreak) {
683
+ warnings.push({
684
+ message: "Warning: No LINE_BREAKS Found.\n" +
685
+ "\tThis Lexer has been defined to track line and column information,\n" +
686
+ "\tBut none of the Token Types can be identified as matching a line terminator.\n" +
687
+ "\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n" +
688
+ "\tfor details.",
689
+ type: LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS,
690
+ });
691
+ }
692
+ return warnings;
693
+ }
694
+ export function cloneEmptyGroups(emptyGroups) {
695
+ const clonedResult = {};
696
+ const groupKeys = keys(emptyGroups);
697
+ forEach(groupKeys, (currKey) => {
698
+ const currGroupValue = emptyGroups[currKey];
699
+ /* istanbul ignore else */
700
+ if (isArray(currGroupValue)) {
701
+ clonedResult[currKey] = [];
702
+ }
703
+ else {
704
+ throw Error("non exhaustive match");
705
+ }
706
+ });
707
+ return clonedResult;
708
+ }
709
+ // TODO: refactor to avoid duplication
710
+ export function isCustomPattern(tokenType) {
711
+ const pattern = tokenType.PATTERN;
712
+ /* istanbul ignore else */
713
+ if (isRegExp(pattern)) {
714
+ return false;
715
+ }
716
+ else if (isFunction(pattern)) {
717
+ // CustomPatternMatcherFunc - custom patterns do not require any transformations, only wrapping in a RegExp Like object
718
+ return true;
719
+ }
720
+ else if (has(pattern, "exec")) {
721
+ // ICustomPattern
722
+ return true;
723
+ }
724
+ else if (isString(pattern)) {
725
+ return false;
726
+ }
727
+ else {
728
+ throw Error("non exhaustive match");
729
+ }
730
+ }
731
+ export function isShortPattern(pattern) {
732
+ if (isString(pattern) && pattern.length === 1) {
733
+ return pattern.charCodeAt(0);
734
+ }
735
+ else {
736
+ return false;
737
+ }
738
+ }
739
+ /**
740
+ * Faster than using a RegExp for default newline detection during lexing.
741
+ */
742
+ export const LineTerminatorOptimizedTester = {
743
+ // implements /\n|\r\n?/g.test
744
+ test: function (text) {
745
+ const len = text.length;
746
+ for (let i = this.lastIndex; i < len; i++) {
747
+ const c = text.charCodeAt(i);
748
+ if (c === 10) {
749
+ this.lastIndex = i + 1;
750
+ return true;
751
+ }
752
+ else if (c === 13) {
753
+ if (text.charCodeAt(i + 1) === 10) {
754
+ this.lastIndex = i + 2;
755
+ }
756
+ else {
757
+ this.lastIndex = i + 1;
758
+ }
759
+ return true;
760
+ }
761
+ }
762
+ return false;
763
+ },
764
+ lastIndex: 0,
765
+ };
766
+ function checkLineBreaksIssues(tokType, lineTerminatorCharCodes) {
767
+ if (has(tokType, "LINE_BREAKS")) {
768
+ // if the user explicitly declared the line_breaks option we will respect their choice
769
+ // and assume it is correct.
770
+ return false;
771
+ }
772
+ else {
773
+ /* istanbul ignore else */
774
+ if (isRegExp(tokType.PATTERN)) {
775
+ try {
776
+ // TODO: why is the casting suddenly needed?
777
+ canMatchCharCode(lineTerminatorCharCodes, tokType.PATTERN);
778
+ }
779
+ catch (e) {
780
+ /* istanbul ignore next - to test this we would have to mock <canMatchCharCode> to throw an error */
781
+ return {
782
+ issue: LexerDefinitionErrorType.IDENTIFY_TERMINATOR,
783
+ errMsg: e.message,
784
+ };
785
+ }
786
+ return false;
787
+ }
788
+ else if (isString(tokType.PATTERN)) {
789
+ // string literal patterns can always be analyzed to detect line terminator usage
790
+ return false;
791
+ }
792
+ else if (isCustomPattern(tokType)) {
793
+ // custom token types
794
+ return { issue: LexerDefinitionErrorType.CUSTOM_LINE_BREAK };
795
+ }
796
+ else {
797
+ throw Error("non exhaustive match");
798
+ }
799
+ }
800
+ }
801
+ export function buildLineBreakIssueMessage(tokType, details) {
802
+ /* istanbul ignore else */
803
+ if (details.issue === LexerDefinitionErrorType.IDENTIFY_TERMINATOR) {
804
+ return ("Warning: unable to identify line terminator usage in pattern.\n" +
805
+ `\tThe problem is in the <${tokType.name}> Token Type\n` +
806
+ `\t Root cause: ${details.errMsg}.\n` +
807
+ "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR");
808
+ }
809
+ else if (details.issue === LexerDefinitionErrorType.CUSTOM_LINE_BREAK) {
810
+ return ("Warning: A Custom Token Pattern should specify the <line_breaks> option.\n" +
811
+ `\tThe problem is in the <${tokType.name}> Token Type\n` +
812
+ "\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK");
813
+ }
814
+ else {
815
+ throw Error("non exhaustive match");
816
+ }
817
+ }
818
+ function getCharCodes(charsOrCodes) {
819
+ const charCodes = map(charsOrCodes, (numOrString) => {
820
+ if (isString(numOrString)) {
821
+ return numOrString.charCodeAt(0);
822
+ }
823
+ else {
824
+ return numOrString;
825
+ }
826
+ });
827
+ return charCodes;
828
+ }
829
+ function addToMapOfArrays(map, key, value) {
830
+ if (map[key] === undefined) {
831
+ map[key] = [value];
832
+ }
833
+ else {
834
+ map[key].push(value);
835
+ }
836
+ }
837
+ export const minOptimizationVal = 256;
838
+ /**
839
+ * We are mapping charCode above ASCI (256) into buckets each in the size of 256.
840
+ * This is because ASCI are the most common start chars so each one of those will get its own
841
+ * possible token configs vector.
842
+ *
843
+ * Tokens starting with charCodes "above" ASCI are uncommon, so we can "afford"
844
+ * to place these into buckets of possible token configs, What we gain from
845
+ * this is avoiding the case of creating an optimization 'charCodeToPatternIdxToConfig'
846
+ * which would contain 10,000+ arrays of small size (e.g unicode Identifiers scenario).
847
+ * Our 'charCodeToPatternIdxToConfig' max size will now be:
848
+ * 256 + (2^16 / 2^8) - 1 === 511
849
+ *
850
+ * note the hack for fast division integer part extraction
851
+ * See: https://stackoverflow.com/a/4228528
852
+ */
853
+ let charCodeToOptimizedIdxMap = [];
854
+ export function charCodeToOptimizedIndex(charCode) {
855
+ return charCode < minOptimizationVal
856
+ ? charCode
857
+ : charCodeToOptimizedIdxMap[charCode];
858
+ }
859
+ /**
860
+ * This is a compromise between cold start / hot running performance
861
+ * Creating this array takes ~3ms on a modern machine,
862
+ * But if we perform the computation at runtime as needed the CSS Lexer benchmark
863
+ * performance degrades by ~10%
864
+ *
865
+ * TODO: Perhaps it should be lazy initialized only if a charCode > 255 is used.
866
+ */
867
+ function initCharCodeToOptimizedIndexMap() {
868
+ if (isEmpty(charCodeToOptimizedIdxMap)) {
869
+ charCodeToOptimizedIdxMap = new Array(65536);
870
+ for (let i = 0; i < 65536; i++) {
871
+ charCodeToOptimizedIdxMap[i] = i > 255 ? 255 + ~~(i / 255) : i;
872
+ }
873
+ }
874
+ }
875
+ //# sourceMappingURL=lexer.js.map